@scalar/api-reference 1.25.52 → 1.25.53
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 +32 -0
- package/README.md +3 -2
- package/dist/browser/standalone.js +12953 -12838
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/Anchor/Anchor.vue.d.ts.map +1 -1
- package/dist/components/Anchor/Anchor.vue.js +1 -1
- package/dist/components/Anchor/Anchor.vue2.js +9 -9
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +2 -2
- package/dist/components/ApiReferenceLayout.vue2.js +26 -31
- package/dist/components/Card/CardTab.vue.d.ts.map +1 -1
- package/dist/components/Card/CardTab.vue.js +2 -2
- package/dist/components/Card/CardTab.vue2.js +3 -3
- package/dist/components/Content/Operation/ParameterItem.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/ParameterItem.vue.js +4 -4
- package/dist/components/Content/Operation/ParameterItem.vue2.js +72 -54
- package/dist/components/Content/Operation/TestRequestButton.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/TestRequestButton.vue.js +2 -2
- package/dist/components/Content/Operation/TestRequestButton.vue2.js +22 -15
- package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/Schema.vue.js +3 -3
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
- package/dist/components/Content/Schema/SchemaProperty.vue2.js +114 -88
- package/dist/components/Content/Tag/Endpoints.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/Endpoints.vue.js +2 -2
- package/dist/components/Content/Tag/Endpoints.vue2.js +79 -64
- package/dist/components/Content/Tag/Tag.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/Tag.vue.js +3 -3
- package/dist/components/Content/Tag/Tag.vue2.js +34 -21
- package/dist/components/Section/CompactSection.vue.d.ts.map +1 -1
- package/dist/components/Section/CompactSection.vue.js +1 -1
- package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts.map +1 -1
- package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts +3 -9
- package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/features/ApiClientModal/ApiClientModal.vue.js +27 -33
- package/dist/features/ApiClientModal/useApiClient.d.ts +140 -12
- package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
- package/dist/features/BaseUrl/ServerUrlSelect.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/ServerUrlSelect.vue.js +4 -4
- package/dist/features/BaseUrl/ServerUrlSelect.vue2.js +11 -9
- package/dist/features/ExampleRequest/ExamplePicker.vue.d.ts.map +1 -1
- package/dist/features/ExampleRequest/ExamplePicker.vue.js +3 -3
- package/dist/features/ExampleRequest/ExamplePicker.vue2.js +28 -21
- package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue.js +1 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue2.js +139 -119
- package/dist/features/ExampleRequest/TextSelect.vue.d.ts +2 -0
- package/dist/features/ExampleRequest/TextSelect.vue.d.ts.map +1 -1
- package/dist/features/ExampleRequest/TextSelect.vue.js +22 -19
- package/dist/features/ExampleResponses/ExampleResponse.vue.js +3 -3
- package/dist/features/ExampleResponses/ExampleResponses.vue.d.ts.map +1 -1
- package/dist/features/ExampleResponses/ExampleResponses.vue.js +1 -1
- package/dist/features/ExampleResponses/ExampleResponses.vue2.js +88 -81
- package/dist/index.js +1 -1
- package/dist/legacy/components/SecuritySchemeSelector.vue.d.ts.map +1 -1
- package/dist/legacy/components/SecuritySchemeSelector.vue.js +3 -3
- package/dist/legacy/components/SecuritySchemeSelector.vue2.js +30 -25
- package/dist/style.css +1 -1
- package/package.json +10 -9
|
@@ -1,121 +1,122 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarCodeBlock as
|
|
3
|
-
import { createHash as
|
|
4
|
-
import { getRequestFromOperation as
|
|
5
|
-
import { asyncComputed as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
1
|
+
import { defineComponent as Y, ref as O, useId as D, computed as d, watch as z, inject as G, onServerPrefetch as Q, useSSRContext as W, unref as r, openBlock as m, createBlock as g, withCtx as a, createVNode as l, createElementBlock as K, Fragment as R, createTextVNode as f, toDisplayString as S, createElementVNode as x, renderSlot as y, createCommentVNode as C } from "vue";
|
|
2
|
+
import { ScalarCodeBlock as X } from "@scalar/components";
|
|
3
|
+
import { createHash as Z, ssrState as ee } from "@scalar/oas-utils/helpers";
|
|
4
|
+
import { getRequestFromOperation as te } from "@scalar/oas-utils/spec-getters";
|
|
5
|
+
import { asyncComputed as oe } from "@vueuse/core";
|
|
6
|
+
import B from "../../components/ScreenReader.vue.js";
|
|
7
|
+
import re from "./ExamplePicker.vue.js";
|
|
8
|
+
import ae from "./TextSelect.vue.js";
|
|
8
9
|
/* empty css */
|
|
9
|
-
import { GLOBAL_SECURITY_SYMBOL as
|
|
10
|
+
import { GLOBAL_SECURITY_SYMBOL as le } from "../../helpers/provideSymbols.js";
|
|
10
11
|
import N from "../../components/Card/Card.vue.js";
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import { getSecretCredentialsFromAuthentication as
|
|
15
|
-
import
|
|
16
|
-
import { getExampleCode as
|
|
17
|
-
import { useHttpClientStore as
|
|
18
|
-
import { useServerStore as
|
|
19
|
-
import { useAuthenticationStore as
|
|
20
|
-
import { getHarRequest as
|
|
21
|
-
import { getUrlFromServerState as
|
|
22
|
-
const
|
|
12
|
+
import se from "../../components/Card/CardHeader.vue.js";
|
|
13
|
+
import T from "../../components/HttpMethod/HttpMethod.vue.js";
|
|
14
|
+
import j from "../../components/Card/CardContent.vue.js";
|
|
15
|
+
import { getSecretCredentialsFromAuthentication as ne, getRequestFromAuthentication as ie } from "../../legacy/helpers/getRequestFromAuthentication.js";
|
|
16
|
+
import ue from "../../components/Card/CardFooter.vue.js";
|
|
17
|
+
import { getExampleCode as ce } from "../../helpers/getExampleCode.js";
|
|
18
|
+
import { useHttpClientStore as me } from "../../stores/useHttpClientStore.js";
|
|
19
|
+
import { useServerStore as pe } from "../../legacy/stores/useServerStore.js";
|
|
20
|
+
import { useAuthenticationStore as de } from "../../legacy/stores/useAuthenticationStore.js";
|
|
21
|
+
import { getHarRequest as fe } from "../../helpers/getHarRequest.js";
|
|
22
|
+
import { getUrlFromServerState as ye } from "../../legacy/helpers/getUrlFromServerState.js";
|
|
23
|
+
const ve = ["id"], he = ["id"], ge = {
|
|
23
24
|
key: 0,
|
|
24
25
|
class: "request-card-footer-addon"
|
|
25
|
-
},
|
|
26
|
+
}, Ke = { class: "request-header" }, Le = /* @__PURE__ */ Y({
|
|
26
27
|
__name: "ExampleRequest",
|
|
27
28
|
props: {
|
|
28
29
|
operation: {},
|
|
29
30
|
fallback: { type: Boolean }
|
|
30
31
|
},
|
|
31
|
-
setup(
|
|
32
|
-
const
|
|
33
|
-
|
|
34
|
-
)}`,
|
|
35
|
-
httpClient:
|
|
36
|
-
setHttpClient:
|
|
37
|
-
availableTargets:
|
|
38
|
-
httpTargetTitle:
|
|
39
|
-
httpClientTitle:
|
|
40
|
-
} =
|
|
32
|
+
setup(F) {
|
|
33
|
+
const n = F, k = `components-Content-Operation-Example-Request${Z(
|
|
34
|
+
n.operation.path + n.operation.httpVerb + n.operation.operationId
|
|
35
|
+
)}`, E = O(), {
|
|
36
|
+
httpClient: i,
|
|
37
|
+
setHttpClient: w,
|
|
38
|
+
availableTargets: b,
|
|
39
|
+
httpTargetTitle: A,
|
|
40
|
+
httpClientTitle: J
|
|
41
|
+
} = me(), { server: U } = pe(), { authentication: q } = de(), v = D(), c = d(() => {
|
|
41
42
|
var t;
|
|
42
43
|
const e = ["x-custom-examples", "x-codeSamples", "x-code-samples"];
|
|
43
44
|
for (const o of e)
|
|
44
|
-
if ((t =
|
|
45
|
-
return
|
|
45
|
+
if ((t = n.operation.information) != null && t[o])
|
|
46
|
+
return n.operation.information[o] ?? [];
|
|
46
47
|
return [];
|
|
47
|
-
}),
|
|
48
|
+
}), s = O(
|
|
48
49
|
// Default to first custom example
|
|
49
|
-
|
|
50
|
+
c.value.length ? {
|
|
50
51
|
targetKey: "customExamples",
|
|
51
52
|
clientKey: 0
|
|
52
53
|
} : (
|
|
53
54
|
// Otherwise use the globally selected HTTP client
|
|
54
55
|
{
|
|
55
|
-
targetKey:
|
|
56
|
-
clientKey:
|
|
56
|
+
targetKey: i.targetKey,
|
|
57
|
+
clientKey: i.clientKey
|
|
57
58
|
}
|
|
58
59
|
)
|
|
59
60
|
);
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
targetKey:
|
|
63
|
-
clientKey:
|
|
61
|
+
z(i, () => {
|
|
62
|
+
s.value = {
|
|
63
|
+
targetKey: i.targetKey,
|
|
64
|
+
clientKey: i.clientKey
|
|
64
65
|
};
|
|
65
66
|
});
|
|
66
|
-
const
|
|
67
|
+
const _ = d(
|
|
67
68
|
() => {
|
|
68
|
-
var e, t, o,
|
|
69
|
+
var e, t, o, u;
|
|
69
70
|
return Object.keys(
|
|
70
|
-
((
|
|
71
|
+
((u = (o = (t = (e = n.operation.information) == null ? void 0 : e.requestBody) == null ? void 0 : t.content) == null ? void 0 : o["application/json"]) == null ? void 0 : u.examples) ?? {}
|
|
71
72
|
).length > 1;
|
|
72
73
|
}
|
|
73
|
-
),
|
|
74
|
-
async function
|
|
75
|
-
var
|
|
76
|
-
if (
|
|
77
|
-
return ((
|
|
78
|
-
const e =
|
|
74
|
+
), h = G(le);
|
|
75
|
+
async function V() {
|
|
76
|
+
var u, p;
|
|
77
|
+
if (s.value.targetKey === "customExamples")
|
|
78
|
+
return ((u = c.value[s.value.clientKey]) == null ? void 0 : u.source) ?? "";
|
|
79
|
+
const e = fe(
|
|
79
80
|
{
|
|
80
|
-
url:
|
|
81
|
+
url: ye(U)
|
|
81
82
|
},
|
|
82
|
-
|
|
83
|
-
|
|
83
|
+
te(
|
|
84
|
+
n.operation,
|
|
84
85
|
{
|
|
85
86
|
replaceVariables: !0
|
|
86
87
|
},
|
|
87
|
-
|
|
88
|
+
E.value
|
|
88
89
|
),
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
((p =
|
|
90
|
+
ie(
|
|
91
|
+
q,
|
|
92
|
+
((p = n.operation.information) == null ? void 0 : p.security) ?? (h == null ? void 0 : h())
|
|
92
93
|
)
|
|
93
|
-
), t =
|
|
94
|
-
return await
|
|
94
|
+
), t = i.clientKey, o = i.targetKey;
|
|
95
|
+
return await ce(e, o, t) ?? "";
|
|
95
96
|
}
|
|
96
|
-
const
|
|
97
|
+
const $ = oe(async () => {
|
|
97
98
|
try {
|
|
98
|
-
return await
|
|
99
|
+
return await V();
|
|
99
100
|
} catch (e) {
|
|
100
101
|
return console.error("[generateSnippet]", e), "";
|
|
101
102
|
}
|
|
102
|
-
},
|
|
103
|
-
|
|
104
|
-
const e =
|
|
105
|
-
e.payload.data[
|
|
103
|
+
}, ee[k] ?? "");
|
|
104
|
+
Q(async () => {
|
|
105
|
+
const e = W();
|
|
106
|
+
e.payload.data[k] = await V();
|
|
106
107
|
});
|
|
107
|
-
const
|
|
108
|
+
const I = d(() => {
|
|
108
109
|
var t, o;
|
|
109
110
|
const e = (
|
|
110
111
|
// Specified language
|
|
111
|
-
((t =
|
|
112
|
+
((t = s.value) == null ? void 0 : t.targetKey) === "customExamples" ? ((o = c.value[s.value.clientKey]) == null ? void 0 : o.lang) ?? "plaintext" : (
|
|
112
113
|
// Or language for the globally selected HTTP client
|
|
113
|
-
|
|
114
|
+
i.targetKey
|
|
114
115
|
)
|
|
115
116
|
);
|
|
116
|
-
return e === "shell" &&
|
|
117
|
-
}),
|
|
118
|
-
const e =
|
|
117
|
+
return e === "shell" && $.value.includes("curl") ? "curl" : e === "Objective-C" ? "objc" : e;
|
|
118
|
+
}), L = d(() => {
|
|
119
|
+
const e = b.value.map((t) => ({
|
|
119
120
|
value: t.key,
|
|
120
121
|
label: t.title,
|
|
121
122
|
options: t.clients.map((o) => ({
|
|
@@ -126,10 +127,10 @@ const de = { class: "request-header" }, fe = { class: "code-snippet" }, ye = {
|
|
|
126
127
|
label: o.title
|
|
127
128
|
}))
|
|
128
129
|
}));
|
|
129
|
-
return
|
|
130
|
+
return c.value.length && e.unshift({
|
|
130
131
|
value: "customExamples",
|
|
131
132
|
label: "Examples",
|
|
132
|
-
options:
|
|
133
|
+
options: c.value.map((t, o) => ({
|
|
133
134
|
value: JSON.stringify({
|
|
134
135
|
targetKey: "customExamples",
|
|
135
136
|
clientKey: o
|
|
@@ -138,101 +139,120 @@ const de = { class: "request-header" }, fe = { class: "code-snippet" }, ye = {
|
|
|
138
139
|
}))
|
|
139
140
|
}), e;
|
|
140
141
|
});
|
|
141
|
-
function
|
|
142
|
+
function P(e) {
|
|
142
143
|
const t = JSON.parse(e);
|
|
143
|
-
t.targetKey === "customExamples" ?
|
|
144
|
+
t.targetKey === "customExamples" ? s.value = t : w(t);
|
|
144
145
|
}
|
|
145
|
-
return (e, t) =>
|
|
146
|
+
return (e, t) => r(b).length || c.value.length ? (m(), g(r(N), {
|
|
146
147
|
key: 0,
|
|
147
148
|
class: "dark-mode"
|
|
148
149
|
}, {
|
|
149
|
-
default:
|
|
150
|
-
|
|
151
|
-
actions:
|
|
152
|
-
|
|
150
|
+
default: a(() => [
|
|
151
|
+
l(r(se), { muted: "" }, {
|
|
152
|
+
actions: a(() => [
|
|
153
|
+
l(ae, {
|
|
153
154
|
class: "request-client-picker",
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
155
|
+
controls: `${r(v)}-example`,
|
|
156
|
+
modelValue: JSON.stringify(s.value),
|
|
157
|
+
options: L.value,
|
|
158
|
+
"onUpdate:modelValue": P
|
|
157
159
|
}, {
|
|
158
|
-
default:
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
160
|
+
default: a(() => [
|
|
161
|
+
s.value.targetKey === "customExamples" ? (m(), K(R, { key: 0 }, [
|
|
162
|
+
l(B, null, {
|
|
163
|
+
default: a(() => t[1] || (t[1] = [
|
|
164
|
+
f("Selected Example:")
|
|
165
|
+
])),
|
|
166
|
+
_: 1
|
|
167
|
+
}),
|
|
168
|
+
f(" " + S(c.value[s.value.clientKey].label ?? "Example"), 1)
|
|
169
|
+
], 64)) : (m(), K(R, { key: 1 }, [
|
|
170
|
+
l(B, null, {
|
|
171
|
+
default: a(() => t[2] || (t[2] = [
|
|
172
|
+
f("Selected HTTP client:")
|
|
173
|
+
])),
|
|
174
|
+
_: 1
|
|
175
|
+
}),
|
|
176
|
+
f(" " + S(r(A)) + " " + S(r(J)), 1)
|
|
163
177
|
], 64))
|
|
164
178
|
]),
|
|
165
179
|
_: 1
|
|
166
|
-
}, 8, ["modelValue", "options"])
|
|
180
|
+
}, 8, ["controls", "modelValue", "options"])
|
|
167
181
|
]),
|
|
168
|
-
default:
|
|
169
|
-
|
|
170
|
-
|
|
182
|
+
default: a(() => [
|
|
183
|
+
x("div", {
|
|
184
|
+
id: `${r(v)}-header`,
|
|
185
|
+
class: "request-header"
|
|
186
|
+
}, [
|
|
187
|
+
l(r(T), {
|
|
171
188
|
as: "span",
|
|
172
189
|
class: "request-method",
|
|
173
190
|
method: e.operation.httpVerb
|
|
174
191
|
}, null, 8, ["method"]),
|
|
175
|
-
|
|
176
|
-
])
|
|
192
|
+
y(e.$slots, "header", {}, void 0, !0)
|
|
193
|
+
], 8, ve)
|
|
177
194
|
]),
|
|
178
195
|
_: 3
|
|
179
196
|
}),
|
|
180
|
-
|
|
197
|
+
l(r(j), {
|
|
181
198
|
borderless: "",
|
|
182
199
|
class: "request-editor-section custom-scroll",
|
|
183
200
|
frameless: ""
|
|
184
201
|
}, {
|
|
185
|
-
default:
|
|
186
|
-
|
|
187
|
-
|
|
202
|
+
default: a(() => [
|
|
203
|
+
x("div", {
|
|
204
|
+
id: `${r(v)}-example`,
|
|
205
|
+
class: "code-snippet"
|
|
206
|
+
}, [
|
|
207
|
+
l(r(X), {
|
|
188
208
|
class: "bg-b-2",
|
|
189
|
-
content:
|
|
190
|
-
hideCredentials:
|
|
191
|
-
lang:
|
|
209
|
+
content: r($),
|
|
210
|
+
hideCredentials: r(ne)(r(q)),
|
|
211
|
+
lang: I.value,
|
|
192
212
|
lineNumbers: ""
|
|
193
213
|
}, null, 8, ["content", "hideCredentials", "lang"])
|
|
194
|
-
])
|
|
214
|
+
], 8, he)
|
|
195
215
|
]),
|
|
196
216
|
_: 1
|
|
197
217
|
}),
|
|
198
|
-
|
|
218
|
+
_.value || e.$slots.footer ? (m(), g(r(ue), {
|
|
199
219
|
key: 0,
|
|
200
220
|
class: "request-card-footer",
|
|
201
221
|
contrast: ""
|
|
202
222
|
}, {
|
|
203
|
-
default:
|
|
204
|
-
var o,
|
|
223
|
+
default: a(() => {
|
|
224
|
+
var o, u, p, H;
|
|
205
225
|
return [
|
|
206
|
-
|
|
207
|
-
|
|
226
|
+
_.value ? (m(), K("div", ge, [
|
|
227
|
+
l(re, {
|
|
208
228
|
class: "request-example-selector",
|
|
209
|
-
examples: ((
|
|
210
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
229
|
+
examples: ((H = (p = (u = (o = e.operation.information) == null ? void 0 : o.requestBody) == null ? void 0 : u.content) == null ? void 0 : p["application/json"]) == null ? void 0 : H.examples) ?? [],
|
|
230
|
+
"onUpdate:modelValue": t[0] || (t[0] = (M) => E.value = M)
|
|
211
231
|
}, null, 8, ["examples"])
|
|
212
232
|
])) : C("", !0),
|
|
213
|
-
|
|
233
|
+
y(e.$slots, "footer", {}, void 0, !0)
|
|
214
234
|
];
|
|
215
235
|
}),
|
|
216
236
|
_: 3
|
|
217
237
|
})) : C("", !0)
|
|
218
238
|
]),
|
|
219
239
|
_: 3
|
|
220
|
-
})) : e.fallback ? (m(),
|
|
240
|
+
})) : e.fallback ? (m(), g(r(N), {
|
|
221
241
|
key: 1,
|
|
222
242
|
class: "dark-mode"
|
|
223
243
|
}, {
|
|
224
|
-
default:
|
|
225
|
-
|
|
226
|
-
default:
|
|
227
|
-
|
|
228
|
-
|
|
244
|
+
default: a(() => [
|
|
245
|
+
l(r(j), { class: "request-card-simple" }, {
|
|
246
|
+
default: a(() => [
|
|
247
|
+
x("div", Ke, [
|
|
248
|
+
l(r(T), {
|
|
229
249
|
as: "span",
|
|
230
250
|
class: "request-method",
|
|
231
251
|
method: e.operation.httpVerb
|
|
232
252
|
}, null, 8, ["method"]),
|
|
233
|
-
|
|
253
|
+
y(e.$slots, "header", {}, void 0, !0)
|
|
234
254
|
]),
|
|
235
|
-
|
|
255
|
+
y(e.$slots, "footer", {}, void 0, !0)
|
|
236
256
|
]),
|
|
237
257
|
_: 3
|
|
238
258
|
})
|
|
@@ -242,5 +262,5 @@ const de = { class: "request-header" }, fe = { class: "code-snippet" }, ye = {
|
|
|
242
262
|
}
|
|
243
263
|
});
|
|
244
264
|
export {
|
|
245
|
-
|
|
265
|
+
Le as default
|
|
246
266
|
};
|
|
@@ -11,6 +11,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
|
|
|
11
11
|
label: string;
|
|
12
12
|
}[];
|
|
13
13
|
}[];
|
|
14
|
+
controls?: string;
|
|
14
15
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
15
16
|
"update:modelValue": (value: any) => any;
|
|
16
17
|
}, string, import("vue").PublicProps, Readonly<{
|
|
@@ -23,6 +24,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
|
|
|
23
24
|
label: string;
|
|
24
25
|
}[];
|
|
25
26
|
}[];
|
|
27
|
+
controls?: string;
|
|
26
28
|
}> & Readonly<{
|
|
27
29
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
28
30
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/features/ExampleRequest/TextSelect.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TextSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/features/ExampleRequest/TextSelect.vue"],"names":[],"mappings":"AA+IA,iBAAS,cAAc;qBA6CM,GAAG;EAiB/B;AACD,QAAA,MAAM,eAAe;gBAxFP,GAAG;aACN;QACP,KAAK,EAAE,MAAM,CAAA;QACb,KAAK,EAAE,MAAM,CAAA;QACb,OAAO,CAAC,EAAE;YACR,KAAK,EAAE,MAAM,CAAA;YACb,KAAK,EAAE,MAAM,CAAA;SACd,EAAE,CAAA;KACJ,EAAE;eACQ,MAAM;;;;gBATL,GAAG;aACN;QACP,KAAK,EAAE,MAAM,CAAA;QACb,KAAK,EAAE,MAAM,CAAA;QACb,OAAO,CAAC,EAAE;YACR,KAAK,EAAE,MAAM,CAAA;YACb,KAAK,EAAE,MAAM,CAAA;SACd,EAAE,CAAA;KACJ,EAAE;eACQ,MAAM;;;kFAwFjB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,42 +1,45 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const v = ["value"],
|
|
1
|
+
import { defineComponent as p, openBlock as t, createElementBlock as o, normalizeClass as d, createElementVNode as r, renderSlot as m, Fragment as s, renderList as u, toDisplayString as i } from "vue";
|
|
2
|
+
const c = { class: "text-select-label" }, v = ["aria-controls", "tabindex", "value"], b = ["label"], _ = ["value"], g = ["value"], y = /* @__PURE__ */ p({
|
|
3
3
|
__name: "TextSelect",
|
|
4
4
|
props: {
|
|
5
5
|
modelValue: {},
|
|
6
|
-
options: {}
|
|
6
|
+
options: {},
|
|
7
|
+
controls: {}
|
|
7
8
|
},
|
|
8
9
|
emits: ["update:modelValue"],
|
|
9
10
|
setup(k) {
|
|
10
|
-
return (
|
|
11
|
-
class:
|
|
11
|
+
return (l, n) => (t(), o("label", {
|
|
12
|
+
class: d(["text-select", l.options.length === 1 ? "text-select--single-option" : ""])
|
|
12
13
|
}, [
|
|
13
|
-
|
|
14
|
-
m(
|
|
14
|
+
r("span", c, [
|
|
15
|
+
m(l.$slots, "default")
|
|
15
16
|
]),
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
r("select", {
|
|
18
|
+
"aria-controls": l.controls,
|
|
19
|
+
tabindex: l.options.length === 1 ? -1 : 0,
|
|
20
|
+
value: l.modelValue,
|
|
21
|
+
onInput: n[0] || (n[0] = (e) => l.$emit("update:modelValue", e.target.value))
|
|
19
22
|
}, [
|
|
20
|
-
(
|
|
23
|
+
(t(!0), o(s, null, u(l.options, (e) => (t(), o(s, {
|
|
21
24
|
key: e.value
|
|
22
25
|
}, [
|
|
23
|
-
e.options ? (
|
|
26
|
+
e.options ? (t(), o("optgroup", {
|
|
24
27
|
key: 0,
|
|
25
28
|
label: e.label
|
|
26
29
|
}, [
|
|
27
|
-
(
|
|
28
|
-
key:
|
|
29
|
-
value:
|
|
30
|
-
},
|
|
31
|
-
], 8,
|
|
30
|
+
(t(!0), o(s, null, u(e.options, (a) => (t(), o("option", {
|
|
31
|
+
key: a.value,
|
|
32
|
+
value: a.value
|
|
33
|
+
}, i(a.label), 9, _))), 128))
|
|
34
|
+
], 8, b)) : (t(), o("option", {
|
|
32
35
|
key: e.value,
|
|
33
36
|
value: e.value
|
|
34
|
-
},
|
|
37
|
+
}, i(e.label), 9, g))
|
|
35
38
|
], 64))), 128))
|
|
36
39
|
], 40, v)
|
|
37
40
|
], 2));
|
|
38
41
|
}
|
|
39
42
|
});
|
|
40
43
|
export {
|
|
41
|
-
|
|
44
|
+
y as default
|
|
42
45
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ExampleResponse.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import e from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const m = /* @__PURE__ */ e(o, [["__scopeId", "data-v-4b51e8ca"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExampleResponses.vue.d.ts","sourceRoot":"","sources":["../../../src/features/ExampleResponses/ExampleResponses.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ExampleResponses.vue.d.ts","sourceRoot":"","sources":["../../../src/features/ExampleResponses/ExampleResponses.vue"],"names":[],"mappings":"AAgUA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;;eAoB7B,oBAAoB;;eAApB,oBAAoB;;AA0XvD,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ExampleResponses.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import e from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const a = /* @__PURE__ */ e(o, [["__scopeId", "data-v-
|
|
4
|
+
const a = /* @__PURE__ */ e(o, [["__scopeId", "data-v-e60871a4"]]);
|
|
5
5
|
export {
|
|
6
6
|
a as default
|
|
7
7
|
};
|