@scalar/api-client 2.10.0 → 2.12.0
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 +69 -0
- package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBar.vue.js +1 -1
- package/dist/components/AddressBar/AddressBar.vue2.js +35 -29
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +2 -2
- package/dist/components/ImportCollection/IntegrationLogo.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/IntegrationLogo.vue.js +1 -0
- package/dist/components/Server/ServerVariablesForm.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerVariablesForm.vue.js +6 -6
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +1 -1
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.js +14 -13
- package/dist/hooks/useClientConfig.d.ts +6 -3
- package/dist/hooks/useClientConfig.d.ts.map +1 -1
- package/dist/layouts/App/create-api-client-app.d.ts +18 -18
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.d.ts +18 -18
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +19 -19
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/errors.d.ts +1 -0
- package/dist/libs/errors.d.ts.map +1 -1
- package/dist/libs/errors.js +2 -1
- package/dist/libs/find-request.d.ts +1 -1
- package/dist/libs/send-request/create-request-operation.d.ts +4 -4
- package/dist/libs/send-request/create-request-operation.d.ts.map +1 -1
- package/dist/libs/send-request/create-request-operation.js +60 -51
- package/dist/store/active-entities.d.ts +1 -1
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/collections.d.ts.map +1 -1
- package/dist/store/requests.d.ts +11 -11
- package/dist/store/security-schemes.d.ts.map +1 -1
- package/dist/store/store.d.ts +11 -11
- package/dist/store/store.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts +82 -26
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.js +65 -65
- package/dist/v2/blocks/operation-block/components/Header.vue.d.ts +5 -8
- package/dist/v2/blocks/operation-block/components/Header.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/components/Header.vue.js +3 -3
- package/dist/v2/blocks/operation-block/components/Header.vue2.js +33 -36
- package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.vue.js +11 -10
- package/dist/v2/blocks/{scalar-operation-block/components/OperationBlock.vue.d.ts → request-block/RequestBlock.vue.d.ts} +5 -19
- package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/RequestBlock.vue.js +7 -0
- package/dist/v2/blocks/request-block/RequestBlock.vue2.js +223 -0
- package/dist/v2/blocks/{scalar-operation-block/components/OperationBody.vue.d.ts → request-block/components/RequestBody.vue.d.ts} +4 -6
- package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/components/RequestBody.vue.js +7 -0
- package/dist/v2/blocks/{scalar-operation-block/components/OperationBody.vue2.js → request-block/components/RequestBody.vue2.js} +86 -90
- package/dist/v2/blocks/{scalar-operation-block/components/OperationParams.vue.d.ts → request-block/components/RequestParams.vue.d.ts} +3 -6
- package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts.map +1 -0
- package/dist/v2/blocks/{scalar-operation-block/components/OperationParams.vue.js → request-block/components/RequestParams.vue.js} +26 -28
- package/dist/v2/blocks/request-block/components/RequestParams.vue2.js +4 -0
- package/dist/v2/blocks/{scalar-operation-block/components/OperationTable.vue.d.ts → request-block/components/RequestTable.vue.d.ts} +4 -7
- package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/components/RequestTable.vue.js +7 -0
- package/dist/v2/blocks/request-block/components/RequestTable.vue2.js +86 -0
- package/dist/v2/blocks/{scalar-operation-block/components/OperationTableRow.vue.d.ts → request-block/components/RequestTableRow.vue.d.ts} +3 -6
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -0
- package/dist/v2/blocks/{scalar-operation-block/components/OperationTableRow.vue.js → request-block/components/RequestTableRow.vue.js} +63 -67
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue2.js +4 -0
- package/dist/v2/blocks/{scalar-operation-block/components/OperationTableTooltip.vue.d.ts → request-block/components/RequestTableTooltip.vue.d.ts} +1 -1
- package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue.js +7 -0
- package/dist/v2/blocks/{scalar-operation-block/components/OperationTableTooltip.vue2.js → request-block/components/RequestTableTooltip.vue2.js} +7 -7
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts +24 -0
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.js +29 -0
- package/dist/v2/blocks/request-block/helpers/files.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/helpers/get-parameter-content.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/helpers/get-parameter-example.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/helpers/get-parameter-schema.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/helpers/get-request-body-example.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/helpers/group-by.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/helpers/validate-parameter.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/index.d.ts +2 -0
- package/dist/v2/blocks/request-block/index.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/index.js +4 -0
- package/dist/v2/blocks/{scalar-response-block/components → response-block}/ResponseBlock.vue.d.ts +3 -3
- package/dist/v2/blocks/response-block/ResponseBlock.vue.d.ts.map +1 -0
- package/dist/v2/blocks/response-block/ResponseBlock.vue.js +7 -0
- package/dist/v2/blocks/{scalar-response-block/components → response-block}/ResponseBlock.vue2.js +25 -25
- package/dist/v2/blocks/{scalar-response-block → response-block}/components/Headers.vue.d.ts +2 -2
- package/dist/v2/blocks/response-block/components/Headers.vue.d.ts.map +1 -0
- package/dist/v2/blocks/{scalar-response-block → response-block}/components/Headers.vue.js +9 -9
- package/dist/v2/blocks/response-block/components/ResponseBody.vue.d.ts.map +1 -0
- package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBody.vue.js +2 -2
- package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBody.vue2.js +22 -22
- package/dist/v2/blocks/response-block/components/ResponseBodyDownload.vue.d.ts.map +1 -0
- package/dist/v2/blocks/response-block/components/ResponseBodyInfo.vue.d.ts.map +1 -0
- package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue.d.ts.map +1 -0
- package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyPreview.vue.js +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue.d.ts.map +1 -0
- package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyRaw.vue.js +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyStreaming.vue.d.ts.map +1 -0
- package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyStreaming.vue.js +14 -14
- package/dist/v2/blocks/response-block/components/ResponseBodyToggle.vue.d.ts.map +1 -0
- package/dist/v2/blocks/response-block/components/ResponseBodyVirtual.vue.d.ts.map +1 -0
- package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyVirtual.vue.js +12 -12
- package/dist/v2/blocks/response-block/components/ResponseCookies.vue.d.ts.map +1 -0
- package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseCookies.vue.js +13 -13
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.d.ts.map +1 -0
- package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseEmpty.vue.js +2 -2
- package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue.d.ts.map +1 -0
- package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue.js +7 -0
- package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseMetaInformation.vue.d.ts +0 -1
- package/dist/v2/blocks/response-block/components/ResponseMetaInformation.vue.d.ts.map +1 -0
- package/dist/v2/blocks/response-block/helpers/extract-filename.d.ts.map +1 -0
- package/dist/v2/blocks/response-block/helpers/get-content-length.d.ts.map +1 -0
- package/dist/v2/blocks/response-block/helpers/media-types.d.ts.map +1 -0
- package/dist/v2/blocks/response-block/helpers/process-response-body.d.ts.map +1 -0
- package/dist/v2/blocks/response-block/index.d.ts +2 -0
- package/dist/v2/blocks/response-block/index.d.ts.map +1 -0
- package/dist/v2/blocks/response-block/index.js +4 -0
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts +6 -8
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +2 -2
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +68 -70
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts +11 -9
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +179 -5
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue2.js +2 -179
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +201 -198
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts +11 -6
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js +82 -5
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue2.js +2 -85
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts +3 -13
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.js +16 -18
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +133 -142
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js +1 -1
- package/dist/v2/components/code-input/CodeInput.vue.d.ts +1 -0
- package/dist/v2/components/code-input/CodeInput.vue.d.ts.map +1 -1
- package/dist/v2/components/code-input/CodeInput.vue.js +1 -1
- package/dist/v2/components/code-input/CodeInput.vue2.js +29 -28
- package/dist/v2/components/data-table/DataTable.vue.d.ts.map +1 -1
- package/dist/v2/components/data-table/DataTable.vue.js +4 -4
- package/dist/v2/components/data-table/DataTableInput.vue.d.ts +5 -7
- package/dist/v2/components/data-table/DataTableInput.vue.d.ts.map +1 -1
- package/dist/v2/components/data-table/DataTableInput.vue.js +2 -2
- package/dist/v2/components/data-table/DataTableInput.vue2.js +32 -36
- package/dist/v2/components/forms/ConfirmationForm.vue.d.ts +25 -0
- package/dist/v2/components/forms/ConfirmationForm.vue.d.ts.map +1 -0
- package/dist/v2/components/forms/ConfirmationForm.vue.js +7 -0
- package/dist/v2/components/forms/ConfirmationForm.vue2.js +45 -0
- package/dist/v2/components/forms/index.d.ts +2 -0
- package/dist/v2/components/forms/index.d.ts.map +1 -0
- package/dist/v2/components/forms/index.js +4 -0
- package/dist/v2/components/layout/CollapsibleSection.vue.d.ts +43 -0
- package/dist/v2/components/layout/CollapsibleSection.vue.d.ts.map +1 -0
- package/dist/v2/components/layout/CollapsibleSection.vue.js +89 -0
- package/dist/v2/components/layout/CollapsibleSection.vue2.js +4 -0
- package/dist/v2/components/layout/ValueEmitter.vue.d.ts +23 -0
- package/dist/v2/components/layout/ValueEmitter.vue.d.ts.map +1 -0
- package/dist/v2/components/layout/ValueEmitter.vue.js +21 -0
- package/dist/v2/components/layout/ValueEmitter.vue2.js +4 -0
- package/dist/v2/components/layout/index.d.ts +2 -0
- package/dist/v2/components/layout/index.d.ts.map +1 -0
- package/dist/v2/components/layout/index.js +4 -0
- package/dist/v2/components/modals/DeleteModal.vue.d.ts +15 -0
- package/dist/v2/components/modals/DeleteModal.vue.d.ts.map +1 -0
- package/dist/v2/components/modals/DeleteModal.vue.js +31 -0
- package/dist/v2/components/modals/DeleteModal.vue2.js +4 -0
- package/dist/v2/components/modals/index.d.ts +2 -0
- package/dist/v2/components/modals/index.d.ts.map +1 -0
- package/dist/v2/components/modals/index.js +4 -0
- package/dist/v2/components/resize/Resize.vue.d.ts.map +1 -1
- package/dist/v2/components/resize/Resize.vue.js +2 -2
- package/dist/v2/components/server/ServerDropdown.vue.d.ts +7 -5
- package/dist/v2/components/server/ServerDropdown.vue.d.ts.map +1 -1
- package/dist/v2/components/server/ServerDropdown.vue.js +44 -49
- package/dist/v2/components/server/ServerDropdownItem.vue.d.ts +3 -7
- package/dist/v2/components/server/ServerDropdownItem.vue.d.ts.map +1 -1
- package/dist/v2/components/server/ServerDropdownItem.vue.js +2 -2
- package/dist/v2/components/server/ServerDropdownItem.vue2.js +24 -26
- package/dist/v2/components/server/index.d.ts.map +1 -1
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts +30 -6
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/v2/components/sidebar/Sidebar.vue.js +57 -62
- package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts +18 -9
- package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts.map +1 -1
- package/dist/v2/components/sidebar/SidebarMenu.vue.js +36 -43
- package/dist/v2/features/app/App.vue.d.ts +2 -5
- package/dist/v2/features/app/App.vue.d.ts.map +1 -1
- package/dist/v2/features/app/App.vue.js +134 -82
- package/dist/v2/features/app/components/AppSidebar.vue.d.ts +42 -6
- package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -1
- package/dist/v2/features/app/components/AppSidebar.vue.js +1 -1
- package/dist/v2/features/app/components/AppSidebar.vue2.js +76 -64
- package/dist/v2/features/app/components/CreateWorkspaceModal.vue.d.ts +15 -0
- package/dist/v2/features/app/components/CreateWorkspaceModal.vue.d.ts.map +1 -0
- package/dist/v2/features/app/components/CreateWorkspaceModal.vue.js +56 -0
- package/dist/v2/features/app/components/CreateWorkspaceModal.vue2.js +4 -0
- package/dist/v2/{components/TempReplaceMe.vue.d.ts → features/app/components/SplashScreen.vue.d.ts} +1 -1
- package/dist/v2/features/app/components/SplashScreen.vue.d.ts.map +1 -0
- package/dist/v2/features/app/components/SplashScreen.vue.js +7 -0
- package/dist/v2/features/app/components/SplashScreen.vue2.js +18 -0
- package/dist/v2/features/app/components/WebTopNav.vue.d.ts +26 -5
- package/dist/v2/features/app/components/WebTopNav.vue.d.ts.map +1 -1
- package/dist/v2/features/app/components/WebTopNav.vue.js +18 -19
- package/dist/v2/features/app/helpers/create-api-client-app.d.ts +1 -2
- package/dist/v2/features/app/helpers/create-api-client-app.d.ts.map +1 -1
- package/dist/v2/features/app/helpers/create-api-client-app.js +8 -8
- package/dist/v2/features/app/helpers/routes.d.ts +6 -41
- package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
- package/dist/v2/features/app/helpers/routes.js +4 -9
- package/dist/v2/features/collection/DocumentCollection.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/DocumentCollection.vue2.js +69 -74
- package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/WorkspaceCollection.vue2.js +25 -25
- package/dist/v2/features/collection/components/Authentication.vue.d.ts +13 -25
- package/dist/v2/features/collection/components/Authentication.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Authentication.vue.js +2 -2
- package/dist/v2/features/collection/components/Authentication.vue2.js +49 -35
- package/dist/v2/features/collection/components/Cookies.vue.d.ts +13 -1
- package/dist/v2/features/collection/components/Cookies.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Cookies.vue.js +2 -7
- package/dist/v2/features/collection/components/Cookies.vue2.js +32 -0
- package/dist/v2/features/collection/components/Environment.vue2.js +2 -0
- package/dist/v2/features/collection/components/Form.vue.d.ts +3 -7
- package/dist/v2/features/collection/components/Form.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Form.vue.js +28 -33
- package/dist/v2/features/collection/components/Overview.vue2.js +10 -8
- package/dist/v2/features/collection/components/Servers.vue.d.ts +13 -31
- package/dist/v2/features/collection/components/Servers.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Servers.vue2.js +105 -82
- package/dist/v2/features/collection/components/Settings.vue.d.ts +13 -15
- package/dist/v2/features/collection/components/Settings.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Settings.vue.js +2 -5
- package/dist/v2/features/collection/components/Settings.vue2.js +51 -92
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.d.ts.map +1 -1
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.js +3 -3
- package/dist/v2/features/global-cookies/components/CookiesTable.vue.d.ts +6 -22
- package/dist/v2/features/global-cookies/components/CookiesTable.vue.d.ts.map +1 -1
- package/dist/v2/features/global-cookies/components/CookiesTable.vue.js +3 -3
- package/dist/v2/features/global-cookies/components/CookiesTable.vue2.js +121 -88
- package/dist/v2/features/global-cookies/index.d.ts +1 -1
- package/dist/v2/features/global-cookies/index.d.ts.map +1 -1
- package/dist/v2/features/global-cookies/index.js +2 -2
- package/dist/v2/features/modal/Modal.vue.d.ts +0 -2
- package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
- package/dist/v2/features/modal/Modal.vue.js +2 -2
- package/dist/v2/features/modal/Modal.vue2.js +28 -53
- package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts.map +1 -1
- package/dist/v2/features/modal/helpers/create-api-client-modal.js +8 -9
- package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
- package/dist/v2/features/operation/Operation.vue.js +35 -34
- package/dist/v2/features/operation/helpers/get-security-requirements.d.ts +12 -0
- package/dist/v2/features/operation/helpers/get-security-requirements.d.ts.map +1 -0
- package/dist/v2/features/operation/helpers/get-security-requirements.js +4 -0
- package/dist/v2/features/search/components/SearchButton.vue.d.ts +12 -0
- package/dist/v2/features/search/components/SearchButton.vue.d.ts.map +1 -0
- package/dist/v2/features/search/components/SearchButton.vue.js +71 -0
- package/dist/v2/features/search/components/SearchButton.vue2.js +4 -0
- package/dist/v2/features/search/components/SearchModal.vue.d.ts +11 -0
- package/dist/v2/features/search/components/SearchModal.vue.d.ts.map +1 -0
- package/dist/v2/features/search/components/SearchModal.vue.js +7 -0
- package/dist/v2/features/search/components/SearchModal.vue2.js +101 -0
- package/dist/v2/features/search/components/SearchResult.vue.d.ts +10 -0
- package/dist/v2/features/search/components/SearchResult.vue.d.ts.map +1 -0
- package/dist/v2/features/search/components/SearchResult.vue.js +80 -0
- package/dist/v2/features/search/components/SearchResult.vue2.js +4 -0
- package/dist/v2/features/search/helpers/create-fuse-instance.d.ts +9 -0
- package/dist/v2/features/search/helpers/create-fuse-instance.d.ts.map +1 -0
- package/dist/v2/features/search/helpers/create-fuse-instance.js +43 -0
- package/dist/v2/features/search/helpers/create-search-index.d.ts +7 -0
- package/dist/v2/features/search/helpers/create-search-index.d.ts.map +1 -0
- package/dist/v2/features/search/helpers/create-search-index.js +63 -0
- package/dist/v2/features/search/hooks/use-search-index.d.ts +14 -0
- package/dist/v2/features/search/hooks/use-search-index.d.ts.map +1 -0
- package/dist/v2/features/search/hooks/use-search-index.js +24 -0
- package/dist/v2/features/search/index.d.ts +3 -0
- package/dist/v2/features/search/index.d.ts.map +1 -0
- package/dist/v2/features/search/index.js +6 -0
- package/dist/v2/features/search/types.d.ts +24 -0
- package/dist/v2/features/search/types.d.ts.map +1 -0
- package/dist/v2/features/settings/{Settings.vue.d.ts → CollectionSettings.vue.d.ts} +2 -2
- package/dist/v2/features/settings/CollectionSettings.vue.d.ts.map +1 -0
- package/dist/v2/features/settings/CollectionSettings.vue.js +266 -0
- package/dist/v2/features/settings/CollectionSettings.vue2.js +4 -0
- package/dist/v2/features/settings/DocumentSettings.vue.d.ts +19 -0
- package/dist/v2/features/settings/DocumentSettings.vue.d.ts.map +1 -0
- package/dist/v2/features/settings/DocumentSettings.vue.js +7 -0
- package/dist/v2/features/settings/DocumentSettings.vue2.js +106 -0
- package/dist/v2/features/settings/index.d.ts +2 -1
- package/dist/v2/features/settings/index.d.ts.map +1 -1
- package/dist/v2/features/settings/index.js +4 -2
- package/dist/v2/helpers/drag-handle-factory.d.ts +17 -0
- package/dist/v2/helpers/drag-handle-factory.d.ts.map +1 -0
- package/dist/v2/helpers/drag-handle-factory.js +135 -0
- package/dist/v2/helpers/handle-hotkeys.d.ts +23 -0
- package/dist/v2/helpers/handle-hotkeys.d.ts.map +1 -0
- package/dist/v2/helpers/handle-hotkeys.js +56 -0
- package/dist/v2/helpers/slugify.d.ts +9 -0
- package/dist/v2/helpers/slugify.d.ts.map +1 -0
- package/dist/v2/helpers/slugify.js +4 -0
- package/dist/v2/helpers/storage.d.ts +25 -0
- package/dist/v2/helpers/storage.d.ts.map +1 -0
- package/dist/v2/helpers/storage.js +20 -0
- package/dist/v2/hooks/use-color-mode.d.ts +20 -0
- package/dist/v2/hooks/use-color-mode.d.ts.map +1 -0
- package/dist/v2/hooks/use-color-mode.js +24 -0
- package/dist/v2/hooks/use-document-watcher.d.ts +9 -7
- package/dist/v2/hooks/use-document-watcher.d.ts.map +1 -1
- package/dist/v2/hooks/use-document-watcher.js +66 -0
- package/dist/v2/hooks/use-global-hot-keys.d.ts +10 -0
- package/dist/v2/hooks/use-global-hot-keys.d.ts.map +1 -0
- package/dist/v2/hooks/use-global-hot-keys.js +9 -0
- package/dist/v2/hooks/use-sidebar-state.d.ts +48 -0
- package/dist/v2/hooks/use-sidebar-state.d.ts.map +1 -0
- package/dist/v2/hooks/use-sidebar-state.js +128 -0
- package/dist/v2/hooks/use-workspace-client-events.d.ts +8 -2
- package/dist/v2/hooks/use-workspace-client-events.d.ts.map +1 -1
- package/dist/v2/hooks/use-workspace-client-events.js +52 -135
- package/dist/v2/hooks/use-workspace-selector.d.ts +18 -0
- package/dist/v2/hooks/use-workspace-selector.d.ts.map +1 -0
- package/dist/v2/hooks/use-workspace-selector.js +87 -0
- package/dist/views/Request/RequestRoot.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestRoot.vue.js +2 -2
- package/dist/views/Request/RequestRoot.vue2.js +86 -77
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestBody.vue2.js +29 -24
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/package.json +29 -28
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts +0 -45
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +0 -29
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-auth-selector-block/event-types.d.ts +0 -29
- package/dist/v2/blocks/scalar-auth-selector-block/event-types.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.js +0 -7
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue2.js +0 -289
- package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.js +0 -7
- package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue2.js +0 -4
- package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue.js +0 -7
- package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue2.js +0 -88
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue2.js +0 -4
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableTooltip.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableTooltip.vue.js +0 -7
- package/dist/v2/blocks/scalar-operation-block/helpers/files.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-content.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-example.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-schema.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/helpers/get-request-body-example.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/helpers/group-by.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/helpers/validate-parameter.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/index.d.ts +0 -2
- package/dist/v2/blocks/scalar-operation-block/index.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/index.js +0 -4
- package/dist/v2/blocks/scalar-response-block/components/Headers.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.js +0 -7
- package/dist/v2/blocks/scalar-response-block/components/ResponseBody.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyDownload.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyInfo.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyPreview.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyRaw.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyToggle.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyVirtual.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseEmpty.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseLoadingOverlay.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseLoadingOverlay.vue.js +0 -7
- package/dist/v2/blocks/scalar-response-block/components/ResponseMetaInformation.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/helpers/extract-filename.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/helpers/get-content-length.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/helpers/media-types.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/helpers/process-response-body.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/index.d.ts +0 -2
- package/dist/v2/blocks/scalar-response-block/index.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/index.js +0 -4
- package/dist/v2/components/TempReplaceMe.vue.d.ts.map +0 -1
- package/dist/v2/components/TempReplaceMe.vue.js +0 -12
- package/dist/v2/features/global-cookies/components/GlobalCookies.vue.d.ts +0 -32
- package/dist/v2/features/global-cookies/components/GlobalCookies.vue.d.ts.map +0 -1
- package/dist/v2/features/global-cookies/components/GlobalCookies.vue.js +0 -7
- package/dist/v2/features/global-cookies/components/GlobalCookies.vue2.js +0 -58
- package/dist/v2/features/settings/Settings.vue.d.ts.map +0 -1
- package/dist/v2/features/settings/Settings.vue.js +0 -268
- package/dist/v2/features/settings/Settings.vue2.js +0 -4
- /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/files.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/files.js +0 -0
- /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/get-parameter-content.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/get-parameter-content.js +0 -0
- /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/get-parameter-example.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/get-parameter-example.js +0 -0
- /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/get-parameter-schema.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/get-parameter-schema.js +0 -0
- /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/get-request-body-example.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/get-request-body-example.js +0 -0
- /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/group-by.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/group-by.js +0 -0
- /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/validate-parameter.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/validate-parameter.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/Headers.vue2.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBody.vue.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyDownload.vue.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyDownload.vue.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyDownload.vue2.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyInfo.vue.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyInfo.vue.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyPreview.vue.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyPreview.vue2.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyRaw.vue.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyRaw.vue2.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyStreaming.vue.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyStreaming.vue2.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyToggle.vue.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyToggle.vue.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyToggle.vue2.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyVirtual.vue.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyVirtual.vue3.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseCookies.vue.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseCookies.vue2.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseEmpty.vue.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseEmpty.vue2.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseLoadingOverlay.vue.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseLoadingOverlay.vue2.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseMetaInformation.vue.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseMetaInformation.vue2.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/helpers/extract-filename.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/helpers/extract-filename.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/helpers/get-content-length.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/helpers/get-content-length.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/helpers/media-types.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/helpers/media-types.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/helpers/process-response-body.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/helpers/process-response-body.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTableInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/data-table/DataTableInput.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DataTableInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/data-table/DataTableInput.vue"],"names":[],"mappings":"AA8LA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AAGnH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAM/C,KAAK,WAAW,GAAG;IACf,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACzB,sEAAsE;IACtE,cAAc,CAAC,EAAE,YAAY,GAAG,SAAS,CAAA;IACzC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,EAAE,MAAM,GAAG,MAAM,CAAA;IAC3B,0EAA0E;IAC1E,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;IACf,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,kBAAkB,CAAA;IAC/B,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAChC,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB,CAAC;AAmSJ,QAAA,IAAI,OAAO,IAAU,EAAuB,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AACvF,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC7C;IAAE,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAmC7C,QAAA,MAAM,eAAe;;;;;;;;;;;cArVN,OAAO;cAIP,OAAO;kBAMH,OAAO;2BAPE,OAAO;6EA0VjC,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./DataTableInput.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const r = /* @__PURE__ */ o(t, [["__scopeId", "data-v-25ff4902"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
r as default
|
|
7
7
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as B, ref as u, computed as C, createBlock as s, openBlock as o, normalizeClass as b, withCtx as $, createElementBlock as d, createCommentVNode as p, createElementVNode as I, renderSlot as m, createTextVNode as O, Fragment as h, mergeProps as c, unref as i } from "vue";
|
|
2
2
|
import { ScalarIconButton as E } from "@scalar/components";
|
|
3
3
|
import { ScalarIconEye as S, ScalarIconEyeSlash as A } from "@scalar/icons";
|
|
4
|
-
import W from "
|
|
5
|
-
import q from "./
|
|
6
|
-
import F from "
|
|
4
|
+
import W from "./DataTableCell.vue.js";
|
|
5
|
+
import q from "./DataTableInputSelect.vue.js";
|
|
6
|
+
import F from "../code-input/CodeInput.vue.js";
|
|
7
7
|
const T = ["for"], N = { class: "relative flex min-w-0 flex-1" }, P = ["readOnly", "type", "value"], D = {
|
|
8
8
|
key: 1,
|
|
9
9
|
class: "centered-y text-orange absolute right-7 text-xs"
|
|
10
|
-
}, J = /* @__PURE__ */
|
|
10
|
+
}, J = /* @__PURE__ */ B({
|
|
11
11
|
inheritAttrs: !1,
|
|
12
12
|
__name: "DataTableInput",
|
|
13
13
|
props: {
|
|
@@ -22,41 +22,38 @@ const T = ["for"], N = { class: "relative flex min-w-0 flex-1" }, P = ["readOnly
|
|
|
22
22
|
min: {},
|
|
23
23
|
max: {},
|
|
24
24
|
environment: {},
|
|
25
|
-
envVariables: {},
|
|
26
25
|
description: {},
|
|
27
26
|
lineWrapping: { type: Boolean, default: !1 }
|
|
28
27
|
},
|
|
29
28
|
emits: ["update:modelValue", "inputFocus", "inputBlur", "selectVariable"],
|
|
30
|
-
setup(
|
|
31
|
-
const n =
|
|
32
|
-
w.value || t("inputBlur");
|
|
33
|
-
}, y = B(
|
|
29
|
+
setup(v, { emit: V }) {
|
|
30
|
+
const n = v, t = V, r = u(!0), w = u(!1), f = u(null), k = () => !w.value && t("inputBlur"), y = C(
|
|
34
31
|
() => n.type === "password" ? "text" : n.type ?? "text"
|
|
35
|
-
),
|
|
32
|
+
), g = () => {
|
|
36
33
|
!n.enum?.length && !n.readOnly && f.value?.focus();
|
|
37
34
|
};
|
|
38
|
-
return (e, l) => (
|
|
39
|
-
class:
|
|
35
|
+
return (e, l) => (o(), s(W, {
|
|
36
|
+
class: b(["relative flex", e.containerClass])
|
|
40
37
|
}, {
|
|
41
38
|
default: $(() => [
|
|
42
|
-
e.$slots.default ? (
|
|
39
|
+
e.$slots.default ? (o(), d("div", {
|
|
43
40
|
key: 0,
|
|
44
41
|
class: "text-c-1 flex items-center pr-0 pl-3",
|
|
45
42
|
for: e.id ?? "",
|
|
46
|
-
onClick:
|
|
43
|
+
onClick: g
|
|
47
44
|
}, [
|
|
48
|
-
|
|
45
|
+
m(e.$slots, "default", {}, void 0, !0),
|
|
49
46
|
l[5] || (l[5] = O(": ", -1))
|
|
50
|
-
], 8, T)) :
|
|
47
|
+
], 8, T)) : p("", !0),
|
|
51
48
|
I("div", N, [
|
|
52
|
-
n.enum && n.enum.length ? (
|
|
49
|
+
n.enum && n.enum.length ? (o(), s(q, {
|
|
53
50
|
key: 0,
|
|
54
51
|
canAddCustomValue: n.canAddCustomEnumValue,
|
|
55
52
|
modelValue: n.modelValue,
|
|
56
53
|
value: n.enum,
|
|
57
|
-
"onUpdate:modelValue": l[0] || (l[0] = (
|
|
58
|
-
}, null, 8, ["canAddCustomValue", "modelValue", "value"])) : (
|
|
59
|
-
r.value && e.type === "password" ? (
|
|
54
|
+
"onUpdate:modelValue": l[0] || (l[0] = (a) => t("update:modelValue", a))
|
|
55
|
+
}, null, 8, ["canAddCustomValue", "modelValue", "value"])) : (o(), d(h, { key: 1 }, [
|
|
56
|
+
r.value && e.type === "password" ? (o(), d("input", c({ key: 0 }, e.id ? { ...e.$attrs, id: e.id } : e.$attrs, {
|
|
60
57
|
autocomplete: "off",
|
|
61
58
|
class: ["text-c-1 disabled:text-c-2 peer w-full min-w-0 border-none px-2 py-1.25 -outline-offset-1", { "scalar-password-input": e.type === "password" }],
|
|
62
59
|
"data-1p-ignore": "",
|
|
@@ -64,11 +61,11 @@ const T = ["for"], N = { class: "relative flex min-w-0 flex-1" }, P = ["readOnly
|
|
|
64
61
|
spellcheck: "false",
|
|
65
62
|
type: y.value,
|
|
66
63
|
value: e.modelValue,
|
|
67
|
-
onInput: l[1] || (l[1] = (
|
|
64
|
+
onInput: l[1] || (l[1] = (a) => t(
|
|
68
65
|
"update:modelValue",
|
|
69
|
-
|
|
66
|
+
a.target.value ?? ""
|
|
70
67
|
))
|
|
71
|
-
}), null, 16, P)) : (
|
|
68
|
+
}), null, 16, P)) : (o(), s(i(F), c({ key: 1 }, e.$attrs, {
|
|
72
69
|
id: e.id,
|
|
73
70
|
ref_key: "codeInput",
|
|
74
71
|
ref: f,
|
|
@@ -80,7 +77,6 @@ const T = ["for"], N = { class: "relative flex min-w-0 flex-1" }, P = ["readOnly
|
|
|
80
77
|
description: e.description,
|
|
81
78
|
disableCloseBrackets: "",
|
|
82
79
|
disableTabIndent: "",
|
|
83
|
-
envVariables: e.envVariables,
|
|
84
80
|
environment: e.environment,
|
|
85
81
|
lineWrapping: !!e.lineWrapping,
|
|
86
82
|
max: e.max,
|
|
@@ -91,22 +87,22 @@ const T = ["for"], N = { class: "relative flex min-w-0 flex-1" }, P = ["readOnly
|
|
|
91
87
|
spellcheck: "false",
|
|
92
88
|
type: y.value,
|
|
93
89
|
onBlur: k,
|
|
94
|
-
onFocus: l[2] || (l[2] = (
|
|
95
|
-
"onUpdate:modelValue": l[3] || (l[3] = (
|
|
96
|
-
}), null, 16, ["id", "class", "description", "
|
|
90
|
+
onFocus: l[2] || (l[2] = (a) => t("inputFocus")),
|
|
91
|
+
"onUpdate:modelValue": l[3] || (l[3] = (a) => t("update:modelValue", a))
|
|
92
|
+
}), null, 16, ["id", "class", "description", "environment", "lineWrapping", "max", "min", "modelValue", "readOnly", "required", "type"]))
|
|
97
93
|
], 64))
|
|
98
94
|
]),
|
|
99
|
-
e.$slots.warning ? (
|
|
100
|
-
|
|
101
|
-
])) :
|
|
102
|
-
|
|
103
|
-
e.type === "password" ? (
|
|
95
|
+
e.$slots.warning ? (o(), d("div", D, [
|
|
96
|
+
m(e.$slots, "warning", {}, void 0, !0)
|
|
97
|
+
])) : p("", !0),
|
|
98
|
+
m(e.$slots, "icon", {}, void 0, !0),
|
|
99
|
+
e.type === "password" ? (o(), s(i(E), {
|
|
104
100
|
key: 2,
|
|
105
101
|
class: "-ml-.5 mr-1.25 h-6 w-6 self-center p-1.25",
|
|
106
|
-
icon: r.value ?
|
|
102
|
+
icon: r.value ? i(S) : i(A),
|
|
107
103
|
label: r.value ? "Show Password" : "Hide Password",
|
|
108
|
-
onClick: l[4] || (l[4] = (
|
|
109
|
-
}, null, 8, ["icon", "label"])) :
|
|
104
|
+
onClick: l[4] || (l[4] = (a) => r.value = !r.value)
|
|
105
|
+
}, null, 8, ["icon", "label"])) : p("", !0)
|
|
110
106
|
]),
|
|
111
107
|
_: 3
|
|
112
108
|
}, 8, ["class"]));
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** The label of the submit button */
|
|
3
|
+
label?: string;
|
|
4
|
+
/** Sets the style of the submit button */
|
|
5
|
+
variant?: 'danger' | 'solid';
|
|
6
|
+
};
|
|
7
|
+
declare var __VLS_1: {};
|
|
8
|
+
type __VLS_Slots = {} & {
|
|
9
|
+
default?: (props: typeof __VLS_1) => any;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
12
|
+
submit: () => any;
|
|
13
|
+
cancel: () => any;
|
|
14
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
|
+
onSubmit?: (() => any) | undefined;
|
|
16
|
+
onCancel?: (() => any) | undefined;
|
|
17
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
19
|
+
export default _default;
|
|
20
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
21
|
+
new (): {
|
|
22
|
+
$slots: S;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=ConfirmationForm.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConfirmationForm.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/forms/ConfirmationForm.vue"],"names":[],"mappings":"AAwDA,KAAK,WAAW,GAAG;IACjB,qCAAqC;IACrC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,0CAA0C;IAC1C,OAAO,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAA;CAC7B,CAAC;AAqGF,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAsB/C,QAAA,MAAM,eAAe;;;;;;kFAOnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { defineComponent as m, createElementBlock as p, openBlock as f, withModifiers as d, renderSlot as c, createElementVNode as v, createVNode as n, unref as a, withCtx as i, createTextVNode as l, toDisplayString as b } from "vue";
|
|
2
|
+
import { ScalarButton as r } from "@scalar/components";
|
|
3
|
+
const x = { class: "flex justify-between gap-10" }, S = /* @__PURE__ */ m({
|
|
4
|
+
__name: "ConfirmationForm",
|
|
5
|
+
props: {
|
|
6
|
+
label: { default: "Save" },
|
|
7
|
+
variant: { default: "solid" }
|
|
8
|
+
},
|
|
9
|
+
emits: ["cancel", "submit"],
|
|
10
|
+
setup(w, { emit: s }) {
|
|
11
|
+
const o = s;
|
|
12
|
+
return (t, e) => (f(), p("form", {
|
|
13
|
+
class: "flex flex-col gap-4 text-base",
|
|
14
|
+
onSubmit: e[1] || (e[1] = d((u) => o("submit"), ["prevent"]))
|
|
15
|
+
}, [
|
|
16
|
+
c(t.$slots, "default", {}, void 0, !0),
|
|
17
|
+
v("div", x, [
|
|
18
|
+
n(a(r), {
|
|
19
|
+
class: "flex h-8 cursor-pointer items-center gap-1.5 px-2.5 shadow-none focus:outline-none",
|
|
20
|
+
type: "button",
|
|
21
|
+
variant: "outlined",
|
|
22
|
+
onClick: e[0] || (e[0] = (u) => o("cancel"))
|
|
23
|
+
}, {
|
|
24
|
+
default: i(() => [...e[2] || (e[2] = [
|
|
25
|
+
l(" Cancel ", -1)
|
|
26
|
+
])]),
|
|
27
|
+
_: 1
|
|
28
|
+
}),
|
|
29
|
+
n(a(r), {
|
|
30
|
+
class: "custom-scroll h-8 gap-1.5 px-2.5 font-medium whitespace-nowrap shadow-none focus:outline-none",
|
|
31
|
+
type: "submit",
|
|
32
|
+
variant: t.variant
|
|
33
|
+
}, {
|
|
34
|
+
default: i(() => [
|
|
35
|
+
l(b(t.label), 1)
|
|
36
|
+
]),
|
|
37
|
+
_: 1
|
|
38
|
+
}, 8, ["variant"])
|
|
39
|
+
])
|
|
40
|
+
], 32));
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
export {
|
|
44
|
+
S as default
|
|
45
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/forms/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAA"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Simple collapsible section component that can be used to wrap content that should be collapsed and expanded
|
|
3
|
+
*
|
|
4
|
+
* Would like to replace with details/summary elements, but they are not supported in all browsers yet?
|
|
5
|
+
*/
|
|
6
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
7
|
+
/** Whether the disclosure is open by default. */
|
|
8
|
+
defaultOpen?: boolean;
|
|
9
|
+
/** Number of items to show in badge when collapsed. */
|
|
10
|
+
itemCount?: number;
|
|
11
|
+
/** Whether the disclosure is static and cannot be toggled. */
|
|
12
|
+
isStatic?: boolean;
|
|
13
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
14
|
+
"update:modelValue": (value: boolean) => any;
|
|
15
|
+
}, string, import("vue").PublicProps, Readonly<{
|
|
16
|
+
/** Whether the disclosure is open by default. */
|
|
17
|
+
defaultOpen?: boolean;
|
|
18
|
+
/** Number of items to show in badge when collapsed. */
|
|
19
|
+
itemCount?: number;
|
|
20
|
+
/** Whether the disclosure is static and cannot be toggled. */
|
|
21
|
+
isStatic?: boolean;
|
|
22
|
+
}> & Readonly<{
|
|
23
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
24
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
25
|
+
title?: (props: {
|
|
26
|
+
open: any;
|
|
27
|
+
}) => any;
|
|
28
|
+
} & {
|
|
29
|
+
actions?: (props: {
|
|
30
|
+
open: any;
|
|
31
|
+
}) => any;
|
|
32
|
+
} & {
|
|
33
|
+
default?: (props: {
|
|
34
|
+
open: any;
|
|
35
|
+
}) => any;
|
|
36
|
+
}>;
|
|
37
|
+
export default _default;
|
|
38
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
39
|
+
new (): {
|
|
40
|
+
$slots: S;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
//# sourceMappingURL=CollapsibleSection.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CollapsibleSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/layout/CollapsibleSection.vue"],"names":[],"mappings":"AA0HA;;;;GAIG;;IAGD,iDAAiD;kBACnC,OAAO;IACrB,uDAAuD;gBAC3C,MAAM;IAClB,8DAA8D;eACnD,OAAO;;;;IALlB,iDAAiD;kBACnC,OAAO;IACrB,uDAAuD;gBAC3C,MAAM;IAClB,8DAA8D;eACnD,OAAO;;;;YAsNR,CAAC,KAAK;;KAAiB,KAAK,GAAG;;cAC7B,CAAC,KAAK;;KAAiB,KAAK,GAAG;;cAC/B,CAAC,KAAK;;KAAiB,KAAK,GAAG;;AA/N7C,wBAyQC;AAOD,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { defineComponent as x, useId as y, createBlock as f, openBlock as o, unref as s, normalizeClass as i, withCtx as n, createVNode as r, createElementVNode as l, createElementBlock as d, createCommentVNode as a, renderSlot as c, createTextVNode as C, toDisplayString as m, mergeProps as _ } from "vue";
|
|
2
|
+
import { Disclosure as S, DisclosureButton as v, DisclosurePanel as k } from "@headlessui/vue";
|
|
3
|
+
import { ScalarIcon as B } from "@scalar/components";
|
|
4
|
+
import V from "./ValueEmitter.vue.js";
|
|
5
|
+
const $ = ["aria-labelledby"], w = { class: "text-c-1 m-0 flex flex-1 items-center gap-1.5 leading-[20px]" }, D = ["id"], I = {
|
|
6
|
+
key: 0,
|
|
7
|
+
class: "sr-only"
|
|
8
|
+
}, N = {
|
|
9
|
+
key: 0,
|
|
10
|
+
class: "bg-b-2 text-c-2 inline-flex h-5 w-5 items-center justify-center rounded-full border text-xs font-semibold"
|
|
11
|
+
}, O = { class: "sr-only" }, z = {
|
|
12
|
+
key: 0,
|
|
13
|
+
class: "ui-not-open:hidden flex items-center gap-2 pr-0.75"
|
|
14
|
+
}, E = {
|
|
15
|
+
name: "CollapsibleSection"
|
|
16
|
+
}, A = /* @__PURE__ */ x({
|
|
17
|
+
...E,
|
|
18
|
+
props: {
|
|
19
|
+
defaultOpen: { type: Boolean, default: !0 },
|
|
20
|
+
itemCount: { default: 0 },
|
|
21
|
+
isStatic: { type: Boolean }
|
|
22
|
+
},
|
|
23
|
+
emits: ["update:modelValue"],
|
|
24
|
+
setup(P, { emit: b }) {
|
|
25
|
+
const h = b, u = y();
|
|
26
|
+
return (e, p) => (o(), f(s(S), {
|
|
27
|
+
as: "div",
|
|
28
|
+
class: i(["group/collapse text-c-2 focus-within:text-c-1 last:ui-open:border-b-0 border-b", e.isStatic && "last-of-type:first-of-type:border-b-0"]),
|
|
29
|
+
defaultOpen: e.defaultOpen,
|
|
30
|
+
static: e.isStatic
|
|
31
|
+
}, {
|
|
32
|
+
default: n(({ open: t }) => [
|
|
33
|
+
r(V, {
|
|
34
|
+
value: t,
|
|
35
|
+
onChange: p[0] || (p[0] = (g) => h("update:modelValue", g))
|
|
36
|
+
}, null, 8, ["value"]),
|
|
37
|
+
l("section", {
|
|
38
|
+
"aria-labelledby": s(u),
|
|
39
|
+
class: "contents"
|
|
40
|
+
}, [
|
|
41
|
+
l("div", {
|
|
42
|
+
class: i(["bg-b-2 flex items-center", e.isStatic && "rounded-t-lg border border-b-0"])
|
|
43
|
+
}, [
|
|
44
|
+
r(s(v), {
|
|
45
|
+
class: i(["hover:text-c-1 group box-content flex max-h-8 flex-1 items-center gap-2.5 overflow-hidden px-1 py-1.5 text-base font-medium outline-none md:px-1.5 xl:pr-0.5 xl:pl-2", e.isStatic && "!pl-3"]),
|
|
46
|
+
disabled: e.isStatic
|
|
47
|
+
}, {
|
|
48
|
+
default: n(() => [
|
|
49
|
+
e.isStatic ? a("", !0) : (o(), f(s(B), {
|
|
50
|
+
key: 0,
|
|
51
|
+
class: "text-c-3 group-hover:text-c-1 rounded-px ui-open:rotate-90 ui-not-open:rotate-0 outline-offset-2 group-focus-visible:outline",
|
|
52
|
+
icon: "ChevronRight",
|
|
53
|
+
size: "md"
|
|
54
|
+
})),
|
|
55
|
+
l("h2", w, [
|
|
56
|
+
l("span", {
|
|
57
|
+
id: s(u),
|
|
58
|
+
class: "contents"
|
|
59
|
+
}, [
|
|
60
|
+
c(e.$slots, "title", { open: t }),
|
|
61
|
+
t ? a("", !0) : (o(), d("span", I, " (Collapsed) "))
|
|
62
|
+
], 8, D),
|
|
63
|
+
!t && e.itemCount ? (o(), d("span", N, [
|
|
64
|
+
C(m(e.itemCount) + " ", 1),
|
|
65
|
+
l("span", O, "Item" + m(e.itemCount === 1 ? "" : "s"), 1)
|
|
66
|
+
])) : a("", !0)
|
|
67
|
+
])
|
|
68
|
+
]),
|
|
69
|
+
_: 2
|
|
70
|
+
}, 1032, ["class", "disabled"]),
|
|
71
|
+
e.$slots.actions ? (o(), d("div", z, [
|
|
72
|
+
c(e.$slots, "actions", { open: t })
|
|
73
|
+
])) : a("", !0)
|
|
74
|
+
], 2),
|
|
75
|
+
r(s(k), _(e.$attrs, { class: "diclosure-panel h-full max-h-fit rounded-b" }), {
|
|
76
|
+
default: n(() => [
|
|
77
|
+
c(e.$slots, "default", { open: t })
|
|
78
|
+
]),
|
|
79
|
+
_: 2
|
|
80
|
+
}, 1040)
|
|
81
|
+
], 8, $)
|
|
82
|
+
]),
|
|
83
|
+
_: 3
|
|
84
|
+
}, 8, ["class", "defaultOpen", "static"]));
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
export {
|
|
88
|
+
A as default
|
|
89
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This component takes in any value and emits it back
|
|
3
|
+
*
|
|
4
|
+
* This is useful when we need to catch the open state of a disclosure from its v-slot
|
|
5
|
+
*/
|
|
6
|
+
declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
7
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
8
|
+
readonly onChange?: ((value: T) => any) | undefined;
|
|
9
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onChange"> & {
|
|
10
|
+
value: T;
|
|
11
|
+
} & Partial<{}>> & import("vue").PublicProps;
|
|
12
|
+
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
13
|
+
attrs: any;
|
|
14
|
+
slots: {};
|
|
15
|
+
emit: (e: "change", value: T) => void;
|
|
16
|
+
}>) => import("vue").VNode & {
|
|
17
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
18
|
+
};
|
|
19
|
+
export default _default;
|
|
20
|
+
type __VLS_PrettifyLocal<T> = {
|
|
21
|
+
[K in keyof T]: T[K];
|
|
22
|
+
} & {};
|
|
23
|
+
//# sourceMappingURL=ValueEmitter.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ValueEmitter.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/layout/ValueEmitter.vue"],"names":[],"mappings":"AAiCA;;;;GAIG;yBACc,CAAC,EACjB,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,eAAe,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EACjE;WA+CO,mBAAmB,CAAC;;;eA9CA,CAAC;QA8CoC,OAAO,IAAsB,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;cA9Ca,QAAQ,SAAS,CAAC,KAAG,IAAI;EAkD7C,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AA1DzE,wBA2DC;AACD,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { defineComponent as m, watch as c } from "vue";
|
|
2
|
+
const r = {
|
|
3
|
+
name: "ValueEmitter"
|
|
4
|
+
}, o = /* @__PURE__ */ m({
|
|
5
|
+
...r,
|
|
6
|
+
props: {
|
|
7
|
+
value: {}
|
|
8
|
+
},
|
|
9
|
+
emits: ["change"],
|
|
10
|
+
setup(t, { emit: a }) {
|
|
11
|
+
const n = a;
|
|
12
|
+
return c(
|
|
13
|
+
() => t.value,
|
|
14
|
+
(e) => n("change", e),
|
|
15
|
+
{ immediate: !0 }
|
|
16
|
+
), (e, u) => null;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
export {
|
|
20
|
+
o as default
|
|
21
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/layout/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,0BAA0B,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** The name of the item to delete */
|
|
3
|
+
name: string;
|
|
4
|
+
/** The warning message to display */
|
|
5
|
+
warningMessage?: string | undefined;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
8
|
+
delete: () => any;
|
|
9
|
+
close: () => any;
|
|
10
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
|
+
onDelete?: (() => any) | undefined;
|
|
12
|
+
onClose?: (() => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
export default _default;
|
|
15
|
+
//# sourceMappingURL=DeleteModal.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeleteModal.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/modals/DeleteModal.vue"],"names":[],"mappings":"AAyCA,KAAK,WAAW,GAAG;IACjB,qCAAqC;IACrC,IAAI,EAAE,MAAM,CAAA;IACZ,qCAAqC;IACrC,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CACpC,CAAC;;;;;;;;AAkFF,wBAOG"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { defineComponent as s, computed as i, createBlock as p, openBlock as o, unref as c, withCtx as d, createElementBlock as u, createCommentVNode as f, toDisplayString as g } from "vue";
|
|
2
|
+
import { truncate as C } from "@scalar/helpers/string/truncate";
|
|
3
|
+
import k from "../forms/ConfirmationForm.vue.js";
|
|
4
|
+
const v = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "text-c-2 text-sm leading-normal text-pretty"
|
|
7
|
+
}, b = /* @__PURE__ */ s({
|
|
8
|
+
__name: "DeleteModal",
|
|
9
|
+
props: {
|
|
10
|
+
name: {},
|
|
11
|
+
warningMessage: {}
|
|
12
|
+
},
|
|
13
|
+
emits: ["close", "delete"],
|
|
14
|
+
setup(a, { emit: r }) {
|
|
15
|
+
const t = r, m = i(() => C(a.name));
|
|
16
|
+
return (n, e) => (o(), p(c(k), {
|
|
17
|
+
label: `Delete ${m.value}`,
|
|
18
|
+
variant: "danger",
|
|
19
|
+
onCancel: e[0] || (e[0] = (l) => t("close")),
|
|
20
|
+
onSubmit: e[1] || (e[1] = (l) => t("delete"))
|
|
21
|
+
}, {
|
|
22
|
+
default: d(() => [
|
|
23
|
+
n.warningMessage ? (o(), u("p", v, g(n.warningMessage), 1)) : f("", !0)
|
|
24
|
+
]),
|
|
25
|
+
_: 1
|
|
26
|
+
}, 8, ["label"]));
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
export {
|
|
30
|
+
b as default
|
|
31
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/modals/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,mBAAmB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Resize.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/resize/Resize.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Resize.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/resize/Resize.vue"],"names":[],"mappings":"AA4GA,KAAK,WAAW,GAAG;IACjB,qCAAqC;IACrC,KAAK,EAAE,MAAM,CAAA;CACd,CAAC;AAQF,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,IAAI,OAAO,CAAA;CACpB,CAAC;AA4FF,QAAA,MAAM,eAAe;;;;kFAOnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -2,7 +2,7 @@ import o from "./Resize.vue2.js";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const
|
|
5
|
+
const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-e2c54c18"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
c as default
|
|
8
8
|
};
|
|
@@ -4,30 +4,32 @@ type __VLS_Props = {
|
|
|
4
4
|
/** List of servers that are available for the operation/document level */
|
|
5
5
|
servers: ServerObject[];
|
|
6
6
|
/** Currently selected server */
|
|
7
|
-
server: ServerObject |
|
|
7
|
+
server: ServerObject | null;
|
|
8
8
|
/** The id of the target to use for the popover (e.g. address bar) */
|
|
9
9
|
target: string;
|
|
10
10
|
/** Client layout */
|
|
11
11
|
layout: ClientLayout;
|
|
12
12
|
};
|
|
13
13
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
14
|
-
addServer: () => any;
|
|
15
14
|
"update:variable": (payload: {
|
|
15
|
+
index: number;
|
|
16
16
|
key: string;
|
|
17
17
|
value: string;
|
|
18
18
|
}) => any;
|
|
19
19
|
"update:selectedServer": (payload: {
|
|
20
|
-
|
|
20
|
+
url: string;
|
|
21
21
|
}) => any;
|
|
22
|
+
"update:servers": () => any;
|
|
22
23
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
23
|
-
onAddServer?: (() => any) | undefined;
|
|
24
24
|
"onUpdate:variable"?: ((payload: {
|
|
25
|
+
index: number;
|
|
25
26
|
key: string;
|
|
26
27
|
value: string;
|
|
27
28
|
}) => any) | undefined;
|
|
28
29
|
"onUpdate:selectedServer"?: ((payload: {
|
|
29
|
-
|
|
30
|
+
url: string;
|
|
30
31
|
}) => any) | undefined;
|
|
32
|
+
"onUpdate:servers"?: (() => any) | undefined;
|
|
31
33
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
32
34
|
export default _default;
|
|
33
35
|
//# sourceMappingURL=ServerDropdown.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ServerDropdown.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/server/ServerDropdown.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ServerDropdown.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/server/ServerDropdown.vue"],"names":[],"mappings":"AAyHA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAGhG,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAI3C,KAAK,WAAW,GAAG;IACjB,0EAA0E;IAC1E,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,gCAAgC;IAChC,MAAM,EAAE,YAAY,GAAG,IAAI,CAAA;IAC3B,qEAAqE;IACrE,MAAM,EAAE,MAAM,CAAA;IACd,oBAAoB;IACpB,MAAM,EAAE,YAAY,CAAA;CACrB,CAAC;;;;;;;;;;;;;;;;;;;;;;AAkPF,wBAOG"}
|