@scalar/api-client 2.0.47 → 2.0.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -0
- package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBar.vue.js +2 -2
- package/dist/components/AddressBar/AddressBar.vue2.js +77 -71
- package/dist/components/CodeInput/CodeInput.vue.d.ts +3 -1
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.js +2 -2
- package/dist/components/CodeInput/CodeInput.vue2.js +49 -44
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.js +2 -2
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +97 -106
- package/dist/components/Sidebar/Sidebar.vue.d.ts +24 -3
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.js +57 -19
- package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNav.vue.js +1 -1
- package/dist/components/TopNav/TopNav.vue2.js +46 -43
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -9
- package/dist/layouts/App/ApiClientApp.vue.js +1 -1
- package/dist/layouts/App/create-api-client-app.d.ts +56 -46
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue.js +2 -2
- package/dist/layouts/Modal/ApiClientModal.vue2.js +20 -20
- package/dist/layouts/Modal/create-api-client-modal.d.ts +112 -92
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +56 -46
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/event-busses/{command-palette.d.ts → command-palette-bus.d.ts} +1 -1
- package/dist/libs/event-busses/command-palette-bus.d.ts.map +1 -0
- package/dist/libs/event-busses/{execute-requestBus.d.ts → execute-request-bus.d.ts} +1 -1
- package/dist/libs/event-busses/execute-request-bus.d.ts.map +1 -0
- package/dist/libs/event-busses/hot-keys-bus.d.ts +33 -0
- package/dist/libs/event-busses/hot-keys-bus.d.ts.map +1 -0
- package/dist/libs/event-busses/hot-keys-bus.js +33 -0
- package/dist/libs/event-busses/index.d.ts +3 -3
- package/dist/libs/event-busses/index.d.ts.map +1 -1
- package/dist/libs/event-busses/index.js +3 -3
- package/dist/libs/index.js +3 -3
- package/dist/libs/local-storage.d.ts +1 -1
- package/dist/libs/local-storage.d.ts.map +1 -1
- package/dist/libs/local-storage.js +15 -30
- package/dist/router.d.ts +2 -2
- package/dist/router.d.ts.map +1 -1
- package/dist/router.js +3 -3
- package/dist/store/workspace.d.ts +112 -92
- package/dist/store/workspace.d.ts.map +1 -1
- package/dist/store/workspace.js +140 -137
- package/dist/style.css +1 -1
- package/dist/views/Request/Request.vue.d.ts.map +1 -1
- package/dist/views/Request/Request.vue.js +1 -1
- package/dist/views/Request/Request.vue2.js +135 -131
- package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItem.vue.js +1 -1
- package/dist/views/Request/RequestSidebarItem.vue2.js +252 -138
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts +27 -5
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue.js +4 -4
- package/dist/views/Request/RequestSidebarItemMenu.vue2.js +83 -158
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +214 -70
- package/package.json +6 -6
- package/dist/libs/event-busses/command-palette.d.ts.map +0 -1
- package/dist/libs/event-busses/execute-requestBus.d.ts.map +0 -1
- package/dist/libs/event-busses/hot-key.d.ts +0 -34
- package/dist/libs/event-busses/hot-key.d.ts.map +0 -1
- package/dist/libs/event-busses/hot-key.js +0 -25
- /package/dist/libs/event-busses/{command-palette.js → command-palette-bus.js} +0 -0
- /package/dist/libs/event-busses/{execute-requestBus.js → execute-request-bus.js} +0 -0
|
@@ -1,212 +1,216 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
1
|
+
import { defineComponent as se, ref as ie, watch as F, onMounted as ae, onBeforeUnmount as le, openBlock as h, createElementBlock as k, Fragment as N, 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 P, 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
6
|
import ge from "../../components/Sidebar/SidebarToggle.vue.js";
|
|
7
7
|
import we from "../../components/ViewLayout/ViewLayout.vue.js";
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
import Se from "./RequestSection/RequestSection.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";
|
|
12
11
|
/* empty css */
|
|
13
|
-
import
|
|
14
|
-
import { useModal as
|
|
15
|
-
import { useToasts as
|
|
16
|
-
import {
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import Be from "../../components/Sidebar/Sidebar.vue.js";
|
|
12
|
+
import ke from "./ResponseSection/ResponseSection.vue.js";
|
|
13
|
+
import { useModal as Ue, ScalarIcon as B } from "@scalar/components";
|
|
14
|
+
import { useToasts as Re } from "@scalar/use-toasts";
|
|
15
|
+
import { useMediaQuery as Be } from "@vueuse/core";
|
|
16
|
+
import Ce from "./RequestSidebarItem.vue.js";
|
|
17
|
+
import Oe from "../../components/Sidebar/Sidebar.vue.js";
|
|
20
18
|
/* empty css */
|
|
21
|
-
import
|
|
22
|
-
import { useSidebar as
|
|
23
|
-
import { sendRequest as
|
|
24
|
-
import { executeRequestBus as
|
|
25
|
-
import {
|
|
26
|
-
|
|
19
|
+
import qe from "./components/WorkspaceDropdown.vue.js";
|
|
20
|
+
import { useSidebar as De } 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-1a28a88b"), 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", {
|
|
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)),
|
|
30
|
+
}, " Powered by Scalar.com ", -1)), Fe = { 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({
|
|
31
31
|
__name: "Request",
|
|
32
|
-
setup(
|
|
32
|
+
setup(w) {
|
|
33
33
|
var E;
|
|
34
34
|
const {
|
|
35
|
-
activeExample:
|
|
35
|
+
activeExample: y,
|
|
36
36
|
activeRequest: f,
|
|
37
|
-
activeSecuritySchemes:
|
|
37
|
+
activeSecuritySchemes: L,
|
|
38
38
|
activeWorkspace: l,
|
|
39
39
|
activeWorkspaceCollections: T,
|
|
40
40
|
activeWorkspaceServers: A,
|
|
41
|
-
activeWorkspaceRequests:
|
|
42
|
-
collectionMutators:
|
|
43
|
-
collections:
|
|
44
|
-
cookies:
|
|
45
|
-
environments:
|
|
41
|
+
activeWorkspaceRequests: K,
|
|
42
|
+
collectionMutators: C,
|
|
43
|
+
collections: m,
|
|
44
|
+
cookies: H,
|
|
45
|
+
environments: J,
|
|
46
46
|
findRequestFolders: Q,
|
|
47
47
|
folders: x,
|
|
48
|
-
folderMutators:
|
|
48
|
+
folderMutators: O,
|
|
49
49
|
modalState: G,
|
|
50
50
|
requestMutators: X,
|
|
51
|
-
workspaceMutators:
|
|
52
|
-
} =
|
|
53
|
-
F(ee, (
|
|
51
|
+
workspaceMutators: q
|
|
52
|
+
} = Se(), { collapsedSidebarFolders: Y, setCollapsedSidebarFolder: Z } = De(), { toast: D } = Re(), M = Ue(), ee = Be("(max-width: 780px)"), u = ie(!((E = l.value) != null && E.isReadOnly));
|
|
53
|
+
F(ee, (r) => u.value = !r), F(
|
|
54
54
|
f,
|
|
55
|
-
(
|
|
56
|
-
|
|
57
|
-
(
|
|
55
|
+
(r) => {
|
|
56
|
+
r && Q(r.uid).forEach(
|
|
57
|
+
(e) => Z(e, !0)
|
|
58
58
|
);
|
|
59
59
|
},
|
|
60
60
|
{ immediate: !0 }
|
|
61
61
|
);
|
|
62
|
-
const
|
|
62
|
+
const I = async () => {
|
|
63
63
|
var i;
|
|
64
|
-
if (!f.value || !
|
|
64
|
+
if (!f.value || !y.value) {
|
|
65
65
|
console.warn(
|
|
66
66
|
"There is no request active at the moment. Please select one then try again."
|
|
67
67
|
);
|
|
68
68
|
return;
|
|
69
69
|
}
|
|
70
|
-
let
|
|
71
|
-
const
|
|
72
|
-
(
|
|
70
|
+
let r = y.value.url;
|
|
71
|
+
const e = Object.values(J).reduce(
|
|
72
|
+
(o, a) => {
|
|
73
73
|
try {
|
|
74
|
-
return { ...
|
|
74
|
+
return { ...o, ...JSON.parse(a.raw) };
|
|
75
75
|
} catch {
|
|
76
|
-
return
|
|
76
|
+
return o;
|
|
77
77
|
}
|
|
78
78
|
},
|
|
79
79
|
{}
|
|
80
|
-
),
|
|
81
|
-
|
|
80
|
+
), t = /\{\{(.*?)\}\}/g;
|
|
81
|
+
r = r.replace(t, (o, a) => (A.value.forEach((n) => {
|
|
82
82
|
if (n.url === a)
|
|
83
83
|
return a;
|
|
84
|
-
}),
|
|
84
|
+
}), e[a] || a)), S.emit("start");
|
|
85
85
|
try {
|
|
86
|
-
const { request:
|
|
86
|
+
const { request: o, response: a, error: n } = await Me(
|
|
87
87
|
f.value,
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
88
|
+
y.value,
|
|
89
|
+
r,
|
|
90
|
+
L.value,
|
|
91
91
|
(i = l.value) == null ? void 0 : i.proxyUrl,
|
|
92
|
-
|
|
92
|
+
H
|
|
93
93
|
);
|
|
94
|
-
|
|
94
|
+
o && a ? (X.edit(f.value.uid, "history", [
|
|
95
95
|
...f.value.history,
|
|
96
96
|
{
|
|
97
|
-
request:
|
|
97
|
+
request: o,
|
|
98
98
|
response: a,
|
|
99
99
|
timestamp: Date.now()
|
|
100
100
|
}
|
|
101
|
-
]),
|
|
102
|
-
} catch (
|
|
103
|
-
console.error(
|
|
104
|
-
${
|
|
101
|
+
]), S.emit("stop")) : (D((n == null ? void 0 : n.message) ?? "Send Request Failed", "error"), S.emit("abort"));
|
|
102
|
+
} catch (o) {
|
|
103
|
+
console.error(o), D(`Oops!
|
|
104
|
+
${o}`, "error"), S.emit("abort");
|
|
105
105
|
}
|
|
106
|
+
}, V = (r) => {
|
|
107
|
+
r.toggleSidebar && (u.value = !u.value), r.openCommandPalette && j.emit();
|
|
106
108
|
};
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
109
|
+
ae(() => {
|
|
110
|
+
W.on(I), z.on(V);
|
|
111
|
+
}), le(() => {
|
|
112
|
+
W.off(I), z.off(V);
|
|
113
|
+
});
|
|
114
|
+
const $ = (r, e) => {
|
|
115
|
+
m[r] ? C.edit(r, "childUids", e) : x[r] && O.edit(r, "childUids", e);
|
|
116
|
+
}, te = (r, e) => {
|
|
117
|
+
if (!r || !e) return;
|
|
118
|
+
const { id: t, parentId: i } = r, { id: o, parentId: a, offset: n } = e;
|
|
119
|
+
if (i ? m[i] ? C.edit(
|
|
114
120
|
i,
|
|
115
121
|
"childUids",
|
|
116
|
-
|
|
117
|
-
(d) => d !==
|
|
122
|
+
m[i].childUids.filter(
|
|
123
|
+
(d) => d !== t
|
|
118
124
|
)
|
|
119
|
-
) : x[i] &&
|
|
125
|
+
) : x[i] && O.edit(
|
|
120
126
|
i,
|
|
121
127
|
"childUids",
|
|
122
|
-
x[i].childUids.filter((d) => d !==
|
|
123
|
-
) :
|
|
128
|
+
x[i].childUids.filter((d) => d !== t)
|
|
129
|
+
) : q.edit(
|
|
124
130
|
l.value.uid,
|
|
125
131
|
"collectionUids",
|
|
126
|
-
l.value.collectionUids.filter((d) => d !==
|
|
132
|
+
l.value.collectionUids.filter((d) => d !== t)
|
|
127
133
|
), n === 2) {
|
|
128
|
-
const d =
|
|
129
|
-
$(
|
|
134
|
+
const d = m[o] || x[o];
|
|
135
|
+
$(o, [...d.childUids, t]);
|
|
130
136
|
} else if (a) {
|
|
131
|
-
const
|
|
132
|
-
|
|
137
|
+
const g = [...(m[a] || x[a]).childUids], _ = g.findIndex((re) => o === re) ?? 0;
|
|
138
|
+
g.splice(_ + n, 0, t), $(a, g);
|
|
133
139
|
} else {
|
|
134
|
-
const d = [...l.value.collectionUids],
|
|
135
|
-
d.splice(
|
|
140
|
+
const d = [...l.value.collectionUids], g = d.findIndex((_) => o === _) ?? 0;
|
|
141
|
+
d.splice(g + n, 0, t), q.edit(
|
|
136
142
|
l.value.uid,
|
|
137
143
|
"collectionUids",
|
|
138
144
|
d
|
|
139
145
|
);
|
|
140
146
|
}
|
|
141
|
-
}, oe = () =>
|
|
142
|
-
|
|
143
|
-
(
|
|
144
|
-
});
|
|
145
|
-
const re = (t, o) => {
|
|
146
|
-
var r, i, e;
|
|
147
|
-
return !(l.value.isReadOnly || !u[t.id] && o.offset !== 2 || u[t.id] && ((e = (i = (r = u[o.id]) == null ? void 0 : r.spec) == null ? void 0 : i.info) == null ? void 0 : e.title) === "Drafts");
|
|
147
|
+
}, oe = (r, e) => {
|
|
148
|
+
var t, i, o;
|
|
149
|
+
return !(l.value.isReadOnly || !m[r.id] && e.offset !== 2 || m[r.id] && ((o = (i = (t = m[e.id]) == null ? void 0 : t.spec) == null ? void 0 : i.info) == null ? void 0 : o.title) === "Drafts");
|
|
148
150
|
};
|
|
149
|
-
return (
|
|
151
|
+
return (r, e) => (h(), k(N, null, [
|
|
150
152
|
v("div", {
|
|
151
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", {
|
|
152
154
|
"!mr-0 !mb-0 !border-0": s(l).isReadOnly
|
|
153
155
|
}])
|
|
154
156
|
}, [
|
|
155
|
-
v("div",
|
|
156
|
-
v("div",
|
|
157
|
+
v("div", Ve, [
|
|
158
|
+
v("div", $e, [
|
|
157
159
|
c(ge, {
|
|
158
|
-
modelValue:
|
|
159
|
-
"onUpdate:modelValue":
|
|
160
|
+
modelValue: u.value,
|
|
161
|
+
"onUpdate:modelValue": e[0] || (e[0] = (t) => u.value = t),
|
|
160
162
|
class: "gitbook-hidden"
|
|
161
163
|
}, null, 8, ["modelValue"]),
|
|
162
|
-
|
|
164
|
+
Ee
|
|
163
165
|
]),
|
|
164
|
-
c(
|
|
165
|
-
v("div",
|
|
166
|
-
s(l).isReadOnly ? (h(),
|
|
166
|
+
c(ve),
|
|
167
|
+
v("div", Fe, [
|
|
168
|
+
s(l).isReadOnly ? (h(), k("button", {
|
|
167
169
|
key: 0,
|
|
168
170
|
class: "text-c-3 hover:bg-b-2 active:text-c-1 p-2 rounded",
|
|
169
171
|
type: "button",
|
|
170
|
-
onClick:
|
|
172
|
+
onClick: e[1] || (e[1] = (t) => s(G).hide())
|
|
171
173
|
}, [
|
|
172
|
-
c(s(
|
|
174
|
+
c(s(B), {
|
|
173
175
|
icon: "Close",
|
|
174
176
|
size: "lg",
|
|
175
177
|
thickness: "1.75"
|
|
176
178
|
})
|
|
177
|
-
])) :
|
|
179
|
+
])) : U("", !0)
|
|
178
180
|
])
|
|
179
181
|
]),
|
|
180
182
|
c(we, null, {
|
|
181
183
|
default: p(() => [
|
|
182
|
-
|
|
183
|
-
class: b([
|
|
184
|
-
|
|
184
|
+
ne(c(s(Oe), {
|
|
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({
|
|
185
189
|
content: p(() => [
|
|
186
|
-
c(
|
|
187
|
-
onOpenSearchModal:
|
|
190
|
+
c(he, {
|
|
191
|
+
onOpenSearchModal: e[2] || (e[2] = (t) => s(M).show())
|
|
188
192
|
}),
|
|
189
193
|
v("div", {
|
|
190
194
|
class: b(["custom-scroll flex flex-1 flex-col overflow-visible px-3 pb-3 pt-0", {
|
|
191
195
|
"pb-14": !s(l).isReadOnly
|
|
192
196
|
}]),
|
|
193
|
-
onDragenter:
|
|
197
|
+
onDragenter: e[3] || (e[3] = P(() => {
|
|
194
198
|
}, ["prevent"])),
|
|
195
|
-
onDragover:
|
|
199
|
+
onDragover: e[4] || (e[4] = P(() => {
|
|
196
200
|
}, ["prevent"]))
|
|
197
201
|
}, [
|
|
198
|
-
(h(!0),
|
|
199
|
-
var i,
|
|
200
|
-
return h(),
|
|
201
|
-
key:
|
|
202
|
-
isDraggable: !s(l).isReadOnly && ((
|
|
203
|
-
isDroppable:
|
|
204
|
-
item:
|
|
202
|
+
(h(!0), k(N, null, ce(s(T), (t) => {
|
|
203
|
+
var i, o;
|
|
204
|
+
return h(), R(Ce, {
|
|
205
|
+
key: t.uid,
|
|
206
|
+
isDraggable: !s(l).isReadOnly && ((o = (i = t.spec) == null ? void 0 : i.info) == null ? void 0 : o.title) !== "Drafts",
|
|
207
|
+
isDroppable: oe,
|
|
208
|
+
item: t,
|
|
205
209
|
parentUids: [],
|
|
206
210
|
onOnDragEnd: te
|
|
207
211
|
}, {
|
|
208
212
|
leftIcon: p(() => [
|
|
209
|
-
c(s(
|
|
213
|
+
c(s(B), {
|
|
210
214
|
class: "text-sidebar-c-2 text-sm group-hover:hidden",
|
|
211
215
|
icon: "CodeFolder",
|
|
212
216
|
size: "sm",
|
|
@@ -214,10 +218,10 @@ ${e}`, "error"), k.emit("abort");
|
|
|
214
218
|
}),
|
|
215
219
|
v("div", {
|
|
216
220
|
class: b({
|
|
217
|
-
"rotate-90": s(Y)[
|
|
221
|
+
"rotate-90": s(Y)[t.uid]
|
|
218
222
|
})
|
|
219
223
|
}, [
|
|
220
|
-
c(s(
|
|
224
|
+
c(s(B), {
|
|
221
225
|
class: "text-c-3 hidden text-sm group-hover:block",
|
|
222
226
|
icon: "ChevronRight",
|
|
223
227
|
size: "sm"
|
|
@@ -230,54 +234,54 @@ ${e}`, "error"), k.emit("abort");
|
|
|
230
234
|
], 34)
|
|
231
235
|
]),
|
|
232
236
|
button: p(() => [
|
|
233
|
-
s(l).isReadOnly ?
|
|
237
|
+
s(l).isReadOnly ? U("", !0) : (h(), R(xe, {
|
|
234
238
|
key: 0,
|
|
235
239
|
class: b({
|
|
236
|
-
"empty-sidebar-item": s(
|
|
240
|
+
"empty-sidebar-item": s(K).length === 1
|
|
237
241
|
}),
|
|
238
|
-
click:
|
|
242
|
+
click: s(j).emit
|
|
239
243
|
}, {
|
|
240
244
|
title: p(() => [
|
|
241
|
-
|
|
245
|
+
ue("Add Item")
|
|
242
246
|
]),
|
|
243
247
|
_: 1
|
|
244
|
-
}, 8, ["class"]))
|
|
248
|
+
}, 8, ["class", "click"]))
|
|
245
249
|
]),
|
|
246
250
|
_: 2
|
|
247
251
|
}, [
|
|
248
252
|
s(l).isReadOnly ? void 0 : {
|
|
249
253
|
name: "header",
|
|
250
254
|
fn: p(() => [
|
|
251
|
-
c(s(
|
|
255
|
+
c(s(qe))
|
|
252
256
|
]),
|
|
253
257
|
key: "0"
|
|
254
258
|
}
|
|
255
|
-
]), 1032, ["class"]), [
|
|
256
|
-
[
|
|
259
|
+
]), 1032, ["class", "showSideBar"]), [
|
|
260
|
+
[me, u.value]
|
|
257
261
|
]),
|
|
258
|
-
s(
|
|
262
|
+
s(y) ? (h(), R(ye, {
|
|
259
263
|
key: 0,
|
|
260
|
-
class: b(["flex-1", [
|
|
264
|
+
class: b(["flex-1", [u.value ? "sidebar-active-hide-layout" : ""]])
|
|
261
265
|
}, {
|
|
262
266
|
default: p(() => {
|
|
263
|
-
var
|
|
267
|
+
var t, i, o, a, n;
|
|
264
268
|
return [
|
|
265
|
-
c(
|
|
266
|
-
c(
|
|
267
|
-
response: (n = (a = (
|
|
269
|
+
c(_e),
|
|
270
|
+
c(ke, {
|
|
271
|
+
response: (n = (a = (t = s(f)) == null ? void 0 : t.history) == null ? void 0 : a[((o = (i = s(f)) == null ? void 0 : i.history) == null ? void 0 : o.length) - 1]) == null ? void 0 : n.response
|
|
268
272
|
}, null, 8, ["response"])
|
|
269
273
|
];
|
|
270
274
|
}),
|
|
271
275
|
_: 1
|
|
272
|
-
}, 8, ["class"])) :
|
|
276
|
+
}, 8, ["class"])) : U("", !0)
|
|
273
277
|
]),
|
|
274
278
|
_: 1
|
|
275
279
|
})
|
|
276
280
|
], 2),
|
|
277
|
-
c(
|
|
281
|
+
c(be, { modalState: s(M) }, null, 8, ["modalState"])
|
|
278
282
|
], 64));
|
|
279
283
|
}
|
|
280
284
|
});
|
|
281
285
|
export {
|
|
282
|
-
|
|
286
|
+
dt as default
|
|
283
287
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestSidebarItem.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebarItem.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestSidebarItem.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebarItem.vue"],"names":[],"mappings":"AAqeA,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,WAAW,EACjB,MAAM,mBAAmB,CAAA;AAC1B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iDAAiD,CAAA;AACjF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,6CAA6C,CAAA;AACzE,OAAO,KAAK,EACV,OAAO,EACP,cAAc,EACf,MAAM,2CAA2C,CAAA;AAkPlD,iBAAS,cAAc;gBA/MT,IAAI;;gBAAJ,IAAI;EA02BjB;AACD,QAAA,MAAM,eAAe;IAr4BjB;;;;OAIG;kBACW,OAAO;IACrB;;;;OAIG;kBACW,cAAc,CAAC,aAAa,CAAC;IAC3C,qEAAqE;gBACzD,MAAM,EAAE;UACd,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,cAAc;;;;;;;;IAdpD;;;;OAIG;kBACW,OAAO;IACrB;;;;OAIG;kBACW,cAAc,CAAC,aAAa,CAAC;IAC3C,qEAAqE;gBACzD,MAAM,EAAE;UACd,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,cAAc;;;;;;;;;iBATtC,OAAO;MAu4BvB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAC7C,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KAAC,CAAC,GACvC,CAAC,CAAC,CAAC,CAAC;CACP,CAAC;AAEN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AAExD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,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"}
|
|
@@ -2,7 +2,7 @@ import t from "./RequestSidebarItem.vue2.js";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-
|
|
5
|
+
const a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-846321e2"]]);
|
|
6
6
|
export {
|
|
7
7
|
a as default
|
|
8
8
|
};
|