@scalar/api-client 2.0.22 → 2.0.25

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 (182) hide show
  1. package/CHANGELOG.md +48 -0
  2. package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
  3. package/dist/components/AddressBar/AddressBar.vue.js +2 -2
  4. package/dist/components/AddressBar/AddressBar.vue2.js +80 -84
  5. package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +1 -1
  6. package/dist/components/AddressBar/AddressBarHistory.vue.js +11 -10
  7. package/dist/components/AddressBar/AddressBarServer.vue.d.ts.map +1 -1
  8. package/dist/components/CodeInput/CodeInput.vue.d.ts +10 -0
  9. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  10. package/dist/components/CodeInput/CodeInput.vue.js +3 -2
  11. package/dist/components/CodeInput/CodeInput.vue2.js +42 -37
  12. package/dist/components/CodeInput/codeDropdownWidget.d.ts +24 -0
  13. package/dist/components/CodeInput/codeDropdownWidget.d.ts.map +1 -0
  14. package/dist/components/CodeInput/codeDropdownWidget.js +110 -0
  15. package/dist/components/CodeInput/codeVariableWidget.d.ts +8 -0
  16. package/dist/components/CodeInput/codeVariableWidget.d.ts.map +1 -0
  17. package/dist/components/CodeInput/codeVariableWidget.js +124 -0
  18. package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts +2 -15
  19. package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts.map +1 -1
  20. package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +51 -54
  21. package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts +4 -2
  22. package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts.map +1 -1
  23. package/dist/components/CommandPalette/CommandPaletteExample.vue.js +106 -92
  24. package/dist/components/CommandPalette/CommandPaletteFolder.vue.d.ts +2 -15
  25. package/dist/components/CommandPalette/CommandPaletteFolder.vue.d.ts.map +1 -1
  26. package/dist/components/CommandPalette/CommandPaletteFolder.vue.js +68 -74
  27. package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts +2 -15
  28. package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
  29. package/dist/components/CommandPalette/CommandPaletteImport.vue.js +56 -62
  30. package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts +2 -15
  31. package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts.map +1 -1
  32. package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +106 -99
  33. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts +7 -0
  34. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts.map +1 -0
  35. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.js +57 -0
  36. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue2.js +4 -0
  37. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +50 -0
  38. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -0
  39. package/dist/components/CommandPalette/TheCommandPalette.vue.js +9 -0
  40. package/dist/components/CommandPalette/TheCommandPalette.vue2.js +198 -0
  41. package/dist/components/CommandPalette/index.d.ts +2 -0
  42. package/dist/components/CommandPalette/index.d.ts.map +1 -0
  43. package/dist/components/CommandPalette/index.js +4 -0
  44. package/dist/components/ContextBar.vue.js +4 -4
  45. package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.js +7 -6
  46. package/dist/components/DataTable/DataTableCheckbox.vue.d.ts.map +1 -1
  47. package/dist/components/DataTable/DataTableCheckbox.vue.js +3 -2
  48. package/dist/components/DataTable/DataTableInput.vue.d.ts +1 -1
  49. package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
  50. package/dist/components/DataTable/DataTableInput.vue.js +3 -3
  51. package/dist/components/DataTable/DataTableInput.vue2.js +36 -49
  52. package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -1
  53. package/dist/components/DataTable/DataTableInputSelect.vue.js +15 -14
  54. package/dist/components/Search/SearchButton.vue.d.ts.map +1 -1
  55. package/dist/components/Search/SearchButton.vue.js +7 -6
  56. package/dist/components/SideNav/SideNav.vue.d.ts.map +1 -1
  57. package/dist/components/SideNav/SideNav.vue.js +26 -23
  58. package/dist/components/SideNav/SideNavLink.vue.d.ts +3 -2
  59. package/dist/components/SideNav/SideNavLink.vue.d.ts.map +1 -1
  60. package/dist/components/SideNav/SideNavLink.vue.js +18 -16
  61. package/dist/components/Sidebar/Sidebar.vue.d.ts +15 -2
  62. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  63. package/dist/components/Sidebar/Sidebar.vue.js +14 -12
  64. package/dist/components/Sidebar/SidebarButton.vue.d.ts.map +1 -1
  65. package/dist/components/Sidebar/SidebarButton.vue.js +5 -5
  66. package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts.map +1 -1
  67. package/dist/components/Sidebar/SidebarListElementActions.vue.js +2 -2
  68. package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
  69. package/dist/components/TopNav/TopNav.vue.js +1 -1
  70. package/dist/components/TopNav/TopNav.vue2.js +31 -29
  71. package/dist/components/TopNav/TopNavItem.vue.d.ts +7 -3
  72. package/dist/components/TopNav/TopNavItem.vue.d.ts.map +1 -1
  73. package/dist/components/TopNav/TopNavItem.vue.js +2 -2
  74. package/dist/components/TopNav/TopNavItem.vue2.js +18 -18
  75. package/dist/components/ViewLayout/ViewLayout.vue.d.ts.map +1 -1
  76. package/dist/components/ViewLayout/ViewLayout.vue.js +1 -1
  77. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
  78. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +2 -1
  79. package/dist/constants.d.ts +13 -7
  80. package/dist/constants.d.ts.map +1 -1
  81. package/dist/constants.js +4 -4
  82. package/dist/index.d.ts +2 -4
  83. package/dist/index.d.ts.map +1 -1
  84. package/dist/index.js +11 -16
  85. package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -0
  86. package/dist/layouts/App/ApiClientApp.vue.js +72 -0
  87. package/dist/{App → layouts/App}/createApiClientApp.d.ts +1 -1
  88. package/dist/layouts/App/createApiClientApp.d.ts.map +1 -0
  89. package/dist/{App → layouts/App}/createApiClientApp.js +2 -2
  90. package/dist/layouts/App/index.d.ts.map +1 -0
  91. package/dist/{Modal → layouts/Modal}/ApiClientModal.vue.d.ts +1 -0
  92. package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -0
  93. package/dist/{Modal → layouts/Modal}/ApiClientModal.vue.js +2 -2
  94. package/dist/layouts/Modal/api-client-modal.d.ts.map +1 -0
  95. package/dist/{Modal → layouts/Modal}/api-client-modal.js +7 -7
  96. package/dist/layouts/Modal/index.d.ts.map +1 -0
  97. package/dist/libs/eventBusses/command-palette.d.ts +14 -0
  98. package/dist/libs/eventBusses/command-palette.d.ts.map +1 -0
  99. package/dist/libs/eventBusses/command-palette.js +5 -0
  100. package/dist/libs/local-storage.d.ts +1 -1
  101. package/dist/libs/local-storage.d.ts.map +1 -1
  102. package/dist/libs/local-storage.js +19 -19
  103. package/dist/router.d.ts +18 -6
  104. package/dist/router.d.ts.map +1 -1
  105. package/dist/router.js +107 -71
  106. package/dist/store/topNav.d.ts +94 -82
  107. package/dist/store/topNav.d.ts.map +1 -1
  108. package/dist/store/topNav.js +21 -20
  109. package/dist/store/workspace.d.ts +312 -82
  110. package/dist/store/workspace.d.ts.map +1 -1
  111. package/dist/store/workspace.js +299 -224
  112. package/dist/style.css +1 -1
  113. package/dist/views/Collection/Collection.vue.d.ts.map +1 -1
  114. package/dist/views/Components/Schemas/Schemas.vue.d.ts.map +1 -1
  115. package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
  116. package/dist/views/Cookies/Cookies.vue2.js +9 -12
  117. package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
  118. package/dist/views/Environment/Environment.vue2.js +22 -25
  119. package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
  120. package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +38 -47
  121. package/dist/views/Request/Request.vue.d.ts.map +1 -1
  122. package/dist/views/Request/Request.vue.js +1 -1
  123. package/dist/views/Request/Request.vue2.js +125 -108
  124. package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue.d.ts +1 -1
  125. package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue.d.ts.map +1 -1
  126. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
  127. package/dist/views/Request/RequestSection/RequestBody.vue.js +5 -4
  128. package/dist/views/Request/RequestSection/RequestSection.vue.js +3 -2
  129. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
  130. package/dist/views/Request/RequestSection/RequestTable.vue.js +4 -4
  131. package/dist/views/Request/RequestSection/RequestTable.vue2.js +22 -21
  132. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
  133. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +6 -5
  134. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  135. package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
  136. package/dist/views/Request/RequestSidebarItem.vue2.js +84 -79
  137. package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
  138. package/dist/views/Request/RequestSidebarItemMenu.vue.js +58 -38
  139. package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
  140. package/dist/views/Request/ResponseSection/ResponseSection.vue.js +3 -2
  141. package/dist/views/Request/components/OAuth2.vue.d.ts.map +1 -1
  142. package/dist/views/Request/components/OAuth2.vue.js +2 -0
  143. package/dist/{App.vue.d.ts → views/Request/components/WorkspaceDropdown.vue.d.ts} +1 -2
  144. package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -0
  145. package/dist/views/Request/components/WorkspaceDropdown.vue.js +80 -0
  146. package/dist/views/Request/components/WorkspaceDropdown.vue2.js +4 -0
  147. package/dist/views/Request/components/index.d.ts +1 -0
  148. package/dist/views/Request/components/index.d.ts.map +1 -1
  149. package/dist/views/Request/components/index.js +4 -2
  150. package/dist/views/Servers/Servers.vue.d.ts.map +1 -1
  151. package/dist/views/Servers/Servers.vue2.js +12 -15
  152. package/package.json +19 -15
  153. package/dist/App/ApiClientApp.vue.d.ts.map +0 -1
  154. package/dist/App/ApiClientApp.vue.js +0 -56
  155. package/dist/App/createApiClientApp.d.ts.map +0 -1
  156. package/dist/App/index.d.ts.map +0 -1
  157. package/dist/App.vue.d.ts.map +0 -1
  158. package/dist/App.vue.js +0 -77
  159. package/dist/App.vue3.js +0 -5
  160. package/dist/Modal/ApiClientModal.vue.d.ts.map +0 -1
  161. package/dist/Modal/api-client-modal.d.ts.map +0 -1
  162. package/dist/Modal/index.d.ts.map +0 -1
  163. package/dist/components/AddressBar/AddressBarServer.vue.js +0 -106
  164. package/dist/components/AddressBar/AddressBarServer.vue2.js +0 -4
  165. package/dist/components/CommandPalette/CommandPalette.vue.d.ts +0 -17
  166. package/dist/components/CommandPalette/CommandPalette.vue.d.ts.map +0 -1
  167. package/dist/components/CommandPalette/CommandPalette.vue.js +0 -7
  168. package/dist/components/CommandPalette/CommandPalette.vue2.js +0 -184
  169. package/dist/main.d.ts +0 -2
  170. package/dist/main.d.ts.map +0 -1
  171. package/dist/views/Collection/Collection.vue.js +0 -4
  172. package/dist/views/Collection/Collection.vue2.js +0 -136
  173. package/dist/views/Components/Schemas/Schemas.vue.js +0 -4
  174. package/dist/views/Components/Schemas/Schemas.vue2.js +0 -20
  175. /package/dist/{App → layouts/App}/ApiClientApp.vue.d.ts +0 -0
  176. /package/dist/{App → layouts/App}/ApiClientApp.vue3.js +0 -0
  177. /package/dist/{App → layouts/App}/index.d.ts +0 -0
  178. /package/dist/{App → layouts/App}/index.js +0 -0
  179. /package/dist/{Modal → layouts/Modal}/ApiClientModal.vue2.js +0 -0
  180. /package/dist/{Modal → layouts/Modal}/api-client-modal.d.ts +0 -0
  181. /package/dist/{Modal → layouts/Modal}/index.d.ts +0 -0
  182. /package/dist/{Modal → layouts/Modal}/index.js +0 -0
