vlite3 0.8.2 → 0.8.3

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 (60) hide show
  1. package/components/BackButton.vue.js +10 -11
  2. package/components/Breadcrumb/Breadcrumb.vue.js +2 -2
  3. package/components/Chip/Chip.vue.d.ts +2 -2
  4. package/components/ChoiceBox/ChoiceBox.vue.d.ts +1 -1
  5. package/components/DataTable/DataTable.vue.d.ts +2 -2
  6. package/components/Empty/Empty.vue.d.ts +2 -0
  7. package/components/Empty/Empty.vue.js +50 -33
  8. package/components/Empty/index.d.ts +1 -0
  9. package/components/Empty/variants/Variant1.vue.d.ts +22 -0
  10. package/components/Empty/variants/Variant1.vue.js +4 -0
  11. package/components/Empty/variants/Variant1.vue2.js +30 -0
  12. package/components/Empty/variants/Variant10.vue.d.ts +22 -0
  13. package/components/Empty/variants/Variant10.vue.js +4 -0
  14. package/components/Empty/variants/Variant10.vue2.js +37 -0
  15. package/components/Empty/variants/Variant11.vue.d.ts +22 -0
  16. package/components/Empty/variants/Variant11.vue.js +4 -0
  17. package/components/Empty/variants/Variant11.vue2.js +29 -0
  18. package/components/Empty/variants/Variant2.vue.d.ts +22 -0
  19. package/components/Empty/variants/Variant2.vue.js +4 -0
  20. package/components/Empty/variants/Variant2.vue2.js +33 -0
  21. package/components/Empty/variants/Variant3.vue.d.ts +22 -0
  22. package/components/Empty/variants/Variant3.vue.js +4 -0
  23. package/components/Empty/variants/Variant3.vue2.js +25 -0
  24. package/components/Empty/variants/Variant4.vue.d.ts +22 -0
  25. package/components/Empty/variants/Variant4.vue.js +4 -0
  26. package/components/Empty/variants/Variant4.vue2.js +33 -0
  27. package/components/Empty/variants/Variant5.vue.d.ts +22 -0
  28. package/components/Empty/variants/Variant5.vue.js +4 -0
  29. package/components/Empty/variants/Variant5.vue2.js +33 -0
  30. package/components/Empty/variants/Variant6.vue.d.ts +22 -0
  31. package/components/Empty/variants/Variant6.vue.js +4 -0
  32. package/components/Empty/variants/Variant6.vue2.js +33 -0
  33. package/components/Empty/variants/Variant7.vue.d.ts +22 -0
  34. package/components/Empty/variants/Variant7.vue.js +4 -0
  35. package/components/Empty/variants/Variant7.vue2.js +35 -0
  36. package/components/Empty/variants/Variant8.vue.d.ts +22 -0
  37. package/components/Empty/variants/Variant8.vue.js +4 -0
  38. package/components/Empty/variants/Variant8.vue2.js +33 -0
  39. package/components/Empty/variants/Variant9.vue.d.ts +22 -0
  40. package/components/Empty/variants/Variant9.vue.js +4 -0
  41. package/components/Empty/variants/Variant9.vue2.js +33 -0
  42. package/components/Form/Form.vue.d.ts +17 -0
  43. package/components/Form/Form.vue.js +1 -1
  44. package/components/Form/Form.vue2.js +239 -183
  45. package/components/Form/types.d.ts +13 -1
  46. package/components/Modal.vue.js +2 -2
  47. package/components/Modal.vue2.js +45 -43
  48. package/components/Navbar/Navbar.vue.d.ts +2 -2
  49. package/components/ProgressBar/ProgressBar.vue.d.ts +1 -1
  50. package/components/Screen/Screen.vue.js +249 -241
  51. package/components/SidebarMenu/SidebarMenuItem.vue.js +5 -7
  52. package/components/Workbook/Workbook.vue.d.ts +2 -2
  53. package/core/config.d.ts +6 -0
  54. package/core/config.js +14 -8
  55. package/core/index.js +12 -7
  56. package/index.d.ts +1 -0
  57. package/index.js +120 -117
  58. package/package.json +1 -1
  59. package/style.css +1 -1
  60. package/types/config.type.d.ts +9 -0
@@ -1,14 +1,14 @@
1
- import { defineComponent as N, ref as f, inject as P, computed as p, markRaw as R, watch as $, provide as V, nextTick as K, onMounted as W, onUnmounted as A, openBlock as s, createElementBlock as a, Fragment as F, mergeProps as T, withModifiers as B, renderSlot as m, createCommentVNode as r, createBlock as I, Teleport as U, normalizeClass as d, createElementVNode as y, toDisplayString as S, createVNode as q, resolveDynamicComponent as G } from "vue";
2
- import H from "./Button.vue.js";
3
- import { useKeyStroke as J } from "../composables/useKeyStroke.js";
1
+ import { defineComponent as P, ref as c, inject as R, computed as h, markRaw as V, watch as T, provide as W, nextTick as K, onMounted as A, onUnmounted as U, openBlock as s, createElementBlock as a, Fragment as q, mergeProps as B, withModifiers as I, renderSlot as m, createCommentVNode as r, createBlock as S, Teleport as G, normalizeClass as d, createElementVNode as v, toDisplayString as F, createVNode as H, resolveDynamicComponent as J } from "vue";
2
+ import L from "./Button.vue.js";
3
+ import { useKeyStroke as Q } from "../composables/useKeyStroke.js";
4
4
  import { $t as O } from "../utils/i18n.js";
