@scalar/api-client 2.14.0 → 2.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +54 -0
- package/dist/libs/string-template.d.ts +2 -0
- package/dist/libs/string-template.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 +28 -51
- package/dist/v2/blocks/operation-block/components/Header.vue.d.ts +0 -12
- package/dist/v2/blocks/operation-block/components/Header.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/components/Header.vue.js +3 -3
- package/dist/v2/blocks/operation-block/components/Header.vue2.js +26 -28
- package/dist/v2/blocks/operation-block/helpers/build-request-parameters.d.ts +33 -0
- package/dist/v2/blocks/operation-block/helpers/build-request-parameters.d.ts.map +1 -0
- package/dist/v2/blocks/operation-block/helpers/build-request-security.d.ts +18 -0
- package/dist/v2/blocks/operation-block/helpers/build-request-security.d.ts.map +1 -0
- package/dist/v2/blocks/operation-block/helpers/decode-buffer.d.ts +7 -0
- package/dist/v2/blocks/operation-block/helpers/decode-buffer.d.ts.map +1 -0
- package/dist/v2/blocks/operation-block/helpers/get-delimiter.d.ts +8 -0
- package/dist/v2/blocks/operation-block/helpers/get-delimiter.d.ts.map +1 -0
- package/dist/v2/blocks/operation-block/helpers/get-example.d.ts +4 -0
- package/dist/v2/blocks/operation-block/helpers/get-example.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue.js +1 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue2.js +134 -125
- package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts +2 -0
- 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 +11 -10
- package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts +2 -2
- package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts +2 -4
- package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTable.vue.js +1 -1
- 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 +10 -10
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts +1 -1
- 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 +21 -15
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts +4 -13
- 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 +106 -70
- package/dist/v2/components/code-input/CodeInput.vue.d.ts +10 -1
- package/dist/v2/components/code-input/CodeInput.vue.d.ts.map +1 -1
- package/dist/v2/components/code-input/CodeInput.vue.js +1 -1
- package/dist/v2/components/code-input/CodeInput.vue2.js +65 -51
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts +4 -0
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/v2/components/sidebar/Sidebar.vue.js +42 -39
- package/dist/v2/features/app/App.vue.d.ts.map +1 -1
- package/dist/v2/features/app/App.vue.js +64 -66
- package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -1
- package/dist/v2/features/app/components/AppSidebar.vue.js +2 -2
- package/dist/v2/features/app/components/AppSidebar.vue2.js +193 -106
- package/dist/v2/features/app/components/ItemDecorator.vue.d.ts +22 -0
- package/dist/v2/features/app/components/ItemDecorator.vue.d.ts.map +1 -0
- package/dist/v2/features/app/components/ItemDecorator.vue.js +138 -0
- package/dist/v2/features/app/components/ItemDecorator.vue2.js +4 -0
- package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.d.ts +8 -0
- package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.d.ts.map +1 -1
- package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.js +76 -68
- package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.d.ts +8 -0
- package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.d.ts.map +1 -1
- package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.js +83 -75
- package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.d.ts +4 -0
- package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.d.ts.map +1 -1
- package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.js +32 -34
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts +16 -0
- 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 +24 -21
- package/dist/v2/features/operation/Operation.vue.js +1 -1
- package/dist/v2/features/settings/DocumentSettings.vue.js +2 -2
- package/dist/v2/features/settings/DocumentSettings.vue2.js +1 -1
- package/dist/v2/helpers/storage.d.ts.map +1 -1
- package/dist/v2/helpers/storage.js +5 -5
- package/dist/v2/hooks/use-workspace-client-events.d.ts.map +1 -1
- package/dist/v2/hooks/use-workspace-client-events.js +102 -61
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/package.json +21 -21
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { defineComponent as D, computed as
|
|
1
|
+
import { defineComponent as D, computed as r, ref as Q, useId as n, watch as j, createBlock as w, openBlock as u, withCtx as K, createElementVNode as g, withDirectives as d, createElementBlock as f, createVNode as i, unref as v, vShow as y, mergeProps as B, toHandlers as q, Fragment as M, renderList as z, createCommentVNode as V, resolveDynamicComponent as L, toDisplayString as G } from "vue";
|
|
2
2
|
import { ScalarErrorBoundary as X } from "@scalar/components";
|
|
3
|
-
import { canMethodHaveBody as
|
|
3
|
+
import { canMethodHaveBody as b } from "@scalar/helpers/http/can-method-have-body";
|
|
4
4
|
import { REGEX as J } from "@scalar/helpers/regex/regex-helpers";
|
|
5
|
-
import { getResolvedRef as
|
|
5
|
+
import { getResolvedRef as C } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
6
6
|
import W from "../../../components/SectionFilter.vue.js";
|
|
7
7
|
import Y from "../../../components/ViewLayout/ViewLayoutSection.vue.js";
|
|
8
8
|
import Z from "./components/RequestBody.vue.js";
|
|
9
9
|
import R from "./components/RequestParams.vue.js";
|
|
10
|
-
import { createParameterHandlers as
|
|
10
|
+
import { createParameterHandlers as k } from "./helpers/create-parameter-handlers.js";
|
|
11
11
|
import { groupBy as _ } from "./helpers/group-by.js";
|
|
12
12
|
import ee from "../scalar-auth-selector-block/components/AuthSelector.vue.js";
|
|
13
13
|
const te = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:pr-24" }, ae = ["for"], oe = ["id", "placeholder", "value"], ne = {
|
|
14
14
|
key: 2,
|
|
15
15
|
class: "text-c-1 flex h-8 items-center"
|
|
16
|
-
},
|
|
16
|
+
}, le = ["id", "role"], Be = /* @__PURE__ */ D({
|
|
17
17
|
__name: "RequestBlock",
|
|
18
18
|
props: {
|
|
19
19
|
method: {},
|
|
@@ -31,16 +31,16 @@ const te = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
|
|
|
31
31
|
environment: {}
|
|
32
32
|
},
|
|
33
33
|
setup(t) {
|
|
34
|
-
const a =
|
|
34
|
+
const a = r(() => ({
|
|
35
35
|
method: t.method,
|
|
36
36
|
path: t.path,
|
|
37
37
|
exampleKey: t.exampleKey
|
|
38
|
-
})),
|
|
38
|
+
})), s = r(
|
|
39
39
|
() => _(
|
|
40
|
-
t.operation.parameters?.map((e) =>
|
|
40
|
+
t.operation.parameters?.map((e) => C(e)) ?? [],
|
|
41
41
|
"in"
|
|
42
42
|
)
|
|
43
|
-
),
|
|
43
|
+
), l = Q("All"), x = [
|
|
44
44
|
"Auth",
|
|
45
45
|
"Variables",
|
|
46
46
|
"Cookies",
|
|
@@ -48,27 +48,27 @@ const te = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
|
|
|
48
48
|
"Query",
|
|
49
49
|
"Body"
|
|
50
50
|
], E = {
|
|
51
|
-
All:
|
|
52
|
-
Auth:
|
|
53
|
-
Variables:
|
|
54
|
-
Cookies:
|
|
55
|
-
Headers:
|
|
56
|
-
Query:
|
|
57
|
-
Body:
|
|
58
|
-
}, A =
|
|
59
|
-
const e = /* @__PURE__ */ new Set(["All", ...
|
|
60
|
-
return
|
|
61
|
-
}),
|
|
51
|
+
All: n(),
|
|
52
|
+
Auth: n(),
|
|
53
|
+
Variables: n(),
|
|
54
|
+
Cookies: n(),
|
|
55
|
+
Headers: n(),
|
|
56
|
+
Query: n(),
|
|
57
|
+
Body: n()
|
|
58
|
+
}, A = r(() => {
|
|
59
|
+
const e = /* @__PURE__ */ new Set(["All", ...x]);
|
|
60
|
+
return s.value.path?.length || e.delete("Variables"), b(t.method) || e.delete("Body"), S.value && e.delete("Auth"), [...e];
|
|
61
|
+
}), o = r(
|
|
62
62
|
() => Object.fromEntries(
|
|
63
63
|
A.value.map((e) => [e, E[e]])
|
|
64
64
|
)
|
|
65
|
-
),
|
|
65
|
+
), S = r(
|
|
66
66
|
() => t.layout === "modal" && !t.operation.security && !Object.keys(t.securitySchemes ?? {}).length
|
|
67
|
-
), H =
|
|
68
|
-
|
|
67
|
+
), H = r(() => t.operation.summary ? t.operation.summary : t.path.replace(J.PROTOCOL, "") || "Request Name"), m = (e) => l.value === "All" || l.value === e;
|
|
68
|
+
j(
|
|
69
69
|
() => t.method,
|
|
70
70
|
(e) => {
|
|
71
|
-
|
|
71
|
+
l.value === "Body" && !b(e) && (l.value = "All");
|
|
72
72
|
}
|
|
73
73
|
);
|
|
74
74
|
const P = (e) => {
|
|
@@ -77,11 +77,11 @@ const te = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
|
|
|
77
77
|
meta: a.value,
|
|
78
78
|
payload: { summary: p }
|
|
79
79
|
});
|
|
80
|
-
}, c =
|
|
81
|
-
path:
|
|
82
|
-
cookie:
|
|
83
|
-
header:
|
|
84
|
-
query:
|
|
80
|
+
}, c = r(() => ({
|
|
81
|
+
path: k("path", t.eventBus, a.value),
|
|
82
|
+
cookie: k("cookie", t.eventBus, a.value),
|
|
83
|
+
header: k("header", t.eventBus, a.value),
|
|
84
|
+
query: k("query", t.eventBus, a.value)
|
|
85
85
|
})), I = (e) => {
|
|
86
86
|
t.eventBus.emit("operation:add:requestBody:formRow", {
|
|
87
87
|
contentType: e.contentType,
|
|
@@ -91,133 +91,142 @@ const te = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
|
|
|
91
91
|
value: e.data.value ?? ""
|
|
92
92
|
}
|
|
93
93
|
});
|
|
94
|
-
},
|
|
94
|
+
}, O = (e) => t.eventBus.emit("operation:delete:requestBody:formRow", {
|
|
95
95
|
contentType: e.contentType,
|
|
96
96
|
index: e.index,
|
|
97
97
|
meta: a.value
|
|
98
|
-
}),
|
|
98
|
+
}), N = (e) => t.eventBus.emit("operation:update:requestBody:contentType", {
|
|
99
99
|
payload: { contentType: e.value },
|
|
100
100
|
meta: a.value
|
|
101
|
-
}), U = (e) => t.eventBus.emit(
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
101
|
+
}), U = (e) => t.eventBus.emit(
|
|
102
|
+
"operation:update:requestBody:formRow",
|
|
103
|
+
{
|
|
104
|
+
contentType: e.contentType,
|
|
105
|
+
meta: a.value,
|
|
106
|
+
index: e.index,
|
|
107
|
+
payload: e.data
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
debounceKey: `update:requestBody:formRow-${e.index}-${Object.keys(e.data).join("-")}`
|
|
108
111
|
}
|
|
109
|
-
|
|
112
|
+
), F = (e) => t.eventBus.emit("operation:update:requestBody:value", {
|
|
110
113
|
contentType: e.contentType,
|
|
111
114
|
payload: { value: e.value ?? "" },
|
|
112
115
|
meta: a.value
|
|
113
|
-
}), T =
|
|
114
|
-
return (e, p) => (
|
|
116
|
+
}), T = n();
|
|
117
|
+
return (e, p) => (u(), w(Y, {
|
|
115
118
|
"aria-label": `Request: ${e.operation.summary}`
|
|
116
119
|
}, {
|
|
117
120
|
title: K(() => [
|
|
118
|
-
|
|
119
|
-
e.layout !== "modal" ? (
|
|
121
|
+
g("div", te, [
|
|
122
|
+
e.layout !== "modal" ? (u(), f("label", {
|
|
120
123
|
key: 0,
|
|
121
124
|
class: "pointer-events-auto absolute top-0 left-0 h-full w-full cursor-text opacity-0",
|
|
122
125
|
for: v(T)
|
|
123
|
-
}, null, 8, ae)) :
|
|
124
|
-
e.layout !== "modal" ? (
|
|
126
|
+
}, null, 8, ae)) : V("", !0),
|
|
127
|
+
e.layout !== "modal" ? (u(), f("input", {
|
|
125
128
|
key: 1,
|
|
126
129
|
id: v(T),
|
|
127
130
|
class: "text-c-1 group-hover-input pointer-events-auto relative z-10 -ml-0.5 h-8 w-full rounded pl-1.25 has-[:focus-visible]:outline md:-ml-1.25",
|
|
128
131
|
placeholder: H.value,
|
|
129
132
|
value: e.operation.summary,
|
|
130
133
|
onInput: P
|
|
131
|
-
}, null, 40, oe)) : (
|
|
134
|
+
}, null, 40, oe)) : (u(), f("span", ne, G(e.operation.summary), 1))
|
|
132
135
|
]),
|
|
133
|
-
|
|
134
|
-
modelValue:
|
|
135
|
-
"onUpdate:modelValue": p[0] || (p[0] = (h) =>
|
|
136
|
-
filterIds:
|
|
136
|
+
i(W, {
|
|
137
|
+
modelValue: l.value,
|
|
138
|
+
"onUpdate:modelValue": p[0] || (p[0] = (h) => l.value = h),
|
|
139
|
+
filterIds: o.value,
|
|
137
140
|
filters: A.value
|
|
138
141
|
}, null, 8, ["modelValue", "filterIds", "filters"])
|
|
139
142
|
]),
|
|
140
143
|
default: K(() => [
|
|
141
|
-
|
|
142
|
-
id:
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
operation: e.operation,
|
|
211
|
-
selectedExample: e.exampleKey
|
|
212
|
-
}, null, 8, ["operation", "selectedExample"])) : g("", !0)
|
|
144
|
+
g("div", {
|
|
145
|
+
id: o.value.All,
|
|
146
|
+
class: "request-section-content custom-scroll relative flex flex-1 flex-col",
|
|
147
|
+
role: l.value === "All" ? "tabpanel" : "none"
|
|
148
|
+
}, [
|
|
149
|
+
d(i(v(ee), {
|
|
150
|
+
id: o.value.Auth,
|
|
151
|
+
environment: e.environment,
|
|
152
|
+
eventBus: e.eventBus,
|
|
153
|
+
meta: e.authMeta,
|
|
154
|
+
security: e.security,
|
|
155
|
+
securitySchemes: e.securitySchemes,
|
|
156
|
+
selectedSecurity: e.selectedSecurity,
|
|
157
|
+
server: e.server,
|
|
158
|
+
title: "Authorization"
|
|
159
|
+
}, null, 8, ["id", "environment", "eventBus", "meta", "security", "securitySchemes", "selectedSecurity", "server"]), [
|
|
160
|
+
[y, m("Auth") && !S.value]
|
|
161
|
+
]),
|
|
162
|
+
d(i(R, B({
|
|
163
|
+
id: o.value.Variables,
|
|
164
|
+
environment: e.environment,
|
|
165
|
+
exampleKey: e.exampleKey,
|
|
166
|
+
parameters: s.value.path ?? [],
|
|
167
|
+
showAddRowPlaceholder: !1,
|
|
168
|
+
title: "Variables"
|
|
169
|
+
}, q(c.value.path)), null, 16, ["id", "environment", "exampleKey", "parameters"]), [
|
|
170
|
+
[y, m("Variables") && s.value.path?.length]
|
|
171
|
+
]),
|
|
172
|
+
d(i(R, B({
|
|
173
|
+
id: o.value.Cookies,
|
|
174
|
+
environment: e.environment,
|
|
175
|
+
exampleKey: e.exampleKey,
|
|
176
|
+
parameters: s.value.cookie ?? [],
|
|
177
|
+
showAddRowPlaceholder: !0,
|
|
178
|
+
title: "Cookies"
|
|
179
|
+
}, q(c.value.cookie)), null, 16, ["id", "environment", "exampleKey", "parameters"]), [
|
|
180
|
+
[y, m("Cookies")]
|
|
181
|
+
]),
|
|
182
|
+
d(i(R, B({
|
|
183
|
+
id: o.value.Headers,
|
|
184
|
+
environment: e.environment,
|
|
185
|
+
exampleKey: e.exampleKey,
|
|
186
|
+
parameters: s.value.header ?? [],
|
|
187
|
+
title: "Headers"
|
|
188
|
+
}, q(c.value.header)), null, 16, ["id", "environment", "exampleKey", "parameters"]), [
|
|
189
|
+
[y, m("Headers")]
|
|
190
|
+
]),
|
|
191
|
+
d(i(R, B({
|
|
192
|
+
id: o.value.Query,
|
|
193
|
+
environment: e.environment,
|
|
194
|
+
exampleKey: e.exampleKey,
|
|
195
|
+
parameters: s.value.query ?? [],
|
|
196
|
+
title: "Query Parameters"
|
|
197
|
+
}, q(c.value.query)), null, 16, ["id", "environment", "exampleKey", "parameters"]), [
|
|
198
|
+
[y, m("Query")]
|
|
199
|
+
]),
|
|
200
|
+
d(i(Z, {
|
|
201
|
+
id: o.value.Body,
|
|
202
|
+
environment: e.environment,
|
|
203
|
+
exampleKey: e.exampleKey,
|
|
204
|
+
requestBody: v(C)(e.operation.requestBody),
|
|
205
|
+
title: "Request Body",
|
|
206
|
+
"onAdd:formRow": I,
|
|
207
|
+
"onDelete:fromRow": O,
|
|
208
|
+
"onUpdate:contentType": N,
|
|
209
|
+
"onUpdate:formRow": U,
|
|
210
|
+
"onUpdate:value": F
|
|
211
|
+
}, null, 8, ["id", "environment", "exampleKey", "requestBody"]), [
|
|
212
|
+
[y, m("Body") && v(b)(e.method)]
|
|
213
213
|
]),
|
|
214
|
-
|
|
215
|
-
|
|
214
|
+
(u(!0), f(M, null, z(e.plugins, (h, $) => (u(), w(v(X), { key: $ }, {
|
|
215
|
+
default: K(() => [
|
|
216
|
+
h?.components?.request ? (u(), w(L(h.components.request), {
|
|
217
|
+
key: 0,
|
|
218
|
+
operation: e.operation,
|
|
219
|
+
selectedExample: e.exampleKey
|
|
220
|
+
}, null, 8, ["operation", "selectedExample"])) : V("", !0)
|
|
221
|
+
]),
|
|
222
|
+
_: 2
|
|
223
|
+
}, 1024))), 128))
|
|
224
|
+
], 8, le)
|
|
216
225
|
]),
|
|
217
226
|
_: 1
|
|
218
227
|
}, 8, ["aria-label"]));
|
|
219
228
|
}
|
|
220
229
|
});
|
|
221
230
|
export {
|
|
222
|
-
|
|
231
|
+
Be as default
|
|
223
232
|
};
|
|
@@ -30,6 +30,7 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
30
30
|
data: Partial<{
|
|
31
31
|
key: string;
|
|
32
32
|
value: string | File | null;
|
|
33
|
+
isDisabled: boolean;
|
|
33
34
|
}>;
|
|
34
35
|
contentType: string;
|
|
35
36
|
}) => any;
|
|
@@ -57,6 +58,7 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
57
58
|
data: Partial<{
|
|
58
59
|
key: string;
|
|
59
60
|
value: string | File | null;
|
|
61
|
+
isDisabled: boolean;
|
|
60
62
|
}>;
|
|
61
63
|
contentType: string;
|
|
62
64
|
}) => any) | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestBody.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/components/RequestBody.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestBody.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/components/RequestBody.vue"],"names":[],"mappings":"AA4VA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8DAA8D,CAAA;AAgBrG,KAAK,WAAW,GAAG;IACjB,mBAAmB;IACnB,WAAW,CAAC,EAAE,iBAAiB,CAAA;IAC/B,+DAA+D;IAC/D,UAAU,EAAE,MAAM,CAAA;IAClB,oBAAoB;IACpB,KAAK,EAAE,MAAM,CAAA;IACb,2BAA2B;IAC3B,WAAW,EAAE,kBAAkB,CAAA;CAChC,CAAC;;;eAI4C,MAAM;;;gBAI7B,MAAM,GAAG,IAAI;qBAAe,MAAM;;;cAM7C,OAAO,CAAC;YAAE,GAAG,EAAE,MAAM,CAAC;YAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;SAAE,CAAC;qBACxC,MAAM;;;eAMZ,MAAM;cACP,OAAO,CAAC;YACZ,GAAG,EAAE,MAAM,CAAA;YACX,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAA;YAC3B,UAAU,EAAE,OAAO,CAAA;SACpB,CAAC;qBACW,MAAM;;;eAGiB,MAAM;qBAAe,MAAM;;;;eA1BvB,MAAM;;;gBAI7B,MAAM,GAAG,IAAI;qBAAe,MAAM;;;cAM7C,OAAO,CAAC;YAAE,GAAG,EAAE,MAAM,CAAC;YAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;SAAE,CAAC;qBACxC,MAAM;;;eAMZ,MAAM;cACP,OAAO,CAAC;YACZ,GAAG,EAAE,MAAM,CAAA;YACX,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAA;YAC3B,UAAU,EAAE,OAAO,CAAA;SACpB,CAAC;qBACW,MAAM;;;eAGiB,MAAM;qBAAe,MAAM;;;AA6jBrE,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./RequestBody.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-a0dd1ca2"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as D, computed as
|
|
1
|
+
import { defineComponent as D, computed as m, createBlock as v, openBlock as i, unref as n, withCtx as u, createVNode as d, createElementVNode as f, toDisplayString as c, createElementBlock as w, Fragment as q, createTextVNode as g } from "vue";
|
|
2
2
|
import { ScalarListbox as O, ScalarButton as x, ScalarIcon as k } from "@scalar/components";
|
|
3
3
|
import { unpackProxyObject as B } from "@scalar/workspace-store/helpers/unpack-proxy";
|
|
4
4
|
import F from "./RequestTable.vue.js";
|
|
@@ -25,7 +25,7 @@ const K = {
|
|
|
25
25
|
environment: {}
|
|
26
26
|
},
|
|
27
27
|
emits: ["update:contentType", "update:value", "add:formRow", "update:formRow", "delete:fromRow"],
|
|
28
|
-
setup(
|
|
28
|
+
setup(s, { emit: U }) {
|
|
29
29
|
const a = U, V = {
|
|
30
30
|
"application/json": "json",
|
|
31
31
|
"application/xml": "xml",
|
|
@@ -40,10 +40,10 @@ const K = {
|
|
|
40
40
|
"application/edn": "EDN",
|
|
41
41
|
other: "Other",
|
|
42
42
|
none: "None"
|
|
43
|
-
}, o =
|
|
43
|
+
}, o = m(() => s.requestBody?.["x-scalar-selected-content-type"]?.[s.exampleKey] ?? Object.keys(s.requestBody?.content ?? {})[0] ?? "other"), y = Object.entries(j).map(([l, e]) => ({
|
|
44
44
|
id: l,
|
|
45
45
|
label: e
|
|
46
|
-
})), b =
|
|
46
|
+
})), b = m({
|
|
47
47
|
get: () => y.find(
|
|
48
48
|
(e) => e.id === o.value
|
|
49
49
|
) ?? y.at(-1),
|
|
@@ -62,25 +62,26 @@ const K = {
|
|
|
62
62
|
});
|
|
63
63
|
e();
|
|
64
64
|
}
|
|
65
|
-
const p =
|
|
66
|
-
() =>
|
|
67
|
-
), C =
|
|
65
|
+
const p = m(
|
|
66
|
+
() => s.requestBody && S(s.requestBody, o.value, s.exampleKey)
|
|
67
|
+
), C = m(() => {
|
|
68
68
|
if (!p.value)
|
|
69
69
|
return "";
|
|
70
70
|
const l = p.value.value;
|
|
71
71
|
return typeof l == "string" ? l : JSON.stringify(l, null, 2);
|
|
72
|
-
}), T =
|
|
72
|
+
}), T = m(() => p.value ? Array.isArray(p.value.value) ? p.value.value : [] : []);
|
|
73
73
|
return (l, e) => (i(), v(n(A), null, {
|
|
74
74
|
title: u(() => [
|
|
75
75
|
g(c(l.title), 1)
|
|
76
76
|
]),
|
|
77
77
|
default: u(() => [
|
|
78
78
|
d(n(E), {
|
|
79
|
+
class: "border-b",
|
|
79
80
|
columns: [""],
|
|
80
81
|
presentational: ""
|
|
81
82
|
}, {
|
|
82
83
|
default: u(() => [
|
|
83
|
-
d(n(L), { class: "relative col-span-full flex h-8 cursor-pointer items-center justify-between !p-0" }, {
|
|
84
|
+
d(n(L), { class: "relative col-span-full flex h-8 cursor-pointer items-center justify-between border-r-0 !p-0" }, {
|
|
84
85
|
default: u(() => [
|
|
85
86
|
d(n(O), {
|
|
86
87
|
modelValue: b.value,
|
|
@@ -170,7 +171,7 @@ const K = {
|
|
|
170
171
|
contentType: o.value,
|
|
171
172
|
index: t,
|
|
172
173
|
data: {
|
|
173
|
-
value:
|
|
174
|
+
value: void 0
|
|
174
175
|
}
|
|
175
176
|
})),
|
|
176
177
|
onUpdateRow: e[6] || (e[6] = (t, r) => a("update:formRow", {
|
|
@@ -23,7 +23,7 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
23
23
|
payload: Partial<{
|
|
24
24
|
key: string;
|
|
25
25
|
value: string;
|
|
26
|
-
|
|
26
|
+
isDisabled: boolean;
|
|
27
27
|
}>;
|
|
28
28
|
}) => any;
|
|
29
29
|
deleteAll: () => any;
|
|
@@ -40,7 +40,7 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
40
40
|
payload: Partial<{
|
|
41
41
|
key: string;
|
|
42
42
|
value: string;
|
|
43
|
-
|
|
43
|
+
isDisabled: boolean;
|
|
44
44
|
}>;
|
|
45
45
|
}) => any) | undefined;
|
|
46
46
|
onDeleteAll?: (() => any) | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestParams.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/components/RequestParams.vue"],"names":[],"mappings":"AAsGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8DAA8D,CAAA;AAUnG,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,eAAe,EAAE,CAAA;IAC7B,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;CAChC,CAAC;;;eAmBgC,MAAM;;;aARH,MAAM;eAAS,MAAM;;;eAI7C,MAAM;iBACJ,OAAO,CAAC;YAAE,GAAG,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAC;YAAC,
|
|
1
|
+
{"version":3,"file":"RequestParams.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/components/RequestParams.vue"],"names":[],"mappings":"AAsGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8DAA8D,CAAA;AAUnG,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,eAAe,EAAE,CAAA;IAC7B,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;CAChC,CAAC;;;eAmBgC,MAAM;;;aARH,MAAM;eAAS,MAAM;;;eAI7C,MAAM;iBACJ,OAAO,CAAC;YAAE,GAAG,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAC;YAAC,UAAU,EAAE,OAAO,CAAA;SAAE,CAAC;;;;;eAGzC,MAAM;;;aARH,MAAM;eAAS,MAAM;;;eAI7C,MAAM;iBACJ,OAAO,CAAC;YAAE,GAAG,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAC;YAAC,UAAU,EAAE,OAAO,CAAA;SAAE,CAAC;;;;AAqL3E,wBAOG"}
|
|
@@ -15,12 +15,11 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
15
15
|
updateRow: (index: number, payload: Partial<{
|
|
16
16
|
key: string;
|
|
17
17
|
value: string;
|
|
18
|
-
|
|
18
|
+
isDisabled: boolean;
|
|
19
19
|
}>) => any;
|
|
20
20
|
addRow: (payload: Partial<{
|
|
21
21
|
key: string;
|
|
22
22
|
value: string;
|
|
23
|
-
isEnabled: boolean;
|
|
24
23
|
}>) => any;
|
|
25
24
|
deleteRow: (index: number) => any;
|
|
26
25
|
uploadFile: (index?: number | undefined) => any;
|
|
@@ -29,12 +28,11 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
29
28
|
onUpdateRow?: ((index: number, payload: Partial<{
|
|
30
29
|
key: string;
|
|
31
30
|
value: string;
|
|
32
|
-
|
|
31
|
+
isDisabled: boolean;
|
|
33
32
|
}>) => any) | undefined;
|
|
34
33
|
onAddRow?: ((payload: Partial<{
|
|
35
34
|
key: string;
|
|
36
35
|
value: string;
|
|
37
|
-
isEnabled: boolean;
|
|
38
36
|
}>) => any) | undefined;
|
|
39
37
|
onDeleteRow?: ((index: number) => any) | undefined;
|
|
40
38
|
onUploadFile?: ((index?: number | undefined) => any) | undefined;
|
|
@@ -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":"AAqKA,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,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,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;;;aAmB0B,MAAM;eAAS,MAAM;oBAAc,OAAO;;;aAJ9B,MAAM;eAAS,MAAM;;;;;;;aAIjC,MAAM;eAAS,MAAM;oBAAc,OAAO;;;aAJ9B,MAAM;eAAS,MAAM;;;;;;AA+N7D,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./RequestTable.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1434cda7"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -21,7 +21,7 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
21
21
|
updateRow: (payload: Partial<{
|
|
22
22
|
key: string;
|
|
23
23
|
value: string;
|
|
24
|
-
|
|
24
|
+
isDisabled: boolean;
|
|
25
25
|
}>) => any;
|
|
26
26
|
deleteRow: () => any;
|
|
27
27
|
uploadFile: () => any;
|
|
@@ -30,7 +30,7 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
30
30
|
onUpdateRow?: ((payload: Partial<{
|
|
31
31
|
key: string;
|
|
32
32
|
value: string;
|
|
33
|
-
|
|
33
|
+
isDisabled: boolean;
|
|
34
34
|
}>) => any) | undefined;
|
|
35
35
|
onDeleteRow?: (() => any) | undefined;
|
|
36
36
|
onUploadFile?: (() => any) | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestTableRow.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/components/RequestTableRow.vue"],"names":[],"mappings":"AA2NA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAchG,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,QAAQ,CAAA;IACd,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,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;AAqBF,MAAM,MAAM,QAAQ,GAAG;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAA;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAA;;;aAf2B,MAAM;eAAS,MAAM;
|
|
1
|
+
{"version":3,"file":"RequestTableRow.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/components/RequestTableRow.vue"],"names":[],"mappings":"AA2NA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAchG,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,QAAQ,CAAA;IACd,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,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;AAqBF,MAAM,MAAM,QAAQ,GAAG;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAA;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAA;;;aAf2B,MAAM;eAAS,MAAM;oBAAc,OAAO;;;;;;;aAA1C,MAAM;eAAS,MAAM;oBAAc,OAAO;;;;;;AAuetE,wBAOG"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as D, computed as r, resolveComponent as U, createBlock as u, openBlock as s, unref as l, normalizeClass as $, withCtx as n, createVNode as d, createCommentVNode as b, createElementVNode as m, createElementBlock as v, Fragment as q, toDisplayString as I } from "vue";
|
|
2
2
|
import { ScalarTooltip as S, ScalarIcon as h, ScalarButton as y } from "@scalar/components";
|
|
3
|
-
import { ScalarIconTrash as
|
|
3
|
+
import { ScalarIconTrash as j } from "@scalar/icons";
|
|
4
4
|
import { unpackProxyObject as c } from "@scalar/workspace-store/helpers/unpack-proxy";
|
|
5
5
|
import { getFileName as k } from "../helpers/files.js";
|
|
6
|
-
import { validateParameter as
|
|
6
|
+
import { validateParameter as E } from "../helpers/validate-parameter.js";
|
|
7
7
|
import N from "./RequestTableTooltip.vue.js";
|
|
8
8
|
import O from "../../../components/data-table/DataTableRow.vue.js";
|
|
9
9
|
import P from "../../../components/data-table/DataTableCheckbox.vue.js";
|
|
@@ -12,7 +12,7 @@ import w from "../../../components/code-input/CodeInput.vue.js";
|
|
|
12
12
|
const G = { class: "text-c-2 filemask flex w-full max-w-[100%] items-center justify-center overflow-hidden p-1" }, K = {
|
|
13
13
|
key: 1,
|
|
14
14
|
class: "p-0.5"
|
|
15
|
-
}, ee = /* @__PURE__ */
|
|
15
|
+
}, ee = /* @__PURE__ */ D({
|
|
16
16
|
__name: "RequestTableRow",
|
|
17
17
|
props: {
|
|
18
18
|
data: {},
|
|
@@ -32,7 +32,7 @@ const G = { class: "text-c-2 filemask flex w-full max-w-[100%] items-center just
|
|
|
32
32
|
), F = r(
|
|
33
33
|
() => t.data.schema && "type" in t.data.schema ? t.data.schema.type : void 0
|
|
34
34
|
), p = r(
|
|
35
|
-
() =>
|
|
35
|
+
() => E(t.data.schema, t.data.value)
|
|
36
36
|
), x = (e) => e instanceof File, T = r({
|
|
37
37
|
get: () => {
|
|
38
38
|
const e = c(t.data.value);
|
|
@@ -43,10 +43,10 @@ const G = { class: "text-c-2 filemask flex w-full max-w-[100%] items-center just
|
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
45
|
return (e, a) => {
|
|
46
|
-
const z =
|
|
46
|
+
const z = U("RouterLink");
|
|
47
47
|
return s(), u(l(O), {
|
|
48
48
|
id: e.data.name,
|
|
49
|
-
class:
|
|
49
|
+
class: $({
|
|
50
50
|
alert: p.value.ok === !1,
|
|
51
51
|
error: p.value.ok === !1 && e.invalidParams?.has(e.data.name)
|
|
52
52
|
})
|
|
@@ -80,7 +80,7 @@ const G = { class: "text-c-2 filemask flex w-full max-w-[100%] items-center just
|
|
|
80
80
|
class: "!border-r",
|
|
81
81
|
disabled: e.hasCheckboxDisabled ?? !1,
|
|
82
82
|
modelValue: !e.data.isDisabled,
|
|
83
|
-
"onUpdate:modelValue": a[0] || (a[0] = (o) => i("updateRow", {
|
|
83
|
+
"onUpdate:modelValue": a[0] || (a[0] = (o) => i("updateRow", { isDisabled: !o }))
|
|
84
84
|
}, null, 8, ["disabled", "modelValue"])),
|
|
85
85
|
d(l(f), null, {
|
|
86
86
|
default: n(() => [
|
|
@@ -130,7 +130,7 @@ const G = { class: "text-c-2 filemask flex w-full max-w-[100%] items-center just
|
|
|
130
130
|
onClick: a[3] || (a[3] = (o) => i("deleteRow"))
|
|
131
131
|
}, {
|
|
132
132
|
default: n(() => [
|
|
133
|
-
d(l(
|
|
133
|
+
d(l(j), { class: "size-3.5" })
|
|
134
134
|
]),
|
|
135
135
|
_: 1
|
|
136
136
|
})) : b("", !0),
|
|
@@ -150,7 +150,7 @@ const G = { class: "text-c-2 filemask flex w-full max-w-[100%] items-center just
|
|
|
150
150
|
class: "group/upload flex items-center justify-center whitespace-nowrap"
|
|
151
151
|
}, {
|
|
152
152
|
default: n(() => [
|
|
153
|
-
x(l(c)(e.data.value)) ? (s(), v(
|
|
153
|
+
x(l(c)(e.data.value)) ? (s(), v(q, { key: 0 }, [
|
|
154
154
|
m("div", G, [
|
|
155
155
|
m("span", null, I(l(k)(l(c)(e.data.value))), 1)
|
|
156
156
|
]),
|