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.
Files changed (102) hide show
  1. package/components/Accordion/Accordion.vue.js +19 -16
  2. package/components/Accordion/AccordionContent.vue.js +2 -2
  3. package/components/Accordion/AccordionItem.vue.js +38 -36
  4. package/components/CategoryManager/CategoryManager.vue2.js +4 -3
  5. package/components/CategoryManager/CategoryNode.vue.js +30 -30
  6. package/components/CategoryMenu/CategoryMenu.vue.js +9 -11
  7. package/components/Chart/GanttChart.vue.d.ts +18 -2
  8. package/components/Chart/GanttChart.vue.js +1 -1
  9. package/components/Chart/GanttChart.vue2.js +1347 -604
  10. package/components/Chart/GanttChartConnectorRouting.d.ts +83 -0
  11. package/components/Chart/GanttChartConnectorRouting.js +405 -0
  12. package/components/Chart/GanttChartDateUtils.d.ts +38 -0
  13. package/components/Chart/GanttChartDateUtils.js +79 -0
  14. package/components/Chart/GanttChartDependencyUtils.d.ts +92 -0
  15. package/components/Chart/GanttChartDependencyUtils.js +109 -0
  16. package/components/Chart/GanttChartResizePreviewUtils.d.ts +52 -0
  17. package/components/Chart/GanttChartResizePreviewUtils.js +53 -0
  18. package/components/Chart/GanttChartTooltipUtils.d.ts +41 -0
  19. package/components/Chart/GanttChartTooltipUtils.js +63 -0
  20. package/components/Chart/index.d.ts +3 -1
  21. package/components/Chart/types.d.ts +92 -2
  22. package/components/Chart/types.js +8 -0
  23. package/components/ColorPicker/ColorIro.vue2.js +155 -0
  24. package/components/ColorPicker/ColorIro.vue3.js +2 -2
  25. package/components/ColorPicker/ColorPicker.vue.d.ts +5 -0
  26. package/components/ColorPicker/ColorPicker.vue.js +111 -65
  27. package/components/ColorPicker/constants.d.ts +2 -0
  28. package/components/ColorPicker/constants.js +4 -0
  29. package/components/ColorPicker/index.d.ts +1 -0
  30. package/components/CommandPalette/CommandPaletteContent.vue2.js +1 -1
  31. package/components/CommandPalette/{CommandPaletteItem.vue.js → CommandPaletteItem.vue2.js} +1 -1
  32. package/components/Dropdown/Dropdown.vue.js +100 -97
  33. package/components/Dropdown/DropdownMenu.vue.js +1 -1
  34. package/components/Form/AccordionView.vue.js +5 -220
  35. package/components/Form/AccordionView.vue3.js +250 -0
  36. package/components/Form/Form.vue.js +2 -2
  37. package/components/Form/Form.vue2.js +309 -280
  38. package/components/Form/FormField.vue.js +177 -197
  39. package/components/Form/FormFields.vue.js +1 -1
  40. package/components/Form/FormFields.vue2.js +60 -60
  41. package/components/Form/FormSkeleton.vue.js +50 -35
  42. package/components/Form/TableView.vue.js +59 -43
  43. package/components/Form/composables/useForm.js +159 -148
  44. package/components/Form/index.vue2.js +7 -7
  45. package/components/Form/utils/form.utils.d.ts +2 -0
  46. package/components/Form/utils/form.utils.js +17 -13
  47. package/components/GoogleMap.vue.d.ts +1 -1
  48. package/components/Kanban/Kanban.vue.d.ts +16 -2
  49. package/components/Kanban/Kanban.vue.js +2 -2
  50. package/components/Kanban/Kanban.vue2.js +150 -86
  51. package/components/Kanban/types.d.ts +37 -0
  52. package/components/NavbarCommandPalette.vue.js +1 -1
  53. package/components/PanZoomViewport/PanZoomViewport.vue.d.ts +189 -0
  54. package/components/PanZoomViewport/PanZoomViewport.vue.js +7 -0
  55. package/components/PanZoomViewport/PanZoomViewport.vue2.js +536 -0
  56. package/components/PanZoomViewport/index.d.ts +2 -0
  57. package/components/PanZoomViewport/types.d.ts +121 -0
  58. package/components/ScaleGenerator/ScaleGenerator.vue.d.ts +3 -0
  59. package/components/ScaleGenerator/ScaleGenerator.vue.js +5 -108
  60. package/components/ScaleGenerator/ScaleGenerator.vue2.js +143 -2
  61. package/components/ScaleGenerator/types.d.ts +2 -0
  62. package/components/Screen/ScreenFilter.vue.js +19 -18
  63. package/components/SeoProvider/SeoProvider.vue.d.ts +4 -1
  64. package/components/SeoProvider/SeoProvider.vue.js +39 -33
  65. package/components/SeoProvider/domAdapter.d.ts +1 -4
  66. package/components/SeoProvider/domAdapter.js +71 -58
  67. package/components/SeoProvider/index.d.ts +5 -2
  68. package/components/SeoProvider/normalizeSeo.d.ts +10 -49
  69. package/components/SeoProvider/normalizeSeo.js +246 -182
  70. package/components/SeoProvider/plainText.d.ts +8 -0
  71. package/components/SeoProvider/plainText.js +117 -0
  72. package/components/SeoProvider/seoUrl.d.ts +13 -0
  73. package/components/SeoProvider/seoUrl.js +25 -0
  74. package/components/SeoProvider/structuredData.d.ts +100 -0
  75. package/components/SeoProvider/structuredData.js +33 -0
  76. package/components/SeoProvider/types.d.ts +47 -109
  77. package/components/Tabes/Tabes.vue.js +1 -1
  78. package/components/Tabes/Tabes.vue2.js +215 -193
  79. package/components/Tabes/TabesMarkerGeometry.d.ts +34 -0
  80. package/components/Tabes/TabesMarkerGeometry.js +21 -0
  81. package/components/ThemeProvider/ThemeProvider.vue.d.ts +2 -0
  82. package/components/ThemeProvider/ThemeProvider.vue.js +29 -23
  83. package/components/ThemeProvider/index.d.ts +1 -1
  84. package/components/ThemeProvider/themeVars.d.ts +9 -13
  85. package/components/ThemeProvider/themeVars.js +173 -125
  86. package/components/ThemeProvider/types.d.ts +10 -0
  87. package/components/ToastNotification.vue.js +1 -1
  88. package/components/ToastNotification.vue2.js +3 -3
  89. package/components/index.d.ts +3 -2
  90. package/composables/useKeyStroke.d.ts +18 -0
  91. package/composables/useKeyStroke.js +103 -77
  92. package/composables/useTheme.js +1 -1
  93. package/index.d.ts +2 -0
  94. package/index.js +380 -350
  95. package/package.json +12 -4
  96. package/style.css +1 -1
  97. package/utils/environment.d.ts +29 -0
  98. package/utils/environment.js +4 -0
  99. package/utils/functions.js +14 -13
  100. package/components/ColorPicker/ColorIro.vue.js +0 -141
  101. package/components/Form/AccordionView.vue2.js +0 -4
  102. /package/components/Dropdown/{DropdownMenu.vue2.js → DropdownMenu.vue3.js} +0 -0
