vlite3 1.1.2 → 1.1.4

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 (87) hide show
  1. package/components/AttachmentsList/AttachmentsList.vue.d.ts +1 -1
  2. package/components/AttachmentsList/AttachmentsList.vue.js +237 -163
  3. package/components/Avatar.vue.js +1 -1
  4. package/components/AvatarUploader/AvatarUploader.vue.js +40 -37
  5. package/components/Button.vue.js +30 -28
  6. package/components/Carousel/Carousel.vue.d.ts +2 -2
  7. package/components/CategoryManager/CategoryManager.vue.d.ts +10 -2
  8. package/components/CategoryManager/CategoryManager.vue.js +137 -118
  9. package/components/CategoryManager/CategoryNode.vue.d.ts +2 -0
  10. package/components/CategoryManager/CategoryNode.vue.js +93 -88
  11. package/components/Chat/ChatBubble.vue.js +22 -22
  12. package/components/CheckBox.vue.js +29 -28
  13. package/components/CommandPalette/CommandPaletteContent.vue2.js +1 -1
  14. package/components/CommandPalette/{CommandPaletteItem.vue.js → CommandPaletteItem.vue2.js} +1 -1
  15. package/components/ConfirmationModal.vue.js +30 -28
  16. package/components/CopyButton.vue.d.ts +50 -0
  17. package/components/CopyButton.vue.js +69 -0
  18. package/components/CopyButton.vue2.js +4 -0
  19. package/components/DataTable/DataTable.vue.js +44 -44
  20. package/components/DatePicker.vue.js +41 -35
  21. package/components/DateRangePicker.vue.js +18 -17
  22. package/components/Dropdown/Dropdown.vue.d.ts +3 -0
  23. package/components/Dropdown/Dropdown.vue.js +117 -115
  24. package/components/Dropdown/DropdownBooleanItem.vue.js +16 -15
  25. package/components/Dropdown/DropdownItem.vue.js +21 -20
  26. package/components/Dropdown/DropdownMenu.vue.js +1 -1
  27. package/components/Dropdown/DropdownMenu.vue2.js +13 -12
  28. package/components/Dropdown/DropdownTrigger.vue.d.ts +2 -0
  29. package/components/Dropdown/DropdownTrigger.vue.js +10 -6
  30. package/components/Dropdown/composables/useDropdownHydration.d.ts +2 -0
  31. package/components/Dropdown/composables/useDropdownSelection.d.ts +1 -0
  32. package/components/Dropdown/composables/useDropdownSelection.js +46 -31
  33. package/components/FilePicker/FilePicker.vue.js +93 -90
  34. package/components/Form/CustomFields.vue.js +2 -2
  35. package/components/Form/Form.vue.js +2 -2
  36. package/components/Form/Form.vue2.js +68 -64
  37. package/components/Form/FormField.vue.js +204 -148
  38. package/components/Form/FormFields.vue.js +2 -2
  39. package/components/Form/FormFields.vue2.js +28 -27
  40. package/components/Form/types.d.ts +2 -2
  41. package/components/Form/utils/form.utils.d.ts +3 -3
  42. package/components/Form/utils/form.utils.js +37 -37
  43. package/components/Input.vue.js +64 -62
  44. package/components/Invoice/Invoice.vue.js +9 -7
  45. package/components/Invoice/InvoiceTotals.vue.d.ts +14 -0
  46. package/components/Invoice/InvoiceTotals.vue.js +86 -0
  47. package/components/Invoice/InvoiceTotals.vue2.js +4 -0
  48. package/components/Invoice/InvoiceVariant1.vue.d.ts +3 -1
  49. package/components/Invoice/InvoiceVariant1.vue.js +194 -207
  50. package/components/Invoice/InvoiceVariant2.vue.d.ts +3 -1
  51. package/components/Invoice/InvoiceVariant2.vue.js +109 -118
  52. package/components/Invoice/InvoiceVariant3.vue.d.ts +3 -1
  53. package/components/Invoice/InvoiceVariant3.vue.js +157 -167
  54. package/components/Invoice/InvoiceVariant4.vue.d.ts +3 -1
  55. package/components/Invoice/InvoiceVariant4.vue.js +192 -202
  56. package/components/Invoice/index.d.ts +1 -0
  57. package/components/Invoice/types.d.ts +22 -0
  58. package/components/Masonry/Masonry.vue.d.ts +1 -1
  59. package/components/Modal.vue.js +1 -1
  60. package/components/Modal.vue2.js +60 -54
  61. package/components/MultiSelect/MultiSelect.vue.js +47 -46
  62. package/components/MultiSelect/composables/useMultiSelectHydration.d.ts +2 -0
  63. package/components/NavbarCommandPalette.vue.js +1 -1
  64. package/components/NumberInput.vue.js +2 -2
  65. package/components/NumberInput.vue2.js +121 -116
  66. package/components/PricingPlan/PricingPlan.vue.d.ts +1 -1
  67. package/components/SidePanel.vue.js +2 -2
  68. package/components/SidePanel.vue2.js +58 -52
  69. package/components/Stats/StatItem.vue.js +96 -91
  70. package/components/Stats/types.d.ts +1 -0
  71. package/components/Switch.vue.d.ts +6 -1
  72. package/components/Switch.vue.js +61 -24
  73. package/components/TagInput/TagInput.vue.d.ts +187 -0
  74. package/components/TagInput/TagInput.vue.js +113 -0
  75. package/components/TagInput/TagInput.vue2.js +4 -0
  76. package/components/TagInput/index.d.ts +1 -0
  77. package/components/Textarea.vue.js +19 -18
  78. package/components/ThumbnailSelector/ThumbnailSelector.vue.js +2 -2
  79. package/components/ThumbnailSelector/ThumbnailSelector.vue2.js +19 -16
  80. package/core/config.d.ts +36 -0
  81. package/index.d.ts +2 -0
  82. package/index.js +130 -124
  83. package/package.json +1 -1
  84. package/style.css +616 -1
  85. package/types/button.d.ts +1 -1
  86. package/types/styles.d.ts +1 -0
  87. package/utils/functions.js +9 -9
