vlite3 0.7.14 → 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 (39) hide show
  1. package/components/ColorPicker/ColorIro.vue3.js +2 -2
  2. package/components/ColorPicker/ColorPicker.vue.js +18 -17
  3. package/components/DataList/DataList.vue.js +53 -50
  4. package/components/DataTable/DataTable.vue.js +185 -173
  5. package/components/DatePicker.vue.js +3 -2
  6. package/components/DateRangePicker.vue.js +26 -25
  7. package/components/Dropdown/Dropdown.vue.js +20 -20
  8. package/components/Dropdown/DropdownMenu.vue.js +5 -256
  9. package/components/Dropdown/DropdownMenu.vue2.js +256 -2
  10. package/components/Form/CustomFields.vue.js +1 -1
  11. package/components/Form/CustomFields.vue2.js +102 -97
  12. package/components/Form/Form.vue.d.ts +0 -1
  13. package/components/Form/Form.vue.js +2 -2
  14. package/components/Form/Form.vue2.js +20 -20
  15. package/components/Form/FormFields.vue.js +2 -2
  16. package/components/Form/FormFields.vue2.js +90 -78
  17. package/components/IconPicker.vue.js +3 -2
  18. package/components/ImportData/ImportStep2.vue.js +10 -9
  19. package/components/List/List.vue.js +205 -180
  20. package/components/Modal.vue.js +2 -2
  21. package/components/Modal.vue2.js +82 -96
  22. package/components/MultiSelect/MultiSelect.vue.js +7 -7
  23. package/components/Navbar/Navbar.vue.js +12 -12
  24. package/components/PermissionMatrix/PermissionEditorList.vue.js +1 -1
  25. package/components/PermissionMatrix/PermissionEditorList.vue2.js +84 -75
  26. package/components/PermissionMatrix/PermissionEditorMatrix.vue.js +2 -2
  27. package/components/PermissionMatrix/PermissionEditorMatrix.vue2.js +122 -107
  28. package/components/PermissionMatrix/PermissionMatrix.vue.js +2 -2
  29. package/components/PermissionMatrix/PermissionMatrix.vue2.js +161 -138
  30. package/components/PermissionMatrix/PermissionTopBar.vue.js +19 -18
  31. package/components/Screen/Screen.vue.js +169 -166
  32. package/components/Screen/ScreenFilter.vue.js +4 -3
  33. package/components/SidePanel.vue.js +5 -146
  34. package/components/SidePanel.vue2.js +146 -2
  35. package/components/SidebarMenu/SidebarMenuItem.vue.js +26 -25
  36. package/components/Workbook/Sheet.vue.js +3 -2
  37. package/package.json +1 -1
  38. package/style.css +1 -1
  39. /package/components/ColorPicker/{ColorIro.vue.js → ColorIro.vue2.js} +0 -0
@@ -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
  };
@@ -1,12 +1,13 @@
1
- import { defineComponent as z, ref as p, watch as i, openBlock as a, createBlock as f, unref as v, withCtx as u, createElementBlock as h, createVNode as c, createCommentVNode as m, createElementVNode as $, mergeProps as w } from "vue";
1
+ import { defineComponent as z, ref as p, watch as i, openBlock as a, createBlock as f, unref as v, withCtx as u, createElementBlock as h, createVNode as m, createCommentVNode as c, createElementVNode as $, mergeProps as w } from "vue";
2
2
  import B from "../Dropdown/Dropdown.vue.js";
3
3
  import "@iconify/vue";
4
4
  import O from "../Input.vue.js";
5
5
  /* empty css */
6
6
  import "../../core/config.js";
7
+ /* empty css */
7
8
  import y from "../Button.vue.js";
8
- import E from "./ColorIro.vue.js";
9
- /* empty css */
9
+ import E from "./ColorIro.vue2.js";
10
+ /* empty css */
10
11
  import { useEyeDropper as P } from "@vueuse/core";
