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,13 +1,13 @@
1
- import { defineComponent as N, ref as b, watch as d, computed as u, openBlock as a, createElementBlock as i, normalizeClass as f, Fragment as P, renderList as y, renderSlot as s, createBlock as I, resolveDynamicComponent as k, createVNode as h, unref as v, mergeProps as p, createCommentVNode as T } from "vue";
2
- import L from "../Pagination/Pagination.vue.js";
3
- import x from "../Empty/Empty.vue.js";
4
- const z = { class: "flex flex-col w-full" }, E = {
1
+ import { defineComponent as x, ref as z, computed as m, markRaw as P, watch as y, openBlock as n, createElementBlock as l, normalizeClass as p, Fragment as I, renderList as k, renderSlot as g, withMemo as v, createBlock as h, resolveDynamicComponent as w, createVNode as T, unref as C, mergeProps as $, createCommentVNode as B } from "vue";
2
+ import E from "../Pagination/Pagination.vue.js";
3
+ import F from "../Empty/Empty.vue.js";
4
+ const M = { class: "flex flex-col w-full" }, O = {
5
5
  key: 1,
6
6
  class: "h-48 rounded-lg bg-gray-200 animate-pulse w-full"
7
- }, F = {
7
+ }, R = {
8
8
  key: 3,
9
9
  class: "mt-8 w-full"
10
- }, j = /* @__PURE__ */ N({
10
+ }, A = /* @__PURE__ */ x({
11
11
  __name: "DataList",
12
12
  props: {
13
13
  data: { default: () => [] },
@@ -34,84 +34,87 @@ const z = { class: "flex flex-col w-full" }, E = {
34
34
  delete: {}
35
35
  },
36
36
  emits: ["change"],
37
- setup(e, { emit: C }) {
38
- const n = e, w = C, o = b(n.pageInfo?.itemsPerPage || n.paginationProps?.itemsPerPage || 10);
39
- d(
40
- () => n.pageInfo?.itemsPerPage,
37
+ setup(e, { emit: N }) {
38
+ const a = e, D = N, i = z(a.pageInfo?.itemsPerPage || a.paginationProps?.itemsPerPage || 10), d = m(() => a.item ? P(a.item) : void 0), u = m(() => {
39
+ const t = a.skeleton || a.skelton;
40
+ return t ? P(t) : void 0;
41
+ });
42
+ y(
43
+ () => a.pageInfo?.itemsPerPage,
41
44
  (t) => {
42
- t !== void 0 && (o.value = t);
45
+ t !== void 0 && (i.value = t);
43
46
  }
44
- ), d(
45
- () => n.paginationProps?.itemsPerPage,
47
+ ), y(
48
+ () => a.paginationProps?.itemsPerPage,
46
49
  (t) => {
47
- t !== void 0 && (o.value = t);
50
+ t !== void 0 && (i.value = t);
48
51
  }
49
52
  );
50
- let m = null;
51
- const g = (t, r) => {
52
- m && clearTimeout(m), m = setTimeout(() => {
53
- w("change", { page: t, limit: r });
53
+ let c = null;
54
+ const f = (t, s) => {
55
+ c && clearTimeout(c), c = setTimeout(() => {
56
+ D("change", { page: t, limit: s });
54
57
  }, 10);
55
- }, $ = (t) => {
56
- g(t, o.value);
57
- }, B = (t) => {
58
- o.value = t, g(n.pageInfo?.currentPage || 1, t);
58
+ }, b = (t) => {
59
+ f(t, i.value);
60
+ }, L = (t) => {
61
+ i.value = t, f(a.pageInfo?.currentPage || 1, t);
59
62
  };
60
- u(() => n.pageInfo?.currentPage || 1);
61
- const D = u(() => n.pageInfo?.totalPages || 1);
62
- return (t, r) => (a(), i("div", z, [
63
- e.loading ? (a(), i("div", {
63
+ m(() => a.pageInfo?.currentPage || 1);
64
+ const S = m(() => a.pageInfo?.totalPages || 1);
65
+ return (t, s) => (n(), l("div", M, [
66
+ e.loading ? (n(), l("div", {
64
67
  key: 0,
65
- class: f(e.className)
68
+ class: p(e.className)
66
69
  }, [
67
- (a(), i(P, null, y(8, (l) => s(t.$slots, "skeleton", {
68
- key: "skeleton-" + l,
69
- index: l
70
+ (n(), l(I, null, k(8, (o) => g(t.$slots, "skeleton", {
71
+ key: "skeleton-" + o,
72
+ index: o
70
73
  }, () => [
71
- s(t.$slots, "skelton", { index: l }, () => [
72
- e.skeleton || e.skelton ? (a(), I(k(e.skeleton || e.skelton), { key: 0 })) : (a(), i("div", E))
74
+ g(t.$slots, "skelton", { index: o }, () => [
75
+ u.value ? v([o], () => (n(), h(w(u.value), { key: 0 })), s, 0) : (n(), l("div", O))
73
76
  ])
74
77
  ])), 64))
75
- ], 2)) : !e.data || e.data.length === 0 ? s(t.$slots, "empty", { key: 1 }, () => [
76
- h(v(x), {
78
+ ], 2)) : !e.data || e.data.length === 0 ? g(t.$slots, "empty", { key: 1 }, () => [
79
+ T(C(F), {
77
80
  title: e.emptyTitle,
78
81
  titleI18n: e.emptyTitleI18n,
79
82
  description: e.emptyDescription,
80
83
  descriptionI18n: e.emptyDescriptionI18n,
81
84
  icon: e.emptyIcon
82
85
  }, null, 8, ["title", "titleI18n", "description", "descriptionI18n", "icon"])
83
- ]) : (a(), i("div", {
86
+ ]) : (n(), l("div", {
84
87
  key: 2,
85
- class: f(e.className)
88
+ class: p(e.className)
86
89
  }, [
87
- (a(!0), i(P, null, y(e.data, (l, c) => s(t.$slots, "item", {
88
- key: c,
89
- item: l,
90
+ (n(!0), l(I, null, k(e.data, (o, r) => g(t.$slots, "item", {
91
+ key: r,
92
+ item: o,
90
93
  data: e.data,
91
- index: c
94
+ index: r
92
95
  }, () => [
93
- e.item ? (a(), I(k(e.item), p({
96
+ d.value ? v([o, r], () => (n(), h(w(d.value), $({
94
97
  key: 0,
95
- item: l,
98
+ item: o,
96
99
  data: e.data,
97
- index: c
98
- }, { ref_for: !0 }, e.itemProps), null, 16, ["item", "data", "index"])) : T("", !0)
100
+ index: r
101
+ }, { ref_for: !0 }, e.itemProps), null, 16, ["item", "data", "index"])), s, 1) : B("", !0)
99
102
  ])), 128))
100
103
  ], 2)),
101
- e.showPagination && e.pageInfo && D.value > 1 ? (a(), i("div", F, [
102
- h(v(L), p({
104
+ e.showPagination && e.pageInfo && S.value > 1 ? (n(), l("div", R, [
105
+ T(C(E), $({
103
106
  "current-page": e.pageInfo?.currentPage,
104
107
  "total-pages": e.pageInfo?.totalPages,
105
108
  "total-items": e.pageInfo?.totalItems,
106
109
  navType: "icon"
107
110
  }, e.paginationProps, {
108
- onChange: $,
109
- "onUpdate:itemsPerPage": B
111
+ onChange: b,
112
+ "onUpdate:itemsPerPage": L
110
113
  }), null, 16, ["current-page", "total-pages", "total-items"])
111
- ])) : T("", !0)
114
+ ])) : B("", !0)
112
115
  ]));
113
116
  }
114
117
  });
115
118
  export {
116
- j as default
119
+ A as default
117
120
  };