@scalar/api-client 3.26.0 → 3.27.1
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 +26 -0
- package/dist/_virtual/_plugin-vue_export-helper.js +1 -2
- package/dist/assets/computer.ascii_raw.js +1 -2
- package/dist/components/HelpfulLink.vue.js +1 -2
- package/dist/components/HelpfulLink.vue.js.map +1 -1
- package/dist/components/HelpfulLink.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/components/HttpMethod/HttpMethod.vue.js +1 -2
- package/dist/components/HttpMethod/HttpMethod.vue.js.map +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/components/ScalarAsciiArt/ScalarAsciiArt.vue.js +2 -3
- package/dist/components/ScalarAsciiArt/ScalarAsciiArt.vue.js.map +1 -1
- package/dist/components/ScalarAsciiArt/ScalarAsciiArt.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/components/SectionFilter.vue.js +2 -3
- package/dist/components/SectionFilter.vue.js.map +1 -1
- package/dist/components/SectionFilter.vue_vue_type_script_setup_true_lang.js +2 -3
- package/dist/components/SectionFilterButton.vue.js +1 -2
- package/dist/components/SectionFilterButton.vue.js.map +1 -1
- package/dist/components/SectionFilterButton.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/components/Server/ServerVariablesForm.vue.js +1 -2
- package/dist/components/Server/ServerVariablesForm.vue.js.map +1 -1
- package/dist/components/Server/ServerVariablesForm.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/components/Server/ServerVariablesForm.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/Server/ServerVariablesSelect.vue.js +1 -2
- package/dist/components/Server/ServerVariablesSelect.vue.js.map +1 -1
- package/dist/components/Server/ServerVariablesSelect.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/components/Server/ServerVariablesSelect.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/Server/ServerVariablesTextbox.vue.js +1 -2
- package/dist/components/Server/ServerVariablesTextbox.vue.js.map +1 -1
- package/dist/components/Server/ServerVariablesTextbox.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.js +1 -2
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.js.map +1 -1
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue_vue_type_script_setup_true_lang.js +2 -3
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +1 -2
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js.map +1 -1
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/components/ViewLayout/ViewLayout.vue.js +1 -2
- package/dist/components/ViewLayout/ViewLayout.vue.js.map +1 -1
- package/dist/components/ViewLayout/ViewLayout.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/components/ViewLayout/ViewLayoutContent.vue.js +1 -2
- package/dist/components/ViewLayout/ViewLayoutSection.vue.js +1 -2
- package/dist/components/ViewLayout/ViewLayoutSection.vue.js.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutSection.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/components/ViewLayout/ViewLayoutSection.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/hooks/use-file-dialog.js +1 -2
- package/dist/plugins/posthog/index.js +1 -2
- package/dist/plugins/posthog/sanitize-event-payload.js +1 -2
- package/dist/style.css +514 -456
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.js +1 -2
- package/dist/v2/blocks/operation-block/OperationBlock.vue.js.map +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue_vue_type_script_setup_true_lang.js +11 -7
- package/dist/v2/blocks/operation-block/OperationBlock.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/v2/blocks/operation-block/components/Header.vue.js +2 -3
- package/dist/v2/blocks/operation-block/components/Header.vue.js.map +1 -1
- package/dist/v2/blocks/operation-block/components/Header.vue_vue_type_script_setup_true_lang.js +3 -4
- package/dist/v2/blocks/operation-block/components/Header.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/v2/blocks/operation-block/components/OpenApiClientButton.vue.js +2 -3
- package/dist/v2/blocks/operation-block/components/OpenApiClientButton.vue.js.map +1 -1
- package/dist/v2/blocks/operation-block/components/OpenApiClientButton.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/v2/blocks/operation-block/helpers/decode-buffer.js +1 -2
- package/dist/v2/blocks/operation-block/helpers/get-cookie-header-keys.js +1 -2
- package/dist/v2/blocks/operation-block/helpers/har-to-fetch-request.js +1 -2
- package/dist/v2/blocks/operation-block/helpers/har-to-fetch-response.js +1 -2
- package/dist/v2/blocks/operation-block/helpers/persist-response-cookies.js +1 -2
- package/dist/v2/blocks/operation-block/helpers/persist-script-environment.js +1 -2
- package/dist/v2/blocks/operation-block/helpers/response-cache.js +1 -2
- package/dist/v2/blocks/operation-block/helpers/send-request.js +1 -2
- package/dist/v2/blocks/operation-block/helpers/validate-path-parameters.js +1 -2
- package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts +2 -0
- package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue.js +3 -4
- package/dist/v2/blocks/request-block/RequestBlock.vue.js.map +1 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue_vue_type_script_setup_true_lang.js +13 -7
- package/dist/v2/blocks/request-block/RequestBlock.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts +2 -0
- package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestBody.vue.js +3 -4
- package/dist/v2/blocks/request-block/components/RequestBody.vue.js.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestBody.vue_vue_type_script_setup_true_lang.js +17 -13
- package/dist/v2/blocks/request-block/components/RequestBody.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.js +1 -2
- package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.js.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestBodyForm.vue_vue_type_script_setup_true_lang.js +89 -17
- package/dist/v2/blocks/request-block/components/RequestBodyForm.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestBodyMultipart.vue.d.ts +3 -0
- package/dist/v2/blocks/request-block/components/RequestBodyMultipart.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestBodyMultipart.vue.js +1 -2
- package/dist/v2/blocks/request-block/components/RequestBodyMultipart.vue.js.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestBodyMultipart.vue_vue_type_script_setup_true_lang.js +9 -4
- package/dist/v2/blocks/request-block/components/RequestBodyMultipart.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestBodyStructured.vue.js +1 -2
- package/dist/v2/blocks/request-block/components/RequestBodyStructured.vue.js.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestBodyStructured.vue_vue_type_script_setup_true_lang.js +2 -3
- package/dist/v2/blocks/request-block/components/RequestBodyViewToggle.vue.js +1 -2
- package/dist/v2/blocks/request-block/components/RequestBodyViewToggle.vue.js.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestBodyViewToggle.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/v2/blocks/request-block/components/RequestBodyViewToggle.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.js +1 -2
- package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.js.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue_vue_type_script_setup_true_lang.js +4 -3
- package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestParams.vue.js +1 -2
- package/dist/v2/blocks/request-block/components/RequestParams.vue.js.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestParams.vue_vue_type_script_setup_true_lang.js +2 -3
- package/dist/v2/blocks/request-block/components/RequestParams.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts +6 -4
- 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 -4
- package/dist/v2/blocks/request-block/components/RequestTable.vue.js.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTable.vue_vue_type_script_setup_true_lang.js +6 -5
- package/dist/v2/blocks/request-block/components/RequestTable.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTableFileList.vue.d.ts +35 -0
- package/dist/v2/blocks/request-block/components/RequestTableFileList.vue.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/components/RequestTableFileList.vue.js +6 -0
- package/dist/v2/blocks/request-block/components/RequestTableFileList.vue.js.map +1 -0
- package/dist/v2/blocks/request-block/components/RequestTableFileList.vue_vue_type_script_setup_true_lang.js +110 -0
- package/dist/v2/blocks/request-block/components/RequestTableFileList.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts +9 -4
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.js +1 -2
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.js.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue_vue_type_script_setup_true_lang.js +70 -23
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue.js +1 -2
- package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue.js.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue_vue_type_script_setup_true_lang.js +24 -20
- package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.js +1 -2
- package/dist/v2/blocks/request-block/helpers/create-parameter-rows.d.ts +2 -0
- package/dist/v2/blocks/request-block/helpers/create-parameter-rows.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/helpers/create-parameter-rows.js +6 -3
- package/dist/v2/blocks/request-block/helpers/create-parameter-rows.js.map +1 -1
- package/dist/v2/blocks/request-block/helpers/files.js +1 -2
- package/dist/v2/blocks/request-block/helpers/fold-structured-body-rows.js +1 -2
- package/dist/v2/blocks/request-block/helpers/get-form-body-rows.js +1 -2
- package/dist/v2/blocks/request-block/helpers/get-parameter-content.js +1 -2
- package/dist/v2/blocks/request-block/helpers/get-parameter-schema.js +1 -2
- package/dist/v2/blocks/request-block/helpers/get-structured-body-rows.js +1 -2
- package/dist/v2/blocks/request-block/helpers/group-by.js +1 -2
- package/dist/v2/blocks/request-block/helpers/group-form-body-files.d.ts +9 -0
- package/dist/v2/blocks/request-block/helpers/group-form-body-files.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/helpers/group-form-body-files.js +59 -0
- package/dist/v2/blocks/request-block/helpers/group-form-body-files.js.map +1 -0
- package/dist/v2/blocks/request-block/helpers/group-global-cookies.js +1 -2
- package/dist/v2/blocks/request-block/helpers/multipart-body.js +1 -2
- package/dist/v2/blocks/request-block/helpers/structured-body-codec.js +1 -2
- package/dist/v2/blocks/request-block/helpers/validate-parameter.js +1 -2
- package/dist/v2/blocks/response-block/ResponseBlock.vue.js +2 -3
- package/dist/v2/blocks/response-block/ResponseBlock.vue.js.map +1 -1
- package/dist/v2/blocks/response-block/ResponseBlock.vue_vue_type_script_setup_true_lang.js +4 -5
- package/dist/v2/blocks/response-block/ResponseBlock.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/v2/blocks/response-block/components/Headers.vue.js +1 -2
- package/dist/v2/blocks/response-block/components/Headers.vue.js.map +1 -1
- package/dist/v2/blocks/response-block/components/Headers.vue_vue_type_script_setup_true_lang.js +3 -4
- package/dist/v2/blocks/response-block/components/ResponseBody.vue.js +2 -3
- package/dist/v2/blocks/response-block/components/ResponseBody.vue.js.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBody.vue_vue_type_script_setup_true_lang.js +5 -6
- package/dist/v2/blocks/response-block/components/ResponseBody.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyDownload.vue.js +1 -2
- package/dist/v2/blocks/response-block/components/ResponseBodyDownload.vue.js.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyDownload.vue_vue_type_script_setup_true_lang.js +2 -3
- package/dist/v2/blocks/response-block/components/ResponseBodyInfo.vue.js +1 -2
- package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue.js +2 -3
- package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue.js.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue_vue_type_script_setup_true_lang.js +2 -3
- package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue.js +2 -3
- package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue.js.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyStreaming.vue.js +1 -2
- package/dist/v2/blocks/response-block/components/ResponseBodyStreaming.vue.js.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyStreaming.vue_vue_type_script_setup_true_lang.js +2 -3
- package/dist/v2/blocks/response-block/components/ResponseBodyStreaming.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyToggle.vue.js +1 -2
- package/dist/v2/blocks/response-block/components/ResponseBodyToggle.vue.js.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyToggle.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/v2/blocks/response-block/components/ResponseBodyVirtual.vue.js +1 -2
- package/dist/v2/blocks/response-block/components/ResponseBodyVirtual.vue.js.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyVirtual.vue_vue_type_script_setup_true_lang.js +3 -4
- package/dist/v2/blocks/response-block/components/ResponseCookies.vue.js +1 -2
- package/dist/v2/blocks/response-block/components/ResponseCookies.vue.js.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseCookies.vue_vue_type_script_setup_true_lang.js +2 -3
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.js +2 -3
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.js.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue_vue_type_script_setup_true_lang.js +3 -4
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue.js +2 -3
- package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue.js.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseMetaInformation.vue.js +1 -2
- package/dist/v2/blocks/response-block/components/ResponseMetaInformation.vue.js.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseMetaInformation.vue_vue_type_script_setup_true_lang.js +2 -3
- package/dist/v2/blocks/response-block/components/ResponseMetaInformation.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/v2/blocks/response-block/helpers/extract-filename.js +1 -2
- package/dist/v2/blocks/response-block/helpers/get-content-length.js +1 -2
- package/dist/v2/blocks/response-block/helpers/media-types.js +1 -2
- package/dist/v2/blocks/response-block/helpers/parse-set-cookie.js +1 -2
- package/dist/v2/blocks/response-block/helpers/prettify-jsonc-string.js +1 -2
- package/dist/v2/blocks/response-block/helpers/prettify-ndjson.js +1 -2
- package/dist/v2/blocks/response-block/helpers/process-response-body.js +1 -2
- package/dist/v2/blocks/response-block/helpers/resolve-response-body-handler.js +1 -2
- package/dist/v2/blocks/response-block/helpers/resolve-response-content-type.js +1 -2
- package/dist/v2/blocks/response-block/helpers/response-stream-multipart.js +1 -2
- package/dist/v2/blocks/response-block/helpers/response-stream.js +1 -2
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +2 -3
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js.map +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue_vue_type_script_setup_true_lang.js +3 -4
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue.js +2 -3
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue.js.map +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue_vue_type_script_setup_true_lang.js +2 -3
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/EnvironmentSelector.vue.js +1 -2
- package/dist/v2/blocks/scalar-address-bar-block/components/EnvironmentSelector.vue.js.map +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/EnvironmentSelector.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/v2/blocks/scalar-address-bar-block/components/EnvironmentSelector.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.js +1 -2
- package/dist/v2/blocks/scalar-address-bar-block/helpers/is-placeholder-path.js +1 -2
- package/dist/v2/blocks/scalar-address-bar-block/helpers/refocus-blur-target.js +1 -2
- package/dist/v2/blocks/scalar-address-bar-block/hooks/use-loading-animation.js +1 -2
- package/dist/v2/blocks/scalar-address-bar-block/hooks/use-path-masking.js +1 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +1 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue_vue_type_script_setup_true_lang.js +3 -4
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.js +1 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.js.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +1 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue_vue_type_script_setup_true_lang.js +4 -5
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2Metadata.vue.js +1 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2Metadata.vue.js.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2Metadata.vue_vue_type_script_setup_true_lang.js +3 -4
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2Metadata.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.js +1 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.js.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue_vue_type_script_setup_true_lang.js +2 -3
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js +1 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue_vue_type_script_setup_true_lang.js +2 -3
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue.js +1 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue.js.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue_vue_type_script_setup_true_lang.js +4 -5
- package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js +1 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue_vue_type_script_setup_true_lang.js +2 -3
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.js +1 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.js.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue_vue_type_script_setup_true_lang.js +2 -3
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +1 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue_vue_type_script_setup_true_lang.js +7 -8
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/auth-options.js +1 -2
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/fetch-oauth2-metadata.js +3 -4
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/fetch-oauth2-metadata.js.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/fetch-openid-connect-discovery.d.ts +8 -8
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/fetch-openid-connect-discovery.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/fetch-openid-connect-discovery.js +10 -12
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/fetch-openid-connect-discovery.js.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth-callback.js +1 -2
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth-client-authorization.js +1 -2
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth-device-authorization.js +2 -3
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth-flows.js +1 -2
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js +1 -2
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth2-metadata-to-flows.js +1 -2
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/openid-discovery-to-flows.js +2 -3
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/resolve-default-oauth2-redirect-url.js +1 -2
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/run-oauth2-authorize.js +1 -2
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.js +2 -3
- package/dist/v2/components/code-input/CodeInput.vue.js +2 -3
- package/dist/v2/components/code-input/CodeInput.vue.js.map +1 -1
- package/dist/v2/components/code-input/CodeInput.vue_vue_type_script_setup_true_lang.js +2 -3
- package/dist/v2/components/code-input/CodeInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/v2/components/code-input/CodeInputLite.vue.js +2 -3
- package/dist/v2/components/code-input/CodeInputLite.vue.js.map +1 -1
- package/dist/v2/components/code-input/CodeInputLite.vue_vue_type_script_setup_true_lang.js +4 -5
- package/dist/v2/components/code-input/CodeInputLite.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/v2/components/code-input/PillTooltipHost.vue.js +1 -2
- package/dist/v2/components/code-input/PillTooltipHost.vue.js.map +1 -1
- package/dist/v2/components/code-input/PillTooltipHost.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/v2/components/code-input/code-variable-widget.js +1 -2
- package/dist/v2/components/code-input/helpers/build-pill-context.js +1 -2
- package/dist/v2/components/code-input/helpers/lookup-variable-value.js +1 -2
- package/dist/v2/components/code-input/helpers/pill-signature.js +1 -2
- package/dist/v2/components/code-input/helpers/serialize-value.js +1 -2
- package/dist/v2/components/context-menu/ContextMenu.vue.js +1 -2
- package/dist/v2/components/context-menu/ContextMenu.vue.js.map +1 -1
- package/dist/v2/components/context-menu/ContextMenu.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/v2/components/data-table/DataTable.vue.js +1 -2
- package/dist/v2/components/data-table/DataTable.vue.js.map +1 -1
- package/dist/v2/components/data-table/DataTable.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/v2/components/data-table/DataTable.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/v2/components/data-table/DataTableCell.vue.js +1 -2
- package/dist/v2/components/data-table/DataTableCell.vue.js.map +1 -1
- package/dist/v2/components/data-table/DataTableCell.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/v2/components/data-table/DataTableCheckbox.vue.d.ts +1 -0
- package/dist/v2/components/data-table/DataTableCheckbox.vue.d.ts.map +1 -1
- package/dist/v2/components/data-table/DataTableCheckbox.vue.js +1 -2
- package/dist/v2/components/data-table/DataTableCheckbox.vue.js.map +1 -1
- package/dist/v2/components/data-table/DataTableCheckbox.vue_vue_type_script_setup_true_lang.js +15 -6
- package/dist/v2/components/data-table/DataTableCheckbox.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/v2/components/data-table/DataTableHeader.vue.js +1 -2
- package/dist/v2/components/data-table/DataTableHeader.vue.js.map +1 -1
- package/dist/v2/components/data-table/DataTableHeader.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/v2/components/data-table/DataTableInput.vue.js +2 -3
- package/dist/v2/components/data-table/DataTableInput.vue.js.map +1 -1
- package/dist/v2/components/data-table/DataTableInput.vue_vue_type_script_setup_true_lang.js +3 -4
- package/dist/v2/components/data-table/DataTableInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/v2/components/data-table/DataTableInputSelect.vue.js +1 -2
- package/dist/v2/components/data-table/DataTableInputSelect.vue.js.map +1 -1
- package/dist/v2/components/data-table/DataTableInputSelect.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/v2/components/data-table/DataTableInputSelect.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/v2/components/data-table/DataTableRow.vue.js +1 -2
- package/dist/v2/components/data-table/DataTableText.vue.js +1 -2
- package/dist/v2/components/data-table/DataTableText.vue.js.map +1 -1
- package/dist/v2/components/data-table/DataTableText.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/v2/components/data-table/index.js +1 -1
- package/dist/v2/components/forms/ConfirmationForm.vue.js +1 -2
- package/dist/v2/components/forms/ConfirmationForm.vue.js.map +1 -1
- package/dist/v2/components/forms/ConfirmationForm.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/v2/components/layout/CollapsibleSection.vue.js +1 -2
- package/dist/v2/components/layout/CollapsibleSection.vue.js.map +1 -1
- package/dist/v2/components/layout/CollapsibleSection.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/v2/components/layout/CollapsibleSection.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/v2/components/layout/ValueEmitter.vue.js +1 -2
- package/dist/v2/components/layout/ValueEmitter.vue.js.map +1 -1
- package/dist/v2/components/layout/ValueEmitter.vue_vue_type_script_setup_true_lang.js +0 -1
- package/dist/v2/components/layout/collapsible-section-heading-level.js +1 -2
- package/dist/v2/components/layout/index.js +1 -1
- package/dist/v2/components/modals/DeleteModal.vue.js +1 -2
- package/dist/v2/components/modals/DeleteModal.vue.js.map +1 -1
- package/dist/v2/components/modals/DeleteModal.vue_vue_type_script_setup_true_lang.js +2 -3
- package/dist/v2/components/modals/DeleteModal.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/v2/components/modals/ModalClientContainer.vue.js +2 -3
- package/dist/v2/components/modals/ModalClientContainer.vue.js.map +1 -1
- package/dist/v2/components/modals/ModalClientContainer.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/v2/components/resize/Resize.vue.js +2 -3
- package/dist/v2/components/resize/Resize.vue.js.map +1 -1
- package/dist/v2/components/resize/Resize.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/v2/components/resize/use-split-resize.js +1 -2
- package/dist/v2/components/server/ServerDropdown.vue.js +1 -2
- package/dist/v2/components/server/ServerDropdown.vue.js.map +1 -1
- package/dist/v2/components/server/ServerDropdown.vue_vue_type_script_setup_true_lang.js +2 -3
- package/dist/v2/components/server/ServerDropdown.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/v2/components/server/ServerDropdownItem.vue.js +2 -3
- package/dist/v2/components/server/ServerDropdownItem.vue.js.map +1 -1
- package/dist/v2/components/server/ServerDropdownItem.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/v2/components/server/ServerDropdownItem.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/v2/components/sidebar/Sidebar.vue.js +1 -2
- package/dist/v2/components/sidebar/Sidebar.vue.js.map +1 -1
- package/dist/v2/components/sidebar/Sidebar.vue_vue_type_script_setup_true_lang.js +2 -3
- package/dist/v2/components/sidebar/Sidebar.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/v2/components/sidebar/SidebarMenu.vue.js +1 -2
- package/dist/v2/components/sidebar/SidebarMenu.vue.js.map +1 -1
- package/dist/v2/components/sidebar/SidebarMenu.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/v2/components/sidebar/SidebarToggle.vue.js +2 -3
- package/dist/v2/components/sidebar/SidebarToggle.vue.js.map +1 -1
- package/dist/v2/components/sidebar/SidebarToggle.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/v2/components/sidebar/index.js +1 -1
- package/dist/v2/constants.js +2 -3
- package/dist/v2/features/command-palette/components/CommandActionForm.vue.js +1 -2
- package/dist/v2/features/command-palette/components/CommandActionForm.vue.js.map +1 -1
- package/dist/v2/features/command-palette/components/CommandActionForm.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/v2/features/command-palette/components/CommandActionInput.vue.js +1 -2
- package/dist/v2/features/command-palette/components/CommandActionInput.vue.js.map +1 -1
- package/dist/v2/features/command-palette/components/CommandActionInput.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/v2/features/environments/EnvironmentsList.vue.js +1 -2
- package/dist/v2/features/environments/EnvironmentsList.vue.js.map +1 -1
- package/dist/v2/features/environments/EnvironmentsList.vue_vue_type_script_setup_true_lang.js +2 -3
- package/dist/v2/features/environments/components/Environment.vue.js +1 -2
- package/dist/v2/features/environments/components/Environment.vue.js.map +1 -1
- package/dist/v2/features/environments/components/Environment.vue_vue_type_script_setup_true_lang.js +2 -3
- package/dist/v2/features/environments/components/Environment.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/v2/features/environments/components/EnvironmentColors.vue.d.ts.map +1 -1
- package/dist/v2/features/environments/components/EnvironmentColors.vue.js +1 -2
- package/dist/v2/features/environments/components/EnvironmentColors.vue.js.map +1 -1
- package/dist/v2/features/environments/components/EnvironmentColors.vue_vue_type_script_setup_true_lang.js +9 -10
- package/dist/v2/features/environments/components/EnvironmentColors.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.js +1 -2
- package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.js.map +1 -1
- package/dist/v2/features/environments/components/EnvironmentCreateModal.vue_vue_type_script_setup_true_lang.js +2 -3
- package/dist/v2/features/environments/components/EnvironmentCreateModal.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.js +1 -2
- package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.js.map +1 -1
- package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.js +1 -2
- package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.js.map +1 -1
- package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.js +2 -3
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.js.map +1 -1
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue_vue_type_script_setup_true_lang.js +2 -3
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/v2/features/localization/index.js +1 -2
- package/dist/v2/features/localization/locales/ar.d.ts +4 -0
- package/dist/v2/features/localization/locales/ar.d.ts.map +1 -1
- package/dist/v2/features/localization/locales/ar.js +5 -2
- package/dist/v2/features/localization/locales/ar.js.map +1 -1
- package/dist/v2/features/localization/locales/de.d.ts +4 -0
- package/dist/v2/features/localization/locales/de.d.ts.map +1 -1
- package/dist/v2/features/localization/locales/de.js +5 -2
- package/dist/v2/features/localization/locales/de.js.map +1 -1
- package/dist/v2/features/localization/locales/es.d.ts +4 -0
- package/dist/v2/features/localization/locales/es.d.ts.map +1 -1
- package/dist/v2/features/localization/locales/es.js +5 -2
- package/dist/v2/features/localization/locales/es.js.map +1 -1
- package/dist/v2/features/localization/locales/fr.d.ts +4 -0
- package/dist/v2/features/localization/locales/fr.d.ts.map +1 -1
- package/dist/v2/features/localization/locales/fr.js +5 -2
- package/dist/v2/features/localization/locales/fr.js.map +1 -1
- package/dist/v2/features/localization/locales/pt.d.ts +4 -0
- package/dist/v2/features/localization/locales/pt.d.ts.map +1 -1
- package/dist/v2/features/localization/locales/pt.js +5 -2
- package/dist/v2/features/localization/locales/pt.js.map +1 -1
- package/dist/v2/features/localization/locales/ru.d.ts +4 -0
- package/dist/v2/features/localization/locales/ru.d.ts.map +1 -1
- package/dist/v2/features/localization/locales/ru.js +5 -2
- package/dist/v2/features/localization/locales/ru.js.map +1 -1
- package/dist/v2/features/localization/locales/zh-cn.d.ts +4 -0
- package/dist/v2/features/localization/locales/zh-cn.d.ts.map +1 -1
- package/dist/v2/features/localization/locales/zh-cn.js +5 -2
- package/dist/v2/features/localization/locales/zh-cn.js.map +1 -1
- package/dist/v2/features/localization/locales/zh-tw.d.ts +4 -0
- package/dist/v2/features/localization/locales/zh-tw.d.ts.map +1 -1
- package/dist/v2/features/localization/locales/zh-tw.js +5 -2
- package/dist/v2/features/localization/locales/zh-tw.js.map +1 -1
- package/dist/v2/features/localization/translations.d.ts +4 -0
- package/dist/v2/features/localization/translations.d.ts.map +1 -1
- package/dist/v2/features/localization/translations.js +5 -2
- package/dist/v2/features/localization/translations.js.map +1 -1
- package/dist/v2/features/modal/Modal.vue.js +1 -2
- package/dist/v2/features/modal/Modal.vue.js.map +1 -1
- package/dist/v2/features/modal/Modal.vue_vue_type_script_setup_true_lang.js +4 -5
- package/dist/v2/features/modal/helpers/create-api-client-modal.js +1 -2
- package/dist/v2/features/modal/helpers/map-hidden-clients-config.js +1 -2
- package/dist/v2/features/modal/helpers/resolve-route-parameters.js +1 -2
- package/dist/v2/features/modal/hooks/use-modal-sidebar.js +1 -2
- package/dist/v2/features/modal/index.js +2 -2
- package/dist/v2/features/modal/modal-events.js +1 -2
- package/dist/v2/features/modal/use-lazy-api-client.js +1 -2
- package/dist/v2/features/operation/Operation.vue.js +1 -2
- package/dist/v2/features/operation/Operation.vue.js.map +1 -1
- package/dist/v2/features/operation/Operation.vue_vue_type_script_setup_true_lang.js +2 -3
- package/dist/v2/features/search/components/DocumentSearchModal.vue.js +2 -3
- package/dist/v2/features/search/components/DocumentSearchModal.vue.js.map +1 -1
- package/dist/v2/features/search/components/DocumentSearchModal.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/v2/features/search/components/SearchResult.vue.js +1 -2
- package/dist/v2/features/search/components/SearchResult.vue.js.map +1 -1
- package/dist/v2/features/search/components/SearchResult.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/v2/features/search/components/SearchResult.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/v2/features/search/helpers/create-fuse-instance.js +1 -2
- package/dist/v2/features/search/helpers/create-search-index.js +1 -2
- package/dist/v2/features/search/hooks/use-document-search.js +1 -2
- package/dist/v2/features/search/hooks/use-search-index.js +1 -2
- package/dist/v2/features/search/index.js +1 -1
- package/dist/v2/helpers/generate-location-id.js +1 -2
- package/dist/v2/helpers/handle-hotkeys.js +1 -2
- package/dist/v2/helpers/test-utils.js +1 -2
- package/dist/v2/hooks/use-global-hot-keys.js +1 -2
- package/dist/v2/hooks/use-scroll-lock.js +1 -2
- package/dist/v2/workspace-events.js +1 -2
- package/dist/vue-styles.css +130 -130
- package/package.json +30 -30
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { getFileName } from "../helpers/files.js";
|
|
2
|
+
import { validateParameter } from "../helpers/validate-parameter.js";
|
|
3
3
|
import CodeInputLite_default from "../../../components/code-input/CodeInputLite.vue.js";
|
|
4
4
|
import DataTableCell_default from "../../../components/data-table/DataTableCell.vue.js";
|
|
5
5
|
import DataTableCheckbox_default from "../../../components/data-table/DataTableCheckbox.vue.js";
|
|
6
|
+
import DataTableInputSelect_default from "../../../components/data-table/DataTableInputSelect.vue.js";
|
|
6
7
|
import DataTableRow_default from "../../../components/data-table/DataTableRow.vue.js";
|
|
7
|
-
import {
|
|
8
|
-
import { validateParameter } from "../helpers/validate-parameter.js";
|
|
8
|
+
import { useLocalization } from "../../../features/localization/index.js";
|
|
9
9
|
import RequestTableTooltip_default from "./RequestTableTooltip.vue.js";
|
|
10
|
+
import RequestTableFileList_default from "./RequestTableFileList.vue.js";
|
|
10
11
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, normalizeClass, openBlock, ref, toDisplayString, unref, useTemplateRef, watch, withCtx } from "vue";
|
|
11
12
|
import { ScalarButton } from "@scalar/components/button";
|
|
12
13
|
import { ScalarIconGlobe, ScalarIconTrash } from "@scalar/icons";
|
|
@@ -14,8 +15,9 @@ import { ScalarIcon } from "@scalar/components/icon";
|
|
|
14
15
|
import { ScalarIconButton } from "@scalar/components/icon-button";
|
|
15
16
|
import { unpackProxyObject } from "@scalar/workspace-store/helpers/unpack-proxy";
|
|
16
17
|
import { resolve } from "@scalar/workspace-store/resolve";
|
|
18
|
+
import { isArraySchema } from "@scalar/workspace-store/schemas/v3.2/strict/type-guards";
|
|
17
19
|
import { isFileSchema } from "@scalar/workspace-store/helpers/is-file-schema";
|
|
18
|
-
|
|
20
|
+
// src/v2/blocks/request-block/components/RequestTableRow.vue?vue&type=script&setup=true&lang.ts
|
|
19
21
|
var _hoisted_1 = { class: "text-c-2 flex w-full max-w-[100%] items-center justify-center overflow-hidden p-1" };
|
|
20
22
|
var _hoisted_2 = ["title"];
|
|
21
23
|
var _hoisted_3 = {
|
|
@@ -50,6 +52,7 @@ var RequestTableRow_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
|
|
|
50
52
|
"deleteRow",
|
|
51
53
|
"uploadFile",
|
|
52
54
|
"removeFile",
|
|
55
|
+
"updateFile",
|
|
53
56
|
"navigate",
|
|
54
57
|
"selectPreset"
|
|
55
58
|
],
|
|
@@ -57,7 +60,11 @@ var RequestTableRow_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
|
|
|
57
60
|
const emit = __emit;
|
|
58
61
|
const { translate } = useLocalization();
|
|
59
62
|
const valueInput = useTemplateRef("valueInput");
|
|
60
|
-
|
|
63
|
+
const fileList = useTemplateRef("fileList");
|
|
64
|
+
__expose({ focusValue: () => {
|
|
65
|
+
if (__props.data.files) fileList.value?.focusUpload();
|
|
66
|
+
else valueInput.value?.focus();
|
|
67
|
+
} });
|
|
61
68
|
const name = ref(__props.data.name ?? "");
|
|
62
69
|
const value = ref(unpackProxyObject(__props.data.value) ?? "");
|
|
63
70
|
const isDisabled = ref(__props.data.isDisabled ?? false);
|
|
@@ -71,6 +78,8 @@ var RequestTableRow_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
|
|
|
71
78
|
const isFile = computed(() => value.value instanceof File);
|
|
72
79
|
/** Whether this row’s schema accepts a file part. */
|
|
73
80
|
const canUploadFile = computed(() => __props.data.schema ? isFileSchema(__props.data.schema, true, __props.data.contentType) : __props.allowUnknownFileUploads);
|
|
81
|
+
const fileUploadLabel = computed(() => translate(__props.data.schema && isArraySchema(__props.data.schema) ? "apiClient.requestTableRow.selectFiles" : "apiClient.requestTableRow.selectFile"));
|
|
82
|
+
const hasMixedFileSelection = computed(() => Boolean(__props.data.files?.some((file) => file.isDisabled) && __props.data.files.some((file) => !file.isDisabled)));
|
|
74
83
|
/** Display value handles File instances and shows filename instead */
|
|
75
84
|
const displayValue = computed(() => (isFile.value ? getFileName(value.value) : value.value) ?? "");
|
|
76
85
|
const defaultValue = computed(() => __props.data.schema?.default);
|
|
@@ -134,16 +143,19 @@ var RequestTableRow_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
|
|
|
134
143
|
default: withCtx(() => [
|
|
135
144
|
createVNode(unref(DataTableCheckbox_default), {
|
|
136
145
|
ariaLabel: unref(translate)("apiClient.requestTableRow.include", { name: __props.data.name || unref(translate)("apiClient.requestTableRow.row") }),
|
|
137
|
-
class: "!border-r",
|
|
146
|
+
class: normalizeClass(["!border-r", { "max-h-none": __props.data.files }]),
|
|
138
147
|
disabled: __props.hasCheckboxDisabled ?? false,
|
|
148
|
+
indeterminate: hasMixedFileSelection.value,
|
|
139
149
|
modelValue: !isDisabled.value,
|
|
140
150
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = (v) => handleUpdateRow({ isDisabled: !v }))
|
|
141
151
|
}, null, 8, [
|
|
142
152
|
"ariaLabel",
|
|
153
|
+
"class",
|
|
143
154
|
"disabled",
|
|
155
|
+
"indeterminate",
|
|
144
156
|
"modelValue"
|
|
145
157
|
]),
|
|
146
|
-
createVNode(unref(DataTableCell_default),
|
|
158
|
+
createVNode(unref(DataTableCell_default), { class: normalizeClass({ "max-h-none": __props.data.files }) }, {
|
|
147
159
|
default: withCtx(() => [createVNode(unref(CodeInputLite_default), {
|
|
148
160
|
"aria-label": unref(translate)("apiClient.requestTableRow.keyLabel", { name: __props.label ?? "" }),
|
|
149
161
|
disabled: __props.data.isReadonly,
|
|
@@ -164,14 +176,46 @@ var RequestTableRow_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
|
|
|
164
176
|
"required"
|
|
165
177
|
])]),
|
|
166
178
|
_: 1
|
|
167
|
-
}),
|
|
168
|
-
|
|
179
|
+
}, 8, ["class"]),
|
|
180
|
+
__props.data.files ? (openBlock(), createBlock(unref(DataTableCell_default), {
|
|
181
|
+
key: 0,
|
|
182
|
+
class: "col-span-2 max-h-none",
|
|
183
|
+
colspan: 2
|
|
184
|
+
}, {
|
|
185
|
+
default: withCtx(() => [createVNode(RequestTableFileList_default, {
|
|
186
|
+
ref_key: "fileList",
|
|
187
|
+
ref: fileList,
|
|
188
|
+
disabled: __props.data.isReadonly,
|
|
189
|
+
files: __props.data.files,
|
|
190
|
+
name: name.value,
|
|
191
|
+
onRemoveFile: _cache[4] || (_cache[4] = (index) => emit("removeFile", index)),
|
|
192
|
+
onUpdateFile: _cache[5] || (_cache[5] = (index, disabled) => emit("updateFile", index, disabled)),
|
|
193
|
+
onUploadFile: _cache[6] || (_cache[6] = ($event) => emit("uploadFile"))
|
|
194
|
+
}, {
|
|
195
|
+
default: withCtx(() => [__props.data.schema ? (openBlock(), createBlock(RequestTableTooltip_default, {
|
|
196
|
+
key: 0,
|
|
197
|
+
description: __props.data.description,
|
|
198
|
+
schema: __props.data.schema,
|
|
199
|
+
value: value.value
|
|
200
|
+
}, null, 8, [
|
|
201
|
+
"description",
|
|
202
|
+
"schema",
|
|
203
|
+
"value"
|
|
204
|
+
])) : createCommentVNode("", true)]),
|
|
205
|
+
_: 1
|
|
206
|
+
}, 8, [
|
|
207
|
+
"disabled",
|
|
208
|
+
"files",
|
|
209
|
+
"name"
|
|
210
|
+
])]),
|
|
211
|
+
_: 1
|
|
212
|
+
})) : (openBlock(), createBlock(unref(DataTableCell_default), { key: 1 }, {
|
|
169
213
|
default: withCtx(() => [__props.data.presetOptions?.length ? (openBlock(), createBlock(unref(DataTableInputSelect_default), {
|
|
170
214
|
key: 0,
|
|
171
215
|
canAddCustomValue: false,
|
|
172
216
|
modelValue: displayValue.value,
|
|
173
217
|
value: __props.data.presetOptions,
|
|
174
|
-
"onUpdate:modelValue": _cache[
|
|
218
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = (v) => emit("selectPreset", v))
|
|
175
219
|
}, null, 8, ["modelValue", "value"])) : (openBlock(), createBlock(unref(CodeInputLite_default), {
|
|
176
220
|
key: 1,
|
|
177
221
|
ref_key: "valueInput",
|
|
@@ -189,8 +233,8 @@ var RequestTableRow_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
|
|
|
189
233
|
placeholder: unref(translate)("apiClient.requestTableRow.value"),
|
|
190
234
|
type: typeValue.value,
|
|
191
235
|
withFakeData: "",
|
|
192
|
-
onNavigate: _cache[
|
|
193
|
-
"onUpdate:modelValue": _cache[
|
|
236
|
+
onNavigate: _cache[10] || (_cache[10] = (route) => emit("navigate", route)),
|
|
237
|
+
"onUpdate:modelValue": _cache[11] || (_cache[11] = (v) => handleUpdateRow({ value: v }))
|
|
194
238
|
}, {
|
|
195
239
|
icon: withCtx(() => [
|
|
196
240
|
Boolean(__props.data.name || value.value) && !__props.data.isRequired && __props.data.isReadonly !== true ? (openBlock(), createBlock(unref(ScalarButton), {
|
|
@@ -199,7 +243,7 @@ var RequestTableRow_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
|
|
|
199
243
|
class: "text-c-2 hover:text-c-1 hover:bg-b-2 z-context -mr-0.5 hidden h-fit rounded p-1 group-hover:flex group-has-[.code-input-lite__editor:focus]:flex",
|
|
200
244
|
size: "sm",
|
|
201
245
|
variant: "ghost",
|
|
202
|
-
onClick: _cache[
|
|
246
|
+
onClick: _cache[8] || (_cache[8] = ($event) => emit("deleteRow"))
|
|
203
247
|
}, {
|
|
204
248
|
default: withCtx(() => [createVNode(unref(ScalarIconTrash), { class: "size-3.5" })]),
|
|
205
249
|
_: 1
|
|
@@ -212,7 +256,7 @@ var RequestTableRow_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
|
|
|
212
256
|
size: "xs",
|
|
213
257
|
tooltip: "top",
|
|
214
258
|
variant: "ghost",
|
|
215
|
-
onClick: _cache[
|
|
259
|
+
onClick: _cache[9] || (_cache[9] = ($event) => emit("navigate", __props.data.globalRoute))
|
|
216
260
|
}, null, 8, ["icon", "label"])) : createCommentVNode("", true),
|
|
217
261
|
__props.data.isReadonly ? (openBlock(), createBlock(RequestTableTooltip_default, {
|
|
218
262
|
key: 2,
|
|
@@ -244,9 +288,9 @@ var RequestTableRow_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
|
|
|
244
288
|
"type"
|
|
245
289
|
]))]),
|
|
246
290
|
_: 1
|
|
247
|
-
}),
|
|
248
|
-
__props.showUploadButton ? (openBlock(), createBlock(unref(DataTableCell_default), {
|
|
249
|
-
key:
|
|
291
|
+
})),
|
|
292
|
+
__props.showUploadButton && !__props.data.files ? (openBlock(), createBlock(unref(DataTableCell_default), {
|
|
293
|
+
key: 2,
|
|
250
294
|
class: "group/upload flex items-center justify-center whitespace-nowrap"
|
|
251
295
|
}, {
|
|
252
296
|
default: withCtx(() => [isFile.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createElementVNode("div", _hoisted_1, [createElementVNode("span", {
|
|
@@ -255,21 +299,25 @@ var RequestTableRow_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
|
|
|
255
299
|
}, toDisplayString(displayValue.value), 9, _hoisted_2)]), createElementVNode("button", {
|
|
256
300
|
class: "bg-b-2 mt-1 block rounded p-0.5 text-center text-xs font-medium md:pointer-events-none md:absolute md:inset-x-1 md:top-1/2 md:mt-0 md:-translate-y-1/2 md:opacity-0 md:group-hover/upload:pointer-events-auto md:group-hover/upload:opacity-100",
|
|
257
301
|
type: "button",
|
|
258
|
-
onClick: _cache[
|
|
302
|
+
onClick: _cache[12] || (_cache[12] = ($event) => emit("removeFile"))
|
|
259
303
|
}, toDisplayString(unref(translate)("apiClient.requestTableRow.delete")), 1)], 64)) : canUploadFile.value ? (openBlock(), createElementBlock("div", _hoisted_3, [createVNode(unref(ScalarButton), {
|
|
304
|
+
"aria-label": unref(translate)("apiClient.requestTableRow.uploadFor", {
|
|
305
|
+
action: fileUploadLabel.value,
|
|
306
|
+
name: name.value || unref(translate)("apiClient.requestTableRow.row")
|
|
307
|
+
}),
|
|
260
308
|
class: "bg-b-2 hover:bg-b-3 text-c-2 h-fit border-0 py-px shadow-none",
|
|
261
309
|
size: "sm",
|
|
262
310
|
variant: "outlined",
|
|
263
|
-
onClick: _cache[
|
|
311
|
+
onClick: _cache[13] || (_cache[13] = ($event) => emit("uploadFile"))
|
|
264
312
|
}, {
|
|
265
|
-
default: withCtx(() => [createElementVNode("span", null, toDisplayString(
|
|
313
|
+
default: withCtx(() => [createElementVNode("span", null, toDisplayString(fileUploadLabel.value), 1), createVNode(unref(ScalarIcon), {
|
|
266
314
|
class: "ml-1",
|
|
267
315
|
icon: "Upload",
|
|
268
316
|
size: "xs",
|
|
269
317
|
thickness: "2.5"
|
|
270
318
|
})]),
|
|
271
319
|
_: 1
|
|
272
|
-
})])) : createCommentVNode("", true)]),
|
|
320
|
+
}, 8, ["aria-label"])])) : createCommentVNode("", true)]),
|
|
273
321
|
_: 1
|
|
274
322
|
})) : createCommentVNode("", true)
|
|
275
323
|
]),
|
|
@@ -278,7 +326,6 @@ var RequestTableRow_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
|
|
|
278
326
|
};
|
|
279
327
|
}
|
|
280
328
|
});
|
|
281
|
-
//#endregion
|
|
282
329
|
export { RequestTableRow_vue_vue_type_script_setup_true_lang_default as default };
|
|
283
330
|
|
|
284
331
|
//# sourceMappingURL=RequestTableRow.vue_vue_type_script_setup_true_lang.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestTableRow.vue_vue_type_script_setup_true_lang.js","names":["_openBlock","_createBlock","_unref","DataTableRow","_normalizeClass","_withCtx","_createVNode","DataTableCheckbox","DataTableCell","CodeInputLite","DataTableInputSelect","_createCommentVNode","RequestTableTooltip","_createElementBlock","_Fragment","_createElementVNode","_toDisplayString"],"sources":["../../../../../src/v2/blocks/request-block/components/RequestTableRow.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ScalarButton } from '@scalar/components/button'\nimport { ScalarIcon } from '@scalar/components/icon'\nimport { ScalarIconButton } from '@scalar/components/icon-button'\nimport { ScalarIconGlobe, ScalarIconTrash } from '@scalar/icons'\nimport type { ApiReferenceEvents } from '@scalar/workspace-store/events'\nimport { isFileSchema } from '@scalar/workspace-store/helpers/is-file-schema'\nimport { unpackProxyObject } from '@scalar/workspace-store/helpers/unpack-proxy'\nimport { resolve } from '@scalar/workspace-store/resolve'\nimport type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments'\nimport type {\n ParameterObject,\n SchemaObject,\n} from '@scalar/workspace-store/schemas/v3.2/strict/openapi-document'\nimport { computed, ref, useTemplateRef, watch } from 'vue'\n\nimport { getFileName } from '@/v2/blocks/request-block/helpers/files'\nimport { validateParameter } from '@/v2/blocks/request-block/helpers/validate-parameter'\nimport { CodeInputLite } from '@/v2/components/code-input'\nimport {\n DataTableCell,\n DataTableCheckbox,\n DataTableInputSelect,\n DataTableRow,\n} from '@/v2/components/data-table'\nimport { useLocalization } from '@/v2/features/localization'\n\nimport RequestTableTooltip from './RequestTableTooltip.vue'\n\nconst {\n data,\n environment,\n hasCheckboxDisabled,\n deferKeyUpdates,\n invalidParams,\n showUploadButton,\n allowUnknownFileUploads = true,\n} = defineProps<{\n data: TableRow\n /** Keep key edits local until blur when the row identity depends on its name. */\n deferKeyUpdates?: boolean\n hasCheckboxDisabled?: boolean\n invalidParams?: Set<string>\n label?: string\n environment: XScalarEnvironment\n showUploadButton?: boolean\n /** Unknown fields remain editable as files only in free-form multipart requests. */\n allowUnknownFileUploads?: boolean\n}>()\n\nconst emit = defineEmits<{\n (e: 'upsertRow', payload: TableRowUpsertPayload): void\n (e: 'deleteRow'): void\n (e: 'uploadFile'): void\n (e: 'removeFile'): void\n (e: 'navigate', route: NonNullable<TableRow['globalRoute']>): void\n /** Select a value for a grouped global cookie preset. */\n (e: 'selectPreset', value: string): void\n}>()\n\nconst { translate } = useLocalization()\n\nconst valueInput = useTemplateRef('valueInput')\ndefineExpose({ focusValue: (): void => valueInput.value?.focus() })\n\nexport type TableRow = {\n /** The parameter or field name/key */\n name: string\n /** The parameter value, can be a string, file, or null */\n value: string | File | null\n /** Optional description for the parameter */\n description?: string\n /** Optional route for global parameters (e.g., cookies shared across workspace) */\n globalRoute?: ApiReferenceEvents['ui:navigate']\n /** Whether the parameter is disabled/inactive */\n isDisabled?: boolean\n /** Whether an optional parameter is disabled because it has no explicit x-disabled value */\n isDisabledByDefault?: boolean\n /** OpenAPI schema object with type, validation rules, examples, etc. */\n schema?: SchemaObject\n /** Explicit media type for this multipart field. */\n contentType?: string\n /** Preserve array values even while their JSON text is temporarily invalid. */\n isArray?: boolean\n /** Text representation used by array enum controls. */\n arrayEncoding?: 'json' | 'comma-separated'\n /** Whether the parameter is required */\n isRequired?: boolean\n /**\n * Whether the parameter is readonly and can not be modifies directly\n * User can still override the parameter which is going to show up with the linethrough style\n */\n isReadonly?: boolean\n /** Whether the parameter is overridden later on */\n isOverridden?: boolean\n /** Track the original parameter so we can update it */\n originalParameter?: ParameterObject\n /** Path to a value inside the original parameter example for expanded object parameters */\n sourceParameterValuePath?: string[]\n /**\n * Selectable values for a grouped global cookie preset. When set, the value cell renders a\n * dropdown to switch between predefined values (for example a `Culture` cookie with `PL`/`EN`)\n * instead of an editable input.\n */\n presetOptions?: string[]\n}\n\nexport type TableRowUpsertPayload = {\n name: string\n value: string | File\n isDisabled: boolean\n shouldRenameExpandedRow?: boolean\n}\n\n/**\n * Track local state for the row\n *\n * Now this is required because of the way we get default values from the schema.\n * If we have a default value in data.value, then we update isDisabled to true. We lose the default value since now\n * we have an example where value: ''. This is why we need to track the local state and update all of the params at the\n * same time.\n */\nconst name = ref<string>(data.name ?? '')\nconst value = ref<string | File>(unpackProxyObject(data.value) ?? '')\nconst isDisabled = ref<boolean>(data.isDisabled ?? false)\n\n// Keep the above state synced with the data prop\nwatch(\n () => data.name,\n (newName) => {\n // Do not overwrite a valid local name with an empty incoming prop — this\n // can happen when the placeholder row (appended by displayData) is briefly\n // mapped onto this component instance before Vue re-keys the list.\n if (!newName && name.value && !deferKeyUpdates) {\n return\n }\n name.value = newName ?? ''\n },\n)\nwatch(\n () => data.value,\n (newValue) => (value.value = unpackProxyObject(newValue) ?? ''),\n)\nwatch(\n () => data.isDisabled,\n (newIsDisabled) => (isDisabled.value = newIsDisabled ?? false),\n)\n\n/** Check if the value is a File instance */\nconst isFile = computed(() => value.value instanceof File)\n\n/** Whether this row’s schema accepts a file part. */\nconst canUploadFile = computed<boolean>(() =>\n data.schema\n ? isFileSchema(data.schema, true, data.contentType)\n : allowUnknownFileUploads,\n)\n\n/** Display value handles File instances and shows filename instead */\nconst displayValue = computed(\n () =>\n (isFile.value\n ? getFileName(value.value as File)\n : (value.value as string)) ?? '',\n)\n\nconst defaultValue = computed(() => data.schema?.default as string)\n\n/** See if we can extract enum values from the schema */\nconst enumValue = computed<unknown[]>(() => {\n if (!data.schema) {\n return []\n }\n\n // Grab the enum from the schema\n if (data.schema.enum) {\n return data.schema.enum.map((item) => String(item))\n }\n\n // Grab the enum from the items schema\n if ('items' in data.schema) {\n const resolved = resolve.schema(data.schema.items)\n if (resolved?.enum) {\n return data.arrayEncoding === 'json'\n ? resolved.enum\n : resolved.enum.map((item) => String(item))\n }\n }\n\n return []\n})\n\nconst typeValue = computed(() =>\n data.schema && 'type' in data.schema ? data.schema.type : undefined,\n)\n\nconst validationResult = computed(() =>\n validateParameter(data.schema, value.value),\n)\n\n/** Handle row updates while preserving existing properties */\nconst handleUpdateRow = (\n payload: Partial<{ name: string; value: string; isDisabled: boolean }>,\n options: { shouldRenameExpandedRow?: boolean; commitKey?: boolean } = {},\n): void => {\n // Update our local state\n if (payload.name !== undefined) {\n name.value = payload.name\n }\n if (payload.value !== undefined) {\n value.value = payload.value\n\n // Optional parameters start unchecked, but entering a value expresses intent to send it.\n // Explicit x-disabled values stay unchanged so a deliberate opt-out is preserved.\n if (data.isDisabledByDefault) {\n isDisabled.value = false\n }\n }\n\n // Is disabled should only be updated when explicitly provided in the payload\n if (payload.isDisabled !== undefined) {\n isDisabled.value = payload.isDisabled\n }\n\n if (\n payload.name !== undefined &&\n (deferKeyUpdates || data.sourceParameterValuePath) &&\n !options.shouldRenameExpandedRow &&\n !options.commitKey\n ) {\n return\n }\n\n // Emit all of the local state\n emit('upsertRow', {\n name: name.value,\n value: value.value,\n isDisabled: isDisabled.value,\n ...(options.shouldRenameExpandedRow\n ? { shouldRenameExpandedRow: true }\n : {}),\n })\n}\n\n/**\n * Commit a key edit when the input loses focus. Body and expanded-object rows defer their rename to blur (see\n * handleUpdateRow), so we only emit when the key actually changed. Focusing and blurring the field\n * without typing should not re-emit the row or silently reset its disabled state. The current\n * disabled state is passed through so a renamed row keeps it.\n */\nconst handleKeyBlur = (newName: string): void => {\n if (newName === data.name) {\n return\n }\n // Do not emit an update that would blank the parameter name — this can fire\n // when CodeInputLite blurs before it has rendered its initial value.\n if (!newName && data.name && (!deferKeyUpdates || name.value !== '')) {\n return\n }\n\n handleUpdateRow(\n { name: newName, isDisabled: isDisabled.value },\n {\n shouldRenameExpandedRow: Boolean(data.sourceParameterValuePath),\n commitKey: true,\n },\n )\n}\n\n/** Save a pending body key before the send shortcut reaches the request handler. */\nconst handleKeydown = (event: KeyboardEvent): void => {\n if (\n deferKeyUpdates &&\n event.key === 'Enter' &&\n (event.metaKey || event.ctrlKey)\n ) {\n handleKeyBlur(name.value)\n }\n}\n</script>\n\n<template>\n <DataTableRow\n :id=\"data.name\"\n :class=\"{\n alert: validationResult.ok === false,\n error: validationResult.ok === false && invalidParams?.has(data.name),\n }\">\n <DataTableCheckbox\n :ariaLabel=\"\n translate('apiClient.requestTableRow.include', {\n name: data.name || translate('apiClient.requestTableRow.row'),\n })\n \"\n class=\"!border-r\"\n :disabled=\"hasCheckboxDisabled ?? false\"\n :modelValue=\"!isDisabled\"\n @update:modelValue=\"(v) => handleUpdateRow({ isDisabled: !v })\" />\n\n <!-- Name -->\n <DataTableCell>\n <CodeInputLite\n :aria-label=\"\n translate('apiClient.requestTableRow.keyLabel', { name: label ?? '' })\n \"\n :disabled=\"data.isReadonly\"\n :environment=\"environment\"\n :modelValue=\"name\"\n :placeholder=\"translate('apiClient.requestTableRow.key')\"\n :required=\"Boolean(data.isRequired)\"\n @blur=\"(v) => handleKeyBlur(v)\"\n @keydown.capture=\"handleKeydown\"\n @navigate=\"(route) => emit('navigate', route)\"\n @update:modelValue=\"(v) => handleUpdateRow({ name: v })\" />\n </DataTableCell>\n\n <!-- Value -->\n <DataTableCell>\n <!-- Preset switcher for grouped global cookies that share a name -->\n <DataTableInputSelect\n v-if=\"data.presetOptions?.length\"\n :canAddCustomValue=\"false\"\n :modelValue=\"displayValue\"\n :value=\"data.presetOptions\"\n @update:modelValue=\"(v) => emit('selectPreset', v)\" />\n <CodeInputLite\n v-else\n ref=\"valueInput\"\n :aria-label=\"\n translate('apiClient.requestTableRow.valueLabel', {\n name: label ?? '',\n })\n \"\n :arrayEncoding=\"data.arrayEncoding\"\n class=\"pr-6 group-hover:pr-10 group-has-[.code-input-lite__editor:focus]:pr-10\"\n :default=\"defaultValue\"\n :disabled=\"data.isReadonly\"\n :enum=\"enumValue\"\n :environment=\"environment\"\n :examples=\"\n data.schema?.examples?.map((example) => String(example)) ?? []\n \"\n :linethrough=\"data.isOverridden\"\n :modelValue=\"displayValue\"\n :placeholder=\"translate('apiClient.requestTableRow.value')\"\n :type=\"typeValue\"\n withFakeData\n @navigate=\"(route) => emit('navigate', route)\"\n @update:modelValue=\"(v) => handleUpdateRow({ value: v })\">\n <template #icon>\n <ScalarButton\n v-if=\"\n Boolean(data.name || value) &&\n !data.isRequired &&\n data.isReadonly !== true\n \"\n :aria-label=\"\n translate('apiClient.requestTableRow.deleteRow', {\n name: data.name || translate('apiClient.requestTableRow.row'),\n })\n \"\n class=\"text-c-2 hover:text-c-1 hover:bg-b-2 z-context -mr-0.5 hidden h-fit rounded p-1 group-hover:flex group-has-[.code-input-lite__editor:focus]:flex\"\n size=\"sm\"\n variant=\"ghost\"\n @click=\"emit('deleteRow')\">\n <ScalarIconTrash class=\"size-3.5\" />\n </ScalarButton>\n\n <ScalarIconButton\n v-if=\"data.globalRoute !== undefined\"\n class=\"text-c-2 hover:text-c-1 hover:bg-b-2 z-context -mr-0.5 h-fit\"\n :icon=\"ScalarIconGlobe\"\n :label=\"translate('apiClient.requestTableRow.globalCookieHint')\"\n size=\"xs\"\n tooltip=\"top\"\n variant=\"ghost\"\n @click=\"emit('navigate', data.globalRoute)\" />\n\n <RequestTableTooltip\n v-if=\"data.isReadonly\"\n :description=\"translate('apiClient.requestTableRow.readOnlyHint')\"\n :value=\"null\" />\n <RequestTableTooltip\n v-else-if=\"data.schema\"\n :description=\"data.description\"\n :schema=\"data.schema\"\n :value />\n </template>\n </CodeInputLite>\n </DataTableCell>\n\n <!-- File upload -->\n <DataTableCell\n v-if=\"showUploadButton\"\n class=\"group/upload flex items-center justify-center whitespace-nowrap\">\n <template v-if=\"isFile\">\n <div\n class=\"text-c-2 flex w-full max-w-[100%] items-center justify-center overflow-hidden p-1\">\n <span\n class=\"truncate\"\n :title=\"displayValue\"\n >{{ displayValue }}</span\n >\n </div>\n <button\n class=\"bg-b-2 mt-1 block rounded p-0.5 text-center text-xs font-medium md:pointer-events-none md:absolute md:inset-x-1 md:top-1/2 md:mt-0 md:-translate-y-1/2 md:opacity-0 md:group-hover/upload:pointer-events-auto md:group-hover/upload:opacity-100\"\n type=\"button\"\n @click=\"emit('removeFile')\">\n {{ translate('apiClient.requestTableRow.delete') }}\n </button>\n </template>\n <template v-else-if=\"canUploadFile\">\n <div class=\"p-0.5\">\n <ScalarButton\n class=\"bg-b-2 hover:bg-b-3 text-c-2 h-fit border-0 py-px shadow-none\"\n size=\"sm\"\n variant=\"outlined\"\n @click=\"emit('uploadFile')\">\n <span>{{ translate('apiClient.requestTableRow.selectFile') }}</span>\n <ScalarIcon\n class=\"ml-1\"\n icon=\"Upload\"\n size=\"xs\"\n thickness=\"2.5\" />\n </ScalarButton>\n </div>\n </template>\n </DataTableCell>\n </DataTableRow>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkDA,MAAM,OAAO;EAUb,MAAM,EAAE,cAAc,gBAAgB;EAEtC,MAAM,aAAa,eAAe,YAAY;EAC9C,SAAa,EAAE,kBAAwB,WAAW,OAAO,MAAM,EAAE,CAAC;EA2DlE,MAAM,OAAO,IAAY,QAAA,KAAK,QAAQ,EAAE;EACxC,MAAM,QAAQ,IAAmB,kBAAkB,QAAA,KAAK,KAAK,KAAK,EAAE;EACpE,MAAM,aAAa,IAAa,QAAA,KAAK,cAAc,KAAK;EAGxD,YACQ,QAAA,KAAK,OACV,YAAY;GAIX,IAAI,CAAC,WAAW,KAAK,SAAS,CAAC,QAAA,iBAC7B;GAEF,KAAK,QAAQ,WAAW;EAC1B,CACF;EACA,YACQ,QAAA,KAAK,QACV,aAAc,MAAM,QAAQ,kBAAkB,QAAQ,KAAK,EAC9D;EACA,YACQ,QAAA,KAAK,aACV,kBAAmB,WAAW,QAAQ,iBAAiB,KAC1D;;EAGA,MAAM,SAAS,eAAe,MAAM,iBAAiB,IAAI;;EAGzD,MAAM,gBAAgB,eACpB,QAAA,KAAK,SACD,aAAa,QAAA,KAAK,QAAQ,MAAM,QAAA,KAAK,WAAW,IAChD,QAAA,uBACN;;EAGA,MAAM,eAAe,gBAEhB,OAAO,QACJ,YAAY,MAAM,KAAa,IAC9B,MAAM,UAAqB,EACpC;EAEA,MAAM,eAAe,eAAe,QAAA,KAAK,QAAQ,OAAiB;;EAGlE,MAAM,YAAY,eAA0B;GAC1C,IAAI,CAAC,QAAA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WeJ,MAAA,YAAA,GAAA;OAVb,OAAM;OACN,MAAK;OACL,SAAQ;OACP,SAAK,OAAA,QAAA,OAAA,OAAA,WAAE,KAAI,YAAA;;OACZ,SAAAG,cAAoE,CAApEU,mBAAoE,QAAA,MAAAC,gBAA3Dd,MAAA,SAAA,CAAS,CAAA,sCAAA,CAAA,GAAA,CAAA,GAClBI,YAIoBJ,MAAA,UAAA,GAAA;QAHlB,OAAM;QACN,MAAK;QACL,MAAK;QACL,WAAU"}
|
|
1
|
+
{"version":3,"file":"RequestTableRow.vue_vue_type_script_setup_true_lang.js","names":["_openBlock","_createBlock","_unref","DataTableRow","_normalizeClass","_withCtx","_createVNode","DataTableCheckbox","DataTableCell","CodeInputLite","RequestTableFileList","RequestTableTooltip","DataTableInputSelect","_createElementBlock","_Fragment","_createElementVNode","_toDisplayString"],"sources":["../../../../../src/v2/blocks/request-block/components/RequestTableRow.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ScalarButton } from '@scalar/components/button'\nimport { ScalarIcon } from '@scalar/components/icon'\nimport { ScalarIconButton } from '@scalar/components/icon-button'\nimport { ScalarIconGlobe, ScalarIconTrash } from '@scalar/icons'\nimport type { ApiReferenceEvents } from '@scalar/workspace-store/events'\nimport { isFileSchema } from '@scalar/workspace-store/helpers/is-file-schema'\nimport { unpackProxyObject } from '@scalar/workspace-store/helpers/unpack-proxy'\nimport { resolve } from '@scalar/workspace-store/resolve'\nimport type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments'\nimport type {\n ParameterObject,\n SchemaObject,\n} from '@scalar/workspace-store/schemas/v3.2/strict/openapi-document'\nimport { isArraySchema } from '@scalar/workspace-store/schemas/v3.2/strict/type-guards'\nimport { computed, ref, useTemplateRef, watch } from 'vue'\n\nimport { getFileName } from '@/v2/blocks/request-block/helpers/files'\nimport { validateParameter } from '@/v2/blocks/request-block/helpers/validate-parameter'\nimport { CodeInputLite } from '@/v2/components/code-input'\nimport {\n DataTableCell,\n DataTableCheckbox,\n DataTableInputSelect,\n DataTableRow,\n} from '@/v2/components/data-table'\nimport { useLocalization } from '@/v2/features/localization'\n\nimport RequestTableTooltip from './RequestTableTooltip.vue'\nimport RequestTableFileList, {\n type RequestTableFile,\n} from './RequestTableFileList.vue'\n\nconst {\n data,\n environment,\n hasCheckboxDisabled,\n deferKeyUpdates,\n invalidParams,\n showUploadButton,\n allowUnknownFileUploads = true,\n} = defineProps<{\n data: TableRow\n /** Keep key edits local until blur when the row identity depends on its name. */\n deferKeyUpdates?: boolean\n hasCheckboxDisabled?: boolean\n invalidParams?: Set<string>\n label?: string\n environment: XScalarEnvironment\n showUploadButton?: boolean\n /** Unknown fields remain editable as files only in free-form multipart requests. */\n allowUnknownFileUploads?: boolean\n}>()\n\nconst emit = defineEmits<{\n (e: 'upsertRow', payload: TableRowUpsertPayload): void\n (e: 'deleteRow'): void\n (e: 'uploadFile'): void\n (e: 'removeFile', fileIndex?: number): void\n (e: 'updateFile', fileIndex: number, isDisabled: boolean): void\n (e: 'navigate', route: NonNullable<TableRow['globalRoute']>): void\n /** Select a value for a grouped global cookie preset. */\n (e: 'selectPreset', value: string): void\n}>()\n\nconst { translate } = useLocalization()\n\nconst valueInput = useTemplateRef('valueInput')\nconst fileList = useTemplateRef('fileList')\ndefineExpose({\n focusValue: (): void => {\n if (data.files) {\n fileList.value?.focusUpload()\n } else {\n valueInput.value?.focus()\n }\n },\n})\n\nexport type TableRow = {\n /** The parameter or field name/key */\n name: string\n /** The parameter value, can be a string, file, or null */\n value: string | File | null\n /** Selected files grouped for display; source rows remain separate multipart parts. */\n files?: RequestTableFile[]\n /** Optional description for the parameter */\n description?: string\n /** Optional route for global parameters (e.g., cookies shared across workspace) */\n globalRoute?: ApiReferenceEvents['ui:navigate']\n /** Whether the parameter is disabled/inactive */\n isDisabled?: boolean\n /** Whether an optional parameter is disabled because it has no explicit x-disabled value */\n isDisabledByDefault?: boolean\n /** OpenAPI schema object with type, validation rules, examples, etc. */\n schema?: SchemaObject\n /** Explicit media type for this multipart field. */\n contentType?: string\n /** Preserve array values even while their JSON text is temporarily invalid. */\n isArray?: boolean\n /** Text representation used by array enum controls. */\n arrayEncoding?: 'json' | 'comma-separated'\n /** Whether the parameter is required */\n isRequired?: boolean\n /**\n * Whether the parameter is readonly and can not be modifies directly\n * User can still override the parameter which is going to show up with the linethrough style\n */\n isReadonly?: boolean\n /** Whether the parameter is overridden later on */\n isOverridden?: boolean\n /** Track the original parameter so we can update it */\n originalParameter?: ParameterObject\n /** Path to a value inside the original parameter example for expanded object parameters */\n sourceParameterValuePath?: string[]\n /**\n * Selectable values for a grouped global cookie preset. When set, the value cell renders a\n * dropdown to switch between predefined values (for example a `Culture` cookie with `PL`/`EN`)\n * instead of an editable input.\n */\n presetOptions?: string[]\n}\n\nexport type TableRowUpsertPayload = {\n name: string\n value: string | File\n isDisabled: boolean\n shouldRenameExpandedRow?: boolean\n}\n\n/**\n * Track local state for the row\n *\n * Now this is required because of the way we get default values from the schema.\n * If we have a default value in data.value, then we update isDisabled to true. We lose the default value since now\n * we have an example where value: ''. This is why we need to track the local state and update all of the params at the\n * same time.\n */\nconst name = ref<string>(data.name ?? '')\nconst value = ref<string | File>(unpackProxyObject(data.value) ?? '')\nconst isDisabled = ref<boolean>(data.isDisabled ?? false)\n\n// Keep the above state synced with the data prop\nwatch(\n () => data.name,\n (newName) => {\n // Do not overwrite a valid local name with an empty incoming prop — this\n // can happen when the placeholder row (appended by displayData) is briefly\n // mapped onto this component instance before Vue re-keys the list.\n if (!newName && name.value && !deferKeyUpdates) {\n return\n }\n name.value = newName ?? ''\n },\n)\nwatch(\n () => data.value,\n (newValue) => (value.value = unpackProxyObject(newValue) ?? ''),\n)\nwatch(\n () => data.isDisabled,\n (newIsDisabled) => (isDisabled.value = newIsDisabled ?? false),\n)\n\n/** Check if the value is a File instance */\nconst isFile = computed(() => value.value instanceof File)\n\n/** Whether this row’s schema accepts a file part. */\nconst canUploadFile = computed<boolean>(() =>\n data.schema\n ? isFileSchema(data.schema, true, data.contentType)\n : allowUnknownFileUploads,\n)\n\nconst fileUploadLabel = computed<string>(() =>\n translate(\n data.schema && isArraySchema(data.schema)\n ? 'apiClient.requestTableRow.selectFiles'\n : 'apiClient.requestTableRow.selectFile',\n ),\n)\n\nconst hasMixedFileSelection = computed<boolean>(() =>\n Boolean(\n data.files?.some((file) => file.isDisabled) &&\n data.files.some((file) => !file.isDisabled),\n ),\n)\n\n/** Display value handles File instances and shows filename instead */\nconst displayValue = computed(\n () =>\n (isFile.value\n ? getFileName(value.value as File)\n : (value.value as string)) ?? '',\n)\n\nconst defaultValue = computed(() => data.schema?.default as string)\n\n/** See if we can extract enum values from the schema */\nconst enumValue = computed<unknown[]>(() => {\n if (!data.schema) {\n return []\n }\n\n // Grab the enum from the schema\n if (data.schema.enum) {\n return data.schema.enum.map((item) => String(item))\n }\n\n // Grab the enum from the items schema\n if ('items' in data.schema) {\n const resolved = resolve.schema(data.schema.items)\n if (resolved?.enum) {\n return data.arrayEncoding === 'json'\n ? resolved.enum\n : resolved.enum.map((item) => String(item))\n }\n }\n\n return []\n})\n\nconst typeValue = computed(() =>\n data.schema && 'type' in data.schema ? data.schema.type : undefined,\n)\n\nconst validationResult = computed(() =>\n validateParameter(data.schema, value.value),\n)\n\n/** Handle row updates while preserving existing properties */\nconst handleUpdateRow = (\n payload: Partial<{ name: string; value: string; isDisabled: boolean }>,\n options: { shouldRenameExpandedRow?: boolean; commitKey?: boolean } = {},\n): void => {\n // Update our local state\n if (payload.name !== undefined) {\n name.value = payload.name\n }\n if (payload.value !== undefined) {\n value.value = payload.value\n\n // Optional parameters start unchecked, but entering a value expresses intent to send it.\n // Explicit x-disabled values stay unchanged so a deliberate opt-out is preserved.\n if (data.isDisabledByDefault) {\n isDisabled.value = false\n }\n }\n\n // Is disabled should only be updated when explicitly provided in the payload\n if (payload.isDisabled !== undefined) {\n isDisabled.value = payload.isDisabled\n }\n\n if (\n payload.name !== undefined &&\n (deferKeyUpdates || data.sourceParameterValuePath) &&\n !options.shouldRenameExpandedRow &&\n !options.commitKey\n ) {\n return\n }\n\n // Emit all of the local state\n emit('upsertRow', {\n name: name.value,\n value: value.value,\n isDisabled: isDisabled.value,\n ...(options.shouldRenameExpandedRow\n ? { shouldRenameExpandedRow: true }\n : {}),\n })\n}\n\n/**\n * Commit a key edit when the input loses focus. Body and expanded-object rows defer their rename to blur (see\n * handleUpdateRow), so we only emit when the key actually changed. Focusing and blurring the field\n * without typing should not re-emit the row or silently reset its disabled state. The current\n * disabled state is passed through so a renamed row keeps it.\n */\nconst handleKeyBlur = (newName: string): void => {\n if (newName === data.name) {\n return\n }\n // Do not emit an update that would blank the parameter name — this can fire\n // when CodeInputLite blurs before it has rendered its initial value.\n if (!newName && data.name && (!deferKeyUpdates || name.value !== '')) {\n return\n }\n\n handleUpdateRow(\n { name: newName, isDisabled: isDisabled.value },\n {\n shouldRenameExpandedRow: Boolean(data.sourceParameterValuePath),\n commitKey: true,\n },\n )\n}\n\n/** Save a pending body key before the send shortcut reaches the request handler. */\nconst handleKeydown = (event: KeyboardEvent): void => {\n if (\n deferKeyUpdates &&\n event.key === 'Enter' &&\n (event.metaKey || event.ctrlKey)\n ) {\n handleKeyBlur(name.value)\n }\n}\n</script>\n\n<template>\n <DataTableRow\n :id=\"data.name\"\n :class=\"{\n alert: validationResult.ok === false,\n error: validationResult.ok === false && invalidParams?.has(data.name),\n }\">\n <DataTableCheckbox\n :ariaLabel=\"\n translate('apiClient.requestTableRow.include', {\n name: data.name || translate('apiClient.requestTableRow.row'),\n })\n \"\n class=\"!border-r\"\n :class=\"{ 'max-h-none': data.files }\"\n :disabled=\"hasCheckboxDisabled ?? false\"\n :indeterminate=\"hasMixedFileSelection\"\n :modelValue=\"!isDisabled\"\n @update:modelValue=\"(v) => handleUpdateRow({ isDisabled: !v })\" />\n\n <!-- Name -->\n <DataTableCell :class=\"{ 'max-h-none': data.files }\">\n <CodeInputLite\n :aria-label=\"\n translate('apiClient.requestTableRow.keyLabel', { name: label ?? '' })\n \"\n :disabled=\"data.isReadonly\"\n :environment=\"environment\"\n :modelValue=\"name\"\n :placeholder=\"translate('apiClient.requestTableRow.key')\"\n :required=\"Boolean(data.isRequired)\"\n @blur=\"(v) => handleKeyBlur(v)\"\n @keydown.capture=\"handleKeydown\"\n @navigate=\"(route) => emit('navigate', route)\"\n @update:modelValue=\"(v) => handleUpdateRow({ name: v })\" />\n </DataTableCell>\n\n <!-- Value -->\n <DataTableCell\n v-if=\"data.files\"\n class=\"col-span-2 max-h-none\"\n :colspan=\"2\">\n <RequestTableFileList\n ref=\"fileList\"\n :disabled=\"data.isReadonly\"\n :files=\"data.files\"\n :name=\"name\"\n @removeFile=\"(index) => emit('removeFile', index)\"\n @updateFile=\"(index, disabled) => emit('updateFile', index, disabled)\"\n @uploadFile=\"emit('uploadFile')\">\n <RequestTableTooltip\n v-if=\"data.schema\"\n :description=\"data.description\"\n :schema=\"data.schema\"\n :value=\"value\" />\n </RequestTableFileList>\n </DataTableCell>\n <DataTableCell v-else>\n <!-- Preset switcher for grouped global cookies that share a name -->\n <DataTableInputSelect\n v-if=\"data.presetOptions?.length\"\n :canAddCustomValue=\"false\"\n :modelValue=\"displayValue\"\n :value=\"data.presetOptions\"\n @update:modelValue=\"(v) => emit('selectPreset', v)\" />\n <CodeInputLite\n v-else\n ref=\"valueInput\"\n :aria-label=\"\n translate('apiClient.requestTableRow.valueLabel', {\n name: label ?? '',\n })\n \"\n :arrayEncoding=\"data.arrayEncoding\"\n class=\"pr-6 group-hover:pr-10 group-has-[.code-input-lite__editor:focus]:pr-10\"\n :default=\"defaultValue\"\n :disabled=\"data.isReadonly\"\n :enum=\"enumValue\"\n :environment=\"environment\"\n :examples=\"\n data.schema?.examples?.map((example) => String(example)) ?? []\n \"\n :linethrough=\"data.isOverridden\"\n :modelValue=\"displayValue\"\n :placeholder=\"translate('apiClient.requestTableRow.value')\"\n :type=\"typeValue\"\n withFakeData\n @navigate=\"(route) => emit('navigate', route)\"\n @update:modelValue=\"(v) => handleUpdateRow({ value: v })\">\n <template #icon>\n <ScalarButton\n v-if=\"\n Boolean(data.name || value) &&\n !data.isRequired &&\n data.isReadonly !== true\n \"\n :aria-label=\"\n translate('apiClient.requestTableRow.deleteRow', {\n name: data.name || translate('apiClient.requestTableRow.row'),\n })\n \"\n class=\"text-c-2 hover:text-c-1 hover:bg-b-2 z-context -mr-0.5 hidden h-fit rounded p-1 group-hover:flex group-has-[.code-input-lite__editor:focus]:flex\"\n size=\"sm\"\n variant=\"ghost\"\n @click=\"emit('deleteRow')\">\n <ScalarIconTrash class=\"size-3.5\" />\n </ScalarButton>\n\n <ScalarIconButton\n v-if=\"data.globalRoute !== undefined\"\n class=\"text-c-2 hover:text-c-1 hover:bg-b-2 z-context -mr-0.5 h-fit\"\n :icon=\"ScalarIconGlobe\"\n :label=\"translate('apiClient.requestTableRow.globalCookieHint')\"\n size=\"xs\"\n tooltip=\"top\"\n variant=\"ghost\"\n @click=\"emit('navigate', data.globalRoute)\" />\n\n <RequestTableTooltip\n v-if=\"data.isReadonly\"\n :description=\"translate('apiClient.requestTableRow.readOnlyHint')\"\n :value=\"null\" />\n <RequestTableTooltip\n v-else-if=\"data.schema\"\n :description=\"data.description\"\n :schema=\"data.schema\"\n :value />\n </template>\n </CodeInputLite>\n </DataTableCell>\n\n <!-- File upload -->\n <DataTableCell\n v-if=\"showUploadButton && !data.files\"\n class=\"group/upload flex items-center justify-center whitespace-nowrap\">\n <template v-if=\"isFile\">\n <div\n class=\"text-c-2 flex w-full max-w-[100%] items-center justify-center overflow-hidden p-1\">\n <span\n class=\"truncate\"\n :title=\"displayValue\"\n >{{ displayValue }}</span\n >\n </div>\n <button\n class=\"bg-b-2 mt-1 block rounded p-0.5 text-center text-xs font-medium md:pointer-events-none md:absolute md:inset-x-1 md:top-1/2 md:mt-0 md:-translate-y-1/2 md:opacity-0 md:group-hover/upload:pointer-events-auto md:group-hover/upload:opacity-100\"\n type=\"button\"\n @click=\"emit('removeFile')\">\n {{ translate('apiClient.requestTableRow.delete') }}\n </button>\n </template>\n <template v-else-if=\"canUploadFile\">\n <div class=\"p-0.5\">\n <ScalarButton\n :aria-label=\"\n translate('apiClient.requestTableRow.uploadFor', {\n action: fileUploadLabel,\n name: name || translate('apiClient.requestTableRow.row'),\n })\n \"\n class=\"bg-b-2 hover:bg-b-3 text-c-2 h-fit border-0 py-px shadow-none\"\n size=\"sm\"\n variant=\"outlined\"\n @click=\"emit('uploadFile')\">\n <span>{{ fileUploadLabel }}</span>\n <ScalarIcon\n class=\"ml-1\"\n icon=\"Upload\"\n size=\"xs\"\n thickness=\"2.5\" />\n </ScalarButton>\n </div>\n </template>\n </DataTableCell>\n </DataTableRow>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsDA,MAAM,OAAO;EAWb,MAAM,EAAE,cAAc,gBAAgB;EAEtC,MAAM,aAAa,eAAe,YAAY;EAC9C,MAAM,WAAW,eAAe,UAAU;EAC1C,SAAa,EACX,kBAAwB;GACtB,IAAI,QAAA,KAAK,OACP,SAAS,OAAO,YAAY;QAE5B,WAAW,OAAO,MAAM;EAE5B,EACF,CAAC;EA6DD,MAAM,OAAO,IAAY,QAAA,KAAK,QAAQ,EAAE;EACxC,MAAM,QAAQ,IAAmB,kBAAkB,QAAA,KAAK,KAAK,KAAK,EAAE;EACpE,MAAM,aAAa,IAAa,QAAA,KAAK,cAAc,KAAK;EAGxD,YACQ,QAAA,KAAK,OACV,YAAY;GAIX,IAAI,CAAC,WAAW,KAAK,SAAS,CAAC,QAAA,iBAC7B;GAEF,KAAK,QAAQ,WAAW;EAC1B,CACF;EACA,YACQ,QAAA,KAAK,QACV,aAAc,MAAM,QAAQ,kBAAkB,QAAQ,KAAK,EAC9D;EACA,YACQ,QAAA,KAAK,aACV,kBAAmB,WAAW,QAAQ,iBAAiB,KAC1D;;EAGA,MAAM,SAAS,eAAe,MAAM,iBAAiB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AAA,GAAA,CAAA,C,UAGK,cAAA,SACnBF,UAAA,GAAAa,mBAmBM,OAnBN,YAmBM,CAlBJP,YAiBeJ,MAAA,YAAA,GAAA;OAhBZ,cAA2BA,MAAA,SAAA,CAAS,CAAA,uCAAA;QAAkE,QAAA,gBAAA;QAAuC,MAAA,KAAA,SAAQA,MAAA,SAAA,CAAS,CAAA,+BAAA;;OAM/J,OAAM;OACN,MAAK;OACL,SAAQ;OACP,SAAK,OAAA,QAAA,OAAA,OAAA,WAAE,KAAI,YAAA;;OACZ,SAAAG,cAAkC,CAAlCU,mBAAkC,QAAA,MAAAC,gBAAzB,gBAAA,KAAe,GAAA,CAAA,GACxBV,YAIoBJ,MAAA,UAAA,GAAA;QAHlB,OAAM;QACN,MAAK;QACL,MAAK;QACL,WAAU"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestTableTooltip.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/components/RequestTableTooltip.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestTableTooltip.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/components/RequestTableTooltip.vue"],"names":[],"mappings":"AAoGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAMhG,KAAK,WAAW,GAAG;IACjB,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAA;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAC;AA2LF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import RequestTableTooltip_vue_vue_type_script_setup_true_lang_default from "./RequestTableTooltip.vue_vue_type_script_setup_true_lang.js";
|
|
2
|
-
|
|
2
|
+
// src/v2/blocks/request-block/components/RequestTableTooltip.vue
|
|
3
3
|
var RequestTableTooltip_default = RequestTableTooltip_vue_vue_type_script_setup_true_lang_default;
|
|
4
|
-
//#endregion
|
|
5
4
|
export { RequestTableTooltip_default as default };
|
|
6
5
|
|
|
7
6
|
//# sourceMappingURL=RequestTableTooltip.vue.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestTableTooltip.vue.js","names":[
|
|
1
|
+
{"version":3,"file":"RequestTableTooltip.vue.js","names":[],"sources":[],"mappings":""}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { useLocalization } from "../../../features/localization/index.js";
|
|
2
1
|
import { validateParameter } from "../helpers/validate-parameter.js";
|
|
3
|
-
import {
|
|
2
|
+
import { useLocalization } from "../../../features/localization/index.js";
|
|
3
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, openBlock, renderList, toDisplayString, unref, withCtx } from "vue";
|
|
4
4
|
import { ScalarIconInfo, ScalarIconWarning } from "@scalar/icons";
|
|
5
5
|
import { ScalarMarkdown } from "@scalar/components/markdown";
|
|
6
6
|
import { ScalarPopover } from "@scalar/components/popover";
|
|
7
|
-
|
|
7
|
+
// src/v2/blocks/request-block/components/RequestTableTooltip.vue?vue&type=script&setup=true&lang.ts
|
|
8
8
|
var _hoisted_1 = ["aria-label", "role"];
|
|
9
9
|
var _hoisted_2 = {
|
|
10
|
-
class: "text-xxs text-c-1 grid w-fit max-w-xs min-w-0 gap-1.5 rounded
|
|
10
|
+
class: "text-xxs text-c-1 grid w-fit max-w-xs min-w-0 gap-1.5 rounded p-1.5 leading-normal wrap-anywhere",
|
|
11
11
|
"data-testid": "request-table-tooltip-content"
|
|
12
12
|
};
|
|
13
13
|
var _hoisted_3 = {
|
|
@@ -16,13 +16,8 @@ var _hoisted_3 = {
|
|
|
16
16
|
};
|
|
17
17
|
var _hoisted_4 = {
|
|
18
18
|
key: 1,
|
|
19
|
-
class: "schema text-c-2
|
|
19
|
+
class: "schema text-c-2 *:not-first:before:content-['_·_']"
|
|
20
20
|
};
|
|
21
|
-
var _hoisted_5 = { key: 0 };
|
|
22
|
-
var _hoisted_6 = { key: 1 };
|
|
23
|
-
var _hoisted_7 = { key: 2 };
|
|
24
|
-
var _hoisted_8 = { key: 3 };
|
|
25
|
-
var _hoisted_9 = { key: 4 };
|
|
26
21
|
var RequestTableTooltip_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
27
22
|
__name: "RequestTableTooltip",
|
|
28
23
|
props: {
|
|
@@ -34,19 +29,29 @@ var RequestTableTooltip_vue_vue_type_script_setup_true_lang_default = /*@__PURE_
|
|
|
34
29
|
const { translate } = useLocalization();
|
|
35
30
|
const invalidParameterMessage = computed(() => validateParameter(__props.schema, __props.value));
|
|
36
31
|
const isInvalid = computed(() => invalidParameterMessage.value.ok === false);
|
|
32
|
+
const schemaDetails = computed(() => {
|
|
33
|
+
if (!__props.schema) return [];
|
|
34
|
+
const type = "type" in __props.schema ? __props.schema.type : void 0;
|
|
35
|
+
return [
|
|
36
|
+
Array.isArray(type) ? type.join(" | ") : type ?? "",
|
|
37
|
+
"format" in __props.schema ? __props.schema.format ?? "" : "",
|
|
38
|
+
"minimum" in __props.schema && __props.schema.minimum !== void 0 ? `${translate("apiClient.requestTableTooltip.min")} ${__props.schema.minimum}` : "",
|
|
39
|
+
"maximum" in __props.schema && __props.schema.maximum !== void 0 ? `${translate("apiClient.requestTableTooltip.max")} ${__props.schema.maximum}` : "",
|
|
40
|
+
"default" in __props.schema && __props.schema.default !== void 0 ? `${translate("apiClient.requestTableTooltip.default")} ${toDisplayString(__props.schema.default)}` : ""
|
|
41
|
+
].filter((detail) => detail.trim().length > 0);
|
|
42
|
+
});
|
|
43
|
+
const hasDescription = computed(() => Boolean(__props.description?.trim()));
|
|
44
|
+
const hasContent = computed(() => isInvalid.value || schemaDetails.value.length > 0 || hasDescription.value);
|
|
37
45
|
return (_ctx, _cache) => {
|
|
38
|
-
return openBlock(), createBlock(unref(ScalarPopover), {
|
|
46
|
+
return hasContent.value ? (openBlock(), createBlock(unref(ScalarPopover), {
|
|
47
|
+
key: 0,
|
|
39
48
|
offset: 4,
|
|
40
49
|
placement: "left",
|
|
41
50
|
teleport: ""
|
|
42
51
|
}, {
|
|
43
|
-
popover: withCtx(() => [createElementVNode("div", _hoisted_2, [invalidParameterMessage.value.ok === false ? (openBlock(), createElementBlock("div", _hoisted_3, toDisplayString(invalidParameterMessage.value.message), 1)) :
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
"minimum" in __props.schema ? (openBlock(), createElementBlock("span", _hoisted_7, toDisplayString(unref(translate)("apiClient.requestTableTooltip.min")) + " " + toDisplayString(__props.schema.minimum), 1)) : createCommentVNode("", true),
|
|
47
|
-
"maximum" in __props.schema ? (openBlock(), createElementBlock("span", _hoisted_8, toDisplayString(unref(translate)("apiClient.requestTableTooltip.max")) + " " + toDisplayString(__props.schema.maximum), 1)) : createCommentVNode("", true),
|
|
48
|
-
"default" in __props.schema ? (openBlock(), createElementBlock("span", _hoisted_9, toDisplayString(unref(translate)("apiClient.requestTableTooltip.default")) + " " + toDisplayString(__props.schema.default), 1)) : createCommentVNode("", true)
|
|
49
|
-
])) : createCommentVNode("", true), __props.description && !isInvalid.value ? (openBlock(), createBlock(unref(ScalarMarkdown), {
|
|
52
|
+
popover: withCtx(() => [createElementVNode("div", _hoisted_2, [invalidParameterMessage.value.ok === false ? (openBlock(), createElementBlock("div", _hoisted_3, toDisplayString(invalidParameterMessage.value.message), 1)) : schemaDetails.value.length ? (openBlock(), createElementBlock("div", _hoisted_4, [(openBlock(true), createElementBlock(Fragment, null, renderList(schemaDetails.value, (detail, index) => {
|
|
53
|
+
return openBlock(), createElementBlock("span", { key: index }, toDisplayString(detail), 1);
|
|
54
|
+
}), 128))])) : createCommentVNode("", true), hasDescription.value && !isInvalid.value ? (openBlock(), createBlock(unref(ScalarMarkdown), {
|
|
50
55
|
key: 2,
|
|
51
56
|
value: __props.description
|
|
52
57
|
}, null, 8, ["value"])) : createCommentVNode("", true)])]),
|
|
@@ -63,11 +68,10 @@ var RequestTableTooltip_vue_vue_type_script_setup_true_lang_default = /*@__PURE_
|
|
|
63
68
|
class: "text-c-2 hover:text-c-1 size-3.5"
|
|
64
69
|
}))], 8, _hoisted_1)]),
|
|
65
70
|
_: 1
|
|
66
|
-
});
|
|
71
|
+
})) : createCommentVNode("", true);
|
|
67
72
|
};
|
|
68
73
|
}
|
|
69
74
|
});
|
|
70
|
-
//#endregion
|
|
71
75
|
export { RequestTableTooltip_vue_vue_type_script_setup_true_lang_default as default };
|
|
72
76
|
|
|
73
77
|
//# sourceMappingURL=RequestTableTooltip.vue_vue_type_script_setup_true_lang.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestTableTooltip.vue_vue_type_script_setup_true_lang.js","names":["_openBlock","_createBlock","_unref","_withCtx","_createElementVNode","_createElementBlock","_toDisplayString","
|
|
1
|
+
{"version":3,"file":"RequestTableTooltip.vue_vue_type_script_setup_true_lang.js","names":["_openBlock","_createBlock","_unref","_withCtx","_createElementVNode","_createElementBlock","_toDisplayString","_Fragment","_renderList"],"sources":["../../../../../src/v2/blocks/request-block/components/RequestTableTooltip.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ScalarMarkdown } from '@scalar/components/markdown'\nimport { ScalarPopover } from '@scalar/components/popover'\nimport { ScalarIconInfo, ScalarIconWarning } from '@scalar/icons'\nimport type { SchemaObject } from '@scalar/workspace-store/schemas/v3.2/strict/openapi-document'\nimport { computed, toDisplayString } from 'vue'\n\nimport { validateParameter } from '@/v2/blocks/request-block/helpers/validate-parameter'\nimport { useLocalization } from '@/v2/features/localization'\n\nconst { schema, value, description } = defineProps<{\n schema?: SchemaObject\n value: string | File | null\n description?: string\n}>()\n\nconst { translate } = useLocalization()\n\nconst invalidParameterMessage = computed(() => validateParameter(schema, value))\nconst isInvalid = computed(() => invalidParameterMessage.value.ok === false)\nconst schemaDetails = computed<string[]>(() => {\n if (!schema) {\n return []\n }\n\n const type = 'type' in schema ? schema.type : undefined\n\n return [\n Array.isArray(type) ? type.join(' | ') : (type ?? ''),\n 'format' in schema ? (schema.format ?? '') : '',\n 'minimum' in schema && schema.minimum !== undefined\n ? `${translate('apiClient.requestTableTooltip.min')} ${schema.minimum}`\n : '',\n 'maximum' in schema && schema.maximum !== undefined\n ? `${translate('apiClient.requestTableTooltip.max')} ${schema.maximum}`\n : '',\n 'default' in schema && schema.default !== undefined\n ? `${translate('apiClient.requestTableTooltip.default')} ${toDisplayString(schema.default)}`\n : '',\n ].filter((detail) => detail.trim().length > 0)\n})\nconst hasDescription = computed<boolean>(() => Boolean(description?.trim()))\nconst hasContent = computed<boolean>(\n () =>\n isInvalid.value || schemaDetails.value.length > 0 || hasDescription.value,\n)\n</script>\n<template>\n <ScalarPopover\n v-if=\"hasContent\"\n :offset=\"4\"\n placement=\"left\"\n teleport>\n <button\n :aria-label=\"\n isInvalid\n ? translate('apiClient.requestTableTooltip.invalid')\n : translate('apiClient.requestTableTooltip.moreInformation')\n \"\n class=\"text-c-2 hover:text-c-1 hover:bg-b-2 rounded p-1\"\n :role=\"isInvalid ? 'alert' : 'none'\"\n type=\"button\">\n <ScalarIconWarning\n v-if=\"isInvalid\"\n class=\"text-orange size-3.5 brightness-90 hover:brightness-75\" />\n <ScalarIconInfo\n v-else\n class=\"text-c-2 hover:text-c-1 size-3.5\" />\n </button>\n <template #popover>\n <div\n class=\"text-xxs text-c-1 grid w-fit max-w-xs min-w-0 gap-1.5 rounded p-1.5 leading-normal wrap-anywhere\"\n data-testid=\"request-table-tooltip-content\">\n <div\n v-if=\"invalidParameterMessage.ok === false\"\n class=\"text-error-1\">\n {{ invalidParameterMessage.message }}\n </div>\n <div\n v-else-if=\"schemaDetails.length\"\n class=\"schema text-c-2 *:not-first:before:content-['_·_']\">\n <span\n v-for=\"(detail, index) in schemaDetails\"\n :key=\"index\"\n >{{ detail }}</span\n >\n </div>\n <ScalarMarkdown\n v-if=\"hasD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wB,OAAE,SADlCJ,UAAA,GAAAK,mBAIM,OAJN,YAIMC,gBADD,wBAAA,MAAwB,OAAO,GAAA,CAAA,KAGvB,cAAA,MAAc,UAD3BN,UAAA,GAAAK,mBAQM,OARN,YAQM,EALJL,UAAA,IAAA,GAAAK,mBAICE,UAAA,MAAAC,WAH2B,cAAA,QAAlB,QAAQ,UAAK;KADvB,OAAAR,UAAA,GAAAK,mBAIC,QAAA,EAFE,KAAK,MAAK,GAAAC,gBACP,MAAM,GAAA,CAAA;I,6CAIN,eAAA,SAAc,CAAK,UAAA,SAD3BN,UAAA,GAAAC,YAEyBC,MAAA,cAAA,GAAA;;KAAtB,OAAO,QAAA;;IApCd,SAAAC,cAeS,CAfTC,mBAeS,UAAA;KAdN,cAAqB,UAAA,QAAsBF,MAAA,SAAA,CAAS,CAAA,uCAAA,IAAsDA,MAAA,SAAA,CAAS,CAAA,+CAAA;KAKpH,OAAM;KACL,MAAM,UAAA,QAAS,UAAA;KAChB,MAAK;I,IAEG,UAAA,SADRF,UAAA,GAAAC,YAEmEC,MAAA,iBAAA,GAAA;;KAAjE,OAAM;I,OACRF,UAAA,GAAAC,YAE6CC,MAAA,cAAA,GAAA;;KAA3C,OAAM"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { deSerializeSchemaValue } from "@scalar/workspace-store/request-example";
|
|
2
2
|
import { setValueAtPath } from "@scalar/helpers/object/set-value-at-path";
|
|
3
|
-
|
|
3
|
+
// src/v2/blocks/request-block/helpers/create-parameter-handlers.ts
|
|
4
4
|
var isEmptyValue = (value) => value === void 0 || value === null || value === "";
|
|
5
5
|
/**
|
|
6
6
|
* Whether a row name carries the display-only deepObject array marker (`filters[id][in][]`). The
|
|
@@ -119,7 +119,6 @@ var createParameterHandlers = (type, eventBus, meta, { context, defaultParameter
|
|
|
119
119
|
}
|
|
120
120
|
};
|
|
121
121
|
};
|
|
122
|
-
//#endregion
|
|
123
122
|
export { createParameterHandlers };
|
|
124
123
|
|
|
125
124
|
//# sourceMappingURL=create-parameter-handlers.js.map
|
|
@@ -9,6 +9,8 @@ import type { TableRow } from '../components/RequestTableRow.vue.js';
|
|
|
9
9
|
* through as a single row.
|
|
10
10
|
*/
|
|
11
11
|
export declare const createParameterRows: (parameter: ParameterObject, exampleKey: string, options?: {
|
|
12
|
+
openapiVersion?: string;
|
|
13
|
+
jsonSchemaDialect?: string;
|
|
12
14
|
hiddenValuePaths?: readonly string[][];
|
|
13
15
|
renamedValuePaths?: readonly {
|
|
14
16
|
from: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-parameter-rows.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/helpers/create-parameter-rows.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EACV,eAAe,EAIhB,MAAM,8DAA8D,CAAA;AAGrE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAA;AAkWjE;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB,GAC9B,WAAW,eAAe,EAC1B,YAAY,MAAM,EAClB,UAAS;IACP,gBAAgB,CAAC,EAAE,SAAS,MAAM,EAAE,EAAE,CAAA;IACtC,iBAAiB,CAAC,EAAE,SAAS;QAAE,IAAI,EAAE,MAAM,EAAE,CAAC;QAAC,EAAE,EAAE,MAAM,EAAE,CAAA;KAAE,EAAE,CAAA;CAC3D,KACL,QAAQ,
|
|
1
|
+
{"version":3,"file":"create-parameter-rows.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/helpers/create-parameter-rows.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EACV,eAAe,EAIhB,MAAM,8DAA8D,CAAA;AAGrE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAA;AAkWjE;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB,GAC9B,WAAW,eAAe,EAC1B,YAAY,MAAM,EAClB,UAAS;IACP,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,gBAAgB,CAAC,EAAE,SAAS,MAAM,EAAE,EAAE,CAAA;IACtC,iBAAiB,CAAC,EAAE,SAAS;QAAE,IAAI,EAAE,MAAM,EAAE,CAAC;QAAC,EAAE,EAAE,MAAM,EAAE,CAAA;KAAE,EAAE,CAAA;CAC3D,KACL,QAAQ,EAuGV,CAAA"}
|
|
@@ -6,7 +6,7 @@ import { isObject } from "@scalar/helpers/object/is-object";
|
|
|
6
6
|
import { isArraySchema, isObjectSchema } from "@scalar/workspace-store/schemas/v3.2/strict/type-guards";
|
|
7
7
|
import { getParameterExample } from "@scalar/workspace-store/helpers/get-parameter-example";
|
|
8
8
|
import { getQuerystringParameter, serializeQuerystringParameter } from "@scalar/workspace-store/helpers/querystring-parameter";
|
|
9
|
-
|
|
9
|
+
// src/v2/blocks/request-block/helpers/create-parameter-rows.ts
|
|
10
10
|
var isParameterWithSchema = (parameter) => "schema" in parameter && parameter.schema !== void 0;
|
|
11
11
|
var resolveSchema = (schema) => {
|
|
12
12
|
return getResolvedRef(schema);
|
|
@@ -197,7 +197,11 @@ var createParameterRows = (parameter, exampleKey, options = {}) => {
|
|
|
197
197
|
const isDisabledByDefault = !parameter.required && parameter.in !== "path" && example?.["x-disabled"] === void 0;
|
|
198
198
|
const schema = getParameterSchema(parameter);
|
|
199
199
|
if (parameter.in === "querystring") {
|
|
200
|
-
const querystring = getQuerystringParameter(parameter, exampleKey, {
|
|
200
|
+
const querystring = getQuerystringParameter(parameter, exampleKey, {
|
|
201
|
+
includeDisabled: true,
|
|
202
|
+
openapiVersion: options.openapiVersion,
|
|
203
|
+
jsonSchemaDialect: options.jsonSchemaDialect
|
|
204
|
+
});
|
|
201
205
|
return [toSingleParameterRow(parameter, void 0, querystring ? serializeQuerystringParameter(querystring) : "", isDisabled, isDisabledByDefault)];
|
|
202
206
|
}
|
|
203
207
|
const mode = selected.serialized ? null : getExpansionMode(parameter, schema);
|
|
@@ -240,7 +244,6 @@ var createParameterRows = (parameter, exampleKey, options = {}) => {
|
|
|
240
244
|
};
|
|
241
245
|
});
|
|
242
246
|
};
|
|
243
|
-
//#endregion
|
|
244
247
|
export { createParameterRows };
|
|
245
248
|
|
|
246
249
|
//# sourceMappingURL=create-parameter-rows.js.map
|