11
12
  const I = {
12
13
  key: 0,
@@ -14,7 +15,7 @@ const I = {
14
15
  }, N = {
15
16
  key: 0,
16
17
  class: "flex items-center gap-1.5 w-full"
17
- }, D = { class: "w-32" }, K = /* @__PURE__ */ z({
18
+ }, D = { class: "w-32" }, L = /* @__PURE__ */ z({
18
19
  __name: "ColorPicker",
19
20
  props: {
20
21
  modelValue: { default: "#000000" },
@@ -26,7 +27,7 @@ const I = {
26
27
  },
27
28
  emits: ["update:modelValue", "change"],
28
29
  setup(o, { emit: V }) {
29
- const n = o, d = V, r = p(!1), t = p(n.modelValue || "#000000"), { isSupported: b, open: g, sRGBHex: k } = P();
30
+ const r = o, d = V, n = p(!1), t = p(r.modelValue || "#000000"), { isSupported: b, open: g, sRGBHex: k } = P();
30
31
  i(k, (e) => {
31
32
  e && (t.value = e);
32
33
  });
@@ -38,12 +39,12 @@ const I = {
38
39
  }
39
40
  };
40
41
  i(
41
- () => n.modelValue,
42
+ () => r.modelValue,
42
43
  (e) => {
43
44
  e && e !== t.value && (t.value = e);
44
45
  }
45
46
  ), i(t, (e) => {
46
- /^#([0-9A-F]{3,8})$/i.test(e) && e !== n.modelValue && (d("update:modelValue", e), d("change", e));
47
+ /^#([0-9A-F]{3,8})$/i.test(e) && e !== r.modelValue && (d("update:modelValue", e), d("change", e));
47
48
  });
48
49
  const C = (e) => {
49
50
  t.value = e;
@@ -55,11 +56,11 @@ const I = {
55
56
  offset: [0, 8],
56
57
  searchable: !1,
57
58
  "close-on-select": !1,
58
- onOnOpen: l[1] || (l[1] = (s) => r.value = !0),
59
- onOnClose: l[2] || (l[2] = (s) => r.value = !1)
59
+ onOnOpen: l[1] || (l[1] = (s) => n.value = !0),
60
+ onOnClose: l[2] || (l[2] = (s) => n.value = !1)
60
61
  }, {
61
62
  trigger: u(({ isOpen: s }) => [
62
- c(y, w({
63
+ m(y, w({
63
64
  style: { backgroundColor: o.modelValue }
64
65
  }, {
65
66
  rounded: "full",
@@ -70,8 +71,8 @@ const I = {
70
71
  }), null, 16, ["style"])
71
72
  ]),
72
73
  default: u(() => [
73
- r.value ? (a(), h("div", I, [
74
- c(E, {
74
+ n.value ? (a(), h("div", I, [
75
+ m(E, {
75
76
  color: o.modelValue,
76
77
  "show-header": !1,
77
78
  size: o.size,
@@ -86,9 +87,9 @@ const I = {
86
87
  variant: "outline",
87
88
  size: "sm",
88
89
  class: "px-2 shrink-0"
89
- })) : m("", !0),
90
+ })) : c("", !0),
90
91
  $("div", D, [
91
- c(O, {
92
+ m(O, {
92
93
  modelValue: t.value,
93
94
  "onUpdate:modelValue": l[0] || (l[0] = (s) => t.value = s),
94
95
  size: "sm",
@@ -98,16 +99,16 @@ const I = {
98
99
  "input-class": "font-mono text-xs uppercase "
99
100
  }, null, 8, ["modelValue"])
100
101
  ])
101
- ])) : m("", !0)
102
+ ])) : c("", !0)
102
103
  ]),
103
104
  _: 1
104
105
  }, 8, ["color", "size"])
105
- ])) : m("", !0)
106
+ ])) : c("", !0)
106
107
  ]),
107
108
  _: 1
108
109
  }, 8, ["disabled", "position"]));
109
110
  }
110
111
  });
111
112
  export {
112
- K as default
113
+ L as default
113
114
  };
@@ -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
  };