vlite3 1.4.31 → 1.4.33
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 +4 -3
- package/components/CategoryManager/CategoryNode.vue.js +30 -30
- package/components/CategoryMenu/CategoryMenu.vue.js +9 -11
- package/components/Chart/GanttChart.vue.d.ts +18 -2
- package/components/Chart/GanttChart.vue.js +1 -1
- package/components/Chart/GanttChart.vue2.js +1347 -604
- package/components/Chart/GanttChartConnectorRouting.d.ts +83 -0
- package/components/Chart/GanttChartConnectorRouting.js +405 -0
- 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 +109 -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 +92 -2
- package/components/Chart/types.js +8 -0
- package/components/ColorPicker/ColorIro.vue2.js +155 -0
- package/components/ColorPicker/ColorIro.vue3.js +2 -2
- package/components/ColorPicker/ColorPicker.vue.d.ts +5 -0
- package/components/ColorPicker/ColorPicker.vue.js +111 -65
- package/components/ColorPicker/constants.d.ts +2 -0
- package/components/ColorPicker/constants.js +4 -0
- package/components/ColorPicker/index.d.ts +1 -0
- package/components/CommandPalette/CommandPaletteContent.vue2.js +1 -1
- package/components/CommandPalette/{CommandPaletteItem.vue.js → CommandPaletteItem.vue2.js} +1 -1
- package/components/Dropdown/Dropdown.vue.js +100 -97
- package/components/Dropdown/DropdownMenu.vue.js +1 -1
- package/components/Form/AccordionView.vue.js +5 -220
- package/components/Form/AccordionView.vue3.js +250 -0
- package/components/Form/Form.vue.js +2 -2
- package/components/Form/Form.vue2.js +309 -280
- package/components/Form/FormField.vue.js +177 -197
- 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 +7 -7
- 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/Kanban/Kanban.vue.d.ts +16 -2
- package/components/Kanban/Kanban.vue.js +2 -2
- package/components/Kanban/Kanban.vue2.js +150 -86
- package/components/Kanban/types.d.ts +37 -0
- package/components/NavbarCommandPalette.vue.js +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 +19 -18
- 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.js +1 -1
- package/components/Tabes/Tabes.vue2.js +215 -193
- package/components/Tabes/TabesMarkerGeometry.d.ts +34 -0
- package/components/Tabes/TabesMarkerGeometry.js +21 -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/ToastNotification.vue.js +1 -1
- package/components/ToastNotification.vue2.js +3 -3
- package/components/index.d.ts +3 -2
- package/composables/useKeyStroke.d.ts +18 -0
- package/composables/useKeyStroke.js +103 -77
- package/composables/useTheme.js +1 -1
- package/index.d.ts +2 -0
- package/index.js +380 -350
- package/package.json +12 -4
- package/style.css +1 -1
- package/utils/environment.d.ts +29 -0
- package/utils/environment.js +4 -0
- package/utils/functions.js +14 -13
- package/components/ColorPicker/ColorIro.vue.js +0 -141
- package/components/Form/AccordionView.vue2.js +0 -4
- /package/components/Dropdown/{DropdownMenu.vue2.js → DropdownMenu.vue3.js} +0 -0
|
@@ -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
|
+
}, R = (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
|
+
), k = e.variant === "floating" && e.label && !e.floatingActive, f = k ? "" : 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
|
+
...k ? { 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
|
+
...k ? { 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",
|
|
@@ -319,7 +298,8 @@ const Ne = /* @__PURE__ */ E({
|
|
|
319
298
|
modelValue: e.value || "#000000",
|
|
320
299
|
variant: e.variant,
|
|
321
300
|
size: e.size,
|
|
322
|
-
rounded: e.rounded
|
|
301
|
+
rounded: e.rounded,
|
|
302
|
+
allowReset: e.field.props?.allowReset ?? !1
|
|
323
303
|
};
|
|
324
304
|
if (a === "iconPicker")
|
|
325
305
|
return {
|
|
@@ -344,172 +324,172 @@ const Ne = /* @__PURE__ */ E({
|
|
|
344
324
|
isUpdate: e.isUpdate
|
|
345
325
|
};
|
|
346
326
|
if (a === "thumbnailSelector") {
|
|
347
|
-
const
|
|
327
|
+
const r = e.value && typeof e.value == "object" ? e.value : { images: [], thumbnail: null };
|
|
348
328
|
return {
|
|
349
329
|
...i,
|
|
350
|
-
images: Array.isArray(
|
|
351
|
-
thumbnail:
|
|
330
|
+
images: Array.isArray(r.images) ? r.images : [],
|
|
331
|
+
thumbnail: r.thumbnail ?? null,
|
|
352
332
|
disabled: e.disabled || l === !0,
|
|
353
333
|
loading: e.loading,
|
|
354
334
|
maxSize: e.field.maxFileSize,
|
|
355
335
|
label: e.field.label
|
|
356
336
|
};
|
|
357
337
|
}
|
|
358
|
-
return
|
|
338
|
+
return A(a) ? {
|
|
359
339
|
...i,
|
|
360
340
|
value: e.field.props?.multiple && (e.value === null || e.value === void 0) ? [] : e.value,
|
|
361
341
|
values: e.values
|
|
362
342
|
} : i;
|
|
363
|
-
}),
|
|
364
|
-
const a =
|
|
343
|
+
}), N = c(() => {
|
|
344
|
+
const a = u.value;
|
|
365
345
|
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" &&
|
|
346
|
+
"update:modelValue": R
|
|
347
|
+
} : a === "number" && x.value ? {
|
|
368
348
|
"update:modelValue": (l) => {
|
|
369
|
-
const
|
|
370
|
-
|
|
349
|
+
const n = l === "" ? void 0 : Number(l);
|
|
350
|
+
h("change", { value: isNaN(n) ? void 0 : n });
|
|
371
351
|
}
|
|
372
352
|
} : a === "number" ? {
|
|
373
|
-
"update:modelValue":
|
|
353
|
+
"update:modelValue": R
|
|
374
354
|
} : a === "select" ? {
|
|
375
355
|
onSelect: (l) => {
|
|
376
|
-
|
|
356
|
+
o(l.value, l.data);
|
|
377
357
|
}
|
|
378
358
|
} : a === "multiSelect" ? {
|
|
379
|
-
change: (l) =>
|
|
359
|
+
change: (l) => o(l)
|
|
380
360
|
} : a === "choiceBox" ? {
|
|
381
361
|
change: (l) => {
|
|
382
|
-
const
|
|
383
|
-
let
|
|
384
|
-
|
|
385
|
-
(i) => e.field.options?.find((
|
|
386
|
-
) :
|
|
362
|
+
const n = e.field.props?.multiple;
|
|
363
|
+
let b = null;
|
|
364
|
+
n && Array.isArray(l) ? b = l.map(
|
|
365
|
+
(i) => e.field.options?.find((y) => (y.value ?? y.label) === i)?.data
|
|
366
|
+
) : b = e.field.options?.find((i) => (i.value ?? i.label) === l)?.data, o(l, b);
|
|
387
367
|
}
|
|
388
368
|
} : a === "date" || a === "time" || a === "dateRangePicker" ? {
|
|
389
|
-
change: (l) =>
|
|
369
|
+
change: (l) => o(l)
|
|
390
370
|
} : a === "fileUploader" || a === "file" ? {
|
|
391
371
|
change: (l) => {
|
|
392
|
-
|
|
372
|
+
o(l);
|
|
393
373
|
},
|
|
394
374
|
"update:modelValue": (l) => {
|
|
395
|
-
|
|
375
|
+
o(l);
|
|
396
376
|
}
|
|
397
377
|
} : a === "avatarUpload" ? {
|
|
398
378
|
change: (l) => {
|
|
399
|
-
|
|
379
|
+
o(l);
|
|
400
380
|
},
|
|
401
381
|
"update:modelValue": (l) => {
|
|
402
|
-
|
|
382
|
+
o(l);
|
|
403
383
|
}
|
|
404
384
|
} : a === "tags" ? {
|
|
405
|
-
"update:modelValue":
|
|
406
|
-
change: (l) =>
|
|
385
|
+
"update:modelValue": R,
|
|
386
|
+
change: (l) => o(l)
|
|
407
387
|
} : a === "richTextEditor" ? {
|
|
408
|
-
"update:modelValue": (l) =>
|
|
388
|
+
"update:modelValue": (l) => o(l)
|
|
409
389
|
} : a === "color" ? {
|
|
410
|
-
change: (l) =>
|
|
390
|
+
change: (l) => o(l)
|
|
411
391
|
} : a === "iconPicker" ? {
|
|
412
|
-
onSelect: (l) =>
|
|
392
|
+
onSelect: (l) => o(l)
|
|
413
393
|
} : a === "customFields" ? {
|
|
414
|
-
change: (l) =>
|
|
394
|
+
change: (l) => o(l)
|
|
415
395
|
} : a === "thumbnailSelector" ? {
|
|
416
396
|
change: (l) => {
|
|
417
|
-
|
|
397
|
+
o(l);
|
|
418
398
|
},
|
|
419
399
|
"update:images": (l) => {
|
|
420
|
-
const
|
|
421
|
-
|
|
400
|
+
const n = e.value && typeof e.value == "object" ? e.value : { images: [], thumbnail: null };
|
|
401
|
+
o({ ...n, images: l });
|
|
422
402
|
},
|
|
423
403
|
"update:thumbnail": (l) => {
|
|
424
|
-
const
|
|
425
|
-
|
|
404
|
+
const n = e.value && typeof e.value == "object" ? e.value : { images: [], thumbnail: null };
|
|
405
|
+
o({ ...n, thumbnail: l });
|
|
426
406
|
}
|
|
427
|
-
} :
|
|
407
|
+
} : A(a) ? {
|
|
428
408
|
onChange: (l) => {
|
|
429
|
-
|
|
409
|
+
o(l.value, l.data);
|
|
430
410
|
}
|
|
431
411
|
} : {};
|
|
432
|
-
}),
|
|
433
|
-
const a =
|
|
412
|
+
}), Y = c(() => {
|
|
413
|
+
const a = u.value;
|
|
434
414
|
return a === "text" || a === "email" || a === "password" || a === "tel" || a === "url" || a === "search" || !a;
|
|
435
|
-
}),
|
|
436
|
-
|
|
437
|
-
},
|
|
438
|
-
a.action &&
|
|
415
|
+
}), W = c(() => Y.value || u.value === "textarea" || x.value), $ = (a, l) => {
|
|
416
|
+
h("addonChange", a.name, { value: l.value });
|
|
417
|
+
}, L = (a) => {
|
|
418
|
+
a.action && h("addonAction", a.action);
|
|
439
419
|
};
|
|
440
|
-
return (a, l) =>
|
|
441
|
-
|
|
420
|
+
return (a, l) => W.value ? (p(), v(s, g({ key: 0 }, C.value, T(N.value)), G({ _: 2 }, [
|
|
421
|
+
B(D)(d.field.addonLeft) ? {
|
|
442
422
|
name: "addon-left",
|
|
443
|
-
fn:
|
|
444
|
-
|
|
423
|
+
fn: m(() => [
|
|
424
|
+
d.field.addonLeft.type === "select" ? (p(), v(F, g({
|
|
445
425
|
key: 0,
|
|
446
|
-
modelValue:
|
|
447
|
-
options:
|
|
448
|
-
},
|
|
449
|
-
onOnSelect: l[0] || (l[0] = (
|
|
426
|
+
modelValue: d.field.addonLeft.name ? d.values[d.field.addonLeft.name] : void 0,
|
|
427
|
+
options: d.field.addonLeft.options || []
|
|
428
|
+
}, d.field.addonLeft.props || {}, {
|
|
429
|
+
onOnSelect: l[0] || (l[0] = (n) => $(d.field.addonLeft, n))
|
|
450
430
|
}), {
|
|
451
|
-
trigger:
|
|
452
|
-
|
|
453
|
-
default:
|
|
454
|
-
|
|
431
|
+
trigger: m(({ selectedLabel: n }) => [
|
|
432
|
+
U(S, { variant: "outline" }, {
|
|
433
|
+
default: m(() => [
|
|
434
|
+
z(V(n), 1)
|
|
455
435
|
]),
|
|
456
436
|
_: 2
|
|
457
437
|
}, 1024)
|
|
458
438
|
]),
|
|
459
439
|
_: 1
|
|
460
|
-
}, 16, ["modelValue", "options"])) :
|
|
440
|
+
}, 16, ["modelValue", "options"])) : d.field.addonLeft.type === "button" ? (p(), v(S, g({
|
|
461
441
|
key: 1,
|
|
462
442
|
variant: "outline"
|
|
463
|
-
},
|
|
464
|
-
onClick: l[1] || (l[1] = (
|
|
443
|
+
}, d.field.addonLeft.props || {}, {
|
|
444
|
+
onClick: l[1] || (l[1] = (n) => L(d.field.addonLeft))
|
|
465
445
|
}), {
|
|
466
|
-
default:
|
|
467
|
-
|
|
446
|
+
default: m(() => [
|
|
447
|
+
z(V(d.field.addonLeft.text), 1)
|
|
468
448
|
]),
|
|
469
449
|
_: 1
|
|
470
|
-
}, 16)) :
|
|
450
|
+
}, 16)) : E("", !0)
|
|
471
451
|
]),
|
|
472
452
|
key: "0"
|
|
473
453
|
} : void 0,
|
|
474
|
-
|
|
454
|
+
B(D)(d.field.addonRight) ? {
|
|
475
455
|
name: "addon-right",
|
|
476
|
-
fn:
|
|
477
|
-
|
|
456
|
+
fn: m(() => [
|
|
457
|
+
d.field.addonRight.type === "select" ? (p(), v(F, g({
|
|
478
458
|
key: 0,
|
|
479
|
-
modelValue:
|
|
480
|
-
options:
|
|
481
|
-
},
|
|
482
|
-
onOnSelect: l[2] || (l[2] = (
|
|
459
|
+
modelValue: d.field.addonRight.name ? d.values[d.field.addonRight.name] : void 0,
|
|
460
|
+
options: d.field.addonRight.options || []
|
|
461
|
+
}, d.field.addonRight.props || {}, {
|
|
462
|
+
onOnSelect: l[2] || (l[2] = (n) => $(d.field.addonRight, n))
|
|
483
463
|
}), {
|
|
484
|
-
trigger:
|
|
485
|
-
|
|
486
|
-
default:
|
|
487
|
-
|
|
464
|
+
trigger: m(({ selectedLabel: n }) => [
|
|
465
|
+
U(S, { variant: "outline" }, {
|
|
466
|
+
default: m(() => [
|
|
467
|
+
z(V(n), 1)
|
|
488
468
|
]),
|
|
489
469
|
_: 2
|
|
490
470
|
}, 1024)
|
|
491
471
|
]),
|
|
492
472
|
_: 1
|
|
493
|
-
}, 16, ["modelValue", "options"])) :
|
|
473
|
+
}, 16, ["modelValue", "options"])) : d.field.addonRight.type === "button" ? (p(), v(S, g({
|
|
494
474
|
key: 1,
|
|
495
475
|
variant: "outline"
|
|
496
|
-
},
|
|
497
|
-
onClick: l[3] || (l[3] = (
|
|
476
|
+
}, d.field.addonRight.props || {}, {
|
|
477
|
+
onClick: l[3] || (l[3] = (n) => L(d.field.addonRight))
|
|
498
478
|
}), {
|
|
499
|
-
default:
|
|
500
|
-
|
|
479
|
+
default: m(() => [
|
|
480
|
+
z(V(d.field.addonRight.text), 1)
|
|
501
481
|
]),
|
|
502
482
|
_: 1
|
|
503
|
-
}, 16)) :
|
|
483
|
+
}, 16)) : E("", !0)
|
|
504
484
|
]),
|
|
505
485
|
key: "1"
|
|
506
486
|
} : void 0
|
|
507
|
-
]), 1040)) : (
|
|
487
|
+
]), 1040)) : (p(), v(J(M.value), g({
|
|
508
488
|
key: 1,
|
|
509
|
-
class:
|
|
510
|
-
},
|
|
489
|
+
class: u.value === "check" || u.value === "switch" && d.field.props?.switchVariant === "basic" ? "" : "w-full"
|
|
490
|
+
}, C.value, T(N.value)), null, 16, ["class"]));
|
|
511
491
|
}
|
|
512
492
|
});
|
|
513
493
|
export {
|
|
514
|
-
|
|
494
|
+
Be as default
|
|
515
495
|
};
|
|
@@ -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
|
};
|