@scalar/api-client 2.0.24 → 2.0.26
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/CHANGELOG.md +39 -0
- package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBar.vue.js +2 -2
- package/dist/components/AddressBar/AddressBar.vue2.js +79 -83
- package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBarHistory.vue.js +38 -38
- package/dist/components/AddressBar/AddressBarServer.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.d.ts +10 -0
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.js +2 -1
- package/dist/components/CodeInput/CodeInput.vue2.js +43 -38
- package/dist/components/CodeInput/codeDropdownWidget.d.ts +24 -0
- package/dist/components/CodeInput/codeDropdownWidget.d.ts.map +1 -0
- package/dist/components/CodeInput/codeDropdownWidget.js +110 -0
- package/dist/components/CodeInput/codeVariableWidget.d.ts +8 -0
- package/dist/components/CodeInput/codeVariableWidget.d.ts.map +1 -0
- package/dist/components/CodeInput/codeVariableWidget.js +124 -0
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts +2 -15
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +51 -54
- package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts +4 -2
- package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteExample.vue.js +106 -92
- package/dist/components/CommandPalette/CommandPaletteFolder.vue.d.ts +2 -15
- package/dist/components/CommandPalette/CommandPaletteFolder.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteFolder.vue.js +68 -74
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts +2 -15
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +56 -62
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts +2 -15
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +106 -99
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts +7 -0
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts.map +1 -0
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.js +57 -0
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue2.js +4 -0
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +50 -0
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -0
- package/dist/components/CommandPalette/TheCommandPalette.vue.js +9 -0
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +198 -0
- package/dist/components/CommandPalette/index.d.ts +2 -0
- package/dist/components/CommandPalette/index.d.ts.map +1 -0
- package/dist/components/CommandPalette/index.js +4 -0
- package/dist/components/ContextBar.vue.js +4 -4
- package/dist/components/DataTable/DataTableInput.vue.d.ts +1 -1
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInput.vue.js +3 -3
- package/dist/components/DataTable/DataTableInput.vue2.js +36 -49
- package/dist/components/SideNav/SideNav.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNav.vue.js +26 -23
- package/dist/components/SideNav/SideNavLink.vue.d.ts +3 -2
- package/dist/components/SideNav/SideNavLink.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNavLink.vue.js +5 -5
- package/dist/components/Sidebar/Sidebar.vue.d.ts +15 -2
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.js +14 -12
- package/dist/components/Sidebar/SidebarButton.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarButton.vue.js +5 -5
- package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNav.vue.js +2 -2
- package/dist/components/TopNav/TopNav.vue2.js +31 -28
- package/dist/components/TopNav/TopNavItem.vue.d.ts +7 -3
- package/dist/components/TopNav/TopNavItem.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNavItem.vue.js +2 -2
- package/dist/components/TopNav/TopNavItem.vue2.js +16 -15
- package/dist/components/ViewLayout/ViewLayout.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayout.vue.js +1 -1
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +2 -1
- package/dist/constants.d.ts +13 -7
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +4 -4
- package/dist/index.d.ts +3 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14 -16
- package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -0
- package/dist/layouts/App/ApiClientApp.vue.js +72 -0
- package/dist/{App → layouts/App}/createApiClientApp.d.ts +1 -1
- package/dist/layouts/App/createApiClientApp.d.ts.map +1 -0
- package/dist/{App → layouts/App}/createApiClientApp.js +2 -2
- package/dist/layouts/App/index.d.ts.map +1 -0
- package/dist/{Modal → layouts/Modal}/ApiClientModal.vue.d.ts +1 -0
- package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -0
- package/dist/{Modal → layouts/Modal}/ApiClientModal.vue.js +2 -2
- package/dist/{Modal → layouts/Modal}/api-client-modal.d.ts +1 -1
- package/dist/layouts/Modal/api-client-modal.d.ts.map +1 -0
- package/dist/{Modal → layouts/Modal}/api-client-modal.js +42 -42
- package/dist/layouts/Modal/index.d.ts.map +1 -0
- package/dist/libs/eventBusses/command-palette.d.ts +14 -0
- package/dist/libs/eventBusses/command-palette.d.ts.map +1 -0
- package/dist/libs/eventBusses/command-palette.js +5 -0
- package/dist/libs/local-storage.d.ts +1 -1
- package/dist/libs/local-storage.d.ts.map +1 -1
- package/dist/libs/local-storage.js +19 -19
- package/dist/router.d.ts +5 -10
- package/dist/router.d.ts.map +1 -1
- package/dist/router.js +23 -19
- package/dist/store/topNav.d.ts +94 -82
- package/dist/store/topNav.d.ts.map +1 -1
- package/dist/store/topNav.js +21 -20
- package/dist/store/workspace.d.ts +348 -94
- package/dist/store/workspace.d.ts.map +1 -1
- package/dist/store/workspace.js +314 -221
- package/dist/style.css +1 -1
- package/dist/views/Collection/Collection.vue.d.ts.map +1 -1
- package/dist/views/Components/Schemas/Schemas.vue.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue2.js +27 -30
- package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
- package/dist/views/Environment/Environment.vue2.js +22 -25
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +38 -47
- package/dist/views/Request/Request.vue.d.ts.map +1 -1
- package/dist/views/Request/Request.vue.js +1 -1
- package/dist/views/Request/Request.vue2.js +130 -109
- package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.js +5 -4
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +19 -19
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +6 -5
- package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
- package/dist/views/Request/RequestSidebarItem.vue2.js +78 -81
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue.js +60 -42
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.js +6 -5
- package/dist/views/Request/components/OAuth2.vue.d.ts.map +1 -1
- package/dist/views/Request/components/OAuth2.vue.js +2 -0
- package/dist/{App.vue.d.ts → views/Request/components/WorkspaceDropdown.vue.d.ts} +1 -2
- package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -0
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +80 -0
- package/dist/views/Request/components/WorkspaceDropdown.vue2.js +4 -0
- package/dist/views/Request/components/index.d.ts +1 -0
- package/dist/views/Request/components/index.d.ts.map +1 -1
- package/dist/views/Request/components/index.js +4 -2
- package/dist/views/Servers/Servers.vue.d.ts.map +1 -1
- package/dist/views/Servers/Servers.vue2.js +12 -15
- package/package.json +22 -18
- package/dist/App/ApiClientApp.vue.d.ts.map +0 -1
- package/dist/App/ApiClientApp.vue.js +0 -56
- package/dist/App/createApiClientApp.d.ts.map +0 -1
- package/dist/App/index.d.ts.map +0 -1
- package/dist/App.vue.d.ts.map +0 -1
- package/dist/App.vue.js +0 -77
- package/dist/App.vue3.js +0 -5
- package/dist/Modal/ApiClientModal.vue.d.ts.map +0 -1
- package/dist/Modal/api-client-modal.d.ts.map +0 -1
- package/dist/Modal/index.d.ts.map +0 -1
- package/dist/components/AddressBar/AddressBarServer.vue.js +0 -113
- package/dist/components/AddressBar/AddressBarServer.vue2.js +0 -4
- package/dist/components/CommandPalette/CommandPalette.vue.d.ts +0 -17
- package/dist/components/CommandPalette/CommandPalette.vue.d.ts.map +0 -1
- package/dist/components/CommandPalette/CommandPalette.vue.js +0 -7
- package/dist/components/CommandPalette/CommandPalette.vue2.js +0 -185
- package/dist/main.d.ts +0 -2
- package/dist/main.d.ts.map +0 -1
- /package/dist/{App → layouts/App}/ApiClientApp.vue.d.ts +0 -0
- /package/dist/{App → layouts/App}/ApiClientApp.vue3.js +0 -0
- /package/dist/{App → layouts/App}/index.d.ts +0 -0
- /package/dist/{App → layouts/App}/index.js +0 -0
- /package/dist/{Modal → layouts/Modal}/ApiClientModal.vue2.js +0 -0
- /package/dist/{Modal → layouts/Modal}/index.d.ts +0 -0
- /package/dist/{Modal → layouts/Modal}/index.js +0 -0
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
const N = {
|
|
1
|
+
import { defineComponent as k, ref as i, computed as V, openBlock as o, createBlock as d, normalizeClass as b, withCtx as x, createElementBlock as r, renderSlot as p, createCommentVNode as s, createElementVNode as m, Fragment as B, mergeProps as $, unref as q } from "vue";
|
|
2
|
+
import { ScalarIconButton as C } from "@scalar/components";
|
|
3
|
+
import F from "./DataTableCell.vue.js";
|
|
4
|
+
import I from "./DataTableInputSelect.vue.js";
|
|
5
|
+
const O = {
|
|
7
6
|
key: 0,
|
|
8
7
|
class: "text-c-2 flex min-w-[100px] items-center border-r-1/2 pl-2 pr-0"
|
|
9
|
-
},
|
|
8
|
+
}, S = { class: "row-1" }, P = ["id", "max", "min", "readOnly", "required", "type", "value"], _ = {
|
|
10
9
|
key: 0,
|
|
11
10
|
class: "absolute centered-y right-0 pt-px pr-2 text-xxs text-c-3 bg-b-1 shadow-[-8px_0_4px_var(--scalar-background-1)] opacity-100 duration-150 transition-opacity peer-focus:opacity-0"
|
|
12
|
-
},
|
|
11
|
+
}, D = {
|
|
13
12
|
key: 1,
|
|
14
13
|
class: "absolute centered-y right-7 text-orange text-xs"
|
|
15
|
-
},
|
|
14
|
+
}, z = /* @__PURE__ */ k({
|
|
16
15
|
inheritAttrs: !1,
|
|
17
16
|
__name: "DataTableInput",
|
|
18
17
|
props: {
|
|
@@ -27,36 +26,30 @@ const N = {
|
|
|
27
26
|
max: {}
|
|
28
27
|
},
|
|
29
28
|
emits: ["update:modelValue", "inputFocus", "inputBlur", "selectVariable"],
|
|
30
|
-
setup(
|
|
31
|
-
const l =
|
|
32
|
-
|
|
33
|
-
},
|
|
29
|
+
setup(c, { emit: f }) {
|
|
30
|
+
const l = c, n = f, a = i(!0), y = i(""), v = i(!1), w = () => {
|
|
31
|
+
v.value || n("inputBlur");
|
|
32
|
+
}, g = V(
|
|
34
33
|
() => l.type === "password" ? a.value ? "password" : "text" : l.type ?? "text"
|
|
35
|
-
),
|
|
34
|
+
), h = (e) => {
|
|
36
35
|
const t = e.target;
|
|
37
|
-
|
|
38
|
-
}, g = (e) => {
|
|
39
|
-
n("update:modelValue", e);
|
|
40
|
-
}, k = () => {
|
|
41
|
-
u.value = !0;
|
|
42
|
-
}, b = () => {
|
|
43
|
-
u.value = !1;
|
|
36
|
+
y.value = t.value, n("update:modelValue", t.value);
|
|
44
37
|
};
|
|
45
|
-
return (e, t) => (o(),
|
|
46
|
-
class:
|
|
38
|
+
return (e, t) => (o(), d(F, {
|
|
39
|
+
class: b(["relative row", e.containerClass])
|
|
47
40
|
}, {
|
|
48
|
-
default:
|
|
49
|
-
e.$slots.default ? (o(), r("div",
|
|
50
|
-
|
|
41
|
+
default: x(() => [
|
|
42
|
+
e.$slots.default ? (o(), r("div", O, [
|
|
43
|
+
p(e.$slots, "default", {}, void 0, !0)
|
|
51
44
|
])) : s("", !0),
|
|
52
|
-
|
|
53
|
-
l.enum && l.enum.length ? (o(),
|
|
45
|
+
m("div", S, [
|
|
46
|
+
l.enum && l.enum.length ? (o(), d(I, {
|
|
54
47
|
key: 0,
|
|
55
48
|
modelValue: l.modelValue,
|
|
56
49
|
value: l.enum,
|
|
57
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
58
|
-
}, null, 8, ["modelValue", "value"])) : (o(), r(
|
|
59
|
-
|
|
50
|
+
"onUpdate:modelValue": t[0] || (t[0] = (u) => n("update:modelValue", u))
|
|
51
|
+
}, null, 8, ["modelValue", "value"])) : (o(), r(B, { key: 1 }, [
|
|
52
|
+
m("input", $(e.$attrs, {
|
|
60
53
|
id: e.id,
|
|
61
54
|
autocomplete: "off",
|
|
62
55
|
class: "border-none focus:text-c-1 text-c-2 min-w-0 w-full peer px-2 py-1.5 outline-none",
|
|
@@ -66,37 +59,31 @@ const N = {
|
|
|
66
59
|
readOnly: e.readOnly,
|
|
67
60
|
required: e.required,
|
|
68
61
|
spellcheck: "false",
|
|
69
|
-
type:
|
|
62
|
+
type: g.value,
|
|
70
63
|
value: e.modelValue,
|
|
71
64
|
onBlur: w,
|
|
72
|
-
onFocus: t[1] || (t[1] = (
|
|
73
|
-
onInput:
|
|
74
|
-
}), null, 16,
|
|
75
|
-
e.required ? (o(), r("div",
|
|
65
|
+
onFocus: t[1] || (t[1] = (u) => n("inputFocus")),
|
|
66
|
+
onInput: h
|
|
67
|
+
}), null, 16, P),
|
|
68
|
+
e.required ? (o(), r("div", _, " Required ")) : s("", !0)
|
|
76
69
|
], 64))
|
|
77
70
|
]),
|
|
78
|
-
e.$slots.warning ? (o(), r("div",
|
|
79
|
-
|
|
71
|
+
e.$slots.warning ? (o(), r("div", D, [
|
|
72
|
+
p(e.$slots, "warning", {}, void 0, !0)
|
|
80
73
|
])) : s("", !0),
|
|
81
|
-
|
|
82
|
-
e.type === "password" ? (o(),
|
|
74
|
+
p(e.$slots, "icon", {}, void 0, !0),
|
|
75
|
+
e.type === "password" ? (o(), d(q(C), {
|
|
83
76
|
key: 2,
|
|
84
77
|
class: "-ml-.5 mr-1 h-6 w-6 self-center p-1.5",
|
|
85
78
|
icon: a.value ? "Show" : "Hide",
|
|
86
79
|
label: a.value ? "Show Password" : "Hide Password",
|
|
87
|
-
onClick: t[2] || (t[2] = (
|
|
88
|
-
}, null, 8, ["icon", "label"])) : s("", !0)
|
|
89
|
-
_(F, {
|
|
90
|
-
query: c.value,
|
|
91
|
-
onMousedown: k,
|
|
92
|
-
onMouseup: b,
|
|
93
|
-
onSelect: g
|
|
94
|
-
}, null, 8, ["query"])
|
|
80
|
+
onClick: t[2] || (t[2] = (u) => a.value = !a.value)
|
|
81
|
+
}, null, 8, ["icon", "label"])) : s("", !0)
|
|
95
82
|
]),
|
|
96
83
|
_: 3
|
|
97
84
|
}, 8, ["class"]));
|
|
98
85
|
}
|
|
99
86
|
});
|
|
100
87
|
export {
|
|
101
|
-
|
|
88
|
+
z as default
|
|
102
89
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SideNav.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SideNav/SideNav.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"SideNav.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SideNav/SideNav.vue"],"names":[],"mappings":";AAuIA,wBAKG"}
|
|
@@ -1,37 +1,40 @@
|
|
|
1
|
-
import { defineComponent as m, openBlock as
|
|
1
|
+
import { defineComponent as m, openBlock as t, createElementBlock as o, createVNode as r, createElementVNode as a, Fragment as _, renderList as f, unref as c, withCtx as p, createTextVNode as u, toDisplayString as d } from "vue";
|
|
2
2
|
import x from "../DarkModeToggle/DarkModeIconToggle.vue.js";
|
|
3
3
|
import { ROUTES as h } from "../../constants.js";
|
|
4
|
-
import { useRouter as
|
|
5
|
-
import
|
|
4
|
+
import { useRouter as v } from "vue-router";
|
|
5
|
+
import g from "./SideNavLink.vue.js";
|
|
6
6
|
import N from "./WorkspaceProfileIcon.vue.js";
|
|
7
7
|
/* empty css */
|
|
8
8
|
const y = {
|
|
9
9
|
"aria-label": "Side Navigation",
|
|
10
|
-
class: "text-c-2 w-15 flex flex-col items-center px-2 py-2",
|
|
10
|
+
class: "text-c-2 w-15 flex flex-col items-center px-2 py-2 scalar-sidenav",
|
|
11
11
|
role: "navigation"
|
|
12
12
|
}, S = { class: "mt-3.5 flex flex-col gap-1.5" }, k = { class: "mt-auto flex flex-col gap-2 py-1.5" }, E = { class: "flex items-center" }, L = /* @__PURE__ */ m({
|
|
13
13
|
__name: "SideNav",
|
|
14
14
|
setup(R) {
|
|
15
|
-
const { currentRoute:
|
|
16
|
-
return (V, $) => (
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
(
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
15
|
+
const { currentRoute: n } = v();
|
|
16
|
+
return (V, $) => (t(), o("nav", y, [
|
|
17
|
+
r(N),
|
|
18
|
+
a("ul", S, [
|
|
19
|
+
(t(!0), o(_, null, f(c(h), ({ icon: s, name: e }, l) => {
|
|
20
|
+
var i;
|
|
21
|
+
return t(), o("li", { key: l }, [
|
|
22
|
+
r(g, {
|
|
23
|
+
active: (i = c(n).name) == null ? void 0 : i.startsWith(e),
|
|
24
|
+
icon: s,
|
|
25
|
+
name: e
|
|
26
|
+
}, {
|
|
27
|
+
default: p(() => [
|
|
28
|
+
u(d(e), 1)
|
|
29
|
+
]),
|
|
30
|
+
_: 2
|
|
31
|
+
}, 1032, ["active", "icon", "name"])
|
|
32
|
+
]);
|
|
33
|
+
}), 128))
|
|
31
34
|
]),
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
+
a("ul", k, [
|
|
36
|
+
a("li", E, [
|
|
37
|
+
r(x)
|
|
35
38
|
])
|
|
36
39
|
])
|
|
37
40
|
]));
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ROUTES } from '../../constants.js';
|
|
1
2
|
import { ScalarIcon } from '@scalar/components';
|
|
2
3
|
type IconProps = InstanceType<typeof ScalarIcon>['$props'];
|
|
3
4
|
declare function __VLS_template(): {
|
|
@@ -5,11 +6,11 @@ declare function __VLS_template(): {
|
|
|
5
6
|
};
|
|
6
7
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
7
8
|
icon: IconProps["icon"];
|
|
8
|
-
|
|
9
|
+
name: (typeof ROUTES)[number]["name"];
|
|
9
10
|
active?: boolean;
|
|
10
11
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
11
12
|
icon: IconProps["icon"];
|
|
12
|
-
|
|
13
|
+
name: (typeof ROUTES)[number]["name"];
|
|
13
14
|
active?: boolean;
|
|
14
15
|
}>>>, {}, {}>;
|
|
15
16
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SideNavLink.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SideNav/SideNavLink.vue"],"names":[],"mappings":"AA6BA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAI/C,KAAK,SAAS,GAAG,YAAY,CAAC,OAAO,UAAU,CAAC,CAAC,QAAQ,CAAC,CAAA;AAe1D,iBAAS,cAAc;qBAuDO,GAAG;EAgBhC;AACD,QAAA,MAAM,eAAe;UApFb,SAAS,CAAC,MAAM,CAAC;UACjB,MAAM;
|
|
1
|
+
{"version":3,"file":"SideNavLink.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SideNav/SideNavLink.vue"],"names":[],"mappings":"AA6BA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAEzC,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAI/C,KAAK,SAAS,GAAG,YAAY,CAAC,OAAO,UAAU,CAAC,CAAC,QAAQ,CAAC,CAAA;AAe1D,iBAAS,cAAc;qBAuDO,GAAG;EAgBhC;AACD,QAAA,MAAM,eAAe;UApFb,SAAS,CAAC,MAAM,CAAC;UACjB,CAAC,OAAO,MAAM,EAAE,MAAM,CAAC,CAAC,MAAM,CAAC;aAC5B,OAAO;;UAFV,SAAS,CAAC,MAAM,CAAC;UACjB,CAAC,OAAO,MAAM,EAAE,MAAM,CAAC,CAAC,MAAM,CAAC;aAC5B,OAAO;aAwFhB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { defineComponent as r, resolveComponent as
|
|
1
|
+
import { defineComponent as r, resolveComponent as a, openBlock as s, createBlock as c, normalizeClass as i, unref as o, withCtx as l, createVNode as p, createElementVNode as u, renderSlot as m } from "vue";
|
|
2
2
|
import { useWorkspace as d } from "../../store/workspace.js";
|
|
3
3
|
import { ScalarIcon as f } from "@scalar/components";
|
|
4
4
|
const k = { class: "sr-only" }, x = /* @__PURE__ */ r({
|
|
5
5
|
__name: "SideNavLink",
|
|
6
6
|
props: {
|
|
7
7
|
icon: {},
|
|
8
|
-
|
|
8
|
+
name: {},
|
|
9
9
|
active: { type: Boolean }
|
|
10
10
|
},
|
|
11
11
|
setup(v) {
|
|
12
12
|
const { activeWorkspace: t } = d();
|
|
13
13
|
return (e, _) => {
|
|
14
|
-
const n =
|
|
15
|
-
return
|
|
14
|
+
const n = a("router-link");
|
|
15
|
+
return s(), c(n, {
|
|
16
16
|
activeClass: "active-link",
|
|
17
17
|
class: i(["w-[37px] hover:bg-b-2 active:text-c-1 flex items-center justify-center rounded-lg p-[7px]", { "bg-b-2 transition-none hover:cursor-auto text-c-1": e.active }]),
|
|
18
|
-
to: `/workspace/${o(t).uid}
|
|
18
|
+
to: `/workspace/${o(t).uid}/${e.name}/default`
|
|
19
19
|
}, {
|
|
20
20
|
default: l(() => [
|
|
21
21
|
p(o(f), {
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
declare function __VLS_template(): {
|
|
2
|
-
|
|
2
|
+
header?(_: {}): any;
|
|
3
3
|
content?(_: {}): any;
|
|
4
4
|
button?(_: {}): any;
|
|
5
5
|
};
|
|
6
|
-
declare const __VLS_component: import("vue").DefineComponent<
|
|
6
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
7
|
+
title?: string;
|
|
8
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
9
|
+
title?: string;
|
|
10
|
+
}>>>, {}, {}>;
|
|
7
11
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
8
12
|
export default _default;
|
|
9
13
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -11,4 +15,13 @@ type __VLS_WithTemplateSlots<T, S> = T & {
|
|
|
11
15
|
$slots: S;
|
|
12
16
|
};
|
|
13
17
|
};
|
|
18
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
19
|
+
type __VLS_TypePropsToOption<T> = {
|
|
20
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
21
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
22
|
+
} : {
|
|
23
|
+
type: import('vue').PropType<T[K]>;
|
|
24
|
+
required: true;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
14
27
|
//# sourceMappingURL=Sidebar.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/Sidebar.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/Sidebar.vue"],"names":[],"mappings":"AAyCA,iBAAS,cAAc;oBAiDK,GAAG;qBACF,GAAG;oBACJ,GAAG;EAe9B;AACD,QAAA,MAAM,eAAe;YA5EW,MAAM;;YAAN,MAAM;aAkFpC,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -1,19 +1,21 @@
|
|
|
1
|
-
import { defineComponent as l, openBlock as s, createElementBlock as o, unref as
|
|
2
|
-
import { useWorkspace as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as l, openBlock as s, createElementBlock as o, renderSlot as t, unref as i, createElementVNode as r, toDisplayString as a, createCommentVNode as d } from "vue";
|
|
2
|
+
import { useWorkspace as c } from "../../store/workspace.js";
|
|
3
|
+
const m = { class: "w-sidebar relative flex flex-col border-r bg-b-1" }, p = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "xl:min-h-header py-2.5 flex items-center border-b px-4 text-sm"
|
|
6
|
-
},
|
|
6
|
+
}, h = { class: "font-medium m-0 text-sm" }, _ = { class: "custom-scroll sidebar-height" }, x = /* @__PURE__ */ l({
|
|
7
7
|
__name: "Sidebar",
|
|
8
|
+
props: {
|
|
9
|
+
title: {}
|
|
10
|
+
},
|
|
8
11
|
setup(f) {
|
|
9
|
-
const { isReadOnly: n } =
|
|
10
|
-
return (e,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
r("div", p, [
|
|
12
|
+
const { isReadOnly: n } = c();
|
|
13
|
+
return (e, u) => (s(), o("aside", m, [
|
|
14
|
+
t(e.$slots, "header"),
|
|
15
|
+
!i(n) && e.title ? (s(), o("div", p, [
|
|
16
|
+
r("h2", h, a(e.title), 1)
|
|
17
|
+
])) : d("", !0),
|
|
18
|
+
r("div", _, [
|
|
17
19
|
t(e.$slots, "content")
|
|
18
20
|
]),
|
|
19
21
|
t(e.$slots, "button")
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarButton.vue"],"names":[],"mappings":"AA+CA,iBAAS,cAAc;
|
|
1
|
+
{"version":3,"file":"SidebarButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarButton.vue"],"names":[],"mappings":"AA+CA,iBAAS,cAAc;mBAuFI,GAAG;EAiB7B;AACD,QAAA,MAAM,eAAe;WArHZ,MAAM,IAAI;;WAAV,MAAM,IAAI;aA2HjB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as n, openBlock as l, createElementBlock as
|
|
1
|
+
import { defineComponent as n, openBlock as l, createElementBlock as i, createVNode as e, unref as a, withCtx as s, renderSlot as p } from "vue";
|
|
2
2
|
import u from "../ScalarHotkey.vue.js";
|
|
3
3
|
import { ScalarButton as d } from "@scalar/components";
|
|
4
4
|
const f = { class: "fixed relative bottom-[50px] z-10 flex p-2" }, k = /* @__PURE__ */ n({
|
|
@@ -10,17 +10,17 @@ const f = { class: "fixed relative bottom-[50px] z-10 flex p-2" }, k = /* @__PUR
|
|
|
10
10
|
const r = o, t = () => {
|
|
11
11
|
r.click();
|
|
12
12
|
};
|
|
13
|
-
return (c, m) => (l(),
|
|
13
|
+
return (c, m) => (l(), i("div", f, [
|
|
14
14
|
e(a(d), {
|
|
15
15
|
class: "bg-b-1 text-c-1 hover:bg-b-2 group relative w-full border p-1.5 h-auto",
|
|
16
16
|
icon: "Plus",
|
|
17
|
-
variant: "
|
|
17
|
+
variant: "outlined",
|
|
18
18
|
onClick: t
|
|
19
19
|
}, {
|
|
20
|
-
default:
|
|
20
|
+
default: s(() => [
|
|
21
21
|
p(c.$slots, "title"),
|
|
22
22
|
e(u, {
|
|
23
|
-
class: "absolute right-2 group-hover:opacity-80",
|
|
23
|
+
class: "absolute right-2 group-hover:opacity-80 text-c-2",
|
|
24
24
|
hotkey: "N",
|
|
25
25
|
onHotkeyPressed: t
|
|
26
26
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TopNav.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TopNav/TopNav.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"TopNav.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TopNav/TopNav.vue"],"names":[],"mappings":";AAkPA,wBAKG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./TopNav.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-31a24876"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,46 +1,49 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useTopNav as
|
|
1
|
+
import { defineComponent as k, computed as h, openBlock as c, createElementBlock as s, createElementVNode as l, unref as e, createVNode as p, toDisplayString as I, Fragment as g, renderList as b, createBlock as N, pushScopeId as x, popScopeId as y } from "vue";
|
|
2
|
+
import { useTopNav as C } from "../../store/topNav.js";
|
|
3
3
|
import { ScalarIcon as m } from "@scalar/components";
|
|
4
|
-
import
|
|
5
|
-
const
|
|
4
|
+
import S from "./TopNavItem.vue.js";
|
|
5
|
+
const w = (o) => (x("data-v-31a24876"), o = o(), y(), o), B = { class: "flex h-10 t-app__top-nav" }, T = /* @__PURE__ */ w(() => /* @__PURE__ */ l("div", { class: "t-app__top-nav-draggable" }, null, -1)), V = { class: "flex h-10 flex-1 items-center justify-center gap-1.5 text-sm font-medium relative" }, j = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "flex items-center gap-1 w-full justify-center"
|
|
8
|
-
},
|
|
8
|
+
}, F = /* @__PURE__ */ k({
|
|
9
9
|
__name: "TopNav",
|
|
10
|
-
setup(
|
|
10
|
+
setup(o) {
|
|
11
11
|
const {
|
|
12
|
-
topNavItems:
|
|
13
|
-
addNavItem:
|
|
12
|
+
topNavItems: n,
|
|
13
|
+
addNavItem: i,
|
|
14
14
|
activeNavItemIdx: v,
|
|
15
|
-
setNavItemIdx:
|
|
15
|
+
setNavItemIdx: d,
|
|
16
16
|
removeNavItem: u
|
|
17
|
-
} =
|
|
18
|
-
return (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
17
|
+
} = C(), _ = h(() => v.value);
|
|
18
|
+
return (z, r) => (c(), s("nav", B, [
|
|
19
|
+
T,
|
|
20
|
+
l("div", V, [
|
|
21
|
+
e(n).length === 1 ? (c(), s("div", j, [
|
|
22
|
+
p(e(m), {
|
|
23
|
+
icon: e(n)[0].icon,
|
|
24
|
+
size: "xs",
|
|
25
|
+
thickness: "2.5"
|
|
24
26
|
}, null, 8, ["icon"]),
|
|
25
|
-
|
|
26
|
-
])) : (
|
|
27
|
+
l("div", null, I(e(n)[0].label), 1)
|
|
28
|
+
])) : (c(!0), s(g, { key: 1 }, b(e(n), (a, t) => (c(), N(S, {
|
|
27
29
|
key: t,
|
|
28
|
-
active: t ===
|
|
30
|
+
active: t === _.value,
|
|
29
31
|
hotkey: (t + 1).toString(),
|
|
30
|
-
icon:
|
|
31
|
-
label:
|
|
32
|
-
onClick: (f) => e(
|
|
32
|
+
icon: a.icon,
|
|
33
|
+
label: a.label,
|
|
34
|
+
onClick: (f) => e(d)(t),
|
|
33
35
|
onClose: (f) => e(u)(t)
|
|
34
36
|
}, null, 8, ["active", "hotkey", "icon", "label", "onClick", "onClose"]))), 128)),
|
|
35
|
-
|
|
36
|
-
class: "text-c-3 hover:bg-b-2 p-1.5 rounded-lg",
|
|
37
|
+
l("button", {
|
|
38
|
+
class: "text-c-3 hover:bg-b-2 p-1.5 rounded-lg webkit-app-no-drag",
|
|
37
39
|
type: "button",
|
|
38
40
|
onClick: r[0] || (r[0] = //@ts-ignore
|
|
39
|
-
(...
|
|
41
|
+
(...a) => e(i) && e(i)(...a))
|
|
40
42
|
}, [
|
|
41
|
-
|
|
43
|
+
p(e(m), {
|
|
42
44
|
icon: "Add",
|
|
43
|
-
size: "xs"
|
|
45
|
+
size: "xs",
|
|
46
|
+
thickness: "2.5"
|
|
44
47
|
})
|
|
45
48
|
])
|
|
46
49
|
])
|
|
@@ -48,5 +51,5 @@ const h = { class: "flex h-10 t-app__top-nav" }, C = { class: "flex h-10 flex-1
|
|
|
48
51
|
}
|
|
49
52
|
});
|
|
50
53
|
export {
|
|
51
|
-
|
|
54
|
+
F as default
|
|
52
55
|
};
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
import type
|
|
2
|
-
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<
|
|
1
|
+
import { type Icon } from '@scalar/components';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
3
3
|
hotkey?: string;
|
|
4
4
|
active: boolean;
|
|
5
|
+
label: string;
|
|
6
|
+
icon: Icon;
|
|
5
7
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
8
|
click: () => void;
|
|
7
9
|
close: () => void;
|
|
8
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<
|
|
10
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
9
11
|
hotkey?: string;
|
|
10
12
|
active: boolean;
|
|
13
|
+
label: string;
|
|
14
|
+
icon: Icon;
|
|
11
15
|
}>>> & {
|
|
12
16
|
onClick?: (() => any) | undefined;
|
|
13
17
|
onClose?: (() => any) | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TopNavItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TopNav/TopNavItem.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TopNavItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TopNav/TopNavItem.vue"],"names":[],"mappings":"AA+HA,OAAO,EAAE,KAAK,IAAI,EAA6B,MAAM,oBAAoB,CAAA;;aAK9D,MAAM;YACP,OAAO;WACR,MAAM;UACP,IAAI;;;;;aAHD,MAAM;YACP,OAAO;WACR,MAAM;UACP,IAAI;;;;;AAoJZ,wBAOG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./TopNavItem.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-26cc8e34"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -1,56 +1,57 @@
|
|
|
1
|
-
import { defineComponent as m, openBlock as i, createBlock as s, unref as n, withCtx as
|
|
1
|
+
import { defineComponent as m, openBlock as i, createBlock as s, unref as n, withCtx as a, createElementVNode as o, normalizeClass as p, createVNode as l, toDisplayString as k, createCommentVNode as f } from "vue";
|
|
2
2
|
import v from "../ScalarHotkey.vue.js";
|
|
3
3
|
import { ScalarTooltip as y, ScalarIcon as c } from "@scalar/components";
|
|
4
|
-
const d = { class: "nav-item-icon-copy flex flex-1 items-center justify-center gap-1.5" }, u = { class: "nav-item-copy text-xs" },
|
|
4
|
+
const d = { class: "nav-item-icon-copy flex flex-1 items-center justify-center gap-1.5" }, u = { class: "nav-item-copy text-xs" }, g = /* @__PURE__ */ m({
|
|
5
5
|
__name: "TopNavItem",
|
|
6
6
|
props: {
|
|
7
|
-
label: {},
|
|
8
|
-
icon: {},
|
|
9
7
|
hotkey: {},
|
|
10
|
-
active: { type: Boolean }
|
|
8
|
+
active: { type: Boolean },
|
|
9
|
+
label: {},
|
|
10
|
+
icon: {}
|
|
11
11
|
},
|
|
12
12
|
emits: ["click", "close"],
|
|
13
|
-
setup(
|
|
13
|
+
setup(h) {
|
|
14
14
|
return (e, t) => (i(), s(n(y), {
|
|
15
15
|
class: "scalar-client",
|
|
16
16
|
delay: 500,
|
|
17
17
|
resize: "",
|
|
18
18
|
sideOffset: 4
|
|
19
19
|
}, {
|
|
20
|
-
trigger:
|
|
20
|
+
trigger: a(() => [
|
|
21
21
|
o("div", {
|
|
22
|
-
class: p(["nav-item", { "nav-item__active": e.active }]),
|
|
22
|
+
class: p(["nav-item webkit-app-no-drag", { "nav-item__active": e.active }]),
|
|
23
23
|
onClick: t[1] || (t[1] = (r) => e.$emit("click"))
|
|
24
24
|
}, [
|
|
25
25
|
o("div", d, [
|
|
26
|
-
|
|
26
|
+
l(n(c), {
|
|
27
27
|
icon: e.icon,
|
|
28
|
-
size: "xs"
|
|
28
|
+
size: "xs",
|
|
29
|
+
thickness: "2.5"
|
|
29
30
|
}, null, 8, ["icon"]),
|
|
30
|
-
o("span", u,
|
|
31
|
+
o("span", u, k(e.label), 1)
|
|
31
32
|
]),
|
|
32
33
|
o("button", {
|
|
33
34
|
class: "nav-item-close",
|
|
34
35
|
type: "button",
|
|
35
36
|
onClick: t[0] || (t[0] = (r) => e.$emit("close"))
|
|
36
37
|
}, [
|
|
37
|
-
|
|
38
|
+
l(n(c), {
|
|
38
39
|
icon: "Close",
|
|
39
40
|
thickness: "1.75"
|
|
40
41
|
})
|
|
41
42
|
])
|
|
42
43
|
], 2)
|
|
43
44
|
]),
|
|
44
|
-
content:
|
|
45
|
+
content: a(() => [
|
|
45
46
|
e.hotkey ? (i(), s(v, {
|
|
46
47
|
key: 0,
|
|
47
48
|
hotkey: e.hotkey
|
|
48
|
-
}, null, 8, ["hotkey"])) :
|
|
49
|
+
}, null, 8, ["hotkey"])) : f("", !0)
|
|
49
50
|
]),
|
|
50
51
|
_: 1
|
|
51
52
|
}));
|
|
52
53
|
}
|
|
53
54
|
});
|
|
54
55
|
export {
|
|
55
|
-
|
|
56
|
+
g as default
|
|
56
57
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ViewLayout.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayout.vue"],"names":[],"mappings":"AAcA,iBAAS,cAAc;
|
|
1
|
+
{"version":3,"file":"ViewLayout.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayout.vue"],"names":[],"mappings":"AAcA,iBAAS,cAAc;qBA4BM,GAAG;EAa/B;AACD,QAAA,MAAM,eAAe,0NAKnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { openBlock as o, createElementBlock as r, renderSlot as t } from "vue";
|
|
2
2
|
import n from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
const l = {}, d = { class: "m-1 mt-0 flex min-h-0 flex-1 rounded xl:rounded-lg xl:border xl:overflow-hidden leading-3" };
|
|
3
|
+
const l = {}, d = { class: "m-1 mt-0 flex min-h-0 flex-1 rounded xl:rounded-lg xl:border xl:overflow-hidden leading-3 z-0" };
|
|
4
4
|
function c(e, s) {
|
|
5
5
|
return o(), r("div", d, [
|
|
6
6
|
t(e.$slots, "default")
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ViewLayoutCollapse.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayoutCollapse.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ViewLayoutCollapse.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayoutCollapse.vue"],"names":[],"mappings":"AAgFA,iBAAS,cAAc;;;QA4IK,GAAG;;;QACD,GAAG;;;QACH,GAAG;EAkBhC;AACD,QAAA,MAAM,eAAe;kBApLH,OAAO;gBACT,MAAM;;;;;kBADJ,OAAO;gBACT,MAAM;;;;;iBADJ,OAAO;eACT,MAAM;MAyLpB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAC7C,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KAAC,CAAC,GACvC,CAAC,CAAC,CAAC,CAAC;CACP,CAAC;AAEN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AAExD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -25,7 +25,8 @@ const x = { class: "flex flex-1 items-center gap-1.5" }, _ = {
|
|
|
25
25
|
i(o(b), {
|
|
26
26
|
class: "text-c-3 group-hover:text-c-1 ui-open:rotate-90 ui-not-open:rotate-0",
|
|
27
27
|
icon: "ChevronRight",
|
|
28
|
-
size: "sm"
|
|
28
|
+
size: "sm",
|
|
29
|
+
thickness: "2.5"
|
|
29
30
|
}),
|
|
30
31
|
r("div", x, [
|
|
31
32
|
l(e.$slots, "title", { open: t }),
|