@scalar/api-client 2.2.35 → 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 +61 -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 +96 -76
- 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 +5 -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 +126 -112
- package/dist/components/CodeInput/codeVariableWidget.d.ts +1 -4
- package/dist/components/CodeInput/codeVariableWidget.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandActionInput.vue.d.ts +1 -0
- package/dist/components/CommandPalette/CommandActionInput.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandActionInput.vue.js +21 -18
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.js +2 -2
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +2 -2
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInput.vue.js +2 -2
- 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 +86 -54
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -1
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +22 -21
- package/dist/components/Form/Form.vue.d.ts.map +1 -1
- package/dist/components/Form/Form.vue.js +3 -3
- 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/TopNav/TopNav.vue.js +27 -27
- 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 +99 -84
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.d.ts +198 -168
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.d.ts +99 -84
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +110 -90
- 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/libs/index.js +18 -19
- package/dist/libs/send-request/index.js +3 -4
- package/dist/libs/send-request/send-request.d.ts +0 -14
- package/dist/libs/send-request/send-request.d.ts.map +1 -1
- package/dist/libs/send-request/send-request.js +120 -142
- package/dist/libs/send-request/set-request-cookies.d.ts +27 -0
- package/dist/libs/send-request/set-request-cookies.d.ts.map +1 -0
- package/dist/libs/send-request/set-request-cookies.js +54 -0
- package/dist/store/active-entities.d.ts +13 -4
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/active-entities.js +15 -12
- package/dist/store/collections.d.ts.map +1 -1
- package/dist/store/cookies.d.ts +4 -58
- package/dist/store/cookies.d.ts.map +1 -1
- package/dist/store/cookies.js +5 -17
- 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 +99 -86
- 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/CookieForm.vue.d.ts.map +1 -1
- package/dist/views/Cookies/CookieForm.vue.js +24 -37
- package/dist/views/Cookies/CookieModal.vue.d.ts +21 -0
- package/dist/views/Cookies/CookieModal.vue.d.ts.map +1 -0
- package/dist/views/Cookies/CookieModal.vue.js +7 -0
- package/dist/views/Cookies/CookieModal.vue2.js +88 -0
- package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue2.js +98 -119
- 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/RequestBody.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestBody.vue2.js +34 -34
- package/dist/views/Request/RequestSection/RequestParams.vue.d.ts +7 -0
- package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestParams.vue.js +79 -66
- 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 +91 -64
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +9 -2
- 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 +168 -129
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +5 -64
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue2.js +46 -2
- 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/ResponseCookies.vue.js +19 -17
- 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/ResponseSection/ResponseHeaders.vue.js +31 -31
- 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/request.d.ts +12 -0
- package/dist/views/Request/libs/request.d.ts.map +1 -0
- package/dist/views/Request/libs/request.js +4 -0
- 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 +10 -12
- package/dist/views/Cookies/CookieRaw.vue.js +0 -28
- package/dist/views/Cookies/CookieRaw.vue2.js +0 -4
- package/dist/views/Request/libs/live-sync.d.ts.map +0 -1
|
@@ -1,25 +1,28 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as F, resolveComponent as S, openBlock as r, createBlock as i, withCtx as t, createElementBlock as c, Fragment as f, renderList as $, createElementVNode as s, createVNode as d, unref as p, toDisplayString as b, normalizeClass as U, createSlots as T, createCommentVNode as x, createTextVNode as z, computed as D } from "vue";
|
|
2
2
|
import w from "../../../components/CodeInput/CodeInput.vue.js";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
|
|
3
|
+
import q from "../../../components/DataTable/DataTable.vue.js";
|
|
4
|
+
import y from "../../../components/DataTable/DataTableCell.vue.js";
|
|
5
|
+
import E from "../../../components/DataTable/DataTableCheckbox.vue.js";
|
|
6
|
+
import G from "../../../components/DataTable/DataTableRow.vue.js";
|
|
7
|
+
import { ScalarTooltip as I, ScalarIcon as V, ScalarButton as N } from "@scalar/components";
|
|
8
|
+
import { hasItemProperties as g } from "../libs/request.js";
|
|
9
|
+
import O from "./RequestTableTooltip.vue.js";
|
|
10
|
+
const L = { class: "contents" }, j = { class: "sr-only" }, A = { class: "text-c-2 max-w-[100%] overflow-hidden filemask flex items-end justify-end" }, M = ["onClick"], le = /* @__PURE__ */ F({
|
|
10
11
|
__name: "RequestTable",
|
|
11
12
|
props: {
|
|
12
13
|
items: {},
|
|
13
14
|
hasCheckboxDisabled: { type: Boolean, default: !1 },
|
|
14
|
-
showUploadButton: { type: Boolean, default: !1 }
|
|
15
|
+
showUploadButton: { type: Boolean, default: !1 },
|
|
16
|
+
isGlobal: { type: Boolean, default: !1 },
|
|
17
|
+
isReadOnly: { type: Boolean, default: !1 }
|
|
15
18
|
},
|
|
16
19
|
emits: ["updateRow", "toggleRow", "addRow", "deleteRow", "inputFocus", "inputBlur", "uploadFile", "removeFile"],
|
|
17
|
-
setup(
|
|
18
|
-
const n =
|
|
19
|
-
n("updateRow", e, o,
|
|
20
|
-
},
|
|
20
|
+
setup(K, { emit: R }) {
|
|
21
|
+
const n = R, B = ["", "", "36px"], v = (e, o, m) => {
|
|
22
|
+
n("updateRow", e, o, m);
|
|
23
|
+
}, h = (e) => {
|
|
21
24
|
n("uploadFile", e);
|
|
22
|
-
},
|
|
25
|
+
}, k = (e) => D(() => {
|
|
23
26
|
if (e.type === "integer" && e.value !== void 0) {
|
|
24
27
|
const o = Number(e.value);
|
|
25
28
|
if (e.minimum !== void 0 && o < e.minimum)
|
|
@@ -28,127 +31,163 @@ const z = { class: "contents" }, A = { class: "text-c-2 max-w-[100%] overflow-hi
|
|
|
28
31
|
return `Max is ${e.maximum}`;
|
|
29
32
|
}
|
|
30
33
|
return !1;
|
|
31
|
-
}),
|
|
32
|
-
return (e, o) =>
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
class: R({
|
|
69
|
-
"pr-6": c(l)
|
|
70
|
-
}),
|
|
71
|
-
default: l.default,
|
|
72
|
-
disableCloseBrackets: "",
|
|
73
|
-
disableEnter: "",
|
|
74
|
-
disableTabIndent: "",
|
|
75
|
-
enum: l.enum,
|
|
76
|
-
max: l.maximum,
|
|
77
|
-
min: l.minimum,
|
|
78
|
-
modelValue: l.value,
|
|
79
|
-
nullable: l.nullable,
|
|
80
|
-
placeholder: "Value",
|
|
81
|
-
type: l.type,
|
|
82
|
-
onBlur: o[2] || (o[2] = (a) => n("inputBlur")),
|
|
83
|
-
onFocus: o[3] || (o[3] = (a) => n("inputFocus")),
|
|
84
|
-
onSelectVariable: (a) => m(t, "value", a),
|
|
85
|
-
"onUpdate:modelValue": (a) => n("updateRow", t, "value", a)
|
|
86
|
-
}, $({
|
|
87
|
-
icon: u(() => [
|
|
88
|
-
c(l) ? (r(), i(I, {
|
|
89
|
-
key: 0,
|
|
90
|
-
item: { ...l, default: B(l) }
|
|
91
|
-
}, null, 8, ["item"])) : y("", !0)
|
|
34
|
+
}), _ = (e) => Array.isArray(e.default) && e.default.length === 1 ? e.default[0] : e.default;
|
|
35
|
+
return (e, o) => {
|
|
36
|
+
const m = S("RouterLink");
|
|
37
|
+
return r(), i(q, {
|
|
38
|
+
class: "flex-1",
|
|
39
|
+
columns: B
|
|
40
|
+
}, {
|
|
41
|
+
default: t(() => [
|
|
42
|
+
(r(!0), c(f, null, $(e.items, (l, u) => (r(), i(G, { key: u }, {
|
|
43
|
+
default: t(() => [
|
|
44
|
+
s("label", L, [
|
|
45
|
+
e.isGlobal ? (r(), i(m, {
|
|
46
|
+
key: 0,
|
|
47
|
+
class: "!border-r-1/2 border-t-1/2 text-c-2 flex justify-center items-center",
|
|
48
|
+
to: l.route ?? {}
|
|
49
|
+
}, {
|
|
50
|
+
default: t(() => [
|
|
51
|
+
o[5] || (o[5] = s("span", { class: "sr-only" }, "Global", -1)),
|
|
52
|
+
d(p(I), {
|
|
53
|
+
as: "div",
|
|
54
|
+
side: "top"
|
|
55
|
+
}, {
|
|
56
|
+
trigger: t(() => [
|
|
57
|
+
d(p(V), {
|
|
58
|
+
icon: "Globe",
|
|
59
|
+
size: "xs"
|
|
60
|
+
})
|
|
61
|
+
]),
|
|
62
|
+
content: t(() => o[4] || (o[4] = [
|
|
63
|
+
s("div", { class: "grid gap-1.5 pointer-events-none max-w-[320px] w-content shadow-lg rounded bg-b-1 z-100 p-2 text-xxs leading-5 z-10 text-c-1" }, [
|
|
64
|
+
s("div", { class: "flex items-center text-c-2" }, [
|
|
65
|
+
s("span", { class: "text-pretty" }, " Global cookies are shared across the whole workspace. ")
|
|
66
|
+
])
|
|
67
|
+
], -1)
|
|
68
|
+
])),
|
|
69
|
+
_: 1
|
|
70
|
+
})
|
|
92
71
|
]),
|
|
93
72
|
_: 2
|
|
94
|
-
}, [
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
}
|
|
102
|
-
]
|
|
73
|
+
}, 1032, ["to"])) : (r(), c(f, { key: 1 }, [
|
|
74
|
+
s("span", j, " Row " + b(l.enabled ? "Enabled" : "Disabled"), 1),
|
|
75
|
+
d(E, {
|
|
76
|
+
class: "!border-r-1/2",
|
|
77
|
+
disabled: e.hasCheckboxDisabled,
|
|
78
|
+
modelValue: l.enabled,
|
|
79
|
+
"onUpdate:modelValue": (a) => n("toggleRow", u, a)
|
|
80
|
+
}, null, 8, ["disabled", "modelValue", "onUpdate:modelValue"])
|
|
81
|
+
], 64))
|
|
103
82
|
]),
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
83
|
+
d(y, null, {
|
|
84
|
+
default: t(() => [
|
|
85
|
+
d(w, {
|
|
86
|
+
disableCloseBrackets: "",
|
|
87
|
+
disabled: e.isReadOnly,
|
|
88
|
+
disableEnter: "",
|
|
89
|
+
disableTabIndent: "",
|
|
90
|
+
modelValue: l.key,
|
|
91
|
+
placeholder: "Key",
|
|
92
|
+
required: l.required,
|
|
93
|
+
onBlur: o[0] || (o[0] = (a) => n("inputBlur")),
|
|
94
|
+
onFocus: o[1] || (o[1] = (a) => n("inputFocus")),
|
|
95
|
+
onSelectVariable: (a) => v(u, "key", a),
|
|
96
|
+
"onUpdate:modelValue": (a) => n("updateRow", u, "key", a)
|
|
97
|
+
}, null, 8, ["disabled", "modelValue", "required", "onSelectVariable", "onUpdate:modelValue"])
|
|
98
|
+
]),
|
|
99
|
+
_: 2
|
|
100
|
+
}, 1024),
|
|
101
|
+
d(y, null, {
|
|
102
|
+
default: t(() => [
|
|
103
|
+
d(w, {
|
|
104
|
+
class: U({
|
|
105
|
+
"pr-6": p(g)(l)
|
|
106
|
+
}),
|
|
107
|
+
default: l.default,
|
|
108
|
+
disableCloseBrackets: "",
|
|
109
|
+
disabled: e.isReadOnly,
|
|
110
|
+
disableEnter: "",
|
|
111
|
+
disableTabIndent: "",
|
|
112
|
+
enum: l.enum,
|
|
113
|
+
examples: l.examples,
|
|
114
|
+
max: l.maximum,
|
|
115
|
+
min: l.minimum,
|
|
116
|
+
modelValue: l.value,
|
|
117
|
+
nullable: l.nullable,
|
|
118
|
+
placeholder: "Value",
|
|
119
|
+
type: l.type,
|
|
120
|
+
onBlur: o[2] || (o[2] = (a) => n("inputBlur")),
|
|
121
|
+
onFocus: o[3] || (o[3] = (a) => n("inputFocus")),
|
|
122
|
+
onSelectVariable: (a) => v(u, "value", a),
|
|
123
|
+
"onUpdate:modelValue": (a) => n("updateRow", u, "value", a)
|
|
124
|
+
}, T({
|
|
125
|
+
icon: t(() => [
|
|
126
|
+
p(g)(l) ? (r(), i(O, {
|
|
127
|
+
key: 0,
|
|
128
|
+
item: { ...l, default: _(l) }
|
|
129
|
+
}, null, 8, ["item"])) : x("", !0)
|
|
137
130
|
]),
|
|
138
131
|
_: 2
|
|
139
|
-
},
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
132
|
+
}, [
|
|
133
|
+
k(l).value ? {
|
|
134
|
+
name: "warning",
|
|
135
|
+
fn: t(() => [
|
|
136
|
+
z(b(k(l).value), 1)
|
|
137
|
+
]),
|
|
138
|
+
key: "0"
|
|
139
|
+
} : void 0
|
|
140
|
+
]), 1032, ["class", "default", "disabled", "enum", "examples", "max", "min", "modelValue", "nullable", "type", "onSelectVariable", "onUpdate:modelValue"])
|
|
141
|
+
]),
|
|
142
|
+
_: 2
|
|
143
|
+
}, 1024),
|
|
144
|
+
e.showUploadButton ? (r(), i(y, {
|
|
145
|
+
key: 0,
|
|
146
|
+
class: "group/upload p-1 overflow-hidden relative text-ellipsis whitespace-nowrap"
|
|
147
|
+
}, {
|
|
148
|
+
default: t(() => {
|
|
149
|
+
var a;
|
|
150
|
+
return [
|
|
151
|
+
l.file ? (r(), c(f, { key: 0 }, [
|
|
152
|
+
s("div", A, [
|
|
153
|
+
s("span", null, b((a = l.file) == null ? void 0 : a.name), 1)
|
|
154
|
+
]),
|
|
155
|
+
s("button", {
|
|
156
|
+
class: "absolute bg-b-2 font-medium centered-x centered-y hidden rounded text-center p-0.5 w-[calc(100%_-_8px)] group-hover/upload:block text-xs",
|
|
157
|
+
type: "button",
|
|
158
|
+
onClick: (C) => n("removeFile", u)
|
|
159
|
+
}, " Delete ", 8, M)
|
|
160
|
+
], 64)) : (r(), i(p(N), {
|
|
161
|
+
key: 1,
|
|
162
|
+
class: "bg-b-2 hover:bg-b-3 border-0 py-px text-c-2 shadow-none",
|
|
163
|
+
size: "sm",
|
|
164
|
+
variant: "outlined",
|
|
165
|
+
onClick: (C) => h(u)
|
|
166
|
+
}, {
|
|
167
|
+
default: t(() => [
|
|
168
|
+
o[6] || (o[6] = s("span", null, "File", -1)),
|
|
169
|
+
d(p(V), {
|
|
170
|
+
class: "ml-1",
|
|
171
|
+
icon: "UploadSimple",
|
|
172
|
+
size: "xs",
|
|
173
|
+
thickness: "2.5"
|
|
174
|
+
})
|
|
175
|
+
]),
|
|
176
|
+
_: 2
|
|
177
|
+
}, 1032, ["onClick"]))
|
|
178
|
+
];
|
|
179
|
+
}),
|
|
180
|
+
_: 2
|
|
181
|
+
}, 1024)) : x("", !0)
|
|
182
|
+
]),
|
|
183
|
+
_: 2
|
|
184
|
+
}, 1024))), 128))
|
|
185
|
+
]),
|
|
186
|
+
_: 1
|
|
187
|
+
});
|
|
188
|
+
};
|
|
150
189
|
}
|
|
151
190
|
});
|
|
152
191
|
export {
|
|
153
|
-
|
|
192
|
+
le as default
|
|
154
193
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestTableTooltip.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestTableTooltip.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestTableTooltip.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestTableTooltip.vue"],"names":[],"mappings":"AAyDA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAA;AAI9E,KAAK,WAAW,GAAG;IAAE,IAAI,EAAE,uBAAuB,CAAA;CAAE,CAAC;;AAsIrD,wBAOG"}
|
|
@@ -1,66 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
class: "flex items-center text-c-2"
|
|
6
|
-
}, y = { key: 0 }, w = {
|
|
7
|
-
key: 1,
|
|
8
|
-
class: "before:content-['·'] before:block before:mx-[0.5ch] flex"
|
|
9
|
-
}, v = {
|
|
10
|
-
key: 2,
|
|
11
|
-
class: "before:content-['·'] before:block before:mx-[0.5ch] flex whitespace-nowrap"
|
|
12
|
-
}, C = {
|
|
13
|
-
key: 3,
|
|
14
|
-
class: "before:content-['·'] before:block before:mx-[0.5ch] flex whitespace-nowrap"
|
|
15
|
-
}, B = {
|
|
16
|
-
key: 4,
|
|
17
|
-
class: "before:content-['·'] before:block before:mx-[0.5ch] flex whitespace-nowrap"
|
|
18
|
-
}, I = {
|
|
19
|
-
key: 1,
|
|
20
|
-
class: "leading-snug text-pretty text-sm",
|
|
21
|
-
style: { maxWidth: "16rem" }
|
|
22
|
-
}, V = /* @__PURE__ */ p({
|
|
23
|
-
__name: "RequestTableTooltip",
|
|
24
|
-
props: {
|
|
25
|
-
item: {}
|
|
26
|
-
},
|
|
27
|
-
setup(l) {
|
|
28
|
-
const e = l, r = (n) => n !== void 0, f = d(
|
|
29
|
-
() => e.item.type || e.item.format || r(e.item.minimum) || r(e.item.maximum) || r(e.item.default)
|
|
30
|
-
);
|
|
31
|
-
return (n, N) => (t(), b(c(x), {
|
|
32
|
-
align: "start",
|
|
33
|
-
class: "w-full",
|
|
34
|
-
delay: 0,
|
|
35
|
-
side: "left",
|
|
36
|
-
triggerClass: "before:absolute before:content-[''] before:bg-gradient-to-r before:from-transparent before:to-b-1 before:min-h-[calc(100%-4px)] before:pointer-events-none before:right-[23px] before:top-0.5 before:w-3 absolute h-full right-0"
|
|
37
|
-
}, {
|
|
38
|
-
trigger: a(() => [
|
|
39
|
-
m("div", _, [
|
|
40
|
-
u(c(h), {
|
|
41
|
-
class: "text-c-3 group-hover/info:text-c-1",
|
|
42
|
-
icon: "Info",
|
|
43
|
-
size: "sm",
|
|
44
|
-
thickness: "1.5"
|
|
45
|
-
})
|
|
46
|
-
])
|
|
47
|
-
]),
|
|
48
|
-
content: a(() => [
|
|
49
|
-
m("div", g, [
|
|
50
|
-
f.value ? (t(), o("div", k, [
|
|
51
|
-
e.item.type ? (t(), o("span", y, i(e.item.type), 1)) : s("", !0),
|
|
52
|
-
e.item.format ? (t(), o("span", w, i(e.item.format), 1)) : s("", !0),
|
|
53
|
-
r(e.item.minimum) ? (t(), o("span", v, "min: " + i(e.item.minimum), 1)) : s("", !0),
|
|
54
|
-
r(e.item.maximum) ? (t(), o("span", C, "max: " + i(e.item.maximum), 1)) : s("", !0),
|
|
55
|
-
r(e.item.default) ? (t(), o("span", B, "default: " + i(e.item.default), 1)) : s("", !0)
|
|
56
|
-
])) : s("", !0),
|
|
57
|
-
e.item.description ? (t(), o("span", I, i(e.item.description), 1)) : s("", !0)
|
|
58
|
-
])
|
|
59
|
-
]),
|
|
60
|
-
_: 1
|
|
61
|
-
}));
|
|
62
|
-
}
|
|
63
|
-
});
|
|
1
|
+
import o from "./RequestTableTooltip.vue2.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-936ae259"]]);
|
|
64
5
|
export {
|
|
65
|
-
|
|
6
|
+
r as default
|
|
66
7
|
};
|
|
@@ -1,4 +1,48 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { defineComponent as m, openBlock as t, createBlock as l, unref as r, withCtx as a, createElementVNode as n, createVNode as p, createElementBlock as o, toDisplayString as s, createCommentVNode as i } from "vue";
|
|
2
|
+
import { ScalarTooltip as c, ScalarIcon as d } from "@scalar/components";
|
|
3
|
+
const f = { class: "bg-b-1 pl-1 pr-1.5 mr-0.25" }, u = { class: "grid gap-1.5 pointer-events-none min-w-48 w-content shadow-lg rounded bg-b-1 p-2 text-xxs leading-5 text-c-1" }, h = { class: "schema flex items-center text-c-2" }, b = { key: 0 }, g = { key: 1 }, _ = { key: 2 }, y = { key: 3 }, k = { key: 4 }, x = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "leading-snug text-pretty text-sm",
|
|
6
|
+
style: { maxWidth: "16rem" }
|
|
7
|
+
}, N = /* @__PURE__ */ m({
|
|
8
|
+
__name: "RequestTableTooltip",
|
|
9
|
+
props: {
|
|
10
|
+
item: {}
|
|
11
|
+
},
|
|
12
|
+
setup(v) {
|
|
13
|
+
return (e, w) => (t(), l(r(c), {
|
|
14
|
+
align: "start",
|
|
15
|
+
class: "w-full pr-px",
|
|
16
|
+
delay: 0,
|
|
17
|
+
side: "left",
|
|
18
|
+
triggerClass: "before:absolute before:content-[''] before:bg-gradient-to-r before:from-transparent before:to-b-1 before:min-h-[calc(100%-4px)] before:pointer-events-none before:right-[23px] before:top-0.5 before:w-3 absolute h-full right-0 -outline-offset-1"
|
|
19
|
+
}, {
|
|
20
|
+
trigger: a(() => [
|
|
21
|
+
n("div", f, [
|
|
22
|
+
p(r(d), {
|
|
23
|
+
class: "text-c-3 group-hover/info:text-c-1",
|
|
24
|
+
icon: "Info",
|
|
25
|
+
size: "sm",
|
|
26
|
+
thickness: "1.5"
|
|
27
|
+
})
|
|
28
|
+
])
|
|
29
|
+
]),
|
|
30
|
+
content: a(() => [
|
|
31
|
+
n("div", u, [
|
|
32
|
+
n("div", h, [
|
|
33
|
+
e.item.type ? (t(), o("span", b, s(e.item.type), 1)) : i("", !0),
|
|
34
|
+
e.item.format ? (t(), o("span", g, s(e.item.format), 1)) : i("", !0),
|
|
35
|
+
e.item.minimum ? (t(), o("span", _, "min: " + s(e.item.minimum), 1)) : i("", !0),
|
|
36
|
+
e.item.maximum ? (t(), o("span", y, "max: " + s(e.item.maximum), 1)) : i("", !0),
|
|
37
|
+
e.item.default ? (t(), o("span", k, "default: " + s(e.item.default), 1)) : i("", !0)
|
|
38
|
+
]),
|
|
39
|
+
e.item.description ? (t(), o("span", x, s(e.item.description), 1)) : i("", !0)
|
|
40
|
+
])
|
|
41
|
+
]),
|
|
42
|
+
_: 1
|
|
43
|
+
}));
|
|
44
|
+
}
|
|
45
|
+
});
|
|
2
46
|
export {
|
|
3
|
-
|
|
47
|
+
N as default
|
|
4
48
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestSidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebar.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestSidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebar.vue"],"names":[],"mappings":"AA2fA,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,OAAO,CAAA;CACvB,CAAC;;;;;cAMqC,MAAM;aAAO,MAAM;;;;;;;cAAnB,MAAM;aAAO,MAAM;;;;AAqwB1D,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./RequestSidebar.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const d = /* @__PURE__ */ t(o, [["__scopeId", "data-v-91db3d57"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
d as default
|
|
7
7
|
};
|