@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.
Files changed (84) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +1 -1
  3. package/dist/components/AddressBar/AddressBarHistory.vue.js +2 -2
  4. package/dist/components/AddressBar/AddressBarHistory.vue2.js +53 -54
  5. package/dist/components/CodeInput/CodeInput.vue.d.ts +1 -1
  6. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  7. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +3 -19
  8. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
  9. package/dist/components/CommandPalette/TheCommandPalette.vue.js +1 -1
  10. package/dist/components/CommandPalette/TheCommandPalette.vue2.js +154 -129
  11. package/dist/components/DataTable/DataTableInput.vue.d.ts +4 -4
  12. package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
  13. package/dist/components/Sidebar/SidebarToggle.vue.d.ts.map +1 -1
  14. package/dist/components/Sidebar/SidebarToggle.vue.js +17 -16
  15. package/dist/layouts/App/create-api-client-app.d.ts +62 -52
  16. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  17. package/dist/layouts/Modal/create-api-client-modal.d.ts +120 -100
  18. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  19. package/dist/layouts/Modal/create-api-client-modal.js +1 -2
  20. package/dist/layouts/Web/create-api-client-web.d.ts +62 -52
  21. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  22. package/dist/libs/create-client.d.ts +64 -58
  23. package/dist/libs/create-client.d.ts.map +1 -1
  24. package/dist/libs/create-client.js +82 -80
  25. package/dist/libs/extractAttachmentFilename.d.ts.map +1 -1
  26. package/dist/libs/extractAttachmentFilename.js +8 -7
  27. package/dist/libs/find-request.d.ts +1 -1
  28. package/dist/libs/find-request.d.ts.map +1 -1
  29. package/dist/libs/hot-keys.d.ts +1 -1
  30. package/dist/libs/hot-keys.d.ts.map +1 -1
  31. package/dist/libs/hot-keys.js +9 -8
  32. package/dist/libs/send-request/create-request-operation.test.d.ts +3 -2
  33. package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -1
  34. package/dist/store/active-entities.d.ts +4 -3
  35. package/dist/store/active-entities.d.ts.map +1 -1
  36. package/dist/store/import-spec.d.ts +3 -3
  37. package/dist/store/import-spec.d.ts.map +1 -1
  38. package/dist/store/import-spec.js +4 -1
  39. package/dist/store/request-example.d.ts +22 -12
  40. package/dist/store/request-example.d.ts.map +1 -1
  41. package/dist/store/requests.d.ts +13 -13
  42. package/dist/store/requests.d.ts.map +1 -1
  43. package/dist/store/security-schemes.d.ts +6 -6
  44. package/dist/store/store.d.ts +92 -67
  45. package/dist/store/store.d.ts.map +1 -1
  46. package/dist/store/store.js +12 -12
  47. package/dist/store/workspace.d.ts +12 -12
  48. package/dist/store/workspace.d.ts.map +1 -1
  49. package/dist/style.css +1 -1
  50. package/dist/views/Request/Request.vue.d.ts.map +1 -1
  51. package/dist/views/Request/Request.vue.js +2 -2
  52. package/dist/views/Request/RequestRoot.test.d.ts +2 -0
  53. package/dist/views/Request/RequestRoot.test.d.ts.map +1 -0
  54. package/dist/views/Request/RequestRoot.vue.d.ts.map +1 -1
  55. package/dist/views/Request/RequestRoot.vue.js +2 -2
  56. package/dist/views/Request/RequestRoot.vue2.js +72 -60
  57. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts +1 -1
  58. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts.map +1 -1
  59. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
  60. package/dist/views/Request/RequestSection/RequestBody.vue.js +1 -1
  61. package/dist/views/Request/RequestSection/RequestBody.vue2.js +113 -107
  62. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
  63. package/dist/views/Request/RequestSection/RequestSection.vue.js +2 -2
  64. package/dist/views/Request/RequestSection/RequestSection.vue2.js +37 -37
  65. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
  66. package/dist/views/Request/RequestSection/RequestTable.vue.js +1 -1
  67. package/dist/views/Request/RequestSection/RequestTable.vue2.js +55 -51
  68. package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
  69. package/dist/views/Request/RequestSidebar.vue.js +2 -2
  70. package/dist/views/Request/RequestSidebar.vue2.js +171 -166
  71. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  72. package/dist/views/Request/RequestSidebarItem.vue.js +1 -1
  73. package/dist/views/Request/RequestSidebarItem.vue2.js +187 -180
  74. package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -1
  75. package/dist/views/Request/RequestSubpageHeader.vue.js +2 -2
  76. package/dist/views/Request/RequestSubpageHeader.vue2.js +41 -49
  77. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
  78. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +2 -2
  79. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +62 -45
  80. package/package.json +13 -13
  81. package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts +0 -15
  82. package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts.map +0 -1
  83. package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +0 -176
  84. package/dist/components/CommandPalette/CommandPaletteRequest.vue2.js +0 -4
