vlite3 1.5.1 → 1.5.4

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 (38) hide show
  1. package/components/CategoryManager/CategoryManager.vue2.js +3 -3
  2. package/components/Chart/GanttChart.vue.d.ts +92 -2
  3. package/components/Chart/GanttChart.vue.js +2 -2
  4. package/components/Chart/GanttChart.vue2.js +1028 -878
  5. package/components/Chart/GanttChartDateUtils.js +28 -24
  6. package/components/Chart/index.d.ts +1 -1
  7. package/components/Chart/types.d.ts +88 -1
  8. package/components/ColorPicker/ColorIro.vue3.js +2 -2
  9. package/components/ColorPicker/ColorPicker.vue.js +2 -2
  10. package/components/CommandPalette/CommandPaletteContent.vue2.js +1 -1
  11. package/components/CommandPalette/{CommandPaletteItem.vue.js → CommandPaletteItem.vue2.js} +1 -1
  12. package/components/DataTable/DataTable.vue.js +1 -1
  13. package/components/Dropdown/DropdownMenu.vue.js +1 -1
  14. package/components/Kanban/Kanban.vue.d.ts +6 -5
  15. package/components/Kanban/Kanban.vue.js +1 -1
  16. package/components/Kanban/Kanban.vue2.js +139 -118
  17. package/components/Kanban/groupKanbanData.d.ts +36 -0
  18. package/components/Kanban/groupKanbanData.js +72 -0
  19. package/components/Kanban/index.d.ts +1 -0
  20. package/components/Kanban/types.d.ts +17 -0
  21. package/components/NavbarCommandPalette.vue.js +1 -1
  22. package/components/PanZoomViewport/PanZoomViewport.vue.d.ts +1 -1
  23. package/components/RichTextEditor/RichTextEditor.vue.js +4 -4
  24. package/components/RichTextEditor/RichTextLinkPopover.vue3.js +2 -2
  25. package/components/RichTextEditor/RichTextToolbar.vue3.js +2 -2
  26. package/components/Screen/Screen.vue.js +80 -82
  27. package/components/Screen/ScreenFilter.vue.js +3 -3
  28. package/components/Screen/components/ScreenAddAction.vue.js +31 -31
  29. package/components/Screen/components/ScreenHeaderTitle.vue.js +1 -1
  30. package/components/Screen/components/ScreenToolbar.vue.d.ts +9 -0
  31. package/components/Screen/components/ScreenToolbar.vue.js +85 -52
  32. package/index.js +426 -421
  33. package/package.json +1 -1
  34. package/style.css +1 -7
  35. /package/components/ColorPicker/{ColorIro.vue2.js → ColorIro.vue.js} +0 -0
  36. /package/components/Dropdown/{DropdownMenu.vue3.js → DropdownMenu.vue2.js} +0 -0
  37. /package/components/RichTextEditor/{RichTextLinkPopover.vue2.js → RichTextLinkPopover.vue.js} +0 -0
  38. /package/components/RichTextEditor/{RichTextToolbar.vue2.js → RichTextToolbar.vue.js} +0 -0
@@ -1,15 +1,12 @@
1
- import { defineComponent as h, openBlock as o, createElementBlock as m, createElementVNode as u, createBlock as i, createCommentVNode as d, renderSlot as n, normalizeProps as r, guardReactiveProps as s, createVNode as c } from "vue";
2
- import f from "../../Button.vue.js";
3
- import v from "../../Input.vue.js";
1
+ import { defineComponent as b, useSlots as R, computed as i, openBlock as o, createElementBlock as m, normalizeClass as s, createBlock as d, createCommentVNode as r, renderSlot as c, normalizeProps as f, guardReactiveProps as h, createVNode as w, createElementVNode as P } from "vue";
2
+ import y from "../../Button.vue.js";
3
+ import A from "../../Input.vue.js";
4
4
  /* empty css */