5
- const L = {
5
+ const X = {
6
6
  key: 0,
7
7
  class: "flex-none flex flex-col space-y-1.5 pb-0 border-b border-border/90"
8
- }, Q = { class: "text-lg font-semibold leading-none tracking-tight" }, X = {
8
+ }, Y = { class: "text-lg font-semibold leading-none tracking-tight" }, Z = {
9
9
  key: 0,
10
10
  class: "text-sm text-muted-foreground mb-3.5"
11
- }, oe = /* @__PURE__ */ N({
11
+ }, le = /* @__PURE__ */ P({
12
12
  inheritAttrs: !1,
13
13
  __name: "Modal",
14
14
  props: {
@@ -29,10 +29,10 @@ const L = {
29
29
  },
30
30
  emits: ["close", "update:show", "onOpen"],
31
31
  setup(t, { emit: j }) {
32
- const o = t, i = j, l = f(o.show), g = f(!1), b = f(!1), h = f(null);
32
+ const o = t, i = j, l = c(o.show), g = c(!1), y = c(!1), k = c(null);
33
33
  let u = null;
34
- const n = P("dropdown-context", null), k = p(() => o.body ? R(o.body) : void 0);
35
- $(
34
+ const b = c(!1), n = R("dropdown-context", null), C = h(() => o.body ? V(o.body) : void 0);
35
+ T(
36
36
  () => o.show,
37
37
  (e) => {
38
38
  l.value = e, e && (i("onOpen"), n?.close());
@@ -42,84 +42,86 @@ const L = {
42
42
  l.value = !0, n?.close();
43
43
  }, D = (e) => {
44
44
  g.value = e;
45
- }, c = () => {
45
+ }, E = (e) => {
46
+ b.value = e;
47
+ }, f = () => {
46
48
  if (g.value) {
47
- b.value = !0, u && clearTimeout(u), u = setTimeout(() => {
48
- b.value = !1;
49
+ y.value = !0, u && clearTimeout(u), u = setTimeout(() => {
50
+ y.value = !1;
49
51
  }, 1e3);
50
52
  return;
51
53
  }
52
54
  l.value = !1, i("update:show", !1), i("close");
53
- }, v = () => {
55
+ }, p = () => {
54
56
  l.value = !1, i("update:show", !1), i("close");
55
57
  };
56
- V("modal-context", { close: c, setSubmitting: D });
57
- const E = () => {
58
- o.closeOutside && c();
59
- }, { onKeyStroke: M } = J();
60
- M("Escape", c), $(l, async (e) => {
61
- e ? (n?.onChildToggle?.(!0), document.body.style.overflow = "hidden", await K(), h.value?.focus()) : (document.body.style.overflow = "", n?.onChildToggle?.(!1));
62
- }), W(() => {
63
- l.value && n?.onChildToggle?.(!0);
58
+ W("modal-context", { close: f, setSubmitting: D, registerFormFooter: E });
59
+ const M = () => {
60
+ o.closeOutside && f();
61
+ }, { onKeyStroke: N } = Q();
62
+ N("Escape", f), T(l, async (e) => {
63
+ e ? (n?.onChildToggle?.(!0), document.body.style.overflow = "hidden", await K(), k.value?.focus()) : (document.body.style.overflow = "", n?.onChildToggle?.(!1), b.value = !1);
64
64
  }), A(() => {
65
+ l.value && n?.onChildToggle?.(!0);
66
+ }), U(() => {
65
67
  l.value && n?.onChildToggle?.(!1), document.body.style.overflow = "", u && clearTimeout(u);
66
68
  });
67
- const C = p(() => o.titleI18n ? O(o.titleI18n) : o.title), x = p(
69
+ const x = h(() => o.titleI18n ? O(o.titleI18n) : o.title), w = h(
68
70
  () => o.descriptionI18n ? O(o.descriptionI18n) : o.description
69
71
  );
70
- return (e, w) => (s(), a(F, null, [
71
- e.$slots?.trigger || e.$slots?.default ? (s(), a("span", T({
72
+ return (e, $) => (s(), a(q, null, [
73
+ e.$slots?.trigger || e.$slots?.default ? (s(), a("span", B({
72
74
  key: 0,
73
- onClick: B(z, ["stop"]),
75
+ onClick: I(z, ["stop"]),
74
76
  class: `${t.triggerClass}`
75
77
  }, e.$attrs), [
76
78
  m(e.$slots, "trigger", {}, () => [
77
79
  t.body ? m(e.$slots, "default", { key: 0 }, void 0, !0) : r("", !0)
78
80
  ], !0)
79
81
  ], 16)) : r("", !0),
80
- (s(), I(U, { to: "body" }, [
82
+ (s(), S(G, { to: "body" }, [
81
83
  l.value ? (s(), a("div", {
82
84
  key: 0,
83
85
  class: d(["fixed inset-0 z-50 flex items-center justify-center p-4 v-modal-overlay", t.backdrop ? "v-modal-backdrop" : ""]),
84
- onClick: E
86
+ onClick: M
85
87
  }, [
86
- y("div", {
88
+ v("div", {
87
89
  ref_key: "modalRef",
88
- ref: h,
90
+ ref: k,
89
91
  tabindex: "-1",
90
92
  class: d(["modal-body relative w-full rounded border border-border/60 bg-body shadow-lg text-foreground flex flex-col max-h-[85vh] sm:max-h-[90vh] focus:outline-none", [t.maxWidth]]),
91
- onClick: w[0] || (w[0] = B(() => {
93
+ onClick: $[0] || ($[0] = I(() => {
92
94
  }, ["stop"]))
93
95
  }, [
94
- C.value ? (s(), a("div", L, [
95
- y("div", {
96
+ x.value ? (s(), a("div", X, [
97
+ v("div", {
96
98
  class: d(["flex items-center justify-between py-2 px-4 rounded-t-md", t.headerClass])
97
99
  }, [
98
- y("h3", Q, S(C.value), 1),
99
- q(H, {
100
+ v("h3", Y, F(x.value), 1),
101
+ H(L, {
100
102
  rounded: "full",
101
103
  size: "sm",
102
104
  icon: "lucide:x",
103
105
  variant: "ghost",
104
- class: d(["hover:bg-gray-250/25!", { "blink-bg": b.value }]),
105
- onClick: c
106
+ class: d(["hover:bg-gray-250/25!", { "blink-bg": y.value }]),
107
+ onClick: f
106
108
  }, null, 8, ["class"])
107
109
  ], 2)
108
110
  ])) : r("", !0),
109
- y("div", {
110
- class: d(["flex-1 overflow-y-auto px-4 pt-4 pb-3.5 min-h-0", t.bodyClass])
111
+ v("div", {
112
+ class: d(["flex-1 overflow-y-auto px-4 pt-4 min-h-0", [b.value ? "pb-0" : "pb-3.5", t.bodyClass]])
111
113
  }, [
112
- x.value ? (s(), a("p", X, S(x.value), 1)) : r("", !0),
113
- k.value ? (s(), I(G(k.value), T({ key: 1 }, { ...t.bodyProps, ...e.$attrs }, { close: v }), null, 16)) : m(e.$slots, "default", {
114
+ w.value ? (s(), a("p", Z, F(w.value), 1)) : r("", !0),
115
+ C.value ? (s(), S(J(C.value), B({ key: 1 }, { ...t.bodyProps, ...e.$attrs }, { close: p }), null, 16)) : m(e.$slots, "default", {
114
116
  key: 2,
115
- close: v
117
+ close: p
116
118
  }, void 0, !0)
117
119
  ], 2),
118
120
  e.$slots.footer ? (s(), a("div", {
119
121
  key: 1,
120
122
  class: d([t.footerClass, "flex-none flex items-center px-4 py-3 border-t border-border/75 rounded-b-xl bg-body"])
121
123
  }, [
122
- m(e.$slots, "footer", { close: v }, void 0, !0)
124
+ m(e.$slots, "footer", { close: p }, void 0, !0)
123
125
  ], 2)) : r("", !0)
124
126
  ], 2)
125
127
  ], 2)) : r("", !0)
@@ -128,5 +130,5 @@ const L = {
128
130
  }
129
131
  });
130
132
  export {
131
- oe as default
133
+ le as default
132
134
  };
@@ -82,12 +82,12 @@ 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
- floating: boolean;
86
85
  variant: import('../../types/navbar.type').NavbarVariant;
87
- compact: boolean;
86
+ floating: boolean;
88
87
  class: string;
89
88
  height: string;
90
89
  border: boolean;
90
+ compact: boolean;
91
91
  position: import('../../types/navbar.type').NavbarPosition;
92
92
  contentClass: string;
93
93
  breadcrumb: boolean;
@@ -3,8 +3,8 @@ declare const _default: import('vue').DefineComponent<ProgressBarProps, {}, {},
3
3
  variant: ProgressBarVariant;
4
4
  size: ProgressBarSize;
5
5
  rounded: string;
6
- striped: boolean;
7
6
  type: import('../../types/progressbar').ProgressBarType;
7
+ striped: boolean;
8
8
  indeterminate: boolean;
9
9
  showValue: boolean;
10
10
  animated: boolean;