@scalar/api-client 2.2.6 → 2.2.7

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 (44) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/components/AddressBar/AddressBar.vue.js +2 -2
  3. package/dist/components/AddressBar/AddressBar.vue2.js +1 -1
  4. package/dist/components/AddressBar/AddressBarServer.vue.js +18 -18
  5. package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +20 -20
  6. package/dist/components/HttpMethod/HttpMethod.vue.js +2 -2
  7. package/dist/components/HttpMethod/HttpMethod.vue2.js +12 -12
  8. package/dist/components/HttpMethod/index.d.ts +0 -1
  9. package/dist/components/HttpMethod/index.d.ts.map +1 -1
  10. package/dist/components/HttpMethod/index.js +2 -4
  11. package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts.map +1 -1
  12. package/dist/components/ImportCollection/ImportCollectionModal.vue.js +119 -102
  13. package/dist/components/OpenApiClientButton.vue.d.ts +1 -0
  14. package/dist/components/OpenApiClientButton.vue.d.ts.map +1 -1
  15. package/dist/components/OpenApiClientButton.vue.js +2 -2
  16. package/dist/components/OpenApiClientButton.vue2.js +23 -17
  17. package/dist/components/Search/useSearch.d.ts.map +1 -1
  18. package/dist/components/Search/useSearch.js +45 -41
  19. package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -1
  20. package/dist/layouts/Modal/ApiClientModal.vue.js +2 -2
  21. package/dist/layouts/Modal/ApiClientModal.vue2.js +28 -23
  22. package/dist/libs/create-client.d.ts +1 -0
  23. package/dist/libs/create-client.d.ts.map +1 -1
  24. package/dist/libs/create-client.js +31 -30
  25. package/dist/style.css +1 -1
  26. package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
  27. package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +65 -62
  28. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
  29. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +1 -1
  30. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +82 -84
  31. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
  32. package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
  33. package/dist/views/Request/RequestSection/RequestBody.vue2.js +27 -24
  34. package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -1
  35. package/dist/views/Request/RequestSubpageHeader.vue.js +3 -3
  36. package/dist/views/Request/RequestSubpageHeader.vue2.js +34 -32
  37. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  38. package/dist/views/Request/components/WorkspaceDropdown.vue.js +1 -1
  39. package/dist/views/Request/libs/live-sync.d.ts.map +1 -1
  40. package/dist/views/Request/libs/live-sync.js +77 -78
  41. package/package.json +10 -10
  42. package/dist/components/HttpMethod/helpers.d.ts +0 -4
  43. package/dist/components/HttpMethod/helpers.d.ts.map +0 -1
  44. package/dist/components/HttpMethod/helpers.js +0 -5
@@ -1 +1 @@
1
- {"version":3,"file":"EnvironmentVariableDropdown.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Environment/EnvironmentVariableDropdown.vue"],"names":[],"mappings":"AAgLA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAKlE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AAIxC,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,iBAAiB,EAAE,mBAAmB,CAAC,mBAAmB,CAAC,CAAA;IAC3D,kBAAkB,EAAE,mBAAmB,CAAC,oBAAoB,CAAC,CAAA;IAC7D,MAAM,EAAE,MAAM,CAAA;IAEd,gBAAgB,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAA;CACjD,CAAC;;gCAkEiC,IAAI,GAAG,MAAM;;;;;;;AAqOhD,wBAQG"}
1
+ {"version":3,"file":"EnvironmentVariableDropdown.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Environment/EnvironmentVariableDropdown.vue"],"names":[],"mappings":"AAgLA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAKlE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AAIxC,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,iBAAiB,EAAE,mBAAmB,CAAC,mBAAmB,CAAC,CAAA;IAC3D,kBAAkB,EAAE,mBAAmB,CAAC,oBAAoB,CAAC,CAAA;IAC7D,MAAM,EAAE,MAAM,CAAA;IAEd,gBAAgB,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAA;CACjD,CAAC;;gCAkEiC,IAAI,GAAG,MAAM;;;;;;;AAuOhD,wBAQG"}
@@ -1,9 +1,9 @@
1
- import { defineComponent as N, ref as d, computed as v, onMounted as I, openBlock as s, createBlock as m, Teleport as P, createElementVNode as a, normalizeStyle as h, createElementBlock as p, Fragment as R, renderList as T, normalizeClass as j, createTextVNode as w, toDisplayString as y, unref as b, withCtx as q, createVNode as D, createCommentVNode as F } from "vue";
2
- import { ScalarButton as K, ScalarIcon as O } from "@scalar/components";
1
+ import { defineComponent as I, ref as d, computed as m, onMounted as P, openBlock as s, createBlock as h, unref as p, withCtx as w, createElementVNode as a, normalizeStyle as y, createElementBlock as f, Fragment as R, renderList as T, normalizeClass as j, createTextVNode as b, toDisplayString as x, createVNode as q, createCommentVNode as D } from "vue";
2
+ import { ScalarTeleport as F, ScalarButton as K, ScalarIcon as O } from "@scalar/components";
3
3
  import { onClickOutside as L } from "@vueuse/core";