5
- import w from "./ScreenViewToggle.vue.js";
6
- import y from "../ScreenFilter.vue.js";
7
- import S from "./ScreenAddAction.vue.js";
8
- import $ from "./ScreenOptionsDropdown.vue.js";
9
- const g = { class: "flex items-center gap-2 w-full sm:w-auto flex-1 md:flex-none justify-start sm:justify-end" }, B = {
10
- key: 4,
11
- class: "w-full md:w-60! max-sm:order-last"
12
- }, k = { class: "flex items-center gap-3 max-sm:w-full sm:w-auto max-sm:order-last" }, E = /* @__PURE__ */ h({
5
+ import D from "./ScreenViewToggle.vue.js";
6
+ import E from "../ScreenFilter.vue.js";
7
+ import F from "./ScreenAddAction.vue.js";
8
+ import z from "./ScreenOptionsDropdown.vue.js";
9
+ const W = /* @__PURE__ */ b({
13
10
  __name: "ScreenToolbar",
14
11
  props: {
15
12
  selectedRows: {},
@@ -36,28 +33,53 @@ const g = { class: "flex items-center gap-2 w-full sm:w-auto flex-1 md:flex-none
36
33
  hasExportOrImport: { type: Boolean },
37
34
  exportProps: {},
38
35
  importProps: {},
39
- screenState: {}
36
+ screenState: {},
37
+ inline: { type: Boolean }
40
38
  },
41
39
  emits: ["update:activeView", "update:activeFilters", "update:searchQuery", "delete", "refresh", "add", "select-dropdown"],
42
40
  setup(e) {
43
- return (l, t) => (o(), m("div", null, [
44
- u("div", g, [
45
- e.selectedRows.length > 0 && !e.hideSelectable && !e.hideDeleteBtn ? (o(), i(f, {
41
+ const t = e, u = R(), p = i(
42
+ () => t.selectedRows.length > 0 && !t.hideSelectable && !t.hideDeleteBtn
43
+ ), v = i(() => !!t.filterSchema && t.filterSchema.length > 0), x = i(
44
+ () => p.value || t.hasMultipleViews || !!u["before-search"] || !!t.showRefresh || v.value || !!t.canSearch
45
+ ), S = i(
46
+ () => !!u.actions || !!t.addComponent || !!t.canAdd && !!t.addBtn
47
+ ), g = i(
48
+ () => S.value || !!t.hasExportOrImport || !!u["after-add"]
49
+ ), k = i(
50
+ () => t.inline ? "flex flex-col sm:flex-row items-stretch sm:items-center gap-2.5 w-full lg:w-auto justify-end" : "contents"
51
+ ), $ = i(
52
+ () => t.inline ? "flex items-center gap-2.5 w-full sm:w-auto min-w-0" : "order-2 min-[900px]:order-3 min-[1250px]:order-2 min-[900px]:col-span-2 min-[1250px]:col-span-1 flex items-center gap-2.5 min-w-0"
53
+ ), B = i(
54
+ () => t.inline ? "flex items-center gap-3 shrink-0 w-full sm:w-auto justify-end" : "order-3 min-[900px]:order-2 min-[1250px]:order-3 flex items-center gap-3 shrink-0 justify-end"
55
+ ), V = i(
56
+ () => t.inline ? "flex-1 sm:flex-none sm:w-56 lg:w-60 min-w-0" : "flex-1 min-w-0 min-[1250px]:flex-none min-[1250px]:w-60"
57
+ ), C = i(
58
+ () => t.inline ? "w-full sm:w-auto" : "flex-1 min-[900px]:flex-none min-w-0"
59
+ );
60
+ return (a, l) => (o(), m("div", {
61
+ class: s(k.value)
62
+ }, [
63
+ x.value ? (o(), m("div", {
64
+ key: 0,
65
+ class: s($.value)
66
+ }, [
67
+ p.value ? (o(), d(y, {
46
68
  key: 0,
47
69
  variant: "outline",
48
70
  class: "hover:bg-destructive/10 shrink-0 h-9! w-9!",
49
71
  icon: "lucide:trash-2",
50
72
  title: e.txtDeleteSelected,
51
- onClick: t[0] || (t[0] = (a) => l.$emit("delete", e.selectedRows))
52
- }, null, 8, ["title"])) : d("", !0),
53
- e.hasMultipleViews ? (o(), i(w, {
73
+ onClick: l[0] || (l[0] = (n) => a.$emit("delete", e.selectedRows))
74
+ }, null, 8, ["title"])) : r("", !0),
75
+ e.hasMultipleViews ? (o(), d(D, {
54
76
  key: 1,
55
77
  "model-value": e.activeView,
56
- "onUpdate:modelValue": t[1] || (t[1] = (a) => l.$emit("update:activeView", a)),
78
+ "onUpdate:modelValue": l[1] || (l[1] = (n) => a.$emit("update:activeView", n)),
57
79
  views: e.resolvedViews
58
- }, null, 8, ["model-value", "views"])) : d("", !0),
59
- n(l.$slots, "before-search", r(s(e.screenState))),
60
- e.showRefresh ? (o(), i(f, {
80
+ }, null, 8, ["model-value", "views"])) : r("", !0),
81
+ c(a.$slots, "before-search", f(h(e.screenState))),
82
+ e.showRefresh ? (o(), d(y, {
61
83
  key: 2,
62
84
  variant: "outline",
63
85
  icon: "lucide:refresh-cw",
@@ -65,52 +87,63 @@ const g = { class: "flex items-center gap-2 w-full sm:w-auto flex-1 md:flex-none
65
87
  class: "shrink-0 h-9! w-9!",
66
88
  title: e.txtRefresh,
67
89
  disabled: e.loading,
68
- onClick: t[2] || (t[2] = (a) => l.$emit("refresh"))
69
- }, null, 8, ["title", "disabled"])) : d("", !0),
70
- e.filterSchema && e.filterSchema.length > 0 ? (o(), i(y, {
90
+ onClick: l[2] || (l[2] = (n) => a.$emit("refresh"))
91
+ }, null, 8, ["title", "disabled"])) : r("", !0),
92
+ v.value ? (o(), d(E, {
71
93
  key: 3,
72
94
  schema: e.filterSchema,
73
95
  type: e.filterType,
74
96
  "model-value": e.activeFilters,
75
- "onUpdate:modelValue": t[3] || (t[3] = (a) => l.$emit("update:activeFilters", a)),
76
- onChange: t[4] || (t[4] = (a) => l.$emit("refresh"))
77
- }, null, 8, ["schema", "type", "model-value"])) : d("", !0),
78
- e.canSearch ? (o(), m("div", B, [
79
- c(v, {
97
+ "onUpdate:modelValue": l[3] || (l[3] = (n) => a.$emit("update:activeFilters", n)),
98
+ onChange: l[4] || (l[4] = (n) => a.$emit("refresh"))
99
+ }, null, 8, ["schema", "type", "model-value"])) : r("", !0),
100
+ e.canSearch ? (o(), m("div", {
101
+ key: 4,
102
+ class: s(V.value)
103
+ }, [
104
+ w(A, {
80
105
  lazy: "",
81
106
  "model-value": e.searchQuery,
82
- "onUpdate:modelValue": t[5] || (t[5] = (a) => l.$emit("update:searchQuery", String(a))),
107
+ "onUpdate:modelValue": l[5] || (l[5] = (n) => a.$emit("update:searchQuery", String(n))),
83
108
  icon: "lucide:search",
84
109
  placeholder: e.txtSearch,
85
110
  variant: "outline",
86
111
  class: "bg-background w-full",
87
112
  "show-clear-button": !0
88
113
  }, null, 8, ["model-value", "placeholder"])
89
- ])) : d("", !0)
90
- ]),
91
- u("div", k, [
92
- n(l.$slots, "actions", r(s(e.screenState)), () => [
93
- c(S, {
94
- "can-add": e.canAdd,
95
- "add-component": e.addComponent,
96
- "add-btn": e.addBtn,
97
- loading: e.loading,
98
- data: e.data,
99
- refetch: e.refetch,
100
- onAdd: t[6] || (t[6] = (a) => l.$emit("add"))
101
- }, null, 8, ["can-add", "add-component", "add-btn", "loading", "data", "refetch"])
102
- ]),
103
- e.hasExportOrImport ? (o(), i($, {
114
+ ], 2)) : r("", !0)
115
+ ], 2)) : r("", !0),
116
+ g.value ? (o(), m("div", {
117
+ key: 1,
118
+ class: s(B.value)
119
+ }, [
120
+ P("div", {
121
+ class: s(C.value)
122
+ }, [
123
+ c(a.$slots, "actions", f(h(e.screenState)), () => [
124
+ w(F, {
125
+ "can-add": e.canAdd,
126
+ "add-component": e.addComponent,
127
+ "add-btn": e.addBtn,
128
+ loading: e.loading,
129
+ data: e.data,
130
+ refetch: e.refetch,
131
+ onAdd: l[6] || (l[6] = (n) => a.$emit("add"))
132
+ }, null, 8, ["can-add", "add-component", "add-btn", "loading", "data", "refetch"])
133
+ ])
134
+ ], 2),
135
+ e.hasExportOrImport ? (o(), d(z, {
104
136
  key: 0,
137
+ class: "shrink-0",
105
138
  "export-props": e.exportProps,
106
139
  "import-props": e.importProps,
107
- onSelect: t[7] || (t[7] = (a) => l.$emit("select-dropdown", a))
108
- }, null, 8, ["export-props", "import-props"])) : d("", !0),
109
- n(l.$slots, "after-add", r(s(e.screenState)))
110
- ])
111
- ]));
140
+ onSelect: l[7] || (l[7] = (n) => a.$emit("select-dropdown", n))
141
+ }, null, 8, ["export-props", "import-props"])) : r("", !0),
142
+ c(a.$slots, "after-add", f(h(e.screenState)))
143
+ ], 2)) : r("", !0)
144
+ ], 2));
112
145
  }
113
146
  });
114
147
  export {
115
- E as default
148
+ W as default
116
149
  };