@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,21 +1,21 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useBindCx as
|
|
3
|
-
const f = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as o, createBlock as a, openBlock as n, resolveDynamicComponent as l, mergeProps as s, unref as b, withCtx as d, renderSlot as p } from "vue";
|
|
2
|
+
import { useBindCx as i } from "@scalar/components";
|
|
3
|
+
const f = /* @__PURE__ */ o({
|
|
4
4
|
inheritAttrs: !1,
|
|
5
5
|
__name: "DataTableCell",
|
|
6
6
|
props: {
|
|
7
7
|
is: { default: "td" }
|
|
8
8
|
},
|
|
9
|
-
setup(
|
|
10
|
-
const { cx: r } =
|
|
11
|
-
return (
|
|
12
|
-
|
|
9
|
+
setup(e) {
|
|
10
|
+
const { cx: r } = i();
|
|
11
|
+
return (t, m) => (n(), a(l(e.is), s(
|
|
12
|
+
b(r)(
|
|
13
13
|
"box-content max-h-8 min-h-8 min-w-8 border-l-0 border-t border-b-0 border-r flex text-base last:border-r-0 group-last:border-b-transparent p-0 m-0 relative"
|
|
14
14
|
),
|
|
15
15
|
{ class: "group-[.alert]:bg-b-alert group-[.error]:bg-b-danger" }
|
|
16
16
|
), {
|
|
17
|
-
default:
|
|
18
|
-
|
|
17
|
+
default: d(() => [
|
|
18
|
+
p(t.$slots, "default")
|
|
19
19
|
]),
|
|
20
20
|
_: 3
|
|
21
21
|
}, 16));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { cva as p, ScalarIcon as
|
|
3
|
-
import
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as i, createBlock as r, openBlock as d, withCtx as u, createElementVNode as t, normalizeClass as l, unref as o, createVNode as m } from "vue";
|
|
2
|
+
import { cva as p, ScalarIcon as b } from "@scalar/components";
|
|
3
|
+
import f from "./DataTableCell.vue.js";
|
|
4
|
+
const h = ["checked", "disabled"], x = /* @__PURE__ */ i({
|
|
5
5
|
__name: "DataTableCheckbox",
|
|
6
6
|
props: {
|
|
7
7
|
modelValue: { type: Boolean },
|
|
@@ -9,8 +9,8 @@ const f = ["checked", "disabled"], y = /* @__PURE__ */ c({
|
|
|
9
9
|
align: { default: "center" }
|
|
10
10
|
},
|
|
11
11
|
emits: ["update:modelValue"],
|
|
12
|
-
setup(
|
|
13
|
-
const
|
|
12
|
+
setup(e) {
|
|
13
|
+
const c = p({
|
|
14
14
|
base: "w-8 h-8 flex items-center justify-center text-border peer-checked:text-c-1 pointer-events-none absolute",
|
|
15
15
|
variants: {
|
|
16
16
|
align: {
|
|
@@ -19,25 +19,25 @@ const f = ["checked", "disabled"], y = /* @__PURE__ */ c({
|
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
|
-
return (
|
|
23
|
-
default:
|
|
24
|
-
|
|
22
|
+
return (n, a) => (d(), r(f, { class: "group/cell relative flex min-w-8" }, {
|
|
23
|
+
default: u(() => [
|
|
24
|
+
t("input", {
|
|
25
25
|
checked: e.modelValue,
|
|
26
26
|
class: "peer absolute inset-0 cursor-pointer opacity-0 disabled:cursor-default",
|
|
27
27
|
disabled: !!e.disabled,
|
|
28
28
|
type: "checkbox",
|
|
29
|
-
onChange:
|
|
30
|
-
}, null, 40,
|
|
31
|
-
|
|
32
|
-
class:
|
|
29
|
+
onChange: a[0] || (a[0] = (s) => n.$emit("update:modelValue", s.target.checked))
|
|
30
|
+
}, null, 40, h),
|
|
31
|
+
t("div", {
|
|
32
|
+
class: l(o(c)({ align: e.align }))
|
|
33
33
|
}, [
|
|
34
|
-
|
|
35
|
-
class:
|
|
34
|
+
t("div", {
|
|
35
|
+
class: l([
|
|
36
36
|
"absolute m-auto size-3/4 rounded border-[1px] opacity-0",
|
|
37
37
|
!e.disabled && "group-has-[:focus-visible]/cell:border-c-accent group-hover/cell:opacity-100 group-has-[:focus-visible]/cell:opacity-100"
|
|
38
38
|
])
|
|
39
39
|
}, null, 2),
|
|
40
|
-
|
|
40
|
+
m(o(b), {
|
|
41
41
|
icon: "Checkmark",
|
|
42
42
|
size: "xs",
|
|
43
43
|
thickness: "2.5"
|
|
@@ -49,5 +49,5 @@ const f = ["checked", "disabled"], y = /* @__PURE__ */ c({
|
|
|
49
49
|
}
|
|
50
50
|
});
|
|
51
51
|
export {
|
|
52
|
-
|
|
52
|
+
x as default
|
|
53
53
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as g, ref as
|
|
2
|
-
import { ScalarIconButton as
|
|
3
|
-
import { ScalarIconX as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
const
|
|
1
|
+
import { defineComponent as g, ref as c, computed as x, createBlock as d, openBlock as n, normalizeClass as B, withCtx as $, createElementBlock as s, createCommentVNode as m, createElementVNode as I, renderSlot as f, createTextVNode as O, Fragment as S, mergeProps as v, unref as r } from "vue";
|
|
2
|
+
import { ScalarIconButton as V } from "@scalar/components";
|
|
3
|
+
import { ScalarIconX as E, ScalarIconEye as h, ScalarIconEyeSlash as A } from "@scalar/icons";
|
|
4
|
+
import W from "../CodeInput/CodeInput.vue.js";
|
|
5
|
+
import q from "./DataTableCell.vue.js";
|
|
6
|
+
import F from "./DataTableInputSelect.vue.js";
|
|
7
|
+
const T = ["for"], N = { class: "relative flex min-w-0 flex-1" }, P = ["readOnly", "type", "value"], D = {
|
|
8
8
|
key: 1,
|
|
9
9
|
class: "centered-y text-orange absolute right-7 text-xs"
|
|
10
|
-
},
|
|
10
|
+
}, G = /* @__PURE__ */ g({
|
|
11
11
|
inheritAttrs: !1,
|
|
12
12
|
__name: "DataTableInput",
|
|
13
13
|
props: {
|
|
@@ -27,36 +27,36 @@ const N = ["for"], P = { class: "relative flex min-w-0 flex-1" }, D = ["readOnly
|
|
|
27
27
|
lineWrapping: { type: Boolean, default: !1 }
|
|
28
28
|
},
|
|
29
29
|
emits: ["update:modelValue", "inputFocus", "inputBlur", "selectVariable"],
|
|
30
|
-
setup(
|
|
31
|
-
const
|
|
32
|
-
k.value ||
|
|
33
|
-
}, y =
|
|
34
|
-
() =>
|
|
30
|
+
setup(e, { emit: w }) {
|
|
31
|
+
const t = e, i = w, u = c(!0), k = c(!1), p = c(null), b = () => {
|
|
32
|
+
k.value || i("inputBlur");
|
|
33
|
+
}, y = x(
|
|
34
|
+
() => t.type === "password" ? "text" : t.type ?? "text"
|
|
35
35
|
), C = () => {
|
|
36
|
-
!
|
|
36
|
+
!t.enum?.length && !t.readOnly && p.value?.focus();
|
|
37
37
|
};
|
|
38
|
-
return (
|
|
39
|
-
class:
|
|
38
|
+
return (a, l) => (n(), d(q, {
|
|
39
|
+
class: B(["relative flex", e.containerClass])
|
|
40
40
|
}, {
|
|
41
|
-
default:
|
|
42
|
-
|
|
41
|
+
default: $(() => [
|
|
42
|
+
a.$slots.default ? (n(), s("div", {
|
|
43
43
|
key: 0,
|
|
44
44
|
class: "text-c-1 flex items-center pr-0 pl-3",
|
|
45
45
|
for: e.id ?? "",
|
|
46
46
|
onClick: C
|
|
47
47
|
}, [
|
|
48
|
-
|
|
49
|
-
l[6] || (l[6] =
|
|
50
|
-
], 8,
|
|
51
|
-
|
|
52
|
-
|
|
48
|
+
f(a.$slots, "default", {}, void 0, !0),
|
|
49
|
+
l[6] || (l[6] = O(": ", -1))
|
|
50
|
+
], 8, T)) : m("", !0),
|
|
51
|
+
I("div", N, [
|
|
52
|
+
t.enum && t.enum.length ? (n(), d(F, {
|
|
53
53
|
key: 0,
|
|
54
|
-
canAddCustomValue:
|
|
55
|
-
modelValue:
|
|
56
|
-
value:
|
|
57
|
-
"onUpdate:modelValue": l[0] || (l[0] = (o) =>
|
|
58
|
-
}, null, 8, ["canAddCustomValue", "modelValue", "value"])) : (
|
|
59
|
-
|
|
54
|
+
canAddCustomValue: t.canAddCustomEnumValue,
|
|
55
|
+
modelValue: t.modelValue,
|
|
56
|
+
value: t.enum,
|
|
57
|
+
"onUpdate:modelValue": l[0] || (l[0] = (o) => i("update:modelValue", o))
|
|
58
|
+
}, null, 8, ["canAddCustomValue", "modelValue", "value"])) : (n(), s(S, { key: 1 }, [
|
|
59
|
+
u.value && e.type === "password" ? (n(), s("input", v({ key: 0 }, e.id ? { ...a.$attrs, id: e.id } : a.$attrs, {
|
|
60
60
|
autocomplete: "off",
|
|
61
61
|
class: ["text-c-1 disabled:text-c-2 peer w-full min-w-0 border-none px-2 py-1.25 -outline-offset-1", { "scalar-password-input": e.type === "password" }],
|
|
62
62
|
"data-1p-ignore": "",
|
|
@@ -64,14 +64,14 @@ const N = ["for"], P = { class: "relative flex min-w-0 flex-1" }, D = ["readOnly
|
|
|
64
64
|
spellcheck: "false",
|
|
65
65
|
type: y.value,
|
|
66
66
|
value: e.modelValue,
|
|
67
|
-
onInput: l[1] || (l[1] = (o) =>
|
|
67
|
+
onInput: l[1] || (l[1] = (o) => i(
|
|
68
68
|
"update:modelValue",
|
|
69
69
|
o.target.value ?? ""
|
|
70
70
|
))
|
|
71
|
-
}), null, 16,
|
|
71
|
+
}), null, 16, P)) : (n(), d(W, v({ key: 1 }, a.$attrs, {
|
|
72
72
|
id: e.id,
|
|
73
73
|
ref_key: "codeInput",
|
|
74
|
-
ref:
|
|
74
|
+
ref: p,
|
|
75
75
|
class: ["text-c-1 disabled:text-c-2 peer w-full min-w-0 border-none -outline-offset-1", [
|
|
76
76
|
e.type === "password" && e.description && "pr-12",
|
|
77
77
|
e.description && "pr-8",
|
|
@@ -91,34 +91,34 @@ const N = ["for"], P = { class: "relative flex min-w-0 flex-1" }, D = ["readOnly
|
|
|
91
91
|
spellcheck: "false",
|
|
92
92
|
type: y.value,
|
|
93
93
|
onBlur: b,
|
|
94
|
-
onFocus: l[2] || (l[2] = (o) =>
|
|
95
|
-
"onUpdate:modelValue": l[3] || (l[3] = (o) =>
|
|
94
|
+
onFocus: l[2] || (l[2] = (o) => i("inputFocus")),
|
|
95
|
+
"onUpdate:modelValue": l[3] || (l[3] = (o) => i("update:modelValue", o))
|
|
96
96
|
}), null, 16, ["id", "class", "description", "envVariables", "environment", "lineWrapping", "max", "min", "modelValue", "readOnly", "required", "type"]))
|
|
97
97
|
], 64))
|
|
98
98
|
]),
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
])) :
|
|
102
|
-
|
|
103
|
-
e.modelValue ? (
|
|
99
|
+
a.$slots.warning ? (n(), s("div", D, [
|
|
100
|
+
f(a.$slots, "warning", {}, void 0, !0)
|
|
101
|
+
])) : m("", !0),
|
|
102
|
+
f(a.$slots, "icon", {}, void 0, !0),
|
|
103
|
+
e.modelValue ? (n(), d(r(V), {
|
|
104
104
|
key: 2,
|
|
105
105
|
class: "-ml-.25 h-6 w-6 self-center p-1.25",
|
|
106
|
-
icon:
|
|
106
|
+
icon: r(E),
|
|
107
107
|
label: "Clear Value",
|
|
108
|
-
onClick: l[4] || (l[4] = (o) =>
|
|
109
|
-
}, null, 8, ["icon"])) :
|
|
110
|
-
e.type === "password" ? (
|
|
108
|
+
onClick: l[4] || (l[4] = (o) => i("update:modelValue", ""))
|
|
109
|
+
}, null, 8, ["icon"])) : m("", !0),
|
|
110
|
+
e.type === "password" ? (n(), d(r(V), {
|
|
111
111
|
key: 3,
|
|
112
112
|
class: "-ml-.5 mr-1.25 h-6 w-6 self-center p-1.25",
|
|
113
|
-
icon:
|
|
114
|
-
label:
|
|
115
|
-
onClick: l[5] || (l[5] = (o) =>
|
|
116
|
-
}, null, 8, ["icon", "label"])) :
|
|
113
|
+
icon: u.value ? r(h) : r(A),
|
|
114
|
+
label: u.value ? "Show Password" : "Hide Password",
|
|
115
|
+
onClick: l[5] || (l[5] = (o) => u.value = !u.value)
|
|
116
|
+
}, null, 8, ["icon", "label"])) : m("", !0)
|
|
117
117
|
]),
|
|
118
118
|
_: 3
|
|
119
119
|
}, 8, ["class"]));
|
|
120
120
|
}
|
|
121
121
|
});
|
|
122
122
|
export {
|
|
123
|
-
|
|
123
|
+
G as default
|
|
124
124
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as T, computed as m, ref as
|
|
2
|
-
import { ScalarComboboxMultiselect as F, ScalarButton as
|
|
1
|
+
import { defineComponent as T, computed as m, ref as x, watch as C, nextTick as E, createElementBlock as f, openBlock as o, createBlock as v, withDirectives as K, unref as a, withCtx as s, createVNode as n, createElementVNode as i, toDisplayString as y, 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 h, ScalarDropdown as L, ScalarDropdownItem as z, 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,47 +10,47 @@ 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
|
-
|
|
13
|
+
setup(w, { emit: B }) {
|
|
14
|
+
const u = w, c = B, p = m(() => u.value ?? []), d = x(!1), r = x(""), g = x(null);
|
|
15
|
+
C(r, (e) => {
|
|
16
16
|
c("update:modelValue", e);
|
|
17
17
|
});
|
|
18
|
-
const
|
|
18
|
+
const k = (e) => {
|
|
19
19
|
c("update:modelValue", e), d.value = !1;
|
|
20
20
|
}, j = () => {
|
|
21
|
-
r.value.trim() &&
|
|
21
|
+
r.value.trim() && k(r.value);
|
|
22
22
|
}, A = () => {
|
|
23
23
|
r.value.trim() || c("update:modelValue", ""), d.value = !1;
|
|
24
24
|
}, I = (e) => u.modelValue.toString() === e;
|
|
25
|
-
|
|
25
|
+
C(d, (e) => {
|
|
26
26
|
e && E(() => {
|
|
27
|
-
|
|
27
|
+
g.value?.focus();
|
|
28
28
|
});
|
|
29
29
|
});
|
|
30
|
-
const
|
|
30
|
+
const S = m(() => u.modelValue !== void 0 ? u.modelValue : u.default), V = m(() => {
|
|
31
31
|
const e = new Set(u.modelValue.toString().split(", "));
|
|
32
|
-
return p.value.filter((
|
|
32
|
+
return p.value.filter((t) => e.has(t)).map((t) => ({ id: t, label: t, value: t }));
|
|
33
33
|
}), N = m(
|
|
34
34
|
() => p.value.map((e) => ({ id: e, label: e, value: e }))
|
|
35
35
|
), O = (e) => {
|
|
36
|
-
const
|
|
37
|
-
c("update:modelValue",
|
|
36
|
+
const t = e.map((l) => l.value);
|
|
37
|
+
c("update:modelValue", t.join(", "));
|
|
38
38
|
};
|
|
39
|
-
return (e,
|
|
40
|
-
|
|
39
|
+
return (e, t) => (o(), f("div", q, [
|
|
40
|
+
w.type === "array" ? (o(), v(a(F), {
|
|
41
41
|
key: 0,
|
|
42
|
-
modelValue:
|
|
42
|
+
modelValue: V.value,
|
|
43
43
|
options: N.value,
|
|
44
44
|
"onUpdate:modelValue": O
|
|
45
45
|
}, {
|
|
46
46
|
default: s(() => [
|
|
47
|
-
n(a(
|
|
47
|
+
n(a(D), {
|
|
48
48
|
class: "custom-scroll h-full justify-start gap-1.5 px-2 py-1.5 pr-6 font-normal outline-none",
|
|
49
49
|
fullWidth: "",
|
|
50
50
|
variant: "ghost"
|
|
51
51
|
}, {
|
|
52
52
|
default: s(() => [
|
|
53
|
-
i("span", G, y(
|
|
53
|
+
i("span", G, y(V.value.length > 0 ? V.value.map((l) => l.label).join(", ") : "Select a value"), 1),
|
|
54
54
|
n(a(h), {
|
|
55
55
|
icon: "ChevronDown",
|
|
56
56
|
size: "md",
|
|
@@ -64,8 +64,8 @@ const q = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-f
|
|
|
64
64
|
}, 8, ["modelValue", "options"])) : d.value ? K((o(), f("input", {
|
|
65
65
|
key: 1,
|
|
66
66
|
ref_key: "inputRef",
|
|
67
|
-
ref:
|
|
68
|
-
"onUpdate:modelValue":
|
|
67
|
+
ref: g,
|
|
68
|
+
"onUpdate:modelValue": t[0] || (t[0] = (l) => r.value = l),
|
|
69
69
|
class: "text-c-1 w-full min-w-0 border-none px-2 py-1.5 outline-none",
|
|
70
70
|
placeholder: "Value",
|
|
71
71
|
type: "text",
|
|
@@ -76,20 +76,20 @@ const q = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-f
|
|
|
76
76
|
]) : (o(), v(a(L), {
|
|
77
77
|
key: 2,
|
|
78
78
|
resize: "",
|
|
79
|
-
value:
|
|
79
|
+
value: S.value
|
|
80
80
|
}, {
|
|
81
81
|
items: s(() => [
|
|
82
|
-
(o(!0), f(
|
|
83
|
-
key:
|
|
82
|
+
(o(!0), f(b, null, U(p.value, (l) => (o(), v(a(z), {
|
|
83
|
+
key: l,
|
|
84
84
|
class: "group/item flex items-center gap-1.5 overflow-hidden text-ellipsis whitespace-nowrap",
|
|
85
|
-
value:
|
|
86
|
-
onClick: (Q) =>
|
|
85
|
+
value: l,
|
|
86
|
+
onClick: (Q) => k(l)
|
|
87
87
|
}, {
|
|
88
88
|
default: s(() => [
|
|
89
89
|
i("div", {
|
|
90
90
|
class: $([
|
|
91
91
|
"flex h-4 w-4 items-center justify-center rounded-full p-[3px]",
|
|
92
|
-
I(
|
|
92
|
+
I(l) ? "bg-c-accent text-b-1" : "shadow-border text-transparent"
|
|
93
93
|
])
|
|
94
94
|
}, [
|
|
95
95
|
n(a(h), {
|
|
@@ -98,15 +98,15 @@ const q = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-f
|
|
|
98
98
|
thickness: "3"
|
|
99
99
|
})
|
|
100
100
|
], 2),
|
|
101
|
-
i("span", J, y(
|
|
101
|
+
i("span", J, y(l), 1)
|
|
102
102
|
]),
|
|
103
103
|
_: 2
|
|
104
104
|
}, 1032, ["value", "onClick"]))), 128)),
|
|
105
|
-
|
|
106
|
-
p.value.length ? (o(), v(a(W), { key: 0 })) :
|
|
107
|
-
n(a(
|
|
105
|
+
w.canAddCustomValue ? (o(), f(b, { key: 0 }, [
|
|
106
|
+
p.value.length ? (o(), v(a(W), { key: 0 })) : _("", !0),
|
|
107
|
+
n(a(z), {
|
|
108
108
|
class: "flex items-center gap-1.5",
|
|
109
|
-
onClick:
|
|
109
|
+
onClick: t[1] || (t[1] = (l) => d.value = !0)
|
|
110
110
|
}, {
|
|
111
111
|
default: s(() => [
|
|
112
112
|
i("div", P, [
|
|
@@ -115,19 +115,19 @@ const q = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-f
|
|
|
115
115
|
size: "sm"
|
|
116
116
|
})
|
|
117
117
|
]),
|
|
118
|
-
|
|
118
|
+
t[2] || (t[2] = i("span", null, "Add value", -1))
|
|
119
119
|
]),
|
|
120
120
|
_: 1
|
|
121
121
|
})
|
|
122
|
-
], 64)) :
|
|
122
|
+
], 64)) : _("", !0)
|
|
123
123
|
]),
|
|
124
124
|
default: s(() => [
|
|
125
|
-
n(a(
|
|
125
|
+
n(a(D), {
|
|
126
126
|
class: "size-full justify-start gap-1.5 overflow-auto px-2 py-1.5 font-normal whitespace-nowrap outline-none",
|
|
127
127
|
variant: "ghost"
|
|
128
128
|
}, {
|
|
129
129
|
default: s(() => [
|
|
130
|
-
i("span", H, y(
|
|
130
|
+
i("span", H, y(S.value || "Select a value"), 1),
|
|
131
131
|
n(a(h), {
|
|
132
132
|
icon: "ChevronDown",
|
|
133
133
|
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,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as y, useId as h, createBlock as n, openBlock as o, createSlots as m, withCtx as a, createElementVNode as r, createCommentVNode as g, unref as t, createElementBlock as u, Fragment as V, renderList as _, normalizeClass as w, createVNode as f, toDisplayString as p, renderSlot as x } from "vue";
|
|
2
2
|
import { ScalarIcon as E } from "@scalar/components";
|
|
3
3
|
import C from "../DataTable/DataTable.vue.js";
|
|
4
4
|
import S from "../DataTable/DataTableInput.vue.js";
|
|
5
5
|
import U from "../DataTable/DataTableRow.vue.js";
|
|
6
6
|
import $ from "../ViewLayout/ViewLayoutSection.vue.js";
|
|
7
7
|
import { useActiveEntities as z } from "../../store/active-entities.js";
|
|
8
|
-
const B = { key: 0 }, D = { class: "flex flex-1 flex-col gap-1.5" }, F = ["for"], I = { class: "centered-y bg-b-2 flex-center absolute right-1 z-1 rounded px-1 py-0.5" },
|
|
8
|
+
const B = { key: 0 }, D = { class: "flex flex-1 flex-col gap-1.5" }, F = ["for"], I = { class: "centered-y bg-b-2 flex-center absolute right-1 z-1 rounded px-1 py-0.5" }, R = /* @__PURE__ */ y({
|
|
9
9
|
__name: "Form",
|
|
10
10
|
props: {
|
|
11
11
|
title: {},
|
|
@@ -13,43 +13,43 @@ const B = { key: 0 }, D = { class: "flex flex-1 flex-col gap-1.5" }, F = ["for"]
|
|
|
13
13
|
data: {},
|
|
14
14
|
onUpdate: { type: Function }
|
|
15
15
|
},
|
|
16
|
-
setup(
|
|
17
|
-
const { activeEnvVariables:
|
|
18
|
-
return (
|
|
19
|
-
default:
|
|
20
|
-
|
|
21
|
-
Object.keys(e.data).length > 0 && t(
|
|
16
|
+
setup(e) {
|
|
17
|
+
const { activeEnvVariables: k, activeEnvironment: b, activeWorkspace: i } = z(), s = h();
|
|
18
|
+
return (c, N) => (o(), n($, { class: "last:rounded-b-lg" }, m({
|
|
19
|
+
default: a(() => [
|
|
20
|
+
r("div", D, [
|
|
21
|
+
Object.keys(e.data).length > 0 && t(i) ? (o(), n(C, {
|
|
22
22
|
key: 0,
|
|
23
23
|
columns: [""],
|
|
24
24
|
class: "rounded-b-lg"
|
|
25
25
|
}, {
|
|
26
|
-
default:
|
|
27
|
-
(
|
|
26
|
+
default: a(() => [
|
|
27
|
+
(o(!0), u(V, null, _(e.options, (l, d) => (o(), n(U, {
|
|
28
28
|
key: d,
|
|
29
|
-
class:
|
|
29
|
+
class: w({ "border-t": d === 0 })
|
|
30
30
|
}, {
|
|
31
|
-
default:
|
|
32
|
-
|
|
31
|
+
default: a(() => [
|
|
32
|
+
f(S, {
|
|
33
33
|
class: "pr-9",
|
|
34
34
|
lineWrapping: "",
|
|
35
|
-
id: t(
|
|
36
|
-
envVariables: t(
|
|
37
|
-
environment: t(
|
|
38
|
-
modelValue: e.data[
|
|
39
|
-
placeholder:
|
|
40
|
-
workspace: t(
|
|
41
|
-
"onUpdate:modelValue": (
|
|
42
|
-
},
|
|
43
|
-
default:
|
|
44
|
-
|
|
35
|
+
id: t(s),
|
|
36
|
+
envVariables: t(k),
|
|
37
|
+
environment: t(b),
|
|
38
|
+
modelValue: e.data[l.key] ?? "",
|
|
39
|
+
placeholder: l.placeholder,
|
|
40
|
+
workspace: t(i),
|
|
41
|
+
"onUpdate:modelValue": (v) => e.onUpdate(l.key, v)
|
|
42
|
+
}, m({
|
|
43
|
+
default: a(() => [
|
|
44
|
+
r("label", { for: t(s) }, p(l.label), 9, F)
|
|
45
45
|
]),
|
|
46
46
|
_: 2
|
|
47
47
|
}, [
|
|
48
|
-
|
|
48
|
+
l.key === "description" ? {
|
|
49
49
|
name: "icon",
|
|
50
|
-
fn:
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
fn: a(() => [
|
|
51
|
+
r("div", I, [
|
|
52
|
+
f(t(E), {
|
|
53
53
|
icon: "Markdown",
|
|
54
54
|
size: "lg"
|
|
55
55
|
})
|
|
@@ -63,15 +63,15 @@ const B = { key: 0 }, D = { class: "flex flex-1 flex-col gap-1.5" }, F = ["for"]
|
|
|
63
63
|
}, 1032, ["class"]))), 128))
|
|
64
64
|
]),
|
|
65
65
|
_: 1
|
|
66
|
-
})) :
|
|
66
|
+
})) : g("", !0)
|
|
67
67
|
])
|
|
68
68
|
]),
|
|
69
69
|
_: 2
|
|
70
70
|
}, [
|
|
71
|
-
e.title ||
|
|
71
|
+
e.title || c.$slots.title ? {
|
|
72
72
|
name: "title",
|
|
73
|
-
fn:
|
|
74
|
-
e.title ? (
|
|
73
|
+
fn: a(() => [
|
|
74
|
+
e.title ? (o(), u("span", B, p(e.title), 1)) : x(c.$slots, "title", { key: 1 })
|
|
75
75
|
]),
|
|
76
76
|
key: "0"
|
|
77
77
|
} : void 0
|
|
@@ -79,5 +79,5 @@ const B = { key: 0 }, D = { class: "flex flex-1 flex-col gap-1.5" }, F = ["for"]
|
|
|
79
79
|
}
|
|
80
80
|
});
|
|
81
81
|
export {
|
|
82
|
-
|
|
82
|
+
R as default
|
|
83
83
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useBindCx as
|
|
3
|
-
const g = ["for"], y = ["id", "placeholder", "value"],
|
|
1
|
+
import { defineComponent as m, createElementBlock as o, openBlock as n, normalizeProps as i, guardReactiveProps as f, unref as l, Fragment as v, createElementVNode as c, mergeProps as a, toDisplayString as h } from "vue";
|
|
2
|
+
import { useBindCx as x } from "@scalar/components";
|
|
3
|
+
const g = ["for"], y = ["id", "placeholder", "value"], k = /* @__PURE__ */ m({
|
|
4
4
|
__name: "LabelInput",
|
|
5
5
|
props: {
|
|
6
6
|
inputId: {},
|
|
@@ -9,21 +9,21 @@ const g = ["for"], y = ["id", "placeholder", "value"], b = /* @__PURE__ */ c({
|
|
|
9
9
|
layout: {}
|
|
10
10
|
},
|
|
11
11
|
emits: ["updateValue"],
|
|
12
|
-
setup(
|
|
13
|
-
const s =
|
|
14
|
-
const
|
|
15
|
-
s("updateValue",
|
|
12
|
+
setup(e, { emit: p }) {
|
|
13
|
+
const s = p, { cx: t } = x(), d = (u) => {
|
|
14
|
+
const r = u.target;
|
|
15
|
+
s("updateValue", r.value);
|
|
16
16
|
};
|
|
17
|
-
return (
|
|
18
|
-
e.layout !== "modal" ? (n(),
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
return (u, r) => (n(), o("div", i(f(l(t)("flex-1 flex gap-1 items-center pointer-events-none group"))), [
|
|
18
|
+
e.layout !== "modal" ? (n(), o(v, { key: 0 }, [
|
|
19
|
+
c("label", a(
|
|
20
|
+
l(t)(
|
|
21
21
|
"absolute w-full h-full top-0 left-0 pointer-events-auto opacity-0 cursor-text"
|
|
22
22
|
),
|
|
23
23
|
{ for: e.inputId }
|
|
24
24
|
), null, 16, g),
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
c("input", a(
|
|
26
|
+
l(t)(
|
|
27
27
|
"flex-1 text-c-1 rounded pointer-events-auto relative w-full pl-1.25 -ml-0.5 md:-ml-1.25 h-8 group-hover-input has-[:focus-visible]:outline z-10"
|
|
28
28
|
),
|
|
29
29
|
{
|
|
@@ -33,10 +33,10 @@ const g = ["for"], y = ["id", "placeholder", "value"], b = /* @__PURE__ */ c({
|
|
|
33
33
|
onInput: d
|
|
34
34
|
}
|
|
35
35
|
), null, 16, y)
|
|
36
|
-
], 64)) : (n(),
|
|
36
|
+
], 64)) : (n(), o("span", i(a({ key: 1 }, l(t)("flex items-center text-c-1 h-8"))), h(e.value), 17))
|
|
37
37
|
], 16));
|
|
38
38
|
}
|
|
39
39
|
});
|
|
40
40
|
export {
|
|
41
|
-
|
|
41
|
+
k as default
|
|
42
42
|
};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as n, createElementBlock as o, openBlock as t, renderSlot as l } from "vue";
|
|
2
|
+
const f = ["href"], c = /* @__PURE__ */ n({
|
|
3
3
|
__name: "HelpfulLink",
|
|
4
4
|
props: {
|
|
5
5
|
href: {}
|
|
6
6
|
},
|
|
7
|
-
setup(
|
|
8
|
-
return (
|
|
7
|
+
setup(e) {
|
|
8
|
+
return (r, s) => (t(), o("a", {
|
|
9
9
|
class: "decoration-c-3 cursor-help underline underline-offset-2",
|
|
10
10
|
href: e.href,
|
|
11
11
|
rel: "noopener noreferrer",
|
|
12
12
|
target: "_blank"
|
|
13
13
|
}, [
|
|
14
|
-
|
|
15
|
-
], 8,
|
|
14
|
+
l(r.$slots, "default")
|
|
15
|
+
], 8, f));
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
export {
|
|
19
|
-
|
|
19
|
+
c as default
|
|
20
20
|
};
|