@scalar/api-reference 1.32.9 → 1.32.10

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.
Files changed (122) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/dist/browser/standalone.js +15115 -14878
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  5. package/dist/components/ApiReferenceLayout.vue.js +2 -2
  6. package/dist/components/ApiReferenceLayout.vue2.js +164 -176
  7. package/dist/components/Badge/Badge.vue.d.ts.map +1 -1
  8. package/dist/components/Badge/Badge.vue.js +3 -3
  9. package/dist/components/Content/Content.vue.js +2 -2
  10. package/dist/components/Content/Content.vue2.js +21 -21
  11. package/dist/components/Content/Introduction/Description.vue.d.ts.map +1 -1
  12. package/dist/components/Content/Introduction/Description.vue.js +2 -2
  13. package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
  14. package/dist/components/Content/Introduction/Introduction.vue.js +2 -2
  15. package/dist/components/Content/Introduction/Introduction.vue2.js +104 -72
  16. package/dist/components/Content/Tag/Tag.vue.d.ts.map +1 -1
  17. package/dist/components/LinkList/LinkList.vue.d.ts +18 -0
  18. package/dist/components/LinkList/LinkList.vue.d.ts.map +1 -0
  19. package/dist/components/LinkList/LinkList.vue.js +12 -0
  20. package/dist/components/LinkList/index.d.ts +2 -0
  21. package/dist/components/LinkList/index.d.ts.map +1 -0
  22. package/dist/components/Section/SectionHeader.vue.d.ts +1 -0
  23. package/dist/components/Section/SectionHeader.vue.d.ts.map +1 -1
  24. package/dist/components/Section/SectionHeader.vue.js +2 -2
  25. package/dist/components/Section/SectionHeader.vue2.js +11 -10
  26. package/dist/features/Operation/Operation.vue.d.ts +6 -6
  27. package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
  28. package/dist/features/Operation/Operation.vue.js +50 -49
  29. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts +8 -6
  30. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts.map +1 -1
  31. package/dist/features/Operation/components/callbacks/Callback.vue.js +3 -3
  32. package/dist/features/Operation/components/callbacks/Callback.vue2.js +21 -28
  33. package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts +5 -3
  34. package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts.map +1 -1
  35. package/dist/features/Operation/components/callbacks/Callbacks.vue.js +33 -18
  36. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +11 -12
  37. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  38. package/dist/features/Operation/layouts/ClassicLayout.vue.js +1 -1
  39. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +164 -163
  40. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +12 -13
  41. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  42. package/dist/features/Operation/layouts/ModernLayout.vue.js +1 -1
  43. package/dist/features/Operation/layouts/ModernLayout.vue2.js +111 -118
  44. package/dist/features/api-client-modal/useApiClient.d.ts +5299 -5299
  45. package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -1
  46. package/dist/features/base-url/BaseUrl.vue.d.ts.map +1 -1
  47. package/dist/features/base-url/BaseUrl.vue.js +26 -26
  48. package/dist/features/download-link/DownloadLink.vue.js +1 -1
  49. package/dist/features/example-responses/ExampleResponseTab.vue.js +2 -2
  50. package/dist/features/example-responses/ExampleResponseTabList.vue.js +1 -1
  51. package/dist/features/example-responses/ExampleResponses.vue.d.ts.map +1 -1
  52. package/dist/features/example-responses/ExampleResponses.vue.js +2 -2
  53. package/dist/features/example-responses/ExampleResponses.vue2.js +60 -57
  54. package/dist/features/external-docs/ExternalDocs.vue.d.ts +7 -0
  55. package/dist/features/external-docs/ExternalDocs.vue.d.ts.map +1 -0
  56. package/dist/features/external-docs/ExternalDocs.vue.js +36 -0
  57. package/dist/features/external-docs/ExternalDocs.vue2.js +4 -0
  58. package/dist/features/external-docs/index.d.ts +2 -0
  59. package/dist/features/external-docs/index.d.ts.map +1 -0
  60. package/dist/features/info-object/Contact.vue.d.ts +7 -0
  61. package/dist/features/info-object/Contact.vue.d.ts.map +1 -0
  62. package/dist/features/info-object/Contact.vue.js +44 -0
  63. package/dist/features/info-object/Contact.vue2.js +4 -0
  64. package/dist/features/info-object/License.vue.d.ts +7 -0
  65. package/dist/features/info-object/License.vue.d.ts.map +1 -0
  66. package/dist/features/info-object/License.vue.js +34 -0
  67. package/dist/features/info-object/License.vue2.js +4 -0
  68. package/dist/features/info-object/TermsOfService.vue.d.ts +7 -0
  69. package/dist/features/info-object/TermsOfService.vue.d.ts.map +1 -0
  70. package/dist/features/info-object/TermsOfService.vue.js +30 -0
  71. package/dist/features/info-object/TermsOfService.vue2.js +4 -0
  72. package/dist/features/info-object/index.d.ts +4 -0
  73. package/dist/features/info-object/index.d.ts.map +1 -0
  74. package/dist/features/test-request-button/TestRequestButton.vue.d.ts +3 -2
  75. package/dist/features/test-request-button/TestRequestButton.vue.d.ts.map +1 -1
  76. package/dist/features/test-request-button/TestRequestButton.vue.js +2 -2
  77. package/dist/features/test-request-button/TestRequestButton.vue2.js +21 -19
  78. package/dist/helpers/convert-security-scheme.js +23 -0
  79. package/dist/index.d.ts +0 -1
  80. package/dist/index.d.ts.map +1 -1
  81. package/dist/index.js +13 -15
  82. package/dist/style.css +1 -1
  83. package/dist/v2/ApiReferenceWorkspace.vue.d.ts +3 -1
  84. package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
  85. package/dist/v2/ApiReferenceWorkspace.vue.js +113 -86
  86. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts +0 -2
  87. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts.map +1 -1
  88. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.js +4 -0
  89. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue2.js +69 -0
  90. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts.map +1 -1
  91. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.js +7 -0
  92. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue2.js +227 -0
  93. package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.js +20 -3
  94. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.js +35 -0
  95. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.js +29 -0
  96. package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.js +10 -0
  97. package/dist/v2/blocks/scalar-request-example-block/index.d.ts +2 -2
  98. package/dist/v2/events/definitions.js +7 -0
  99. package/dist/v2/events/index.d.ts +1 -1
  100. package/dist/v2/events/listeners.d.ts +1 -1
  101. package/dist/v2/hooks/useStore.js +14 -0
  102. package/package.json +11 -11
  103. package/LICENSE +0 -21
  104. package/dist/blocks/constants.js +0 -6
  105. package/dist/blocks/helpers/getPointer.js +0 -12
  106. package/dist/blocks/hooks/useBlockProps.d.ts +0 -31
  107. package/dist/blocks/hooks/useBlockProps.d.ts.map +0 -1
  108. package/dist/blocks/hooks/useBlockProps.js +0 -24
  109. package/dist/features/example-request/ExamplePicker.vue.d.ts +0 -13
  110. package/dist/features/example-request/ExamplePicker.vue.d.ts.map +0 -1
  111. package/dist/features/example-request/ExamplePicker.vue.js +0 -7
  112. package/dist/features/example-request/ExamplePicker.vue2.js +0 -57
  113. package/dist/features/example-request/ExampleRequest.vue.d.ts +0 -85
  114. package/dist/features/example-request/ExampleRequest.vue.d.ts.map +0 -1
  115. package/dist/features/example-request/ExampleRequest.vue.js +0 -7
  116. package/dist/features/example-request/ExampleRequest.vue2.js +0 -348
  117. package/dist/features/example-request/TextSelect.vue.d.ts +0 -34
  118. package/dist/features/example-request/TextSelect.vue.d.ts.map +0 -1
  119. package/dist/features/example-request/TextSelect.vue.js +0 -48
  120. package/dist/features/example-request/TextSelect.vue3.js +0 -5
  121. package/dist/features/example-request/index.d.ts +0 -3
  122. package/dist/features/example-request/index.d.ts.map +0 -1