@@ -8,28 +8,28 @@ const U = { class: "w-full" }, W = { class: "flex items-center justify-center h-
8
8
  },
9
9
  emits: ["update:modelValue"],
10
10
  setup(_, { emit: g }) {
11
- const v = _, x = g, C = z(() => v.value ?? []), n = i(v.modelValue.toString()), s = i(!1), a = i(""), h = i(null);
11
+ const v = _, x = g, C = z(() => v.value ?? []), u = i(v.modelValue.toString()), s = i(!1), a = i(""), h = i(null);
12
12
  k(a, (e) => {
13
13
  x("update:modelValue", e);
14
14
  });
15
15
  const w = (e) => {
16
- n.value = e, x("update:modelValue", e), s.value = !1;
16
+ u.value = e, x("update:modelValue", e), s.value = !1;
17
17
  }, S = () => {
18
18
  a.value.trim() && (w(a.value), a.value = "");
19
19
  }, D = () => {
20
- a.value.trim() || (n.value = "", s.value = !1);
21
- }, b = (e) => n.value === e;
20
+ a.value.trim() || (u.value = "", s.value = !1);
21
+ }, b = (e) => u.value === e;
22
22
  return k(s, (e) => {
23
23
  e && N(() => {
24
- var u;
25
- (u = h.value) == null || u.focus();
24
+ var n;
25
+ (n = h.value) == null || n.focus();
26
26
  });
27
- }), (e, u) => (o(), p("div", U, [
27
+ }), (e, n) => (o(), p("div", U, [
28
28
  s.value ? T((o(), p("input", {
29
29
  key: 0,
30
30
  ref_key: "inputRef",
31
31
  ref: h,
32
- "onUpdate:modelValue": u[0] || (u[0] = (t) => a.value = t),
32
+ "onUpdate:modelValue": n[0] || (n[0] = (t) => a.value = t),
33
33
  class: "border-none focus:text-c-1 text-c-2 min-w-0 w-full px-2 py-1.5 outline-none",
34
34
  placeholder: "Value",
35
35
  type: "text",
@@ -40,7 +40,7 @@ const U = { class: "w-full" }, W = { class: "flex items-center justify-center h-
40
40
  ]) : (o(), m(l(F), {
41
41
  key: 1,
42
42
  resize: "",
43
- value: n.value
43
+ value: u.value
44
44
  }, {
45
45
  items: r(() => [
46
46
  (o(!0), p(A, null, E(C.value, (t) => (o(), m(l(V), {
@@ -57,8 +57,9 @@ const U = { class: "w-full" }, W = { class: "flex items-center justify-center h-
57
57
  ])
58
58
  }, [
59
59
  c(l(f), {
60
- class: "size-2.5 stroke-[1.75]",
61
- icon: "Checkmark"
60
+ class: "size-2.5",
61
+ icon: "Checkmark",
62
+ thickness: "3.5"
62
63
  })
63
64
  ], 2),
64
65
  R(" " + y(t), 1)
@@ -68,7 +69,7 @@ const U = { class: "w-full" }, W = { class: "flex items-center justify-center h-
68
69
  c(l(L)),
69
70
  c(l(V), {
70
71
  class: "flex items-center gap-1.5",
71
- onClick: u[1] || (u[1] = (t) => s.value = !0)
72
+ onClick: n[1] || (n[1] = (t) => s.value = !0)
72
73
  }, {
73
74
  default: r(() => [
74
75
  d("div", W, [
@@ -89,8 +90,8 @@ const U = { class: "w-full" }, W = { class: "flex items-center justify-center h-
89
90
  variant: "ghost"
90
91
  }, {
91
92
  default: r(() => [
92
- d("span", null, y(n.value || "Select a value"), 1),
93
- n.value ? $("", !0) : (o(), m(l(f), {
93
+ d("span", null, y(u.value || "Select a value"), 1),
94
+ u.value ? $("", !0) : (o(), m(l(f), {
94
95
  key: 0,
95
96
  icon: "ChevronDown",
96
97
  size: "xs"
@@ -1 +1 @@
1
- {"version":3,"file":"SearchButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Search/SearchButton.vue"],"names":[],"mappings":";;;;;AAiIA,wBAMG"}
1
+ {"version":3,"file":"SearchButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Search/SearchButton.vue"],"names":[],"mappings":";;;;;AAkIA,wBAMG"}
@@ -1,11 +1,11 @@
1
- import { defineComponent as c, openBlock as r, createElementBlock as i, createElementVNode as e, createVNode as o, unref as a } from "vue";
1
+ import { defineComponent as c, openBlock as r, createElementBlock as i, createElementVNode as e, createVNode as s, unref as a } from "vue";
2
2
  import l from "../ScalarHotkey.vue.js";
3
3
  import { ScalarIcon as m } from "@scalar/components";
4
4
  const d = { class: "bg-b-1 sticky top-0 z-50 px-3 py-2.5 pb-0" }, p = { class: "w-[15px] flex items-center justify-center" }, f = { class: "sidebar-search-input ml-1.5 flex w-full items-center justify-between text-sm font-medium" }, _ = /* @__PURE__ */ e("span", { class: "sidebar-search-placeholder" }, "Search", -1), S = /* @__PURE__ */ c({
5
5
  __name: "SearchButton",
6
6
  emits: ["openSearchModal"],
7
- setup(u, { emit: s }) {
8
- const n = s;
7
+ setup(u, { emit: o }) {
8
+ const n = o;
9
9
  return (h, t) => (r(), i("div", d, [
10
10
  e("button", {
11
11
  class: "shadow-border text-c-2 flex w-full items-center rounded p-1.5",
@@ -13,14 +13,15 @@ const d = { class: "bg-b-1 sticky top-0 z-50 px-3 py-2.5 pb-0" }, p = { class: "
13
13
  onClick: t[0] || (t[0] = (x) => n("openSearchModal"))
14
14
  }, [
15
15
  e("div", p, [
16
- o(a(m), {
16
+ s(a(m), {
17
17
  icon: "Search",
18
- size: "xs"
18
+ size: "xs",
19
+ thickness: "2.5"
19
20
  })
20
21
  ]),
21
22
  e("div", f, [
22
23
  _,
23
- o(l, { hotkey: "k" })
24
+ s(l, { hotkey: "k" })
24
25
  ])
25
26
  ])
26
27
  ]));
@@ -1 +1 @@
1
- {"version":3,"file":"SideNav.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SideNav/SideNav.vue"],"names":[],"mappings":";AAsIA,wBAKG"}
1
+ {"version":3,"file":"SideNav.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SideNav/SideNav.vue"],"names":[],"mappings":";AAuIA,wBAKG"}
@@ -1,37 +1,40 @@
1
- import { defineComponent as m, openBlock as e, createElementBlock as t, createVNode as o, createElementVNode as r, Fragment as _, renderList as f, unref as i, withCtx as p, createTextVNode as u, toDisplayString as d } from "vue";
1
+ import { defineComponent as m, openBlock as t, createElementBlock as o, createVNode as r, createElementVNode as a, Fragment as _, renderList as f, unref as c, withCtx as p, createTextVNode as u, toDisplayString as d } from "vue";
2
2
  import x from "../DarkModeToggle/DarkModeIconToggle.vue.js";
3
3
  import { ROUTES as h } from "../../constants.js";
4
- import { useRouter as g } from "vue-router";
5
- import v from "./SideNavLink.vue.js";
4
+ import { useRouter as v } from "vue-router";
5
+ import g from "./SideNavLink.vue.js";
6
6
  import N from "./WorkspaceProfileIcon.vue.js";
7
7
  /* empty css */
8
8
  const y = {
9
9
  "aria-label": "Side Navigation",
10
- class: "text-c-2 w-15 flex flex-col items-center px-2 py-2",
10
+ class: "text-c-2 w-15 flex flex-col items-center px-2 py-2 scalar-sidenav",
11
11
  role: "navigation"
12
12
  }, S = { class: "mt-3.5 flex flex-col gap-1.5" }, k = { class: "mt-auto flex flex-col gap-2 py-1.5" }, E = { class: "flex items-center" }, L = /* @__PURE__ */ m({
13
13
  __name: "SideNav",
14
14
  setup(R) {
15
- const { currentRoute: c } = g();
16
- return (V, $) => (e(), t("nav", y, [
17
- o(N),
18
- r("ul", S, [
19
- (e(!0), t(_, null, f(i(h), ({ icon: n, label: s, path: a }, l) => (e(), t("li", { key: l }, [
20
- o(v, {
21
- active: i(c).path.startsWith(a),
22
- icon: n,
23
- path: a
24
- }, {
25
- default: p(() => [
26
- u(d(s), 1)
27
- ]),
28
- _: 2
29
- }, 1032, ["active", "icon", "path"])
30
- ]))), 128))
15
+ const { currentRoute: n } = v();
16
+ return (V, $) => (t(), o("nav", y, [
17
+ r(N),
18
+ a("ul", S, [
19
+ (t(!0), o(_, null, f(c(h), ({ icon: s, name: e }, l) => {
20
+ var i;
21
+ return t(), o("li", { key: l }, [
22
+ r(g, {
23
+ active: (i = c(n).name) == null ? void 0 : i.startsWith(e),
24
+ icon: s,
25
+ name: e
26
+ }, {
27
+ default: p(() => [
28
+ u(d(e), 1)
29
+ ]),
30
+ _: 2
31
+ }, 1032, ["active", "icon", "name"])
32
+ ]);
33
+ }), 128))
31
34
  ]),
32
- r("ul", k, [
33
- r("li", E, [
34
- o(x)
35
+ a("ul", k, [
36
+ a("li", E, [
37
+ r(x)
35
38
  ])
36
39
  ])
37
40
  ]));
@@ -1,3 +1,4 @@
1
+ import type { ROUTES } from '../../constants.js';
1
2
  import { ScalarIcon } from '@scalar/components';
2
3
  type IconProps = InstanceType<typeof ScalarIcon>['$props'];
3
4
  declare function __VLS_template(): {
@@ -5,11 +6,11 @@ declare function __VLS_template(): {
5
6
  };
6
7
  declare const __VLS_component: import("vue").DefineComponent<__VLS_TypePropsToOption<{
7
8
  icon: IconProps["icon"];
8
- path: string;
9
+ name: (typeof ROUTES)[number]["name"];
9
10
  active?: boolean;
10
11
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
11
12
  icon: IconProps["icon"];
12
- path: string;
13
+ name: (typeof ROUTES)[number]["name"];
13
14
  active?: boolean;
14
15
  }>>>, {}, {}>;
15
16
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
@@ -1 +1 @@
1
- {"version":3,"file":"SideNavLink.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SideNav/SideNavLink.vue"],"names":[],"mappings":"AAyBA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAI/C,KAAK,SAAS,GAAG,YAAY,CAAC,OAAO,UAAU,CAAC,CAAC,QAAQ,CAAC,CAAA;AAa1D,iBAAS,cAAc;qBAwDO,GAAG;EAehC;AACD,QAAA,MAAM,eAAe;UAlFb,SAAS,CAAC,MAAM,CAAC;UACjB,MAAM;aACH,OAAO;;UAFV,SAAS,CAAC,MAAM,CAAC;UACjB,MAAM;aACH,OAAO;aAsFhB,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
+ {"version":3,"file":"SideNavLink.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SideNav/SideNavLink.vue"],"names":[],"mappings":"AA6BA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAEzC,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAI/C,KAAK,SAAS,GAAG,YAAY,CAAC,OAAO,UAAU,CAAC,CAAC,QAAQ,CAAC,CAAA;AAe1D,iBAAS,cAAc;qBAuDO,GAAG;EAgBhC;AACD,QAAA,MAAM,eAAe;UApFb,SAAS,CAAC,MAAM,CAAC;UACjB,CAAC,OAAO,MAAM,EAAE,MAAM,CAAC,CAAC,MAAM,CAAC;aAC5B,OAAO;;UAFV,SAAS,CAAC,MAAM,CAAC;UACjB,CAAC,OAAO,MAAM,EAAE,MAAM,CAAC,CAAC,MAAM,CAAC;aAC5B,OAAO;aAwFhB,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,27 +1,29 @@
1
- import { defineComponent as t, resolveComponent as n, openBlock as r, createBlock as a, normalizeClass as s, withCtx as c, createVNode as l, unref as i, createElementVNode as p, renderSlot as u } from "vue";
2
- import { ScalarIcon as m } from "@scalar/components";
3
- const d = { class: "sr-only" }, k = /* @__PURE__ */ t({
1
+ import { defineComponent as r, resolveComponent as a, openBlock as s, createBlock as c, normalizeClass as i, unref as o, withCtx as l, createVNode as p, createElementVNode as u, renderSlot as m } from "vue";
2
+ import { useWorkspace as d } from "../../store/workspace.js";
3
+ import { ScalarIcon as f } from "@scalar/components";
4
+ const k = { class: "sr-only" }, x = /* @__PURE__ */ r({
4
5
  __name: "SideNavLink",
5
6
  props: {
6
7
  icon: {},
7
- path: {},
8
+ name: {},
8
9
  active: { type: Boolean }
9
10
  },
10
- setup(f) {
11
+ setup(v) {
12
+ const { activeWorkspace: t } = d();
11
13
  return (e, _) => {
12
- const o = n("router-link");
13
- return r(), a(o, {
14
+ const n = a("router-link");
15
+ return s(), c(n, {
14
16
  activeClass: "active-link",
15
- class: s(["w-[37px] hover:bg-b-2 active:text-c-1 flex items-center justify-center rounded-lg p-[7px]", { "bg-b-2 transition-none hover:cursor-auto text-c-1": e.active }]),
16
- to: e.path
17
+ class: i(["w-[37px] hover:bg-b-2 active:text-c-1 flex items-center justify-center rounded-lg p-[7px]", { "bg-b-2 transition-none hover:cursor-auto text-c-1": e.active }]),
18
+ to: `/workspace/${o(t).uid}/${e.name}/default`
17
19
  }, {
18
- default: c(() => [
19
- l(i(m), {
20
- class: "stroke-[1.5]",
21
- icon: e.icon
20
+ default: l(() => [
21
+ p(o(f), {
22
+ icon: e.icon,
23
+ thickness: "1.5"
22
24
  }, null, 8, ["icon"]),
23
- p("span", d, [
24
- u(e.$slots, "default")
25
+ u("span", k, [
26
+ m(e.$slots, "default")
25
27
  ])
26
28
  ]),
27
29
  _: 3
@@ -30,5 +32,5 @@ const d = { class: "sr-only" }, k = /* @__PURE__ */ t({
30
32
  }
31
33
  });
32
34
  export {
33
- k as default
35
+ x as default
34
36
  };
@@ -1,9 +1,13 @@
1
1
  declare function __VLS_template(): {
2
- title?(_: {}): any;
2
+ header?(_: {}): any;
3
3
  content?(_: {}): any;
4
4
  button?(_: {}): any;
5
5
  };
6
- declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
6
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_TypePropsToOption<{
7
+ title?: string;
8
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
9
+ title?: string;
10
+ }>>>, {}, {}>;
7
11
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
8
12
  export default _default;
9
13
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -11,4 +15,13 @@ type __VLS_WithTemplateSlots<T, S> = T & {
11
15
  $slots: S;
12
16
  };
13
17
  };
18
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
19
+ type __VLS_TypePropsToOption<T> = {
20
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
21
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
22
+ } : {
23
+ type: import('vue').PropType<T[K]>;
24
+ required: true;
25
+ };
26
+ };
14
27
  //# sourceMappingURL=Sidebar.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/Sidebar.vue"],"names":[],"mappings":"AAmCA,iBAAS,cAAc;mBAgDI,GAAG;qBACD,GAAG;oBACJ,GAAG;EAc9B;AACD,QAAA,MAAM,eAAe,0NAKnB,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"}
1
+ {"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/Sidebar.vue"],"names":[],"mappings":"AAyCA,iBAAS,cAAc;oBAiDK,GAAG;qBACF,GAAG;oBACJ,GAAG;EAe9B;AACD,QAAA,MAAM,eAAe;YA5EW,MAAM;;YAAN,MAAM;aAkFpC,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,19 +1,21 @@
1
- import { defineComponent as l, openBlock as s, createElementBlock as o, unref as c, createElementVNode as r, renderSlot as t, createCommentVNode as i } from "vue";
2
- import { useWorkspace as a } from "../../store/workspace.js";
3
- const d = { class: "w-sidebar relative flex flex-col border-r bg-b-1" }, m = {
1
+ import { defineComponent as l, openBlock as s, createElementBlock as o, renderSlot as t, unref as i, createElementVNode as r, toDisplayString as a, createCommentVNode as d } from "vue";
2
+ import { useWorkspace as c } from "../../store/workspace.js";
3
+ const m = { class: "w-sidebar relative flex flex-col border-r bg-b-1" }, p = {
4
4
  key: 0,
5
5
  class: "xl:min-h-header py-2.5 flex items-center border-b px-4 text-sm"
6
- }, _ = { class: "font-medium m-0 text-sm" }, p = { class: "custom-scroll sidebar-height" }, x = /* @__PURE__ */ l({
6
+ }, h = { class: "font-medium m-0 text-sm" }, _ = { class: "custom-scroll sidebar-height" }, x = /* @__PURE__ */ l({
7
7
  __name: "Sidebar",
8
+ props: {
9
+ title: {}
10
+ },
8
11
  setup(f) {
9
- const { isReadOnly: n } = a();
10
- return (e, h) => (s(), o("aside", d, [
11
- c(n) ? i("", !0) : (s(), o("div", m, [
12
- r("h2", _, [
13
- t(e.$slots, "title")
14
- ])
15
- ])),
16
- r("div", p, [
12
+ const { isReadOnly: n } = c();
13
+ return (e, u) => (s(), o("aside", m, [
14
+ t(e.$slots, "header"),
15
+ !i(n) && e.title ? (s(), o("div", p, [
16
+ r("h2", h, a(e.title), 1)
17
+ ])) : d("", !0),
18
+ r("div", _, [
17
19
  t(e.$slots, "content")
18
20
  ]),
19
21
  t(e.$slots, "button")
@@ -1 +1 @@
1
- {"version":3,"file":"SidebarButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarButton.vue"],"names":[],"mappings":"AA+CA,iBAAS,cAAc;mBAsFI,GAAG;EAiB7B;AACD,QAAA,MAAM,eAAe;WApHZ,MAAM,IAAI;;WAAV,MAAM,IAAI;aA0HjB,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
+ {"version":3,"file":"SidebarButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarButton.vue"],"names":[],"mappings":"AA+CA,iBAAS,cAAc;mBAuFI,GAAG;EAiB7B;AACD,QAAA,MAAM,eAAe;WArHZ,MAAM,IAAI;;WAAV,MAAM,IAAI;aA2HjB,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,4 +1,4 @@
1
- import { defineComponent as n, openBlock as l, createElementBlock as s, createVNode as e, unref as a, withCtx as i, renderSlot as p } from "vue";
1
+ import { defineComponent as n, openBlock as l, createElementBlock as i, createVNode as e, unref as a, withCtx as s, renderSlot as p } from "vue";
2
2
  import u from "../ScalarHotkey.vue.js";
3
3
  import { ScalarButton as d } from "@scalar/components";
4
4
  const f = { class: "fixed relative bottom-[50px] z-10 flex p-2" }, k = /* @__PURE__ */ n({
@@ -10,17 +10,17 @@ const f = { class: "fixed relative bottom-[50px] z-10 flex p-2" }, k = /* @__PUR
10
10
  const r = o, t = () => {
11
11
  r.click();
12
12
  };
13
- return (c, m) => (l(), s("div", f, [
13
+ return (c, m) => (l(), i("div", f, [
14
14
  e(a(d), {
15
15
  class: "bg-b-1 text-c-1 hover:bg-b-2 group relative w-full border p-1.5 h-auto",
16
16
  icon: "Plus",
17
- variant: "ghost",
17
+ variant: "outlined",
18
18
  onClick: t
19
19
  }, {
20
- default: i(() => [
20
+ default: s(() => [
21
21
  p(c.$slots, "title"),
22
22
  e(u, {
23
- class: "absolute right-2 group-hover:opacity-80",
23
+ class: "absolute right-2 group-hover:opacity-80 text-c-2",
24
24
  hotkey: "N",
25
25
  onHotkeyPressed: t
26
26
  })
@@ -1 +1 @@
1
- {"version":3,"file":"SidebarListElementActions.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarListElementActions.vue"],"names":[],"mappings":";cAmFY;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;;;;AA4LH,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
+ {"version":3,"file":"SidebarListElementActions.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarListElementActions.vue"],"names":[],"mappings":";cAmFY;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;;;;AA0LH,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"}
@@ -27,7 +27,7 @@ const B = { class: "absolute flex right-1 opacity-0 group-hover:opacity-100" },
27
27
  onClick: o[0] || (o[0] = (s) => a(C)(e.variable.name))
28
28
  }, [
29
29
  r(a(d), {
30
- class: "h-3 w-3 stroke-[1.5]",
30
+ class: "h-3 w-3",
31
31
  icon: "Clipboard"
32
32
  })
33
33
  ]),
@@ -41,7 +41,7 @@ const B = { class: "absolute flex right-1 opacity-0 group-hover:opacity-100" },
41
41
  ), ["prevent"]))
42
42
  }, [
43
43
  r(a(d), {
44
- class: "h-3.5 w-3.5 stroke-[1.5]",
44
+ class: "h-3.5 w-3.5",
45
45
  icon: "Close"
46
46
  })
47
47
  ]))
@@ -1 +1 @@
1
- {"version":3,"file":"TopNav.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TopNav/TopNav.vue"],"names":[],"mappings":";AA+NA,wBAKG"}
1
+ {"version":3,"file":"TopNav.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TopNav/TopNav.vue"],"names":[],"mappings":";AAkPA,wBAKG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./TopNav.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d4581e27"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-31a24876"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -1,47 +1,49 @@
1
- import { defineComponent as _, computed as k, openBlock as l, createElementBlock as a, createElementVNode as c, unref as e, createVNode as i, toDisplayString as I, Fragment as N, renderList as x, createBlock as y } from "vue";
2
- import { useTopNav as b } from "../../store/topNav.js";
1
+ import { defineComponent as k, computed as h, openBlock as c, createElementBlock as s, createElementVNode as l, unref as e, createVNode as p, toDisplayString as I, Fragment as g, renderList as b, createBlock as N, pushScopeId as x, popScopeId as y } from "vue";
2
+ import { useTopNav as C } from "../../store/topNav.js";
3
3
  import { ScalarIcon as m } from "@scalar/components";
4
- import g from "./TopNavItem.vue.js";
5
- const h = { class: "flex h-10 t-app__top-nav" }, C = { class: "flex h-10 flex-1 items-center justify-center gap-1.5 text-sm font-medium" }, B = {
4
+ import S from "./TopNavItem.vue.js";
5
+ const w = (o) => (x("data-v-31a24876"), o = o(), y(), o), B = { class: "flex h-10 t-app__top-nav" }, T = /* @__PURE__ */ w(() => /* @__PURE__ */ l("div", { class: "t-app__top-nav-draggable" }, null, -1)), V = { class: "flex h-10 flex-1 items-center justify-center gap-1.5 text-sm font-medium relative" }, j = {
6
6
  key: 0,
7
7
  class: "flex items-center gap-1 w-full justify-center"
8
- }, $ = /* @__PURE__ */ _({
8
+ }, F = /* @__PURE__ */ k({
9
9
  __name: "TopNav",
10
- setup(S) {
10
+ setup(o) {
11
11
  const {
12
- topNavItems: o,
13
- addNavItem: s,
12
+ topNavItems: n,
13
+ addNavItem: i,
14
14
  activeNavItemIdx: v,
15
- setNavItemIdx: p,
15
+ setNavItemIdx: d,
16
16
  removeNavItem: u
17
- } = b(), d = k(() => v.value);
18
- return (T, r) => (l(), a("nav", h, [
19
- c("div", C, [
20
- e(o).length === 1 ? (l(), a("div", B, [
21
- i(e(m), {
22
- class: "stroke-[2]",
23
- icon: e(o)[0].icon,
24
- size: "xs"
17
+ } = C(), _ = h(() => v.value);
18
+ return (z, r) => (c(), s("nav", B, [
19
+ T,
20
+ l("div", V, [
21
+ e(n).length === 1 ? (c(), s("div", j, [
22
+ p(e(m), {
23
+ icon: e(n)[0].icon,
24
+ size: "xs",
25
+ thickness: "2.5"
25
26
  }, null, 8, ["icon"]),
26
- c("div", null, I(e(o)[0].label), 1)
27
- ])) : (l(!0), a(N, { key: 1 }, x(e(o), (n, t) => (l(), y(g, {
27
+ l("div", null, I(e(n)[0].label), 1)
28
+ ])) : (c(!0), s(g, { key: 1 }, b(e(n), (a, t) => (c(), N(S, {
28
29
  key: t,
29
- active: t === d.value,
30
+ active: t === _.value,
30
31
  hotkey: (t + 1).toString(),
31
- icon: n.icon,
32
- label: n.label,
33
- onClick: (f) => e(p)(t),
32
+ icon: a.icon,
33
+ label: a.label,
34
+ onClick: (f) => e(d)(t),
34
35
  onClose: (f) => e(u)(t)
35
36
  }, null, 8, ["active", "hotkey", "icon", "label", "onClick", "onClose"]))), 128)),
36
- c("button", {
37
- class: "text-c-3 hover:bg-b-2 p-1.5 rounded-lg",
37
+ l("button", {
38
+ class: "text-c-3 hover:bg-b-2 p-1.5 rounded-lg webkit-app-no-drag",
38
39
  type: "button",
39
40
  onClick: r[0] || (r[0] = //@ts-ignore
40
- (...n) => e(s) && e(s)(...n))
41
+ (...a) => e(i) && e(i)(...a))
41
42
  }, [
42
- i(e(m), {
43
+ p(e(m), {
43
44
  icon: "Add",
44
- size: "xs"
45
+ size: "xs",
46
+ thickness: "2.5"
45
47
  })
46
48
  ])
47
49
  ])
@@ -49,5 +51,5 @@ const h = { class: "flex h-10 t-app__top-nav" }, C = { class: "flex h-10 flex-1
49
51
  }
50
52
  });
51
53
  export {
52
- $ as default
54
+ F as default
53
55
  };
@@ -1,13 +1,17 @@
1
- import type { Route } from '../../constants.js';
2
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<Omit<Route, "path"> & {
1
+ import { type Icon } from '@scalar/components';
2
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
3
3
  hotkey?: string;
4
4
  active: boolean;
5
+ label: string;
6
+ icon: Icon;
5
7
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
8
  click: () => void;
7
9
  close: () => void;
8
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<Omit<Route, "path"> & {
10
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
9
11
  hotkey?: string;
10
12
  active: boolean;
13
+ label: string;
14
+ icon: Icon;
11
15
  }>>> & {
12
16
  onClick?: (() => any) | undefined;
13
17
  onClose?: (() => any) | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"TopNavItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TopNav/TopNavItem.vue"],"names":[],"mappings":"AA6HA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;;aAM3B,MAAM;YACP,OAAO;;;;;aADN,MAAM;YACP,OAAO;;;;;AAsJnB,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
+ {"version":3,"file":"TopNavItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TopNav/TopNavItem.vue"],"names":[],"mappings":"AA+HA,OAAO,EAAE,KAAK,IAAI,EAA6B,MAAM,oBAAoB,CAAA;;aAK9D,MAAM;YACP,OAAO;WACR,MAAM;UACP,IAAI;;;;;aAHD,MAAM;YACP,OAAO;WACR,MAAM;UACP,IAAI;;;;;AAoJZ,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 o from "./TopNavItem.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-a1e15ecf"]]);
4
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-26cc8e34"]]);
5
5
  export {
6
- p as default
6
+ a as default
7
7
  };
@@ -1,32 +1,32 @@
1
- import { defineComponent as m, openBlock as n, createBlock as i, unref as s, withCtx as l, createElementVNode as o, normalizeClass as p, createVNode as a, toDisplayString as k, createCommentVNode as f } from "vue";
1
+ import { defineComponent as m, openBlock as i, createBlock as s, unref as n, withCtx as a, createElementVNode as o, normalizeClass as p, createVNode as l, toDisplayString as k, createCommentVNode as f } from "vue";
2
2
  import v from "../ScalarHotkey.vue.js";
3
3
  import { ScalarTooltip as y, ScalarIcon as c } from "@scalar/components";
4
- const d = { class: "nav-item-icon-copy flex flex-1 items-center justify-center gap-1.5" }, u = { class: "nav-item-copy text-xs" }, b = /* @__PURE__ */ m({
4
+ const d = { class: "nav-item-icon-copy flex flex-1 items-center justify-center gap-1.5" }, u = { class: "nav-item-copy text-xs" }, g = /* @__PURE__ */ m({
5
5
  __name: "TopNavItem",
6
6
  props: {
7
- label: {},
8
- icon: {},
9
7
  hotkey: {},
10
- active: { type: Boolean }
8
+ active: { type: Boolean },
9
+ label: {},
10
+ icon: {}
11
11
  },
12
12
  emits: ["click", "close"],
13
- setup(C) {
14
- return (e, t) => (n(), i(s(y), {
13
+ setup(h) {
14
+ return (e, t) => (i(), s(n(y), {
15
15
  class: "scalar-client",
16
16
  delay: 500,
17
17
  resize: "",
18
18
  sideOffset: 4
19
19
  }, {
20
- trigger: l(() => [
20
+ trigger: a(() => [
21
21
  o("div", {
22
- class: p(["nav-item", { "nav-item__active": e.active }]),
22
+ class: p(["nav-item webkit-app-no-drag", { "nav-item__active": e.active }]),
23
23
  onClick: t[1] || (t[1] = (r) => e.$emit("click"))
24
24
  }, [
25
25
  o("div", d, [
26
- a(s(c), {
27
- class: "stroke-[2]",
26
+ l(n(c), {
28
27
  icon: e.icon,
29
- size: "xs"
28
+ size: "xs",
29
+ thickness: "2.5"
30
30
  }, null, 8, ["icon"]),
31
31
  o("span", u, k(e.label), 1)
32
32
  ]),
@@ -35,15 +35,15 @@ const d = { class: "nav-item-icon-copy flex flex-1 items-center justify-center g
35
35
  type: "button",
36
36
  onClick: t[0] || (t[0] = (r) => e.$emit("close"))
37
37
  }, [
38
- a(s(c), {
39
- class: "stroke-[1.75]",
40
- icon: "Close"
38
+ l(n(c), {
39
+ icon: "Close",
40
+ thickness: "1.75"
41
41
  })
42
42
  ])
43
43
  ], 2)
44
44
  ]),
45
- content: l(() => [
46
- e.hotkey ? (n(), i(v, {
45
+ content: a(() => [
46
+ e.hotkey ? (i(), s(v, {
47
47
  key: 0,
48
48
  hotkey: e.hotkey
49
49
  }, null, 8, ["hotkey"])) : f("", !0)
@@ -53,5 +53,5 @@ const d = { class: "nav-item-icon-copy flex flex-1 items-center justify-center g
53
53
  }
54
54
  });
55
55
  export {
56
- b as default
56
+ g as default
57
57
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ViewLayout.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayout.vue"],"names":[],"mappings":"AAcA,iBAAS,cAAc;qBA2BM,GAAG;EAa/B;AACD,QAAA,MAAM,eAAe,0NAKnB,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"}
1
+ {"version":3,"file":"ViewLayout.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayout.vue"],"names":[],"mappings":"AAcA,iBAAS,cAAc;qBA4BM,GAAG;EAa/B;AACD,QAAA,MAAM,eAAe,0NAKnB,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"}