@scalar/api-client 2.2.8 → 2.2.10
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 +35 -0
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.js +2 -2
- package/dist/components/CodeInput/CodeInput.vue2.js +65 -65
- package/dist/components/CodeInput/codeVariableWidget.d.ts +6 -4
- package/dist/components/CodeInput/codeVariableWidget.d.ts.map +1 -1
- package/dist/components/CodeInput/codeVariableWidget.js +72 -68
- package/dist/components/DataTable/DataTable.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTable.vue.js +20 -15
- package/dist/components/DataTable/DataTableCell.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableCell.vue.js +16 -11
- package/dist/components/DataTable/DataTableHeader.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableHeader.vue.js +11 -12
- package/dist/components/DataTable/DataTableInput.vue.d.ts +2 -1
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInput.vue.js +3 -3
- package/dist/components/DataTable/DataTableInput.vue2.js +9 -9
- package/dist/components/DataTable/index.js +14 -14
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -1
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +87 -67
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +2 -2
- package/dist/components/Sidebar/SidebarList.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarList.vue.js +4 -4
- package/dist/components/Sidebar/SidebarListElement.vue.d.ts +8 -4
- package/dist/components/Sidebar/SidebarListElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarListElement.vue.js +1 -1
- package/dist/components/Sidebar/SidebarListElement.vue2.js +52 -32
- package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts +3 -0
- package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarListElementActions.vue.js +43 -31
- package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNav.vue.js +32 -31
- package/dist/layouts/App/create-api-client-app.d.ts +49 -42
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.d.ts +103 -89
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.js +31 -19
- package/dist/layouts/Web/create-api-client-web.d.ts +49 -42
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +50 -44
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/env-helpers.d.ts +9 -0
- package/dist/libs/env-helpers.d.ts.map +1 -0
- package/dist/libs/env-helpers.js +4 -0
- package/dist/libs/environment-parser.d.ts +3 -4
- package/dist/libs/environment-parser.d.ts.map +1 -1
- package/dist/libs/environment-parser.js +5 -4
- package/dist/libs/index.d.ts +1 -0
- package/dist/libs/index.d.ts.map +1 -1
- package/dist/libs/index.js +24 -22
- package/dist/libs/send-request/send-request.d.ts +5 -2
- package/dist/libs/send-request/send-request.d.ts.map +1 -1
- package/dist/libs/send-request/send-request.js +106 -104
- package/dist/routes.d.ts +11 -0
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +13 -7
- package/dist/store/active-entities.d.ts +18 -11
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/active-entities.js +108 -69
- package/dist/store/collections.d.ts +17 -15
- package/dist/store/collections.d.ts.map +1 -1
- package/dist/store/collections.js +62 -41
- package/dist/store/environment.d.ts +4 -4
- package/dist/store/import-spec.d.ts +2 -2
- package/dist/store/import-spec.d.ts.map +1 -1
- package/dist/store/index.d.ts +1 -0
- package/dist/store/index.d.ts.map +1 -1
- package/dist/store/index.js +7 -3
- package/dist/store/requests.d.ts +4 -4
- package/dist/store/router-params.d.ts +1 -1
- package/dist/store/router-params.d.ts.map +1 -1
- package/dist/store/router-params.js +7 -7
- package/dist/store/store.d.ts +49 -42
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/store.js +76 -72
- package/dist/store/workspace.d.ts +12 -12
- package/dist/store/workspace.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +1 -0
- package/dist/types/vue.d.ts +10 -0
- package/dist/types/vue.d.ts.map +1 -0
- package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue2.js +75 -70
- package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
- package/dist/views/Environment/Environment.vue2.js +308 -152
- package/dist/views/Environment/EnvironmentColorModal.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentColorModal.vue.js +20 -18
- package/dist/views/Environment/EnvironmentColors.vue.d.ts +4 -1
- package/dist/views/Environment/EnvironmentColors.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentColors.vue.js +83 -58
- package/dist/views/Environment/EnvironmentModal.vue.d.ts +7 -0
- package/dist/views/Environment/EnvironmentModal.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentModal.vue.js +119 -37
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts +4 -5
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +73 -63
- package/dist/views/Request/Request.vue.d.ts.map +1 -1
- package/dist/views/Request/Request.vue.js +2 -2
- package/dist/views/Request/Request.vue2.js +60 -61
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +185 -187
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +27 -24
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +35 -187
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts +7 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +7 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +207 -0
- package/dist/views/Request/RequestSection/{RequestAuthDataTableInput.vue.d.ts → RequestAuth/RequestAuthDataTableInput.vue.d.ts} +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts.map +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.js +43 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.d.ts +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.js +5 -134
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue2.js +176 -2
- package/dist/views/Request/RequestSection/RequestAuth/index.d.ts +2 -0
- package/dist/views/Request/RequestSection/RequestAuth/index.d.ts.map +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/index.js +4 -0
- package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebar.vue.js +2 -2
- package/dist/views/Request/RequestSidebar.vue2.js +129 -109
- package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
- package/dist/views/Request/RequestSidebarItem.vue2.js +82 -87
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +2 -2
- package/dist/views/Request/libs/auth.d.ts.map +1 -1
- package/dist/views/Request/libs/auth.js +3 -3
- package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
- package/dist/views/Servers/Servers.vue.d.ts.map +1 -1
- package/dist/views/Servers/Servers.vue2.js +9 -8
- package/package.json +21 -11
- package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue.js +0 -46
- /package/dist/views/Request/RequestSection/{RequestAuthDataTableInput.vue2.js → RequestAuth/RequestAuthDataTableInput.vue2.js} +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as ne, useCssVars as re, computed as c, ref as le, resolveComponent as ae, openBlock as
|
|
1
|
+
import { defineComponent as ne, useCssVars as re, computed as c, ref as le, resolveComponent as ae, openBlock as p, createElementBlock as w, normalizeClass as m, unref as s, createVNode as h, withCtx as g, createBlock as v, withModifiers as k, createElementVNode as l, toDisplayString as I, createCommentVNode as b, createTextVNode as B, renderSlot as oe, Fragment as ue, renderList as de } from "vue";
|
|
2
2
|
import { useActiveEntities as pe } from "../../store/active-entities.js";
|
|
3
3
|
import { ScalarButton as q, ScalarIcon as y, ScalarTooltip as fe } from "@scalar/components";
|
|
4
4
|
import { Draggable as me } from "@scalar/draggable";
|
|
5
|
-
import {
|
|
6
|
-
import { PathId as
|
|
7
|
-
import
|
|
8
|
-
import { useSidebar as
|
|
9
|
-
import { getModifiers as
|
|
10
|
-
import { useWorkspace as
|
|
11
|
-
const
|
|
5
|
+
import { useRouter as ce, RouterLink as ge } from "vue-router";
|
|
6
|
+
import { PathId as ve } from "../../routes.js";
|
|
7
|
+
import be from "../../components/HttpMethod/HttpMethod.vue.js";
|
|
8
|
+
import { useSidebar as he } from "../../hooks/useSidebar.js";
|
|
9
|
+
import { getModifiers as ye } from "../../libs/hot-keys.js";
|
|
10
|
+
import { useWorkspace as xe } from "../../store/store.js";
|
|
11
|
+
const we = { class: "flex flex-row gap-1 items-center" }, ke = { class: "relative" }, qe = { class: "flex items-start" }, Ue = ["aria-expanded"], De = { class: "flex h-5 items-center justify-center max-w-[14px]" }, Ce = { class: "flex flex-1 flex-row justify-between editable-sidebar-hover" }, Re = { class: "relative flex h-fit" }, Me = { class: "grid gap-1.5 pointer-events-none max-w-10 w-content shadow-lg rounded bg-b-1 z-100 p-2 text-xxs leading-5 z-10 text-c-1" }, Te = { class: "flex items-center text-c-2" }, Ie = { class: "text-pretty break-all" }, Ee = { key: 2 }, j = "hover:bg-sidebar-active-b indent-padding-left", We = /* @__PURE__ */ ne({
|
|
12
12
|
__name: "RequestSidebarItem",
|
|
13
13
|
props: {
|
|
14
14
|
isDraggable: { type: Boolean, default: !1 },
|
|
@@ -20,29 +20,23 @@ const xe = { class: "flex flex-row gap-1 items-center" }, we = { class: "relativ
|
|
|
20
20
|
emits: ["onDragEnd", "newTab", "openMenu"],
|
|
21
21
|
setup(V, { emit: W }) {
|
|
22
22
|
re((e) => ({
|
|
23
|
-
|
|
24
|
-
"
|
|
23
|
+
f13c722a: Q.value,
|
|
24
|
+
"04637a1a": X.value
|
|
25
25
|
}));
|
|
26
|
-
const n = V, F = W, {
|
|
27
|
-
activeCollection: Y,
|
|
28
|
-
router: H,
|
|
29
|
-
activeRequest: E,
|
|
30
|
-
activeRouterParams: L,
|
|
31
|
-
activeWorkspace: U
|
|
32
|
-
} = pe(), {
|
|
26
|
+
const n = V, F = W, { activeCollection: Y, activeRequest: E, activeRouterParams: H, activeWorkspace: U } = pe(), {
|
|
33
27
|
collections: D,
|
|
34
|
-
tags:
|
|
35
|
-
isReadOnly:
|
|
28
|
+
tags: L,
|
|
29
|
+
isReadOnly: u,
|
|
36
30
|
requests: $,
|
|
37
31
|
requestExamples: C,
|
|
38
32
|
collectionMutators: R,
|
|
39
33
|
tagMutators: z,
|
|
40
34
|
requestMutators: S,
|
|
41
35
|
requestExampleMutators: N,
|
|
42
|
-
events:
|
|
43
|
-
} =
|
|
44
|
-
var r,
|
|
45
|
-
const e = D[n.uid], t =
|
|
36
|
+
events: G
|
|
37
|
+
} = xe(), J = ce(), { collapsedSidebarFolders: M, toggleSidebarFolder: K } = he(), i = c(() => {
|
|
38
|
+
var r, f;
|
|
39
|
+
const e = D[n.uid], t = L[n.uid], a = $[n.uid], o = C[n.uid];
|
|
46
40
|
return e ? {
|
|
47
41
|
title: ((r = e.info) == null ? void 0 : r.title) ?? "Unknown title",
|
|
48
42
|
entity: e,
|
|
@@ -52,8 +46,8 @@ const xe = { class: "flex flex-row gap-1 items-center" }, we = { class: "relativ
|
|
|
52
46
|
documentUrl: e.documentUrl,
|
|
53
47
|
watchMode: e.watchMode,
|
|
54
48
|
warning: "This cannot be undone. You’re about to delete the collection and all folders and requests inside it.",
|
|
55
|
-
edit: (
|
|
56
|
-
R.edit(e.uid, "info.title",
|
|
49
|
+
edit: (d, x) => {
|
|
50
|
+
R.edit(e.uid, "info.title", d), x && R.edit(e.uid, "x-scalar-icon", x);
|
|
57
51
|
},
|
|
58
52
|
delete: () => R.delete(e, U.value)
|
|
59
53
|
} : t ? {
|
|
@@ -62,7 +56,7 @@ const xe = { class: "flex flex-row gap-1 items-center" }, we = { class: "relativ
|
|
|
62
56
|
resourceTitle: "Tag",
|
|
63
57
|
children: t.children,
|
|
64
58
|
warning: "This cannot be undone. You’re about to delete the tag and all requests inside it",
|
|
65
|
-
edit: (
|
|
59
|
+
edit: (d) => z.edit(t.uid, "name", d),
|
|
66
60
|
delete: () => z.delete(t, n.parentUids[0])
|
|
67
61
|
} : a ? {
|
|
68
62
|
title: a.summary ?? a.path,
|
|
@@ -77,8 +71,8 @@ const xe = { class: "flex flex-row gap-1 items-center" }, we = { class: "relativ
|
|
|
77
71
|
entity: a,
|
|
78
72
|
resourceTitle: "Request",
|
|
79
73
|
warning: "This cannot be undone. You’re about to delete the request.",
|
|
80
|
-
children: a.examples,
|
|
81
|
-
edit: (
|
|
74
|
+
children: a.examples.slice(1),
|
|
75
|
+
edit: (d) => S.edit(a.uid, "summary", d),
|
|
82
76
|
delete: () => S.delete(a, n.parentUids[0])
|
|
83
77
|
} : {
|
|
84
78
|
title: o.name,
|
|
@@ -90,17 +84,17 @@ const xe = { class: "flex flex-row gap-1 items-center" }, we = { class: "relativ
|
|
|
90
84
|
examples: o.uid
|
|
91
85
|
}
|
|
92
86
|
},
|
|
93
|
-
method: (
|
|
87
|
+
method: (f = $[o.requestUid]) == null ? void 0 : f.method,
|
|
94
88
|
entity: o,
|
|
95
89
|
resourceTitle: "Example",
|
|
96
90
|
warning: "This cannot be undone. You’re about to delete the example from the request.",
|
|
97
91
|
children: [],
|
|
98
|
-
edit: (
|
|
92
|
+
edit: (d) => N.edit(o.uid, "name", d),
|
|
99
93
|
delete: () => N.delete(o)
|
|
100
94
|
};
|
|
101
95
|
}), O = c(
|
|
102
96
|
() => i.value.entity.type === "collection" && i.value.title === "Drafts"
|
|
103
|
-
), Q = c(() => n.parentUids.length ?
|
|
97
|
+
), Q = c(() => n.parentUids.length ? u ? `${(n.parentUids.length - 1) * 12}px` : `${n.parentUids.length * 12}px` : "12px"), X = c(() => n.parentUids.length ? u ? `${(n.parentUids.length - 1) * 12}px` : `${n.parentUids.length * 12}px` : "0px"), Z = c(
|
|
104
98
|
() => {
|
|
105
99
|
var e;
|
|
106
100
|
return M[n.uid] || ((e = E.value) == null ? void 0 : e.uid) === n.uid && i.value.entity.examples.length > 1;
|
|
@@ -108,18 +102,18 @@ const xe = { class: "flex flex-row gap-1 items-center" }, we = { class: "relativ
|
|
|
108
102
|
), _ = c(
|
|
109
103
|
() => {
|
|
110
104
|
var e;
|
|
111
|
-
return
|
|
105
|
+
return H.value[ve.Request] === "default" && ((e = E.value) == null ? void 0 : e.uid) === n.uid;
|
|
112
106
|
}
|
|
113
107
|
), T = le(null), P = c(() => {
|
|
114
108
|
let e = 0.5, t = 0.5;
|
|
115
109
|
if (!T.value) return { ceiling: e, floor: t };
|
|
116
110
|
const { draggingItem: a } = T.value;
|
|
117
111
|
return !D[a == null ? void 0 : a.id] && i.value.entity.type === "collection" ? (e = 1, t = 0) : i.value.entity.type === "tag" && (e = 0.8, t = 0.2), { ceiling: e, floor: t };
|
|
118
|
-
}), ee = (e, t) => !(
|
|
119
|
-
e && (
|
|
112
|
+
}), ee = (e, t) => !(u || C[t.id] || D[e.id]), te = (e, t) => {
|
|
113
|
+
e && (ye(["default"]).some((r) => e[r]) ? F("newTab", t.title || "", t.entity.uid) : t.link && J.push(t.link));
|
|
120
114
|
};
|
|
121
115
|
function A() {
|
|
122
|
-
|
|
116
|
+
G.commandPalette.emit({
|
|
123
117
|
commandName: "Create Request",
|
|
124
118
|
metaData: {
|
|
125
119
|
itemUid: n.uid,
|
|
@@ -130,15 +124,15 @@ const xe = { class: "flex flex-row gap-1 items-center" }, we = { class: "relativ
|
|
|
130
124
|
const ie = c(() => {
|
|
131
125
|
const { uid: e, watchModeStatus: t } = Y.value || {};
|
|
132
126
|
return e !== i.value.entity.uid ? "text-c-3" : t === "WATCHING" ? "text-c-1" : t === "ERROR" ? "text-red" : "text-c-3";
|
|
133
|
-
}), se = c(() => i.value.title == "Drafts" && !
|
|
127
|
+
}), se = c(() => i.value.title == "Drafts" && !u && i.value.children.length > 0);
|
|
134
128
|
return (e, t) => {
|
|
135
129
|
const a = ae("RequestSidebarItem", !0);
|
|
136
|
-
return
|
|
130
|
+
return p(), w("li", {
|
|
137
131
|
class: m(["relative flex flex-row", [
|
|
138
|
-
s(
|
|
132
|
+
s(u) && e.parentUids.length > 1 || !s(u) && e.parentUids.length ? "before:bg-border before:pointer-events-none before:z-1 before:absolute before:left-[calc(.75rem_+_.5px)] before:top-0 before:h-[calc(100%_+_.5px)] last:before:h-full before:w-[.5px] mb-[.5px] last:mb-0 indent-border-line-offset" : ""
|
|
139
133
|
]])
|
|
140
134
|
}, [
|
|
141
|
-
|
|
135
|
+
h(s(me), {
|
|
142
136
|
id: i.value.entity.uid,
|
|
143
137
|
ref_key: "draggableRef",
|
|
144
138
|
ref: T,
|
|
@@ -150,10 +144,10 @@ const xe = { class: "flex flex-row gap-1 items-center" }, we = { class: "relativ
|
|
|
150
144
|
parentIds: e.parentUids,
|
|
151
145
|
onOnDragEnd: t[9] || (t[9] = (...o) => e.$emit("onDragEnd", ...o))
|
|
152
146
|
}, {
|
|
153
|
-
default:
|
|
147
|
+
default: g(() => {
|
|
154
148
|
var o;
|
|
155
149
|
return [
|
|
156
|
-
i.value.link ? (
|
|
150
|
+
i.value.link ? (p(), v(s(ge), {
|
|
157
151
|
key: 0,
|
|
158
152
|
class: "group no-underline",
|
|
159
153
|
to: i.value.link,
|
|
@@ -162,8 +156,8 @@ const xe = { class: "flex flex-row gap-1 items-center" }, we = { class: "relativ
|
|
|
162
156
|
["prevent"]
|
|
163
157
|
))
|
|
164
158
|
}, {
|
|
165
|
-
default:
|
|
166
|
-
var
|
|
159
|
+
default: g(({ isExactActive: r }) => {
|
|
160
|
+
var f, d;
|
|
167
161
|
return [
|
|
168
162
|
l("div", {
|
|
169
163
|
class: m(["relative flex min-h-8 cursor-pointer flex-row items-start justify-between gap-2 py-1.5 pr-2 rounded editable-sidebar-hover w-full", [
|
|
@@ -173,15 +167,15 @@ const xe = { class: "flex flex-row gap-1 items-center" }, we = { class: "relativ
|
|
|
173
167
|
}, [
|
|
174
168
|
l("span", {
|
|
175
169
|
class: m(["line-clamp-3 font-medium w-full pl-2 word-break-break-word", {
|
|
176
|
-
"editable-sidebar-hover-item": !s(
|
|
170
|
+
"editable-sidebar-hover-item": !s(u)
|
|
177
171
|
}])
|
|
178
172
|
}, I(i.value.title), 3),
|
|
179
|
-
l("div",
|
|
180
|
-
l("div",
|
|
181
|
-
s(
|
|
173
|
+
l("div", we, [
|
|
174
|
+
l("div", ke, [
|
|
175
|
+
s(u) ? b("", !0) : (p(), v(s(q), {
|
|
182
176
|
key: 0,
|
|
183
177
|
class: m(["px-0.5 py-0 hover:bg-b-3 opacity-0 group-hover:opacity-100 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100 absolute -translate-y-1/2 right-0 aspect-square inset-y-2/4 h-fit", {
|
|
184
|
-
flex: ((
|
|
178
|
+
flex: ((d = (f = e.menuItem) == null ? void 0 : f.item) == null ? void 0 : d.entity.uid) === i.value.entity.uid && e.menuItem.open
|
|
185
179
|
}]),
|
|
186
180
|
size: "sm",
|
|
187
181
|
type: "button",
|
|
@@ -196,8 +190,8 @@ const xe = { class: "flex flex-row gap-1 items-center" }, we = { class: "relativ
|
|
|
196
190
|
["stop", "prevent"]
|
|
197
191
|
))
|
|
198
192
|
}, {
|
|
199
|
-
default:
|
|
200
|
-
|
|
193
|
+
default: g(() => [
|
|
194
|
+
h(s(y), {
|
|
201
195
|
icon: "Ellipses",
|
|
202
196
|
size: "md"
|
|
203
197
|
})
|
|
@@ -205,35 +199,35 @@ const xe = { class: "flex flex-row gap-1 items-center" }, we = { class: "relativ
|
|
|
205
199
|
_: 1
|
|
206
200
|
}, 8, ["class"]))
|
|
207
201
|
]),
|
|
208
|
-
l("span",
|
|
202
|
+
l("span", qe, [
|
|
209
203
|
t[10] || (t[10] = B(" ")),
|
|
210
204
|
t[11] || (t[11] = l("span", { class: "sr-only" }, "HTTP Method:", -1)),
|
|
211
|
-
i.value.method ? (
|
|
205
|
+
i.value.method ? (p(), v(s(be), {
|
|
212
206
|
key: 0,
|
|
213
207
|
class: "font-bold",
|
|
214
208
|
method: i.value.method
|
|
215
|
-
}, null, 8, ["method"])) :
|
|
209
|
+
}, null, 8, ["method"])) : b("", !0)
|
|
216
210
|
])
|
|
217
211
|
])
|
|
218
212
|
], 2)
|
|
219
213
|
];
|
|
220
214
|
}),
|
|
221
215
|
_: 1
|
|
222
|
-
}, 8, ["to"])) : !s(
|
|
216
|
+
}, 8, ["to"])) : !s(u) || e.parentUids.length ? (p(), w("button", {
|
|
223
217
|
key: 1,
|
|
224
218
|
"aria-expanded": s(M)[i.value.entity.uid],
|
|
225
219
|
class: m(["hover:bg-b-2 group relative flex w-full flex-row justify-start gap-1.5 rounded p-1.5 focus-visible:z-10", j]),
|
|
226
220
|
type: "button",
|
|
227
221
|
onClick: t[4] || (t[4] = (r) => s(K)(i.value.entity.uid))
|
|
228
222
|
}, [
|
|
229
|
-
l("span",
|
|
223
|
+
l("span", De, [
|
|
230
224
|
oe(e.$slots, "leftIcon", {}, () => [
|
|
231
225
|
l("div", {
|
|
232
226
|
class: m({
|
|
233
227
|
"rotate-90": s(M)[i.value.entity.uid]
|
|
234
228
|
})
|
|
235
229
|
}, [
|
|
236
|
-
|
|
230
|
+
h(s(y), {
|
|
237
231
|
class: "text-c-3 text-sm",
|
|
238
232
|
icon: "ChevronRight",
|
|
239
233
|
size: "md"
|
|
@@ -242,20 +236,20 @@ const xe = { class: "flex flex-row gap-1 items-center" }, we = { class: "relativ
|
|
|
242
236
|
], !0),
|
|
243
237
|
t[12] || (t[12] = B(" "))
|
|
244
238
|
]),
|
|
245
|
-
l("div",
|
|
239
|
+
l("div", Ce, [
|
|
246
240
|
l("span", {
|
|
247
241
|
class: m(["line-clamp-3 font-medium text-left w-full word-break-break-word", {
|
|
248
|
-
"editable-sidebar-hover-item": !s(
|
|
242
|
+
"editable-sidebar-hover-item": !s(u)
|
|
249
243
|
}])
|
|
250
244
|
}, I(i.value.title), 3),
|
|
251
|
-
l("div",
|
|
245
|
+
l("div", Re, [
|
|
252
246
|
l("div", {
|
|
253
247
|
class: m(["flex items-center opacity-0 gap-px group-hover:opacity-100 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100 absolute -translate-y-1/2 -right-px inset-y-2/4", {
|
|
254
248
|
flex: ((o = e.menuItem.item) == null ? void 0 : o.entity.uid) === i.value.entity.uid && e.menuItem.open,
|
|
255
249
|
"!right-5": i.value.watchMode
|
|
256
250
|
}])
|
|
257
251
|
}, [
|
|
258
|
-
!s(
|
|
252
|
+
!s(u) && !O.value || O.value && se.value ? (p(), v(s(q), {
|
|
259
253
|
key: 0,
|
|
260
254
|
class: "px-0.5 py-0 hover:bg-b-3 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100 aspect-square h-fit",
|
|
261
255
|
size: "sm",
|
|
@@ -270,76 +264,77 @@ const xe = { class: "flex flex-row gap-1 items-center" }, we = { class: "relativ
|
|
|
270
264
|
["stop", "prevent"]
|
|
271
265
|
))
|
|
272
266
|
}, {
|
|
273
|
-
default:
|
|
274
|
-
|
|
267
|
+
default: g(() => [
|
|
268
|
+
h(s(y), {
|
|
275
269
|
icon: "Ellipses",
|
|
276
270
|
size: "md"
|
|
277
271
|
})
|
|
278
272
|
]),
|
|
279
273
|
_: 1
|
|
280
|
-
})) :
|
|
281
|
-
|
|
274
|
+
})) : b("", !0),
|
|
275
|
+
s(u) ? b("", !0) : (p(), v(s(q), {
|
|
276
|
+
key: 1,
|
|
282
277
|
class: "px-0.5 py-0 hover:bg-b-3 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100 aspect-square h-fit",
|
|
283
278
|
size: "sm",
|
|
284
279
|
variant: "ghost",
|
|
285
280
|
onClick: t[3] || (t[3] = k((r) => A(), ["stop", "prevent"]))
|
|
286
281
|
}, {
|
|
287
|
-
default:
|
|
288
|
-
|
|
282
|
+
default: g(() => [
|
|
283
|
+
h(s(y), {
|
|
289
284
|
icon: "Add",
|
|
290
285
|
size: "md",
|
|
291
286
|
thickness: "2"
|
|
292
287
|
})
|
|
293
288
|
]),
|
|
294
289
|
_: 1
|
|
295
|
-
})
|
|
290
|
+
}))
|
|
296
291
|
], 2),
|
|
297
|
-
i.value.watchMode ? (
|
|
292
|
+
i.value.watchMode ? (p(), v(s(fe), {
|
|
298
293
|
key: 0,
|
|
299
294
|
side: "right",
|
|
300
295
|
sideOffset: 12
|
|
301
296
|
}, {
|
|
302
|
-
trigger:
|
|
303
|
-
|
|
297
|
+
trigger: g(() => [
|
|
298
|
+
h(s(y), {
|
|
304
299
|
class: m(["text-sm", ie.value]),
|
|
305
300
|
icon: "Watch",
|
|
306
301
|
size: "md",
|
|
307
302
|
thickness: "2"
|
|
308
303
|
}, null, 8, ["class"])
|
|
309
304
|
]),
|
|
310
|
-
content:
|
|
311
|
-
l("div",
|
|
312
|
-
l("div",
|
|
313
|
-
l("p",
|
|
305
|
+
content: g(() => [
|
|
306
|
+
l("div", Me, [
|
|
307
|
+
l("div", Te, [
|
|
308
|
+
l("p", Ie, " Watching: " + I(i.value.documentUrl), 1)
|
|
314
309
|
])
|
|
315
310
|
])
|
|
316
311
|
]),
|
|
317
312
|
_: 1
|
|
318
|
-
})) :
|
|
313
|
+
})) : b("", !0),
|
|
319
314
|
t[13] || (t[13] = l("span", null, " ", -1))
|
|
320
315
|
])
|
|
321
316
|
])
|
|
322
|
-
], 8,
|
|
323
|
-
Z.value ? (
|
|
324
|
-
(
|
|
317
|
+
], 8, Ue)) : b("", !0),
|
|
318
|
+
Z.value ? (p(), w("ul", Ee, [
|
|
319
|
+
(p(!0), w(ue, null, de(i.value.children, (r) => (p(), v(a, {
|
|
325
320
|
key: r,
|
|
326
321
|
isDraggable: !s(C)[r],
|
|
327
322
|
isDroppable: ee,
|
|
328
323
|
menuItem: e.menuItem,
|
|
329
324
|
parentUids: [...e.parentUids, e.uid],
|
|
330
325
|
uid: r,
|
|
331
|
-
onNewTab: t[5] || (t[5] = (
|
|
332
|
-
onOnDragEnd: t[6] || (t[6] = (...
|
|
333
|
-
onOpenMenu: t[7] || (t[7] = (
|
|
326
|
+
onNewTab: t[5] || (t[5] = (f, d) => e.$emit("newTab", f, d)),
|
|
327
|
+
onOnDragEnd: t[6] || (t[6] = (...f) => e.$emit("onDragEnd", ...f)),
|
|
328
|
+
onOpenMenu: t[7] || (t[7] = (f) => e.$emit("openMenu", f))
|
|
334
329
|
}, null, 8, ["isDraggable", "menuItem", "parentUids", "uid"]))), 128)),
|
|
335
|
-
i.value.children.length === 0 ? (
|
|
330
|
+
i.value.children.length === 0 ? (p(), v(s(q), {
|
|
336
331
|
key: 0,
|
|
337
332
|
class: m(["mb-[.5px] flex gap-1.5 h-8 text-c-1 py-0 justify-start text-xs w-full hover:bg-b-2", e.parentUids.length ? "pl-9" : ""]),
|
|
338
333
|
variant: "ghost",
|
|
339
334
|
onClick: t[8] || (t[8] = (r) => A())
|
|
340
335
|
}, {
|
|
341
|
-
default:
|
|
342
|
-
|
|
336
|
+
default: g(() => [
|
|
337
|
+
h(s(y), {
|
|
343
338
|
class: "ml-0.5 h-2.5 w-2.5",
|
|
344
339
|
icon: "Add",
|
|
345
340
|
thickness: "3"
|
|
@@ -347,8 +342,8 @@ const xe = { class: "flex flex-row gap-1 items-center" }, we = { class: "relativ
|
|
|
347
342
|
t[14] || (t[14] = l("span", null, "Add Request", -1))
|
|
348
343
|
]),
|
|
349
344
|
_: 1
|
|
350
|
-
}, 8, ["class"])) :
|
|
351
|
-
])) :
|
|
345
|
+
}, 8, ["class"])) : b("", !0)
|
|
346
|
+
])) : b("", !0)
|
|
352
347
|
];
|
|
353
348
|
}),
|
|
354
349
|
_: 3
|
|
@@ -358,5 +353,5 @@ const xe = { class: "flex flex-row gap-1 items-center" }, we = { class: "relativ
|
|
|
358
353
|
}
|
|
359
354
|
});
|
|
360
355
|
export {
|
|
361
|
-
|
|
356
|
+
We as default
|
|
362
357
|
};
|
|
@@ -17,7 +17,7 @@ const K = { class: "relative col-1 flex-center gap-6 p-2 capitalize" }, A = {
|
|
|
17
17
|
a.commandPalette.emit({ commandName: "Create Request" });
|
|
18
18
|
}, y = (i) => {
|
|
19
19
|
i != null && i.createNew && v.name === "request" && f();
|
|
20
|
-
}, h = "2.2.
|
|
20
|
+
}, h = "2.2.10";
|
|
21
21
|
return R(() => a.hotKeys.on(y)), C(() => a.hotKeys.off(y)), (i, e) => (r(), l("div", K, [
|
|
22
22
|
o("div", {
|
|
23
23
|
class: k(["flex h-[calc(100%_-_50px)] flex-col items-center justify-center", {
|
|
@@ -73,7 +73,7 @@ const J = { class: "flex items-center text-sm w-[inherit]" }, K = { class: "font
|
|
|
73
73
|
}, 1032, ["onMousedown", "onTouchend"]),
|
|
74
74
|
_.value ? (m(), h(e(P), {
|
|
75
75
|
key: 0,
|
|
76
|
-
class: "z-
|
|
76
|
+
class: "z-overlay",
|
|
77
77
|
side: "bottom"
|
|
78
78
|
}, {
|
|
79
79
|
trigger: n(() => [
|
|
@@ -98,7 +98,7 @@ const J = { class: "flex items-center text-sm w-[inherit]" }, K = { class: "font
|
|
|
98
98
|
})
|
|
99
99
|
]),
|
|
100
100
|
content: n(() => t[6] || (t[6] = [
|
|
101
|
-
l("div", { class: "grid gap-1.5 pointer-events-none min-w-48 w-content shadow-lg rounded bg-b-1 z-
|
|
101
|
+
l("div", { class: "grid gap-1.5 pointer-events-none min-w-48 w-content shadow-lg rounded bg-b-1 z-context p-2 text-xxs leading-5 z-10 text-c-1" }, [
|
|
102
102
|
l("div", { class: "flex items-center text-c-2" }, [
|
|
103
103
|
l("span", null, "Only workspace cannot be deleted.")
|
|
104
104
|
])
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/libs/auth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAErE,mDAAmD;AACnD,eAAO,MAAM,sBAAsB,MAAO,cAAc;;;
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/libs/auth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAErE,mDAAmD;AACnD,eAAO,MAAM,sBAAsB,MAAO,cAAc;;;CAGtD,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oauth2.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/libs/oauth2.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAA;AAC3C,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"oauth2.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/libs/oauth2.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAA;AAC3C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AAGzE,qDAAqD;AACrD,KAAK,eAAe,GAAG,OAAO,CAAC,UAAU,EAAE;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,CAAA;AAEhE,KAAK,SAAS,GAAG;IACf,YAAY,EAAE,MAAM,CAAA;IACpB,aAAa,EAAE,MAAM,CAAA;IACrB,mBAAmB,EAAE,MAAM,CAAA;CAC5B,CAAA;AAmBD;;GAEG;AACH,eAAO,MAAM,qBAAqB,aACtB,MAAM,YACN,SAAS,GAAG,OAAO,KAC5B,OAAO,CAAC,MAAM,CAahB,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,SACpB,UAAU,gBAEF,MAAM,aAET,MAAM,KAChB,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CAsJ/B,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB,SACrB,eAAe,UACb,MAAM,8BAKX;IACD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,SAAS,GAAG,IAAI,CAAA;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,KACA,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CA6D/B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Servers.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Servers/Servers.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"Servers.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Servers/Servers.vue"],"names":[],"mappings":";AAqOA,wBAMG"}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { defineComponent as d, openBlock as a, createBlock as m, withCtx as e, createVNode as r, unref as n, createElementVNode as
|
|
1
|
+
import { defineComponent as d, openBlock as a, createBlock as m, withCtx as e, createVNode as r, unref as n, createElementVNode as v, createElementBlock as _, Fragment as S, renderList as x, createTextVNode as b } from "vue";
|
|
2
2
|
import k from "../../components/Sidebar/SidebarButton.vue.js";
|
|
3
3
|
import h from "../../components/Sidebar/SidebarList.vue.js";
|
|
4
4
|
import L from "../../components/Sidebar/SidebarListElement.vue.js";
|
|
5
5
|
import V from "../../components/ViewLayout/ViewLayout.vue.js";
|
|
6
6
|
import w from "../../components/ViewLayout/ViewLayoutContent.vue.js";
|
|
7
|
-
import { useActiveEntities as
|
|
8
|
-
import { serverSchema as
|
|
9
|
-
import { useRouter as
|
|
7
|
+
import { useActiveEntities as y } from "../../store/active-entities.js";
|
|
8
|
+
import { serverSchema as C } from "@scalar/oas-utils/entities/spec";
|
|
9
|
+
import { useRouter as E } from "vue-router";
|
|
10
10
|
import B from "./ServerForm.vue.js";
|
|
11
11
|
import { useWorkspace as N } from "../../store/store.js";
|
|
12
12
|
import A from "../../components/Sidebar/Sidebar.vue.js";
|
|
13
13
|
const $ = { class: "flex-1" }, J = /* @__PURE__ */ d({
|
|
14
14
|
__name: "Servers",
|
|
15
15
|
setup(g) {
|
|
16
|
-
const { activeCollection: t } =
|
|
16
|
+
const { activeCollection: t } = y(), { servers: u, serverMutators: c } = N(), { push: f } = E(), p = () => {
|
|
17
17
|
if (!t.value) return;
|
|
18
|
-
const o =
|
|
18
|
+
const o = C.parse({ url: "http://localhost" });
|
|
19
19
|
c.add(o, t.value.uid), f({
|
|
20
20
|
name: "servers",
|
|
21
21
|
params: {
|
|
@@ -27,14 +27,15 @@ const $ = { class: "flex-1" }, J = /* @__PURE__ */ d({
|
|
|
27
27
|
default: e(() => [
|
|
28
28
|
r(n(A), { title: "Servers" }, {
|
|
29
29
|
content: e(() => [
|
|
30
|
-
|
|
30
|
+
v("div", $, [
|
|
31
31
|
r(h, null, {
|
|
32
32
|
default: e(() => {
|
|
33
33
|
var l;
|
|
34
34
|
return [
|
|
35
|
-
(a(!0),
|
|
35
|
+
(a(!0), _(S, null, x((l = n(t)) == null ? void 0 : l.servers, (s) => (a(), m(L, {
|
|
36
36
|
key: s,
|
|
37
37
|
class: "text-xs",
|
|
38
|
+
type: "server",
|
|
38
39
|
variable: {
|
|
39
40
|
name: n(u)[s].url ?? "",
|
|
40
41
|
uid: s
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"rest",
|
|
19
19
|
"testing"
|
|
20
20
|
],
|
|
21
|
-
"version": "2.2.
|
|
21
|
+
"version": "2.2.10",
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">=18"
|
|
24
24
|
},
|
|
@@ -50,6 +50,16 @@
|
|
|
50
50
|
"types": "./dist/views/Request/components/index.d.ts",
|
|
51
51
|
"default": "./dist/views/Request/components/index.js"
|
|
52
52
|
},
|
|
53
|
+
"./views/Request/RequestSection/RequestAuth": {
|
|
54
|
+
"import": "./dist/views/Request/RequestSection/RequestAuth/index.js",
|
|
55
|
+
"types": "./dist/views/Request/RequestSection/RequestAuth/index.d.ts",
|
|
56
|
+
"default": "./dist/views/Request/RequestSection/RequestAuth/index.js"
|
|
57
|
+
},
|
|
58
|
+
"./types": {
|
|
59
|
+
"import": "./dist/types/index.js",
|
|
60
|
+
"types": "./dist/types/index.d.ts",
|
|
61
|
+
"default": "./dist/types/index.js"
|
|
62
|
+
},
|
|
53
63
|
"./store": {
|
|
54
64
|
"import": "./dist/store/index.js",
|
|
55
65
|
"types": "./dist/store/index.d.ts",
|
|
@@ -159,21 +169,21 @@
|
|
|
159
169
|
"whatwg-mimetype": "^4.0.0",
|
|
160
170
|
"yaml": "^2.4.5",
|
|
161
171
|
"zod": "^3.23.8",
|
|
162
|
-
"@scalar/components": "0.13.
|
|
163
|
-
"@scalar/
|
|
164
|
-
"@scalar/icons": "0.1.2",
|
|
165
|
-
"@scalar/import": "0.2.3",
|
|
166
|
-
"@scalar/oas-utils": "0.2.85",
|
|
172
|
+
"@scalar/components": "0.13.4",
|
|
173
|
+
"@scalar/oas-utils": "0.2.86",
|
|
167
174
|
"@scalar/object-utils": "1.1.12",
|
|
168
|
-
"@scalar/
|
|
175
|
+
"@scalar/draggable": "0.1.7",
|
|
176
|
+
"@scalar/import": "0.2.5",
|
|
177
|
+
"@scalar/openapi-parser": "0.9.0",
|
|
169
178
|
"@scalar/openapi-types": "0.1.5",
|
|
179
|
+
"@scalar/icons": "0.1.2",
|
|
180
|
+
"@scalar/postman-to-openapi": "0.1.9",
|
|
170
181
|
"@scalar/themes": "0.9.54",
|
|
171
182
|
"@scalar/types": "0.0.23",
|
|
172
|
-
"@scalar/use-codemirror": "0.11.
|
|
173
|
-
"@scalar/postman-to-openapi": "0.1.8",
|
|
183
|
+
"@scalar/use-codemirror": "0.11.48",
|
|
174
184
|
"@scalar/use-hooks": "0.1.7",
|
|
175
|
-
"@scalar/use-
|
|
176
|
-
"@scalar/use-
|
|
185
|
+
"@scalar/use-tooltip": "1.0.4",
|
|
186
|
+
"@scalar/use-toasts": "0.7.7"
|
|
177
187
|
},
|
|
178
188
|
"devDependencies": {
|
|
179
189
|
"@types/js-cookie": "^3.0.6",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RequestAuthDataTableInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestAuthDataTableInput.vue"],"names":[],"mappings":"AAoDA,KAAK,WAAW,GAAG;IACf,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,EAAE,MAAM,GAAG,MAAM,CAAA;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAC;AAqBJ,iBAAS,cAAc;WA4GT,OAAO,IAA6B;;yBATpB,GAAG;sBACN,GAAG;;;;EAa7B;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;cAtJN,OAAO;cAEP,OAAO;6EA6JpB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { defineComponent as s, openBlock as i, createBlock as p, mergeProps as m, withCtx as a, createElementVNode as f, renderSlot as r } from "vue";
|
|
2
|
-
import V from "../../../components/DataTable/DataTableInput.vue.js";
|
|
3
|
-
const y = ["for"], B = /* @__PURE__ */ s({
|
|
4
|
-
__name: "RequestAuthDataTableInput",
|
|
5
|
-
props: {
|
|
6
|
-
id: {},
|
|
7
|
-
type: {},
|
|
8
|
-
containerClass: {},
|
|
9
|
-
required: { type: Boolean, default: !1 },
|
|
10
|
-
modelValue: {},
|
|
11
|
-
readOnly: { type: Boolean, default: !1 }
|
|
12
|
-
},
|
|
13
|
-
emits: ["update:modelValue", "inputFocus", "inputBlur", "selectVariable"],
|
|
14
|
-
setup(u, { emit: d }) {
|
|
15
|
-
const e = u, o = d;
|
|
16
|
-
return (n, t) => (i(), p(V, m({
|
|
17
|
-
id: e.id,
|
|
18
|
-
canAddCustomEnumValue: !e.readOnly,
|
|
19
|
-
containerClass: e.containerClass,
|
|
20
|
-
modelValue: e.modelValue,
|
|
21
|
-
readOnly: e.readOnly,
|
|
22
|
-
required: e.required,
|
|
23
|
-
type: e.type
|
|
24
|
-
}, n.$attrs, {
|
|
25
|
-
onInputBlur: t[0] || (t[0] = (l) => o("inputBlur")),
|
|
26
|
-
onInputFocus: t[1] || (t[1] = (l) => o("inputFocus")),
|
|
27
|
-
onSelectVariable: t[2] || (t[2] = (l) => o("selectVariable", l)),
|
|
28
|
-
"onUpdate:modelValue": t[3] || (t[3] = (l) => o("update:modelValue", l))
|
|
29
|
-
}), {
|
|
30
|
-
default: a(() => [
|
|
31
|
-
f("label", {
|
|
32
|
-
for: e.id
|
|
33
|
-
}, [
|
|
34
|
-
r(n.$slots, "default")
|
|
35
|
-
], 8, y)
|
|
36
|
-
]),
|
|
37
|
-
icon: a(() => [
|
|
38
|
-
r(n.$slots, "icon")
|
|
39
|
-
]),
|
|
40
|
-
_: 3
|
|
41
|
-
}, 16, ["id", "canAddCustomEnumValue", "containerClass", "modelValue", "readOnly", "required", "type"]));
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
export {
|
|
45
|
-
B as default
|
|
46
|
-
};
|