vlite3 1.0.7 → 1.0.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.
@@ -1,7 +1,7 @@
1
1
  import o from "./ButtonGroup.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-c990b8da"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-298c3d8a"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -1,5 +1,5 @@
1
- import o from "./ColorIro.vue.js";
2
- /* empty css */
1
+ import o from "./ColorIro.vue2.js";
2
+ /* empty css */
3
3
  export {
4
4
  o as default
5
5
  };
@@ -6,8 +6,8 @@ import O from "../Input.vue.js";
6
6
  import "../../core/config.js";
7
7
  /* empty css */
8
8
  import y from "../Button.vue.js";
9
- import E from "./ColorIro.vue.js";
10
- /* empty css */
9
+ import E from "./ColorIro.vue2.js";
10
+ /* empty css */
11
11
  import { useEyeDropper as P } from "@vueuse/core";
12
12
  const I = {
13
13
  key: 0,
@@ -1,4 +1,4 @@
1
- import { defineComponent as ye, inject as we, computed as r, ref as y, watch as g, openBlock as i, createElementBlock as m, createBlock as F, normalizeClass as w, createSlots as K, withCtx as x, renderSlot as $, createVNode as B, createCommentVNode as A, createElementVNode as f, Fragment as N, renderList as E, normalizeStyle as L, isMemoSame as Y, mergeProps as X, unref as q } from "vue";
1
+ import { defineComponent as ye, inject as we, computed as i, ref as y, watch as g, openBlock as r, createElementBlock as m, createBlock as U, normalizeClass as w, createSlots as j, withCtx as x, renderSlot as $, createVNode as B, createCommentVNode as W, createElementVNode as f, Fragment as A, renderList as E, normalizeStyle as L, isMemoSame as Y, mergeProps as X, unref as q } from "vue";
2
2
  import Pe from "../CheckBox.vue.js";
3
3
  import Ce from "../Button.vue.js";
4
4
  import Se from "../ConfirmationModal.vue.js";
@@ -14,11 +14,11 @@ const Be = { class: "space-y-6.5" }, Ee = { class: "overflow-x-auto w-full" }, R
14
14
  scope: "col",
15
15
  class: "w-[40px] px-0 text-center font-medium text-muted-foreground",
16
16
  style: { width: "40px" }
17
- }, Ae = { class: "flex items-center justify-center" }, Ne = { class: "[&_tr:last-child]:border-0" }, Ve = {
17
+ }, We = { class: "flex items-center justify-center" }, Ae = { class: "[&_tr:last-child]:border-0" }, Ne = {
18
18
  key: 0,
19
19
  class: "w-[48px] px-0 py-4 align-middle text-center",
20
20
  style: { width: "48px" }
21
- }, Me = { key: 2 }, Ue = ["colspan"], Fe = { key: 1 }, Qe = /* @__PURE__ */ ye({
21
+ }, Ve = { key: 2 }, Me = ["colspan"], Ue = { key: 1 }, Qe = /* @__PURE__ */ ye({
22
22
  __name: "DataTable",
23
23
  props: {
24
24
  rows: { default: () => [] },
@@ -69,18 +69,18 @@ const Be = { class: "space-y-6.5" }, Ee = { class: "overflow-x-auto w-full" }, R
69
69
  if (n in e[0]) return n;
70
70
  }
71
71
  return "_id";
72
- }, Q = (e) => e.sortKey || e.field, a = o, b = G, R = we($e, null), j = r(() => R?.disableSearch ? !1 : a.showSearch), C = r(() => a.hideSelectable ? !1 : R ? R.forceSelectable : !0), d = r(() => J(a.rows, a.keyField)), u = y({ field: "", order: "" }), S = y(
72
+ }, Q = (e) => e.sortKey || e.field, a = o, b = G, R = we($e, null), F = i(() => R?.disableSearch ? !1 : a.showSearch), C = i(() => a.hideSelectable ? !1 : R ? R.forceSelectable : !0), d = i(() => J(a.rows, a.keyField)), u = y({ field: "", order: "" }), S = y(
73
73
  a.pageInfo?.itemsPerPage || a.paginationProps?.itemsPerPage || 10
74
- ), h = y(a.pageInfo?.currentPage || 1), p = y(a.search || ""), k = y(!1), Z = r(() => a.loading);
74
+ ), h = y(a.pageInfo?.currentPage || 1), p = y(a.search || ""), k = y(!1), Z = i(() => a.loading);
75
75
  g(
76
76
  () => a.search,
77
77
  (e) => {
78
78
  e !== void 0 && e !== p.value && (p.value = e);
79
79
  }
80
80
  );
81
- let V = null;
81
+ let N = null;
82
82
  g(p, () => {
83
- V && clearTimeout(V), V = setTimeout(() => {
83
+ N && clearTimeout(N), N = setTimeout(() => {
84
84
  h.value = 1, z();
85
85
  }, 300);
86
86
  }), g(
@@ -108,18 +108,18 @@ const Be = { class: "space-y-6.5" }, Ee = { class: "overflow-x-auto w-full" }, R
108
108
  },
109
109
  { immediate: !0, deep: !0 }
110
110
  );
111
- const M = r(
111
+ const V = i(
112
112
  () => a.rows.length > 0 && a.rows.every((e) => s.value.has(c(e, d.value)))
113
- ), O = r(() => s.value.size > 0 && !M.value), _ = r(() => {
113
+ ), K = i(() => s.value.size > 0 && !V.value), _ = i(() => {
114
114
  const e = [...a.selectedRows || [], ...a.rows], t = /* @__PURE__ */ new Map();
115
115
  return e.forEach((l) => t.set(c(l, d.value), l)), Array.from(s.value).map((l) => t.get(l)).filter(Boolean);
116
116
  }), ee = (e) => {
117
117
  const t = new Set(s.value);
118
- e ? a.rows.forEach((l) => t.add(c(l, d.value))) : a.rows.forEach((l) => t.delete(c(l, d.value))), s.value = t, W();
118
+ e ? a.rows.forEach((l) => t.add(c(l, d.value))) : a.rows.forEach((l) => t.delete(c(l, d.value))), s.value = t, O();
119
119
  }, te = (e) => {
120
120
  const t = new Set(s.value);
121
- t.has(e) ? t.delete(e) : t.add(e), s.value = t, W();
122
- }, W = () => {
121
+ t.has(e) ? t.delete(e) : t.add(e), s.value = t, O();
122
+ }, O = () => {
123
123
  const e = /* @__PURE__ */ new Set(), t = [];
124
124
  a.rows.forEach((l) => {
125
125
  const n = c(l, d.value);
@@ -129,8 +129,8 @@ const Be = { class: "space-y-6.5" }, Ee = { class: "overflow-x-auto w-full" }, R
129
129
  !e.has(n) && s.value.has(n) && (t.push(l), e.add(n));
130
130
  }), b("select", {
131
131
  selected: t,
132
- all: M.value,
133
- indeterminate: O.value
132
+ all: V.value,
133
+ indeterminate: K.value
134
134
  }), b("update:selectedRows", t);
135
135
  }, le = (e) => {
136
136
  const t = a.headers.find((n) => n.field === e), l = t ? Q(t) : e;
@@ -142,9 +142,9 @@ const Be = { class: "space-y-6.5" }, Ee = { class: "overflow-x-auto w-full" }, R
142
142
  }, se = (e) => b("rowClick", e), ne = () => {
143
143
  b("delete", _.value), k.value = !1;
144
144
  };
145
- let U = null;
145
+ let M = null;
146
146
  const z = () => {
147
- U && clearTimeout(U), U = setTimeout(() => {
147
+ M && clearTimeout(M), M = setTimeout(() => {
148
148
  const e = {
149
149
  pagination: { page: h.value, limit: S.value },
150
150
  sort: { ...u.value },
@@ -161,43 +161,46 @@ const Be = { class: "space-y-6.5" }, Ee = { class: "overflow-x-auto w-full" }, R
161
161
  s.value = new Set([...s.value].filter((t) => e.has(t)));
162
162
  }
163
163
  );
164
- const re = r(() => [
164
+ const ie = i(() => [
165
165
  "w-full flex flex-col",
166
166
  a.variant === "raised" ? "bg-background shadow-sm p-2 rounded-lg" : "bg-background rounded",
167
167
  "overflow-hidden",
168
168
  a.bordered ? "border border-border" : "",
169
169
  a.class
170
- ].join(" ")), ie = r(() => ["w-full caption-bottom -text-fs-1", a.tableClass].join(" ")), de = (e) => {
170
+ ].join(" ")), re = i(() => ["w-full caption-bottom -text-fs-1", a.tableClass].join(" ")), de = (e) => {
171
171
  const t = {};
172
- return e.width && !/^w-/.test(e.width) && (t.width = e.width), e.minWidth && (t.minWidth = e.minWidth), t;
173
- }, ce = (e) => e.width && /^w-/.test(e.width) ? e.width : "", ue = r(
172
+ return e.width && !/(?:^|\s|:)w-/.test(e.width) && (t.width = e.width), e.minWidth && !/(?:^|\s|:)min-w-/.test(e.minWidth) && (t.minWidth = e.minWidth), t;
173
+ }, ce = (e) => {
174
+ const t = [];
175
+ return e.width && /(?:^|\s|:)w-/.test(e.width) && t.push(e.width), e.minWidth && /(?:^|\s|:)min-w-/.test(e.minWidth) && t.push(e.minWidth), t.join(" ");
176
+ }, ue = i(
174
177
  () => a.emptyTitleI18n ? P(a.emptyTitleI18n) : a.emptyTitle
175
- ), me = r(
178
+ ), me = i(
176
179
  () => a.emptyDescriptionI18n ? P(a.emptyDescriptionI18n) : a.emptyDescription
177
- ), fe = r(() => {
180
+ ), fe = i(() => {
178
181
  const e = P("vlite.dataTable.confirmDeleteTitle");
179
182
  return e !== "vlite.dataTable.confirmDeleteTitle" ? e : "Confirm Deletion";
180
- }), ve = r(() => {
183
+ }), ve = i(() => {
181
184
  const e = P("vlite.dataTable.confirmDeleteDesc");
182
185
  return e !== "vlite.dataTable.confirmDeleteDesc" ? e : "Are you sure you want to delete the selected items?";
183
- }), he = r(() => {
186
+ }), he = i(() => {
184
187
  const e = P("vlite.dataTable.deleteBtn");
185
188
  return e !== "vlite.dataTable.deleteBtn" ? e : "Delete";
186
- }), ge = r(() => {
189
+ }), ge = i(() => {
187
190
  const e = P("vlite.dataTable.cancelBtn");
188
191
  return e !== "vlite.dataTable.cancelBtn" ? e : "Cancel";
189
192
  });
190
- return (e, t) => (i(), m("div", Be, [
191
- j.value || e.$slots?.["toolbar-left"] || e.$slots?.["toolbar-right"] ? (i(), F(xe, {
193
+ return (e, t) => (r(), m("div", Be, [
194
+ F.value || e.$slots?.["toolbar-left"] || e.$slots?.["toolbar-right"] ? (r(), U(xe, {
192
195
  key: 0,
193
196
  modelValue: p.value,
194
197
  "onUpdate:modelValue": t[1] || (t[1] = (l) => p.value = l),
195
- "show-search": j.value,
198
+ "show-search": F.value,
196
199
  placeholder: o.searchPlaceholder,
197
200
  placeholderI18n: o.searchPlaceholderI18n,
198
201
  class: w(o.toolbarClass),
199
202
  "search-class": o.toolbarSearchClass
200
- }, K({ _: 2 }, [
203
+ }, j({ _: 2 }, [
201
204
  e.$slots?.["toolbar-left"] ? {
202
205
  name: "left",
203
206
  fn: x(() => [
@@ -225,13 +228,13 @@ const Be = { class: "space-y-6.5" }, Ee = { class: "overflow-x-auto w-full" }, R
225
228
  ]),
226
229
  key: "2"
227
230
  } : void 0
228
- ]), 1032, ["modelValue", "show-search", "placeholder", "placeholderI18n", "class", "search-class"])) : A("", !0),
231
+ ]), 1032, ["modelValue", "show-search", "placeholder", "placeholderI18n", "class", "search-class"])) : W("", !0),
229
232
  f("div", {
230
- class: w(re.value)
233
+ class: w(ie.value)
231
234
  }, [
232
235
  f("div", Ee, [
233
236
  f("table", {
234
- class: w([ie.value, "data-table"])
237
+ class: w([re.value, "data-table"])
235
238
  }, [
236
239
  f("thead", {
237
240
  class: w([
@@ -240,17 +243,17 @@ const Be = { class: "space-y-6.5" }, Ee = { class: "overflow-x-auto w-full" }, R
240
243
  ])
241
244
  }, [
242
245
  f("tr", Re, [
243
- C.value ? (i(), m("th", ze, [
244
- f("div", Ae, [
246
+ C.value ? (r(), m("th", ze, [
247
+ f("div", We, [
245
248
  B(Pe, {
246
- "model-value": M.value,
247
- indeterminate: O.value,
249
+ "model-value": V.value,
250
+ indeterminate: K.value,
248
251
  size: "xs",
249
252
  "onUpdate:modelValue": ee
250
253
  }, null, 8, ["model-value", "indeterminate"])
251
254
  ])
252
- ])) : A("", !0),
253
- (i(!0), m(N, null, E(o.headers, (l) => (i(), F(Te, {
255
+ ])) : W("", !0),
256
+ (r(!0), m(A, null, E(o.headers, (l) => (r(), U(Te, {
254
257
  key: l.field,
255
258
  header: l,
256
259
  "sort-config": u.value,
@@ -262,20 +265,20 @@ const Be = { class: "space-y-6.5" }, Ee = { class: "overflow-x-auto w-full" }, R
262
265
  }, null, 8, ["header", "sort-config", "compact", "table-sortable", "class", "style"]))), 128))
263
266
  ])
264
267
  ], 2),
265
- f("tbody", Ne, [
266
- Z.value ? (i(!0), m(N, { key: 0 }, E(Math.min(S.value, 15), (l, n, be, v) => {
268
+ f("tbody", Ae, [
269
+ Z.value ? (r(!0), m(A, { key: 0 }, E(Math.min(S.value, 15), (l, n, be, v) => {
267
270
  const I = [];
268
271
  if (v && v.key === "skeleton-" + l && Y(v, I)) return v;
269
- const T = (i(), m("tr", {
272
+ const T = (r(), m("tr", {
270
273
  key: "skeleton-" + l,
271
274
  class: "border-b border-border/70 bg-background transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted"
272
275
  }, [
273
- C.value ? (i(), m("td", Ve, [...t[8] || (t[8] = [
276
+ C.value ? (r(), m("td", Ne, [...t[8] || (t[8] = [
274
277
  f("div", { class: "flex items-center justify-center" }, [
275
278
  f("div", { class: "h-4 w-4 rounded-[4px] bg-muted/50 animate-pulse" })
276
279
  ], -1)
277
- ])])) : A("", !0),
278
- (i(!0), m(N, null, E(o.headers, (D) => (i(), m("td", {
280
+ ])])) : W("", !0),
281
+ (r(!0), m(A, null, E(o.headers, (D) => (r(), m("td", {
279
282
  key: D.field,
280
283
  class: w(["p-5! align-middle last:pr-6!", [D.hideOnMobile ? "hidden md:table-cell" : ""]])
281
284
  }, [
@@ -286,7 +289,7 @@ const Be = { class: "space-y-6.5" }, Ee = { class: "overflow-x-auto w-full" }, R
286
289
  ], 2))), 128))
287
290
  ]));
288
291
  return T.memo = I, T;
289
- }, t, 2), 128)) : o.rows.length > 0 ? (i(!0), m(N, { key: 1 }, E(o.rows, (l, n, be, v) => {
292
+ }, t, 2), 128)) : o.rows.length > 0 ? (r(!0), m(A, { key: 1 }, E(o.rows, (l, n, be, v) => {
290
293
  const I = [
291
294
  l,
292
295
  s.value.has(c(l, d.value)),
@@ -296,7 +299,7 @@ const Be = { class: "space-y-6.5" }, Ee = { class: "overflow-x-auto w-full" }, R
296
299
  o.hoverable
297
300
  ];
298
301
  if (v && v.key === c(l, d.value) && Y(v, I)) return v;
299
- const T = (i(), F(De, {
302
+ const T = (r(), U(De, {
300
303
  key: c(l, d.value),
301
304
  row: l,
302
305
  headers: o.headers,
@@ -310,7 +313,7 @@ const Be = { class: "space-y-6.5" }, Ee = { class: "overflow-x-auto w-full" }, R
310
313
  onSelect: te,
311
314
  onRowClick: se,
312
315
  class: "[&_td:last-child]:pr-3.5!"
313
- }, K({ _: 2 }, [
316
+ }, j({ _: 2 }, [
314
317
  E(o.headers, (D) => ({
315
318
  name: D.field,
316
319
  fn: x((pe) => [
@@ -319,7 +322,7 @@ const Be = { class: "space-y-6.5" }, Ee = { class: "overflow-x-auto w-full" }, R
319
322
  }))
320
323
  ]), 1032, ["row", "headers", "index", "key-field", "selectable", "is-selected", "hoverable", "striped", "compact"]));
321
324
  return T.memo = I, T;
322
- }, t, 4), 128)) : (i(), m("tr", Me, [
325
+ }, t, 4), 128)) : (r(), m("tr", Ve, [
323
326
  f("td", {
324
327
  colspan: C.value ? o.headers.length + 1 : o.headers.length,
325
328
  class: "align-middle hover:bg-transparent"
@@ -330,7 +333,7 @@ const Be = { class: "space-y-6.5" }, Ee = { class: "overflow-x-auto w-full" }, R
330
333
  description: me.value,
331
334
  icon: o.emptyIcon,
332
335
  class: "border-none! bg-transparent! py-16!"
333
- }, K({ _: 2 }, [
336
+ }, j({ _: 2 }, [
334
337
  e.$slots["empty-action"] ? {
335
338
  name: "action",
336
339
  fn: x(() => [
@@ -340,13 +343,13 @@ const Be = { class: "space-y-6.5" }, Ee = { class: "overflow-x-auto w-full" }, R
340
343
  } : void 0
341
344
  ]), 1032, ["title", "description", "icon"])
342
345
  ])
343
- ], 8, Ue)
346
+ ], 8, Me)
344
347
  ]))
345
348
  ])
346
349
  ], 2)
347
350
  ])
348
351
  ], 2),
349
- o.showPagination && o.pageInfo && o.pageInfo.totalPages > 1 ? (i(), m("div", Fe, [
352
+ o.showPagination && o.pageInfo && o.pageInfo.totalPages > 1 ? (r(), m("div", Ue, [
350
353
  B(q(ke), X({
351
354
  "current-page": h.value,
352
355
  "total-pages": o.pageInfo.totalPages,
@@ -355,7 +358,7 @@ const Be = { class: "space-y-6.5" }, Ee = { class: "overflow-x-auto w-full" }, R
355
358
  onChange: ae,
356
359
  "onUpdate:itemsPerPage": oe
357
360
  }), null, 16, ["current-page", "total-pages", "total-items"])
358
- ])) : A("", !0),
361
+ ])) : W("", !0),
359
362
  B(Se, {
360
363
  show: k.value,
361
364
  "onUpdate:show": t[6] || (t[6] = (l) => k.value = l),
@@ -1,8 +1,8 @@
1
- import { defineComponent as S, computed as p, openBlock as o, createElementBlock as d, normalizeClass as m, withModifiers as B, createElementVNode as r, createVNode as M, createCommentVNode as z, Fragment as N, renderList as V, normalizeStyle as F, renderSlot as L, createBlock as f } from "vue";
2
- import $ from "../CheckBox.vue.js";
3
- import h from "../Price/Price.vue.js";
4
- import T from "../DateTime/DateTime.vue.js";
5
- const W = ["data-state"], E = { class: "flex items-center justify-center" }, H = { class: "max-h-[80px] overflow-y-auto w-full" }, I = ["title", "innerHTML"], j = /* @__PURE__ */ S({
1
+ import { defineComponent as S, computed as p, openBlock as o, createElementBlock as d, normalizeClass as a, withModifiers as B, createElementVNode as r, createVNode as M, createCommentVNode as W, Fragment as z, renderList as N, normalizeStyle as V, renderSlot as h, createBlock as f } from "vue";
2
+ import F from "../CheckBox.vue.js";
3
+ import L from "../Price/Price.vue.js";
4
+ import $ from "../DateTime/DateTime.vue.js";
5
+ const T = ["data-state"], E = { class: "flex items-center justify-center" }, H = { class: "max-h-[80px] overflow-y-auto w-full" }, I = ["title", "innerHTML"], j = /* @__PURE__ */ S({
6
6
  __name: "DataTableRow",
7
7
  props: {
8
8
  row: {},
@@ -17,12 +17,12 @@ const W = ["data-state"], E = { class: "flex items-center justify-center" }, H =
17
17
  },
18
18
  emits: ["select", "rowClick"],
19
19
  setup(i, { emit: w }) {
20
- const a = i, u = w, n = (e, l) => {
20
+ const m = i, u = w, n = (e, l) => {
21
21
  if (!(!e || !l))
22
22
  return l.includes(".") ? l.split(".").reduce((t, s) => t?.[s], e) : e[l];
23
23
  }, x = (e, l, t) => e.format ? e.format(l, t) : l == null ? "-" : e.type === "number" ? new Intl.NumberFormat("en-US").format(Number(l)) : String(l), g = (e, l, t) => {
24
24
  const s = [];
25
- if (e.width && /^w-/.test(e.width) && s.push(e.width), e.capitalize && s.push("capitalize"), e.addStatusColor) {
25
+ if (e.width && /(?:^|\s|:)w-/.test(e.width) && s.push(e.width), e.minWidth && /(?:^|\s|:)min-w-/.test(e.minWidth) && s.push(e.minWidth), e.capitalize && s.push("capitalize"), e.addStatusColor) {
26
26
  const c = y(l);
27
27
  c && s.push(c);
28
28
  }
@@ -52,13 +52,13 @@ const W = ["data-state"], E = { class: "flex items-center justify-center" }, H =
52
52
  left: "text-left",
53
53
  center: "text-center",
54
54
  right: "text-right"
55
- })[e.align || "left"], k = p(() => n(a.row, a.keyField)), v = () => {
56
- u("rowClick", { row: a.row, index: a.index });
55
+ })[e.align || "left"], k = p(() => n(m.row, m.keyField)), v = () => {
56
+ u("rowClick", { row: m.row, index: m.index });
57
57
  }, C = () => {
58
58
  u("select", k.value);
59
59
  };
60
60
  return (e, l) => (o(), d("tr", {
61
- class: m(["border-b data-[state=selected]:bg-muted h-full", [
61
+ class: a(["border-b data-[state=selected]:bg-muted h-full", [
62
62
  i.hoverable ? "hover:bg-muted/20" : "",
63
63
  i.striped && i.index % 2 === 1 ? "bg-muted/20" : "bg-background",
64
64
  i.isSelected ? "bg-muted! hover:bg-muted/30" : "",
@@ -74,39 +74,39 @@ const W = ["data-state"], E = { class: "flex items-center justify-center" }, H =
74
74
  }, ["stop"]))
75
75
  }, [
76
76
  r("div", E, [
77
- M($, {
77
+ M(F, {
78
78
  "model-value": i.isSelected,
79
79
  size: "xs",
80
80
  "onUpdate:modelValue": C
81
81
  }, null, 8, ["model-value"])
82
82
  ])
83
- ])) : z("", !0),
84
- (o(!0), d(N, null, V(i.headers, (t) => (o(), d("td", {
83
+ ])) : W("", !0),
84
+ (o(!0), d(z, null, N(i.headers, (t) => (o(), d("td", {
85
85
  key: t.field,
86
- class: m(["align-middle overflow-hidden max-w-[400px] whitespace-normal break-words", [
86
+ class: a(["align-middle overflow-hidden max-w-[400px] whitespace-normal break-words", [
87
87
  i.compact ? "py-1! -text-fs-1.5! max-sm:pr-10!" : "py-3! pr-5! max-sm:pr-10! -text-fs-1.5!",
88
88
  b(t),
89
89
  t.hideOnMobile ? "hidden md:table-cell" : "",
90
90
  g(t, n(i.row, t.field), i.row)
91
91
  ]]),
92
- style: F({
93
- ...t.width && !/^w-/.test(t.width) ? { width: t.width } : {},
94
- ...t.minWidth ? { minWidth: t.minWidth } : {}
92
+ style: V({
93
+ ...t.width && !/(?:^|\s|:)w-/.test(t.width) ? { width: t.width } : {},
94
+ ...t.minWidth && !/(?:^|\s|:)min-w-/.test(t.minWidth) ? { minWidth: t.minWidth } : {}
95
95
  })
96
96
  }, [
97
97
  r("div", H, [
98
- L(e.$slots, t.field, {
98
+ h(e.$slots, t.field, {
99
99
  value: n(i.row, t.field),
100
100
  row: i.row,
101
101
  index: i.index,
102
102
  field: t.field
103
103
  }, () => [
104
- t.type === "price" ? (o(), f(h, {
104
+ t.type === "price" ? (o(), f(L, {
105
105
  key: 0,
106
106
  value: n(i.row, t.field),
107
107
  class: "block",
108
108
  title: String(n(i.row, t.field))
109
- }, null, 8, ["value", "title"])) : t.type === "date" ? (o(), f(T, {
109
+ }, null, 8, ["value", "title"])) : t.type === "date" ? (o(), f($, {
110
110
  key: 1,
111
111
  value: n(i.row, t.field),
112
112
  class: "block",
@@ -120,7 +120,7 @@ const W = ["data-state"], E = { class: "flex items-center justify-center" }, H =
120
120
  ])
121
121
  ])
122
122
  ], 6))), 128))
123
- ], 10, W));
123
+ ], 10, T));
124
124
  }
125
125
  });
126
126
  export {
@@ -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 e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-ed0b3aa6"]]);
4
+ const s = /* @__PURE__ */ r(o, [["__scopeId", "data-v-273433b2"]]);
5
5
  export {
6
- e as default
6
+ s as default
7
7
  };