vlite3 1.4.30 → 1.4.32
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/components/Accordion/Accordion.vue.js +19 -16
- package/components/Accordion/AccordionContent.vue.js +2 -2
- package/components/Accordion/AccordionItem.vue.js +38 -36
- package/components/CategoryManager/CategoryManager.vue2.js +3 -2
- package/components/Chart/GanttChart.vue.d.ts +13 -1
- package/components/Chart/GanttChart.vue.js +2 -2
- package/components/Chart/GanttChart.vue2.js +1185 -607
- package/components/Chart/GanttChartDateUtils.d.ts +38 -0
- package/components/Chart/GanttChartDateUtils.js +79 -0
- package/components/Chart/GanttChartDependencyUtils.d.ts +92 -0
- package/components/Chart/GanttChartDependencyUtils.js +113 -0
- package/components/Chart/GanttChartResizePreviewUtils.d.ts +52 -0
- package/components/Chart/GanttChartResizePreviewUtils.js +53 -0
- package/components/Chart/GanttChartTooltipUtils.d.ts +41 -0
- package/components/Chart/GanttChartTooltipUtils.js +63 -0
- package/components/Chart/index.d.ts +3 -1
- package/components/Chart/types.d.ts +76 -1
- package/components/Chart/types.js +8 -0
- package/components/FilePicker/FilePickerDropzone.vue.js +1 -1
- package/components/FilePicker/index.vue.js +2 -4
- package/components/Form/AccordionView.vue2.js +5 -2
- package/components/Form/AccordionView.vue3.js +250 -0
- package/components/Form/Form.vue.d.ts +0 -2
- package/components/Form/Form.vue.js +1 -1
- package/components/Form/Form.vue2.js +415 -354
- package/components/Form/FormField.vue.js +175 -196
- package/components/Form/FormFields.vue.js +1 -1
- package/components/Form/FormFields.vue2.js +60 -60
- package/components/Form/FormSkeleton.vue.js +50 -35
- package/components/Form/TableView.vue.js +59 -43
- package/components/Form/composables/useForm.js +159 -148
- package/components/Form/index.vue2.js +8 -8
- package/components/Form/utils/form.utils.d.ts +2 -0
- package/components/Form/utils/form.utils.js +17 -13
- package/components/GoogleMap.vue.d.ts +1 -1
- package/components/PanZoomViewport/PanZoomViewport.vue.d.ts +189 -0
- package/components/PanZoomViewport/PanZoomViewport.vue.js +7 -0
- package/components/PanZoomViewport/PanZoomViewport.vue2.js +536 -0
- package/components/PanZoomViewport/index.d.ts +2 -0
- package/components/PanZoomViewport/types.d.ts +121 -0
- package/components/ScaleGenerator/ScaleGenerator.vue.d.ts +3 -0
- package/components/ScaleGenerator/ScaleGenerator.vue.js +5 -108
- package/components/ScaleGenerator/ScaleGenerator.vue2.js +143 -2
- package/components/ScaleGenerator/types.d.ts +2 -0
- package/components/Screen/ScreenFilter.vue.js +18 -17
- package/components/SeoProvider/SeoProvider.vue.d.ts +4 -1
- package/components/SeoProvider/SeoProvider.vue.js +39 -33
- package/components/SeoProvider/domAdapter.d.ts +1 -4
- package/components/SeoProvider/domAdapter.js +71 -58
- package/components/SeoProvider/index.d.ts +5 -2
- package/components/SeoProvider/normalizeSeo.d.ts +10 -49
- package/components/SeoProvider/normalizeSeo.js +246 -182
- package/components/SeoProvider/plainText.d.ts +8 -0
- package/components/SeoProvider/plainText.js +117 -0
- package/components/SeoProvider/seoUrl.d.ts +13 -0
- package/components/SeoProvider/seoUrl.js +25 -0
- package/components/SeoProvider/structuredData.d.ts +100 -0
- package/components/SeoProvider/structuredData.js +33 -0
- package/components/SeoProvider/types.d.ts +47 -109
- package/components/Tabes/Tabes.vue.d.ts +10 -1
- package/components/Tabes/Tabes.vue.js +1 -1
- package/components/Tabes/Tabes.vue2.js +271 -170
- package/components/Tabes/TabesMarkerGeometry.d.ts +34 -0
- package/components/Tabes/TabesMarkerGeometry.js +21 -0
- package/components/Tabes/tabes.utils.d.ts +14 -0
- package/components/Tabes/tabes.utils.js +26 -0
- package/components/Tabes/types.d.ts +32 -0
- package/components/ThemeProvider/ThemeProvider.vue.d.ts +2 -0
- package/components/ThemeProvider/ThemeProvider.vue.js +29 -23
- package/components/ThemeProvider/index.d.ts +1 -1
- package/components/ThemeProvider/themeVars.d.ts +9 -13
- package/components/ThemeProvider/themeVars.js +173 -125
- package/components/ThemeProvider/types.d.ts +10 -0
- package/components/index.d.ts +2 -1
- package/index.d.ts +1 -0
- package/index.js +415 -387
- package/package.json +3 -2
- package/style.css +1 -1
- package/components/Form/AccordionView.vue.js +0 -222
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { resolveFieldType as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { resolveI18nText as
|
|
6
|
-
import
|
|
1
|
+
import { defineComponent as q, markRaw as t, computed as c, openBlock as p, createBlock as v, mergeProps as g, toHandlers as T, createSlots as G, unref as B, withCtx as m, createVNode as U, createTextVNode as z, toDisplayString as V, createCommentVNode as E, resolveDynamicComponent as J } from "vue";
|
|
2
|
+
import { resolveFieldType as K, isComponent as A, isAddonObject as D } from "./utils/form.utils.js";
|
|
3
|
+
import Q from "../NumberInput.vue.js";
|
|
4
|
+
import S from "../Button.vue.js";
|
|
5
|
+
import { resolveI18nText as X } from "../../utils/i18n.js";
|
|
6
|
+
import s from "../Input.vue.js";
|
|
7
7
|
/* empty css */
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
8
|
+
import Z from "../Switch.vue.js";
|
|
9
|
+
import _ from "../CheckBox.vue.js";
|
|
10
|
+
import O from "../FilePicker/index.vue.js";
|
|
11
|
+
import ee from "../AvatarUploader/AvatarUploader.vue.js";
|
|
12
|
+
import ae from "../ThumbnailSelector/ThumbnailSelector.vue.js";
|
|
13
|
+
import le from "../TagInput/TagInput.vue.js";
|
|
14
|
+
import F from "../Dropdown/Dropdown.vue.js";
|
|
15
|
+
import ie from "../MultiSelect/MultiSelect.vue.js";
|
|
16
|
+
import H from "../DatePicker.vue.js";
|
|
17
|
+
import te from "../DateRangePicker.vue.js";
|
|
18
|
+
import de from "../ColorPicker/ColorPicker.vue.js";
|
|
19
|
+
import ne from "../IconPicker.vue.js";
|
|
20
20
|
import re from "./index.vue.js";
|
|
21
|
-
import
|
|
22
|
-
import
|
|
21
|
+
import oe from "../ChoiceBox/ChoiceBox.vue.js";
|
|
22
|
+
import se from "../RichTextEditor/RichTextEditor.vue.js";
|
|
23
23
|
/* empty css */
|
|
24
|
-
const
|
|
24
|
+
const Be = /* @__PURE__ */ q({
|
|
25
25
|
__name: "FormField",
|
|
26
26
|
props: {
|
|
27
27
|
field: {},
|
|
@@ -40,86 +40,65 @@ const Ne = /* @__PURE__ */ E({
|
|
|
40
40
|
loading: { type: Boolean, default: !1 }
|
|
41
41
|
},
|
|
42
42
|
emits: ["change", "addonChange", "addonAction"],
|
|
43
|
-
setup(
|
|
44
|
-
const
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
43
|
+
setup(d, { emit: j }) {
|
|
44
|
+
const I = {
|
|
45
|
+
text: t(s),
|
|
46
|
+
email: t(s),
|
|
47
|
+
password: t(s),
|
|
48
|
+
tel: t(s),
|
|
49
|
+
url: t(s),
|
|
50
|
+
search: t(s),
|
|
51
|
+
textarea: t(s),
|
|
52
|
+
number: t(Q),
|
|
53
|
+
switch: t(Z),
|
|
54
|
+
check: t(_),
|
|
55
|
+
select: t(F),
|
|
56
|
+
multiSelect: t(ie),
|
|
57
|
+
choiceBox: t(oe),
|
|
58
|
+
date: t(H),
|
|
59
|
+
time: t(H),
|
|
60
|
+
dateRangePicker: t(te),
|
|
61
|
+
file: t(O),
|
|
62
|
+
fileUploader: t(O),
|
|
63
|
+
avatarUpload: t(ee),
|
|
64
|
+
color: t(de),
|
|
65
|
+
iconPicker: t(ne),
|
|
66
|
+
customFields: t(re),
|
|
67
|
+
thumbnailSelector: t(ae),
|
|
68
|
+
tags: t(le),
|
|
69
|
+
richTextEditor: t(se)
|
|
70
|
+
}, P = t(s), e = d, h = j, o = (a, l) => {
|
|
71
|
+
h("change", { value: a, data: l });
|
|
72
|
+
}, k = (a) => {
|
|
73
|
+
h("change", { value: a });
|
|
74
|
+
}, u = c(() => K(e.field, {
|
|
49
75
|
values: e.values,
|
|
50
76
|
globalValues: e.values,
|
|
51
77
|
isUpdate: e.isUpdate
|
|
52
|
-
})),
|
|
53
|
-
() =>
|
|
54
|
-
),
|
|
55
|
-
const a =
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
case "email":
|
|
61
|
-
case "password":
|
|
62
|
-
case "tel":
|
|
63
|
-
case "url":
|
|
64
|
-
case "search":
|
|
65
|
-
case "textarea":
|
|
66
|
-
return V;
|
|
67
|
-
case "number":
|
|
68
|
-
return b.value ? V : J;
|
|
69
|
-
case "switch":
|
|
70
|
-
return Q;
|
|
71
|
-
case "check":
|
|
72
|
-
return W;
|
|
73
|
-
case "select":
|
|
74
|
-
return w;
|
|
75
|
-
case "multiSelect":
|
|
76
|
-
return ee;
|
|
77
|
-
case "choiceBox":
|
|
78
|
-
return ne;
|
|
79
|
-
case "date":
|
|
80
|
-
case "time":
|
|
81
|
-
return ae;
|
|
82
|
-
case "dateRangePicker":
|
|
83
|
-
return le;
|
|
84
|
-
case "file":
|
|
85
|
-
case "fileUploader":
|
|
86
|
-
return X;
|
|
87
|
-
case "avatarUpload":
|
|
88
|
-
return Y;
|
|
89
|
-
case "color":
|
|
90
|
-
return ie;
|
|
91
|
-
case "iconPicker":
|
|
92
|
-
return te;
|
|
93
|
-
case "customFields":
|
|
94
|
-
return re;
|
|
95
|
-
case "thumbnailSelector":
|
|
96
|
-
return Z;
|
|
97
|
-
case "tags":
|
|
98
|
-
return _;
|
|
99
|
-
case "richTextEditor":
|
|
100
|
-
return de;
|
|
101
|
-
default:
|
|
102
|
-
return V;
|
|
103
|
-
}
|
|
104
|
-
}), A = f(() => {
|
|
105
|
-
const a = o.value, { disabled: l, readonly: r, ...g } = e.field, i = {
|
|
106
|
-
...g,
|
|
78
|
+
})), x = c(
|
|
79
|
+
() => u.value === "number" && e.field.isSensitiveField === !0
|
|
80
|
+
), M = c(() => {
|
|
81
|
+
const a = u.value;
|
|
82
|
+
return A(a) ? t(a) : a === "number" ? x.value ? P : I.number : typeof a == "string" && a in I ? I[a] : P;
|
|
83
|
+
}), C = c(() => {
|
|
84
|
+
const a = u.value, { disabled: l, readonly: n, ...b } = e.field, i = {
|
|
85
|
+
...b,
|
|
107
86
|
disabled: e.disabled || l === !0,
|
|
108
|
-
readonly: e.readonly ||
|
|
87
|
+
readonly: e.readonly || n === !0,
|
|
109
88
|
...e.field.props || {},
|
|
110
89
|
label: "",
|
|
111
90
|
labelI18n: void 0,
|
|
112
91
|
placeholderI18n: void 0
|
|
113
|
-
},
|
|
92
|
+
}, y = X(
|
|
114
93
|
e.field.placeholderI18n,
|
|
115
94
|
e.field.placeholder
|
|
116
|
-
),
|
|
95
|
+
), R = e.variant === "floating" && e.label && !e.floatingActive, f = R ? "" : y;
|
|
117
96
|
if (a === "text" || a === "email" || a === "password" || a === "tel" || a === "url" || a === "search" || a === "textarea" || !a)
|
|
118
97
|
return {
|
|
119
98
|
...i,
|
|
120
99
|
modelValue: e.value ?? "",
|
|
121
100
|
type: a || "text",
|
|
122
|
-
placeholder:
|
|
101
|
+
placeholder: f,
|
|
123
102
|
label: e.label,
|
|
124
103
|
icon: e.field.icon,
|
|
125
104
|
iconRight: e.field.iconRight,
|
|
@@ -135,14 +114,14 @@ const Ne = /* @__PURE__ */ E({
|
|
|
135
114
|
rows: a === "textarea" ? e.field.props?.rows || 3 : void 0,
|
|
136
115
|
class: `${e.field.className || ""}`
|
|
137
116
|
};
|
|
138
|
-
if (a === "number" &&
|
|
117
|
+
if (a === "number" && x.value)
|
|
139
118
|
return {
|
|
140
119
|
...i,
|
|
141
120
|
// Convert numeric value to string so Input.vue (string-based) displays it correctly
|
|
142
121
|
modelValue: e.value !== void 0 && e.value !== null ? String(e.value) : "",
|
|
143
122
|
// 'password' activates the eye-toggle inside Input.vue
|
|
144
123
|
type: "password",
|
|
145
|
-
placeholder:
|
|
124
|
+
placeholder: f,
|
|
146
125
|
label: e.label,
|
|
147
126
|
variant: e.variant,
|
|
148
127
|
size: e.size,
|
|
@@ -163,20 +142,20 @@ const Ne = /* @__PURE__ */ E({
|
|
|
163
142
|
mode: e.field.props?.mode ?? (e.variant === "transparent" ? "ghost" : "outline"),
|
|
164
143
|
size: e.size,
|
|
165
144
|
rounded: e.rounded,
|
|
166
|
-
placeholder:
|
|
145
|
+
placeholder: f,
|
|
167
146
|
class: e.field.className
|
|
168
147
|
};
|
|
169
148
|
if (a === "switch") {
|
|
170
149
|
const {
|
|
171
|
-
variant:
|
|
172
|
-
rounded:
|
|
173
|
-
error:
|
|
174
|
-
switchVariant:
|
|
175
|
-
...
|
|
150
|
+
variant: r,
|
|
151
|
+
rounded: ue,
|
|
152
|
+
error: fe,
|
|
153
|
+
switchVariant: me,
|
|
154
|
+
...w
|
|
176
155
|
} = i;
|
|
177
156
|
return {
|
|
178
|
-
...
|
|
179
|
-
disabled:
|
|
157
|
+
...w,
|
|
158
|
+
disabled: w.disabled || w.readonly,
|
|
180
159
|
modelValue: !!e.value,
|
|
181
160
|
label: e.field.label,
|
|
182
161
|
labelI18n: e.field.labelI18n,
|
|
@@ -200,13 +179,13 @@ const Ne = /* @__PURE__ */ E({
|
|
|
200
179
|
...i,
|
|
201
180
|
modelValue: e.value,
|
|
202
181
|
options: e.field.options || [],
|
|
203
|
-
placeholder:
|
|
182
|
+
placeholder: f,
|
|
204
183
|
selectable: !0,
|
|
205
184
|
closeOnSelect: !0,
|
|
206
185
|
triggerProps: {
|
|
207
186
|
variant: e.variant === "floating" ? "outline-floating" : e.variant || "outline",
|
|
208
187
|
size: e.size,
|
|
209
|
-
...
|
|
188
|
+
...R ? { text: "" } : {}
|
|
210
189
|
}
|
|
211
190
|
};
|
|
212
191
|
if (a === "multiSelect")
|
|
@@ -214,7 +193,7 @@ const Ne = /* @__PURE__ */ E({
|
|
|
214
193
|
...i,
|
|
215
194
|
modelValue: Array.isArray(e.value) ? e.value : [],
|
|
216
195
|
options: e.field.options || [],
|
|
217
|
-
placeholder:
|
|
196
|
+
placeholder: y,
|
|
218
197
|
variant: e.variant,
|
|
219
198
|
size: e.size,
|
|
220
199
|
rounded: e.rounded
|
|
@@ -227,17 +206,17 @@ const Ne = /* @__PURE__ */ E({
|
|
|
227
206
|
titleI18n: e.field.labelI18n,
|
|
228
207
|
description: e.field.props?.description,
|
|
229
208
|
descriptionI18n: e.field.props?.descriptionI18n,
|
|
230
|
-
options: (e.field.options || []).map((
|
|
231
|
-
id:
|
|
232
|
-
title:
|
|
233
|
-
titleI18n:
|
|
234
|
-
description:
|
|
235
|
-
descriptionI18n:
|
|
236
|
-
icon:
|
|
237
|
-
disabled:
|
|
238
|
-
badge:
|
|
239
|
-
badgeI18n:
|
|
240
|
-
data:
|
|
209
|
+
options: (e.field.options || []).map((r) => ({
|
|
210
|
+
id: r.value ?? r.label,
|
|
211
|
+
title: r.label,
|
|
212
|
+
titleI18n: r.labelI18n,
|
|
213
|
+
description: r.description || r.subtitle,
|
|
214
|
+
descriptionI18n: r.descriptionI18n || r.subtitleI18n,
|
|
215
|
+
icon: r.icon,
|
|
216
|
+
disabled: r.disabled,
|
|
217
|
+
badge: r.badge || r.data?.badge,
|
|
218
|
+
badgeI18n: r.badgeI18n || r.data?.badgeI18n,
|
|
219
|
+
data: r.data
|
|
241
220
|
})),
|
|
242
221
|
multiple: e.field.props?.multiple || !1,
|
|
243
222
|
grid: e.field.props?.grid || 1,
|
|
@@ -249,12 +228,12 @@ const Ne = /* @__PURE__ */ E({
|
|
|
249
228
|
...i,
|
|
250
229
|
modelValue: e.value,
|
|
251
230
|
mode: a === "time" ? "time" : "date",
|
|
252
|
-
placeholder:
|
|
231
|
+
placeholder: f,
|
|
253
232
|
btnProps: {
|
|
254
233
|
variant: e.variant === "floating" ? "outline-floating" : e.variant || "outline",
|
|
255
234
|
size: e.size,
|
|
256
235
|
class: "px-3!",
|
|
257
|
-
...
|
|
236
|
+
...R ? { text: "" } : {}
|
|
258
237
|
}
|
|
259
238
|
};
|
|
260
239
|
if (a === "dateRangePicker")
|
|
@@ -273,7 +252,7 @@ const Ne = /* @__PURE__ */ E({
|
|
|
273
252
|
fileTypes: e.field.props?.accept ? e.field.props.accept.split(",") : [],
|
|
274
253
|
returnFormat: "base64",
|
|
275
254
|
variant: e.field.props?.variant ?? (a === "file" ? "input" : "dropzone"),
|
|
276
|
-
placeholder:
|
|
255
|
+
placeholder: f,
|
|
277
256
|
size: e.size,
|
|
278
257
|
rounded: e.rounded,
|
|
279
258
|
maxSize: e.field.maxFileSize ? e.field.maxFileSize * 1024 * 1024 : void 0,
|
|
@@ -293,7 +272,7 @@ const Ne = /* @__PURE__ */ E({
|
|
|
293
272
|
return {
|
|
294
273
|
...i,
|
|
295
274
|
modelValue: Array.isArray(e.value) ? e.value : [],
|
|
296
|
-
placeholder:
|
|
275
|
+
placeholder: f,
|
|
297
276
|
variant: e.variant,
|
|
298
277
|
size: e.size,
|
|
299
278
|
rounded: e.rounded,
|
|
@@ -304,7 +283,7 @@ const Ne = /* @__PURE__ */ E({
|
|
|
304
283
|
return {
|
|
305
284
|
...i,
|
|
306
285
|
modelValue: e.value ?? "",
|
|
307
|
-
placeholder:
|
|
286
|
+
placeholder: f,
|
|
308
287
|
label: void 0,
|
|
309
288
|
error: e.error,
|
|
310
289
|
minHeight: e.field.props?.minHeight || "140px",
|
|
@@ -344,172 +323,172 @@ const Ne = /* @__PURE__ */ E({
|
|
|
344
323
|
isUpdate: e.isUpdate
|
|
345
324
|
};
|
|
346
325
|
if (a === "thumbnailSelector") {
|
|
347
|
-
const
|
|
326
|
+
const r = e.value && typeof e.value == "object" ? e.value : { images: [], thumbnail: null };
|
|
348
327
|
return {
|
|
349
328
|
...i,
|
|
350
|
-
images: Array.isArray(
|
|
351
|
-
thumbnail:
|
|
329
|
+
images: Array.isArray(r.images) ? r.images : [],
|
|
330
|
+
thumbnail: r.thumbnail ?? null,
|
|
352
331
|
disabled: e.disabled || l === !0,
|
|
353
332
|
loading: e.loading,
|
|
354
333
|
maxSize: e.field.maxFileSize,
|
|
355
334
|
label: e.field.label
|
|
356
335
|
};
|
|
357
336
|
}
|
|
358
|
-
return
|
|
337
|
+
return A(a) ? {
|
|
359
338
|
...i,
|
|
360
339
|
value: e.field.props?.multiple && (e.value === null || e.value === void 0) ? [] : e.value,
|
|
361
340
|
values: e.values
|
|
362
341
|
} : i;
|
|
363
|
-
}),
|
|
364
|
-
const a =
|
|
342
|
+
}), N = c(() => {
|
|
343
|
+
const a = u.value;
|
|
365
344
|
return a === "text" || a === "email" || a === "password" || a === "tel" || a === "url" || a === "search" || a === "textarea" || a === "switch" || a === "check" || !a ? {
|
|
366
|
-
"update:modelValue":
|
|
367
|
-
} : a === "number" &&
|
|
345
|
+
"update:modelValue": k
|
|
346
|
+
} : a === "number" && x.value ? {
|
|
368
347
|
"update:modelValue": (l) => {
|
|
369
|
-
const
|
|
370
|
-
|
|
348
|
+
const n = l === "" ? void 0 : Number(l);
|
|
349
|
+
h("change", { value: isNaN(n) ? void 0 : n });
|
|
371
350
|
}
|
|
372
351
|
} : a === "number" ? {
|
|
373
|
-
"update:modelValue":
|
|
352
|
+
"update:modelValue": k
|
|
374
353
|
} : a === "select" ? {
|
|
375
354
|
onSelect: (l) => {
|
|
376
|
-
|
|
355
|
+
o(l.value, l.data);
|
|
377
356
|
}
|
|
378
357
|
} : a === "multiSelect" ? {
|
|
379
|
-
change: (l) =>
|
|
358
|
+
change: (l) => o(l)
|
|
380
359
|
} : a === "choiceBox" ? {
|
|
381
360
|
change: (l) => {
|
|
382
|
-
const
|
|
383
|
-
let
|
|
384
|
-
|
|
385
|
-
(i) => e.field.options?.find((
|
|
386
|
-
) :
|
|
361
|
+
const n = e.field.props?.multiple;
|
|
362
|
+
let b = null;
|
|
363
|
+
n && Array.isArray(l) ? b = l.map(
|
|
364
|
+
(i) => e.field.options?.find((y) => (y.value ?? y.label) === i)?.data
|
|
365
|
+
) : b = e.field.options?.find((i) => (i.value ?? i.label) === l)?.data, o(l, b);
|
|
387
366
|
}
|
|
388
367
|
} : a === "date" || a === "time" || a === "dateRangePicker" ? {
|
|
389
|
-
change: (l) =>
|
|
368
|
+
change: (l) => o(l)
|
|
390
369
|
} : a === "fileUploader" || a === "file" ? {
|
|
391
370
|
change: (l) => {
|
|
392
|
-
|
|
371
|
+
o(l);
|
|
393
372
|
},
|
|
394
373
|
"update:modelValue": (l) => {
|
|
395
|
-
|
|
374
|
+
o(l);
|
|
396
375
|
}
|
|
397
376
|
} : a === "avatarUpload" ? {
|
|
398
377
|
change: (l) => {
|
|
399
|
-
|
|
378
|
+
o(l);
|
|
400
379
|
},
|
|
401
380
|
"update:modelValue": (l) => {
|
|
402
|
-
|
|
381
|
+
o(l);
|
|
403
382
|
}
|
|
404
383
|
} : a === "tags" ? {
|
|
405
|
-
"update:modelValue":
|
|
406
|
-
change: (l) =>
|
|
384
|
+
"update:modelValue": k,
|
|
385
|
+
change: (l) => o(l)
|
|
407
386
|
} : a === "richTextEditor" ? {
|
|
408
|
-
"update:modelValue": (l) =>
|
|
387
|
+
"update:modelValue": (l) => o(l)
|
|
409
388
|
} : a === "color" ? {
|
|
410
|
-
change: (l) =>
|
|
389
|
+
change: (l) => o(l)
|
|
411
390
|
} : a === "iconPicker" ? {
|
|
412
|
-
onSelect: (l) =>
|
|
391
|
+
onSelect: (l) => o(l)
|
|
413
392
|
} : a === "customFields" ? {
|
|
414
|
-
change: (l) =>
|
|
393
|
+
change: (l) => o(l)
|
|
415
394
|
} : a === "thumbnailSelector" ? {
|
|
416
395
|
change: (l) => {
|
|
417
|
-
|
|
396
|
+
o(l);
|
|
418
397
|
},
|
|
419
398
|
"update:images": (l) => {
|
|
420
|
-
const
|
|
421
|
-
|
|
399
|
+
const n = e.value && typeof e.value == "object" ? e.value : { images: [], thumbnail: null };
|
|
400
|
+
o({ ...n, images: l });
|
|
422
401
|
},
|
|
423
402
|
"update:thumbnail": (l) => {
|
|
424
|
-
const
|
|
425
|
-
|
|
403
|
+
const n = e.value && typeof e.value == "object" ? e.value : { images: [], thumbnail: null };
|
|
404
|
+
o({ ...n, thumbnail: l });
|
|
426
405
|
}
|
|
427
|
-
} :
|
|
406
|
+
} : A(a) ? {
|
|
428
407
|
onChange: (l) => {
|
|
429
|
-
|
|
408
|
+
o(l.value, l.data);
|
|
430
409
|
}
|
|
431
410
|
} : {};
|
|
432
|
-
}),
|
|
433
|
-
const a =
|
|
411
|
+
}), Y = c(() => {
|
|
412
|
+
const a = u.value;
|
|
434
413
|
return a === "text" || a === "email" || a === "password" || a === "tel" || a === "url" || a === "search" || !a;
|
|
435
|
-
}),
|
|
436
|
-
|
|
437
|
-
},
|
|
438
|
-
a.action &&
|
|
414
|
+
}), W = c(() => Y.value || u.value === "textarea" || x.value), $ = (a, l) => {
|
|
415
|
+
h("addonChange", a.name, { value: l.value });
|
|
416
|
+
}, L = (a) => {
|
|
417
|
+
a.action && h("addonAction", a.action);
|
|
439
418
|
};
|
|
440
|
-
return (a, l) =>
|
|
441
|
-
|
|
419
|
+
return (a, l) => W.value ? (p(), v(s, g({ key: 0 }, C.value, T(N.value)), G({ _: 2 }, [
|
|
420
|
+
B(D)(d.field.addonLeft) ? {
|
|
442
421
|
name: "addon-left",
|
|
443
|
-
fn:
|
|
444
|
-
|
|
422
|
+
fn: m(() => [
|
|
423
|
+
d.field.addonLeft.type === "select" ? (p(), v(F, g({
|
|
445
424
|
key: 0,
|
|
446
|
-
modelValue:
|
|
447
|
-
options:
|
|
448
|
-
},
|
|
449
|
-
onOnSelect: l[0] || (l[0] = (
|
|
425
|
+
modelValue: d.field.addonLeft.name ? d.values[d.field.addonLeft.name] : void 0,
|
|
426
|
+
options: d.field.addonLeft.options || []
|
|
427
|
+
}, d.field.addonLeft.props || {}, {
|
|
428
|
+
onOnSelect: l[0] || (l[0] = (n) => $(d.field.addonLeft, n))
|
|
450
429
|
}), {
|
|
451
|
-
trigger:
|
|
452
|
-
|
|
453
|
-
default:
|
|
454
|
-
|
|
430
|
+
trigger: m(({ selectedLabel: n }) => [
|
|
431
|
+
U(S, { variant: "outline" }, {
|
|
432
|
+
default: m(() => [
|
|
433
|
+
z(V(n), 1)
|
|
455
434
|
]),
|
|
456
435
|
_: 2
|
|
457
436
|
}, 1024)
|
|
458
437
|
]),
|
|
459
438
|
_: 1
|
|
460
|
-
}, 16, ["modelValue", "options"])) :
|
|
439
|
+
}, 16, ["modelValue", "options"])) : d.field.addonLeft.type === "button" ? (p(), v(S, g({
|
|
461
440
|
key: 1,
|
|
462
441
|
variant: "outline"
|
|
463
|
-
},
|
|
464
|
-
onClick: l[1] || (l[1] = (
|
|
442
|
+
}, d.field.addonLeft.props || {}, {
|
|
443
|
+
onClick: l[1] || (l[1] = (n) => L(d.field.addonLeft))
|
|
465
444
|
}), {
|
|
466
|
-
default:
|
|
467
|
-
|
|
445
|
+
default: m(() => [
|
|
446
|
+
z(V(d.field.addonLeft.text), 1)
|
|
468
447
|
]),
|
|
469
448
|
_: 1
|
|
470
|
-
}, 16)) :
|
|
449
|
+
}, 16)) : E("", !0)
|
|
471
450
|
]),
|
|
472
451
|
key: "0"
|
|
473
452
|
} : void 0,
|
|
474
|
-
|
|
453
|
+
B(D)(d.field.addonRight) ? {
|
|
475
454
|
name: "addon-right",
|
|
476
|
-
fn:
|
|
477
|
-
|
|
455
|
+
fn: m(() => [
|
|
456
|
+
d.field.addonRight.type === "select" ? (p(), v(F, g({
|
|
478
457
|
key: 0,
|
|
479
|
-
modelValue:
|
|
480
|
-
options:
|
|
481
|
-
},
|
|
482
|
-
onOnSelect: l[2] || (l[2] = (
|
|
458
|
+
modelValue: d.field.addonRight.name ? d.values[d.field.addonRight.name] : void 0,
|
|
459
|
+
options: d.field.addonRight.options || []
|
|
460
|
+
}, d.field.addonRight.props || {}, {
|
|
461
|
+
onOnSelect: l[2] || (l[2] = (n) => $(d.field.addonRight, n))
|
|
483
462
|
}), {
|
|
484
|
-
trigger:
|
|
485
|
-
|
|
486
|
-
default:
|
|
487
|
-
|
|
463
|
+
trigger: m(({ selectedLabel: n }) => [
|
|
464
|
+
U(S, { variant: "outline" }, {
|
|
465
|
+
default: m(() => [
|
|
466
|
+
z(V(n), 1)
|
|
488
467
|
]),
|
|
489
468
|
_: 2
|
|
490
469
|
}, 1024)
|
|
491
470
|
]),
|
|
492
471
|
_: 1
|
|
493
|
-
}, 16, ["modelValue", "options"])) :
|
|
472
|
+
}, 16, ["modelValue", "options"])) : d.field.addonRight.type === "button" ? (p(), v(S, g({
|
|
494
473
|
key: 1,
|
|
495
474
|
variant: "outline"
|
|
496
|
-
},
|
|
497
|
-
onClick: l[3] || (l[3] = (
|
|
475
|
+
}, d.field.addonRight.props || {}, {
|
|
476
|
+
onClick: l[3] || (l[3] = (n) => L(d.field.addonRight))
|
|
498
477
|
}), {
|
|
499
|
-
default:
|
|
500
|
-
|
|
478
|
+
default: m(() => [
|
|
479
|
+
z(V(d.field.addonRight.text), 1)
|
|
501
480
|
]),
|
|
502
481
|
_: 1
|
|
503
|
-
}, 16)) :
|
|
482
|
+
}, 16)) : E("", !0)
|
|
504
483
|
]),
|
|
505
484
|
key: "1"
|
|
506
485
|
} : void 0
|
|
507
|
-
]), 1040)) : (
|
|
486
|
+
]), 1040)) : (p(), v(J(M.value), g({
|
|
508
487
|
key: 1,
|
|
509
|
-
class:
|
|
510
|
-
},
|
|
488
|
+
class: u.value === "check" || u.value === "switch" && d.field.props?.switchVariant === "basic" ? "" : "w-full"
|
|
489
|
+
}, C.value, T(N.value)), null, 16, ["class"]));
|
|
511
490
|
}
|
|
512
491
|
});
|
|
513
492
|
export {
|
|
514
|
-
|
|
493
|
+
Be as default
|
|
515
494
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./FormFields.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-
|
|
4
|
+
const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-eef10419"]]);
|
|
5
5
|
export {
|
|
6
6
|
f as default
|
|
7
7
|
};
|