@scalar/api-client 2.2.32 → 2.2.34

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 (90) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/dist/components/AddressBar/AddressBar.vue.js +2 -2
  3. package/dist/components/AddressBar/AddressBar.vue2.js +27 -26
  4. package/dist/components/CommandPalette/CommandPaletteServer.vue.d.ts +9 -3
  5. package/dist/components/CommandPalette/CommandPaletteServer.vue.d.ts.map +1 -1
  6. package/dist/components/CommandPalette/CommandPaletteServer.vue.js +62 -54
  7. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +13 -3
  8. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
  9. package/dist/components/DataTable/DataTable.vue.js +7 -7
  10. package/dist/components/DataTable/DataTableCell.vue.js +6 -6
  11. package/dist/components/Form/Form.vue.d.ts.map +1 -1
  12. package/dist/components/Form/Form.vue.js +5 -5
  13. package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts.map +1 -1
  14. package/dist/components/ImportCollection/ImportCollectionModal.vue.js +72 -71
  15. package/dist/components/ImportCollection/WorkspaceSelector.vue.d.ts.map +1 -1
  16. package/dist/components/ImportCollection/WorkspaceSelector.vue.js +23 -22
  17. package/dist/components/Search/useSearch.d.ts.map +1 -1
  18. package/dist/components/Search/useSearch.js +61 -48
  19. package/dist/components/SideNav/SideNavLink.vue.js +2 -2
  20. package/dist/components/Sidebar/Sidebar.vue.js +2 -2
  21. package/dist/components/Sidebar/Sidebar.vue2.js +5 -5
  22. package/dist/components/Sidebar/SidebarList.vue.js +1 -1
  23. package/dist/components/Sidebar/SidebarListElement.vue.d.ts +1 -1
  24. package/dist/components/Sidebar/SidebarListElement.vue.d.ts.map +1 -1
  25. package/dist/components/Sidebar/SidebarListElement.vue.js +2 -2
  26. package/dist/components/Sidebar/SidebarListElement.vue2.js +12 -12
  27. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
  28. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +1 -1
  29. package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts.map +1 -1
  30. package/dist/components/ViewLayout/ViewLayoutSection.vue.js +1 -1
  31. package/dist/constants.d.ts +4 -0
  32. package/dist/constants.d.ts.map +1 -1
  33. package/dist/constants.js +2 -2
  34. package/dist/layouts/App/create-api-client-app.d.ts +171 -128
  35. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  36. package/dist/layouts/Modal/create-api-client-modal.d.ts +342 -256
  37. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  38. package/dist/layouts/Web/create-api-client-web.d.ts +171 -128
  39. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  40. package/dist/libs/create-client.d.ts +172 -129
  41. package/dist/libs/create-client.d.ts.map +1 -1
  42. package/dist/libs/create-client.js +8 -7
  43. package/dist/libs/find-request.d.ts +2 -0
  44. package/dist/libs/find-request.d.ts.map +1 -1
  45. package/dist/libs/send-request/send-request.d.ts.map +1 -1
  46. package/dist/libs/send-request/send-request.js +93 -93
  47. package/dist/routes.d.ts +1 -0
  48. package/dist/routes.d.ts.map +1 -1
  49. package/dist/routes.js +12 -7
  50. package/dist/store/active-entities.d.ts +29 -27
  51. package/dist/store/active-entities.d.ts.map +1 -1
  52. package/dist/store/collections.d.ts +4 -4
  53. package/dist/store/events.d.ts +3 -1
  54. package/dist/store/events.d.ts.map +1 -1
  55. package/dist/store/request-example.d.ts +134 -134
  56. package/dist/store/request-example.d.ts.map +1 -1
  57. package/dist/store/requests.d.ts +26 -4
  58. package/dist/store/requests.d.ts.map +1 -1
  59. package/dist/store/store.d.ts +174 -129
  60. package/dist/store/store.d.ts.map +1 -1
  61. package/dist/store/store.js +48 -46
  62. package/dist/store/tags.d.ts +24 -4
  63. package/dist/store/tags.d.ts.map +1 -1
  64. package/dist/style.css +1 -1
  65. package/dist/views/Cookies/CookieForm.vue.d.ts.map +1 -1
  66. package/dist/views/Cookies/CookieForm.vue.js +12 -12
  67. package/dist/views/Cookies/Cookies.vue2.js +12 -12
  68. package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
  69. package/dist/views/Environment/Environment.vue2.js +98 -97
  70. package/dist/views/Environment/EnvironmentModal.vue.js +1 -1
  71. package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +6 -6
  72. package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
  73. package/dist/views/Request/RequestSidebar.vue.js +3 -3
  74. package/dist/views/Request/RequestSidebar.vue2.js +14 -14
  75. package/dist/views/Request/RequestSidebarItem.vue.d.ts +2 -2
  76. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  77. package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
  78. package/dist/views/Request/RequestSidebarItem.vue2.js +132 -125
  79. package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -1
  80. package/dist/views/Request/RequestSubpageHeader.vue.js +1 -1
  81. package/dist/views/Request/RequestSubpageHeader.vue2.js +21 -21
  82. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
  83. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +1 -1
  84. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +12 -12
  85. package/dist/views/Servers/ServerForm.vue.d.ts +8 -1
  86. package/dist/views/Servers/ServerForm.vue.d.ts.map +1 -1
  87. package/dist/views/Servers/ServerForm.vue.js +28 -59
  88. package/dist/views/Servers/Servers.vue.d.ts.map +1 -1
  89. package/dist/views/Servers/Servers.vue2.js +141 -53
  90. package/package.json +13 -13
