@scalar/api-client 2.2.37 → 2.2.38
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 +39 -0
- 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 +107 -116
- package/dist/components/AddressBar/AddressBarHistory.vue.d.ts +2 -1
- package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBarHistory.vue.js +2 -2
- package/dist/components/AddressBar/AddressBarHistory.vue2.js +95 -75
- package/dist/components/AddressBar/AddressBarServer.vue.d.ts +5 -1
- package/dist/components/AddressBar/AddressBarServer.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBarServer.vue.js +92 -86
- package/dist/components/AddressBar/AddressBarServerItem.vue.d.ts +7 -10
- package/dist/components/AddressBar/AddressBarServerItem.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBarServerItem.vue.js +5 -52
- package/dist/components/AddressBar/AddressBarServerItem.vue2.js +75 -2
- package/dist/components/CodeInput/CodeInput.vue.d.ts +2 -0
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.js +1 -1
- package/dist/components/CodeInput/CodeInput.vue2.js +72 -64
- package/dist/components/CodeInput/codeVariableWidget.d.ts +1 -4
- package/dist/components/CodeInput/codeVariableWidget.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInputSelect.vue.d.ts +1 -0
- package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInputSelect.vue.js +83 -51
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -1
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +22 -21
- package/dist/components/Server/ServerVariablesForm.vue.d.ts +14 -0
- package/dist/components/Server/ServerVariablesForm.vue.d.ts.map +1 -0
- package/dist/components/Server/ServerVariablesForm.vue.js +47 -0
- package/dist/components/Server/ServerVariablesForm.vue2.js +4 -0
- package/dist/components/Server/ServerVariablesSelect.vue.d.ts +12 -0
- package/dist/components/Server/ServerVariablesSelect.vue.d.ts.map +1 -0
- package/dist/components/Server/ServerVariablesSelect.vue.js +54 -0
- package/dist/components/Server/ServerVariablesSelect.vue2.js +4 -0
- package/dist/components/Server/ServerVariablesTextbox.vue.d.ts +11 -0
- package/dist/components/Server/ServerVariablesTextbox.vue.d.ts.map +1 -0
- package/dist/components/Server/ServerVariablesTextbox.vue.js +29 -0
- package/dist/components/Server/ServerVariablesTextbox.vue2.js +4 -0
- package/dist/components/Server/types.d.ts +9 -0
- package/dist/components/Server/types.d.ts.map +1 -0
- package/dist/components/SideNav/SideHelp.vue.js +16 -16
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.js +2 -2
- package/dist/components/Sidebar/Sidebar.vue2.js +11 -10
- 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 +10 -9
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts +1 -1
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
- package/dist/layouts/App/create-api-client-app.d.ts +95 -26
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.d.ts +190 -52
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.d.ts +95 -26
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +106 -32
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/create-client.js +86 -81
- package/dist/libs/find-request.d.ts.map +1 -1
- package/dist/libs/importers/curl.js +4 -4
- package/dist/store/active-entities.d.ts +13 -4
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/collections.d.ts.map +1 -1
- package/dist/store/import-spec.d.ts.map +1 -1
- package/dist/store/request-example.d.ts +52 -2
- package/dist/store/request-example.d.ts.map +1 -1
- package/dist/store/requests.d.ts +2 -2
- package/dist/store/requests.d.ts.map +1 -1
- package/dist/store/servers.d.ts +40 -20
- package/dist/store/servers.d.ts.map +1 -1
- package/dist/store/store.d.ts +95 -28
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/store.js +51 -53
- package/dist/style.css +1 -1
- package/dist/views/Cookies/Cookies.vue2.js +1 -1
- package/dist/views/Environment/Environment.vue2.js +1 -1
- 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 +88 -89
- 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 +87 -88
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts +2 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +3 -3
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +16 -17
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue2.js +1 -1
- package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestPathParams.vue.js +57 -74
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestSection.vue2.js +39 -38
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +8 -7
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue2.js +5 -5
- package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebar.vue.js +2 -2
- package/dist/views/Request/RequestSidebar.vue2.js +143 -143
- 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 +71 -71
- package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSubpageHeader.vue.js +1 -1
- package/dist/views/Request/RequestSubpageHeader.vue2.js +37 -37
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +2 -2
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +27 -27
- package/dist/views/Request/handle-drag.d.ts +1 -1
- package/dist/views/Request/handle-drag.d.ts.map +1 -1
- package/dist/views/Request/handle-drag.js +27 -26
- package/dist/views/Request/hooks/useOpenApiWatcher.js +1 -1
- package/dist/views/Request/libs/{live-sync.d.ts → watch-mode.d.ts} +1 -1
- package/dist/views/Request/libs/watch-mode.d.ts.map +1 -0
- package/dist/views/Request/libs/{live-sync.js → watch-mode.js} +6 -6
- package/dist/views/Servers/Servers.vue2.js +29 -29
- package/package.json +14 -14
- package/dist/views/Request/libs/live-sync.d.ts.map +0 -1
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useCodeMirror as
|
|
1
|
+
import { defineComponent as W, useAttrs as J, ref as d, toRef as s, watch as Q, computed as G, openBlock as n, createElementBlock as i, Fragment as H, createElementVNode as w, toDisplayString as X, createBlock as f, mergeProps as Y, unref as a, withKeys as V, withModifiers as $, createVNode as Z, createCommentVNode as c, renderSlot as q } from "vue";
|
|
2
|
+
import { useCodeMirror as _, useDropdown as ee, colorPicker as oe } from "@scalar/use-codemirror";
|
|
3
3
|
import { nanoid as le } from "nanoid";
|
|
4
|
-
import
|
|
4
|
+
import g from "../DataTable/DataTableInputSelect.vue.js";
|
|
5
5
|
import { pillPlugin as te, backspaceCommand as ne } from "./codeVariableWidget.js";
|
|
6
6
|
import ae from "../../views/Environment/EnvironmentVariableDropdown.vue.js";
|
|
7
7
|
import { useClipboard as re } from "@scalar/use-hooks/useClipboard";
|
|
8
8
|
import { ScalarIcon as se } from "@scalar/components";
|
|
9
|
-
import { prettyPrintJson as
|
|
10
|
-
import { useActiveEntities as
|
|
11
|
-
import {
|
|
9
|
+
import { prettyPrintJson as ue } from "@scalar/oas-utils/helpers";
|
|
10
|
+
import { useActiveEntities as de } from "../../store/active-entities.js";
|
|
11
|
+
import { useLayout as ie } from "../../hooks/useLayout.js";
|
|
12
12
|
const pe = {
|
|
13
13
|
key: 0,
|
|
14
|
-
class: "flex items-center justify-center
|
|
15
|
-
},
|
|
14
|
+
class: "flex items-center justify-center px-1"
|
|
15
|
+
}, me = { class: "text-c-1 text-sm font-code" }, fe = ["id"], ce = {
|
|
16
16
|
key: 0,
|
|
17
17
|
class: "scalar-code-copy z-context"
|
|
18
18
|
}, ye = {
|
|
19
|
-
key:
|
|
19
|
+
key: 5,
|
|
20
20
|
class: "absolute centered-y right-7 text-orange text-xs"
|
|
21
21
|
}, be = {
|
|
22
|
-
key:
|
|
22
|
+
key: 6,
|
|
23
23
|
class: "required absolute centered-y right-0 pt-px pr-2 text-xxs text-c-3 bg-b-1 shadow-[-8px_0_4px_var(--scalar-background-1)] opacity-100 duration-150 transition-opacity peer-has-[.cm-focused]:opacity-0 pointer-events-none"
|
|
24
24
|
}, ve = {
|
|
25
25
|
inheritAttrs: !1
|
|
26
|
-
},
|
|
26
|
+
}, Fe = /* @__PURE__ */ W({
|
|
27
27
|
...ve,
|
|
28
28
|
__name: "CodeInput",
|
|
29
29
|
props: {
|
|
@@ -43,6 +43,7 @@ const pe = {
|
|
|
43
43
|
disableEnter: { type: Boolean, default: !1 },
|
|
44
44
|
disableCloseBrackets: { type: Boolean, default: !1 },
|
|
45
45
|
enum: {},
|
|
46
|
+
examples: {},
|
|
46
47
|
type: {},
|
|
47
48
|
nullable: { type: Boolean, default: !1 },
|
|
48
49
|
withVariables: { type: Boolean, default: !0 },
|
|
@@ -51,44 +52,44 @@ const pe = {
|
|
|
51
52
|
default: {}
|
|
52
53
|
},
|
|
53
54
|
emits: ["submit", "update:modelValue", "curl"],
|
|
54
|
-
setup(
|
|
55
|
+
setup(R, { expose: N, emit: O }) {
|
|
55
56
|
var F;
|
|
56
|
-
const o =
|
|
57
|
+
const o = R, u = O, B = J(), A = B.id || `id-${le()}`, k = d(!1), y = d(!1), C = d(""), S = d({ left: 0, top: 0 }), m = d(null), { activeEnvVariables: x, activeEnvironment: b, activeWorkspace: I } = de(), { layout: P } = ie(), { copyToClipboard: K } = re();
|
|
57
58
|
function M(e) {
|
|
58
59
|
var l;
|
|
59
|
-
return e === o.modelValue ? null : o.importCurl && e.trim().toLowerCase().startsWith("curl") ? (
|
|
60
|
+
return e === o.modelValue ? null : o.importCurl && e.trim().toLowerCase().startsWith("curl") ? (u("curl", e), (l = r.value) == null || l.dispatch({
|
|
60
61
|
changes: {
|
|
61
62
|
from: 0,
|
|
62
63
|
to: r.value.state.doc.length,
|
|
63
64
|
insert: String(o.modelValue)
|
|
64
65
|
}
|
|
65
|
-
}), null) : o.handleFieldChange ? o.handleFieldChange(e) :
|
|
66
|
+
}), null) : o.handleFieldChange ? o.handleFieldChange(e) : u("update:modelValue", e);
|
|
66
67
|
}
|
|
67
68
|
function T(e) {
|
|
68
|
-
return o.handleFieldSubmit ? o.handleFieldSubmit(e) :
|
|
69
|
+
return o.handleFieldSubmit ? o.handleFieldSubmit(e) : u("submit", e);
|
|
69
70
|
}
|
|
70
|
-
function
|
|
71
|
-
|
|
71
|
+
function U(e) {
|
|
72
|
+
k.value = !1, o.emitOnBlur && o.modelValue && T(e);
|
|
72
73
|
}
|
|
73
|
-
const
|
|
74
|
-
o.colorPicker &&
|
|
74
|
+
const v = [];
|
|
75
|
+
o.colorPicker && v.push(oe), v.push(
|
|
75
76
|
te({
|
|
76
|
-
environment:
|
|
77
|
-
envVariables:
|
|
77
|
+
environment: b.value,
|
|
78
|
+
envVariables: x.value,
|
|
78
79
|
workspace: I.value,
|
|
79
|
-
isReadOnly: P
|
|
80
|
+
isReadOnly: P === "modal"
|
|
80
81
|
}),
|
|
81
82
|
ne
|
|
82
83
|
);
|
|
83
|
-
const D =
|
|
84
|
+
const D = d(null), { codeMirror: r } = _({
|
|
84
85
|
content: s(
|
|
85
86
|
() => o.modelValue !== void 0 ? String(o.modelValue) : ""
|
|
86
87
|
),
|
|
87
88
|
onChange: (e) => {
|
|
88
89
|
M(e), z();
|
|
89
90
|
},
|
|
90
|
-
onFocus: () =>
|
|
91
|
-
onBlur: (e) =>
|
|
91
|
+
onFocus: () => k.value = !0,
|
|
92
|
+
onBlur: (e) => U(e),
|
|
92
93
|
codeMirrorRef: D,
|
|
93
94
|
disableTabIndent: s(() => o.disableTabIndent),
|
|
94
95
|
disableEnter: s(() => o.disableEnter),
|
|
@@ -96,18 +97,18 @@ const pe = {
|
|
|
96
97
|
lineNumbers: s(() => o.lineNumbers),
|
|
97
98
|
language: s(() => o.language),
|
|
98
99
|
lint: s(() => o.lint),
|
|
99
|
-
extensions:
|
|
100
|
+
extensions: v,
|
|
100
101
|
placeholder: s(() => o.placeholder)
|
|
101
102
|
});
|
|
102
|
-
(F = r.value) == null || F.focus(),
|
|
103
|
-
r.value && Object.prototype.hasOwnProperty.call(
|
|
103
|
+
(F = r.value) == null || F.focus(), Q(r, () => {
|
|
104
|
+
r.value && Object.prototype.hasOwnProperty.call(B, "autofocus") && r.value.focus();
|
|
104
105
|
});
|
|
105
106
|
const { handleDropdownSelect: j, updateDropdownVisibility: z } = ee({
|
|
106
107
|
codeMirror: r,
|
|
107
|
-
query:
|
|
108
|
-
showDropdown:
|
|
109
|
-
dropdownPosition:
|
|
110
|
-
}),
|
|
108
|
+
query: C,
|
|
109
|
+
showDropdown: y,
|
|
110
|
+
dropdownPosition: S
|
|
111
|
+
}), L = G(() => {
|
|
111
112
|
var e;
|
|
112
113
|
return o.type === "boolean" || (e = o.type) != null && e.includes("boolean") || o.nullable ? ["true", "false", "null"] : ["true", "false"];
|
|
113
114
|
});
|
|
@@ -117,69 +118,76 @@ const pe = {
|
|
|
117
118
|
(e = r.value) == null || e.focus();
|
|
118
119
|
}
|
|
119
120
|
});
|
|
120
|
-
const
|
|
121
|
+
const h = (e, l) => {
|
|
121
122
|
var p, t, E;
|
|
122
|
-
|
|
123
|
+
y.value && (e === "down" ? (l.preventDefault(), (p = m.value) == null || p.handleArrowKey("down")) : e === "up" ? (l.preventDefault(), (t = m.value) == null || t.handleArrowKey("up")) : e === "enter" && (l.preventDefault(), (E = m.value) == null || E.handleSelect()));
|
|
123
124
|
};
|
|
124
125
|
return (e, l) => {
|
|
125
126
|
var p;
|
|
126
|
-
return n(),
|
|
127
|
-
e.disabled ? (n(),
|
|
128
|
-
|
|
129
|
-
])) : o.enum && o.enum.length ? (n(),
|
|
127
|
+
return n(), i(H, null, [
|
|
128
|
+
e.disabled ? (n(), i("div", pe, [
|
|
129
|
+
w("span", me, X(e.modelValue), 1)
|
|
130
|
+
])) : o.enum && o.enum.length ? (n(), f(g, {
|
|
130
131
|
key: 1,
|
|
131
132
|
default: o.default,
|
|
132
133
|
modelValue: e.modelValue,
|
|
134
|
+
type: e.type,
|
|
133
135
|
value: o.enum,
|
|
134
|
-
"onUpdate:modelValue": l[0] || (l[0] = (t) =>
|
|
135
|
-
}, null, 8, ["default", "modelValue", "value"])) : e.type === "boolean" || (p = e.type) != null && p.includes("boolean") ? (n(),
|
|
136
|
+
"onUpdate:modelValue": l[0] || (l[0] = (t) => u("update:modelValue", t))
|
|
137
|
+
}, null, 8, ["default", "modelValue", "type", "value"])) : e.type === "boolean" || (p = e.type) != null && p.includes("boolean") ? (n(), f(g, {
|
|
136
138
|
key: 2,
|
|
137
139
|
default: o.default,
|
|
138
140
|
modelValue: e.modelValue,
|
|
139
|
-
value:
|
|
140
|
-
"onUpdate:modelValue": l[1] || (l[1] = (t) =>
|
|
141
|
-
}, null, 8, ["default", "modelValue", "value"])) : (n(),
|
|
141
|
+
value: L.value,
|
|
142
|
+
"onUpdate:modelValue": l[1] || (l[1] = (t) => u("update:modelValue", t))
|
|
143
|
+
}, null, 8, ["default", "modelValue", "value"])) : o.examples && o.examples.length ? (n(), f(g, {
|
|
142
144
|
key: 3,
|
|
145
|
+
default: o.default,
|
|
146
|
+
modelValue: o.modelValue,
|
|
147
|
+
value: o.examples,
|
|
148
|
+
"onUpdate:modelValue": l[2] || (l[2] = (t) => u("update:modelValue", t))
|
|
149
|
+
}, null, 8, ["default", "modelValue", "value"])) : (n(), i("div", Y({
|
|
150
|
+
key: 4,
|
|
143
151
|
id: a(A)
|
|
144
152
|
}, e.$attrs, {
|
|
145
153
|
ref_key: "codeMirrorRef",
|
|
146
154
|
ref: D,
|
|
147
|
-
class: ["peer font-code w-full whitespace-nowrap overflow-hidden text-xs leading-[1.44] relative has-[:focus-visible]:outline has-[:focus-visible]:rounded-[4px] -outline-offset-
|
|
155
|
+
class: ["peer font-code w-full whitespace-nowrap overflow-hidden text-xs leading-[1.44] relative has-[:focus-visible]:outline has-[:focus-visible]:rounded-[4px] -outline-offset-1", {
|
|
148
156
|
"flow-code-input--error": e.error
|
|
149
157
|
}],
|
|
150
158
|
onKeydown: [
|
|
151
|
-
l[
|
|
152
|
-
l[
|
|
153
|
-
l[
|
|
159
|
+
l[4] || (l[4] = V($((t) => h("down", t), ["stop"]), ["down"])),
|
|
160
|
+
l[5] || (l[5] = V((t) => h("enter", t), ["enter"])),
|
|
161
|
+
l[6] || (l[6] = V($((t) => h("up", t), ["stop"]), ["up"]))
|
|
154
162
|
]
|
|
155
163
|
}), [
|
|
156
|
-
e.isCopyable ? (n(),
|
|
157
|
-
|
|
164
|
+
e.isCopyable ? (n(), i("div", ce, [
|
|
165
|
+
w("button", {
|
|
158
166
|
class: "copy-button",
|
|
159
167
|
type: "button",
|
|
160
|
-
onClick: l[
|
|
168
|
+
onClick: l[3] || (l[3] = (t) => a(K)(a(ue)(e.modelValue)))
|
|
161
169
|
}, [
|
|
162
|
-
l[
|
|
163
|
-
|
|
170
|
+
l[7] || (l[7] = w("span", { class: "sr-only" }, "Copy content", -1)),
|
|
171
|
+
Z(a(se), {
|
|
164
172
|
icon: "Clipboard",
|
|
165
173
|
size: "md"
|
|
166
174
|
})
|
|
167
175
|
])
|
|
168
176
|
])) : c("", !0)
|
|
169
|
-
], 16,
|
|
170
|
-
e.$slots.warning ? (n(),
|
|
177
|
+
], 16, fe)),
|
|
178
|
+
e.$slots.warning ? (n(), i("div", ye, [
|
|
171
179
|
q(e.$slots, "warning", {}, void 0, !0)
|
|
172
180
|
])) : c("", !0),
|
|
173
181
|
q(e.$slots, "icon", {}, void 0, !0),
|
|
174
|
-
e.required ? (n(),
|
|
175
|
-
|
|
176
|
-
key:
|
|
182
|
+
e.required ? (n(), i("div", be, " Required ")) : c("", !0),
|
|
183
|
+
y.value && e.withVariables && a(P) !== "modal" && a(b) ? (n(), f(ae, {
|
|
184
|
+
key: 7,
|
|
177
185
|
ref_key: "dropdownRef",
|
|
178
|
-
ref:
|
|
179
|
-
dropdownPosition:
|
|
180
|
-
envVariables: a(
|
|
181
|
-
environment: a(
|
|
182
|
-
query:
|
|
186
|
+
ref: m,
|
|
187
|
+
dropdownPosition: S.value,
|
|
188
|
+
envVariables: a(x),
|
|
189
|
+
environment: a(b),
|
|
190
|
+
query: C.value,
|
|
183
191
|
onSelect: a(j)
|
|
184
192
|
}, null, 8, ["dropdownPosition", "envVariables", "environment", "query", "onSelect"])) : c("", !0)
|
|
185
193
|
], 64);
|
|
@@ -187,5 +195,5 @@ const pe = {
|
|
|
187
195
|
}
|
|
188
196
|
});
|
|
189
197
|
export {
|
|
190
|
-
|
|
198
|
+
Fe as default
|
|
191
199
|
};
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { type EnvVariables } from '../../libs/env-helpers.js';
|
|
2
|
-
import type { WorkspaceStore } from '../../store/index.js';
|
|
3
2
|
import type { Environment } from '@scalar/oas-utils/entities/environment';
|
|
4
3
|
import type { Workspace } from '@scalar/oas-utils/entities/workspace';
|
|
5
4
|
import { Decoration, type DecorationSet, EditorView, ViewPlugin, type ViewUpdate } from '@scalar/use-codemirror';
|
|
6
|
-
type IsReadOnly = WorkspaceStore['isReadOnly'];
|
|
7
5
|
/**
|
|
8
6
|
* Styles the active environment variable pill
|
|
9
7
|
*/
|
|
@@ -11,12 +9,11 @@ export declare const pillPlugin: (props: {
|
|
|
11
9
|
environment?: Environment;
|
|
12
10
|
envVariables?: EnvVariables;
|
|
13
11
|
workspace?: Workspace;
|
|
14
|
-
isReadOnly?:
|
|
12
|
+
isReadOnly?: boolean;
|
|
15
13
|
}) => ViewPlugin<{
|
|
16
14
|
decorations: DecorationSet;
|
|
17
15
|
update(update: ViewUpdate): void;
|
|
18
16
|
buildDecorations(view: EditorView): import("@codemirror/state").RangeSet<Decoration>;
|
|
19
17
|
}>;
|
|
20
18
|
export declare const backspaceCommand: import("@codemirror/state").Extension;
|
|
21
|
-
export {};
|
|
22
19
|
//# sourceMappingURL=codeVariableWidget.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codeVariableWidget.d.ts","sourceRoot":"","sources":["../../../src/components/CodeInput/codeVariableWidget.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAe,MAAM,oBAAoB,CAAA;
|
|
1
|
+
{"version":3,"file":"codeVariableWidget.d.ts","sourceRoot":"","sources":["../../../src/components/CodeInput/codeVariableWidget.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAe,MAAM,oBAAoB,CAAA;AAEnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAErE,OAAO,EACL,UAAU,EACV,KAAK,aAAa,EAClB,UAAU,EAEV,UAAU,EACV,KAAK,UAAU,EAEhB,MAAM,wBAAwB,CAAA;AAmI/B;;GAEG;AACH,eAAO,MAAM,UAAU,UAAW;IAChC,WAAW,CAAC,EAAE,WAAW,CAAA;IACzB,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;iBAGkB,aAAa;mBAMX,UAAU;2BASF,UAAU;EAkCpC,CAAA;AAEH,eAAO,MAAM,gBAAgB,uCA8B3B,CAAA"}
|
|
@@ -3,6 +3,7 @@ type __VLS_Props = {
|
|
|
3
3
|
value?: string[];
|
|
4
4
|
default?: string | number;
|
|
5
5
|
canAddCustomValue?: boolean;
|
|
6
|
+
type?: string;
|
|
6
7
|
};
|
|
7
8
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
8
9
|
"update:modelValue": (v: string) => any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTableInputSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInputSelect.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DataTableInputSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInputSelect.vue"],"names":[],"mappings":"AA8LA,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,MAAM,GAAG,MAAM,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACzB,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAA;CACd,CAAC;;;;;;uBAFoB,OAAO;;AAyW/B,wBASG"}
|
|
@@ -1,103 +1,135 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as O, computed as m, ref as y, watch as S, nextTick as E, openBlock as u, createElementBlock as f, createBlock as v, unref as a, withCtx as n, createVNode as s, createElementVNode as d, toDisplayString as w, withDirectives as K, withKeys as M, vModelText as R, Fragment as C, renderList as U, normalizeClass as W, createTextVNode as $, createCommentVNode as _ } from "vue";
|
|
2
|
+
import { ScalarComboboxMultiselect as F, ScalarButton as b, ScalarIcon as h, ScalarDropdown as L, ScalarDropdownItem as D, ScalarDropdownDivider as q } from "@scalar/components";
|
|
3
|
+
const G = { class: "pr-4 w-full has-[:focus-visible]:outline has-[:focus-visible]:rounded-[4px] -outline-offset-1" }, H = { class: "text-c-1 whitespace-nowrap" }, J = { class: "text-c-1" }, P = { class: "flex items-center justify-center h-4 w-4" }, Z = /* @__PURE__ */ O({
|
|
4
4
|
__name: "DataTableInputSelect",
|
|
5
5
|
props: {
|
|
6
6
|
modelValue: {},
|
|
7
7
|
value: {},
|
|
8
8
|
default: {},
|
|
9
|
-
canAddCustomValue: { type: Boolean, default: !0 }
|
|
9
|
+
canAddCustomValue: { type: Boolean, default: !0 },
|
|
10
|
+
type: {}
|
|
10
11
|
},
|
|
11
12
|
emits: ["update:modelValue"],
|
|
12
|
-
setup(
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
setup(B, { emit: j }) {
|
|
14
|
+
const r = B, c = j, p = m(() => r.value ?? []), i = y(!1), o = y(""), x = y(null);
|
|
15
|
+
S(o, (e) => {
|
|
16
|
+
c("update:modelValue", e);
|
|
16
17
|
});
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
}, b = () => {
|
|
20
|
-
u.value.trim() && (h(u.value), u.value = "");
|
|
18
|
+
const k = (e) => {
|
|
19
|
+
c("update:modelValue", e), i.value = !1;
|
|
21
20
|
}, z = () => {
|
|
22
|
-
|
|
23
|
-
}, A = (
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
o.value.trim() && (k(o.value), o.value = "");
|
|
22
|
+
}, A = () => {
|
|
23
|
+
o.value.trim() || (c("update:modelValue", ""), i.value = !1);
|
|
24
|
+
}, N = (e) => r.modelValue.toString() === e;
|
|
25
|
+
S(i, (e) => {
|
|
26
|
+
e && E(() => {
|
|
26
27
|
var t;
|
|
27
28
|
(t = x.value) == null || t.focus();
|
|
28
29
|
});
|
|
29
30
|
});
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
const g = m(() => r.modelValue !== void 0 ? r.modelValue : r.default), V = m(() => {
|
|
32
|
+
const e = new Set(r.modelValue.toString().split(", "));
|
|
33
|
+
return p.value.filter((t) => e.has(t)).map((t) => ({ id: t, label: t, value: t }));
|
|
34
|
+
}), T = m(
|
|
35
|
+
() => p.value.map((e) => ({ id: e, label: e, value: e }))
|
|
36
|
+
), I = (e) => {
|
|
37
|
+
const t = e.map((l) => l.value);
|
|
38
|
+
c("update:modelValue", t.join(", "));
|
|
39
|
+
};
|
|
40
|
+
return (e, t) => (u(), f("div", G, [
|
|
41
|
+
e.type === "array" ? (u(), v(a(F), {
|
|
33
42
|
key: 0,
|
|
43
|
+
modelValue: V.value,
|
|
44
|
+
options: T.value,
|
|
45
|
+
"onUpdate:modelValue": I
|
|
46
|
+
}, {
|
|
47
|
+
default: n(() => [
|
|
48
|
+
s(a(b), {
|
|
49
|
+
class: "gap-1.5 font-normal h-full justify-start px-2 py-1.5 custom-scroll pr-6 outline-none",
|
|
50
|
+
fullWidth: "",
|
|
51
|
+
variant: "ghost"
|
|
52
|
+
}, {
|
|
53
|
+
default: n(() => [
|
|
54
|
+
d("span", H, w(V.value.length > 0 ? V.value.map((l) => l.label).join(", ") : "Select a value"), 1),
|
|
55
|
+
s(a(h), {
|
|
56
|
+
icon: "ChevronDown",
|
|
57
|
+
size: "md"
|
|
58
|
+
})
|
|
59
|
+
]),
|
|
60
|
+
_: 1
|
|
61
|
+
})
|
|
62
|
+
]),
|
|
63
|
+
_: 1
|
|
64
|
+
}, 8, ["modelValue", "options"])) : i.value ? K((u(), f("input", {
|
|
65
|
+
key: 1,
|
|
34
66
|
ref_key: "inputRef",
|
|
35
67
|
ref: x,
|
|
36
|
-
"onUpdate:modelValue": t[0] || (t[0] = (l) =>
|
|
68
|
+
"onUpdate:modelValue": t[0] || (t[0] = (l) => o.value = l),
|
|
37
69
|
class: "border-none text-c-1 min-w-0 w-full px-2 py-1.5 outline-none",
|
|
38
70
|
placeholder: "Value",
|
|
39
71
|
type: "text",
|
|
40
|
-
onBlur:
|
|
41
|
-
onKeyup:
|
|
72
|
+
onBlur: A,
|
|
73
|
+
onKeyup: M(z, ["enter"])
|
|
42
74
|
}, null, 544)), [
|
|
43
|
-
[
|
|
44
|
-
]) : (
|
|
45
|
-
key:
|
|
75
|
+
[R, o.value]
|
|
76
|
+
]) : (u(), v(a(L), {
|
|
77
|
+
key: 2,
|
|
46
78
|
resize: "",
|
|
47
|
-
value:
|
|
79
|
+
value: g.value
|
|
48
80
|
}, {
|
|
49
|
-
items:
|
|
50
|
-
(
|
|
81
|
+
items: n(() => [
|
|
82
|
+
(u(!0), f(C, null, U(p.value, (l) => (u(), v(a(D), {
|
|
51
83
|
key: l,
|
|
52
84
|
class: "flex gap-1.5 group/item items-center whitespace-nowrap text-ellipsis overflow-hidden",
|
|
53
85
|
value: l,
|
|
54
|
-
onClick: (
|
|
86
|
+
onClick: (Q) => k(l)
|
|
55
87
|
}, {
|
|
56
|
-
default:
|
|
57
|
-
|
|
58
|
-
class:
|
|
88
|
+
default: n(() => [
|
|
89
|
+
d("div", {
|
|
90
|
+
class: W([
|
|
59
91
|
"flex items-center justify-center rounded-full p-[3px] w-4 h-4",
|
|
60
|
-
|
|
92
|
+
N(l) ? "bg-c-accent text-b-1" : "group-hover/item:shadow-border text-transparent"
|
|
61
93
|
])
|
|
62
94
|
}, [
|
|
63
|
-
|
|
95
|
+
s(a(h), {
|
|
64
96
|
class: "size-2.5",
|
|
65
97
|
icon: "Checkmark",
|
|
66
98
|
thickness: "3.5"
|
|
67
99
|
})
|
|
68
100
|
], 2),
|
|
69
|
-
$(" " +
|
|
101
|
+
$(" " + w(l), 1)
|
|
70
102
|
]),
|
|
71
103
|
_: 2
|
|
72
104
|
}, 1032, ["value", "onClick"]))), 128)),
|
|
73
|
-
e.canAddCustomValue ? (
|
|
74
|
-
|
|
75
|
-
|
|
105
|
+
e.canAddCustomValue ? (u(), f(C, { key: 0 }, [
|
|
106
|
+
p.value.length ? (u(), v(a(q), { key: 0 })) : _("", !0),
|
|
107
|
+
s(a(D), {
|
|
76
108
|
class: "flex items-center gap-1.5",
|
|
77
|
-
onClick: t[1] || (t[1] = (l) =>
|
|
109
|
+
onClick: t[1] || (t[1] = (l) => i.value = !0)
|
|
78
110
|
}, {
|
|
79
|
-
default:
|
|
80
|
-
|
|
81
|
-
|
|
111
|
+
default: n(() => [
|
|
112
|
+
d("div", P, [
|
|
113
|
+
s(a(h), {
|
|
82
114
|
icon: "Add",
|
|
83
115
|
size: "sm"
|
|
84
116
|
})
|
|
85
117
|
]),
|
|
86
|
-
t[2] || (t[2] =
|
|
118
|
+
t[2] || (t[2] = d("span", null, "Add value", -1))
|
|
87
119
|
]),
|
|
88
120
|
_: 1
|
|
89
121
|
})
|
|
90
|
-
], 64)) :
|
|
122
|
+
], 64)) : _("", !0)
|
|
91
123
|
]),
|
|
92
|
-
default:
|
|
93
|
-
|
|
94
|
-
class: "gap-1.5 font-normal h-full justify-start px-2 py-1.5",
|
|
124
|
+
default: n(() => [
|
|
125
|
+
s(a(b), {
|
|
126
|
+
class: "gap-1.5 font-normal h-full justify-start px-2 py-1.5 outline-none",
|
|
95
127
|
fullWidth: "",
|
|
96
128
|
variant: "ghost"
|
|
97
129
|
}, {
|
|
98
|
-
default:
|
|
99
|
-
|
|
100
|
-
|
|
130
|
+
default: n(() => [
|
|
131
|
+
d("span", J, w(g.value || "Select a value"), 1),
|
|
132
|
+
s(a(h), {
|
|
101
133
|
icon: "ChevronDown",
|
|
102
134
|
size: "md"
|
|
103
135
|
})
|
|
@@ -111,5 +143,5 @@ const U = { class: "w-full" }, W = { class: "text-c-1" }, q = { class: "flex ite
|
|
|
111
143
|
}
|
|
112
144
|
});
|
|
113
145
|
export {
|
|
114
|
-
|
|
146
|
+
Z as default
|
|
115
147
|
};
|
|
@@ -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":";AAodA,wBAMG"}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { defineComponent as I, computed as f, watch as B, onMounted as D, openBlock as c, createElementBlock as x, createVNode as s, unref as n, withCtx as l, Fragment as j, renderList as M, createBlock as h, withModifiers as w, createTextVNode as E, toDisplayString as k, createElementVNode as u, normalizeClass as V, createCommentVNode as z } from "vue";
|
|
2
|
-
import { useActiveEntities as
|
|
3
|
-
import { ScalarDropdown as
|
|
4
|
-
import { useRouter as
|
|
5
|
-
import { useWorkspace as
|
|
6
|
-
|
|
2
|
+
import { useActiveEntities as L } from "../../store/active-entities.js";
|
|
3
|
+
import { ScalarDropdown as W, ScalarDropdownItem as m, ScalarListboxCheckbox as $, ScalarIcon as g, ScalarDropdownDivider as A, ScalarButton as F } from "@scalar/components";
|
|
4
|
+
import { useRouter as O } from "vue-router";
|
|
5
|
+
import { useWorkspace as R } from "../../store/store.js";
|
|
6
|
+
import { useLayout as T } from "../../hooks/useLayout.js";
|
|
7
|
+
const q = { class: "font-medium m-0 flex gap-1.5 items-center whitespace-nowrap" }, G = { class: "flex items-center justify-center h-4 w-4" }, Y = /* @__PURE__ */ I({
|
|
7
8
|
__name: "EnvironmentSelector",
|
|
8
|
-
setup(
|
|
9
|
-
const { activeCollection: a, activeWorkspace: i, activeEnvironment:
|
|
10
|
-
a.value && i.value && (
|
|
9
|
+
setup(H) {
|
|
10
|
+
const { activeCollection: a, activeWorkspace: i, activeEnvironment: v } = L(), { collectionMutators: _ } = R(), { layout: b } = T(), C = O(), d = (e) => {
|
|
11
|
+
a.value && i.value && (_.edit(
|
|
11
12
|
a.value.uid,
|
|
12
13
|
"x-scalar-active-environment",
|
|
13
14
|
e
|
|
@@ -21,7 +22,7 @@ const T = { class: "font-medium m-0 flex gap-1.5 items-center whitespace-nowrap"
|
|
|
21
22
|
}
|
|
22
23
|
});
|
|
23
24
|
}, y = f(() => {
|
|
24
|
-
const { value: e } =
|
|
25
|
+
const { value: e } = v, { value: t } = a;
|
|
25
26
|
return (e == null ? void 0 : e.uid) || (t == null ? void 0 : t["x-scalar-active-environment"]) || "No Environment";
|
|
26
27
|
}), N = f(() => {
|
|
27
28
|
const { value: e } = a, t = e == null ? void 0 : e["x-scalar-environments"];
|
|
@@ -40,9 +41,9 @@ const T = { class: "font-medium m-0 flex gap-1.5 items-center whitespace-nowrap"
|
|
|
40
41
|
), D(() => {
|
|
41
42
|
a.value && p(a.value);
|
|
42
43
|
}), (e, t) => (c(), x("div", null, [
|
|
43
|
-
s(n(
|
|
44
|
+
s(n(W), { placement: "bottom-end" }, {
|
|
44
45
|
items: l(() => [
|
|
45
|
-
(c(!0), x(j, null, M(N.value, (o) => (c(), h(n(
|
|
46
|
+
(c(!0), x(j, null, M(N.value, (o) => (c(), h(n(m), {
|
|
46
47
|
key: o.uid,
|
|
47
48
|
class: "flex gap-1.5 group/item items-center whitespace-nowrap text-ellipsis overflow-hidden",
|
|
48
49
|
onClick: w((r) => d(o.uid), ["stop"])
|
|
@@ -50,7 +51,7 @@ const T = { class: "font-medium m-0 flex gap-1.5 items-center whitespace-nowrap"
|
|
|
50
51
|
default: l(() => {
|
|
51
52
|
var r;
|
|
52
53
|
return [
|
|
53
|
-
s(n(
|
|
54
|
+
s(n($), {
|
|
54
55
|
selected: ((r = n(a)) == null ? void 0 : r["x-scalar-active-environment"]) === o.uid
|
|
55
56
|
}, null, 8, ["selected"]),
|
|
56
57
|
E(" " + k(o.name), 1)
|
|
@@ -58,7 +59,7 @@ const T = { class: "font-medium m-0 flex gap-1.5 items-center whitespace-nowrap"
|
|
|
58
59
|
}),
|
|
59
60
|
_: 2
|
|
60
61
|
}, 1032, ["onClick"]))), 128)),
|
|
61
|
-
s(n(
|
|
62
|
+
s(n(m), {
|
|
62
63
|
class: "flex gap-1.5 group/item items-center whitespace-nowrap text-ellipsis overflow-hidden",
|
|
63
64
|
onClick: t[0] || (t[0] = w((o) => d(""), ["stop"]))
|
|
64
65
|
}, {
|
|
@@ -68,7 +69,7 @@ const T = { class: "font-medium m-0 flex gap-1.5 items-center whitespace-nowrap"
|
|
|
68
69
|
u("div", {
|
|
69
70
|
class: V([
|
|
70
71
|
"flex items-center justify-center rounded-full p-[3px] w-4 h-4",
|
|
71
|
-
((o = n(
|
|
72
|
+
((o = n(v)) == null ? void 0 : o.uid) === "" && ((r = n(a)) == null ? void 0 : r["x-scalar-active-environment"]) === "" ? "bg-c-accent text-b-1" : "group-hover/item:shadow-border text-transparent"
|
|
72
73
|
])
|
|
73
74
|
}, [
|
|
74
75
|
s(n(g), {
|
|
@@ -82,14 +83,14 @@ const T = { class: "font-medium m-0 flex gap-1.5 items-center whitespace-nowrap"
|
|
|
82
83
|
}),
|
|
83
84
|
_: 1
|
|
84
85
|
}),
|
|
85
|
-
s(n(
|
|
86
|
-
n(
|
|
86
|
+
s(n(A)),
|
|
87
|
+
n(b) !== "modal" ? (c(), h(n(m), {
|
|
87
88
|
key: 0,
|
|
88
89
|
class: "flex items-center gap-1.5",
|
|
89
90
|
onClick: S
|
|
90
91
|
}, {
|
|
91
92
|
default: l(() => [
|
|
92
|
-
u("div",
|
|
93
|
+
u("div", G, [
|
|
93
94
|
s(n(g), {
|
|
94
95
|
icon: "Brackets",
|
|
95
96
|
size: "sm"
|
|
@@ -98,16 +99,16 @@ const T = { class: "font-medium m-0 flex gap-1.5 items-center whitespace-nowrap"
|
|
|
98
99
|
t[2] || (t[2] = u("span", { class: "leading-none" }, "Manage Environments", -1))
|
|
99
100
|
]),
|
|
100
101
|
_: 1
|
|
101
|
-
}))
|
|
102
|
+
})) : z("", !0)
|
|
102
103
|
]),
|
|
103
104
|
default: l(() => [
|
|
104
|
-
s(n(
|
|
105
|
+
s(n(F), {
|
|
105
106
|
class: "font-normal h-auto justify-start py-1.5 px-1.5 pl-2 text-c-1 hover:bg-b-2 w-fit",
|
|
106
107
|
fullWidth: "",
|
|
107
108
|
variant: "ghost"
|
|
108
109
|
}, {
|
|
109
110
|
default: l(() => [
|
|
110
|
-
u("h2",
|
|
111
|
+
u("h2", q, k(y.value), 1)
|
|
111
112
|
]),
|
|
112
113
|
_: 1
|
|
113
114
|
})
|
|
@@ -118,5 +119,5 @@ const T = { class: "font-medium m-0 flex gap-1.5 items-center whitespace-nowrap"
|
|
|
118
119
|
}
|
|
119
120
|
});
|
|
120
121
|
export {
|
|
121
|
-
|
|
122
|
+
Y as default
|
|
122
123
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ServerVariableValues, ServerVariables } from '../../components/Server/types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
variables?: ServerVariables;
|
|
4
|
+
values?: ServerVariableValues;
|
|
5
|
+
/** The ID of the input controlled by the variables form */
|
|
6
|
+
controls?: string;
|
|
7
|
+
};
|
|
8
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
9
|
+
"update:variable": (name: string, value: string) => any;
|
|
10
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
|
+
"onUpdate:variable"?: ((name: string, value: string) => any) | undefined;
|
|
12
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
export default _default;
|
|
14
|
+
//# sourceMappingURL=ServerVariablesForm.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ServerVariablesForm.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Server/ServerVariablesForm.vue"],"names":[],"mappings":"AA+DA,OAAO,KAAK,EACV,oBAAoB,EACpB,eAAe,EAChB,MAAM,2BAA2B,CAAA;AAIlC,KAAK,WAAW,GAAG;IACjB,SAAS,CAAC,EAAE,eAAe,CAAA;IAC3B,MAAM,CAAC,EAAE,oBAAoB,CAAA;IAC7B,2DAA2D;IAC3D,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAC;;;;;;AA0IF,wBAOG"}
|