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.
- package/components/CategoryManager/CategoryManager.vue2.js +3 -3
- package/components/Chart/GanttChart.vue.d.ts +92 -2
- package/components/Chart/GanttChart.vue.js +2 -2
- package/components/Chart/GanttChart.vue2.js +1028 -878
- package/components/Chart/GanttChartDateUtils.js +28 -24
- package/components/Chart/index.d.ts +1 -1
- package/components/Chart/types.d.ts +88 -1
- package/components/ColorPicker/ColorIro.vue3.js +2 -2
- package/components/ColorPicker/ColorPicker.vue.js +2 -2
- package/components/CommandPalette/CommandPaletteContent.vue2.js +1 -1
- package/components/CommandPalette/{CommandPaletteItem.vue.js → CommandPaletteItem.vue2.js} +1 -1
- package/components/DataTable/DataTable.vue.js +1 -1
- package/components/Dropdown/DropdownMenu.vue.js +1 -1
- package/components/Kanban/Kanban.vue.d.ts +6 -5
- package/components/Kanban/Kanban.vue.js +1 -1
- package/components/Kanban/Kanban.vue2.js +139 -118
- package/components/Kanban/groupKanbanData.d.ts +36 -0
- package/components/Kanban/groupKanbanData.js +72 -0
- package/components/Kanban/index.d.ts +1 -0
- package/components/Kanban/types.d.ts +17 -0
- package/components/NavbarCommandPalette.vue.js +1 -1
- package/components/PanZoomViewport/PanZoomViewport.vue.d.ts +1 -1
- package/components/RichTextEditor/RichTextEditor.vue.js +4 -4
- package/components/RichTextEditor/RichTextLinkPopover.vue3.js +2 -2
- package/components/RichTextEditor/RichTextToolbar.vue3.js +2 -2
- package/components/Screen/Screen.vue.js +80 -82
- package/components/Screen/ScreenFilter.vue.js +3 -3
- package/components/Screen/components/ScreenAddAction.vue.js +31 -31
- package/components/Screen/components/ScreenHeaderTitle.vue.js +1 -1
- package/components/Screen/components/ScreenToolbar.vue.d.ts +9 -0
- package/components/Screen/components/ScreenToolbar.vue.js +85 -52
- package/index.js +426 -421
- package/package.json +1 -1
- package/style.css +1 -7
- /package/components/ColorPicker/{ColorIro.vue2.js → ColorIro.vue.js} +0 -0
- /package/components/Dropdown/{DropdownMenu.vue3.js → DropdownMenu.vue2.js} +0 -0
- /package/components/RichTextEditor/{RichTextLinkPopover.vue2.js → RichTextLinkPopover.vue.js} +0 -0
- /package/components/RichTextEditor/{RichTextToolbar.vue2.js → RichTextToolbar.vue.js} +0 -0
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
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
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
const
|
|
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
|
-
|
|
44
|
-
|
|
45
|
-
|
|
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:
|
|
52
|
-
}, null, 8, ["title"])) :
|
|
53
|
-
e.hasMultipleViews ? (o(),
|
|
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":
|
|
78
|
+
"onUpdate:modelValue": l[1] || (l[1] = (n) => a.$emit("update:activeView", n)),
|
|
57
79
|
views: e.resolvedViews
|
|
58
|
-
}, null, 8, ["model-value", "views"])) :
|
|
59
|
-
|
|
60
|
-
e.showRefresh ? (o(),
|
|
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:
|
|
69
|
-
}, null, 8, ["title", "disabled"])) :
|
|
70
|
-
|
|
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":
|
|
76
|
-
onChange:
|
|
77
|
-
}, null, 8, ["schema", "type", "model-value"])) :
|
|
78
|
-
e.canSearch ? (o(), m("div",
|
|
79
|
-
|
|
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":
|
|
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
|
-
])) :
|
|
90
|
-
]),
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
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:
|
|
108
|
-
}, null, 8, ["export-props", "import-props"])) :
|
|
109
|
-
|
|
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
|
-
|
|
148
|
+
W as default
|
|
116
149
|
};
|