vlite3 1.2.12 → 1.2.14

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 (35) hide show
  1. package/components/Avatar.vue.js +14 -14
  2. package/components/Button.vue.js +3 -3
  3. package/components/CategoryManager/CategoryManager.vue.js +326 -204
  4. package/components/CategoryManager/CategoryNode.vue.js +91 -91
  5. package/components/CategoryManager/types.d.ts +41 -0
  6. package/components/Chat/ChatBubble.vue.js +1 -1
  7. package/components/Clipboard.vue.d.ts +1 -18
  8. package/components/Clipboard.vue.js +15 -23
  9. package/components/ColorPicker/ColorIro.vue3.js +2 -2
  10. package/components/ColorPicker/ColorPicker.vue.js +2 -2
  11. package/components/CommandPalette/CommandPaletteContent.vue2.js +1 -1
  12. package/components/CommandPalette/{CommandPaletteItem.vue.js → CommandPaletteItem.vue2.js} +1 -1
  13. package/components/DataTable/DataTable.vue.js +2 -5
  14. package/components/Dropdown/DropdownItem.vue.js +1 -1
  15. package/components/Label.vue.js +4 -4
  16. package/components/MultiSelect/MultiSelect.vue.js +29 -27
  17. package/components/NavbarCommandPalette.vue.js +1 -1
  18. package/components/PermissionMatrix/PermissionEditorMatrix.vue.js +2 -2
  19. package/components/PermissionMatrix/PermissionEditorMatrix.vue2.js +17 -17
  20. package/components/Screen/ScreenFilter.vue.js +2 -2
  21. package/components/Workbook/Sheet.vue.js +63 -76
  22. package/package.json +2 -13
  23. package/style.css +33 -35
  24. package/test/VliteScreen.d.ts +0 -120
  25. package/test/VliteScreen.js +0 -328
  26. package/test/createDataFactory.d.ts +0 -24
  27. package/test/createDataFactory.js +0 -59
  28. package/test/extractSchemaFields.d.ts +0 -14
  29. package/test/extractSchemaFields.js +0 -11
  30. package/test/index.d.ts +0 -39
  31. package/test/index.js +0 -10
  32. package/test/renderVlite.d.ts +0 -30
  33. package/test/renderVlite.js +0 -12
  34. package/test/types.d.ts +0 -39
  35. /package/components/ColorPicker/{ColorIro.vue2.js → ColorIro.vue.js} +0 -0
@@ -1,6 +1,6 @@
1
- import { defineComponent as k, ref as c, watch as w, computed as a, openBlock as t, createElementBlock as r, normalizeClass as d, renderSlot as b, toDisplayString as g, createBlock as C } from "vue";
2
- import _ from "./Icon.vue.js";
3
- const y = ["src", "alt"], z = { key: 0 }, A = /* @__PURE__ */ k({
1
+ import { defineComponent as k, ref as c, watch as w, computed as a, openBlock as s, createElementBlock as r, normalizeClass as d, renderSlot as b, toDisplayString as g, createBlock as y } from "vue";
2
+ import C from "./Icon.vue.js";
3
+ const _ = ["src", "alt"], z = { key: 0 }, A = /* @__PURE__ */ k({
4
4
  __name: "Avatar",
5
5
  props: {
6
6
  src: { default: "" },
@@ -11,18 +11,18 @@ const y = ["src", "alt"], z = { key: 0 }, A = /* @__PURE__ */ k({
11
11
  class: { default: "" }
12
12
  },
13
13
  setup(o) {
14
- const e = o, s = c(!1), n = c(!1);
14
+ const e = o, t = c(!1), n = c(!1);
15
15
  w(
16
16
  () => e.src,
17
17
  () => {
18
- s.value = !1, n.value = !1;
18
+ t.value = !1, n.value = !1;
19
19
  }
20
20
  );
21
21
  const f = () => {
22
- s.value = !0, n.value = !1;
22
+ t.value = !0, n.value = !1;
23
23
  }, i = () => {
24
- n.value = !0, s.value = !1;
25
- }, m = a(() => e.src && !s.value), u = a(() => {
24
+ n.value = !0, t.value = !1;
25
+ }, m = a(() => e.src && !t.value), u = a(() => {
26
26
  if (e.fallback) return e.fallback;
27
27
  if (!e.alt) return "";
28
28
  const l = e.alt.trim().split(/\s+/);
@@ -43,27 +43,27 @@ const y = ["src", "alt"], z = { key: 0 }, A = /* @__PURE__ */ k({
43
43
  "2xl": "rounded-2xl",
44
44
  full: "rounded-full"
45
45
  }, v = a(() => [
46
- "relative flex shrink-0 overflow-hidden bg-muted border border-border/50",
46
+ "relative flex shrink-0 overflow-hidden bg-secondary! border border-border/50",
47
47
  x[e.size],
48
48
  h[e.rounded],
49
49
  e.class
50
- ].join(" ")), p = a(() => "flex h-full w-full items-center justify-center bg-muted text-muted-foreground font-medium");
51
- return (l, j) => (t(), r("div", {
50
+ ].join(" ")), p = a(() => "flex h-full w-full items-center justify-center bg-secondary! text-muted-foreground font-medium");
51
+ return (l, j) => (s(), r("div", {
52
52
  class: d(v.value)
53
53
  }, [
54
- m.value ? (t(), r("img", {
54
+ m.value ? (s(), r("img", {
55
55
  key: 0,
56
56
  src: o.src,
57
57
  alt: o.alt,
58
58
  class: "aspect-square h-full w-full object-cover",
59
59
  onError: f,
60
60
  onLoad: i
61
- }, null, 40, y)) : (t(), r("div", {
61
+ }, null, 40, _)) : (s(), r("div", {
62
62
  key: 1,
63
63
  class: d(p.value)
64
64
  }, [
65
65
  b(l.$slots, "fallback", {}, () => [
66
- u.value ? (t(), r("span", z, g(u.value), 1)) : (t(), C(_, {
66
+ u.value ? (s(), r("span", z, g(u.value), 1)) : (s(), y(C, {
67
67
  key: 1,
68
68
  icon: "lucide:user",
69
69
  class: "h-1/2 w-1/2"
@@ -202,10 +202,10 @@ const O = ["type", "disabled", "data-testid"], Z = {
202
202
  }, null, 8, ["icon", "class"])) : c("", !0),
203
203
  r.value || n.$slots.default || e.description ? (i(), l("div", {
204
204
  key: 2,
205
- class: a(["flex flex-col justify-center", o.value === "vertical" ? "items-center text-center" : "items-start text-left"])
205
+ class: a(["flex flex-col justify-center flex-1 w-full", o.value === "vertical" ? "items-center text-center" : "items-start text-left"])
206
206
  }, [
207
- k("span", {
208
- class: a([[t.textClass, E.value], "leading-tight"])
207
+ k("div", {
208
+ class: a([[t.textClass, E.value], "leading-tight w-full"])
209
209
  }, [
210
210
  S(n.$slots, "default", {}, () => [
211
211
  $(v(r.value), 1)