@@ -1,63 +1,62 @@
1
- import { defineComponent as F, ref as c, computed as N, watch as G, onMounted as Q, onBeforeUnmount as j, openBlock as a, createBlock as T, unref as s, withCtx as g, createElementVNode as u, createVNode as f, createTextVNode as U, createElementBlock as m, withKeys as w, withModifiers as P, Fragment as I, renderList as B, withDirectives as J, toDisplayString as M, vShow as X, normalizeClass as Y, createCommentVNode as Z, resolveDynamicComponent as ee, mergeProps as oe, nextTick as W } from "vue";
2
- import { Dialog as te, DialogPanel as ne, DialogTitle as ae } from "@headlessui/vue";
3
- import { useModal as le, ScalarIcon as A } from "@scalar/components";
4
- import { useRouter as re } from "vue-router";
5
- import { ROUTES as se } from "../../constants.js";
6
- import { importCurlCommand as me } from "../../libs/importers/curl.js";
7
- import { PathId as ie } from "../../routes.js";
8
- import { useActiveEntities as ce } from "../../store/active-entities.js";
9
- import ue from "./CommandPaletteCollection.vue.js";
10
- import de from "./CommandPaletteExample.vue.js";
11
- import pe from "./CommandPaletteImport.vue.js";
12
- import fe from "./CommandPaletteImportCurl.vue.js";
13
- import ve from "./CommandPaletteRequest.vue.js";
14
- import Ce from "./CommandPaletteServer.vue.js";
15
- import he from "./CommandPaletteTag.vue.js";
16
- import xe from "./CommandPaletteWorkspace.vue.js";
17
- import { useWorkspace as _e } from "../../store/store.js";
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
- }, ke = { 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)]" }, ye = { for: "commandmenu" }, ge = ["value", "onKeydown"], we = ["onClick"], Pe = {
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
- }, Ie = {
23
+ }, Re = {
25
24
  key: 1,
26
25
  class: "flex-1 p-1.5"
27
26
  }, Ae = {
28
27
  name: "TheCommandPalette"
29
- }, Le = {
30
- "Import from OpenAPI/Swagger/Postman/cURL": pe,
31
- "Create Request": ve,
32
- "Create Workspace": xe,
33
- "Add Tag": he,
34
- "Add Server": Ce,
35
- "Create Collection": ue,
36
- "Add Example": de,
37
- "Import from cURL": fe
38
- }, Ge = /* @__PURE__ */ F({
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(Re) {
41
- const d = le(), L = re(), { activeWorkspace: x, activeCollection: V } = ce(), { events: p } = _e(), R = [
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: "Add Tag",
55
- icon: "Folder"
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: se.map((e) => {
93
- var o;
91
+ commands: ie.map((o) => {
92
+ var e;
94
93
  return {
95
- name: e.displayName,
96
- icon: e.icon,
97
- path: L.resolve({
98
- ...e.to,
94
+ name: o.displayName,
95
+ icon: o.icon,
96
+ path: k.resolve({
97
+ ...o.to,
99
98
  params: {
100
- [ie.Workspace]: ((o = x == null ? void 0 : x.value) == null ? void 0 : o.uid) ?? "default"
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
- ], _ = c(), l = c(""), r = c(null), i = c(-1), S = c([]), v = N(
107
- () => R.reduce((e, o) => {
108
- const t = o.commands.filter(
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 [...e, ...t];
110
+ return [...o, ...t];
112
111
  }, [])
113
- ), C = () => {
114
- d.hide(), l.value = "", r.value = null, i.value = -1;
115
- }, H = (e) => {
116
- l.value !== "" && (e == null || e.preventDefault()), r.value = null, W(() => {
117
- var o;
118
- return (o = b.value) == null ? void 0 : o.focus();
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
- }, D = (e) => {
121
- "path" in e ? (L.push(e.path), C()) : r.value = e.name;
122
- }, b = c(), $ = ({
123
- commandName: e,
124
- metaData: o
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
- r.value = e ?? null, _.value = o, d.show(), W(() => {
151
+ s.value = o ?? null, b.value = e, v.show(), A(() => {
127
152
  var t;
128
- return (t = b.value) == null ? void 0 : t.focus();
153
+ return (t = _.value) == null ? void 0 : t.focus();
129
154
  });
130
155
  };
131
- G(l, (e) => {
132
- e && v.value.length > 0 && (i.value = 0);
156
+ j(l, (o) => {
157
+ o && x.value.length > 0 && (u.value = 0);
133
158
  });
134
- const E = (e, o) => {
135
- var h;
136
- if (!d.open) return;
137
- o.preventDefault();
138
- const t = e === "up" ? -1 : 1, n = v.value.length;
139
- i.value = (i.value + t + n) % n, (h = S.value[i.value]) == null || h.scrollIntoView({
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
- }, k = N(
144
- () => v.value[i.value]
145
- ), O = (e) => {
146
- !k.value || r.value || (e.preventDefault(), e.stopPropagation(), D(k.value));
147
- }, z = (e) => {
148
- d.open && e != null && e.closeModal && C();
149
- }, q = (e) => {
150
- var o;
151
- if (e.trim().toLowerCase().startsWith("curl")) {
152
- p.commandPalette.emit({
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: me(e),
156
- collectionUid: (o = V.value) == null ? void 0 : o.uid
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 = e;
186
+ l.value = o;
162
187
  };
163
- return Q(() => {
164
- p.commandPalette.on($), p.hotKeys.on(z);
165
- }), j(() => {
166
- p.commandPalette.off($), p.hotKeys.off(z);
167
- }), (e, o) => (a(), T(s(te), {
168
- open: s(d).open,
169
- onClose: o[5] || (o[5] = (t) => C())
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
- o[7] || (o[7] = u("div", { class: "commandmenu-overlay z-overlay" }, null, -1)),
173
- f(s(ne), { class: "commandmenu z-overlay flex flex-col" }, {
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
- f(s(ae), { class: "sr-only" }, {
176
- default: g(() => o[6] || (o[6] = [
177
- U("API Client Command Menu")
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
- r.value ? (a(), m("div", Ie, [
182
- u("button", {
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: o[3] || (o[3] = (t) => r.value = null)
210
+ onClick: e[3] || (e[3] = (t) => s.value = null)
186
211
  }, [
187
- f(s(A), {
212
+ C(m(D), {
188
213
  icon: "ChevronLeft",
189
214
  size: "md",
190
215
  thickness: "1.5"
191
216
  })
192
217
  ]),
193
- (a(), T(ee(Le[r.value]), oe(_.value ? { metaData: _.value } : {}, {
194
- onBack: o[4] || (o[4] = (t) => H(t)),
195
- onClose: C
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(), m("div", be, [
198
- u("div", ke, [
199
- u("label", ye, [
200
- f(s(A), {
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
- u("input", {
232
+ p("input", {
208
233
  id: "commandmenu",
209
234
  ref_key: "commandInputRef",
210
- ref: b,
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: o[0] || (o[0] = (t) => q(t.target.value)),
242
+ onInput: e[0] || (e[0] = (t) => G(t.target.value)),
218
243
  onKeydown: [
219
- o[1] || (o[1] = w(P((t) => E("down", t), ["stop"]), ["down"])),
220
- w(P(O, ["stop"]), ["enter"]),
221
- o[2] || (o[2] = w(P((t) => E("up", t), ["stop"]), ["up"]))
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(), m(I, null, B(R, (t) => (a(), m(I, {
250
+ (a(), i(R, null, T(L, (t) => (a(), i(R, {
226
251
  key: t.label
227
252
  }, [
228
- J(u("div", { class: "text-c-3 mb-1 mt-2 px-2 text-xs font-medium" }, M(t.label), 513), [
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
- X,
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), m(I, null, B(t.commands.filter(
261
+ (a(!0), i(R, null, T(t.commands.filter(
237
262
  (n) => n.name.toLowerCase().includes(l.value.toLowerCase())
238
- ), (n, h) => {
239
- var K;
240
- return a(), m("div", {
263
+ ), (n, r) => {
264
+ var z;
265
+ return a(), i("div", {
241
266
  key: n.name,
242
267
  ref_for: !0,
243
- ref: (y) => {
244
- y && (S.value[h] = y);
268
+ ref: (w) => {
269
+ w && (S.value[r] = w);
245
270
  },
246
- class: Y(["commandmenu-item hover:bg-b-2 flex cursor-pointer items-center rounded px-2 py-1.5 text-sm", {
247
- "bg-b-2": n.name === ((K = k.value) == null ? void 0 : K.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: (y) => D(n)
274
+ onClick: (w) => E(n)
250
275
  }, [
251
- f(s(A), {
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
- U(" " + M(n.name), 1)
258
- ], 10, we);
282
+ N(" " + U(n.name), 1)
283
+ ], 10, Pe);
259
284
  }), 128))
260
285
  ], 64))), 64)),
261
- v.value.length ? Z("", !0) : (a(), m("div", Pe, " No commands found "))
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
- Le as PaletteComponents,
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" | ("disabled" | "nullable" | "colorPicker" | "emitOnBlur" | "disableTabIndent" | "disableEnter" | "disableCloseBrackets" | "withVariables" | "isCopyable")> & import("vue").ShallowUnwrapRef<{
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,CAAA;AAIrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAO/C,KAAK,WAAW,GAAG;IACf,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACzB,sEAAsE;IACtE,cAAc,CAAC,EA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AAA,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":";AAqHA,wBAMG"}
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 s, createElementBlock as l, unref as o, createElementVNode as t, toDisplayString as d, normalizeClass as p } from "vue";
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" }, m = {
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
- }, g = { "clip-path": "url(#mask)" }, k = /* @__PURE__ */ a({
8
+ }, h = { "clip-path": "url(#mask)" }, k = /* @__PURE__ */ a({
9
9
  __name: "SidebarToggle",
10
10
  setup(b) {
11
- const { isSidebarOpen: n, toggleSidebarOpen: r } = c();
12
- return (f, e) => (s(), l("button", {
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: e[0] || (e[0] = //@ts-ignore
16
+ onClick: t[0] || (t[0] = //@ts-ignore
16
17
  (...i) => o(r) && o(r)(...i))
17
18
  }, [
18
- t("span", u, d(o(n) ? "Hide" : "Show") + " sidebar", 1),
19
- (s(), l("svg", m, [
20
- e[1] || (e[1] = t("defs", null, [
21
- t("clipPath", { id: "mask" }, [
22
- t("path", {
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
- t("g", g, [
29
- t("path", {
30
- class: p(["transition-transform duration-300", o(n) ? "translate-x-0" : "-translate-x-1/2"]),
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
- e[2] || (e[2] = t("path", {
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 {