@scalar/api-client 2.1.20 → 2.1.22
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 +29 -0
- package/dist/components/AddressBar/AddressBar.vue.d.ts +4 -4
- package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBar.vue2.js +80 -80
- package/dist/components/AddressBar/AddressBarHistory.vue.d.ts +3 -12
- package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBarServer.vue.d.ts +1 -1
- package/dist/components/AddressBar/AddressBarServer.vue.js +37 -37
- package/dist/components/AddressBar/AddressBarServerItem.vue.d.ts +3 -12
- package/dist/components/AddressBar/AddressBarServerItem.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.d.ts +11 -44
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandActionForm.vue.d.ts +8 -17
- package/dist/components/CommandPalette/CommandActionForm.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandActionForm.vue.js +10 -10
- package/dist/components/CommandPalette/CommandActionInput.vue.d.ts +7 -16
- package/dist/components/CommandPalette/CommandActionInput.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts +5 -5
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +2 -2
- package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts +7 -16
- package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteExample.vue.js +31 -31
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts +5 -5
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +65 -65
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts +7 -16
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +12 -12
- package/dist/components/CommandPalette/CommandPaletteServer.vue.d.ts +5 -5
- package/dist/components/CommandPalette/CommandPaletteServer.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteServer.vue.js +33 -33
- package/dist/components/CommandPalette/CommandPaletteTag.vue.d.ts +5 -5
- package/dist/components/CommandPalette/CommandPaletteTag.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteTag.vue.js +21 -21
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts +5 -5
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.js +14 -14
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +48 -56
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/ContextBar.vue.d.ts +6 -15
- package/dist/components/ContextBar.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTable.vue.d.ts +3 -12
- package/dist/components/DataTable/DataTable.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableCell.vue.d.ts +4 -25
- package/dist/components/DataTable/DataTableCell.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableCheckbox.vue.d.ts +7 -28
- package/dist/components/DataTable/DataTableCheckbox.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableHeader.vue.d.ts +1 -1
- package/dist/components/DataTable/DataTableHeader.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInput.vue.d.ts +11 -36
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInputSelect.vue.d.ts +7 -28
- package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInputSelect.vue.js +34 -34
- package/dist/components/DataTable/DataTableRow.vue.d.ts +1 -1
- package/dist/components/DataTable/DataTableRow.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableText.vue.d.ts +3 -12
- package/dist/components/DataTable/DataTableText.vue.d.ts.map +1 -1
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts +1 -1
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +37 -37
- package/dist/components/Form/Form.vue.d.ts +3 -12
- package/dist/components/Form/Form.vue.d.ts.map +1 -1
- package/dist/components/HelpfulLink.vue.d.ts +3 -12
- package/dist/components/HelpfulLink.vue.d.ts.map +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts +7 -32
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
- package/dist/components/IconSelector.vue.d.ts +6 -15
- package/dist/components/IconSelector.vue.d.ts.map +1 -1
- package/dist/components/IconSelector.vue.js +14 -14
- package/dist/components/ImportCollection/DropEventListener.vue.d.ts +4 -4
- package/dist/components/ImportCollection/DropEventListener.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/DropEventListener.vue.js +20 -20
- package/dist/components/ImportCollection/ImportCollectionListener.vue.d.ts +1 -1
- package/dist/components/ImportCollection/ImportCollectionListener.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts +6 -15
- package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/ImportCollectionModal.vue.js +22 -22
- package/dist/components/ImportCollection/ImportNowButton.vue.d.ts +6 -15
- package/dist/components/ImportCollection/ImportNowButton.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/ImportNowButton.vue.js +35 -35
- package/dist/components/ImportCollection/OpenAppButton.vue.d.ts +3 -12
- package/dist/components/ImportCollection/OpenAppButton.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/OperationBadge.vue.d.ts +3 -12
- package/dist/components/ImportCollection/OperationBadge.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/PasteEventListener.vue.d.ts +4 -4
- package/dist/components/ImportCollection/PasteEventListener.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.d.ts +4 -4
- package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.d.ts.map +1 -1
- package/dist/components/ImportCurl/ImportCurlModal.vue.d.ts +7 -16
- package/dist/components/ImportCurl/ImportCurlModal.vue.d.ts.map +1 -1
- package/dist/components/ImportCurl/ImportCurlModal.vue2.js +33 -33
- package/dist/components/ScalarAsciiArt.vue.d.ts +3 -12
- package/dist/components/ScalarAsciiArt.vue.d.ts.map +1 -1
- package/dist/components/ScalarHotkey.vue.d.ts +6 -15
- package/dist/components/ScalarHotkey.vue.d.ts.map +1 -1
- package/dist/components/ScreenReader.vue.d.ts +4 -25
- package/dist/components/ScreenReader.vue.d.ts.map +1 -1
- package/dist/components/Search/useSearch.d.ts +4 -4
- package/dist/components/SideNav/SideHelp.vue.d.ts +1 -1
- package/dist/components/SideNav/SideHelp.vue.js +48 -48
- package/dist/components/SideNav/SideNav.vue.d.ts +1 -1
- package/dist/components/SideNav/SideNav.vue2.js +27 -27
- package/dist/components/SideNav/SideNavLink.vue.d.ts +3 -12
- package/dist/components/SideNav/SideNavLink.vue.d.ts.map +1 -1
- package/dist/components/SideNav/WorkspaceProfileIcon.vue.d.ts +3 -12
- package/dist/components/SideNav/WorkspaceProfileIcon.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.d.ts +8 -17
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.d.ts +7 -16
- package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.d.ts +7 -16
- package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.d.ts +7 -16
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.js +8 -8
- package/dist/components/Sidebar/Sidebar.vue.d.ts +4 -25
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarButton.vue.d.ts +3 -12
- package/dist/components/Sidebar/SidebarButton.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarList.vue.d.ts +1 -1
- package/dist/components/Sidebar/SidebarList.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarListElement.vue.d.ts +11 -34
- package/dist/components/Sidebar/SidebarListElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarListElement.vue.js +2 -2
- package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts +6 -15
- package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarListElementActions.vue.js +21 -21
- package/dist/components/Sidebar/SidebarToggle.vue.d.ts +6 -15
- package/dist/components/Sidebar/SidebarToggle.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarToggle.vue.js +24 -24
- package/dist/components/SubpageHeader.vue.d.ts +1 -1
- package/dist/components/SubpageHeader.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNav.vue.d.ts +3 -12
- package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNav.vue2.js +66 -66
- package/dist/components/TopNav/TopNavItem.vue.d.ts +11 -20
- package/dist/components/TopNav/TopNavItem.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNavItem.vue2.js +32 -32
- package/dist/components/ViewLayout/ViewLayout.vue.d.ts +1 -1
- package/dist/components/ViewLayout/ViewLayout.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts +4 -27
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutContent.vue.d.ts +1 -1
- package/dist/components/ViewLayout/ViewLayoutContent.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts +1 -1
- package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts.map +1 -1
- package/dist/hooks/useDarkModeState.d.ts +1 -1
- package/dist/hooks/useFileDialog.d.ts +15 -0
- package/dist/hooks/useFileDialog.d.ts.map +1 -1
- package/dist/layouts/App/ApiClientApp.vue.d.ts +4 -4
- package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
- 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/Modal/ApiClientModal.vue.d.ts +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -1
- 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.d.ts +1 -1
- 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/send-request.d.ts +5 -5
- package/dist/libs/send-request.d.ts.map +1 -1
- package/dist/libs/send-request.js +93 -99
- package/dist/store/requests.d.ts.map +1 -1
- package/dist/store/store.d.ts +4 -4
- package/dist/store/store.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/views/Collection/Collection.vue.d.ts +1 -1
- package/dist/views/Components/RequestBodies/RequestBodies.vue.d.ts +1 -1
- package/dist/views/Cookies/CookieForm.vue.d.ts +1 -1
- package/dist/views/Cookies/CookieForm.vue.js +15 -15
- package/dist/views/Cookies/CookieRaw.vue.d.ts +1 -1
- package/dist/views/Cookies/CookieRaw.vue.js +14 -14
- package/dist/views/Cookies/Cookies.vue.d.ts +1 -1
- package/dist/views/Cookies/Cookies.vue2.js +2 -2
- package/dist/views/Environment/Environment.vue.d.ts +1 -1
- package/dist/views/Environment/Environment.vue2.js +29 -29
- package/dist/views/Environment/EnvironmentColors.vue.d.ts +6 -15
- package/dist/views/Environment/EnvironmentColors.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts +6 -15
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +27 -27
- package/dist/views/Request/Request.vue.d.ts +4 -4
- package/dist/views/Request/Request.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.d.ts +6 -15
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +14 -14
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts +3 -12
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +82 -82
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts +3 -12
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +31 -31
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts +3 -12
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +92 -92
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthModal.vue.d.ts +7 -16
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthModal.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.js +60 -60
- package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue.d.ts +11 -34
- package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts +3 -12
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.js +71 -71
- package/dist/views/Request/RequestSection/RequestParams.vue.d.ts +3 -12
- package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestParams.vue.js +34 -34
- package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts +3 -12
- package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestPathParams.vue.js +34 -34
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +14 -37
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +67 -67
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts +3 -12
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebar.vue.d.ts +7 -16
- package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebar.vue2.js +97 -97
- package/dist/views/Request/RequestSidebarItem.vue.d.ts +9 -34
- package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItem.vue2.js +117 -117
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts +6 -15
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue2.js +60 -60
- package/dist/views/Request/RequestSubpageHeader.vue.d.ts +9 -18
- package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSubpageHeader.vue2.js +26 -26
- package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts +3 -12
- package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBody.vue.js +26 -26
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.d.ts +3 -12
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +8 -8
- package/dist/views/Request/ResponseSection/ResponseBodyInfo.vue.d.ts +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyInfo.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.d.ts +3 -12
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +4 -4
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.d.ts +3 -12
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.d.ts +6 -15
- package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.d.ts +3 -12
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js +15 -15
- package/dist/views/Request/ResponseSection/ResponseCookies.vue.d.ts +3 -12
- package/dist/views/Request/ResponseSection/ResponseCookies.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseCookies.vue.js +19 -19
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +35 -35
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.d.ts +3 -12
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +18 -18
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.d.ts +1 -1
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue2.js +12 -12
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.d.ts +3 -12
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts +3 -12
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.js +42 -42
- package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts +1 -1
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +85 -85
- package/dist/views/Servers/ServerForm.vue.d.ts +1 -1
- package/dist/views/Servers/Servers.vue.d.ts +1 -1
- package/dist/views/Servers/Servers.vue2.js +29 -29
- package/dist/views/Settings/Settings.vue.d.ts +1 -1
- package/dist/views/Settings/SettingsGeneral.vue.d.ts +1 -1
- package/dist/views/Settings/SettingsGeneral.vue.js +37 -37
- package/dist/views/Settings/SettingsGeneralMode.vue.d.ts +1 -1
- package/dist/views/Settings/SettingsGeneralMode.vue.js +38 -38
- package/package.json +13 -18
|
@@ -1,66 +1,66 @@
|
|
|
1
|
-
import { defineComponent as z, reactive as A, ref as M, computed as j, watch as
|
|
2
|
-
import
|
|
3
|
-
import { ROUTES as
|
|
4
|
-
import { useClipboard as
|
|
5
|
-
import { ScalarContextMenu as
|
|
6
|
-
import { capitalize as
|
|
7
|
-
import
|
|
8
|
-
import { useWorkspace as
|
|
9
|
-
const
|
|
1
|
+
import { defineComponent as z, reactive as A, ref as M, computed as j, watch as w, onMounted as B, onBeforeUnmount as E, openBlock as m, createElementBlock as b, createElementVNode as f, createVNode as n, unref as l, withCtx as u, toDisplayString as O, createTextVNode as x, Fragment as V, renderList as D, createBlock as K } from "vue";
|
|
2
|
+
import q from "../ScalarHotkey.vue.js";
|
|
3
|
+
import { ROUTES as F } from "../../constants.js";
|
|
4
|
+
import { useClipboard as H } from "../../hooks/useClipboard.js";
|
|
5
|
+
import { ScalarContextMenu as W, ScalarIcon as d, ScalarDropdown as G, ScalarDropdownItem as _ } from "@scalar/components";
|
|
6
|
+
import { capitalize as J } from "@scalar/oas-utils/helpers";
|
|
7
|
+
import P from "./TopNavItem.vue.js";
|
|
8
|
+
import { useWorkspace as Q } from "../../store/store.js";
|
|
9
|
+
const X = { class: "flex h-10 t-app__top-nav" }, Y = { class: "flex h-10 flex-1 items-center gap-1.5 text-sm font-medium pr-1 relative overflow-hidden" }, Z = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "h-full w-full overflow-hidden"
|
|
12
|
-
},
|
|
12
|
+
}, re = /* @__PURE__ */ z({
|
|
13
13
|
__name: "TopNav",
|
|
14
14
|
props: {
|
|
15
15
|
openNewTab: {}
|
|
16
16
|
},
|
|
17
|
-
setup(
|
|
18
|
-
const
|
|
19
|
-
function
|
|
20
|
-
var
|
|
21
|
-
const e =
|
|
22
|
-
e && ((e == null ? void 0 : e.name) === "request" ? t[
|
|
23
|
-
label: ((
|
|
17
|
+
setup(I) {
|
|
18
|
+
const L = I, { activeRequest: S, router: i, events: g } = Q(), { copyToClipboard: U } = H(), t = A([{ label: "", path: "", icon: "Add" }]), a = M(0), T = j(() => a.value);
|
|
19
|
+
function k() {
|
|
20
|
+
var o;
|
|
21
|
+
const e = F.find((c) => i.currentRoute.value.name == c.name);
|
|
22
|
+
e && ((e == null ? void 0 : e.name) === "request" ? t[a.value] = {
|
|
23
|
+
label: ((o = S.value) == null ? void 0 : o.summary) || "",
|
|
24
24
|
path: i.currentRoute.value.path,
|
|
25
25
|
icon: e.icon
|
|
26
|
-
} : t[
|
|
27
|
-
label:
|
|
26
|
+
} : t[a.value] = {
|
|
27
|
+
label: J(e == null ? void 0 : e.name) || "",
|
|
28
28
|
path: i.currentRoute.value.path,
|
|
29
29
|
icon: e.icon
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
32
|
function v() {
|
|
33
|
-
i.push(t[
|
|
33
|
+
i.push(t[a.value].path);
|
|
34
34
|
}
|
|
35
|
-
function
|
|
36
|
-
t.push({ label: "", path: "", icon: "Add" }),
|
|
35
|
+
function p() {
|
|
36
|
+
t.push({ label: "", path: "", icon: "Add" }), a.value = t.length - 1, k();
|
|
37
37
|
}
|
|
38
38
|
function r(e) {
|
|
39
|
-
|
|
39
|
+
a.value = e, v();
|
|
40
40
|
}
|
|
41
|
-
|
|
41
|
+
w(
|
|
42
42
|
() => i.currentRoute.value.path,
|
|
43
43
|
() => {
|
|
44
|
-
|
|
44
|
+
k();
|
|
45
45
|
},
|
|
46
46
|
{ immediate: !0 }
|
|
47
47
|
);
|
|
48
48
|
function N(e) {
|
|
49
|
-
t.splice(e, 1),
|
|
50
|
-
|
|
49
|
+
t.splice(e, 1), a.value = Math.min(
|
|
50
|
+
a.value,
|
|
51
51
|
t.length - 1
|
|
52
52
|
), v();
|
|
53
53
|
}
|
|
54
54
|
const y = (e) => {
|
|
55
|
-
const
|
|
56
|
-
|
|
55
|
+
const o = new URL(window.location.href);
|
|
56
|
+
o.pathname = t[e].path, U(o.toString());
|
|
57
57
|
}, R = (e) => {
|
|
58
|
-
t.splice(0, e), t.splice(1),
|
|
59
|
-
},
|
|
58
|
+
t.splice(0, e), t.splice(1), a.value = 0, v();
|
|
59
|
+
}, C = (e) => {
|
|
60
60
|
if (e) {
|
|
61
|
-
if (e.addTopNav &&
|
|
62
|
-
const
|
|
63
|
-
|
|
61
|
+
if (e.addTopNav && p(), e.closeTopNav && N(a.value), e.navigateTopNavLeft && r(Math.max(a.value - 1, 0)), e.navigateTopNavRight && r(Math.min(a.value + 1, t.length - 1)), e.jumpToTab) {
|
|
62
|
+
const o = Number(e.jumpToTab.key) - 1;
|
|
63
|
+
o >= 0 && o < t.length && r(o);
|
|
64
64
|
}
|
|
65
65
|
e.jumpToLastTab && r(t.length - 1);
|
|
66
66
|
}
|
|
@@ -71,60 +71,60 @@ const Z = (c) => (q("data-v-f3ff8743"), c = c(), F(), c), ee = { class: "flex h-
|
|
|
71
71
|
icon: "ExternalLink"
|
|
72
72
|
});
|
|
73
73
|
};
|
|
74
|
-
return
|
|
75
|
-
() =>
|
|
74
|
+
return w(
|
|
75
|
+
() => L.openNewTab,
|
|
76
76
|
(e) => {
|
|
77
77
|
e && $(e);
|
|
78
78
|
},
|
|
79
79
|
{ immediate: !0 }
|
|
80
|
-
), B(() =>
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
t.length === 1 ? (
|
|
84
|
-
n(l(
|
|
80
|
+
), B(() => g.hotKeys.on(C)), E(() => g.hotKeys.off(C)), (e, o) => (m(), b("nav", X, [
|
|
81
|
+
o[3] || (o[3] = f("div", { class: "t-app__top-nav-draggable" }, null, -1)),
|
|
82
|
+
f("div", Y, [
|
|
83
|
+
t.length === 1 ? (m(), b("div", Z, [
|
|
84
|
+
n(l(W), { triggerClass: "flex custom-scroll gap-1.5 h-full items-center justify-center w-full whitespace-nowrap" }, {
|
|
85
85
|
trigger: u(() => [
|
|
86
|
-
n(l(
|
|
86
|
+
n(l(d), {
|
|
87
87
|
icon: t[0].icon,
|
|
88
88
|
size: "xs",
|
|
89
89
|
thickness: "2.5"
|
|
90
90
|
}, null, 8, ["icon"]),
|
|
91
|
-
|
|
91
|
+
f("span", null, O(t[0].label), 1)
|
|
92
92
|
]),
|
|
93
93
|
content: u(() => [
|
|
94
|
-
n(l(
|
|
94
|
+
n(l(G), {
|
|
95
95
|
class: "scalar-client",
|
|
96
96
|
static: ""
|
|
97
97
|
}, {
|
|
98
98
|
items: u(() => [
|
|
99
|
-
n(l(
|
|
99
|
+
n(l(_), {
|
|
100
100
|
class: "flex items-center gap-1.5",
|
|
101
|
-
onClick:
|
|
101
|
+
onClick: p
|
|
102
102
|
}, {
|
|
103
103
|
default: u(() => [
|
|
104
|
-
n(l(
|
|
104
|
+
n(l(d), {
|
|
105
105
|
icon: "AddTab",
|
|
106
106
|
size: "sm",
|
|
107
107
|
thickness: "1.5"
|
|
108
108
|
}),
|
|
109
|
-
x(" New Tab "),
|
|
110
|
-
n(
|
|
109
|
+
o[1] || (o[1] = x(" New Tab ")),
|
|
110
|
+
n(q, {
|
|
111
111
|
class: "bg-b-2 ml-auto",
|
|
112
112
|
hotkey: "T"
|
|
113
113
|
})
|
|
114
114
|
]),
|
|
115
115
|
_: 1
|
|
116
116
|
}),
|
|
117
|
-
n(l(
|
|
117
|
+
n(l(_), {
|
|
118
118
|
class: "flex items-center gap-1.5",
|
|
119
|
-
onClick:
|
|
119
|
+
onClick: o[0] || (o[0] = (c) => y(T.value))
|
|
120
120
|
}, {
|
|
121
121
|
default: u(() => [
|
|
122
|
-
n(l(
|
|
122
|
+
n(l(d), {
|
|
123
123
|
icon: "Link",
|
|
124
124
|
size: "sm",
|
|
125
125
|
thickness: "1.5"
|
|
126
126
|
}),
|
|
127
|
-
x(" Copy URL ")
|
|
127
|
+
o[2] || (o[2] = x(" Copy URL "))
|
|
128
128
|
]),
|
|
129
129
|
_: 1
|
|
130
130
|
})
|
|
@@ -134,24 +134,24 @@ const Z = (c) => (q("data-v-f3ff8743"), c = c(), F(), c), ee = { class: "flex h-
|
|
|
134
134
|
]),
|
|
135
135
|
_: 1
|
|
136
136
|
})
|
|
137
|
-
])) : (
|
|
137
|
+
])) : (m(!0), b(V, { key: 1 }, D(t, (c, s) => (m(), K(P, {
|
|
138
138
|
key: s,
|
|
139
|
-
active: s ===
|
|
139
|
+
active: s === T.value,
|
|
140
140
|
hotkey: (s + 1).toString(),
|
|
141
|
-
icon:
|
|
142
|
-
label:
|
|
143
|
-
onClick: (
|
|
144
|
-
onClose: (
|
|
145
|
-
onCloseOtherTabs: (
|
|
146
|
-
onCopyUrl: (
|
|
147
|
-
onNewTab:
|
|
141
|
+
icon: c.icon,
|
|
142
|
+
label: c.label,
|
|
143
|
+
onClick: (h) => r(s),
|
|
144
|
+
onClose: (h) => N(s),
|
|
145
|
+
onCloseOtherTabs: (h) => R(s),
|
|
146
|
+
onCopyUrl: (h) => y(s),
|
|
147
|
+
onNewTab: p
|
|
148
148
|
}, null, 8, ["active", "hotkey", "icon", "label", "onClick", "onClose", "onCloseOtherTabs", "onCopyUrl"]))), 128)),
|
|
149
|
-
|
|
149
|
+
f("button", {
|
|
150
150
|
class: "text-c-3 hover:bg-b-3 p-1.5 rounded webkit-app-no-drag",
|
|
151
151
|
type: "button",
|
|
152
|
-
onClick:
|
|
152
|
+
onClick: p
|
|
153
153
|
}, [
|
|
154
|
-
n(l(
|
|
154
|
+
n(l(d), {
|
|
155
155
|
icon: "Add",
|
|
156
156
|
size: "xs",
|
|
157
157
|
thickness: "2.5"
|
|
@@ -162,5 +162,5 @@ const Z = (c) => (q("data-v-f3ff8743"), c = c(), F(), c), ee = { class: "flex h-
|
|
|
162
162
|
}
|
|
163
163
|
});
|
|
164
164
|
export {
|
|
165
|
-
|
|
165
|
+
re as default
|
|
166
166
|
};
|
|
@@ -1,35 +1,26 @@
|
|
|
1
1
|
import { type Icon } from '@scalar/components';
|
|
2
|
-
declare const _default: import("vue").DefineComponent<
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
3
|
hotkey?: string;
|
|
4
4
|
active: boolean;
|
|
5
5
|
label: string;
|
|
6
6
|
icon: Icon;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
newTab: () =>
|
|
11
|
-
copyUrl: () =>
|
|
12
|
-
closeOtherTabs: () =>
|
|
13
|
-
}, string, import("vue").PublicProps, Readonly<
|
|
7
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
8
|
+
close: () => any;
|
|
9
|
+
click: () => any;
|
|
10
|
+
newTab: () => any;
|
|
11
|
+
copyUrl: () => any;
|
|
12
|
+
closeOtherTabs: () => any;
|
|
13
|
+
}, string, import("vue").PublicProps, Readonly<{
|
|
14
14
|
hotkey?: string;
|
|
15
15
|
active: boolean;
|
|
16
16
|
label: string;
|
|
17
17
|
icon: Icon;
|
|
18
|
-
}
|
|
19
|
-
onClick?: (() => any) | undefined;
|
|
18
|
+
}> & Readonly<{
|
|
20
19
|
onClose?: (() => any) | undefined;
|
|
20
|
+
onClick?: (() => any) | undefined;
|
|
21
21
|
onNewTab?: (() => any) | undefined;
|
|
22
22
|
onCopyUrl?: (() => any) | undefined;
|
|
23
23
|
onCloseOtherTabs?: (() => any) | undefined;
|
|
24
|
-
}, {}, {}>;
|
|
24
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
25
|
export default _default;
|
|
26
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
27
|
-
type __VLS_TypePropsToOption<T> = {
|
|
28
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
29
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
30
|
-
} : {
|
|
31
|
-
type: import('vue').PropType<T[K]>;
|
|
32
|
-
required: true;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
26
|
//# sourceMappingURL=TopNavItem.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TopNavItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TopNav/TopNavItem.vue"],"names":[],"mappings":"AA0MA,OAAO,EACL,KAAK,IAAI,EAOV,MAAM,oBAAoB,CAAA;;aAKhB,MAAM;YACP,OAAO;WACR,MAAM;UACP,IAAI;;;;;;;;aAHD,MAAM;YACP,OAAO;WACR,MAAM;UACP,IAAI;;;;;;;;
|
|
1
|
+
{"version":3,"file":"TopNavItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TopNav/TopNavItem.vue"],"names":[],"mappings":"AA0MA,OAAO,EACL,KAAK,IAAI,EAOV,MAAM,oBAAoB,CAAA;;aAKhB,MAAM;YACP,OAAO;WACR,MAAM;UACP,IAAI;;;;;;;;aAHD,MAAM;YACP,OAAO;WACR,MAAM;UACP,IAAI;;;;;;;;AAgbZ,wBAaG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as k, openBlock as p, createBlock as d, unref as
|
|
2
|
-
import
|
|
3
|
-
import { ScalarContextMenu as v, ScalarTooltip as C, ScalarIcon as l, ScalarDropdown as g, ScalarDropdownItem as
|
|
4
|
-
const T = { class: "nav-item-icon-copy flex flex-1 items-center justify-center gap-1.5" }, $ = { class: "custom-scroll nav-item-copy text-xs" },
|
|
1
|
+
import { defineComponent as k, openBlock as p, createBlock as d, unref as s, withCtx as i, createVNode as t, createElementVNode as a, normalizeClass as f, toDisplayString as u, createCommentVNode as b, createTextVNode as r } from "vue";
|
|
2
|
+
import c from "../ScalarHotkey.vue.js";
|
|
3
|
+
import { ScalarContextMenu as v, ScalarTooltip as C, ScalarIcon as l, ScalarDropdown as g, ScalarDropdownItem as m, ScalarDropdownDivider as y } from "@scalar/components";
|
|
4
|
+
const T = { class: "nav-item-icon-copy flex flex-1 items-center justify-center gap-1.5" }, $ = { class: "custom-scroll nav-item-copy text-xs" }, D = /* @__PURE__ */ k({
|
|
5
5
|
__name: "TopNavItem",
|
|
6
6
|
props: {
|
|
7
7
|
hotkey: {},
|
|
@@ -11,9 +11,9 @@ const T = { class: "nav-item-icon-copy flex flex-1 items-center justify-center g
|
|
|
11
11
|
},
|
|
12
12
|
emits: ["click", "close", "newTab", "copyUrl", "closeOtherTabs"],
|
|
13
13
|
setup(w) {
|
|
14
|
-
return (o,
|
|
14
|
+
return (o, e) => (p(), d(s(v), { triggerClass: "overflow-hidden w-full" }, {
|
|
15
15
|
trigger: i(() => [
|
|
16
|
-
|
|
16
|
+
t(s(C), {
|
|
17
17
|
class: "scalar-client",
|
|
18
18
|
delay: 500,
|
|
19
19
|
disableClosingTrigger: !0,
|
|
@@ -23,10 +23,10 @@ const T = { class: "nav-item-icon-copy flex flex-1 items-center justify-center g
|
|
|
23
23
|
trigger: i(() => [
|
|
24
24
|
a("div", {
|
|
25
25
|
class: f(["nav-item webkit-app-no-drag", { "nav-item__active": o.active }]),
|
|
26
|
-
onClick:
|
|
26
|
+
onClick: e[1] || (e[1] = (n) => o.$emit("click"))
|
|
27
27
|
}, [
|
|
28
28
|
a("div", T, [
|
|
29
|
-
|
|
29
|
+
t(s(l), {
|
|
30
30
|
icon: o.icon,
|
|
31
31
|
size: "xs",
|
|
32
32
|
thickness: "2.5"
|
|
@@ -36,9 +36,9 @@ const T = { class: "nav-item-icon-copy flex flex-1 items-center justify-center g
|
|
|
36
36
|
a("button", {
|
|
37
37
|
class: "nav-item-close",
|
|
38
38
|
type: "button",
|
|
39
|
-
onClick:
|
|
39
|
+
onClick: e[0] || (e[0] = (n) => o.$emit("close"))
|
|
40
40
|
}, [
|
|
41
|
-
|
|
41
|
+
t(s(l), {
|
|
42
42
|
icon: "Close",
|
|
43
43
|
thickness: "1.75"
|
|
44
44
|
})
|
|
@@ -46,7 +46,7 @@ const T = { class: "nav-item-icon-copy flex flex-1 items-center justify-center g
|
|
|
46
46
|
], 2)
|
|
47
47
|
]),
|
|
48
48
|
content: i(() => [
|
|
49
|
-
o.hotkey ? (p(), d(
|
|
49
|
+
o.hotkey ? (p(), d(c, {
|
|
50
50
|
key: 0,
|
|
51
51
|
hotkey: o.hotkey
|
|
52
52
|
}, null, 8, ["hotkey"])) : b("", !0)
|
|
@@ -55,73 +55,73 @@ const T = { class: "nav-item-icon-copy flex flex-1 items-center justify-center g
|
|
|
55
55
|
})
|
|
56
56
|
]),
|
|
57
57
|
content: i(() => [
|
|
58
|
-
|
|
58
|
+
t(s(g), {
|
|
59
59
|
class: "scalar-client",
|
|
60
60
|
static: ""
|
|
61
61
|
}, {
|
|
62
62
|
items: i(() => [
|
|
63
|
-
|
|
63
|
+
t(s(m), {
|
|
64
64
|
class: "flex items-center gap-1.5",
|
|
65
|
-
onClick:
|
|
65
|
+
onClick: e[2] || (e[2] = (n) => o.$emit("newTab"))
|
|
66
66
|
}, {
|
|
67
67
|
default: i(() => [
|
|
68
|
-
|
|
68
|
+
t(s(l), {
|
|
69
69
|
icon: "AddTab",
|
|
70
70
|
size: "sm",
|
|
71
71
|
thickness: "1.5"
|
|
72
72
|
}),
|
|
73
|
-
r(" New Tab "),
|
|
74
|
-
|
|
73
|
+
e[6] || (e[6] = r(" New Tab ")),
|
|
74
|
+
t(c, {
|
|
75
75
|
class: "bg-b-2 ml-auto",
|
|
76
76
|
hotkey: "T"
|
|
77
77
|
})
|
|
78
78
|
]),
|
|
79
79
|
_: 1
|
|
80
80
|
}),
|
|
81
|
-
|
|
81
|
+
t(s(m), {
|
|
82
82
|
class: "flex items-center gap-1.5",
|
|
83
|
-
onClick:
|
|
83
|
+
onClick: e[3] || (e[3] = (n) => o.$emit("copyUrl"))
|
|
84
84
|
}, {
|
|
85
85
|
default: i(() => [
|
|
86
|
-
|
|
86
|
+
t(s(l), {
|
|
87
87
|
icon: "Link",
|
|
88
88
|
size: "sm",
|
|
89
89
|
thickness: "1.5"
|
|
90
90
|
}),
|
|
91
|
-
r(" Copy URL ")
|
|
91
|
+
e[7] || (e[7] = r(" Copy URL "))
|
|
92
92
|
]),
|
|
93
93
|
_: 1
|
|
94
94
|
}),
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
t(s(y)),
|
|
96
|
+
t(s(m), {
|
|
97
97
|
class: "flex items-center gap-1.5",
|
|
98
|
-
onClick:
|
|
98
|
+
onClick: e[4] || (e[4] = (n) => o.$emit("close"))
|
|
99
99
|
}, {
|
|
100
100
|
default: i(() => [
|
|
101
|
-
|
|
101
|
+
t(s(l), {
|
|
102
102
|
icon: "CloseTab",
|
|
103
103
|
size: "sm",
|
|
104
104
|
thickness: "1.5"
|
|
105
105
|
}),
|
|
106
|
-
r(" Close Tab "),
|
|
107
|
-
|
|
106
|
+
e[8] || (e[8] = r(" Close Tab ")),
|
|
107
|
+
t(c, {
|
|
108
108
|
class: "bg-b-2 ml-auto",
|
|
109
109
|
hotkey: "W"
|
|
110
110
|
})
|
|
111
111
|
]),
|
|
112
112
|
_: 1
|
|
113
113
|
}),
|
|
114
|
-
|
|
114
|
+
t(s(m), {
|
|
115
115
|
class: "flex items-center gap-1.5",
|
|
116
|
-
onClick:
|
|
116
|
+
onClick: e[5] || (e[5] = (n) => o.$emit("closeOtherTabs"))
|
|
117
117
|
}, {
|
|
118
118
|
default: i(() => [
|
|
119
|
-
|
|
119
|
+
t(s(l), {
|
|
120
120
|
icon: "CloseTabs",
|
|
121
121
|
size: "sm",
|
|
122
122
|
thickness: "1.5"
|
|
123
123
|
}),
|
|
124
|
-
r(" Close Other Tabs ")
|
|
124
|
+
e[9] || (e[9] = r(" Close Other Tabs "))
|
|
125
125
|
]),
|
|
126
126
|
_: 1
|
|
127
127
|
})
|
|
@@ -134,5 +134,5 @@ const T = { class: "nav-item-icon-copy flex flex-1 items-center justify-center g
|
|
|
134
134
|
}
|
|
135
135
|
});
|
|
136
136
|
export {
|
|
137
|
-
|
|
137
|
+
D as default
|
|
138
138
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare function __VLS_template(): {
|
|
2
2
|
default?(_: {}): any;
|
|
3
3
|
};
|
|
4
|
-
declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").
|
|
4
|
+
declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
5
5
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
6
6
|
export default _default;
|
|
7
7
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ViewLayout.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayout.vue"],"names":[],"mappings":"AAeA,iBAAS,cAAc;qBA2BM,GAAG;EAa/B;AACD,QAAA,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"ViewLayout.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayout.vue"],"names":[],"mappings":"AAeA,iBAAS,cAAc;qBA2BM,GAAG;EAa/B;AACD,QAAA,MAAM,eAAe,+QAKnB,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"}
|
|
@@ -9,44 +9,21 @@ declare function __VLS_template(): {
|
|
|
9
9
|
open: any;
|
|
10
10
|
}): any;
|
|
11
11
|
};
|
|
12
|
-
declare const __VLS_component: import("vue").DefineComponent<
|
|
12
|
+
declare const __VLS_component: import("vue").DefineComponent<{
|
|
13
13
|
defaultOpen?: boolean;
|
|
14
14
|
itemCount?: number;
|
|
15
|
-
}
|
|
16
|
-
defaultOpen: boolean;
|
|
17
|
-
itemCount: number;
|
|
18
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
15
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
19
16
|
defaultOpen?: boolean;
|
|
20
17
|
itemCount?: number;
|
|
21
|
-
}>, {
|
|
22
|
-
defaultOpen: boolean;
|
|
23
|
-
itemCount: number;
|
|
24
|
-
}>>>, {
|
|
18
|
+
}> & Readonly<{}>, {
|
|
25
19
|
defaultOpen: boolean;
|
|
26
20
|
itemCount: number;
|
|
27
|
-
}, {}>;
|
|
21
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
28
22
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
29
23
|
export default _default;
|
|
30
|
-
type __VLS_WithDefaults<P, D> = {
|
|
31
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
32
|
-
default: D[K];
|
|
33
|
-
}> : P[K];
|
|
34
|
-
};
|
|
35
|
-
type __VLS_Prettify<T> = {
|
|
36
|
-
[K in keyof T]: T[K];
|
|
37
|
-
} & {};
|
|
38
24
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
39
25
|
new (): {
|
|
40
26
|
$slots: S;
|
|
41
27
|
};
|
|
42
28
|
};
|
|
43
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
44
|
-
type __VLS_TypePropsToOption<T> = {
|
|
45
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
46
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
47
|
-
} : {
|
|
48
|
-
type: import('vue').PropType<T[K]>;
|
|
49
|
-
required: true;
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
29
|
//# sourceMappingURL=ViewLayoutCollapse.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ViewLayoutCollapse.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayoutCollapse.vue"],"names":[],"mappings":"AAiFA,iBAAS,cAAc;;;QAgJK,GAAG;;;QACD,GAAG;;;QACH,GAAG;
|
|
1
|
+
{"version":3,"file":"ViewLayoutCollapse.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayoutCollapse.vue"],"names":[],"mappings":"AAiFA,iBAAS,cAAc;;;QAgJK,GAAG;;;QACD,GAAG;;;QACH,GAAG;EAmBhC;AACD,QAAA,MAAM,eAAe;kBA1LH,OAAO;gBACT,MAAM;;kBADJ,OAAO;gBACT,MAAM;;iBADJ,OAAO;eACT,MAAM;6EAgMpB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAexG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare function __VLS_template(): {
|
|
2
2
|
default?(_: {}): any;
|
|
3
3
|
};
|
|
4
|
-
declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").
|
|
4
|
+
declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
5
5
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
6
6
|
export default _default;
|
|
7
7
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ViewLayoutContent.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayoutContent.vue"],"names":[],"mappings":"AAeA,iBAAS,cAAc;qBA4BM,GAAG;EAa/B;AACD,QAAA,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"ViewLayoutContent.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayoutContent.vue"],"names":[],"mappings":"AAeA,iBAAS,cAAc;qBA4BM,GAAG;EAa/B;AACD,QAAA,MAAM,eAAe,+QAKnB,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"}
|
|
@@ -2,7 +2,7 @@ declare function __VLS_template(): {
|
|
|
2
2
|
title?(_: {}): any;
|
|
3
3
|
default?(_: {}): any;
|
|
4
4
|
};
|
|
5
|
-
declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").
|
|
5
|
+
declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
6
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
7
7
|
export default _default;
|
|
8
8
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ViewLayoutSection.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayoutSection.vue"],"names":[],"mappings":"AA8BA,iBAAS,cAAc;mBA8CI,GAAG;qBACD,GAAG;EAc/B;AACD,QAAA,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"ViewLayoutSection.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayoutSection.vue"],"names":[],"mappings":"AA8BA,iBAAS,cAAc;mBA8CI,GAAG;qBACD,GAAG;EAc/B;AACD,QAAA,MAAM,eAAe,+QAKnB,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
|
/** This hook helps with retrieving the dark mode setting from local storage or from system settings. */
|
|
2
2
|
export declare function useDarkModeState(): {
|
|
3
|
-
colorMode: import("vue").Ref<"light" | "dark" | "system">;
|
|
3
|
+
colorMode: import("vue").Ref<"light" | "dark" | "system", "light" | "dark" | "system">;
|
|
4
4
|
toggleDarkMode: () => void;
|
|
5
5
|
setDarkMode: (value: boolean | null) => void;
|
|
6
6
|
getSystemModePreference: () => boolean;
|
|
@@ -25,6 +25,21 @@ export declare function useFileDialog({ multiple, accept, onChange, onError, }?:
|
|
|
25
25
|
readonly length: number;
|
|
26
26
|
readonly item: (index: number) => File | null;
|
|
27
27
|
readonly [Symbol.iterator]: () => ArrayIterator<File>;
|
|
28
|
+
} | null, {
|
|
29
|
+
readonly [x: number]: {
|
|
30
|
+
readonly lastModified: number;
|
|
31
|
+
readonly name: string;
|
|
32
|
+
readonly webkitRelativePath: string;
|
|
33
|
+
readonly size: number;
|
|
34
|
+
readonly type: string;
|
|
35
|
+
readonly arrayBuffer: () => Promise<ArrayBuffer>;
|
|
36
|
+
readonly slice: (start?: number, end?: number, contentType?: string) => Blob;
|
|
37
|
+
readonly stream: () => ReadableStream<Uint8Array>;
|
|
38
|
+
readonly text: () => Promise<string>;
|
|
39
|
+
};
|
|
40
|
+
readonly length: number;
|
|
41
|
+
readonly item: (index: number) => File | null;
|
|
42
|
+
readonly [Symbol.iterator]: () => ArrayIterator<File>;
|
|
28
43
|
} | null>>;
|
|
29
44
|
open: () => void | Promise<void>;
|
|
30
45
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFileDialog.d.ts","sourceRoot":"","sources":["../../src/hooks/useFileDialog.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,mBAAmB;IACnB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IAC3D,OAAO,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CACrC,CAAA;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,EAC5B,QAAQ,EACR,MAAM,EACN,QAAQ,EACR,OAAO,GACR,GAAE,oBAAyB
|
|
1
|
+
{"version":3,"file":"useFileDialog.d.ts","sourceRoot":"","sources":["../../src/hooks/useFileDialog.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,mBAAmB;IACnB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IAC3D,OAAO,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CACrC,CAAA;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,EAC5B,QAAQ,EACR,MAAM,EACN,QAAQ,EACR,OAAO,GACR,GAAE,oBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8B3B"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
2
2
|
newTab: (item: {
|
|
3
3
|
name: string;
|
|
4
4
|
uid: string;
|
|
5
|
-
}) =>
|
|
6
|
-
}, string, import("vue").PublicProps, Readonly<
|
|
5
|
+
}) => any;
|
|
6
|
+
}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
7
7
|
onNewTab?: ((item: {
|
|
8
8
|
name: string;
|
|
9
9
|
uid: string;
|
|
10
10
|
}) => any) | undefined;
|
|
11
|
-
}, {}, {}>;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
12
12
|
export default _default;
|
|
13
13
|
//# sourceMappingURL=ApiClientApp.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiClientApp.vue.d.ts","sourceRoot":"","sources":["../../../src/layouts/App/ApiClientApp.vue"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"ApiClientApp.vue.d.ts","sourceRoot":"","sources":["../../../src/layouts/App/ApiClientApp.vue"],"names":[],"mappings":";;cAmU8B,MAAM;aAAO,MAAM;;;;cAAnB,MAAM;aAAO,MAAM;;;AANjD,wBAQG"}
|
|
@@ -667,9 +667,9 @@ export declare const createApiClientApp: (el: HTMLElement | null, configuration?
|
|
|
667
667
|
commandPalette: import("../../libs/index.js").EventBus<import("../../components/CommandPalette/TheCommandPalette.vue.js").CommandPaletteEvent>;
|
|
668
668
|
hotKeys: import("../../libs/index.js").EventBus<Partial<Record<"closeModal" | "navigateSearchResultsDown" | "selectSearchResult" | "navigateSearchResultsUp" | "openCommandPalette" | "openCommandPaletteRequest" | "toggleSidebar" | "addTopNav" | "closeTopNav" | "navigateTopNavLeft" | "navigateTopNavRight" | "focusAddressBar" | "jumpToTab" | "jumpToLastTab" | "focusRequestSearch", KeyboardEvent>>>;
|
|
669
669
|
};
|
|
670
|
-
sidebarWidth: import("vue").Ref<string>;
|
|
670
|
+
sidebarWidth: import("vue").Ref<string, string>;
|
|
671
671
|
setSidebarWidth: (width: string) => void;
|
|
672
|
-
proxyUrl: import("vue").Ref<string>;
|
|
672
|
+
proxyUrl: import("vue").Ref<string, string>;
|
|
673
673
|
setProxyUrl: (url: string) => void;
|
|
674
674
|
importSpecFile: (_spec: string | Record<string, any>, workspaceUid?: string, overloadServers?: import("@scalar/types/legacy").Spec["servers"], preferredSecurityScheme?: ClientConfiguration["preferredSecurityScheme"]) => Promise<{
|
|
675
675
|
type: "collection";
|