@@ -1,27 +1,27 @@
1
- import { defineComponent as E, computed as f, markRaw as O, openBlock as c, createBlock as m, mergeProps as p, toHandlers as P, createSlots as M, unref as L, withCtx as u, createVNode as N, createTextVNode as y, toDisplayString as x, createCommentVNode as T, resolveDynamicComponent as q } from "vue";
2
- import { resolveFieldType as G, isComponent as R, isAddonObject as B } from "./utils/form.utils.js";
3
- import J from "../NumberInput.vue.js";
4
- import z from "../Button.vue.js";
5
- import { resolveI18nText as K } from "../../utils/i18n.js";
6
- import V from "../Input.vue.js";
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 Q from "../Switch.vue.js";
9
- import W from "../CheckBox.vue.js";
10
- import X from "../FilePicker/index.vue.js";
11
- import Y from "../AvatarUploader/AvatarUploader.vue.js";
12
- import Z from "../ThumbnailSelector/ThumbnailSelector.vue.js";
13
- import _ from "../TagInput/TagInput.vue.js";
14
- import w from "../Dropdown/Dropdown.vue.js";
15
- import ee from "../MultiSelect/MultiSelect.vue.js";
16
- import ae from "../DatePicker.vue.js";
17
- import le from "../DateRangePicker.vue.js";
18
- import ie from "../ColorPicker/ColorPicker.vue.js";
19
- import te from "../IconPicker.vue.js";
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 ne from "../ChoiceBox/ChoiceBox.vue.js";
22
- import de from "../RichTextEditor/RichTextEditor.vue.js";
21
+ import oe from "../ChoiceBox/ChoiceBox.vue.js";
22
+ import se from "../RichTextEditor/RichTextEditor.vue.js";
23
23
  /* empty css */
