@scalar/api-client 2.0.50 → 2.0.52
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 +24 -0
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.js +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +105 -99
- package/dist/components/ScalarHotkey.vue.d.ts.map +1 -1
- package/dist/components/ScalarHotkey.vue.js +4 -4
- package/dist/components/Sidebar/Sidebar.vue.d.ts +4 -8
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.js +32 -43
- package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNav.vue.js +2 -2
- package/dist/components/TopNav/TopNav.vue2.js +36 -32
- package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
- package/dist/layouts/App/ApiClientApp.vue.js +1 -1
- package/dist/layouts/App/create-api-client-app.d.ts +15 -13
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.d.ts +30 -26
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +15 -13
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/event-busses/hot-keys-bus.d.ts +3 -3
- package/dist/libs/event-busses/hot-keys-bus.d.ts.map +1 -1
- package/dist/libs/event-busses/hot-keys-bus.js +45 -15
- package/dist/libs/local-storage.js +1 -1
- package/dist/store/workspace.d.ts +186 -94
- package/dist/store/workspace.d.ts.map +1 -1
- package/dist/store/workspace.js +117 -113
- 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 +62 -62
- 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 +205 -199
- package/package.json +4 -4
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import { PathId as
|
|
4
|
-
import { useWorkspace as
|
|
5
|
-
import { useModal as
|
|
6
|
-
import { Draggable as
|
|
7
|
-
import { useRouter as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { useSidebar as
|
|
11
|
-
const
|
|
1
|
+
import { defineComponent as fe, useCssVars as ce, computed as n, ref as H, resolveComponent as ve, openBlock as m, createElementBlock as M, Fragment as G, createElementVNode as l, normalizeClass as v, unref as i, createVNode as o, withCtx as d, createBlock as b, toDisplayString as J, createCommentVNode as y, createTextVNode as D, renderSlot as be, withDirectives as ge, renderList as he, vShow as Ue, withKeys as we, withModifiers as ye, pushScopeId as De, popScopeId as ke } from "vue";
|
|
2
|
+
import qe from "../../components/Sidebar/Actions/DeleteSidebarListElement.vue.js";
|
|
3
|
+
import { PathId as I } from "../../router.js";
|
|
4
|
+
import { useWorkspace as Re } from "../../store/workspace.js";
|
|
5
|
+
import { useModal as Q, ScalarContextMenu as X, ScalarIcon as $e, ScalarModal as Y, ScalarTextField as xe, ScalarButton as Z } from "@scalar/components";
|
|
6
|
+
import { Draggable as Se } from "@scalar/draggable";
|
|
7
|
+
import { useRouter as Ce, RouterLink as Me } from "vue-router";
|
|
8
|
+
import q from "./RequestSidebarItemMenu.vue.js";
|
|
9
|
+
import Ie from "../../components/HttpMethod/HttpMethod.vue.js";
|
|
10
|
+
import { useSidebar as Te } from "../../hooks/useSidebar.js";
|
|
11
|
+
const Ee = (g) => (De("data-v-17dc8b59"), g = g(), ke(), g), ze = { class: "flex flex-row gap-1 items-center" }, Ne = { class: "relative" }, Ve = { class: "flex items-start" }, Oe = { class: "z-10 flex h-5 items-center justify-center max-w-[14px]" }, Be = { class: "flex flex-1 flex-row justify-between editable-sidebar-hover" }, Fe = { class: "relative flex h-fit" }, je = /* @__PURE__ */ Ee(() => /* @__PURE__ */ l("span", null, " ", -1)), Ke = { key: 2 }, Le = { class: "flex gap-3" }, _ = "hover:bg-sidebar-active-b indent-padding-left", _e = /* @__PURE__ */ fe({
|
|
12
12
|
__name: "RequestSidebarItem",
|
|
13
13
|
props: {
|
|
14
14
|
isDraggable: { type: Boolean, default: !1 },
|
|
@@ -17,253 +17,259 @@ const Ie = (b) => (we("data-v-846321e2"), b = b(), ye(), b), Te = { class: "flex
|
|
|
17
17
|
item: {}
|
|
18
18
|
},
|
|
19
19
|
emits: ["onDragEnd"],
|
|
20
|
-
setup(
|
|
21
|
-
|
|
22
|
-
"
|
|
23
|
-
|
|
20
|
+
setup(g) {
|
|
21
|
+
ce((e) => ({
|
|
22
|
+
"4035a823": se.value,
|
|
23
|
+
d307928a: le.value
|
|
24
24
|
}));
|
|
25
|
-
const t =
|
|
26
|
-
activeRequest:
|
|
27
|
-
activeRouterParams:
|
|
28
|
-
activeWorkspace:
|
|
29
|
-
collections:
|
|
30
|
-
folders:
|
|
25
|
+
const t = g, {
|
|
26
|
+
activeRequest: T,
|
|
27
|
+
activeRouterParams: R,
|
|
28
|
+
activeWorkspace: h,
|
|
29
|
+
collections: E,
|
|
30
|
+
folders: ee,
|
|
31
31
|
isReadOnly: a,
|
|
32
|
-
requests:
|
|
33
|
-
requestExamples:
|
|
34
|
-
collectionMutators:
|
|
35
|
-
folderMutators:
|
|
36
|
-
requestMutators:
|
|
37
|
-
requestExampleMutators:
|
|
38
|
-
} =
|
|
32
|
+
requests: z,
|
|
33
|
+
requestExamples: $,
|
|
34
|
+
collectionMutators: N,
|
|
35
|
+
folderMutators: V,
|
|
36
|
+
requestMutators: O,
|
|
37
|
+
requestExampleMutators: B
|
|
38
|
+
} = Re(), { replace: F } = Ce(), { collapsedSidebarFolders: j, toggleSidebarFolder: te } = Te(), ie = n(() => "childUids" in t.item), K = n(() => "spec" in t.item), L = n(() => "summary" in t.item), se = n(() => t.parentUids.length ? a.value ? `${(t.parentUids.length - 1) * 12}px` : `${t.parentUids.length * 12}px` : "12px"), le = n(() => t.parentUids.length ? a.value ? `${(t.parentUids.length - 1) * 12}px` : `${t.parentUids.length * 12}px` : "0px"), x = (e) => {
|
|
39
39
|
var s;
|
|
40
40
|
return "spec" in e ? (s = e.spec.info) == null ? void 0 : s.title : "summary" in e ? e.summary || e.path : "name" in e ? e.name : "";
|
|
41
|
-
},
|
|
41
|
+
}, re = n(() => ("requestUid" in t.item ? z[t.item.requestUid] : t.item).method), ae = n(
|
|
42
42
|
() => {
|
|
43
43
|
var e;
|
|
44
|
-
return
|
|
44
|
+
return j[t.item.uid] || ((e = T.value) == null ? void 0 : e.uid) === t.item.uid && t.item.childUids.length > 1;
|
|
45
45
|
}
|
|
46
|
-
),
|
|
47
|
-
() =>
|
|
48
|
-
),
|
|
46
|
+
), ne = () => "requestUid" in t.item ? `/workspace/${h.value.uid}/request/${t.item.requestUid}/examples/${t.item.uid}` : `/workspace/${h.value.uid}/request/${t.item.uid}`, oe = n(
|
|
47
|
+
() => R.value[I.Request] === "default" && T.value.uid === t.item.uid
|
|
48
|
+
), S = H(null), W = n(() => {
|
|
49
49
|
let e = 0.5, s = 0.5;
|
|
50
|
-
if (!
|
|
51
|
-
const { draggingItem:
|
|
52
|
-
return !
|
|
53
|
-
}),
|
|
54
|
-
"summary" in t.item ?
|
|
55
|
-
},
|
|
56
|
-
|
|
57
|
-
},
|
|
58
|
-
"requestUid" in t.item ? (
|
|
50
|
+
if (!S.value) return { ceiling: e, floor: s };
|
|
51
|
+
const { draggingItem: w } = S.value;
|
|
52
|
+
return !E[w == null ? void 0 : w.id] && K.value ? (e = 1, s = 0) : ie.value && !L.value && !K.value && (e = 0.8, s = 0.2), { ceiling: e, floor: s };
|
|
53
|
+
}), de = (e, s) => !(h.value.isReadOnly || $[s.id] || E[e.id]), f = H(""), k = Q(), U = Q(), P = () => {
|
|
54
|
+
"summary" in t.item ? O.edit(t.item.uid, "summary", f.value) : "requestUid" in t.item ? B.edit(t.item.uid, "name", f.value) : "spec" in t.item ? N.edit(t.item.uid, "spec.info.title", f.value) : V.edit(t.item.uid, "name", f.value), k.hide();
|
|
55
|
+
}, C = () => {
|
|
56
|
+
f.value = x(t.item) || "", k.show();
|
|
57
|
+
}, ue = () => {
|
|
58
|
+
"requestUid" in t.item ? (B.delete(t.item), R.value[I.Examples] === t.item.uid && F(`/workspace/${h.value}/request/default`)) : "summary" in t.item ? (O.delete(
|
|
59
59
|
t.item,
|
|
60
60
|
t.parentUids[t.parentUids.length - 1]
|
|
61
|
-
),
|
|
61
|
+
), R.value[I.Request] === t.item.uid && F(`/workspace/${h.value.uid}/request/default`)) : "spec" in t.item ? N.delete(t.item) : "name" in t.item && V.delete(
|
|
62
62
|
t.item,
|
|
63
63
|
t.parentUids[t.parentUids.length - 1]
|
|
64
64
|
);
|
|
65
|
-
},
|
|
65
|
+
}, me = n(() => {
|
|
66
66
|
var e;
|
|
67
67
|
return "summary" in t.item ? t.item.summary || "" : "name" in t.item ? t.item.name || "" : "spec" in t.item && ((e = t.item.spec.info) == null ? void 0 : e.title) || "";
|
|
68
|
-
}),
|
|
68
|
+
}), c = n(() => "requestUid" in t.item ? "Example" : "summary" in t.item ? "Request" : "spec" in t.item ? "Collection" : "Folder");
|
|
69
69
|
return (e, s) => {
|
|
70
|
-
const
|
|
71
|
-
return m(),
|
|
72
|
-
|
|
73
|
-
class:
|
|
70
|
+
const w = ve("RequestSidebarItem", !0);
|
|
71
|
+
return m(), M(G, null, [
|
|
72
|
+
l("div", {
|
|
73
|
+
class: v(["relative flex flex-row", [
|
|
74
74
|
i(a) && e.parentUids.length > 1 || !i(a) && e.parentUids.length ? "before:bg-b-3 before:absolute before:left-[calc(.75rem_+_.5px)] before:top-0 before:z-10 before:h-[calc(100%_+_.5px)] last:before:h-full before:w-[.5px] mb-[.5px] last:mb-0 indent-border-line-offset" : ""
|
|
75
75
|
]])
|
|
76
76
|
}, [
|
|
77
|
-
o(i(
|
|
77
|
+
o(i(Se), {
|
|
78
78
|
id: e.item.uid,
|
|
79
79
|
ref_key: "draggableRef",
|
|
80
|
-
ref:
|
|
81
|
-
ceiling:
|
|
80
|
+
ref: S,
|
|
81
|
+
ceiling: W.value.ceiling,
|
|
82
82
|
class: "flex flex-1 flex-col gap-[.5px] text-sm",
|
|
83
|
-
floor:
|
|
83
|
+
floor: W.value.floor,
|
|
84
84
|
isDraggable: e.isDraggable,
|
|
85
85
|
isDroppable: e.isDroppable,
|
|
86
86
|
parentIds: e.parentUids,
|
|
87
|
-
onOnDragEnd: s[5] || (s[5] = (...
|
|
87
|
+
onOnDragEnd: s[5] || (s[5] = (...p) => e.$emit("onDragEnd", ...p))
|
|
88
88
|
}, {
|
|
89
|
-
default: d(() =>
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
89
|
+
default: d(() => {
|
|
90
|
+
var p, A;
|
|
91
|
+
return [
|
|
92
|
+
"summary" in e.item || "requestUid" in e.item ? (m(), b(i(Me), {
|
|
93
|
+
key: 0,
|
|
94
|
+
class: "no-underline",
|
|
95
|
+
to: ne()
|
|
96
|
+
}, {
|
|
97
|
+
default: d(({ isExactActive: r }) => [
|
|
98
|
+
o(i(X), { disabled: i(a) }, {
|
|
99
|
+
trigger: d(() => [
|
|
100
|
+
l("div", {
|
|
101
|
+
class: v(["group relative flex min-h-8 cursor-pointer flex-row items-start justify-between gap-2 py-1.5 pr-2 rounded editable-sidebar-hover w-full", [
|
|
102
|
+
_,
|
|
103
|
+
r || oe.value ? "bg-sidebar-active-b text-sidebar-active-c transition-none" : "text-sidebar-c-2"
|
|
104
|
+
]]),
|
|
105
|
+
tabindex: "0"
|
|
106
|
+
}, [
|
|
107
|
+
l("span", {
|
|
108
|
+
class: v(["z-10 font-medium w-full pl-2 word-break-break-word", {
|
|
109
|
+
"editable-sidebar-hover-item": !i(a)
|
|
110
|
+
}])
|
|
111
|
+
}, J(x(e.item)), 3),
|
|
112
|
+
l("div", ze, [
|
|
113
|
+
l("div", Ne, [
|
|
114
|
+
i(a) ? y("", !0) : (m(), b(q, {
|
|
115
|
+
key: 0,
|
|
116
|
+
item: e.item,
|
|
117
|
+
parentUids: e.parentUids,
|
|
118
|
+
resourceTitle: c.value,
|
|
119
|
+
onDelete: s[0] || (s[0] = (u) => i(U).show()),
|
|
120
|
+
onRename: C
|
|
121
|
+
}, null, 8, ["item", "parentUids", "resourceTitle"]))
|
|
122
|
+
]),
|
|
123
|
+
l("span", Ve, [
|
|
124
|
+
D(" "),
|
|
125
|
+
o(i(Ie), {
|
|
126
|
+
class: "font-bold",
|
|
127
|
+
method: re.value
|
|
128
|
+
}, null, 8, ["method"])
|
|
129
|
+
])
|
|
130
|
+
])
|
|
131
|
+
], 2)
|
|
132
|
+
]),
|
|
133
|
+
content: d(() => [
|
|
134
|
+
o(q, {
|
|
135
|
+
item: e.item,
|
|
136
|
+
parentUids: e.parentUids,
|
|
137
|
+
resourceTitle: c.value,
|
|
138
|
+
static: "",
|
|
139
|
+
onDelete: s[1] || (s[1] = (u) => i(U).show()),
|
|
140
|
+
onRename: C
|
|
141
|
+
}, null, 8, ["item", "parentUids", "resourceTitle"])
|
|
142
|
+
]),
|
|
143
|
+
_: 2
|
|
144
|
+
}, 1032, ["disabled"])
|
|
145
|
+
]),
|
|
146
|
+
_: 1
|
|
147
|
+
}, 8, ["to"])) : !i(a) || e.parentUids.length ? (m(), b(i(X), {
|
|
148
|
+
key: 1,
|
|
149
|
+
disabled: i(a) || ((A = (p = e.item.spec) == null ? void 0 : p.info) == null ? void 0 : A.title) === "Drafts"
|
|
150
|
+
}, {
|
|
151
|
+
trigger: d(() => {
|
|
152
|
+
var r, u;
|
|
153
|
+
return [
|
|
154
|
+
l("button", {
|
|
155
|
+
class: v(["hover:bg-b-2 group relative flex w-full flex-row justify-start gap-1.5 rounded p-1.5 z-[1]", _]),
|
|
156
|
+
type: "button",
|
|
157
|
+
onClick: s[2] || (s[2] = (pe) => i(te)(e.item.uid))
|
|
104
158
|
}, [
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
"
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
159
|
+
l("span", Oe, [
|
|
160
|
+
be(e.$slots, "leftIcon", {}, () => [
|
|
161
|
+
l("div", {
|
|
162
|
+
class: v({
|
|
163
|
+
"rotate-90": i(j)[e.item.uid]
|
|
164
|
+
})
|
|
165
|
+
}, [
|
|
166
|
+
o(i($e), {
|
|
167
|
+
class: "text-c-3 text-sm",
|
|
168
|
+
icon: "ChevronRight",
|
|
169
|
+
size: "sm",
|
|
170
|
+
thickness: "2.5"
|
|
171
|
+
})
|
|
172
|
+
], 2)
|
|
173
|
+
], !0),
|
|
174
|
+
D(" ")
|
|
175
|
+
]),
|
|
176
|
+
l("div", Be, [
|
|
177
|
+
l("span", {
|
|
178
|
+
class: v(["z-10 font-medium text-left w-full word-break-break-word", {
|
|
179
|
+
"editable-sidebar-hover-item": !i(a)
|
|
180
|
+
}])
|
|
181
|
+
}, J(x(e.item)), 3),
|
|
182
|
+
l("div", Fe, [
|
|
183
|
+
!i(a) && ((u = (r = e.item.spec) == null ? void 0 : r.info) == null ? void 0 : u.title) !== "Drafts" ? (m(), b(q, {
|
|
113
184
|
key: 0,
|
|
114
185
|
item: e.item,
|
|
115
186
|
parentUids: e.parentUids,
|
|
116
|
-
resourceTitle:
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
}, null, 8, ["item", "parentUids", "resourceTitle"]))
|
|
120
|
-
]),
|
|
121
|
-
r("span", ze, [
|
|
122
|
-
D(" "),
|
|
123
|
-
o(i(Ce), {
|
|
124
|
-
class: "font-bold",
|
|
125
|
-
method: se.value
|
|
126
|
-
}, null, 8, ["method"])
|
|
187
|
+
resourceTitle: c.value
|
|
188
|
+
}, null, 8, ["item", "parentUids", "resourceTitle"])) : y("", !0),
|
|
189
|
+
je
|
|
127
190
|
])
|
|
128
191
|
])
|
|
129
|
-
]
|
|
130
|
-
]
|
|
131
|
-
|
|
132
|
-
|
|
192
|
+
])
|
|
193
|
+
];
|
|
194
|
+
}),
|
|
195
|
+
content: d(() => {
|
|
196
|
+
var r, u;
|
|
197
|
+
return [
|
|
198
|
+
!i(a) && ((u = (r = e.item.spec) == null ? void 0 : r.info) == null ? void 0 : u.title) !== "Drafts" ? (m(), b(q, {
|
|
199
|
+
key: 0,
|
|
133
200
|
item: e.item,
|
|
134
201
|
parentUids: e.parentUids,
|
|
135
|
-
resourceTitle:
|
|
202
|
+
resourceTitle: c.value,
|
|
136
203
|
static: "",
|
|
137
|
-
onDelete: s[
|
|
138
|
-
onRename:
|
|
139
|
-
}, null, 8, ["item", "parentUids", "resourceTitle"])
|
|
140
|
-
]
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
r(
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
"rotate-90": i(F)[e.item.uid]
|
|
162
|
-
})
|
|
163
|
-
}, [
|
|
164
|
-
o(i(qe), {
|
|
165
|
-
class: "text-c-3 text-sm",
|
|
166
|
-
icon: "ChevronRight",
|
|
167
|
-
size: "sm",
|
|
168
|
-
thickness: "2.5"
|
|
169
|
-
})
|
|
170
|
-
], 2)
|
|
171
|
-
], !0),
|
|
172
|
-
D(" ")
|
|
173
|
-
]),
|
|
174
|
-
r("div", Ve, [
|
|
175
|
-
r("span", {
|
|
176
|
-
class: c(["z-10 font-medium text-left w-full word-break-break-word", {
|
|
177
|
-
"editable-sidebar-hover-item": !i(a)
|
|
178
|
-
}])
|
|
179
|
-
}, H($(e.item)), 3),
|
|
180
|
-
r("div", Oe, [
|
|
181
|
-
!i(a) && ((u = (l = e.item.spec) == null ? void 0 : l.info) == null ? void 0 : u.title) !== "Drafts" ? (m(), v(k, {
|
|
182
|
-
key: 0,
|
|
183
|
-
item: e.item,
|
|
184
|
-
parentUids: e.parentUids,
|
|
185
|
-
resourceTitle: f.value
|
|
186
|
-
}, null, 8, ["item", "parentUids", "resourceTitle"])) : w("", !0),
|
|
187
|
-
Be
|
|
188
|
-
])
|
|
189
|
-
])
|
|
190
|
-
])
|
|
191
|
-
];
|
|
192
|
-
}),
|
|
193
|
-
content: d(() => {
|
|
194
|
-
var l, u;
|
|
195
|
-
return [
|
|
196
|
-
!i(a) && ((u = (l = e.item.spec) == null ? void 0 : l.info) == null ? void 0 : u.title) !== "Drafts" ? (m(), v(k, {
|
|
197
|
-
key: 0,
|
|
198
|
-
item: e.item,
|
|
199
|
-
parentUids: e.parentUids,
|
|
200
|
-
resourceTitle: f.value,
|
|
201
|
-
static: "",
|
|
202
|
-
onDelete: s[3] || (s[3] = (ue) => i(h).show()),
|
|
203
|
-
onRename: S
|
|
204
|
-
}, null, 8, ["item", "parentUids", "resourceTitle"])) : w("", !0)
|
|
205
|
-
];
|
|
206
|
-
}),
|
|
207
|
-
_: 3
|
|
208
|
-
}, 8, ["disabled"])) : w("", !0),
|
|
209
|
-
"childUids" in e.item ? ve((m(), C("div", Fe, [
|
|
210
|
-
(m(!0), C(A, null, be(K.value ? e.item.childUids.slice(1) : e.item.childUids, (l) => (m(), v(U, {
|
|
211
|
-
key: l,
|
|
212
|
-
isDraggable: !i(R)[l],
|
|
213
|
-
isDroppable: ne,
|
|
214
|
-
item: i(Z)[l] || i(E)[l] || i(R)[l],
|
|
215
|
-
parentUids: [...e.parentUids, e.item.uid],
|
|
216
|
-
onOnDragEnd: s[4] || (s[4] = (...u) => e.$emit("onDragEnd", ...u))
|
|
217
|
-
}, null, 8, ["isDraggable", "item", "parentUids"]))), 128))
|
|
218
|
-
], 512)), [
|
|
219
|
-
[ge, le.value]
|
|
220
|
-
]) : w("", !0)
|
|
221
|
-
]),
|
|
204
|
+
onDelete: s[3] || (s[3] = (pe) => i(U).show()),
|
|
205
|
+
onRename: C
|
|
206
|
+
}, null, 8, ["item", "parentUids", "resourceTitle"])) : y("", !0)
|
|
207
|
+
];
|
|
208
|
+
}),
|
|
209
|
+
default: d(() => [
|
|
210
|
+
D(" > ")
|
|
211
|
+
]),
|
|
212
|
+
_: 3
|
|
213
|
+
}, 8, ["disabled"])) : y("", !0),
|
|
214
|
+
"childUids" in e.item ? ge((m(), M("div", Ke, [
|
|
215
|
+
(m(!0), M(G, null, he(L.value ? e.item.childUids.slice(1) : e.item.childUids, (r) => (m(), b(w, {
|
|
216
|
+
key: r,
|
|
217
|
+
isDraggable: !i($)[r],
|
|
218
|
+
isDroppable: de,
|
|
219
|
+
item: i(ee)[r] || i(z)[r] || i($)[r],
|
|
220
|
+
parentUids: [...e.parentUids, e.item.uid],
|
|
221
|
+
onOnDragEnd: s[4] || (s[4] = (...u) => e.$emit("onDragEnd", ...u))
|
|
222
|
+
}, null, 8, ["isDraggable", "item", "parentUids"]))), 128))
|
|
223
|
+
], 512)), [
|
|
224
|
+
[Ue, ae.value]
|
|
225
|
+
]) : y("", !0)
|
|
226
|
+
];
|
|
227
|
+
}),
|
|
222
228
|
_: 3
|
|
223
229
|
}, 8, ["id", "ceiling", "floor", "isDraggable", "isDroppable", "parentIds"])
|
|
224
230
|
], 2),
|
|
225
|
-
o(i(
|
|
231
|
+
o(i(Y), {
|
|
226
232
|
size: "sm",
|
|
227
|
-
state: i(
|
|
228
|
-
title: `Delete ${
|
|
233
|
+
state: i(U),
|
|
234
|
+
title: `Delete ${c.value}`
|
|
229
235
|
}, {
|
|
230
236
|
default: d(() => [
|
|
231
|
-
o(
|
|
232
|
-
variableName:
|
|
237
|
+
o(qe, {
|
|
238
|
+
variableName: me.value,
|
|
233
239
|
warningMessage: "Warning: Deleting this will delete all items inside of this",
|
|
234
|
-
onClose: s[6] || (s[6] = (
|
|
235
|
-
onDelete:
|
|
240
|
+
onClose: s[6] || (s[6] = (p) => i(U).hide()),
|
|
241
|
+
onDelete: ue
|
|
236
242
|
}, null, 8, ["variableName"])
|
|
237
243
|
]),
|
|
238
244
|
_: 1
|
|
239
245
|
}, 8, ["state", "title"]),
|
|
240
|
-
o(i(
|
|
241
|
-
state: i(
|
|
242
|
-
title: `Rename ${
|
|
246
|
+
o(i(Y), {
|
|
247
|
+
state: i(k),
|
|
248
|
+
title: `Rename ${c.value}`
|
|
243
249
|
}, {
|
|
244
250
|
default: d(() => [
|
|
245
|
-
o(i(
|
|
246
|
-
modelValue:
|
|
247
|
-
"onUpdate:modelValue": s[7] || (s[7] = (
|
|
248
|
-
label:
|
|
251
|
+
o(i(xe), {
|
|
252
|
+
modelValue: f.value,
|
|
253
|
+
"onUpdate:modelValue": s[7] || (s[7] = (p) => f.value = p),
|
|
254
|
+
label: c.value,
|
|
249
255
|
labelShadowColor: "var(--scalar-background-1)",
|
|
250
|
-
onKeydown:
|
|
256
|
+
onKeydown: we(ye(P, ["prevent"]), ["enter"])
|
|
251
257
|
}, null, 8, ["modelValue", "label", "onKeydown"]),
|
|
252
|
-
|
|
253
|
-
o(i(
|
|
258
|
+
l("div", Le, [
|
|
259
|
+
o(i(Z), {
|
|
254
260
|
class: "flex-1",
|
|
255
261
|
variant: "outlined",
|
|
256
|
-
onClick: s[8] || (s[8] = (
|
|
262
|
+
onClick: s[8] || (s[8] = (p) => i(k).hide())
|
|
257
263
|
}, {
|
|
258
264
|
default: d(() => [
|
|
259
265
|
D(" Cancel ")
|
|
260
266
|
]),
|
|
261
267
|
_: 1
|
|
262
268
|
}),
|
|
263
|
-
o(i(
|
|
269
|
+
o(i(Z), {
|
|
264
270
|
class: "flex-1",
|
|
265
271
|
type: "submit",
|
|
266
|
-
onClick:
|
|
272
|
+
onClick: P
|
|
267
273
|
}, {
|
|
268
274
|
default: d(() => [
|
|
269
275
|
D(" Save ")
|
|
@@ -279,5 +285,5 @@ const Ie = (b) => (we("data-v-846321e2"), b = b(), ye(), b), Te = { class: "flex
|
|
|
279
285
|
}
|
|
280
286
|
});
|
|
281
287
|
export {
|
|
282
|
-
|
|
288
|
+
_e as default
|
|
283
289
|
};
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"rest",
|
|
19
19
|
"testing"
|
|
20
20
|
],
|
|
21
|
-
"version": "2.0.
|
|
21
|
+
"version": "2.0.52",
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">=18"
|
|
24
24
|
},
|
|
@@ -127,11 +127,11 @@
|
|
|
127
127
|
"vue-router": "^4.3.0",
|
|
128
128
|
"whatwg-mimetype": "^4.0.0",
|
|
129
129
|
"zod": "^3.22.4",
|
|
130
|
-
"@scalar/components": "0.12.
|
|
130
|
+
"@scalar/components": "0.12.33",
|
|
131
131
|
"@scalar/draggable": "0.1.4",
|
|
132
|
-
"@scalar/oas-utils": "0.2.
|
|
132
|
+
"@scalar/oas-utils": "0.2.33",
|
|
133
|
+
"@scalar/themes": "0.9.24",
|
|
133
134
|
"@scalar/object-utils": "1.1.7",
|
|
134
|
-
"@scalar/themes": "0.9.23",
|
|
135
135
|
"@scalar/use-codemirror": "0.11.10",
|
|
136
136
|
"@scalar/use-toasts": "0.7.5",
|
|
137
137
|
"@scalar/use-tooltip": "1.0.2"
|