@scalar/api-client 2.0.55 → 2.0.57

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 (38) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  3. package/dist/components/CodeInput/CodeInput.vue.js +2 -2
  4. package/dist/components/CodeInput/CodeInput.vue2.js +6 -6
  5. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
  6. package/dist/components/CommandPalette/TheCommandPalette.vue.js +4 -4
  7. package/dist/components/CommandPalette/TheCommandPalette.vue2.js +45 -45
  8. package/dist/components/Search/useSearch.d.ts +29 -0
  9. package/dist/components/Search/useSearch.d.ts.map +1 -0
  10. package/dist/components/Search/useSearch.js +62 -0
  11. package/dist/layouts/App/create-api-client-app.d.ts +13 -13
  12. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  13. package/dist/layouts/Modal/create-api-client-modal.d.ts +26 -26
  14. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  15. package/dist/libs/create-client.d.ts +13 -13
  16. package/dist/libs/create-client.d.ts.map +1 -1
  17. package/dist/libs/event-busses/hot-keys-bus.d.ts +3 -3
  18. package/dist/libs/event-busses/hot-keys-bus.d.ts.map +1 -1
  19. package/dist/libs/event-busses/hot-keys-bus.js +17 -16
  20. package/dist/libs/local-storage.js +1 -1
  21. package/dist/store/workspace.d.ts +26 -26
  22. package/dist/store/workspace.d.ts.map +1 -1
  23. package/dist/style.css +1 -1
  24. package/dist/views/Request/Request.vue.d.ts.map +1 -1
  25. package/dist/views/Request/Request.vue.js +2 -2
  26. package/dist/views/Request/Request.vue2.js +259 -215
  27. package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
  28. package/dist/views/Request/RequestSection/RequestParams.vue.js +45 -41
  29. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
  30. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +31 -25
  31. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  32. package/dist/views/Request/RequestSidebarItem.vue.js +1 -1
  33. package/dist/views/Request/RequestSidebarItem.vue2.js +16 -17
  34. package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
  35. package/dist/views/Request/components/WorkspaceDropdown.vue.js +20 -21
  36. package/package.json +5 -5
  37. package/dist/components/Search/SearchButton.vue.js +0 -7
  38. package/dist/components/Search/SearchButton.vue2.js +0 -30
@@ -1,74 +1,84 @@
1
- import { defineComponent as se, ref as ie, watch as P, onMounted as ae, onBeforeUnmount as le, openBlock as h, createElementBlock as k, Fragment as F, createElementVNode as v, normalizeClass as b, unref as s, createVNode as c, createCommentVNode as U, withCtx as p, withDirectives as ne, createSlots as de, withModifiers as N, renderList as ce, createBlock as R, createTextVNode as ue, vShow as me, pushScopeId as fe, popScopeId as pe } from "vue";
2
- import ve from "../../components/AddressBar/AddressBar.vue.js";
3
- import he from "../../components/Search/SearchButton.vue.js";
4
- import be from "../../components/Search/SearchModal.vue.js";
5
- import xe from "../../components/Sidebar/SidebarButton.vue.js";
6
- import ge from "../../components/Sidebar/SidebarToggle.vue.js";
7
- import we from "../../components/ViewLayout/ViewLayout.vue.js";
8
- import ye from "../../components/ViewLayout/ViewLayoutContent.vue.js";
9
- import { useWorkspace as Se } from "../../store/workspace.js";
10
- import _e from "./RequestSection/RequestSection.vue.js";
1
+ import { defineComponent as pe, ref as he, watch as z, onMounted as ve, onBeforeUnmount as be, openBlock as f, createElementBlock as _, normalizeClass as b, unref as t, createElementVNode as v, createVNode as c, createCommentVNode as C, withCtx as m, withDirectives as xe, createSlots as ge, isRef as Se, withModifiers as L, createBlock as S, Fragment as T, renderList as j, createTextVNode as A, toDisplayString as Re, vShow as ye, pushScopeId as we, popScopeId as _e } from "vue";
2
+ import ke from "../../components/AddressBar/AddressBar.vue.js";
3
+ import Ue from "../../components/HttpMethod/HttpMethod.vue.js";
4
+ import { useSearch as Ce } from "../../components/Search/useSearch.js";
5
+ import Ie from "../../components/Sidebar/SidebarButton.vue.js";
6
+ import De from "../../components/Sidebar/SidebarToggle.vue.js";
7
+ import Be from "../../components/ViewLayout/ViewLayout.vue.js";
8
+ import qe from "../../components/ViewLayout/ViewLayoutContent.vue.js";
9
+ import { useWorkspace as Ve } from "../../store/workspace.js";
10
+ import Oe from "./RequestSection/RequestSection.vue.js";
11
11
  /* empty css */
