@scalar/api-client 2.0.24 → 2.0.26

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 (168) hide show
  1. package/CHANGELOG.md +39 -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 +79 -83
  5. package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +1 -1
  6. package/dist/components/AddressBar/AddressBarHistory.vue.js +38 -38
  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 +2 -1
  11. package/dist/components/CodeInput/CodeInput.vue2.js +43 -38
  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/DataTable/DataTableInput.vue.d.ts +1 -1
  46. package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
  47. package/dist/components/DataTable/DataTableInput.vue.js +3 -3
  48. package/dist/components/DataTable/DataTableInput.vue2.js +36 -49
  49. package/dist/components/SideNav/SideNav.vue.d.ts.map +1 -1
  50. package/dist/components/SideNav/SideNav.vue.js +26 -23
  51. package/dist/components/SideNav/SideNavLink.vue.d.ts +3 -2
  52. package/dist/components/SideNav/SideNavLink.vue.d.ts.map +1 -1
  53. package/dist/components/SideNav/SideNavLink.vue.js +5 -5
  54. package/dist/components/Sidebar/Sidebar.vue.d.ts +15 -2
  55. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  56. package/dist/components/Sidebar/Sidebar.vue.js +14 -12
  57. package/dist/components/Sidebar/SidebarButton.vue.d.ts.map +1 -1
  58. package/dist/components/Sidebar/SidebarButton.vue.js +5 -5
  59. package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
  60. package/dist/components/TopNav/TopNav.vue.js +2 -2
  61. package/dist/components/TopNav/TopNav.vue2.js +31 -28
  62. package/dist/components/TopNav/TopNavItem.vue.d.ts +7 -3
  63. package/dist/components/TopNav/TopNavItem.vue.d.ts.map +1 -1
  64. package/dist/components/TopNav/TopNavItem.vue.js +2 -2
  65. package/dist/components/TopNav/TopNavItem.vue2.js +16 -15
  66. package/dist/components/ViewLayout/ViewLayout.vue.d.ts.map +1 -1
  67. package/dist/components/ViewLayout/ViewLayout.vue.js +1 -1
  68. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
  69. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +2 -1
  70. package/dist/constants.d.ts +13 -7
  71. package/dist/constants.d.ts.map +1 -1
  72. package/dist/constants.js +4 -4
  73. package/dist/index.d.ts +3 -4
  74. package/dist/index.d.ts.map +1 -1
  75. package/dist/index.js +14 -16
  76. package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -0
  77. package/dist/layouts/App/ApiClientApp.vue.js +72 -0
  78. package/dist/{App → layouts/App}/createApiClientApp.d.ts +1 -1
  79. package/dist/layouts/App/createApiClientApp.d.ts.map +1 -0
  80. package/dist/{App → layouts/App}/createApiClientApp.js +2 -2
  81. package/dist/layouts/App/index.d.ts.map +1 -0
  82. package/dist/{Modal → layouts/Modal}/ApiClientModal.vue.d.ts +1 -0
  83. package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -0
  84. package/dist/{Modal → layouts/Modal}/ApiClientModal.vue.js +2 -2
  85. package/dist/{Modal → layouts/Modal}/api-client-modal.d.ts +1 -1
  86. package/dist/layouts/Modal/api-client-modal.d.ts.map +1 -0
  87. package/dist/{Modal → layouts/Modal}/api-client-modal.js +42 -42
  88. package/dist/layouts/Modal/index.d.ts.map +1 -0
  89. package/dist/libs/eventBusses/command-palette.d.ts +14 -0
  90. package/dist/libs/eventBusses/command-palette.d.ts.map +1 -0
  91. package/dist/libs/eventBusses/command-palette.js +5 -0
  92. package/dist/libs/local-storage.d.ts +1 -1
  93. package/dist/libs/local-storage.d.ts.map +1 -1
  94. package/dist/libs/local-storage.js +19 -19
  95. package/dist/router.d.ts +5 -10
  96. package/dist/router.d.ts.map +1 -1
  97. package/dist/router.js +23 -19
  98. package/dist/store/topNav.d.ts +94 -82
  99. package/dist/store/topNav.d.ts.map +1 -1
  100. package/dist/store/topNav.js +21 -20
  101. package/dist/store/workspace.d.ts +348 -94
  102. package/dist/store/workspace.d.ts.map +1 -1
  103. package/dist/store/workspace.js +314 -221
  104. package/dist/style.css +1 -1
  105. package/dist/views/Collection/Collection.vue.d.ts.map +1 -1
  106. package/dist/views/Components/Schemas/Schemas.vue.d.ts.map +1 -1
  107. package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
  108. package/dist/views/Cookies/Cookies.vue2.js +27 -30
  109. package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
  110. package/dist/views/Environment/Environment.vue2.js +22 -25
  111. package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
  112. package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +38 -47
  113. package/dist/views/Request/Request.vue.d.ts.map +1 -1
  114. package/dist/views/Request/Request.vue.js +1 -1
  115. package/dist/views/Request/Request.vue2.js +130 -109
  116. package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue.d.ts +1 -1
  117. package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue.d.ts.map +1 -1
  118. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
  119. package/dist/views/Request/RequestSection/RequestSection.vue.js +5 -4
  120. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
  121. package/dist/views/Request/RequestSection/RequestTable.vue.js +1 -1
  122. package/dist/views/Request/RequestSection/RequestTable.vue2.js +19 -19
  123. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
  124. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +6 -5
  125. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  126. package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
  127. package/dist/views/Request/RequestSidebarItem.vue2.js +78 -81
  128. package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
  129. package/dist/views/Request/RequestSidebarItemMenu.vue.js +60 -42
  130. package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
  131. package/dist/views/Request/ResponseSection/ResponseSection.vue.js +6 -5
  132. package/dist/views/Request/components/OAuth2.vue.d.ts.map +1 -1
  133. package/dist/views/Request/components/OAuth2.vue.js +2 -0
  134. package/dist/{App.vue.d.ts → views/Request/components/WorkspaceDropdown.vue.d.ts} +1 -2
  135. package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -0
  136. package/dist/views/Request/components/WorkspaceDropdown.vue.js +80 -0
  137. package/dist/views/Request/components/WorkspaceDropdown.vue2.js +4 -0
  138. package/dist/views/Request/components/index.d.ts +1 -0
  139. package/dist/views/Request/components/index.d.ts.map +1 -1
  140. package/dist/views/Request/components/index.js +4 -2
  141. package/dist/views/Servers/Servers.vue.d.ts.map +1 -1
  142. package/dist/views/Servers/Servers.vue2.js +12 -15
  143. package/package.json +22 -18
  144. package/dist/App/ApiClientApp.vue.d.ts.map +0 -1
  145. package/dist/App/ApiClientApp.vue.js +0 -56
  146. package/dist/App/createApiClientApp.d.ts.map +0 -1
  147. package/dist/App/index.d.ts.map +0 -1
  148. package/dist/App.vue.d.ts.map +0 -1
  149. package/dist/App.vue.js +0 -77
  150. package/dist/App.vue3.js +0 -5
  151. package/dist/Modal/ApiClientModal.vue.d.ts.map +0 -1
  152. package/dist/Modal/api-client-modal.d.ts.map +0 -1
  153. package/dist/Modal/index.d.ts.map +0 -1
  154. package/dist/components/AddressBar/AddressBarServer.vue.js +0 -113
  155. package/dist/components/AddressBar/AddressBarServer.vue2.js +0 -4
  156. package/dist/components/CommandPalette/CommandPalette.vue.d.ts +0 -17
  157. package/dist/components/CommandPalette/CommandPalette.vue.d.ts.map +0 -1
  158. package/dist/components/CommandPalette/CommandPalette.vue.js +0 -7
  159. package/dist/components/CommandPalette/CommandPalette.vue2.js +0 -185
  160. package/dist/main.d.ts +0 -2
  161. package/dist/main.d.ts.map +0 -1
  162. /package/dist/{App → layouts/App}/ApiClientApp.vue.d.ts +0 -0
  163. /package/dist/{App → layouts/App}/ApiClientApp.vue3.js +0 -0
  164. /package/dist/{App → layouts/App}/index.d.ts +0 -0
  165. /package/dist/{App → layouts/App}/index.js +0 -0
  166. /package/dist/{Modal → layouts/Modal}/ApiClientModal.vue2.js +0 -0
  167. /package/dist/{Modal → layouts/Modal}/index.d.ts +0 -0
  168. /package/dist/{Modal → layouts/Modal}/index.js +0 -0
