@scalar/api-client 2.2.51 → 2.2.53
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 +66 -0
- package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBar.vue.js +2 -2
- package/dist/components/AddressBar/AddressBar.vue2.js +30 -30
- package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBarHistory.vue.js +2 -2
- package/dist/components/AddressBar/AddressBarHistory.vue2.js +22 -22
- package/dist/components/CodeInput/CodeInput.vue.d.ts +3 -1
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.js +2 -2
- package/dist/components/CodeInput/CodeInput.vue2.js +38 -38
- package/dist/components/CommandPalette/CommandActionForm.vue.js +2 -2
- package/dist/components/CommandPalette/CommandActionInput.vue.js +1 -1
- package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteExample.vue.js +13 -13
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +143 -114
- package/dist/components/CommandPalette/CommandPaletteServer.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteServer.vue.js +59 -51
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.js +2 -2
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +85 -82
- package/dist/components/CommandPalette/WatchModeToggle.vue.js +2 -2
- package/dist/components/ContextBar.vue.js +2 -2
- package/dist/components/ContextBar.vue2.js +2 -2
- package/dist/components/DataTable/DataTable.vue.js +1 -1
- package/dist/components/DataTable/DataTableCell.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableCell.vue.js +11 -11
- package/dist/components/DataTable/DataTableCheckbox.vue.js +3 -3
- package/dist/components/DataTable/DataTableInput.vue.d.ts +175 -6
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInput.vue.js +3 -3
- package/dist/components/DataTable/DataTableInput.vue2.js +57 -48
- package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInputSelect.vue.js +1 -1
- package/dist/components/DataTable/DataTableText.vue.js +1 -1
- package/dist/components/EmptyState.vue.js +1 -1
- package/dist/components/EmptyState.vue2.js +4 -4
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -1
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +13 -13
- package/dist/components/Form/Form.vue.d.ts.map +1 -1
- package/dist/components/Form/Form.vue.js +56 -36
- package/dist/components/Form/LabelInput.vue.d.ts +14 -0
- package/dist/components/Form/LabelInput.vue.d.ts.map +1 -0
- package/dist/components/Form/LabelInput.vue.js +7 -0
- package/dist/components/Form/LabelInput.vue2.js +42 -0
- package/dist/components/HelpfulLink.vue.js +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue.js +2 -2
- package/dist/components/HttpMethod/HttpMethod.vue2.js +1 -1
- package/dist/components/IconSelector.vue.js +3 -3
- package/dist/components/ImportCollection/DropEventListener.vue.js +3 -3
- package/dist/components/ImportCollection/ImportNowButton.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/ImportNowButton.vue.js +8 -8
- package/dist/components/ImportCollection/IntegrationLogo.vue.js +1 -1
- package/dist/components/ImportCollection/OpenAppButton.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/PrefetchError.vue.js +1 -1
- package/dist/components/ImportCollection/WorkspaceSelector.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/WorkspaceSelector.vue.js +15 -15
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts.map +1 -1
- package/dist/components/ImportCurl/ImportCurlModal.vue.d.ts +2 -2
- package/dist/components/ImportCurl/ImportCurlModal.vue.d.ts.map +1 -1
- package/dist/components/ImportCurl/ImportCurlModal.vue.js +1 -1
- package/dist/components/ImportCurl/ImportCurlModal.vue2.js +13 -13
- package/dist/components/ScalarAsciiArt.vue.js +3 -3
- package/dist/components/Search/useSearch.d.ts.map +1 -1
- package/dist/components/Search/useSearch.js +5 -13
- package/dist/components/Server/ServerDropdown.vue.d.ts +0 -1
- package/dist/components/Server/ServerDropdown.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerDropdown.vue.js +40 -57
- package/dist/components/Server/ServerDropdownItem.vue.d.ts +0 -1
- package/dist/components/Server/ServerDropdownItem.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerDropdownItem.vue.js +1 -1
- package/dist/components/Server/ServerDropdownItem.vue2.js +19 -20
- package/dist/components/Server/ServerSelector.vue.d.ts +12 -0
- package/dist/components/Server/ServerSelector.vue.d.ts.map +1 -0
- package/dist/components/Server/ServerSelector.vue.js +85 -0
- package/dist/components/Server/ServerSelector.vue2.js +4 -0
- package/dist/components/Server/ServerVariablesForm.vue.d.ts +1 -1
- package/dist/components/Server/ServerVariablesForm.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerVariablesForm.vue.js +1 -1
- package/dist/components/Server/ServerVariablesSelect.vue.js +1 -1
- package/dist/components/Server/ServerVariablesTextbox.vue.js +1 -1
- package/dist/components/Server/index.d.ts +1 -0
- package/dist/components/Server/index.d.ts.map +1 -1
- package/dist/components/Server/index.js +6 -4
- package/dist/components/Server/types.d.ts.map +1 -1
- package/dist/components/SideNav/DownloadAppButton.vue.d.ts.map +1 -1
- package/dist/components/SideNav/DownloadAppButton.vue.js +2 -2
- package/dist/components/SideNav/DownloadAppButton.vue2.js +6 -6
- package/dist/components/SideNav/SideHelp.vue.js +12 -12
- package/dist/components/SideNav/SideNav.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNav.vue.js +73 -58
- package/dist/components/SideNav/SideNavLink.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNavLink.vue.js +3 -3
- package/dist/components/SideNav/SideNavRouterLink.vue.d.ts +2 -2
- package/dist/components/SideNav/SideNavRouterLink.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNavRouterLink.vue.js +17 -28
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.js +1 -1
- package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.js +12 -12
- package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.js +4 -4
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +2 -2
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.js +3 -3
- package/dist/components/Sidebar/Sidebar.vue.d.ts +1 -4
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.js +1 -1
- package/dist/components/Sidebar/Sidebar.vue2.js +34 -34
- package/dist/components/Sidebar/SidebarButton.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarButton.vue.js +6 -6
- package/dist/components/Sidebar/SidebarListElement.vue.d.ts +2 -2
- package/dist/components/Sidebar/SidebarListElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarListElement.vue.js +2 -2
- package/dist/components/Sidebar/SidebarListElement.vue2.js +36 -46
- package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarListElementActions.vue.js +7 -7
- package/dist/components/Sidebar/SidebarToggle.vue.d.ts +1 -8
- package/dist/components/Sidebar/SidebarToggle.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarToggle.vue.js +20 -21
- package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNav.vue.js +104 -85
- package/dist/components/TopNav/TopNavItem.vue.d.ts +2 -2
- package/dist/components/TopNav/TopNavItem.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNavItem.vue.js +2 -2
- package/dist/components/TopNav/TopNavItem.vue2.js +1 -1
- package/dist/components/ViewLayout/ViewLayout.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayout.vue.js +16 -10
- package/dist/components/ViewLayout/ViewLayout.vue2.js +4 -0
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +29 -29
- package/dist/components/ViewLayout/ViewLayoutContent.vue.js +1 -1
- package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutSection.vue.js +20 -13
- package/dist/components/ViewLayout/ViewLayoutSection.vue2.js +4 -0
- package/dist/constants.d.ts +16 -12
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +35 -6
- package/dist/hooks/index.d.ts +0 -1
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +5 -7
- package/dist/hooks/useFileDialog.d.ts +1 -1
- package/dist/hooks/useFileDialog.d.ts.map +1 -1
- package/dist/hooks/useFileDialog.js +1 -6
- package/dist/hooks/useResponseBody.d.ts.map +1 -1
- package/dist/hooks/useResponseBody.js +3 -9
- package/dist/hooks/useSidebar.d.ts +19 -2
- package/dist/hooks/useSidebar.d.ts.map +1 -1
- package/dist/hooks/useSidebar.js +25 -9
- package/dist/hooks/useSidebar.test.d.ts +2 -0
- package/dist/hooks/useSidebar.test.d.ts.map +1 -0
- package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
- package/dist/layouts/App/ApiClientApp.vue.js +41 -35
- package/dist/layouts/App/MainLayout.vue.js +4 -4
- package/dist/layouts/App/create-api-client-app.d.ts +207 -255
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue.js +2 -2
- package/dist/layouts/Modal/ApiClientModal.vue2.js +8 -8
- package/dist/layouts/Modal/create-api-client-modal.d.ts +414 -510
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Web/ApiClientWeb.vue.d.ts.map +1 -1
- package/dist/layouts/Web/ApiClientWeb.vue.js +39 -33
- package/dist/layouts/Web/create-api-client-web.d.ts +207 -255
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +200 -248
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/create-client.js +79 -63
- package/dist/libs/errors.d.ts.map +1 -1
- package/dist/libs/extractAttachmentFilename.d.ts.map +1 -1
- package/dist/libs/extractAttachmentFilename.js +1 -3
- package/dist/libs/find-request.d.ts.map +1 -1
- package/dist/libs/getOpenApiDocumentDetails.d.ts.map +1 -1
- package/dist/libs/importers/curl.d.ts.map +1 -1
- package/dist/libs/importers/curl.js +2 -12
- package/dist/libs/isUrl.d.ts.map +1 -1
- package/dist/libs/local-storage.d.ts.map +1 -1
- package/dist/libs/local-storage.js +1 -9
- package/dist/libs/normalize-headers.d.ts.map +1 -1
- package/dist/libs/normalize-headers.js +2 -6
- package/dist/libs/parse-curl.d.ts.map +1 -1
- package/dist/libs/parse-curl.js +1 -5
- package/dist/libs/postman.d.ts.map +1 -1
- package/dist/libs/send-request/create-fetch-body.d.ts +1 -1
- package/dist/libs/send-request/create-fetch-body.d.ts.map +1 -1
- package/dist/libs/send-request/create-fetch-body.js +1 -2
- package/dist/libs/send-request/create-fetch-headers.d.ts.map +1 -1
- package/dist/libs/send-request/create-fetch-query-params.d.ts.map +1 -1
- package/dist/libs/send-request/create-request-operation.d.ts.map +1 -1
- package/dist/libs/send-request/create-request-operation.js +6 -12
- package/dist/libs/send-request/create-request-operation.test.d.ts +0 -3
- package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -1
- package/dist/libs/string-template.d.ts.map +1 -1
- package/dist/libs/string-template.js +1 -4
- package/dist/router.d.ts.map +1 -1
- package/dist/routes.d.ts +62 -14
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +93 -75
- package/dist/store/active-entities.d.ts +32 -32
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/active-entities.js +37 -35
- package/dist/store/collections.d.ts +164 -164
- package/dist/store/collections.d.ts.map +1 -1
- package/dist/store/cookies.d.ts +4 -4
- package/dist/store/cookies.d.ts.map +1 -1
- package/dist/store/cookies.js +1 -5
- package/dist/store/environment.d.ts +4 -4
- package/dist/store/request-example.d.ts +2 -2
- package/dist/store/requests.d.ts +4 -4
- package/dist/store/requests.d.ts.map +1 -1
- package/dist/store/security-schemes.d.ts +8 -8
- package/dist/store/store-context.d.ts.map +1 -1
- package/dist/store/store.d.ts +200 -248
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/tags.d.ts.map +1 -1
- package/dist/store/workspace.d.ts +4 -4
- package/dist/style.css +1 -1
- package/dist/tailwind/desktop-variants.d.ts.map +1 -1
- package/dist/types/vue.d.ts.map +1 -1
- package/dist/views/Collection/Collection.vue.d.ts.map +1 -1
- package/dist/views/Collection/Collection.vue.js +4 -0
- package/dist/views/Collection/Collection.vue2.js +50 -0
- package/dist/views/Collection/CollectionAuthentication.vue.d.ts +3 -0
- package/dist/views/Collection/CollectionAuthentication.vue.d.ts.map +1 -0
- package/dist/views/Collection/CollectionAuthentication.vue.js +4 -0
- package/dist/views/Collection/CollectionAuthentication.vue2.js +16 -0
- package/dist/views/Collection/CollectionCookies.vue.d.ts +3 -0
- package/dist/views/Collection/CollectionCookies.vue.d.ts.map +1 -0
- package/dist/views/Collection/CollectionCookies.vue.js +4 -0
- package/dist/views/Collection/CollectionCookies.vue2.js +16 -0
- package/dist/views/Collection/CollectionEnvironment.vue.d.ts +3 -0
- package/dist/views/Collection/CollectionEnvironment.vue.d.ts.map +1 -0
- package/dist/views/Collection/CollectionEnvironment.vue.js +4 -0
- package/dist/views/Collection/CollectionEnvironment.vue2.js +16 -0
- package/dist/views/{Servers/Servers.vue.d.ts → Collection/CollectionInfoForm.vue.d.ts} +1 -1
- package/dist/views/Collection/CollectionInfoForm.vue.d.ts.map +1 -0
- package/dist/views/Collection/CollectionInfoForm.vue.js +7 -0
- package/dist/views/Collection/CollectionInfoForm.vue2.js +70 -0
- package/dist/views/Collection/CollectionNavigation.vue.d.ts +6 -0
- package/dist/views/Collection/CollectionNavigation.vue.d.ts.map +1 -0
- package/dist/views/Collection/CollectionNavigation.vue.js +142 -0
- package/dist/views/Collection/CollectionNavigation.vue2.js +4 -0
- package/dist/views/Collection/CollectionOverview.vue.d.ts +3 -0
- package/dist/views/Collection/CollectionOverview.vue.d.ts.map +1 -0
- package/dist/views/Collection/CollectionOverview.vue.js +4 -0
- package/dist/views/Collection/CollectionOverview.vue2.js +37 -0
- package/dist/views/Collection/CollectionScripts.vue.d.ts +3 -0
- package/dist/views/Collection/CollectionScripts.vue.d.ts.map +1 -0
- package/dist/views/Collection/CollectionScripts.vue.js +4 -0
- package/dist/views/Collection/CollectionScripts.vue2.js +16 -0
- package/dist/views/Collection/CollectionServerForm.vue.d.ts +10 -0
- package/dist/views/Collection/CollectionServerForm.vue.d.ts.map +1 -0
- package/dist/views/Collection/CollectionServerForm.vue.js +74 -0
- package/dist/views/Collection/CollectionServerForm.vue2.js +4 -0
- package/dist/views/{Servers/ServerForm.vue.d.ts → Collection/CollectionServers.vue.d.ts} +1 -1
- package/dist/views/Collection/CollectionServers.vue.d.ts.map +1 -0
- package/dist/views/Collection/CollectionServers.vue.js +4 -0
- package/dist/views/Collection/CollectionServers.vue2.js +124 -0
- package/dist/views/Collection/CollectionSettings.vue.d.ts +3 -0
- package/dist/views/Collection/CollectionSettings.vue.d.ts.map +1 -0
- package/dist/views/Collection/CollectionSettings.vue.js +7 -0
- package/dist/views/Collection/CollectionSettings.vue2.js +124 -0
- package/dist/views/Collection/CollectionSync.vue.d.ts +3 -0
- package/dist/views/Collection/CollectionSync.vue.d.ts.map +1 -0
- package/dist/views/Collection/CollectionSync.vue.js +4 -0
- package/dist/views/Collection/CollectionSync.vue2.js +16 -0
- package/dist/views/Collection/components/MarkdownInput.vue.d.ts +16 -0
- package/dist/views/Collection/components/MarkdownInput.vue.d.ts.map +1 -0
- package/dist/views/Collection/components/MarkdownInput.vue.js +7 -0
- package/dist/views/Collection/components/MarkdownInput.vue2.js +95 -0
- package/dist/views/Components/CodeSnippet/CodeSnippet.vue.d.ts.map +1 -1
- package/dist/views/Components/CodeSnippet/CodeSnippet.vue.js +7 -7
- package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.d.ts.map +1 -1
- package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.js +1 -3
- package/dist/views/Components/CodeSnippet/helpers/get-har-request.d.ts.map +1 -1
- package/dist/views/Components/CodeSnippet/helpers/get-har-request.js +1 -5
- package/dist/views/Components/CodeSnippet/helpers/get-snippet.d.ts.map +1 -1
- package/dist/views/Components/CodeSnippet/helpers/get-snippet.js +1 -5
- package/dist/views/Cookies/CookieForm.vue.d.ts.map +1 -1
- package/dist/views/Cookies/CookieForm.vue.js +18 -23
- package/dist/views/Cookies/CookieModal.vue.d.ts.map +1 -1
- package/dist/views/Cookies/CookieModal.vue.js +1 -1
- package/dist/views/Cookies/CookieModal.vue2.js +7 -7
- package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue2.js +96 -78
- package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
- package/dist/views/Environment/Environment.vue2.js +125 -112
- package/dist/views/Environment/EnvironmentColorModal.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentColorModal.vue.js +5 -5
- package/dist/views/Environment/EnvironmentColors.vue.js +8 -8
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts +1 -1
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +16 -16
- package/dist/views/Request/Request.vue.d.ts.map +1 -1
- package/dist/views/Request/Request.vue.js +1 -1
- package/dist/views/Request/Request.vue2.js +114 -171
- package/dist/views/Request/RequestRoot.vue.d.ts +13 -0
- package/dist/views/Request/RequestRoot.vue.d.ts.map +1 -0
- package/dist/views/Request/RequestRoot.vue.js +7 -0
- package/dist/views/Request/RequestRoot.vue2.js +78 -0
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +9 -9
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +5 -5
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +104 -89
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts +5 -5
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue2.js +59 -65
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.js +3 -3
- package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +22 -23
- package/dist/views/Request/RequestSection/RequestParams.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestParams.vue.js +14 -14
- package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestPathParams.vue.js +6 -6
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestSection.vue2.js +38 -38
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +2 -2
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +34 -33
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue2.js +5 -5
- package/dist/views/Request/RequestSection/helpers/filter-security-requirements.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/helpers/filter-security-requirements.js +2 -6
- package/dist/views/Request/RequestSidebar.vue.d.ts +3 -10
- package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebar.vue.js +1 -1
- package/dist/views/Request/RequestSidebar.vue2.js +186 -188
- package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
- package/dist/views/Request/RequestSidebarItem.vue2.js +290 -173
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue.js +4 -4
- package/dist/views/Request/RequestSidebarItemMenu.vue2.js +13 -13
- package/dist/views/Request/RequestSubpageHeader.vue.d.ts +1 -4
- package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSubpageHeader.vue.js +1 -1
- package/dist/views/Request/RequestSubpageHeader.vue2.js +51 -51
- package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBody.vue.js +2 -2
- package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +12 -12
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +2 -2
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.js +2 -2
- package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js +8 -8
- package/dist/views/Request/ResponseSection/ResponseCookies.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +20 -20
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +25 -26
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.js +3 -3
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue2.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js +7 -7
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +7 -7
- package/dist/views/Request/hooks/useOpenApiWatcher.d.ts.map +1 -1
- package/dist/views/Request/hooks/useOpenApiWatcher.js +12 -37
- package/dist/views/Request/libs/request.d.ts +4 -0
- package/dist/views/Request/libs/request.d.ts.map +1 -1
- package/dist/views/Request/libs/request.js +2 -1
- package/dist/views/Request/libs/watch-mode.d.ts.map +1 -1
- package/dist/views/Request/libs/watch-mode.js +63 -63
- package/dist/views/Request/types/sidebar-item.d.ts +1 -1
- package/dist/views/Request/types/sidebar-item.d.ts.map +1 -1
- package/dist/views/Settings/Settings.vue.d.ts.map +1 -1
- package/dist/views/Settings/Settings.vue2.js +8 -8
- package/dist/views/Settings/components/SettingsAppearance.vue.js +6 -6
- package/dist/vitest.setup.d.ts +16 -0
- package/dist/vitest.setup.d.ts.map +1 -0
- package/package.json +16 -21
- package/dist/views/Servers/ServerForm.vue.d.ts.map +0 -1
- package/dist/views/Servers/ServerForm.vue.js +0 -39
- package/dist/views/Servers/ServerForm.vue2.js +0 -4
- package/dist/views/Servers/Servers.vue.d.ts.map +0 -1
- package/dist/views/Servers/Servers.vue.js +0 -4
- package/dist/views/Servers/Servers.vue2.js +0 -168
- package/dist/views/Servers/index.d.ts +0 -2
- package/dist/views/Servers/index.d.ts.map +0 -1
- package/dist/views/Servers/index.js +0 -4
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { defineComponent as B, computed as p, ref as C, watch as R, openBlock as s, createBlock as y, withCtx as u, createElementVNode as v, unref as l, createElementBlock as c, createCommentVNode as h, toDisplayString as E, createVNode as n, withDirectives as t, vShow as i } from "vue";
|
|
2
|
-
import H from "
|
|
3
|
-
import K from "
|
|
4
|
-
import
|
|
5
|
-
import D from "
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { useWorkspace as
|
|
13
|
-
import { useLayout as
|
|
14
|
-
const
|
|
2
|
+
import { ScalarErrorBoundary as H } from "@scalar/components";
|
|
3
|
+
import { canMethodHaveBody as d, isDefined as K } from "@scalar/oas-utils/helpers";
|
|
4
|
+
import N from "../../../components/ContextBar.vue.js";
|
|
5
|
+
import D from "../../../components/ViewLayout/ViewLayoutSection.vue.js";
|
|
6
|
+
import { matchesDomain as U } from "../../../libs/send-request/set-request-cookies.js";
|
|
7
|
+
import $ from "./RequestBody.vue.js";
|
|
8
|
+
import f from "./RequestParams.vue.js";
|
|
9
|
+
import Q from "./RequestPathParams.vue.js";
|
|
10
|
+
import M from "./RequestAuth/RequestAuth.vue.js";
|
|
11
|
+
import O from "./RequestCodeExample.vue.js";
|
|
12
|
+
import { useWorkspace as P } from "../../../store/store.js";
|
|
13
|
+
import { useLayout as W } from "../../../hooks/useLayout.js";
|
|
14
|
+
const j = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:pr-24" }, z = {
|
|
15
15
|
key: 0,
|
|
16
|
-
class: "absolute
|
|
16
|
+
class: "pointer-events-auto absolute left-0 top-0 h-full w-full cursor-text opacity-0",
|
|
17
17
|
for: "requestname"
|
|
18
|
-
},
|
|
18
|
+
}, I = ["value"], L = {
|
|
19
19
|
key: 2,
|
|
20
|
-
class: "
|
|
21
|
-
}, F = { class: "request-section-content custom-scroll flex flex-1 flex-col
|
|
20
|
+
class: "text-c-1 flex h-8 items-center"
|
|
21
|
+
}, F = { class: "request-section-content custom-scroll relative flex flex-1 flex-col divide-y" }, le = /* @__PURE__ */ B({
|
|
22
22
|
__name: "RequestSection",
|
|
23
23
|
props: {
|
|
24
24
|
collection: {},
|
|
@@ -31,7 +31,7 @@ const W = { class: "flex-1 flex gap-1 items-center lg:pr-24 pointer-events-none
|
|
|
31
31
|
workspace: {}
|
|
32
32
|
},
|
|
33
33
|
setup(r) {
|
|
34
|
-
const { requestMutators: w, cookies: b, securitySchemes: V } =
|
|
34
|
+
const { requestMutators: w, cookies: b, securitySchemes: V } = P(), { layout: m } = W(), S = p(() => {
|
|
35
35
|
const e = /* @__PURE__ */ new Set([
|
|
36
36
|
"All",
|
|
37
37
|
"Query",
|
|
@@ -41,7 +41,7 @@ const W = { class: "flex-1 flex gap-1 items-center lg:pr-24 pointer-events-none
|
|
|
41
41
|
"Headers",
|
|
42
42
|
"Body"
|
|
43
43
|
]);
|
|
44
|
-
return r.example.parameters.path.length || e.delete("Variables"),
|
|
44
|
+
return r.example.parameters.path.length || e.delete("Variables"), d(r.operation.method ?? "get") || e.delete("Body"), k.value && e.delete("Auth"), [...e];
|
|
45
45
|
}), k = p(
|
|
46
46
|
() => {
|
|
47
47
|
var e;
|
|
@@ -51,17 +51,17 @@ const W = { class: "flex-1 flex gap-1 items-center lg:pr-24 pointer-events-none
|
|
|
51
51
|
R(
|
|
52
52
|
() => r.operation,
|
|
53
53
|
(e) => {
|
|
54
|
-
o.value === "Body" && e && !
|
|
54
|
+
o.value === "Body" && e && !d(e.method) && (o.value = "All");
|
|
55
55
|
}
|
|
56
56
|
);
|
|
57
57
|
const A = (e) => {
|
|
58
58
|
const a = e.target;
|
|
59
59
|
w.edit(r.operation.uid, "summary", a.value);
|
|
60
60
|
}, g = p(
|
|
61
|
-
() => (r.workspace.cookies ?? []).map((e) => b[e]).filter(
|
|
61
|
+
() => (r.workspace.cookies ?? []).map((e) => b[e]).filter(K).filter((e) => e.name).filter(
|
|
62
62
|
(e) => {
|
|
63
63
|
var a;
|
|
64
|
-
return
|
|
64
|
+
return U(((a = r.server) == null ? void 0 : a.url) || r.operation.path, e.domain);
|
|
65
65
|
}
|
|
66
66
|
).map((e) => ({
|
|
67
67
|
key: e.name,
|
|
@@ -75,22 +75,22 @@ const W = { class: "flex-1 flex gap-1 items-center lg:pr-24 pointer-events-none
|
|
|
75
75
|
enabled: !0
|
|
76
76
|
}))
|
|
77
77
|
);
|
|
78
|
-
return (e, a) => (s(), y(
|
|
78
|
+
return (e, a) => (s(), y(D, {
|
|
79
79
|
"aria-label": `Request: ${e.operation.summary}`
|
|
80
80
|
}, {
|
|
81
81
|
title: u(() => [
|
|
82
|
-
v("div",
|
|
83
|
-
l(m) !== "modal" ? (s(), c("label",
|
|
82
|
+
v("div", j, [
|
|
83
|
+
l(m) !== "modal" ? (s(), c("label", z)) : h("", !0),
|
|
84
84
|
l(m) !== "modal" ? (s(), c("input", {
|
|
85
85
|
key: 1,
|
|
86
86
|
id: "requestname",
|
|
87
|
-
class: "text-c-1
|
|
87
|
+
class: "text-c-1 group-hover-input pl-1.25 md:-ml-1.25 pointer-events-auto relative z-10 -ml-0.5 h-8 w-full rounded has-[:focus-visible]:outline",
|
|
88
88
|
placeholder: "Request Name",
|
|
89
89
|
value: e.operation.summary,
|
|
90
90
|
onInput: A
|
|
91
|
-
}, null, 40,
|
|
91
|
+
}, null, 40, I)) : (s(), c("span", L, E(e.operation.summary), 1))
|
|
92
92
|
]),
|
|
93
|
-
n(
|
|
93
|
+
n(N, {
|
|
94
94
|
activeSection: o.value,
|
|
95
95
|
sections: S.value,
|
|
96
96
|
onSetActiveSection: a[0] || (a[0] = (q) => o.value = q)
|
|
@@ -98,7 +98,7 @@ const W = { class: "flex-1 flex gap-1 items-center lg:pr-24 pointer-events-none
|
|
|
98
98
|
]),
|
|
99
99
|
default: u(() => [
|
|
100
100
|
v("div", F, [
|
|
101
|
-
e.collection && e.workspace && (l(m) !== "modal" || Object.keys(l(V) ?? {}).length) ? t((s(), y(
|
|
101
|
+
e.collection && e.workspace && (l(m) !== "modal" || Object.keys(l(V) ?? {}).length) ? t((s(), y(M, {
|
|
102
102
|
key: 0,
|
|
103
103
|
collection: e.collection,
|
|
104
104
|
envVariables: e.envVariables,
|
|
@@ -115,7 +115,7 @@ const W = { class: "flex-1 flex gap-1 items-center lg:pr-24 pointer-events-none
|
|
|
115
115
|
!k.value && (o.value === "All" || o.value === "Auth")
|
|
116
116
|
]
|
|
117
117
|
]) : h("", !0),
|
|
118
|
-
t(n(
|
|
118
|
+
t(n(Q, {
|
|
119
119
|
envVariables: e.envVariables,
|
|
120
120
|
environment: e.environment,
|
|
121
121
|
example: e.example,
|
|
@@ -129,7 +129,7 @@ const W = { class: "flex-1 flex gap-1 items-center lg:pr-24 pointer-events-none
|
|
|
129
129
|
(o.value === "All" || o.value === "Variables") && e.example.parameters.path.length
|
|
130
130
|
]
|
|
131
131
|
]),
|
|
132
|
-
t(n(
|
|
132
|
+
t(n(f, {
|
|
133
133
|
envVariables: e.envVariables,
|
|
134
134
|
environment: e.environment,
|
|
135
135
|
example: e.example,
|
|
@@ -142,7 +142,7 @@ const W = { class: "flex-1 flex gap-1 items-center lg:pr-24 pointer-events-none
|
|
|
142
142
|
}, null, 8, ["envVariables", "environment", "example", "operation", "readOnlyEntries", "workspace"]), [
|
|
143
143
|
[i, o.value === "All" || o.value === "Cookies"]
|
|
144
144
|
]),
|
|
145
|
-
t(n(
|
|
145
|
+
t(n(f, {
|
|
146
146
|
envVariables: e.envVariables,
|
|
147
147
|
environment: e.environment,
|
|
148
148
|
example: e.example,
|
|
@@ -153,7 +153,7 @@ const W = { class: "flex-1 flex gap-1 items-center lg:pr-24 pointer-events-none
|
|
|
153
153
|
}, null, 8, ["envVariables", "environment", "example", "operation", "workspace"]), [
|
|
154
154
|
[i, o.value === "All" || o.value === "Headers"]
|
|
155
155
|
]),
|
|
156
|
-
t(n(
|
|
156
|
+
t(n(f, {
|
|
157
157
|
envVariables: e.envVariables,
|
|
158
158
|
environment: e.environment,
|
|
159
159
|
example: e.example,
|
|
@@ -164,7 +164,7 @@ const W = { class: "flex-1 flex gap-1 items-center lg:pr-24 pointer-events-none
|
|
|
164
164
|
}, null, 8, ["envVariables", "environment", "example", "operation", "workspace"]), [
|
|
165
165
|
[i, o.value === "All" || o.value === "Query"]
|
|
166
166
|
]),
|
|
167
|
-
t(n(
|
|
167
|
+
t(n($, {
|
|
168
168
|
envVariables: e.envVariables,
|
|
169
169
|
environment: e.environment,
|
|
170
170
|
example: e.example,
|
|
@@ -174,13 +174,13 @@ const W = { class: "flex-1 flex gap-1 items-center lg:pr-24 pointer-events-none
|
|
|
174
174
|
}, null, 8, ["envVariables", "environment", "example", "operation", "workspace"]), [
|
|
175
175
|
[
|
|
176
176
|
i,
|
|
177
|
-
e.operation.method && (o.value === "All" || o.value === "Body") && l(
|
|
177
|
+
e.operation.method && (o.value === "All" || o.value === "Body") && l(d)(e.operation.method)
|
|
178
178
|
]
|
|
179
179
|
]),
|
|
180
|
-
a[1] || (a[1] = v("div", { class: "flex flex-grow" }, null, -1)),
|
|
181
|
-
n(l(
|
|
180
|
+
a[1] || (a[1] = v("div", { class: "-my-0.25 flex flex-grow" }, null, -1)),
|
|
181
|
+
n(l(H), null, {
|
|
182
182
|
default: u(() => [
|
|
183
|
-
n(
|
|
183
|
+
n(O, {
|
|
184
184
|
collection: e.collection,
|
|
185
185
|
example: e.example,
|
|
186
186
|
operation: e.operation,
|
|
@@ -17,7 +17,7 @@ type __VLS_Props = {
|
|
|
17
17
|
workspace: Workspace;
|
|
18
18
|
};
|
|
19
19
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
20
|
-
updateRow: (idx: number, field: "
|
|
20
|
+
updateRow: (idx: number, field: "value" | "key", value: string) => any;
|
|
21
21
|
toggleRow: (idx: number, enabled: boolean) => any;
|
|
22
22
|
addRow: () => any;
|
|
23
23
|
deleteRow: () => any;
|
|
@@ -26,7 +26,7 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
26
26
|
uploadFile: (idx: number) => any;
|
|
27
27
|
removeFile: (idx: number) => any;
|
|
28
28
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
29
|
-
onUpdateRow?: (idx: number, field: "
|
|
29
|
+
onUpdateRow?: (idx: number, field: "value" | "key", value: string) => any;
|
|
30
30
|
onToggleRow?: (idx: number, enabled: boolean) => any;
|
|
31
31
|
onAddRow?: () => any;
|
|
32
32
|
onDeleteRow?: () => any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestTable.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestTable.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestTable.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestTable.vue"],"names":[],"mappings":"AAmPA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAA;AAC9E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AACrE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAOlD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAW1D,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EAAE,CAAC,uBAAuB,GAAG;QAAE,KAAK,CAAC,EAAE,gBAAgB,CAAA;KAAE,CAAC,EAAE,CAAA;IAClE,8BAA8B;IAC9B,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;;;;;;;;;;;;;;;;;;;;yBAPsB,OAAO;sBACV,OAAO;cACf,OAAO;gBACL,OAAO;;AAyexB,wBASG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./RequestTable.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8f185643"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as _, resolveComponent as $, openBlock as r, createBlock as p, withCtx as t, createElementBlock as b, Fragment as f, renderList as I, normalizeClass as
|
|
2
|
-
import { ScalarTooltip as T, ScalarIcon as x, ScalarButton as
|
|
1
|
+
import { defineComponent as _, resolveComponent as $, openBlock as r, createBlock as p, withCtx as t, createElementBlock as b, Fragment as f, renderList as I, normalizeClass as y, unref as u, createElementVNode as s, createVNode as i, toDisplayString as w, createCommentVNode as V } from "vue";
|
|
2
|
+
import { ScalarTooltip as T, ScalarIcon as x, ScalarButton as q } from "@scalar/components";
|
|
3
3
|
import g from "../../../components/CodeInput/CodeInput.vue.js";
|
|
4
|
-
import
|
|
4
|
+
import z from "../../../components/DataTable/DataTable.vue.js";
|
|
5
5
|
import v from "../../../components/DataTable/DataTableCell.vue.js";
|
|
6
|
-
import
|
|
6
|
+
import D from "../../../components/DataTable/DataTableCheckbox.vue.js";
|
|
7
7
|
import E from "../../../components/DataTable/DataTableRow.vue.js";
|
|
8
|
-
import { parameterIsInvalid as G, hasItemProperties as B } from "../libs/request.js";
|
|
9
|
-
import
|
|
10
|
-
const
|
|
8
|
+
import { parameterIsInvalid as G, hasEmptyRequiredParameter as L, hasItemProperties as B } from "../libs/request.js";
|
|
9
|
+
import N from "./RequestTableTooltip.vue.js";
|
|
10
|
+
const O = { class: "contents" }, j = { class: "sr-only" }, A = { class: "text-c-2 filemask flex max-w-[100%] items-end justify-end overflow-hidden" }, P = ["onClick"], ee = /* @__PURE__ */ _({
|
|
11
11
|
__name: "RequestTable",
|
|
12
12
|
props: {
|
|
13
13
|
items: {},
|
|
@@ -25,22 +25,23 @@ const N = { class: "contents" }, O = { class: "sr-only" }, j = { class: "text-c-
|
|
|
25
25
|
n("updateRow", l, a, c);
|
|
26
26
|
}, F = (l) => {
|
|
27
27
|
n("uploadFile", l);
|
|
28
|
-
},
|
|
28
|
+
}, U = (l) => Array.isArray(l.default) && l.default.length === 1 ? l.default[0] : l.default;
|
|
29
29
|
return (l, a) => {
|
|
30
30
|
const c = $("RouterLink");
|
|
31
|
-
return r(), p(
|
|
31
|
+
return r(), p(z, {
|
|
32
32
|
class: "group/table flex-1",
|
|
33
33
|
columns: C
|
|
34
34
|
}, {
|
|
35
35
|
default: t(() => [
|
|
36
36
|
(r(!0), b(f, null, I(l.items, (e, d) => (r(), p(E, {
|
|
37
37
|
key: d,
|
|
38
|
-
class:
|
|
39
|
-
alert:
|
|
38
|
+
class: y({
|
|
39
|
+
alert: u(G)(e).value,
|
|
40
|
+
error: u(L)(e)
|
|
40
41
|
})
|
|
41
42
|
}, {
|
|
42
43
|
default: t(() => [
|
|
43
|
-
s("label",
|
|
44
|
+
s("label", O, [
|
|
44
45
|
l.isGlobal ? (r(), p(c, {
|
|
45
46
|
key: 0,
|
|
46
47
|
class: "!border-r-1/2 border-t-1/2 text-c-2 flex items-center justify-center",
|
|
@@ -48,12 +49,12 @@ const N = { class: "contents" }, O = { class: "sr-only" }, j = { class: "text-c-
|
|
|
48
49
|
}, {
|
|
49
50
|
default: t(() => [
|
|
50
51
|
a[5] || (a[5] = s("span", { class: "sr-only" }, "Global", -1)),
|
|
51
|
-
u(
|
|
52
|
+
i(u(T), {
|
|
52
53
|
as: "div",
|
|
53
54
|
side: "top"
|
|
54
55
|
}, {
|
|
55
56
|
trigger: t(() => [
|
|
56
|
-
u(
|
|
57
|
+
i(u(x), {
|
|
57
58
|
class: "text-c-1",
|
|
58
59
|
icon: "Globe",
|
|
59
60
|
size: "xs"
|
|
@@ -71,8 +72,8 @@ const N = { class: "contents" }, O = { class: "sr-only" }, j = { class: "text-c-
|
|
|
71
72
|
]),
|
|
72
73
|
_: 2
|
|
73
74
|
}, 1032, ["to"])) : (r(), b(f, { key: 1 }, [
|
|
74
|
-
s("span",
|
|
75
|
-
|
|
75
|
+
s("span", j, " Row " + w(e.enabled ? "Enabled" : "Disabled"), 1),
|
|
76
|
+
i(D, {
|
|
76
77
|
class: "!border-r-1/2",
|
|
77
78
|
disabled: m.hasCheckboxDisabled,
|
|
78
79
|
modelValue: e.enabled,
|
|
@@ -80,9 +81,9 @@ const N = { class: "contents" }, O = { class: "sr-only" }, j = { class: "text-c-
|
|
|
80
81
|
}, null, 8, ["disabled", "modelValue", "onUpdate:modelValue"])
|
|
81
82
|
], 64))
|
|
82
83
|
]),
|
|
83
|
-
|
|
84
|
+
i(v, null, {
|
|
84
85
|
default: t(() => [
|
|
85
|
-
|
|
86
|
+
i(g, {
|
|
86
87
|
disableCloseBrackets: "",
|
|
87
88
|
disabled: m.isReadOnly,
|
|
88
89
|
disableEnter: "",
|
|
@@ -101,11 +102,11 @@ const N = { class: "contents" }, O = { class: "sr-only" }, j = { class: "text-c-
|
|
|
101
102
|
]),
|
|
102
103
|
_: 2
|
|
103
104
|
}, 1024),
|
|
104
|
-
|
|
105
|
+
i(v, null, {
|
|
105
106
|
default: t(() => [
|
|
106
|
-
|
|
107
|
-
class:
|
|
108
|
-
"pr-6":
|
|
107
|
+
i(g, {
|
|
108
|
+
class: y({
|
|
109
|
+
"pr-6": u(B)(e)
|
|
109
110
|
}),
|
|
110
111
|
default: e.default,
|
|
111
112
|
disableCloseBrackets: "",
|
|
@@ -129,9 +130,9 @@ const N = { class: "contents" }, O = { class: "sr-only" }, j = { class: "text-c-
|
|
|
129
130
|
"onUpdate:modelValue": (o) => n("updateRow", d, "value", o)
|
|
130
131
|
}, {
|
|
131
132
|
icon: t(() => [
|
|
132
|
-
|
|
133
|
+
u(B)(e) ? (r(), p(N, {
|
|
133
134
|
key: 0,
|
|
134
|
-
item: { ...e, default:
|
|
135
|
+
item: { ...e, default: U(e) }
|
|
135
136
|
}, null, 8, ["item"])) : V("", !0)
|
|
136
137
|
]),
|
|
137
138
|
_: 2
|
|
@@ -147,24 +148,24 @@ const N = { class: "contents" }, O = { class: "sr-only" }, j = { class: "text-c-
|
|
|
147
148
|
var o;
|
|
148
149
|
return [
|
|
149
150
|
e.file ? (r(), b(f, { key: 0 }, [
|
|
150
|
-
s("div",
|
|
151
|
-
s("span", null,
|
|
151
|
+
s("div", A, [
|
|
152
|
+
s("span", null, w((o = e.file) == null ? void 0 : o.name), 1)
|
|
152
153
|
]),
|
|
153
154
|
s("button", {
|
|
154
155
|
class: "bg-b-2 centered-x centered-y absolute hidden w-[calc(100%_-_8px)] rounded p-0.5 text-center text-xs font-medium group-hover/upload:block",
|
|
155
156
|
type: "button",
|
|
156
|
-
onClick: (
|
|
157
|
-
}, " Delete ", 8,
|
|
158
|
-
], 64)) : (r(), p(
|
|
157
|
+
onClick: (S) => n("removeFile", d)
|
|
158
|
+
}, " Delete ", 8, P)
|
|
159
|
+
], 64)) : (r(), p(u(q), {
|
|
159
160
|
key: 1,
|
|
160
161
|
class: "bg-b-2 hover:bg-b-3 text-c-2 border-0 py-px shadow-none",
|
|
161
162
|
size: "sm",
|
|
162
163
|
variant: "outlined",
|
|
163
|
-
onClick: (
|
|
164
|
+
onClick: (S) => F(d)
|
|
164
165
|
}, {
|
|
165
166
|
default: t(() => [
|
|
166
|
-
a[6] || (a[6] = s("span", null, "File", -1)),
|
|
167
|
-
u(
|
|
167
|
+
a[6] || (a[6] = s("span", null, "Upload File", -1)),
|
|
168
|
+
i(u(x), {
|
|
168
169
|
class: "ml-1",
|
|
169
170
|
icon: "UploadSimple",
|
|
170
171
|
size: "xs",
|
|
@@ -187,5 +188,5 @@ const N = { class: "contents" }, O = { class: "sr-only" }, j = { class: "text-c-
|
|
|
187
188
|
}
|
|
188
189
|
});
|
|
189
190
|
export {
|
|
190
|
-
|
|
191
|
+
ee as default
|
|
191
192
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestTableTooltip.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestTableTooltip.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestTableTooltip.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestTableTooltip.vue"],"names":[],"mappings":"AAuEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAA;AAM9E,KAAK,WAAW,GAAG;IAAE,IAAI,EAAE,uBAAuB,CAAA;CAAE,CAAC;;AAuJrD,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./RequestTableTooltip.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-ac049e60"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
r as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as l, openBlock as t, createBlock as p, unref as r, withCtx as a, createElementVNode as m, createVNode as
|
|
1
|
+
import { defineComponent as l, openBlock as t, createBlock as p, unref as r, withCtx as a, createElementVNode as m, createVNode as u, normalizeClass as d, createElementBlock as o, toDisplayString as s, createCommentVNode as i } from "vue";
|
|
2
2
|
import { ScalarTooltip as c, ScalarIcon as f } from "@scalar/components";
|
|
3
3
|
import { parameterIsInvalid as n } from "../libs/request.js";
|
|
4
|
-
const g = { class: "bg-b-1 mr-0.25 pl-1 pr-1.5 group-[.alert]:bg-transparent" }, b = { class: "w-content bg-b-1 text-xxs text-c-1 pointer-events-none grid min-w-48 gap-1.5 rounded p-2 leading-5 shadow-lg" }, h = {
|
|
4
|
+
const g = { class: "bg-b-1 mr-0.25 pl-1 pr-1.5 group-[.alert]:bg-transparent group-[.error]:bg-transparent" }, b = { class: "w-content bg-b-1 text-xxs text-c-1 pointer-events-none grid min-w-48 gap-1.5 rounded p-2 leading-5 shadow-lg" }, h = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "text-error-1"
|
|
7
7
|
}, y = {
|
|
@@ -22,12 +22,12 @@ const g = { class: "bg-b-1 mr-0.25 pl-1 pr-1.5 group-[.alert]:bg-transparent" },
|
|
|
22
22
|
class: "w-full pr-px",
|
|
23
23
|
delay: 0,
|
|
24
24
|
side: "left",
|
|
25
|
-
triggerClass: "before:absolute before:content-[''] before:bg-gradient-to-r before:from-transparent before:to-b-1 group-[.alert]:before:to-b-alert before:min-h-[calc(100%-4px)] before:pointer-events-none before:right-[23px] before:top-0.5 before:w-3 absolute h-full right-0 -outline-offset-1"
|
|
25
|
+
triggerClass: "before:absolute before:content-[''] before:bg-gradient-to-r before:from-transparent before:to-b-1 group-[.alert]:before:to-b-alert group-[.error]:before:to-b-danger before:min-h-[calc(100%-4px)] before:pointer-events-none before:right-[23px] before:top-0.5 before:w-3 absolute h-full right-0 -outline-offset-1"
|
|
26
26
|
}, {
|
|
27
27
|
trigger: a(() => [
|
|
28
28
|
m("div", g, [
|
|
29
|
-
|
|
30
|
-
class:
|
|
29
|
+
u(r(f), {
|
|
30
|
+
class: d(
|
|
31
31
|
r(n)(e.item).value ? "text-orange brightness-[.9]" : "text-c-3 group-hover/info:text-c-1"
|
|
32
32
|
),
|
|
33
33
|
icon: r(n)(e.item).value ? "Alert" : "Info",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter-security-requirements.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/helpers/filter-security-requirements.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"filter-security-requirements.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/helpers/filter-security-requirements.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAGjF;;GAEG;AACH,eAAO,MAAM,0BAA0B,yBACf,UAAU,CAAC,UAAU,CAAC,+BAChB,UAAU,CAAC,4BAA4B,CAAC,oBACnD,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,KAC9C,cAAc,EAsBhB,CAAA"}
|
|
@@ -1,18 +1,14 @@
|
|
|
1
1
|
import { isDefined as f } from "@scalar/oas-utils/helpers";
|
|
2
2
|
const c = (s, m = [], n = {}) => {
|
|
3
3
|
const a = new Set(
|
|
4
|
-
s.map(
|
|
5
|
-
(e) => Object.keys(e).sort().join(",")
|
|
6
|
-
)
|
|
4
|
+
s.map((e) => Object.keys(e).sort().join(","))
|
|
7
5
|
);
|
|
8
6
|
return m.reduce((e, r) => {
|
|
9
7
|
const o = Array.isArray(r) ? r : [r], p = o.map((t) => {
|
|
10
8
|
var i;
|
|
11
9
|
return (i = n[t]) == null ? void 0 : i.nameKey;
|
|
12
10
|
}).sort().join(",");
|
|
13
|
-
return a.has(p) && e.push(
|
|
14
|
-
...o.map((t) => n[t]).filter(f)
|
|
15
|
-
), e;
|
|
11
|
+
return a.has(p) && e.push(...o.map((t) => n[t]).filter(f)), e;
|
|
16
12
|
}, []);
|
|
17
13
|
};
|
|
18
14
|
export {
|
|
@@ -1,22 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
isSidebarOpen: boolean;
|
|
3
|
-
};
|
|
4
|
-
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
5
|
-
"update:modelValue": (v: boolean) => any;
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
6
2
|
clearDrafts: () => any;
|
|
7
3
|
newTab: (args_0: {
|
|
8
4
|
name: string;
|
|
9
5
|
uid: string;
|
|
10
6
|
}) => any;
|
|
11
|
-
|
|
12
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
13
|
-
"onUpdate:modelValue"?: (v: boolean) => any;
|
|
7
|
+
}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
14
8
|
onClearDrafts?: () => any;
|
|
15
9
|
onNewTab?: (args_0: {
|
|
16
10
|
name: string;
|
|
17
11
|
uid: string;
|
|
18
12
|
}) => any;
|
|
19
|
-
|
|
20
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
21
14
|
export default _default;
|
|
22
15
|
//# sourceMappingURL=RequestSidebar.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestSidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebar.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestSidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebar.vue"],"names":[],"mappings":";;;cAqhBuC,MAAM;aAAO,MAAM;;;;;cAAnB,MAAM;aAAO,MAAM;;;AAmwB1D,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./RequestSidebar.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-72fc3d40"]]);
|
|
5
5
|
export {
|
|
6
6
|
f as default
|
|
7
7
|
};
|