vlite3 0.7.13 → 0.7.15

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 (58) hide show
  1. package/components/Button.vue.js +1 -1
  2. package/components/ColorPicker/ColorIro.vue3.js +2 -2
  3. package/components/ColorPicker/ColorPicker.vue.js +18 -17
  4. package/components/{CommandPaletteContent.vue.d.ts → CommandPalette/CommandPaletteContent.vue.d.ts} +3 -3
  5. package/components/CommandPalette/CommandPaletteContent.vue.js +7 -0
  6. package/components/CommandPalette/CommandPaletteContent.vue2.js +180 -0
  7. package/components/CommandPalette/CommandPaletteItem.vue.d.ts +15 -0
  8. package/components/CommandPalette/CommandPaletteItem.vue2.js +7 -0
  9. package/components/CommandPalette/CommandPaletteItem.vue3.js +60 -0
  10. package/components/CommandPalette/index.d.ts +5 -0
  11. package/components/CommandPalette/types.d.ts +40 -0
  12. package/components/CommandPalette/useCommandPaletteItems.d.ts +15 -0
  13. package/components/CommandPalette/useCommandPaletteItems.js +99 -0
  14. package/components/CommandPalette/useCommandPaletteNav.d.ts +13 -0
  15. package/components/CommandPalette/useCommandPaletteNav.js +49 -0
  16. package/components/DataList/DataList.vue.js +53 -50
  17. package/components/DataTable/DataTable.vue.js +185 -173
  18. package/components/DatePicker.vue.js +3 -2
  19. package/components/DateRangePicker.vue.js +26 -25
  20. package/components/Dropdown/Dropdown.vue.js +20 -20
  21. package/components/Dropdown/DropdownMenu.vue.js +5 -256
  22. package/components/Dropdown/DropdownMenu.vue2.js +256 -2
  23. package/components/Form/CustomFields.vue.js +1 -1
  24. package/components/Form/CustomFields.vue2.js +102 -97
  25. package/components/Form/Form.vue.d.ts +0 -1
  26. package/components/Form/Form.vue.js +2 -2
  27. package/components/Form/Form.vue2.js +20 -20
  28. package/components/Form/FormFields.vue.js +2 -2
  29. package/components/Form/FormFields.vue2.js +90 -78
  30. package/components/IconPicker.vue.js +3 -2
  31. package/components/ImportData/ImportStep2.vue.js +10 -9
  32. package/components/List/List.vue.js +205 -180
  33. package/components/Modal.vue.js +2 -2
  34. package/components/Modal.vue2.js +82 -96
  35. package/components/MultiSelect/MultiSelect.vue.js +7 -7
  36. package/components/Navbar/Navbar.vue.js +12 -12
  37. package/components/NavbarCommandPalette.vue.d.ts +7 -30
  38. package/components/NavbarCommandPalette.vue.js +40 -40
  39. package/components/PermissionMatrix/PermissionEditorList.vue.js +1 -1
  40. package/components/PermissionMatrix/PermissionEditorList.vue2.js +84 -75
  41. package/components/PermissionMatrix/PermissionEditorMatrix.vue.js +2 -2
  42. package/components/PermissionMatrix/PermissionEditorMatrix.vue2.js +122 -107
  43. package/components/PermissionMatrix/PermissionMatrix.vue.js +2 -2
  44. package/components/PermissionMatrix/PermissionMatrix.vue2.js +161 -138
  45. package/components/PermissionMatrix/PermissionTopBar.vue.js +19 -18
  46. package/components/Screen/Screen.vue.js +169 -166
  47. package/components/Screen/ScreenFilter.vue.js +4 -3
  48. package/components/SidePanel.vue.js +5 -146
  49. package/components/SidePanel.vue2.js +146 -2
  50. package/components/SidebarMenu/SidebarMenuItem.vue.js +26 -25
  51. package/components/Workbook/Sheet.vue.js +3 -2
  52. package/index.d.ts +1 -1
  53. package/index.js +1 -1
  54. package/package.json +1 -1
  55. package/style.css +1 -1
  56. package/components/CommandPaletteContent.vue.js +0 -7
  57. package/components/CommandPaletteContent.vue2.js +0 -311
  58. /package/components/ColorPicker/{ColorIro.vue.js → ColorIro.vue2.js} +0 -0