package/CHANGELOG.md CHANGED
@@ -1,5 +1,43 @@
1
1
  # @scalar/api-client
2
2
 
3
+ ## 2.2.34
4
+
5
+ ### Patch Changes
6
+
7
+ - ac86150: feat: add active request uid for isolation of request being sent
8
+ - Updated dependencies [7f3aa9c]
9
+ - @scalar/use-codemirror@0.11.59
10
+
11
+ ## 2.2.33
12
+
13
+ ### Patch Changes
14
+
15
+ - 2ad0407: fix: updates scalar modal body class specificity
16
+ - ace02fe: fix: favors configuration integration in open client modal button
17
+ - 6d03777: feat: adds server page
18
+ - 6d03777: fix: global sidebar and misc overhaul
19
+ - 08ac264: fix: adds back setting route
20
+ - aff72f7: fix: all cookies are deleted
21
+ - cb09e76: fix: sets integration theme id fallback
22
+ - 2ad0407: fix: updates workspace modal style in import collection
23
+ - Updated dependencies [2ad0407]
24
+ - Updated dependencies [60cd6f1]
25
+ - Updated dependencies [60cd6f1]
26
+ - Updated dependencies [e866487]
27
+ - Updated dependencies [7df4472]
28
+ - Updated dependencies [13333e6]
29
+ - Updated dependencies [64df4fc]
30
+ - @scalar/components@0.13.14
31
+ - @scalar/types@0.0.26
32
+ - @scalar/use-hooks@0.1.14
33
+ - @scalar/themes@0.9.60
34
+ - @scalar/oas-utils@0.2.97
35
+ - @scalar/openapi-types@0.1.6
36
+ - @scalar/openapi-parser@0.10.4
37
+ - @scalar/use-codemirror@0.11.58
38
+ - @scalar/import@0.2.17
39
+ - @scalar/postman-to-openapi@0.1.20
40
+
3
41
  ## 2.2.32
4
42
 
5
43
  ### Patch Changes
@@ -1,7 +1,7 @@
1
1
  import o from "./AddressBar.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../_virtual/_plugin-vue_export-helper.js";
4
- const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-7ae62052"]]);
4
+ const a = /* @__PURE__ */ r(o, [["__scopeId", "data-v-1dff60b8"]]);
5
5
  export {
6
- e as default
6
+ a as default
7
7
  };