@@ -1,6 +1,6 @@
1
- import { defineComponent as J, computed as K, ref as Q, openBlock as o, createElementBlock as u, normalizeClass as y, Fragment as p, renderList as W, withMemo as X, unref as d, createBlock as b, withCtx as D, resolveDynamicComponent as z, createTextVNode as V, toDisplayString as F, createCommentVNode as l, createElementVNode as Y, createVNode as Z, markRaw as _ } from "vue";
1
+ import { defineComponent as J, computed as K, ref as Q, openBlock as o, createElementBlock as u, normalizeClass as y, Fragment as p, renderList as W, withMemo as X, unref as d, createBlock as b, withCtx as z, resolveDynamicComponent as B, createTextVNode as V, toDisplayString as F, createCommentVNode as l, createElementVNode as Y, createVNode as Z, markRaw as _ } from "vue";
2
2
  import { isComponent as m, getNestedValue as w, resolveFieldType as ee } from "./utils/form.utils.js";
3
- import q from "../Label.vue.js";
3
+ import f from "../Label.vue.js";
4
4
  import te from "./FormField.vue.js";
5
5
  import { $t as ne } from "../../utils/i18n.js";
6
6
  const ae = {
@@ -15,7 +15,7 @@ const ae = {
15
15
  }, ce = {
16
16
  key: 2,
17
17
  class: "mt-1 -text-fs-2.5 text-destructive"
18
- }, ge = /* @__PURE__ */ J({
18
+ }, he = /* @__PURE__ */ J({
19
19
  __name: "FormFields",
20
20
  props: {
21
21
  schema: {},
@@ -34,8 +34,8 @@ const ae = {
34
34
  excludeTypes: { default: () => [] }
35
35
  },
36
36
  emits: ["change", "addonAction"],
37
- setup(a, { emit: $ }) {
38
- const s = a, k = $, B = K(() => {
37
+ setup(a, { emit: q }) {
38
+ const s = a, k = q, $ = K(() => {
39
39
  if (s.className) return s.className;
40
40
  }), r = (t) => ee(t, {
41
41
  values: s.values,
@@ -54,16 +54,16 @@ const ae = {
54
54
  k("change", t, n);
55
55
  }, H = (t) => {
56
56
  k("addonAction", t);
57
- }, g = (t) => t && typeof t == "object" && t.name ? t.name : null, h = Q({}), M = (t) => {
58
- h.value[t] = !0;
57
+ }, h = (t) => t && typeof t == "object" && t.name ? t.name : null, g = Q({}), M = (t) => {
58
+ g.value[t] = !0;
59
59
  }, O = (t) => {
60
- h.value[t] = !1;
60
+ g.value[t] = !1;
61
61
  }, L = (t) => {
62
62
  const n = x(t), e = r(t);
63
63
  let i = n != null && n !== "" && !(Array.isArray(n) && n.length === 0);
64
- const U = typeof n == "number" && !isNaN(n);
65
- return e === "dateRangePicker" && n && typeof n == "object" && (i = !!(n.startDate || n.endDate || n.start || n.end)), f(t) || e === "number" ? h.value[t.name] || i || U : i || U;
66
- }, f = (t) => {
64
+ const D = typeof n == "number" && !isNaN(n);
65
+ return e === "dateRangePicker" && n && typeof n == "object" && (i = !!(n.startDate || n.endDate || n.start || n.end)), T(t) || e === "number" ? g.value[t.name] || i || D : i || D;
66
+ }, T = (t) => {
67
67
  const n = r(t) || "text";
68
68
  return ["text", "email", "password", "tel", "url", "search", "textarea"].includes(n);
69
69
  }, G = (t) => {
@@ -78,15 +78,16 @@ const ae = {
78
78
  "customFields",
79
79
  "avatarUpload",
80
80
  "fileUploader",
81
- "file"
81
+ "file",
82
+ "choiceBox"
82
83
  ].includes(n);
83
- }, T = (t) => {
84
+ }, U = (t) => {
84
85
  const n = c(t);
85
86
  if (!(!n || m(n)))
86
87
  return n;
87
88
  };
88
89
  return (t, n) => (o(), u("div", {
89
- class: y(["grid", a.variant === "floating" ? "gap-5 mt-1" : "gap-4", B.value])
90
+ class: y(["grid", a.variant === "floating" ? "gap-5 mt-1" : "gap-4", $.value])
90
91
  }, [
91
92
  (o(!0), u(p, null, W(a.schema, (e) => (o(), u(p, {
92
93
  key: e.name
@@ -97,7 +98,7 @@ const ae = {
97
98
  v(e),
98
99
  C(e),
99
100
  N(e),
100
- h.value[e.name],
101
+ g.value[e.name],
101
102
  a.variant,
102
103
  a.size,
103
104
  a.rounded,
@@ -106,19 +107,19 @@ const ae = {
106
107
  a.fieldLoading[e.name],
107
108
  r(e),
108
109
  d(m)(r(e)) || r(e) === "customFields" ? a.values : null,
109
- g(e.addonLeft) ? d(w)(a.values, g(e.addonLeft)) : null,
110
- g(e.addonRight) ? d(w)(a.values, g(e.addonRight)) : null
110
+ h(e.addonLeft) ? d(w)(a.values, h(e.addonLeft)) : null,
111
+ h(e.addonRight) ? d(w)(a.values, h(e.addonRight)) : null
111
112
  ], () => (o(), u("div", {
112
113
  key: 0,
113
114
  class: y(["max-md:col-span-full! form-field-item", P(e)])
114
115
  }, [
115
- c(e) && r(e) !== "switch" && r(e) !== "check" && r(e) !== "customFields" && !A(e) ? (o(), b(q, {
116
+ c(e) && r(e) !== "switch" && r(e) !== "check" && r(e) !== "customFields" && r(e) !== "choiceBox" && !A(e) ? (o(), b(f, {
116
117
  key: 0,
117
118
  for: e.name,
118
119
  class: "mb-2 block -text-fs-2! font-medium"
119
120
  }, {
120
- default: D(() => [
121
- d(m)(c(e)) ? (o(), b(z(R(c(e))), { key: 0 })) : (o(), u(p, { key: 1 }, [
121
+ default: z(() => [
122
+ d(m)(c(e)) ? (o(), b(B(R(c(e))), { key: 0 })) : (o(), u(p, { key: 1 }, [
122
123
  V(F(c(e)) + " ", 1),
123
124
  e.required && a.showRequiredAsterisk ? (o(), u("span", ae, "*")) : l("", !0)
124
125
  ], 64))
@@ -126,11 +127,11 @@ const ae = {
126
127
  _: 2
127
128
  }, 1032, ["for"])) : l("", !0),
128
129
  Y("div", {
129
- class: y(["relative", ["switch", "check"].includes(r(e)) ? "w-auto" : "w-full"]),
130
+ class: y(["relative", r(e) === "check" || r(e) === "switch" && e.props?.switchVariant === "basic" ? "w-auto" : "w-full"]),
130
131
  onFocusin: (i) => M(e.name),
131
132
  onFocusout: (i) => O(e.name)
132
133
  }, [
133
- A(e) && T(e) && !f(e) ? (o(), u("label", {
134
+ A(e) && U(e) && !T(e) ? (o(), u("label", {
134
135
  key: 0,
135
136
  for: e.name,
136
137
  class: y([
@@ -138,7 +139,7 @@ const ae = {
138
139
  L(e) ? "-top-2.5 left-3 text-xs bg-background px-1 text-black shadow-[0_4px_4px_-4px_bg-background]" : `top-1/2 -translate-y-1/2 text-sm text-muted-foreground/70 ${G(e)}`
139
140
  ])
140
141
  }, [
141
- d(m)(c(e)) ? (o(), b(z(R(c(e))), { key: 0 })) : (o(), u(p, { key: 1 }, [
142
+ d(m)(c(e)) ? (o(), b(B(R(c(e))), { key: 0 })) : (o(), u(p, { key: 1 }, [
142
143
  V(F(c(e)) + " ", 1),
143
144
  e.required ? (o(), u("span", oe, "*")) : l("", !0)
144
145
  ], 64))
@@ -152,7 +153,7 @@ const ae = {
152
153
  } : { ...e, props: { ...e.props || {}, id: e.name } },
153
154
  value: x(e),
154
155
  floatingActive: L(e),
155
- label: r(e) === "customFields" ? void 0 : A(e) ? T(e) : void 0,
156
+ label: r(e) === "customFields" ? void 0 : A(e) ? U(e) : void 0,
156
157
  values: a.values,
157
158
  errors: a.errors,
158
159
  variant: a.variant,
@@ -168,12 +169,12 @@ const ae = {
168
169
  onAddonAction: H
169
170
  }, null, 8, ["field", "value", "floatingActive", "label", "values", "errors", "variant", "size", "rounded", "disabled", "readonly", "error", "isUpdate", "loading", "onChange"])
170
171
  ], 42, se),
171
- c(e) && (r(e) === "switch" || r(e) === "check") ? (o(), b(q, {
172
+ r(e) === "check" || r(e) === "switch" && e.props?.switchVariant === "basic" ? (o(), b(f, {
172
173
  key: 1,
173
174
  for: e.name,
174
175
  class: "ml-2 text-sm font-medium cursor-pointer"
175
176
  }, {
176
- default: D(() => [
177
+ default: z(() => [
177
178
  V(F(c(e)) + " ", 1),
178
179
  e.required ? (o(), u("span", ue, "*")) : l("", !0)
179
180
  ]),
@@ -186,5 +187,5 @@ const ae = {
186
187
  }
187
188
  });
188
189
  export {
189
- ge as default
190
+ he as default
190
191
  };
@@ -23,7 +23,7 @@ export interface IFormAddon {
23
23
  /**
24
24
  * Form field types - maps to corresponding UI components
25
25
  */
26
- export type IFormFieldType = 'text' | 'email' | 'password' | 'number' | 'file' | 'fileUploader' | 'tel' | 'url' | 'search' | 'date' | 'dateRangePicker' | 'textarea' | 'time' | 'iconPicker' | 'color' | 'switch' | 'check' | 'customFields' | 'select' | 'multiSelect' | 'avatarUpload' | 'thumbnailSelector' | Component;
26
+ export type IFormFieldType = 'text' | 'email' | 'password' | 'number' | 'file' | 'fileUploader' | 'tel' | 'url' | 'search' | 'date' | 'dateRangePicker' | 'textarea' | 'time' | 'iconPicker' | 'color' | 'switch' | 'check' | 'customFields' | 'select' | 'multiSelect' | 'choiceBox' | 'avatarUpload' | 'thumbnailSelector' | 'tags' | Component;
27
27
  /**
28
28
  * Context passed to conditional functions
29
29
  */
@@ -126,7 +126,7 @@ export interface IForm {
126
126
  addonLeft?: string | IFormAddon;
127
127
  /** Right addon — plain text or an addon config object (select/button) */
128
128
  addonRight?: string | IFormAddon;
129
- /** Options for select/multiSelect/dropdown fields */
129
+ /** Options for select/multiSelect/dropdown fields/choiceBox */
130
130
  options?: IDropdownOptions;
131
131
  /** Validation function - returns error message or empty string */
132
132
  validation?: IFormValidation;
@@ -39,9 +39,9 @@ export declare function filterNullCustomFields(value: Record<string, any>[] | un
39
39
  * Collect file fields from schema that need upload processing.
40
40
  *
41
41
  * Extended to handle `thumbnailSelector` fields:
42
- * - The field value is { images: string[], thumbnail: string | null }
43
- * - Each image URL that is a base64 data URI is collected for upload
44
- * - After upload the images array and thumbnail are updated with resolved URLs
42
+ * - The field value is { images: string[], thumbnail: string | null }
43
+ * - Each image URL that is a base64 data URI is collected for upload
44
+ * - After upload the images array and thumbnail are updated with resolved URLs
45
45
  */
46
46
  export declare function collectFileFields(schema: IForm[] | IForm[][], values: Record<string, any>, globalValuesContext?: Record<string, any>, isUpdateContext?: boolean): Array<{
47
47
  name: string;
@@ -1,4 +1,4 @@
1
- function x(e) {
1
+ function E(e) {
2
2
  return !!e && typeof e == "object";
3
3
  }
4
4
  function U(e) {
@@ -13,7 +13,7 @@ function b(e, n) {
13
13
  }
14
14
  return e.type;
15
15
  }
16
- function p(e, n) {
16
+ function y(e, n) {
17
17
  if (!n || !e) return;
18
18
  const i = n.split(".");
19
19
  let f = e;
@@ -34,7 +34,7 @@ function A(e, n, i) {
34
34
  return a[f[f.length - 1]] = i, o;
35
35
  }
36
36
  function k(e, n) {
37
- return !x(n) || !n.name ? e : p(e, n.name) === void 0 && n.value !== void 0 ? A(e, n.name, n.value) : e;
37
+ return !E(n) || !n.name ? e : y(e, n.name) === void 0 && n.value !== void 0 ? A(e, n.name, n.value) : e;
38
38
  }
39
39
  async function T(e, n, i, f) {
40
40
  let o = n ? S(n) : {};
@@ -45,16 +45,16 @@ async function T(e, n, i, f) {
45
45
  if (t.when && !v(t.when, h))
46
46
  continue;
47
47
  const m = t.mapFrom || t.name;
48
- let s = n ? p(n, m) : void 0;
48
+ let s = n ? y(n, m) : void 0;
49
49
  if (s != null) {
50
50
  const u = t.valueKey || t.key;
51
51
  u && (Array.isArray(s) ? s = s.map(
52
- (r) => r && typeof r == "object" ? p(r, u) : r
53
- ) : typeof s == "object" && (s = p(s, u))), t.format && (s = await t.format(s, n || {}));
52
+ (r) => r && typeof r == "object" ? y(r, u) : r
53
+ ) : typeof s == "object" && (s = y(s, u))), t.format && (s = await t.format(s, n || {}));
54
54
  }
55
55
  if (s === void 0) {
56
56
  if (t.mapFrom && n) {
57
- const u = p(n, t.name);
57
+ const u = y(n, t.name);
58
58
  u !== void 0 && (s = u);
59
59
  }
60
60
  if (s === void 0) {
@@ -66,12 +66,12 @@ async function T(e, n, i, f) {
66
66
  Object.assign(o, A(o, t.name, s));
67
67
  if (o = k(o, t.addonLeft), o = k(o, t.addonRight), b(t, h) === "customFields" && t.props?.schema) {
68
68
  const u = t.props.schema;
69
- let r = p(o, t.name);
69
+ let r = y(o, t.name);
70
70
  if (Array.isArray(r) && r.length > 0) {
71
- const y = await Promise.all(
71
+ const p = await Promise.all(
72
72
  r.map((l) => T(u, l, a, f))
73
73
  );
74
- Object.assign(o, A(o, t.name, y));
74
+ Object.assign(o, A(o, t.name, p));
75
75
  }
76
76
  }
77
77
  }
@@ -80,7 +80,7 @@ async function T(e, n, i, f) {
80
80
  function v(e, n) {
81
81
  return e === void 0 ? !1 : typeof e == "boolean" ? e : typeof e == "function" ? e(n) : !1;
82
82
  }
83
- function $(e, n) {
83
+ function P(e, n) {
84
84
  return Array.isArray(e) ? e.filter((i) => i ? !n.every((o) => {
85
85
  const a = i[o.name];
86
86
  return a == null || a === "";
@@ -89,7 +89,7 @@ function $(e, n) {
89
89
  function N(e) {
90
90
  return typeof e == "string" && e.startsWith("data:image/");
91
91
  }
92
- function B(e, n, i, f) {
92
+ function $(e, n, i, f) {
93
93
  const o = [], a = i || n, c = Array.isArray(e[0]) ? e.flat() : e;
94
94
  for (const t of c) {
95
95
  if (!t.name) continue;
@@ -98,7 +98,7 @@ function B(e, n, i, f) {
98
98
  continue;
99
99
  const m = b(t, h);
100
100
  if (m === "file" || m === "avatarUpload" || m === "fileUploader") {
101
- const s = p(n, t.name);
101
+ const s = y(n, t.name);
102
102
  s && o.push({
103
103
  name: t.name,
104
104
  value: s,
@@ -107,7 +107,7 @@ function B(e, n, i, f) {
107
107
  });
108
108
  }
109
109
  if (m === "thumbnailSelector") {
110
- const s = p(n, t.name);
110
+ const s = y(n, t.name);
111
111
  s && typeof s == "object" && Array.isArray(s.images) && s.images.some((r) => N(r)) && o.push({
112
112
  name: t.name,
113
113
  value: s,
@@ -116,17 +116,17 @@ function B(e, n, i, f) {
116
116
  });
117
117
  }
118
118
  if (m === "customFields" && t.props?.schema) {
119
- const s = p(n, t.name);
119
+ const s = y(n, t.name);
120
120
  if (Array.isArray(s)) {
121
- const r = t.props.schema.filter((y) => !U(y.type));
122
- r.length > 0 && s.forEach((y, l) => {
121
+ const r = t.props.schema.filter((p) => !U(p.type));
122
+ r.length > 0 && s.forEach((p, l) => {
123
123
  r.forEach((g) => {
124
- const F = { values: y || {}, globalValues: a, isUpdate: f };
124
+ const F = { values: p || {}, globalValues: a, isUpdate: f };
125
125
  if (g.when && !v(g.when, F))
126
126
  return;
127
127
  const d = b(g, F);
128
128
  if (d === "file" || d === "avatarUpload" || d === "fileUploader") {
129
- const w = y?.[g.name];
129
+ const w = p?.[g.name];
130
130
  w && o.push({
131
131
  name: `${t.name}.${l}.${g.name}`,
132
132
  value: w,
@@ -151,11 +151,11 @@ function S(e) {
151
151
  Object.prototype.hasOwnProperty.call(e, i) && (n[i] = S(e[i]));
152
152
  return n;
153
153
  }
154
- function I(e, n) {
154
+ function B(e, n) {
155
155
  const i = b(e, n);
156
- return i === "multiSelect" ? [] : i === "thumbnailSelector" ? { images: [], thumbnail: null } : i === "switch" || i === "check" ? !1 : (i === "fileUploader" || i === "file" || i === "avatarUpload") && e.props?.multiple ? [] : null;
156
+ return i === "multiSelect" || i === "tags" || i === "choiceBox" && e.props?.multiple ? [] : i === "thumbnailSelector" ? { images: [], thumbnail: null } : i === "switch" || i === "check" ? !1 : (i === "fileUploader" || i === "file" || i === "avatarUpload") && e.props?.multiple ? [] : null;
157
157
  }
158
- function K(e) {
158
+ function I(e) {
159
159
  return !!(e == null || e === "" || Array.isArray(e) && e.length === 0);
160
160
  }
161
161
  function O(e, n) {
@@ -169,33 +169,33 @@ function O(e, n) {
169
169
  O(e[i], n);
170
170
  }
171
171
  }
172
- async function P(e, n, i, f, o, a) {
172
+ async function K(e, n, i, f, o, a) {
173
173
  const c = S(e), t = o || e, h = Array.isArray(n[0]) ? n.flat() : n, m = /* @__PURE__ */ new Set();
174
174
  for (const r of h) {
175
175
  if (!r.name) continue;
176
- const y = { values: e, globalValues: t, isUpdate: a };
177
- (!r.when || v(r.when, y)) && m.add(r.name);
176
+ const p = { values: e, globalValues: t, isUpdate: a };
177
+ (!r.when || v(r.when, p)) && m.add(r.name);
178
178
  }
179
179
  const s = i || [], u = [];
180
180
  for (const r of h) {
181
181
  if (!r.name) continue;
182
- const y = { values: e, globalValues: t, isUpdate: a };
183
- if (r.when && !v(r.when, y)) {
182
+ const p = { values: e, globalValues: t, isUpdate: a };
183
+ if (r.when && !v(r.when, p)) {
184
184
  m.has(r.name) || delete c[r.name];
185
185
  continue;
186
186
  }
187
- let l = p(e, r.name);
188
- const g = r.name.split(".")[0], F = Object.prototype.hasOwnProperty.call(e, g), d = b(r, y);
189
- if (Array.isArray(l) && (d === "fileUploader" || d === "file" || d === "avatarUpload") && (l = l.filter((V) => V != null && V !== "")), K(l)) {
187
+ let l = y(e, r.name);
188
+ const g = r.name.split(".")[0], F = Object.prototype.hasOwnProperty.call(e, g), d = b(r, p);
189
+ if (Array.isArray(l) && (d === "fileUploader" || d === "file" || d === "avatarUpload") && (l = l.filter((V) => V != null && V !== "")), I(l)) {
190
190
  if (!F) {
191
191
  m.has(r.name) || delete c[r.name];
192
192
  continue;
193
193
  }
194
- l = I(r, y);
194
+ l = B(r, p);
195
195
  }
196
196
  if (l = S(l), d === "customFields" && r.props?.schema && Array.isArray(l)) {
197
197
  const V = r.props.schema;
198
- l = await Promise.all(l.map((E) => P(E, V, i, f, t, a)));
198
+ l = await Promise.all(l.map((x) => K(x, V, i, f, t, a)));
199
199
  }
200
200
  r.transform && (l = await r.transform(l, e));
201
201
  const w = r.mapTo || r.name;
@@ -204,14 +204,14 @@ async function P(e, n, i, f, o, a) {
204
204
  return s.length > 0 && O(c, s), u.length > 0 && O(c, u), c;
205
205
  }
206
206
  export {
207
- P as cleanSubmitValues,
208
- B as collectFileFields,
207
+ K as cleanSubmitValues,
208
+ $ as collectFileFields,
209
209
  S as deepClone,
210
210
  v as evaluateConditional,
211
- $ as filterNullCustomFields,
212
- p as getNestedValue,
211
+ P as filterNullCustomFields,
212
+ y as getNestedValue,
213
213
  T as initializeFormValues,
214
- x as isAddonObject,
214
+ E as isAddonObject,
215
215
  U as isComponent,
216
216
  b as resolveFieldType,
217
217
  A as setNestedValue