@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.
Files changed (60) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/README.md +3 -2
  3. package/dist/browser/standalone.js +12953 -12838
  4. package/dist/browser/webpack-stats.json +1 -1
  5. package/dist/components/Anchor/Anchor.vue.d.ts.map +1 -1
  6. package/dist/components/Anchor/Anchor.vue.js +1 -1
  7. package/dist/components/Anchor/Anchor.vue2.js +9 -9
  8. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  9. package/dist/components/ApiReferenceLayout.vue.js +2 -2
  10. package/dist/components/ApiReferenceLayout.vue2.js +26 -31
  11. package/dist/components/Card/CardTab.vue.d.ts.map +1 -1
  12. package/dist/components/Card/CardTab.vue.js +2 -2
  13. package/dist/components/Card/CardTab.vue2.js +3 -3
  14. package/dist/components/Content/Operation/ParameterItem.vue.d.ts.map +1 -1
  15. package/dist/components/Content/Operation/ParameterItem.vue.js +4 -4
  16. package/dist/components/Content/Operation/ParameterItem.vue2.js +72 -54
  17. package/dist/components/Content/Operation/TestRequestButton.vue.d.ts.map +1 -1
  18. package/dist/components/Content/Operation/TestRequestButton.vue.js +2 -2
  19. package/dist/components/Content/Operation/TestRequestButton.vue2.js +22 -15
  20. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  21. package/dist/components/Content/Schema/Schema.vue.js +3 -3
  22. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  23. package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
  24. package/dist/components/Content/Schema/SchemaProperty.vue2.js +114 -88
  25. package/dist/components/Content/Tag/Endpoints.vue.d.ts.map +1 -1
  26. package/dist/components/Content/Tag/Endpoints.vue.js +2 -2
  27. package/dist/components/Content/Tag/Endpoints.vue2.js +79 -64
  28. package/dist/components/Content/Tag/Tag.vue.d.ts.map +1 -1
  29. package/dist/components/Content/Tag/Tag.vue.js +3 -3
  30. package/dist/components/Content/Tag/Tag.vue2.js +34 -21
  31. package/dist/components/Section/CompactSection.vue.d.ts.map +1 -1
  32. package/dist/components/Section/CompactSection.vue.js +1 -1
  33. package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts.map +1 -1
  34. package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts +3 -9
  35. package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts.map +1 -1
  36. package/dist/features/ApiClientModal/ApiClientModal.vue.js +27 -33
  37. package/dist/features/ApiClientModal/useApiClient.d.ts +140 -12
  38. package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
  39. package/dist/features/BaseUrl/ServerUrlSelect.vue.d.ts.map +1 -1
  40. package/dist/features/BaseUrl/ServerUrlSelect.vue.js +4 -4
  41. package/dist/features/BaseUrl/ServerUrlSelect.vue2.js +11 -9
  42. package/dist/features/ExampleRequest/ExamplePicker.vue.d.ts.map +1 -1
  43. package/dist/features/ExampleRequest/ExamplePicker.vue.js +3 -3
  44. package/dist/features/ExampleRequest/ExamplePicker.vue2.js +28 -21
  45. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
  46. package/dist/features/ExampleRequest/ExampleRequest.vue.js +1 -1
  47. package/dist/features/ExampleRequest/ExampleRequest.vue2.js +139 -119
  48. package/dist/features/ExampleRequest/TextSelect.vue.d.ts +2 -0
  49. package/dist/features/ExampleRequest/TextSelect.vue.d.ts.map +1 -1
  50. package/dist/features/ExampleRequest/TextSelect.vue.js +22 -19
  51. package/dist/features/ExampleResponses/ExampleResponse.vue.js +3 -3
  52. package/dist/features/ExampleResponses/ExampleResponses.vue.d.ts.map +1 -1
  53. package/dist/features/ExampleResponses/ExampleResponses.vue.js +1 -1
  54. package/dist/features/ExampleResponses/ExampleResponses.vue2.js +88 -81
  55. package/dist/index.js +1 -1
  56. package/dist/legacy/components/SecuritySchemeSelector.vue.d.ts.map +1 -1
  57. package/dist/legacy/components/SecuritySchemeSelector.vue.js +3 -3
  58. package/dist/legacy/components/SecuritySchemeSelector.vue2.js +30 -25
  59. package/dist/style.css +1 -1
  60. package/package.json +10 -9