24
- const Ne = /* @__PURE__ */ E({
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(t, { emit: U }) {
44
- const e = t, v = U, d = (a, l) => {
45
- v("change", { value: a, data: l });
46
- }, S = (a) => {
47
- v("change", { value: a });
48
- }, o = f(() => G(e.field, {
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
- })), b = f(
53
- () => o.value === "number" && e.field.isSensitiveField === !0
54
- ), D = f(() => {
55
- const a = o.value;
56
- if (R(a))
57
- return O(a);
58
- switch (a) {
59
- case "text":
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 || r === !0,
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
- }, h = K(
92
+ }, y = X(
114
93
  e.field.placeholderI18n,
115
94
  e.field.placeholder
116
- ), I = e.variant === "floating" && e.label && !e.floatingActive, s = I ? "" : h;
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: s,
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" && b.value)
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: s,
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: s,
145
+ placeholder: f,
167
146
  class: e.field.className
168
147
  };
169
148
  if (a === "switch") {
170
149
  const {
171
- variant: n,
172
- rounded: oe,
173
- error: se,
174
- switchVariant: ue,
175
- ...k
150
+ variant: r,
151
+ rounded: ue,
152
+ error: fe,
153
+ switchVariant: me,
154
+ ...w
176
155
  } = i;
177
156
  return {
178
- ...k,
179
- disabled: k.disabled || k.readonly,
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: s,
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
- ...I ? { text: "​" } : {}
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: h,
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((n) => ({
231
- id: n.value ?? n.label,
232
- title: n.label,
233
- titleI18n: n.labelI18n,
234
- description: n.description || n.subtitle,
235
- descriptionI18n: n.descriptionI18n || n.subtitleI18n,
236
- icon: n.icon,
237
- disabled: n.disabled,
238
- badge: n.badge || n.data?.badge,
239
- badgeI18n: n.badgeI18n || n.data?.badgeI18n,
240
- data: n.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: s,
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
- ...I ? { text: "​" } : {}
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: s,
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: s,
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: s,
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 n = e.value && typeof e.value == "object" ? e.value : { images: [], thumbnail: null };
327
+ const r = e.value && typeof e.value == "object" ? e.value : { images: [], thumbnail: null };
348
328
  return {
349
329
  ...i,
350
- images: Array.isArray(n.images) ? n.images : [],
351
- thumbnail: n.thumbnail ?? null,
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 R(a) ? {
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
- }), F = f(() => {
364
- const a = o.value;
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": S
367
- } : a === "number" && b.value ? {
346
+ "update:modelValue": R
347
+ } : a === "number" && x.value ? {
368
348
  "update:modelValue": (l) => {
369
- const r = l === "" ? void 0 : Number(l);
370
- v("change", { value: isNaN(r) ? void 0 : r });
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": S
353
+ "update:modelValue": R
374
354
  } : a === "select" ? {
375
355
  onSelect: (l) => {
376
- d(l.value, l.data);
356
+ o(l.value, l.data);
377
357
  }
378
358
  } : a === "multiSelect" ? {
379
- change: (l) => d(l)
359
+ change: (l) => o(l)
380
360
  } : a === "choiceBox" ? {
381
361
  change: (l) => {
382
- const r = e.field.props?.multiple;
383
- let g = null;
384
- r && Array.isArray(l) ? g = l.map(
385
- (i) => e.field.options?.find((h) => (h.value ?? h.label) === i)?.data
386
- ) : g = e.field.options?.find((i) => (i.value ?? i.label) === l)?.data, d(l, g);
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) => d(l)
369
+ change: (l) => o(l)
390
370
  } : a === "fileUploader" || a === "file" ? {
391
371
  change: (l) => {
392
- d(l);
372
+ o(l);
393
373
  },
394
374
  "update:modelValue": (l) => {
395
- d(l);
375
+ o(l);
396
376
  }
397
377
  } : a === "avatarUpload" ? {
398
378
  change: (l) => {
399
- d(l);
379
+ o(l);
400
380
  },
401
381
  "update:modelValue": (l) => {
402
- d(l);
382
+ o(l);
403
383
  }
404
384
  } : a === "tags" ? {
405
- "update:modelValue": S,
406
- change: (l) => d(l)
385
+ "update:modelValue": R,
386
+ change: (l) => o(l)
407
387
  } : a === "richTextEditor" ? {
408
- "update:modelValue": (l) => d(l)
388
+ "update:modelValue": (l) => o(l)
409
389
  } : a === "color" ? {
410
- change: (l) => d(l)
390
+ change: (l) => o(l)
411
391
  } : a === "iconPicker" ? {
412
- onSelect: (l) => d(l)
392
+ onSelect: (l) => o(l)
413
393
  } : a === "customFields" ? {
414
- change: (l) => d(l)
394
+ change: (l) => o(l)
415
395
  } : a === "thumbnailSelector" ? {
416
396
  change: (l) => {
417
- d(l);
397
+ o(l);
418
398
  },
419
399
  "update:images": (l) => {
420
- const r = e.value && typeof e.value == "object" ? e.value : { images: [], thumbnail: null };
421
- d({ ...r, images: l });
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 r = e.value && typeof e.value == "object" ? e.value : { images: [], thumbnail: null };
425
- d({ ...r, thumbnail: l });
404
+ const n = e.value && typeof e.value == "object" ? e.value : { images: [], thumbnail: null };
405
+ o({ ...n, thumbnail: l });
426
406
  }
427
- } : R(a) ? {
407
+ } : A(a) ? {
428
408
  onChange: (l) => {
429
- d(l.value, l.data);
409
+ o(l.value, l.data);
430
410
  }
431
411
  } : {};
432
- }), H = f(() => {
433
- const a = o.value;
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
- }), j = f(() => H.value || o.value === "textarea" || b.value), C = (a, l) => {
436
- v("addonChange", a.name, { value: l.value });
437
- }, $ = (a) => {
438
- a.action && v("addonAction", 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) => j.value ? (c(), m(V, p({ key: 0 }, A.value, P(F.value)), M({ _: 2 }, [
441
- L(B)(t.field.addonLeft) ? {
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: u(() => [
444
- t.field.addonLeft.type === "select" ? (c(), m(w, p({
423
+ fn: m(() => [
424
+ d.field.addonLeft.type === "select" ? (p(), v(F, g({
445
425
  key: 0,
446
- modelValue: t.field.addonLeft.name ? t.values[t.field.addonLeft.name] : void 0,
447
- options: t.field.addonLeft.options || []
448
- }, t.field.addonLeft.props || {}, {
449
- onOnSelect: l[0] || (l[0] = (r) => C(t.field.addonLeft, r))
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: u(({ selectedLabel: r }) => [
452
- N(z, { variant: "outline" }, {
453
- default: u(() => [
454
- y(x(r), 1)
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"])) : t.field.addonLeft.type === "button" ? (c(), m(z, p({
440
+ }, 16, ["modelValue", "options"])) : d.field.addonLeft.type === "button" ? (p(), v(S, g({
461
441
  key: 1,
462
442
  variant: "outline"
463
- }, t.field.addonLeft.props || {}, {
464
- onClick: l[1] || (l[1] = (r) => $(t.field.addonLeft))
443
+ }, d.field.addonLeft.props || {}, {
444
+ onClick: l[1] || (l[1] = (n) => L(d.field.addonLeft))
465
445
  }), {
466
- default: u(() => [
467
- y(x(t.field.addonLeft.text), 1)
446
+ default: m(() => [
447
+ z(V(d.field.addonLeft.text), 1)
468
448
  ]),
469
449
  _: 1
470
- }, 16)) : T("", !0)
450
+ }, 16)) : E("", !0)
471
451
  ]),
472
452
  key: "0"
473
453
  } : void 0,
474
- L(B)(t.field.addonRight) ? {
454
+ B(D)(d.field.addonRight) ? {
475
455
  name: "addon-right",
476
- fn: u(() => [
477
- t.field.addonRight.type === "select" ? (c(), m(w, p({
456
+ fn: m(() => [
457
+ d.field.addonRight.type === "select" ? (p(), v(F, g({
478
458
  key: 0,
479
- modelValue: t.field.addonRight.name ? t.values[t.field.addonRight.name] : void 0,
480
- options: t.field.addonRight.options || []
481
- }, t.field.addonRight.props || {}, {
482
- onOnSelect: l[2] || (l[2] = (r) => C(t.field.addonRight, r))
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: u(({ selectedLabel: r }) => [
485
- N(z, { variant: "outline" }, {
486
- default: u(() => [
487
- y(x(r), 1)
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"])) : t.field.addonRight.type === "button" ? (c(), m(z, p({
473
+ }, 16, ["modelValue", "options"])) : d.field.addonRight.type === "button" ? (p(), v(S, g({
494
474
  key: 1,
495
475
  variant: "outline"
496
- }, t.field.addonRight.props || {}, {
497
- onClick: l[3] || (l[3] = (r) => $(t.field.addonRight))
476
+ }, d.field.addonRight.props || {}, {
477
+ onClick: l[3] || (l[3] = (n) => L(d.field.addonRight))
498
478
  }), {
499
- default: u(() => [
500
- y(x(t.field.addonRight.text), 1)
479
+ default: m(() => [
480
+ z(V(d.field.addonRight.text), 1)
501
481
  ]),
502
482
  _: 1
503
- }, 16)) : T("", !0)
483
+ }, 16)) : E("", !0)
504
484
  ]),
505
485
  key: "1"
506
486
  } : void 0
507
- ]), 1040)) : (c(), m(q(D.value), p({
487
+ ]), 1040)) : (p(), v(J(M.value), g({
508
488
  key: 1,
509
- class: o.value === "check" || o.value === "switch" && t.field.props?.switchVariant === "basic" ? "" : "w-full"
510
- }, A.value, P(F.value)), null, 16, ["class"]));
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
- Ne as default
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-d4db8f9b"]]);
4
+ const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-eef10419"]]);
5
5
  export {
6
6
  f as default
7
7
  };