@scalar/api-client 2.0.37 → 2.0.39
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 +28 -0
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +15 -12
- package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteExample.vue.js +47 -47
- package/dist/components/CommandPalette/CommandPaletteFolder.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteFolder.vue.js +11 -8
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +23 -20
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.js +7 -4
- 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 +84 -80
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInput.vue.js +2 -2
- package/dist/components/DataTable/DataTableInput.vue2.js +1 -1
- package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInputSelect.vue.js +1 -1
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.d.ts +2 -0
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.js +19 -15
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +5 -40
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.js +48 -2
- package/dist/components/Sidebar/SidebarListElement.vue.d.ts +2 -0
- package/dist/components/Sidebar/SidebarListElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarListElement.vue.js +2 -2
- package/dist/components/Sidebar/SidebarListElement.vue2.js +24 -22
- package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarListElementActions.vue.js +26 -25
- package/dist/components/SubpageHeader.vue.d.ts.map +1 -1
- package/dist/components/SubpageHeader.vue.js +5 -29
- package/dist/components/SubpageHeader.vue2.js +31 -2
- package/dist/layouts/App/create-api-client-app.d.ts +5 -5
- package/dist/layouts/Modal/create-api-client-modal.d.ts +10 -10
- package/dist/libs/create-client.d.ts +6 -5
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/store/workspace.d.ts +12 -12
- package/dist/store/workspace.d.ts.map +1 -1
- package/dist/store/workspace.js +185 -181
- package/dist/style.css +1 -1
- package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue2.js +46 -36
- package/dist/views/Environment/Environment.vue2.js +26 -26
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +37 -34
- package/dist/views/Request/RequestSection/RequestAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth.vue.js +5 -311
- package/dist/views/Request/RequestSection/RequestAuth.vue2.js +312 -2
- package/dist/views/Request/RequestSection/RequestSection.vue.js +19 -19
- package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItem.vue.js +3 -3
- package/dist/views/Request/RequestSidebarItem.vue2.js +122 -103
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts +8 -2
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue.js +5 -152
- package/dist/views/Request/RequestSidebarItemMenu.vue2.js +166 -2
- package/dist/views/Servers/Servers.vue2.js +17 -17
- package/package.json +6 -6
|
@@ -1,29 +1,32 @@
|
|
|
1
|
-
import { defineComponent as K, ref as u, computed as
|
|
2
|
-
import { useModal as
|
|
3
|
-
import { useMagicKeys as
|
|
4
|
-
import { useRouter as
|
|
5
|
-
import { isMacOS as
|
|
6
|
-
import { commandPaletteBus as
|
|
7
|
-
import { useWorkspace as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
const
|
|
1
|
+
import { defineComponent as K, ref as u, computed as N, onMounted as F, onBeforeUnmount as I, openBlock as a, createElementBlock as s, Fragment as d, withDirectives as k, createElementVNode as c, vShow as L, unref as p, createVNode as S, vModelText as q, renderList as V, toDisplayString as B, normalizeClass as T, createTextVNode as U, createCommentVNode as G, createBlock as H, resolveDynamicComponent as O } from "vue";
|
|
2
|
+
import { useModal as Q, ScalarIcon as g } from "@scalar/components";
|
|
3
|
+
import { useMagicKeys as j, whenever as b } from "@vueuse/core";
|
|
4
|
+
import { useRouter as J } from "vue-router";
|
|
5
|
+
import { isMacOS as X } from "@scalar/use-tooltip";
|
|
6
|
+
import { commandPaletteBus as M } from "../../libs/eventBusses/command-palette.js";
|
|
7
|
+
import { useWorkspace as Y } from "../../store/workspace.js";
|
|
8
|
+
import Z from "./CommandPaletteCollection.vue.js";
|
|
9
|
+
import ee from "./CommandPaletteExample.vue.js";
|
|
10
|
+
import oe from "./CommandPaletteFolder.vue.js";
|
|
11
|
+
import te from "./CommandPaletteImport.vue.js";
|
|
12
|
+
import ne from "./CommandPaletteRequest.vue.js";
|
|
13
|
+
import ae from "./CommandPaletteWorkspace.vue.js";
|
|
14
|
+
const le = { class: "commandmenu" }, re = { class: "bg-b-2 flex items-center rounded mb-2 pl-2 focus-within:bg-b-1 focus-within:shadow-border" }, se = { for: "commandmenu" }, me = ["onClick"], ce = {
|
|
15
|
+
key: 0,
|
|
16
|
+
class: "text-c-3 text-center text-sm p-2 pt-3"
|
|
17
|
+
}, ie = {
|
|
15
18
|
name: "TheCommandPalette"
|
|
16
|
-
},
|
|
17
|
-
"Import Collection":
|
|
18
|
-
"Create Request":
|
|
19
|
-
"Create Workspace":
|
|
20
|
-
"Add Folder":
|
|
21
|
-
"Create Collection":
|
|
22
|
-
"Add Example":
|
|
23
|
-
},
|
|
24
|
-
...
|
|
25
|
-
setup(
|
|
26
|
-
const
|
|
19
|
+
}, ue = {
|
|
20
|
+
"Import Collection": te,
|
|
21
|
+
"Create Request": ne,
|
|
22
|
+
"Create Workspace": ae,
|
|
23
|
+
"Add Folder": oe,
|
|
24
|
+
"Create Collection": Z,
|
|
25
|
+
"Add Example": ee
|
|
26
|
+
}, Se = /* @__PURE__ */ K({
|
|
27
|
+
...ie,
|
|
28
|
+
setup(de) {
|
|
29
|
+
const w = [
|
|
27
30
|
{
|
|
28
31
|
label: "Add to Request Sidebar",
|
|
29
32
|
commands: [
|
|
@@ -73,84 +76,84 @@ const ae = { class: "commandmenu" }, le = { class: "bg-b-2 flex items-center rou
|
|
|
73
76
|
}
|
|
74
77
|
]
|
|
75
78
|
}
|
|
76
|
-
],
|
|
77
|
-
() =>
|
|
79
|
+
], v = j(), l = Q(), { push: P } = J(), { activeWorkspace: W } = Y(), A = u(), i = u(""), m = u(null), o = u(-1), _ = u([]), f = N(
|
|
80
|
+
() => w.reduce((e, n) => {
|
|
78
81
|
const t = n.commands.filter(
|
|
79
82
|
(C) => C.name.toLowerCase().includes(i.value.toLowerCase())
|
|
80
83
|
);
|
|
81
84
|
return [...e, ...t];
|
|
82
85
|
}, [])
|
|
83
|
-
),
|
|
84
|
-
|
|
86
|
+
), h = () => {
|
|
87
|
+
l.hide(), i.value = "", m.value = null, window.removeEventListener("keydown", y, !0), o.value = -1;
|
|
85
88
|
};
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
}),
|
|
89
|
-
if (!
|
|
90
|
-
const e =
|
|
91
|
-
|
|
92
|
-
}),
|
|
89
|
+
b(v.escape, () => {
|
|
90
|
+
l.open && h();
|
|
91
|
+
}), b(v.enter, () => {
|
|
92
|
+
if (!l.open || o.value === -1) return;
|
|
93
|
+
const e = f.value[o.value];
|
|
94
|
+
$(e);
|
|
95
|
+
}), b(v.ArrowDown, () => {
|
|
93
96
|
var e;
|
|
94
|
-
|
|
97
|
+
l.open && (o.value < f.value.length - 1 ? o.value++ : o.value = 0, (e = _.value[o.value]) == null || e.scrollIntoView({
|
|
95
98
|
behavior: "smooth",
|
|
96
99
|
block: "center"
|
|
97
100
|
}));
|
|
98
|
-
}),
|
|
101
|
+
}), b(v.ArrowUp, () => {
|
|
99
102
|
var e;
|
|
100
|
-
|
|
103
|
+
l.open && (o.value > 0 ? o.value-- : o.value = f.value.length - 1, (e = _.value[o.value]) == null || e.scrollIntoView({
|
|
101
104
|
behavior: "smooth",
|
|
102
105
|
block: "center"
|
|
103
106
|
}));
|
|
104
107
|
});
|
|
105
|
-
const
|
|
106
|
-
"path" in e ? (
|
|
108
|
+
const $ = (e) => {
|
|
109
|
+
"path" in e ? (P(`/workspace/${W.value.uid}${e.path}`), h()) : m.value = e.name;
|
|
107
110
|
}, D = u(), R = ({
|
|
108
111
|
commandName: e,
|
|
109
112
|
metaData: n
|
|
110
113
|
} = {}) => {
|
|
111
114
|
var t;
|
|
112
|
-
|
|
115
|
+
m.value = e ?? null, A.value = n, l.show(), (t = D.value) == null || t.focus(), window.addEventListener("keydown", y, !0);
|
|
113
116
|
};
|
|
114
|
-
|
|
115
|
-
const z = (e) =>
|
|
116
|
-
z(e) && !
|
|
117
|
+
F(() => M.on(R)), I(() => M.off(R));
|
|
118
|
+
const z = (e) => X() ? e.metaKey && e.key === "Enter" : e.ctrlKey && e.key === "Enter", y = (e) => {
|
|
119
|
+
z(e) && !m.value && (e.stopPropagation(), e.preventDefault());
|
|
117
120
|
};
|
|
118
121
|
return I(() => {
|
|
119
122
|
window.removeEventListener("keydown", y, !0);
|
|
120
|
-
}), (e, n) => (
|
|
121
|
-
|
|
123
|
+
}), (e, n) => (a(), s(d, null, [
|
|
124
|
+
k(c("div", {
|
|
122
125
|
class: "commandmenu-clickout",
|
|
123
|
-
onClick: n[0] || (n[0] = (t) =>
|
|
126
|
+
onClick: n[0] || (n[0] = (t) => h())
|
|
124
127
|
}, null, 512), [
|
|
125
|
-
[L, p(
|
|
128
|
+
[L, p(l).open]
|
|
126
129
|
]),
|
|
127
|
-
|
|
128
|
-
|
|
130
|
+
k(c("div", le, [
|
|
131
|
+
m.value ? (a(), s(d, { key: 1 }, [
|
|
129
132
|
c("button", {
|
|
130
133
|
class: "absolute p-1 hover:bg-b-3 rounded text-c-3 active:text-c-1 m-1.5 z-10",
|
|
131
134
|
type: "button",
|
|
132
|
-
onClick: n[2] || (n[2] = (t) =>
|
|
135
|
+
onClick: n[2] || (n[2] = (t) => m.value = null)
|
|
133
136
|
}, [
|
|
134
|
-
S(p(
|
|
137
|
+
S(p(g), {
|
|
135
138
|
icon: "ChevronLeft",
|
|
136
139
|
size: "sm"
|
|
137
140
|
})
|
|
138
141
|
]),
|
|
139
|
-
(
|
|
140
|
-
metaData:
|
|
141
|
-
onClose:
|
|
142
|
+
(a(), H(O(ue[m.value]), {
|
|
143
|
+
metaData: A.value,
|
|
144
|
+
onClose: h
|
|
142
145
|
}, null, 40, ["metaData"]))
|
|
143
|
-
], 64)) : (
|
|
144
|
-
c("div",
|
|
145
|
-
c("label",
|
|
146
|
-
S(p(
|
|
146
|
+
], 64)) : (a(), s(d, { key: 0 }, [
|
|
147
|
+
c("div", re, [
|
|
148
|
+
c("label", se, [
|
|
149
|
+
S(p(g), {
|
|
147
150
|
class: "text-c-1 mr-2.5",
|
|
148
151
|
icon: "Search",
|
|
149
152
|
size: "sm",
|
|
150
153
|
thickness: "1.5"
|
|
151
154
|
})
|
|
152
155
|
]),
|
|
153
|
-
|
|
156
|
+
k(c("input", {
|
|
154
157
|
id: "commandmenu",
|
|
155
158
|
ref_key: "commandInputRef",
|
|
156
159
|
ref: D,
|
|
@@ -161,50 +164,51 @@ const ae = { class: "commandmenu" }, le = { class: "bg-b-2 flex items-center rou
|
|
|
161
164
|
placeholder: "Search commands...",
|
|
162
165
|
type: "text"
|
|
163
166
|
}, null, 512), [
|
|
164
|
-
[
|
|
167
|
+
[q, i.value]
|
|
165
168
|
])
|
|
166
169
|
]),
|
|
167
|
-
(
|
|
170
|
+
(a(), s(d, null, V(w, (t, C) => (a(), s(d, {
|
|
168
171
|
key: t.label
|
|
169
172
|
}, [
|
|
170
|
-
|
|
173
|
+
k(c("div", { class: "text-c-3 font-medium text-xs mt-2" }, B(t.label), 513), [
|
|
171
174
|
[
|
|
172
175
|
L,
|
|
173
176
|
t.commands.filter(
|
|
174
|
-
(
|
|
177
|
+
(r) => r.name.toLowerCase().includes(i.value.toLowerCase())
|
|
175
178
|
).length > 0
|
|
176
179
|
]
|
|
177
180
|
]),
|
|
178
|
-
(
|
|
179
|
-
(
|
|
180
|
-
), (
|
|
181
|
-
key:
|
|
181
|
+
(a(!0), s(d, null, V(t.commands.filter(
|
|
182
|
+
(r) => r.name.toLowerCase().includes(i.value.toLowerCase())
|
|
183
|
+
), (r, x) => (a(), s("div", {
|
|
184
|
+
key: r.name,
|
|
182
185
|
ref_for: !0,
|
|
183
186
|
ref: (E) => {
|
|
184
|
-
E && (
|
|
187
|
+
E && (_.value[x] = E);
|
|
185
188
|
},
|
|
186
189
|
class: T(["commandmenu-item text-sm flex items-center py-1.5 px-2 rounded hover:bg-b-2 cursor-pointer", {
|
|
187
|
-
"bg-b-2": C > 0 ? o.value === x +
|
|
190
|
+
"bg-b-2": C > 0 ? o.value === x + w[C - 1].commands.length : o.value === x
|
|
188
191
|
}]),
|
|
189
|
-
onClick: (E) =>
|
|
192
|
+
onClick: (E) => $(r)
|
|
190
193
|
}, [
|
|
191
|
-
S(p(
|
|
194
|
+
S(p(g), {
|
|
192
195
|
class: "text-c-1 mr-2.5",
|
|
193
|
-
icon:
|
|
196
|
+
icon: r.icon,
|
|
194
197
|
size: "md",
|
|
195
198
|
thickness: "1.5"
|
|
196
199
|
}, null, 8, ["icon"]),
|
|
197
|
-
U(" " +
|
|
198
|
-
], 10,
|
|
199
|
-
], 64))), 64))
|
|
200
|
+
U(" " + B(r.name), 1)
|
|
201
|
+
], 10, me))), 128))
|
|
202
|
+
], 64))), 64)),
|
|
203
|
+
f.value.length ? G("", !0) : (a(), s("div", ce, " No commands found "))
|
|
200
204
|
], 64))
|
|
201
205
|
], 512), [
|
|
202
|
-
[L, p(
|
|
206
|
+
[L, p(l).open]
|
|
203
207
|
])
|
|
204
208
|
], 64));
|
|
205
209
|
}
|
|
206
210
|
});
|
|
207
211
|
export {
|
|
208
|
-
|
|
209
|
-
|
|
212
|
+
ue as PaletteComponents,
|
|
213
|
+
Se as default
|
|
210
214
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTableInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInput.vue"],"names":[],"mappings":"AAwNA,iBAAS,cAAc;
|
|
1
|
+
{"version":3,"file":"DataTableInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInput.vue"],"names":[],"mappings":"AAwNA,iBAAS,cAAc;qBAiKM,GAAG;qBACF,GAAG;kBACN,GAAG;EAuB7B;AACD,QAAA,MAAM,eAAe;SAjQZ,MAAM;WACJ,MAAM;IACb,sEAAsE;qBACrD,MAAM;eACZ,OAAO;gBACN,MAAM,GAAG,MAAM;IAC3B,0EAA0E;4BAClD,OAAO;eACpB,OAAO;WACX,MAAM,EAAE;UACT,MAAM;UACN,MAAM;;;;;;;;;;;SAXP,MAAM;WACJ,MAAM;IACb,sEAAsE;qBACrD,MAAM;eACZ,OAAO;gBACN,MAAM,GAAG,MAAM;IAC3B,0EAA0E;4BAClD,OAAO;eACpB,OAAO;WACX,MAAM,EAAE;UACT,MAAM;UACN,MAAM;;;;;;;;;;;cAPD,OAAO;2BAGM,OAAO;cACpB,OAAO;MAgQpB,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"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./DataTableInput.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const e = /* @__PURE__ */ o(t, [["__scopeId", "data-v-e4703b01"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default
|
|
7
7
|
};
|
|
@@ -54,7 +54,7 @@ const F = {
|
|
|
54
54
|
m("input", $(e.$attrs, {
|
|
55
55
|
id: e.id,
|
|
56
56
|
autocomplete: "off",
|
|
57
|
-
class: "border-none
|
|
57
|
+
class: "border-none text-c-1 min-w-0 w-full peer px-2 py-1.5 outline-none",
|
|
58
58
|
"data-1p-ignore": "",
|
|
59
59
|
max: e.max,
|
|
60
60
|
min: e.min,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTableInputSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInputSelect.vue"],"names":[],"mappings":";gBA+IgB,MAAM,GAAG,MAAM;YACnB,MAAM,EAAE;wBACI,OAAO;;;;;;gBAFf,MAAM,GAAG,MAAM;YACnB,MAAM,EAAE;wBACI,OAAO;;;;;;uBAAP,OAAO;;
|
|
1
|
+
{"version":3,"file":"DataTableInputSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInputSelect.vue"],"names":[],"mappings":";gBA+IgB,MAAM,GAAG,MAAM;YACnB,MAAM,EAAE;wBACI,OAAO;;;;;;gBAFf,MAAM,GAAG,MAAM;YACnB,MAAM,EAAE;wBACI,OAAO;;;;;;uBAAP,OAAO;;AAkU/B,wBAOG;AAOH,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,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"}
|
|
@@ -31,7 +31,7 @@ const U = { class: "w-full" }, W = { class: "flex items-center justify-center h-
|
|
|
31
31
|
ref_key: "inputRef",
|
|
32
32
|
ref: x,
|
|
33
33
|
"onUpdate:modelValue": u[0] || (u[0] = (t) => a.value = t),
|
|
34
|
-
class: "border-none
|
|
34
|
+
class: "border-none text-c-1 min-w-0 w-full px-2 py-1.5 outline-none",
|
|
35
35
|
placeholder: "Value",
|
|
36
36
|
type: "text",
|
|
37
37
|
onBlur: B,
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
2
2
|
variableName: string;
|
|
3
|
+
warningMessage?: string;
|
|
3
4
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
4
5
|
close: () => void;
|
|
5
6
|
delete: () => void;
|
|
6
7
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
7
8
|
variableName: string;
|
|
9
|
+
warningMessage?: string;
|
|
8
10
|
}>>> & {
|
|
9
11
|
onClose?: (() => any) | undefined;
|
|
10
12
|
onDelete?: (() => any) | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeleteSidebarListElement.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Sidebar/Actions/DeleteSidebarListElement.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"DeleteSidebarListElement.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Sidebar/Actions/DeleteSidebarListElement.vue"],"names":[],"mappings":";kBAqCgB,MAAM;qBACH,MAAM;;;;;kBADT,MAAM;qBACH,MAAM;;;;;AAkGzB,wBAOG;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,29 +1,33 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as i, openBlock as a, createBlock as l, withCtx as s, createElementBlock as m, toDisplayString as c, createCommentVNode as d } from "vue";
|
|
2
|
+
import p from "./SidebarListElementForm.vue.js";
|
|
3
|
+
const b = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "text-c-3 font-medium text-xs mb-2"
|
|
6
|
+
}, k = /* @__PURE__ */ i({
|
|
4
7
|
__name: "DeleteSidebarListElement",
|
|
5
8
|
props: {
|
|
6
|
-
variableName: {}
|
|
9
|
+
variableName: {},
|
|
10
|
+
warningMessage: {}
|
|
7
11
|
},
|
|
8
12
|
emits: ["close", "delete"],
|
|
9
|
-
setup(u, { emit:
|
|
10
|
-
const
|
|
11
|
-
async function
|
|
12
|
-
|
|
13
|
+
setup(u, { emit: o }) {
|
|
14
|
+
const t = o;
|
|
15
|
+
async function r() {
|
|
16
|
+
t("delete");
|
|
13
17
|
}
|
|
14
|
-
return (
|
|
18
|
+
return (e, n) => (a(), l(p, {
|
|
15
19
|
danger: "",
|
|
16
|
-
label: `Delete ${
|
|
17
|
-
onCancel:
|
|
18
|
-
onSubmit:
|
|
20
|
+
label: `Delete ${e.variableName}`,
|
|
21
|
+
onCancel: n[0] || (n[0] = (f) => t("close")),
|
|
22
|
+
onSubmit: r
|
|
19
23
|
}, {
|
|
20
|
-
default:
|
|
21
|
-
p
|
|
24
|
+
default: s(() => [
|
|
25
|
+
e.warningMessage ? (a(), m("p", b, c(e.warningMessage), 1)) : d("", !0)
|
|
22
26
|
]),
|
|
23
27
|
_: 1
|
|
24
28
|
}, 8, ["label"]));
|
|
25
29
|
}
|
|
26
30
|
});
|
|
27
31
|
export {
|
|
28
|
-
|
|
32
|
+
k as default
|
|
29
33
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarListElementForm.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Sidebar/Actions/SidebarListElementForm.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SidebarListElementForm.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Sidebar/Actions/SidebarListElementForm.vue"],"names":[],"mappings":"AA4EA,iBAAS,cAAc;qBA0FM,GAAG;EAiB/B;AACD,QAAA,MAAM,eAAe;aA5HV,OAAO;YACR,MAAM;;;;;aADL,OAAO;YACR,MAAM;;;;UAkId,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;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"}
|
|
@@ -1,42 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
props: {
|
|
6
|
-
danger: { type: Boolean },
|
|
7
|
-
label: {}
|
|
8
|
-
},
|
|
9
|
-
emits: ["cancel", "submit"],
|
|
10
|
-
setup(v, { emit: s }) {
|
|
11
|
-
const o = s;
|
|
12
|
-
return (t, e) => (p(), u("form", {
|
|
13
|
-
class: "flex flex-col gap-6 text-base",
|
|
14
|
-
onSubmit: e[1] || (e[1] = f((m) => o("submit"), ["prevent"]))
|
|
15
|
-
}, [
|
|
16
|
-
c(t.$slots, "default"),
|
|
17
|
-
b("div", g, [
|
|
18
|
-
r(n(i), {
|
|
19
|
-
variant: "outlined",
|
|
20
|
-
onClick: e[0] || (e[0] = (m) => o("cancel"))
|
|
21
|
-
}, {
|
|
22
|
-
default: l(() => [
|
|
23
|
-
a(" Cancel ")
|
|
24
|
-
]),
|
|
25
|
-
_: 1
|
|
26
|
-
}),
|
|
27
|
-
r(n(i), {
|
|
28
|
-
error: t.danger,
|
|
29
|
-
type: "submit"
|
|
30
|
-
}, {
|
|
31
|
-
default: l(() => [
|
|
32
|
-
a(S(t.label ?? "Submit"), 1)
|
|
33
|
-
]),
|
|
34
|
-
_: 1
|
|
35
|
-
}, 8, ["error"])
|
|
36
|
-
])
|
|
37
|
-
], 32));
|
|
38
|
-
}
|
|
39
|
-
});
|
|
1
|
+
import o from "./SidebarListElementForm.vue2.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-e58070fb"]]);
|
|
40
5
|
export {
|
|
41
|
-
|
|
6
|
+
a as default
|
|
42
7
|
};
|
|
@@ -1,4 +1,50 @@
|
|
|
1
|
-
import f from "
|
|
1
|
+
import { defineComponent as c, openBlock as m, createElementBlock as p, withModifiers as b, renderSlot as f, createElementVNode as n, createVNode as r, unref as s, createTextVNode as l, toDisplayString as d } from "vue";
|
|
2
|
+
import { ScalarIcon as i } from "@scalar/components";
|
|
3
|
+
const g = ["error"], S = /* @__PURE__ */ c({
|
|
4
|
+
__name: "SidebarListElementForm",
|
|
5
|
+
props: {
|
|
6
|
+
danger: { type: Boolean },
|
|
7
|
+
label: {}
|
|
8
|
+
},
|
|
9
|
+
emits: ["cancel", "submit"],
|
|
10
|
+
setup(x, { emit: u }) {
|
|
11
|
+
const o = u;
|
|
12
|
+
return (t, e) => (m(), p("form", {
|
|
13
|
+
class: "text-base",
|
|
14
|
+
onSubmit: e[1] || (e[1] = b((a) => o("submit"), ["prevent"]))
|
|
15
|
+
}, [
|
|
16
|
+
f(t.$slots, "default", {}, void 0, !0),
|
|
17
|
+
n("div", null, [
|
|
18
|
+
n("button", {
|
|
19
|
+
class: "w-full text-left focus:bg-b-2 hover:bg-b-2 rounded gap-1.5 px-2.5 py-1.5 focus:outline-none flex items-center cursor-pointer",
|
|
20
|
+
type: "button",
|
|
21
|
+
onClick: e[0] || (e[0] = (a) => o("cancel"))
|
|
22
|
+
}, [
|
|
23
|
+
r(s(i), {
|
|
24
|
+
class: "inline-flex",
|
|
25
|
+
icon: "Close",
|
|
26
|
+
size: "sm",
|
|
27
|
+
thickness: "1.75"
|
|
28
|
+
}),
|
|
29
|
+
l(" Cancel ")
|
|
30
|
+
]),
|
|
31
|
+
n("button", {
|
|
32
|
+
class: "w-full text-left focus:bg-b-2 hover:bg-b-2 rounded gap-1.5 px-2.5 py-1.5 focus:outline-none flex items-center cursor-pointer delete-warning-button",
|
|
33
|
+
error: t.danger,
|
|
34
|
+
type: "submit"
|
|
35
|
+
}, [
|
|
36
|
+
r(s(i), {
|
|
37
|
+
class: "inline-flex",
|
|
38
|
+
icon: "Trash",
|
|
39
|
+
size: "sm",
|
|
40
|
+
thickness: "1.5"
|
|
41
|
+
}),
|
|
42
|
+
l(" " + d(t.label ?? "Submit"), 1)
|
|
43
|
+
], 8, g)
|
|
44
|
+
])
|
|
45
|
+
], 32));
|
|
46
|
+
}
|
|
47
|
+
});
|
|
2
48
|
export {
|
|
3
|
-
|
|
49
|
+
S as default
|
|
4
50
|
};
|
|
@@ -5,6 +5,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
|
5
5
|
color?: string;
|
|
6
6
|
isDefault?: boolean;
|
|
7
7
|
};
|
|
8
|
+
warningMessage?: string;
|
|
8
9
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
10
|
delete: (id: string) => void;
|
|
10
11
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
@@ -14,6 +15,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
|
14
15
|
color?: string;
|
|
15
16
|
isDefault?: boolean;
|
|
16
17
|
};
|
|
18
|
+
warningMessage?: string;
|
|
17
19
|
}>>> & {
|
|
18
20
|
onDelete?: ((id: string) => any) | undefined;
|
|
19
21
|
}, {}, {}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarListElement.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarListElement.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"SidebarListElement.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarListElement.vue"],"names":[],"mappings":";cAqEY;QACR,GAAG,EAAE,MAAM,CAAA;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,KAAK,CAAC,EAAE,MAAM,CAAA;QACd,SAAS,CAAC,EAAE,OAAO,CAAA;KACpB;qBACgB,MAAM;;;;cANb;QACR,GAAG,EAAE,MAAM,CAAA;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,KAAK,CAAC,EAAE,MAAM,CAAA;QACd,SAAS,CAAC,EAAE,OAAO,CAAA;KACpB;qBACgB,MAAM;;;;AAmJzB,wBAOG;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,7 +1,7 @@
|
|
|
1
1
|
import t from "./SidebarListElement.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-b1d16830"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -1,42 +1,44 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import { useRouter as
|
|
1
|
+
import { defineComponent as b, resolveComponent as c, openBlock as o, createElementBlock as t, createVNode as n, normalizeClass as r, withModifiers as v, withCtx as f, createElementVNode as g, createCommentVNode as k, createTextVNode as w, toDisplayString as h } from "vue";
|
|
2
|
+
import C from "./SidebarListElementActions.vue.js";
|
|
3
|
+
import { useRouter as _ } from "vue-router";
|
|
4
4
|
const y = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "hover:bg-b-3 rounded p-1.5",
|
|
7
7
|
type: "button"
|
|
8
|
-
},
|
|
8
|
+
}, E = /* @__PURE__ */ b({
|
|
9
9
|
__name: "SidebarListElement",
|
|
10
10
|
props: {
|
|
11
|
-
variable: {}
|
|
11
|
+
variable: {},
|
|
12
|
+
warningMessage: {}
|
|
12
13
|
},
|
|
13
14
|
emits: ["delete"],
|
|
14
|
-
setup(D, { emit:
|
|
15
|
-
const i =
|
|
16
|
-
e.metaKey ? window.open(
|
|
15
|
+
setup(D, { emit: l }) {
|
|
16
|
+
const i = l, s = _(), m = (e, a) => {
|
|
17
|
+
e.metaKey ? window.open(a, "_blank") : s.push(a);
|
|
17
18
|
}, u = (e) => {
|
|
18
19
|
i("delete", e);
|
|
19
20
|
};
|
|
20
|
-
return (e,
|
|
21
|
-
const d =
|
|
22
|
-
return
|
|
23
|
-
|
|
24
|
-
class:
|
|
21
|
+
return (e, a) => {
|
|
22
|
+
const d = c("router-link");
|
|
23
|
+
return o(), t("li", null, [
|
|
24
|
+
n(d, {
|
|
25
|
+
class: r(["text-c-2 hover:bg-b-2 group relative block flex items-center gap-1 rounded py-1 pr-2 font-medium no-underline", [e.variable.color ? "pl-1" : "pl-2"]]),
|
|
25
26
|
exactActiveClass: "active-link",
|
|
26
27
|
to: `${e.variable.uid}`,
|
|
27
|
-
onClick:
|
|
28
|
+
onClick: a[0] || (a[0] = v((p) => m(p, e.variable.uid), ["prevent"]))
|
|
28
29
|
}, {
|
|
29
30
|
default: f(() => [
|
|
30
|
-
e.variable.color ? (
|
|
31
|
-
|
|
32
|
-
class:
|
|
31
|
+
e.variable.color ? (o(), t("button", y, [
|
|
32
|
+
g("div", {
|
|
33
|
+
class: r(["h-2.5 w-2.5 rounded-xl", `bg-${e.variable.color}`])
|
|
33
34
|
}, null, 2)
|
|
34
|
-
])) :
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
])) : k("", !0),
|
|
36
|
+
w(" " + h(e.variable.name) + " ", 1),
|
|
37
|
+
n(C, {
|
|
37
38
|
variable: { ...e.variable, isDefault: e.variable.isDefault ?? !1 },
|
|
39
|
+
warningMessage: e.warningMessage,
|
|
38
40
|
onDelete: u
|
|
39
|
-
}, null, 8, ["variable"])
|
|
41
|
+
}, null, 8, ["variable", "warningMessage"])
|
|
40
42
|
]),
|
|
41
43
|
_: 1
|
|
42
44
|
}, 8, ["class", "to"])
|
|
@@ -45,5 +47,5 @@ const y = {
|
|
|
45
47
|
}
|
|
46
48
|
});
|
|
47
49
|
export {
|
|
48
|
-
|
|
50
|
+
E as default
|
|
49
51
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarListElementActions.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarListElementActions.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"SidebarListElementActions.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarListElementActions.vue"],"names":[],"mappings":";cAoFY;QACR,GAAG,EAAE,MAAM,CAAA;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,SAAS,EAAE,OAAO,CAAA;KACnB;;;;cAJS;QACR,GAAG,EAAE,MAAM,CAAA;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,SAAS,EAAE,OAAO,CAAA;KACnB;;;;AAiLH,wBAOG;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"}
|