4
4
  import M from "fuse.js";
5
- import { parseEnvVariables as x } from "../../libs/environment-parser.js";
6
- const Q = { key: 0 }, $ = ["onClick"], G = { class: "flex items-center gap-1.5 whitespace-nowrap" }, H = { class: "w-20 overflow-hidden text-ellipsis text-right whitespace-nowrap" }, oe = /* @__PURE__ */ N({
5
+ import { parseEnvVariables as k } from "../../libs/environment-parser.js";
6
+ const Q = { key: 0 }, $ = ["onClick"], G = { class: "flex items-center gap-1.5 whitespace-nowrap" }, H = { class: "w-20 overflow-hidden text-ellipsis text-right whitespace-nowrap" }, oe = /* @__PURE__ */ I({
7
7
  __name: "EnvironmentVariableDropdown",
8
8
  props: {
9
9
  query: {},
@@ -13,27 +13,27 @@ const Q = { key: 0 }, $ = ["onClick"], G = { class: "flex items-center gap-1.5 w
13
13
  dropdownPosition: {}
14
14
  },
15
15
  emits: ["select"],
16
- setup(k, { expose: g, emit: V }) {
17
- const r = k, E = V, c = d(!0), u = d(null), n = d(0), _ = () => {
18
- const e = S.value.params.workspace;
19
- C({
16
+ setup(g, { expose: V, emit: E }) {
17
+ const r = g, _ = E, c = d(!0), u = d(null), n = d(0), C = () => {
18
+ const e = z.value.params.workspace;
19
+ S({
20
20
  name: "environment.default",
21
21
  params: {
22
22
  workspace: e
23
23
  }
24
24
  }), c.value = !1;
25
- }, { push: C, currentRoute: S } = r.router, z = new M(x(r.activeEnvVariables.value), {
25
+ }, { push: S, currentRoute: z } = r.router, A = new M(k(r.activeEnvVariables.value), {
26
26
  keys: ["key", "value"]
27
- }), i = v(() => {
27
+ }), i = m(() => {
28
28
  const e = r.query;
29
29
  if (!e)
30
- return x(r.activeEnvVariables.value).slice(-4).filter(({ key: t, value: l }) => t !== "" || l !== "");
31
- const o = z.search(e, { limit: 10 });
30
+ return k(r.activeEnvVariables.value).slice(-4).filter(({ key: t, value: l }) => t !== "" || l !== "");
31
+ const o = A.search(e, { limit: 10 });
32
32
  return o.length > 0 ? o.map((t) => t.item).filter(({ key: t, value: l }) => t !== "" || l !== "") : [];
33
- }), f = (e) => {
34
- E("select", e);
35
- }, A = (e) => e.value ? e.value.color : "#8E8E8E";
36
- g({
33
+ }), v = (e) => {
34
+ _("select", e);
35
+ }, B = (e) => e.value ? e.value.color : "#8E8E8E";
36
+ V({
37
37
  handleArrowKey: (e) => {
38
38
  const o = e === "up" ? -1 : 1, t = i.value.length;
39
39
  t !== 0 && (n.value = (n.value + o + t) % t);
@@ -41,13 +41,13 @@ const Q = { key: 0 }, $ = ["onClick"], G = { class: "flex items-center gap-1.5 w
41
41
  handleSelect: () => {
42
42
  if (n.value >= 0) {
43
43
  const e = i.value[n.value];
44
- e && f(e.key);
44
+ e && v(e.key);
45
45
  }
46
46
  }
47
- }), I(() => {
47
+ }), P(() => {
48
48
  n.value = 0;
49
49
  });
50
- const B = v(() => {
50
+ const N = m(() => {
51
51
  var e, o;
52
52
  return {
53
53
  left: (((e = r.dropdownPosition) == null ? void 0 : e.left) ?? 0) + "px",
@@ -61,51 +61,54 @@ const Q = { key: 0 }, $ = ["onClick"], G = { class: "flex items-center gap-1.5 w
61
61
  c.value = !1;
62
62
  },
63
63
  { ignore: [u] }
64
- ), (e, o) => c.value ? (s(), m(P, {
64
+ ), (e, o) => c.value ? (s(), h(p(F), {
65
65
  key: 0,
66
- to: ".scalar-client"
67
- }, [
68
- a("div", {
69
- ref_key: "dropdownRef",
70
- ref: u,
71
- class: "fixed left-0 top-0 flex flex-col p-0.75 max-h-[60svh] w-56 rounded border custom-scroll",
72
- style: h(B.value)
73
- }, [
74
- i.value.length ? (s(), p("ul", Q, [
75
- (s(!0), p(R, null, T(i.value, (t, l) => (s(), p("li", {
76
- key: t.key,
77
- class: j(["h-8 font-code text-xxs hover:bg-b-2 flex cursor-pointer items-center justify-between gap-1.5 rounded p-1.5 transition-colors duration-150", { "bg-b-2": l === n.value }]),
78
- onClick: (W) => f(t.key)
79
- }, [
80
- a("div", G, [
81
- a("span", {
82
- class: "h-2.5 w-2.5 min-w-2.5 rounded-full",
83
- style: h({
84
- backgroundColor: A(e.activeEnvironment)
85
- })
86
- }, null, 4),
87
- w(" " + y(t.key), 1)
66
+ class: "scalar-client"
67
+ }, {
68
+ default: w(() => [
69
+ a("div", {
70
+ ref_key: "dropdownRef",
71
+ ref: u,
72
+ class: "fixed left-0 top-0 flex flex-col p-0.75 max-h-[60svh] w-56 rounded border custom-scroll",
73
+ style: y(N.value)
74
+ }, [
75
+ i.value.length ? (s(), f("ul", Q, [
76
+ (s(!0), f(R, null, T(i.value, (t, l) => (s(), f("li", {
77
+ key: t.key,
78
+ class: j(["h-8 font-code text-xxs hover:bg-b-2 flex cursor-pointer items-center justify-between gap-1.5 rounded p-1.5 transition-colors duration-150", { "bg-b-2": l === n.value }]),
79
+ onClick: (W) => v(t.key)
80
+ }, [
81
+ a("div", G, [
82
+ a("span", {
83
+ class: "h-2.5 w-2.5 min-w-2.5 rounded-full",
84
+ style: y({
85
+ backgroundColor: B(e.activeEnvironment)
86
+ })
87
+ }, null, 4),
88
+ b(" " + x(t.key), 1)
89
+ ]),
90
+ a("span", H, x(t.value), 1)
91
+ ], 10, $))), 128))
92
+ ])) : (s(), h(p(K), {
93
+ key: 1,
94
+ class: "font-code text-xxs hover:bg-b-2 flex h-8 w-full justify-start gap-2 px-1.5 transition-colors duration-150",
95
+ variant: "secondary",
96
+ onClick: C
97
+ }, {
98
+ default: w(() => [
99
+ q(p(O), {
100
+ icon: "Add",
101
+ size: "sm"
102
+ }),
103
+ o[0] || (o[0] = b(" Add Variable "))
88
104
  ]),
89
- a("span", H, y(t.value), 1)
90
- ], 10, $))), 128))
91
- ])) : (s(), m(b(K), {
92
- key: 1,
93
- class: "font-code text-xxs hover:bg-b-2 flex h-8 w-full justify-start gap-2 px-1.5 transition-colors duration-150",
94
- variant: "secondary",
95
- onClick: _
96
- }, {
97
- default: q(() => [
98
- D(b(O), {
99
- icon: "Add",
100
- size: "sm"
101
- }),
102
- o[0] || (o[0] = w(" Add Variable "))
103
- ]),
104
- _: 1
105
- })),
106
- o[1] || (o[1] = a("div", { class: "absolute inset-0 -z-1 rounded bg-b-1 shadow-lg brightness-lifted" }, null, -1))
107
- ], 4)
108
- ])) : F("", !0);
105
+ _: 1
106
+ })),
107
+ o[1] || (o[1] = a("div", { class: "absolute inset-0 -z-1 rounded bg-b-1 shadow-lg brightness-lifted" }, null, -1))
108
+ ], 4)
109
+ ]),
110
+ _: 1
111
+ })) : D("", !0);
109
112
  }
110
113
  });
111
114
  export {
@@ -1 +1 @@
1
- {"version":3,"file":"RequestAuth.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuth.vue"],"names":[],"mappings":"AA8YA,KAAK,WAAW,GAAG;IACjB,0BAA0B,EAAE,MAAM,EAAE,CAAA;IACpC,KAAK,EAAE,MAAM,CAAA;CACd,CAAC;;AAggBF,wBAOG"}
1
+ {"version":3,"file":"RequestAuth.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuth.vue"],"names":[],"mappings":"AAwYA,KAAK,WAAW,GAAG;IACjB,0BAA0B,EAAE,MAAM,EAAE,CAAA;IACpC,KAAK,EAAE,MAAM,CAAA;CACd,CAAC;;AA2fF,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import t from "./RequestAuth.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-77ffb391"]]);
4
+ const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-5f5171f4"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -1,78 +1,77 @@
1
- import { defineComponent as z, ref as b, computed as f, openBlock as m, createBlock as W, withCtx as r, createElementVNode as a, createTextVNode as _, toDisplayString as g, createElementBlock as p, createVNode as c, unref as i, createCommentVNode as L, Fragment as H, renderList as P, withModifiers as O, withKeys as G } from "vue";
2
- import J from "../../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
3
- import { useActiveEntities as Q } from "../../../../store/active-entities.js";
4
- import { useModal as X, ScalarIcon as B, ScalarComboboxMultiselect as Y, ScalarButton as Z, ScalarIconButton as ee } from "@scalar/components";
5
- import { nanoid as te } from "nanoid";
6
- import le from "./DeleteRequestAuthModal.vue.js";
7
- import oe from "./RequestExampleAuth.vue.js";
1
+ import { defineComponent as F, ref as b, computed as f, openBlock as u, createBlock as z, withCtx as r, createElementVNode as m, createTextVNode as _, toDisplayString as g, createElementBlock as p, createVNode as c, unref as i, createCommentVNode as W, Fragment as L, renderList as H, withModifiers as D, withKeys as P } from "vue";
2
+ import G from "../../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
3
+ import { useActiveEntities as J } from "../../../../store/active-entities.js";
4
+ import { useModal as Q, ScalarIcon as O, ScalarComboboxMultiselect as X, ScalarButton as Y, ScalarIconButton as Z } from "@scalar/components";
5
+ import ee from "./DeleteRequestAuthModal.vue.js";
6
+ import te from "./RequestExampleAuth.vue.js";
8
7
  import { displaySchemeFormatter as k } from "../../libs/auth.js";
9
- import { ADD_AUTH_OPTIONS as se } from "../../consts/new-auth-options.js";
10
- import ie from "../../../../components/DataTable/DataTable.vue.js";
11
- import ne from "../../../../components/DataTable/DataTableRow.vue.js";
12
- import ce from "../../../../components/DataTable/DataTableHeader.vue.js";
13
- import { useWorkspace as re } from "../../../../store/store.js";
14
- const ae = { class: "flex flex-1 gap-1 items-center justify-between" }, ue = {
8
+ import { ADD_AUTH_OPTIONS as le } from "../../consts/new-auth-options.js";
9
+ import se from "../../../../components/DataTable/DataTable.vue.js";
10
+ import oe from "../../../../components/DataTable/DataTableRow.vue.js";
11
+ import ie from "../../../../components/DataTable/DataTableHeader.vue.js";
12
+ import { useWorkspace as ne } from "../../../../store/store.js";
13
+ const ce = { class: "flex flex-1 gap-1 items-center justify-between" }, re = {
15
14
  key: 0,
16
15
  class: "flex items-center gap-1 text-c-3"
17
- }, me = {
16
+ }, ae = {
18
17
  key: 0,
19
18
  class: "flex relative scroll-timeline-x w-full"
20
- }, de = { class: "flex flex-1 gap-0.25 mr-1.5 items-center" }, fe = {
19
+ }, ue = { class: "flex flex-1 gap-0.25 mr-1.5 items-center" }, me = {
21
20
  key: 1,
22
21
  class: "pl-2"
23
- }, we = /* @__PURE__ */ z({
22
+ }, Re = /* @__PURE__ */ F({
24
23
  __name: "RequestAuth",
25
24
  props: {
26
25
  selectedSecuritySchemeUids: {},
27
26
  title: {}
28
27
  },
29
28
  setup(R) {
30
- const { activeCollection: u, activeRequest: h } = Q(), {
31
- collectionMutators: M,
29
+ const { activeCollection: a, activeRequest: h } = J(), {
30
+ collectionMutators: B,
32
31
  isReadOnly: x,
33
- requestMutators: V,
32
+ requestMutators: M,
34
33
  securitySchemes: q,
35
- securitySchemeMutators: I
36
- } = re(), K = b(null), $ = b(null), y = X(), w = b(void 0), C = `combobox-${te()}`, U = f(() => {
37
- var l, s;
38
- const e = ((l = h.value) == null ? void 0 : l.security) ?? ((s = u.value) == null ? void 0 : s.security) ?? [];
34
+ securitySchemeMutators: V
35
+ } = ne(), K = b(null), w = b(null), y = Q(), C = b(void 0), U = f(() => {
36
+ var l, o;
37
+ const e = ((l = h.value) == null ? void 0 : l.security) ?? ((o = a.value) == null ? void 0 : o.security) ?? [];
39
38
  return { filteredRequirements: e.filter((n) => Object.keys(n).length), requirements: e };
40
39
  }), T = f(() => {
41
40
  var t;
42
- return (((t = u.value) == null ? void 0 : t.securitySchemes) ?? []).map((l) => q[l]).filter((l) => l);
41
+ return (((t = a.value) == null ? void 0 : t.securitySchemes) ?? []).map((l) => q[l]).filter((l) => l);
43
42
  }), j = f(
44
43
  () => {
45
44
  const e = [...T.value], t = [];
46
- U.value.filteredRequirements.forEach((o) => {
45
+ U.value.filteredRequirements.forEach((s) => {
47
46
  const d = e.findIndex(
48
- (F) => F.nameKey === Object.keys(o)[0]
47
+ (E) => E.nameKey === Object.keys(s)[0]
49
48
  );
50
49
  d > -1 && (t.push(e[d]), e.splice(d, 1));
51
50
  });
52
51
  const l = e.map(
53
- (o) => k(o)
54
- ), s = t.map(
55
- (o) => k(o)
52
+ (s) => k(s)
53
+ ), o = t.map(
54
+ (s) => k(s)
56
55
  ), n = [
57
- { label: "Required authentication", options: s },
56
+ { label: "Required authentication", options: o },
58
57
  { label: "Available authentication", options: l }
59
58
  ];
60
- return x ? s.length ? n : l : (n.push({
59
+ return x ? o.length ? n : l : (n.push({
61
60
  label: "Add new authentication",
62
- options: se
61
+ options: le
63
62
  }), n);
64
63
  }
65
64
  ), S = f(() => {
66
65
  const { filteredRequirements: e, requirements: t } = U.value;
67
66
  if (!t.length) return null;
68
- const l = e.length < t.length, s = l ? "Unlock" : "Lock", n = l ? "Optional" : "Required", d = `${e.length === 1 ? Object.keys(e[0])[0] : "Authentication"} ${n}`;
69
- return { icon: s, text: d };
70
- }), A = (e) => {
71
- !u.value || !h.value || (x ? M.edit(
72
- u.value.uid,
67
+ const l = e.length < t.length, o = l ? "Unlock" : "Lock", n = l ? "Optional" : "Required", d = `${e.length === 1 ? Object.keys(e[0])[0] : "Authentication"} ${n}`;
68
+ return { icon: o, text: d };
69
+ }), $ = (e) => {
70
+ !a.value || !h.value || (x ? B.edit(
71
+ a.value.uid,
73
72
  "selectedSecuritySchemeUids",
74
73
  e
75
- ) : V.edit(
74
+ ) : M.edit(
76
75
  h.value.uid,
77
76
  "selectedSecuritySchemeUids",
78
77
  e
@@ -82,57 +81,57 @@ const ae = { class: "flex flex-1 gap-1 items-center justify-between" }, ue = {
82
81
  (e) => k(q[e])
83
82
  )
84
83
  );
85
- function N(e) {
86
- var s, n;
87
- if (!((s = u.value) != null && s.uid) || !((n = h.value) != null && n.uid)) return;
88
- const t = e.find((o) => o.payload), l = e.filter((o) => !o.payload).map(({ id: o }) => o);
84
+ function I(e) {
85
+ var o, n;
86
+ if (!((o = a.value) != null && o.uid) || !((n = h.value) != null && n.uid)) return;
87
+ const t = e.find((s) => s.payload), l = e.filter((s) => !s.payload).map(({ id: s }) => s);
89
88
  if (t != null && t.payload) {
90
- const o = I.add(
89
+ const s = V.add(
91
90
  t.payload,
92
- u.value.uid
91
+ a.value.uid
93
92
  );
94
- o && l.push(o.uid);
93
+ s && l.push(s.uid);
95
94
  }
96
- A(l);
95
+ $(l);
97
96
  }
98
- const D = (e) => {
97
+ const A = (e) => {
99
98
  var t;
100
- A(
99
+ $(
101
100
  R.selectedSecuritySchemeUids.filter((l) => l !== e)
102
- ), (t = $.value) == null || t.$el.focus();
101
+ ), (t = w.value) == null || t.$el.focus();
103
102
  };
104
- function E(e) {
105
- w.value = e, y.show();
103
+ function N(e) {
104
+ C.value = e, y.show();
106
105
  }
107
- return (e, t) => (m(), W(J, {
106
+ return (e, t) => (u(), z(G, {
108
107
  class: "group/params",
109
108
  itemCount: v.value.length
110
109
  }, {
111
110
  title: r(() => [
112
- a("div", ae, [
111
+ m("div", ce, [
113
112
  _(g(e.title) + " ", 1),
114
- S.value ? (m(), p("div", ue, [
113
+ S.value ? (u(), p("div", re, [
115
114
  _(g(S.value.text) + " ", 1),
116
- c(i(B), {
115
+ c(i(O), {
117
116
  class: "text-c-3",
118
117
  icon: S.value.icon,
119
118
  size: "xs"
120
119
  }, null, 8, ["icon"])
121
- ])) : L("", !0)
120
+ ])) : W("", !0)
122
121
  ])
123
122
  ]),
124
123
  default: r(() => [
125
- a("form", null, [
126
- c(i(ie), {
124
+ m("form", null, [
125
+ c(i(se), {
127
126
  class: "flex-1",
128
127
  columns: [""]
129
128
  }, {
130
129
  default: r(() => [
131
- c(i(ne), null, {
130
+ c(i(oe), null, {
132
131
  default: r(() => [
133
- c(i(ce), { class: "relative col-span-full cursor-pointer py-[0px] px-[0px] flex items-center" }, {
132
+ c(i(ie), { class: "relative col-span-full cursor-pointer py-[0px] px-[0px] flex items-center" }, {
134
133
  default: r(() => [
135
- c(i(Y), {
134
+ c(i(X), {
136
135
  ref_key: "comboboxRef",
137
136
  ref: K,
138
137
  class: "text-xs w-full",
@@ -142,41 +141,41 @@ const ae = { class: "flex flex-1 gap-1 items-center justify-between" }, ue = {
142
141
  multiple: "",
143
142
  options: j.value,
144
143
  style: { "margin-left": "120px" },
145
- teleport: `#${C}`,
146
- onDelete: E,
147
- "onUpdate:modelValue": N
144
+ teleport: "",
145
+ onDelete: N,
146
+ "onUpdate:modelValue": I
148
147
  }, {
149
148
  default: r(() => [
150
- c(i(Z), {
149
+ c(i(Y), {
151
150
  ref_key: "comboboxButtonRef",
152
- ref: $,
151
+ ref: w,
153
152
  class: "h-auto py-0 px-0 text-c-2 hover:text-c-1 font-normal justify-start -outline-offset-2",
154
153
  fullWidth: "",
155
154
  variant: "ghost"
156
155
  }, {
157
156
  default: r(() => [
158
- t[3] || (t[3] = a("div", { class: "text-c-1 h-8 flex min-w-[94px] items-center pr-0 pl-2" }, " Auth Type ", -1)),
159
- v.value.length ? (m(), p("div", me, [
160
- t[1] || (t[1] = a("div", { class: "fade-left" }, null, -1)),
161
- a("div", de, [
162
- (m(!0), p(H, null, P(v.value, (l) => (m(), p("span", {
157
+ t[3] || (t[3] = m("div", { class: "text-c-1 h-8 flex min-w-[94px] items-center pr-0 pl-2" }, " Auth Type ", -1)),
158
+ v.value.length ? (u(), p("div", ae, [
159
+ t[1] || (t[1] = m("div", { class: "fade-left" }, null, -1)),
160
+ m("div", ue, [
161
+ (u(!0), p(L, null, H(v.value, (l) => (u(), p("span", {
163
162
  key: l.id,
164
163
  class: "cm-pill flex items-center mx-0 h-fit pr-0.5 !bg-b-2 text-c-1"
165
164
  }, [
166
165
  _(g(l.label) + " ", 1),
167
- c(i(ee), {
166
+ c(i(Z), {
168
167
  class: "cursor-pointer -ml-0.5 text-c-3 hover:text-c-1 rounded-full",
169
168
  icon: "Close",
170
169
  label: `Remove ${l.label}`,
171
170
  size: "xs",
172
- onClick: O((s) => D(l.id), ["stop"]),
173
- onKeydown: G(O((s) => D(l.id), ["stop"]), ["enter"])
171
+ onClick: D((o) => A(l.id), ["stop"]),
172
+ onKeydown: P(D((o) => A(l.id), ["stop"]), ["enter"])
174
173
  }, null, 8, ["label", "onClick", "onKeydown"])
175
174
  ]))), 128))
176
175
  ]),
177
- t[2] || (t[2] = a("div", { class: "fade-right" }, null, -1))
178
- ])) : (m(), p("div", fe, " None ")),
179
- c(i(B), {
176
+ t[2] || (t[2] = m("div", { class: "fade-right" }, null, -1))
177
+ ])) : (u(), p("div", me, " None ")),
178
+ c(i(O), {
180
179
  class: "mr-[9px]",
181
180
  icon: "ChevronDown",
182
181
  size: "md"
@@ -186,23 +185,22 @@ const ae = { class: "flex flex-1 gap-1 items-center justify-between" }, ue = {
186
185
  }, 512)
187
186
  ]),
188
187
  _: 1
189
- }, 8, ["isDeletable", "modelValue", "options", "teleport"])
188
+ }, 8, ["isDeletable", "modelValue", "options"])
190
189
  ]),
191
190
  _: 1
192
191
  })
193
192
  ]),
194
193
  _: 1
195
194
  }),
196
- c(oe, { selectedSecuritySchemeUids: e.selectedSecuritySchemeUids }, null, 8, ["selectedSecuritySchemeUids"])
195
+ c(te, { selectedSecuritySchemeUids: e.selectedSecuritySchemeUids }, null, 8, ["selectedSecuritySchemeUids"])
197
196
  ]),
198
197
  _: 1
199
198
  }),
200
- c(le, {
201
- scheme: w.value,
199
+ c(ee, {
200
+ scheme: C.value,
202
201
  state: i(y),
203
202
  onClose: t[0] || (t[0] = (l) => i(y).hide())
204
- }, null, 8, ["scheme", "state"]),
205
- a("div", { id: C })
203
+ }, null, 8, ["scheme", "state"])
206
204
  ])
207
205
  ]),
208
206
  _: 1
@@ -210,5 +208,5 @@ const ae = { class: "flex flex-1 gap-1 items-center justify-between" }, ue = {
210
208
  }
211
209
  });
212
210
  export {
213
- we as default
211
+ Re as default
214
212
  };
@@ -1 +1 @@
1
- {"version":3,"file":"RequestBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestBody.vue"],"names":[],"mappings":"AA6kBA,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;CACd,CAAC;;AA+3BF,wBAOG"}
1
+ {"version":3,"file":"RequestBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestBody.vue"],"names":[],"mappings":"AAklBA,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;CACd,CAAC;;AAo4BF,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 p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-9187b053"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-77d0f477"]]);
5
5
  export {
6
- p as default
6
+ m as default
7
7
  };