@@ -1,121 +1,122 @@
1
- import { defineComponent as M, ref as O, computed as d, watch as P, inject as Y, onServerPrefetch as D, useSSRContext as z, unref as a, openBlock as m, createBlock as h, withCtx as i, createVNode as c, createElementBlock as v, Fragment as B, createTextVNode as H, toDisplayString as g, createElementVNode as K, renderSlot as f, createCommentVNode as C } from "vue";
2
- import { ScalarCodeBlock as G } from "@scalar/components";
3
- import { createHash as Q, ssrState as W } from "@scalar/oas-utils/helpers";
4
- import { getRequestFromOperation as X } from "@scalar/oas-utils/spec-getters";
5
- import { asyncComputed as Z } from "@vueuse/core";
6
- import ee from "./ExamplePicker.vue.js";
7
- import te from "./TextSelect.vue.js";
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 oe } from "../../helpers/provideSymbols.js";
10
+ import { GLOBAL_SECURITY_SYMBOL as le } from "../../helpers/provideSymbols.js";
10
11
  import N from "../../components/Card/Card.vue.js";
11
- import ae from "../../components/Card/CardHeader.vue.js";
12
- import R from "../../components/HttpMethod/HttpMethod.vue.js";
13
- import $ from "../../components/Card/CardContent.vue.js";
14
- import { getSecretCredentialsFromAuthentication as re, getRequestFromAuthentication as se } from "../../legacy/helpers/getRequestFromAuthentication.js";
15
- import ne from "../../components/Card/CardFooter.vue.js";
16
- import { getExampleCode as le } from "../../helpers/getExampleCode.js";
17
- import { useHttpClientStore as ie } from "../../stores/useHttpClientStore.js";
18
- import { useServerStore as ce } from "../../legacy/stores/useServerStore.js";
19
- import { useAuthenticationStore as ue } from "../../legacy/stores/useAuthenticationStore.js";
20
- import { getHarRequest as me } from "../../helpers/getHarRequest.js";
21
- import { getUrlFromServerState as pe } from "../../legacy/helpers/getUrlFromServerState.js";
22
- const de = { class: "request-header" }, fe = { class: "code-snippet" }, ye = {
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
- }, he = { class: "request-header" }, Ae = /* @__PURE__ */ M({
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(j) {
32
- const s = j, S = `components-Content-Operation-Example-Request${Q(
33
- s.operation.path + s.operation.httpVerb + s.operation.operationId
34
- )}`, k = O(), {
35
- httpClient: n,
36
- setHttpClient: F,
37
- availableTargets: x,
38
- httpTargetTitle: T,
39
- httpClientTitle: w
40
- } = ie(), { server: A } = ce(), { authentication: E } = ue(), u = d(() => {
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 = s.operation.information) != null && t[o])
45
- return s.operation.information[o] ?? [];
45
+ if ((t = n.operation.information) != null && t[o])
46
+ return n.operation.information[o] ?? [];
46
47
  return [];
47
- }), r = O(
48
+ }), s = O(
48
49
  // Default to first custom example
49
- u.value.length ? {
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: n.targetKey,
56
- clientKey: n.clientKey
56
+ targetKey: i.targetKey,
57
+ clientKey: i.clientKey
57
58
  }
58
59
  )
59
60
  );
