@scalar/api-client 2.2.7 → 2.2.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 +27 -0
- 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 +65 -65
- package/dist/components/CodeInput/codeVariableWidget.d.ts +6 -4
- package/dist/components/CodeInput/codeVariableWidget.d.ts.map +1 -1
- package/dist/components/CodeInput/codeVariableWidget.js +72 -68
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +108 -106
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.js +2 -2
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +12 -12
- package/dist/components/DataTable/DataTable.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTable.vue.js +20 -15
- package/dist/components/DataTable/DataTableCell.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableCell.vue.js +16 -11
- package/dist/components/DataTable/DataTableHeader.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableHeader.vue.js +11 -12
- package/dist/components/DataTable/DataTableInput.vue.d.ts +2 -1
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInput.vue.js +3 -3
- package/dist/components/DataTable/DataTableInput.vue2.js +9 -9
- package/dist/components/DataTable/index.js +14 -14
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -1
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +87 -67
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +2 -2
- package/dist/components/Sidebar/SidebarList.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarList.vue.js +4 -4
- package/dist/components/Sidebar/SidebarListElement.vue.d.ts +8 -4
- package/dist/components/Sidebar/SidebarListElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarListElement.vue.js +1 -1
- package/dist/components/Sidebar/SidebarListElement.vue2.js +52 -32
- package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts +3 -0
- package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarListElementActions.vue.js +43 -31
- package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNav.vue.js +32 -31
- package/dist/layouts/App/create-api-client-app.d.ts +49 -42
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.d.ts +103 -89
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.js +31 -19
- package/dist/layouts/Web/create-api-client-web.d.ts +49 -42
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +50 -44
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/env-helpers.d.ts +9 -0
- package/dist/libs/env-helpers.d.ts.map +1 -0
- package/dist/libs/env-helpers.js +4 -0
- package/dist/libs/environment-parser.d.ts +3 -4
- package/dist/libs/environment-parser.d.ts.map +1 -1
- package/dist/libs/environment-parser.js +5 -4
- package/dist/libs/index.d.ts +2 -0
- package/dist/libs/index.d.ts.map +1 -1
- package/dist/libs/index.js +28 -22
- package/dist/libs/postman.d.ts +11 -0
- package/dist/libs/postman.d.ts.map +1 -0
- package/dist/libs/postman.js +39 -0
- package/dist/libs/send-request/send-request.d.ts +5 -2
- package/dist/libs/send-request/send-request.d.ts.map +1 -1
- package/dist/libs/send-request/send-request.js +106 -104
- package/dist/routes.d.ts +11 -0
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +13 -7
- package/dist/store/active-entities.d.ts +18 -11
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/active-entities.js +108 -69
- package/dist/store/collections.d.ts +17 -15
- package/dist/store/collections.d.ts.map +1 -1
- package/dist/store/collections.js +62 -41
- package/dist/store/environment.d.ts +4 -4
- package/dist/store/import-spec.d.ts +2 -2
- package/dist/store/import-spec.d.ts.map +1 -1
- package/dist/store/index.d.ts +1 -0
- package/dist/store/index.d.ts.map +1 -1
- package/dist/store/index.js +7 -3
- package/dist/store/requests.d.ts +4 -4
- package/dist/store/router-params.d.ts +1 -1
- package/dist/store/router-params.d.ts.map +1 -1
- package/dist/store/router-params.js +7 -7
- package/dist/store/store.d.ts +49 -42
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/store.js +76 -72
- package/dist/store/workspace.d.ts +12 -12
- package/dist/store/workspace.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +1 -0
- package/dist/types/vue.d.ts +10 -0
- package/dist/types/vue.d.ts.map +1 -0
- package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue2.js +75 -70
- package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
- package/dist/views/Environment/Environment.vue2.js +308 -152
- package/dist/views/Environment/EnvironmentColorModal.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentColorModal.vue.js +20 -18
- package/dist/views/Environment/EnvironmentColors.vue.d.ts +4 -1
- package/dist/views/Environment/EnvironmentColors.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentColors.vue.js +83 -58
- package/dist/views/Environment/EnvironmentModal.vue.d.ts +7 -0
- package/dist/views/Environment/EnvironmentModal.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentModal.vue.js +119 -37
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts +4 -5
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +73 -63
- 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 +60 -61
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +185 -187
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +27 -24
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +35 -187
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts +7 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +7 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +207 -0
- package/dist/views/Request/RequestSection/{RequestAuthDataTableInput.vue.d.ts → RequestAuth/RequestAuthDataTableInput.vue.d.ts} +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts.map +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.js +43 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.d.ts +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.js +5 -134
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue2.js +176 -2
- package/dist/views/Request/RequestSection/RequestAuth/index.d.ts +2 -0
- package/dist/views/Request/RequestSection/RequestAuth/index.d.ts.map +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/index.js +4 -0
- package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebar.vue.js +3 -3
- package/dist/views/Request/RequestSidebar.vue2.js +139 -117
- 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 +32 -38
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/dist/views/Request/libs/auth.d.ts.map +1 -1
- package/dist/views/Request/libs/auth.js +3 -3
- package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
- package/dist/views/Servers/Servers.vue.d.ts.map +1 -1
- package/dist/views/Servers/Servers.vue2.js +9 -8
- package/package.json +19 -8
- package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue.js +0 -46
- /package/dist/views/Request/RequestSection/{RequestAuthDataTableInput.vue2.js → RequestAuth/RequestAuthDataTableInput.vue2.js} +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent as V, ref as i, computed as b, openBlock as l, createBlock as u, normalizeClass as k, withCtx as g, createElementBlock as r, renderSlot as p, createCommentVNode as d, createElementVNode as C, Fragment as B, mergeProps as f, unref as $ } from "vue";
|
|
2
2
|
import h from "../CodeInput/CodeInput.vue.js";
|
|
3
|
-
import { ScalarIconButton as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
3
|
+
import { ScalarIconButton as q } from "@scalar/components";
|
|
4
|
+
import x from "./DataTableCell.vue.js";
|
|
5
|
+
import O from "./DataTableInputSelect.vue.js";
|
|
6
6
|
const A = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "text-c-1 flex min-w-[94px] items-center pl-2 pr-0"
|
|
9
9
|
}, I = { class: "row-1 overflow-x-auto" }, E = ["id", "readOnly", "type", "value"], F = {
|
|
10
10
|
key: 2,
|
|
11
|
-
class: "absolute centered-y right-2 pt-px text-xxs text-c-3 bg-b-1 shadow-[-8px_0_4px_var(--scalar-background-1)] opacity-100 duration-150 transition-opacity peer-has-[:focus-visible]:opacity-0"
|
|
11
|
+
class: "scalar-input-required absolute centered-y right-2 pt-px text-xxs text-c-3 bg-b-1 shadow-[-8px_0_4px_var(--scalar-background-1)] opacity-100 duration-150 transition-opacity peer-has-[:focus-visible]:opacity-0"
|
|
12
12
|
}, S = {
|
|
13
13
|
key: 1,
|
|
14
14
|
class: "absolute centered-y right-7 text-orange text-xs"
|
|
@@ -28,15 +28,15 @@ const A = {
|
|
|
28
28
|
max: {}
|
|
29
29
|
},
|
|
30
30
|
emits: ["update:modelValue", "inputFocus", "inputBlur", "selectVariable"],
|
|
31
|
-
setup(
|
|
32
|
-
const o =
|
|
31
|
+
setup(c, { emit: y }) {
|
|
32
|
+
const o = c, s = y, n = i(!0);
|
|
33
33
|
i("");
|
|
34
34
|
const v = i(!1), w = () => {
|
|
35
35
|
v.value || s("inputBlur");
|
|
36
36
|
}, m = b(
|
|
37
37
|
() => o.type === "password" ? n.value ? "password" : "text" : o.type ?? "text"
|
|
38
38
|
);
|
|
39
|
-
return (e, t) => (l(), u(
|
|
39
|
+
return (e, t) => (l(), u(x, {
|
|
40
40
|
class: k(["relative row", e.containerClass])
|
|
41
41
|
}, {
|
|
42
42
|
default: g(() => [
|
|
@@ -44,7 +44,7 @@ const A = {
|
|
|
44
44
|
p(e.$slots, "default", {}, void 0, !0)
|
|
45
45
|
])) : d("", !0),
|
|
46
46
|
C("div", I, [
|
|
47
|
-
o.enum && o.enum.length ? (l(), u(
|
|
47
|
+
o.enum && o.enum.length ? (l(), u(O, {
|
|
48
48
|
key: 0,
|
|
49
49
|
canAddCustomValue: e.canAddCustomEnumValue,
|
|
50
50
|
modelValue: o.modelValue,
|
|
@@ -87,7 +87,7 @@ const A = {
|
|
|
87
87
|
p(e.$slots, "warning", {}, void 0, !0)
|
|
88
88
|
])) : d("", !0),
|
|
89
89
|
p(e.$slots, "icon", {}, void 0, !0),
|
|
90
|
-
e.type === "password" ? (l(), u($(
|
|
90
|
+
e.type === "password" ? (l(), u($(q), {
|
|
91
91
|
key: 2,
|
|
92
92
|
class: "-ml-.5 mr-1 h-6 w-6 self-center p-1.5",
|
|
93
93
|
icon: n.value ? "Show" : "Hide",
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { default as t } from "./
|
|
2
|
-
import { default as o } from "./
|
|
3
|
-
import { default as f } from "./
|
|
4
|
-
import { default as u } from "./
|
|
5
|
-
import { default as b } from "./
|
|
6
|
-
import { default as T } from "./
|
|
7
|
-
import { default as s } from "./
|
|
1
|
+
import { default as t } from "./DataTableInput.vue.js";
|
|
2
|
+
import { default as o } from "./DataTableRow.vue.js";
|
|
3
|
+
import { default as f } from "./DataTableText.vue.js";
|
|
4
|
+
import { default as u } from "./DataTable.vue.js";
|
|
5
|
+
import { default as b } from "./DataTableCell.vue.js";
|
|
6
|
+
import { default as T } from "./DataTableCheckbox.vue.js";
|
|
7
|
+
import { default as s } from "./DataTableHeader.vue.js";
|
|
8
8
|
import { default as c } from "./DataTableInputSelect.vue.js";
|
|
9
9
|
export {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
u as DataTable,
|
|
11
|
+
b as DataTableCell,
|
|
12
|
+
T as DataTableCheckbox,
|
|
13
|
+
s as DataTableHeader,
|
|
14
|
+
t as DataTableInput,
|
|
15
15
|
c as DataTableInputSelect,
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
o as DataTableRow,
|
|
17
|
+
f as DataTableText
|
|
18
18
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EnvironmentSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/components/EnvironmentSelector/EnvironmentSelector.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"EnvironmentSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/components/EnvironmentSelector/EnvironmentSelector.vue"],"names":[],"mappings":";AAqdA,wBAMG"}
|
|
@@ -1,96 +1,116 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useActiveEntities as
|
|
3
|
-
import { ScalarDropdown as
|
|
4
|
-
import { useRouter as
|
|
5
|
-
import { useWorkspace as
|
|
6
|
-
const
|
|
1
|
+
import { defineComponent as D, computed as w, watch as I, onMounted as B, openBlock as l, createElementBlock as h, createVNode as r, unref as n, withCtx as i, Fragment as j, renderList as z, createBlock as E, withModifiers as k, createTextVNode as u, toDisplayString as g, createElementVNode as m, normalizeClass as M, createCommentVNode as V } from "vue";
|
|
2
|
+
import { useActiveEntities as W } from "../../store/active-entities.js";
|
|
3
|
+
import { ScalarDropdown as L, ScalarDropdownItem as v, ScalarListboxCheckbox as O, ScalarIcon as d, ScalarDropdownDivider as R, ScalarButton as $ } from "@scalar/components";
|
|
4
|
+
import { useRouter as A } from "vue-router";
|
|
5
|
+
import { useWorkspace as F } from "../../store/store.js";
|
|
6
|
+
const T = { class: "font-medium m-0 flex gap-1.5 items-center whitespace-nowrap" }, q = { class: "flex items-center justify-center h-4 w-4" }, U = /* @__PURE__ */ D({
|
|
7
7
|
__name: "EnvironmentSelector",
|
|
8
|
-
setup(
|
|
9
|
-
const { activeWorkspace:
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
setup(G) {
|
|
9
|
+
const { activeCollection: o, activeWorkspace: c, activeEnvironment: p } = W(), { isReadOnly: C, collectionMutators: _ } = F(), b = A(), f = (t) => {
|
|
10
|
+
o.value && (_.edit(
|
|
11
|
+
o.value.uid,
|
|
12
|
+
"x-scalar-active-environment",
|
|
13
|
+
t
|
|
14
|
+
), c.value.activeEnvironmentId = t);
|
|
15
|
+
}, S = () => b.push({
|
|
12
16
|
name: "environment",
|
|
13
17
|
params: {
|
|
14
|
-
environment:
|
|
18
|
+
environment: c.value.uid
|
|
15
19
|
}
|
|
16
|
-
}),
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
}), y = w(() => {
|
|
21
|
+
const { value: t } = p, { value: e } = o;
|
|
22
|
+
return (t == null ? void 0 : t.uid) || (e == null ? void 0 : e["x-scalar-active-environment"]) || "No Environment";
|
|
23
|
+
}), N = w(() => {
|
|
24
|
+
const { value: t } = o, e = t == null ? void 0 : t["x-scalar-environments"];
|
|
25
|
+
return e ? Object.entries(e).map(([a, s]) => ({
|
|
26
|
+
...s,
|
|
27
|
+
uid: a,
|
|
28
|
+
name: a
|
|
29
|
+
})) : [];
|
|
30
|
+
}), x = (t) => {
|
|
31
|
+
const e = t["x-scalar-active-environment"];
|
|
32
|
+
e && o.value ? (o.value["x-scalar-active-environment"] = e, c.value.activeEnvironmentId = e) : c.value.activeEnvironmentId = "";
|
|
33
|
+
};
|
|
34
|
+
return I(o, (t) => {
|
|
35
|
+
x(t);
|
|
36
|
+
}), B(() => {
|
|
37
|
+
x(o.value);
|
|
38
|
+
}), (t, e) => (l(), h("div", null, [
|
|
39
|
+
r(n(L), { placement: "bottom-end" }, {
|
|
40
|
+
items: i(() => [
|
|
41
|
+
(l(!0), h(j, null, z(N.value, (a) => (l(), E(n(v), {
|
|
42
|
+
key: a.uid,
|
|
26
43
|
class: "flex gap-1.5 group/item items-center whitespace-nowrap text-ellipsis overflow-hidden",
|
|
27
|
-
onClick:
|
|
44
|
+
onClick: k((s) => f(a.uid), ["stop"])
|
|
28
45
|
}, {
|
|
29
|
-
default:
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
46
|
+
default: i(() => {
|
|
47
|
+
var s;
|
|
48
|
+
return [
|
|
49
|
+
r(n(O), {
|
|
50
|
+
selected: ((s = n(o)) == null ? void 0 : s["x-scalar-active-environment"]) === a.uid
|
|
51
|
+
}, null, 8, ["selected"]),
|
|
52
|
+
u(" " + g(a.name), 1)
|
|
53
|
+
];
|
|
54
|
+
}),
|
|
35
55
|
_: 2
|
|
36
56
|
}, 1032, ["onClick"]))), 128)),
|
|
37
|
-
n(
|
|
57
|
+
r(n(v), {
|
|
38
58
|
class: "flex gap-1.5 group/item items-center whitespace-nowrap text-ellipsis overflow-hidden",
|
|
39
|
-
onClick:
|
|
59
|
+
onClick: e[0] || (e[0] = k((a) => f(""), ["stop"]))
|
|
40
60
|
}, {
|
|
41
|
-
default:
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
61
|
+
default: i(() => {
|
|
62
|
+
var a;
|
|
63
|
+
return [
|
|
64
|
+
m("div", {
|
|
65
|
+
class: M([
|
|
66
|
+
"flex items-center justify-center rounded-full p-[3px] w-4 h-4",
|
|
67
|
+
n(p).uid === "" && ((a = n(o)) == null ? void 0 : a["x-scalar-active-environment"]) === "" ? "bg-c-accent text-b-1" : "group-hover/item:shadow-border text-transparent"
|
|
68
|
+
])
|
|
69
|
+
}, [
|
|
70
|
+
r(n(d), {
|
|
71
|
+
class: "size-2.5",
|
|
72
|
+
icon: "Checkmark",
|
|
73
|
+
thickness: "3.5"
|
|
74
|
+
})
|
|
75
|
+
], 2),
|
|
76
|
+
e[1] || (e[1] = u(" No Environment "))
|
|
77
|
+
];
|
|
78
|
+
}),
|
|
56
79
|
_: 1
|
|
57
80
|
}),
|
|
58
|
-
n(
|
|
59
|
-
|
|
81
|
+
r(n(R)),
|
|
82
|
+
n(C) ? V("", !0) : (l(), E(n(v), {
|
|
60
83
|
key: 0,
|
|
61
84
|
class: "flex items-center gap-1.5",
|
|
62
|
-
onClick:
|
|
85
|
+
onClick: S
|
|
63
86
|
}, {
|
|
64
|
-
default:
|
|
65
|
-
|
|
66
|
-
n(
|
|
87
|
+
default: i(() => [
|
|
88
|
+
m("div", q, [
|
|
89
|
+
r(n(d), {
|
|
67
90
|
icon: "Brackets",
|
|
68
91
|
size: "sm"
|
|
69
92
|
})
|
|
70
93
|
]),
|
|
71
|
-
|
|
94
|
+
e[2] || (e[2] = m("span", { class: "leading-none" }, "Manage Environments", -1))
|
|
72
95
|
]),
|
|
73
96
|
_: 1
|
|
74
97
|
}))
|
|
75
98
|
]),
|
|
76
|
-
default:
|
|
77
|
-
n(
|
|
99
|
+
default: i(() => [
|
|
100
|
+
r(n($), {
|
|
78
101
|
class: "font-normal h-auto justify-start py-1.5 px-1.5 pl-2 text-c-1 hover:bg-b-2 text-c-1 w-fit",
|
|
79
102
|
fullWidth: "",
|
|
80
103
|
variant: "ghost"
|
|
81
104
|
}, {
|
|
82
|
-
default:
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
])
|
|
92
|
-
];
|
|
93
|
-
}),
|
|
105
|
+
default: i(() => [
|
|
106
|
+
m("h2", T, [
|
|
107
|
+
u(g(y.value) + " ", 1),
|
|
108
|
+
r(n(d), {
|
|
109
|
+
icon: "ChevronDown",
|
|
110
|
+
size: "md"
|
|
111
|
+
})
|
|
112
|
+
])
|
|
113
|
+
]),
|
|
94
114
|
_: 1
|
|
95
115
|
})
|
|
96
116
|
]),
|
|
@@ -100,5 +120,5 @@ const O = { class: "font-medium m-0 flex gap-1.5 items-center whitespace-nowrap"
|
|
|
100
120
|
}
|
|
101
121
|
});
|
|
102
122
|
export {
|
|
103
|
-
|
|
123
|
+
U as default
|
|
104
124
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarListElementForm.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Sidebar/Actions/SidebarListElementForm.vue"],"names":[],"mappings":"AAmDA,KAAK,WAAW,GAAG;IACjB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;AAeF,iBAAS,cAAc;
|
|
1
|
+
{"version":3,"file":"SidebarListElementForm.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Sidebar/Actions/SidebarListElementForm.vue"],"names":[],"mappings":"AAmDA,KAAK,WAAW,GAAG;IACjB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;AAeF,iBAAS,cAAc;WAoGT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAWD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;8FAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./SidebarListElementForm.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-b6a60dbc"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarList.vue"],"names":[],"mappings":"AAcA,iBAAS,cAAc;
|
|
1
|
+
{"version":3,"file":"SidebarList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarList.vue"],"names":[],"mappings":"AAcA,iBAAS,cAAc;WAwCT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAOD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,4RAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { openBlock as t, createElementBlock as o, renderSlot as r } from "vue";
|
|
2
2
|
import c from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
const s = {}, l = { class: "flex flex-col px-3 pt-2.5 pb-[75px]" };
|
|
4
|
-
function n(e,
|
|
3
|
+
const s = {}, l = { class: "flex flex-col gap-px px-3 pt-2.5 pb-[75px]" };
|
|
4
|
+
function n(e, p) {
|
|
5
5
|
return t(), o("ul", l, [
|
|
6
6
|
r(e.$slots, "default")
|
|
7
7
|
]);
|
|
8
8
|
}
|
|
9
|
-
const
|
|
9
|
+
const _ = /* @__PURE__ */ c(s, [["render", n]]);
|
|
10
10
|
export {
|
|
11
|
-
|
|
11
|
+
_ as default
|
|
12
12
|
};
|
|
@@ -1,23 +1,27 @@
|
|
|
1
|
+
import { type Icon } from '@scalar/components';
|
|
1
2
|
type __VLS_Props = {
|
|
2
3
|
variable: {
|
|
3
4
|
uid: string;
|
|
4
5
|
name: string;
|
|
5
6
|
color?: string;
|
|
7
|
+
icon?: Icon;
|
|
6
8
|
isDefault?: boolean;
|
|
7
9
|
};
|
|
10
|
+
collectionId?: string;
|
|
8
11
|
warningMessage?: string;
|
|
9
12
|
isDeletable?: boolean;
|
|
10
13
|
isCopyable?: boolean;
|
|
14
|
+
isRenameable?: boolean;
|
|
15
|
+
type: 'environment' | 'cookies' | 'server';
|
|
11
16
|
};
|
|
12
17
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
13
18
|
delete: (id: string) => any;
|
|
19
|
+
rename: (id: string) => any;
|
|
14
20
|
colorModal: (id: string) => any;
|
|
15
21
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
16
22
|
onDelete?: ((id: string) => any) | undefined;
|
|
23
|
+
onRename?: ((id: string) => any) | undefined;
|
|
17
24
|
onColorModal?: ((id: string) => any) | undefined;
|
|
18
|
-
}>, {
|
|
19
|
-
isCopyable: boolean;
|
|
20
|
-
isDeletable: boolean;
|
|
21
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLLIElement>;
|
|
25
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLLIElement>;
|
|
22
26
|
export default _default;
|
|
23
27
|
//# sourceMappingURL=SidebarListElement.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarListElement.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarListElement.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SidebarListElement.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarListElement.vue"],"names":[],"mappings":"AAoHA,OAAO,EAAE,KAAK,IAAI,EAAc,MAAM,oBAAoB,CAAA;AAK1D,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE;QACR,GAAG,EAAE,MAAM,CAAA;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,KAAK,CAAC,EAAE,MAAM,CAAA;QACd,IAAI,CAAC,EAAE,IAAI,CAAA;QACX,SAAS,CAAC,EAAE,OAAO,CAAA;KACpB,CAAA;IACD,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,IAAI,EAAE,aAAa,GAAG,SAAS,GAAG,QAAQ,CAAA;CAC3C,CAAC;;;;;;;;;;AAuNF,wBAQG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./SidebarListElement.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-
|
|
4
|
+
const a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-f7711416"]]);
|
|
5
5
|
export {
|
|
6
6
|
a as default
|
|
7
7
|
};
|
|
@@ -1,52 +1,72 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { defineComponent as g, resolveComponent as C, openBlock as r, createElementBlock as p, createVNode as d, normalizeClass as h, unref as t, withModifiers as D, withCtx as I, createElementVNode as c, normalizeStyle as M, createCommentVNode as m, createBlock as R, toDisplayString as B } from "vue";
|
|
2
|
+
import E from "./SidebarListElementActions.vue.js";
|
|
3
|
+
import { useActiveEntities as N } from "../../store/active-entities.js";
|
|
4
|
+
import { ScalarIcon as S } from "@scalar/components";
|
|
5
|
+
import { useRouter as z } from "vue-router";
|
|
6
|
+
const V = { class: "empty-variable-name text-sm" }, q = /* @__PURE__ */ g({
|
|
5
7
|
__name: "SidebarListElement",
|
|
6
8
|
props: {
|
|
7
9
|
variable: {},
|
|
10
|
+
collectionId: {},
|
|
8
11
|
warningMessage: {},
|
|
9
|
-
isDeletable: { type: Boolean
|
|
10
|
-
isCopyable: { type: Boolean
|
|
12
|
+
isDeletable: { type: Boolean },
|
|
13
|
+
isCopyable: { type: Boolean },
|
|
14
|
+
isRenameable: { type: Boolean },
|
|
15
|
+
type: {}
|
|
11
16
|
},
|
|
12
|
-
emits: ["delete", "colorModal"],
|
|
13
|
-
setup(
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
emits: ["delete", "colorModal", "rename"],
|
|
18
|
+
setup(u, { emit: b }) {
|
|
19
|
+
const v = u, i = b, k = z(), { activeWorkspace: n } = N(), y = (e, a, l) => {
|
|
20
|
+
const o = {
|
|
21
|
+
workspaceId: n.value.uid,
|
|
22
|
+
type: v.type,
|
|
23
|
+
collectionId: l || void 0,
|
|
24
|
+
uid: a
|
|
25
|
+
}, s = l ? `/workspace/${o.workspaceId}/${o.type}/${o.collectionId}/${o.uid}` : `/workspace/${o.workspaceId}/${o.type}/${o.uid}`;
|
|
26
|
+
e.metaKey ? window.open(s, "_blank") : k.push({ path: s });
|
|
27
|
+
}, f = (e) => {
|
|
28
|
+
i("delete", e);
|
|
29
|
+
}, w = (e) => {
|
|
30
|
+
i("colorModal", e);
|
|
31
|
+
}, $ = (e) => {
|
|
32
|
+
i("rename", e);
|
|
20
33
|
};
|
|
21
|
-
return (e,
|
|
22
|
-
const
|
|
23
|
-
return
|
|
24
|
-
|
|
25
|
-
class:
|
|
34
|
+
return (e, a) => {
|
|
35
|
+
const l = C("router-link");
|
|
36
|
+
return r(), p("li", null, [
|
|
37
|
+
d(l, {
|
|
38
|
+
class: h(["h-8 text-c-2 hover:bg-b-2 group relative block flex items-center gap-1.5 rounded py-1 pr-2 font-medium no-underline", [e.variable.color ? "pl-1" : "pl-2"]]),
|
|
26
39
|
exactActiveClass: "active-link",
|
|
27
|
-
to:
|
|
28
|
-
onClick:
|
|
40
|
+
to: e.collectionId ? `/workspace/${t(n).uid}/${e.type}/${e.collectionId}/${e.variable.uid}` : `/workspace/${t(n).uid}/${e.type}/${e.variable.uid}`,
|
|
41
|
+
onClick: a[1] || (a[1] = D((o) => y(o, e.variable.uid, e.collectionId), ["prevent"]))
|
|
29
42
|
}, {
|
|
30
|
-
default:
|
|
31
|
-
e.variable.color ? (
|
|
43
|
+
default: I(() => [
|
|
44
|
+
e.variable.color ? (r(), p("button", {
|
|
32
45
|
key: 0,
|
|
33
46
|
class: "hover:bg-b-3 rounded p-1.5",
|
|
34
47
|
type: "button",
|
|
35
|
-
onClick:
|
|
48
|
+
onClick: a[0] || (a[0] = (o) => w(e.variable.uid))
|
|
36
49
|
}, [
|
|
37
|
-
|
|
50
|
+
c("div", {
|
|
38
51
|
class: "h-2.5 w-2.5 rounded-xl",
|
|
39
|
-
style:
|
|
52
|
+
style: M({ backgroundColor: e.variable.color })
|
|
40
53
|
}, null, 4)
|
|
41
|
-
])) :
|
|
42
|
-
|
|
43
|
-
|
|
54
|
+
])) : m("", !0),
|
|
55
|
+
e.variable.icon ? (r(), R(t(S), {
|
|
56
|
+
key: 1,
|
|
57
|
+
class: "text-sidebar-c-2 size-3.5 stroke-[2.25]",
|
|
58
|
+
icon: e.variable.icon
|
|
59
|
+
}, null, 8, ["icon"])) : m("", !0),
|
|
60
|
+
c("span", V, B(e.variable.name), 1),
|
|
61
|
+
d(E, {
|
|
44
62
|
isCopyable: e.isCopyable,
|
|
45
63
|
isDeletable: e.isDeletable,
|
|
64
|
+
isRenameable: e.isRenameable,
|
|
46
65
|
variable: { ...e.variable, isDefault: e.variable.isDefault ?? !1 },
|
|
47
66
|
warningMessage: e.warningMessage,
|
|
48
|
-
onDelete:
|
|
49
|
-
|
|
67
|
+
onDelete: f,
|
|
68
|
+
onRename: $
|
|
69
|
+
}, null, 8, ["isCopyable", "isDeletable", "isRenameable", "variable", "warningMessage"])
|
|
50
70
|
]),
|
|
51
71
|
_: 1
|
|
52
72
|
}, 8, ["class", "to"])
|
|
@@ -55,5 +75,5 @@ const M = { class: "empty-variable-name" }, V = /* @__PURE__ */ v({
|
|
|
55
75
|
}
|
|
56
76
|
});
|
|
57
77
|
export {
|
|
58
|
-
|
|
78
|
+
q as default
|
|
59
79
|
};
|
|
@@ -7,11 +7,14 @@ type __VLS_Props = {
|
|
|
7
7
|
warningMessage?: string;
|
|
8
8
|
isCopyable?: boolean;
|
|
9
9
|
isDeletable?: boolean;
|
|
10
|
+
isRenameable?: boolean;
|
|
10
11
|
};
|
|
11
12
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
12
13
|
delete: (id: string) => any;
|
|
14
|
+
rename: (id: string) => any;
|
|
13
15
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
16
|
onDelete?: ((id: string) => any) | undefined;
|
|
17
|
+
onRename?: ((id: string) => any) | undefined;
|
|
15
18
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
19
|
export default _default;
|
|
17
20
|
//# sourceMappingURL=SidebarListElementActions.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarListElementActions.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarListElementActions.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SidebarListElementActions.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarListElementActions.vue"],"names":[],"mappings":"AAmGA,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE;QACR,GAAG,EAAE,MAAM,CAAA;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,SAAS,EAAE,OAAO,CAAA;KACnB,CAAA;IACD,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB,CAAC;;;;;;;;AA2MF,wBAOG"}
|
|
@@ -1,68 +1,80 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as g, ref as C, openBlock as n, createElementBlock as l, Fragment as h, createElementVNode as w, unref as a, createVNode as i, createCommentVNode as r, withModifiers as k, withCtx as M, createBlock as D } from "vue";
|
|
2
2
|
import N from "./Actions/DeleteSidebarListElement.vue.js";
|
|
3
|
-
import { useModal as $, ScalarIcon as
|
|
4
|
-
import { useClipboard as
|
|
5
|
-
const
|
|
3
|
+
import { useModal as $, ScalarIcon as m, ScalarModal as B } from "@scalar/components";
|
|
4
|
+
import { useClipboard as x } from "@scalar/use-hooks/useClipboard";
|
|
5
|
+
const E = { class: "absolute flex right-1 opacity-0 group-hover:opacity-100" }, R = /* @__PURE__ */ g({
|
|
6
6
|
__name: "SidebarListElementActions",
|
|
7
7
|
props: {
|
|
8
8
|
variable: {},
|
|
9
9
|
warningMessage: {},
|
|
10
10
|
isCopyable: { type: Boolean },
|
|
11
|
-
isDeletable: { type: Boolean }
|
|
11
|
+
isDeletable: { type: Boolean },
|
|
12
|
+
isRenameable: { type: Boolean }
|
|
12
13
|
},
|
|
13
|
-
emits: ["delete"],
|
|
14
|
+
emits: ["delete", "rename"],
|
|
14
15
|
setup(d, { emit: p }) {
|
|
15
|
-
const b = p,
|
|
16
|
+
const b = p, o = C({ action: "None", name: "" }), s = $(), { copyToClipboard: v } = x();
|
|
16
17
|
function f(e) {
|
|
17
|
-
|
|
18
|
+
o.value = { action: e, name: d.variable.name }, s.show();
|
|
18
19
|
}
|
|
19
|
-
function
|
|
20
|
-
|
|
20
|
+
function c() {
|
|
21
|
+
s.hide(), o.value = { action: "None", name: "" };
|
|
21
22
|
}
|
|
22
|
-
function
|
|
23
|
-
b("delete", e),
|
|
23
|
+
function y(e) {
|
|
24
|
+
b("delete", e), c();
|
|
24
25
|
}
|
|
25
|
-
return (e,
|
|
26
|
-
w("div",
|
|
27
|
-
e.isCopyable ? (n(),
|
|
26
|
+
return (e, t) => (n(), l(h, null, [
|
|
27
|
+
w("div", E, [
|
|
28
|
+
e.isCopyable ? (n(), l("button", {
|
|
28
29
|
key: 0,
|
|
29
30
|
class: "text-c-3 hover:bg-b-3 hover:text-c-1 rounded p-[5px]",
|
|
30
31
|
type: "button",
|
|
31
|
-
onClick:
|
|
32
|
+
onClick: t[0] || (t[0] = (u) => a(v)(e.variable.name))
|
|
32
33
|
}, [
|
|
33
|
-
|
|
34
|
+
i(a(m), {
|
|
34
35
|
class: "h-3 w-3",
|
|
35
36
|
icon: "Clipboard"
|
|
36
37
|
})
|
|
37
|
-
])) :
|
|
38
|
-
|
|
38
|
+
])) : r("", !0),
|
|
39
|
+
e.isRenameable ? (n(), l("button", {
|
|
39
40
|
key: 1,
|
|
41
|
+
class: "text-c-3 hover:bg-b-3 hover:text-c-1 rounded p-[5px]",
|
|
42
|
+
type: "button",
|
|
43
|
+
onClick: t[1] || (t[1] = (u) => b("rename", e.variable.uid))
|
|
44
|
+
}, [
|
|
45
|
+
i(a(m), {
|
|
46
|
+
class: "h-3 w-3",
|
|
47
|
+
icon: "Edit"
|
|
48
|
+
})
|
|
49
|
+
])) : r("", !0),
|
|
50
|
+
!e.variable.isDefault && e.isDeletable ? (n(), l("button", {
|
|
51
|
+
key: 2,
|
|
40
52
|
class: "text-c-3 hover:bg-b-3 hover:text-c-1 rounded p-1",
|
|
41
53
|
type: "button",
|
|
42
|
-
onClick:
|
|
54
|
+
onClick: t[2] || (t[2] = k((u) => f(
|
|
43
55
|
"Delete"
|
|
44
56
|
/* Delete */
|
|
45
57
|
), ["prevent"]))
|
|
46
58
|
}, [
|
|
47
|
-
|
|
59
|
+
i(a(m), {
|
|
48
60
|
class: "h-3.5 w-3.5",
|
|
49
61
|
icon: "Close"
|
|
50
62
|
})
|
|
51
|
-
])) :
|
|
63
|
+
])) : r("", !0)
|
|
52
64
|
]),
|
|
53
|
-
|
|
65
|
+
i(a(B), {
|
|
54
66
|
size: "sm",
|
|
55
|
-
state: a(
|
|
56
|
-
title: `${
|
|
67
|
+
state: a(s),
|
|
68
|
+
title: `${o.value.action} ${o.value.name}`
|
|
57
69
|
}, {
|
|
58
70
|
default: M(() => [
|
|
59
|
-
|
|
71
|
+
o.value.action === "Delete" ? (n(), D(N, {
|
|
60
72
|
key: 0,
|
|
61
|
-
variableName:
|
|
73
|
+
variableName: o.value.name,
|
|
62
74
|
warningMessage: e.warningMessage,
|
|
63
|
-
onClose:
|
|
64
|
-
onDelete:
|
|
65
|
-
}, null, 8, ["variableName", "warningMessage"])) :
|
|
75
|
+
onClose: c,
|
|
76
|
+
onDelete: t[3] || (t[3] = (u) => y(e.variable.uid))
|
|
77
|
+
}, null, 8, ["variableName", "warningMessage"])) : r("", !0)
|
|
66
78
|
]),
|
|
67
79
|
_: 1
|
|
68
80
|
}, 8, ["state", "title"])
|
|
@@ -70,5 +82,5 @@ const x = { class: "absolute flex right-1 opacity-0 group-hover:opacity-100" },
|
|
|
70
82
|
}
|
|
71
83
|
});
|
|
72
84
|
export {
|
|
73
|
-
|
|
85
|
+
R as default
|
|
74
86
|
};
|