vlite3 1.3.5 → 1.3.7
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 +1 -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.vue2.js → CommandPaletteItem.vue.js} +1 -1
- package/components/Dropdown/DropdownMenu.vue.js +1 -1
- package/components/FileTree/FileTree.vue.d.ts +1 -0
- package/components/FileTree/FileTree.vue.js +3 -3
- package/components/FileTree/FileTree.vue2.js +33 -31
- package/components/FileTree/FileTreeNode.vue.d.ts +2 -0
- package/components/FileTree/FileTreeNode.vue.js +72 -70
- package/components/FileTree/types.d.ts +1 -0
- package/components/Form/CustomFields.vue.js +1 -1
- package/components/Form/CustomFields.vue2.js +1 -1
- package/components/Form/Form.vue.js +2 -2
- package/components/Form/Form.vue2.js +20 -20
- package/components/Form/FormFields.vue.js +1 -1
- package/components/Form/FormFields.vue2.js +8 -8
- package/components/ImportData/ImportStep1.vue.d.ts +2 -2
- package/components/ImportData/ImportStep2.vue.d.ts +2 -2
- package/components/Input.vue.js +1 -1
- package/components/Modal.vue.js +1 -1
- package/components/Modal.vue2.js +1 -1
- package/components/Navbar/NavbarTabs.vue.js +82 -82
- package/components/NavbarCommandPalette.vue.js +1 -1
- package/components/PermissionMatrix/PermissionTopBar.vue.js +36 -36
- package/components/Screen/Screen.vue.d.ts +2 -2
- package/components/Screen/Screen.vue.js +187 -185
- package/components/Screen/ScreenFilter.vue.js +1 -1
- package/components/SidebarMenu/SidebarMenuItem.vue.js +193 -187
- package/components/ThemeToggle.vue.d.ts +1 -1
- package/components/ThemeToggle.vue.js +2 -2
- package/composables/useTheme.d.ts +1 -1
- package/composables/useTheme.js +15 -15
- package/package.json +1 -1
- package/style.css +67 -47
- /package/components/ColorPicker/{ColorIro.vue2.js → ColorIro.vue.js} +0 -0
- /package/components/Dropdown/{DropdownMenu.vue2.js → DropdownMenu.vue3.js} +0 -0
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { defineComponent as w, computed as k, openBlock as l, createElementBlock as n, createElementVNode as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as w, computed as k, openBlock as l, createElementBlock as n, createElementVNode as r, createVNode as c, createCommentVNode as i, unref as C, withCtx as p, withModifiers as G, createBlock as z, toDisplayString as a, normalizeClass as u } from "vue";
|
|
2
|
+
import $ from "../Input.vue.js";
|
|
3
3
|
/* empty css */
|
|
4
|
-
import
|
|
4
|
+
import y from "../Icon.vue.js";
|
|
5
5
|
import K from "../CheckBox.vue.js";
|
|
6
6
|
import B from "../Dropdown/Dropdown.vue.js";
|
|
7
7
|
import "../../core/config.js";
|
|
8
8
|
/* empty css */
|
|
9
|
-
const S = { class: "flex flex-col sm:flex-row items-start sm:items-center gap-3 mb-4" },
|
|
9
|
+
const S = { class: "flex flex-col sm:flex-row items-start sm:items-center gap-3 mb-4" }, A = { class: "flex items-center gap-2 flex-1 w-full sm:max-w-lg" }, Q = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "flex-1"
|
|
12
|
-
},
|
|
12
|
+
}, V = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "inline-flex items-center justify-center rounded-full bg-primary text-primary-foreground text-[10px] font-bold min-w-[18px] h-[18px] px-1"
|
|
15
|
-
}, N = ["onClick"], P = { class: "text-sm" },
|
|
15
|
+
}, N = ["onClick"], P = { class: "text-sm" }, E = {
|
|
16
16
|
key: 0,
|
|
17
17
|
class: "border-t px-3 py-1.5"
|
|
18
|
-
},
|
|
18
|
+
}, F = { class: "flex items-center gap-3 ml-auto" }, I = /* @__PURE__ */ w({
|
|
19
19
|
__name: "PermissionTopBar",
|
|
20
20
|
props: {
|
|
21
21
|
searchQuery: {},
|
|
@@ -28,22 +28,22 @@ const S = { class: "flex flex-col sm:flex-row items-start sm:items-center gap-3
|
|
|
28
28
|
groupOptions: {}
|
|
29
29
|
},
|
|
30
30
|
emits: ["update:searchQuery", "update:selectedGroupKeys", "selectAll", "clearAll"],
|
|
31
|
-
setup(e, { emit:
|
|
32
|
-
const
|
|
33
|
-
function
|
|
34
|
-
const t =
|
|
31
|
+
setup(e, { emit: h }) {
|
|
32
|
+
const f = e, d = h, m = k(() => f.size === "sm" ? "text-xs" : "text-sm");
|
|
33
|
+
function g(s) {
|
|
34
|
+
const t = f.selectedGroupKeys, o = t.includes(s) ? t.filter((x) => x !== s) : [...t, s];
|
|
35
35
|
d("update:selectedGroupKeys", o);
|
|
36
36
|
}
|
|
37
37
|
function v() {
|
|
38
38
|
d("update:selectedGroupKeys", []);
|
|
39
39
|
}
|
|
40
|
-
function b(
|
|
41
|
-
d("update:searchQuery", String(
|
|
40
|
+
function b(s) {
|
|
41
|
+
d("update:searchQuery", String(s));
|
|
42
42
|
}
|
|
43
|
-
return (
|
|
44
|
-
|
|
45
|
-
e.searchable ? (l(), n("div",
|
|
46
|
-
c(
|
|
43
|
+
return (s, t) => (l(), n("div", S, [
|
|
44
|
+
r("div", A, [
|
|
45
|
+
e.searchable ? (l(), n("div", Q, [
|
|
46
|
+
c($, {
|
|
47
47
|
"model-value": e.searchQuery,
|
|
48
48
|
"onUpdate:modelValue": b,
|
|
49
49
|
placeholder: "Search permissions...",
|
|
@@ -58,8 +58,8 @@ const S = { class: "flex flex-col sm:flex-row items-start sm:items-center gap-3
|
|
|
58
58
|
selectable: !1,
|
|
59
59
|
position: "bottom-end"
|
|
60
60
|
}, {
|
|
61
|
-
trigger:
|
|
62
|
-
|
|
61
|
+
trigger: p(() => [
|
|
62
|
+
r("button", {
|
|
63
63
|
type: "button",
|
|
64
64
|
class: u([
|
|
65
65
|
"inline-flex items-center gap-1.5 border rounded-md cursor-pointer transition-colors",
|
|
@@ -67,35 +67,35 @@ const S = { class: "flex flex-col sm:flex-row items-start sm:items-center gap-3
|
|
|
67
67
|
e.selectedGroupKeys.length > 0 ? "border-primary bg-primary/5 text-primary" : "border-border text-muted-foreground hover:text-foreground hover:bg-accent"
|
|
68
68
|
])
|
|
69
69
|
}, [
|
|
70
|
-
c(
|
|
70
|
+
c(y, {
|
|
71
71
|
icon: "lucide:filter",
|
|
72
72
|
class: "w-3.5 h-3.5"
|
|
73
73
|
}),
|
|
74
|
-
t[2] || (t[2] =
|
|
75
|
-
e.selectedGroupKeys.length > 0 ? (l(), n("span",
|
|
74
|
+
t[2] || (t[2] = r("span", { class: "hidden sm:inline" }, "Modules", -1)),
|
|
75
|
+
e.selectedGroupKeys.length > 0 ? (l(), n("span", V, a(e.selectedGroupKeys.length), 1)) : i("", !0)
|
|
76
76
|
], 2)
|
|
77
77
|
]),
|
|
78
|
-
item:
|
|
79
|
-
|
|
78
|
+
item: p(({ option: o }) => [
|
|
79
|
+
r("div", {
|
|
80
80
|
class: "flex items-center gap-2 w-full cursor-pointer hover:bg-accent rounded-md",
|
|
81
|
-
onClick: G((
|
|
81
|
+
onClick: G((x) => g(o.value), ["stop"])
|
|
82
82
|
}, [
|
|
83
83
|
c(K, {
|
|
84
84
|
"model-value": e.selectedGroupKeys.includes(o.value),
|
|
85
85
|
size: "xs",
|
|
86
|
-
|
|
87
|
-
}, null, 8, ["model-value"
|
|
88
|
-
o?.icon ? (l(),
|
|
86
|
+
class: "pointer-events-none"
|
|
87
|
+
}, null, 8, ["model-value"]),
|
|
88
|
+
o?.icon ? (l(), z(y, {
|
|
89
89
|
key: 0,
|
|
90
90
|
icon: o.icon,
|
|
91
91
|
class: "w-3.5 h-3.5 text-muted-foreground"
|
|
92
92
|
}, null, 8, ["icon"])) : i("", !0),
|
|
93
|
-
|
|
93
|
+
r("span", P, a(o.label), 1)
|
|
94
94
|
], 8, N)
|
|
95
95
|
]),
|
|
96
|
-
footer:
|
|
97
|
-
e.selectedGroupKeys.length > 0 ? (l(), n("div",
|
|
98
|
-
|
|
96
|
+
footer: p(() => [
|
|
97
|
+
e.selectedGroupKeys.length > 0 ? (l(), n("div", E, [
|
|
98
|
+
r("button", {
|
|
99
99
|
type: "button",
|
|
100
100
|
class: "text-xs text-muted-foreground hover:text-foreground cursor-pointer",
|
|
101
101
|
onClick: v
|
|
@@ -105,15 +105,15 @@ const S = { class: "flex flex-col sm:flex-row items-start sm:items-center gap-3
|
|
|
105
105
|
_: 1
|
|
106
106
|
}, 8, ["options"])
|
|
107
107
|
]),
|
|
108
|
-
|
|
109
|
-
|
|
108
|
+
r("div", F, [
|
|
109
|
+
r("span", {
|
|
110
110
|
class: u([m.value, "text-muted-foreground whitespace-nowrap"])
|
|
111
111
|
}, a(e.selectedCount) + " / " + a(e.totalPerms) + " selected ", 3),
|
|
112
112
|
e.readonly ? i("", !0) : (l(), n("button", {
|
|
113
113
|
key: 0,
|
|
114
114
|
type: "button",
|
|
115
115
|
class: u([m.value, "text-primary hover:underline whitespace-nowrap cursor-pointer"]),
|
|
116
|
-
onClick: t[0] || (t[0] = (o) =>
|
|
116
|
+
onClick: t[0] || (t[0] = (o) => s.$emit("selectAll"))
|
|
117
117
|
}, " Select All ", 2)),
|
|
118
118
|
!e.readonly && e.selectedCount > 0 ? (l(), n("button", {
|
|
119
119
|
key: 1,
|
|
@@ -122,7 +122,7 @@ const S = { class: "flex flex-col sm:flex-row items-start sm:items-center gap-3
|
|
|
122
122
|
m.value,
|
|
123
123
|
"text-muted-foreground hover:text-foreground hover:underline whitespace-nowrap cursor-pointer"
|
|
124
124
|
]),
|
|
125
|
-
onClick: t[1] || (t[1] = (o) =>
|
|
125
|
+
onClick: t[1] || (t[1] = (o) => s.$emit("clearAll"))
|
|
126
126
|
}, " Clear ", 2)) : i("", !0)
|
|
127
127
|
])
|
|
128
128
|
]));
|
|
@@ -333,11 +333,11 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
|
333
333
|
declare const __VLS_component: import('vue').DefineComponent<ScreenProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
334
334
|
delete: (items: any[]) => any;
|
|
335
335
|
add: () => any;
|
|
336
|
-
|
|
336
|
+
activeView: (view: string) => any;
|
|
337
337
|
}, string, import('vue').PublicProps, Readonly<ScreenProps> & Readonly<{
|
|
338
338
|
onDelete?: (items: any[]) => any;
|
|
339
339
|
onAdd?: () => any;
|
|
340
|
-
|
|
340
|
+
onActiveView?: (view: string) => any;
|
|
341
341
|
}>, {
|
|
342
342
|
name: string;
|
|
343
343
|
data: any[];
|