@@ -18,24 +18,24 @@ const le = {
18
18
  __name: "AddressBar",
19
19
  emits: ["importCurl"],
20
20
  setup(ie) {
21
- const { activeRequest: t, activeExample: S, activeServer: v, activeCollection: p } = W(), { isReadOnly: x, requestMutators: f, requestHistory: V, events: c } = ee(), h = n(V[0]), b = n(null), I = (e) => {
22
- !t.value || t.value.path === e || f.edit(t.value.uid, "path", e);
21
+ const { activeRequest: l, activeExample: S, activeServer: v, activeCollection: p } = W(), { isReadOnly: x, requestMutators: f, requestHistory: V, events: c } = ee(), h = n(V[0]), b = n(null), I = (e) => {
22
+ !l.value || l.value.path === e || f.edit(l.value.uid, "path", e);
23
23
  };
24
24
  $(
25
25
  () => {
26
26
  var e;
27
- return (e = t.value) == null ? void 0 : e.path;
27
+ return (e = l.value) == null ? void 0 : e.path;
28
28
  },
29
29
  (e) => {
30
- !t.value || !e || I(e);
30
+ !l.value || !e || I(e);
31
31
  }
32
32
  );
33
33
  const o = n(100), g = n(0), s = n(!1), i = n();
34
- function L() {
34
+ function U() {
35
35
  s.value ? o.value -= (o.value - 15) / 60 : o.value -= g.value / 20, o.value <= 0 && (clearInterval(i.value), i.value = void 0, o.value = 100, s.value = !1);
36
36
  }
37
- function U() {
38
- i.value || (s.value = !0, i.value = setInterval(L, 20));
37
+ function L() {
38
+ i.value || (s.value = !0, i.value = setInterval(U, 20));
39
39
  }
40
40
  function z() {
41
41
  g.value = o.value, s.value = !1;
@@ -44,34 +44,35 @@ const le = {
44
44
  clearInterval(i.value), i.value = void 0, o.value = 100, s.value = !1;
45
45
  }
46
46
  c.requestStatus.on((e) => {
47
- e === "start" && U(), e === "stop" && z(), e === "abort" && A();
47
+ e === "start" && L(), e === "stop" && z(), e === "abort" && A();
48
48
  });
49
49
  function H(e) {
50
- t.value && f.edit(t.value.uid, "method", e);
50
+ l.value && f.edit(l.value.uid, "method", e);
51
51
  }
52
52
  function M() {
53
- if (!t.value) return;
54
- const { method: e } = t.value;
53
+ if (!l.value) return;
54
+ const { method: e } = l.value;
55
55
  return J[e].backgroundColor;
56
56
  }
57
57
  function m() {
58
- s.value || (s.value = !0, c.executeRequest.emit());
58
+ var e;
59
+ s.value || (s.value = !0, c.executeRequest.emit({ requestUid: (e = l.value) == null ? void 0 : e.uid }));
59
60
  }
60
61
  c.hotKeys.on((e) => {
61
- var l;
62
- e != null && e.focusAddressBar && ((l = b.value) == null || l.focus()), e != null && e.executeRequest && m();
62
+ var t;
63
+ e != null && e.focusAddressBar && ((t = b.value) == null || t.focus()), e != null && e.executeRequest && m();
63
64
  });
64
65
  function N(e) {
65
- t.value && f.edit(t.value.uid, "path", e);
66
+ l.value && f.edit(l.value.uid, "path", e);
66
67
  }
67
- return (e, l) => a(t) && a(S) ? (_(), P("div", le, [
68
+ return (e, t) => a(l) && a(S) ? (_(), P("div", le, [
68
69
  r("div", te, [
69
70
  u(a(j), {
70
71
  modelValue: h.value,
71
- "onUpdate:modelValue": l[1] || (l[1] = (d) => h.value = d)
72
+ "onUpdate:modelValue": t[1] || (t[1] = (d) => h.value = d)
72
73
  }, {
73
74
  default: y(({ open: d }) => {
74
- var w, C, k, R, q;
75
+ var w, C, k, q, R;
75
76
  return [
76
77
  r("div", {
77
78
  class: B([
@@ -89,13 +90,13 @@ const le = {
89
90
  u(X, {
90
91
  isEditable: !a(x),
91
92
  isSquare: "",
92
- method: a(t).method,
93
+ method: a(l).method,
93
94
  teleport: "",
94
95
  onChange: H
95
96
  }, null, 8, ["isEditable", "method"])
96
97
  ]),
97
98
  r("div", oe, [
98
- l[2] || (l[2] = r("div", { class: "fade-left" }, null, -1)),
99
+ t[2] || (t[2] = r("div", { class: "fade-left" }, null, -1)),
99
100
  (C = (w = a(p)) == null ? void 0 : w.servers) != null && C.length ? (_(), K(Z, { key: 0 })) : E("", !0),
100
101
  u(Q, {
101
102
  ref_key: "addressBarRef",
@@ -108,14 +109,14 @@ const le = {
108
109
  disableTabIndent: "",
109
110
  emitOnBlur: !1,
110
111
  importCurl: "",
111
- modelValue: a(t).path,
112
- placeholder: (k = a(v)) != null && k.uid && ((q = (R = a(p)) == null ? void 0 : R.servers) != null && q.includes(a(v).uid)) ? "" : "Enter a URL or cURL command",
112
+ modelValue: a(l).path,
113
+ placeholder: (k = a(v)) != null && k.uid && ((R = (q = a(p)) == null ? void 0 : q.servers) != null && R.includes(a(v).uid)) ? "" : "Enter a URL or cURL command",
113
114
  server: "",
114
- onCurl: l[0] || (l[0] = (O) => e.$emit("importCurl", O)),
115
+ onCurl: t[0] || (t[0] = (O) => e.$emit("importCurl", O)),
115
116
  onSubmit: m,
116
117
  "onUpdate:modelValue": N
117
118
  }, null, 8, ["disabled", "modelValue", "placeholder"]),
118
- l[3] || (l[3] = r("div", { class: "fade-right" }, null, -1))
119
+ t[3] || (t[3] = r("div", { class: "fade-right" }, null, -1))
119
120
  ]),
120
121
  u(Y, { open: d }, null, 8, ["open"]),
121
122
  u(a(F), {
@@ -130,9 +131,9 @@ const le = {
130
131
  icon: "Play",
131
132
  size: "xs"
132
133
  }),
133
- l[4] || (l[4] = r("span", { class: "text-xxs lg:flex hidden" }, "Send", -1))
134
+ t[4] || (t[4] = r("span", { class: "text-xxs lg:flex hidden" }, "Send", -1))
134
135
  ]),
135
- l[5] || (l[5] = r("span", { class: "sr-only" }, " Send Request ", -1))
136
+ t[5] || (t[5] = r("span", { class: "sr-only" }, " Send Request ", -1))
136
137
  ]),
137
138
  _: 1
138
139
  }, 8, ["disabled"])
@@ -1,9 +1,15 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
1
+ type __VLS_Props = {
2
+ metaData?: {
3
+ itemUid?: string;
4
+ parentUid?: string;
5
+ };
6
+ };
7
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
2
8
  close: () => any;
3
9
  back: (e: KeyboardEvent) => any;
4
- }, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
10
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
5
11
  onClose?: (() => any) | undefined;
6
12
  onBack?: ((e: KeyboardEvent) => any) | undefined;
7
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLFormElement>;
13
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLFormElement>;
8
14
  export default _default;
9
15
  //# sourceMappingURL=CommandPaletteServer.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CommandPaletteServer.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/CommandPaletteServer.vue"],"names":[],"mappings":";;;;;;;AAuWA,wBAOG"}
1
+ {"version":3,"file":"CommandPaletteServer.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/CommandPaletteServer.vue"],"names":[],"mappings":"AAwIA,KAAK,WAAW,GAAG;IACjB,QAAQ,CAAC,EAAE;QACT,OAAO,CAAC,EAAE,MAAM,CAAA;QAChB,SAAS,CAAC,EAAE,MAAM,CAAA;KACnB,CAAA;CACF,CAAC;;;;;;;;AAuPF,wBAQG"}
@@ -1,82 +1,90 @@
1
- import { defineComponent as w, ref as v, computed as _, openBlock as s, createBlock as u, withCtx as a, createVNode as c, unref as i, createElementVNode as f, normalizeClass as y, toDisplayString as D, createTextVNode as N } from "vue";
2
- import { useActiveEntities as P } from "../../store/active-entities.js";
3
- import { ScalarListbox as B, ScalarButton as p, ScalarIcon as L } from "@scalar/components";
4
- import { useToasts as M } from "@scalar/use-toasts";
5
- import T from "./CommandActionForm.vue.js";
6
- import j from "./CommandActionInput.vue.js";
7
- import { useWorkspace as z } from "../../store/store.js";
8
- const q = /* @__PURE__ */ w({
1
+ import { defineComponent as y, ref as f, computed as N, openBlock as u, createBlock as d, withCtx as o, createVNode as m, unref as n, createElementVNode as p, normalizeClass as P, toDisplayString as _, createTextVNode as B } from "vue";
2
+ import { useActiveEntities as L } from "../../store/active-entities.js";
3
+ import { ScalarListbox as M, ScalarButton as b, ScalarIcon as T } from "@scalar/components";
4
+ import { useToasts as j } from "@scalar/use-toasts";
5
+ import z from "./CommandActionForm.vue.js";
6
+ import E from "./CommandActionInput.vue.js";
7
+ import { useWorkspace as R } from "../../store/store.js";
8
+ const F = /* @__PURE__ */ y({
9
9
  __name: "CommandPaletteServer",
10
+ props: {
11
+ metaData: {}
12
+ },
10
13
  emits: ["close", "back"],
11
- setup(E, { emit: b }) {
12
- const d = b, { toast: m } = M(), { activeCollection: C, activeWorkspaceCollections: x } = P(), { collectionMutators: S, serverMutators: k, events: V } = z(), r = v(""), n = _(
13
- () => x.value.flatMap(
14
- (l) => {
14
+ setup(C, { emit: x }) {
15
+ const s = C, c = x, { toast: v } = j(), { activeCollection: S, activeWorkspaceCollections: k } = L(), { collectionMutators: U, serverMutators: V, events: g } = R(), r = f(""), i = N(
16
+ () => k.value.flatMap(
17
+ (a) => {
15
18
  var e, t;
16
- return ((e = l.info) == null ? void 0 : e.title) === "Drafts" ? [] : {
17
- id: l.uid,
18
- label: ((t = l.info) == null ? void 0 : t.title) ?? "Unititled Collection"
19
+ return ((e = a.info) == null ? void 0 : e.title) === "Drafts" ? [] : {
20
+ id: a.uid,
21
+ label: ((t = a.info) == null ? void 0 : t.title) ?? "Unititled Collection"
19
22
  };
20
23
  }
21
24
  )
22
- ), o = v(
23
- n.value.find(
24
- (l) => {
25
+ ), l = f(
26
+ s.metaData ? i.value.find(
27
+ (a) => {
28
+ var e, t;
29
+ return a.id === ((e = s.metaData) == null ? void 0 : e.itemUid) || a.id === ((t = s.metaData) == null ? void 0 : t.parentUid);
30
+ }
31
+ ) : i.value.find(
32
+ (a) => {
25
33
  var e;
26
- return l.id === ((e = C.value) == null ? void 0 : e.uid);
34
+ return a.id === ((e = S.value) == null ? void 0 : e.uid);
27
35
  }
28
36
  )
29
- ), g = () => {
37
+ ), D = () => {
30
38
  var t;
31
39
  if (!r.value.trim()) {
32
- m("Please enter a valid url before creating a server.", "error");
40
+ v("Please enter a valid url before creating a server.", "error");
33
41
  return;
34
42
  }
35
- const l = (t = o.value) == null ? void 0 : t.id;
36
- if (!l) {
37
- m("Please select a collection before creating a server.", "error");
43
+ const a = (t = l.value) == null ? void 0 : t.id;
44
+ if (!a) {
45
+ v("Please select a collection before creating a server.", "error");
38
46
  return;
39
47
  }
40
- const e = k.add({ url: r.value }, l);
41
- S.edit(l, "selectedServerUid", e.uid), d("close");
42
- }, U = () => {
43
- V.commandPalette.emit({ commandName: "Create Collection" });
48
+ const e = V.add({ url: r.value }, a);
49
+ U.edit(a, "selectedServerUid", e.uid), c("close");
50
+ }, w = () => {
51
+ g.commandPalette.emit({ commandName: "Create Collection" });
44
52
  };
45
- return (l, e) => (s(), u(T, {
46
- disabled: !r.value.trim() || !o.value,
47
- onSubmit: g
53
+ return (a, e) => (u(), d(z, {
54
+ disabled: !r.value.trim() || !l.value,
55
+ onSubmit: D
48
56
  }, {
49
- options: a(() => [
50
- c(i(B), {
51
- modelValue: o.value,
52
- "onUpdate:modelValue": e[2] || (e[2] = (t) => o.value = t),
53
- options: n.value
57
+ options: o(() => [
58
+ m(n(M), {
59
+ modelValue: l.value,
60
+ "onUpdate:modelValue": e[2] || (e[2] = (t) => l.value = t),
61
+ options: i.value
54
62
  }, {
55
- default: a(() => [
56
- n.value.length > 0 ? (s(), u(i(p), {
63
+ default: o(() => [
64
+ i.value.length > 0 ? (u(), d(n(b), {
57
65
  key: 0,
58
66
  class: "justify-between p-2 max-h-8 w-fit gap-1 text-xs hover:bg-b-2",
59
67
  variant: "outlined"
60
68
  }, {
61
- default: a(() => [
62
- f("span", {
63
- class: y(o.value ? "text-c-1" : "text-c-3")
64
- }, D(o.value ? o.value.label : "Select Collection"), 3),
65
- c(i(L), {
69
+ default: o(() => [
70
+ p("span", {
71
+ class: P(l.value ? "text-c-1" : "text-c-3")
72
+ }, _(l.value ? l.value.label : "Select Collection"), 3),
73
+ m(n(T), {
66
74
  class: "text-c-3",
67
75
  icon: "ChevronDown",
68
76
  size: "md"
69
77
  })
70
78
  ]),
71
79
  _: 1
72
- })) : (s(), u(i(p), {
80
+ })) : (u(), d(n(b), {
73
81
  key: 1,
74
- class: "justify-between p-2 max-h-8 w-full gap-1 text-xs hover:bg-b-2",
82
+ class: "justify-between p-2 max-h-8 w-full gap-1 text-xs hover:bg-b-2 w-fit",
75
83
  variant: "outlined",
76
- onClick: U
84
+ onClick: w
77
85
  }, {
78
- default: a(() => e[3] || (e[3] = [
79
- f("span", { class: "text-c-1" }, "Create Collection", -1)
86
+ default: o(() => e[3] || (e[3] = [
87
+ p("span", { class: "text-c-1" }, "Create Collection", -1)
80
88
  ])),
81
89
  _: 1
82
90
  }))
@@ -84,16 +92,16 @@ const q = /* @__PURE__ */ w({
84
92
  _: 1
85
93
  }, 8, ["modelValue", "options"])
86
94
  ]),
87
- submit: a(() => e[4] || (e[4] = [
88
- N("Create Server")
95
+ submit: o(() => e[4] || (e[4] = [
96
+ B("Create Server")
89
97
  ])),
90
- default: a(() => [
91
- c(j, {
98
+ default: o(() => [
99
+ m(E, {
92
100
  modelValue: r.value,
93
101
  "onUpdate:modelValue": e[0] || (e[0] = (t) => r.value = t),
94
102
  label: "Server URL",
95
103
  placeholder: "Server URL",
96
- onOnDelete: e[1] || (e[1] = (t) => d("back", t))
104
+ onOnDelete: e[1] || (e[1] = (t) => c("back", t))
97
105
  }, null, 8, ["modelValue"])
98
106
  ]),
99
107
  _: 1
@@ -101,5 +109,5 @@ const q = /* @__PURE__ */ w({
101
109
  }
102
110
  });
103
111
  export {
104
- q as default
112
+ F as default
105
113
  };
@@ -44,13 +44,23 @@ export declare const PaletteComponents: {
44
44
  onClose?: (() => any) | undefined;
45
45
  onBack?: ((e: KeyboardEvent) => any) | undefined;
46
46
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLFormElement>;
47
- readonly 'Add Server': import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
47
+ readonly 'Add Server': import("vue").DefineComponent<{
48
+ metaData?: {
49
+ itemUid?: string;
50
+ parentUid?: string;
51
+ };
52
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
48
53
  close: () => any;
49
54
  back: (e: KeyboardEvent) => any;
50
- }, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
55
+ }, string, import("vue").PublicProps, Readonly<{
56
+ metaData?: {
57
+ itemUid?: string;
58
+ parentUid?: string;
59
+ };
60
+ }> & Readonly<{
51
61
  onClose?: (() => any) | undefined;
52
62
  onBack?: ((e: KeyboardEvent) => any) | undefined;
53
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLFormElement>;
63
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLFormElement>;
54
64
  readonly 'Create Collection': import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
55
65
  close: () => any;
56
66
  back: (e: KeyboardEvent) => any;
@@ -1 +1 @@
1
- {"version":3,"file":"TheCommandPalette.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/TheCommandPalette.vue"],"names":[],"mappings":"AAiZA;;;;GAIG;;AACH,wBAgeI;AAEJ,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQpB,CAAA;AAEV,yCAAyC;AACzC,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,iBAAiB,CAAA;AAEzD,MAAM,MAAM,mBAAmB,GAAG;IAChC,8DAA8D;IAC9D,WAAW,CAAC,EAAE,YAAY,CAAA;IAC1B,iEAAiE;IACjE,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAC/B,CACA"}
1
+ {"version":3,"file":"TheCommandPalette.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/TheCommandPalette.vue"],"names":[],"mappings":"AAiZA;;;;GAIG;;AACH,wBAgeI;AAEJ,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBA5f9B,CA5OC;qBA4OD,CA5OwB;;;;;;;mBA4OxB,CA5OC;qBA4OD,CA5OwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgvBd,CAAA;AAEV,yCAAyC;AACzC,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,iBAAiB,CAAA;AAEzD,MAAM,MAAM,mBAAmB,GAAG;IAChC,8DAA8D;IAC9D,WAAW,CAAC,EAAE,YAAY,CAAA;IAC1B,iEAAiE;IACjE,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAC/B,CACA"}
@@ -1,4 +1,4 @@
1
- import { defineComponent as t, openBlock as e, createElementBlock as l, normalizeProps as n, guardReactiveProps as m, unref as c, createElementVNode as i, normalizeClass as p, normalizeStyle as u, renderSlot as r, createCommentVNode as d } from "vue";
1
+ import { defineComponent as t, openBlock as e, createElementBlock as l, normalizeProps as n, guardReactiveProps as m, unref as c, createElementVNode as i, normalizeClass as p, normalizeStyle as u, renderSlot as s, createCommentVNode as d } from "vue";
2
2
  import { useBindCx as f } from "@scalar/components";
3
3
  const b = {
4
4
  key: 0,
@@ -10,23 +10,23 @@ const b = {
10
10
  scroll: { type: Boolean }
11
11
  },
12
12
  setup(v) {
13
- const { cx: s } = f();
13
+ const { cx: a } = f();
14
14
  return (o, w) => (e(), l("div", n(m(
15
- c(s)(
15
+ c(a)(
16
16
  o.scroll ? "overflow-x-auto custom-scroll" : "overflow-visible",
17
- "scalar-data-table border-t-1/2 bg-b-1"
17
+ "scalar-data-table bg-b-1"
18
18
  )
19
19
  )), [
20
20
  i("table", {
21
21
  class: p(["grid auto-rows-auto min-h-8 mb-0", { "min-w-full w-max": o.scroll }]),
22
22
  style: u({
23
- gridTemplateColumns: o.columns.map((a) => a || "1fr").join(" ")
23
+ gridTemplateColumns: o.columns.map((r) => r || "1fr").join(" ")
24
24
  })
25
25
  }, [
26
26
  o.$slots.caption ? (e(), l("caption", b, [
27
- r(o.$slots, "caption")
27
+ s(o.$slots, "caption")
28
28
  ])) : d("", !0),
29
- r(o.$slots, "default")
29
+ s(o.$slots, "default")
30
30
  ], 6)
31
31
  ], 16));
32
32
  }
@@ -1,4 +1,4 @@
1
- import { defineComponent as t, openBlock as o, createBlock as l, resolveDynamicComponent as n, mergeProps as s, unref as a, withCtx as i, renderSlot as p } from "vue";
1
+ import { defineComponent as t, openBlock as o, createBlock as l, resolveDynamicComponent as n, mergeProps as a, unref as s, withCtx as m, renderSlot as p } from "vue";
2
2
  import { useBindCx as d } from "@scalar/components";
3
3
  const b = /* @__PURE__ */ t({
4
4
  inheritAttrs: !1,
@@ -6,15 +6,15 @@ const b = /* @__PURE__ */ t({
6
6
  props: {
7
7
  is: { default: "td" }
8
8
  },
9
- setup(m) {
9
+ setup(i) {
10
10
  const { cx: r } = d();
11
- return (e, f) => (o(), l(n(e.is), s(
12
- a(r)(
13
- "max-h-8 min-h-8 min-w-8 border-l-0 group-[:not(:first-child)]:border-t-1/2 border-b-0 border-r-1/2 flex text-sm last:border-r-0 group-last:border-b-transparent p-0 m-0 relative"
11
+ return (e, f) => (o(), l(n(e.is), a(
12
+ s(r)(
13
+ "max-h-8 min-h-8 min-w-8 border-l-0 border-t border-b-0 border-r flex text-sm last:border-r-0 group-last:border-b-transparent p-0 m-0 relative"
14
14
  ),
15
15
  { role: "cell" }
16
16
  ), {
17
- default: i(() => [
17
+ default: m(() => [
18
18
  p(e.$slots, "default")
19
19
  ]),
20
20
  _: 3
@@ -1 +1 @@
1
- {"version":3,"file":"Form.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Form/Form.vue"],"names":[],"mappings":"AAiDA,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;IAC9D,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACzB,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,IAAI,CAAA;CAC5C,CAAC;AAQF,iBAAS,cAAc;WA0GT,OAAO,IAA6B;;uBARvB,GAAG;;;;EAa7B;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,0SAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"Form.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Form/Form.vue"],"names":[],"mappings":"AAiDA,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;IAC9D,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACzB,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,IAAI,CAAA;CAC5C,CAAC;AAQF,iBAAS,cAAc;WAwGT,OAAO,IAA6B;;uBARvB,GAAG;;;;EAa7B;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,0SAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,9 +1,9 @@
1
- import { defineComponent as m, openBlock as t, createBlock as a, withCtx as l, createElementBlock as n, toDisplayString as d, renderSlot as p, createElementVNode as c, Fragment as i, renderList as u, normalizeClass as f, createVNode as _, createTextVNode as k, createCommentVNode as y } from "vue";
1
+ import { defineComponent as m, openBlock as t, createBlock as a, withCtx as l, createElementBlock as n, toDisplayString as s, renderSlot as p, createElementVNode as c, Fragment as i, renderList as u, normalizeClass as f, createVNode as _, createTextVNode as k, createCommentVNode as y } from "vue";
2
2
  import V from "../DataTable/DataTable.vue.js";
3
3
  import h from "../DataTable/DataTableInput.vue.js";
4
4
  import b from "../DataTable/DataTableRow.vue.js";
5
5
  import g from "../ViewLayout/ViewLayoutSection.vue.js";
6
- const C = { key: 0 }, N = { class: "custom-scroll flex flex-1 flex-col gap-1.5 p-2 md:p-5" }, E = /* @__PURE__ */ m({
6
+ const C = { key: 0 }, N = { class: "custom-scroll flex flex-1 flex-col gap-1.5" }, E = /* @__PURE__ */ m({
7
7
  __name: "Form",
8
8
  props: {
9
9
  title: {},
@@ -14,7 +14,7 @@ const C = { key: 0 }, N = { class: "custom-scroll flex flex-1 flex-col gap-1.5 p
14
14
  setup(S) {
15
15
  return (e, U) => (t(), a(g, null, {
16
16
  title: l(() => [
17
- e.title ? (t(), n("span", C, d(e.title), 1)) : p(e.$slots, "title", { key: 1 })
17
+ e.title ? (t(), n("span", C, s(e.title), 1)) : p(e.$slots, "title", { key: 1 })
18
18
  ]),
19
19
  default: l(() => [
20
20
  c("div", N, [
@@ -31,10 +31,10 @@ const C = { key: 0 }, N = { class: "custom-scroll flex flex-1 flex-col gap-1.5 p
31
31
  _(h, {
32
32
  modelValue: String(e.data[o.key] ?? ""),
33
33
  placeholder: o.placeholder,
34
- "onUpdate:modelValue": (s) => e.onUpdate(o.key, s)
34
+ "onUpdate:modelValue": (d) => e.onUpdate(o.key, d)
35
35
  }, {
36
36
  default: l(() => [
37
- k(d(o.label), 1)
37
+ k(s(o.label), 1)
38
38
  ]),
39
39
  _: 2
40
40
  }, 1032, ["modelValue", "placeholder", "onUpdate:modelValue"])
@@ -1 +1 @@
1
- {"version":3,"file":"ImportCollectionModal.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ImportCollection/ImportCollectionModal.vue"],"names":[],"mappings":"AA4ZA,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,SAAS,EAAE,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,IAAI,CAAA;CAC7C,CAAC;;;;;;AAodF,wBAQG"}
1
+ {"version":3,"file":"ImportCollectionModal.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ImportCollection/ImportCollectionModal.vue"],"names":[],"mappings":"AA6aA,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,SAAS,EAAE,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,IAAI,CAAA;CAC7C,CAAC;;;;;;AA6dF,wBAQG"}