@scalar/api-client 2.2.55 → 2.2.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.
- package/CHANGELOG.md +39 -0
- package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBarHistory.vue.js +2 -2
- package/dist/components/AddressBar/AddressBarHistory.vue2.js +53 -54
- package/dist/components/CodeInput/CodeInput.vue.d.ts +1 -1
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +3 -19
- 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 +154 -129
- package/dist/components/DataTable/DataTableInput.vue.d.ts +4 -4
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarToggle.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarToggle.vue.js +17 -16
- package/dist/layouts/App/create-api-client-app.d.ts +62 -52
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.d.ts +120 -100
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.js +1 -2
- package/dist/layouts/Web/create-api-client-web.d.ts +62 -52
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +64 -58
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/create-client.js +82 -80
- package/dist/libs/extractAttachmentFilename.d.ts.map +1 -1
- package/dist/libs/extractAttachmentFilename.js +8 -7
- package/dist/libs/find-request.d.ts +1 -1
- package/dist/libs/find-request.d.ts.map +1 -1
- package/dist/libs/hot-keys.d.ts +1 -1
- package/dist/libs/hot-keys.d.ts.map +1 -1
- package/dist/libs/hot-keys.js +9 -8
- package/dist/libs/send-request/create-request-operation.test.d.ts +3 -2
- package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -1
- package/dist/store/active-entities.d.ts +4 -3
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/import-spec.d.ts +3 -3
- package/dist/store/import-spec.d.ts.map +1 -1
- package/dist/store/import-spec.js +4 -1
- package/dist/store/request-example.d.ts +22 -12
- package/dist/store/request-example.d.ts.map +1 -1
- package/dist/store/requests.d.ts +13 -13
- package/dist/store/requests.d.ts.map +1 -1
- package/dist/store/security-schemes.d.ts +6 -6
- package/dist/store/store.d.ts +92 -67
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/store.js +12 -12
- package/dist/store/workspace.d.ts +12 -12
- package/dist/store/workspace.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/views/Request/Request.vue.d.ts.map +1 -1
- package/dist/views/Request/Request.vue.js +2 -2
- package/dist/views/Request/RequestRoot.test.d.ts +2 -0
- package/dist/views/Request/RequestRoot.test.d.ts.map +1 -0
- package/dist/views/Request/RequestRoot.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestRoot.vue.js +2 -2
- package/dist/views/Request/RequestRoot.vue2.js +72 -60
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue2.js +113 -107
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestSection.vue2.js +37 -37
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +55 -51
- package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebar.vue.js +2 -2
- package/dist/views/Request/RequestSidebar.vue2.js +171 -166
- 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 +187 -180
- package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSubpageHeader.vue.js +2 -2
- package/dist/views/Request/RequestSubpageHeader.vue2.js +41 -49
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +2 -2
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +62 -45
- package/package.json +13 -13
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts +0 -15
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts.map +0 -1
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +0 -176
- package/dist/components/CommandPalette/CommandPaletteRequest.vue2.js +0 -4
|
@@ -1,63 +1,62 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Dialog as
|
|
3
|
-
import { useModal as
|
|
4
|
-
import { useRouter as
|
|
5
|
-
import { ROUTES as
|
|
6
|
-
import { importCurlCommand as
|
|
7
|
-
import { PathId as
|
|
8
|
-
import { useActiveEntities as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
|
|
18
|
-
const be = {
|
|
1
|
+
import { defineComponent as Q, ref as f, computed as B, watch as j, onMounted as J, onBeforeUnmount as X, openBlock as a, createBlock as M, unref as m, withCtx as g, createElementVNode as p, createVNode as C, createTextVNode as N, createElementBlock as i, withKeys as P, withModifiers as I, Fragment as R, renderList as T, withDirectives as Y, toDisplayString as U, vShow as Z, normalizeClass as ee, createCommentVNode as oe, resolveDynamicComponent as te, mergeProps as ne, nextTick as A } from "vue";
|
|
2
|
+
import { Dialog as ae, DialogPanel as le, DialogTitle as se } from "@headlessui/vue";
|
|
3
|
+
import { useModal as re, ScalarIcon as D } from "@scalar/components";
|
|
4
|
+
import { useRouter as me } from "vue-router";
|
|
5
|
+
import { ROUTES as ie } from "../../constants.js";
|
|
6
|
+
import { importCurlCommand as ce } from "../../libs/importers/curl.js";
|
|
7
|
+
import { PathId as ue } from "../../routes.js";
|
|
8
|
+
import { useActiveEntities as de } from "../../store/active-entities.js";
|
|
9
|
+
import fe from "./CommandPaletteCollection.vue.js";
|
|
10
|
+
import pe from "./CommandPaletteExample.vue.js";
|
|
11
|
+
import ve from "./CommandPaletteImport.vue.js";
|
|
12
|
+
import Ce from "./CommandPaletteImportCurl.vue.js";
|
|
13
|
+
import he from "./CommandPaletteServer.vue.js";
|
|
14
|
+
import xe from "./CommandPaletteTag.vue.js";
|
|
15
|
+
import ke from "./CommandPaletteWorkspace.vue.js";
|
|
16
|
+
import { useWorkspace as be } from "../../store/store.js";
|
|
17
|
+
const _e = {
|
|
19
18
|
key: 0,
|
|
20
19
|
class: "custom-scroll max-h-[50dvh] min-h-0 flex-1 rounded-lg p-1.5"
|
|
21
|
-
},
|
|
20
|
+
}, ye = { class: "bg-b-2 focus-within:bg-b-1 focus-within:border-b-3 sticky top-0 flex items-center rounded-md border border-transparent pl-2 shadow-[0_-8px_0_8px_var(--scalar-background-1),0_0_8px_8px_var(--scalar-background-1)]" }, we = { for: "commandmenu" }, ge = ["value", "onKeydown"], Pe = ["onClick"], Ie = {
|
|
22
21
|
key: 0,
|
|
23
22
|
class: "text-c-3 p-2 pt-3 text-center text-sm"
|
|
24
|
-
},
|
|
23
|
+
}, Re = {
|
|
25
24
|
key: 1,
|
|
26
25
|
class: "flex-1 p-1.5"
|
|
27
26
|
}, Ae = {
|
|
28
27
|
name: "TheCommandPalette"
|
|
29
|
-
},
|
|
30
|
-
"Import from OpenAPI/Swagger/Postman/cURL":
|
|
31
|
-
"Create Request":
|
|
32
|
-
"Create Workspace":
|
|
33
|
-
"Add Tag":
|
|
34
|
-
"Add Server":
|
|
35
|
-
"Create Collection":
|
|
36
|
-
"Add Example":
|
|
37
|
-
"Import from cURL":
|
|
38
|
-
}, Ge = /* @__PURE__ */
|
|
28
|
+
}, De = {
|
|
29
|
+
"Import from OpenAPI/Swagger/Postman/cURL": ve,
|
|
30
|
+
"Create Request": "",
|
|
31
|
+
"Create Workspace": ke,
|
|
32
|
+
"Add Tag": xe,
|
|
33
|
+
"Add Server": he,
|
|
34
|
+
"Create Collection": fe,
|
|
35
|
+
"Add Example": pe,
|
|
36
|
+
"Import from cURL": Ce
|
|
37
|
+
}, Ge = /* @__PURE__ */ Q({
|
|
39
38
|
...Ae,
|
|
40
|
-
setup(
|
|
41
|
-
const
|
|
39
|
+
setup(Le) {
|
|
40
|
+
const v = re(), k = me(), { activeWorkspace: h, activeWorkspaceCollections: W, activeCollection: V } = de(), { events: c, requestMutators: H } = be(), L = [
|
|
42
41
|
{
|
|
43
42
|
label: "",
|
|
44
43
|
commands: [
|
|
45
|
-
{
|
|
46
|
-
name: "Create Request",
|
|
47
|
-
icon: "ExternalLink"
|
|
48
|
-
},
|
|
49
44
|
{
|
|
50
45
|
name: "Import from OpenAPI/Swagger/Postman/cURL",
|
|
51
46
|
icon: "Import"
|
|
52
47
|
},
|
|
53
48
|
{
|
|
54
|
-
name: "
|
|
55
|
-
icon: "
|
|
49
|
+
name: "Create Request",
|
|
50
|
+
icon: "ExternalLink"
|
|
56
51
|
},
|
|
57
52
|
{
|
|
58
53
|
name: "Create Collection",
|
|
59
54
|
icon: "Collection"
|
|
60
55
|
},
|
|
56
|
+
{
|
|
57
|
+
name: "Add Tag",
|
|
58
|
+
icon: "Folder"
|
|
59
|
+
},
|
|
61
60
|
{
|
|
62
61
|
name: "Add Example",
|
|
63
62
|
icon: "Example"
|
|
@@ -89,176 +88,202 @@ const be = {
|
|
|
89
88
|
},
|
|
90
89
|
{
|
|
91
90
|
label: "Pages",
|
|
92
|
-
commands:
|
|
93
|
-
var
|
|
91
|
+
commands: ie.map((o) => {
|
|
92
|
+
var e;
|
|
94
93
|
return {
|
|
95
|
-
name:
|
|
96
|
-
icon:
|
|
97
|
-
path:
|
|
98
|
-
...
|
|
94
|
+
name: o.displayName,
|
|
95
|
+
icon: o.icon,
|
|
96
|
+
path: k.resolve({
|
|
97
|
+
...o.to,
|
|
99
98
|
params: {
|
|
100
|
-
[
|
|
99
|
+
[ue.Workspace]: ((e = h == null ? void 0 : h.value) == null ? void 0 : e.uid) ?? "default"
|
|
101
100
|
}
|
|
102
101
|
}).href
|
|
103
102
|
};
|
|
104
103
|
})
|
|
105
104
|
}
|
|
106
|
-
],
|
|
107
|
-
() =>
|
|
108
|
-
const t =
|
|
105
|
+
], b = f(), l = f(""), s = f(null), u = f(-1), S = f([]), x = B(
|
|
106
|
+
() => L.reduce((o, e) => {
|
|
107
|
+
const t = e.commands.filter(
|
|
109
108
|
(n) => n.name.toLowerCase().includes(l.value.toLowerCase())
|
|
110
109
|
);
|
|
111
|
-
return [...
|
|
110
|
+
return [...o, ...t];
|
|
112
111
|
}, [])
|
|
113
|
-
),
|
|
114
|
-
|
|
115
|
-
},
|
|
116
|
-
l.value !== "" && (
|
|
117
|
-
var
|
|
118
|
-
return (
|
|
112
|
+
), d = () => {
|
|
113
|
+
v.hide(), l.value = "", s.value = null, u.value = -1;
|
|
114
|
+
}, O = (o) => {
|
|
115
|
+
l.value !== "" && (o == null || o.preventDefault()), s.value = null, A(() => {
|
|
116
|
+
var e;
|
|
117
|
+
return (e = _.value) == null ? void 0 : e.focus();
|
|
119
118
|
});
|
|
120
|
-
},
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
119
|
+
}, E = (o) => {
|
|
120
|
+
var e;
|
|
121
|
+
if ("path" in o)
|
|
122
|
+
k.push(o.path), d();
|
|
123
|
+
else if (o.name === "Create Request") {
|
|
124
|
+
const t = W.value.find(
|
|
125
|
+
(n) => {
|
|
126
|
+
var r;
|
|
127
|
+
return ((r = n.info) == null ? void 0 : r.title) === "Drafts";
|
|
128
|
+
}
|
|
129
|
+
);
|
|
130
|
+
if (t) {
|
|
131
|
+
const n = H.add({}, t.uid);
|
|
132
|
+
n && (k.push({
|
|
133
|
+
name: "request",
|
|
134
|
+
params: {
|
|
135
|
+
workspace: (e = h.value) == null ? void 0 : e.uid,
|
|
136
|
+
request: n.uid
|
|
137
|
+
}
|
|
138
|
+
}), d(), A(() => {
|
|
139
|
+
c.hotKeys.emit({
|
|
140
|
+
focusAddressBar: new KeyboardEvent("keydown", { key: "l" })
|
|
141
|
+
});
|
|
142
|
+
}));
|
|
143
|
+
} else
|
|
144
|
+
d();
|
|
145
|
+
} else
|
|
146
|
+
s.value = o.name;
|
|
147
|
+
}, _ = f(), K = ({
|
|
148
|
+
commandName: o,
|
|
149
|
+
metaData: e
|
|
125
150
|
} = {}) => {
|
|
126
|
-
|
|
151
|
+
s.value = o ?? null, b.value = e, v.show(), A(() => {
|
|
127
152
|
var t;
|
|
128
|
-
return (t =
|
|
153
|
+
return (t = _.value) == null ? void 0 : t.focus();
|
|
129
154
|
});
|
|
130
155
|
};
|
|
131
|
-
|
|
132
|
-
|
|
156
|
+
j(l, (o) => {
|
|
157
|
+
o && x.value.length > 0 && (u.value = 0);
|
|
133
158
|
});
|
|
134
|
-
const
|
|
135
|
-
var
|
|
136
|
-
if (!
|
|
137
|
-
|
|
138
|
-
const t =
|
|
139
|
-
|
|
159
|
+
const $ = (o, e) => {
|
|
160
|
+
var r;
|
|
161
|
+
if (!v.open) return;
|
|
162
|
+
e.preventDefault();
|
|
163
|
+
const t = o === "up" ? -1 : 1, n = x.value.length;
|
|
164
|
+
u.value = (u.value + t + n) % n, (r = S.value[u.value]) == null || r.scrollIntoView({
|
|
140
165
|
behavior: "smooth",
|
|
141
166
|
block: "nearest"
|
|
142
167
|
});
|
|
143
|
-
},
|
|
144
|
-
() =>
|
|
145
|
-
),
|
|
146
|
-
!
|
|
147
|
-
},
|
|
148
|
-
|
|
149
|
-
},
|
|
150
|
-
var
|
|
151
|
-
if (
|
|
152
|
-
|
|
168
|
+
}, y = B(
|
|
169
|
+
() => x.value[u.value]
|
|
170
|
+
), F = (o) => {
|
|
171
|
+
!y.value || s.value || (o.preventDefault(), o.stopPropagation(), E(y.value));
|
|
172
|
+
}, q = (o) => {
|
|
173
|
+
v.open && o != null && o.closeModal && d();
|
|
174
|
+
}, G = (o) => {
|
|
175
|
+
var e;
|
|
176
|
+
if (o.trim().toLowerCase().startsWith("curl")) {
|
|
177
|
+
c.commandPalette.emit({
|
|
153
178
|
commandName: "Import from cURL",
|
|
154
179
|
metaData: {
|
|
155
|
-
parsedCurl:
|
|
156
|
-
collectionUid: (
|
|
180
|
+
parsedCurl: ce(o),
|
|
181
|
+
collectionUid: (e = V.value) == null ? void 0 : e.uid
|
|
157
182
|
}
|
|
158
183
|
});
|
|
159
184
|
return;
|
|
160
185
|
}
|
|
161
|
-
l.value =
|
|
186
|
+
l.value = o;
|
|
162
187
|
};
|
|
163
|
-
return
|
|
164
|
-
|
|
165
|
-
}),
|
|
166
|
-
|
|
167
|
-
}), (
|
|
168
|
-
open:
|
|
169
|
-
onClose:
|
|
188
|
+
return J(() => {
|
|
189
|
+
c.commandPalette.on(K), c.hotKeys.on(q);
|
|
190
|
+
}), X(() => {
|
|
191
|
+
c.commandPalette.off(K), c.hotKeys.off(q);
|
|
192
|
+
}), (o, e) => (a(), M(m(ae), {
|
|
193
|
+
open: m(v).open,
|
|
194
|
+
onClose: e[5] || (e[5] = (t) => d())
|
|
170
195
|
}, {
|
|
171
196
|
default: g(() => [
|
|
172
|
-
|
|
173
|
-
|
|
197
|
+
e[7] || (e[7] = p("div", { class: "commandmenu-overlay z-overlay" }, null, -1)),
|
|
198
|
+
C(m(le), { class: "commandmenu z-overlay flex flex-col" }, {
|
|
174
199
|
default: g(() => [
|
|
175
|
-
|
|
176
|
-
default: g(() =>
|
|
177
|
-
|
|
200
|
+
C(m(se), { class: "sr-only" }, {
|
|
201
|
+
default: g(() => e[6] || (e[6] = [
|
|
202
|
+
N("API Client Command Menu")
|
|
178
203
|
])),
|
|
179
204
|
_: 1
|
|
180
205
|
}),
|
|
181
|
-
|
|
182
|
-
|
|
206
|
+
s.value ? (a(), i("div", Re, [
|
|
207
|
+
p("button", {
|
|
183
208
|
class: "hover:bg-b-3 text-c-3 active:text-c-1 z-1 my-1.25 p-0.75 absolute mr-1.5 rounded",
|
|
184
209
|
type: "button",
|
|
185
|
-
onClick:
|
|
210
|
+
onClick: e[3] || (e[3] = (t) => s.value = null)
|
|
186
211
|
}, [
|
|
187
|
-
|
|
212
|
+
C(m(D), {
|
|
188
213
|
icon: "ChevronLeft",
|
|
189
214
|
size: "md",
|
|
190
215
|
thickness: "1.5"
|
|
191
216
|
})
|
|
192
217
|
]),
|
|
193
|
-
(a(),
|
|
194
|
-
onBack:
|
|
195
|
-
onClose:
|
|
218
|
+
(a(), M(te(De[s.value]), ne(b.value ? { metaData: b.value } : {}, {
|
|
219
|
+
onBack: e[4] || (e[4] = (t) => O(t)),
|
|
220
|
+
onClose: d
|
|
196
221
|
}), null, 16))
|
|
197
|
-
])) : (a(),
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
222
|
+
])) : (a(), i("div", _e, [
|
|
223
|
+
p("div", ye, [
|
|
224
|
+
p("label", we, [
|
|
225
|
+
C(m(D), {
|
|
201
226
|
class: "text-c-2 mr-2.5",
|
|
202
227
|
icon: "Search",
|
|
203
228
|
size: "md",
|
|
204
229
|
thickness: "1.5"
|
|
205
230
|
})
|
|
206
231
|
]),
|
|
207
|
-
|
|
232
|
+
p("input", {
|
|
208
233
|
id: "commandmenu",
|
|
209
234
|
ref_key: "commandInputRef",
|
|
210
|
-
ref:
|
|
235
|
+
ref: _,
|
|
211
236
|
value: l.value,
|
|
212
237
|
autocomplete: "off",
|
|
213
238
|
autofocus: "",
|
|
214
239
|
class: "w-full rounded border-none bg-none py-1.5 text-sm focus:outline-none",
|
|
215
240
|
placeholder: "Search commands...",
|
|
216
241
|
type: "text",
|
|
217
|
-
onInput:
|
|
242
|
+
onInput: e[0] || (e[0] = (t) => G(t.target.value)),
|
|
218
243
|
onKeydown: [
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
244
|
+
e[1] || (e[1] = P(I((t) => $("down", t), ["stop"]), ["down"])),
|
|
245
|
+
P(I(F, ["stop"]), ["enter"]),
|
|
246
|
+
e[2] || (e[2] = P(I((t) => $("up", t), ["stop"]), ["up"]))
|
|
222
247
|
]
|
|
223
248
|
}, null, 40, ge)
|
|
224
249
|
]),
|
|
225
|
-
(a(),
|
|
250
|
+
(a(), i(R, null, T(L, (t) => (a(), i(R, {
|
|
226
251
|
key: t.label
|
|
227
252
|
}, [
|
|
228
|
-
|
|
253
|
+
Y(p("div", { class: "text-c-3 mb-1 mt-2 px-2 text-xs font-medium" }, U(t.label), 513), [
|
|
229
254
|
[
|
|
230
|
-
|
|
255
|
+
Z,
|
|
231
256
|
t.commands.filter(
|
|
232
257
|
(n) => n.name.toLowerCase().includes(l.value.toLowerCase())
|
|
233
258
|
).length > 0
|
|
234
259
|
]
|
|
235
260
|
]),
|
|
236
|
-
(a(!0),
|
|
261
|
+
(a(!0), i(R, null, T(t.commands.filter(
|
|
237
262
|
(n) => n.name.toLowerCase().includes(l.value.toLowerCase())
|
|
238
|
-
), (n,
|
|
239
|
-
var
|
|
240
|
-
return a(),
|
|
263
|
+
), (n, r) => {
|
|
264
|
+
var z;
|
|
265
|
+
return a(), i("div", {
|
|
241
266
|
key: n.name,
|
|
242
267
|
ref_for: !0,
|
|
243
|
-
ref: (
|
|
244
|
-
|
|
268
|
+
ref: (w) => {
|
|
269
|
+
w && (S.value[r] = w);
|
|
245
270
|
},
|
|
246
|
-
class:
|
|
247
|
-
"bg-b-2": n.name === ((
|
|
271
|
+
class: ee(["commandmenu-item hover:bg-b-2 flex cursor-pointer items-center rounded px-2 py-1.5 text-sm", {
|
|
272
|
+
"bg-b-2": n.name === ((z = y.value) == null ? void 0 : z.name)
|
|
248
273
|
}]),
|
|
249
|
-
onClick: (
|
|
274
|
+
onClick: (w) => E(n)
|
|
250
275
|
}, [
|
|
251
|
-
|
|
276
|
+
C(m(D), {
|
|
252
277
|
class: "text-c-2 mr-2.5",
|
|
253
278
|
icon: n.icon,
|
|
254
279
|
size: "md",
|
|
255
280
|
thickness: "1.5"
|
|
256
281
|
}, null, 8, ["icon"]),
|
|
257
|
-
|
|
258
|
-
], 10,
|
|
282
|
+
N(" " + U(n.name), 1)
|
|
283
|
+
], 10, Pe);
|
|
259
284
|
}), 128))
|
|
260
285
|
], 64))), 64)),
|
|
261
|
-
|
|
286
|
+
x.value.length ? oe("", !0) : (a(), i("div", Ie, " No commands found "))
|
|
262
287
|
]))
|
|
263
288
|
]),
|
|
264
289
|
_: 1
|
|
@@ -269,6 +294,6 @@ const be = {
|
|
|
269
294
|
}
|
|
270
295
|
});
|
|
271
296
|
export {
|
|
272
|
-
|
|
297
|
+
De as PaletteComponents,
|
|
273
298
|
Ge as default
|
|
274
299
|
};
|
|
@@ -116,8 +116,8 @@ declare function __VLS_template(): {
|
|
|
116
116
|
blur: (v: string) => any;
|
|
117
117
|
curl: (v: string) => any;
|
|
118
118
|
}, string, {
|
|
119
|
-
disabled: boolean;
|
|
120
119
|
nullable: boolean;
|
|
120
|
+
disabled: boolean;
|
|
121
121
|
colorPicker: boolean;
|
|
122
122
|
emitOnBlur: boolean;
|
|
123
123
|
disableTabIndent: boolean;
|
|
@@ -146,8 +146,8 @@ declare function __VLS_template(): {
|
|
|
146
146
|
$nextTick: typeof import("vue").nextTick;
|
|
147
147
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("vue").WatchOptions): import("vue").WatchStopHandle;
|
|
148
148
|
} & Readonly<{
|
|
149
|
-
disabled: boolean;
|
|
150
149
|
nullable: boolean;
|
|
150
|
+
disabled: boolean;
|
|
151
151
|
colorPicker: boolean;
|
|
152
152
|
emitOnBlur: boolean;
|
|
153
153
|
disableTabIndent: boolean;
|
|
@@ -187,7 +187,7 @@ declare function __VLS_template(): {
|
|
|
187
187
|
"onUpdate:modelValue"?: (v: string) => any;
|
|
188
188
|
onBlur?: (v: string) => any;
|
|
189
189
|
onCurl?: (v: string) => any;
|
|
190
|
-
}>, "focus" | ("
|
|
190
|
+
}>, "focus" | ("nullable" | "disabled" | "colorPicker" | "emitOnBlur" | "disableTabIndent" | "disableEnter" | "disableCloseBrackets" | "withVariables" | "isCopyable")> & import("vue").ShallowUnwrapRef<{
|
|
191
191
|
focus: () => void;
|
|
192
192
|
}> & {} & import("vue").ComponentCustomProperties & {} & {
|
|
193
193
|
$slots: {
|
|
@@ -210,8 +210,8 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
|
|
|
210
210
|
onInputFocus?: () => any;
|
|
211
211
|
onInputBlur?: () => any;
|
|
212
212
|
}>, {
|
|
213
|
-
readOnly: boolean;
|
|
214
213
|
required: boolean;
|
|
214
|
+
readOnly: boolean;
|
|
215
215
|
canAddCustomEnumValue: boolean;
|
|
216
216
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
217
217
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTableInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInput.vue"],"names":[],"mappings":"AAsLA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,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AA,MAAM,eAAe;;;;;;;;;;;cArUN,OAAO;cAIP,OAAO;2BADM,OAAO;6EA0UjC,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAepG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarToggle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarToggle.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"SidebarToggle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarToggle.vue"],"names":[],"mappings":";AAsHA,wBAMG"}
|
|
@@ -1,38 +1,39 @@
|
|
|
1
|
-
import { defineComponent as a, openBlock as
|
|
1
|
+
import { defineComponent as a, openBlock as n, createElementBlock as l, unref as o, createElementVNode as e, toDisplayString as d, normalizeClass as p } from "vue";
|
|
2
2
|
import { useSidebar as c } from "../../hooks/useSidebar.js";
|
|
3
|
-
const u = { class: "sr-only" },
|
|
3
|
+
const u = ["aria-pressed"], m = { class: "sr-only" }, g = {
|
|
4
4
|
class: "size-4",
|
|
5
5
|
fill: "none",
|
|
6
6
|
viewBox: "0 0 24 24",
|
|
7
7
|
xmlns: "http://www.w3.org/2000/svg"
|
|
8
|
-
},
|
|
8
|
+
}, h = { "clip-path": "url(#mask)" }, k = /* @__PURE__ */ a({
|
|
9
9
|
__name: "SidebarToggle",
|
|
10
10
|
setup(b) {
|
|
11
|
-
const { isSidebarOpen:
|
|
12
|
-
return (f,
|
|
11
|
+
const { isSidebarOpen: s, toggleSidebarOpen: r } = c();
|
|
12
|
+
return (f, t) => (n(), l("button", {
|
|
13
|
+
"aria-pressed": o(s),
|
|
13
14
|
class: "scalar-sidebar-toggle text-c-3 hover:bg-b-2 active:text-c-1 rounded-lg p-2",
|
|
14
15
|
type: "button",
|
|
15
|
-
onClick:
|
|
16
|
+
onClick: t[0] || (t[0] = //@ts-ignore
|
|
16
17
|
(...i) => o(r) && o(r)(...i))
|
|
17
18
|
}, [
|
|
18
|
-
|
|
19
|
-
(
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
e("span", m, d(o(s) ? "Hide" : "Show") + " sidebar", 1),
|
|
20
|
+
(n(), l("svg", g, [
|
|
21
|
+
t[1] || (t[1] = e("defs", null, [
|
|
22
|
+
e("clipPath", { id: "mask" }, [
|
|
23
|
+
e("path", {
|
|
23
24
|
"clip-rule": "evenodd",
|
|
24
25
|
d: "M9 3.2H4c-1.7 0-3 1.3-3 3v11.5c0 1.7 1.3 3 3 3h5V3.2z"
|
|
25
26
|
})
|
|
26
27
|
])
|
|
27
28
|
], -1)),
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
class: p(["transition-transform duration-300", o(
|
|
29
|
+
e("g", h, [
|
|
30
|
+
e("path", {
|
|
31
|
+
class: p(["transition-transform duration-300", o(s) ? "translate-x-0" : "-translate-x-1/2"]),
|
|
31
32
|
d: "M1 3.2h8v17.5H1z",
|
|
32
33
|
fill: "currentColor"
|
|
33
34
|
}, null, 2)
|
|
34
35
|
]),
|
|
35
|
-
|
|
36
|
+
t[2] || (t[2] = e("path", {
|
|
36
37
|
d: "M20 20.8H4c-1.7 0-3-1.3-3-3V6.2c0-1.7 1.3-3 3-3h16c1.7 0 3 1.3 3 3v11.5c0 1.7-1.3 3-3 3zM9 3.2v17.5",
|
|
37
38
|
stroke: "currentColor",
|
|
38
39
|
"stroke-linecap": "round",
|
|
@@ -40,7 +41,7 @@ const u = { class: "sr-only" }, m = {
|
|
|
40
41
|
"stroke-width": "2"
|
|
41
42
|
}, null, -1))
|
|
42
43
|
]))
|
|
43
|
-
]));
|
|
44
|
+
], 8, u));
|
|
44
45
|
}
|
|
45
46
|
});
|
|
46
47
|
export {
|