@scalar/api-client 2.18.0 → 2.18.3
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 +85 -0
- package/dist/components/AddressBar/AddressBar.vue2.js +52 -52
- package/dist/components/AddressBar/AddressBarHistory.vue2.js +15 -15
- package/dist/components/AddressBar/httpStatusCodeColors.d.ts +0 -33
- package/dist/components/AddressBar/httpStatusCodeColors.d.ts.map +1 -1
- package/dist/components/AddressBar/httpStatusCodeColors.js +0 -1
- package/dist/components/CodeInput/CodeInput.vue2.js +112 -112
- package/dist/components/CommandPalette/CommandActionForm.vue.js +18 -18
- package/dist/components/CommandPalette/CommandPaletteImportCurl.vue2.js +25 -25
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +2 -2
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.js +2 -4
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +0 -1
- package/dist/components/CommandPalette/WatchModeToggle.vue.js +14 -14
- package/dist/components/DataTable/DataTable.vue.js +17 -17
- package/dist/components/DataTable/DataTableCell.vue.js +9 -9
- package/dist/components/DataTable/DataTableCheckbox.vue.js +17 -17
- package/dist/components/DataTable/DataTableInput.vue2.js +48 -48
- package/dist/components/DataTable/DataTableInputSelect.vue.js +35 -35
- package/dist/components/DataTable/DataTableText.vue.js +10 -10
- package/dist/components/Form/Form.vue.js +32 -32
- package/dist/components/Form/LabelInput.vue2.js +15 -15
- package/dist/components/HelpfulLink.vue.js +7 -7
- package/dist/components/HttpMethod/HttpMethod.vue2.js +22 -22
- package/dist/components/IconSelector.vue.js +16 -16
- package/dist/components/ImportCollection/ImportCollectionModal.vue.js +50 -50
- package/dist/components/ImportCollection/ImportNowButton.vue.js +23 -23
- package/dist/components/ImportCollection/PrefetchError.vue.js +8 -8
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts +0 -7
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts.map +1 -1
- package/dist/components/ScalarAsciiArt.vue2.js +16 -16
- package/dist/components/SectionFilter.vue2.js +21 -21
- package/dist/components/SectionFilterButton.vue.js +7 -7
- package/dist/components/Server/ServerDropdown.vue.js +32 -32
- package/dist/components/Server/ServerDropdownItem.vue2.js +39 -39
- package/dist/components/Server/ServerSelector.vue.js +27 -27
- package/dist/components/Server/ServerVariablesForm.vue.js +26 -26
- package/dist/components/Server/ServerVariablesSelect.vue.js +21 -21
- package/dist/components/Server/ServerVariablesTextbox.vue.js +10 -10
- package/dist/components/Server/types.d.ts +2 -1
- package/dist/components/Server/types.d.ts.map +1 -1
- package/dist/components/SideNav/SideNavLink.vue.js +18 -18
- package/dist/components/SideNav/SideNavRouterLink.vue.js +13 -13
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.js +11 -11
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +16 -16
- package/dist/components/Sidebar/Sidebar.vue2.js +28 -28
- package/dist/components/Sidebar/SidebarButton.vue.js +12 -12
- package/dist/components/Sidebar/SidebarListElement.vue2.js +34 -34
- package/dist/components/Sidebar/SidebarListElementActions.vue.js +33 -33
- package/dist/components/TopNav/TopNavItem.vue2.js +41 -41
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +43 -43
- package/dist/data/httpHeaders.d.ts +2 -1
- package/dist/data/httpHeaders.d.ts.map +1 -1
- package/dist/hooks/useClientConfig.js +1 -1
- package/dist/hooks/useLayout.js +1 -1
- package/dist/hooks/useSidebar.js +1 -1
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/plugins/hooks/usePluginManager.d.ts +1 -1
- package/dist/plugins/hooks/usePluginManager.d.ts.map +1 -1
- package/dist/plugins/hooks/usePluginManager.js +5 -5
- package/dist/plugins/index.d.ts +1 -1
- package/dist/plugins/index.d.ts.map +1 -1
- package/dist/plugins/index.js +5 -5
- package/dist/plugins/plugin-manager.d.ts +0 -2
- package/dist/plugins/plugin-manager.d.ts.map +1 -1
- package/dist/routes.d.ts +0 -10
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +0 -1
- package/dist/store/active-entities.js +1 -1
- package/dist/store/security-schemes.d.ts.map +1 -1
- package/dist/store/store.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.js +44 -44
- package/dist/v2/blocks/operation-block/components/Header.vue2.js +20 -20
- package/dist/v2/blocks/operation-block/helpers/build-request-body.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/helpers/build-request-body.js +14 -14
- package/dist/v2/blocks/operation-block/helpers/get-delimiter.js +0 -2
- package/dist/v2/blocks/operation-code-sample/components/HttpMethod.vue.js +12 -12
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue2.js +65 -65
- package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts +2 -1
- package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.js +6 -6
- package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.d.ts +4 -3
- package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.js +9 -7
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.js +40 -32
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.d.ts +1 -3
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.js +0 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue.js +2 -2
- package/dist/v2/blocks/request-block/RequestBlock.vue2.js +144 -149
- package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts +25 -45
- package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestBody.vue.js +2 -2
- package/dist/v2/blocks/request-block/components/RequestBody.vue2.js +90 -139
- package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.d.ts +22 -0
- package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.js +77 -0
- package/dist/v2/blocks/request-block/components/RequestBodyForm.vue2.js +4 -0
- package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts +4 -4
- package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestParams.vue.js +34 -34
- package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts +6 -6
- package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTable.vue.js +3 -3
- package/dist/v2/blocks/request-block/components/RequestTable.vue2.js +30 -32
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts +2 -2
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.js +64 -64
- package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue2.js +29 -29
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts +2 -2
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.js +12 -13
- package/dist/v2/blocks/request-block/helpers/get-form-body-rows.d.ts +8 -0
- package/dist/v2/blocks/request-block/helpers/get-form-body-rows.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/helpers/get-form-body-rows.js +9 -0
- package/dist/v2/blocks/request-block/helpers/get-request-body-example.d.ts +3 -1
- package/dist/v2/blocks/request-block/helpers/get-request-body-example.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/helpers/get-request-body-example.js +9 -8
- package/dist/v2/blocks/response-block/ResponseBlock.vue2.js +67 -67
- package/dist/v2/blocks/response-block/components/Headers.vue.js +35 -35
- package/dist/v2/blocks/response-block/components/ResponseBody.vue2.js +24 -24
- package/dist/v2/blocks/response-block/components/ResponseBodyDownload.vue.js +10 -10
- package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue2.js +24 -24
- package/dist/v2/blocks/response-block/components/ResponseBodyToggle.vue.js +10 -10
- package/dist/v2/blocks/response-block/components/ResponseCookies.vue.js +11 -11
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue2.js +14 -14
- package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue2.js +11 -11
- package/dist/v2/blocks/response-block/components/ResponseMetaInformation.vue.js +33 -33
- package/dist/v2/blocks/response-block/helpers/media-types.d.ts +3 -6
- package/dist/v2/blocks/response-block/helpers/media-types.d.ts.map +1 -1
- package/dist/v2/blocks/response-block/helpers/media-types.js +0 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +72 -72
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue2.js +9 -9
- package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.d.ts +0 -33
- package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.js +0 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +83 -82
- package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.js +10 -10
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +121 -121
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue2.js +13 -13
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js +33 -33
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js +26 -26
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.js +26 -26
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +2 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +130 -122
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts +0 -21
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js +1 -3
- package/dist/v2/components/code-input/CodeInput.vue2.js +93 -93
- package/dist/v2/components/data-table/DataTable.vue.js +17 -17
- package/dist/v2/components/data-table/DataTableCell.vue.js +9 -9
- package/dist/v2/components/data-table/DataTableCheckbox.vue.js +17 -17
- package/dist/v2/components/data-table/DataTableInput.vue2.js +48 -48
- package/dist/v2/components/data-table/DataTableInputSelect.vue.js +35 -35
- package/dist/v2/components/data-table/DataTableText.vue.js +10 -10
- package/dist/v2/components/forms/ConfirmationForm.vue.js +13 -13
- package/dist/v2/components/layout/CollapsibleSection.vue.js +42 -42
- package/dist/v2/components/modals/DeleteModal.vue.js +13 -13
- package/dist/v2/components/resize/Resize.vue2.js +11 -11
- package/dist/v2/components/server/ServerDropdown.vue.js +30 -30
- package/dist/v2/components/server/ServerDropdownItem.vue2.js +27 -27
- package/dist/v2/components/sidebar/Sidebar.vue.js +32 -32
- package/dist/v2/components/sidebar/SidebarMenu.vue.js +20 -20
- package/dist/v2/features/app/App.vue.js +25 -25
- package/dist/v2/features/app/app-events.d.ts.map +1 -1
- package/dist/v2/features/app/app-events.js +55 -61
- package/dist/v2/features/app/components/AppSidebar.vue2.js +97 -97
- package/dist/v2/features/app/components/CreateWorkspaceModal.vue.js +20 -20
- package/dist/v2/features/app/components/DesktopTab.vue2.js +59 -59
- package/dist/v2/features/app/components/DesktopTabs.vue.js +22 -22
- package/dist/v2/features/app/components/SidebarItemMenu.vue.js +6 -6
- package/dist/v2/features/app/components/WebTopNav.vue.js +9 -9
- package/dist/v2/features/app/helpers/create-api-client-app.d.ts +2 -5
- package/dist/v2/features/app/helpers/create-api-client-app.d.ts.map +1 -1
- package/dist/v2/features/app/helpers/create-api-client-app.js +1 -2
- package/dist/v2/features/app/helpers/routes.d.ts +5 -1
- package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
- package/dist/v2/features/collection/DocumentCollection.vue.js +31 -31
- package/dist/v2/features/collection/WorkspaceCollection.vue.js +17 -17
- package/dist/v2/features/collection/components/Authentication.vue2.js +18 -18
- package/dist/v2/features/collection/components/Cookies.vue.js +10 -10
- package/dist/v2/features/collection/components/Environment.vue.js +10 -10
- package/dist/v2/features/collection/components/Form.vue.js +21 -21
- package/dist/v2/features/collection/components/Overview.vue2.js +25 -25
- package/dist/v2/features/collection/components/Servers.vue.js +37 -37
- package/dist/v2/features/collection/components/Settings.vue.js +22 -22
- package/dist/v2/features/collection/components/Tabs.vue.js +18 -18
- package/dist/v2/features/command-palette/components/CommandActionForm.vue.js +20 -20
- package/dist/v2/features/command-palette/components/CommandActionInput.vue.js +17 -17
- package/dist/v2/features/command-palette/components/TheCommandPalette.vue2.js +68 -68
- package/dist/v2/features/command-palette/components/WatchModeToggle.vue.js +11 -11
- package/dist/v2/features/command-palette/helpers/get-openapi-document-details.d.ts +2 -1
- package/dist/v2/features/command-palette/helpers/get-openapi-document-details.d.ts.map +1 -1
- package/dist/v2/features/command-palette/helpers/get-postman-document-details.d.ts +2 -1
- package/dist/v2/features/command-palette/helpers/get-postman-document-details.d.ts.map +1 -1
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts +3 -3
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts.map +1 -1
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.js +0 -1
- package/dist/v2/features/command-palette/types.d.ts +11 -10
- package/dist/v2/features/command-palette/types.d.ts.map +1 -1
- package/dist/v2/features/environments/EnvironmentsList.vue.js +36 -36
- package/dist/v2/features/environments/components/Environment.vue.js +16 -16
- package/dist/v2/features/environments/components/EnvironmentColors.vue.js +37 -37
- package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.js +19 -19
- package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.js +14 -14
- package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.js +24 -24
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue2.js +58 -58
- package/dist/v2/features/global-cookies/components/CookiesTable.vue2.js +23 -23
- package/dist/v2/features/modal/Modal.vue.d.ts +1 -1
- package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
- package/dist/v2/features/modal/Modal.vue.js +1 -1
- package/dist/v2/features/modal/Modal.vue2.js +57 -56
- package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts +5 -4
- package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts.map +1 -1
- package/dist/v2/features/modal/hooks/use-workspace-client-modal-events.d.ts.map +1 -1
- package/dist/v2/features/modal/hooks/use-workspace-client-modal-events.js +17 -21
- package/dist/v2/features/operation/Operation.vue.d.ts +5 -1
- package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
- package/dist/v2/features/operation/Operation.vue.js +41 -39
- package/dist/v2/features/search/components/SearchButton.vue.js +40 -40
- package/dist/v2/features/search/components/SearchModal.vue2.js +43 -43
- package/dist/v2/features/search/components/SearchResult.vue.js +34 -34
- package/dist/v2/features/search/types.d.ts +5 -4
- package/dist/v2/features/search/types.d.ts.map +1 -1
- package/dist/v2/features/settings/CollectionSettings.vue.js +51 -51
- package/dist/v2/features/settings/DocumentSettings.vue.js +25 -25
- package/dist/v2/features/settings/components/Appearance.vue.js +27 -27
- package/dist/v2/helpers/handle-hotkeys.d.ts +1 -12
- package/dist/v2/helpers/handle-hotkeys.d.ts.map +1 -1
- package/dist/v2/helpers/handle-hotkeys.js +0 -2
- package/dist/v2/helpers/plugins.d.ts +2 -2
- package/dist/v2/helpers/plugins.d.ts.map +1 -1
- package/dist/views/Collection/CollectionNavigation.vue.js +13 -13
- package/dist/views/Collection/components/EnvironmentForm.vue2.js +114 -114
- package/dist/views/Collection/components/MarkdownInput.vue2.js +31 -31
- package/dist/views/Cookies/CookieModal.vue2.js +26 -26
- package/dist/views/Environment/EnvironmentColorModal.vue.js +10 -10
- package/dist/views/Environment/EnvironmentColors.vue.js +56 -56
- package/dist/views/Environment/EnvironmentModal.vue.js +26 -26
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +24 -24
- package/dist/views/Request/Request.vue2.js +55 -55
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +17 -17
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +102 -102
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +27 -27
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +91 -91
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +36 -36
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +101 -101
- package/dist/views/Request/RequestSection/RequestBody.vue2.js +154 -154
- package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +35 -35
- package/dist/views/Request/RequestSection/RequestParams.vue.js +81 -81
- package/dist/views/Request/RequestSection/RequestPathParams.vue.js +47 -47
- package/dist/views/Request/RequestSection/RequestSection.vue2.js +90 -90
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +111 -111
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue2.js +29 -29
- package/dist/views/Request/RequestSection/index.d.ts +1 -1
- package/dist/views/Request/RequestSection/index.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/index.js +4 -4
- package/dist/views/Request/RequestSidebarItem.vue2.js +149 -149
- package/dist/views/Request/RequestSidebarItemMenu.vue2.js +79 -79
- package/dist/views/Request/RequestSubpageHeader.vue2.js +30 -30
- package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +29 -29
- package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +37 -37
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +10 -10
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +24 -24
- package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.js +10 -10
- package/dist/views/Request/ResponseSection/ResponseCookies.vue.js +16 -16
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +21 -21
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +30 -30
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js +37 -37
- package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +61 -61
- package/package.json +24 -24
- package/dist/components/ImportCollection/OpenAppButton.vue.d.ts +0 -6
- package/dist/components/ImportCollection/OpenAppButton.vue.d.ts.map +0 -1
- package/dist/components/ImportCollection/OperationBadge.vue.d.ts +0 -8
- package/dist/components/ImportCollection/OperationBadge.vue.d.ts.map +0 -1
- package/dist/components/ScreenReader.vue.d.ts +0 -20
- package/dist/components/ScreenReader.vue.d.ts.map +0 -1
- package/dist/components/SideNav/WorkspaceProfileIcon.vue.d.ts +0 -9
- package/dist/components/SideNav/WorkspaceProfileIcon.vue.d.ts.map +0 -1
- package/dist/views/Components/RequestBodies/RequestBodies.vue.d.ts +0 -3
- package/dist/views/Components/RequestBodies/RequestBodies.vue.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/types/post-response.d.ts +0 -7
- package/dist/views/Request/RequestSection/types/post-response.d.ts.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as T, computed as p, ref as
|
|
2
|
-
import { ScalarComboboxMultiselect as F, ScalarButton as
|
|
1
|
+
import { defineComponent as T, computed as p, ref as V, watch as C, nextTick as E, createElementBlock as m, openBlock as o, createBlock as f, withDirectives as K, unref as a, withCtx as n, createVNode as s, createElementVNode as i, toDisplayString as x, withKeys as M, vModelText as R, createCommentVNode as _, Fragment as B, renderList as U, normalizeClass as $ } from "vue";
|
|
2
|
+
import { ScalarComboboxMultiselect as F, ScalarButton as D, ScalarIcon as v, ScalarDropdown as L, ScalarDropdownItem as j, ScalarDropdownDivider as W } from "@scalar/components";
|
|
3
3
|
const q = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-full pr-10 -outline-offset-1 has-[:focus-visible]:rounded-[4px] has-[:focus-visible]:outline" }, G = { class: "text-c-1 whitespace-nowrap" }, H = { class: "text-c-1 overflow-hidden text-ellipsis" }, J = { class: "overflow-hidden text-ellipsis" }, P = { class: "flex h-4 w-4 items-center justify-center" }, Z = /* @__PURE__ */ T({
|
|
4
4
|
__name: "DataTableInputSelect",
|
|
5
5
|
props: {
|
|
@@ -10,50 +10,50 @@ const q = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-f
|
|
|
10
10
|
type: {}
|
|
11
11
|
},
|
|
12
12
|
emits: ["update:modelValue"],
|
|
13
|
-
setup(
|
|
14
|
-
const u =
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
setup(h, { emit: z }) {
|
|
14
|
+
const u = h, d = z, y = p(() => u.value ?? []), c = V(!1), r = V(""), g = V(null);
|
|
15
|
+
C(r, (e) => {
|
|
16
|
+
d("update:modelValue", e);
|
|
17
17
|
});
|
|
18
|
-
const
|
|
19
|
-
|
|
18
|
+
const S = (e) => {
|
|
19
|
+
d("update:modelValue", e), c.value = !1;
|
|
20
20
|
}, A = () => {
|
|
21
|
-
r.value.trim() &&
|
|
21
|
+
r.value.trim() && S(r.value);
|
|
22
22
|
}, N = () => {
|
|
23
|
-
r.value.trim() ||
|
|
23
|
+
r.value.trim() || d("update:modelValue", ""), c.value = !1;
|
|
24
24
|
}, O = (e) => u.modelValue.toString() === e;
|
|
25
|
-
|
|
25
|
+
C(c, (e) => {
|
|
26
26
|
e && E(() => {
|
|
27
|
-
|
|
27
|
+
g.value?.focus();
|
|
28
28
|
});
|
|
29
29
|
});
|
|
30
|
-
const
|
|
31
|
-
() =>
|
|
30
|
+
const k = p(() => u.modelValue !== void 0 ? u.modelValue : u.default), b = p(
|
|
31
|
+
() => y.value.map((e) => {
|
|
32
32
|
const t = e.toString();
|
|
33
33
|
return { id: t, label: t, value: t };
|
|
34
34
|
})
|
|
35
|
-
),
|
|
35
|
+
), w = p(() => {
|
|
36
36
|
const e = new Set(u.modelValue.toString().split(","));
|
|
37
|
-
return
|
|
37
|
+
return b.value.filter((t) => e.has(t.id));
|
|
38
38
|
}), I = (e) => {
|
|
39
39
|
const t = e.map((l) => l.value);
|
|
40
|
-
|
|
40
|
+
d("update:modelValue", t.join(","));
|
|
41
41
|
};
|
|
42
42
|
return (e, t) => (o(), m("div", q, [
|
|
43
|
-
|
|
43
|
+
h.type === "array" ? (o(), f(a(F), {
|
|
44
44
|
key: 0,
|
|
45
|
-
modelValue:
|
|
46
|
-
options:
|
|
45
|
+
modelValue: w.value,
|
|
46
|
+
options: b.value,
|
|
47
47
|
"onUpdate:modelValue": I
|
|
48
48
|
}, {
|
|
49
49
|
default: n(() => [
|
|
50
|
-
s(a(
|
|
50
|
+
s(a(D), {
|
|
51
51
|
class: "custom-scroll h-full justify-start gap-1.5 px-2 py-1.5 pr-6 font-normal outline-none",
|
|
52
52
|
fullWidth: "",
|
|
53
53
|
variant: "ghost"
|
|
54
54
|
}, {
|
|
55
55
|
default: n(() => [
|
|
56
|
-
i("span", G,
|
|
56
|
+
i("span", G, x(w.value.length > 0 ? w.value.map((l) => l.label).join(", ") : "Select a value"), 1),
|
|
57
57
|
s(a(v), {
|
|
58
58
|
class: "min-w-4",
|
|
59
59
|
icon: "ChevronDown",
|
|
@@ -64,10 +64,10 @@ const q = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-f
|
|
|
64
64
|
})
|
|
65
65
|
]),
|
|
66
66
|
_: 1
|
|
67
|
-
}, 8, ["modelValue", "options"])) :
|
|
67
|
+
}, 8, ["modelValue", "options"])) : c.value ? K((o(), m("input", {
|
|
68
68
|
key: 1,
|
|
69
69
|
ref_key: "inputRef",
|
|
70
|
-
ref:
|
|
70
|
+
ref: g,
|
|
71
71
|
"onUpdate:modelValue": t[0] || (t[0] = (l) => r.value = l),
|
|
72
72
|
class: "text-c-1 w-full min-w-0 border-none px-2 py-1.5 outline-none",
|
|
73
73
|
placeholder: "Value",
|
|
@@ -79,14 +79,14 @@ const q = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-f
|
|
|
79
79
|
]) : (o(), f(a(L), {
|
|
80
80
|
key: 2,
|
|
81
81
|
resize: "",
|
|
82
|
-
value:
|
|
82
|
+
value: k.value
|
|
83
83
|
}, {
|
|
84
84
|
items: n(() => [
|
|
85
|
-
(o(!0), m(
|
|
85
|
+
(o(!0), m(B, null, U(y.value, (l) => (o(), f(a(j), {
|
|
86
86
|
key: l,
|
|
87
87
|
class: "group/item flex items-center gap-1.5 overflow-hidden text-ellipsis whitespace-nowrap",
|
|
88
88
|
value: l,
|
|
89
|
-
onClick: (Q) =>
|
|
89
|
+
onClick: (Q) => S(l)
|
|
90
90
|
}, {
|
|
91
91
|
default: n(() => [
|
|
92
92
|
i("div", {
|
|
@@ -101,15 +101,15 @@ const q = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-f
|
|
|
101
101
|
thickness: "3"
|
|
102
102
|
})
|
|
103
103
|
], 2),
|
|
104
|
-
i("span", J,
|
|
104
|
+
i("span", J, x(l), 1)
|
|
105
105
|
]),
|
|
106
106
|
_: 2
|
|
107
107
|
}, 1032, ["value", "onClick"]))), 128)),
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
s(a(
|
|
108
|
+
h.canAddCustomValue ? (o(), m(B, { key: 0 }, [
|
|
109
|
+
y.value.length ? (o(), f(a(W), { key: 0 })) : _("", !0),
|
|
110
|
+
s(a(j), {
|
|
111
111
|
class: "flex items-center gap-1.5",
|
|
112
|
-
onClick: t[1] || (t[1] = (l) =>
|
|
112
|
+
onClick: t[1] || (t[1] = (l) => c.value = !0)
|
|
113
113
|
}, {
|
|
114
114
|
default: n(() => [
|
|
115
115
|
i("div", P, [
|
|
@@ -122,15 +122,15 @@ const q = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-f
|
|
|
122
122
|
]),
|
|
123
123
|
_: 1
|
|
124
124
|
})
|
|
125
|
-
], 64)) :
|
|
125
|
+
], 64)) : _("", !0)
|
|
126
126
|
]),
|
|
127
127
|
default: n(() => [
|
|
128
|
-
s(a(
|
|
128
|
+
s(a(D), {
|
|
129
129
|
class: "size-full justify-start gap-1.5 overflow-auto px-2 py-1.5 font-normal whitespace-nowrap outline-none",
|
|
130
130
|
variant: "ghost"
|
|
131
131
|
}, {
|
|
132
132
|
default: n(() => [
|
|
133
|
-
i("span", H,
|
|
133
|
+
i("span", H, x(k.value ?? "Select a value"), 1),
|
|
134
134
|
s(a(v), {
|
|
135
135
|
icon: "ChevronDown",
|
|
136
136
|
size: "md"
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as a, createBlock as o, openBlock as r, withCtx as s, createElementVNode as n, renderSlot as l, createTextVNode as c, toDisplayString as p } from "vue";
|
|
2
|
+
import i from "./DataTableCell.vue.js";
|
|
3
|
+
const f = { class: "flex-1 px-2 py-1.5 whitespace-nowrap" }, d = /* @__PURE__ */ a({
|
|
4
4
|
__name: "DataTableText",
|
|
5
5
|
props: {
|
|
6
6
|
text: {}
|
|
7
7
|
},
|
|
8
|
-
setup(
|
|
9
|
-
return (
|
|
10
|
-
default:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
p(
|
|
8
|
+
setup(e) {
|
|
9
|
+
return (t, _) => (r(), o(i, { class: "relative flex" }, {
|
|
10
|
+
default: s(() => [
|
|
11
|
+
n("span", f, [
|
|
12
|
+
l(t.$slots, "default", {}, () => [
|
|
13
|
+
c(p(e.text), 1)
|
|
14
14
|
])
|
|
15
15
|
])
|
|
16
16
|
]),
|
|
@@ -19,5 +19,5 @@ const i = { class: "flex-1 px-2 py-1.5 whitespace-nowrap" }, x = /* @__PURE__ */
|
|
|
19
19
|
}
|
|
20
20
|
});
|
|
21
21
|
export {
|
|
22
|
-
|
|
22
|
+
d as default
|
|
23
23
|
};
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as u, createElementBlock as d, openBlock as p, withModifiers as c, renderSlot as v, createElementVNode as b, createVNode as a, unref as i, withCtx as o, createTextVNode as l, toDisplayString as x } from "vue";
|
|
2
2
|
import { ScalarButton as r } from "@scalar/components";
|
|
3
|
-
const
|
|
3
|
+
const C = { class: "flex justify-between gap-10" }, g = /* @__PURE__ */ u({
|
|
4
4
|
__name: "ConfirmationForm",
|
|
5
5
|
props: {
|
|
6
6
|
label: { default: "Save" },
|
|
7
7
|
variant: { default: "solid" }
|
|
8
8
|
},
|
|
9
9
|
emits: ["cancel", "submit"],
|
|
10
|
-
setup(
|
|
10
|
+
setup(t, { emit: s }) {
|
|
11
11
|
const n = s;
|
|
12
|
-
return (
|
|
12
|
+
return (m, e) => (p(), d("form", {
|
|
13
13
|
class: "flex flex-col gap-4 text-base",
|
|
14
|
-
onSubmit: e[1] || (e[1] =
|
|
14
|
+
onSubmit: e[1] || (e[1] = c((f) => n("submit"), ["prevent"]))
|
|
15
15
|
}, [
|
|
16
|
-
v(
|
|
17
|
-
b("div",
|
|
18
|
-
|
|
16
|
+
v(m.$slots, "default"),
|
|
17
|
+
b("div", C, [
|
|
18
|
+
a(i(r), {
|
|
19
19
|
size: "sm",
|
|
20
20
|
type: "button",
|
|
21
21
|
variant: "outlined",
|
|
22
|
-
onClick: e[0] || (e[0] = (
|
|
22
|
+
onClick: e[0] || (e[0] = (f) => n("cancel"))
|
|
23
23
|
}, {
|
|
24
|
-
default:
|
|
24
|
+
default: o(() => [...e[2] || (e[2] = [
|
|
25
25
|
l(" Cancel ", -1)
|
|
26
26
|
])]),
|
|
27
27
|
_: 1
|
|
28
28
|
}),
|
|
29
|
-
|
|
29
|
+
a(i(r), {
|
|
30
30
|
size: "sm",
|
|
31
31
|
type: "submit",
|
|
32
32
|
variant: t.variant
|
|
33
33
|
}, {
|
|
34
|
-
default:
|
|
35
|
-
l(
|
|
34
|
+
default: o(() => [
|
|
35
|
+
l(x(t.label), 1)
|
|
36
36
|
]),
|
|
37
37
|
_: 1
|
|
38
38
|
}, 8, ["variant"])
|
|
@@ -1,84 +1,84 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Disclosure as
|
|
3
|
-
import { ScalarIcon as
|
|
4
|
-
import
|
|
5
|
-
const
|
|
1
|
+
import { defineComponent as y, useId as C, createBlock as p, openBlock as l, unref as s, normalizeClass as n, withCtx as c, createVNode as d, createElementVNode as a, createElementBlock as r, createCommentVNode as i, renderSlot as u, createTextVNode as S, toDisplayString as b, mergeProps as v } from "vue";
|
|
2
|
+
import { Disclosure as k, DisclosureButton as B, DisclosurePanel as V } from "@headlessui/vue";
|
|
3
|
+
import { ScalarIcon as $ } from "@scalar/components";
|
|
4
|
+
import w from "./ValueEmitter.vue.js";
|
|
5
|
+
const D = ["aria-labelledby"], I = { class: "text-c-1 m-0 flex flex-1 items-center gap-1.5 leading-[20px]" }, N = ["id"], O = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "sr-only"
|
|
8
|
-
},
|
|
8
|
+
}, z = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "bg-b-2 text-c-2 inline-flex h-5 w-5 items-center justify-center rounded-full border text-xs font-semibold"
|
|
11
|
-
},
|
|
11
|
+
}, E = { class: "sr-only" }, P = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "ui-not-open:hidden flex items-center gap-2 pr-0.75"
|
|
14
|
-
},
|
|
14
|
+
}, _ = {
|
|
15
15
|
name: "CollapsibleSection"
|
|
16
|
-
}, A = /* @__PURE__ */
|
|
17
|
-
...
|
|
16
|
+
}, A = /* @__PURE__ */ y({
|
|
17
|
+
..._,
|
|
18
18
|
props: {
|
|
19
19
|
defaultOpen: { type: Boolean, default: !0 },
|
|
20
20
|
itemCount: { default: 0 },
|
|
21
21
|
isStatic: { type: Boolean }
|
|
22
22
|
},
|
|
23
23
|
emits: ["update:modelValue"],
|
|
24
|
-
setup(
|
|
25
|
-
const h =
|
|
26
|
-
return (
|
|
24
|
+
setup(e, { emit: x }) {
|
|
25
|
+
const h = x, f = C();
|
|
26
|
+
return (o, m) => (l(), p(s(k), {
|
|
27
27
|
as: "div",
|
|
28
|
-
class:
|
|
28
|
+
class: n(["group/collapse text-c-2 focus-within:text-c-1 last:ui-open:border-b-0 border-b", e.isStatic && "last-of-type:first-of-type:border-b-0"]),
|
|
29
29
|
defaultOpen: e.defaultOpen,
|
|
30
30
|
static: e.isStatic
|
|
31
31
|
}, {
|
|
32
|
-
default:
|
|
33
|
-
|
|
32
|
+
default: c(({ open: t }) => [
|
|
33
|
+
d(w, {
|
|
34
34
|
value: t,
|
|
35
|
-
onChange:
|
|
35
|
+
onChange: m[0] || (m[0] = (g) => h("update:modelValue", g))
|
|
36
36
|
}, null, 8, ["value"]),
|
|
37
|
-
|
|
38
|
-
"aria-labelledby": s(
|
|
37
|
+
a("section", {
|
|
38
|
+
"aria-labelledby": s(f),
|
|
39
39
|
class: "contents"
|
|
40
40
|
}, [
|
|
41
|
-
|
|
42
|
-
class:
|
|
41
|
+
a("div", {
|
|
42
|
+
class: n(["bg-b-2 flex items-center", e.isStatic && "rounded-t-lg border border-b-0"])
|
|
43
43
|
}, [
|
|
44
|
-
|
|
45
|
-
class:
|
|
44
|
+
d(s(B), {
|
|
45
|
+
class: n(["hover:text-c-1 group box-content flex max-h-8 flex-1 items-center gap-2.5 overflow-hidden px-1 py-1.5 text-base font-medium outline-none md:px-1.5 xl:pr-0.5 xl:pl-2", e.isStatic && "!pl-3"]),
|
|
46
46
|
disabled: e.isStatic
|
|
47
47
|
}, {
|
|
48
|
-
default:
|
|
49
|
-
e.isStatic ?
|
|
48
|
+
default: c(() => [
|
|
49
|
+
e.isStatic ? i("", !0) : (l(), p(s($), {
|
|
50
50
|
key: 0,
|
|
51
51
|
class: "text-c-3 group-hover:text-c-1 rounded-px ui-open:rotate-90 ui-not-open:rotate-0 outline-offset-2 group-focus-visible:outline",
|
|
52
52
|
icon: "ChevronRight",
|
|
53
53
|
size: "md"
|
|
54
54
|
})),
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
id: s(
|
|
55
|
+
a("h2", I, [
|
|
56
|
+
a("span", {
|
|
57
|
+
id: s(f),
|
|
58
58
|
class: "contents"
|
|
59
59
|
}, [
|
|
60
|
-
|
|
61
|
-
t ?
|
|
62
|
-
], 8,
|
|
63
|
-
!t && e.itemCount ? (
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
])) :
|
|
60
|
+
u(o.$slots, "title", { open: t }),
|
|
61
|
+
t ? i("", !0) : (l(), r("span", O, " (Collapsed) "))
|
|
62
|
+
], 8, N),
|
|
63
|
+
!t && e.itemCount ? (l(), r("span", z, [
|
|
64
|
+
S(b(e.itemCount) + " ", 1),
|
|
65
|
+
a("span", E, "Item" + b(e.itemCount === 1 ? "" : "s"), 1)
|
|
66
|
+
])) : i("", !0)
|
|
67
67
|
])
|
|
68
68
|
]),
|
|
69
69
|
_: 2
|
|
70
70
|
}, 1032, ["class", "disabled"]),
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
])) :
|
|
71
|
+
o.$slots.actions ? (l(), r("div", P, [
|
|
72
|
+
u(o.$slots, "actions", { open: t })
|
|
73
|
+
])) : i("", !0)
|
|
74
74
|
], 2),
|
|
75
|
-
|
|
76
|
-
default:
|
|
77
|
-
|
|
75
|
+
d(s(V), v(o.$attrs, { class: "diclosure-panel h-full max-h-fit rounded-b" }), {
|
|
76
|
+
default: c(() => [
|
|
77
|
+
u(o.$slots, "default", { open: t })
|
|
78
78
|
]),
|
|
79
79
|
_: 2
|
|
80
80
|
}, 1040)
|
|
81
|
-
], 8,
|
|
81
|
+
], 8, D)
|
|
82
82
|
]),
|
|
83
83
|
_: 3
|
|
84
84
|
}, 8, ["class", "defaultOpen", "static"]));
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { truncate as
|
|
3
|
-
import
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as m, computed as s, createBlock as i, openBlock as a, unref as c, withCtx as d, createElementBlock as u, createCommentVNode as f, toDisplayString as g } from "vue";
|
|
2
|
+
import { truncate as p } from "@scalar/helpers/string/truncate";
|
|
3
|
+
import x from "../forms/ConfirmationForm.vue.js";
|
|
4
|
+
const k = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "text-c-2 text-sm leading-normal text-pretty"
|
|
7
|
-
},
|
|
7
|
+
}, $ = /* @__PURE__ */ m({
|
|
8
8
|
__name: "DeleteModal",
|
|
9
9
|
props: {
|
|
10
10
|
name: {},
|
|
11
11
|
warningMessage: {}
|
|
12
12
|
},
|
|
13
13
|
emits: ["close", "delete"],
|
|
14
|
-
setup(
|
|
15
|
-
const
|
|
16
|
-
return (
|
|
17
|
-
label: `Delete ${
|
|
14
|
+
setup(t, { emit: o }) {
|
|
15
|
+
const n = o, r = s(() => p(t.name));
|
|
16
|
+
return (v, e) => (a(), i(c(x), {
|
|
17
|
+
label: `Delete ${r.value}`,
|
|
18
18
|
variant: "danger",
|
|
19
|
-
onCancel: e[0] || (e[0] = (
|
|
20
|
-
onSubmit: e[1] || (e[1] = (
|
|
19
|
+
onCancel: e[0] || (e[0] = (l) => n("close")),
|
|
20
|
+
onSubmit: e[1] || (e[1] = (l) => n("delete"))
|
|
21
21
|
}, {
|
|
22
22
|
default: d(() => [
|
|
23
|
-
|
|
23
|
+
t.warningMessage ? (a(), u("p", k, g(t.warningMessage), 1)) : f("", !0)
|
|
24
24
|
]),
|
|
25
25
|
_: 1
|
|
26
26
|
}, 8, ["label"]));
|
|
27
27
|
}
|
|
28
28
|
});
|
|
29
29
|
export {
|
|
30
|
-
|
|
30
|
+
$ as default
|
|
31
31
|
};
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { defineComponent as f, ref as v, createElementBlock as h, openBlock as g, normalizeStyle as
|
|
1
|
+
import { defineComponent as f, ref as v, createElementBlock as h, openBlock as g, normalizeStyle as w, renderSlot as p, createElementVNode as E } from "vue";
|
|
2
2
|
const l = "scalar-dragging", D = /* @__PURE__ */ f({
|
|
3
3
|
__name: "Resize",
|
|
4
4
|
props: {
|
|
5
5
|
width: {}
|
|
6
6
|
},
|
|
7
7
|
emits: ["update:width"],
|
|
8
|
-
setup(
|
|
9
|
-
const s = m,
|
|
10
|
-
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
let e = c + u.clientX -
|
|
8
|
+
setup(t, { emit: m }) {
|
|
9
|
+
const s = m, d = v(!1), r = (n) => {
|
|
10
|
+
n.preventDefault();
|
|
11
|
+
const o = n.clientX, c = t.width, a = (u) => {
|
|
12
|
+
d.value = !0, document.body.classList.add(l);
|
|
13
|
+
let e = c + u.clientX - o;
|
|
14
14
|
e > 420 && (e = 420 + (e - 420) * 0.2), e < 240 && (e = 240), s("update:width", e);
|
|
15
15
|
}, i = () => {
|
|
16
|
-
|
|
16
|
+
d.value = !1, document.body.classList.remove(l), document.documentElement.removeEventListener("mousemove", a, !1), document.documentElement.removeEventListener("mouseup", i, !1), t.width > 420 ? s("update:width", 360) : t.width < 240 && s("update:width", 240);
|
|
17
17
|
};
|
|
18
18
|
document.documentElement.addEventListener("mousemove", a, !1), document.documentElement.addEventListener("mouseup", i, !1);
|
|
19
19
|
};
|
|
20
|
-
return (
|
|
20
|
+
return (n, o) => (g(), h("div", {
|
|
21
21
|
class: "relative",
|
|
22
|
-
style:
|
|
22
|
+
style: w({
|
|
23
23
|
width: `${t.width}px`
|
|
24
24
|
})
|
|
25
25
|
}, [
|
|
26
|
-
|
|
26
|
+
p(n.$slots, "default", {}, void 0, !0),
|
|
27
27
|
E("div", {
|
|
28
28
|
class: "resizer",
|
|
29
29
|
onMousedown: r
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as y, computed as
|
|
1
|
+
import { defineComponent as y, computed as p, createBlock as m, openBlock as t, unref as a, withCtx as o, createVNode as n, createElementBlock as d, Fragment as c, createElementVNode as s, createTextVNode as h, toDisplayString as U, createCommentVNode as w, renderList as C } from "vue";
|
|
2
2
|
import { ScalarPopover as B, ScalarButton as z, ScalarFloatingBackdrop as N } from "@scalar/components";
|
|
3
3
|
import { ScalarIconPlus as V, ScalarIconPencilSimple as D } from "@scalar/icons";
|
|
4
4
|
import I from "./ServerDropdownItem.vue.js";
|
|
@@ -11,14 +11,14 @@ const P = ["onClick"], $ = { class: "flex items-center justify-center" }, W = /*
|
|
|
11
11
|
layout: {}
|
|
12
12
|
},
|
|
13
13
|
emits: ["update:selectedServer", "update:variable", "update:servers"],
|
|
14
|
-
setup(
|
|
15
|
-
const
|
|
16
|
-
() =>
|
|
17
|
-
id:
|
|
18
|
-
label:
|
|
14
|
+
setup(e, { emit: f }) {
|
|
15
|
+
const i = f, b = p(
|
|
16
|
+
() => e.servers.map((u) => ({
|
|
17
|
+
id: u.url,
|
|
18
|
+
label: u.url ?? "Unknown server"
|
|
19
19
|
}))
|
|
20
|
-
),
|
|
21
|
-
return (
|
|
20
|
+
), x = p(() => e.server?.url?.endsWith("/") ? e.server.url.slice(0, -1) : e.server?.url || "");
|
|
21
|
+
return (u, r) => (t(), m(a(B), {
|
|
22
22
|
class: "max-h-[inherit] p-0 text-base",
|
|
23
23
|
focus: "",
|
|
24
24
|
offset: 0,
|
|
@@ -27,47 +27,47 @@ const P = ["onClick"], $ = { class: "flex items-center justify-center" }, W = /*
|
|
|
27
27
|
target: e.target,
|
|
28
28
|
teleport: `#${e.target}`
|
|
29
29
|
}, {
|
|
30
|
-
popover:
|
|
31
|
-
|
|
30
|
+
popover: o(({ close: S }) => [
|
|
31
|
+
s("div", {
|
|
32
32
|
class: "custom-scroll flex max-h-[inherit] flex-col gap-1 border-t p-1",
|
|
33
|
-
onClick:
|
|
33
|
+
onClick: S
|
|
34
34
|
}, [
|
|
35
|
-
(t(!0),
|
|
35
|
+
(t(!0), d(c, null, C(b.value, (l, g) => (t(), m(I, {
|
|
36
36
|
key: l.id,
|
|
37
37
|
server: e.server,
|
|
38
38
|
serverOption: l,
|
|
39
39
|
type: "request",
|
|
40
|
-
"onUpdate:selectedServer": (
|
|
41
|
-
"onUpdate:variable": (
|
|
40
|
+
"onUpdate:selectedServer": (v) => i("update:selectedServer", { url: l.id }),
|
|
41
|
+
"onUpdate:variable": (v, k) => i("update:variable", { index: g, key: v, value: k })
|
|
42
42
|
}, null, 8, ["server", "serverOption", "onUpdate:selectedServer", "onUpdate:variable"]))), 128)),
|
|
43
|
-
e.layout !== "modal" ? (t(),
|
|
43
|
+
e.layout !== "modal" ? (t(), d("button", {
|
|
44
44
|
key: 0,
|
|
45
45
|
class: "text-xxs hover:bg-b-2 flex cursor-pointer items-center gap-1.5 rounded p-1.75",
|
|
46
46
|
type: "button",
|
|
47
|
-
onClick: r[0] || (r[0] = (l) =>
|
|
47
|
+
onClick: r[0] || (r[0] = (l) => i("update:servers"))
|
|
48
48
|
}, [
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
s("div", $, [
|
|
50
|
+
n(a(D), { class: "size-4" })
|
|
51
51
|
]),
|
|
52
|
-
r[3] || (r[3] =
|
|
52
|
+
r[3] || (r[3] = s("span", null, "Update Servers", -1))
|
|
53
53
|
])) : w("", !0)
|
|
54
54
|
], 8, P)
|
|
55
55
|
]),
|
|
56
|
-
backdrop:
|
|
57
|
-
|
|
56
|
+
backdrop: o(() => [
|
|
57
|
+
n(a(N), { class: "-top-(--scalar-address-bar-height) rounded-lg" })
|
|
58
58
|
]),
|
|
59
|
-
default:
|
|
60
|
-
|
|
59
|
+
default: o(() => [
|
|
60
|
+
n(a(z), {
|
|
61
61
|
class: "z-context-plus hover:bg-b-2 font-code text-c-2 ml-0.75 h-auto gap-0.75 rounded border px-1.5 text-base whitespace-nowrap",
|
|
62
62
|
variant: "ghost"
|
|
63
63
|
}, {
|
|
64
|
-
default:
|
|
65
|
-
e.server ? (t(),
|
|
66
|
-
r[1] || (r[1] =
|
|
67
|
-
h(" " + U(
|
|
68
|
-
], 64)) : (t(),
|
|
69
|
-
r[2] || (r[2] =
|
|
70
|
-
|
|
64
|
+
default: o(() => [
|
|
65
|
+
e.server ? (t(), d(c, { key: 0 }, [
|
|
66
|
+
r[1] || (r[1] = s("span", { class: "sr-only" }, "Server:", -1)),
|
|
67
|
+
h(" " + U(x.value), 1)
|
|
68
|
+
], 64)) : (t(), d(c, { key: 1 }, [
|
|
69
|
+
r[2] || (r[2] = s("span", { class: "sr-only" }, "Add Server", -1)),
|
|
70
|
+
n(a(V), { class: "size-3" })
|
|
71
71
|
], 64))
|
|
72
72
|
]),
|
|
73
73
|
_: 1
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarListboxCheckbox as
|
|
3
|
-
import
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as x, useId as h, computed as u, createElementBlock as o, openBlock as a, normalizeClass as k, createElementVNode as n, createCommentVNode as p, mergeProps as g, unref as s, createVNode as l, toDisplayString as S, withModifiers as y } from "vue";
|
|
2
|
+
import { ScalarListboxCheckbox as w, ScalarMarkdown as C } from "@scalar/components";
|
|
3
|
+
import O from "../../../components/Server/ServerVariablesForm.vue.js";
|
|
4
|
+
const V = ["aria-expanded"], E = { class: "overflow-hidden text-ellipsis whitespace-nowrap" }, I = ["id"], N = { key: 0 }, B = { class: "description text-c-3 px-3 py-1.5" }, z = /* @__PURE__ */ x({
|
|
5
5
|
__name: "ServerDropdownItem",
|
|
6
6
|
props: {
|
|
7
7
|
server: {},
|
|
8
8
|
serverOption: {}
|
|
9
9
|
},
|
|
10
10
|
emits: ["update:variable", "update:selectedServer"],
|
|
11
|
-
setup(
|
|
12
|
-
const
|
|
13
|
-
return (
|
|
14
|
-
class:
|
|
11
|
+
setup(e, { emit: m }) {
|
|
12
|
+
const d = m, v = h(), b = () => Object.keys(e.server?.variables ?? {}).length > 0, t = u(() => e.serverOption.id === e.server?.url), i = u(() => t.value && b());
|
|
13
|
+
return (D, r) => (a(), o("div", {
|
|
14
|
+
class: k(["group/item flex min-h-fit flex-col rounded border", { "border-transparent": !t.value }])
|
|
15
15
|
}, [
|
|
16
|
-
|
|
16
|
+
n("button", g(i.value ? { "aria-controls": s(v) } : {}, {
|
|
17
17
|
"aria-expanded": i.value,
|
|
18
|
-
class: ["flex min-h-8 cursor-pointer items-center gap-1.5 rounded px-1.5",
|
|
18
|
+
class: ["flex min-h-8 cursor-pointer items-center gap-1.5 rounded px-1.5", t.value ? "text-c-1 bg-b-2" : "hover:bg-b-2"],
|
|
19
19
|
type: "button",
|
|
20
|
-
onClick:
|
|
20
|
+
onClick: r[0] || (r[0] = (c) => d("update:selectedServer"))
|
|
21
21
|
}), [
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
], 16,
|
|
25
|
-
i.value ? (
|
|
22
|
+
l(s(w), { selected: t.value }, null, 8, ["selected"]),
|
|
23
|
+
n("span", E, S(e.serverOption.label), 1)
|
|
24
|
+
], 16, V),
|
|
25
|
+
i.value ? (a(), o("div", {
|
|
26
26
|
key: 0,
|
|
27
|
-
id: s(
|
|
27
|
+
id: s(v),
|
|
28
28
|
class: "bg-b-2 divide divide-y rounded-b border-t *:pl-4",
|
|
29
|
-
onClick:
|
|
29
|
+
onClick: r[2] || (r[2] = y(() => {
|
|
30
30
|
}, ["stop"]))
|
|
31
31
|
}, [
|
|
32
|
-
|
|
33
|
-
variables:
|
|
34
|
-
"onUpdate:variable":
|
|
32
|
+
l(O, {
|
|
33
|
+
variables: e.server?.variables,
|
|
34
|
+
"onUpdate:variable": r[1] || (r[1] = (c, f) => d("update:variable", c, f))
|
|
35
35
|
}, null, 8, ["variables"]),
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
value:
|
|
36
|
+
e.server?.description ? (a(), o("div", N, [
|
|
37
|
+
n("div", B, [
|
|
38
|
+
l(s(C), {
|
|
39
|
+
value: e.server.description
|
|
40
40
|
}, null, 8, ["value"])
|
|
41
41
|
])
|
|
42
|
-
])) :
|
|
43
|
-
], 8, I)) :
|
|
42
|
+
])) : p("", !0)
|
|
43
|
+
], 8, I)) : p("", !0)
|
|
44
44
|
], 2));
|
|
45
45
|
}
|
|
46
46
|
});
|
|
47
47
|
export {
|
|
48
|
-
|
|
48
|
+
z as default
|
|
49
49
|
};
|