@scalar/api-client 2.0.13 → 2.0.15
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 +23 -0
- package/dist/App.vue.d.ts.map +1 -1
- package/dist/App.vue.js +44 -32
- package/dist/components/AddressBar/AddressBar.vue.js +1 -1
- package/dist/components/AddressBar/AddressBar.vue2.js +3 -3
- package/dist/components/AddressBar/AddressBarServer.vue.js +23 -23
- 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 +16 -14
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInput.vue.js +2 -2
- package/dist/components/DataTable/DataTableInput.vue2.js +63 -61
- package/dist/components/DataTable/DataTableInputEnumSelect.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInputEnumSelect.vue.js +1 -1
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +15 -17
- package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarListElementActions.vue.js +12 -12
- package/dist/components/TopNav/TopNavItem.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNavItem.vue.js +1 -1
- package/dist/components/TopNav/TopNavItem.vue2.js +10 -7
- package/dist/style.css +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 +101 -100
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.js +1 -0
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @scalar/api-client
|
|
2
2
|
|
|
3
|
+
## 2.0.15
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- f86a242: fix: data table input fixtures
|
|
8
|
+
- Updated dependencies [f86a242]
|
|
9
|
+
- @scalar/components@0.12.12
|
|
10
|
+
|
|
11
|
+
## 2.0.14
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- 6b32eee: feat: enable lint on request body
|
|
16
|
+
- 1a675be: feat: add empty state + drafts collection
|
|
17
|
+
- a1d59de: fix: update sidebar list element modal style
|
|
18
|
+
- Updated dependencies [e649da6]
|
|
19
|
+
- Updated dependencies [6b32eee]
|
|
20
|
+
- Updated dependencies [1a675be]
|
|
21
|
+
- Updated dependencies [a1d59de]
|
|
22
|
+
- @scalar/components@0.12.11
|
|
23
|
+
- @scalar/use-codemirror@0.11.5
|
|
24
|
+
- @scalar/oas-utils@0.2.13
|
|
25
|
+
|
|
3
26
|
## 2.0.13
|
|
4
27
|
|
|
5
28
|
### Patch Changes
|
package/dist/App.vue.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"App.vue.d.ts","sourceRoot":"","sources":["../src/App.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"App.vue.d.ts","sourceRoot":"","sources":["../src/App.vue"],"names":[],"mappings":";AAgQA,wBAKG;AAEH,eAAO,MAAM,sBAAsB,IAAK,CAAC;AACzC,OAAO,CAAC,MAAM,CAAC;IAEd,KAAK,uBAAuB,GAAG,gBAAgB,CAAC,OAAO,iBAAiB,EAAE,GAAG,CAAC,iBAAiB,EAAE,gBAAgB,CAAC,UAAU,CAAC,GAAG,CAAC,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;IAE1K,KAAK,aAAa,GAAG,gBAAgB,CAAC,OAAO,iBAAiB,EAAE,GAAG,CAAC,OAAO,EAAE,UAAU,CAAC,G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IACF,KAAK,0BAA0B,CAAC,CAAC,IAAI,mBAAmB,CAAC,CAAC,CAAC,SAAS,MAAM,CAAC,GACxE,CAAC,SAAS,CAAC,KAAK,EAAE,MAAM,CAAC,EAAE,GAAG,IAAI,EAAE,MAAM,CAAC,KAAK,GAAG,GACnD;SAAG,CAAC,IAAI,CAAC,GAAG,MAAM,GAAG,CAAC,GAAG,IAAI,EAAE,CAAC,KAAK,IAAI;KAAG,GAC5C,KAAK,GACL,KAAK,CAAC;IACT,KAAK,oBAAoB,CAAC,CAAC,IAAI,oBAAoB,CAClD,yBAAyB,CACxB,0BAA0B,CAAC,CAAC,CAAC,GAAG;SAC9B,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,GAAG,EAAE,GAAG;YAAE,CAAC,GAAG,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,CAAA;SAAE,GAAG,KAAK;KACtE,CACD,CACD,CAAC;IACF,KAAK,oBAAoB,CAAC,CAAC,IAAI;SAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;KAAG,GAAG,EAAE,CAAC;CAC9D;AACD,eAAO,MAAM,oBAAoB,IAAK,CAAC"}
|
package/dist/App.vue.js
CHANGED
|
@@ -1,46 +1,58 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as i, onMounted as m, watchEffect as f, onBeforeMount as d, openBlock as p, createElementBlock as u, Fragment as _, createVNode as r, createElementVNode as c, unref as n } from "vue";
|
|
2
2
|
import g from "./components/SideNav/SideNav.vue.js";
|
|
3
3
|
import h from "./components/TopNav/TopNav.vue.js";
|
|
4
|
-
import { useWorkspace as
|
|
5
|
-
import { addScalarClassesToHeadless as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
4
|
+
import { useWorkspace as x } from "./store/workspace.js";
|
|
5
|
+
import { addScalarClassesToHeadless as k } from "@scalar/components";
|
|
6
|
+
import { createWorkspace as S } from "@scalar/oas-utils/entities/workspace";
|
|
7
|
+
import { LS_KEYS as y } from "@scalar/object-utils/mutator-record";
|
|
8
|
+
import { ScalarToasts as w } from "@scalar/use-toasts";
|
|
9
|
+
import { RouterView as M } from "vue-router";
|
|
9
10
|
import { loadAllResources as b } from "./libs/local-storage.js";
|
|
10
|
-
import { useDarkModeState as
|
|
11
|
-
const B = { class: "flex min-h-0 flex-1" }, E = { class: "flex flex-1 flex-col min-w-0" }, $ = /* @__PURE__ */
|
|
11
|
+
import { useDarkModeState as v } from "./hooks/useDarkModeState.js";
|
|
12
|
+
const B = { class: "flex min-h-0 flex-1" }, E = { class: "flex flex-1 flex-col min-w-0" }, $ = /* @__PURE__ */ i({
|
|
12
13
|
__name: "App",
|
|
13
|
-
setup(
|
|
14
|
-
|
|
14
|
+
setup(R) {
|
|
15
|
+
m(() => {
|
|
15
16
|
f(() => {
|
|
16
|
-
document.body.classList.toggle("dark-mode",
|
|
17
|
+
document.body.classList.toggle("dark-mode", l.value), document.body.classList.toggle("light-mode", !l.value);
|
|
17
18
|
});
|
|
18
19
|
});
|
|
19
|
-
const { isDark:
|
|
20
|
-
return
|
|
21
|
-
if (localStorage.getItem(`${
|
|
20
|
+
const { isDark: l } = v(), t = x();
|
|
21
|
+
return d(async () => {
|
|
22
|
+
if (localStorage.getItem(`${y.WORKSPACE}default`)) {
|
|
22
23
|
console.info("Remove this before going live, but here are the stats: ");
|
|
23
|
-
const
|
|
24
|
-
let
|
|
25
|
-
for (
|
|
26
|
-
Object.prototype.hasOwnProperty.call(localStorage,
|
|
27
|
-
|
|
28
|
-
} else
|
|
29
|
-
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
|
|
24
|
+
const e = {};
|
|
25
|
+
let a = 0, s = 0, o = "";
|
|
26
|
+
for (o in localStorage)
|
|
27
|
+
Object.prototype.hasOwnProperty.call(localStorage, o) && (s = (localStorage[o].length + o.length) * 2, a += s, e[o] = (s / 1024).toFixed(2) + " KB");
|
|
28
|
+
e.Total = (a / 1024).toFixed(2) + " KB", console.table(e), b(t);
|
|
29
|
+
} else {
|
|
30
|
+
const e = S({
|
|
31
|
+
uid: "default",
|
|
32
|
+
proxyUrl: "https://proxy.scalar.com"
|
|
33
|
+
});
|
|
34
|
+
t.workspaceMutators.add(e), t.collectionMutators.add({
|
|
35
|
+
uid: "drafts",
|
|
36
|
+
spec: {
|
|
37
|
+
info: {
|
|
38
|
+
title: "Drafts"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}), t.requestMutators.add(
|
|
42
|
+
{ summary: "My First Request" },
|
|
43
|
+
"drafts"
|
|
33
44
|
);
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
45
|
+
}
|
|
46
|
+
k();
|
|
47
|
+
}), (e, a) => (p(), u(_, null, [
|
|
48
|
+
r(h),
|
|
49
|
+
c("main", B, [
|
|
50
|
+
r(g),
|
|
51
|
+
c("div", E, [
|
|
52
|
+
r(n(M))
|
|
41
53
|
])
|
|
42
54
|
]),
|
|
43
|
-
|
|
55
|
+
r(n(w))
|
|
44
56
|
], 64));
|
|
45
57
|
}
|
|
46
58
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./AddressBar.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const d = /* @__PURE__ */ r(o, [["__scopeId", "data-v-
|
|
4
|
+
const d = /* @__PURE__ */ r(o, [["__scopeId", "data-v-9d542c56"]]);
|
|
5
5
|
export {
|
|
6
6
|
d as default
|
|
7
7
|
};
|
|
@@ -9,7 +9,7 @@ import G from "../HttpMethod/HttpMethod.vue.js";
|
|
|
9
9
|
import J from "./AddressBarHistory.vue.js";
|
|
10
10
|
import X from "./AddressBarServer.vue.js";
|
|
11
11
|
import { executeRequestBus as m } from "../../libs/eventBusses/executeRequestBus.js";
|
|
12
|
-
const v = (d) => (K("data-v-
|
|
12
|
+
const v = (d) => (K("data-v-9d542c56"), d = d(), O(), d), Y = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "order-last lg:order-none lg:w-auto w-full"
|
|
15
15
|
}, Z = { class: "m-auto flex basis-1/2 flex-row items-center" }, ee = { class: "pointer-events-none absolute left-0 top-0 z-10 block h-full w-full overflow-hidden" }, te = { class: "flex gap-1" }, oe = { class: "custom-scroll scroll-timeline-x relative flex w-full" }, le = /* @__PURE__ */ v(() => /* @__PURE__ */ l("div", { class: "fade-left" }, null, -1)), ne = ["contenteditable"], se = /* @__PURE__ */ v(() => /* @__PURE__ */ l("div", { class: "fade-right" }, null, -1)), ae = /* @__PURE__ */ v(() => /* @__PURE__ */ l("span", { class: "text-xxs relative z-10 lg:flex hidden" }, "Send", -1)), _e = /* @__PURE__ */ I({
|
|
@@ -109,13 +109,13 @@ const v = (d) => (K("data-v-e358d509"), d = d(), O(), d), Y = {
|
|
|
109
109
|
]),
|
|
110
110
|
r(J, { open: a }, null, 8, ["open"]),
|
|
111
111
|
r(o(L), {
|
|
112
|
-
class: "relative h-auto shrink-0 gap-1
|
|
112
|
+
class: "relative h-auto shrink-0 gap-1 overflow-hidden pl-2 pr-2.5 py-1 z-[1]",
|
|
113
113
|
disabled: c.value,
|
|
114
114
|
onClick: n[2] || (n[2] = (s) => o(m).emit())
|
|
115
115
|
}, {
|
|
116
116
|
default: S(() => [
|
|
117
117
|
r(o(P), {
|
|
118
|
-
class: "relative z-10
|
|
118
|
+
class: "relative z-10 shrink-0",
|
|
119
119
|
icon: "Play",
|
|
120
120
|
size: "xs"
|
|
121
121
|
}),
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { defineComponent as D, computed as h, resolveComponent as U, unref as s, openBlock as
|
|
2
|
-
import { useWorkspace as
|
|
3
|
-
import { ScalarDropdown as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as D, computed as h, resolveComponent as U, unref as s, openBlock as p, createBlock as k, withCtx as a, createElementBlock as S, Fragment as A, renderList as L, createElementVNode as d, normalizeClass as N, createVNode as i, toDisplayString as v, withModifiers as R, createCommentVNode as V } from "vue";
|
|
2
|
+
import { useWorkspace as j } from "../../store/workspace.js";
|
|
3
|
+
import { ScalarDropdown as E, ScalarDropdownItem as g, ScalarIcon as C, ScalarDropdownDivider as I } from "@scalar/components";
|
|
4
|
+
const M = { class: "whitespace-nowrap text-ellipsis overflow-hidden" }, O = { class: "flex items-center justify-center h-4 w-4" }, F = /* @__PURE__ */ d("span", null, "Add Server", -1), W = {
|
|
5
5
|
key: 1,
|
|
6
6
|
class: "flex whitespace-nowrap items-center font-code lg:text-sm text-xs"
|
|
7
|
-
},
|
|
7
|
+
}, J = /* @__PURE__ */ D({
|
|
8
8
|
__name: "AddressBarServer",
|
|
9
|
-
setup(
|
|
10
|
-
const { activeCollection: l, isReadOnly: y, servers:
|
|
9
|
+
setup($) {
|
|
10
|
+
const { activeCollection: l, isReadOnly: y, servers: f, collectionMutators: b } = j(), u = h(
|
|
11
11
|
() => {
|
|
12
12
|
var e, t;
|
|
13
13
|
return (t = (e = l.value) == null ? void 0 : e.spec.serverUids) == null ? void 0 : t.map((n) => ({
|
|
14
14
|
id: n,
|
|
15
|
-
label:
|
|
15
|
+
label: f[n].url
|
|
16
16
|
}));
|
|
17
17
|
}
|
|
18
18
|
), z = (e) => {
|
|
@@ -26,33 +26,33 @@ const N = { class: "whitespace-nowrap text-ellipsis overflow-hidden" }, O = { cl
|
|
|
26
26
|
return ((t = l.value) == null ? void 0 : t.selectedServerUid) === e;
|
|
27
27
|
}, m = h(() => {
|
|
28
28
|
var c;
|
|
29
|
-
const e =
|
|
30
|
-
return t == null ? void 0 : t.replace(n, (r,
|
|
29
|
+
const e = f[((c = l.value) == null ? void 0 : c.selectedServerUid) ?? ""], t = e == null ? void 0 : e.url, n = /{\s*([\w.-]+)\s*}/g;
|
|
30
|
+
return t == null ? void 0 : t.replace(n, (r, x) => {
|
|
31
31
|
var _, w;
|
|
32
|
-
const o = (_ = e == null ? void 0 : e.variables) == null ? void 0 : _[
|
|
32
|
+
const o = (_ = e == null ? void 0 : e.variables) == null ? void 0 : _[x];
|
|
33
33
|
return (o == null ? void 0 : o.value) || (o == null ? void 0 : o.default) || ((w = o == null ? void 0 : o.enum) == null ? void 0 : w[0]) || r;
|
|
34
34
|
});
|
|
35
35
|
});
|
|
36
36
|
return (e, t) => {
|
|
37
37
|
var c;
|
|
38
38
|
const n = U("RouterLink");
|
|
39
|
-
return
|
|
39
|
+
return u.value && u.value.length > 0 && !s(y) ? (p(), k(s(E), {
|
|
40
40
|
key: 0,
|
|
41
|
-
options:
|
|
41
|
+
options: u.value,
|
|
42
42
|
resize: "",
|
|
43
43
|
teleport: "#scalar-client",
|
|
44
44
|
value: (c = s(l)) == null ? void 0 : c.selectedServerUid
|
|
45
45
|
}, {
|
|
46
46
|
items: a(() => [
|
|
47
|
-
(
|
|
47
|
+
(p(!0), S(A, null, L(u.value, (r) => (p(), k(s(g), {
|
|
48
48
|
key: r.id,
|
|
49
49
|
class: "flex !gap-1.5 group font-code text-xxs whitespace-nowrap text-ellipsis overflow-hidden",
|
|
50
50
|
value: r.id,
|
|
51
|
-
onClick: (
|
|
51
|
+
onClick: (x) => z(r.id)
|
|
52
52
|
}, {
|
|
53
53
|
default: a(() => [
|
|
54
54
|
d("div", {
|
|
55
|
-
class:
|
|
55
|
+
class: N([
|
|
56
56
|
"flex size-4 items-center justify-center rounded-full p-[3px] group-hover:shadow-border",
|
|
57
57
|
B(r.id) ? "bg-blue text-b-1" : "text-transparent"
|
|
58
58
|
])
|
|
@@ -62,11 +62,11 @@ const N = { class: "whitespace-nowrap text-ellipsis overflow-hidden" }, O = { cl
|
|
|
62
62
|
icon: "Checkmark"
|
|
63
63
|
})
|
|
64
64
|
], 2),
|
|
65
|
-
d("span",
|
|
65
|
+
d("span", M, v(r.label), 1)
|
|
66
66
|
]),
|
|
67
67
|
_: 2
|
|
68
68
|
}, 1032, ["value", "onClick"]))), 128)),
|
|
69
|
-
i(s(
|
|
69
|
+
i(s(I)),
|
|
70
70
|
i(s(g), null, {
|
|
71
71
|
default: a(() => [
|
|
72
72
|
i(n, {
|
|
@@ -80,7 +80,7 @@ const N = { class: "whitespace-nowrap text-ellipsis overflow-hidden" }, O = { cl
|
|
|
80
80
|
icon: "Add"
|
|
81
81
|
})
|
|
82
82
|
]),
|
|
83
|
-
|
|
83
|
+
F
|
|
84
84
|
]),
|
|
85
85
|
_: 1
|
|
86
86
|
})
|
|
@@ -92,15 +92,15 @@ const N = { class: "whitespace-nowrap text-ellipsis overflow-hidden" }, O = { cl
|
|
|
92
92
|
d("button", {
|
|
93
93
|
class: "font-code lg:text-sm text-xs whitespace-nowrap border border-b-3 border-solid rounded px-1.5 text-c-2 z-[1]",
|
|
94
94
|
type: "button",
|
|
95
|
-
onClick: t[0] || (t[0] =
|
|
95
|
+
onClick: t[0] || (t[0] = R(() => {
|
|
96
96
|
}, ["stop"]))
|
|
97
|
-
},
|
|
97
|
+
}, v(m.value), 1)
|
|
98
98
|
]),
|
|
99
99
|
_: 1
|
|
100
|
-
}, 8, ["options", "value"])) : (
|
|
100
|
+
}, 8, ["options", "value"])) : m.value ? (p(), S("div", W, v(m.value), 1)) : V("", !0);
|
|
101
101
|
};
|
|
102
102
|
}
|
|
103
103
|
});
|
|
104
104
|
export {
|
|
105
|
-
|
|
105
|
+
J as default
|
|
106
106
|
};
|
|
@@ -5,6 +5,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
5
5
|
error?: boolean;
|
|
6
6
|
emitOnBlur?: boolean;
|
|
7
7
|
lineNumbers?: boolean;
|
|
8
|
+
lint?: boolean;
|
|
8
9
|
language?: CodeMirrorLanguage;
|
|
9
10
|
handleFieldSubmit?: (e: string) => void;
|
|
10
11
|
handleFieldChange?: (e: string) => void;
|
|
@@ -20,6 +21,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
20
21
|
error?: boolean;
|
|
21
22
|
emitOnBlur?: boolean;
|
|
22
23
|
lineNumbers?: boolean;
|
|
24
|
+
lint?: boolean;
|
|
23
25
|
language?: CodeMirrorLanguage;
|
|
24
26
|
handleFieldSubmit?: (e: string) => void;
|
|
25
27
|
handleFieldChange?: (e: string) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CodeInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CodeInput/CodeInput.vue"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"CodeInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CodeInput/CodeInput.vue"],"names":[],"mappings":"AAAA,OAiMO,EAGL,KAAK,kBAAkB,EAExB,MAAM,wBAAwB,CAAA;;kBAUb,OAAO;gBACT,MAAM;YACV,OAAO;iBACF,OAAO;kBACN,OAAO;WACd,OAAO;eACH,kBAAkB;wBACT,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;wBACnB,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;;;;;;;;kBARzB,OAAO;gBACT,MAAM;YACV,OAAO;iBACF,OAAO;kBACN,OAAO;WACd,OAAO;eACH,kBAAkB;wBACT,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;wBACnB,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;;;;;;;;iBARzB,OAAO;gBAGR,OAAO;;AANxB,wBAoKC;AAMD,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAC7C,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KAAC,CAAC,GACvC,CAAC,CAAC,CAAC,CAAC;CACP,CAAC;AAEN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AAExD,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./CodeInput.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-0f065f8e"]]);
|
|
5
5
|
export {
|
|
6
6
|
e as default
|
|
7
7
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as B, useAttrs as _, ref as d, toRef as n, watch as b, openBlock as y, createElementBlock as C, mergeProps as F, unref as k } from "vue";
|
|
2
2
|
import { useCodeMirror as w, colorPicker as P } from "@scalar/use-codemirror";
|
|
3
3
|
import { nanoid as V } from "nanoid";
|
|
4
4
|
const v = ["id"], M = {
|
|
5
5
|
inheritAttrs: !1
|
|
6
|
-
}, R = /* @__PURE__ */
|
|
6
|
+
}, R = /* @__PURE__ */ B({
|
|
7
7
|
...M,
|
|
8
8
|
__name: "CodeInput",
|
|
9
9
|
props: {
|
|
@@ -12,6 +12,7 @@ const v = ["id"], M = {
|
|
|
12
12
|
error: { type: Boolean },
|
|
13
13
|
emitOnBlur: { type: Boolean, default: !0 },
|
|
14
14
|
lineNumbers: { type: Boolean },
|
|
15
|
+
lint: { type: Boolean },
|
|
15
16
|
language: {},
|
|
16
17
|
handleFieldSubmit: {},
|
|
17
18
|
handleFieldChange: {}
|
|
@@ -19,33 +20,34 @@ const v = ["id"], M = {
|
|
|
19
20
|
emits: ["submit", "update:modelValue"],
|
|
20
21
|
setup(c, { emit: f }) {
|
|
21
22
|
var s;
|
|
22
|
-
const o = c,
|
|
23
|
+
const o = c, l = f, r = _(), m = r.id || `id-${V()}`, a = d(!1);
|
|
23
24
|
function p(e) {
|
|
24
|
-
return o.handleFieldChange ? o.handleFieldChange(e) :
|
|
25
|
+
return o.handleFieldChange ? o.handleFieldChange(e) : l("update:modelValue", e);
|
|
25
26
|
}
|
|
26
27
|
function h(e) {
|
|
27
|
-
return o.handleFieldSubmit ? o.handleFieldSubmit(e) :
|
|
28
|
+
return o.handleFieldSubmit ? o.handleFieldSubmit(e) : l("submit", e);
|
|
28
29
|
}
|
|
29
30
|
function g(e) {
|
|
30
31
|
a.value = !1, o.emitOnBlur && o.modelValue && h(e);
|
|
31
32
|
}
|
|
32
|
-
const
|
|
33
|
-
o.colorPicker &&
|
|
34
|
-
const
|
|
33
|
+
const i = [];
|
|
34
|
+
o.colorPicker && i.push(P);
|
|
35
|
+
const u = d(null), { codeMirror: t } = w({
|
|
35
36
|
content: n(() => o.modelValue ?? ""),
|
|
36
37
|
onChange: p,
|
|
37
38
|
onFocus: () => a.value = !0,
|
|
38
39
|
onBlur: (e) => g(e),
|
|
39
|
-
codeMirrorRef:
|
|
40
|
+
codeMirrorRef: u,
|
|
40
41
|
lineNumbers: n(() => o.lineNumbers),
|
|
41
42
|
language: n(() => o.language),
|
|
42
|
-
|
|
43
|
+
lint: n(() => o.lint),
|
|
44
|
+
extensions: i
|
|
43
45
|
});
|
|
44
|
-
return (s = t.value) == null || s.focus(),
|
|
45
|
-
t.value && Object.prototype.hasOwnProperty.call(
|
|
46
|
-
}), (e, O) => (
|
|
46
|
+
return (s = t.value) == null || s.focus(), b(t, () => {
|
|
47
|
+
t.value && Object.prototype.hasOwnProperty.call(r, "autofocus") && t.value.focus();
|
|
48
|
+
}), (e, O) => (y(), C("div", F({ id: k(m) }, e.$attrs, {
|
|
47
49
|
ref_key: "codeMirrorRef",
|
|
48
|
-
ref:
|
|
50
|
+
ref: u,
|
|
49
51
|
class: ["font-code w-full whitespace-nowrap text-xs leading-[1.44]", {
|
|
50
52
|
"flow-code-input--error": e.error
|
|
51
53
|
}]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTableInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInput.vue"],"names":[],"mappings":"AAyNA,iBAAS,cAAc;
|
|
1
|
+
{"version":3,"file":"DataTableInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInput.vue"],"names":[],"mappings":"AAyNA,iBAAS,cAAc;qBA0MM,GAAG;qBACF,GAAG;kBACN,GAAG;EA4B7B;AACD,QAAA,MAAM,eAAe;SA5SZ,MAAM;WACJ,MAAM;IACb,sEAAsE;qBACrD,MAAM;eACZ,OAAO;gBACN,MAAM,GAAG,MAAM;eAChB,OAAO;WACX,MAAM,EAAE;UACT,MAAM;UACN,MAAM;;;;;;;;;;SATP,MAAM;WACJ,MAAM;IACb,sEAAsE;qBACrD,MAAM;eACZ,OAAO;gBACN,MAAM,GAAG,MAAM;eAChB,OAAO;WACX,MAAM,EAAE;UACT,MAAM;UACN,MAAM;;;;;;;;;;cAHD,OAAO;cAFP,OAAO;MA+SpB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAC7C,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KAAC,CAAC,GACvC,CAAC,CAAC,CAAC,CAAC;CACP,CAAC;AAEN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AAExD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./DataTableInput.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const e = /* @__PURE__ */ o(t, [["__scopeId", "data-v-01e08774"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default
|
|
7
7
|
};
|
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
import { defineComponent as $, ref as
|
|
2
|
-
import
|
|
3
|
-
import { ScalarIconButton as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
1
|
+
import { defineComponent as $, ref as d, computed as x, openBlock as o, createBlock as p, normalizeClass as B, withCtx as q, createElementBlock as r, renderSlot as m, createCommentVNode as s, createElementVNode as f, Fragment as C, mergeProps as S, unref as D, createVNode as _ } from "vue";
|
|
2
|
+
import F from "../../views/Environment/EnvironmentVariableDropdown.vue.js";
|
|
3
|
+
import { ScalarIconButton as I } from "@scalar/components";
|
|
4
|
+
import M from "./DataTableCell.vue.js";
|
|
5
|
+
import O from "./DataTableInputEnumSelect.vue.js";
|
|
6
6
|
const N = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "text-c-2 flex min-w-[100px] items-center border-r-1/2 pl-2 pr-0"
|
|
9
|
-
}, P = ["id", "max", "min", "readOnly", "required", "type", "value"],
|
|
9
|
+
}, P = { class: "row-1" }, E = ["id", "max", "min", "readOnly", "required", "type", "value"], H = {
|
|
10
|
+
key: 0,
|
|
11
|
+
class: "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-focus:opacity-0"
|
|
12
|
+
}, T = {
|
|
10
13
|
key: 1,
|
|
11
14
|
class: "absolute centered-y right-7 text-orange text-xs"
|
|
12
|
-
},
|
|
15
|
+
}, j = /* @__PURE__ */ $({
|
|
13
16
|
inheritAttrs: !1,
|
|
14
17
|
__name: "DataTableInput",
|
|
15
18
|
props: {
|
|
@@ -24,71 +27,70 @@ const N = {
|
|
|
24
27
|
max: {}
|
|
25
28
|
},
|
|
26
29
|
emits: ["update:modelValue", "inputFocus", "inputBlur", "selectVariable"],
|
|
27
|
-
setup(
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
+
setup(y, { emit: v }) {
|
|
31
|
+
const n = y, l = v, a = d(!0), c = d(""), u = d(!1), w = () => {
|
|
32
|
+
u.value || l("inputBlur");
|
|
30
33
|
}, h = x(
|
|
31
|
-
() =>
|
|
32
|
-
),
|
|
34
|
+
() => n.type === "password" ? a.value ? "password" : "text" : n.type ?? "text"
|
|
35
|
+
), V = (e) => {
|
|
33
36
|
const t = e.target;
|
|
34
|
-
|
|
35
|
-
},
|
|
37
|
+
c.value = t.value, l("update:modelValue", t.value);
|
|
38
|
+
}, g = (e) => {
|
|
36
39
|
l("update:modelValue", e);
|
|
37
40
|
}, k = () => {
|
|
38
|
-
|
|
41
|
+
u.value = !0;
|
|
39
42
|
}, b = () => {
|
|
40
|
-
|
|
43
|
+
u.value = !1;
|
|
41
44
|
};
|
|
42
|
-
return (e, t) => (
|
|
43
|
-
class:
|
|
45
|
+
return (e, t) => (o(), p(M, {
|
|
46
|
+
class: B(["relative row", e.containerClass])
|
|
44
47
|
}, {
|
|
45
|
-
default:
|
|
46
|
-
e.$slots.default ? (
|
|
47
|
-
|
|
48
|
-
])) :
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
"relative required after:absolute after:centered-y after:right-0 after:pt-px after:pr-2 after:text-xxs after:font-medium after:text-c-3 after:bg-b-1 after:shadow-[-8px_0_4px_var(--scalar-background-1)] group-has-[:focus]:after:hidden": e.required
|
|
52
|
-
}])
|
|
53
|
-
}, [
|
|
54
|
-
o.enum && o.enum.length ? (a(), d(F, {
|
|
48
|
+
default: q(() => [
|
|
49
|
+
e.$slots.default ? (o(), r("div", N, [
|
|
50
|
+
m(e.$slots, "default", {}, void 0, !0)
|
|
51
|
+
])) : s("", !0),
|
|
52
|
+
f("div", P, [
|
|
53
|
+
n.enum && n.enum.length ? (o(), p(O, {
|
|
55
54
|
key: 0,
|
|
56
|
-
enum:
|
|
57
|
-
modelValue:
|
|
58
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
59
|
-
}, null, 8, ["enum", "modelValue"])) : (
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
])
|
|
79
|
-
|
|
80
|
-
|
|
55
|
+
enum: n.enum,
|
|
56
|
+
modelValue: n.modelValue,
|
|
57
|
+
"onUpdate:modelValue": t[0] || (t[0] = (i) => l("update:modelValue", i))
|
|
58
|
+
}, null, 8, ["enum", "modelValue"])) : (o(), r(C, { key: 1 }, [
|
|
59
|
+
f("input", S(e.$attrs, {
|
|
60
|
+
id: e.id,
|
|
61
|
+
autocomplete: "off",
|
|
62
|
+
class: "border-none focus:text-c-1 text-c-2 min-w-0 w-full peer px-2 py-1.5 outline-none",
|
|
63
|
+
"data-1p-ignore": "",
|
|
64
|
+
max: e.max,
|
|
65
|
+
min: e.min,
|
|
66
|
+
readOnly: e.readOnly,
|
|
67
|
+
required: e.required,
|
|
68
|
+
spellcheck: "false",
|
|
69
|
+
type: h.value,
|
|
70
|
+
value: e.modelValue,
|
|
71
|
+
onBlur: w,
|
|
72
|
+
onFocus: t[1] || (t[1] = (i) => l("inputFocus")),
|
|
73
|
+
onInput: V
|
|
74
|
+
}), null, 16, E),
|
|
75
|
+
e.required ? (o(), r("div", H, " Required ")) : s("", !0)
|
|
76
|
+
], 64))
|
|
77
|
+
]),
|
|
78
|
+
e.$slots.warning ? (o(), r("div", T, [
|
|
79
|
+
m(e.$slots, "warning", {}, void 0, !0)
|
|
80
|
+
])) : s("", !0),
|
|
81
|
+
m(e.$slots, "icon", {}, void 0, !0),
|
|
82
|
+
e.type === "password" ? (o(), p(D(I), {
|
|
81
83
|
key: 2,
|
|
82
84
|
class: "-ml-.5 mr-1 h-6 w-6 self-center p-1.5",
|
|
83
|
-
icon:
|
|
84
|
-
label:
|
|
85
|
-
onClick: t[2] || (t[2] = (
|
|
86
|
-
}, null, 8, ["icon", "label"])) :
|
|
87
|
-
|
|
88
|
-
query:
|
|
85
|
+
icon: a.value ? "Show" : "Hide",
|
|
86
|
+
label: a.value ? "Show Password" : "Hide Password",
|
|
87
|
+
onClick: t[2] || (t[2] = (i) => a.value = !a.value)
|
|
88
|
+
}, null, 8, ["icon", "label"])) : s("", !0),
|
|
89
|
+
_(F, {
|
|
90
|
+
query: c.value,
|
|
89
91
|
onMousedown: k,
|
|
90
92
|
onMouseup: b,
|
|
91
|
-
onSelect:
|
|
93
|
+
onSelect: g
|
|
92
94
|
}, null, 8, ["query"])
|
|
93
95
|
]),
|
|
94
96
|
_: 3
|
|
@@ -96,5 +98,5 @@ const N = {
|
|
|
96
98
|
}
|
|
97
99
|
});
|
|
98
100
|
export {
|
|
99
|
-
|
|
101
|
+
j as default
|
|
100
102
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTableInputEnumSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInputEnumSelect.vue"],"names":[],"mappings":";gBA+Hc,MAAM,GAAG,MAAM;WACpB,MAAM,EAAE;;;;gBADH,MAAM,GAAG,MAAM;WACpB,MAAM,EAAE;;;;
|
|
1
|
+
{"version":3,"file":"DataTableInputEnumSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInputEnumSelect.vue"],"names":[],"mappings":";gBA+Hc,MAAM,GAAG,MAAM;WACpB,MAAM,EAAE;;;;gBADH,MAAM,GAAG,MAAM;WACpB,MAAM,EAAE;;;;AA8SjB,wBAOG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -45,7 +45,7 @@ const M = { class: "w-full" }, U = { class: "flex items-center justify-center h-
|
|
|
45
45
|
default: u(() => [
|
|
46
46
|
i("div", {
|
|
47
47
|
class: T([
|
|
48
|
-
"flex items-center justify-center rounded-full p-[3px] group-hover/item:shadow-border",
|
|
48
|
+
"flex items-center justify-center rounded-full p-[3px] w-4 h-4 group-hover/item:shadow-border",
|
|
49
49
|
S(e) ? "bg-blue text-b-1" : "text-transparent"
|
|
50
50
|
])
|
|
51
51
|
}, [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarListElementForm.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Sidebar/Actions/SidebarListElementForm.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SidebarListElementForm.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Sidebar/Actions/SidebarListElementForm.vue"],"names":[],"mappings":"AAsDA,iBAAS,cAAc;qBA6EM,GAAG;EAiB/B;AACD,QAAA,MAAM,eAAe;aA9GV,OAAO;YACR,MAAM;;;;;aADL,OAAO;YACR,MAAM;;;;UAoHd,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|