@@ -1,348 +0,0 @@
1
- import { defineComponent as ye, useId as ve, ref as j, inject as Q, computed as c, watch as Y, onMounted as ge, createBlock as w, createCommentVNode as J, unref as r, openBlock as g, withCtx as s, createVNode as n, renderSlot as T, createTextVNode as K, createElementBlock as U, Fragment as Z, toDisplayString as D, createElementVNode as _ } from "vue";
2
- import { useWorkspace as xe } from "@scalar/api-client/store";
3
- import { getHarRequest as he, getSnippet as qe } from "@scalar/api-client/views/Components/CodeSnippet";
4
- import { filterSecurityRequirements as Ee } from "@scalar/api-client/views/Request/RequestSection";
5
- import { ScalarCard as ee, ScalarCardHeader as Se, ScalarCardSection as te, ScalarCodeBlock as Ke, ScalarCardFooter as be } from "@scalar/components";
6
- import { freezeElement as ke } from "@scalar/helpers/dom/freeze-element";
7
- import { requestSchema as Ce, createExampleFromRequest as Oe } from "@scalar/oas-utils/entities/spec";
8
- import { isDereferenced as Ne } from "@scalar/openapi-types/helpers";
9
- import H from "../../components/ScreenReader.vue.js";
10
- import { useConfig as Te } from "../../hooks/useConfig.js";
11
- import { EXAMPLE_CONTEXT as Ve, DISCRIMINATOR_CONTEXT as Re } from "../../hooks/useDiscriminator.js";
12
- import { useHttpClientStore as $e } from "../../stores/useHttpClientStore.js";
13
- import Be from "./ExamplePicker.vue.js";
14
- import je from "./TextSelect.vue.js";
15
- /* empty css */
16
- import ae from "../../components/HttpMethod/HttpMethod.vue.js";
17
- import { useExampleStore as we } from "../../legacy/stores/useExampleStore.js";
18
- const Je = ["id"], Ue = {
19
- key: 0,
20
- class: "request-card-footer-addon"
21
- }, De = { class: "request-header" }, at = /* @__PURE__ */ ye({
22
- __name: "ExampleRequest",
23
- props: {
24
- server: {},
25
- collection: {},
26
- operation: {},
27
- request: {},
28
- method: {},
29
- fallback: { type: Boolean },
30
- schemas: {}
31
- },
32
- setup(l) {
33
- const { selectedExampleKey: I, operationId: le } = we(), { requestExamples: b, securitySchemes: M, requestExampleMutators: V } = xe(), re = Te(), {
34
- httpClient: u,
35
- setHttpClient: oe,
36
- availableTargets: A,
37
- httpTargetTitle: se,
38
- httpClientTitle: ne
39
- } = $e(), F = ve(), x = j(!1), k = Q(Ve), f = Q(Re), R = c(() => {
40
- var e;
41
- return (e = f == null ? void 0 : f.value) == null ? void 0 : e.selectedType;
42
- }), P = c(
43
- () => {
44
- var e;
45
- return ((e = f == null ? void 0 : f.value) == null ? void 0 : e.hasDiscriminator) || !1;
46
- }
47
- ), d = c(() => {
48
- var t;
49
- const e = ["x-custom-examples", "x-codeSamples", "x-code-samples"];
50
- for (const a of e)
51
- if ((t = l.operation) != null && t[a])
52
- return [...l.operation[a]];
53
- return [];
54
- }), o = j(
55
- // Default to first custom example
56
- d.value.length ? {
57
- targetKey: "customExamples",
58
- clientKey: 0
59
- } : (
60
- // Otherwise use the globally selected HTTP client
61
- {
62
- targetKey: u.targetKey,
63
- clientKey: u.clientKey
64
- }
65
- )
66
- );
67
- Y(u, () => {
68
- o.value = {
69
- targetKey: u.targetKey,
70
- clientKey: u.clientKey
71
- };
72
- });
73
- const X = c(() => {
74
- const e = C.value;
75
- return Object.keys(e).length > 1;
76
- }), ue = () => {
77
- var q, E, S;
78
- if (o.value.targetKey === "customExamples")
79
- return ((q = d.value[o.value.clientKey]) == null ? void 0 : q.source) ?? "";
80
- const e = u.clientKey, t = u.targetKey, a = l.request || Ce.parse({
81
- uid: l.operation.operationId || "temp-request",
82
- method: l.method,
83
- path: l.operation.path,
84
- parameters: l.operation.parameters || [],
85
- requestBody: l.operation.requestBody,
86
- examples: [],
87
- type: "request",
88
- selectedSecuritySchemeUids: [],
89
- selectedServerUid: "",
90
- servers: [],
91
- summary: l.operation.summary || "Example Request"
92
- });
93
- let i = b[((S = (E = l.request) == null ? void 0 : E.examples) == null ? void 0 : S[0]) ?? ""];
94
- if (!i) {
95
- const N = C.value, m = Object.keys(N)[0];
96
- i = Oe(a, m);
97
- }
98
- const p = Ee(
99
- l.operation.security || l.collection.security,
100
- l.collection.selectedSecuritySchemeUids,
101
- M
102
- ), y = he({
103
- operation: a,
104
- example: i,
105
- server: l.server,
106
- securitySchemes: p
107
- }), [h, O] = qe(t, e, y);
108
- return h ? h.message ?? "" : O;
109
- }, z = c(() => {
110
- try {
111
- return ue();
112
- } catch (e) {
113
- return console.error("[generateSnippet]", e), "";
114
- }
115
- }), C = c(() => {
116
- var a;
117
- if (!Ne(l.operation.requestBody))
118
- return {};
119
- const e = ((a = l.operation.requestBody) == null ? void 0 : a.content) ?? {}, t = Object.values(e)[0];
120
- return (t == null ? void 0 : t.examples) ?? {};
121
- }), ie = c(() => {
122
- var t, a;
123
- const e = (
124
- // Specified language
125
- ((t = o.value) == null ? void 0 : t.targetKey) === "customExamples" ? ((a = d.value[o.value.clientKey]) == null ? void 0 : a.lang) ?? "plaintext" : (
126
- // Or language for the globally selected HTTP client
127
- u.targetKey
128
- )
129
- );
130
- return e === "shell" && z.value.includes("curl") ? "curl" : e === "Objective-C" ? "objc" : e;
131
- }), ce = c(
132
- () => Object.values(M).flatMap((e) => e.type === "apiKey" ? e.value : (e == null ? void 0 : e.type) === "http" ? [
133
- e.token,
134
- e.password,
135
- btoa(`${e.username}:${e.password}`)
136
- ] : e.type === "oauth2" ? Object.values(e.flows).map((t) => t.token) : [])
137
- ), me = c(() => {
138
- const e = A.value.map((t) => ({
139
- value: t.key,
140
- label: t.title,
141
- options: t.clients.map((a) => ({
142
- value: JSON.stringify({
143
- targetKey: t.key,
144
- clientKey: a.client
145
- }),
146
- label: a.title
147
- }))
148
- }));
149
- return d.value.length && e.unshift({
150
- value: "customExamples",
151
- label: "Examples",
152
- options: d.value.map((t, a) => ({
153
- value: JSON.stringify({
154
- targetKey: "customExamples",
155
- clientKey: a
156
- }),
157
- label: t.label ?? t.lang ?? `Example #${a + 1}`
158
- }))
159
- }), e;
160
- }), $ = j(null);
161
- function de(e) {
162
- const t = JSON.parse(e);
163
- if ($.value) {
164
- const a = ke($.value.$el);
165
- setTimeout(() => {
166
- a();
167
- }, 300);
168
- }
169
- t.targetKey === "customExamples" || o.value.targetKey === "customExamples" && t.targetKey === u.targetKey && t.clientKey === u.clientKey ? o.value = t : oe(t);
170
- }
171
- function pe(e) {
172
- var i, p;
173
- if (!e)
174
- return;
175
- I.value = e, le.value = l.operation.operationId;
176
- const t = b[((p = (i = l.request) == null ? void 0 : i.examples) == null ? void 0 : p[0]) ?? ""], a = C.value[e];
177
- if (t && (a != null && a.value))
178
- try {
179
- V.edit(
180
- t.uid,
181
- "body.raw.value",
182
- JSON.stringify(a.value, null, 2)
183
- );
184
- } catch (y) {
185
- console.error("[handleExampleUpdate]", y);
186
- }
187
- }
188
- ge(() => {
189
- P.value && R.value && !x.value && L(R.value);
190
- });
191
- const L = (e) => {
192
- var t, a, i, p, y, h, O, q, E, S, N;
193
- if (!x.value)
194
- try {
195
- x.value = !0;
196
- const m = b[((a = (t = l.request) == null ? void 0 : t.examples) == null ? void 0 : a[0]) ?? ""];
197
- if (m && (k != null && k.generateExampleValue)) {
198
- const fe = (p = (i = m.body) == null ? void 0 : i.raw) != null && p.value ? JSON.parse(m.body.raw.value) : void 0, B = k.generateExampleValue(
199
- Array.isArray(fe)
200
- );
201
- if (V.edit(
202
- m.uid,
203
- "body.raw.value",
204
- JSON.stringify(B, null, 2)
205
- ), (h = (y = l.request) == null ? void 0 : y.examples) != null && h[0]) {
206
- const v = b[(q = (O = l.request) == null ? void 0 : O.examples) == null ? void 0 : q[0]];
207
- v && V.edit(
208
- v.uid,
209
- "body.raw.value",
210
- JSON.stringify(B, null, 2)
211
- );
212
- }
213
- if ((N = (S = (E = l.operation.requestBody) == null ? void 0 : E.content) == null ? void 0 : S["application/json"]) != null && N.examples) {
214
- const v = l.operation.requestBody.content["application/json"].examples;
215
- Object.keys(v).forEach((W) => {
216
- var G;
217
- (G = v[W]) != null && G.value && (v[W].value = B);
218
- });
219
- }
220
- }
221
- } catch (m) {
222
- console.error("[handleDiscriminatorChange]", m);
223
- } finally {
224
- x.value = !1;
225
- }
226
- };
227
- return Y(R, (e) => {
228
- e && P.value && !x.value && L();
229
- }), (e, t) => r(A).length || d.value.length ? (g(), w(r(ee), {
230
- key: 0,
231
- class: "request-card dark-mode",
232
- ref_key: "elem",
233
- ref: $
234
- }, {
235
- default: s(() => [
236
- n(r(Se), { class: "pr-0.75" }, {
237
- actions: s(() => [
238
- n(je, {
239
- class: "request-client-picker",
240
- controls: `${r(F)}-example`,
241
- modelValue: JSON.stringify(o.value),
242
- options: me.value,
243
- "onUpdate:modelValue": de
244
- }, {
245
- default: s(() => [
246
- o.value.targetKey === "customExamples" ? (g(), U(Z, { key: 0 }, [
247
- n(H, null, {
248
- default: s(() => t[1] || (t[1] = [
249
- K("Selected Example:")
250
- ])),
251
- _: 1,
252
- __: [1]
253
- }),
254
- K(" " + D(d.value[o.value.clientKey].label ?? "Example"), 1)
255
- ], 64)) : (g(), U(Z, { key: 1 }, [
256
- n(H, null, {
257
- default: s(() => t[2] || (t[2] = [
258
- K("Selected HTTP client:")
259
- ])),
260
- _: 1,
261
- __: [2]
262
- }),
263
- K(" " + D(r(se)) + " " + D(r(ne)), 1)
264
- ], 64))
265
- ]),
266
- _: 1
267
- }, 8, ["controls", "modelValue", "options"])
268
- ]),
269
- default: s(() => [
270
- n(H, null, {
271
- default: s(() => t[0] || (t[0] = [
272
- K("Request Example for")
273
- ])),
274
- _: 1,
275
- __: [0]
276
- }),
277
- n(r(ae), {
278
- as: "span",
279
- class: "request-method",
280
- method: e.method
281
- }, null, 8, ["method"]),
282
- T(e.$slots, "header", {}, void 0, !0)
283
- ]),
284
- _: 3
285
- }),
286
- n(r(te), { class: "request-editor-section custom-scroll border-none p-0" }, {
287
- default: s(() => [
288
- _("div", {
289
- id: `${r(F)}-example`,
290
- class: "code-snippet"
291
- }, [
292
- n(r(Ke), {
293
- class: "bg-b-2 !min-h-full -outline-offset-2",
294
- content: z.value,
295
- hideCredentials: ce.value,
296
- lang: ie.value,
297
- lineNumbers: ""
298
- }, null, 8, ["content", "hideCredentials", "lang"])
299
- ], 8, Je)
300
- ]),
301
- _: 1
302
- }),
303
- (X.value || !r(re).hideTestRequestButton) && e.$slots.footer ? (g(), w(r(be), {
304
- key: 0,
305
- class: "request-card-footer bg-b-3"
306
- }, {
307
- default: s(() => [
308
- X.value ? (g(), U("div", Ue, [
309
- n(Be, {
310
- class: "request-example-selector",
311
- examples: C.value,
312
- modelValue: r(I),
313
- "onUpdate:modelValue": pe
314
- }, null, 8, ["examples", "modelValue"])
315
- ])) : J("", !0),
316
- T(e.$slots, "footer", {}, void 0, !0)
317
- ]),
318
- _: 3
319
- })) : J("", !0)
320
- ]),
321
- _: 3
322
- }, 512)) : e.fallback ? (g(), w(r(ee), {
323
- key: 1,
324
- class: "request-card dark-mode"
325
- }, {
326
- default: s(() => [
327
- n(r(te), { class: "request-card-simple" }, {
328
- default: s(() => [
329
- _("div", De, [
330
- n(r(ae), {
331
- as: "span",
332
- class: "request-method",
333
- method: e.method
334
- }, null, 8, ["method"]),
335
- T(e.$slots, "header", {}, void 0, !0)
336
- ]),
337
- T(e.$slots, "footer", {}, void 0, !0)
338
- ]),
339
- _: 3
340
- })
341
- ]),
342
- _: 3
343
- })) : J("", !0);
344
- }
345
- });
346
- export {
347
- at as default
348
- };
@@ -1,34 +0,0 @@
1
- type __VLS_Props = {
2
- modelValue: any;
3
- options: {
4
- value: string;
5
- label: string;
6
- options?: {
7
- value: string;
8
- label: string;
9
- }[];
10
- }[];
11
- controls?: string;
12
- };
13
- declare function __VLS_template(): {
14
- attrs: Partial<{}>;
15
- slots: {
16
- default?(_: {}): any;
17
- };
18
- refs: {};
19
- rootEl: HTMLLabelElement;
20
- };
21
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
22
- declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
23
- "update:modelValue": (value: any) => any;
24
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
25
- "onUpdate:modelValue"?: ((value: any) => any) | undefined;
26
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLLabelElement>;
27
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
28
- export default _default;
29
- type __VLS_WithTemplateSlots<T, S> = T & {
30
- new (): {
31
- $slots: S;
32
- };
33
- };
34
- //# sourceMappingURL=TextSelect.vue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TextSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/features/example-request/TextSelect.vue"],"names":[],"mappings":"AA4HA,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,GAAG,CAAA;IACf,OAAO,EAAE;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,CAAA;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAC;AAkBF,iBAAS,cAAc;WAyDT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;+FAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,48 +0,0 @@
1
- import { defineComponent as m, computed as v, createElementBlock as l, openBlock as o, normalizeClass as b, createElementVNode as u, renderSlot as _, Fragment as s, renderList as r, toDisplayString as p } from "vue";
2
- const g = { class: "text-select-label" }, f = ["aria-controls", "tabindex", "value"], k = ["label"], y = ["value"], V = ["value"], S = /* @__PURE__ */ m({
3
- __name: "TextSelect",
4
- props: {
5
- modelValue: {},
6
- options: {},
7
- controls: {}
8
- },
9
- emits: ["update:modelValue"],
10
- setup(i) {
11
- const d = i, c = v(
12
- () => d.options.flatMap((e) => e.options ?? e).length
13
- );
14
- return (e, n) => (o(), l("label", {
15
- class: b(["text-select", c.value === 1 ? "text-select--single-option" : ""])
16
- }, [
17
- u("span", g, [
18
- _(e.$slots, "default")
19
- ]),
20
- u("select", {
21
- "aria-controls": e.controls,
22
- tabindex: e.options.length === 1 ? -1 : 0,
23
- value: e.modelValue,
24
- onInput: n[0] || (n[0] = (t) => e.$emit("update:modelValue", t.target.value))
25
- }, [
26
- (o(!0), l(s, null, r(e.options, (t) => (o(), l(s, {
27
- key: t.value
28
- }, [
29
- t.options ? (o(), l("optgroup", {
30
- key: 0,
31
- label: t.label
32
- }, [
33
- (o(!0), l(s, null, r(t.options, (a) => (o(), l("option", {
34
- key: a.value,
35
- value: a.value
36
- }, p(a.label), 9, y))), 128))
37
- ], 8, k)) : (o(), l("option", {
38
- key: t.value,
39
- value: t.value
40
- }, p(t.label), 9, V))
41
- ], 64))), 128))
42
- ], 40, f)
43
- ], 2));
44
- }
45
- });
46
- export {
47
- S as default
48
- };
@@ -1,5 +0,0 @@
1
- import o from "./TextSelect.vue.js";
2
- /* empty css */
3
- export {
4
- o as default
5
- };
@@ -1,3 +0,0 @@
1
- export { default as ExamplePicker } from './ExamplePicker.vue.js';
2
- export { default as ExampleRequest } from './ExampleRequest.vue.js';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/example-request/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAC9D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,sBAAsB,CAAA"}