@@ -1,21 +1,21 @@
1
- import { defineComponent as T, useSlots as z, computed as v, openBlock as t, createElementBlock as r, normalizeClass as g, renderSlot as k, createBlock as y, createCommentVNode as m, createElementVNode as u, toDisplayString as A, Fragment as c, renderList as f, createSlots as p, withCtx as C, mergeProps as x } from "vue";
2
- import G from "../Icon.vue.js";
3
- import $ from "./ListFieldRow.vue.js";
4
- import { $t as P } from "../../utils/i18n.js";
5
- import { getObjectValue as q } from "./utils.js";
6
- const H = {
1
+ import { defineComponent as J, useSlots as K, computed as g, openBlock as r, createElementBlock as l, normalizeClass as C, renderSlot as p, createBlock as x, createCommentVNode as k, createElementVNode as d, toDisplayString as N, Fragment as b, renderList as f, unref as S, isMemoSame as B, createSlots as j, withCtx as L, mergeProps as M } from "vue";
2
+ import Q from "../Icon.vue.js";
3
+ import F from "./ListFieldRow.vue.js";
4
+ import { $t as U } from "../../utils/i18n.js";
5
+ import { getObjectValue as $ } from "./utils.js";
6
+ const W = {
7
7
  key: 0,
8
8
  class: "px-3 py-2.5 border-b border-border/70 flex items-center gap-2 bg-gray-50"
9
- }, J = { class: "text-sm font-semibold text-gray-900 tracking-tight" }, K = { class: "sm:hidden" }, N = { class: "hidden sm:block" }, Q = { class: "sm:hidden" }, U = { class: "hidden sm:block" }, W = {
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"
12
- }, X = { key: 1 }, Y = { key: 2 }, Z = {
12
+ }, re = { key: 1 }, oe = { key: 2 }, le = {
13
13
  key: 1,
14
14
  class: "px-3 py-8 text-center text-sm text-muted-foreground"
15
- }, _ = {
15
+ }, ne = {
16
16
  key: 3,
17
17
  class: "border-t border-border/70 px-3 py-2.5"
18
- }, ne = /* @__PURE__ */ T({
18
+ }, me = /* @__PURE__ */ J({
19
19
  __name: "List",
20
20
  props: {
21
21
  fields: {},
@@ -31,31 +31,31 @@ const H = {
31
31
  skeletonRows: { default: 6 },
32
32
  stackedBorderStyle: { default: "none" }
33
33
  },
34
- setup(d) {
35
- const o = d, D = z(), h = v(() => o.fields.filter((l) => {
36
- const a = q(l.key, o.data);
37
- return l.whenTrue && !a ? !1 : l.when ? l.when(a, o.data) : !0;
38
- })), i = v(() => {
34
+ setup(s) {
35
+ const o = s, G = K(), y = g(() => o.fields.filter((n) => {
36
+ const u = $(n.key, o.data);
37
+ return n.whenTrue && !u ? !1 : n.when ? n.when(u, o.data) : !0;
38
+ })), i = g(() => {
39
39
  if (o.columns === 1)
40
- return { left: [], right: [], full: h.value };
41
- const l = [], a = [], n = [];
42
- for (const s of h.value) {
43
- if (s.lineByLine) {
44
- n.push(s);
40
+ return { left: [], right: [], full: y.value };
41
+ const n = [], u = [], t = [];
42
+ for (const h of y.value) {
43
+ if (h.lineByLine) {
44
+ t.push(h);
45
45
  continue;
46
46
  }
47
- l.length <= a.length ? l.push(s) : a.push(s);
47
+ n.length <= u.length ? n.push(h) : u.push(h);
48
48
  }
49
- const e = Math.abs(l.length - a.length);
49
+ const e = Math.abs(n.length - u.length);
50
50
  if (e >= 2) {
51
- const s = l.length > a.length ? l : a, b = s.splice(s.length - Math.floor(e / 2));
52
- n.unshift(...b);
51
+ const h = n.length > u.length ? n : u, a = h.splice(h.length - Math.floor(e / 2));
52
+ t.unshift(...a);
53
53
  }
54
- return { left: l, right: a, full: n };
55
- }), S = v(() => i.value.full.length > 0), E = v(
54
+ return { left: n, right: u, full: t };
55
+ }), D = g(() => i.value.full.length > 0), P = g(
56
56
  () => i.value.left.length > 0 || i.value.right.length > 0
57
- ), B = v(() => o.titleI18n ? P(o.titleI18n) : o.title ?? ""), j = v(() => o.variant === "stacked"), O = v(() => {
58
- const l = {
57
+ ), E = g(() => o.titleI18n ? U(o.titleI18n) : o.title ?? ""), O = g(() => o.variant === "stacked"), q = g(() => {
58
+ const n = {
59
59
  default: "border border-border rounded",
60
60
  card: "border border-border rounded bg-card shadow-sm",
61
61
  minimal: "rounded",
@@ -66,205 +66,230 @@ const H = {
66
66
  };
67
67
  return [
68
68
  "list-component w-full overflow-hidden",
69
- l[o.variant] ?? l.default,
69
+ n[o.variant] ?? n.default,
70
70
  o.class
71
71
  ].join(" ");
72
- }), L = v(() => o.columns === 1 ? "grid grid-cols-1" : o.columns === 3 ? "grid grid-cols-1 md:grid-cols-3" : "grid grid-cols-1 md:grid-cols-2"), F = v(() => o.columns === 1 ? "" : "border-r border-border/70"), M = v(() => o.columns === 1 ? 1 : o.columns === 3 ? 3 : 2), V = v(() => o.columns === 1 ? "grid grid-cols-1 pb-2.5 pt-1 px-1" : o.columns === 3 ? "grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 pb-2.5 pt-1 px-1" : "grid grid-cols-1 sm:grid-cols-2 pb-2.5 pt-1 px-1"), w = v(
73
- () => Object.keys(D).filter((l) => !["title", "header", "footer"].includes(l))
74
- ), I = v(() => Array.from({ length: o.skeletonRows }));
75
- function R(l) {
76
- return o.stackedBorderStyle === "divider" && l % M.value !== 0 ? "flex flex-col gap-1.5 py-2 border-l border-border pl-4 pr-3.5" : "flex flex-col gap-1.5 px-3.5 py-2";
72
+ }), R = g(() => o.columns === 1 ? "grid grid-cols-1" : o.columns === 3 ? "grid grid-cols-1 md:grid-cols-3" : "grid grid-cols-1 md:grid-cols-2"), T = g(() => o.columns === 1 ? "" : "border-r border-border/70"), z = g(() => o.columns === 1 ? 1 : o.columns === 3 ? 3 : 2), A = g(() => o.columns === 1 ? "grid grid-cols-1 pb-2.5 pt-1 px-1" : o.columns === 3 ? "grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 pb-2.5 pt-1 px-1" : "grid grid-cols-1 sm:grid-cols-2 pb-2.5 pt-1 px-1"), I = g(
73
+ () => Object.keys(G).filter((n) => !["title", "header", "footer"].includes(n))
74
+ ), V = g(() => Array.from({ length: o.skeletonRows }));
75
+ function H(n) {
76
+ return o.stackedBorderStyle === "divider" && n % z.value !== 0 ? "flex flex-col gap-1.5 py-2 border-l border-border pl-4 pr-3.5" : "flex flex-col gap-1.5 px-3.5 py-2";
77
77
  }
78
- return (l, a) => (t(), r("div", {
79
- class: g(O.value),
78
+ return (n, u) => (r(), l("div", {
79
+ class: C(q.value),
80
80
  role: "table",
81
81
  "aria-label": "Information list"
82
82
  }, [
83
- B.value || d.titleIcon || l.$slots.title ? (t(), r("div", H, [
84
- k(l.$slots, "title", {}, () => [
85
- d.titleIcon ? (t(), y(G, {
83
+ E.value || s.titleIcon || n.$slots.title ? (r(), l("div", W, [
84
+ p(n.$slots, "title", {}, () => [
85
+ s.titleIcon ? (r(), x(Q, {
86
86
  key: 0,
87
- icon: d.titleIcon,
87
+ icon: s.titleIcon,
88
88
  class: "w-4 h-4 text-muted-foreground shrink-0"
89
- }, null, 8, ["icon"])) : m("", !0),
90
- u("h3", J, A(B.value), 1)
89
+ }, null, 8, ["icon"])) : k("", !0),
90
+ d("h3", X, N(E.value), 1)
91
91
  ])
92
- ])) : m("", !0),
93
- d.loading ? (t(), r(c, { key: 1 }, [
94
- j.value ? (t(), r(c, { key: 0 }, [
95
- u("div", K, [
96
- (t(!0), r(c, null, f(I.value, (n, e) => (t(), r("div", {
92
+ ])) : k("", !0),
93
+ s.loading ? (r(), l(b, { key: 1 }, [
94
+ O.value ? (r(), l(b, { key: 0 }, [
95
+ d("div", Y, [
96
+ (r(!0), l(b, null, f(V.value, (t, e) => (r(), l("div", {
97
97
  key: "sk-sm-" + e,
98
98
  class: "flex justify-between gap-3 px-3 py-2.5 border-b border-border/70 last:border-b-0"
99
- }, [...a[0] || (a[0] = [
100
- u("div", { class: "h-4 w-1/3 rounded bg-muted animate-pulse" }, null, -1),
101
- u("div", { class: "h-4 w-2/5 rounded bg-muted/60 animate-pulse" }, null, -1)
99
+ }, [...u[10] || (u[10] = [
100
+ d("div", { class: "h-4 w-1/3 rounded bg-muted animate-pulse" }, null, -1),
101
+ d("div", { class: "h-4 w-2/5 rounded bg-muted/60 animate-pulse" }, null, -1)
102
102
  ])]))), 128))
103
103
  ]),
104
- u("div", N, [
105
- u("div", {
106
- class: g(V.value)
104
+ d("div", Z, [
105
+ d("div", {
106
+ class: C(A.value)
107
107
  }, [
108
- (t(!0), r(c, null, f(I.value, (n, e) => (t(), r("div", {
108
+ (r(!0), l(b, null, f(V.value, (t, e) => (r(), l("div", {
109
109
  key: "sk-s-" + e,
110
- class: g(R(e))
111
- }, [...a[1] || (a[1] = [
112
- u("div", { class: "h-3 w-1/3 rounded bg-muted/60 animate-pulse" }, null, -1),
113
- u("div", { class: "h-4 w-2/3 rounded bg-muted animate-pulse" }, null, -1)
110
+ class: C(H(e))
111
+ }, [...u[11] || (u[11] = [
112
+ d("div", { class: "h-3 w-1/3 rounded bg-muted/60 animate-pulse" }, null, -1),
113
+ d("div", { class: "h-4 w-2/3 rounded bg-muted animate-pulse" }, null, -1)
114
114
  ])], 2))), 128))
115
115
  ], 2)
116
116
  ])
117
- ], 64)) : (t(), r("div", {
117
+ ], 64)) : (r(), l("div", {
118
118
  key: 1,
119
- class: g(L.value)
119
+ class: C(R.value)
120
120
  }, [
121
- u("div", null, [
122
- (t(!0), r(c, null, f(I.value, (n, e) => (t(), r("div", {
121
+ d("div", null, [
122
+ (r(!0), l(b, null, f(V.value, (t, e) => (r(), l("div", {
123
123
  key: "sk-l-" + e,
124
124
  class: "flex justify-between gap-3 px-3 py-2.5 border-b border-border/70 last:border-b-0"
125
- }, [...a[2] || (a[2] = [
126
- u("div", { class: "h-4 w-1/3 rounded bg-muted animate-pulse" }, null, -1),
127
- u("div", { class: "h-4 w-2/5 rounded bg-muted/60 animate-pulse" }, null, -1)
125
+ }, [...u[12] || (u[12] = [
126
+ d("div", { class: "h-4 w-1/3 rounded bg-muted animate-pulse" }, null, -1),
127
+ d("div", { class: "h-4 w-2/5 rounded bg-muted/60 animate-pulse" }, null, -1)
128
128
  ])]))), 128))
129
129
  ]),
130
- d.columns !== 1 ? (t(), r("div", {
130
+ s.columns !== 1 ? (r(), l("div", {
131
131
  key: 0,
132
- class: g(F.value)
132
+ class: C(T.value)
133
133
  }, [
134
- (t(!0), r(c, null, f(I.value, (n, e) => (t(), r("div", {
134
+ (r(!0), l(b, null, f(V.value, (t, e) => (r(), l("div", {
135
135
  key: "sk-r-" + e,
136
136
  class: "flex justify-between gap-3 px-3 py-2.5 border-b border-border/70 last:border-b-0"
137
- }, [...a[3] || (a[3] = [
138
- u("div", { class: "h-4 w-1/3 rounded bg-muted animate-pulse" }, null, -1),
139
- u("div", { class: "h-4 w-2/5 rounded bg-muted/60 animate-pulse" }, null, -1)
137
+ }, [...u[13] || (u[13] = [
138
+ d("div", { class: "h-4 w-1/3 rounded bg-muted animate-pulse" }, null, -1),
139
+ d("div", { class: "h-4 w-2/5 rounded bg-muted/60 animate-pulse" }, null, -1)
140
140
  ])]))), 128))
141
- ], 2)) : m("", !0)
141
+ ], 2)) : k("", !0)
142
142
  ], 2))
143
- ], 64)) : (t(), r(c, { key: 2 }, [
144
- j.value ? (t(), r(c, { key: 0 }, [
145
- u("div", Q, [
146
- (t(!0), r(c, null, f(h.value, (n, e) => (t(), y($, {
147
- key: "mob-" + n.key + e,
148
- field: n,
149
- data: o.data,
150
- index: e,
151
- variant: "default",
152
- "show-colon": d.showColon,
153
- "is-last": e === h.value.length - 1,
154
- "show-border-bottom": e < h.value.length - 1
155
- }, p({ _: 2 }, [
156
- f(w.value, (s) => ({
157
- name: s,
158
- fn: C((b) => [
159
- k(l.$slots, s, x({ ref_for: !0 }, b))
160
- ])
161
- }))
162
- ]), 1032, ["field", "data", "index", "show-colon", "is-last", "show-border-bottom"]))), 128))
163
- ]),
164
- u("div", U, [
165
- u("div", {
166
- class: g(V.value)
167
- }, [
168
- (t(!0), r(c, null, f(h.value, (n, e) => (t(), y($, {
169
- key: n.key + e,
170
- field: n,
143
+ ], 64)) : (r(), l(b, { key: 2 }, [
144
+ O.value ? (r(), l(b, { key: 0 }, [
145
+ d("div", _, [
146
+ (r(!0), l(b, null, f(y.value, (t, e, h, a) => {
147
+ const m = [t, S($)(t.key, o.data), s.variant, s.showColon];
148
+ if (a && a.key === "mob-" + t.key + e && B(a, m)) return a;
149
+ const v = (r(), x(F, {
150
+ key: "mob-" + t.key + e,
151
+ field: t,
171
152
  data: o.data,
172
153
  index: e,
173
- variant: d.variant,
174
- "show-colon": !1,
175
- "is-last": e === h.value.length - 1,
176
- "show-border-bottom": !1,
177
- "stacked-col-index": e % M.value,
178
- "stacked-border-style": d.stackedBorderStyle
179
- }, p({ _: 2 }, [
180
- f(w.value, (s) => ({
181
- name: s,
182
- fn: C((b) => [
183
- k(l.$slots, s, x({ ref_for: !0 }, b))
154
+ variant: "default",
155
+ "show-colon": s.showColon,
156
+ "is-last": e === y.value.length - 1,
157
+ "show-border-bottom": e < y.value.length - 1
158
+ }, j({ _: 2 }, [
159
+ f(I.value, (c) => ({
160
+ name: c,
161
+ fn: L((w) => [
162
+ p(n.$slots, c, M({ ref_for: !0 }, w))
184
163
  ])
185
164
  }))
186
- ]), 1032, ["field", "data", "index", "variant", "is-last", "stacked-col-index", "stacked-border-style"]))), 128))
165
+ ]), 1032, ["field", "data", "index", "show-colon", "is-last", "show-border-bottom"]));
166
+ return v.memo = m, v;
167
+ }, u, 0), 128))
168
+ ]),
169
+ d("div", ee, [
170
+ d("div", {
171
+ class: C(A.value)
172
+ }, [
173
+ (r(!0), l(b, null, f(y.value, (t, e, h, a) => {
174
+ const m = [t, S($)(t.key, o.data), s.variant, s.showColon];
175
+ if (a && a.key === t.key + e && B(a, m)) return a;
176
+ const v = (r(), x(F, {
177
+ key: t.key + e,
178
+ field: t,
179
+ data: o.data,
180
+ index: e,
181
+ variant: s.variant,
182
+ "show-colon": !1,
183
+ "is-last": e === y.value.length - 1,
184
+ "show-border-bottom": !1,
185
+ "stacked-col-index": e % z.value,
186
+ "stacked-border-style": s.stackedBorderStyle
187
+ }, j({ _: 2 }, [
188
+ f(I.value, (c) => ({
189
+ name: c,
190
+ fn: L((w) => [
191
+ p(n.$slots, c, M({ ref_for: !0 }, w))
192
+ ])
193
+ }))
194
+ ]), 1032, ["field", "data", "index", "variant", "is-last", "stacked-col-index", "stacked-border-style"]));
195
+ return v.memo = m, v;
196
+ }, u, 2), 128))
187
197
  ], 2)
188
198
  ]),
189
- h.value.length === 0 ? (t(), r("div", W, " No information to display. ")) : m("", !0)
190
- ], 64)) : (t(), r(c, { key: 1 }, [
191
- u("div", {
192
- class: g(L.value)
199
+ y.value.length === 0 ? (r(), l("div", te, " No information to display. ")) : k("", !0)
200
+ ], 64)) : (r(), l(b, { key: 1 }, [
201
+ d("div", {
202
+ class: C(R.value)
193
203
  }, [
194
- i.value.left.length > 0 ? (t(), r("div", {
204
+ i.value.left.length > 0 ? (r(), l("div", {
195
205
  key: 0,
196
- class: g(F.value)
206
+ class: C(T.value)
197
207
  }, [
198
- (t(!0), r(c, null, f(i.value.left, (n, e) => (t(), y($, {
199
- key: n.key + e,
200
- field: n,
201
- data: o.data,
202
- index: e,
203
- variant: d.variant,
204
- "show-colon": d.showColon,
205
- "is-last": e === i.value.left.length - 1,
206
- "show-border-bottom": e < i.value.left.length - 1 || e === i.value.left.length - 1 && !S.value
207
- }, p({ _: 2 }, [
208
- f(w.value, (s) => ({
209
- name: s,
210
- fn: C((b) => [
211
- k(l.$slots, s, x({ ref_for: !0 }, b))
212
- ])
213
- }))
214
- ]), 1032, ["field", "data", "index", "variant", "show-colon", "is-last", "show-border-bottom"]))), 128))
215
- ], 2)) : m("", !0),
216
- d.columns !== 1 && i.value.right.length > 0 ? (t(), r("div", X, [
217
- (t(!0), r(c, null, f(i.value.right, (n, e) => (t(), y($, {
218
- key: n.key + e,
219
- field: n,
208
+ (r(!0), l(b, null, f(i.value.left, (t, e, h, a) => {
209
+ const m = [t, S($)(t.key, o.data), s.variant, s.showColon];
210
+ if (a && a.key === t.key + e && B(a, m)) return a;
211
+ const v = (r(), x(F, {
212
+ key: t.key + e,
213
+ field: t,
214
+ data: o.data,
215
+ index: e,
216
+ variant: s.variant,
217
+ "show-colon": s.showColon,
218
+ "is-last": e === i.value.left.length - 1,
219
+ "show-border-bottom": e < i.value.left.length - 1 || e === i.value.left.length - 1 && !D.value
220
+ }, j({ _: 2 }, [
221
+ f(I.value, (c) => ({
222
+ name: c,
223
+ fn: L((w) => [
224
+ p(n.$slots, c, M({ ref_for: !0 }, w))
225
+ ])
226
+ }))
227
+ ]), 1032, ["field", "data", "index", "variant", "show-colon", "is-last", "show-border-bottom"]));
228
+ return v.memo = m, v;
229
+ }, u, 4), 128))
230
+ ], 2)) : k("", !0),
231
+ s.columns !== 1 && i.value.right.length > 0 ? (r(), l("div", re, [
232
+ (r(!0), l(b, null, f(i.value.right, (t, e, h, a) => {
233
+ const m = [t, S($)(t.key, o.data), s.variant, s.showColon];
234
+ if (a && a.key === t.key + e && B(a, m)) return a;
235
+ const v = (r(), x(F, {
236
+ key: t.key + e,
237
+ field: t,
238
+ data: o.data,
239
+ index: e,
240
+ variant: s.variant,
241
+ "show-colon": s.showColon,
242
+ "is-last": e === i.value.right.length - 1,
243
+ "show-border-bottom": e < i.value.right.length - 1 || e === i.value.right.length - 1 && !D.value
244
+ }, j({ _: 2 }, [
245
+ f(I.value, (c) => ({
246
+ name: c,
247
+ fn: L((w) => [
248
+ p(n.$slots, c, M({ ref_for: !0 }, w))
249
+ ])
250
+ }))
251
+ ]), 1032, ["field", "data", "index", "variant", "show-colon", "is-last", "show-border-bottom"]));
252
+ return v.memo = m, v;
253
+ }, u, 6), 128))
254
+ ])) : k("", !0),
255
+ s.columns === 3 ? (r(), l("div", oe)) : k("", !0)
256
+ ], 2),
257
+ D.value ? (r(), l("div", {
258
+ key: 0,
259
+ class: C(P.value ? "border-t border-border" : "")
260
+ }, [
261
+ (r(!0), l(b, null, f(i.value.full, (t, e, h, a) => {
262
+ const m = [t, S($)(t.key, o.data), s.variant, s.showColon];
263
+ if (a && a.key === t.key + e && B(a, m)) return a;
264
+ const v = (r(), x(F, {
265
+ key: t.key + e,
266
+ field: t,
220
267
  data: o.data,
221
268
  index: e,
222
- variant: d.variant,
223
- "show-colon": d.showColon,
224
- "is-last": e === i.value.right.length - 1,
225
- "show-border-bottom": e < i.value.right.length - 1 || e === i.value.right.length - 1 && !S.value
226
- }, p({ _: 2 }, [
227
- f(w.value, (s) => ({
228
- name: s,
229
- fn: C((b) => [
230
- k(l.$slots, s, x({ ref_for: !0 }, b))
269
+ variant: s.variant,
270
+ "show-colon": s.showColon,
271
+ "is-last": e === i.value.full.length - 1,
272
+ "show-border-bottom": e < i.value.full.length - 1
273
+ }, j({ _: 2 }, [
274
+ f(I.value, (c) => ({
275
+ name: c,
276
+ fn: L((w) => [
277
+ p(n.$slots, c, M({ ref_for: !0 }, w))
231
278
  ])
232
279
  }))
233
- ]), 1032, ["field", "data", "index", "variant", "show-colon", "is-last", "show-border-bottom"]))), 128))
234
- ])) : m("", !0),
235
- d.columns === 3 ? (t(), r("div", Y)) : m("", !0)
236
- ], 2),
237
- S.value ? (t(), r("div", {
238
- key: 0,
239
- class: g(E.value ? "border-t border-border" : "")
240
- }, [
241
- (t(!0), r(c, null, f(i.value.full, (n, e) => (t(), y($, {
242
- key: n.key + e,
243
- field: n,
244
- data: o.data,
245
- index: e,
246
- variant: d.variant,
247
- "show-colon": d.showColon,
248
- "is-last": e === i.value.full.length - 1,
249
- "show-border-bottom": e < i.value.full.length - 1
250
- }, p({ _: 2 }, [
251
- f(w.value, (s) => ({
252
- name: s,
253
- fn: C((b) => [
254
- k(l.$slots, s, x({ ref_for: !0 }, b))
255
- ])
256
- }))
257
- ]), 1032, ["field", "data", "index", "variant", "show-colon", "is-last", "show-border-bottom"]))), 128))
258
- ], 2)) : m("", !0),
259
- h.value.length === 0 ? (t(), r("div", Z, " No information to display. ")) : m("", !0)
280
+ ]), 1032, ["field", "data", "index", "variant", "show-colon", "is-last", "show-border-bottom"]));
281
+ return v.memo = m, v;
282
+ }, u, 8), 128))
283
+ ], 2)) : k("", !0),
284
+ y.value.length === 0 ? (r(), l("div", le, " No information to display. ")) : k("", !0)
260
285
  ], 64))
261
286
  ], 64)),
262
- l.$slots.footer ? (t(), r("div", _, [
263
- k(l.$slots, "footer")
264
- ])) : m("", !0)
287
+ n.$slots.footer ? (r(), l("div", ne, [
288
+ p(n.$slots, "footer")
289
+ ])) : k("", !0)
265
290
  ], 2));
266
291
  }
267
292
  });
268
293
  export {
269
- ne as default
294
+ me as default
270
295
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./Modal.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d2085008"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-537da95f"]]);
5
5
  export {
6
- p as default
6
+ m as default
7
7
  };