@@ -1,18 +1,17 @@
1
- import { defineComponent as $, ref as d, computed as x, openBlock as o, createBlock as p, normalizeClass as B, withCtx as q, createElementBlock as r, renderSlot as m, createCommentVNode as s, createElementVNode as f, Fragment as C, mergeProps as S, unref as D, createVNode as _ } from "vue";
2
- import F from "../../views/Environment/EnvironmentVariableDropdown.vue.js";
3
- import { ScalarIconButton as I } from "@scalar/components";
4
- import M from "./DataTableCell.vue.js";
5
- import O from "./DataTableInputSelect.vue.js";
6
- const N = {
1
+ import { defineComponent as k, ref as i, computed as V, openBlock as o, createBlock as d, normalizeClass as b, withCtx as x, createElementBlock as r, renderSlot as p, createCommentVNode as s, createElementVNode as m, Fragment as B, mergeProps as $, unref as q } from "vue";
2
+ import { ScalarIconButton as C } from "@scalar/components";
3
+ import F from "./DataTableCell.vue.js";
4
+ import I from "./DataTableInputSelect.vue.js";
5
+ const O = {
7
6
  key: 0,
8
7
  class: "text-c-2 flex min-w-[100px] items-center border-r-1/2 pl-2 pr-0"
9
- }, P = { class: "row-1" }, E = ["id", "max", "min", "readOnly", "required", "type", "value"], H = {
8
+ }, S = { class: "row-1" }, P = ["id", "max", "min", "readOnly", "required", "type", "value"], _ = {
10
9
  key: 0,
11
10
  class: "absolute centered-y right-0 pt-px pr-2 text-xxs text-c-3 bg-b-1 shadow-[-8px_0_4px_var(--scalar-background-1)] opacity-100 duration-150 transition-opacity peer-focus:opacity-0"
12
- }, T = {
11
+ }, D = {
13
12
  key: 1,
14
13
  class: "absolute centered-y right-7 text-orange text-xs"
15
- }, j = /* @__PURE__ */ $({
14
+ }, z = /* @__PURE__ */ k({
16
15
  inheritAttrs: !1,
17
16
  __name: "DataTableInput",
18
17
  props: {
@@ -27,36 +26,30 @@ const N = {
27
26
  max: {}
28
27
  },
29
28
  emits: ["update:modelValue", "inputFocus", "inputBlur", "selectVariable"],
30
- setup(v, { emit: y }) {
31
- const l = v, n = y, a = d(!0), c = d(""), u = d(!1), w = () => {
32
- u.value || n("inputBlur");
33
- }, h = x(
29
+ setup(c, { emit: f }) {
30
+ const l = c, n = f, a = i(!0), y = i(""), v = i(!1), w = () => {
31
+ v.value || n("inputBlur");
32
+ }, g = V(
34
33
  () => l.type === "password" ? a.value ? "password" : "text" : l.type ?? "text"
35
- ), V = (e) => {
34
+ ), h = (e) => {
36
35
  const t = e.target;
37
- c.value = t.value, n("update:modelValue", t.value);
38
- }, g = (e) => {
39
- n("update:modelValue", e);
40
- }, k = () => {
41
- u.value = !0;
42
- }, b = () => {
43
- u.value = !1;
36
+ y.value = t.value, n("update:modelValue", t.value);
44
37
  };
45
- return (e, t) => (o(), p(M, {
46
- class: B(["relative row", e.containerClass])
38
+ return (e, t) => (o(), d(F, {
39
+ class: b(["relative row", e.containerClass])
47
40
  }, {
48
- default: q(() => [
49
- e.$slots.default ? (o(), r("div", N, [
50
- m(e.$slots, "default", {}, void 0, !0)
41
+ default: x(() => [
42
+ e.$slots.default ? (o(), r("div", O, [
43
+ p(e.$slots, "default", {}, void 0, !0)
51
44
  ])) : s("", !0),
52
- f("div", P, [
53
- l.enum && l.enum.length ? (o(), p(O, {
45
+ m("div", S, [
46
+ l.enum && l.enum.length ? (o(), d(I, {
54
47
  key: 0,
55
48
  modelValue: l.modelValue,
56
49
  value: l.enum,
57
- "onUpdate:modelValue": t[0] || (t[0] = (i) => n("update:modelValue", i))
58
- }, null, 8, ["modelValue", "value"])) : (o(), r(C, { key: 1 }, [
59
- f("input", S(e.$attrs, {
50
+ "onUpdate:modelValue": t[0] || (t[0] = (u) => n("update:modelValue", u))
51
+ }, null, 8, ["modelValue", "value"])) : (o(), r(B, { key: 1 }, [
52
+ m("input", $(e.$attrs, {
60
53
  id: e.id,
61
54
  autocomplete: "off",
62
55
  class: "border-none focus:text-c-1 text-c-2 min-w-0 w-full peer px-2 py-1.5 outline-none",
@@ -66,37 +59,31 @@ const N = {
66
59
  readOnly: e.readOnly,
67
60
  required: e.required,
68
61
  spellcheck: "false",
69
- type: h.value,
62
+ type: g.value,
70
63
  value: e.modelValue,
71
64
  onBlur: w,
72
- onFocus: t[1] || (t[1] = (i) => n("inputFocus")),
73
- onInput: V
74
- }), null, 16, E),
75
- e.required ? (o(), r("div", H, " Required ")) : s("", !0)
65
+ onFocus: t[1] || (t[1] = (u) => n("inputFocus")),
66
+ onInput: h
67
+ }), null, 16, P),
68
+ e.required ? (o(), r("div", _, " Required ")) : s("", !0)
76
69
  ], 64))
77
70
  ]),
78
- e.$slots.warning ? (o(), r("div", T, [
79
- m(e.$slots, "warning", {}, void 0, !0)
71
+ e.$slots.warning ? (o(), r("div", D, [
72
+ p(e.$slots, "warning", {}, void 0, !0)
80
73
  ])) : s("", !0),
81
- m(e.$slots, "icon", {}, void 0, !0),
82
- e.type === "password" ? (o(), p(D(I), {
74
+ p(e.$slots, "icon", {}, void 0, !0),
75
+ e.type === "password" ? (o(), d(q(C), {
83
76
  key: 2,
84
77
  class: "-ml-.5 mr-1 h-6 w-6 self-center p-1.5",
85
78
  icon: a.value ? "Show" : "Hide",
86
79
  label: a.value ? "Show Password" : "Hide Password",
87
- onClick: t[2] || (t[2] = (i) => a.value = !a.value)
88
- }, null, 8, ["icon", "label"])) : s("", !0),
89
- _(F, {
90
- query: c.value,
91
- onMousedown: k,
92
- onMouseup: b,
93
- onSelect: g
94
- }, null, 8, ["query"])
80
+ onClick: t[2] || (t[2] = (u) => a.value = !a.value)
81
+ }, null, 8, ["icon", "label"])) : s("", !0)
95
82
  ]),
96
83
  _: 3
97
84
  }, 8, ["class"]));
98
85
  }
99
86
  });
100
87
  export {
101
- j as default
88
+ z as default
102
89
  };
@@ -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":"AA6BA,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,MAAM;aACH,OAAO;;UAFV,SAAS,CAAC,MAAM,CAAC;UACjB,MAAM;aACH,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,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AC,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,21 +1,21 @@
1
- import { defineComponent as r, resolveComponent as s, openBlock as a, createBlock as c, normalizeClass as i, unref as o, withCtx as l, createVNode as p, createElementVNode as u, renderSlot as m } from "vue";
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
2
  import { useWorkspace as d } from "../../store/workspace.js";
3
3
  import { ScalarIcon as f } from "@scalar/components";
4
4
  const k = { class: "sr-only" }, x = /* @__PURE__ */ r({
5
5
  __name: "SideNavLink",
6
6
  props: {
7
7
  icon: {},
8
- path: {},
8
+ name: {},
9
9
  active: { type: Boolean }
10
10
  },
11
11
  setup(v) {
12
12
  const { activeWorkspace: t } = d();
13
13
  return (e, _) => {
14
- const n = s("router-link");
15
- return a(), c(n, {
14
+ const n = a("router-link");
15
+ return s(), c(n, {
16
16
  activeClass: "active-link",
17
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.path}`
18
+ to: `/workspace/${o(t).uid}/${e.name}/default`
19
19
  }, {
20
20
  default: l(() => [
21
21
  p(o(f), {
@@ -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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AAE,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":"TopNav.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TopNav/TopNav.vue"],"names":[],"mappings":";AA6NA,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 e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-24eea304"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-31a24876"]]);
5
5
  export {
6
- e as default
6
+ m as default
7
7
  };
@@ -1,46 +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
- icon: e(o)[0].icon,
23
- 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"
24
26
  }, null, 8, ["icon"]),
25
- c("div", null, I(e(o)[0].label), 1)
26
- ])) : (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, {
27
29
  key: t,
28
- active: t === d.value,
30
+ active: t === _.value,
29
31
  hotkey: (t + 1).toString(),
30
- icon: n.icon,
31
- label: n.label,
32
- onClick: (f) => e(p)(t),
32
+ icon: a.icon,
33
+ label: a.label,
34
+ onClick: (f) => e(d)(t),
33
35
  onClose: (f) => e(u)(t)
34
36
  }, null, 8, ["active", "hotkey", "icon", "label", "onClick", "onClose"]))), 128)),
35
- c("button", {
36
- 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",
37
39
  type: "button",
38
40
  onClick: r[0] || (r[0] = //@ts-ignore
39
- (...n) => e(s) && e(s)(...n))
41
+ (...a) => e(i) && e(i)(...a))
40
42
  }, [
41
- i(e(m), {
43
+ p(e(m), {
42
44
  icon: "Add",
43
- size: "xs"
45
+ size: "xs",
46
+ thickness: "2.5"
44
47
  })
45
48
  ])
46
49
  ])
@@ -48,5 +51,5 @@ const h = { class: "flex h-10 t-app__top-nav" }, C = { class: "flex h-10 flex-1
48
51
  }
49
52
  });
50
53
  export {
51
- $ as default
54
+ F as default
52
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":"AA4HA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;;aAM3B,MAAM;YACP,OAAO;;;;;aADN,MAAM;YACP,OAAO;;;;;AAoJnB,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 r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-7c0ee464"]]);
4
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-26cc8e34"]]);
5
5
  export {
6
- r as default
6
+ a as default
7
7
  };
@@ -1,56 +1,57 @@
1
- import { defineComponent as m, openBlock as i, createBlock as s, unref as n, withCtx as l, createElementVNode as o, normalizeClass as p, createVNode as a, toDisplayString as f, createCommentVNode as k } 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) {
13
+ setup(h) {
14
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(n(c), {
26
+ l(n(c), {
27
27
  icon: e.icon,
28
- size: "xs"
28
+ size: "xs",
29
+ thickness: "2.5"
29
30
  }, null, 8, ["icon"]),
30
- o("span", u, f(e.label), 1)
31
+ o("span", u, k(e.label), 1)
31
32
  ]),
32
33
  o("button", {
33
34
  class: "nav-item-close",
34
35
  type: "button",
35
36
  onClick: t[0] || (t[0] = (r) => e.$emit("close"))
36
37
  }, [
37
- a(n(c), {
38
+ l(n(c), {
38
39
  icon: "Close",
39
40
  thickness: "1.75"
40
41
  })
41
42
  ])
42
43
  ], 2)
43
44
  ]),
44
- content: l(() => [
45
+ content: a(() => [
45
46
  e.hotkey ? (i(), s(v, {
46
47
  key: 0,
47
48
  hotkey: e.hotkey
48
- }, null, 8, ["hotkey"])) : k("", !0)
49
+ }, null, 8, ["hotkey"])) : f("", !0)
49
50
  ]),
50
51
  _: 1
51
52
  }));
52
53
  }
53
54
  });
54
55
  export {
55
- b as default
56
+ g as default
56
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"}
@@ -1,6 +1,6 @@
1
1
  import { openBlock as o, createElementBlock as r, renderSlot as t } from "vue";
2
2
  import n from "../../_virtual/_plugin-vue_export-helper.js";
3
- const l = {}, d = { class: "m-1 mt-0 flex min-h-0 flex-1 rounded xl:rounded-lg xl:border xl:overflow-hidden leading-3" };
3
+ const l = {}, d = { class: "m-1 mt-0 flex min-h-0 flex-1 rounded xl:rounded-lg xl:border xl:overflow-hidden leading-3 z-0" };
4
4
  function c(e, s) {
5
5
  return o(), r("div", d, [
6
6
  t(e.$slots, "default")
@@ -1 +1 @@
1
- {"version":3,"file":"ViewLayoutCollapse.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayoutCollapse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AAC,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"}
@@ -25,7 +25,8 @@ const x = { class: "flex flex-1 items-center gap-1.5" }, _ = {
25
25
  i(o(b), {
26
26
  class: "text-c-3 group-hover:text-c-1 ui-open:rotate-90 ui-not-open:rotate-0",
27
27
  icon: "ChevronRight",
28
- size: "sm"
28
+ size: "sm",
29
+ thickness: "2.5"
29
30
  }),
30
31
  r("div", x, [
31
32
  l(e.$slots, "title", { open: t }),