@scalar/api-client 2.17.7 → 2.18.0
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 +74 -0
- package/dist/components/CommandPalette/CommandActionInput.vue.js +1 -1
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.js +5 -5
- package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.js +18 -18
- package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.js +7 -7
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +44 -5
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.js +2 -44
- package/dist/style.css +1 -1
- package/dist/v2/blocks/operation-block/helpers/build-request.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/helpers/build-request.js +46 -51
- package/dist/v2/blocks/operation-block/helpers/get-environment-variables.d.ts +9 -0
- package/dist/v2/blocks/operation-block/helpers/get-environment-variables.d.ts.map +1 -0
- package/dist/v2/blocks/operation-block/helpers/get-environment-variables.js +7 -0
- package/dist/v2/blocks/operation-block/helpers/get-example.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/helpers/get-example.js +12 -10
- package/dist/v2/blocks/operation-block/helpers/get-server-url.d.ts +3 -0
- package/dist/v2/blocks/operation-block/helpers/get-server-url.d.ts.map +1 -0
- package/dist/v2/blocks/operation-block/helpers/get-server-url.js +12 -0
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +87 -65
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts +18 -10
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +149 -126
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.d.ts +20 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.js +7 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue2.js +76 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.d.ts +22 -5
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js +79 -64
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +16 -8
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts +2 -2
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js +84 -82
- package/dist/v2/components/code-input/CodeInput.vue.d.ts +115 -144
- package/dist/v2/components/code-input/CodeInput.vue.d.ts.map +1 -1
- package/dist/v2/components/code-input/CodeInput.vue.js +2 -2
- package/dist/v2/components/code-input/CodeInput.vue2.js +120 -107
- package/dist/v2/components/data-table/DataTableInput.vue.d.ts +3 -3
- package/dist/v2/components/data-table/DataTableInput.vue.d.ts.map +1 -1
- package/dist/v2/components/data-table/DataTableInput.vue.js +2 -2
- package/dist/v2/components/data-table/DataTableInput.vue2.js +27 -27
- package/dist/v2/components/data-table/DataTableInputSelect.vue.d.ts +3 -2
- package/dist/v2/components/data-table/DataTableInputSelect.vue.d.ts.map +1 -1
- package/dist/v2/components/data-table/DataTableInputSelect.vue.js +42 -39
- package/dist/v2/components/forms/ConfirmationForm.vue.d.ts.map +1 -1
- package/dist/v2/components/forms/ConfirmationForm.vue.js +43 -5
- package/dist/v2/components/forms/ConfirmationForm.vue2.js +2 -43
- package/dist/v2/components/modals/DeleteModal.vue.js +11 -11
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts +5 -3
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts +5 -3
- package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts.map +1 -1
- package/dist/v2/components/sidebar/SidebarMenu.vue.js +25 -30
- package/dist/v2/features/app/App.vue.d.ts.map +1 -1
- package/dist/v2/features/app/App.vue.js +89 -141
- package/dist/v2/features/app/app-events.d.ts +22 -0
- package/dist/v2/features/app/app-events.d.ts.map +1 -0
- package/dist/v2/features/app/app-events.js +136 -0
- package/dist/v2/features/app/app-state.d.ts +135 -0
- package/dist/v2/features/app/app-state.d.ts.map +1 -0
- package/dist/v2/features/app/app-state.js +316 -0
- package/dist/v2/features/app/components/AppSidebar.vue.d.ts +6 -3
- package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -1
- package/dist/v2/features/app/components/AppSidebar.vue.js +3 -3
- package/dist/v2/features/app/components/AppSidebar.vue2.js +4 -4
- package/dist/v2/features/app/components/DesktopTabs.vue.d.ts +4 -2
- package/dist/v2/features/app/components/DesktopTabs.vue.d.ts.map +1 -1
- package/dist/v2/features/app/components/DesktopTabs.vue.js +25 -22
- package/dist/v2/features/app/components/WebTopNav.vue.d.ts +9 -5
- package/dist/v2/features/app/components/WebTopNav.vue.d.ts.map +1 -1
- package/dist/v2/features/app/helpers/create-api-client-app.d.ts +62 -1
- package/dist/v2/features/app/helpers/create-api-client-app.d.ts.map +1 -1
- package/dist/v2/features/app/helpers/create-api-client-app.js +14 -10
- package/dist/v2/features/app/helpers/routes.d.ts +5 -2
- package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
- package/dist/v2/features/collection/WorkspaceCollection.vue.js +7 -7
- package/dist/v2/features/collection/components/Form.vue.d.ts +1 -1
- package/dist/v2/features/collection/components/Form.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Servers.vue.d.ts.map +1 -1
- package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
- package/dist/v2/features/modal/Modal.vue.js +2 -2
- package/dist/v2/features/modal/Modal.vue2.js +40 -41
- package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
- package/dist/v2/features/operation/Operation.vue.js +38 -28
- package/dist/v2/features/operation/helpers/combine-params.d.ts +4 -0
- package/dist/v2/features/operation/helpers/combine-params.d.ts.map +1 -0
- package/dist/v2/features/operation/helpers/combine-params.js +13 -0
- package/dist/v2/features/operation/index.d.ts +1 -0
- package/dist/v2/features/operation/index.d.ts.map +1 -1
- package/dist/v2/features/operation/index.js +10 -8
- package/dist/v2/features/settings/DocumentSettings.vue.d.ts.map +1 -1
- package/dist/v2/features/settings/DocumentSettings.vue.js +104 -5
- package/dist/v2/features/settings/DocumentSettings.vue2.js +2 -104
- package/dist/v2/helpers/get-tab-details.d.ts +2 -2
- package/dist/v2/helpers/get-tab-details.d.ts.map +1 -1
- package/dist/views/Collection/CollectionSettings.vue.d.ts.map +1 -1
- package/dist/views/Collection/CollectionSettings.vue.js +1 -4
- package/dist/views/Collection/CollectionSettings.vue2.js +5 -5
- package/dist/views/Environment/EnvironmentColorModal.vue.js +6 -6
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/package.json +17 -17
- package/dist/v2/features/app/hooks/use-app-sidebar.d.ts +0 -40
- package/dist/v2/features/app/hooks/use-app-sidebar.d.ts.map +0 -1
- package/dist/v2/features/app/hooks/use-app-sidebar.js +0 -134
- package/dist/v2/features/app/hooks/use-sync-path.d.ts +0 -11
- package/dist/v2/features/app/hooks/use-sync-path.d.ts.map +0 -1
- package/dist/v2/features/app/hooks/use-sync-path.js +0 -52
- package/dist/v2/features/app/hooks/use-tabs.d.ts +0 -31
- package/dist/v2/features/app/hooks/use-tabs.d.ts.map +0 -1
- package/dist/v2/features/app/hooks/use-tabs.js +0 -44
- package/dist/v2/features/app/hooks/use-workspace-client-app-events.d.ts +0 -18
- package/dist/v2/features/app/hooks/use-workspace-client-app-events.d.ts.map +0 -1
- package/dist/v2/features/app/hooks/use-workspace-client-app-events.js +0 -156
- package/dist/v2/features/app/hooks/use-workspace-selector.d.ts +0 -28
- package/dist/v2/features/app/hooks/use-workspace-selector.d.ts.map +0 -1
- package/dist/v2/features/app/hooks/use-workspace-selector.js +0 -81
|
@@ -1,57 +1,60 @@
|
|
|
1
|
-
import { defineComponent as T, computed as
|
|
2
|
-
import { ScalarComboboxMultiselect as F, ScalarButton as
|
|
1
|
+
import { defineComponent as T, computed as p, ref as w, watch as b, nextTick as E, createElementBlock as m, openBlock as o, createBlock as f, withDirectives as K, unref as a, withCtx as n, createVNode as s, createElementVNode as i, toDisplayString as V, withKeys as M, vModelText as R, createCommentVNode as C, Fragment as _, renderList as U, normalizeClass as $ } from "vue";
|
|
2
|
+
import { ScalarComboboxMultiselect as F, ScalarButton as B, ScalarIcon as v, ScalarDropdown as L, ScalarDropdownItem as D, ScalarDropdownDivider as W } from "@scalar/components";
|
|
3
3
|
const q = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-full pr-10 -outline-offset-1 has-[:focus-visible]:rounded-[4px] has-[:focus-visible]:outline" }, G = { class: "text-c-1 whitespace-nowrap" }, H = { class: "text-c-1 overflow-hidden text-ellipsis" }, J = { class: "overflow-hidden text-ellipsis" }, P = { class: "flex h-4 w-4 items-center justify-center" }, Z = /* @__PURE__ */ T({
|
|
4
4
|
__name: "DataTableInputSelect",
|
|
5
5
|
props: {
|
|
6
|
-
modelValue: { type: [String, Number, Boolean] },
|
|
6
|
+
modelValue: { type: [String, Number, Boolean, Array, Object] },
|
|
7
7
|
value: {},
|
|
8
|
-
default: { type: [String, Number, Boolean] },
|
|
8
|
+
default: { type: [String, Number, Boolean, Array, Object] },
|
|
9
9
|
canAddCustomValue: { type: Boolean, default: !0 },
|
|
10
10
|
type: {}
|
|
11
11
|
},
|
|
12
12
|
emits: ["update:modelValue"],
|
|
13
|
-
setup(
|
|
14
|
-
const u =
|
|
15
|
-
|
|
13
|
+
setup(j, { emit: z }) {
|
|
14
|
+
const u = j, c = z, h = p(() => u.value ?? []), d = w(!1), r = w(""), x = w(null);
|
|
15
|
+
b(r, (e) => {
|
|
16
16
|
c("update:modelValue", e);
|
|
17
17
|
});
|
|
18
18
|
const g = (e) => {
|
|
19
19
|
c("update:modelValue", e), d.value = !1;
|
|
20
|
-
}, j = () => {
|
|
21
|
-
r.value.trim() && g(r.value);
|
|
22
20
|
}, A = () => {
|
|
21
|
+
r.value.trim() && g(r.value);
|
|
22
|
+
}, N = () => {
|
|
23
23
|
r.value.trim() || c("update:modelValue", ""), d.value = !1;
|
|
24
|
-
},
|
|
25
|
-
|
|
24
|
+
}, O = (e) => u.modelValue.toString() === e;
|
|
25
|
+
b(d, (e) => {
|
|
26
26
|
e && E(() => {
|
|
27
27
|
x.value?.focus();
|
|
28
28
|
});
|
|
29
29
|
});
|
|
30
|
-
const S =
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
),
|
|
30
|
+
const S = p(() => u.modelValue !== void 0 ? u.modelValue : u.default), k = p(
|
|
31
|
+
() => h.value.map((e) => {
|
|
32
|
+
const t = e.toString();
|
|
33
|
+
return { id: t, label: t, value: t };
|
|
34
|
+
})
|
|
35
|
+
), y = p(() => {
|
|
36
|
+
const e = new Set(u.modelValue.toString().split(","));
|
|
37
|
+
return k.value.filter((t) => e.has(t.id));
|
|
38
|
+
}), I = (e) => {
|
|
36
39
|
const t = e.map((l) => l.value);
|
|
37
|
-
c("update:modelValue", t.join(",
|
|
40
|
+
c("update:modelValue", t.join(","));
|
|
38
41
|
};
|
|
39
|
-
return (e, t) => (o(),
|
|
40
|
-
e.type === "array" ? (o(),
|
|
42
|
+
return (e, t) => (o(), m("div", q, [
|
|
43
|
+
e.type === "array" ? (o(), f(a(F), {
|
|
41
44
|
key: 0,
|
|
42
|
-
modelValue:
|
|
43
|
-
options:
|
|
44
|
-
"onUpdate:modelValue":
|
|
45
|
+
modelValue: y.value,
|
|
46
|
+
options: k.value,
|
|
47
|
+
"onUpdate:modelValue": I
|
|
45
48
|
}, {
|
|
46
49
|
default: n(() => [
|
|
47
|
-
s(a(
|
|
50
|
+
s(a(B), {
|
|
48
51
|
class: "custom-scroll h-full justify-start gap-1.5 px-2 py-1.5 pr-6 font-normal outline-none",
|
|
49
52
|
fullWidth: "",
|
|
50
53
|
variant: "ghost"
|
|
51
54
|
}, {
|
|
52
55
|
default: n(() => [
|
|
53
|
-
i("span", G, V(
|
|
54
|
-
s(a(
|
|
56
|
+
i("span", G, V(y.value.length > 0 ? y.value.map((l) => l.label).join(", ") : "Select a value"), 1),
|
|
57
|
+
s(a(v), {
|
|
55
58
|
class: "min-w-4",
|
|
56
59
|
icon: "ChevronDown",
|
|
57
60
|
size: "md"
|
|
@@ -61,7 +64,7 @@ const q = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-f
|
|
|
61
64
|
})
|
|
62
65
|
]),
|
|
63
66
|
_: 1
|
|
64
|
-
}, 8, ["modelValue", "options"])) : d.value ? K((o(),
|
|
67
|
+
}, 8, ["modelValue", "options"])) : d.value ? K((o(), m("input", {
|
|
65
68
|
key: 1,
|
|
66
69
|
ref_key: "inputRef",
|
|
67
70
|
ref: x,
|
|
@@ -69,17 +72,17 @@ const q = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-f
|
|
|
69
72
|
class: "text-c-1 w-full min-w-0 border-none px-2 py-1.5 outline-none",
|
|
70
73
|
placeholder: "Value",
|
|
71
74
|
type: "text",
|
|
72
|
-
onBlur:
|
|
73
|
-
onKeyup: M(
|
|
75
|
+
onBlur: N,
|
|
76
|
+
onKeyup: M(A, ["enter"])
|
|
74
77
|
}, null, 544)), [
|
|
75
78
|
[R, r.value]
|
|
76
|
-
]) : (o(),
|
|
79
|
+
]) : (o(), f(a(L), {
|
|
77
80
|
key: 2,
|
|
78
81
|
resize: "",
|
|
79
82
|
value: S.value
|
|
80
83
|
}, {
|
|
81
84
|
items: n(() => [
|
|
82
|
-
(o(!0),
|
|
85
|
+
(o(!0), m(_, null, U(h.value, (l) => (o(), f(a(D), {
|
|
83
86
|
key: l,
|
|
84
87
|
class: "group/item flex items-center gap-1.5 overflow-hidden text-ellipsis whitespace-nowrap",
|
|
85
88
|
value: l,
|
|
@@ -89,10 +92,10 @@ const q = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-f
|
|
|
89
92
|
i("div", {
|
|
90
93
|
class: $([
|
|
91
94
|
"flex h-4 w-4 items-center justify-center rounded-full p-[3px]",
|
|
92
|
-
|
|
95
|
+
O(l) ? "bg-c-accent text-b-1" : "shadow-border text-transparent"
|
|
93
96
|
])
|
|
94
97
|
}, [
|
|
95
|
-
s(a(
|
|
98
|
+
s(a(v), {
|
|
96
99
|
class: "size-2.5",
|
|
97
100
|
icon: "Checkmark",
|
|
98
101
|
thickness: "3"
|
|
@@ -102,15 +105,15 @@ const q = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-f
|
|
|
102
105
|
]),
|
|
103
106
|
_: 2
|
|
104
107
|
}, 1032, ["value", "onClick"]))), 128)),
|
|
105
|
-
e.canAddCustomValue ? (o(),
|
|
106
|
-
|
|
107
|
-
s(a(
|
|
108
|
+
e.canAddCustomValue ? (o(), m(_, { key: 0 }, [
|
|
109
|
+
h.value.length ? (o(), f(a(W), { key: 0 })) : C("", !0),
|
|
110
|
+
s(a(D), {
|
|
108
111
|
class: "flex items-center gap-1.5",
|
|
109
112
|
onClick: t[1] || (t[1] = (l) => d.value = !0)
|
|
110
113
|
}, {
|
|
111
114
|
default: n(() => [
|
|
112
115
|
i("div", P, [
|
|
113
|
-
s(a(
|
|
116
|
+
s(a(v), {
|
|
114
117
|
icon: "Add",
|
|
115
118
|
size: "sm"
|
|
116
119
|
})
|
|
@@ -122,13 +125,13 @@ const q = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-f
|
|
|
122
125
|
], 64)) : C("", !0)
|
|
123
126
|
]),
|
|
124
127
|
default: n(() => [
|
|
125
|
-
s(a(
|
|
128
|
+
s(a(B), {
|
|
126
129
|
class: "size-full justify-start gap-1.5 overflow-auto px-2 py-1.5 font-normal whitespace-nowrap outline-none",
|
|
127
130
|
variant: "ghost"
|
|
128
131
|
}, {
|
|
129
132
|
default: n(() => [
|
|
130
133
|
i("span", H, V(S.value ?? "Select a value"), 1),
|
|
131
|
-
s(a(
|
|
134
|
+
s(a(v), {
|
|
132
135
|
icon: "ChevronDown",
|
|
133
136
|
size: "md"
|
|
134
137
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfirmationForm.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/forms/ConfirmationForm.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ConfirmationForm.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/forms/ConfirmationForm.vue"],"names":[],"mappings":"AA6CA,KAAK,WAAW,GAAG;IACjB,qCAAqC;IACrC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,0CAA0C;IAC1C,OAAO,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAA;CAC7B,CAAC;AA4EF,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAsB/C,QAAA,MAAM,eAAe;;;;;;kFAOnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,7 +1,45 @@
|
|
|
1
|
-
import o from "
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { defineComponent as f, createElementBlock as u, openBlock as d, withModifiers as p, renderSlot as v, createElementVNode as b, createVNode as o, unref as a, withCtx as i, createTextVNode as l, toDisplayString as c } from "vue";
|
|
2
|
+
import { ScalarButton as r } from "@scalar/components";
|
|
3
|
+
const x = { class: "flex justify-between gap-10" }, g = /* @__PURE__ */ f({
|
|
4
|
+
__name: "ConfirmationForm",
|
|
5
|
+
props: {
|
|
6
|
+
label: { default: "Save" },
|
|
7
|
+
variant: { default: "solid" }
|
|
8
|
+
},
|
|
9
|
+
emits: ["cancel", "submit"],
|
|
10
|
+
setup(C, { emit: s }) {
|
|
11
|
+
const n = s;
|
|
12
|
+
return (t, e) => (d(), u("form", {
|
|
13
|
+
class: "flex flex-col gap-4 text-base",
|
|
14
|
+
onSubmit: e[1] || (e[1] = p((m) => n("submit"), ["prevent"]))
|
|
15
|
+
}, [
|
|
16
|
+
v(t.$slots, "default"),
|
|
17
|
+
b("div", x, [
|
|
18
|
+
o(a(r), {
|
|
19
|
+
size: "sm",
|
|
20
|
+
type: "button",
|
|
21
|
+
variant: "outlined",
|
|
22
|
+
onClick: e[0] || (e[0] = (m) => n("cancel"))
|
|
23
|
+
}, {
|
|
24
|
+
default: i(() => [...e[2] || (e[2] = [
|
|
25
|
+
l(" Cancel ", -1)
|
|
26
|
+
])]),
|
|
27
|
+
_: 1
|
|
28
|
+
}),
|
|
29
|
+
o(a(r), {
|
|
30
|
+
size: "sm",
|
|
31
|
+
type: "submit",
|
|
32
|
+
variant: t.variant
|
|
33
|
+
}, {
|
|
34
|
+
default: i(() => [
|
|
35
|
+
l(c(t.label), 1)
|
|
36
|
+
]),
|
|
37
|
+
_: 1
|
|
38
|
+
}, 8, ["variant"])
|
|
39
|
+
])
|
|
40
|
+
], 32));
|
|
41
|
+
}
|
|
42
|
+
});
|
|
5
43
|
export {
|
|
6
|
-
|
|
44
|
+
g as default
|
|
7
45
|
};
|
|
@@ -1,45 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ScalarButton as r } from "@scalar/components";
|
|
3
|
-
const x = { class: "flex justify-between gap-10" }, S = /* @__PURE__ */ m({
|
|
4
|
-
__name: "ConfirmationForm",
|
|
5
|
-
props: {
|
|
6
|
-
label: { default: "Save" },
|
|
7
|
-
variant: { default: "solid" }
|
|
8
|
-
},
|
|
9
|
-
emits: ["cancel", "submit"],
|
|
10
|
-
setup(w, { emit: s }) {
|
|
11
|
-
const o = s;
|
|
12
|
-
return (t, e) => (f(), p("form", {
|
|
13
|
-
class: "flex flex-col gap-4 text-base",
|
|
14
|
-
onSubmit: e[1] || (e[1] = d((u) => o("submit"), ["prevent"]))
|
|
15
|
-
}, [
|
|
16
|
-
c(t.$slots, "default", {}, void 0, !0),
|
|
17
|
-
v("div", x, [
|
|
18
|
-
n(a(r), {
|
|
19
|
-
class: "flex h-8 cursor-pointer items-center gap-1.5 px-2.5 shadow-none focus:outline-none",
|
|
20
|
-
type: "button",
|
|
21
|
-
variant: "outlined",
|
|
22
|
-
onClick: e[0] || (e[0] = (u) => o("cancel"))
|
|
23
|
-
}, {
|
|
24
|
-
default: i(() => [...e[2] || (e[2] = [
|
|
25
|
-
l(" Cancel ", -1)
|
|
26
|
-
])]),
|
|
27
|
-
_: 1
|
|
28
|
-
}),
|
|
29
|
-
n(a(r), {
|
|
30
|
-
class: "custom-scroll h-8 gap-1.5 px-2.5 font-medium whitespace-nowrap shadow-none focus:outline-none",
|
|
31
|
-
type: "submit",
|
|
32
|
-
variant: t.variant
|
|
33
|
-
}, {
|
|
34
|
-
default: i(() => [
|
|
35
|
-
l(b(t.label), 1)
|
|
36
|
-
]),
|
|
37
|
-
_: 1
|
|
38
|
-
}, 8, ["variant"])
|
|
39
|
-
])
|
|
40
|
-
], 32));
|
|
41
|
-
}
|
|
42
|
-
});
|
|
1
|
+
import f from "./ConfirmationForm.vue.js";
|
|
43
2
|
export {
|
|
44
|
-
|
|
3
|
+
f as default
|
|
45
4
|
};
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { defineComponent as s, computed as i, createBlock as
|
|
2
|
-
import { truncate as
|
|
1
|
+
import { defineComponent as s, computed as i, createBlock as c, openBlock as a, unref as p, withCtx as d, createElementBlock as u, createCommentVNode as f, toDisplayString as g } from "vue";
|
|
2
|
+
import { truncate as _ } from "@scalar/helpers/string/truncate";
|
|
3
3
|
import k from "../forms/ConfirmationForm.vue.js";
|
|
4
4
|
const v = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "text-c-2 text-sm leading-normal text-pretty"
|
|
7
|
-
},
|
|
7
|
+
}, M = /* @__PURE__ */ s({
|
|
8
8
|
__name: "DeleteModal",
|
|
9
9
|
props: {
|
|
10
10
|
name: {},
|
|
11
11
|
warningMessage: {}
|
|
12
12
|
},
|
|
13
13
|
emits: ["close", "delete"],
|
|
14
|
-
setup(
|
|
15
|
-
const t = r,
|
|
16
|
-
return (n, e) => (
|
|
17
|
-
label: `Delete ${
|
|
14
|
+
setup(o, { emit: r }) {
|
|
15
|
+
const t = r, l = i(() => _(o.name));
|
|
16
|
+
return (n, e) => (a(), c(p(k), {
|
|
17
|
+
label: `Delete ${l.value}`,
|
|
18
18
|
variant: "danger",
|
|
19
|
-
onCancel: e[0] || (e[0] = (
|
|
20
|
-
onSubmit: e[1] || (e[1] = (
|
|
19
|
+
onCancel: e[0] || (e[0] = (m) => t("close")),
|
|
20
|
+
onSubmit: e[1] || (e[1] = (m) => t("delete"))
|
|
21
21
|
}, {
|
|
22
22
|
default: d(() => [
|
|
23
|
-
n.warningMessage ? (
|
|
23
|
+
n.warningMessage ? (a(), u("p", v, g(n.warningMessage), 1)) : f("", !0)
|
|
24
24
|
]),
|
|
25
25
|
_: 1
|
|
26
26
|
}, 8, ["label"]));
|
|
27
27
|
}
|
|
28
28
|
});
|
|
29
29
|
export {
|
|
30
|
-
|
|
30
|
+
M as default
|
|
31
31
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { type ScalarListboxOption } from '@scalar/components';
|
|
1
2
|
import { type DraggingItem, type HoveredItem, type SidebarState } from '@scalar/sidebar';
|
|
2
3
|
import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
3
4
|
import type { WorkspaceDocument } from '@scalar/workspace-store/schemas';
|
|
4
5
|
import type { TraversedEntry } from '@scalar/workspace-store/schemas/navigation';
|
|
5
|
-
import type { Workspace } from '../../../v2/features/app/hooks/use-workspace-selector.js';
|
|
6
6
|
import type { ClientLayout } from '../../../v2/types/layout';
|
|
7
7
|
type __VLS_Props = {
|
|
8
8
|
/** All documents to display sidebar items for */
|
|
@@ -10,9 +10,11 @@ type __VLS_Props = {
|
|
|
10
10
|
/** Layout for the client */
|
|
11
11
|
layout: ClientLayout;
|
|
12
12
|
/** The currently active workspace */
|
|
13
|
-
activeWorkspace:
|
|
13
|
+
activeWorkspace: {
|
|
14
|
+
id: string;
|
|
15
|
+
};
|
|
14
16
|
/** The list of all available workspaces */
|
|
15
|
-
workspaces:
|
|
17
|
+
workspaces: ScalarListboxOption[];
|
|
16
18
|
/** The workspace event bus for handling workspace-level events */
|
|
17
19
|
eventBus: WorkspaceEventBus;
|
|
18
20
|
/** The documents belonging to the workspace */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/sidebar/Sidebar.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/sidebar/Sidebar.vue"],"names":[],"mappings":"AAsJA,OAAO,EAAoB,KAAK,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AAE/E,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,YAAY,EAClB,MAAM,iBAAiB,CAAA;AACxB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AACxE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAA;AAKhF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAIrD,KAAK,WAAW,GAAG;IACjB,iDAAiD;IACjD,YAAY,EAAE,YAAY,CAAC,cAAc,CAAC,CAAA;IAC1C,4BAA4B;IAC5B,MAAM,EAAE,YAAY,CAAA;IACpB,qCAAqC;IACrC,eAAe,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAA;IAC/B,2CAA2C;IAC3C,UAAU,EAAE,mBAAmB,EAAE,CAAA;IACjC,kEAAkE;IAClE,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,+CAA+C;IAC/C,SAAS,EAAE,iBAAiB,EAAE,CAAA;IAC9B;;;;OAIG;IACH,WAAW,CAAC,EACR,OAAO,GACP,CAAC,CAAC,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,WAAW,KAAK,OAAO,CAAC,CAAA;CACxE,CAAC;AAeF,KAAK,WAAW,GAAG;IACjB,uCAAuC;IACvC,eAAe,CAAC,IAAI,OAAO,CAAA;IAC3B,sDAAsD;IACtD,SAAS,CAAC,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,cAAc,CAAA;KAAE,GAAG,OAAO,CAAA;IACpD,mDAAmD;IACnD,MAAM,CAAC,IAAI,OAAO,CAAA;IAClB,yDAAyD;IACzD,KAAK,CAAC,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,cAAc,CAAA;KAAE,GAAG,OAAO,CAAA;CACjD,CAAC;AAiBF,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,wCAAwC;IACxC,cAAc,EAAE,MAAM,CAAC;CACtB,CAAC;AAqNF,QAAA,MAAM,eAAe;;;;;;;;;;;;;kFAOnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type ScalarListboxOption } from '@scalar/components';
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
/**
|
|
4
4
|
* The currently active workspace.
|
|
5
5
|
* This represents the workspace that the user is currently working in.
|
|
6
6
|
*/
|
|
7
|
-
activeWorkspace:
|
|
7
|
+
activeWorkspace: {
|
|
8
|
+
id: string;
|
|
9
|
+
};
|
|
8
10
|
/**
|
|
9
11
|
* The list of all available workspaces.
|
|
10
12
|
* Used to render options for workspace switching and selection.
|
|
11
13
|
*/
|
|
12
|
-
workspaces:
|
|
14
|
+
workspaces: ScalarListboxOption[];
|
|
13
15
|
};
|
|
14
16
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
15
17
|
"create:workspace": () => any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarMenu.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/sidebar/SidebarMenu.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SidebarMenu.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/sidebar/SidebarMenu.vue"],"names":[],"mappings":"AA2EA,OAAO,EAOL,KAAK,mBAAmB,EACzB,MAAM,oBAAoB,CAAA;AAI3B,KAAK,WAAW,GAAG;IACjB;;;OAGG;IACH,eAAe,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAA;IAC/B;;;OAGG;IACH,UAAU,EAAE,mBAAmB,EAAE,CAAA;CAClC,CAAC;;;;;;;;AAwIF,wBAOG"}
|
|
@@ -1,42 +1,37 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarMenu as
|
|
3
|
-
import { ScalarIconGear as
|
|
4
|
-
import { RouterLink as
|
|
5
|
-
const L = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as c, createBlock as u, openBlock as k, unref as o, withCtx as r, createVNode as t, createTextVNode as i } from "vue";
|
|
2
|
+
import { ScalarMenu as m, ScalarMenuSection as d, ScalarMenuWorkspacePicker as S, ScalarMenuLink as f, ScalarMenuResources as w, ScalarMenuSupport as M } from "@scalar/components";
|
|
3
|
+
import { ScalarIconGear as C } from "@scalar/icons";
|
|
4
|
+
import { RouterLink as V } from "vue-router";
|
|
5
|
+
const L = /* @__PURE__ */ c({
|
|
6
6
|
__name: "SidebarMenu",
|
|
7
7
|
props: {
|
|
8
8
|
activeWorkspace: {},
|
|
9
9
|
workspaces: {}
|
|
10
10
|
},
|
|
11
11
|
emits: ["create:workspace", "select:workspace"],
|
|
12
|
-
setup(
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
return (a, e) => (S(), d(o(f), null, {
|
|
20
|
-
products: t(() => [...e[2] || (e[2] = [])]),
|
|
21
|
-
sections: t(({ close: u }) => [
|
|
22
|
-
r(o(w), null, {
|
|
23
|
-
title: t(() => [...e[3] || (e[3] = [
|
|
12
|
+
setup(W, { emit: p }) {
|
|
13
|
+
const a = p;
|
|
14
|
+
return (n, e) => (k(), u(o(m), null, {
|
|
15
|
+
products: r(() => [...e[2] || (e[2] = [])]),
|
|
16
|
+
sections: r(({ close: l }) => [
|
|
17
|
+
t(o(d), null, {
|
|
18
|
+
title: r(() => [...e[3] || (e[3] = [
|
|
24
19
|
i("Team", -1)
|
|
25
20
|
])]),
|
|
26
|
-
default:
|
|
27
|
-
|
|
28
|
-
modelValue:
|
|
29
|
-
workspaceOptions:
|
|
30
|
-
onCreateWorkspace: e[0] || (e[0] = (s) =>
|
|
31
|
-
"onUpdate:modelValue": e[1] || (e[1] = (s) =>
|
|
21
|
+
default: r(() => [
|
|
22
|
+
t(o(S), {
|
|
23
|
+
modelValue: n.activeWorkspace.id,
|
|
24
|
+
workspaceOptions: n.workspaces,
|
|
25
|
+
onCreateWorkspace: e[0] || (e[0] = (s) => a("create:workspace")),
|
|
26
|
+
"onUpdate:modelValue": e[1] || (e[1] = (s) => a("select:workspace", s))
|
|
32
27
|
}, null, 8, ["modelValue", "workspaceOptions"]),
|
|
33
|
-
|
|
34
|
-
is: o(
|
|
35
|
-
icon: o(
|
|
28
|
+
t(o(f), {
|
|
29
|
+
is: o(V),
|
|
30
|
+
icon: o(C),
|
|
36
31
|
to: "/settings",
|
|
37
|
-
onClick:
|
|
32
|
+
onClick: l
|
|
38
33
|
}, {
|
|
39
|
-
default:
|
|
34
|
+
default: r(() => [...e[4] || (e[4] = [
|
|
40
35
|
i(" Settings ", -1)
|
|
41
36
|
])]),
|
|
42
37
|
_: 1
|
|
@@ -44,8 +39,8 @@ const L = /* @__PURE__ */ m({
|
|
|
44
39
|
]),
|
|
45
40
|
_: 2
|
|
46
41
|
}, 1024),
|
|
47
|
-
|
|
48
|
-
|
|
42
|
+
t(o(w)),
|
|
43
|
+
t(o(M))
|
|
49
44
|
]),
|
|
50
45
|
_: 1
|
|
51
46
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"App.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/app/App.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"App.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/app/App.vue"],"names":[],"mappings":"AA0MA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAGxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAQrD;;;;GAIG;;YAGO,OAAO,CAAC,YAAY,EAAE,OAAO,CAAC;cAC5B,YAAY,EAAE;;YADhB,OAAO,CAAC,YAAY,EAAE,OAAO,CAAC;cAC5B,YAAY,EAAE;;AAH1B,wBAmTC"}
|