vlite3 0.9.6 → 0.9.8

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 (55) hide show
  1. package/components/Accordion/Accordion.vue.d.ts +1 -1
  2. package/components/Accordion/AccordionItem.vue.d.ts +1 -1
  3. package/components/Accordion/AccordionTrigger.vue.d.ts +1 -1
  4. package/components/Alert.vue.d.ts +1 -1
  5. package/components/Avatar.vue.d.ts +2 -2
  6. package/components/Avatar.vue.js +1 -1
  7. package/components/AvatarUploader/AvatarUploader.vue.d.ts +1 -1
  8. package/components/BackButton.vue.d.ts +1 -1
  9. package/components/Badge.vue.d.ts +1 -1
  10. package/components/Barcode/Barcode.vue.d.ts +1 -1
  11. package/components/Breadcrumb/Breadcrumb.vue.d.ts +1 -1
  12. package/components/Button.vue.d.ts +2 -2
  13. package/components/CheckBox.vue.d.ts +1 -1
  14. package/components/Chip/Chip.vue.d.ts +1 -1
  15. package/components/DataTable/DataTable.vue.js +55 -54
  16. package/components/DataTable/DataTableHeader.vue.js +5 -3
  17. package/components/DataTable/DataTableRow.vue.js +23 -24
  18. package/components/DatePicker.vue.js +93 -67
  19. package/components/DateRangePicker.vue.js +28 -26
  20. package/components/Dropdown/DropdownBooleanItem.vue.js +12 -9
  21. package/components/Dropdown/DropdownMenu.vue.js +2 -2
  22. package/components/Dropdown/DropdownMenu.vue2.js +51 -51
  23. package/components/Form/CustomFields.vue.d.ts +4 -0
  24. package/components/Form/CustomFields.vue.js +2 -2
  25. package/components/Form/CustomFields.vue2.js +147 -115
  26. package/components/Form/FormField.vue.d.ts +2 -1
  27. package/components/Form/FormField.vue.js +3 -0
  28. package/components/Form/FormFields.vue.js +2 -2
  29. package/components/Form/FormFields.vue2.js +38 -37
  30. package/components/Form/composables/useForm.d.ts +1 -1
  31. package/components/Form/composables/useForm.js +142 -125
  32. package/components/Form/types.d.ts +6 -0
  33. package/components/Form/utils/form.utils.js +115 -106
  34. package/components/Input.vue.d.ts +3 -3
  35. package/components/Kanban/KanbanBoard.vue2.js +29 -27
  36. package/components/List/List.vue.d.ts +1 -1
  37. package/components/List/List.vue.js +1 -1
  38. package/components/Navbar/Navbar.vue.d.ts +2 -2
  39. package/components/Navbar/NavbarItem.vue.d.ts +1 -1
  40. package/components/Navbar/NavbarTabs.vue.d.ts +1 -1
  41. package/components/NumberInput.vue.d.ts +1 -1
  42. package/components/OTPInput/OTPInput.vue.d.ts +1 -1
  43. package/components/PermissionMatrix/PermissionEditor.vue.d.ts +2 -2
  44. package/components/PermissionMatrix/PermissionMatrix.vue.d.ts +2 -2
  45. package/components/ProgressBar/ProgressBar.vue.d.ts +1 -1
  46. package/components/Screen/Screen.vue.d.ts +1 -1
  47. package/components/SidePanel.vue.d.ts +1 -1
  48. package/components/Spinner/Spinner.vue.d.ts +2 -2
  49. package/components/Stats/Stats.vue.d.ts +1 -1
  50. package/components/StatusChip/StatusChip.vue.d.ts +1 -1
  51. package/index.js +255 -254
  52. package/package.json +2 -2
  53. package/style.css +6 -1
  54. package/utils/functions.d.ts +25 -10
  55. package/utils/functions.js +112 -70