60
- P(n, () => {
61
- r.value = {
62
- targetKey: n.targetKey,
63
- clientKey: n.clientKey
61
+ z(i, () => {
62
+ s.value = {
63
+ targetKey: i.targetKey,
64
+ clientKey: i.clientKey
64
65
  };
65
66
  });
66
- const b = d(
67
+ const _ = d(
67
68
  () => {
68
- var e, t, o, l;
69
+ var e, t, o, u;
69
70
  return Object.keys(
70
- ((l = (o = (t = (e = s.operation.information) == null ? void 0 : e.requestBody) == null ? void 0 : t.content) == null ? void 0 : o["application/json"]) == null ? void 0 : l.examples) ?? {}
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
- ), y = Y(oe);
74
- async function q() {
75
- var l, p;
76
- if (r.value.targetKey === "customExamples")
77
- return ((l = u.value[r.value.clientKey]) == null ? void 0 : l.source) ?? "";
78
- const e = me(
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: pe(A)
81
+ url: ye(U)
81
82
  },
82
- X(
83
- s.operation,
83
+ te(
84
+ n.operation,
84
85
  {
85
86
  replaceVariables: !0
86
87
  },
87
- k.value
88
+ E.value
88
89
  ),
89
- se(
90
- E,
91
- ((p = s.operation.information) == null ? void 0 : p.security) ?? (y == null ? void 0 : y())
90
+ ie(
91
+ q,
92
+ ((p = n.operation.information) == null ? void 0 : p.security) ?? (h == null ? void 0 : h())
92
93
  )
93
- ), t = n.clientKey, o = n.targetKey;
94
- return await le(e, o, t) ?? "";
94
+ ), t = i.clientKey, o = i.targetKey;
95
+ return await ce(e, o, t) ?? "";
95
96
  }
96
- const _ = Z(async () => {
97
+ const $ = oe(async () => {
97
98
  try {
98
- return await q();
99
+ return await V();
99
100
  } catch (e) {
100
101
  return console.error("[generateSnippet]", e), "";
101
102
  }
102
- }, W[S] ?? "");
103
- D(async () => {
104
- const e = z();
105
- e.payload.data[S] = await q();
103
+ }, ee[k] ?? "");
104
+ Q(async () => {
105
+ const e = W();
106
+ e.payload.data[k] = await V();
106
107
  });
107
- const J = d(() => {
108
+ const I = d(() => {
108
109
  var t, o;
109
110
  const e = (
110
111
  // Specified language
111
- ((t = r.value) == null ? void 0 : t.targetKey) === "customExamples" ? ((o = u.value[r.value.clientKey]) == null ? void 0 : o.lang) ?? "plaintext" : (
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
- n.targetKey
114
+ i.targetKey
114
115
  )
115
116
  );
116
- return e === "shell" && _.value.includes("curl") ? "curl" : e === "Objective-C" ? "objc" : e;
117
- }), U = d(() => {
118
- const e = x.value.map((t) => ({
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 u.value.length && e.unshift({
130
+ return c.value.length && e.unshift({
130
131
  value: "customExamples",
131
132
  label: "Examples",
132
- options: u.value.map((t, o) => ({
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 L(e) {
142
+ function P(e) {
142
143
  const t = JSON.parse(e);
143
- t.targetKey === "customExamples" ? r.value = t : F(t);
144
+ t.targetKey === "customExamples" ? s.value = t : w(t);
144
145
  }
145
- return (e, t) => a(x).length || u.value.length ? (m(), h(a(N), {
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: i(() => [
150
- c(a(ae), { muted: "" }, {
151
- actions: i(() => [
152
- c(te, {
150
+ default: a(() => [
151
+ l(r(se), { muted: "" }, {
152
+ actions: a(() => [
153
+ l(ae, {
153
154
  class: "request-client-picker",
154
- modelValue: JSON.stringify(r.value),
155
- options: U.value,
156
- "onUpdate:modelValue": L
155
+ controls: `${r(v)}-example`,
156
+ modelValue: JSON.stringify(s.value),
157
+ options: L.value,
158
+ "onUpdate:modelValue": P
157
159
  }, {
158
- default: i(() => [
159
- r.value.targetKey === "customExamples" ? (m(), v(B, { key: 0 }, [
160
- H(g(u.value[r.value.clientKey].label ?? "Example"), 1)
161
- ], 64)) : (m(), v(B, { key: 1 }, [
162
- H(g(a(T)) + " " + g(a(w)), 1)
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: i(() => [
169
- K("div", de, [
170
- c(a(R), {
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
- f(e.$slots, "header", {}, void 0, !0)
176
- ])
192
+ y(e.$slots, "header", {}, void 0, !0)
193
+ ], 8, ve)
177
194
  ]),
178
195
  _: 3
179
196
  }),
180
- c(a($), {
197
+ l(r(j), {
181
198
  borderless: "",
182
199
  class: "request-editor-section custom-scroll",
183
200
  frameless: ""
184
201
  }, {
185
- default: i(() => [
186
- K("div", fe, [
187
- c(a(G), {
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: a(_),
190
- hideCredentials: a(re)(a(E)),
191
- lang: J.value,
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
- b.value || e.$slots.footer ? (m(), h(a(ne), {
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: i(() => {
204
- var o, l, p, V;
223
+ default: a(() => {
224
+ var o, u, p, H;
205
225
  return [
206
- b.value ? (m(), v("div", ye, [
207
- c(ee, {
226
+ _.value ? (m(), K("div", ge, [
227
+ l(re, {
208
228
  class: "request-example-selector",
209
- examples: ((V = (p = (l = (o = e.operation.information) == null ? void 0 : o.requestBody) == null ? void 0 : l.content) == null ? void 0 : p["application/json"]) == null ? void 0 : V.examples) ?? [],
210
- "onUpdate:modelValue": t[0] || (t[0] = (I) => k.value = I)
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
- f(e.$slots, "footer", {}, void 0, !0)
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(), h(a(N), {
240
+ })) : e.fallback ? (m(), g(r(N), {
221
241
  key: 1,
222
242
  class: "dark-mode"
223
243
  }, {
224
- default: i(() => [
225
- c(a($), { class: "request-card-simple" }, {
226
- default: i(() => [
227
- K("div", he, [
228
- c(a(R), {
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
- f(e.$slots, "header", {}, void 0, !0)
253
+ y(e.$slots, "header", {}, void 0, !0)
234
254
  ]),
235
- f(e.$slots, "footer", {}, void 0, !0)
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
- Ae as default
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":"AAsIA,iBAAS,cAAc;qBA4CM,GAAG;EAiB/B;AACD,QAAA,MAAM,eAAe;gBAtFP,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;;;;gBARS,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;;;kFAuFH,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
+ {"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 d, openBlock as l, createElementBlock as t, normalizeClass as i, createElementVNode as u, renderSlot as m, Fragment as s, renderList as r, toDisplayString as p } from "vue";
2
- const v = ["value"], _ = ["label"], c = ["value"], g = ["value"], f = /* @__PURE__ */ d({
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 (a, n) => (l(), t("div", {
11
- class: i(["text-select", a.options.length === 1 ? "text-select--single-option" : ""])
11
+ return (l, n) => (t(), o("label", {
12
+ class: d(["text-select", l.options.length === 1 ? "text-select--single-option" : ""])
12
13
  }, [
13
- u("span", null, [
14
- m(a.$slots, "default")
14
+ r("span", c, [
15
+ m(l.$slots, "default")
15
16
  ]),
16
- u("select", {
17
- value: a.modelValue,
18
- onInput: n[0] || (n[0] = (e) => a.$emit("update:modelValue", e.target.value))
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
- (l(!0), t(s, null, r(a.options, (e) => (l(), t(s, {
23
+ (t(!0), o(s, null, u(l.options, (e) => (t(), o(s, {
21
24
  key: e.value
22
25
  }, [
23
- e.options ? (l(), t("optgroup", {
26
+ e.options ? (t(), o("optgroup", {
24
27
  key: 0,
25
28
  label: e.label
26
29
  }, [
27
- (l(!0), t(s, null, r(e.options, (o) => (l(), t("option", {
28
- key: o.value,
29
- value: o.value
30
- }, p(o.label), 9, c))), 128))
31
- ], 8, _)) : (l(), t("option", {
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
- }, p(e.label), 9, g))
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
- f as default
44
+ y as default
42
45
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./ExampleResponse.vue2.js";
2
2
  /* empty css */
3
- import p from "../../_virtual/_plugin-vue_export-helper.js";
4
- const r = /* @__PURE__ */ p(o, [["__scopeId", "data-v-076c28f6"]]);
3
+ import e from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ e(o, [["__scopeId", "data-v-4b51e8ca"]]);
5
5
  export {
6
- r as default
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":"AAqTA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;;eAoB7B,oBAAoB;;eAApB,oBAAoB;;AAoXvD,wBAMG"}
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-2dae81fd"]]);
4
+ const a = /* @__PURE__ */ e(o, [["__scopeId", "data-v-e60871a4"]]);
5
5
  export {
6
6
  a as default
7
7
  };