@scalar/api-client 1.3.4 → 1.3.5
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 +32 -0
- package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/assets/computer.ascii.js +34 -0
- package/dist/clientBus.js +5 -0
- package/dist/components/ApiClient/AddressBar.vue.d.ts +3 -3
- package/dist/components/ApiClient/AddressBar.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/AddressBar.vue.js +8 -0
- package/dist/components/ApiClient/AddressBar.vue2.js +158 -0
- package/dist/components/ApiClient/AddressBar.vue3.js +4 -0
- package/dist/components/ApiClient/AddressBar.vue4.js +4 -0
- package/dist/components/ApiClient/ApiClient.vue.d.ts +11 -11
- package/dist/components/ApiClient/ApiClient.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/ApiClient.vue.js +124 -0
- package/dist/components/ApiClient/ApiClient.vue2.js +4 -0
- package/dist/components/ApiClient/ApiClient.vue3.js +5 -0
- package/dist/components/ApiClient/Request/Request.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Request/Request.vue.js +79 -0
- package/dist/components/ApiClient/Request/Request.vue2.js +4 -0
- package/dist/components/ApiClient/Request/Request.vue3.js +5 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/CardForm.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Request/RequestAuthentication/CardForm.vue.js +13 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/CardForm.vue2.js +4 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormButton.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormButton.vue.js +7 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormButton.vue2.js +18 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormButton.vue3.js +4 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormGroup.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormGroup.vue.js +13 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormGroup.vue2.js +4 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormRows.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormRows.vue.js +13 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormRows.vue2.js +4 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormTextInput.vue.d.ts +8 -8
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormTextInput.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormTextInput.vue.js +7 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormTextInput.vue2.js +37 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormTextInput.vue3.js +4 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/RequestAuthentication.vue.d.ts +3 -3
- package/dist/components/ApiClient/Request/RequestAuthentication/RequestAuthentication.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Request/RequestAuthentication/RequestAuthentication.vue.js +7 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/RequestAuthentication.vue2.js +86 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/RequestAuthentication.vue3.js +4 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/SecurityScheme.vue.d.ts +3 -3
- package/dist/components/ApiClient/Request/RequestAuthentication/SecurityScheme.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Request/RequestAuthentication/SecurityScheme.vue.js +7 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/SecurityScheme.vue2.js +357 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/SecurityScheme.vue3.js +4 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/SecuritySchemeScopes.vue.d.ts +3 -3
- package/dist/components/ApiClient/Request/RequestAuthentication/SecuritySchemeScopes.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Request/RequestAuthentication/SecuritySchemeScopes.vue.js +7 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/SecuritySchemeScopes.vue2.js +96 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/SecuritySchemeScopes.vue3.js +4 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/SecuritySchemeSelector.vue.d.ts +3 -3
- package/dist/components/ApiClient/Request/RequestAuthentication/SecuritySchemeSelector.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Request/RequestAuthentication/SecuritySchemeSelector.vue.js +7 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/SecuritySchemeSelector.vue2.js +64 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/SecuritySchemeSelector.vue3.js +4 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/index.d.ts +3 -3
- package/dist/components/ApiClient/Request/RequestBody.vue.d.ts +3 -3
- package/dist/components/ApiClient/Request/RequestBody.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Request/RequestBody.vue.js +39 -0
- package/dist/components/ApiClient/Request/RequestBody.vue2.js +4 -0
- package/dist/components/ApiClient/Request/RequestCookies.vue.d.ts +3 -3
- package/dist/components/ApiClient/Request/RequestCookies.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Request/RequestCookies.vue.js +74 -0
- package/dist/components/ApiClient/Request/RequestCookies.vue2.js +4 -0
- package/dist/components/ApiClient/Request/RequestCookies.vue3.js +5 -0
- package/dist/components/ApiClient/Request/RequestHeaders.vue.d.ts +3 -3
- package/dist/components/ApiClient/Request/RequestHeaders.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Request/RequestHeaders.vue.js +74 -0
- package/dist/components/ApiClient/Request/RequestHeaders.vue2.js +4 -0
- package/dist/components/ApiClient/Request/RequestQuery.vue.d.ts +3 -3
- package/dist/components/ApiClient/Request/RequestQuery.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Request/RequestQuery.vue.js +75 -0
- package/dist/components/ApiClient/Request/RequestQuery.vue2.js +4 -0
- package/dist/components/ApiClient/Request/RequestVariables.vue.d.ts +3 -3
- package/dist/components/ApiClient/Request/RequestVariables.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Request/RequestVariables.vue.js +69 -0
- package/dist/components/ApiClient/Request/RequestVariables.vue2.js +4 -0
- package/dist/components/ApiClient/Request/index.d.ts +1 -1
- package/dist/components/ApiClient/RequestHistory.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/RequestHistory.vue.js +27 -0
- package/dist/components/ApiClient/RequestHistory.vue2.js +4 -0
- package/dist/components/ApiClient/RequestHistory.vue3.js +5 -0
- package/dist/components/ApiClient/RequestHistoryItem.vue.d.ts +3 -3
- package/dist/components/ApiClient/RequestHistoryItem.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/RequestHistoryItem.vue.js +7 -0
- package/dist/components/ApiClient/RequestHistoryItem.vue2.js +49 -0
- package/dist/components/ApiClient/RequestHistoryItem.vue3.js +4 -0
- package/dist/components/ApiClient/RequestMethodSelect.vue.d.ts +11 -11
- package/dist/components/ApiClient/RequestMethodSelect.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/RequestMethodSelect.vue.js +7 -0
- package/dist/components/ApiClient/RequestMethodSelect.vue2.js +42 -0
- package/dist/components/ApiClient/RequestMethodSelect.vue3.js +4 -0
- package/dist/components/ApiClient/Response/Response.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Response/Response.vue.js +65 -0
- package/dist/components/ApiClient/Response/Response.vue2.js +4 -0
- package/dist/components/ApiClient/Response/Response.vue3.js +5 -0
- package/dist/components/ApiClient/Response/ResponseBody.vue.d.ts +3 -3
- package/dist/components/ApiClient/Response/ResponseBody.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Response/ResponseBody.vue.js +54 -0
- package/dist/components/ApiClient/Response/ResponseBody.vue2.js +4 -0
- package/dist/components/ApiClient/Response/ResponseHeaders.vue.d.ts +3 -3
- package/dist/components/ApiClient/Response/ResponseHeaders.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Response/ResponseHeaders.vue.js +76 -0
- package/dist/components/ApiClient/Response/ResponseHeaders.vue2.js +4 -0
- package/dist/components/ApiClient/Response/ResponseMetaInformation.vue.d.ts +3 -3
- package/dist/components/ApiClient/Response/ResponseMetaInformation.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Response/ResponseMetaInformation.vue.js +56 -0
- package/dist/components/ApiClient/Response/ResponseMetaInformation.vue2.js +4 -0
- package/dist/components/ApiClient/Response/index.d.ts +1 -1
- package/dist/components/ApiClient/index.d.ts +1 -1
- package/dist/components/Badge/Badge.vue.d.ts.map +1 -1
- package/dist/components/CollapsibleSection/CollapsibleSection.vue.d.ts +11 -11
- package/dist/components/CollapsibleSection/CollapsibleSection.vue.d.ts.map +1 -1
- package/dist/components/CollapsibleSection/CollapsibleSection.vue.js +76 -0
- package/dist/components/CollapsibleSection/CollapsibleSection.vue2.js +4 -0
- package/dist/components/CollapsibleSection/CollapsibleSection.vue3.js +5 -0
- package/dist/components/CollapsibleSection/index.d.ts +1 -1
- package/dist/components/Grid/Grid.vue.d.ts +3 -3
- package/dist/components/Grid/Grid.vue.d.ts.map +1 -1
- package/dist/components/Grid/Grid.vue.js +7 -0
- package/dist/components/Grid/Grid.vue2.js +77 -0
- package/dist/components/Grid/Grid.vue3.js +4 -0
- package/dist/components/Grid/GridHeader.vue.d.ts +3 -3
- package/dist/components/Grid/GridHeader.vue.d.ts.map +1 -1
- package/dist/components/Grid/GridHeader.vue.js +7 -0
- package/dist/components/Grid/GridHeader.vue2.js +46 -0
- package/dist/components/Grid/GridHeader.vue3.js +4 -0
- package/dist/components/Grid/GridRow.vue.d.ts +8 -8
- package/dist/components/Grid/GridRow.vue.d.ts.map +1 -1
- package/dist/components/Grid/GridRow.vue.js +7 -0
- package/dist/components/Grid/GridRow.vue2.js +29 -0
- package/dist/components/Grid/GridRow.vue3.js +4 -0
- package/dist/components/Grid/GridRowEditable.vue.d.ts +3 -3
- package/dist/components/Grid/GridRowEditable.vue.d.ts.map +1 -1
- package/dist/components/Grid/GridRowEditable.vue.js +7 -0
- package/dist/components/Grid/GridRowEditable.vue2.js +105 -0
- package/dist/components/Grid/GridRowEditable.vue3.js +4 -0
- package/dist/components/Grid/GridRowGenerated.vue.d.ts +4 -4
- package/dist/components/Grid/GridRowGenerated.vue.d.ts.map +1 -1
- package/dist/components/Grid/GridRowGenerated.vue.js +7 -0
- package/dist/components/Grid/GridRowGenerated.vue2.js +37 -0
- package/dist/components/Grid/GridRowGenerated.vue3.js +4 -0
- package/dist/components/Grid/SimpleGrid.vue.d.ts +3 -3
- package/dist/components/Grid/SimpleGrid.vue.d.ts.map +1 -1
- package/dist/components/Grid/SimpleGrid.vue.js +7 -0
- package/dist/components/Grid/SimpleGrid.vue2.js +28 -0
- package/dist/components/Grid/SimpleGrid.vue3.js +4 -0
- package/dist/components/Grid/index.d.ts +2 -2
- package/dist/components/HelpfulLink.vue.d.ts +8 -8
- package/dist/components/HelpfulLink.vue.d.ts.map +1 -1
- package/dist/components/HelpfulLink.vue.js +7 -0
- package/dist/components/HelpfulLink.vue2.js +19 -0
- package/dist/components/HelpfulLink.vue3.js +4 -0
- package/dist/components/HttpMethod.vue.d.ts +9 -8
- package/dist/components/HttpMethod.vue.d.ts.map +1 -1
- package/dist/components/HttpMethod.vue.js +27 -0
- package/dist/components/HttpMethod.vue2.js +4 -0
- package/dist/components/ScalarAsciiArt.vue.d.ts +3 -3
- package/dist/components/ScalarAsciiArt.vue.d.ts.map +1 -1
- package/dist/components/ScalarAsciiArt.vue.js +7 -0
- package/dist/components/ScalarAsciiArt.vue2.js +23 -0
- package/dist/components/ScalarAsciiArt.vue3.js +4 -0
- package/dist/components/SimpleTable/SimpleCell.vue.d.ts +13 -12
- package/dist/components/SimpleTable/SimpleCell.vue.d.ts.map +1 -1
- package/dist/components/SimpleTable/SimpleCell.vue.js +7 -0
- package/dist/components/SimpleTable/SimpleCell.vue2.js +28 -0
- package/dist/components/SimpleTable/SimpleCell.vue3.js +4 -0
- package/dist/components/SimpleTable/SimpleHeader.vue.d.ts.map +1 -1
- package/dist/components/SimpleTable/SimpleHeader.vue.js +7 -0
- package/dist/components/SimpleTable/SimpleHeader.vue2.js +19 -0
- package/dist/components/SimpleTable/SimpleHeader.vue3.js +4 -0
- package/dist/components/SimpleTable/SimpleRow.vue.d.ts.map +1 -1
- package/dist/components/SimpleTable/SimpleRow.vue.js +13 -0
- package/dist/components/SimpleTable/SimpleRow.vue2.js +4 -0
- package/dist/components/SimpleTable/SimpleTable.vue.d.ts.map +1 -1
- package/dist/components/SimpleTable/SimpleTable.vue.js +15 -0
- package/dist/components/SimpleTable/SimpleTable.vue2.js +4 -0
- package/dist/components/SimpleTable/index.d.ts +4 -4
- package/dist/fixtures/httpHeaders.js +529 -0
- package/dist/fixtures/httpRequestMethods.js +41 -0
- package/dist/fixtures/index.d.ts +2 -2
- package/dist/helpers/concatenateUrlAndPath.js +9 -0
- package/dist/helpers/createPlaceholderRequest.js +14 -0
- package/dist/helpers/encodeStringAsBase64.js +6 -0
- package/dist/helpers/findVariables.js +7 -0
- package/dist/helpers/getRequestFromAuthentication.js +85 -0
- package/dist/helpers/getUrlFromServerState.js +12 -0
- package/dist/helpers/humanDiff.js +21 -0
- package/dist/helpers/index.d.ts +16 -16
- package/dist/helpers/mapFromArray.js +9 -0
- package/dist/helpers/normalizeHeaders.js +6 -0
- package/dist/helpers/normalizePath.js +9 -0
- package/dist/helpers/normalizeRequestMethod.d.ts +2 -1
- package/dist/helpers/normalizeRequestMethod.d.ts.map +1 -1
- package/dist/helpers/normalizeRequestMethod.js +14 -0
- package/dist/helpers/normalizeUrl.js +13 -0
- package/dist/helpers/prepareClientRequestConfig.d.ts +0 -7
- package/dist/helpers/prepareClientRequestConfig.d.ts.map +1 -1
- package/dist/helpers/prepareClientRequestConfig.js +41 -0
- package/dist/helpers/redirectToProxy.js +7 -0
- package/dist/helpers/replaceVariables.js +10 -0
- package/dist/helpers/sendRequest.js +111 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +83 -33496
- package/dist/stores/index.d.ts +5 -5
- package/dist/stores/useApiClientStore.js +32 -0
- package/dist/stores/useAuthenticationStore.d.ts +1 -1
- package/dist/stores/useAuthenticationStore.d.ts.map +1 -1
- package/dist/stores/useAuthenticationStore.js +36 -0
- package/dist/stores/useOpenApiStore.d.ts +1 -1
- package/dist/stores/useOpenApiStore.js +24 -0
- package/dist/stores/useRequestStore.js +29 -0
- package/dist/stores/useServerStore.js +18 -0
- package/dist/style.css +1 -2567
- package/package.json +19 -18
- package/dist/Add-yNxGpRcH-B1LyqGlJ.js +0 -21
- package/dist/ArrowLeft-D7tW1xQo-BY1SMb43.js +0 -20
- package/dist/ArrowRight-DmO-sdb2-DYqgcTpu.js +0 -20
- package/dist/Background-CU9VIbfN-DvxzmwCx.js +0 -17
- package/dist/Brackets-CI207-BL-BBaUg7lM.js +0 -21
- package/dist/Branch-CXwj8YuG-IxKqRWkx.js +0 -34
- package/dist/CallToAction-XLYRSI1h-DkdGfSAS.js +0 -20
- package/dist/Checkmark-DhbrPM0P-Bnd3e6-4.js +0 -21
- package/dist/ChevronDown-Co7EAKAv-DHNwXUbS.js +0 -21
- package/dist/ChevronLeft-DYt0idAu-DAzCtmws.js +0 -21
- package/dist/ChevronRight-ylxToVWl-CDFDuBE1.js +0 -21
- package/dist/ChevronUp-xAnukIfj-CuKFLVD3.js +0 -21
- package/dist/Clipboard-CU_KxGEv-DWrQtWVi.js +0 -16
- package/dist/Close-xHiYwS8Q-CWI8mlaM.js +0 -21
- package/dist/CodeFolder-Cv_igzJE-CoWfaY0Z.js +0 -27
- package/dist/Cookie-CEHvXpqB-D960ImBy.js +0 -37
- package/dist/DarkMode-BMR457PH-CVcoMGeO.js +0 -16
- package/dist/Delete-BCZmxrDD-BHoCf_u4.js +0 -21
- package/dist/Discord-BHYOFBB2-NYBGYy-_.js +0 -16
- package/dist/DocsPage-Dwx7ZMU9-D3s0nKun.js +0 -27
- package/dist/Duplicate-DRWEv4R_-5xIOj7QF.js +0 -17
- package/dist/Edit-Br04RNYb-BhCyac4t.js +0 -19
- package/dist/Ellipses-Bo_X36Hx-CsJmKvlE.js +0 -16
- package/dist/Error-C5LiISnw-BIMzByff.js +0 -16
- package/dist/ExternalLink-DK8L-EH7-ANJEzoHO.js +0 -21
- package/dist/FilterList-CS8Il7NE-CagRN2wd.js +0 -21
- package/dist/Folder-CTvnVSEo-B2z_4abD.js +0 -16
- package/dist/GitHub-NdE6Zs9k-BAGzgXH_.js +0 -16
- package/dist/Hide-BgcCtErz-CAC_2jsk.js +0 -27
- package/dist/History-D9nmhNIn-BU9mR55a.js +0 -27
- package/dist/JsonObject-hGdHUQ4M-Cm1hXgAn.js +0 -21
- package/dist/Key-CWXJqX28-DdNUhB11.js +0 -21
- package/dist/Leave-K1J3uwoG-WgTmlwgs.js +0 -21
- package/dist/LightDarkModeToggle-De3vO47x-D3WCuqcH.js +0 -16
- package/dist/LightMode-BeoMphBY-CDedz2JM.js +0 -16
- package/dist/Link-Bzuc__Nc-Bvtx0HZG.js +0 -21
- package/dist/Lock-xhiH1mKz-Rrlr3fGv.js +0 -21
- package/dist/Logo-DwEDtgj--pmO6SPQX.js +0 -19
- package/dist/LogoAPI-CohCfL3L-CzbaXJLs.js +0 -19
- package/dist/LogoClient-Bq5O2QL2-Bw2epmD5.js +0 -16
- package/dist/LogoMarket-DwlApcab-_INRDSLs.js +0 -16
- package/dist/LogoSwagger-CH60H5qW-DFEpFXIU.js +0 -16
- package/dist/Magic-Dsi9_bEc-BYN42_eH.js +0 -21
- package/dist/Menu-CFK5cOsm-CqE9Tsgr.js +0 -21
- package/dist/Page-DA7CO5gc-DfccxJJv.js +0 -17
- package/dist/PaperAirplane-BC-4mGEB-BrV5fX8s.js +0 -21
- package/dist/Payment-hzcXP1Xb-B2G1p4-i.js +0 -21
- package/dist/Play-Cd4-o7Ji-xTTrC7nd.js +0 -16
- package/dist/Refresh-BHRzzQ8P-DMGXg62S.js +0 -27
- package/dist/Response-DsTlT4S--CGVlb2Cj.js +0 -20
- package/dist/Search-DqtlswRG-D-hprEk0.js +0 -19
- package/dist/Show-CbiiMLUa-G7jnye-t.js +0 -27
- package/dist/SideBarClosed-K53-CtXh-DmurFyoL.js +0 -17
- package/dist/SideBarOpen-C7UgT82P-BG6NE13Z.js +0 -21
- package/dist/Sort-CaVMT7jM-CseseOA9.js +0 -16
- package/dist/Terminal-DJ7x2McL-BUB3Qs0m.js +0 -27
- package/dist/ThumbsDown-BMgnsASL-B2YFxB8i.js +0 -21
- package/dist/ThumbsUp-C1j6zY2j-DKqh3z1D.js +0 -21
- package/dist/Trash-BpA3zWPD-BAjuQdys.js +0 -21
- package/dist/Unlock-HVYHMLxl-D89vmw_N.js +0 -16
- package/dist/Upload-D_pwqBDY-Bg4YHBfw.js +0 -16
- package/dist/User-BLGkPc5I-XzPjc0Gv.js +0 -16
- package/dist/prism-autoloader-Dlh8Vzlw-BR-Zk31i.js +0 -370
- package/dist/programming-framework-angular-DD4Vjgbk-Bzc9D9am.js +0 -16
- package/dist/programming-framework-astro-CLfrRt19-CfPlyy6T.js +0 -16
- package/dist/programming-framework-laravel-kAy2wVLy-Cty_4oXq.js +0 -21
- package/dist/programming-framework-nextdotjs-BKdd_DY_-DUTv-t1Q.js +0 -16
- package/dist/programming-framework-react-PDgmtZuN-DdUogL85.js +0 -16
- package/dist/programming-framework-vuedotjs-Cim7D5tw-COH3lflr.js +0 -17
- package/dist/programming-language-c-hPGu2Zvg-QG1pSdJG.js +0 -16
- package/dist/programming-language-clojure-uqYXn7U6-UAUP9oZz.js +0 -16
- package/dist/programming-language-csharp-CGxYkVA6-DkAhKOzF.js +0 -16
- package/dist/programming-language-css3-Dpp4Cr6b-Bf5XF7-p.js +0 -16
- package/dist/programming-language-go-CuKo8iD9-Dkewryvm.js +0 -16
- package/dist/programming-language-html5-DlqJK4EL-Bl9dTA-D.js +0 -16
- package/dist/programming-language-http-f3NXC-Ae-BY_awyxD.js +0 -16
- package/dist/programming-language-java-BBodetdf-BHELDLTj.js +0 -18
- package/dist/programming-language-javascript-VxLvi1QG-DFjYF_MP.js +0 -16
- package/dist/programming-language-json-Dq_K-q5f-BlovheYp.js +0 -17
- package/dist/programming-language-kotlin-eTASnmL3-D8AoUcB1.js +0 -16
- package/dist/programming-language-node-oucaVOgY-CzP8mlvs.js +0 -17
- package/dist/programming-language-objc-CPgQxmNi-DjsFgTok.js +0 -17
- package/dist/programming-language-ocaml-Q1-Jv5Q5-D2vDLKwp.js +0 -16
- package/dist/programming-language-php-GY38f8r4-DQ_8EMFH.js +0 -16
- package/dist/programming-language-powershell-xLOxAYP_-DAvJS1A9.js +0 -20
- package/dist/programming-language-python-Ct-_kNjo-BCrlyfv0.js +0 -16
- package/dist/programming-language-r-Ch3T1qiC-I_IE4uwz.js +0 -20
- package/dist/programming-language-ruby-DhdM4d7g-Dd3La6Kn.js +0 -16
- package/dist/programming-language-scala-BVg0dToJ-Bz_n-CNw.js +0 -16
- package/dist/programming-language-shell-uj1zoCVW-Bg0d3E28.js +0 -16
- package/dist/programming-language-swift-Dn72xPjg-BUvu5_SV.js +0 -16
- package/dist/programming-language-typescript-CdF-HuRi-CaDO02MW.js +0 -16
- package/dist/programming-script-code-CUHv6qR8-CzD7HjI2.js +0 -21
- package/dist/programming-tool-git-C-BMJCAo-BFJIU2--.js +0 -16
- package/dist/programming-tool-tailwindcss-xjXi0E6g-ky2wbsII.js +0 -16
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { defineComponent as h, openBlock as l, createBlock as s, unref as e, withCtx as t, createVNode as n, createTextVNode as m, createElementBlock as p, Fragment as H, renderList as k, toDisplayString as i } from "vue";
|
|
2
|
+
import y from "../../CollapsibleSection/CollapsibleSection.vue.js";
|
|
3
|
+
import "../../CollapsibleSection/CollapsibleSection.vue2.js";
|
|
4
|
+
import C from "../../SimpleTable/SimpleTable.vue.js";
|
|
5
|
+
import u from "../../SimpleTable/SimpleRow.vue.js";
|
|
6
|
+
import f from "../../SimpleTable/SimpleHeader.vue.js";
|
|
7
|
+
import d from "../../SimpleTable/SimpleCell.vue.js";
|
|
8
|
+
import { httpHeaders as g } from "../../../fixtures/httpHeaders.js";
|
|
9
|
+
const S = {
|
|
10
|
+
key: 1,
|
|
11
|
+
class: "scalar-api-client__empty-state"
|
|
12
|
+
}, R = /* @__PURE__ */ h({
|
|
13
|
+
__name: "ResponseHeaders",
|
|
14
|
+
props: {
|
|
15
|
+
headers: {}
|
|
16
|
+
},
|
|
17
|
+
setup(w) {
|
|
18
|
+
const c = (r) => {
|
|
19
|
+
var a;
|
|
20
|
+
return (a = g.find((o) => o.name.toLowerCase() === r.toLowerCase())) == null ? void 0 : a.url;
|
|
21
|
+
}, _ = (r) => r.split("-").map((a) => a.charAt(0).toUpperCase() + a.slice(1)).join("-");
|
|
22
|
+
return (r, a) => (l(), s(e(y), { title: "Headers" }, {
|
|
23
|
+
default: t(() => [
|
|
24
|
+
r.headers.length > 0 ? (l(), s(e(C), { key: 0 }, {
|
|
25
|
+
default: t(() => [
|
|
26
|
+
n(e(u), null, {
|
|
27
|
+
default: t(() => [
|
|
28
|
+
n(e(f), null, {
|
|
29
|
+
default: t(() => [
|
|
30
|
+
m("Key")
|
|
31
|
+
]),
|
|
32
|
+
_: 1
|
|
33
|
+
}),
|
|
34
|
+
n(e(f), null, {
|
|
35
|
+
default: t(() => [
|
|
36
|
+
m("Value")
|
|
37
|
+
]),
|
|
38
|
+
_: 1
|
|
39
|
+
})
|
|
40
|
+
]),
|
|
41
|
+
_: 1
|
|
42
|
+
}),
|
|
43
|
+
(l(!0), p(H, null, k(r.headers, (o) => (l(), s(e(u), {
|
|
44
|
+
key: o.name
|
|
45
|
+
}, {
|
|
46
|
+
default: t(() => [
|
|
47
|
+
n(e(d), {
|
|
48
|
+
href: c(o.name),
|
|
49
|
+
strong: !0,
|
|
50
|
+
wrap: !1
|
|
51
|
+
}, {
|
|
52
|
+
default: t(() => [
|
|
53
|
+
m(i(_(o.name)), 1)
|
|
54
|
+
]),
|
|
55
|
+
_: 2
|
|
56
|
+
}, 1032, ["href"]),
|
|
57
|
+
n(e(d), null, {
|
|
58
|
+
default: t(() => [
|
|
59
|
+
m(i(o.value), 1)
|
|
60
|
+
]),
|
|
61
|
+
_: 2
|
|
62
|
+
}, 1024)
|
|
63
|
+
]),
|
|
64
|
+
_: 2
|
|
65
|
+
}, 1024))), 128))
|
|
66
|
+
]),
|
|
67
|
+
_: 1
|
|
68
|
+
})) : (l(), p("div", S, "No Headers"))
|
|
69
|
+
]),
|
|
70
|
+
_: 1
|
|
71
|
+
}));
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
export {
|
|
75
|
+
R as default
|
|
76
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<
|
|
1
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
2
2
|
response: any;
|
|
3
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<
|
|
3
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
4
4
|
response: any;
|
|
5
5
|
}>>>, {}, {}>;
|
|
6
6
|
export default _default;
|
|
7
7
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
8
|
-
type
|
|
8
|
+
type __VLS_TypePropsToOption<T> = {
|
|
9
9
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
10
10
|
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
11
11
|
} : {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResponseMetaInformation.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/ApiClient/Response/ResponseMetaInformation.vue
|
|
1
|
+
{"version":3,"file":"ResponseMetaInformation.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/ApiClient/Response/ResponseMetaInformation.vue"],"names":[],"mappings":";;;;;AAkKA,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { defineComponent as h, computed as C, openBlock as s, createElementBlock as a, Fragment as u, createElementVNode as n, toDisplayString as t, unref as v, createCommentVNode as m, createBlock as k, withCtx as y, createTextVNode as d } from "vue";
|
|
2
|
+
import { httpStatusCodes as _ } from "@scalar/oas-utils/helpers";
|
|
3
|
+
import g from "pretty-bytes";
|
|
4
|
+
import B from "pretty-ms";
|
|
5
|
+
import I from "../../HelpfulLink.vue.js";
|
|
6
|
+
const L = { class: "meta-item" }, N = {
|
|
7
|
+
key: 0,
|
|
8
|
+
class: "meta-item"
|
|
9
|
+
}, S = { class: "meta-item" }, F = /* @__PURE__ */ h({
|
|
10
|
+
__name: "ResponseMetaInformation",
|
|
11
|
+
props: {
|
|
12
|
+
response: {}
|
|
13
|
+
},
|
|
14
|
+
setup(c) {
|
|
15
|
+
const f = c, l = (e) => {
|
|
16
|
+
var o;
|
|
17
|
+
const p = parseInt((o = e.headers) == null ? void 0 : o["content-length"], 10);
|
|
18
|
+
return p ? g(p) : void 0;
|
|
19
|
+
}, r = C(() => {
|
|
20
|
+
const e = f.response.statusCode;
|
|
21
|
+
if (e)
|
|
22
|
+
return _[e] ?? void 0;
|
|
23
|
+
});
|
|
24
|
+
return (e, p) => {
|
|
25
|
+
var o, i;
|
|
26
|
+
return s(), a(u, null, [
|
|
27
|
+
n("div", L, [
|
|
28
|
+
n("span", null, t(v(B)(e.response.duration)), 1)
|
|
29
|
+
]),
|
|
30
|
+
l(e.response) ? (s(), a("div", N, [
|
|
31
|
+
n("span", null, t(l(e.response)), 1)
|
|
32
|
+
])) : m("", !0),
|
|
33
|
+
n("div", S, [
|
|
34
|
+
n("span", null, [
|
|
35
|
+
e.response.statusCode ? (s(), a(u, { key: 0 }, [
|
|
36
|
+
(o = r.value) != null && o.url ? (s(), k(I, {
|
|
37
|
+
key: 0,
|
|
38
|
+
href: r.value.url
|
|
39
|
+
}, {
|
|
40
|
+
default: y(() => [
|
|
41
|
+
d(t(e.response.statusCode) + " " + t(r.value.name), 1)
|
|
42
|
+
]),
|
|
43
|
+
_: 1
|
|
44
|
+
}, 8, ["href"])) : (s(), a(u, { key: 1 }, [
|
|
45
|
+
d(t(e.response.statusCode) + " " + t((i = r.value) == null ? void 0 : i.name), 1)
|
|
46
|
+
], 64))
|
|
47
|
+
], 64)) : m("", !0)
|
|
48
|
+
])
|
|
49
|
+
])
|
|
50
|
+
], 64);
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
export {
|
|
55
|
+
F as default
|
|
56
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as Response } from './Response.vue';
|
|
1
|
+
export { default as Response } from './Response.vue.js';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as ApiClient } from './ApiClient.vue';
|
|
1
|
+
export { default as ApiClient } from './ApiClient.vue.js';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Badge.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/Badge.vue
|
|
1
|
+
{"version":3,"file":"Badge.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/Badge.vue"],"names":[],"mappings":";;;AAkEA,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
2
2
|
title?: string | undefined;
|
|
3
3
|
defaultOpen?: boolean | undefined;
|
|
4
4
|
}>, {
|
|
5
5
|
defaultOpen: boolean;
|
|
6
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<
|
|
6
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
7
7
|
title?: string | undefined;
|
|
8
8
|
defaultOpen?: boolean | undefined;
|
|
9
9
|
}>, {
|
|
@@ -15,15 +15,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
15
15
|
default?(_: {}): any;
|
|
16
16
|
}>;
|
|
17
17
|
export default _default;
|
|
18
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
19
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
20
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
21
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
22
|
-
} : {
|
|
23
|
-
type: import('vue').PropType<T[K]>;
|
|
24
|
-
required: true;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
18
|
type __VLS_WithDefaults<P, D> = {
|
|
28
19
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
29
20
|
default: D[K];
|
|
@@ -37,4 +28,13 @@ type __VLS_WithTemplateSlots<T, S> = T & {
|
|
|
37
28
|
$slots: S;
|
|
38
29
|
};
|
|
39
30
|
};
|
|
31
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
32
|
+
type __VLS_TypePropsToOption<T> = {
|
|
33
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
34
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
35
|
+
} : {
|
|
36
|
+
type: import('vue').PropType<T[K]>;
|
|
37
|
+
required: true;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
40
|
//# sourceMappingURL=CollapsibleSection.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CollapsibleSection.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CollapsibleSection/CollapsibleSection.vue
|
|
1
|
+
{"version":3,"file":"CollapsibleSection.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CollapsibleSection/CollapsibleSection.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAwYA,wBAAwG;AAOxG,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAC7C,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KAAC,CAAC,GACvC,CAAC,CAAC,CAAC,CAAC;CACP,CAAC;AAEN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AAExD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { defineComponent as m, ref as n, watch as v, openBlock as p, createBlock as k, unref as a, withCtx as i, createElementVNode as t, normalizeClass as g, createVNode as _, toDisplayString as B, createElementBlock as h, renderSlot as u, createCommentVNode as C } from "vue";
|
|
2
|
+
import { Disclosure as w, DisclosureButton as y, DisclosurePanel as O } from "@headlessui/vue";
|
|
3
|
+
const D = { class: "scalar-api-client-item-topbar" }, $ = { class: "scalar-api-client__toggle-container" }, N = /* @__PURE__ */ t("svg", {
|
|
4
|
+
class: "scalar-api-client__toggle__icon",
|
|
5
|
+
fill: "none",
|
|
6
|
+
viewBox: "0 0 12 12",
|
|
7
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
8
|
+
}, [
|
|
9
|
+
/* @__PURE__ */ t("path", {
|
|
10
|
+
d: "M2.2 4.1 6 7.9l3.8-3.8",
|
|
11
|
+
stroke: "currentColor",
|
|
12
|
+
"stroke-linecap": "round",
|
|
13
|
+
"stroke-linejoin": "round"
|
|
14
|
+
})
|
|
15
|
+
], -1), S = { class: "scalar-api-client__item__title" }, b = {
|
|
16
|
+
key: 0,
|
|
17
|
+
class: "scalar-api-client__item__options"
|
|
18
|
+
}, E = { class: "scalar-api-client__item__content" }, M = /* @__PURE__ */ m({
|
|
19
|
+
__name: "CollapsibleSection",
|
|
20
|
+
props: {
|
|
21
|
+
title: {},
|
|
22
|
+
defaultOpen: { type: Boolean, default: !0 }
|
|
23
|
+
},
|
|
24
|
+
setup(d) {
|
|
25
|
+
const c = d, r = n(null), f = n(null), s = n(c.defaultOpen);
|
|
26
|
+
return v(
|
|
27
|
+
() => c.defaultOpen,
|
|
28
|
+
(e, o) => {
|
|
29
|
+
var l;
|
|
30
|
+
e !== o && e !== s.value && ((l = r.value) == null || l.el.click());
|
|
31
|
+
}
|
|
32
|
+
), (e, o) => (p(), k(a(w), {
|
|
33
|
+
ref_key: "disclosureButton",
|
|
34
|
+
ref: f,
|
|
35
|
+
defaultOpen: e.defaultOpen
|
|
36
|
+
}, {
|
|
37
|
+
default: i(({ open: l }) => [
|
|
38
|
+
t("div", {
|
|
39
|
+
class: g(["scalar-api-client__item", { "scalar-api-client__item--open": l }])
|
|
40
|
+
}, [
|
|
41
|
+
t("div", D, [
|
|
42
|
+
_(a(y), {
|
|
43
|
+
ref_key: "collapseButton",
|
|
44
|
+
ref: r,
|
|
45
|
+
class: "scalar-api-client__toggle",
|
|
46
|
+
onClick: o[0] || (o[0] = (V) => s.value = !s.value)
|
|
47
|
+
}, {
|
|
48
|
+
default: i(() => [
|
|
49
|
+
t("div", $, [
|
|
50
|
+
N,
|
|
51
|
+
t("span", S, B(e.title), 1)
|
|
52
|
+
])
|
|
53
|
+
]),
|
|
54
|
+
_: 1
|
|
55
|
+
}, 512)
|
|
56
|
+
]),
|
|
57
|
+
e.$slots.options && l ? (p(), h("div", b, [
|
|
58
|
+
u(e.$slots, "options")
|
|
59
|
+
])) : C("", !0),
|
|
60
|
+
_(a(O), null, {
|
|
61
|
+
default: i(() => [
|
|
62
|
+
t("div", E, [
|
|
63
|
+
u(e.$slots, "default")
|
|
64
|
+
])
|
|
65
|
+
]),
|
|
66
|
+
_: 3
|
|
67
|
+
})
|
|
68
|
+
], 2)
|
|
69
|
+
]),
|
|
70
|
+
_: 3
|
|
71
|
+
}, 8, ["defaultOpen"]));
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
export {
|
|
75
|
+
M as default
|
|
76
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as CollapsibleSection } from './CollapsibleSection.vue';
|
|
1
|
+
export { default as CollapsibleSection } from './CollapsibleSection.vue.js';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { BaseParameter } from '@scalar/oas-utils';
|
|
2
2
|
import type { GeneratedParameter } from '../../types';
|
|
3
|
-
declare const _default: import("vue").DefineComponent<
|
|
3
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
4
4
|
items?: BaseParameter[] | undefined;
|
|
5
5
|
generatedItems?: GeneratedParameter[] | undefined;
|
|
6
6
|
addLabel?: string | undefined;
|
|
@@ -8,7 +8,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
|
|
|
8
8
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
9
|
deleteIndex: (value: number) => void;
|
|
10
10
|
addAnother: () => void;
|
|
11
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<
|
|
11
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
12
12
|
items?: BaseParameter[] | undefined;
|
|
13
13
|
generatedItems?: GeneratedParameter[] | undefined;
|
|
14
14
|
addLabel?: string | undefined;
|
|
@@ -19,7 +19,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
|
|
|
19
19
|
}, {}, {}>;
|
|
20
20
|
export default _default;
|
|
21
21
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
22
|
-
type
|
|
22
|
+
type __VLS_TypePropsToOption<T> = {
|
|
23
23
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
24
24
|
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
25
25
|
} : {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Grid.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Grid/Grid.vue
|
|
1
|
+
{"version":3,"file":"Grid.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Grid/Grid.vue"],"names":[],"mappings":"AA8HA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAItD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;;;;;;;;;;;;;;;;;;AA0LrD,wBAOG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { defineComponent as y, ref as u, openBlock as n, createElementBlock as a, createVNode as d, Fragment as c, renderList as v, createBlock as h, unref as p, withDirectives as C, vShow as G, createElementVNode as m, createTextVNode as w, toDisplayString as M, createCommentVNode as b } from "vue";
|
|
2
|
+
import { ScalarIcon as f } from "@scalar/components";
|
|
3
|
+
import { clickGeneratedParameter as g } from "../../clientBus.js";
|
|
4
|
+
import F from "./GridHeader.vue.js";
|
|
5
|
+
import I from "./GridRowEditable.vue.js";
|
|
6
|
+
import B from "./GridRowGenerated.vue.js";
|
|
7
|
+
const L = { class: "table" }, N = { class: "meta-actions" }, S = { class: "meta-actions-item-icon" }, V = { class: "meta-actions-item-icon" }, T = /* @__PURE__ */ y({
|
|
8
|
+
__name: "Grid",
|
|
9
|
+
props: {
|
|
10
|
+
items: {},
|
|
11
|
+
generatedItems: {},
|
|
12
|
+
addLabel: {},
|
|
13
|
+
showMoreFilter: { type: Boolean }
|
|
14
|
+
},
|
|
15
|
+
emits: ["deleteIndex", "addAnother"],
|
|
16
|
+
setup($, { emit: D }) {
|
|
17
|
+
const k = D, i = u(!1), s = u(!1);
|
|
18
|
+
function U() {
|
|
19
|
+
k("addAnother"), s.value = !0;
|
|
20
|
+
}
|
|
21
|
+
return (t, r) => (n(), a("div", L, [
|
|
22
|
+
d(F, {
|
|
23
|
+
showDescription: i.value,
|
|
24
|
+
"onUpdate:showDescription": r[0] || (r[0] = (e) => i.value = e)
|
|
25
|
+
}, null, 8, ["showDescription"]),
|
|
26
|
+
(n(!0), a(c, null, v(t.generatedItems, (e) => (n(), h(B, {
|
|
27
|
+
key: e.name,
|
|
28
|
+
item: e,
|
|
29
|
+
showDescription: i.value,
|
|
30
|
+
onClick: r[1] || (r[1] = (l) => p(g).emit())
|
|
31
|
+
}, null, 8, ["item", "showDescription"]))), 128)),
|
|
32
|
+
(n(!0), a(c, null, v(t.items, (e, l) => C((n(), h(I, {
|
|
33
|
+
key: l,
|
|
34
|
+
description: e.description,
|
|
35
|
+
"onUpdate:description": (o) => e.description = o,
|
|
36
|
+
enabled: e.enabled,
|
|
37
|
+
"onUpdate:enabled": (o) => e.enabled = o,
|
|
38
|
+
name: e.name,
|
|
39
|
+
"onUpdate:name": (o) => e.name = o,
|
|
40
|
+
value: e.value,
|
|
41
|
+
"onUpdate:value": (o) => e.value = o,
|
|
42
|
+
required: e.required,
|
|
43
|
+
showDescription: i.value,
|
|
44
|
+
onDelete: (o) => t.$emit("deleteIndex", l)
|
|
45
|
+
}, null, 8, ["description", "onUpdate:description", "enabled", "onUpdate:enabled", "name", "onUpdate:name", "value", "onUpdate:value", "required", "showDescription", "onDelete"])), [
|
|
46
|
+
[G, !t.showMoreFilter || t.showMoreFilter && l < 5 || s.value]
|
|
47
|
+
])), 128)),
|
|
48
|
+
m("div", N, [
|
|
49
|
+
t.addLabel ? (n(), a("button", {
|
|
50
|
+
key: 0,
|
|
51
|
+
class: "meta-actions-item",
|
|
52
|
+
type: "button",
|
|
53
|
+
onClick: U
|
|
54
|
+
}, [
|
|
55
|
+
m("i", S, [
|
|
56
|
+
d(p(f), { icon: "Add" })
|
|
57
|
+
]),
|
|
58
|
+
w(" " + M(t.addLabel), 1)
|
|
59
|
+
])) : b("", !0),
|
|
60
|
+
t.showMoreFilter && t.items && t.items.length > 5 && !s.value ? (n(), a("button", {
|
|
61
|
+
key: 1,
|
|
62
|
+
class: "meta-actions-item",
|
|
63
|
+
type: "button",
|
|
64
|
+
onClick: r[2] || (r[2] = (e) => s.value = !0)
|
|
65
|
+
}, [
|
|
66
|
+
w(" Show More "),
|
|
67
|
+
m("i", V, [
|
|
68
|
+
d(p(f), { icon: "ChevronDown" })
|
|
69
|
+
])
|
|
70
|
+
])) : b("", !0)
|
|
71
|
+
])
|
|
72
|
+
]));
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
export {
|
|
76
|
+
T as default
|
|
77
|
+
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<
|
|
1
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
2
2
|
showDescription?: boolean | undefined;
|
|
3
3
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
4
4
|
"update:showDescription": (v: boolean) => void;
|
|
5
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<
|
|
5
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
6
6
|
showDescription?: boolean | undefined;
|
|
7
7
|
}>>> & {
|
|
8
8
|
"onUpdate:showDescription"?: ((v: boolean) => any) | undefined;
|
|
9
9
|
}, {}, {}>;
|
|
10
10
|
export default _default;
|
|
11
11
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
12
|
-
type
|
|
12
|
+
type __VLS_TypePropsToOption<T> = {
|
|
13
13
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
14
14
|
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
15
15
|
} : {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GridHeader.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Grid/GridHeader.vue
|
|
1
|
+
{"version":3,"file":"GridHeader.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Grid/GridHeader.vue"],"names":[],"mappings":";;;;;;;;;AAyLA,wBAOG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { defineComponent as a, openBlock as n, createBlock as l, withCtx as e, createVNode as p, unref as c, pushScopeId as d, popScopeId as h, createElementVNode as o } from "vue";
|
|
2
|
+
import { ScalarButton as m } from "@scalar/components";
|
|
3
|
+
import u from "./GridRow.vue.js";
|
|
4
|
+
const s = (t) => (d("data-v-28499a13"), t = t(), h(), t), w = /* @__PURE__ */ s(() => /* @__PURE__ */ o("label", { class: "table-column-header" }, "Key", -1)), _ = /* @__PURE__ */ s(() => /* @__PURE__ */ o("label", { class: "table-column-header" }, "Value", -1)), v = /* @__PURE__ */ s(() => /* @__PURE__ */ o("label", { class: "table-column-header" }, "Description", -1)), f = /* @__PURE__ */ s(() => /* @__PURE__ */ o("svg", {
|
|
5
|
+
fill: "currentColor",
|
|
6
|
+
height: "12",
|
|
7
|
+
width: "18",
|
|
8
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
9
|
+
}, [
|
|
10
|
+
/* @__PURE__ */ o("path", { d: "M0 11h9v-1H0v1ZM0 0v1h18V0H0Zm0 6h18V5H0v1Z" })
|
|
11
|
+
], -1)), k = /* @__PURE__ */ a({
|
|
12
|
+
__name: "GridHeader",
|
|
13
|
+
props: {
|
|
14
|
+
showDescription: { type: Boolean }
|
|
15
|
+
},
|
|
16
|
+
emits: ["update:showDescription"],
|
|
17
|
+
setup(t) {
|
|
18
|
+
return (i, r) => (n(), l(u, { showDescription: i.showDescription }, {
|
|
19
|
+
key: e(() => [
|
|
20
|
+
w
|
|
21
|
+
]),
|
|
22
|
+
value: e(() => [
|
|
23
|
+
_
|
|
24
|
+
]),
|
|
25
|
+
description: e(() => [
|
|
26
|
+
v
|
|
27
|
+
]),
|
|
28
|
+
meta: e(() => [
|
|
29
|
+
p(c(m), {
|
|
30
|
+
class: "table-description-toggle",
|
|
31
|
+
variant: "text",
|
|
32
|
+
onClick: r[0] || (r[0] = (D) => i.$emit("update:showDescription", !i.showDescription))
|
|
33
|
+
}, {
|
|
34
|
+
default: e(() => [
|
|
35
|
+
f
|
|
36
|
+
]),
|
|
37
|
+
_: 1
|
|
38
|
+
})
|
|
39
|
+
]),
|
|
40
|
+
_: 1
|
|
41
|
+
}, 8, ["showDescription"]));
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
export {
|
|
45
|
+
k as default
|
|
46
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
2
2
|
showDescription?: boolean | undefined;
|
|
3
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<
|
|
3
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
4
4
|
showDescription?: boolean | undefined;
|
|
5
5
|
}>>>, {}, {}>, {
|
|
6
6
|
meta?(_: {}): any;
|
|
@@ -9,8 +9,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
9
9
|
description?(_: {}): any;
|
|
10
10
|
}>;
|
|
11
11
|
export default _default;
|
|
12
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
13
|
+
new (): {
|
|
14
|
+
$slots: S;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
12
17
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
13
|
-
type
|
|
18
|
+
type __VLS_TypePropsToOption<T> = {
|
|
14
19
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
15
20
|
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
16
21
|
} : {
|
|
@@ -18,9 +23,4 @@ type __VLS_TypePropsToRuntimeProps<T> = {
|
|
|
18
23
|
required: true;
|
|
19
24
|
};
|
|
20
25
|
};
|
|
21
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
22
|
-
new (): {
|
|
23
|
-
$slots: S;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
26
|
//# sourceMappingURL=GridRow.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GridRow.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Grid/GridRow.vue
|
|
1
|
+
{"version":3,"file":"GridRow.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Grid/GridRow.vue"],"names":[],"mappings":";;;;;;;;;;AA+KA,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { defineComponent as i, openBlock as s, createElementBlock as r, createElementVNode as t, renderSlot as o, createCommentVNode as a } from "vue";
|
|
2
|
+
const l = { class: "table-row" }, n = { class: "table-row-meta" }, d = { class: "table-row-item" }, c = { class: "table-row-item" }, m = {
|
|
3
|
+
key: 0,
|
|
4
|
+
class: "table-row-item"
|
|
5
|
+
}, v = /* @__PURE__ */ i({
|
|
6
|
+
__name: "GridRow",
|
|
7
|
+
props: {
|
|
8
|
+
showDescription: { type: Boolean }
|
|
9
|
+
},
|
|
10
|
+
setup(p) {
|
|
11
|
+
return (e, _) => (s(), r("div", l, [
|
|
12
|
+
t("div", n, [
|
|
13
|
+
o(e.$slots, "meta", {}, void 0, !0)
|
|
14
|
+
]),
|
|
15
|
+
t("div", d, [
|
|
16
|
+
o(e.$slots, "key", {}, void 0, !0)
|
|
17
|
+
]),
|
|
18
|
+
t("div", c, [
|
|
19
|
+
o(e.$slots, "value", {}, void 0, !0)
|
|
20
|
+
]),
|
|
21
|
+
e.showDescription ? (s(), r("div", m, [
|
|
22
|
+
o(e.$slots, "description", {}, void 0, !0)
|
|
23
|
+
])) : a("", !0)
|
|
24
|
+
]));
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
export {
|
|
28
|
+
v as default
|
|
29
|
+
};
|