@@ -1,92 +1,101 @@
1
- function g(e) {
1
+ function E(e) {
2
2
  return !!e && typeof e == "object";
3
3
  }
4
- function A(e, t) {
5
- if (!t || !e) return;
6
- const f = t.split(".");
4
+ function d(e, n) {
5
+ if (!n || !e) return;
6
+ const o = n.split(".");
7
7
  let y = e;
8
- for (const n of f) {
8
+ for (const t of o) {
9
9
  if (y == null) return;
10
- y = y[n];
10
+ y = y[t];
11
11
  }
12
12
  return y;
13
13
  }
14
- function h(e, t, f) {
15
- if (!t) return e;
16
- const y = t.split("."), n = { ...e };
17
- let o = n;
14
+ function h(e, n, o) {
15
+ if (!n) return e;
16
+ const y = n.split("."), t = { ...e };
17
+ let i = t;
18
18
  for (let s = 0; s < y.length - 1; s++) {
19
19
  const a = y[s];
20
- Array.isArray(o[a]) ? o[a] = [...o[a]] : o[a] = o[a] ? { ...o[a] } : {}, o = o[a];
20
+ Array.isArray(i[a]) ? i[a] = [...i[a]] : i[a] = i[a] ? { ...i[a] } : {}, i = i[a];
21
21
  }
22
- return o[y[y.length - 1]] = f, n;
22
+ return i[y[y.length - 1]] = o, t;
23
23
  }
24
- function v(e, t) {
25
- return !g(t) || !t.name ? e : A(e, t.name) === void 0 && t.value !== void 0 ? h(e, t.name, t.value) : e;
24
+ function v(e, n) {
25
+ return !E(n) || !n.name ? e : d(e, n.name) === void 0 && n.value !== void 0 ? h(e, n.name, n.value) : e;
26
26
  }
27
- async function w(e, t) {
28
- let f = t ? d(t) : {};
27
+ async function O(e, n) {
28
+ let o = n ? A(n) : {};
29
29
  const y = Array.isArray(e[0]) ? e.flat() : e;
30
- for (const n of y) {
31
- if (!n.name) continue;
32
- const o = n.mapFrom || n.name;
33
- let s = t ? A(t, o) : void 0;
30
+ for (const t of y) {
31
+ if (!t.name) continue;
32
+ const i = t.mapFrom || t.name;
33
+ let s = n ? d(n, i) : void 0;
34
34
  if (s != null) {
35
- const a = n.valueKey || n.key;
35
+ const a = t.valueKey || t.key;
36
36
  a && (Array.isArray(s) ? s = s.map(
37
- (p) => p && typeof p == "object" ? A(p, a) : p
38
- ) : typeof s == "object" && (s = A(s, a))), n.format && (s = await n.format(s, t || {}));
37
+ (u) => u && typeof u == "object" ? d(u, a) : u
38
+ ) : typeof s == "object" && (s = d(s, a))), t.format && (s = await t.format(s, n || {}));
39
39
  }
40
40
  if (s === void 0) {
41
- if (n.mapFrom && t) {
42
- const a = A(t, n.name);
41
+ if (t.mapFrom && n) {
42
+ const a = d(n, t.name);
43
43
  a !== void 0 && (s = a);
44
44
  }
45
45
  if (s === void 0) {
46
- const a = typeof n.value == "function" ? n.value() : n.value;
47
- a !== void 0 && Object.assign(f, h(f, n.name, a));
46
+ const a = typeof t.value == "function" ? t.value() : t.value;
47
+ a !== void 0 && Object.assign(o, h(o, t.name, a));
48
48
  } else
49
- Object.assign(f, h(f, n.name, s));
49
+ Object.assign(o, h(o, t.name, s));
50
50
  } else
51
- Object.assign(f, h(f, n.name, s));
52
- f = v(f, n.addonLeft), f = v(f, n.addonRight);
51
+ Object.assign(o, h(o, t.name, s));
52
+ if (o = v(o, t.addonLeft), o = v(o, t.addonRight), t.type === "customFields" && t.props?.schema) {
53
+ const a = t.props.schema;
54
+ let u = d(o, t.name);
55
+ if (Array.isArray(u) && u.length > 0) {
56
+ const f = await Promise.all(
57
+ u.map((r) => O(a, r))
58
+ );
59
+ Object.assign(o, h(o, t.name, f));
60
+ }
61
+ }
53
62
  }
54
- return f;
63
+ return o;
55
64
  }
56
- function x(e, t) {
57
- return e === void 0 ? !1 : typeof e == "boolean" ? e : typeof e == "function" ? e(t) : !1;
65
+ function F(e, n) {
66
+ return e === void 0 ? !1 : typeof e == "boolean" ? e : typeof e == "function" ? e(n) : !1;
58
67
  }
59
- function F(e, t) {
60
- return Array.isArray(e) ? e.filter((f) => f ? !t.every((n) => {
61
- const o = f[n.name];
62
- return o == null || o === "";
68
+ function b(e, n) {
69
+ return Array.isArray(e) ? e.filter((o) => o ? !n.every((t) => {
70
+ const i = o[t.name];
71
+ return i == null || i === "";
63
72
  }) : !1) : [];
64
73
  }
65
- function b(e, t) {
66
- const f = [], y = Array.isArray(e[0]) ? e.flat() : e;
67
- for (const n of y) {
68
- if (!n.name) continue;
69
- const o = n.type;
70
- if (o === "file" || o === "avatarUpload" || o === "fileUploader") {
71
- const s = A(t, n.name);
72
- s && f.push({
73
- name: n.name,
74
+ function x(e, n) {
75
+ const o = [], y = Array.isArray(e[0]) ? e.flat() : e;
76
+ for (const t of y) {
77
+ if (!t.name) continue;
78
+ const i = t.type;
79
+ if (i === "file" || i === "avatarUpload" || i === "fileUploader") {
80
+ const s = d(n, t.name);
81
+ s && o.push({
82
+ name: t.name,
74
83
  value: s,
75
- type: o,
76
- field: n
84
+ type: i,
85
+ field: t
77
86
  });
78
87
  }
79
- if (o === "customFields" && n.props?.schema) {
80
- const s = A(t, n.name);
88
+ if (i === "customFields" && t.props?.schema) {
89
+ const s = d(n, t.name);
81
90
  if (Array.isArray(s)) {
82
- const p = n.props.schema.filter(
83
- (i) => i.type === "file" || i.type === "avatarUpload" || i.type === "fileUploader"
91
+ const u = t.props.schema.filter(
92
+ (f) => f.type === "file" || f.type === "avatarUpload" || f.type === "fileUploader"
84
93
  );
85
- p.length > 0 && s.forEach((i, r) => {
86
- p.forEach((c) => {
87
- const l = i?.[c.name];
88
- l && f.push({
89
- name: `${n.name}.${r}.${c.name}`,
94
+ u.length > 0 && s.forEach((f, r) => {
95
+ u.forEach((c) => {
96
+ const l = f?.[c.name];
97
+ l && o.push({
98
+ name: `${t.name}.${r}.${c.name}`,
90
99
  value: l,
91
100
  type: c.type,
92
101
  field: c
@@ -96,96 +105,96 @@ function b(e, t) {
96
105
  }
97
106
  }
98
107
  }
99
- return f;
108
+ return o;
100
109
  }
101
- function d(e) {
110
+ function A(e) {
102
111
  if (e === null || typeof e != "object") return e;
103
112
  if (e instanceof Date) return new Date(e.getTime());
104
113
  if (e instanceof File) return e;
105
- if (Array.isArray(e)) return e.map((f) => d(f));
106
- const t = {};
107
- for (const f in e)
108
- Object.prototype.hasOwnProperty.call(e, f) && (t[f] = d(e[f]));
109
- return t;
114
+ if (Array.isArray(e)) return e.map((o) => A(o));
115
+ const n = {};
116
+ for (const o in e)
117
+ Object.prototype.hasOwnProperty.call(e, o) && (n[o] = A(e[o]));
118
+ return n;
110
119
  }
111
120
  function N(e) {
112
121
  return e ? typeof e == "object" && (typeof e.render == "function" || typeof e.setup == "function" || e.__name !== void 0 || e.name !== void 0) : !1;
113
122
  }
114
- function O(e) {
115
- const t = e.type;
116
- return t === "multiSelect" ? [] : t === "switch" || t === "check" ? !1 : null;
117
- }
118
123
  function S(e) {
124
+ const n = e.type;
125
+ return n === "multiSelect" ? [] : n === "switch" || n === "check" ? !1 : null;
126
+ }
127
+ function V(e) {
119
128
  return !!(e == null || e === "" || Array.isArray(e) && e.length === 0);
120
129
  }
121
- async function V(e, t, f, y) {
122
- const n = f === void 0 && y === void 0, o = n ? d(e) : {}, s = Array.isArray(t[0]) ? t.flat() : t, a = f || [], p = y || [];
123
- for (const i of s) {
124
- if (!i.name) continue;
125
- let r = A(e, i.name);
126
- const c = i.name.split(".")[0], l = Object.prototype.hasOwnProperty.call(e, c);
127
- if (S(r)) {
130
+ async function w(e, n, o, y) {
131
+ const t = o === void 0 && y === void 0, i = t ? A(e) : {}, s = Array.isArray(n[0]) ? n.flat() : n, a = o || [], u = y || [];
132
+ for (const f of s) {
133
+ if (!f.name) continue;
134
+ let r = d(e, f.name);
135
+ const c = f.name.split(".")[0], l = Object.prototype.hasOwnProperty.call(e, c);
136
+ if (V(r)) {
128
137
  if (!l) continue;
129
- r = O(i);
138
+ r = S(f);
130
139
  }
131
- if (r = d(r), i.type === "customFields" && i.props?.schema && Array.isArray(r)) {
132
- const k = i.props.schema;
133
- r = await Promise.all(r.map((E) => V(E, k, f, y)));
140
+ if (r = A(r), f.type === "customFields" && f.props?.schema && Array.isArray(r)) {
141
+ const k = f.props.schema;
142
+ r = await Promise.all(r.map((g) => w(g, k, o, y)));
134
143
  }
135
144
  let m = !1;
136
- i.transform && (r = await i.transform(r, e), m = !0);
137
- const u = i.mapTo || i.name;
138
- u !== i.name && (m = !0, n && !i.name.includes(".") && delete o[i.name]), !n || m ? Object.assign(o, h(o, u, r)) : Object.assign(o, h(o, i.name, r));
145
+ f.transform && (r = await f.transform(r, e), m = !0);
146
+ const p = f.mapTo || f.name;
147
+ p !== f.name && (m = !0, t && !f.name.includes(".") && delete i[f.name]), !t || m ? Object.assign(i, h(i, p, r)) : Object.assign(i, h(i, f.name, r));
139
148
  }
140
149
  if (a.length > 0) {
141
- const i = (r, c) => {
150
+ const f = (r, c) => {
142
151
  if (!(!r || typeof r != "object") && !(!c || typeof c != "object"))
143
152
  if (Array.isArray(r) && Array.isArray(c)) {
144
153
  for (const l of a) {
145
- const m = r.find((u) => u && typeof u == "object" && u[l] !== void 0)?.[l];
146
- m !== void 0 && c.forEach((u) => {
147
- u && typeof u == "object" && u[l] === void 0 && (u[l] = d(m));
154
+ const m = r.find((p) => p && typeof p == "object" && p[l] !== void 0)?.[l];
155
+ m !== void 0 && c.forEach((p) => {
156
+ p && typeof p == "object" && p[l] === void 0 && (p[l] = A(m));
148
157
  });
149
158
  }
150
159
  r.forEach((l, m) => {
151
- c[m] && i(l, c[m]);
160
+ c[m] && f(l, c[m]);
152
161
  });
153
162
  } else {
154
163
  for (const l of a)
155
- r[l] !== void 0 && c[l] === void 0 && (c[l] = d(r[l]));
164
+ r[l] !== void 0 && c[l] === void 0 && (c[l] = A(r[l]));
156
165
  for (const l in c)
157
- typeof c[l] == "object" && typeof r[l] == "object" && i(r[l], c[l]);
166
+ typeof c[l] == "object" && typeof r[l] == "object" && f(r[l], c[l]);
158
167
  }
159
168
  };
160
169
  for (const r of a)
161
- e[r] !== void 0 && o[r] === void 0 && (o[r] = d(e[r]));
162
- i(e, o);
170
+ e[r] !== void 0 && i[r] === void 0 && (i[r] = A(e[r]));
171
+ f(e, i);
163
172
  }
164
- if (p.length > 0) {
165
- const i = (r) => {
173
+ if (u.length > 0) {
174
+ const f = (r) => {
166
175
  if (!(!r || typeof r != "object"))
167
176
  if (Array.isArray(r))
168
- r.forEach(i);
177
+ r.forEach(f);
169
178
  else {
170
- for (const c of p)
179
+ for (const c of u)
171
180
  delete r[c];
172
181
  for (const c in r)
173
- i(r[c]);
182
+ f(r[c]);
174
183
  }
175
184
  };
176
- i(o);
185
+ f(i);
177
186
  }
178
- return o;
187
+ return i;
179
188
  }
180
189
  export {
181
- V as cleanSubmitValues,
182
- b as collectFileFields,
183
- d as deepClone,
184
- x as evaluateConditional,
185
- F as filterNullCustomFields,
186
- A as getNestedValue,
187
- w as initializeFormValues,
188
- g as isAddonObject,
190
+ w as cleanSubmitValues,
191
+ x as collectFileFields,
192
+ A as deepClone,
193
+ F as evaluateConditional,
194
+ b as filterNullCustomFields,
195
+ d as getNestedValue,
196
+ O as initializeFormValues,
197
+ E as isAddonObject,
189
198
  N as isComponent,
190
199
  h as setNestedValue
191
200
  };
@@ -26,12 +26,12 @@ declare const __VLS_component: import('vue').DefineComponent<InputProps, {}, {},
26
26
  "onClick:icon"?: (event: MouseEvent) => any;
27
27
  "onClick:icon-right"?: (event: MouseEvent) => any;
28
28
  }>, {
29
- readonly: boolean;
29
+ type: import('../types').InputType;
30
+ class: string;
30
31
  variant: InputVariant;
31
32
  size: InputSize;
32
33
  rounded: InputRounded;
33
- type: import('../types').InputType;
34
- class: string;
34
+ readonly: boolean;
35
35
  disabled: boolean;
36
36
  loading: boolean;
37
37
  modelValue: string | number;
@@ -1,6 +1,8 @@
1
- import { defineComponent as T, defineAsyncComponent as V, ref as j, watch as z, onMounted as A, computed as F, openBlock as d, createElementBlock as i, normalizeClass as m, createElementVNode as r, renderSlot as g, unref as n, toDisplayString as y, setBlockTracking as v, Fragment as f, renderList as h, createVNode as x, withCtx as H, isMemoSame as J, createCommentVNode as O } from "vue";
1
+ import { defineComponent as T, defineAsyncComponent as V, ref as j, watch as z, onMounted as A, computed as F, openBlock as d, createElementBlock as i, normalizeClass as c, createElementVNode as r, renderSlot as g, unref as n, toDisplayString as y, setBlockTracking as v, Fragment as f, renderList as h, createVNode as x, withCtx as H, isMemoSame as J, createCommentVNode as O } from "vue";
2
2
  import { VueDraggable as R } from "vue-draggable-plus";
3
3
  import { useKanbanBoard as q } from "./useKanbanBoard.js";
4
+ import "../../core/config.js";
5
+ import "dayjs";
4
6
  import { $t as G } from "../../utils/i18n.js";
5
7
  const P = { class: "flex items-center justify-between font-semibold text-foreground" }, Q = {
6
8
  key: 0,
@@ -8,7 +10,7 @@ const P = { class: "flex items-center justify-between font-semibold text-foregro
8
10
  }, W = { class: "bg-body p-3 rounded-md shadow-sm border border-border text-sm" }, X = {
9
11
  key: 0,
10
12
  class: "py-4 flex justify-center shrink-0"
11
- }, te = /* @__PURE__ */ T({
13
+ }, ae = /* @__PURE__ */ T({
12
14
  __name: "KanbanBoard",
13
15
  props: {
14
16
  column: {},
@@ -24,42 +26,42 @@ const P = { class: "flex items-center justify-between font-semibold text-foregro
24
26
  },
25
27
  emits: ["change", "update:columnData"],
26
28
  setup(o, { emit: C }) {
27
- const k = V(() => import("../Spinner/Spinner.vue2.js")), l = o, u = C, D = j(null), { items: s, isInitialLoading: I, isLoadingMore: S, pageInfo: w, loadInitial: B, loadMore: K } = q(
28
- l.column.id,
29
- l.loadData,
30
- l.columnData
29
+ const k = V(() => import("../Spinner/Spinner.vue2.js")), t = o, m = C, D = j(null), { items: s, isInitialLoading: I, isLoadingMore: S, pageInfo: w, loadInitial: B, loadMore: K } = q(
30
+ t.column.id,
31
+ t.loadData,
32
+ t.columnData
31
33
  ), N = (e) => {
32
- s.value = e, u("update:columnData", e);
34
+ s.value = e, m("update:columnData", e);
33
35
  };
34
36
  z(
35
- () => l.columnData,
37
+ () => t.columnData,
36
38
  (e) => {
37
39
  e && JSON.stringify(e) !== JSON.stringify(s.value) && (s.value = [...e]);
38
40
  },
39
41
  { deep: !0 }
40
42
  ), A(() => {
41
- l.loadData && (!l.columnData || l.columnData.length === 0) && B();
43
+ t.loadData && (!t.columnData || t.columnData.length === 0) && B();
42
44
  });
43
45
  const $ = (e) => {
44
- const t = e.target;
45
- t.scrollTop + t.clientHeight >= t.scrollHeight - 50 && K();
46
+ const l = e.target;
47
+ l.scrollTop + l.clientHeight >= l.scrollHeight - 50 && K();
46
48
  }, M = (e) => {
47
- u("change", { type: "add", event: e, columnId: l.column.id });
49
+ m("change", { type: "add", event: e, columnId: t.column.id });
48
50
  }, U = (e) => {
49
- u("change", { type: "remove", event: e, columnId: l.column.id });
51
+ m("change", { type: "remove", event: e, columnId: t.column.id });
50
52
  }, E = (e) => {
51
- u("change", { type: "update", event: e, columnId: l.column.id });
53
+ m("change", { type: "update", event: e, columnId: t.column.id });
52
54
  }, L = F(
53
- () => l.column.titleI18n ? G(l.column.titleI18n) : l.column.title
55
+ () => t.column.titleI18n ? G(t.column.titleI18n) : t.column.title
54
56
  );
55
- return (e, t) => (d(), i("div", {
56
- class: m([
57
+ return (e, l) => (d(), i("div", {
58
+ class: c([
57
59
  "flex flex-col bg-card rounded-lg overflow-hidden shrink-0 border border-border/60",
58
60
  o.boardClass || "w-80"
59
61
  ])
60
62
  }, [
61
63
  r("div", {
62
- class: m(["p-3 border-b border-border/80 ", o.headerClass])
64
+ class: c(["p-3 border-b border-border/80 ", o.headerClass])
63
65
  }, [
64
66
  g(e.$slots, "header", {
65
67
  column: o.column,
@@ -73,20 +75,20 @@ const P = { class: "flex items-center justify-between font-semibold text-foregro
73
75
  r("div", {
74
76
  ref_key: "scrollContainer",
75
77
  ref: D,
76
- class: m([
78
+ class: c([
77
79
  "flex-1 flex flex-col overflow-y-auto p-3 custom-scrollbar scrollable-container",
78
80
  o.bodyClass
79
81
  ]),
80
82
  onScroll: $
81
83
  }, [
82
84
  n(I) && n(s).length === 0 ? (d(), i("div", Q, [
83
- t[0] || (v(-1, !0), (t[0] = (d(), i(f, null, h(3, (a) => r("div", {
85
+ l[0] || (v(-1, !0), (l[0] = (d(), i(f, null, h(3, (a) => r("div", {
84
86
  key: "skeleton-" + a,
85
87
  class: "bg-body p-3 rounded-md shadow-sm border border-border animate-pulse flex flex-col gap-3"
86
- }, [...t[3] || (t[3] = [
88
+ }, [...l[3] || (l[3] = [
87
89
  r("div", { class: "h-4 bg-muted/60 rounded w-2/3" }, null, -1),
88
90
  r("div", { class: "h-3 bg-muted/60 rounded w-1/3" }, null, -1)
89
- ])])), 64))).cacheIndex = 0, v(1), t[0])
91
+ ])])), 64))).cacheIndex = 0, v(1), l[0])
90
92
  ])) : (d(), i(f, { key: 1 }, [
91
93
  g(e.$slots, "prepend-item", {
92
94
  column: o.column,
@@ -98,15 +100,15 @@ const P = { class: "flex items-center justify-between font-semibold text-foregro
98
100
  group: o.group,
99
101
  animation: 150,
100
102
  ghostClass: o.ghostClass || "kanban-ghost",
101
- class: m(["flex-1 flex flex-col gap-2 min-h-[50px] py-1", o.draggableClass]),
103
+ class: c(["flex-1 flex flex-col gap-2 min-h-[50px] py-1", o.draggableClass]),
102
104
  onAdd: M,
103
105
  onRemove: U,
104
106
  onUpdate: E
105
107
  }, {
106
108
  default: H(() => [
107
- (d(!0), i(f, null, h(n(s), (a, Y, Z, c) => {
109
+ (d(!0), i(f, null, h(n(s), (a, Y, Z, u) => {
108
110
  const b = [a];
109
- if (c && c.key === a[o.itemKey || "id"] && J(c, b)) return c;
111
+ if (u && u.key === a[o.itemKey || "id"] && J(u, b)) return u;
110
112
  const p = (d(), i("div", {
111
113
  key: a[o.itemKey || "id"],
112
114
  class: "cursor-grab active:cursor-grabbing"
@@ -119,7 +121,7 @@ const P = { class: "flex items-center justify-between font-semibold text-foregro
119
121
  ], !0)
120
122
  ]));
121
123
  return p.memo = b, p;
122
- }, t, 1), 128))
124
+ }, l, 1), 128))
123
125
  ]),
124
126
  _: 3
125
127
  }, 8, ["model-value", "group", "ghostClass", "class"]),
@@ -140,5 +142,5 @@ const P = { class: "flex items-center justify-between font-semibold text-foregro
140
142
  }
141
143
  });
142
144
  export {
143
- te as default
145
+ ae as default
144
146
  };
@@ -2,8 +2,8 @@ import { ListProps } from './types';
2
2
  declare function __VLS_template(): any;
3
3
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
4
4
  declare const __VLS_component: import('vue').DefineComponent<ListProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ListProps> & Readonly<{}>, {
5
- variant: import('./types').ListVariant;
6
5
  class: string;
6
+ variant: import('./types').ListVariant;
7
7
  loading: boolean;
8
8
  columns: import('./types').ListColumns;
9
9
  showColon: boolean;
@@ -5,7 +5,7 @@ import { $t as U } from "../../utils/i18n.js";
5
5
  import { getObjectValue as $ } from "./utils.js";
6
6
  const W = {
7
7
  key: 0,
8
- class: "px-3 py-2.5 border-b border-border/70 flex items-center gap-2 bg-gray-50"
8
+ class: "px-3 py-2.5 border-b border-border/70 flex items-center gap-2 bg-muted"
9
9
  }, X = { class: "text-sm font-semibold text-gray-900 tracking-tight" }, Y = { class: "sm:hidden" }, Z = { class: "hidden sm:block" }, _ = { class: "sm:hidden" }, ee = { class: "hidden sm:block" }, te = {
10
10
  key: 0,
11
11
  class: "px-3 py-8 text-center text-sm text-muted-foreground"
@@ -82,11 +82,11 @@ declare const __VLS_component: import('vue').DefineComponent<NavbarProps, {}, {}
82
82
  }, string, import('vue').PublicProps, Readonly<NavbarProps> & Readonly<{
83
83
  "onToggle-mobile"?: () => any;
84
84
  }>, {
85
- variant: import('../../types/navbar.type').NavbarVariant;
86
- floating: boolean;
87
85
  class: string;
88
86
  height: string;
89
87
  border: boolean;
88
+ variant: import('../../types/navbar.type').NavbarVariant;
89
+ floating: boolean;
90
90
  compact: boolean;
91
91
  position: import('../../types/navbar.type').NavbarPosition;
92
92
  contentClass: string;
@@ -25,8 +25,8 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
25
25
  }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
26
26
  onClick?: (event: MouseEvent) => any;
27
27
  }>, {
28
- variant: "default" | "pill" | "underline" | "ghost";
29
28
  class: string;
29
+ variant: "default" | "pill" | "underline" | "ghost";
30
30
  disabled: boolean;
31
31
  active: boolean;
32
32
  orientation: "horizontal" | "vertical";
@@ -10,9 +10,9 @@ interface Props {
10
10
  class?: string;
11
11
  }
12
12
  declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
13
+ class: string;
13
14
  variant: NavbarTabsVariant;
14
15
  size: NavbarTabsSize;
15
- class: string;
16
16
  activeClass: string;
17
17
  inactiveClass: string;
18
18
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
@@ -24,11 +24,11 @@ declare const _default: import('vue').DefineComponent<NumberInputProps, {}, {},
24
24
  onFocus?: (event: FocusEvent) => any;
25
25
  "onUpdate:modelValue"?: (value: number) => any;
26
26
  }>, {
27
- readonly: boolean;
28
27
  mode: "solid" | "outline" | "ghost";
29
28
  variant: "split" | "stacked";
30
29
  size: "xs" | "sm" | "md" | "lg" | "xl";
31
30
  rounded: "none" | "sm" | "md" | "lg" | "xl" | "2xl" | "full";
31
+ readonly: boolean;
32
32
  disabled: boolean;
33
33
  modelValue: number;
34
34
  step: number;
@@ -20,9 +20,9 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
20
20
  onComplete?: (value: string) => any;
21
21
  }>, {
22
22
  length: number;
23
+ type: "text" | "number";
23
24
  variant: "solid" | "outline" | "ghost";
24
25
  size: "sm" | "md" | "lg";
25
- type: "text" | "number";
26
26
  error: boolean;
27
27
  disabled: boolean;
28
28
  placeholder: string;
@@ -18,9 +18,9 @@ declare const _default: import('vue').DefineComponent<PermissionEditorProps, {},
18
18
  }, string, import('vue').PublicProps, Readonly<PermissionEditorProps> & Readonly<{
19
19
  "onUpdate:modelValue"?: (value: string[]) => any;
20
20
  }>, {
21
- readonly: boolean;
22
- size: PermissionMatrixSize;
23
21
  class: string;
22
+ size: PermissionMatrixSize;
23
+ readonly: boolean;
24
24
  layout: PermissionEditorLayout;
25
25
  searchable: boolean;
26
26
  defaultExpanded: string[];
@@ -4,9 +4,9 @@ declare const _default: import('vue').DefineComponent<PermissionMatrixProps, {},
4
4
  }, string, import('vue').PublicProps, Readonly<PermissionMatrixProps> & Readonly<{
5
5
  "onUpdate:modelValue"?: (value: PermissionMap) => any;
6
6
  }>, {
7
- readonly: boolean;
8
- size: PermissionMatrixSize;
9
7
  class: string;
8
+ size: PermissionMatrixSize;
9
+ readonly: boolean;
10
10
  searchable: boolean;
11
11
  toggleMode: import('./types').PermissionToggleMode;
12
12
  collapsible: boolean;
@@ -1,9 +1,9 @@
1
1
  import { ProgressBarProps, ProgressBarVariant, ProgressBarSize } from '../../types/progressbar';
2
2
  declare const _default: import('vue').DefineComponent<ProgressBarProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ProgressBarProps> & Readonly<{}>, {
3
+ type: import('../../types/progressbar').ProgressBarType;
3
4
  variant: ProgressBarVariant;
4
5
  size: ProgressBarSize;
5
6
  rounded: string;
6
- type: import('../../types/progressbar').ProgressBarType;
7
7
  striped: boolean;
8
8
  indeterminate: boolean;
9
9
  showValue: boolean;
@@ -120,8 +120,8 @@ declare const __VLS_component: import('vue').DefineComponent<ScreenProps, {}, {}
120
120
  onDelete?: (items: any[]) => any;
121
121
  onAdd?: () => any;
122
122
  }>, {
123
- data: any[];
124
123
  name: string;
124
+ data: any[];
125
125
  loading: boolean;
126
126
  exportProps: Record<string, any> | boolean;
127
127
  importProps: Record<string, any> | boolean;
@@ -50,8 +50,8 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
50
50
  onOnAfterOpen?: () => any;
51
51
  onOnAfterClose?: () => any;
52
52
  }>, {
53
- size: SidePanelSize;
54
53
  class: string;
54
+ size: SidePanelSize;
55
55
  headerClass: string;
56
56
  position: SidePanelPosition;
57
57
  show: boolean;
@@ -1,8 +1,8 @@
1
1
  import { SpinnerProps, SpinnerSize, SpinnerColor, SpinnerVariant } from './types';
2
2
  declare const _default: import('vue').DefineComponent<SpinnerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<SpinnerProps> & Readonly<{}>, {
3
- variant: SpinnerVariant;
4
- size: SpinnerSize;
5
3
  class: string;
6
4
  color: SpinnerColor;
5
+ variant: SpinnerVariant;
6
+ size: SpinnerSize;
7
7
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLSpanElement>;
8
8
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import { StatsProps } from './types';
2
2
  declare const _default: import('vue').DefineComponent<StatsProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<StatsProps> & Readonly<{}>, {
3
- variant: import('./types').StatsVariant;
4
3
  class: string;
4
+ variant: import('./types').StatsVariant;
5
5
  columns: number | string;
6
6
  layout: import('./types').StatsLayout;
7
7
  attached: boolean;
@@ -14,8 +14,8 @@ interface Props {
14
14
  class?: string;
15
15
  }
16
16
  declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
17
+ class: string;
17
18
  size: ChipProps["size"];
18
19
  hideIcon: boolean | null;
19
- class: string;
20
20
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
21
21
  export default _default;