12
- import ke from "./ResponseSection/ResponseSection.vue.js";
13
- import { useModal as Ue, ScalarIcon as C } from "@scalar/components";
14
- import { useToasts as Re } from "@scalar/use-toasts";
15
- import { useMediaQuery as Ce } from "@vueuse/core";
16
- import Be from "./RequestSidebarItem.vue.js";
17
- import De from "../../components/Sidebar/Sidebar.vue.js";
12
+ import $e from "./ResponseSection/ResponseSection.vue.js";
13
+ import { ScalarIcon as I, ScalarSearchInput as Fe, ScalarSearchResultList as Me, ScalarSearchResultItem as Pe } from "@scalar/components";
14
+ import { useToasts as Ee } from "@scalar/use-toasts";
15
+ import { useMediaQuery as Ne } from "@vueuse/core";
16
+ import We from "./RequestSidebarItem.vue.js";
17
+ import ze from "../../components/Sidebar/Sidebar.vue.js";
18
18
  /* empty css */
19
- import Oe from "./components/WorkspaceDropdown.vue.js";
20
- import { useSidebar as qe } from "../../hooks/useSidebar.js";
21
- import { sendRequest as Me } from "../../libs/sendRequest.js";
22
- import { executeRequestBus as W } from "../../libs/event-busses/execute-request-bus.js";
23
- import { hotKeyBus as z } from "../../libs/event-busses/hot-keys-bus.js";
24
- import { commandPaletteBus as j } from "../../libs/event-busses/command-palette-bus.js";
25
- import { requestStatusBus as S } from "../../libs/event-busses/request-status-bus.js";
26
- const Ie = (w) => (fe("data-v-b7bd40a0"), w = w(), pe(), w), Ve = { class: "lg:min-h-header flex items-center w-full justify-center p-1 flex-wrap t-app__top-container border-b-1/2" }, $e = { class: "flex flex-row items-center gap-1 lg:px-1 lg:mb-0 mb-0.5 lg:flex-1 w-6/12" }, Ee = /* @__PURE__ */ Ie(() => /* @__PURE__ */ v("a", {
19
+ import Le from "./components/WorkspaceDropdown.vue.js";
20
+ import { useSidebar as Te } from "../../hooks/useSidebar.js";
21
+ import { sendRequest as je } from "../../libs/sendRequest.js";
22
+ import { executeRequestBus as H } from "../../libs/event-busses/execute-request-bus.js";
23
+ import { hotKeyBus as K } from "../../libs/event-busses/hot-keys-bus.js";
24
+ import { commandPaletteBus as J } from "../../libs/event-busses/command-palette-bus.js";
25
+ import { requestStatusBus as k } from "../../libs/event-busses/request-status-bus.js";
26
+ const Ae = (R) => (we("data-v-05d30cb4"), R = R(), _e(), R), He = { class: "lg:min-h-header flex items-center w-full justify-center p-1 flex-wrap t-app__top-container border-b-1/2" }, Ke = { class: "flex flex-row items-center gap-1 lg:px-1 lg:mb-0 mb-0.5 lg:flex-1 w-6/12" }, Je = /* @__PURE__ */ Ae(() => /* @__PURE__ */ v("a", {
27
27
  class: "text-c-2 text-sm font-medium gitbook-show ml-.5 hover:text-c-1 border p-1 rounded hover:bg-b-3",
28
28
  href: "https://scalar.com/",
29
29
  target: "_blank"
30
- }, " Powered by Scalar.com ", -1)), Pe = { class: "flex flex-row items-center gap-1 lg:px-1 lg:mb-0 mb-0.5 lg:flex-1 justify-end w-6/12" }, dt = /* @__PURE__ */ se({
30
+ }, " Powered by Scalar.com ", -1)), Qe = { class: "flex flex-row items-center gap-1 lg:px-1 lg:mb-0 mb-0.5 lg:flex-1 justify-end w-6/12" }, Ge = { class: "search-button-fade sticky px-3 py-2.5 top-0 z-50" }, yt = /* @__PURE__ */ pe({
31
31
  __name: "Request",
32
- setup(w) {
33
- var E;
32
+ setup(R) {
33
+ var W;
34
34
  const {
35
35
  activeExample: y,
36
- activeRequest: f,
37
- activeSecuritySchemes: L,
36
+ activeRequest: h,
37
+ activeSecuritySchemes: Q,
38
38
  activeWorkspace: l,
39
- activeWorkspaceCollections: T,
40
- activeWorkspaceServers: A,
41
- activeWorkspaceRequests: K,
42
- collectionMutators: B,
43
- collections: m,
44
- cookies: H,
45
- environments: J,
46
- findRequestFolders: Q,
39
+ activeWorkspaceCollections: G,
40
+ activeWorkspaceServers: X,
41
+ activeWorkspaceRequests: Y,
42
+ collectionMutators: D,
43
+ collections: p,
44
+ cookies: Z,
45
+ environments: ee,
46
+ findRequestFolders: te,
47
47
  folders: x,
48
- folderMutators: D,
49
- modalState: G,
50
- requestMutators: X,
51
- workspaceMutators: O
52
- } = Se(), { collapsedSidebarFolders: Y, setCollapsedSidebarFolder: Z } = qe(), { toast: q } = Re(), M = Ue(), ee = Ce("(max-width: 780px)"), u = ie(!((E = l.value) != null && E.isReadOnly));
53
- P(ee, (o) => u.value = !o), P(
54
- f,
55
- (o) => {
56
- o && Q(o.uid).forEach(
57
- (e) => Z(e, !0)
48
+ folderMutators: B,
49
+ modalState: se,
50
+ requestMutators: oe,
51
+ workspaceMutators: q
52
+ } = Ve(), { collapsedSidebarFolders: re, setCollapsedSidebarFolder: ie } = Te(), { toast: V } = Ee(), {
53
+ searchText: w,
54
+ searchResultsWithPlaceholderResults: O,
55
+ selectedSearchResult: $,
56
+ onSearchResultClick: ae,
57
+ fuseSearch: le,
58
+ searchInputRef: F,
59
+ searchResultRefs: ne,
60
+ navigateSearchResults: M,
61
+ selectSearchResult: de
62
+ } = Ce(), ce = Ne("(max-width: 780px)"), u = he(!((W = l.value) != null && W.isReadOnly));
63
+ z(ce, (s) => u.value = !s), z(
64
+ h,
65
+ (s) => {
66
+ s && te(s.uid).forEach(
67
+ (o) => ie(o, !0)
58
68
  );
59
69
  },
60
70
  { immediate: !0 }
61
71
  );
62
- const I = async () => {
72
+ const P = async () => {
63
73
  var i;
64
- if (!f.value || !y.value) {
74
+ if (!h.value || !y.value) {
65
75
  console.warn(
66
76
  "There is no request active at the moment. Please select one then try again."
67
77
  );
68
78
  return;
69
79
  }
70
- let o = y.value.url;
71
- const e = Object.values(J).reduce(
80
+ let s = y.value.url;
81
+ const o = Object.values(ee).reduce(
72
82
  (r, a) => {
73
83
  try {
74
84
  return { ...r, ...JSON.parse(a.raw) };
@@ -77,211 +87,245 @@ const Ie = (w) => (fe("data-v-b7bd40a0"), w = w(), pe(), w), Ve = { class: "lg:m
77
87
  }
78
88
  },
79
89
  {}
80
- ), t = /\{\{(.*?)\}\}/g;
81
- o = o.replace(t, (r, a) => (A.value.forEach((n) => {
90
+ ), e = /\{\{(.*?)\}\}/g;
91
+ s = s.replace(e, (r, a) => (X.value.forEach((n) => {
82
92
  if (n.url === a)
83
93
  return a;
84
- }), e[a] || a)), S.emit("start");
94
+ }), o[a] || a)), k.emit("start");
85
95
  try {
86
- const { request: r, response: a, error: n } = await Me(
87
- f.value,
96
+ const { request: r, response: a, error: n } = await je(
97
+ h.value,
88
98
  y.value,
89
- o,
90
- L.value,
99
+ s,
100
+ Q.value,
91
101
  (i = l.value) == null ? void 0 : i.proxyUrl,
92
- H
102
+ Z
93
103
  );
94
- r && a ? (X.edit(f.value.uid, "history", [
95
- ...f.value.history,
104
+ r && a ? (oe.edit(h.value.uid, "history", [
105
+ ...h.value.history,
96
106
  {
97
107
  request: r,
98
108
  response: a,
99
109
  timestamp: Date.now()
100
110
  }
101
- ]), S.emit("stop")) : (q((n == null ? void 0 : n.message) ?? "Send Request Failed", "error"), S.emit("abort"));
111
+ ]), k.emit("stop")) : (V((n == null ? void 0 : n.message) ?? "Send Request Failed", "error"), k.emit("abort"));
102
112
  } catch (r) {
103
- console.error(r), q(`Oops!
104
- ${r}`, "error"), S.emit("abort");
113
+ console.error(r), V(`Oops!
114
+ ${r}`, "error"), k.emit("abort");
105
115
  }
106
- }, V = (o) => {
107
- o.toggleSidebar && (u.value = !u.value), o.openCommandPalette && (o.openCommandPalette.preventDefault(), j.emit());
116
+ }, E = (s) => {
117
+ var o;
118
+ s.toggleSidebar && (u.value = !u.value), s.openCommandPalette && (s.openCommandPalette.preventDefault(), J.emit()), s.focusRequestSearch && ((o = F.value) == null || o.focus()), s.navigateSearchResultsUp && M("up"), s.navigateSearchResultsDown && M("down"), s.selectSearchResult && de();
108
119
  };
109
- ae(() => {
110
- W.on(I), z.on(V);
111
- }), le(() => {
112
- W.off(I), z.off(V);
120
+ ve(() => {
121
+ H.on(P), K.on(E);
122
+ }), be(() => {
123
+ H.off(P), K.off(E);
113
124
  });
114
- const $ = (o, e) => {
115
- m[o] ? B.edit(o, "childUids", e) : x[o] && D.edit(o, "childUids", e);
116
- }, te = (o, e) => {
117
- if (!o || !e) return;
118
- const { id: t, parentId: i } = o, { id: r, parentId: a, offset: n } = e;
119
- if (i ? m[i] ? B.edit(
125
+ const N = (s, o) => {
126
+ p[s] ? D.edit(s, "childUids", o) : x[s] && B.edit(s, "childUids", o);
127
+ }, ue = (s, o) => {
128
+ if (!s || !o) return;
129
+ const { id: e, parentId: i } = s, { id: r, parentId: a, offset: n } = o;
130
+ if (i ? p[i] ? D.edit(
120
131
  i,
121
132
  "childUids",
122
- m[i].childUids.filter(
123
- (d) => d !== t
133
+ p[i].childUids.filter(
134
+ (d) => d !== e
124
135
  )
125
- ) : x[i] && D.edit(
136
+ ) : x[i] && B.edit(
126
137
  i,
127
138
  "childUids",
128
- x[i].childUids.filter((d) => d !== t)
129
- ) : O.edit(
139
+ x[i].childUids.filter((d) => d !== e)
140
+ ) : q.edit(
130
141
  l.value.uid,
131
142
  "collectionUids",
132
- l.value.collectionUids.filter((d) => d !== t)
143
+ l.value.collectionUids.filter((d) => d !== e)
133
144
  ), n === 2) {
134
- const d = m[r] || x[r];
135
- $(r, [...d.childUids, t]);
145
+ const d = p[r] || x[r];
146
+ N(r, [...d.childUids, e]);
136
147
  } else if (a) {
137
- const g = [...(m[a] || x[a]).childUids], _ = g.findIndex((re) => r === re) ?? 0;
138
- g.splice(_ + n, 0, t), $(a, g);
148
+ const g = [...(p[a] || x[a]).childUids], U = g.findIndex((fe) => r === fe) ?? 0;
149
+ g.splice(U + n, 0, e), N(a, g);
139
150
  } else {
140
- const d = [...l.value.collectionUids], g = d.findIndex((_) => r === _) ?? 0;
141
- d.splice(g + n, 0, t), O.edit(
151
+ const d = [...l.value.collectionUids], g = d.findIndex((U) => r === U) ?? 0;
152
+ d.splice(g + n, 0, e), q.edit(
142
153
  l.value.uid,
143
154
  "collectionUids",
144
155
  d
145
156
  );
146
157
  }
147
- }, oe = (o, e) => {
148
- var t, i, r;
149
- return !(l.value.isReadOnly || !m[o.id] && e.offset !== 2 || m[o.id] && ((r = (i = (t = m[e.id]) == null ? void 0 : t.spec) == null ? void 0 : i.info) == null ? void 0 : r.title) === "Drafts");
158
+ }, me = (s, o) => {
159
+ var e, i, r;
160
+ return !(l.value.isReadOnly || !p[s.id] && o.offset !== 2 || p[s.id] && ((r = (i = (e = p[o.id]) == null ? void 0 : e.spec) == null ? void 0 : i.info) == null ? void 0 : r.title) === "Drafts");
150
161
  };
151
- return (o, e) => (h(), k(F, null, [
152
- v("div", {
153
- class: b(["flex flex-1 flex-col rounded pt-0 h-full bg-b-1 relative border-1/2 rounded mr-1.5 mb-1.5 overflow-hidden", {
154
- "!mr-0 !mb-0 !border-0": s(l).isReadOnly
155
- }])
156
- }, [
157
- v("div", Ve, [
158
- v("div", $e, [
159
- c(ge, {
160
- modelValue: u.value,
161
- "onUpdate:modelValue": e[0] || (e[0] = (t) => u.value = t),
162
- class: "gitbook-hidden"
163
- }, null, 8, ["modelValue"]),
164
- Ee
165
- ]),
166
- c(ve),
167
- v("div", Pe, [
168
- s(l).isReadOnly ? (h(), k("button", {
169
- key: 0,
170
- class: "text-c-3 hover:bg-b-2 active:text-c-1 p-2 rounded",
171
- type: "button",
172
- onClick: e[1] || (e[1] = (t) => s(G).hide())
173
- }, [
174
- c(s(C), {
175
- icon: "Close",
176
- size: "lg",
177
- thickness: "1.75"
178
- })
179
- ])) : U("", !0)
180
- ])
162
+ return (s, o) => (f(), _("div", {
163
+ class: b(["flex flex-1 flex-col rounded pt-0 h-full bg-b-1 relative border-1/2 rounded mr-1.5 mb-1.5 overflow-hidden", {
164
+ "!mr-0 !mb-0 !border-0": t(l).isReadOnly
165
+ }])
166
+ }, [
167
+ v("div", He, [
168
+ v("div", Ke, [
169
+ c(De, {
170
+ modelValue: u.value,
171
+ "onUpdate:modelValue": o[0] || (o[0] = (e) => u.value = e),
172
+ class: "gitbook-hidden"
173
+ }, null, 8, ["modelValue"]),
174
+ Je
181
175
  ]),
182
- c(we, null, {
183
- default: p(() => [
184
- ne(c(s(De), {
185
- class: b([u.value ? "sidebar-active-width" : ""]),
186
- showSideBar: u.value,
187
- "onUpdate:showSideBar": e[5] || (e[5] = (t) => u.value = t)
188
- }, de({
189
- content: p(() => [
190
- c(he, {
191
- onOpenSearchModal: e[2] || (e[2] = (t) => s(M).show())
192
- }),
193
- v("div", {
194
- class: b(["custom-scroll flex flex-1 flex-col overflow-visible px-3 pb-3 pt-0", {
195
- "pb-14": !s(l).isReadOnly
196
- }]),
197
- onDragenter: e[3] || (e[3] = N(() => {
198
- }, ["prevent"])),
199
- onDragover: e[4] || (e[4] = N(() => {
200
- }, ["prevent"]))
201
- }, [
202
- (h(!0), k(F, null, ce(s(T), (t) => {
203
- var i, r;
204
- return h(), R(Be, {
205
- key: t.uid,
206
- isDraggable: !s(l).isReadOnly && ((r = (i = t.spec) == null ? void 0 : i.info) == null ? void 0 : r.title) !== "Drafts",
207
- isDroppable: oe,
208
- item: t,
209
- parentUids: [],
210
- onOnDragEnd: te
211
- }, {
212
- leftIcon: p(() => [
213
- c(s(C), {
214
- class: "text-sidebar-c-2 text-sm group-hover:hidden",
215
- icon: "CodeFolder",
216
- size: "sm",
217
- thickness: "2"
218
- }),
219
- v("div", {
220
- class: b({
221
- "rotate-90": s(Y)[t.uid]
222
- })
223
- }, [
224
- c(s(C), {
225
- class: "text-c-3 hidden text-sm group-hover:block",
226
- icon: "ChevronRight",
227
- size: "sm"
228
- })
229
- ], 2)
230
- ]),
231
- _: 2
232
- }, 1032, ["isDraggable", "item"]);
233
- }), 128))
234
- ], 34)
176
+ c(ke),
177
+ v("div", Qe, [
178
+ t(l).isReadOnly ? (f(), _("button", {
179
+ key: 0,
180
+ class: "text-c-3 hover:bg-b-2 active:text-c-1 p-2 rounded",
181
+ type: "button",
182
+ onClick: o[1] || (o[1] = (e) => t(se).hide())
183
+ }, [
184
+ c(t(I), {
185
+ icon: "Close",
186
+ size: "lg",
187
+ thickness: "1.75"
188
+ })
189
+ ])) : C("", !0)
190
+ ])
191
+ ]),
192
+ c(Be, null, {
193
+ default: m(() => [
194
+ xe(c(t(ze), {
195
+ class: b([u.value ? "sidebar-active-width" : ""]),
196
+ showSideBar: u.value,
197
+ "onUpdate:showSideBar": o[5] || (o[5] = (e) => u.value = e)
198
+ }, ge({
199
+ content: m(() => [
200
+ v("div", Ge, [
201
+ c(t(Fe), {
202
+ ref_key: "searchInputRef",
203
+ ref: F,
204
+ modelValue: t(w),
205
+ "onUpdate:modelValue": o[2] || (o[2] = (e) => Se(w) ? w.value = e : null),
206
+ sidebar: "",
207
+ onInput: t(le)
208
+ }, null, 8, ["modelValue", "onInput"])
235
209
  ]),
236
- button: p(() => [
237
- s(l).isReadOnly ? U("", !0) : (h(), R(xe, {
210
+ v("div", {
211
+ class: b(["custom-scroll flex flex-1 flex-col overflow-visible px-3 pb-3 pt-0", {
212
+ "pb-14": !t(l).isReadOnly
213
+ }]),
214
+ onDragenter: o[3] || (o[3] = L(() => {
215
+ }, ["prevent"])),
216
+ onDragover: o[4] || (o[4] = L(() => {
217
+ }, ["prevent"]))
218
+ }, [
219
+ t(w) ? (f(), S(t(Me), {
238
220
  key: 0,
239
- class: b({
240
- "empty-sidebar-item": s(K).length === 1
241
- }),
242
- click: s(j).emit
221
+ class: "gap-px custom-scroll",
222
+ noResults: !t(O).length
243
223
  }, {
244
- title: p(() => [
245
- ue("Add Item")
224
+ default: m(() => [
225
+ (f(!0), _(T, null, j(t(O), (e, i) => (f(), S(t(Pe), {
226
+ id: `#search-input-${e.item.id}`,
227
+ key: e.refIndex,
228
+ ref_for: !0,
229
+ ref: (r) => t(ne)[i] = r,
230
+ active: t($) === i,
231
+ class: "px-2",
232
+ onClick: (r) => t(ae)(e),
233
+ onFocus: (r) => $.value = i
234
+ }, {
235
+ addon: m(() => [
236
+ c(Ue, {
237
+ class: "font-bold",
238
+ method: e.item.httpVerb ?? "get"
239
+ }, null, 8, ["method"])
240
+ ]),
241
+ default: m(() => [
242
+ A(Re(e.item.title) + " ", 1)
243
+ ]),
244
+ _: 2
245
+ }, 1032, ["id", "active", "onClick", "onFocus"]))), 128))
246
246
  ]),
247
247
  _: 1
248
- }, 8, ["class", "click"]))
249
- ]),
250
- _: 2
251
- }, [
252
- s(l).isReadOnly ? void 0 : {
253
- name: "header",
254
- fn: p(() => [
255
- c(s(Oe))
248
+ }, 8, ["noResults"])) : (f(!0), _(T, { key: 1 }, j(t(G), (e) => {
249
+ var i, r;
250
+ return f(), S(We, {
251
+ key: e.uid,
252
+ isDraggable: !t(l).isReadOnly && ((r = (i = e.spec) == null ? void 0 : i.info) == null ? void 0 : r.title) !== "Drafts",
253
+ isDroppable: me,
254
+ item: e,
255
+ parentUids: [],
256
+ onOnDragEnd: ue
257
+ }, {
258
+ leftIcon: m(() => [
259
+ c(t(I), {
260
+ class: "text-sidebar-c-2 text-sm group-hover:hidden",
261
+ icon: "CodeFolder",
262
+ size: "sm",
263
+ thickness: "2"
264
+ }),
265
+ v("div", {
266
+ class: b({
267
+ "rotate-90": t(re)[e.uid]
268
+ })
269
+ }, [
270
+ c(t(I), {
271
+ class: "text-c-3 hidden text-sm group-hover:block",
272
+ icon: "ChevronRight",
273
+ size: "sm"
274
+ })
275
+ ], 2)
276
+ ]),
277
+ _: 2
278
+ }, 1032, ["isDraggable", "item"]);
279
+ }), 128))
280
+ ], 34)
281
+ ]),
282
+ button: m(() => [
283
+ t(l).isReadOnly ? C("", !0) : (f(), S(Ie, {
284
+ key: 0,
285
+ class: b({
286
+ "empty-sidebar-item": t(Y).length === 1
287
+ }),
288
+ click: t(J).emit
289
+ }, {
290
+ title: m(() => [
291
+ A("Add Item")
256
292
  ]),
257
- key: "0"
258
- }
259
- ]), 1032, ["class", "showSideBar"]), [
260
- [me, u.value]
293
+ _: 1
294
+ }, 8, ["class", "click"]))
261
295
  ]),
262
- s(y) ? (h(), R(ye, {
263
- key: 0,
264
- class: b(["flex-1", [u.value ? "sidebar-active-hide-layout" : ""]])
265
- }, {
266
- default: p(() => {
267
- var t, i, r, a, n;
268
- return [
269
- c(_e),
270
- c(ke, {
271
- response: (n = (a = (t = s(f)) == null ? void 0 : t.history) == null ? void 0 : a[((r = (i = s(f)) == null ? void 0 : i.history) == null ? void 0 : r.length) - 1]) == null ? void 0 : n.response
272
- }, null, 8, ["response"])
273
- ];
274
- }),
275
- _: 1
276
- }, 8, ["class"])) : U("", !0)
296
+ _: 2
297
+ }, [
298
+ t(l).isReadOnly ? void 0 : {
299
+ name: "header",
300
+ fn: m(() => [
301
+ c(t(Le))
302
+ ]),
303
+ key: "0"
304
+ }
305
+ ]), 1032, ["class", "showSideBar"]), [
306
+ [ye, u.value]
277
307
  ]),
278
- _: 1
279
- })
280
- ], 2),
281
- c(be, { modalState: s(M) }, null, 8, ["modalState"])
282
- ], 64));
308
+ t(y) ? (f(), S(qe, {
309
+ key: 0,
310
+ class: b(["flex-1", [u.value ? "sidebar-active-hide-layout" : ""]])
311
+ }, {
312
+ default: m(() => {
313
+ var e, i, r, a, n;
314
+ return [
315
+ c(Oe),
316
+ c($e, {
317
+ response: (n = (a = (e = t(h)) == null ? void 0 : e.history) == null ? void 0 : a[((r = (i = t(h)) == null ? void 0 : i.history) == null ? void 0 : r.length) - 1]) == null ? void 0 : n.response
318
+ }, null, 8, ["response"])
319
+ ];
320
+ }),
321
+ _: 1
322
+ }, 8, ["class"])) : C("", !0)
323
+ ]),
324
+ _: 1
325
+ })
326
+ ], 2));
283
327
  }
284
328
  });
285
329
  export {
286
- dt as default
330
+ yt as default
287
331
  };
@@ -1 +1 @@
1
- {"version":3,"file":"RequestParams.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestParams.vue"],"names":[],"mappings":"AAmLA,OAAO,EACL,KAAK,cAAc,EAEpB,MAAM,2CAA2C,CAAA;;WAMzC,MAAM;cACH,MAAM,cAAc,CAAC,YAAY,CAAC;;WADrC,MAAM;cACH,MAAM,cAAc,CAAC,YAAY,CAAC;;AA2R9C,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
1
+ {"version":3,"file":"RequestParams.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestParams.vue"],"names":[],"mappings":"AAwLA,OAAO,EACL,KAAK,cAAc,EAEpB,MAAM,2CAA2C,CAAA;;WAMzC,MAAM;cACH,MAAM,cAAc,CAAC,YAAY,CAAC;;WADrC,MAAM;cACH,MAAM,cAAc,CAAC,YAAY,CAAC;;AAgS9C,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}