@scalar/api-client 2.18.1 → 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 +61 -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/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 +4 -4
- 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/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.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-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.js +69 -69
- 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.js +29 -29
- 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.js +75 -75
- 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/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.vue2.js +56 -56
- package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts +2 -1
- 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.js +34 -34
- 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 +23 -23
- 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,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as re, useCssVars as ue, computed as v, ref as de, resolveComponent as
|
|
1
|
+
import { defineComponent as re, useCssVars as ue, computed as v, ref as de, resolveComponent as ce, createElementBlock as C, createCommentVNode as c, openBlock as u, normalizeClass as g, unref as l, createVNode as m, withCtx as p, createBlock as f, withModifiers as h, createElementVNode as o, toDisplayString as j, createTextVNode as B, renderSlot as L, Fragment as fe, renderList as me, nextTick as pe } from "vue";
|
|
2
2
|
import { ScalarButton as k, ScalarIcon as b, ScalarSidebarGroupToggle as G, ScalarTooltip as K } from "@scalar/components";
|
|
3
3
|
import { Draggable as ve } from "@scalar/draggable";
|
|
4
4
|
import { shouldIgnoreEntity as J } from "@scalar/oas-utils/helpers";
|
|
@@ -26,10 +26,10 @@ const qe = { class: "line-clamp-1 w-full pl-2 break-all" }, Ue = { class: "flex
|
|
|
26
26
|
menuItem: {}
|
|
27
27
|
},
|
|
28
28
|
emits: ["onDragEnd", "newTab", "openMenu"],
|
|
29
|
-
setup(
|
|
30
|
-
ue((
|
|
31
|
-
|
|
32
|
-
|
|
29
|
+
setup(t, { emit: X }) {
|
|
30
|
+
ue((n) => ({
|
|
31
|
+
v0bed2d4e: te.value,
|
|
32
|
+
v57ee1db0: ie.value
|
|
33
33
|
}));
|
|
34
34
|
const Z = X, { activeCollection: _, activeRequest: A, activeRouterParams: ee, activeWorkspace: x } = he(), {
|
|
35
35
|
collections: q,
|
|
@@ -42,28 +42,28 @@ const qe = { class: "line-clamp-1 w-full pl-2 break-all" }, Ue = { class: "flex
|
|
|
42
42
|
requestExampleMutators: O,
|
|
43
43
|
events: P
|
|
44
44
|
} = we(), y = ge(), { collapsedSidebarFolders: w, toggleSidebarFolder: V } = ye(), { layout: d } = be(), i = v(() => {
|
|
45
|
-
const
|
|
46
|
-
return
|
|
47
|
-
title:
|
|
48
|
-
entity:
|
|
45
|
+
const n = q[t.uid], e = U[t.uid], r = T[t.uid], a = M[t.uid];
|
|
46
|
+
return n ? {
|
|
47
|
+
title: n.info?.title || "Untitled Collection",
|
|
48
|
+
entity: n,
|
|
49
49
|
resourceTitle: "Collection",
|
|
50
|
-
children:
|
|
51
|
-
icon:
|
|
52
|
-
documentUrl:
|
|
53
|
-
watchMode:
|
|
54
|
-
to:
|
|
50
|
+
children: n.children,
|
|
51
|
+
icon: n["x-scalar-icon"],
|
|
52
|
+
documentUrl: n.documentUrl,
|
|
53
|
+
watchMode: n.watchMode,
|
|
54
|
+
to: n.uid && n?.info?.title !== "Drafts" ? {
|
|
55
55
|
name: "collection",
|
|
56
56
|
params: {
|
|
57
57
|
[R.Workspace]: x.value?.uid,
|
|
58
|
-
[R.Collection]:
|
|
58
|
+
[R.Collection]: n.uid
|
|
59
59
|
}
|
|
60
60
|
} : void 0,
|
|
61
61
|
warning: "This cannot be undone. You're about to delete the collection and all folders and requests inside it.",
|
|
62
|
-
edit: (
|
|
63
|
-
E.edit(
|
|
62
|
+
edit: (s, I) => {
|
|
63
|
+
E.edit(n.uid, "info.title", s), I && E.edit(n.uid, "x-scalar-icon", I);
|
|
64
64
|
},
|
|
65
65
|
delete: () => {
|
|
66
|
-
x.value && E.delete(
|
|
66
|
+
x.value && E.delete(n, x.value);
|
|
67
67
|
}
|
|
68
68
|
} : e ? {
|
|
69
69
|
title: e.name,
|
|
@@ -71,8 +71,8 @@ const qe = { class: "line-clamp-1 w-full pl-2 break-all" }, Ue = { class: "flex
|
|
|
71
71
|
resourceTitle: "Tag",
|
|
72
72
|
children: e.children,
|
|
73
73
|
warning: "This cannot be undone. You're about to delete the tag and all requests inside it",
|
|
74
|
-
edit: (
|
|
75
|
-
delete: () =>
|
|
74
|
+
edit: (s) => N.edit(e.uid, "name", s),
|
|
75
|
+
delete: () => t.parentUids[0] && N.delete(e, t.parentUids[0])
|
|
76
76
|
} : r ? {
|
|
77
77
|
title: r.summary ?? r.path,
|
|
78
78
|
to: {
|
|
@@ -87,25 +87,25 @@ const qe = { class: "line-clamp-1 w-full pl-2 break-all" }, Ue = { class: "flex
|
|
|
87
87
|
resourceTitle: "Request",
|
|
88
88
|
warning: "This cannot be undone. You're about to delete the request.",
|
|
89
89
|
children: r.examples.slice(1),
|
|
90
|
-
edit: (
|
|
91
|
-
delete: () =>
|
|
92
|
-
} :
|
|
93
|
-
title:
|
|
90
|
+
edit: (s) => $.edit(r.uid, "summary", s),
|
|
91
|
+
delete: () => t.parentUids[0] && $.delete(r, t.parentUids[0])
|
|
92
|
+
} : a?.requestUid ? {
|
|
93
|
+
title: a.name,
|
|
94
94
|
to: {
|
|
95
95
|
name: "request.examples",
|
|
96
96
|
params: {
|
|
97
97
|
workspace: x.value?.uid,
|
|
98
|
-
request:
|
|
99
|
-
examples:
|
|
98
|
+
request: a.requestUid,
|
|
99
|
+
examples: a.uid
|
|
100
100
|
}
|
|
101
101
|
},
|
|
102
|
-
method: T[
|
|
103
|
-
entity:
|
|
102
|
+
method: T[a.requestUid]?.method,
|
|
103
|
+
entity: a,
|
|
104
104
|
resourceTitle: "Example",
|
|
105
105
|
warning: "This cannot be undone. You're about to delete the example from the request.",
|
|
106
106
|
children: [],
|
|
107
|
-
edit: (
|
|
108
|
-
delete: () => O.delete(
|
|
107
|
+
edit: (s) => O.edit(a.uid, "name", s),
|
|
108
|
+
delete: () => O.delete(a)
|
|
109
109
|
} : {
|
|
110
110
|
title: "Unknown",
|
|
111
111
|
entity: {
|
|
@@ -119,53 +119,53 @@ const qe = { class: "line-clamp-1 w-full pl-2 break-all" }, Ue = { class: "flex
|
|
|
119
119
|
};
|
|
120
120
|
}), D = v(
|
|
121
121
|
() => i.value.entity.type === "collection" && i.value.title === "Drafts"
|
|
122
|
-
), te = v(() =>
|
|
123
|
-
() => w[
|
|
122
|
+
), te = v(() => t.parentUids.length ? d === "modal" ? `${(t.parentUids.length - 1) * 12}px` : `${t.parentUids.length * 12}px` : "12px"), ie = v(() => t.parentUids.length ? d === "modal" ? `${(t.parentUids.length - 1) * 12}px` : `${t.parentUids.length * 12}px` : "0px"), ne = v(
|
|
123
|
+
() => w[t.uid] || A.value?.uid === t.uid && i.value.entity.examples.length > 1
|
|
124
124
|
), le = v(
|
|
125
|
-
() => typeof y.currentRoute.value.name == "string" && y.currentRoute.value.name.startsWith("request") && ee.value[R.Request] === "default" && A.value?.uid ===
|
|
125
|
+
() => typeof y.currentRoute.value.name == "string" && y.currentRoute.value.name.startsWith("request") && ee.value[R.Request] === "default" && A.value?.uid === t.uid
|
|
126
126
|
), z = de(null), F = v(() => {
|
|
127
|
-
let
|
|
127
|
+
let n = 0.5, e = 0.5;
|
|
128
128
|
if (!z.value)
|
|
129
|
-
return { ceiling:
|
|
129
|
+
return { ceiling: n, floor: e };
|
|
130
130
|
const { draggingItem: r } = z.value;
|
|
131
|
-
return !q[r?.id] && i.value.entity.type === "collection" ? (
|
|
132
|
-
}),
|
|
133
|
-
|
|
131
|
+
return !q[r?.id] && i.value.entity.type === "collection" ? (n = 1, e = 0) : i.value.entity.type === "tag" && (n = 0.8, e = 0.2), { ceiling: n, floor: e };
|
|
132
|
+
}), ae = (n, e) => !(d === "modal" || M[e.id] || q[n.id]), oe = (n, e) => {
|
|
133
|
+
n && (ke(["default"]).some((s) => n[s]) ? Z("newTab", e.title || "", e.entity.uid) : e.to && y.push(e.to), pe(() => P.focusAddressBar.emit()));
|
|
134
134
|
};
|
|
135
|
-
function S(
|
|
136
|
-
const e =
|
|
135
|
+
function S(n) {
|
|
136
|
+
const e = t.parentUids[0] ? q[t.parentUids[0]]?.uid || "" : n, r = t.parentUids[0] && U[n]?.name ? { tags: [U[n].name] } : {}, a = $.add(
|
|
137
137
|
r,
|
|
138
138
|
e
|
|
139
139
|
);
|
|
140
|
-
|
|
140
|
+
a && (y.push({
|
|
141
141
|
name: "request",
|
|
142
142
|
params: {
|
|
143
143
|
workspace: x.value?.uid,
|
|
144
|
-
request:
|
|
144
|
+
request: a.uid
|
|
145
145
|
}
|
|
146
146
|
}), P.hotKeys.emit({
|
|
147
147
|
focusAddressBar: new KeyboardEvent("keydown", { key: "l" })
|
|
148
148
|
}));
|
|
149
149
|
}
|
|
150
150
|
const Y = v(() => {
|
|
151
|
-
const { uid:
|
|
152
|
-
return
|
|
153
|
-
}), H = v(() => i.value.title === "Drafts" && d !== "modal" && i.value.children.length > 0),
|
|
154
|
-
const
|
|
155
|
-
if (
|
|
156
|
-
return !J(
|
|
157
|
-
const e = U[
|
|
151
|
+
const { uid: n, watchModeStatus: e } = _.value || {};
|
|
152
|
+
return n !== i.value.entity.uid ? "text-c-3" : e === "WATCHING" ? "text-c-1" : e === "ERROR" ? "text-red" : "text-c-3";
|
|
153
|
+
}), H = v(() => i.value.title === "Drafts" && d !== "modal" && i.value.children.length > 0), se = v(() => {
|
|
154
|
+
const n = T[t.uid];
|
|
155
|
+
if (n)
|
|
156
|
+
return !J(n);
|
|
157
|
+
const e = U[t.uid];
|
|
158
158
|
return e ? !J(e) : !0;
|
|
159
159
|
});
|
|
160
|
-
return (
|
|
161
|
-
const r =
|
|
162
|
-
return
|
|
160
|
+
return (n, e) => {
|
|
161
|
+
const r = ce("RequestSidebarItem", !0);
|
|
162
|
+
return se.value ? (u(), C("li", {
|
|
163
163
|
key: 0,
|
|
164
164
|
class: g(["relative flex flex-row", [
|
|
165
|
-
|
|
165
|
+
l(d) === "modal" && t.parentUids.length > 1 || l(d) !== "modal" && t.parentUids.length ? "before:bg-border indent-border-line-offset mb-[.5px] before:pointer-events-none before:absolute before:top-0 before:left-[calc(.75rem_+_.5px)] before:z-1 before:h-[calc(100%_+_.5px)] before:w-[.5px] last:mb-0 last:before:h-full" : ""
|
|
166
166
|
]])
|
|
167
167
|
}, [
|
|
168
|
-
|
|
168
|
+
m(l(ve), {
|
|
169
169
|
id: i.value.entity.uid,
|
|
170
170
|
ref_key: "draggableRef",
|
|
171
171
|
ref: z,
|
|
@@ -175,29 +175,29 @@ const qe = { class: "line-clamp-1 w-full pl-2 break-all" }, Ue = { class: "flex
|
|
|
175
175
|
isDraggable: t.isDraggable,
|
|
176
176
|
isDroppable: t.isDroppable,
|
|
177
177
|
parentIds: t.parentUids,
|
|
178
|
-
onOnDragEnd: e[12] || (e[12] = (...
|
|
178
|
+
onOnDragEnd: e[12] || (e[12] = (...a) => n.$emit("onDragEnd", ...a))
|
|
179
179
|
}, {
|
|
180
|
-
default:
|
|
181
|
-
(i.value.entity.type === "request" || i.value.entity.type === "requestExample") && i.value.to ? (u(), f(
|
|
180
|
+
default: p(() => [
|
|
181
|
+
(i.value.entity.type === "request" || i.value.entity.type === "requestExample") && i.value.to ? (u(), f(l(Q), {
|
|
182
182
|
key: 0,
|
|
183
183
|
class: "group no-underline",
|
|
184
184
|
to: i.value.to,
|
|
185
185
|
onClick: e[1] || (e[1] = h(
|
|
186
|
-
(
|
|
186
|
+
(a) => oe(a, i.value),
|
|
187
187
|
["prevent"]
|
|
188
188
|
))
|
|
189
189
|
}, {
|
|
190
|
-
default:
|
|
191
|
-
|
|
190
|
+
default: p(({ isExactActive: a }) => [
|
|
191
|
+
o("div", {
|
|
192
192
|
class: g(["relative flex min-h-8 w-full cursor-pointer flex-row items-start justify-between gap-0.5 rounded py-1.5 pr-2", [
|
|
193
193
|
W,
|
|
194
|
-
|
|
194
|
+
a || le.value ? "bg-sidebar-b-active text-sidebar-c-active font-medium transition-none" : "text-sidebar-c-2"
|
|
195
195
|
]])
|
|
196
196
|
}, [
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
197
|
+
o("span", qe, j(i.value.title || "Untitled"), 1),
|
|
198
|
+
o("div", Ue, [
|
|
199
|
+
o("div", De, [
|
|
200
|
+
l(d) !== "modal" ? (u(), f(l(k), {
|
|
201
201
|
key: 0,
|
|
202
202
|
class: g(["hover:bg-b-3 hidden aspect-square h-fit px-0.5 py-0 opacity-0 group-hover:flex group-hover:opacity-100 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100", {
|
|
203
203
|
flex: t.menuItem?.item?.entity.uid === i.value.entity.uid && t.menuItem.open
|
|
@@ -206,120 +206,120 @@ const qe = { class: "line-clamp-1 w-full pl-2 break-all" }, Ue = { class: "flex
|
|
|
206
206
|
type: "button",
|
|
207
207
|
variant: "ghost",
|
|
208
208
|
onClick: e[0] || (e[0] = h(
|
|
209
|
-
(
|
|
209
|
+
(s) => n.$emit("openMenu", {
|
|
210
210
|
item: i.value,
|
|
211
211
|
parentUids: t.parentUids,
|
|
212
|
-
targetRef:
|
|
212
|
+
targetRef: s.currentTarget,
|
|
213
213
|
open: !t.menuItem.open
|
|
214
214
|
}),
|
|
215
215
|
["stop", "prevent"]
|
|
216
216
|
))
|
|
217
217
|
}, {
|
|
218
|
-
default:
|
|
219
|
-
|
|
218
|
+
default: p(() => [
|
|
219
|
+
m(l(b), {
|
|
220
220
|
icon: "Ellipses",
|
|
221
221
|
size: "md"
|
|
222
222
|
})
|
|
223
223
|
]),
|
|
224
224
|
_: 1
|
|
225
|
-
}, 8, ["class"])) :
|
|
225
|
+
}, 8, ["class"])) : c("", !0)
|
|
226
226
|
]),
|
|
227
|
-
|
|
227
|
+
o("span", Ie, [
|
|
228
228
|
e[13] || (e[13] = B(" ", -1)),
|
|
229
|
-
e[14] || (e[14] =
|
|
230
|
-
i.value.method ? (u(), f(
|
|
229
|
+
e[14] || (e[14] = o("span", { class: "sr-only" }, "HTTP Method:", -1)),
|
|
230
|
+
i.value.method ? (u(), f(l(xe), {
|
|
231
231
|
key: 0,
|
|
232
232
|
class: "font-bold",
|
|
233
233
|
method: i.value.method
|
|
234
|
-
}, null, 8, ["method"])) :
|
|
234
|
+
}, null, 8, ["method"])) : c("", !0)
|
|
235
235
|
])
|
|
236
236
|
])
|
|
237
237
|
], 2)
|
|
238
238
|
]),
|
|
239
239
|
_: 1
|
|
240
|
-
}, 8, ["to"])) : (
|
|
240
|
+
}, 8, ["to"])) : (l(d) !== "modal" || t.parentUids.length) && i.value.entity.type === "collection" && i.value.to ? (u(), f(l(Q), {
|
|
241
241
|
key: 1,
|
|
242
|
-
"aria-expanded": !!
|
|
242
|
+
"aria-expanded": !!l(w)[i.value.entity.uid],
|
|
243
243
|
class: g(["hover:bg-b-2 group relative flex w-full flex-row justify-start gap-1.5 rounded p-1.5 no-underline focus-visible:z-10", [
|
|
244
244
|
W,
|
|
245
245
|
{
|
|
246
|
-
"bg-sidebar-b-active text-sidebar-c-active transition-none": typeof
|
|
246
|
+
"bg-sidebar-b-active text-sidebar-c-active transition-none": typeof l(y).currentRoute.value.name == "string" && l(y).currentRoute.value.name.startsWith("collection") && l(y).currentRoute.value.params[l(R).Collection] === i.value.entity.uid,
|
|
247
247
|
"text-c-2": i.value.title === "Untitled Collection"
|
|
248
248
|
}
|
|
249
249
|
]]),
|
|
250
250
|
to: i.value.to
|
|
251
251
|
}, {
|
|
252
|
-
default:
|
|
253
|
-
|
|
252
|
+
default: p(() => [
|
|
253
|
+
o("span", {
|
|
254
254
|
class: "flex h-5 max-w-[14px] cursor-pointer items-center justify-center",
|
|
255
|
-
onClick: e[2] || (e[2] = h((
|
|
255
|
+
onClick: e[2] || (e[2] = h((a) => l(V)(i.value.entity.uid), ["stop", "prevent"]))
|
|
256
256
|
}, [
|
|
257
|
-
L(
|
|
258
|
-
|
|
257
|
+
L(n.$slots, "leftIcon", {}, () => [
|
|
258
|
+
m(l(G), {
|
|
259
259
|
class: "text-c-3 shrink-0",
|
|
260
|
-
open: !!
|
|
260
|
+
open: !!l(w)[i.value.entity.uid]
|
|
261
261
|
}, null, 8, ["open"])
|
|
262
262
|
], !0),
|
|
263
263
|
e[15] || (e[15] = B(" ", -1))
|
|
264
264
|
]),
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
265
|
+
o("div", Ce, [
|
|
266
|
+
o("span", Re, j(i.value.title), 1),
|
|
267
|
+
o("div", Te, [
|
|
268
|
+
o("div", {
|
|
269
269
|
class: g(["items-center gap-px opacity-0 group-hover:flex group-hover:opacity-100 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100", {
|
|
270
270
|
flex: t.menuItem.open,
|
|
271
271
|
hidden: !t.menuItem.open || t.menuItem.item?.entity.uid !== i.value.entity.uid
|
|
272
272
|
}])
|
|
273
273
|
}, [
|
|
274
|
-
|
|
274
|
+
l(d) !== "modal" && !D.value || D.value && H.value ? (u(), f(l(k), {
|
|
275
275
|
key: 0,
|
|
276
276
|
class: "hover:bg-b-3 hover:text-c-1 aspect-square h-fit px-0.5 py-0 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100",
|
|
277
277
|
size: "sm",
|
|
278
278
|
variant: "ghost",
|
|
279
279
|
onClick: e[3] || (e[3] = h(
|
|
280
|
-
(
|
|
280
|
+
(a) => n.$emit("openMenu", {
|
|
281
281
|
item: i.value,
|
|
282
282
|
parentUids: t.parentUids,
|
|
283
|
-
targetRef:
|
|
283
|
+
targetRef: a.currentTarget.parentNode,
|
|
284
284
|
open: !0
|
|
285
285
|
}),
|
|
286
286
|
["stop", "prevent"]
|
|
287
287
|
))
|
|
288
288
|
}, {
|
|
289
|
-
default:
|
|
290
|
-
|
|
289
|
+
default: p(() => [
|
|
290
|
+
m(l(b), {
|
|
291
291
|
icon: "Ellipses",
|
|
292
292
|
size: "md"
|
|
293
293
|
})
|
|
294
294
|
]),
|
|
295
295
|
_: 1
|
|
296
|
-
})) :
|
|
297
|
-
|
|
296
|
+
})) : c("", !0),
|
|
297
|
+
l(d) !== "modal" ? (u(), f(l(k), {
|
|
298
298
|
key: 1,
|
|
299
299
|
class: "hover:bg-b-3 hover:text-c-1 aspect-square h-fit px-0.5 py-0 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100",
|
|
300
300
|
size: "sm",
|
|
301
301
|
variant: "ghost",
|
|
302
|
-
onClick: e[4] || (e[4] = h((
|
|
302
|
+
onClick: e[4] || (e[4] = h((a) => S(i.value.entity.uid), ["stop", "prevent"]))
|
|
303
303
|
}, {
|
|
304
|
-
default:
|
|
305
|
-
|
|
304
|
+
default: p(() => [
|
|
305
|
+
m(l(b), {
|
|
306
306
|
icon: "Add",
|
|
307
307
|
size: "md",
|
|
308
308
|
thickness: "2"
|
|
309
309
|
})
|
|
310
310
|
]),
|
|
311
311
|
_: 1
|
|
312
|
-
})) :
|
|
312
|
+
})) : c("", !0)
|
|
313
313
|
], 2),
|
|
314
|
-
i.value.watchMode ? (u(), f(
|
|
314
|
+
i.value.watchMode ? (u(), f(l(K), {
|
|
315
315
|
key: 0,
|
|
316
316
|
placement: "right",
|
|
317
317
|
offset: 12,
|
|
318
318
|
content: `Watching: ${i.value.documentUrl}`
|
|
319
319
|
}, {
|
|
320
|
-
default:
|
|
321
|
-
|
|
322
|
-
|
|
320
|
+
default: p(() => [
|
|
321
|
+
o("button", Me, [
|
|
322
|
+
m(l(b), {
|
|
323
323
|
class: g(["ml-0.5 text-sm", Y.value]),
|
|
324
324
|
icon: "Watch",
|
|
325
325
|
size: "md",
|
|
@@ -328,86 +328,86 @@ const qe = { class: "line-clamp-1 w-full pl-2 break-all" }, Ue = { class: "flex
|
|
|
328
328
|
])
|
|
329
329
|
]),
|
|
330
330
|
_: 1
|
|
331
|
-
}, 8, ["content"])) :
|
|
332
|
-
e[16] || (e[16] =
|
|
331
|
+
}, 8, ["content"])) : c("", !0),
|
|
332
|
+
e[16] || (e[16] = o("span", null, " ", -1))
|
|
333
333
|
])
|
|
334
334
|
])
|
|
335
335
|
]),
|
|
336
336
|
_: 3
|
|
337
|
-
}, 8, ["aria-expanded", "class", "to"])) :
|
|
337
|
+
}, 8, ["aria-expanded", "class", "to"])) : l(d) !== "modal" || t.parentUids.length ? (u(), C("button", {
|
|
338
338
|
key: 2,
|
|
339
|
-
"aria-expanded": !!
|
|
339
|
+
"aria-expanded": !!l(w)[i.value.entity.uid],
|
|
340
340
|
class: g(["hover:bg-b-2 group relative flex w-full flex-row justify-start gap-1.5 rounded p-1.5 focus-visible:z-10", [W]]),
|
|
341
341
|
type: "button",
|
|
342
|
-
onClick: e[7] || (e[7] = (
|
|
342
|
+
onClick: e[7] || (e[7] = (a) => l(V)(i.value.entity.uid))
|
|
343
343
|
}, [
|
|
344
|
-
|
|
345
|
-
L(
|
|
346
|
-
|
|
344
|
+
o("span", $e, [
|
|
345
|
+
L(n.$slots, "leftIcon", {}, () => [
|
|
346
|
+
m(l(G), {
|
|
347
347
|
class: "text-c-3 hover:text-c-1 shrink-0",
|
|
348
|
-
open: !!
|
|
348
|
+
open: !!l(w)[i.value.entity.uid]
|
|
349
349
|
}, null, 8, ["open"])
|
|
350
350
|
], !0),
|
|
351
351
|
e[17] || (e[17] = B(" ", -1))
|
|
352
352
|
]),
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
353
|
+
o("div", ze, [
|
|
354
|
+
o("span", Se, j(i.value.title), 1),
|
|
355
|
+
o("div", je, [
|
|
356
|
+
o("div", {
|
|
357
357
|
class: g(["items-center gap-px opacity-0 group-hover:flex group-hover:opacity-100 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100", {
|
|
358
358
|
flex: t.menuItem.open,
|
|
359
359
|
hidden: !t.menuItem.open || t.menuItem.item?.entity.uid !== i.value.entity.uid
|
|
360
360
|
}])
|
|
361
361
|
}, [
|
|
362
|
-
|
|
362
|
+
l(d) !== "modal" && !D.value || D.value && H.value ? (u(), f(l(k), {
|
|
363
363
|
key: 0,
|
|
364
364
|
class: "hover:bg-b-3 hover:text-c-1 aspect-square h-fit px-0.5 py-0 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100",
|
|
365
365
|
size: "sm",
|
|
366
366
|
variant: "ghost",
|
|
367
367
|
onClick: e[5] || (e[5] = h(
|
|
368
|
-
(
|
|
368
|
+
(a) => n.$emit("openMenu", {
|
|
369
369
|
item: i.value,
|
|
370
370
|
parentUids: t.parentUids,
|
|
371
|
-
targetRef:
|
|
371
|
+
targetRef: a.currentTarget.parentNode,
|
|
372
372
|
open: !0
|
|
373
373
|
}),
|
|
374
374
|
["stop", "prevent"]
|
|
375
375
|
))
|
|
376
376
|
}, {
|
|
377
|
-
default:
|
|
378
|
-
|
|
377
|
+
default: p(() => [
|
|
378
|
+
m(l(b), {
|
|
379
379
|
icon: "Ellipses",
|
|
380
380
|
size: "md"
|
|
381
381
|
})
|
|
382
382
|
]),
|
|
383
383
|
_: 1
|
|
384
|
-
})) :
|
|
385
|
-
|
|
384
|
+
})) : c("", !0),
|
|
385
|
+
l(d) !== "modal" ? (u(), f(l(k), {
|
|
386
386
|
key: 1,
|
|
387
387
|
class: "hover:bg-b-3 hover:text-c-1 aspect-square h-fit px-0.5 py-0 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100",
|
|
388
388
|
size: "sm",
|
|
389
389
|
variant: "ghost",
|
|
390
|
-
onClick: e[6] || (e[6] = h((
|
|
390
|
+
onClick: e[6] || (e[6] = h((a) => S(i.value.entity.uid), ["stop", "prevent"]))
|
|
391
391
|
}, {
|
|
392
|
-
default:
|
|
393
|
-
|
|
392
|
+
default: p(() => [
|
|
393
|
+
m(l(b), {
|
|
394
394
|
icon: "Add",
|
|
395
395
|
size: "md",
|
|
396
396
|
thickness: "2"
|
|
397
397
|
})
|
|
398
398
|
]),
|
|
399
399
|
_: 1
|
|
400
|
-
})) :
|
|
400
|
+
})) : c("", !0)
|
|
401
401
|
], 2),
|
|
402
|
-
i.value.watchMode ? (u(), f(
|
|
402
|
+
i.value.watchMode ? (u(), f(l(K), {
|
|
403
403
|
key: 0,
|
|
404
404
|
content: "Watching: {{ item.documentUrl }}",
|
|
405
405
|
placement: "right",
|
|
406
406
|
offset: 12
|
|
407
407
|
}, {
|
|
408
|
-
default:
|
|
409
|
-
|
|
410
|
-
|
|
408
|
+
default: p(() => [
|
|
409
|
+
o("button", Be, [
|
|
410
|
+
m(l(b), {
|
|
411
411
|
class: g(["ml-0.5 text-sm", Y.value]),
|
|
412
412
|
icon: "Watch",
|
|
413
413
|
size: "md",
|
|
@@ -416,43 +416,43 @@ const qe = { class: "line-clamp-1 w-full pl-2 break-all" }, Ue = { class: "flex
|
|
|
416
416
|
])
|
|
417
417
|
]),
|
|
418
418
|
_: 1
|
|
419
|
-
})) :
|
|
420
|
-
e[18] || (e[18] =
|
|
419
|
+
})) : c("", !0),
|
|
420
|
+
e[18] || (e[18] = o("span", null, " ", -1))
|
|
421
421
|
])
|
|
422
422
|
])
|
|
423
|
-
], 10, Ee)) :
|
|
423
|
+
], 10, Ee)) : c("", !0),
|
|
424
424
|
ne.value ? (u(), C("ul", We, [
|
|
425
|
-
(u(!0), C(fe, null,
|
|
426
|
-
key:
|
|
427
|
-
isDraggable: !
|
|
428
|
-
isDroppable:
|
|
425
|
+
(u(!0), C(fe, null, me(i.value.children, (a) => (u(), f(r, {
|
|
426
|
+
key: a,
|
|
427
|
+
isDraggable: !l(M)[a],
|
|
428
|
+
isDroppable: ae,
|
|
429
429
|
menuItem: t.menuItem,
|
|
430
430
|
parentUids: [...t.parentUids, t.uid],
|
|
431
|
-
uid:
|
|
432
|
-
onNewTab: e[8] || (e[8] = (
|
|
433
|
-
onOnDragEnd: e[9] || (e[9] = (...
|
|
434
|
-
onOpenMenu: e[10] || (e[10] = (
|
|
431
|
+
uid: a,
|
|
432
|
+
onNewTab: e[8] || (e[8] = (s, I) => n.$emit("newTab", s, I)),
|
|
433
|
+
onOnDragEnd: e[9] || (e[9] = (...s) => n.$emit("onDragEnd", ...s)),
|
|
434
|
+
onOpenMenu: e[10] || (e[10] = (s) => n.$emit("openMenu", s))
|
|
435
435
|
}, null, 8, ["isDraggable", "menuItem", "parentUids", "uid"]))), 128)),
|
|
436
|
-
i.value.children.length === 0 ? (u(), f(
|
|
436
|
+
i.value.children.length === 0 ? (u(), f(l(k), {
|
|
437
437
|
key: 0,
|
|
438
438
|
class: g(["text-c-1 hover:bg-b-2 flex h-8 w-full justify-start gap-1.5 py-0 text-xs", t.parentUids.length ? "pl-9" : ""]),
|
|
439
439
|
variant: "ghost",
|
|
440
|
-
onClick: e[11] || (e[11] = (
|
|
440
|
+
onClick: e[11] || (e[11] = (a) => S(i.value.entity.uid))
|
|
441
441
|
}, {
|
|
442
|
-
default:
|
|
443
|
-
|
|
442
|
+
default: p(() => [
|
|
443
|
+
m(l(b), {
|
|
444
444
|
icon: "Add",
|
|
445
445
|
size: "sm"
|
|
446
446
|
}),
|
|
447
|
-
e[19] || (e[19] =
|
|
447
|
+
e[19] || (e[19] = o("span", null, "Add Request", -1))
|
|
448
448
|
]),
|
|
449
449
|
_: 1
|
|
450
|
-
}, 8, ["class"])) :
|
|
451
|
-
])) :
|
|
450
|
+
}, 8, ["class"])) : c("", !0)
|
|
451
|
+
])) : c("", !0)
|
|
452
452
|
]),
|
|
453
453
|
_: 3
|
|
454
454
|
}, 8, ["id", "ceiling", "floor", "isDraggable", "isDroppable", "parentIds"])
|
|
455
|
-
], 2)) :
|
|
455
|
+
], 2)) : c("", !0);
|
|
456
456
|
};
|
|
457
457
|
}
|
|
458
458
|
});
|