@scalar/api-client 2.18.0 → 2.18.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +85 -0
- package/dist/components/AddressBar/AddressBar.vue2.js +52 -52
- package/dist/components/AddressBar/AddressBarHistory.vue2.js +15 -15
- package/dist/components/AddressBar/httpStatusCodeColors.d.ts +0 -33
- package/dist/components/AddressBar/httpStatusCodeColors.d.ts.map +1 -1
- package/dist/components/AddressBar/httpStatusCodeColors.js +0 -1
- package/dist/components/CodeInput/CodeInput.vue2.js +112 -112
- package/dist/components/CommandPalette/CommandActionForm.vue.js +18 -18
- package/dist/components/CommandPalette/CommandPaletteImportCurl.vue2.js +25 -25
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +2 -2
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.js +2 -4
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +0 -1
- package/dist/components/CommandPalette/WatchModeToggle.vue.js +14 -14
- package/dist/components/DataTable/DataTable.vue.js +17 -17
- package/dist/components/DataTable/DataTableCell.vue.js +9 -9
- package/dist/components/DataTable/DataTableCheckbox.vue.js +17 -17
- package/dist/components/DataTable/DataTableInput.vue2.js +48 -48
- package/dist/components/DataTable/DataTableInputSelect.vue.js +35 -35
- package/dist/components/DataTable/DataTableText.vue.js +10 -10
- package/dist/components/Form/Form.vue.js +32 -32
- package/dist/components/Form/LabelInput.vue2.js +15 -15
- package/dist/components/HelpfulLink.vue.js +7 -7
- package/dist/components/HttpMethod/HttpMethod.vue2.js +22 -22
- package/dist/components/IconSelector.vue.js +16 -16
- package/dist/components/ImportCollection/ImportCollectionModal.vue.js +50 -50
- package/dist/components/ImportCollection/ImportNowButton.vue.js +23 -23
- package/dist/components/ImportCollection/PrefetchError.vue.js +8 -8
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts +0 -7
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts.map +1 -1
- package/dist/components/ScalarAsciiArt.vue2.js +16 -16
- package/dist/components/SectionFilter.vue2.js +21 -21
- package/dist/components/SectionFilterButton.vue.js +7 -7
- package/dist/components/Server/ServerDropdown.vue.js +32 -32
- package/dist/components/Server/ServerDropdownItem.vue2.js +39 -39
- package/dist/components/Server/ServerSelector.vue.js +27 -27
- package/dist/components/Server/ServerVariablesForm.vue.js +26 -26
- package/dist/components/Server/ServerVariablesSelect.vue.js +21 -21
- package/dist/components/Server/ServerVariablesTextbox.vue.js +10 -10
- package/dist/components/Server/types.d.ts +2 -1
- package/dist/components/Server/types.d.ts.map +1 -1
- package/dist/components/SideNav/SideNavLink.vue.js +18 -18
- package/dist/components/SideNav/SideNavRouterLink.vue.js +13 -13
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.js +11 -11
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +16 -16
- package/dist/components/Sidebar/Sidebar.vue2.js +28 -28
- package/dist/components/Sidebar/SidebarButton.vue.js +12 -12
- package/dist/components/Sidebar/SidebarListElement.vue2.js +34 -34
- package/dist/components/Sidebar/SidebarListElementActions.vue.js +33 -33
- package/dist/components/TopNav/TopNavItem.vue2.js +41 -41
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +43 -43
- package/dist/data/httpHeaders.d.ts +2 -1
- package/dist/data/httpHeaders.d.ts.map +1 -1
- package/dist/hooks/useClientConfig.js +1 -1
- package/dist/hooks/useLayout.js +1 -1
- package/dist/hooks/useSidebar.js +1 -1
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/plugins/hooks/usePluginManager.d.ts +1 -1
- package/dist/plugins/hooks/usePluginManager.d.ts.map +1 -1
- package/dist/plugins/hooks/usePluginManager.js +5 -5
- package/dist/plugins/index.d.ts +1 -1
- package/dist/plugins/index.d.ts.map +1 -1
- package/dist/plugins/index.js +5 -5
- package/dist/plugins/plugin-manager.d.ts +0 -2
- package/dist/plugins/plugin-manager.d.ts.map +1 -1
- package/dist/routes.d.ts +0 -10
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +0 -1
- package/dist/store/active-entities.js +1 -1
- package/dist/store/security-schemes.d.ts.map +1 -1
- package/dist/store/store.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.js +44 -44
- package/dist/v2/blocks/operation-block/components/Header.vue2.js +20 -20
- package/dist/v2/blocks/operation-block/helpers/build-request-body.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/helpers/build-request-body.js +14 -14
- package/dist/v2/blocks/operation-block/helpers/get-delimiter.js +0 -2
- package/dist/v2/blocks/operation-code-sample/components/HttpMethod.vue.js +12 -12
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue2.js +65 -65
- package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts +2 -1
- package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.js +6 -6
- package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.d.ts +4 -3
- package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.js +9 -7
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.js +40 -32
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.d.ts +1 -3
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.js +0 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue.js +2 -2
- package/dist/v2/blocks/request-block/RequestBlock.vue2.js +144 -149
- package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts +25 -45
- package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestBody.vue.js +2 -2
- package/dist/v2/blocks/request-block/components/RequestBody.vue2.js +90 -139
- package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.d.ts +22 -0
- package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.js +77 -0
- package/dist/v2/blocks/request-block/components/RequestBodyForm.vue2.js +4 -0
- package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts +4 -4
- package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestParams.vue.js +34 -34
- package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts +6 -6
- package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTable.vue.js +3 -3
- package/dist/v2/blocks/request-block/components/RequestTable.vue2.js +30 -32
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts +2 -2
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.js +64 -64
- package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue2.js +29 -29
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts +2 -2
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.js +12 -13
- package/dist/v2/blocks/request-block/helpers/get-form-body-rows.d.ts +8 -0
- package/dist/v2/blocks/request-block/helpers/get-form-body-rows.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/helpers/get-form-body-rows.js +9 -0
- package/dist/v2/blocks/request-block/helpers/get-request-body-example.d.ts +3 -1
- package/dist/v2/blocks/request-block/helpers/get-request-body-example.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/helpers/get-request-body-example.js +9 -8
- package/dist/v2/blocks/response-block/ResponseBlock.vue2.js +67 -67
- package/dist/v2/blocks/response-block/components/Headers.vue.js +35 -35
- package/dist/v2/blocks/response-block/components/ResponseBody.vue2.js +24 -24
- package/dist/v2/blocks/response-block/components/ResponseBodyDownload.vue.js +10 -10
- package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue2.js +24 -24
- package/dist/v2/blocks/response-block/components/ResponseBodyToggle.vue.js +10 -10
- package/dist/v2/blocks/response-block/components/ResponseCookies.vue.js +11 -11
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue2.js +14 -14
- package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue2.js +11 -11
- package/dist/v2/blocks/response-block/components/ResponseMetaInformation.vue.js +33 -33
- package/dist/v2/blocks/response-block/helpers/media-types.d.ts +3 -6
- package/dist/v2/blocks/response-block/helpers/media-types.d.ts.map +1 -1
- package/dist/v2/blocks/response-block/helpers/media-types.js +0 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +72 -72
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue2.js +9 -9
- package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.d.ts +0 -33
- package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.js +0 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +83 -82
- package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.js +10 -10
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +121 -121
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue2.js +13 -13
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js +33 -33
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js +26 -26
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.js +26 -26
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +2 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +130 -122
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts +0 -21
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js +1 -3
- package/dist/v2/components/code-input/CodeInput.vue2.js +93 -93
- package/dist/v2/components/data-table/DataTable.vue.js +17 -17
- package/dist/v2/components/data-table/DataTableCell.vue.js +9 -9
- package/dist/v2/components/data-table/DataTableCheckbox.vue.js +17 -17
- package/dist/v2/components/data-table/DataTableInput.vue2.js +48 -48
- package/dist/v2/components/data-table/DataTableInputSelect.vue.js +35 -35
- package/dist/v2/components/data-table/DataTableText.vue.js +10 -10
- package/dist/v2/components/forms/ConfirmationForm.vue.js +13 -13
- package/dist/v2/components/layout/CollapsibleSection.vue.js +42 -42
- package/dist/v2/components/modals/DeleteModal.vue.js +13 -13
- package/dist/v2/components/resize/Resize.vue2.js +11 -11
- package/dist/v2/components/server/ServerDropdown.vue.js +30 -30
- package/dist/v2/components/server/ServerDropdownItem.vue2.js +27 -27
- package/dist/v2/components/sidebar/Sidebar.vue.js +32 -32
- package/dist/v2/components/sidebar/SidebarMenu.vue.js +20 -20
- package/dist/v2/features/app/App.vue.js +25 -25
- package/dist/v2/features/app/app-events.d.ts.map +1 -1
- package/dist/v2/features/app/app-events.js +55 -61
- package/dist/v2/features/app/components/AppSidebar.vue2.js +97 -97
- package/dist/v2/features/app/components/CreateWorkspaceModal.vue.js +20 -20
- package/dist/v2/features/app/components/DesktopTab.vue2.js +59 -59
- package/dist/v2/features/app/components/DesktopTabs.vue.js +22 -22
- package/dist/v2/features/app/components/SidebarItemMenu.vue.js +6 -6
- package/dist/v2/features/app/components/WebTopNav.vue.js +9 -9
- package/dist/v2/features/app/helpers/create-api-client-app.d.ts +2 -5
- package/dist/v2/features/app/helpers/create-api-client-app.d.ts.map +1 -1
- package/dist/v2/features/app/helpers/create-api-client-app.js +1 -2
- package/dist/v2/features/app/helpers/routes.d.ts +5 -1
- package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
- package/dist/v2/features/collection/DocumentCollection.vue.js +31 -31
- package/dist/v2/features/collection/WorkspaceCollection.vue.js +17 -17
- package/dist/v2/features/collection/components/Authentication.vue2.js +18 -18
- package/dist/v2/features/collection/components/Cookies.vue.js +10 -10
- package/dist/v2/features/collection/components/Environment.vue.js +10 -10
- package/dist/v2/features/collection/components/Form.vue.js +21 -21
- package/dist/v2/features/collection/components/Overview.vue2.js +25 -25
- package/dist/v2/features/collection/components/Servers.vue.js +37 -37
- package/dist/v2/features/collection/components/Settings.vue.js +22 -22
- package/dist/v2/features/collection/components/Tabs.vue.js +18 -18
- package/dist/v2/features/command-palette/components/CommandActionForm.vue.js +20 -20
- package/dist/v2/features/command-palette/components/CommandActionInput.vue.js +17 -17
- package/dist/v2/features/command-palette/components/TheCommandPalette.vue2.js +68 -68
- package/dist/v2/features/command-palette/components/WatchModeToggle.vue.js +11 -11
- package/dist/v2/features/command-palette/helpers/get-openapi-document-details.d.ts +2 -1
- package/dist/v2/features/command-palette/helpers/get-openapi-document-details.d.ts.map +1 -1
- package/dist/v2/features/command-palette/helpers/get-postman-document-details.d.ts +2 -1
- package/dist/v2/features/command-palette/helpers/get-postman-document-details.d.ts.map +1 -1
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts +3 -3
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts.map +1 -1
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.js +0 -1
- package/dist/v2/features/command-palette/types.d.ts +11 -10
- package/dist/v2/features/command-palette/types.d.ts.map +1 -1
- package/dist/v2/features/environments/EnvironmentsList.vue.js +36 -36
- package/dist/v2/features/environments/components/Environment.vue.js +16 -16
- package/dist/v2/features/environments/components/EnvironmentColors.vue.js +37 -37
- package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.js +19 -19
- package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.js +14 -14
- package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.js +24 -24
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue2.js +58 -58
- package/dist/v2/features/global-cookies/components/CookiesTable.vue2.js +23 -23
- package/dist/v2/features/modal/Modal.vue.d.ts +1 -1
- package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
- package/dist/v2/features/modal/Modal.vue.js +1 -1
- package/dist/v2/features/modal/Modal.vue2.js +57 -56
- package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts +5 -4
- package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts.map +1 -1
- package/dist/v2/features/modal/hooks/use-workspace-client-modal-events.d.ts.map +1 -1
- package/dist/v2/features/modal/hooks/use-workspace-client-modal-events.js +17 -21
- package/dist/v2/features/operation/Operation.vue.d.ts +5 -1
- package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
- package/dist/v2/features/operation/Operation.vue.js +41 -39
- package/dist/v2/features/search/components/SearchButton.vue.js +40 -40
- package/dist/v2/features/search/components/SearchModal.vue2.js +43 -43
- package/dist/v2/features/search/components/SearchResult.vue.js +34 -34
- package/dist/v2/features/search/types.d.ts +5 -4
- package/dist/v2/features/search/types.d.ts.map +1 -1
- package/dist/v2/features/settings/CollectionSettings.vue.js +51 -51
- package/dist/v2/features/settings/DocumentSettings.vue.js +25 -25
- package/dist/v2/features/settings/components/Appearance.vue.js +27 -27
- package/dist/v2/helpers/handle-hotkeys.d.ts +1 -12
- package/dist/v2/helpers/handle-hotkeys.d.ts.map +1 -1
- package/dist/v2/helpers/handle-hotkeys.js +0 -2
- package/dist/v2/helpers/plugins.d.ts +2 -2
- package/dist/v2/helpers/plugins.d.ts.map +1 -1
- package/dist/views/Collection/CollectionNavigation.vue.js +13 -13
- package/dist/views/Collection/components/EnvironmentForm.vue2.js +114 -114
- package/dist/views/Collection/components/MarkdownInput.vue2.js +31 -31
- package/dist/views/Cookies/CookieModal.vue2.js +26 -26
- package/dist/views/Environment/EnvironmentColorModal.vue.js +10 -10
- package/dist/views/Environment/EnvironmentColors.vue.js +56 -56
- package/dist/views/Environment/EnvironmentModal.vue.js +26 -26
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +24 -24
- package/dist/views/Request/Request.vue2.js +55 -55
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +17 -17
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +102 -102
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +27 -27
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +91 -91
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +36 -36
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +101 -101
- package/dist/views/Request/RequestSection/RequestBody.vue2.js +154 -154
- package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +35 -35
- package/dist/views/Request/RequestSection/RequestParams.vue.js +81 -81
- package/dist/views/Request/RequestSection/RequestPathParams.vue.js +47 -47
- package/dist/views/Request/RequestSection/RequestSection.vue2.js +90 -90
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +111 -111
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue2.js +29 -29
- package/dist/views/Request/RequestSection/index.d.ts +1 -1
- package/dist/views/Request/RequestSection/index.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/index.js +4 -4
- package/dist/views/Request/RequestSidebarItem.vue2.js +149 -149
- package/dist/views/Request/RequestSidebarItemMenu.vue2.js +79 -79
- package/dist/views/Request/RequestSubpageHeader.vue2.js +30 -30
- package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +29 -29
- package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +37 -37
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +10 -10
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +24 -24
- package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.js +10 -10
- package/dist/views/Request/ResponseSection/ResponseCookies.vue.js +16 -16
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +21 -21
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +30 -30
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js +37 -37
- package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +61 -61
- package/package.json +24 -24
- package/dist/components/ImportCollection/OpenAppButton.vue.d.ts +0 -6
- package/dist/components/ImportCollection/OpenAppButton.vue.d.ts.map +0 -1
- package/dist/components/ImportCollection/OperationBadge.vue.d.ts +0 -8
- package/dist/components/ImportCollection/OperationBadge.vue.d.ts.map +0 -1
- package/dist/components/ScreenReader.vue.d.ts +0 -20
- package/dist/components/ScreenReader.vue.d.ts.map +0 -1
- package/dist/components/SideNav/WorkspaceProfileIcon.vue.d.ts +0 -9
- package/dist/components/SideNav/WorkspaceProfileIcon.vue.d.ts.map +0 -1
- package/dist/views/Components/RequestBodies/RequestBodies.vue.d.ts +0 -3
- package/dist/views/Components/RequestBodies/RequestBodies.vue.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/types/post-response.d.ts +0 -7
- package/dist/views/Request/RequestSection/types/post-response.d.ts.map +0 -1
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import { defineComponent as h, createBlock as
|
|
2
|
-
import { ScalarModal as
|
|
3
|
-
import { useWorkspace as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as h, createBlock as p, openBlock as x, unref as o, withCtx as s, createElementVNode as c, toDisplayString as a, createVNode as i, createTextVNode as r } from "vue";
|
|
2
|
+
import { ScalarModal as b, ScalarButton as m } from "@scalar/components";
|
|
3
|
+
import { useWorkspace as y } from "../../../../store/store.js";
|
|
4
|
+
const S = { class: "text-c-2 mb-4 text-sm leading-normal" }, g = { class: "flex justify-between gap-2" }, B = /* @__PURE__ */ h({
|
|
5
5
|
__name: "DeleteRequestAuthModal",
|
|
6
6
|
props: {
|
|
7
7
|
state: {},
|
|
8
8
|
scheme: {}
|
|
9
9
|
},
|
|
10
10
|
emits: ["close", "delete"],
|
|
11
|
-
setup(
|
|
12
|
-
const n =
|
|
13
|
-
n.scheme?.id &&
|
|
11
|
+
setup(e, { emit: u }) {
|
|
12
|
+
const n = e, l = u, { securitySchemeMutators: d } = y(), f = () => {
|
|
13
|
+
n.scheme?.id && d.delete(n.scheme.id), l("delete");
|
|
14
14
|
};
|
|
15
|
-
return (
|
|
15
|
+
return (k, t) => (x(), p(o(b), {
|
|
16
16
|
size: "xxs",
|
|
17
|
-
state:
|
|
17
|
+
state: e.state,
|
|
18
18
|
title: "Delete Security Scheme"
|
|
19
19
|
}, {
|
|
20
20
|
default: s(() => [
|
|
21
|
-
c("p",
|
|
21
|
+
c("p", S, " This cannot be undone. You're about to delete the " + a(e.scheme?.label) + " security scheme from the collection. ", 1),
|
|
22
22
|
c("div", g, [
|
|
23
|
-
|
|
23
|
+
i(o(m), {
|
|
24
24
|
class: "flex h-8 cursor-pointer items-center gap-1.5 px-3 shadow-none focus:outline-none",
|
|
25
25
|
type: "button",
|
|
26
26
|
variant: "outlined",
|
|
27
|
-
onClick:
|
|
27
|
+
onClick: t[0] || (t[0] = (C) => l("close"))
|
|
28
28
|
}, {
|
|
29
|
-
default: s(() => [...
|
|
30
|
-
|
|
29
|
+
default: s(() => [...t[1] || (t[1] = [
|
|
30
|
+
r(" Cancel ", -1)
|
|
31
31
|
])]),
|
|
32
32
|
_: 1
|
|
33
33
|
}),
|
|
34
|
-
|
|
34
|
+
i(o(m), {
|
|
35
35
|
class: "flex h-8 cursor-pointer items-center gap-1.5 px-3 shadow-none focus:outline-none",
|
|
36
36
|
type: "submit",
|
|
37
37
|
onClick: f
|
|
38
38
|
}, {
|
|
39
39
|
default: s(() => [
|
|
40
|
-
|
|
40
|
+
r(" Delete " + a(e.scheme?.label), 1)
|
|
41
41
|
]),
|
|
42
42
|
_: 1
|
|
43
43
|
})
|
|
@@ -48,5 +48,5 @@ const _ = { class: "text-c-2 mb-4 text-sm leading-normal" }, g = { class: "flex
|
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
50
|
export {
|
|
51
|
-
|
|
51
|
+
B as default
|
|
52
52
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useLoadingState as
|
|
3
|
-
import { pkceOptions as
|
|
4
|
-
import { useToasts as
|
|
5
|
-
import { useWorkspace as
|
|
6
|
-
import { updateScheme as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { authorizeOauth2 as
|
|
11
|
-
const
|
|
1
|
+
import { defineComponent as g, createElementBlock as U, openBlock as d, Fragment as x, createBlock as k, createCommentVNode as w, createVNode as a, unref as r, withCtx as t, mergeProps as i, createTextVNode as u, createElementVNode as v, renderSlot as T } from "vue";
|
|
2
|
+
import { useLoadingState as P, ScalarButton as $ } from "@scalar/components";
|
|
3
|
+
import { pkceOptions as A } from "@scalar/oas-utils/entities/spec";
|
|
4
|
+
import { useToasts as B } from "@scalar/use-toasts";
|
|
5
|
+
import { useWorkspace as R } from "../../../../store/store.js";
|
|
6
|
+
import { updateScheme as F } from "../helpers/update-scheme.js";
|
|
7
|
+
import I from "./OAuthScopesInput.vue.js";
|
|
8
|
+
import m from "./RequestAuthDataTableInput.vue.js";
|
|
9
|
+
import s from "../../../../components/DataTable/DataTableRow.vue.js";
|
|
10
|
+
import { authorizeOauth2 as N } from "../../libs/oauth2.js";
|
|
11
|
+
const O = { class: "flex h-8 items-center justify-end border-t" }, j = { class: "flex h-8 w-full items-center justify-end border-t" }, Y = /* @__PURE__ */ g({
|
|
12
12
|
__name: "OAuth2",
|
|
13
13
|
props: {
|
|
14
14
|
collection: {},
|
|
@@ -21,38 +21,38 @@ const j = { class: "flex h-8 items-center justify-end border-t" }, L = { class:
|
|
|
21
21
|
workspace: {}
|
|
22
22
|
},
|
|
23
23
|
emits: ["authorized"],
|
|
24
|
-
setup(
|
|
25
|
-
const
|
|
26
|
-
if (
|
|
24
|
+
setup(l, { emit: z }) {
|
|
25
|
+
const b = z, y = P(), { toast: c } = B(), C = R(), n = (V, e) => F(l.scheme.uid, V, e, C, l.persistAuth), S = async () => {
|
|
26
|
+
if (y.isActive || !l.collection?.uid)
|
|
27
27
|
return;
|
|
28
|
-
if (!
|
|
29
|
-
|
|
28
|
+
if (!l.server) {
|
|
29
|
+
c("No server selected", "error");
|
|
30
30
|
return;
|
|
31
31
|
}
|
|
32
|
-
|
|
33
|
-
const [
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
32
|
+
y.start();
|
|
33
|
+
const [V, e] = await N(
|
|
34
|
+
l.flow,
|
|
35
|
+
l.server,
|
|
36
|
+
l.workspace?.proxyUrl
|
|
37
37
|
);
|
|
38
|
-
await
|
|
39
|
-
},
|
|
40
|
-
environment:
|
|
41
|
-
envVariables:
|
|
42
|
-
workspace:
|
|
38
|
+
await y.clear(), e ? (n(`flows.${l.flow.type}.token`, e), b("authorized")) : (console.error(V), c(V?.message ?? "Failed to authorize", "error"));
|
|
39
|
+
}, f = {
|
|
40
|
+
environment: l.environment,
|
|
41
|
+
envVariables: l.envVariables,
|
|
42
|
+
workspace: l.workspace
|
|
43
43
|
};
|
|
44
|
-
return (
|
|
45
|
-
l.flow.token ? (d(),
|
|
46
|
-
r(
|
|
47
|
-
default:
|
|
48
|
-
|
|
44
|
+
return (V, e) => (d(), U(x, null, [
|
|
45
|
+
l.flow.token ? (d(), U(x, { key: 0 }, [
|
|
46
|
+
a(r(s), null, {
|
|
47
|
+
default: t(() => [
|
|
48
|
+
a(m, i(f, {
|
|
49
49
|
class: "border-r-transparent",
|
|
50
50
|
modelValue: l.flow.token,
|
|
51
51
|
placeholder: "QUxMIFlPVVIgQkFTRSBBUkUgQkVMT05HIFRPIFVT",
|
|
52
52
|
type: "password",
|
|
53
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
53
|
+
"onUpdate:modelValue": e[0] || (e[0] = (o) => n(`flows.${l.flow.type}.token`, o))
|
|
54
54
|
}), {
|
|
55
|
-
default:
|
|
55
|
+
default: t(() => [...e[10] || (e[10] = [
|
|
56
56
|
u(" Access Token ", -1)
|
|
57
57
|
])]),
|
|
58
58
|
_: 1
|
|
@@ -60,78 +60,78 @@ const j = { class: "flex h-8 items-center justify-end border-t" }, L = { class:
|
|
|
60
60
|
]),
|
|
61
61
|
_: 1
|
|
62
62
|
}),
|
|
63
|
-
r(
|
|
64
|
-
default:
|
|
65
|
-
|
|
66
|
-
r(
|
|
63
|
+
a(r(s), { class: "min-w-full" }, {
|
|
64
|
+
default: t(() => [
|
|
65
|
+
v("div", O, [
|
|
66
|
+
a(r($), {
|
|
67
67
|
class: "mr-1 p-0 px-2 py-0.5",
|
|
68
|
-
loader:
|
|
68
|
+
loader: r(y),
|
|
69
69
|
size: "sm",
|
|
70
70
|
variant: "outlined",
|
|
71
|
-
onClick: e[1] || (e[1] = (
|
|
71
|
+
onClick: e[1] || (e[1] = (o) => n(`flows.${l.flow.type}.token`, ""))
|
|
72
72
|
}, {
|
|
73
|
-
default:
|
|
73
|
+
default: t(() => [...e[11] || (e[11] = [
|
|
74
74
|
u(" Clear ", -1)
|
|
75
75
|
])]),
|
|
76
76
|
_: 1
|
|
77
77
|
}, 8, ["loader"]),
|
|
78
|
-
|
|
78
|
+
T(V.$slots, "oauth-actions")
|
|
79
79
|
])
|
|
80
80
|
]),
|
|
81
81
|
_: 3
|
|
82
82
|
})
|
|
83
|
-
], 64)) : (d(),
|
|
84
|
-
r(
|
|
85
|
-
default:
|
|
86
|
-
"authorizationUrl" in l.flow ? (d(), k(
|
|
83
|
+
], 64)) : (d(), U(x, { key: 1 }, [
|
|
84
|
+
a(r(s), null, {
|
|
85
|
+
default: t(() => [
|
|
86
|
+
"authorizationUrl" in l.flow ? (d(), k(m, i({ key: 0 }, f, {
|
|
87
87
|
containerClass: "border-r-0",
|
|
88
88
|
modelValue: l.flow.authorizationUrl,
|
|
89
89
|
placeholder: "https://galaxy.scalar.com/authorize",
|
|
90
|
-
"onUpdate:modelValue": e[2] || (e[2] = (
|
|
90
|
+
"onUpdate:modelValue": e[2] || (e[2] = (o) => n(`flows.${l.flow.type}.authorizationUrl`, o))
|
|
91
91
|
}), {
|
|
92
|
-
default:
|
|
92
|
+
default: t(() => [...e[12] || (e[12] = [
|
|
93
93
|
u(" Auth URL ", -1)
|
|
94
94
|
])]),
|
|
95
95
|
_: 1
|
|
96
|
-
}, 16, ["modelValue"])) :
|
|
97
|
-
"tokenUrl" in l.flow ? (d(), k(
|
|
96
|
+
}, 16, ["modelValue"])) : w("", !0),
|
|
97
|
+
"tokenUrl" in l.flow ? (d(), k(m, i({ key: 1 }, f, {
|
|
98
98
|
modelValue: l.flow.tokenUrl,
|
|
99
99
|
placeholder: "https://galaxy.scalar.com/token",
|
|
100
|
-
"onUpdate:modelValue": e[3] || (e[3] = (
|
|
100
|
+
"onUpdate:modelValue": e[3] || (e[3] = (o) => n(`flows.${l.flow.type}.tokenUrl`, o))
|
|
101
101
|
}), {
|
|
102
|
-
default:
|
|
102
|
+
default: t(() => [...e[13] || (e[13] = [
|
|
103
103
|
u(" Token URL ", -1)
|
|
104
104
|
])]),
|
|
105
105
|
_: 1
|
|
106
|
-
}, 16, ["modelValue"])) :
|
|
106
|
+
}, 16, ["modelValue"])) : w("", !0)
|
|
107
107
|
]),
|
|
108
108
|
_: 1
|
|
109
109
|
}),
|
|
110
|
-
"x-scalar-redirect-uri" in l.flow ? (d(), k(
|
|
111
|
-
default:
|
|
112
|
-
|
|
110
|
+
"x-scalar-redirect-uri" in l.flow ? (d(), k(r(s), { key: 0 }, {
|
|
111
|
+
default: t(() => [
|
|
112
|
+
a(m, i(f, {
|
|
113
113
|
modelValue: l.flow["x-scalar-redirect-uri"],
|
|
114
114
|
placeholder: "https://galaxy.scalar.com/callback",
|
|
115
|
-
"onUpdate:modelValue": e[4] || (e[4] = (
|
|
115
|
+
"onUpdate:modelValue": e[4] || (e[4] = (o) => n(`flows.${l.flow.type}.x-scalar-redirect-uri`, o))
|
|
116
116
|
}), {
|
|
117
|
-
default:
|
|
117
|
+
default: t(() => [...e[14] || (e[14] = [
|
|
118
118
|
u(" Redirect URL ", -1)
|
|
119
119
|
])]),
|
|
120
120
|
_: 1
|
|
121
121
|
}, 16, ["modelValue"])
|
|
122
122
|
]),
|
|
123
123
|
_: 1
|
|
124
|
-
})) :
|
|
125
|
-
l.flow.type === "password" ? (d(),
|
|
126
|
-
r(
|
|
127
|
-
default:
|
|
128
|
-
|
|
124
|
+
})) : w("", !0),
|
|
125
|
+
l.flow.type === "password" ? (d(), U(x, { key: 1 }, [
|
|
126
|
+
a(r(s), null, {
|
|
127
|
+
default: t(() => [
|
|
128
|
+
a(m, i(f, {
|
|
129
129
|
class: "text-c-2",
|
|
130
130
|
modelValue: l.flow.username,
|
|
131
131
|
placeholder: "janedoe",
|
|
132
|
-
"onUpdate:modelValue": e[5] || (e[5] = (
|
|
132
|
+
"onUpdate:modelValue": e[5] || (e[5] = (o) => n(`flows.${l.flow.type}.username`, o))
|
|
133
133
|
}), {
|
|
134
|
-
default:
|
|
134
|
+
default: t(() => [...e[15] || (e[15] = [
|
|
135
135
|
u(" Username ", -1)
|
|
136
136
|
])]),
|
|
137
137
|
_: 1
|
|
@@ -139,15 +139,15 @@ const j = { class: "flex h-8 items-center justify-end border-t" }, L = { class:
|
|
|
139
139
|
]),
|
|
140
140
|
_: 1
|
|
141
141
|
}),
|
|
142
|
-
r(
|
|
143
|
-
default:
|
|
144
|
-
|
|
142
|
+
a(r(s), null, {
|
|
143
|
+
default: t(() => [
|
|
144
|
+
a(m, i(f, {
|
|
145
145
|
modelValue: l.flow.password,
|
|
146
146
|
placeholder: "********",
|
|
147
147
|
type: "password",
|
|
148
|
-
"onUpdate:modelValue": e[6] || (e[6] = (
|
|
148
|
+
"onUpdate:modelValue": e[6] || (e[6] = (o) => n(`flows.${l.flow.type}.password`, o))
|
|
149
149
|
}), {
|
|
150
|
-
default:
|
|
150
|
+
default: t(() => [...e[16] || (e[16] = [
|
|
151
151
|
u(" Password ", -1)
|
|
152
152
|
])]),
|
|
153
153
|
_: 1
|
|
@@ -155,15 +155,15 @@ const j = { class: "flex h-8 items-center justify-end border-t" }, L = { class:
|
|
|
155
155
|
]),
|
|
156
156
|
_: 1
|
|
157
157
|
})
|
|
158
|
-
], 64)) :
|
|
159
|
-
r(
|
|
160
|
-
default:
|
|
161
|
-
|
|
158
|
+
], 64)) : w("", !0),
|
|
159
|
+
a(r(s), null, {
|
|
160
|
+
default: t(() => [
|
|
161
|
+
a(m, i(f, {
|
|
162
162
|
modelValue: l.flow["x-scalar-client-id"],
|
|
163
163
|
placeholder: "12345",
|
|
164
|
-
"onUpdate:modelValue": e[7] || (e[7] = (
|
|
164
|
+
"onUpdate:modelValue": e[7] || (e[7] = (o) => n(`flows.${l.flow.type}.x-scalar-client-id`, o))
|
|
165
165
|
}), {
|
|
166
|
-
default:
|
|
166
|
+
default: t(() => [...e[17] || (e[17] = [
|
|
167
167
|
u(" Client ID ", -1)
|
|
168
168
|
])]),
|
|
169
169
|
_: 1
|
|
@@ -171,65 +171,65 @@ const j = { class: "flex h-8 items-center justify-end border-t" }, L = { class:
|
|
|
171
171
|
]),
|
|
172
172
|
_: 1
|
|
173
173
|
}),
|
|
174
|
-
"clientSecret" in l.flow ? (d(), k(
|
|
175
|
-
default:
|
|
176
|
-
|
|
174
|
+
"clientSecret" in l.flow ? (d(), k(r(s), { key: 2 }, {
|
|
175
|
+
default: t(() => [
|
|
176
|
+
a(m, i(f, {
|
|
177
177
|
modelValue: l.flow.clientSecret,
|
|
178
178
|
placeholder: "XYZ123",
|
|
179
179
|
type: "password",
|
|
180
|
-
"onUpdate:modelValue": e[8] || (e[8] = (
|
|
180
|
+
"onUpdate:modelValue": e[8] || (e[8] = (o) => n(`flows.${l.flow.type}.clientSecret`, o))
|
|
181
181
|
}), {
|
|
182
|
-
default:
|
|
182
|
+
default: t(() => [...e[18] || (e[18] = [
|
|
183
183
|
u(" Client Secret ", -1)
|
|
184
184
|
])]),
|
|
185
185
|
_: 1
|
|
186
186
|
}, 16, ["modelValue"])
|
|
187
187
|
]),
|
|
188
188
|
_: 1
|
|
189
|
-
})) :
|
|
190
|
-
"x-usePkce" in l.flow ? (d(), k(
|
|
191
|
-
default:
|
|
192
|
-
|
|
193
|
-
enum:
|
|
189
|
+
})) : w("", !0),
|
|
190
|
+
"x-usePkce" in l.flow ? (d(), k(r(s), { key: 3 }, {
|
|
191
|
+
default: t(() => [
|
|
192
|
+
a(m, i(f, {
|
|
193
|
+
enum: r(A),
|
|
194
194
|
modelValue: l.flow["x-usePkce"],
|
|
195
195
|
readOnly: "",
|
|
196
|
-
"onUpdate:modelValue": e[9] || (e[9] = (
|
|
196
|
+
"onUpdate:modelValue": e[9] || (e[9] = (o) => n(
|
|
197
197
|
`flows.${l.flow.type}.x-usePkce`,
|
|
198
|
-
|
|
198
|
+
o
|
|
199
199
|
))
|
|
200
200
|
}), {
|
|
201
|
-
default:
|
|
201
|
+
default: t(() => [...e[19] || (e[19] = [
|
|
202
202
|
u(" Use PKCE ", -1)
|
|
203
203
|
])]),
|
|
204
204
|
_: 1
|
|
205
205
|
}, 16, ["enum", "modelValue"])
|
|
206
206
|
]),
|
|
207
207
|
_: 1
|
|
208
|
-
})) :
|
|
209
|
-
Object.keys(l.flow.scopes ?? {}).length ? (d(), k(
|
|
210
|
-
default:
|
|
211
|
-
|
|
208
|
+
})) : w("", !0),
|
|
209
|
+
Object.keys(l.flow.scopes ?? {}).length ? (d(), k(r(s), { key: 4 }, {
|
|
210
|
+
default: t(() => [
|
|
211
|
+
a(I, {
|
|
212
212
|
flow: l.flow,
|
|
213
|
-
updateScheme:
|
|
213
|
+
updateScheme: n
|
|
214
214
|
}, null, 8, ["flow"])
|
|
215
215
|
]),
|
|
216
216
|
_: 1
|
|
217
|
-
})) :
|
|
217
|
+
})) : w("", !0)
|
|
218
218
|
], 64)),
|
|
219
|
-
l.flow.token ?
|
|
219
|
+
l.flow.token ? w("", !0) : (d(), k(r(s), {
|
|
220
220
|
key: 2,
|
|
221
221
|
class: "min-w-full"
|
|
222
222
|
}, {
|
|
223
|
-
default:
|
|
224
|
-
|
|
225
|
-
r(
|
|
223
|
+
default: t(() => [
|
|
224
|
+
v("div", j, [
|
|
225
|
+
a(r($), {
|
|
226
226
|
class: "mr-0.75 p-0 px-2 py-0.5",
|
|
227
|
-
loader:
|
|
227
|
+
loader: r(y),
|
|
228
228
|
size: "sm",
|
|
229
229
|
variant: "outlined",
|
|
230
|
-
onClick:
|
|
230
|
+
onClick: S
|
|
231
231
|
}, {
|
|
232
|
-
default:
|
|
232
|
+
default: t(() => [...e[20] || (e[20] = [
|
|
233
233
|
u(" Authorize ", -1)
|
|
234
234
|
])]),
|
|
235
235
|
_: 1
|
|
@@ -242,5 +242,5 @@ const j = { class: "flex h-8 items-center justify-end border-t" }, L = { class:
|
|
|
242
242
|
}
|
|
243
243
|
});
|
|
244
244
|
export {
|
|
245
|
-
|
|
245
|
+
Y as default
|
|
246
246
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as V, computed as f, createBlock as
|
|
1
|
+
import { defineComponent as V, computed as f, createBlock as r, openBlock as n, unref as l, withCtx as s, createElementVNode as a, createVNode as i, normalizeClass as $, toDisplayString as d, createCommentVNode as m, withModifiers as w, createTextVNode as p, createElementBlock as x, Fragment as A, renderList as B } from "vue";
|
|
2
2
|
import { Disclosure as O, DisclosureButton as j, DisclosurePanel as z } from "@headlessui/vue";
|
|
3
3
|
import { ScalarButton as v, ScalarIcon as N } from "@scalar/components";
|
|
4
4
|
import g from "../../../../components/DataTable/DataTableCell.vue.js";
|
|
@@ -15,19 +15,19 @@ const F = { class: "flex h-fit w-full" }, I = { class: "flex-1" }, R = { class:
|
|
|
15
15
|
},
|
|
16
16
|
setup(e) {
|
|
17
17
|
const y = f(
|
|
18
|
-
() => Object.entries(e.flow?.scopes ?? {}).map(([
|
|
19
|
-
id:
|
|
20
|
-
label:
|
|
18
|
+
() => Object.entries(e.flow?.scopes ?? {}).map(([c, t]) => ({
|
|
19
|
+
id: c,
|
|
20
|
+
label: c,
|
|
21
21
|
description: t
|
|
22
22
|
}))
|
|
23
|
-
),
|
|
24
|
-
function k(
|
|
23
|
+
), u = f(() => e.flow?.selectedScopes || []);
|
|
24
|
+
function k(c, t) {
|
|
25
25
|
t ? e.updateScheme(`flows.${e.flow.type}.selectedScopes`, [
|
|
26
|
-
...
|
|
27
|
-
|
|
26
|
+
...u.value,
|
|
27
|
+
c
|
|
28
28
|
]) : e.updateScheme(
|
|
29
29
|
`flows.${e.flow.type}.selectedScopes`,
|
|
30
|
-
|
|
30
|
+
u.value.filter((o) => o !== c)
|
|
31
31
|
);
|
|
32
32
|
}
|
|
33
33
|
const h = f(
|
|
@@ -40,51 +40,51 @@ const F = { class: "flex h-fit w-full" }, I = { class: "flex-1" }, R = { class:
|
|
|
40
40
|
}, b = () => {
|
|
41
41
|
e.updateScheme(`flows.${e.flow.type}.selectedScopes`, []);
|
|
42
42
|
};
|
|
43
|
-
return (
|
|
44
|
-
default:
|
|
43
|
+
return (c, t) => (n(), r(l(g), { class: "h-auto !max-h-[initial] min-h-8 items-center" }, {
|
|
44
|
+
default: s(() => [
|
|
45
45
|
a("div", F, [
|
|
46
46
|
t[2] || (t[2] = a("div", { class: "text-c-1 h-full items-center" }, null, -1)),
|
|
47
47
|
i(l(O), {
|
|
48
48
|
as: "div",
|
|
49
49
|
class: "bl flex w-full flex-col"
|
|
50
50
|
}, {
|
|
51
|
-
default:
|
|
51
|
+
default: s(() => [
|
|
52
52
|
i(l(j), {
|
|
53
53
|
class: $([
|
|
54
54
|
"group/scopes-accordion hover:text-c-1 flex h-auto min-h-8 cursor-pointer items-center gap-1.5 pr-2.25 pl-3 text-left",
|
|
55
|
-
(
|
|
55
|
+
(e.flow?.selectedScopes?.length || 0) > 0 ? "text-c-1" : "text-c-3"
|
|
56
56
|
])
|
|
57
57
|
}, {
|
|
58
|
-
default:
|
|
59
|
-
a("div", I, " Scopes Selected " + d(
|
|
58
|
+
default: s(({ open: o }) => [
|
|
59
|
+
a("div", I, " Scopes Selected " + d(e.flow?.selectedScopes?.length || 0) + " / " + d(Object.keys(e.flow?.scopes ?? {}).length || 0), 1),
|
|
60
60
|
a("div", R, [
|
|
61
|
-
h.value ? (n(),
|
|
61
|
+
h.value ? (n(), r(l(v), {
|
|
62
62
|
key: 0,
|
|
63
63
|
class: "pr-0.75 pl-1 transition-none",
|
|
64
64
|
size: "sm",
|
|
65
65
|
variant: "ghost",
|
|
66
66
|
onClick: w(b, ["stop"])
|
|
67
67
|
}, {
|
|
68
|
-
default:
|
|
68
|
+
default: s(() => [...t[0] || (t[0] = [
|
|
69
69
|
p(" Deselect All ", -1)
|
|
70
70
|
])]),
|
|
71
71
|
_: 1
|
|
72
72
|
})) : m("", !0),
|
|
73
|
-
h.value ? m("", !0) : (n(),
|
|
73
|
+
h.value ? m("", !0) : (n(), r(l(v), {
|
|
74
74
|
key: 1,
|
|
75
75
|
class: "pr-0.75 pl-1 transition-none",
|
|
76
76
|
size: "sm",
|
|
77
77
|
variant: "ghost",
|
|
78
78
|
onClick: w(C, ["stop"])
|
|
79
79
|
}, {
|
|
80
|
-
default:
|
|
80
|
+
default: s(() => [...t[1] || (t[1] = [
|
|
81
81
|
p(" Select All ", -1)
|
|
82
82
|
])]),
|
|
83
83
|
_: 1
|
|
84
84
|
})),
|
|
85
85
|
i(l(N), {
|
|
86
86
|
class: "text-c-3 group-hover/scopes-accordion:text-c-2",
|
|
87
|
-
icon:
|
|
87
|
+
icon: o ? "ChevronDown" : "ChevronRight",
|
|
88
88
|
size: "md"
|
|
89
89
|
}, null, 8, ["icon"])
|
|
90
90
|
])
|
|
@@ -92,16 +92,16 @@ const F = { class: "flex h-fit w-full" }, I = { class: "flex-1" }, R = { class:
|
|
|
92
92
|
_: 1
|
|
93
93
|
}, 8, ["class"]),
|
|
94
94
|
i(l(z), { as: "template" }, {
|
|
95
|
-
default:
|
|
95
|
+
default: s(() => [
|
|
96
96
|
a("table", L, [
|
|
97
|
-
(n(!0), x(A, null, B(y.value, ({ id:
|
|
98
|
-
key:
|
|
97
|
+
(n(!0), x(A, null, B(y.value, ({ id: o, label: D, description: S }) => (n(), r(l(T), {
|
|
98
|
+
key: o,
|
|
99
99
|
class: "text-c-2",
|
|
100
|
-
onClick: (U) => k(
|
|
100
|
+
onClick: (U) => k(o, !u.value.includes(o))
|
|
101
101
|
}, {
|
|
102
|
-
default:
|
|
102
|
+
default: s(() => [
|
|
103
103
|
i(l(g), { class: "hover:text-c-1 box-border !max-h-[initial] w-full cursor-pointer px-3 py-1.5" }, {
|
|
104
|
-
default:
|
|
104
|
+
default: s(() => [
|
|
105
105
|
S ? (n(), x("div", M, [
|
|
106
106
|
a("span", P, d(D), 1),
|
|
107
107
|
p(" – " + d(S), 1)
|
|
@@ -110,7 +110,7 @@ const F = { class: "flex h-fit w-full" }, I = { class: "flex-1" }, R = { class:
|
|
|
110
110
|
_: 2
|
|
111
111
|
}, 1024),
|
|
112
112
|
i(l(E), {
|
|
113
|
-
modelValue:
|
|
113
|
+
modelValue: u.value.includes(o),
|
|
114
114
|
"onUpdate:modelValue": () => {
|
|
115
115
|
}
|
|
116
116
|
}, null, 8, ["modelValue"])
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestAuth.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuth.vue"],"names":[],"mappings":"AAkaA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAA;AACnF,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EAET,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAKrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAa1D,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,qDAAqD;IACrD,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,MAAM,EAAE,QAAQ,GAAG,WAAW,CAAA;IAC9B,SAAS,CAAC,EAAE,SAAS,GAAG,SAAS,CAAA;IACjC,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,0BAA0B,EAAE,0BAA0B,CAAA;IACtD,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;AAuBF,KAAK,WAAW,GAAG;IACjB,eAAe,CAAC,EAAE,MAAM,OAAO,CAAA;CAChC,CAAC;AA+gBF,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"RequestAuth.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuth.vue"],"names":[],"mappings":"AAkaA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAA;AACnF,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EAET,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAKrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAa1D,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,qDAAqD;IACrD,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,MAAM,EAAE,QAAQ,GAAG,WAAW,CAAA;IAC9B,SAAS,CAAC,EAAE,SAAS,GAAG,SAAS,CAAA;IACjC,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,0BAA0B,EAAE,0BAA0B,CAAA;IACtD,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;AAuBF,KAAK,WAAW,GAAG;IACjB,eAAe,CAAC,EAAE,MAAM,OAAO,CAAA;CAChC,CAAC;AA+gBF,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAhUuG,CAAC;;;;;;;;;yCAQnD,CAAC;wCAErC,CAAC;6BAEN,CAAC;;oBAE/B,CAAC;;;;;;;;;;;yCAOE,CAAC;wCAIkC,CAAC;6BACW,CAAC;+CAGtD,CAAC;;6BAAiF,CAAC;;;;;;;;;yCAGxB,CAAC;wCAEtB,CAAA;6BAER,CAAC;+CAEE,CAAC;;6BAK5B,CAAC;;;;;;;;;;;;yCAYA,CAAC;wCAA0E,CAAC;6BACrD,CAAC;+CACsB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAzDsE,CAAC;;;;;;;;;yCAQnD,CAAC;wCAErC,CAAC;6BAEN,CAAC;;oBAE/B,CAAC;;;;;;;;;;;yCAOE,CAAC;wCAIkC,CAAC;6BACW,CAAC;+CAGtD,CAAC;;6BAAiF,CAAC;;;;;;;;;yCAGxB,CAAC;wCAEtB,CAAA;6BAER,CAAC;+CAEE,CAAC;;6BAK5B,CAAC;;;;;;;;;;;;yCAYA,CAAC;wCAA0E,CAAC;6BACrD,CAAC;+CACsB,CAAC;;;;;;;;kFA8QpD,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"}
|