@scalar/api-client 2.0.15 → 2.0.17
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 +30 -0
- package/README.md +46 -3
- package/dist/App/ApiClientApp.vue.d.ts +3 -0
- package/dist/App/ApiClientApp.vue.d.ts.map +1 -0
- package/dist/App/ApiClientApp.vue.js +56 -0
- package/dist/App/ApiClientApp.vue3.js +5 -0
- package/dist/App/createApiClientApp.d.ts +16 -0
- package/dist/App/createApiClientApp.d.ts.map +1 -0
- package/dist/App/createApiClientApp.js +62 -0
- package/dist/App/index.d.ts +3 -0
- package/dist/App/index.d.ts.map +1 -0
- package/dist/App/index.js +6 -0
- package/dist/App.vue.d.ts.map +1 -1
- package/dist/App.vue.js +49 -33
- package/dist/Modal/api-client-modal.d.ts +1 -1
- package/dist/Modal/api-client-modal.d.ts.map +1 -1
- package/dist/Modal/api-client-modal.js +7 -7
- package/dist/Modal/index.js +4 -4
- package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBar.vue.js +1 -1
- package/dist/components/AddressBar/AddressBar.vue2.js +2 -2
- package/dist/components/CodeInput/CodeInput.vue.d.ts +40 -4
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.js +2 -2
- package/dist/components/CodeInput/CodeInput.vue2.js +87 -38
- package/dist/components/CommandPalette/CommandPalette.vue.d.ts +17 -0
- package/dist/components/CommandPalette/CommandPalette.vue.d.ts.map +1 -0
- package/dist/components/CommandPalette/CommandPalette.vue.js +7 -0
- package/dist/components/CommandPalette/CommandPalette.vue2.js +184 -0
- package/dist/components/{ActionModal/ActionModalImport.vue.d.ts → CommandPalette/CommandPaletteCollection.vue.d.ts} +1 -1
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts.map +1 -0
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +66 -0
- package/dist/components/CommandPalette/CommandPaletteCollection.vue2.js +4 -0
- package/dist/components/{ActionModal/ActionModalCollection.vue.d.ts → CommandPalette/CommandPaletteExample.vue.d.ts} +1 -1
- package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts.map +1 -0
- package/dist/components/CommandPalette/CommandPaletteExample.vue.js +107 -0
- package/dist/components/CommandPalette/CommandPaletteExample.vue2.js +4 -0
- package/dist/components/{ActionModal/ActionModalRequest.vue.d.ts → CommandPalette/CommandPaletteFolder.vue.d.ts} +1 -1
- package/dist/components/CommandPalette/CommandPaletteFolder.vue.d.ts.map +1 -0
- package/dist/components/CommandPalette/CommandPaletteFolder.vue.js +104 -0
- package/dist/components/CommandPalette/CommandPaletteFolder.vue2.js +4 -0
- package/dist/components/{ActionModal/ActionModalVariant.vue.d.ts → CommandPalette/CommandPaletteImport.vue.d.ts} +1 -1
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -0
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +86 -0
- package/dist/components/CommandPalette/CommandPaletteImport.vue2.js +4 -0
- package/dist/components/{ActionModal/ActionModalFolder.vue.d.ts → CommandPalette/CommandPaletteRequest.vue.d.ts} +1 -1
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts.map +1 -0
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +119 -0
- package/dist/components/CommandPalette/CommandPaletteRequest.vue2.js +4 -0
- package/dist/components/ContextBar.vue.js +5 -5
- package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.js +6 -6
- package/dist/components/DataTable/DataTableCell.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableCell.vue.js +4 -4
- package/dist/components/DataTable/DataTableInput.vue.js +2 -2
- package/dist/components/DataTable/DataTableInput.vue2.js +13 -13
- package/dist/components/DataTable/{DataTableInputEnumSelect.vue.d.ts → DataTableInputSelect.vue.d.ts} +3 -3
- package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -0
- package/dist/components/DataTable/DataTableInputSelect.vue.js +109 -0
- package/dist/components/DataTable/DataTableInputSelect.vue2.js +4 -0
- package/dist/components/SideNav/SideNavLink.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNavLink.vue.js +3 -3
- package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNav.vue.js +1 -1
- package/dist/components/TopNav/TopNav.vue2.js +26 -26
- package/dist/components/TopNav/TopNavItem.vue.js +2 -2
- package/dist/components/TopNav/TopNavItem.vue2.js +8 -8
- package/dist/hooks/index.d.ts +0 -1
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +6 -9
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -6
- package/dist/router.d.ts +4 -1
- package/dist/router.d.ts.map +1 -1
- package/dist/store/workspace.d.ts +52 -2
- package/dist/store/workspace.d.ts.map +1 -1
- package/dist/store/workspace.js +74 -73
- package/dist/style.css +1 -1
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +32 -31
- package/dist/views/Request/Request.vue.d.ts.map +1 -1
- package/dist/views/Request/Request.vue.js +2 -2
- package/dist/views/Request/Request.vue2.js +68 -74
- package/dist/views/Request/RequestSection/RequestSection.vue.js +7 -7
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue.js +4 -5
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +80 -63
- package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItem.vue.js +1 -1
- package/dist/views/Request/RequestSidebarItem.vue2.js +48 -48
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue.js +41 -68
- package/dist/views/Request/ResponseSection/ResponseSection.vue.js +2 -2
- package/package.json +11 -6
- package/dist/assets/ascii/collection.ascii.js +0 -10
- package/dist/assets/ascii/folder.ascii.js +0 -10
- package/dist/assets/ascii/import.ascii.js +0 -10
- package/dist/assets/ascii/request.ascii.js +0 -10
- package/dist/assets/ascii/variant.ascii.js +0 -10
- package/dist/components/ActionModal/ActionModal.vue.d.ts +0 -21
- package/dist/components/ActionModal/ActionModal.vue.d.ts.map +0 -1
- package/dist/components/ActionModal/ActionModal.vue.js +0 -7
- package/dist/components/ActionModal/ActionModal.vue2.js +0 -117
- package/dist/components/ActionModal/ActionModalCollection.vue.d.ts.map +0 -1
- package/dist/components/ActionModal/ActionModalCollection.vue.js +0 -54
- package/dist/components/ActionModal/ActionModalCollection.vue2.js +0 -4
- package/dist/components/ActionModal/ActionModalFolder.vue.d.ts.map +0 -1
- package/dist/components/ActionModal/ActionModalFolder.vue.js +0 -92
- package/dist/components/ActionModal/ActionModalFolder.vue2.js +0 -4
- package/dist/components/ActionModal/ActionModalImport.vue.d.ts.map +0 -1
- package/dist/components/ActionModal/ActionModalImport.vue.js +0 -70
- package/dist/components/ActionModal/ActionModalImport.vue2.js +0 -4
- package/dist/components/ActionModal/ActionModalRequest.vue.d.ts.map +0 -1
- package/dist/components/ActionModal/ActionModalRequest.vue.js +0 -108
- package/dist/components/ActionModal/ActionModalRequest.vue2.js +0 -4
- package/dist/components/ActionModal/ActionModalVariant.vue.d.ts.map +0 -1
- package/dist/components/ActionModal/ActionModalVariant.vue.js +0 -93
- package/dist/components/ActionModal/ActionModalVariant.vue2.js +0 -4
- package/dist/components/DataTable/DataTableInputEnumSelect.vue.d.ts.map +0 -1
- package/dist/components/DataTable/DataTableInputEnumSelect.vue.js +0 -102
- package/dist/components/DataTable/DataTableInputEnumSelect.vue2.js +0 -4
- package/dist/hooks/useActionModal.d.ts +0 -16
- package/dist/hooks/useActionModal.d.ts.map +0 -1
- package/dist/hooks/useActionModal.js +0 -25
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { defineComponent as g, ref as r, computed as m, onMounted as C, openBlock as S, createElementBlock as V, Fragment as y, createElementVNode as l, toDisplayString as p, withModifiers as N, withDirectives as F, vModelText as k, createVNode as n, unref as i, withCtx as d, normalizeClass as I, createTextVNode as M } from "vue";
|
|
2
|
+
import { useWorkspace as B } from "../../store/workspace.js";
|
|
3
|
+
import { ScalarListbox as D, ScalarButton as v, ScalarIcon as j } from "@scalar/components";
|
|
4
|
+
const z = { class: "gap-3 rounded bg-b-2 focus-within:bg-b-1 focus-within:shadow-border min-h-20 relative" }, E = /* @__PURE__ */ l("label", {
|
|
5
|
+
class: "absolute w-full h-full opacity-0 cursor-text",
|
|
6
|
+
for: "foldername"
|
|
7
|
+
}, null, -1), T = { class: "flex" }, U = { class: "flex flex-1 gap-2 max-h-8" }, q = /* @__PURE__ */ g({
|
|
8
|
+
__name: "CommandPaletteFolder",
|
|
9
|
+
props: {
|
|
10
|
+
title: {}
|
|
11
|
+
},
|
|
12
|
+
emits: ["close"],
|
|
13
|
+
setup(L, { emit: x }) {
|
|
14
|
+
const b = x, { collections: h, folderMutators: _ } = B(), s = r(""), u = r(""), c = m(
|
|
15
|
+
() => Object.values(h).map((e) => {
|
|
16
|
+
var t, a;
|
|
17
|
+
return {
|
|
18
|
+
id: e.uid,
|
|
19
|
+
label: ((a = (t = e.spec) == null ? void 0 : t.info) == null ? void 0 : a.title) ?? ""
|
|
20
|
+
};
|
|
21
|
+
})
|
|
22
|
+
), o = m({
|
|
23
|
+
get: () => c.value.find(
|
|
24
|
+
({ id: e }) => e === u.value
|
|
25
|
+
),
|
|
26
|
+
set: (e) => {
|
|
27
|
+
e != null && e.id && (u.value = e.id);
|
|
28
|
+
}
|
|
29
|
+
}), w = () => {
|
|
30
|
+
s.value && o.value && (_.add(
|
|
31
|
+
{
|
|
32
|
+
name: s.value
|
|
33
|
+
},
|
|
34
|
+
u.value
|
|
35
|
+
), b("close"));
|
|
36
|
+
}, f = r(null);
|
|
37
|
+
return C(() => {
|
|
38
|
+
var e;
|
|
39
|
+
(e = f.value) == null || e.focus();
|
|
40
|
+
}), (e, t) => (S(), V(y, null, [
|
|
41
|
+
l("h2", null, p(e.title), 1),
|
|
42
|
+
l("form", {
|
|
43
|
+
class: "flex w-full flex-col gap-3",
|
|
44
|
+
onSubmit: N(w, ["prevent"])
|
|
45
|
+
}, [
|
|
46
|
+
l("div", z, [
|
|
47
|
+
E,
|
|
48
|
+
F(l("input", {
|
|
49
|
+
id: "foldername",
|
|
50
|
+
ref_key: "folderInput",
|
|
51
|
+
ref: f,
|
|
52
|
+
"onUpdate:modelValue": t[0] || (t[0] = (a) => s.value = a),
|
|
53
|
+
class: "border-transparent outline-none w-full pl-8 text-sm min-h-8 py-1.5",
|
|
54
|
+
label: "Folder Name",
|
|
55
|
+
placeholder: "Folder Name"
|
|
56
|
+
}, null, 512), [
|
|
57
|
+
[k, s.value]
|
|
58
|
+
])
|
|
59
|
+
]),
|
|
60
|
+
l("div", T, [
|
|
61
|
+
l("div", U, [
|
|
62
|
+
n(i(D), {
|
|
63
|
+
modelValue: o.value,
|
|
64
|
+
"onUpdate:modelValue": t[1] || (t[1] = (a) => o.value = a),
|
|
65
|
+
options: c.value
|
|
66
|
+
}, {
|
|
67
|
+
default: d(() => [
|
|
68
|
+
n(i(v), {
|
|
69
|
+
class: "justify-between p-2 max-h-8 w-full gap-1 text-xs hover:bg-b-2",
|
|
70
|
+
variant: "outlined"
|
|
71
|
+
}, {
|
|
72
|
+
default: d(() => [
|
|
73
|
+
l("span", {
|
|
74
|
+
class: I(o.value ? "text-c-1" : "text-c-3")
|
|
75
|
+
}, p(o.value ? o.value.label : "Select Collection"), 3),
|
|
76
|
+
n(i(j), {
|
|
77
|
+
class: "text-c-3",
|
|
78
|
+
icon: "ChevronDown",
|
|
79
|
+
size: "xs"
|
|
80
|
+
})
|
|
81
|
+
]),
|
|
82
|
+
_: 1
|
|
83
|
+
})
|
|
84
|
+
]),
|
|
85
|
+
_: 1
|
|
86
|
+
}, 8, ["modelValue", "options"])
|
|
87
|
+
]),
|
|
88
|
+
n(i(v), {
|
|
89
|
+
class: "max-h-8 text-xs p-0 px-3",
|
|
90
|
+
type: "submit"
|
|
91
|
+
}, {
|
|
92
|
+
default: d(() => [
|
|
93
|
+
M(" Create Folder ")
|
|
94
|
+
]),
|
|
95
|
+
_: 1
|
|
96
|
+
})
|
|
97
|
+
])
|
|
98
|
+
], 32)
|
|
99
|
+
], 64));
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
export {
|
|
103
|
+
q as default
|
|
104
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CommandPaletteImport.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/CommandPaletteImport.vue"],"names":[],"mappings":";WA+FS,MAAM;;;;WAAN,MAAM;;;;AAgMf,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"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { defineComponent as v, ref as m, onMounted as S, openBlock as y, createElementBlock as F, Fragment as C, createElementVNode as t, toDisplayString as k, withModifiers as I, createVNode as a, unref as o, withCtx as u, createTextVNode as d } from "vue";
|
|
2
|
+
import { useWorkspace as N } from "../../store/workspace.js";
|
|
3
|
+
import { ScalarButton as f, ScalarIcon as R } from "@scalar/components";
|
|
4
|
+
import { useFileDialog as U } from "../../hooks/useFileDialog.js";
|
|
5
|
+
const A = { class: "gap-3 rounded bg-b-2 focus-within:bg-b-1 focus-within:shadow-border min-h-20 relative" }, B = /* @__PURE__ */ t("label", {
|
|
6
|
+
class: "absolute w-full h-full opacity-0 cursor-text",
|
|
7
|
+
for: "requestimport"
|
|
8
|
+
}, null, -1), D = { class: "flex gap-2" }, L = { class: "flex flex-1 gap-2 max-h-8" }, T = /* @__PURE__ */ v({
|
|
9
|
+
__name: "CommandPaletteImport",
|
|
10
|
+
props: {
|
|
11
|
+
title: {}
|
|
12
|
+
},
|
|
13
|
+
emits: ["close"],
|
|
14
|
+
setup(M, { emit: h }) {
|
|
15
|
+
const s = h, { importSpecFile: x, importSpecFromUrl: g } = N(), r = m(""), { open: _ } = U({
|
|
16
|
+
onChange: async (e) => {
|
|
17
|
+
const l = e == null ? void 0 : e[0];
|
|
18
|
+
if (l) {
|
|
19
|
+
const c = new FileReader();
|
|
20
|
+
c.onload = async (b) => {
|
|
21
|
+
var p;
|
|
22
|
+
const w = (p = b.target) == null ? void 0 : p.result;
|
|
23
|
+
x(w), n(), s("close");
|
|
24
|
+
}, c.readAsText(l);
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
multiple: !1,
|
|
28
|
+
accept: ".json,.yaml,.yml"
|
|
29
|
+
}), n = async () => {
|
|
30
|
+
r.value && (await g(r.value), s("close"));
|
|
31
|
+
}, i = m(null);
|
|
32
|
+
return S(() => {
|
|
33
|
+
var e;
|
|
34
|
+
(e = i.value) == null || e.focus();
|
|
35
|
+
}), (e, l) => (y(), F(C, null, [
|
|
36
|
+
t("h2", null, k(e.title), 1),
|
|
37
|
+
t("form", {
|
|
38
|
+
class: "flex w-full flex-col gap-3",
|
|
39
|
+
onSubmit: I(n, ["prevent"])
|
|
40
|
+
}, [
|
|
41
|
+
t("div", A, [
|
|
42
|
+
B,
|
|
43
|
+
t("input", {
|
|
44
|
+
id: "requestimport",
|
|
45
|
+
ref_key: "importInput",
|
|
46
|
+
ref: i,
|
|
47
|
+
class: "border-transparent outline-none w-full pl-8 text-sm min-h-8 py-1.5",
|
|
48
|
+
label: "Paste Swagger File URL",
|
|
49
|
+
placeholder: "Paste Swagger File URL"
|
|
50
|
+
}, null, 512)
|
|
51
|
+
]),
|
|
52
|
+
t("div", D, [
|
|
53
|
+
t("div", L, [
|
|
54
|
+
a(o(f), {
|
|
55
|
+
class: "p-2 max-h-8 gap-1 text-xs hover:bg-b-2 relative",
|
|
56
|
+
variant: "outlined",
|
|
57
|
+
onClick: o(_)
|
|
58
|
+
}, {
|
|
59
|
+
default: u(() => [
|
|
60
|
+
d(" JSON, or YAML Files "),
|
|
61
|
+
a(o(R), {
|
|
62
|
+
class: "text-c-3 -rotate-90",
|
|
63
|
+
icon: "ArrowRight",
|
|
64
|
+
size: "sm"
|
|
65
|
+
})
|
|
66
|
+
]),
|
|
67
|
+
_: 1
|
|
68
|
+
}, 8, ["onClick"])
|
|
69
|
+
]),
|
|
70
|
+
a(o(f), {
|
|
71
|
+
class: "max-h-8 text-xs p-0 px-3",
|
|
72
|
+
type: "submit"
|
|
73
|
+
}, {
|
|
74
|
+
default: u(() => [
|
|
75
|
+
d(" Import Collection ")
|
|
76
|
+
]),
|
|
77
|
+
_: 1
|
|
78
|
+
})
|
|
79
|
+
])
|
|
80
|
+
], 32)
|
|
81
|
+
], 64));
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
export {
|
|
85
|
+
T as default
|
|
86
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CommandPaletteRequest.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/CommandPaletteRequest.vue"],"names":[],"mappings":";WAwIS,MAAM;;;;WAAN,MAAM;;;;AA0Pf,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"}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { defineComponent as y, ref as u, computed as v, onMounted as M, openBlock as V, createElementBlock as N, Fragment as R, createElementVNode as l, toDisplayString as h, withModifiers as I, withDirectives as k, vModelText as E, createVNode as s, unref as n, withCtx as c, normalizeClass as F, createTextVNode as U } from "vue";
|
|
2
|
+
import B from "../HttpMethod/HttpMethod.vue.js";
|
|
3
|
+
import { useWorkspace as D } from "../../store/workspace.js";
|
|
4
|
+
import { ScalarListbox as T, ScalarButton as x, ScalarIcon as j } from "@scalar/components";
|
|
5
|
+
import { useRouter as z } from "vue-router";
|
|
6
|
+
const $ = { class: "gap-3 rounded bg-b-2 focus-within:bg-b-1 focus-within:shadow-border min-h-20 relative" }, G = /* @__PURE__ */ l("label", {
|
|
7
|
+
class: "absolute w-full h-full opacity-0 cursor-text",
|
|
8
|
+
for: "requestname"
|
|
9
|
+
}, null, -1), L = { class: "flex" }, O = { class: "flex flex-1 gap-2 max-h-8" }, Q = /* @__PURE__ */ y({
|
|
10
|
+
__name: "CommandPaletteRequest",
|
|
11
|
+
props: {
|
|
12
|
+
title: {}
|
|
13
|
+
},
|
|
14
|
+
emits: ["close"],
|
|
15
|
+
setup(P, { emit: b }) {
|
|
16
|
+
const _ = b, { push: q } = z(), { requestMutators: g, activeCollection: r, folders: w } = D(), a = u(""), i = u("GET"), m = u(""), f = v(() => r.value ? Object.values(r.value.childUids).flatMap((e) => {
|
|
17
|
+
const t = w[e];
|
|
18
|
+
return t ? [
|
|
19
|
+
{
|
|
20
|
+
id: t.uid,
|
|
21
|
+
label: t.name
|
|
22
|
+
}
|
|
23
|
+
] : [];
|
|
24
|
+
}) : []), o = v({
|
|
25
|
+
get: () => f.value.find(({ id: e }) => e === m.value),
|
|
26
|
+
set: (e) => {
|
|
27
|
+
e != null && e.id && (m.value = e.id);
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
function C(e) {
|
|
31
|
+
i.value = e;
|
|
32
|
+
}
|
|
33
|
+
function S() {
|
|
34
|
+
if (!r.value) return;
|
|
35
|
+
const e = g.add({
|
|
36
|
+
path: "",
|
|
37
|
+
method: i.value.toUpperCase(),
|
|
38
|
+
description: a.value,
|
|
39
|
+
operationId: a.value,
|
|
40
|
+
summary: a.value,
|
|
41
|
+
tags: ["default"]
|
|
42
|
+
});
|
|
43
|
+
q(`/request/${e.uid}`), _("close");
|
|
44
|
+
}
|
|
45
|
+
const p = u(null);
|
|
46
|
+
return M(() => {
|
|
47
|
+
var e;
|
|
48
|
+
(e = p.value) == null || e.focus();
|
|
49
|
+
}), (e, t) => (V(), N(R, null, [
|
|
50
|
+
l("h2", null, h(e.title), 1),
|
|
51
|
+
l("form", {
|
|
52
|
+
class: "flex w-full flex-col gap-3",
|
|
53
|
+
onSubmit: I(S, ["prevent"])
|
|
54
|
+
}, [
|
|
55
|
+
l("div", $, [
|
|
56
|
+
G,
|
|
57
|
+
k(l("input", {
|
|
58
|
+
id: "requestname",
|
|
59
|
+
ref_key: "requestInput",
|
|
60
|
+
ref: p,
|
|
61
|
+
"onUpdate:modelValue": t[0] || (t[0] = (d) => a.value = d),
|
|
62
|
+
class: "border-transparent outline-none w-full pl-8 text-sm min-h-8 py-1.5",
|
|
63
|
+
label: "Request Name",
|
|
64
|
+
placeholder: "Request Name"
|
|
65
|
+
}, null, 512), [
|
|
66
|
+
[E, a.value]
|
|
67
|
+
])
|
|
68
|
+
]),
|
|
69
|
+
l("div", L, [
|
|
70
|
+
l("div", O, [
|
|
71
|
+
s(B, {
|
|
72
|
+
isEditable: !0,
|
|
73
|
+
isSquare: "",
|
|
74
|
+
method: i.value,
|
|
75
|
+
onChange: C
|
|
76
|
+
}, null, 8, ["method"]),
|
|
77
|
+
s(n(T), {
|
|
78
|
+
modelValue: o.value,
|
|
79
|
+
"onUpdate:modelValue": t[1] || (t[1] = (d) => o.value = d),
|
|
80
|
+
options: f.value
|
|
81
|
+
}, {
|
|
82
|
+
default: c(() => [
|
|
83
|
+
s(n(x), {
|
|
84
|
+
class: "justify-between p-2 max-h-8 w-full gap-1 text-xs hover:bg-b-2",
|
|
85
|
+
variant: "outlined"
|
|
86
|
+
}, {
|
|
87
|
+
default: c(() => [
|
|
88
|
+
l("span", {
|
|
89
|
+
class: F(o.value ? "text-c-1" : "text-c-3")
|
|
90
|
+
}, h(o.value ? o.value.label : "Select Folder"), 3),
|
|
91
|
+
s(n(j), {
|
|
92
|
+
class: "text-c-3",
|
|
93
|
+
icon: "ChevronDown",
|
|
94
|
+
size: "xs"
|
|
95
|
+
})
|
|
96
|
+
]),
|
|
97
|
+
_: 1
|
|
98
|
+
})
|
|
99
|
+
]),
|
|
100
|
+
_: 1
|
|
101
|
+
}, 8, ["modelValue", "options"])
|
|
102
|
+
]),
|
|
103
|
+
s(n(x), {
|
|
104
|
+
class: "max-h-8 text-xs p-0 px-3",
|
|
105
|
+
type: "submit"
|
|
106
|
+
}, {
|
|
107
|
+
default: c(() => [
|
|
108
|
+
U(" Create Request ")
|
|
109
|
+
]),
|
|
110
|
+
_: 1
|
|
111
|
+
})
|
|
112
|
+
])
|
|
113
|
+
], 32)
|
|
114
|
+
], 64));
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
export {
|
|
118
|
+
Q as default
|
|
119
|
+
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { defineComponent as r, openBlock as n, createElementBlock as o, Fragment as i, renderList as s, normalizeClass as c, toDisplayString as a } from "vue";
|
|
2
|
-
const b = { class: "request-section-content request-section-content-filter bg-b-2 text-c-3 bg-b-1 sticky top-0 z-10 mb-2.5 hidden xl:flex justify-center rounded p-[2.25px] text-xs" }, l = ["isActive", "onClick"], v = /* @__PURE__ */ r({
|
|
2
|
+
const b = { class: "request-section-content request-section-content-filter bg-b-2 text-c-3 bg-b-1 sticky top-0 z-10 mb-2.5 hidden xl:flex justify-center rounded p-[2.25px] text-xs gap-0.5" }, l = ["isActive", "onClick"], v = /* @__PURE__ */ r({
|
|
3
3
|
__name: "ContextBar",
|
|
4
4
|
props: {
|
|
5
5
|
sections: {},
|
|
6
6
|
activeSection: {}
|
|
7
7
|
},
|
|
8
8
|
emits: ["setActiveSection"],
|
|
9
|
-
setup(
|
|
10
|
-
return (t,
|
|
9
|
+
setup(p) {
|
|
10
|
+
return (t, d) => (n(), o("div", b, [
|
|
11
11
|
(n(!0), o(i, null, s(t.sections, (e) => (n(), o("button", {
|
|
12
12
|
key: e,
|
|
13
|
-
class: c(["hover:
|
|
14
|
-
t.activeSection === e ? "bg-b-1 text-c-1 dark:bg-b-3 border hover:bg-b-1" : "border border-transparent"
|
|
13
|
+
class: c(["hover:bg-b-3 w-full rounded px-1 py-1 text-center font-medium", [
|
|
14
|
+
t.activeSection === e ? "!bg-b-1 text-c-1 dark:bg-b-3 border hover:bg-b-1" : "border border-transparent"
|
|
15
15
|
]]),
|
|
16
16
|
isActive: t.activeSection === e,
|
|
17
17
|
type: "button",
|
|
@@ -2,18 +2,18 @@ import { defineComponent as c, openBlock as l, createElementBlock as i, unref as
|
|
|
2
2
|
import m from "../ScreenReader.vue.js";
|
|
3
3
|
import { ScalarIcon as u } from "@scalar/components";
|
|
4
4
|
import { useDarkModeState as f } from "../../hooks/useDarkModeState.js";
|
|
5
|
-
const
|
|
5
|
+
const h = /* @__PURE__ */ c({
|
|
6
6
|
__name: "DarkModeIconToggle",
|
|
7
|
-
setup(
|
|
7
|
+
setup(g) {
|
|
8
8
|
const { toggleDarkMode: t, isDark: n } = f();
|
|
9
|
-
return (
|
|
10
|
-
class: "w-[37px] hover:
|
|
9
|
+
return (k, o) => (l(), i("button", {
|
|
10
|
+
class: "w-[37px] hover:bg-b-2 flex items-center justify-center rounded-lg p-[7px]",
|
|
11
11
|
type: "button",
|
|
12
12
|
onClick: o[0] || (o[0] = //@ts-ignore
|
|
13
13
|
(...a) => e(t) && e(t)(...a))
|
|
14
14
|
}, [
|
|
15
15
|
r(e(u), {
|
|
16
|
-
class: "block h-6 w-6 stroke-[
|
|
16
|
+
class: "block h-6 w-6 stroke-[1.5]",
|
|
17
17
|
icon: "LightDarkModeToggle"
|
|
18
18
|
}),
|
|
19
19
|
r(m, null, {
|
|
@@ -26,5 +26,5 @@ const M = /* @__PURE__ */ c({
|
|
|
26
26
|
}
|
|
27
27
|
});
|
|
28
28
|
export {
|
|
29
|
-
|
|
29
|
+
h as default
|
|
30
30
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTableCell.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableCell.vue"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AAiBpC,iBAAS,cAAc;
|
|
1
|
+
{"version":3,"file":"DataTableCell.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableCell.vue"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AAiBpC,iBAAS,cAAc;qBAsCM,GAAG;EAc/B;AACD,QAAA,MAAM,eAAe;SAjEZ,MAAM,GAAG,SAAS;;;;SAAlB,MAAM,GAAG,SAAS;;;;QAAlB,MAAM,GAAG,SAAS;MAuEzB,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"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as r, openBlock as t, createBlock as o, resolveDynamicComponent as l, withCtx as a, renderSlot as
|
|
1
|
+
import { defineComponent as r, openBlock as t, createBlock as o, resolveDynamicComponent as l, withCtx as a, renderSlot as n } from "vue";
|
|
2
2
|
const m = /* @__PURE__ */ r({
|
|
3
3
|
__name: "DataTableCell",
|
|
4
4
|
props: {
|
|
5
5
|
is: { default: "td" }
|
|
6
6
|
},
|
|
7
|
-
setup(
|
|
7
|
+
setup(s) {
|
|
8
8
|
return (e, d) => (t(), o(l(e.is), {
|
|
9
|
-
class: "min-h-8 border-l-0 border-t-0 border-b-1/2 border-r-1/2 flex text-sm last:border-r-0 group-last:border-b-transparent p-0 m-0",
|
|
9
|
+
class: "min-h-8 border-l-0 border-t-0 border-b-1/2 border-r-1/2 flex text-sm last:border-r-0 group-last:border-b-transparent p-0 m-0 relative min-w-full",
|
|
10
10
|
role: "cell"
|
|
11
11
|
}, {
|
|
12
12
|
default: a(() => [
|
|
13
|
-
|
|
13
|
+
n(e.$slots, "default")
|
|
14
14
|
]),
|
|
15
15
|
_: 3
|
|
16
16
|
}));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./DataTableInput.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-266b624d"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -2,7 +2,7 @@ import { defineComponent as $, ref as d, computed as x, openBlock as o, createBl
|
|
|
2
2
|
import F from "../../views/Environment/EnvironmentVariableDropdown.vue.js";
|
|
3
3
|
import { ScalarIconButton as I } from "@scalar/components";
|
|
4
4
|
import M from "./DataTableCell.vue.js";
|
|
5
|
-
import O from "./
|
|
5
|
+
import O from "./DataTableInputSelect.vue.js";
|
|
6
6
|
const N = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "text-c-2 flex min-w-[100px] items-center border-r-1/2 pl-2 pr-0"
|
|
@@ -27,16 +27,16 @@ const N = {
|
|
|
27
27
|
max: {}
|
|
28
28
|
},
|
|
29
29
|
emits: ["update:modelValue", "inputFocus", "inputBlur", "selectVariable"],
|
|
30
|
-
setup(
|
|
31
|
-
const
|
|
32
|
-
u.value ||
|
|
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
33
|
}, h = x(
|
|
34
|
-
() =>
|
|
34
|
+
() => l.type === "password" ? a.value ? "password" : "text" : l.type ?? "text"
|
|
35
35
|
), V = (e) => {
|
|
36
36
|
const t = e.target;
|
|
37
|
-
c.value = t.value,
|
|
37
|
+
c.value = t.value, n("update:modelValue", t.value);
|
|
38
38
|
}, g = (e) => {
|
|
39
|
-
|
|
39
|
+
n("update:modelValue", e);
|
|
40
40
|
}, k = () => {
|
|
41
41
|
u.value = !0;
|
|
42
42
|
}, b = () => {
|
|
@@ -50,12 +50,12 @@ const N = {
|
|
|
50
50
|
m(e.$slots, "default", {}, void 0, !0)
|
|
51
51
|
])) : s("", !0),
|
|
52
52
|
f("div", P, [
|
|
53
|
-
|
|
53
|
+
l.enum && l.enum.length ? (o(), p(O, {
|
|
54
54
|
key: 0,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
"onUpdate:modelValue": t[0] || (t[0] = (i) =>
|
|
58
|
-
}, null, 8, ["
|
|
55
|
+
modelValue: l.modelValue,
|
|
56
|
+
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
59
|
f("input", S(e.$attrs, {
|
|
60
60
|
id: e.id,
|
|
61
61
|
autocomplete: "off",
|
|
@@ -69,7 +69,7 @@ const N = {
|
|
|
69
69
|
type: h.value,
|
|
70
70
|
value: e.modelValue,
|
|
71
71
|
onBlur: w,
|
|
72
|
-
onFocus: t[1] || (t[1] = (i) =>
|
|
72
|
+
onFocus: t[1] || (t[1] = (i) => n("inputFocus")),
|
|
73
73
|
onInput: V
|
|
74
74
|
}), null, 16, E),
|
|
75
75
|
e.required ? (o(), r("div", H, " Required ")) : s("", !0)
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
2
2
|
modelValue: string | number;
|
|
3
|
-
|
|
3
|
+
value?: string[];
|
|
4
4
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
5
5
|
"update:modelValue": (v: string) => void;
|
|
6
6
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
7
7
|
modelValue: string | number;
|
|
8
|
-
|
|
8
|
+
value?: string[];
|
|
9
9
|
}>>> & {
|
|
10
10
|
"onUpdate:modelValue"?: ((v: string) => any) | undefined;
|
|
11
11
|
}, {}, {}>;
|
|
@@ -19,4 +19,4 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
19
19
|
required: true;
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
|
-
//# sourceMappingURL=
|
|
22
|
+
//# sourceMappingURL=DataTableInputSelect.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataTableInputSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInputSelect.vue"],"names":[],"mappings":";gBAyIc,MAAM,GAAG,MAAM;YACnB,MAAM,EAAE;;;;gBADJ,MAAM,GAAG,MAAM;YACnB,MAAM,EAAE;;;;AA0TlB,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"}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { defineComponent as B, computed as z, ref as i, watch as k, nextTick as N, openBlock as o, createElementBlock as p, withDirectives as T, withKeys as j, vModelText as I, createBlock as m, unref as l, withCtx as r, Fragment as A, renderList as E, createElementVNode as d, normalizeClass as K, createVNode as c, createTextVNode as R, toDisplayString as y, createCommentVNode as $ } from "vue";
|
|
2
|
+
import { ScalarDropdown as F, ScalarDropdownItem as V, ScalarIcon as f, ScalarDropdownDivider as L, ScalarButton as M } from "@scalar/components";
|
|
3
|
+
const U = { class: "w-full" }, W = { class: "flex items-center justify-center h-4 w-4" }, q = /* @__PURE__ */ d("span", null, "Add value", -1), O = /* @__PURE__ */ B({
|
|
4
|
+
__name: "DataTableInputSelect",
|
|
5
|
+
props: {
|
|
6
|
+
modelValue: {},
|
|
7
|
+
value: {}
|
|
8
|
+
},
|
|
9
|
+
emits: ["update:modelValue"],
|
|
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);
|
|
12
|
+
k(a, (e) => {
|
|
13
|
+
x("update:modelValue", e);
|
|
14
|
+
});
|
|
15
|
+
const w = (e) => {
|
|
16
|
+
n.value = e, x("update:modelValue", e), s.value = !1;
|
|
17
|
+
}, S = () => {
|
|
18
|
+
a.value.trim() && (w(a.value), a.value = "");
|
|
19
|
+
}, D = () => {
|
|
20
|
+
a.value.trim() || (n.value = "", s.value = !1);
|
|
21
|
+
}, b = (e) => n.value === e;
|
|
22
|
+
return k(s, (e) => {
|
|
23
|
+
e && N(() => {
|
|
24
|
+
var u;
|
|
25
|
+
(u = h.value) == null || u.focus();
|
|
26
|
+
});
|
|
27
|
+
}), (e, u) => (o(), p("div", U, [
|
|
28
|
+
s.value ? T((o(), p("input", {
|
|
29
|
+
key: 0,
|
|
30
|
+
ref_key: "inputRef",
|
|
31
|
+
ref: h,
|
|
32
|
+
"onUpdate:modelValue": u[0] || (u[0] = (t) => a.value = t),
|
|
33
|
+
class: "border-none focus:text-c-1 text-c-2 min-w-0 w-full px-2 py-1.5 outline-none",
|
|
34
|
+
placeholder: "Value",
|
|
35
|
+
type: "text",
|
|
36
|
+
onBlur: D,
|
|
37
|
+
onKeyup: j(S, ["enter"])
|
|
38
|
+
}, null, 544)), [
|
|
39
|
+
[I, a.value]
|
|
40
|
+
]) : (o(), m(l(F), {
|
|
41
|
+
key: 1,
|
|
42
|
+
resize: "",
|
|
43
|
+
value: n.value
|
|
44
|
+
}, {
|
|
45
|
+
items: r(() => [
|
|
46
|
+
(o(!0), p(A, null, E(C.value, (t) => (o(), m(l(V), {
|
|
47
|
+
key: t,
|
|
48
|
+
class: "flex gap-1.5 group/item items-center whitespace-nowrap text-ellipsis overflow-hidden",
|
|
49
|
+
value: t,
|
|
50
|
+
onClick: (G) => w(t)
|
|
51
|
+
}, {
|
|
52
|
+
default: r(() => [
|
|
53
|
+
d("div", {
|
|
54
|
+
class: K([
|
|
55
|
+
"flex items-center justify-center rounded-full p-[3px] w-4 h-4 group-hover/item:shadow-border",
|
|
56
|
+
b(t) ? "bg-blue text-b-1" : "text-transparent"
|
|
57
|
+
])
|
|
58
|
+
}, [
|
|
59
|
+
c(l(f), {
|
|
60
|
+
class: "size-2.5 stroke-[1.75]",
|
|
61
|
+
icon: "Checkmark"
|
|
62
|
+
})
|
|
63
|
+
], 2),
|
|
64
|
+
R(" " + y(t), 1)
|
|
65
|
+
]),
|
|
66
|
+
_: 2
|
|
67
|
+
}, 1032, ["value", "onClick"]))), 128)),
|
|
68
|
+
c(l(L)),
|
|
69
|
+
c(l(V), {
|
|
70
|
+
class: "flex items-center gap-1.5",
|
|
71
|
+
onClick: u[1] || (u[1] = (t) => s.value = !0)
|
|
72
|
+
}, {
|
|
73
|
+
default: r(() => [
|
|
74
|
+
d("div", W, [
|
|
75
|
+
c(l(f), {
|
|
76
|
+
class: "h-2.5",
|
|
77
|
+
icon: "Add"
|
|
78
|
+
})
|
|
79
|
+
]),
|
|
80
|
+
q
|
|
81
|
+
]),
|
|
82
|
+
_: 1
|
|
83
|
+
})
|
|
84
|
+
]),
|
|
85
|
+
default: r(() => [
|
|
86
|
+
c(l(M), {
|
|
87
|
+
class: "gap-1.5 font-normal h-full justify-start px-2 py-1.5",
|
|
88
|
+
fullWidth: "",
|
|
89
|
+
variant: "ghost"
|
|
90
|
+
}, {
|
|
91
|
+
default: r(() => [
|
|
92
|
+
d("span", null, y(n.value || "Select a value"), 1),
|
|
93
|
+
n.value ? $("", !0) : (o(), m(l(f), {
|
|
94
|
+
key: 0,
|
|
95
|
+
icon: "ChevronDown",
|
|
96
|
+
size: "xs"
|
|
97
|
+
}))
|
|
98
|
+
]),
|
|
99
|
+
_: 1
|
|
100
|
+
})
|
|
101
|
+
]),
|
|
102
|
+
_: 1
|
|
103
|
+
}, 8, ["value"]))
|
|
104
|
+
]));
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
export {
|
|
108
|
+
O as default
|
|
109
|
+
};
|
|
@@ -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;
|
|
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"}
|