@scalar/api-client 2.1.7 → 2.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +28 -0
- package/dist/assets/rabbit.ascii.js +11 -0
- package/dist/assets/rabbitjump.ascii.js +11 -0
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.js +2 -2
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +48 -21
- package/dist/components/ContextBar.vue.d.ts.map +1 -1
- package/dist/components/ContextBar.vue.js +2 -2
- package/dist/components/ContextBar.vue2.js +22 -13
- package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.js +1 -1
- package/dist/components/DataTable/DataTableInput.vue.d.ts +1 -1
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts +2 -2
- package/dist/components/IconSelector.vue.d.ts +35 -0
- package/dist/components/IconSelector.vue.d.ts.map +1 -0
- package/dist/components/IconSelector.vue.js +74 -0
- package/dist/components/IconSelector.vue2.js +4 -0
- package/dist/components/ScalarAsciiArt.vue.d.ts.map +1 -1
- package/dist/components/ScalarAsciiArt.vue.js +1 -1
- package/dist/components/ScalarAsciiArt.vue2.js +10 -10
- package/dist/components/SideNav/SideHelp.vue.js +1 -1
- package/dist/components/SideNav/SideNav.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNav.vue.js +2 -2
- package/dist/components/SideNav/SideNav.vue2.js +19 -22
- package/dist/components/SideNav/SideNavLink.vue.d.ts +0 -2
- package/dist/components/SideNav/SideNavLink.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNavLink.vue.js +19 -21
- package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.d.ts +24 -0
- package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.d.ts.map +1 -0
- package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.js +58 -0
- package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue2.js +4 -0
- package/dist/components/Sidebar/Actions/{RenameSidebarListElement.vue.d.ts → EditSidebarListElement.vue.d.ts} +3 -3
- package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.d.ts.map +1 -0
- package/dist/components/Sidebar/Actions/{RenameSidebarListElement.vue.js → EditSidebarListElement.vue.js} +9 -9
- package/dist/components/Sidebar/Actions/EditSidebarListElement.vue2.js +4 -0
- package/dist/components/Sidebar/Sidebar.vue.js +2 -2
- package/dist/components/Sidebar/Sidebar.vue2.js +1 -1
- package/dist/components/Sidebar/SidebarButton.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarButton.vue.js +24 -26
- package/dist/components/ViewLayout/ViewLayoutSection.vue.js +1 -1
- package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
- package/dist/layouts/App/ApiClientApp.vue.js +4 -4
- package/dist/layouts/App/create-api-client-app.d.ts +34 -22
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.d.ts +68 -44
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.js +19 -17
- package/dist/libs/create-client.d.ts +39 -38
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/event-busses/hot-keys-bus.d.ts +1 -1
- package/dist/store/collections.d.ts +14 -4
- package/dist/store/collections.d.ts.map +1 -1
- package/dist/store/import-spec.d.ts +3 -2
- package/dist/store/import-spec.d.ts.map +1 -1
- package/dist/store/import-spec.js +34 -26
- package/dist/store/request-example.d.ts +2 -2
- package/dist/store/requests.d.ts +2 -2
- package/dist/store/security-schemes.d.ts +4 -4
- package/dist/store/store.d.ts +68 -44
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/tags.d.ts +4 -4
- package/dist/store/workspace.d.ts +4 -4
- package/dist/style.css +1 -1
- package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue2.js +74 -80
- package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
- package/dist/views/Environment/Environment.vue2.js +86 -92
- package/dist/views/Request/Request.vue.d.ts.map +1 -1
- package/dist/views/Request/Request.vue.js +1 -1
- package/dist/views/Request/Request.vue2.js +26 -26
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +88 -80
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.js +45 -45
- package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebar.vue.js +1 -1
- package/dist/views/Request/RequestSidebar.vue2.js +135 -113
- package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
- package/dist/views/Request/RequestSidebarItem.vue2.js +94 -91
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue.js +4 -4
- package/dist/views/Request/RequestSidebarItemMenu.vue2.js +93 -79
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +2 -2
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +8 -5
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.js +33 -33
- package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +109 -95
- package/dist/views/Request/types/sidebar-item.d.ts +2 -1
- package/dist/views/Request/types/sidebar-item.d.ts.map +1 -1
- package/dist/views/Servers/Servers.vue.d.ts.map +1 -1
- package/dist/views/Servers/Servers.vue2.js +48 -54
- package/package.json +9 -12
- package/dist/components/Search/SearchButton.vue.d.ts +0 -7
- package/dist/components/Search/SearchButton.vue.d.ts.map +0 -1
- package/dist/components/Search/SearchModal.vue.d.ts +0 -17
- package/dist/components/Search/SearchModal.vue.d.ts.map +0 -1
- package/dist/components/Search/SearchModal.vue.js +0 -7
- package/dist/components/Search/SearchModal.vue2.js +0 -142
- package/dist/components/Search/index.d.ts +0 -3
- package/dist/components/Search/index.d.ts.map +0 -1
- package/dist/components/Search/index.js +0 -4
- package/dist/components/SideNav/WorkspaceProfileIcon.vue.js +0 -31
- package/dist/components/SideNav/WorkspaceProfileIcon.vue3.js +0 -5
- package/dist/components/Sidebar/Actions/RenameSidebarListElement.vue.d.ts.map +0 -1
- package/dist/components/Sidebar/Actions/RenameSidebarListElement.vue2.js +0 -4
- package/dist/components/SubpageHeader.vue.js +0 -7
- package/dist/components/SubpageHeader.vue2.js +0 -34
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# @scalar/api-client
|
|
2
2
|
|
|
3
|
+
## 2.1.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 963b9cd: fix: removed global listeners to prevent random jumping bug
|
|
8
|
+
- cd8ba1c: feat: added setting of initial security schemes in the client
|
|
9
|
+
- 8b6633d: style: increases icon library usage stroke
|
|
10
|
+
- fb0d9a3: fix(api-client): don't teleport auth combobox to body
|
|
11
|
+
- Updated dependencies [cd8ba1c]
|
|
12
|
+
- @scalar/oas-utils@0.2.49
|
|
13
|
+
|
|
14
|
+
## 2.1.8
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- dc20180: feat(api-client): custom icons for collections
|
|
19
|
+
- 70857ed: fix: favors button over context menu in workspace dropdown
|
|
20
|
+
- Updated dependencies [f961940]
|
|
21
|
+
- Updated dependencies [f961940]
|
|
22
|
+
- Updated dependencies [dc20180]
|
|
23
|
+
- Updated dependencies [dc20180]
|
|
24
|
+
- @scalar/types@0.0.11
|
|
25
|
+
- @scalar/themes@0.9.32
|
|
26
|
+
- @scalar/components@0.12.48
|
|
27
|
+
- @scalar/oas-utils@0.2.48
|
|
28
|
+
- @scalar/icons@0.1.0
|
|
29
|
+
- @scalar/use-codemirror@0.11.14
|
|
30
|
+
|
|
3
31
|
## 2.1.7
|
|
4
32
|
|
|
5
33
|
### Patch Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CodeInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CodeInput/CodeInput.vue"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"CodeInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CodeInput/CodeInput.vue"],"names":[],"mappings":"AAAA,OAsVO,EAGL,KAAK,kBAAkB,EAGxB,MAAM,wBAAwB,CAAA;;kBAcb,OAAO;gBACT,MAAM,GAAG,MAAM;YACnB,OAAO;iBACF,OAAO;kBACN,OAAO;WACd,OAAO;uBACK,OAAO;eACf,kBAAkB;wBACT,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;wBACnB,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;kBACzB,MAAM;eACT,OAAO;mBACH,OAAO;2BACC,OAAO;WACvB,MAAM,EAAE;WACR,MAAM;eACF,OAAO;oBACF,OAAO;;;;;;;;;;;;;;;kBAjBT,OAAO;gBACT,MAAM,GAAG,MAAM;YACnB,OAAO;iBACF,OAAO;kBACN,OAAO;WACd,OAAO;uBACK,OAAO;eACf,kBAAkB;wBACT,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;wBACnB,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;kBACzB,MAAM;eACT,OAAO;mBACH,OAAO;2BACC,OAAO;WACvB,MAAM,EAAE;WACR,MAAM;eACF,OAAO;oBACF,OAAO;;;;;;;;;;;;;iBAjBT,OAAO;gBAGR,OAAO;sBAGD,OAAO;kBAMX,OAAO;0BACC,OAAO;cAGnB,OAAO;mBACF,OAAO;;qBAoTG,GAAG;kBACN,GAAG;;AAzU9B,wBAsXC;AAMD,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAC7C,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KAAC,CAAC,GACvC,CAAC,CAAC,CAAC,CAAC;CACP,CAAC;AAEN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AAExD,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"}
|
|
@@ -2,7 +2,7 @@ import o from "./CodeInput.vue2.js";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const
|
|
5
|
+
const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-e8c15468"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
_ as default
|
|
8
8
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommandPaletteCollection.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/CommandPaletteCollection.vue"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"CommandPaletteCollection.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/CommandPaletteCollection.vue"],"names":[],"mappings":";;;;;AAqOA,wBAMG"}
|
|
@@ -1,39 +1,66 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
|
|
1
|
+
import { defineComponent as f, ref as n, openBlock as v, createBlock as _, withCtx as o, createVNode as l, unref as i, createTextVNode as b } from "vue";
|
|
2
|
+
import C from "../IconSelector.vue.js";
|
|
3
|
+
import { ScalarButton as V } from "@scalar/components";
|
|
4
|
+
import { LibraryIcon as x } from "@scalar/icons";
|
|
5
|
+
import { useToasts as k } from "@scalar/use-toasts";
|
|
6
|
+
import N from "./CommandActionForm.vue.js";
|
|
7
|
+
import B from "./CommandActionInput.vue.js";
|
|
8
|
+
import { useWorkspace as S } from "../../store/store.js";
|
|
9
|
+
const y = /* @__PURE__ */ f({
|
|
7
10
|
__name: "CommandPaletteCollection",
|
|
8
11
|
emits: ["close"],
|
|
9
|
-
setup(
|
|
10
|
-
const
|
|
12
|
+
setup($, { emit: c }) {
|
|
13
|
+
const s = c, { activeWorkspace: m, collectionMutators: u } = S(), e = n(""), t = n("interface-content-folder"), { toast: d } = k(), p = () => {
|
|
11
14
|
if (!e.value) {
|
|
12
|
-
|
|
15
|
+
d("Please enter a name before creating a collection.", "error");
|
|
13
16
|
return;
|
|
14
17
|
}
|
|
15
|
-
|
|
18
|
+
u.add(
|
|
16
19
|
{
|
|
17
20
|
openapi: "3.1.0",
|
|
18
21
|
info: {
|
|
19
22
|
title: e.value,
|
|
20
23
|
version: "0.0.1"
|
|
21
|
-
}
|
|
24
|
+
},
|
|
25
|
+
"x-scalar-icon": t.value
|
|
22
26
|
},
|
|
23
|
-
|
|
24
|
-
),
|
|
27
|
+
m.value.uid
|
|
28
|
+
), s("close");
|
|
25
29
|
};
|
|
26
|
-
return (
|
|
30
|
+
return (I, a) => (v(), _(N, {
|
|
27
31
|
disabled: !e.value.trim(),
|
|
28
|
-
onSubmit:
|
|
32
|
+
onSubmit: p
|
|
29
33
|
}, {
|
|
30
|
-
|
|
31
|
-
|
|
34
|
+
options: o(() => [
|
|
35
|
+
l(C, {
|
|
36
|
+
modelValue: t.value,
|
|
37
|
+
"onUpdate:modelValue": a[1] || (a[1] = (r) => t.value = r),
|
|
38
|
+
placement: "bottom-start"
|
|
39
|
+
}, {
|
|
40
|
+
default: o(() => [
|
|
41
|
+
l(i(V), {
|
|
42
|
+
class: "aspect-square px-0 h-auto",
|
|
43
|
+
variant: "outlined"
|
|
44
|
+
}, {
|
|
45
|
+
default: o(() => [
|
|
46
|
+
l(i(x), {
|
|
47
|
+
class: "size-4 text-c-2 stroke-2",
|
|
48
|
+
src: t.value
|
|
49
|
+
}, null, 8, ["src"])
|
|
50
|
+
]),
|
|
51
|
+
_: 1
|
|
52
|
+
})
|
|
53
|
+
]),
|
|
54
|
+
_: 1
|
|
55
|
+
}, 8, ["modelValue"])
|
|
32
56
|
]),
|
|
33
|
-
|
|
34
|
-
|
|
57
|
+
submit: o(() => [
|
|
58
|
+
b("Create Collection")
|
|
59
|
+
]),
|
|
60
|
+
default: o(() => [
|
|
61
|
+
l(B, {
|
|
35
62
|
modelValue: e.value,
|
|
36
|
-
"onUpdate:modelValue":
|
|
63
|
+
"onUpdate:modelValue": a[0] || (a[0] = (r) => e.value = r),
|
|
37
64
|
label: "Collection Name",
|
|
38
65
|
placeholder: "Collection Name"
|
|
39
66
|
}, null, 8, ["modelValue"])
|
|
@@ -43,5 +70,5 @@ const T = /* @__PURE__ */ s({
|
|
|
43
70
|
}
|
|
44
71
|
});
|
|
45
72
|
export {
|
|
46
|
-
|
|
73
|
+
y as default
|
|
47
74
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContextBar.vue.d.ts","sourceRoot":"","sources":["../../src/components/ContextBar.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"ContextBar.vue.d.ts","sourceRoot":"","sources":["../../src/components/ContextBar.vue"],"names":[],"mappings":";cA2HY,MAAM,EAAE;mBACH,MAAM;;;;cADX,MAAM,EAAE;mBACH,MAAM;;;;AAqIvB,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 "./ContextBar.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-59badb72"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,27 +1,36 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
|
|
1
|
+
import { defineComponent as r, openBlock as n, createElementBlock as o, createElementVNode as i, Fragment as c, renderList as a, normalizeClass as l, toDisplayString as s, createVNode as d, unref as p } from "vue";
|
|
2
|
+
import { ScalarIcon as u } from "@scalar/components";
|
|
3
|
+
const m = { class: "hidden lg:flex ml-auto filter-hover group lg:w-[120px]" }, v = { class: "request-section-content request-section-content-filter fade-request-section-content text-c-3 hidden xl:flex justify-end rounded text-xs gap-[1.5px] pointer-events-auto relative w-full py-2" }, f = ["isActive", "onClick"], h = { class: "flex items-center group-hover:text-c-1 absolute -right-6 top-1/2 -translate-y-1/2" }, _ = { class: "mr-4 group-hover:hidden" }, b = /* @__PURE__ */ r({
|
|
3
4
|
__name: "ContextBar",
|
|
4
5
|
props: {
|
|
5
6
|
sections: {},
|
|
6
7
|
activeSection: {}
|
|
7
8
|
},
|
|
8
9
|
emits: ["setActiveSection"],
|
|
9
|
-
setup(
|
|
10
|
-
return (
|
|
11
|
-
|
|
12
|
-
(n(!0), o(c, null,
|
|
13
|
-
key:
|
|
14
|
-
class:
|
|
15
|
-
|
|
10
|
+
setup(x) {
|
|
11
|
+
return (e, g) => (n(), o("div", m, [
|
|
12
|
+
i("div", v, [
|
|
13
|
+
(n(!0), o(c, null, a(e.sections, (t) => (n(), o("button", {
|
|
14
|
+
key: t,
|
|
15
|
+
class: l(["hover:bg-b-2 rounded p-1 px-2 text-center font-medium w-fit", [
|
|
16
|
+
e.activeSection === t ? "text-c-1 pointer-events-none" : ""
|
|
16
17
|
]]),
|
|
17
|
-
isActive:
|
|
18
|
+
isActive: e.activeSection === t,
|
|
18
19
|
type: "button",
|
|
19
|
-
onClick: (
|
|
20
|
-
},
|
|
20
|
+
onClick: (S) => e.$emit("setActiveSection", t)
|
|
21
|
+
}, s(t), 11, f))), 128)),
|
|
22
|
+
i("div", h, [
|
|
23
|
+
i("span", _, s(e.activeSection), 1),
|
|
24
|
+
d(p(u), {
|
|
25
|
+
icon: "FilterList",
|
|
26
|
+
size: "md",
|
|
27
|
+
thickness: "2"
|
|
28
|
+
})
|
|
29
|
+
])
|
|
21
30
|
])
|
|
22
31
|
]));
|
|
23
32
|
}
|
|
24
33
|
});
|
|
25
34
|
export {
|
|
26
|
-
|
|
35
|
+
b as default
|
|
27
36
|
};
|
|
@@ -7,7 +7,7 @@ const w = /* @__PURE__ */ c({
|
|
|
7
7
|
setup(g) {
|
|
8
8
|
const { toggleDarkMode: t, isDark: a } = f();
|
|
9
9
|
return (k, o) => (l(), s("button", {
|
|
10
|
-
class: "min-w-[37px] max-w-[
|
|
10
|
+
class: "min-w-[37px] max-w-[37px] hover:bg-b-3 flex items-center justify-center rounded-lg p-[7px] text-c-3 focus:text-c-1 w-full aspect-square scalar-app-nav-padding",
|
|
11
11
|
type: "button",
|
|
12
12
|
onClick: o[0] || (o[0] = //@ts-ignore
|
|
13
13
|
(...n) => e(t) && e(t)(...n))
|
|
@@ -49,8 +49,8 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
|
49
49
|
onSelectVariable?: ((value: string) => any) | undefined;
|
|
50
50
|
}, {
|
|
51
51
|
required: boolean;
|
|
52
|
-
readOnly: boolean;
|
|
53
52
|
canAddCustomEnumValue: boolean;
|
|
53
|
+
readOnly: boolean;
|
|
54
54
|
}, {}>;
|
|
55
55
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
56
56
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTableInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInput.vue"],"names":[],"mappings":"AAwNA,iBAAS,cAAc;qBAkKM,GAAG;qBACF,GAAG;kBACN,GAAG;EAuB7B;AACD,QAAA,MAAM,eAAe;SAlQZ,MAAM;WACJ,MAAM;IACb,sEAAsE;qBACrD,MAAM;eACZ,OAAO;gBACN,MAAM,GAAG,MAAM;IAC3B,0EAA0E;4BAClD,OAAO;eACpB,OAAO;WACX,MAAM,EAAE;UACT,MAAM;UACN,MAAM;;;;;;;;;;;SAXP,MAAM;WACJ,MAAM;IACb,sEAAsE;qBACrD,MAAM;eACZ,OAAO;gBACN,MAAM,GAAG,MAAM;IAC3B,0EAA0E;4BAClD,OAAO;eACpB,OAAO;WACX,MAAM,EAAE;UACT,MAAM;UACN,MAAM;;;;;;;;;;;cAPD,OAAO;
|
|
1
|
+
{"version":3,"file":"DataTableInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInput.vue"],"names":[],"mappings":"AAwNA,iBAAS,cAAc;qBAkKM,GAAG;qBACF,GAAG;kBACN,GAAG;EAuB7B;AACD,QAAA,MAAM,eAAe;SAlQZ,MAAM;WACJ,MAAM;IACb,sEAAsE;qBACrD,MAAM;eACZ,OAAO;gBACN,MAAM,GAAG,MAAM;IAC3B,0EAA0E;4BAClD,OAAO;eACpB,OAAO;WACX,MAAM,EAAE;UACT,MAAM;UACN,MAAM;;;;;;;;;;;SAXP,MAAM;WACJ,MAAM;IACb,sEAAsE;qBACrD,MAAM;eACZ,OAAO;gBACN,MAAM,GAAG,MAAM;IAC3B,0EAA0E;4BAClD,OAAO;eACpB,OAAO;WACX,MAAM,EAAE;UACT,MAAM;UACN,MAAM;;;;;;;;;;;cAPD,OAAO;2BAGM,OAAO;cACpB,OAAO;MAiQpB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAC7C,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KAAC,CAAC,GACvC,CAAC,CAAC,CAAC,CAAC;CACP,CAAC;AAEN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AAExD,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"}
|
|
@@ -7,7 +7,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
7
7
|
isDisable: boolean;
|
|
8
8
|
isEditable: boolean;
|
|
9
9
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
-
change: (value: "head" | "get" | "delete" | "
|
|
10
|
+
change: (value: "head" | "get" | "delete" | "options" | "connect" | "patch" | "post" | "put" | "trace") => void;
|
|
11
11
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
12
12
|
isSquare?: boolean;
|
|
13
13
|
method: string;
|
|
@@ -17,7 +17,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
17
17
|
isDisable: boolean;
|
|
18
18
|
isEditable: boolean;
|
|
19
19
|
}>>> & {
|
|
20
|
-
onChange?: ((value: "head" | "get" | "delete" | "
|
|
20
|
+
onChange?: ((value: "head" | "get" | "delete" | "options" | "connect" | "patch" | "post" | "put" | "trace") => any) | undefined;
|
|
21
21
|
}, {
|
|
22
22
|
isSquare: boolean;
|
|
23
23
|
isEditable: boolean;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
type Side = 'top' | 'bottom';
|
|
2
|
+
type Alignment = 'start' | 'end';
|
|
3
|
+
type AlignedPlacement = `${Side}-${Alignment}`;
|
|
4
|
+
declare function __VLS_template(): {
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
title?(_: {}): any;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
9
|
+
modelValue: string;
|
|
10
|
+
placement?: AlignedPlacement;
|
|
11
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
+
"update:modelValue": (icon: string) => void;
|
|
13
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
14
|
+
modelValue: string;
|
|
15
|
+
placement?: AlignedPlacement;
|
|
16
|
+
}>>> & {
|
|
17
|
+
"onUpdate:modelValue"?: ((icon: string) => any) | undefined;
|
|
18
|
+
}, {}, {}>;
|
|
19
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
22
|
+
new (): {
|
|
23
|
+
$slots: S;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
27
|
+
type __VLS_TypePropsToOption<T> = {
|
|
28
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
29
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
30
|
+
} : {
|
|
31
|
+
type: import('vue').PropType<T[K]>;
|
|
32
|
+
required: true;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=IconSelector.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconSelector.vue.d.ts","sourceRoot":"","sources":["../../src/components/IconSelector.vue"],"names":[],"mappings":"AA8EA,KAAK,IAAI,GAAG,KAAK,GAAG,QAAQ,CAAA;AAC5B,KAAK,SAAS,GAAG,OAAO,GAAG,KAAK,CAAA;AAChC,KAAK,gBAAgB,GAAG,GAAG,IAAI,IAAI,SAAS,EAAE,CAAA;AAa9C,iBAAS,cAAc;qBAoKM,GAAG;mBACJ,GAAG;EAsB9B;AACD,QAAA,MAAM,eAAe;gBApNP,MAAM;gBACN,gBAAgB;;;;gBADhB,MAAM;gBACN,gBAAgB;;;UA0N5B,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"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { defineComponent as g, computed as V, openBlock as a, createBlock as n, unref as e, withCtx as o, createVNode as r, createElementVNode as u, renderSlot as d, createTextVNode as p, createElementBlock as _, Fragment as k, renderList as y, toDisplayString as w } from "vue";
|
|
2
|
+
import { RadioGroup as h, RadioGroupLabel as m, RadioGroupOption as S } from "@headlessui/vue";
|
|
3
|
+
import { ScalarPopover as C } from "@scalar/components";
|
|
4
|
+
import { libraryIcons as I, LibraryIcon as B } from "@scalar/icons";
|
|
5
|
+
const G = { class: "flex text-sm" }, L = { class: "grid grid-cols-[repeat(auto-fill,minmax(32px,1fr))] auto-rows-[32px] justify-between content-between rounded bg-b-1 border p-1 max-w-[420px] w-dvw custom-scroll" }, $ = /* @__PURE__ */ g({
|
|
6
|
+
__name: "IconSelector",
|
|
7
|
+
props: {
|
|
8
|
+
modelValue: {},
|
|
9
|
+
placement: {}
|
|
10
|
+
},
|
|
11
|
+
emits: ["update:modelValue"],
|
|
12
|
+
setup(i, { emit: f }) {
|
|
13
|
+
const b = i, x = f, s = V({
|
|
14
|
+
get: () => b.modelValue,
|
|
15
|
+
set: (l) => x("update:modelValue", l)
|
|
16
|
+
});
|
|
17
|
+
return (l, c) => (a(), n(e(C), {
|
|
18
|
+
class: "bg-b-2 rounded",
|
|
19
|
+
placement: l.placement ?? "bottom"
|
|
20
|
+
}, {
|
|
21
|
+
popover: o(({ close: v }) => [
|
|
22
|
+
r(e(h), {
|
|
23
|
+
modelValue: s.value,
|
|
24
|
+
"onUpdate:modelValue": c[0] || (c[0] = (t) => s.value = t),
|
|
25
|
+
class: "flex flex-col"
|
|
26
|
+
}, {
|
|
27
|
+
default: o(() => [
|
|
28
|
+
u("div", G, [
|
|
29
|
+
r(e(m), { class: "text-c-2 py-1 px-1" }, {
|
|
30
|
+
default: o(() => [
|
|
31
|
+
d(l.$slots, "title", {}, () => [
|
|
32
|
+
p("Select an icon")
|
|
33
|
+
])
|
|
34
|
+
]),
|
|
35
|
+
_: 3
|
|
36
|
+
})
|
|
37
|
+
]),
|
|
38
|
+
u("ul", L, [
|
|
39
|
+
(a(!0), _(k, null, y(e(I), (t) => (a(), n(e(S), {
|
|
40
|
+
key: t.src,
|
|
41
|
+
as: "li",
|
|
42
|
+
class: "p-2.25 rounded flex items-center justify-center text-c-3 cursor-pointer hover:text-c-2 hover:bg-b-2 ui-checked:bg-b-3 ui-active:bg-b-2",
|
|
43
|
+
value: t.src,
|
|
44
|
+
onClick: v
|
|
45
|
+
}, {
|
|
46
|
+
default: o(() => [
|
|
47
|
+
r(e(m), { class: "sr-only" }, {
|
|
48
|
+
default: o(() => [
|
|
49
|
+
p(w(t.src.replaceAll("-", " ")) + " Icon ", 1)
|
|
50
|
+
]),
|
|
51
|
+
_: 2
|
|
52
|
+
}, 1024),
|
|
53
|
+
r(e(B), {
|
|
54
|
+
class: "stroke-2",
|
|
55
|
+
src: t.src
|
|
56
|
+
}, null, 8, ["src"])
|
|
57
|
+
]),
|
|
58
|
+
_: 2
|
|
59
|
+
}, 1032, ["value", "onClick"]))), 128))
|
|
60
|
+
])
|
|
61
|
+
]),
|
|
62
|
+
_: 2
|
|
63
|
+
}, 1032, ["modelValue"])
|
|
64
|
+
]),
|
|
65
|
+
default: o(() => [
|
|
66
|
+
d(l.$slots, "default")
|
|
67
|
+
]),
|
|
68
|
+
_: 3
|
|
69
|
+
}, 8, ["placement"]));
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
export {
|
|
73
|
+
$ as default
|
|
74
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarAsciiArt.vue.d.ts","sourceRoot":"","sources":["../../src/components/ScalarAsciiArt.vue"],"names":[],"mappings":";SAgE6B,MAAM;cAAY,OAAO;;SAAzB,MAAM;cAAY,OAAO;;
|
|
1
|
+
{"version":3,"file":"ScalarAsciiArt.vue.d.ts","sourceRoot":"","sources":["../../src/components/ScalarAsciiArt.vue"],"names":[],"mappings":";SAgE6B,MAAM;cAAY,OAAO;;SAAzB,MAAM;cAAY,OAAO;;AA4EtD,wBAMG;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 "./ScalarAsciiArt.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const i = /* @__PURE__ */ r(o, [["__scopeId", "data-v-
|
|
4
|
+
const i = /* @__PURE__ */ r(o, [["__scopeId", "data-v-93347509"]]);
|
|
5
5
|
export {
|
|
6
6
|
i as default
|
|
7
7
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as d, computed as g, openBlock as a, createElementBlock as i, normalizeClass as h, Fragment as f, renderList as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as d, computed as g, openBlock as a, createElementBlock as i, normalizeClass as h, Fragment as f, renderList as y, normalizeStyle as r, createElementVNode as v, toDisplayString as x } from "vue";
|
|
2
|
+
const c = 500, l = 100, k = /* @__PURE__ */ d({
|
|
3
3
|
__name: "ScalarAsciiArt",
|
|
4
4
|
props: {
|
|
5
5
|
art: {},
|
|
@@ -8,23 +8,23 @@ const r = 500, l = 100, k = /* @__PURE__ */ d({
|
|
|
8
8
|
setup(m) {
|
|
9
9
|
const p = m, e = g(() => p.art.split(`
|
|
10
10
|
`)), u = (t, o) => ({
|
|
11
|
-
animationDuration: `${t * l}ms, ${
|
|
11
|
+
animationDuration: `${t * l}ms, ${c}ms`,
|
|
12
12
|
animationTimingFunction: `steps(${t}), step-end`,
|
|
13
13
|
animationDelay: `${o * l}ms, 0ms`,
|
|
14
|
-
animationIterationCount: `1, ${(e.value.length + e.value[e.value.length - 1].length + 5) * l /
|
|
14
|
+
animationIterationCount: `1, ${(e.value.length + e.value[e.value.length - 1].length + 5) * l / c}`
|
|
15
15
|
});
|
|
16
16
|
return (t, o) => (a(), i("div", {
|
|
17
|
-
class: h(["ascii-art font-code
|
|
17
|
+
class: h(["ascii-art font-code flex flex-col items-start text-[6px] leading-[7px]", { "ascii-art-animate": t.animate }])
|
|
18
18
|
}, [
|
|
19
|
-
(a(!0), i(f, null,
|
|
19
|
+
(a(!0), i(f, null, y(e.value, (n, s) => (a(), i("span", {
|
|
20
20
|
key: s,
|
|
21
21
|
class: "inline-block",
|
|
22
|
-
style:
|
|
22
|
+
style: r({ width: `calc(${n.length + 1}ch)` })
|
|
23
23
|
}, [
|
|
24
|
-
|
|
24
|
+
v("span", {
|
|
25
25
|
class: "inline-block whitespace-pre overflow-hidden",
|
|
26
|
-
style:
|
|
27
|
-
},
|
|
26
|
+
style: r(u(n.length, s))
|
|
27
|
+
}, x(n), 5)
|
|
28
28
|
], 4))), 128))
|
|
29
29
|
], 2));
|
|
30
30
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as l, openBlock as o, createBlock as i, unref as s, withCtx as c, createElementVNode as e, createVNode as t } from "vue";
|
|
2
2
|
import { ScalarDropdown as r, ScalarDropdownItem as a, ScalarIcon as n } from "@scalar/components";
|
|
3
3
|
const d = {
|
|
4
|
-
class: "min-w-[37px] max-w-[
|
|
4
|
+
class: "min-w-[37px] max-w-[37px] hover:bg-b-3 flex items-center justify-center rounded-lg p-[7px] text-c-3 focus:text-c-1 scalar-app-nav-padding",
|
|
5
5
|
type: "button"
|
|
6
6
|
}, _ = /* @__PURE__ */ e("span", { class: "px-2.5 py-1.5 text-xs text-c-2 font-medium" }, "Support", -1), p = {
|
|
7
7
|
class: "no-underline block",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SideNav.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SideNav/SideNav.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"SideNav.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SideNav/SideNav.vue"],"names":[],"mappings":";AA0KA,wBAKG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./SideNav.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-34c56294"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,53 +1,50 @@
|
|
|
1
|
-
import { defineComponent as _, openBlock as
|
|
1
|
+
import { defineComponent as _, openBlock as o, createElementBlock as r, createElementVNode as e, Fragment as f, renderList as d, unref as n, createVNode as a, withCtx as p, createTextVNode as u, toDisplayString as g } from "vue";
|
|
2
2
|
import x from "../DarkModeToggle/DarkModeIconToggle.vue.js";
|
|
3
3
|
import { ROUTES as h } from "../../constants.js";
|
|
4
4
|
import { useRouter as v } from "vue-router";
|
|
5
5
|
import N from "./SideHelp.vue.js";
|
|
6
6
|
import y from "./SideNavLink.vue.js";
|
|
7
|
-
|
|
8
|
-
/* empty css */
|
|
9
|
-
const $ = {
|
|
7
|
+
const b = {
|
|
10
8
|
"aria-label": "Side Navigation",
|
|
11
|
-
class: "text-c-2 w-15 flex flex-col items-center px-2 py-2 scalar-sidenav relative drag-region",
|
|
9
|
+
class: "text-c-2 w-15 flex flex-col items-center px-2 py-2 scalar-sidenav relative drag-region bg-b-1 border-t-1/2",
|
|
12
10
|
role: "navigation"
|
|
13
|
-
},
|
|
11
|
+
}, S = { class: "flex flex-col gap-1.5" }, k = { class: "mt-auto flex flex-col py-1.5" }, E = { class: "flex items-center no-drag-region" }, R = { class: "flex items-center no-drag-region" }, O = /* @__PURE__ */ _({
|
|
14
12
|
__name: "SideNav",
|
|
15
|
-
setup(
|
|
13
|
+
setup(V) {
|
|
16
14
|
const { currentRoute: s } = v();
|
|
17
|
-
return (
|
|
18
|
-
e(
|
|
19
|
-
|
|
20
|
-
(r(!0), a(f, null, d(n(h), ({ icon: c, name: o, prettyName: l }, m) => {
|
|
15
|
+
return ($, w) => (o(), r("nav", b, [
|
|
16
|
+
e("ul", S, [
|
|
17
|
+
(o(!0), r(f, null, d(n(h), ({ icon: c, name: t, prettyName: l }, m) => {
|
|
21
18
|
var i;
|
|
22
|
-
return
|
|
19
|
+
return o(), r("li", {
|
|
23
20
|
key: m,
|
|
24
21
|
class: "no-drag-region"
|
|
25
22
|
}, [
|
|
26
|
-
|
|
27
|
-
active: (i = n(s).name) == null ? void 0 : i.startsWith(
|
|
23
|
+
a(y, {
|
|
24
|
+
active: (i = n(s).name) == null ? void 0 : i.startsWith(t),
|
|
28
25
|
icon: c,
|
|
29
|
-
name:
|
|
26
|
+
name: t,
|
|
30
27
|
prettyName: l
|
|
31
28
|
}, {
|
|
32
29
|
default: p(() => [
|
|
33
|
-
u(g(
|
|
30
|
+
u(g(t), 1)
|
|
34
31
|
]),
|
|
35
32
|
_: 2
|
|
36
33
|
}, 1032, ["active", "icon", "name", "prettyName"])
|
|
37
34
|
]);
|
|
38
35
|
}), 128))
|
|
39
36
|
]),
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
37
|
+
e("ul", k, [
|
|
38
|
+
e("li", E, [
|
|
39
|
+
a(N)
|
|
43
40
|
]),
|
|
44
|
-
|
|
45
|
-
|
|
41
|
+
e("li", R, [
|
|
42
|
+
a(x)
|
|
46
43
|
])
|
|
47
44
|
])
|
|
48
45
|
]));
|
|
49
46
|
}
|
|
50
47
|
});
|
|
51
48
|
export {
|
|
52
|
-
|
|
49
|
+
O as default
|
|
53
50
|
};
|
|
@@ -7,12 +7,10 @@ declare function __VLS_template(): {
|
|
|
7
7
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
8
8
|
icon: IconProps["icon"];
|
|
9
9
|
name: (typeof ROUTES)[number]["name"];
|
|
10
|
-
prettyName: (typeof ROUTES)[number]["prettyName"];
|
|
11
10
|
active?: boolean;
|
|
12
11
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
13
12
|
icon: IconProps["icon"];
|
|
14
13
|
name: (typeof ROUTES)[number]["name"];
|
|
15
|
-
prettyName: (typeof ROUTES)[number]["prettyName"];
|
|
16
14
|
active?: boolean;
|
|
17
15
|
}>>>, {}, {}>;
|
|
18
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":"
|
|
1
|
+
{"version":3,"file":"SideNavLink.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SideNav/SideNavLink.vue"],"names":[],"mappings":"AAyCA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAEzC,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAK/C,KAAK,SAAS,GAAG,YAAY,CAAC,OAAO,UAAU,CAAC,CAAC,QAAQ,CAAC,CAAA;AAkB1D,iBAAS,cAAc;qBAqEO,GAAG;EAgBhC;AACD,QAAA,MAAM,eAAe;UArGb,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;aAyGhB,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"}
|