@scalar/api-client 2.3.30 → 2.3.31
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 +24 -0
- package/dist/components/AddressBar/AddressBar.vue2.js +3 -3
- package/dist/components/AddressBar/AddressBarHistory.vue2.js +1 -1
- package/dist/components/CodeInput/CodeInput.vue2.js +1 -1
- package/dist/components/CodeInput/codeVariableWidget.js +4 -4
- package/dist/components/CommandPalette/CommandActionForm.vue.js +2 -2
- package/dist/components/CommandPalette/CommandActionInput.vue.js +2 -2
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +2 -2
- package/dist/components/CommandPalette/CommandPaletteExample.vue.js +6 -6
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +5 -5
- package/dist/components/CommandPalette/CommandPaletteImportCurl.vue2.js +7 -7
- package/dist/components/CommandPalette/CommandPaletteServer.vue.js +7 -7
- package/dist/components/CommandPalette/CommandPaletteTag.vue.js +6 -6
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.js +4 -4
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +5 -5
- package/dist/components/CommandPalette/WatchModeToggle.vue.js +2 -2
- package/dist/components/DataTable/DataTable.vue.js +5 -5
- package/dist/components/DataTable/DataTableCell.vue.js +2 -2
- package/dist/components/DataTable/DataTableCheckbox.vue.js +2 -2
- package/dist/components/DataTable/DataTableHeader.vue.js +2 -2
- package/dist/components/DataTable/DataTableInput.vue2.js +9 -9
- package/dist/components/DataTable/DataTableInputSelect.vue.js +5 -5
- package/dist/components/DataTable/DataTableRow.vue.js +2 -2
- package/dist/components/DataTable/DataTableText.vue.js +2 -2
- package/dist/components/DataTable/index.js +14 -14
- package/dist/components/EmptyState.vue2.js +2 -2
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +12 -12
- package/dist/components/Form/Form.vue.js +4 -4
- package/dist/components/Form/LabelInput.vue2.js +4 -4
- package/dist/components/HelpfulLink.vue.js +2 -2
- package/dist/components/HttpMethod/HttpMethod.vue2.js +3 -3
- package/dist/components/IconSelector.vue.js +5 -5
- package/dist/components/ImportCollection/DropEventListener.vue.js +3 -3
- package/dist/components/ImportCollection/ImportCollectionListener.vue.js +2 -2
- package/dist/components/ImportCollection/ImportCollectionModal.vue.js +1 -1
- package/dist/components/ImportCollection/ImportNowButton.vue.js +3 -3
- package/dist/components/ImportCollection/IntegrationLogo.vue.js +2 -2
- package/dist/components/ImportCollection/PrefetchError.vue.js +4 -4
- package/dist/components/ImportCollection/WorkspaceSelector.vue.js +10 -10
- package/dist/components/OpenApiClientButton.vue2.js +4 -4
- package/dist/components/ScalarAsciiArt.vue2.js +3 -3
- package/dist/components/ScalarHotkey.vue.js +2 -2
- package/dist/components/SectionFilter.vue2.js +1 -1
- package/dist/components/SectionFilterButton.vue.js +2 -2
- package/dist/components/Server/ServerDropdown.vue.js +21 -21
- package/dist/components/Server/ServerDropdownItem.vue2.js +4 -4
- package/dist/components/Server/ServerSelector.vue.js +1 -1
- package/dist/components/Server/ServerVariablesForm.vue.js +4 -4
- package/dist/components/Server/ServerVariablesSelect.vue.js +1 -1
- package/dist/components/Server/ServerVariablesTextbox.vue.js +2 -2
- package/dist/components/Server/index.js +6 -6
- package/dist/components/SideNav/DownloadAppButton.vue2.js +5 -5
- package/dist/components/SideNav/SideHelp.vue.js +2 -2
- package/dist/components/SideNav/SideNav.vue.js +5 -5
- package/dist/components/SideNav/SideNavGroup.vue.js +2 -2
- package/dist/components/SideNav/SideNavLink.vue.js +4 -4
- package/dist/components/SideNav/SideNavRouterLink.vue.js +2 -2
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.js +2 -2
- package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.js +2 -2
- package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.js +2 -2
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.js +2 -2
- package/dist/components/Sidebar/Sidebar.vue2.js +4 -4
- package/dist/components/Sidebar/SidebarButton.vue.js +3 -3
- package/dist/components/Sidebar/SidebarList.vue.js +2 -2
- package/dist/components/Sidebar/SidebarListElement.vue2.js +9 -9
- package/dist/components/Sidebar/SidebarListElementActions.vue.js +1 -1
- package/dist/components/Sidebar/SidebarToggle.vue.js +3 -3
- package/dist/components/TopNav/TopNav.vue.js +2 -2
- package/dist/components/TopNav/TopNavItem.vue2.js +20 -20
- package/dist/components/ViewLayout/ViewLayout.vue.js +2 -2
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +7 -7
- package/dist/components/ViewLayout/ViewLayoutContent.vue.js +2 -2
- package/dist/components/ViewLayout/ViewLayoutSection.vue.js +3 -3
- package/dist/hooks/useClientConfig.d.ts +3 -3
- package/dist/layouts/App/ApiClientApp.vue.js +10 -10
- package/dist/layouts/App/MainLayout.vue.js +2 -2
- package/dist/layouts/App/create-api-client-app.d.ts +2 -2
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/App/index.js +5 -4
- package/dist/layouts/Modal/ApiClientModal.vue2.js +2 -2
- package/dist/layouts/Modal/create-api-client-modal.d.ts +4 -4
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Web/ApiClientWeb.vue.js +6 -6
- package/dist/layouts/Web/create-api-client-web.d.ts +2 -2
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +2 -2
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/find-request.d.ts.map +1 -1
- package/dist/libs/hot-keys.d.ts +1 -1
- package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -1
- package/dist/router.js +4 -4
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/active-entities.js +1 -1
- package/dist/store/import-spec.js +3 -3
- package/dist/store/requests.d.ts.map +1 -1
- package/dist/store/store.d.ts +2 -2
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/store.js +37 -42
- package/dist/store/workspace.d.ts +2 -2
- package/dist/views/Collection/Collection.vue2.js +2 -2
- package/dist/views/Collection/CollectionAuthentication.vue2.js +5 -5
- package/dist/views/Collection/CollectionCookies.vue2.js +2 -2
- package/dist/views/Collection/CollectionEnvironment.vue2.js +2 -2
- package/dist/views/Collection/CollectionInfoForm.vue2.js +2 -2
- package/dist/views/Collection/CollectionNavigation.vue.js +1 -1
- package/dist/views/Collection/CollectionOverview.vue2.js +3 -3
- package/dist/views/Collection/CollectionScripts.vue2.js +2 -2
- package/dist/views/Collection/CollectionServerForm.vue.js +1 -1
- package/dist/views/Collection/CollectionServers.vue2.js +3 -3
- package/dist/views/Collection/CollectionSettings.vue2.js +4 -4
- package/dist/views/Collection/CollectionSync.vue2.js +2 -2
- package/dist/views/Collection/components/MarkdownInput.vue2.js +1 -1
- package/dist/views/Components/CodeSnippet/CodeSnippet.vue.js +3 -3
- package/dist/views/Components/CodeSnippet/index.js +8 -8
- package/dist/views/Cookies/CookieForm.vue.js +2 -2
- package/dist/views/Cookies/CookieModal.vue2.js +2 -2
- package/dist/views/Cookies/Cookies.vue2.js +6 -6
- package/dist/views/Environment/Environment.vue2.js +7 -7
- package/dist/views/Environment/EnvironmentColorModal.vue.js +2 -2
- package/dist/views/Environment/EnvironmentColors.vue.js +1 -1
- package/dist/views/Environment/EnvironmentModal.vue.js +7 -7
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +10 -10
- package/dist/views/Request/Request.vue2.js +1 -1
- package/dist/views/Request/RequestRoot.vue2.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +5 -5
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +10 -10
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +11 -11
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue2.js +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue2.js +1 -1
- package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +8 -8
- package/dist/views/Request/RequestSection/RequestParams.vue.js +13 -13
- package/dist/views/Request/RequestSection/RequestPathParams.vue.js +5 -5
- package/dist/views/Request/RequestSection/RequestSection.vue2.js +7 -7
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +7 -7
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue2.js +9 -9
- package/dist/views/Request/RequestSidebar.vue2.js +25 -25
- package/dist/views/Request/RequestSidebarItem.vue2.js +25 -25
- package/dist/views/Request/RequestSidebarItemMenu.vue2.js +1 -1
- package/dist/views/Request/RequestSubpageHeader.vue2.js +1 -1
- package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +5 -5
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +2 -2
- package/dist/views/Request/ResponseSection/ResponseBodyInfo.vue.js +2 -2
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue2.js +5 -5
- package/dist/views/Request/ResponseSection/ResponseBodyStreaming.vue.js +7 -7
- package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.js +6 -6
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js +4 -4
- package/dist/views/Request/ResponseSection/ResponseCookies.vue.js +3 -3
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +15 -15
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue2.js +3 -3
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +5 -5
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +2 -2
- package/dist/views/Request/libs/oauth2.d.ts +1 -1
- package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
- package/dist/views/Settings/Settings.vue2.js +3 -3
- package/dist/views/Settings/SettingsGeneral.vue.js +1 -1
- package/dist/views/Settings/components/SettingsAppearance.vue.js +10 -10
- package/dist/views/Settings/components/SettingsSection.vue.js +4 -4
- package/package.json +18 -18
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as t,
|
|
1
|
+
import { defineComponent as t, createBlock as a, openBlock as o, withCtx as r, createElementVNode as s, renderSlot as n, createTextVNode as p, toDisplayString as l } from "vue";
|
|
2
2
|
import c from "./DataTableCell.vue.js";
|
|
3
3
|
const i = { class: "flex-1 whitespace-nowrap px-2 py-1.5" }, x = /* @__PURE__ */ t({
|
|
4
4
|
__name: "DataTableText",
|
|
@@ -6,7 +6,7 @@ const i = { class: "flex-1 whitespace-nowrap px-2 py-1.5" }, x = /* @__PURE__ */
|
|
|
6
6
|
text: {}
|
|
7
7
|
},
|
|
8
8
|
setup(_) {
|
|
9
|
-
return (e, f) => (
|
|
9
|
+
return (e, f) => (o(), a(c, { class: "relative flex" }, {
|
|
10
10
|
default: r(() => [
|
|
11
11
|
s("span", i, [
|
|
12
12
|
n(e.$slots, "default", {}, () => [
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { default as t } from "./
|
|
2
|
-
import { default as o } from "./
|
|
3
|
-
import { default as f } from "./
|
|
4
|
-
import { default as u } from "./
|
|
5
|
-
import { default as b } from "./
|
|
6
|
-
import { default as T } from "./
|
|
7
|
-
import { default as s } from "./
|
|
1
|
+
import { default as t } from "./DataTable.vue.js";
|
|
2
|
+
import { default as o } from "./DataTableCell.vue.js";
|
|
3
|
+
import { default as f } from "./DataTableCheckbox.vue.js";
|
|
4
|
+
import { default as u } from "./DataTableHeader.vue.js";
|
|
5
|
+
import { default as b } from "./DataTableInput.vue.js";
|
|
6
|
+
import { default as T } from "./DataTableInputSelect.vue.js";
|
|
7
|
+
import { default as s } from "./DataTableRow.vue.js";
|
|
8
8
|
import { default as c } from "./DataTableText.vue.js";
|
|
9
9
|
export {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
10
|
+
t as DataTable,
|
|
11
|
+
o as DataTableCell,
|
|
12
|
+
f as DataTableCheckbox,
|
|
13
|
+
u as DataTableHeader,
|
|
14
|
+
b as DataTableInput,
|
|
15
|
+
T as DataTableInputSelect,
|
|
16
|
+
s as DataTableRow,
|
|
17
17
|
c as DataTableText
|
|
18
18
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as o,
|
|
1
|
+
import { defineComponent as o, createElementBlock as c, openBlock as n, createElementVNode as e, createVNode as t, unref as a } from "vue";
|
|
2
2
|
import l from "../assets/keycap.ascii.js";
|
|
3
3
|
import s from "./ScalarAsciiArt.vue.js";
|
|
4
4
|
import i from "./ScalarHotkey.vue.js";
|
|
5
5
|
const p = { class: "flex-center flex w-full scale-75" }, m = { class: "relative" }, d = { class: "relative -ml-12" }, h = /* @__PURE__ */ o({
|
|
6
6
|
__name: "EmptyState",
|
|
7
7
|
setup(_) {
|
|
8
|
-
return (f, r) => (
|
|
8
|
+
return (f, r) => (n(), c("div", p, [
|
|
9
9
|
e("div", m, [
|
|
10
10
|
t(i, {
|
|
11
11
|
class: "keycap-hotkey right-14 border-transparent text-xl",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as b, computed as E, watch as B, onMounted as D,
|
|
2
|
-
import { ScalarDropdown as L, ScalarDropdownItem as d, ScalarListboxCheckbox as g, ScalarDropdownDivider as
|
|
1
|
+
import { defineComponent as b, computed as E, watch as B, onMounted as D, createBlock as u, openBlock as c, unref as n, withCtx as s, createVNode as l, createElementVNode as v, toDisplayString as w, createElementBlock as M, createCommentVNode as V, Fragment as W, renderList as j, withModifiers as h, createTextVNode as k } from "vue";
|
|
2
|
+
import { ScalarDropdown as L, ScalarButton as T, ScalarDropdownItem as d, ScalarListboxCheckbox as g, ScalarDropdownDivider as $, ScalarIcon as z } from "@scalar/components";
|
|
3
3
|
import { useRouter as A } from "vue-router";
|
|
4
4
|
import { PathId as F } from "../../routes.js";
|
|
5
5
|
import { useActiveEntities as O } from "../../store/active-entities.js";
|
|
@@ -43,10 +43,10 @@ const q = { class: "m-0 flex items-center gap-1.5 whitespace-nowrap font-medium"
|
|
|
43
43
|
a.value && f(a.value);
|
|
44
44
|
}), (e, t) => (c(), u(n(L), { teleport: "" }, {
|
|
45
45
|
items: s(() => [
|
|
46
|
-
(c(!0), M(
|
|
46
|
+
(c(!0), M(W, null, j(N.value, (o) => (c(), u(n(d), {
|
|
47
47
|
key: o.uid,
|
|
48
48
|
class: "group/item flex items-center gap-1.5 overflow-hidden text-ellipsis whitespace-nowrap",
|
|
49
|
-
onClick:
|
|
49
|
+
onClick: h((r) => p(o.uid), ["stop"])
|
|
50
50
|
}, {
|
|
51
51
|
default: s(() => {
|
|
52
52
|
var r;
|
|
@@ -54,14 +54,14 @@ const q = { class: "m-0 flex items-center gap-1.5 whitespace-nowrap font-medium"
|
|
|
54
54
|
l(n(g), {
|
|
55
55
|
selected: ((r = n(a)) == null ? void 0 : r["x-scalar-active-environment"]) === o.uid
|
|
56
56
|
}, null, 8, ["selected"]),
|
|
57
|
-
|
|
57
|
+
k(" " + w(o.name), 1)
|
|
58
58
|
];
|
|
59
59
|
}),
|
|
60
60
|
_: 2
|
|
61
61
|
}, 1032, ["onClick"]))), 128)),
|
|
62
62
|
l(n(d), {
|
|
63
63
|
class: "group/item flex items-center gap-1.5 overflow-hidden text-ellipsis whitespace-nowrap",
|
|
64
|
-
onClick: t[0] || (t[0] =
|
|
64
|
+
onClick: t[0] || (t[0] = h((o) => p(""), ["stop"]))
|
|
65
65
|
}, {
|
|
66
66
|
default: s(() => {
|
|
67
67
|
var o, r, x;
|
|
@@ -69,12 +69,12 @@ const q = { class: "m-0 flex items-center gap-1.5 whitespace-nowrap font-medium"
|
|
|
69
69
|
l(n(g), {
|
|
70
70
|
selected: ((o = n(m)) == null ? void 0 : o.uid) === "" && ((r = n(a)) == null ? void 0 : r["x-scalar-active-environment"]) === "" || ((x = n(m)) == null ? void 0 : x.name) === "No Environment"
|
|
71
71
|
}, null, 8, ["selected"]),
|
|
72
|
-
t[1] || (t[1] =
|
|
72
|
+
t[1] || (t[1] = k(" No Environment "))
|
|
73
73
|
];
|
|
74
74
|
}),
|
|
75
75
|
_: 1
|
|
76
76
|
}),
|
|
77
|
-
l(n(
|
|
77
|
+
l(n($)),
|
|
78
78
|
n(S) !== "modal" ? (c(), u(n(d), {
|
|
79
79
|
key: 0,
|
|
80
80
|
class: "flex items-center gap-1.5",
|
|
@@ -82,7 +82,7 @@ const q = { class: "m-0 flex items-center gap-1.5 whitespace-nowrap font-medium"
|
|
|
82
82
|
}, {
|
|
83
83
|
default: s(() => [
|
|
84
84
|
v("div", G, [
|
|
85
|
-
l(n(
|
|
85
|
+
l(n(z), {
|
|
86
86
|
icon: "Brackets",
|
|
87
87
|
size: "sm"
|
|
88
88
|
})
|
|
@@ -90,16 +90,16 @@ const q = { class: "m-0 flex items-center gap-1.5 whitespace-nowrap font-medium"
|
|
|
90
90
|
t[2] || (t[2] = v("span", { class: "leading-none" }, "Manage Environments", -1))
|
|
91
91
|
]),
|
|
92
92
|
_: 1
|
|
93
|
-
})) :
|
|
93
|
+
})) : V("", !0)
|
|
94
94
|
]),
|
|
95
95
|
default: s(() => [
|
|
96
|
-
l(n(
|
|
96
|
+
l(n(T), {
|
|
97
97
|
class: "text-c-1 hover:bg-b-2 line-clamp-1 h-auto w-fit justify-start px-1.5 py-1.5 font-normal",
|
|
98
98
|
fullWidth: "",
|
|
99
99
|
variant: "ghost"
|
|
100
100
|
}, {
|
|
101
101
|
default: s(() => [
|
|
102
|
-
v("h2", q,
|
|
102
|
+
v("h2", q, w(I.value), 1)
|
|
103
103
|
]),
|
|
104
104
|
_: 1
|
|
105
105
|
})
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as b, useId as v,
|
|
1
|
+
import { defineComponent as b, useId as v, createBlock as r, openBlock as l, createSlots as c, withCtx as o, createElementVNode as n, createCommentVNode as y, unref as t, createElementBlock as m, Fragment as h, renderList as g, normalizeClass as V, createVNode as p, toDisplayString as u, renderSlot as w } from "vue";
|
|
2
2
|
import { ScalarIcon as E } from "@scalar/components";
|
|
3
3
|
import C from "../DataTable/DataTable.vue.js";
|
|
4
4
|
import S from "../DataTable/DataTableInput.vue.js";
|
|
@@ -24,9 +24,9 @@ const B = { key: 0 }, D = { class: "flex flex-1 flex-col gap-1.5" }, F = ["for"]
|
|
|
24
24
|
class: "rounded-b-lg"
|
|
25
25
|
}, {
|
|
26
26
|
default: o(() => [
|
|
27
|
-
(l(!0), m(
|
|
27
|
+
(l(!0), m(h, null, g(e.options, (a, d) => (l(), r(U, {
|
|
28
28
|
key: d,
|
|
29
|
-
class:
|
|
29
|
+
class: V({ "border-t": d === 0 })
|
|
30
30
|
}, {
|
|
31
31
|
default: o(() => [
|
|
32
32
|
p(S, {
|
|
@@ -63,7 +63,7 @@ const B = { key: 0 }, D = { class: "flex flex-1 flex-col gap-1.5" }, F = ["for"]
|
|
|
63
63
|
}, 1032, ["class"]))), 128))
|
|
64
64
|
]),
|
|
65
65
|
_: 1
|
|
66
|
-
})) :
|
|
66
|
+
})) : y("", !0)
|
|
67
67
|
])
|
|
68
68
|
]),
|
|
69
69
|
_: 2
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as c,
|
|
1
|
+
import { defineComponent as c, createElementBlock as l, openBlock as n, normalizeProps as u, guardReactiveProps as m, unref as o, Fragment as f, createElementVNode as p, mergeProps as r, toDisplayString as v } from "vue";
|
|
2
2
|
import { useBindCx as h } from "@scalar/components";
|
|
3
3
|
const g = ["for"], y = ["id", "placeholder", "value"], b = /* @__PURE__ */ c({
|
|
4
4
|
__name: "LabelInput",
|
|
@@ -14,8 +14,8 @@ const g = ["for"], y = ["id", "placeholder", "value"], b = /* @__PURE__ */ c({
|
|
|
14
14
|
const a = e.target;
|
|
15
15
|
s("updateValue", a.value);
|
|
16
16
|
};
|
|
17
|
-
return (e, a) => (
|
|
18
|
-
e.layout !== "modal" ? (
|
|
17
|
+
return (e, a) => (n(), l("div", u(m(o(t)("flex-1 flex gap-1 items-center pointer-events-none group"))), [
|
|
18
|
+
e.layout !== "modal" ? (n(), l(f, { key: 0 }, [
|
|
19
19
|
p("label", r(
|
|
20
20
|
o(t)(
|
|
21
21
|
"absolute w-full h-full top-0 left-0 pointer-events-auto opacity-0 cursor-text"
|
|
@@ -33,7 +33,7 @@ const g = ["for"], y = ["id", "placeholder", "value"], b = /* @__PURE__ */ c({
|
|
|
33
33
|
onInput: d
|
|
34
34
|
}
|
|
35
35
|
), null, 16, y)
|
|
36
|
-
], 64)) : (
|
|
36
|
+
], 64)) : (n(), l("span", u(r({ key: 1 }, o(t)("flex items-center text-c-1 h-8"))), v(e.value), 17))
|
|
37
37
|
], 16));
|
|
38
38
|
}
|
|
39
39
|
});
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as r,
|
|
1
|
+
import { defineComponent as r, createElementBlock as n, openBlock as o, renderSlot as t } from "vue";
|
|
2
2
|
const l = ["href"], p = /* @__PURE__ */ r({
|
|
3
3
|
__name: "HelpfulLink",
|
|
4
4
|
props: {
|
|
5
5
|
href: {}
|
|
6
6
|
},
|
|
7
7
|
setup(s) {
|
|
8
|
-
return (e, f) => (
|
|
8
|
+
return (e, f) => (o(), n("a", {
|
|
9
9
|
class: "decoration-c-3 cursor-help underline underline-offset-2",
|
|
10
10
|
href: e.href,
|
|
11
11
|
rel: "noopener noreferrer",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as g, computed as a,
|
|
1
|
+
import { defineComponent as g, computed as a, createBlock as y, createElementBlock as q, openBlock as c, unref as t, withCtx as k, createElementVNode as l, normalizeClass as s, toDisplayString as p } from "vue";
|
|
2
2
|
import { cva as w, ScalarListbox as x, cx as m } from "@scalar/components";
|
|
3
3
|
import { getHttpMethodInfo as f, REQUEST_METHODS as B } from "@scalar/oas-utils/helpers";
|
|
4
4
|
const H = /* @__PURE__ */ g({
|
|
@@ -37,7 +37,7 @@ const H = /* @__PURE__ */ g({
|
|
|
37
37
|
class: "font-code scalar-client mt-1 text-sm",
|
|
38
38
|
options: t(n)
|
|
39
39
|
}, {
|
|
40
|
-
default:
|
|
40
|
+
default: k(() => [
|
|
41
41
|
l("div", {
|
|
42
42
|
class: s(["h-full", { "pointer-events-none": !e.isEditable }])
|
|
43
43
|
}, [
|
|
@@ -50,7 +50,7 @@ const H = /* @__PURE__ */ g({
|
|
|
50
50
|
], 2)
|
|
51
51
|
]),
|
|
52
52
|
_: 1
|
|
53
|
-
}, 8, ["modelValue", "options"])) : (c(),
|
|
53
|
+
}, 8, ["modelValue", "options"])) : (c(), q("div", {
|
|
54
54
|
key: 1,
|
|
55
55
|
class: s(["relative gap-1 whitespace-nowrap", t(m)(t(d)({ isSquare: e.isSquare, isEditable: e.isEditable }), o.value.color)]),
|
|
56
56
|
type: "button"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as g, computed as V,
|
|
1
|
+
import { defineComponent as g, computed as V, createBlock as n, openBlock as s, unref as e, withCtx as o, renderSlot as u, createVNode as a, createElementVNode as d, createTextVNode as p, createElementBlock as k, Fragment as y, renderList as _, toDisplayString as w } from "vue";
|
|
2
2
|
import { RadioGroup as S, RadioGroupLabel as m, RadioGroupOption as C } from "@headlessui/vue";
|
|
3
3
|
import { ScalarPopover as I } from "@scalar/components";
|
|
4
4
|
import { libraryIcons as h, LibraryIcon as B } from "@scalar/icons/library";
|
|
@@ -26,17 +26,17 @@ const G = { class: "flex text-sm" }, L = { class: "bg-b-1 custom-scroll grid w-d
|
|
|
26
26
|
class: "flex flex-col"
|
|
27
27
|
}, {
|
|
28
28
|
default: o(() => [
|
|
29
|
-
|
|
29
|
+
d("div", G, [
|
|
30
30
|
a(e(m), { class: "text-c-2 px-1 py-1" }, {
|
|
31
31
|
default: o(() => [
|
|
32
|
-
|
|
32
|
+
u(l.$slots, "title", {}, () => [
|
|
33
33
|
r[1] || (r[1] = p("Select an icon"))
|
|
34
34
|
])
|
|
35
35
|
]),
|
|
36
36
|
_: 3
|
|
37
37
|
})
|
|
38
38
|
]),
|
|
39
|
-
|
|
39
|
+
d("ul", L, [
|
|
40
40
|
(s(!0), k(y, null, _(e(h), (t) => (s(), n(e(C), {
|
|
41
41
|
key: t.src,
|
|
42
42
|
as: "li",
|
|
@@ -64,7 +64,7 @@ const G = { class: "flex text-sm" }, L = { class: "bg-b-1 custom-scroll grid w-d
|
|
|
64
64
|
}, 1032, ["modelValue"])
|
|
65
65
|
]),
|
|
66
66
|
default: o(() => [
|
|
67
|
-
|
|
67
|
+
u(l.$slots, "default")
|
|
68
68
|
]),
|
|
69
69
|
_: 3
|
|
70
70
|
}, 8, ["placement"]));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as x, ref as h, onMounted as D, onBeforeUnmount as E,
|
|
1
|
+
import { defineComponent as x, ref as h, onMounted as D, onBeforeUnmount as E, createBlock as T, openBlock as g, Transition as _, withCtx as L, createElementBlock as C, createCommentVNode as b, createElementVNode as d, createVNode as k, unref as A } from "vue";
|
|
2
2
|
import { ScalarIcon as w } from "@scalar/components";
|
|
3
3
|
const B = {
|
|
4
4
|
key: 0,
|
|
@@ -66,7 +66,7 @@ const B = {
|
|
|
66
66
|
a.value ? (g(), C("div", B, [
|
|
67
67
|
d("div", F, [
|
|
68
68
|
d("div", null, [
|
|
69
|
-
|
|
69
|
+
k(A(w), {
|
|
70
70
|
icon: "Download",
|
|
71
71
|
size: "xl",
|
|
72
72
|
thickness: "2"
|
|
@@ -74,7 +74,7 @@ const B = {
|
|
|
74
74
|
]),
|
|
75
75
|
n[0] || (n[0] = d("div", { class: "text-c-1 m-4 text-center" }, " Drop your OpenAPI document here ", -1))
|
|
76
76
|
])
|
|
77
|
-
])) :
|
|
77
|
+
])) : b("", !0)
|
|
78
78
|
]),
|
|
79
79
|
_: 1
|
|
80
80
|
}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as I, ref as l,
|
|
1
|
+
import { defineComponent as I, ref as l, createElementBlock as k, openBlock as y, Fragment as w, createVNode as r, renderSlot as g, nextTick as h } from "vue";
|
|
2
2
|
import { useToasts as C } from "@scalar/use-toasts";
|
|
3
3
|
import { useRouter as T } from "vue-router";
|
|
4
4
|
import { workspaceStoreIsEmpty as $ } from "./utils/workspace-store-is-empty.js";
|
|
@@ -59,7 +59,7 @@ const J = /* @__PURE__ */ I({
|
|
|
59
59
|
}
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
|
-
return (e, t) => (
|
|
62
|
+
return (e, t) => (y(), k(w, null, [
|
|
63
63
|
r(F, {
|
|
64
64
|
eventType: a.value,
|
|
65
65
|
integration: s.value,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as H, ref as W, computed as a, watch as _, onMounted as K, onUnmounted as G,
|
|
1
|
+
import { defineComponent as H, ref as W, computed as a, watch as _, onMounted as K, onUnmounted as G, createBlock as J, openBlock as l, unref as i, withCtx as Q, createElementBlock as d, createCommentVNode as f, createElementVNode as e, normalizeClass as X, Fragment as b, createVNode as m, toDisplayString as Y, createTextVNode as M } from "vue";
|
|
2
2
|
import { useModal as Z, ScalarModal as ee, ScalarIcon as te } from "@scalar/components";
|
|
3
3
|
import { isLocalUrl as oe } from "@scalar/oas-utils/helpers";
|
|
4
4
|
import { normalize as se } from "@scalar/openapi-parser";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as y,
|
|
1
|
+
import { defineComponent as y, createElementBlock as C, createCommentVNode as h, openBlock as o, Fragment as v, createBlock as u, unref as a, withCtx as m, createTextVNode as p } from "vue";
|
|
2
2
|
import { ScalarButton as c } from "@scalar/components";
|
|
3
3
|
import { useToasts as b } from "@scalar/use-toasts";
|
|
4
4
|
import { useRouter as g } from "vue-router";
|
|
@@ -41,7 +41,7 @@ const R = /* @__PURE__ */ y({
|
|
|
41
41
|
}
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
|
-
return (t, e) => t.source ? (o(), C(
|
|
44
|
+
return (t, e) => t.source ? (o(), C(v, { key: 0 }, [
|
|
45
45
|
t.variant === "button" ? (o(), u(a(c), {
|
|
46
46
|
key: 0,
|
|
47
47
|
class: "mt-3 h-fit w-full rounded-lg px-6 py-2.5 font-bold",
|
|
@@ -66,7 +66,7 @@ const R = /* @__PURE__ */ y({
|
|
|
66
66
|
])),
|
|
67
67
|
_: 1
|
|
68
68
|
}))
|
|
69
|
-
], 64)) :
|
|
69
|
+
], 64)) : h("", !0);
|
|
70
70
|
}
|
|
71
71
|
});
|
|
72
72
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as i, computed as l,
|
|
1
|
+
import { defineComponent as i, computed as l, createBlock as p, openBlock as u, unref as f } from "vue";
|
|
2
2
|
import { ScalarIcon as g } from "@scalar/components";
|
|
3
3
|
const I = /* @__PURE__ */ i({
|
|
4
4
|
__name: "IntegrationLogo",
|
|
@@ -33,7 +33,7 @@ const I = /* @__PURE__ */ i({
|
|
|
33
33
|
const c = t.charAt(0).toUpperCase() + t.slice(1);
|
|
34
34
|
return r.includes(t) ? c : o;
|
|
35
35
|
});
|
|
36
|
-
return (o, t) => (
|
|
36
|
+
return (o, t) => (u(), p(f(g), {
|
|
37
37
|
class: "h-full w-full rounded-lg",
|
|
38
38
|
logo: s.value
|
|
39
39
|
}, null, 8, ["logo"]));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as l,
|
|
1
|
+
import { defineComponent as l, createElementBlock as n, openBlock as o, createTextVNode as r, unref as d } from "vue";
|
|
2
2
|
import { isUrl as s } from "../../libs/isUrl.js";
|
|
3
3
|
const a = { class: "w-full break-words text-center text-sm font-medium" }, u = ["href"], m = {
|
|
4
4
|
key: 1,
|
|
@@ -9,15 +9,15 @@ const a = { class: "w-full break-words text-center text-sm font-medium" }, u = [
|
|
|
9
9
|
url: {}
|
|
10
10
|
},
|
|
11
11
|
setup(p) {
|
|
12
|
-
return (t, e) => (
|
|
12
|
+
return (t, e) => (o(), n("div", a, [
|
|
13
13
|
e[0] || (e[0] = r(" We couldn’t find an OpenAPI document at the provided URL. Please download and import the ")),
|
|
14
|
-
t.url && d(s)(t.url) ? (
|
|
14
|
+
t.url && d(s)(t.url) ? (o(), n("a", {
|
|
15
15
|
key: 0,
|
|
16
16
|
href: t.url,
|
|
17
17
|
rel: "noopener nofollow",
|
|
18
18
|
target: "_blank",
|
|
19
19
|
textContent: "OpenAPI document manually"
|
|
20
|
-
}, null, 8, u)) : (
|
|
20
|
+
}, null, 8, u)) : (o(), n("span", m)),
|
|
21
21
|
e[1] || (e[1] = r(". "))
|
|
22
22
|
]));
|
|
23
23
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as W, ref as D,
|
|
2
|
-
import { useModal as E, ScalarDropdown as T,
|
|
1
|
+
import { defineComponent as W, ref as D, createElementBlock as w, openBlock as m, Fragment as k, createElementVNode as s, createVNode as a, unref as e, withCtx as r, toDisplayString as v, renderList as z, createBlock as N, withModifiers as h, normalizeClass as M, withDirectives as B, vModelText as V, createTextVNode as j } from "vue";
|
|
2
|
+
import { useModal as E, ScalarDropdown as T, ScalarButton as _, ScalarIcon as u, ScalarDropdownItem as b, ScalarDropdownDivider as $, ScalarModal as A } from "@scalar/components";
|
|
3
3
|
import { useToasts as I } from "@scalar/use-toasts";
|
|
4
4
|
import { useRouter as F } from "vue-router";
|
|
5
5
|
import { useActiveEntities as L } from "../../store/active-entities.js";
|
|
@@ -34,10 +34,10 @@ const R = { class: "flex w-[inherit] items-center text-sm" }, U = { class: "m-0
|
|
|
34
34
|
s("div", R, [
|
|
35
35
|
a(e(T), null, {
|
|
36
36
|
items: r(() => [
|
|
37
|
-
(m(!0), w(k, null, z(e(g), (o, p) => (m(), N(e(
|
|
37
|
+
(m(!0), w(k, null, z(e(g), (o, p) => (m(), N(e(b), {
|
|
38
38
|
key: p,
|
|
39
39
|
class: "group/item flex w-full items-center gap-1.5 overflow-hidden text-ellipsis whitespace-nowrap",
|
|
40
|
-
onClick:
|
|
40
|
+
onClick: h((d) => y(p), ["stop"])
|
|
41
41
|
}, {
|
|
42
42
|
default: r(() => {
|
|
43
43
|
var d;
|
|
@@ -54,13 +54,13 @@ const R = { class: "flex w-[inherit] items-center text-sm" }, U = { class: "m-0
|
|
|
54
54
|
thickness: "3"
|
|
55
55
|
})
|
|
56
56
|
], 2),
|
|
57
|
-
s("span", G,
|
|
57
|
+
s("span", G, v(o.name), 1)
|
|
58
58
|
];
|
|
59
59
|
}),
|
|
60
60
|
_: 2
|
|
61
61
|
}, 1032, ["onClick"]))), 128)),
|
|
62
62
|
a(e($)),
|
|
63
|
-
a(e(
|
|
63
|
+
a(e(b), {
|
|
64
64
|
class: "flex items-center gap-1.5",
|
|
65
65
|
onClick: t[0] || (t[0] = (o) => e(c).show())
|
|
66
66
|
}, {
|
|
@@ -77,7 +77,7 @@ const R = { class: "flex w-[inherit] items-center text-sm" }, U = { class: "m-0
|
|
|
77
77
|
})
|
|
78
78
|
]),
|
|
79
79
|
default: r(() => [
|
|
80
|
-
a(e(
|
|
80
|
+
a(e(_), {
|
|
81
81
|
class: "text-c-1 hover:bg-b-2 text-c-3 line-clamp-1 h-full w-fit justify-start px-1.5 py-1 font-normal",
|
|
82
82
|
fullWidth: "",
|
|
83
83
|
variant: "ghost"
|
|
@@ -86,7 +86,7 @@ const R = { class: "flex w-[inherit] items-center text-sm" }, U = { class: "m-0
|
|
|
86
86
|
var o;
|
|
87
87
|
return [
|
|
88
88
|
s("div", U, [
|
|
89
|
-
s("h2", q,
|
|
89
|
+
s("h2", q, v((o = e(i)) == null ? void 0 : o.name), 1),
|
|
90
90
|
a(e(u), {
|
|
91
91
|
icon: "ChevronDown",
|
|
92
92
|
size: "md"
|
|
@@ -110,7 +110,7 @@ const R = { class: "flex w-[inherit] items-center text-sm" }, U = { class: "m-0
|
|
|
110
110
|
default: r(() => [
|
|
111
111
|
s("form", {
|
|
112
112
|
class: "flex gap-1",
|
|
113
|
-
onSubmit:
|
|
113
|
+
onSubmit: h(S, ["prevent"])
|
|
114
114
|
}, [
|
|
115
115
|
B(s("input", {
|
|
116
116
|
"onUpdate:modelValue": t[1] || (t[1] = (o) => l.value = o),
|
|
@@ -120,7 +120,7 @@ const R = { class: "flex w-[inherit] items-center text-sm" }, U = { class: "m-0
|
|
|
120
120
|
}, null, 512), [
|
|
121
121
|
[V, l.value]
|
|
122
122
|
]),
|
|
123
|
-
a(e(
|
|
123
|
+
a(e(_), {
|
|
124
124
|
class: "max-h-8 p-0 px-3 text-xs",
|
|
125
125
|
disabled: !l.value.trim(),
|
|
126
126
|
type: "submit"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as i, computed as s,
|
|
1
|
+
import { defineComponent as i, computed as s, createElementBlock as m, createCommentVNode as l, openBlock as u, createVNode as d, createTextVNode as f, unref as g } from "vue";
|
|
2
2
|
import { ScalarIcon as h } from "@scalar/components";
|
|
3
3
|
import { makeUrlAbsolute as p } from "@scalar/oas-utils/helpers";
|
|
4
4
|
const k = ["href"], v = /* @__PURE__ */ i({
|
|
@@ -25,19 +25,19 @@ const k = ["href"], v = /* @__PURE__ */ i({
|
|
|
25
25
|
}
|
|
26
26
|
return e.toString();
|
|
27
27
|
});
|
|
28
|
-
return (c, t) => a.value ? (
|
|
28
|
+
return (c, t) => a.value ? (u(), m("a", {
|
|
29
29
|
key: 0,
|
|
30
30
|
class: "open-api-client-button",
|
|
31
31
|
href: a.value,
|
|
32
32
|
target: "_blank"
|
|
33
33
|
}, [
|
|
34
|
-
|
|
34
|
+
d(g(h), {
|
|
35
35
|
icon: "ExternalLink",
|
|
36
36
|
size: "xs",
|
|
37
37
|
thickness: "2.5"
|
|
38
38
|
}),
|
|
39
39
|
t[0] || (t[0] = f(" Open API Client "))
|
|
40
|
-
], 8, k)) :
|
|
40
|
+
], 8, k)) : l("", !0);
|
|
41
41
|
}
|
|
42
42
|
});
|
|
43
43
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as h, computed as f,
|
|
1
|
+
import { defineComponent as h, computed as f, createElementBlock as i, openBlock as o, normalizeClass as y, Fragment as v, renderList as x, normalizeStyle as m, createElementVNode as $, toDisplayString as k } from "vue";
|
|
2
2
|
const p = 500, l = 100, B = /* @__PURE__ */ h({
|
|
3
3
|
__name: "ScalarAsciiArt",
|
|
4
4
|
props: {
|
|
@@ -16,13 +16,13 @@ const p = 500, l = 100, B = /* @__PURE__ */ h({
|
|
|
16
16
|
animationIterationCount: `1, ${((((e = n.value) == null ? void 0 : e.length) ?? 0) + (((c = (r = n.value) == null ? void 0 : r[((t = n.value) == null ? void 0 : t.length) - 1]) == null ? void 0 : c.length) ?? 0) + 5) * l / p}`
|
|
17
17
|
};
|
|
18
18
|
};
|
|
19
|
-
return (a, s) => (
|
|
19
|
+
return (a, s) => (o(), i("div", {
|
|
20
20
|
"aria-hidden": "true",
|
|
21
21
|
class: y(["ascii-art font-code flex flex-col items-start text-[6px] leading-[7px]", { "ascii-art-animate": a.animate }]),
|
|
22
22
|
role: "presentation",
|
|
23
23
|
inert: ""
|
|
24
24
|
}, [
|
|
25
|
-
(
|
|
25
|
+
(o(!0), i(v, null, x(n.value, (e, t) => (o(), i("span", {
|
|
26
26
|
key: t,
|
|
27
27
|
class: "inline-block",
|
|
28
28
|
style: m({ width: `calc(${e.length + 1}ch)` })
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as u, computed as i,
|
|
1
|
+
import { defineComponent as u, computed as i, createElementBlock as p, openBlock as y, normalizeProps as h, guardReactiveProps as b, unref as k, createElementVNode as a, toDisplayString as s } from "vue";
|
|
2
2
|
import { useBindCx as x } from "@scalar/components";
|
|
3
3
|
import { isMacOS as r } from "@scalar/use-tooltip";
|
|
4
4
|
const C = { "aria-hidden": "true" }, w = { class: "sr-only" }, A = /* @__PURE__ */ u({
|
|
@@ -29,7 +29,7 @@ const C = { "aria-hidden": "true" }, w = { class: "sr-only" }, A = /* @__PURE__
|
|
|
29
29
|
const t = e.modifier.map((n) => n === "Meta" ? r() ? "Command" : "Control" : n).join("+"), o = d[e.hotkey] ?? e.hotkey;
|
|
30
30
|
return `${t} ${o}`;
|
|
31
31
|
});
|
|
32
|
-
return (t, o) => (
|
|
32
|
+
return (t, o) => (y(), p("div", h(b(
|
|
33
33
|
k(m)(
|
|
34
34
|
"border-b-3 inline-block overflow-hidden rounded border-1/2 text-xxs rounded-b px-1 font-medium uppercase"
|
|
35
35
|
)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as x, mergeModels as p, useModel as h, ref as g,
|
|
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 a, 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
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-2 text-xs xl:flex" }, $ = { class: "context-bar-group-hover:text-c-1 absolute -right-[30px] top-1/2 flex -translate-y-1/2 items-center" }, F = { class: "context-bar-group-hover:hidden mr-1.5" }, K = /* @__PURE__ */ x({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as t,
|
|
1
|
+
import { defineComponent as t, createElementBlock as o, openBlock as n, normalizeClass as r, renderSlot as s } from "vue";
|
|
2
2
|
const l = ["aria-controls", "aria-selected", "tabindex"], p = /* @__PURE__ */ t({
|
|
3
3
|
__name: "SectionFilterButton",
|
|
4
4
|
props: {
|
|
@@ -6,7 +6,7 @@ const l = ["aria-controls", "aria-selected", "tabindex"], p = /* @__PURE__ */ t(
|
|
|
6
6
|
controls: {}
|
|
7
7
|
},
|
|
8
8
|
setup(a) {
|
|
9
|
-
return (e, c) => (
|
|
9
|
+
return (e, c) => (n(), o("button", {
|
|
10
10
|
"aria-controls": e.controls ?? "",
|
|
11
11
|
"aria-selected": !!e.selected,
|
|
12
12
|
class: r(["hover:bg-b-2 flex w-fit cursor-pointer items-center whitespace-nowrap rounded p-1 px-2 text-center font-medium has-[:focus-visible]:outline", { "text-c-1 pointer-events-none": e.selected }]),
|