@scalar/api-client 2.5.17 → 2.5.19
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 +47 -0
- package/dist/components/AddressBar/AddressBarHistory.vue2.js +9 -8
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +15 -13
- package/dist/components/CommandPalette/CommandPaletteServer.vue.js +10 -9
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +28 -26
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInputSelect.vue.js +9 -8
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +9 -7
- package/dist/components/ImportCollection/ImportNowButton.vue.js +6 -4
- package/dist/components/ImportCollection/WorkspaceSelector.vue.js +4 -2
- package/dist/components/SectionFilter.vue.d.ts.map +1 -1
- package/dist/components/SectionFilter.vue.js +2 -2
- package/dist/components/SectionFilter.vue2.js +8 -8
- package/dist/components/Server/ServerSelector.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerSelector.vue.js +3 -2
- package/dist/components/Server/ServerVariablesForm.vue.js +1 -1
- package/dist/components/Server/ServerVariablesSelect.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerVariablesSelect.vue.js +7 -7
- package/dist/components/SideNav/SideHelp.vue.js +16 -10
- package/dist/components/SideNav/SideNav.vue.js +2 -1
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.js +2 -1
- package/dist/components/TopNav/TopNav.vue.js +9 -7
- package/dist/components/TopNav/TopNavItem.vue2.js +8 -4
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +14 -14
- package/dist/layouts/App/create-api-client-app.d.ts +42 -2
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.d.ts +84 -4
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.d.ts +42 -2
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +42 -2
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/store/security-schemes.d.ts +42 -2
- package/dist/store/security-schemes.d.ts.map +1 -1
- package/dist/store/store.d.ts +42 -2
- package/dist/store/store.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/views/Collection/CollectionEnvironment.vue2.js +8 -7
- package/dist/views/Collection/CollectionServers.vue2.js +2 -1
- package/dist/views/Collection/CollectionSettings.vue2.js +2 -1
- package/dist/views/Collection/components/EnvironmentForm.vue2.js +4 -2
- package/dist/views/Collection/components/MarkdownInput.vue2.js +4 -2
- package/dist/views/Environment/Environment.vue2.js +2 -1
- package/dist/views/Environment/EnvironmentModal.vue.js +10 -9
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +2 -1
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +5 -4
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +22 -11
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +9 -8
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +7 -7
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue2.js +33 -28
- package/dist/views/Request/RequestSection/RequestBody.vue2.js +4 -2
- package/dist/views/Request/RequestSection/RequestParams.vue.js +2 -1
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +12 -10
- package/dist/views/Request/RequestSidebar.vue2.js +2 -1
- package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItem.vue2.js +2 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue2.js +6 -3
- package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +4 -2
- package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +2 -1
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +2 -1
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.js +3 -3
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue2.js +4 -4
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +4 -2
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue2.js +5 -4
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +13 -10
- package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
- package/dist/views/Request/libs/oauth2.js +46 -44
- package/dist/views/Settings/SettingsGeneral.vue.js +19 -17
- package/dist/views/Settings/components/SettingsAppearance.vue.js +8 -5
- package/package.json +20 -20
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as x, mergeModels as p, useModel as h, ref as g, createElementBlock as f, openBlock as i, withKeys as m, createElementVNode as
|
|
1
|
+
import { defineComponent as x, mergeModels as p, useModel as h, ref as g, createElementBlock as f, openBlock as i, withKeys as m, createElementVNode as c, Fragment as b, renderList as k, createBlock as y, withCtx as V, createTextVNode as w, toDisplayString as v, createVNode as S, unref as q, nextTick as B } from "vue";
|
|
2
2
|
import { ScalarIcon as C } from "@scalar/components";
|
|
3
3
|
import I from "./SectionFilterButton.vue.js";
|
|
4
|
-
const _ = { class: "request-section-content request-section-content-filter fade-request-section-content text-c-3 pointer-events-auto relative hidden w-full justify-end gap-[1.5px] rounded py-
|
|
4
|
+
const _ = { class: "request-section-content request-section-content-filter fade-request-section-content text-c-3 pointer-events-auto relative hidden w-full justify-end gap-[1.5px] rounded py-1.75 text-xs xl:flex" }, $ = { class: "filter-button context-bar-group-hover:text-c-1 absolute -right-[30px] flex items-center" }, F = { class: "context-bar-group-hover:hidden mr-1.5" }, K = /* @__PURE__ */ x({
|
|
5
5
|
__name: "SectionFilter",
|
|
6
6
|
props: /* @__PURE__ */ p({
|
|
7
7
|
filters: { default: () => [] },
|
|
@@ -12,7 +12,7 @@ const _ = { class: "request-section-content request-section-content-filter fade-
|
|
|
12
12
|
}),
|
|
13
13
|
emits: ["update:modelValue"],
|
|
14
14
|
setup(l) {
|
|
15
|
-
const t = h(l, "modelValue"), r = g(),
|
|
15
|
+
const t = h(l, "modelValue"), r = g(), a = (s) => {
|
|
16
16
|
const o = s === "prev" ? -1 : 1, e = t.value ? l.filters.indexOf(t.value) : 0, n = l.filters.length, d = (e + o + n) % n;
|
|
17
17
|
t.value = l.filters[d], B(() => {
|
|
18
18
|
if (r.value) {
|
|
@@ -29,11 +29,11 @@ const _ = { class: "request-section-content request-section-content-filter fade-
|
|
|
29
29
|
class: "filter-hover context-bar-group ml-auto hidden lg:flex",
|
|
30
30
|
role: "tablist",
|
|
31
31
|
onKeydown: [
|
|
32
|
-
o[0] || (o[0] = m((e) =>
|
|
33
|
-
o[1] || (o[1] = m((e) =>
|
|
32
|
+
o[0] || (o[0] = m((e) => a("prev"), ["left"])),
|
|
33
|
+
o[1] || (o[1] = m((e) => a("next"), ["right"]))
|
|
34
34
|
]
|
|
35
35
|
}, [
|
|
36
|
-
|
|
36
|
+
c("div", _, [
|
|
37
37
|
(i(!0), f(b, null, k(s.filters, (e) => {
|
|
38
38
|
var n;
|
|
39
39
|
return i(), y(I, {
|
|
@@ -50,8 +50,8 @@ const _ = { class: "request-section-content request-section-content-filter fade-
|
|
|
50
50
|
_: 2
|
|
51
51
|
}, 1032, ["controls", "selected", "onClick"]);
|
|
52
52
|
}), 128)),
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
c("div", $, [
|
|
54
|
+
c("span", F, v(t.value), 1),
|
|
55
55
|
S(q(C), {
|
|
56
56
|
icon: "FilterList",
|
|
57
57
|
size: "md",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ServerSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Server/ServerSelector.vue"],"names":[],"mappings":"AA+GA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AAYzE,KAAK,WAAW,GAAG;IACjB,qBAAqB;IACrB,UAAU,EAAE,UAAU,CAAA;IACtB,0BAA0B;IAC1B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,qEAAqE;IACrE,MAAM,EAAE,MAAM,CAAA;CACf,CAAC;;;;;;
|
|
1
|
+
{"version":3,"file":"ServerSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Server/ServerSelector.vue"],"names":[],"mappings":"AA+GA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AAYzE,KAAK,WAAW,GAAG;IACjB,qBAAqB;IACrB,UAAU,EAAE,UAAU,CAAA;IACtB,0BAA0B;IAC1B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,qEAAqE;IACrE,MAAM,EAAE,MAAM,CAAA;CACf,CAAC;;;;;;AA2LF,wBAOG"}
|
|
@@ -3,7 +3,7 @@ import { ScalarListbox as k, ScalarButton as U, ScalarIcon as V } from "@scalar/
|
|
|
3
3
|
import { useWorkspace as B } from "../../store/store.js";
|
|
4
4
|
const W = { class: "overflow-x-auto" }, z = {
|
|
5
5
|
key: 1,
|
|
6
|
-
class: "text-c-1 flex h-auto w-full items-center gap-0.75 rounded-b-lg px-3 py-1.5 text-base whitespace-nowrap"
|
|
6
|
+
class: "text-c-1 flex h-auto w-full items-center gap-0.75 rounded-b-lg px-3 py-1.5 text-base leading-[20px] whitespace-nowrap"
|
|
7
7
|
}, C = { class: "overflow-x-auto" }, j = /* @__PURE__ */ w({
|
|
8
8
|
__name: "ServerSelector",
|
|
9
9
|
props: {
|
|
@@ -77,7 +77,8 @@ const W = { class: "overflow-x-auto" }, z = {
|
|
|
77
77
|
size: "sm"
|
|
78
78
|
})
|
|
79
79
|
]),
|
|
80
|
-
_: 1
|
|
80
|
+
_: 1,
|
|
81
|
+
__: [1]
|
|
81
82
|
})
|
|
82
83
|
]),
|
|
83
84
|
_: 1
|
|
@@ -23,7 +23,7 @@ const j = { class: "mr-1.5 flex items-center py-1.5 pl-3 group-has-[input]/label
|
|
|
23
23
|
var a, u, c, b, m;
|
|
24
24
|
return o(), p("label", {
|
|
25
25
|
key: l,
|
|
26
|
-
class: C(["group/label flex w-full", e.layout === "reference" && "border-x border-b"])
|
|
26
|
+
class: C(["group/label flex w-full", e.layout === "reference" && "rounded-b-lg border-x border-b"])
|
|
27
27
|
}, [
|
|
28
28
|
V("span", j, B(l), 1),
|
|
29
29
|
(c = (u = (a = e.variables) == null ? void 0 : a[l]) == null ? void 0 : u.enum) != null && c.length ? (o(), f(S, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ServerVariablesSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Server/ServerVariablesSelect.vue"],"names":[],"mappings":"AA+DA,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,EAAE,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;CAC7B,CAAC;;;;;;
|
|
1
|
+
{"version":3,"file":"ServerVariablesSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Server/ServerVariablesSelect.vue"],"names":[],"mappings":"AA+DA,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,EAAE,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;CAC7B,CAAC;;;;;;AA2GF,wBAQG"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as v, computed as s, createBlock as f, openBlock as r, unref as a, withCtx as c, createVNode as i, createElementVNode as S, normalizeClass as V, createElementBlock as h, createCommentVNode as g, createTextVNode as C, toDisplayString as k } from "vue";
|
|
2
|
-
import { ScalarListbox as
|
|
3
|
-
const
|
|
2
|
+
import { ScalarListbox as B, ScalarButton as N, ScalarIcon as _ } from "@scalar/components";
|
|
3
|
+
const b = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "sr-only"
|
|
6
6
|
}, x = /* @__PURE__ */ v({
|
|
@@ -18,25 +18,25 @@ const _ = {
|
|
|
18
18
|
get: () => t.value.find((e) => e.id === o.value),
|
|
19
19
|
set: (e) => d("change", (e == null ? void 0 : e.id) ?? "")
|
|
20
20
|
});
|
|
21
|
-
return (e, n) => (r(), f(a(
|
|
21
|
+
return (e, n) => (r(), f(a(B), {
|
|
22
22
|
modelValue: l.value,
|
|
23
23
|
"onUpdate:modelValue": n[0] || (n[0] = (p) => l.value = p),
|
|
24
24
|
options: t.value
|
|
25
25
|
}, {
|
|
26
26
|
default: c(() => [
|
|
27
|
-
i(a(
|
|
27
|
+
i(a(N), {
|
|
28
28
|
"aria-controls": e.controls,
|
|
29
|
-
class: "h-8 p-
|
|
29
|
+
class: "h-8 p-1.5 font-normal",
|
|
30
30
|
variant: "ghost"
|
|
31
31
|
}, {
|
|
32
32
|
default: c(() => [
|
|
33
33
|
S("span", {
|
|
34
34
|
class: V({ "text-c-1": e.value })
|
|
35
35
|
}, [
|
|
36
|
-
e.value ? (r(), h("span",
|
|
36
|
+
e.value ? (r(), h("span", b, " Selected: ")) : g("", !0),
|
|
37
37
|
C(" " + k(e.value || "Select value"), 1)
|
|
38
38
|
], 2),
|
|
39
|
-
i(a(
|
|
39
|
+
i(a(_), {
|
|
40
40
|
class: "ml-1",
|
|
41
41
|
icon: "ChevronDown",
|
|
42
42
|
size: "sm"
|
|
@@ -5,11 +5,11 @@ const f = {
|
|
|
5
5
|
class: "block no-underline",
|
|
6
6
|
href: "https://discord.gg/scalar",
|
|
7
7
|
target: "_blank"
|
|
8
|
-
}, m = { class: "flex items-center justify-center" },
|
|
8
|
+
}, m = { class: "flex items-center justify-center" }, _ = {
|
|
9
9
|
class: "block no-underline",
|
|
10
10
|
href: "https://github.com/scalar/scalar",
|
|
11
11
|
target: "_blank"
|
|
12
|
-
},
|
|
12
|
+
}, x = { class: "flex items-center justify-center" }, g = {
|
|
13
13
|
class: "block no-underline",
|
|
14
14
|
href: "mailto:support@scalar.com",
|
|
15
15
|
target: "_blank"
|
|
@@ -42,13 +42,14 @@ const f = {
|
|
|
42
42
|
]),
|
|
43
43
|
t[1] || (t[1] = e("span", null, "Discord", -1))
|
|
44
44
|
]),
|
|
45
|
-
_: 1
|
|
45
|
+
_: 1,
|
|
46
|
+
__: [1]
|
|
46
47
|
})
|
|
47
48
|
]),
|
|
48
|
-
e("a",
|
|
49
|
+
e("a", _, [
|
|
49
50
|
l(s(o), { class: "flex w-full items-center gap-1.5" }, {
|
|
50
51
|
default: n(() => [
|
|
51
|
-
e("div",
|
|
52
|
+
e("div", x, [
|
|
52
53
|
l(s(a), {
|
|
53
54
|
icon: "GitHubLine",
|
|
54
55
|
size: "xs",
|
|
@@ -57,7 +58,8 @@ const f = {
|
|
|
57
58
|
]),
|
|
58
59
|
t[2] || (t[2] = e("span", null, "GitHub", -1))
|
|
59
60
|
]),
|
|
60
|
-
_: 1
|
|
61
|
+
_: 1,
|
|
62
|
+
__: [2]
|
|
61
63
|
})
|
|
62
64
|
]),
|
|
63
65
|
e("a", g, [
|
|
@@ -71,7 +73,8 @@ const f = {
|
|
|
71
73
|
]),
|
|
72
74
|
t[3] || (t[3] = e("span", null, "Email", -1))
|
|
73
75
|
]),
|
|
74
|
-
_: 1
|
|
76
|
+
_: 1,
|
|
77
|
+
__: [3]
|
|
75
78
|
})
|
|
76
79
|
]),
|
|
77
80
|
t[7] || (t[7] = e("span", { class: "text-c-2 px-2.5 py-1.5 text-xs font-medium" }, "Product", -1)),
|
|
@@ -87,7 +90,8 @@ const f = {
|
|
|
87
90
|
]),
|
|
88
91
|
t[4] || (t[4] = e("span", null, "Changelog", -1))
|
|
89
92
|
]),
|
|
90
|
-
_: 1
|
|
93
|
+
_: 1,
|
|
94
|
+
__: [4]
|
|
91
95
|
})
|
|
92
96
|
]),
|
|
93
97
|
e("a", w, [
|
|
@@ -102,7 +106,8 @@ const f = {
|
|
|
102
106
|
]),
|
|
103
107
|
t[5] || (t[5] = e("span", null, "Roadmap", -1))
|
|
104
108
|
]),
|
|
105
|
-
_: 1
|
|
109
|
+
_: 1,
|
|
110
|
+
__: [5]
|
|
106
111
|
})
|
|
107
112
|
])
|
|
108
113
|
]),
|
|
@@ -115,7 +120,8 @@ const f = {
|
|
|
115
120
|
default: n(() => t[0] || (t[0] = [
|
|
116
121
|
d(" About ")
|
|
117
122
|
])),
|
|
118
|
-
_: 1
|
|
123
|
+
_: 1,
|
|
124
|
+
__: [0]
|
|
119
125
|
})
|
|
120
126
|
]),
|
|
121
127
|
_: 1
|
|
@@ -24,7 +24,8 @@ const g = { class: "flex justify-between gap-10" }, y = /* @__PURE__ */ u({
|
|
|
24
24
|
default: r(() => e[2] || (e[2] = [
|
|
25
25
|
s(" Cancel ")
|
|
26
26
|
])),
|
|
27
|
-
_: 1
|
|
27
|
+
_: 1,
|
|
28
|
+
__: [2]
|
|
28
29
|
}),
|
|
29
30
|
n(a(l), {
|
|
30
31
|
class: "custom-scroll h-8 gap-1.5 px-2.5 font-medium whitespace-nowrap shadow-none focus:outline-none",
|
|
@@ -93,7 +93,7 @@ const ie = { class: "mac:pl-[72px] t-app__top-nav relative flex h-10 pl-2" }, se
|
|
|
93
93
|
t.length - 1
|
|
94
94
|
), C();
|
|
95
95
|
}
|
|
96
|
-
const
|
|
96
|
+
const _ = (e) => {
|
|
97
97
|
var l;
|
|
98
98
|
if (!((l = t[e]) != null && l.path))
|
|
99
99
|
return;
|
|
@@ -101,7 +101,7 @@ const ie = { class: "mac:pl-[72px] t-app__top-nav relative flex h-10 pl-2" }, se
|
|
|
101
101
|
o.pathname = t[e].path, z(o.toString());
|
|
102
102
|
}, B = (e) => {
|
|
103
103
|
t.splice(0, e), t.splice(1), a.value = 0, C();
|
|
104
|
-
},
|
|
104
|
+
}, R = (e) => {
|
|
105
105
|
if (e) {
|
|
106
106
|
if (e.addTopNav && d(), e.closeTopNav && w(a.value), e.navigateTopNavLeft && f(Math.max(a.value - 1, 0)), e.navigateTopNavRight && f(Math.min(a.value + 1, t.length - 1)), e.jumpToTab) {
|
|
107
107
|
const o = Number(e.jumpToTab.key) - 1;
|
|
@@ -123,7 +123,7 @@ const ie = { class: "mac:pl-[72px] t-app__top-nav relative flex h-10 pl-2" }, se
|
|
|
123
123
|
e && V(e);
|
|
124
124
|
},
|
|
125
125
|
{ immediate: !0 }
|
|
126
|
-
), K(() => T.hotKeys.on(
|
|
126
|
+
), K(() => T.hotKeys.on(R)), q(() => T.hotKeys.off(R)), (e, o) => (p(), g("nav", ie, [
|
|
127
127
|
o[3] || (o[3] = h("div", { class: "app-drag-region absolute inset-0" }, null, -1)),
|
|
128
128
|
h("div", se, [
|
|
129
129
|
t.length === 1 ? (p(), g("div", re, [
|
|
@@ -165,11 +165,12 @@ const ie = { class: "mac:pl-[72px] t-app__top-nav relative flex h-10 pl-2" }, se
|
|
|
165
165
|
hotkey: "T"
|
|
166
166
|
})
|
|
167
167
|
]),
|
|
168
|
-
_: 1
|
|
168
|
+
_: 1,
|
|
169
|
+
__: [1]
|
|
169
170
|
}),
|
|
170
171
|
r(i(A), {
|
|
171
172
|
class: "flex items-center gap-1.5",
|
|
172
|
-
onClick: o[0] || (o[0] = (l) =>
|
|
173
|
+
onClick: o[0] || (o[0] = (l) => _(y.value))
|
|
173
174
|
}, {
|
|
174
175
|
default: m(() => [
|
|
175
176
|
r(i(b), {
|
|
@@ -179,7 +180,8 @@ const ie = { class: "mac:pl-[72px] t-app__top-nav relative flex h-10 pl-2" }, se
|
|
|
179
180
|
}),
|
|
180
181
|
o[2] || (o[2] = U(" Copy URL "))
|
|
181
182
|
]),
|
|
182
|
-
_: 1
|
|
183
|
+
_: 1,
|
|
184
|
+
__: [2]
|
|
183
185
|
})
|
|
184
186
|
]),
|
|
185
187
|
_: 1
|
|
@@ -202,7 +204,7 @@ const ie = { class: "mac:pl-[72px] t-app__top-nav relative flex h-10 pl-2" }, se
|
|
|
202
204
|
onClick: (s) => f(n),
|
|
203
205
|
onClose: (s) => w(n),
|
|
204
206
|
onCloseOtherTabs: (s) => B(n),
|
|
205
|
-
onCopyUrl: (s) =>
|
|
207
|
+
onCopyUrl: (s) => _(n),
|
|
206
208
|
onNewTab: d
|
|
207
209
|
}, null, 8, ["active", "hotkey", "icon", "isCollection", "label", "onClick", "onClose", "onCloseOtherTabs", "onCopyUrl"]);
|
|
208
210
|
}), 128)),
|
|
@@ -74,7 +74,8 @@ const w = { class: "nav-item-icon-copy flex flex-1 items-center justify-center g
|
|
|
74
74
|
hotkey: "T"
|
|
75
75
|
})
|
|
76
76
|
]),
|
|
77
|
-
_: 1
|
|
77
|
+
_: 1,
|
|
78
|
+
__: [6]
|
|
78
79
|
}),
|
|
79
80
|
o(t(m), {
|
|
80
81
|
class: "flex items-center gap-1.5",
|
|
@@ -88,7 +89,8 @@ const w = { class: "nav-item-icon-copy flex flex-1 items-center justify-center g
|
|
|
88
89
|
}),
|
|
89
90
|
e[7] || (e[7] = a(" Copy URL "))
|
|
90
91
|
]),
|
|
91
|
-
_: 1
|
|
92
|
+
_: 1,
|
|
93
|
+
__: [7]
|
|
92
94
|
}),
|
|
93
95
|
o(t(g)),
|
|
94
96
|
o(t(m), {
|
|
@@ -107,7 +109,8 @@ const w = { class: "nav-item-icon-copy flex flex-1 items-center justify-center g
|
|
|
107
109
|
hotkey: "W"
|
|
108
110
|
})
|
|
109
111
|
]),
|
|
110
|
-
_: 1
|
|
112
|
+
_: 1,
|
|
113
|
+
__: [8]
|
|
111
114
|
}),
|
|
112
115
|
o(t(m), {
|
|
113
116
|
class: "flex items-center gap-1.5",
|
|
@@ -121,7 +124,8 @@ const w = { class: "nav-item-icon-copy flex flex-1 items-center justify-center g
|
|
|
121
124
|
}),
|
|
122
125
|
e[9] || (e[9] = a(" Close Other Tabs "))
|
|
123
126
|
]),
|
|
124
|
-
_: 1
|
|
127
|
+
_: 1,
|
|
128
|
+
__: [9]
|
|
125
129
|
})
|
|
126
130
|
]),
|
|
127
131
|
_: 1
|
|
@@ -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":"AA2GA,KAAK,WAAW,GAAG;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,MAAM,CAAC,EAAE,QAAQ,GAAG,WAAW,CAAA;CAChC,CAAC;AA+BF,iBAAS,cAAc;WAoLT,OAAO,IAA6B;;;;YAVtB,GAAG;;;YACD,GAAG;;;YACH,GAAG;;;;EAahC;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;kFAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAUpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as x, useId as v, ref as C, onMounted as k, createBlock as p, openBlock as l, unref as t, normalizeClass as n, withCtx as i, createElementVNode as s, createVNode as m, createElementBlock as u, createCommentVNode as r, renderSlot as d, createTextVNode as V, toDisplayString as b, mergeProps as _ } from "vue";
|
|
2
2
|
import { Disclosure as O, DisclosureButton as w, DisclosurePanel as B } from "@headlessui/vue";
|
|
3
3
|
import { ScalarIcon as $ } from "@scalar/components";
|
|
4
|
-
const D = ["aria-labelledby"], N = { class: "text-c-1 flex flex-1 items-center gap-1.5" }, I = ["id"], S = {
|
|
4
|
+
const D = ["aria-labelledby"], N = { class: "text-c-1 m-0 flex flex-1 items-center gap-1.5 leading-[20px]" }, I = ["id"], S = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "sr-only"
|
|
7
7
|
}, z = {
|
|
@@ -10,7 +10,7 @@ const D = ["aria-labelledby"], N = { class: "text-c-1 flex flex-1 items-center g
|
|
|
10
10
|
}, E = { class: "sr-only" }, P = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "ui-not-open:invisible flex items-center gap-2 pr-2"
|
|
13
|
-
}, T = /* @__PURE__ */
|
|
13
|
+
}, T = /* @__PURE__ */ x({
|
|
14
14
|
__name: "ViewLayoutCollapse",
|
|
15
15
|
props: {
|
|
16
16
|
defaultOpen: { type: Boolean, default: !0 },
|
|
@@ -19,12 +19,12 @@ const D = ["aria-labelledby"], N = { class: "text-c-1 flex flex-1 items-center g
|
|
|
19
19
|
},
|
|
20
20
|
emits: ["update:modelValue"],
|
|
21
21
|
setup(y, { emit: h }) {
|
|
22
|
-
const c = h, f =
|
|
22
|
+
const c = h, f = v(), a = C(y.defaultOpen), g = () => {
|
|
23
23
|
a.value = !a.value, c("update:modelValue", a.value);
|
|
24
24
|
};
|
|
25
25
|
return k(() => {
|
|
26
26
|
c("update:modelValue", a.value);
|
|
27
|
-
}), (e, j) => (
|
|
27
|
+
}), (e, j) => (l(), p(t(O), {
|
|
28
28
|
as: "div",
|
|
29
29
|
class: n(["group/collapse focus-within:text-c-1 text-c-2 border-b", { "last-of-type:first-of-type:border-b-0": e.layout === "reference" }]),
|
|
30
30
|
defaultOpen: e.defaultOpen,
|
|
@@ -32,11 +32,11 @@ const D = ["aria-labelledby"], N = { class: "text-c-1 flex flex-1 items-center g
|
|
|
32
32
|
onClick: g
|
|
33
33
|
}, {
|
|
34
34
|
default: i(({ open: o }) => [
|
|
35
|
-
|
|
35
|
+
s("section", {
|
|
36
36
|
"aria-labelledby": t(f),
|
|
37
37
|
class: "contents"
|
|
38
38
|
}, [
|
|
39
|
-
|
|
39
|
+
s("div", {
|
|
40
40
|
class: n(["bg-b-2 flex items-center", e.layout === "reference" && "rounded-t-lg border border-b-0"])
|
|
41
41
|
}, [
|
|
42
42
|
m(t(w), {
|
|
@@ -47,7 +47,7 @@ const D = ["aria-labelledby"], N = { class: "text-c-1 flex flex-1 items-center g
|
|
|
47
47
|
disabled: e.layout === "reference"
|
|
48
48
|
}, {
|
|
49
49
|
default: i(() => [
|
|
50
|
-
e.layout !== "reference" ? (
|
|
50
|
+
e.layout !== "reference" ? (l(), p(t($), {
|
|
51
51
|
key: 0,
|
|
52
52
|
class: n([
|
|
53
53
|
"text-c-3 group-hover:text-c-1 ui-open:rotate-90 ui-not-open:rotate-0 rounded-px outline-offset-2 group-focus-visible:outline"
|
|
@@ -55,23 +55,23 @@ const D = ["aria-labelledby"], N = { class: "text-c-1 flex flex-1 items-center g
|
|
|
55
55
|
icon: "ChevronRight",
|
|
56
56
|
size: "md"
|
|
57
57
|
})) : r("", !0),
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
s("h2", N, [
|
|
59
|
+
s("span", {
|
|
60
60
|
id: t(f),
|
|
61
61
|
class: "contents"
|
|
62
62
|
}, [
|
|
63
63
|
d(e.$slots, "title", { open: o }),
|
|
64
|
-
o ? r("", !0) : (
|
|
64
|
+
o ? r("", !0) : (l(), u("span", S, " (Collapsed) "))
|
|
65
65
|
], 8, I),
|
|
66
|
-
!o && e.itemCount ? (
|
|
66
|
+
!o && e.itemCount ? (l(), u("span", z, [
|
|
67
67
|
V(b(e.itemCount) + " ", 1),
|
|
68
|
-
|
|
68
|
+
s("span", E, "Item" + b(e.itemCount === 1 ? "" : "s"), 1)
|
|
69
69
|
])) : r("", !0)
|
|
70
70
|
])
|
|
71
71
|
]),
|
|
72
72
|
_: 2
|
|
73
73
|
}, 1032, ["class", "disabled"]),
|
|
74
|
-
e.$slots.actions ? (
|
|
74
|
+
e.$slots.actions ? (l(), u("div", P, [
|
|
75
75
|
d(e.$slots, "actions", { open: o })
|
|
76
76
|
])) : r("", !0)
|
|
77
77
|
], 2),
|