@scalar/api-client 2.18.4 → 2.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +58 -0
- package/dist/components/AddressBar/AddressBar.vue2.js +5 -5
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +6 -6
- package/dist/components/ImportCollection/DropEventListener.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/DropEventListener.vue.js +26 -28
- package/dist/components/ImportCollection/utils/get-openapi-version.d.ts.map +1 -1
- package/dist/components/ImportCollection/utils/import-collection.d.ts +1 -1
- package/dist/components/ImportCollection/utils/import-collection.d.ts.map +1 -1
- package/dist/components/Search/useSearch.d.ts.map +1 -1
- package/dist/components/Search/useSearch.js +16 -16
- package/dist/components/Server/index.d.ts +1 -1
- package/dist/components/Server/index.d.ts.map +1 -1
- package/dist/components/Server/index.js +6 -6
- package/dist/components/SideNav/SideNav.vue.js +3 -3
- package/dist/components/Sidebar/index.d.ts +1 -2
- package/dist/components/Sidebar/index.d.ts.map +1 -1
- package/dist/components/index.d.ts +2 -2
- package/dist/components/index.d.ts.map +1 -1
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/useResponseBody.d.ts +1 -1
- package/dist/hooks/useResponseBody.d.ts.map +1 -1
- package/dist/hooks/useResponseBody.js +4 -4
- package/dist/hooks/useSidebar.d.ts +1 -1
- package/dist/hooks/useSidebar.d.ts.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/layouts/App/ApiClientApp.vue.js +5 -5
- package/dist/layouts/App/MainLayout.vue.js +4 -4
- package/dist/layouts/App/create-api-client-app.d.ts +12 -12
- package/dist/layouts/App/index.d.ts +1 -1
- package/dist/layouts/App/index.d.ts.map +1 -1
- package/dist/layouts/Web/ApiClientWeb.vue.js +6 -6
- package/dist/layouts/Web/create-api-client-web.d.ts +12 -12
- package/dist/layouts/Web/index.d.ts +1 -1
- package/dist/layouts/Web/index.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +12 -12
- package/dist/libs/get-request-uid-by-path-method.d.ts +1 -1
- package/dist/libs/get-request-uid-by-path-method.d.ts.map +1 -1
- package/dist/libs/hot-keys.d.ts +2 -2
- package/dist/libs/hot-keys.d.ts.map +1 -1
- package/dist/libs/importers/curl.d.ts.map +1 -1
- package/dist/libs/index.d.ts +14 -15
- package/dist/libs/index.d.ts.map +1 -1
- package/dist/libs/index.js +33 -33
- package/dist/libs/parse-curl.js +4 -4
- package/dist/libs/send-request/create-fetch-body.d.ts +1 -1
- package/dist/libs/send-request/create-fetch-body.d.ts.map +1 -1
- package/dist/libs/send-request/create-fetch-body.js +1 -1
- package/dist/libs/send-request/create-fetch-headers.d.ts.map +1 -1
- package/dist/libs/send-request/create-fetch-query-params.d.ts.map +1 -1
- package/dist/libs/send-request/create-fetch-query-params.js +2 -1
- package/dist/libs/send-request/index.d.ts +1 -1
- package/dist/libs/send-request/index.d.ts.map +1 -1
- package/dist/libs/send-request/index.js +4 -4
- package/dist/libs/send-request/set-request-cookies.d.ts.map +1 -1
- package/dist/libs/send-request/set-request-cookies.js +4 -4
- package/dist/store/active-entities.d.ts +1 -1
- package/dist/store/collections.d.ts +1 -1
- package/dist/store/collections.d.ts.map +1 -1
- package/dist/store/collections.js +4 -4
- package/dist/store/environment.d.ts +1 -1
- package/dist/store/environment.d.ts.map +1 -1
- package/dist/store/environment.js +4 -4
- package/dist/store/import-spec.d.ts +2 -2
- package/dist/store/import-spec.d.ts.map +1 -1
- package/dist/store/index.d.ts +1 -1
- package/dist/store/index.d.ts.map +1 -1
- package/dist/store/request-example.d.ts +1 -1
- package/dist/store/request-example.d.ts.map +1 -1
- package/dist/store/request-example.js +6 -6
- package/dist/store/requests.d.ts +1 -1
- package/dist/store/requests.d.ts.map +1 -1
- package/dist/store/requests.js +8 -8
- package/dist/store/security-schemes.d.ts +1 -1
- package/dist/store/security-schemes.d.ts.map +1 -1
- package/dist/store/security-schemes.js +4 -4
- package/dist/store/servers.d.ts +1 -1
- package/dist/store/servers.d.ts.map +1 -1
- package/dist/store/servers.js +4 -4
- package/dist/store/store.d.ts +12 -12
- package/dist/store/tags.d.ts +1 -1
- package/dist/store/tags.d.ts.map +1 -1
- package/dist/store/tags.js +5 -5
- package/dist/store/workspace.d.ts +13 -13
- package/dist/store/workspace.d.ts.map +1 -1
- package/dist/store/workspace.js +7 -7
- package/dist/style.css +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts +4 -5
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.js +17 -16
- package/dist/v2/blocks/operation-block/helpers/build-request-cookie-header.d.ts +3 -3
- package/dist/v2/blocks/operation-block/helpers/build-request-cookie-header.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/helpers/build-request-cookie-header.js +22 -22
- package/dist/v2/blocks/operation-block/helpers/build-request-parameters.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/helpers/build-request-parameters.js +14 -13
- package/dist/v2/blocks/operation-block/helpers/build-request.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/helpers/build-request.js +43 -41
- package/dist/v2/blocks/operation-block/helpers/filter-global-cookies.d.ts +14 -0
- package/dist/v2/blocks/operation-block/helpers/filter-global-cookies.d.ts.map +1 -0
- package/dist/v2/blocks/operation-block/helpers/filter-global-cookies.js +14 -0
- package/dist/v2/blocks/operation-block/helpers/get-resolved-url.d.ts +25 -0
- package/dist/v2/blocks/operation-block/helpers/get-resolved-url.d.ts.map +1 -0
- package/dist/v2/blocks/operation-block/helpers/get-resolved-url.js +17 -0
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.d.ts +10 -0
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.js +1 -1
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue2.js +29 -25
- package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts +6 -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/generate-code-snippet.js +27 -23
- package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.js +12 -12
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.d.ts +10 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.js +48 -39
- 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 +49 -46
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-server-url.d.ts +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-server-url.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-server-url.js +1 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts +6 -2
- 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 +200 -115
- package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts +4 -4
- package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.js +44 -47
- package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.js +21 -17
- package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts +8 -20
- package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestParams.vue.js +29 -40
- package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts +11 -18
- 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 -40
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts +33 -18
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.js +106 -106
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts +11 -14
- 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 +43 -31
- package/dist/v2/blocks/request-block/helpers/get-default-headers.d.ts +41 -0
- package/dist/v2/blocks/request-block/helpers/get-default-headers.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/helpers/get-default-headers.js +25 -0
- package/dist/v2/blocks/request-block/helpers/group-by.d.ts +1 -1
- package/dist/v2/blocks/request-block/helpers/group-by.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/helpers/group-by.js +6 -3
- package/dist/v2/blocks/request-block/helpers/is-param-disabled.d.ts +13 -0
- package/dist/v2/blocks/request-block/helpers/is-param-disabled.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/helpers/is-param-disabled.js +7 -0
- 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 +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +61 -63
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts +1 -2
- 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/OAuth2.vue.d.ts +2 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.d.ts +2 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts +1 -2
- 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/RequestAuthTab.vue.d.ts +2 -2
- package/dist/v2/components/code-input/CodeInput.vue.d.ts +2 -0
- package/dist/v2/components/code-input/CodeInput.vue.d.ts.map +1 -1
- package/dist/v2/components/code-input/CodeInput.vue.js +2 -2
- package/dist/v2/components/code-input/CodeInput.vue2.js +57 -51
- package/dist/v2/features/app/App.vue.js +6 -6
- package/dist/v2/features/app/app-events.d.ts +5 -9
- package/dist/v2/features/app/app-events.d.ts.map +1 -1
- package/dist/v2/features/app/app-events.js +143 -120
- package/dist/v2/features/app/app-state.d.ts.map +1 -1
- package/dist/v2/features/app/app-state.js +69 -71
- package/dist/v2/features/app/components/AppSidebar.vue.js +1 -1
- package/dist/v2/features/app/components/AppSidebar.vue2.js +5 -5
- 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 +21 -22
- package/dist/v2/features/modal/index.d.ts +1 -1
- package/dist/v2/features/modal/index.d.ts.map +1 -1
- package/dist/v2/features/modal/index.js +4 -4
- package/dist/v2/features/modal/modal-events.d.ts +13 -0
- package/dist/v2/features/modal/modal-events.d.ts.map +1 -0
- package/dist/v2/features/modal/modal-events.js +31 -0
- package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
- package/dist/v2/features/operation/Operation.vue.js +30 -43
- package/dist/v2/workspace-events.d.ts +25 -0
- package/dist/v2/workspace-events.d.ts.map +1 -0
- package/dist/v2/workspace-events.js +199 -0
- package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.d.ts.map +1 -1
- package/dist/views/Components/CodeSnippet/helpers/get-snippet.d.ts +1 -1
- package/dist/views/Components/CodeSnippet/helpers/get-snippet.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue2.js +3 -3
- package/dist/views/Environment/handle-drag.d.ts +1 -1
- package/dist/views/Environment/handle-drag.d.ts.map +1 -1
- package/dist/views/Request/RequestRoot.vue2.js +9 -9
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +4 -4
- package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +4 -4
- package/dist/views/Request/RequestSection/RequestSection.vue2.js +5 -5
- package/dist/views/Request/RequestSection/helpers/update-scheme.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebar.vue2.js +6 -6
- package/dist/views/Request/RequestSidebarItem.vue2.js +6 -6
- package/dist/views/Request/RequestSubpageHeader.vue2.js +4 -4
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/dist/views/Request/ResponseSection/index.d.ts +1 -1
- package/dist/views/Request/ResponseSection/index.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/index.js +4 -4
- package/dist/views/Request/consts/index.d.ts +2 -3
- package/dist/views/Request/consts/index.d.ts.map +1 -1
- package/dist/views/Request/consts/new-auth-options.d.ts +1 -1
- package/dist/views/Request/consts/new-auth-options.d.ts.map +1 -1
- package/dist/views/Request/handle-drag.d.ts +1 -1
- package/dist/views/Request/handle-drag.d.ts.map +1 -1
- package/dist/views/Request/hooks/useOpenApiWatcher.d.ts.map +1 -1
- package/dist/views/Request/hooks/useOpenApiWatcher.js +14 -14
- package/dist/views/Request/libs/auth.d.ts +1 -1
- package/dist/views/Request/libs/auth.d.ts.map +1 -1
- package/dist/views/Request/libs/index.d.ts +3 -3
- package/dist/views/Request/libs/index.d.ts.map +1 -1
- package/dist/views/Request/libs/oauth2.js +1 -1
- package/dist/views/Request/libs/watch-mode.js +6 -6
- package/dist/views/Request/types/index.d.ts +1 -1
- package/dist/views/Request/types/index.d.ts.map +1 -1
- package/package.json +12 -12
- package/dist/v2/features/modal/hooks/use-workspace-client-modal-events.d.ts +0 -18
- package/dist/v2/features/modal/hooks/use-workspace-client-modal-events.d.ts.map +0 -1
- package/dist/v2/features/modal/hooks/use-workspace-client-modal-events.js +0 -39
- package/dist/v2/features/operation/helpers/get-operation-header.js +0 -12
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as h, computed as s, ref as
|
|
2
|
-
import { ScalarErrorBoundary as
|
|
3
|
-
import { ScalarIconCaretDown as
|
|
4
|
-
import { generateCodeSnippet as
|
|
5
|
-
import { getClients as
|
|
1
|
+
import { defineComponent as h, computed as s, ref as g, watch as S, createBlock as x, openBlock as b, unref as t, withCtx as l, createVNode as n, createElementVNode as m, createTextVNode as u, toDisplayString as y, normalizeClass as k } from "vue";
|
|
2
|
+
import { ScalarErrorBoundary as w, ScalarCodeBlock as B, ScalarCombobox as V, ScalarButton as T } from "@scalar/components";
|
|
3
|
+
import { ScalarIconCaretDown as D } from "@scalar/icons";
|
|
4
|
+
import { generateCodeSnippet as E } from "../../operation-code-sample/helpers/generate-code-snippet.js";
|
|
5
|
+
import { getClients as N } from "../../operation-code-sample/helpers/get-clients.js";
|
|
6
6
|
import { getCustomCodeSamples as O } from "../../operation-code-sample/helpers/get-custom-code-samples.js";
|
|
7
7
|
import { getSecrets as z } from "../../operation-code-sample/helpers/get-secrets.js";
|
|
8
8
|
import { findClient as f } from "../../operation-code-sample/helpers/find-client.js";
|
|
@@ -12,6 +12,7 @@ import W from "../../../components/data-table/DataTableRow.vue.js";
|
|
|
12
12
|
const $ = { class: "flex flex-1" }, q = { class: "overflow-hidden" }, Q = /* @__PURE__ */ h({
|
|
13
13
|
__name: "RequestCodeSnippet",
|
|
14
14
|
props: {
|
|
15
|
+
integration: {},
|
|
15
16
|
clientOptions: {},
|
|
16
17
|
selectedClient: {},
|
|
17
18
|
selectedServer: { default: null },
|
|
@@ -24,15 +25,16 @@ const $ = { class: "flex flex-1" }, q = { class: "overflow-hidden" }, Q = /* @__
|
|
|
24
25
|
operation: {},
|
|
25
26
|
fallback: { type: Boolean },
|
|
26
27
|
generateLabel: { type: Function },
|
|
27
|
-
isWebhook: { type: Boolean }
|
|
28
|
+
isWebhook: { type: Boolean },
|
|
29
|
+
globalCookies: {}
|
|
28
30
|
},
|
|
29
31
|
setup(e) {
|
|
30
32
|
const d = s(() => O(e.operation)), c = s(
|
|
31
|
-
() =>
|
|
32
|
-
), i =
|
|
33
|
+
() => N(d.value, e.clientOptions)
|
|
34
|
+
), i = g(
|
|
33
35
|
f(c.value, e.selectedClient)
|
|
34
36
|
);
|
|
35
|
-
|
|
37
|
+
S(
|
|
36
38
|
() => e.selectedClient,
|
|
37
39
|
(a) => {
|
|
38
40
|
const o = f(c.value, a);
|
|
@@ -42,7 +44,7 @@ const $ = { class: "flex flex-1" }, q = { class: "overflow-hidden" }, Q = /* @__
|
|
|
42
44
|
const p = s(() => z(e.securitySchemes ?? [])), C = (a) => {
|
|
43
45
|
i.value = a, a && !a.id.startsWith("custom") && e.eventBus.emit("workspace:update:selected-client", a.id);
|
|
44
46
|
}, v = s(
|
|
45
|
-
() =>
|
|
47
|
+
() => E({
|
|
46
48
|
clientId: i.value?.id,
|
|
47
49
|
customCodeSamples: d.value,
|
|
48
50
|
operation: e.operation,
|
|
@@ -51,10 +53,12 @@ const $ = { class: "flex flex-1" }, q = { class: "overflow-hidden" }, Q = /* @__
|
|
|
51
53
|
contentType: e.selectedContentType,
|
|
52
54
|
server: e.selectedServer,
|
|
53
55
|
securitySchemes: e.securitySchemes,
|
|
54
|
-
example: e.selectedExample
|
|
56
|
+
example: e.selectedExample,
|
|
57
|
+
globalCookies: e.globalCookies,
|
|
58
|
+
includeDefaultHeaders: e.integration === "client"
|
|
55
59
|
})
|
|
56
60
|
);
|
|
57
|
-
return (a, o) => (
|
|
61
|
+
return (a, o) => (b(), x(t(I), {
|
|
58
62
|
class: "group/preview w-full border-t",
|
|
59
63
|
defaultOpen: !1
|
|
60
64
|
}, {
|
|
@@ -76,9 +80,9 @@ const $ = { class: "flex flex-1" }, q = { class: "overflow-hidden" }, Q = /* @__
|
|
|
76
80
|
variant: "ghost"
|
|
77
81
|
}, {
|
|
78
82
|
default: l(() => [
|
|
79
|
-
u(
|
|
80
|
-
n(t(
|
|
81
|
-
class:
|
|
83
|
+
u(y(i.value?.title) + " ", 1),
|
|
84
|
+
n(t(D), {
|
|
85
|
+
class: k(["mt-0.25 size-3 transition-transform duration-100", r && "rotate-180"]),
|
|
82
86
|
weight: "bold"
|
|
83
87
|
}, null, 8, ["class"])
|
|
84
88
|
]),
|
|
@@ -90,7 +94,7 @@ const $ = { class: "flex flex-1" }, q = { class: "overflow-hidden" }, Q = /* @__
|
|
|
90
94
|
])
|
|
91
95
|
]),
|
|
92
96
|
default: l(() => [
|
|
93
|
-
n(t(
|
|
97
|
+
n(t(w), null, {
|
|
94
98
|
default: l(() => [
|
|
95
99
|
n(t(R), {
|
|
96
100
|
columns: [""],
|
|
@@ -100,7 +104,7 @@ const $ = { class: "flex flex-1" }, q = { class: "overflow-hidden" }, Q = /* @__
|
|
|
100
104
|
n(t(W), null, {
|
|
101
105
|
default: l(() => [
|
|
102
106
|
m("div", q, [
|
|
103
|
-
n(t(
|
|
107
|
+
n(t(B), {
|
|
104
108
|
class: "text-base -outline-offset-2",
|
|
105
109
|
content: v.value,
|
|
106
110
|
hideCredentials: p.value,
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
1
2
|
import type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments';
|
|
2
|
-
import type {
|
|
3
|
+
import type { TableRow } from './RequestTableRow.vue.js';
|
|
3
4
|
type __VLS_Props = {
|
|
4
|
-
|
|
5
|
+
rows: TableRow[];
|
|
5
6
|
exampleKey: string;
|
|
6
7
|
title: string;
|
|
7
8
|
label?: string;
|
|
@@ -9,39 +10,26 @@ type __VLS_Props = {
|
|
|
9
10
|
globalRoute?: string;
|
|
10
11
|
showAddRowPlaceholder?: boolean;
|
|
11
12
|
environment: XScalarEnvironment;
|
|
13
|
+
eventBus: WorkspaceEventBus;
|
|
12
14
|
};
|
|
13
15
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
14
16
|
delete: (payload: {
|
|
15
17
|
index: number;
|
|
16
18
|
}) => any;
|
|
17
|
-
|
|
19
|
+
upsert: (index: number, payload: {
|
|
18
20
|
name: string;
|
|
19
21
|
value: string;
|
|
20
|
-
|
|
21
|
-
update: (payload: {
|
|
22
|
-
index: number;
|
|
23
|
-
payload: Partial<{
|
|
24
|
-
name: string;
|
|
25
|
-
value: string;
|
|
26
|
-
isDisabled: boolean;
|
|
27
|
-
}>;
|
|
22
|
+
isDisabled: boolean;
|
|
28
23
|
}) => any;
|
|
29
24
|
deleteAll: () => any;
|
|
30
25
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
31
26
|
onDelete?: ((payload: {
|
|
32
27
|
index: number;
|
|
33
28
|
}) => any) | undefined;
|
|
34
|
-
|
|
29
|
+
onUpsert?: ((index: number, payload: {
|
|
35
30
|
name: string;
|
|
36
31
|
value: string;
|
|
37
|
-
|
|
38
|
-
onUpdate?: ((payload: {
|
|
39
|
-
index: number;
|
|
40
|
-
payload: Partial<{
|
|
41
|
-
name: string;
|
|
42
|
-
value: string;
|
|
43
|
-
isDisabled: boolean;
|
|
44
|
-
}>;
|
|
32
|
+
isDisabled: boolean;
|
|
45
33
|
}) => any) | undefined;
|
|
46
34
|
onDeleteAll?: (() => any) | undefined;
|
|
47
35
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestParams.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/components/RequestParams.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestParams.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/components/RequestParams.vue"],"names":[],"mappings":"AA0GA,OAAO,KAAK,EAEV,iBAAiB,EAClB,MAAM,gCAAgC,CAAA;AACvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AAMnH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAErD,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,QAAQ,EAAE,CAAA;IAChB,UAAU,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,aAAa,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,WAAW,EAAE,kBAAkB,CAAA;IAC/B,QAAQ,EAAE,iBAAiB,CAAA;CAC5B,CAAC;;;eAiBgC,MAAM;;;;;;;;;;eAAN,MAAM;;;;;;;;;AAsLxC,wBAOG"}
|
|
@@ -1,83 +1,72 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarTooltip as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
import q from "../../../components/layout/CollapsibleSection.vue.js";
|
|
7
|
-
const K = { class: "text-c-2 request-meta-buttons flex whitespace-nowrap opacity-0 group-hover/params:opacity-100 has-[:focus-visible]:opacity-100" }, k = { class: "sr-only" }, E = /* @__PURE__ */ b({
|
|
1
|
+
import { defineComponent as h, computed as R, createBlock as s, openBlock as r, unref as n, withCtx as o, createVNode as m, createElementVNode as d, createCommentVNode as g, withModifiers as x, createTextVNode as u, toDisplayString as c } from "vue";
|
|
2
|
+
import { ScalarTooltip as b, ScalarButton as y } from "@scalar/components";
|
|
3
|
+
import P from "./RequestTable.vue.js";
|
|
4
|
+
import C from "../../../components/layout/CollapsibleSection.vue.js";
|
|
5
|
+
const A = { class: "text-c-2 request-meta-buttons flex whitespace-nowrap opacity-0 group-hover/params:opacity-100 has-[:focus-visible]:opacity-100" }, B = { class: "sr-only" }, V = /* @__PURE__ */ h({
|
|
8
6
|
__name: "RequestParams",
|
|
9
7
|
props: {
|
|
10
|
-
|
|
8
|
+
rows: {},
|
|
11
9
|
exampleKey: {},
|
|
12
10
|
title: {},
|
|
13
11
|
label: {},
|
|
14
12
|
invalidParams: {},
|
|
15
13
|
globalRoute: {},
|
|
16
14
|
showAddRowPlaceholder: { type: Boolean, default: !0 },
|
|
17
|
-
environment: {}
|
|
15
|
+
environment: {},
|
|
16
|
+
eventBus: {}
|
|
18
17
|
},
|
|
19
|
-
emits: ["
|
|
18
|
+
emits: ["upsert", "delete", "deleteAll"],
|
|
20
19
|
setup(e, { emit: f }) {
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
value: t?.value ?? "",
|
|
27
|
-
description: a.description,
|
|
28
|
-
globalRoute: e.globalRoute,
|
|
29
|
-
schema: A(a),
|
|
30
|
-
isRequired: a.required,
|
|
31
|
-
isDisabled: t?.["x-disabled"] ?? !1
|
|
32
|
-
};
|
|
33
|
-
})
|
|
34
|
-
), w = r(() => e.parameters.length > 1);
|
|
35
|
-
return (a, t) => (d(), s(i(q), {
|
|
20
|
+
const a = f, w = R(() => e.rows.length > 1), p = (i, t) => {
|
|
21
|
+
const { value: l, ...v } = t;
|
|
22
|
+
l instanceof File || a("upsert", i, { ...v, value: l ?? "" });
|
|
23
|
+
};
|
|
24
|
+
return (i, t) => (r(), s(n(C), {
|
|
36
25
|
class: "group/params",
|
|
37
|
-
itemCount: e.
|
|
26
|
+
itemCount: e.rows.length
|
|
38
27
|
}, {
|
|
39
28
|
title: o(() => [
|
|
40
|
-
c(
|
|
29
|
+
u(c(e.title), 1)
|
|
41
30
|
]),
|
|
42
31
|
actions: o(() => [
|
|
43
|
-
|
|
44
|
-
w.value ? (
|
|
32
|
+
d("div", A, [
|
|
33
|
+
w.value ? (r(), s(n(b), {
|
|
45
34
|
key: 0,
|
|
46
35
|
content: "Clear optional parameters",
|
|
47
36
|
placement: "left"
|
|
48
37
|
}, {
|
|
49
38
|
default: o(() => [
|
|
50
|
-
m(
|
|
39
|
+
m(n(y), {
|
|
51
40
|
class: "pr-0.75 pl-1 transition-none",
|
|
52
41
|
size: "sm",
|
|
53
42
|
variant: "ghost",
|
|
54
|
-
onClick: t[0] || (t[0] =
|
|
43
|
+
onClick: t[0] || (t[0] = x((l) => a("deleteAll"), ["stop"]))
|
|
55
44
|
}, {
|
|
56
45
|
default: o(() => [
|
|
57
|
-
t[
|
|
58
|
-
|
|
46
|
+
t[3] || (t[3] = u(" Clear ", -1)),
|
|
47
|
+
d("span", B, "All " + c(e.title), 1)
|
|
59
48
|
]),
|
|
60
49
|
_: 1
|
|
61
50
|
})
|
|
62
51
|
]),
|
|
63
52
|
_: 1
|
|
64
|
-
})) :
|
|
53
|
+
})) : g("", !0)
|
|
65
54
|
])
|
|
66
55
|
]),
|
|
67
56
|
default: o(() => [
|
|
68
|
-
m(
|
|
57
|
+
m(P, {
|
|
69
58
|
class: "flex-1",
|
|
70
59
|
columns: ["32px", "", ""],
|
|
71
|
-
data:
|
|
60
|
+
data: e.rows,
|
|
72
61
|
environment: e.environment,
|
|
73
62
|
exampleKey: e.exampleKey,
|
|
74
63
|
globalRoute: e.globalRoute,
|
|
75
64
|
invalidParams: e.invalidParams,
|
|
76
65
|
label: e.label,
|
|
77
66
|
showAddRowPlaceholder: e.showAddRowPlaceholder,
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
67
|
+
onDeleteRow: t[1] || (t[1] = (l) => a("delete", { index: l })),
|
|
68
|
+
onNavigate: t[2] || (t[2] = (l) => e.eventBus.emit("ui:route:page", { name: l })),
|
|
69
|
+
onUpsertRow: p
|
|
81
70
|
}, null, 8, ["data", "environment", "exampleKey", "globalRoute", "invalidParams", "label", "showAddRowPlaceholder"])
|
|
82
71
|
]),
|
|
83
72
|
_: 1
|
|
@@ -85,5 +74,5 @@ const K = { class: "text-c-2 request-meta-buttons flex whitespace-nowrap opacity
|
|
|
85
74
|
}
|
|
86
75
|
});
|
|
87
76
|
export {
|
|
88
|
-
|
|
77
|
+
V as default
|
|
89
78
|
};
|
|
@@ -2,7 +2,6 @@ import type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensi
|
|
|
2
2
|
import { type TableRow } from '../../../../v2/blocks/request-block/components/RequestTableRow.vue.js';
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
data: TableRow[];
|
|
5
|
-
isReadOnly?: boolean;
|
|
6
5
|
/** Hide the enabled column */
|
|
7
6
|
hasCheckboxDisabled?: boolean;
|
|
8
7
|
invalidParams?: Set<string>;
|
|
@@ -12,31 +11,25 @@ type __VLS_Props = {
|
|
|
12
11
|
environment: XScalarEnvironment;
|
|
13
12
|
};
|
|
14
13
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
15
|
-
|
|
16
|
-
name: string;
|
|
17
|
-
value: string;
|
|
18
|
-
isDisabled: boolean;
|
|
19
|
-
}>) => any;
|
|
20
|
-
addRow: (payload: Partial<{
|
|
21
|
-
name: string;
|
|
22
|
-
value: string;
|
|
23
|
-
}>) => any;
|
|
14
|
+
navigate: (route: string) => any;
|
|
24
15
|
deleteRow: (index: number) => any;
|
|
25
16
|
uploadFile: (index: number) => any;
|
|
26
17
|
removeFile: (index: number) => any;
|
|
27
|
-
|
|
28
|
-
onUpdateRow?: ((index: number, payload: Partial<{
|
|
18
|
+
upsertRow: (index: number, payload: {
|
|
29
19
|
name: string;
|
|
30
|
-
value: string;
|
|
20
|
+
value: string | File | undefined;
|
|
31
21
|
isDisabled: boolean;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
value: string;
|
|
36
|
-
}>) => any) | undefined;
|
|
22
|
+
}) => any;
|
|
23
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
24
|
+
onNavigate?: ((route: string) => any) | undefined;
|
|
37
25
|
onDeleteRow?: ((index: number) => any) | undefined;
|
|
38
26
|
onUploadFile?: ((index: number) => any) | undefined;
|
|
39
27
|
onRemoveFile?: ((index: number) => any) | undefined;
|
|
28
|
+
onUpsertRow?: ((index: number, payload: {
|
|
29
|
+
name: string;
|
|
30
|
+
value: string | File | undefined;
|
|
31
|
+
isDisabled: boolean;
|
|
32
|
+
}) => any) | undefined;
|
|
40
33
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
41
34
|
export default _default;
|
|
42
35
|
//# sourceMappingURL=RequestTable.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestTable.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/components/RequestTable.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestTable.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/components/RequestTable.vue"],"names":[],"mappings":"AA6IA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AAGnH,OAAwB,EACtB,KAAK,QAAQ,EACd,MAAM,0DAA0D,CAAA;AAOjE,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,QAAQ,EAAE,CAAA;IAChB,8BAA8B;IAC9B,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,aAAa,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,WAAW,EAAE,kBAAkB,CAAA;CAChC,CAAC;;;;;;;cAiBU,MAAM;eACL,MAAM,GAAG,IAAI,GAAG,SAAS;oBACpB,OAAO;;;;;;;;cAFb,MAAM;eACL,MAAM,GAAG,IAAI,GAAG,SAAS;oBACpB,OAAO;;;AAsMzB,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import o from "./RequestTable.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const m = /* @__PURE__ */ o
|
|
3
|
+
import t from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-2dc74300"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { defineComponent as B, computed as f, createBlock as
|
|
1
|
+
import { defineComponent as B, computed as f, createBlock as v, openBlock as r, unref as o, withCtx as n, createVNode as u, createElementBlock as D, createTextVNode as d, toDisplayString as m, Fragment as k, renderList as F } from "vue";
|
|
2
2
|
import U from "./RequestTableRow.vue.js";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
const
|
|
3
|
+
import y from "../../../components/data-table/DataTable.vue.js";
|
|
4
|
+
import p from "../../../components/data-table/DataTableRow.vue.js";
|
|
5
|
+
import s from "../../../components/data-table/DataTableHeader.vue.js";
|
|
6
|
+
const N = /* @__PURE__ */ B({
|
|
7
7
|
__name: "RequestTable",
|
|
8
8
|
props: {
|
|
9
9
|
data: {},
|
|
10
|
-
isReadOnly: { type: Boolean },
|
|
11
10
|
hasCheckboxDisabled: { type: Boolean },
|
|
12
11
|
invalidParams: {},
|
|
13
12
|
label: {},
|
|
@@ -15,70 +14,61 @@ const A = /* @__PURE__ */ B({
|
|
|
15
14
|
showAddRowPlaceholder: { type: Boolean, default: !0 },
|
|
16
15
|
environment: {}
|
|
17
16
|
},
|
|
18
|
-
emits: ["
|
|
19
|
-
setup(e, { emit:
|
|
20
|
-
const
|
|
17
|
+
emits: ["upsertRow", "deleteRow", "uploadFile", "removeFile", "navigate"],
|
|
18
|
+
setup(e, { emit: b }) {
|
|
19
|
+
const t = b, w = f(() => e.showUploadButton ? ["36px", "", "", "auto"] : ["36px", "", ""]), h = f(() => {
|
|
21
20
|
if (!e.showAddRowPlaceholder)
|
|
22
21
|
return e.data;
|
|
23
|
-
const
|
|
24
|
-
return !
|
|
25
|
-
})
|
|
26
|
-
|
|
27
|
-
payload: u
|
|
28
|
-
}) => {
|
|
29
|
-
if (a >= e.data.length) {
|
|
30
|
-
l("addRow", u);
|
|
31
|
-
return;
|
|
32
|
-
}
|
|
33
|
-
l("updateRow", a, u);
|
|
34
|
-
};
|
|
35
|
-
return (a, u) => (r(), b(o(x), {
|
|
22
|
+
const i = e.data.at(-1);
|
|
23
|
+
return !i || i.name !== "" || i.value !== "" ? [...e.data, { name: "", value: "", isDisabled: !0 }] : e.data;
|
|
24
|
+
});
|
|
25
|
+
return (i, c) => (r(), v(o(y), {
|
|
36
26
|
class: "group/table flex-1",
|
|
37
|
-
columns:
|
|
27
|
+
columns: w.value
|
|
38
28
|
}, {
|
|
39
29
|
default: n(() => [
|
|
40
|
-
|
|
30
|
+
u(o(p), { class: "sr-only !block" }, {
|
|
41
31
|
default: n(() => [
|
|
42
|
-
|
|
32
|
+
u(o(s), null, {
|
|
43
33
|
default: n(() => [
|
|
44
|
-
m(
|
|
34
|
+
d(m(e.label) + " Enabled", 1)
|
|
45
35
|
]),
|
|
46
36
|
_: 1
|
|
47
37
|
}),
|
|
48
|
-
|
|
38
|
+
u(o(s), null, {
|
|
49
39
|
default: n(() => [
|
|
50
|
-
m(
|
|
40
|
+
d(m(e.label) + " Key", 1)
|
|
51
41
|
]),
|
|
52
42
|
_: 1
|
|
53
43
|
}),
|
|
54
|
-
|
|
44
|
+
u(o(s), null, {
|
|
55
45
|
default: n(() => [
|
|
56
|
-
m(
|
|
46
|
+
d(m(e.label) + " Value", 1)
|
|
57
47
|
]),
|
|
58
48
|
_: 1
|
|
59
49
|
})
|
|
60
50
|
]),
|
|
61
51
|
_: 1
|
|
62
52
|
}),
|
|
63
|
-
(r(!0), D(k, null, F(
|
|
64
|
-
key:
|
|
65
|
-
data:
|
|
53
|
+
(r(!0), D(k, null, F(h.value, (R, l) => (r(), v(U, {
|
|
54
|
+
key: l,
|
|
55
|
+
data: R,
|
|
66
56
|
environment: e.environment,
|
|
67
57
|
hasCheckboxDisabled: e.hasCheckboxDisabled,
|
|
68
58
|
invalidParams: e.invalidParams,
|
|
69
|
-
isReadOnly: e.isReadOnly,
|
|
70
59
|
label: e.label,
|
|
71
60
|
showUploadButton: e.showUploadButton,
|
|
72
|
-
onDeleteRow: (
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
onUploadFile: (
|
|
76
|
-
|
|
61
|
+
onDeleteRow: (a) => t("deleteRow", l),
|
|
62
|
+
onNavigate: c[0] || (c[0] = (a) => t("navigate", a)),
|
|
63
|
+
onRemoveFile: (a) => t("removeFile", l),
|
|
64
|
+
onUploadFile: (a) => t("uploadFile", l),
|
|
65
|
+
onUpsertRow: (a) => t("upsertRow", l, a)
|
|
66
|
+
}, null, 8, ["data", "environment", "hasCheckboxDisabled", "invalidParams", "label", "showUploadButton", "onDeleteRow", "onRemoveFile", "onUploadFile", "onUpsertRow"]))), 128))
|
|
77
67
|
]),
|
|
78
68
|
_: 1
|
|
79
69
|
}, 8, ["columns"]));
|
|
80
70
|
}
|
|
81
71
|
});
|
|
82
72
|
export {
|
|
83
|
-
|
|
73
|
+
N as default
|
|
84
74
|
};
|
|
@@ -1,41 +1,56 @@
|
|
|
1
1
|
import type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments';
|
|
2
2
|
import type { SchemaObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
3
|
-
type __VLS_Props = {
|
|
4
|
-
data: TableRow;
|
|
5
|
-
isReadOnly?: boolean;
|
|
6
|
-
hasCheckboxDisabled?: boolean;
|
|
7
|
-
invalidParams?: Set<string>;
|
|
8
|
-
label?: string;
|
|
9
|
-
environment: XScalarEnvironment;
|
|
10
|
-
showUploadButton?: boolean;
|
|
11
|
-
};
|
|
12
3
|
export type TableRow = {
|
|
4
|
+
/** The parameter or field name/key */
|
|
13
5
|
name: string;
|
|
6
|
+
/** The parameter value, can be a string, file, or null */
|
|
14
7
|
value: string | File | null;
|
|
8
|
+
/** Optional description for the parameter */
|
|
15
9
|
description?: string;
|
|
10
|
+
/** Optional route for global parameters (e.g., cookies shared across workspace) */
|
|
16
11
|
globalRoute?: string;
|
|
12
|
+
/** Whether the parameter is disabled/inactive */
|
|
17
13
|
isDisabled?: boolean;
|
|
14
|
+
/** OpenAPI schema object with type, validation rules, examples, etc. */
|
|
18
15
|
schema?: SchemaObject;
|
|
16
|
+
/** Whether the parameter is required */
|
|
19
17
|
isRequired?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Whether the parameter is readonly and can not be modifies directly
|
|
20
|
+
* User can still override the parameter which is going to show up with the linethrough style
|
|
21
|
+
*/
|
|
22
|
+
isReadonly?: boolean;
|
|
23
|
+
/** Whether the parameter is overridden later on */
|
|
24
|
+
isOverridden?: boolean;
|
|
25
|
+
};
|
|
26
|
+
type __VLS_Props = {
|
|
27
|
+
data: TableRow;
|
|
28
|
+
hasCheckboxDisabled?: boolean;
|
|
29
|
+
invalidParams?: Set<string>;
|
|
30
|
+
label?: string;
|
|
31
|
+
environment: XScalarEnvironment;
|
|
32
|
+
showUploadButton?: boolean;
|
|
20
33
|
};
|
|
21
34
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
22
|
-
|
|
23
|
-
name: string;
|
|
24
|
-
value: string;
|
|
25
|
-
isDisabled: boolean;
|
|
26
|
-
}>) => any;
|
|
35
|
+
navigate: (route: string) => any;
|
|
27
36
|
deleteRow: () => any;
|
|
28
37
|
uploadFile: () => any;
|
|
29
38
|
removeFile: () => any;
|
|
30
|
-
|
|
31
|
-
onUpdateRow?: ((payload: Partial<{
|
|
39
|
+
upsertRow: (payload: {
|
|
32
40
|
name: string;
|
|
33
|
-
value: string;
|
|
41
|
+
value: string | File;
|
|
34
42
|
isDisabled: boolean;
|
|
35
|
-
}
|
|
43
|
+
}) => any;
|
|
44
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
45
|
+
onNavigate?: ((route: string) => any) | undefined;
|
|
36
46
|
onDeleteRow?: (() => any) | undefined;
|
|
37
47
|
onUploadFile?: (() => any) | undefined;
|
|
38
48
|
onRemoveFile?: (() => any) | undefined;
|
|
49
|
+
onUpsertRow?: ((payload: {
|
|
50
|
+
name: string;
|
|
51
|
+
value: string | File;
|
|
52
|
+
isDisabled: boolean;
|
|
53
|
+
}) => any) | undefined;
|
|
39
54
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
40
55
|
export default _default;
|
|
41
56
|
//# sourceMappingURL=RequestTableRow.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestTableRow.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/components/RequestTableRow.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestTableRow.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/components/RequestTableRow.vue"],"names":[],"mappings":"AAoRA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAchG,MAAM,MAAM,QAAQ,GAAG;IACrB,sCAAsC;IACtC,IAAI,EAAE,MAAM,CAAA;IACZ,0DAA0D;IAC1D,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAA;IAC3B,6CAA6C;IAC7C,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,mFAAmF;IACnF,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,iDAAiD;IACjD,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,wEAAwE;IACxE,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,wCAAwC;IACxC,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,mDAAmD;IACnD,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB,CAAA;AAED,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,QAAQ,CAAA;IACd,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,aAAa,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,kBAAkB,CAAA;IAC/B,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B,CAAC;;;;;;;cAYmB,MAAM;eAAS,MAAM,GAAG,IAAI;oBAAc,OAAO;;;;;;;;cAAjD,MAAM;eAAS,MAAM,GAAG,IAAI;oBAAc,OAAO;;;AAkhBtE,wBAOG"}
|