@scalar/api-client 2.2.35 → 2.2.37
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 +22 -0
- package/dist/components/AddressBar/AddressBarHistory.vue.js +1 -1
- package/dist/components/AddressBar/AddressBarHistory.vue2.js +18 -18
- package/dist/components/CodeInput/CodeInput.vue.d.ts +3 -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 +114 -108
- 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.map +1 -1
- package/dist/components/DataTable/DataTableInputSelect.vue.js +43 -43
- package/dist/components/Form/Form.vue.d.ts.map +1 -1
- package/dist/components/Form/Form.vue.js +3 -3
- package/dist/components/Sidebar/SidebarListElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarListElement.vue.js +1 -1
- package/dist/components/TopNav/TopNav.vue.js +27 -27
- package/dist/layouts/App/create-api-client-app.d.ts +4 -58
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.d.ts +8 -116
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.d.ts +4 -58
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +4 -58
- package/dist/libs/create-client.d.ts.map +1 -1
- 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.map +1 -1
- package/dist/store/active-entities.js +15 -12
- 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/store.d.ts +4 -58
- package/dist/store/store.d.ts.map +1 -1
- 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/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/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 +90 -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 +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +168 -130
- 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/ResponseSection/ResponseCookies.vue.js +19 -17
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +31 -31
- 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/package.json +11 -13
- package/dist/views/Cookies/CookieRaw.vue.js +0 -28
- package/dist/views/Cookies/CookieRaw.vue2.js +0 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @scalar/api-client
|
|
2
2
|
|
|
3
|
+
## 2.2.37
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 9276103: fix: add back in using index as a key in a couple places
|
|
8
|
+
- de6cd98: feat: adds query parameters array support
|
|
9
|
+
|
|
10
|
+
## 2.2.36
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- ca381b6: fix: avoids index as a key in list rendering
|
|
15
|
+
- c803e2d: feat: cookies 🍪
|
|
16
|
+
- ca381b6: fix: updates param tooltip function and style
|
|
17
|
+
- Updated dependencies [c803e2d]
|
|
18
|
+
- Updated dependencies [aac6c86]
|
|
19
|
+
- @scalar/oas-utils@0.2.99
|
|
20
|
+
- @scalar/components@0.13.16
|
|
21
|
+
- @scalar/import@0.2.19
|
|
22
|
+
- @scalar/postman-to-openapi@0.1.22
|
|
23
|
+
- @scalar/use-codemirror@0.11.61
|
|
24
|
+
|
|
3
25
|
## 2.2.35
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./AddressBarHistory.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-881da974"]]);
|
|
5
5
|
export {
|
|
6
6
|
d as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as C, computed as q, openBlock as u, createElementBlock as
|
|
1
|
+
import { defineComponent as C, computed as q, openBlock as u, createElementBlock as f, Fragment as b, createBlock as i, unref as o, withCtx as c, createVNode as x, createCommentVNode as h, createElementVNode as s, normalizeClass as v, renderList as B, toDisplayString as l } from "vue";
|
|
2
2
|
import { formatMs as H } from "../../libs/formatters.js";
|
|
3
|
-
import { useActiveEntities as
|
|
4
|
-
import { ListboxButton as
|
|
3
|
+
import { useActiveEntities as E } from "../../store/active-entities.js";
|
|
4
|
+
import { ListboxButton as L, ListboxOptions as S, ListboxOption as y } from "@headlessui/vue";
|
|
5
5
|
import { ScalarIcon as z } from "@scalar/components";
|
|
6
6
|
import { httpStatusCodes as M } from "@scalar/oas-utils/helpers";
|
|
7
7
|
import { useRouter as N } from "vue-router";
|
|
@@ -14,23 +14,23 @@ const A = { class: "min-w-0" }, I = { class: "min-w-0 truncate text-c-1" }, T =
|
|
|
14
14
|
open: { type: Boolean }
|
|
15
15
|
},
|
|
16
16
|
setup(O) {
|
|
17
|
-
const { activeRequest: d } =
|
|
18
|
-
() =>
|
|
17
|
+
const { activeRequest: d } = E(), { requestHistory: g, requestExampleMutators: k } = $(), p = N(), m = q(
|
|
18
|
+
() => g.filter((t) => {
|
|
19
19
|
var r;
|
|
20
20
|
return t.request.requestUid === ((r = d.value) == null ? void 0 : r.uid);
|
|
21
21
|
}).slice().reverse()
|
|
22
22
|
);
|
|
23
|
-
function
|
|
23
|
+
function _(t) {
|
|
24
24
|
var n;
|
|
25
25
|
const r = p.currentRoute.value.params.workspace;
|
|
26
26
|
((n = d.value) == null ? void 0 : n.uid) !== t.request.requestUid && p.push(
|
|
27
27
|
`/workspace/${r}/request/${t.request.requestUid}`
|
|
28
|
-
),
|
|
28
|
+
), k.set({ ...t.request });
|
|
29
29
|
}
|
|
30
30
|
return (t, r) => {
|
|
31
31
|
var n;
|
|
32
|
-
return u(), b
|
|
33
|
-
(n = m.value) != null && n.length ? (u(), i(o(
|
|
32
|
+
return u(), f(b, null, [
|
|
33
|
+
(n = m.value) != null && n.length ? (u(), i(o(L), {
|
|
34
34
|
key: 0,
|
|
35
35
|
class: "addressbar-history-button mr-1 rounded-lg p-1.5 text-c-3 focus:text-c-1"
|
|
36
36
|
}, {
|
|
@@ -42,20 +42,20 @@ const A = { class: "min-w-0" }, I = { class: "min-w-0 truncate text-c-1" }, T =
|
|
|
42
42
|
})
|
|
43
43
|
]),
|
|
44
44
|
_: 1
|
|
45
|
-
})) :
|
|
45
|
+
})) : h("", !0),
|
|
46
46
|
s("div", {
|
|
47
|
-
class:
|
|
47
|
+
class: v([
|
|
48
48
|
"absolute bg-white left-0 top-8 w-full rounded-lg before:pointer-events-none before:absolute before:left-0 before:-top-8 before:h-[calc(100%+32px)] before:w-full before:rounded-lg z-context",
|
|
49
49
|
{ "before:shadow-lg": t.open }
|
|
50
50
|
])
|
|
51
51
|
}, [
|
|
52
|
-
x(o(
|
|
52
|
+
x(o(S), { class: "bg-b-1 border-t custom-scroll max-h-[300px] rounded-b-lg p-[3px] grid grid-cols-[44px,1fr,repeat(3,auto)] items-center" }, {
|
|
53
53
|
default: c(() => [
|
|
54
|
-
(u(!0), b
|
|
55
|
-
key:
|
|
54
|
+
(u(!0), f(b, null, B(m.value, (e, w) => (u(), i(o(y), {
|
|
55
|
+
key: e.timestamp,
|
|
56
56
|
class: "contents font-code text-sm *:rounded-none first:*:rounded-l last:*:rounded-r *:h-8 *:ui-active:bg-b-2 *:flex *:items-center *:cursor-pointer *:px-1.5 text-c-2 font-medium",
|
|
57
|
-
value:
|
|
58
|
-
onClick: (a) =>
|
|
57
|
+
value: w,
|
|
58
|
+
onClick: (a) => _(e)
|
|
59
59
|
}, {
|
|
60
60
|
default: c(() => {
|
|
61
61
|
var a;
|
|
@@ -64,13 +64,13 @@ const A = { class: "min-w-0" }, I = { class: "min-w-0 truncate text-c-1" }, T =
|
|
|
64
64
|
key: 0,
|
|
65
65
|
class: "text-[11px]",
|
|
66
66
|
method: e.response.method
|
|
67
|
-
}, null, 8, ["method"])) :
|
|
67
|
+
}, null, 8, ["method"])) : h("", !0),
|
|
68
68
|
s("div", A, [
|
|
69
69
|
s("div", I, l(e.response.path), 1)
|
|
70
70
|
]),
|
|
71
71
|
s("div", null, l(o(H)(e.response.duration)), 1),
|
|
72
72
|
s("div", {
|
|
73
|
-
class:
|
|
73
|
+
class: v([o(V)(e.response.status).color])
|
|
74
74
|
}, l(e.response.status), 3),
|
|
75
75
|
s("div", null, l((a = o(M)[e.response.status]) == null ? void 0 : a.name), 1)
|
|
76
76
|
];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type CodeMirrorLanguage } from '@scalar/use-codemirror';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
3
3
|
colorPicker?: boolean;
|
|
4
|
+
disabled?: boolean;
|
|
4
5
|
modelValue: string | number;
|
|
5
6
|
error?: boolean;
|
|
6
7
|
emitOnBlur?: boolean;
|
|
@@ -29,6 +30,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
29
30
|
curl: (v: string) => any;
|
|
30
31
|
}, string, import("vue").PublicProps, Readonly<{
|
|
31
32
|
colorPicker?: boolean;
|
|
33
|
+
disabled?: boolean;
|
|
32
34
|
modelValue: string | number;
|
|
33
35
|
error?: boolean;
|
|
34
36
|
emitOnBlur?: boolean;
|
|
@@ -54,6 +56,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
54
56
|
"onUpdate:modelValue"?: ((v: string) => any) | undefined;
|
|
55
57
|
onCurl?: ((v: string) => any) | undefined;
|
|
56
58
|
}>, {
|
|
59
|
+
disabled: boolean;
|
|
57
60
|
emitOnBlur: boolean;
|
|
58
61
|
colorPicker: boolean;
|
|
59
62
|
disableTabIndent: boolean;
|
|
@@ -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,OAqdO,EAGL,KAAK,kBAAkB,EAGxB,MAAM,wBAAwB,CAAA;;kBAkBb,OAAO;eACV,OAAO;gBACN,MAAM,GAAG,MAAM;YACnB,OAAO;iBACF,OAAO;kBACN,OAAO;WACd,OAAO;uBACK,OAAO;eACf,kBAAkB;wBACT,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;wBACnB,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;kBACzB,MAAM;eACT,OAAO;mBACH,OAAO;2BACC,OAAO;WACvB,MAAM,EAAE;WACR,MAAM;eACF,OAAO;oBACF,OAAO;iBACV,OAAO;iBACP,OAAO;cACV,MAAM,GAAG,MAAM;;;;;;;;kBArBX,OAAO;eACV,OAAO;gBACN,MAAM,GAAG,MAAM;YACnB,OAAO;iBACF,OAAO;kBACN,OAAO;WACd,OAAO;uBACK,OAAO;eACf,kBAAkB;wBACT,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;wBACnB,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;kBACzB,MAAM;eACT,OAAO;mBACH,OAAO;2BACC,OAAO;WACvB,MAAM,EAAE;WACR,MAAM;eACF,OAAO;oBACF,OAAO;iBACV,OAAO;iBACP,OAAO;cACV,MAAM,GAAG,MAAM;;;;;;cApBd,OAAO;gBAGL,OAAO;iBAJN,OAAO;sBAOF,OAAO;kBAMX,OAAO;0BACC,OAAO;cAGnB,OAAO;mBACF,OAAO;gBAEV,OAAO;;qBAwaM,GAAG;kBACN,GAAG;;AAhc9B,wBA4fC;AAgBD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -2,7 +2,7 @@ import o from "./CodeInput.vue2.js";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
5
|
+
const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-492fdbc8"]]);
|
|
6
6
|
export {
|
|
7
7
|
_ as default
|
|
8
8
|
};
|
|
@@ -1,30 +1,34 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useCodeMirror as
|
|
3
|
-
import { nanoid as
|
|
4
|
-
import
|
|
5
|
-
import { pillPlugin as te, backspaceCommand as
|
|
6
|
-
import
|
|
7
|
-
import { useClipboard as
|
|
8
|
-
import { ScalarIcon as
|
|
9
|
-
import { prettyPrintJson as
|
|
1
|
+
import { defineComponent as _, useAttrs as J, ref as i, toRef as s, watch as L, computed as Q, openBlock as n, createElementBlock as u, Fragment as G, createElementVNode as h, toDisplayString as H, createBlock as w, mergeProps as X, unref as a, withKeys as V, withModifiers as $, createVNode as Y, createCommentVNode as c, renderSlot as q } from "vue";
|
|
2
|
+
import { useCodeMirror as Z, useDropdown as ee, colorPicker as oe } from "@scalar/use-codemirror";
|
|
3
|
+
import { nanoid as le } from "nanoid";
|
|
4
|
+
import R from "../DataTable/DataTableInputSelect.vue.js";
|
|
5
|
+
import { pillPlugin as te, backspaceCommand as ne } from "./codeVariableWidget.js";
|
|
6
|
+
import ae from "../../views/Environment/EnvironmentVariableDropdown.vue.js";
|
|
7
|
+
import { useClipboard as re } from "@scalar/use-hooks/useClipboard";
|
|
8
|
+
import { ScalarIcon as se } from "@scalar/components";
|
|
9
|
+
import { prettyPrintJson as ie } from "@scalar/oas-utils/helpers";
|
|
10
10
|
import { useActiveEntities as ue } from "../../store/active-entities.js";
|
|
11
|
-
import { useWorkspace as
|
|
12
|
-
const
|
|
11
|
+
import { useWorkspace as de } from "../../store/store.js";
|
|
12
|
+
const pe = {
|
|
13
|
+
key: 0,
|
|
14
|
+
class: "flex items-center justify-center p-2"
|
|
15
|
+
}, fe = { class: "text-c-2 text-sm" }, ce = ["id"], me = {
|
|
13
16
|
key: 0,
|
|
14
17
|
class: "scalar-code-copy z-context"
|
|
15
|
-
},
|
|
16
|
-
key: 3,
|
|
17
|
-
class: "absolute centered-y right-7 text-orange text-xs"
|
|
18
|
-
}, fe = {
|
|
18
|
+
}, ye = {
|
|
19
19
|
key: 4,
|
|
20
|
+
class: "absolute centered-y right-7 text-orange text-xs"
|
|
21
|
+
}, be = {
|
|
22
|
+
key: 5,
|
|
20
23
|
class: "required absolute centered-y right-0 pt-px pr-2 text-xxs text-c-3 bg-b-1 shadow-[-8px_0_4px_var(--scalar-background-1)] opacity-100 duration-150 transition-opacity peer-has-[.cm-focused]:opacity-0 pointer-events-none"
|
|
21
|
-
},
|
|
24
|
+
}, ve = {
|
|
22
25
|
inheritAttrs: !1
|
|
23
|
-
},
|
|
24
|
-
...
|
|
26
|
+
}, Ee = /* @__PURE__ */ _({
|
|
27
|
+
...ve,
|
|
25
28
|
__name: "CodeInput",
|
|
26
29
|
props: {
|
|
27
30
|
colorPicker: { type: Boolean, default: !1 },
|
|
31
|
+
disabled: { type: Boolean, default: !1 },
|
|
28
32
|
modelValue: {},
|
|
29
33
|
error: { type: Boolean },
|
|
30
34
|
emitOnBlur: { type: Boolean, default: !0 },
|
|
@@ -47,139 +51,141 @@ const de = ["id"], pe = {
|
|
|
47
51
|
default: {}
|
|
48
52
|
},
|
|
49
53
|
emits: ["submit", "update:modelValue", "curl"],
|
|
50
|
-
setup(
|
|
51
|
-
var
|
|
52
|
-
const
|
|
53
|
-
function
|
|
54
|
-
var
|
|
55
|
-
return
|
|
54
|
+
setup(x, { expose: N, emit: O }) {
|
|
55
|
+
var F;
|
|
56
|
+
const o = x, d = O, g = J(), A = g.id || `id-${le()}`, B = i(!1), m = i(!1), k = i(""), C = i({ left: 0, top: 0 }), f = i(null), { activeEnvVariables: S, activeEnvironment: y, activeWorkspace: I } = ue(), { isReadOnly: P } = de(), { copyToClipboard: K } = re();
|
|
57
|
+
function M(e) {
|
|
58
|
+
var l;
|
|
59
|
+
return e === o.modelValue ? null : o.importCurl && e.trim().toLowerCase().startsWith("curl") ? (d("curl", e), (l = r.value) == null || l.dispatch({
|
|
56
60
|
changes: {
|
|
57
61
|
from: 0,
|
|
58
|
-
to:
|
|
59
|
-
insert: String(
|
|
62
|
+
to: r.value.state.doc.length,
|
|
63
|
+
insert: String(o.modelValue)
|
|
60
64
|
}
|
|
61
|
-
}), null) :
|
|
65
|
+
}), null) : o.handleFieldChange ? o.handleFieldChange(e) : d("update:modelValue", e);
|
|
62
66
|
}
|
|
63
|
-
function
|
|
64
|
-
return
|
|
67
|
+
function T(e) {
|
|
68
|
+
return o.handleFieldSubmit ? o.handleFieldSubmit(e) : d("submit", e);
|
|
65
69
|
}
|
|
66
|
-
function
|
|
67
|
-
|
|
70
|
+
function W(e) {
|
|
71
|
+
B.value = !1, o.emitOnBlur && o.modelValue && T(e);
|
|
68
72
|
}
|
|
69
|
-
const
|
|
70
|
-
|
|
73
|
+
const b = [];
|
|
74
|
+
o.colorPicker && b.push(oe), b.push(
|
|
71
75
|
te({
|
|
72
|
-
environment:
|
|
73
|
-
envVariables:
|
|
74
|
-
workspace:
|
|
75
|
-
isReadOnly:
|
|
76
|
+
environment: y.value,
|
|
77
|
+
envVariables: S.value,
|
|
78
|
+
workspace: I.value,
|
|
79
|
+
isReadOnly: P
|
|
76
80
|
}),
|
|
77
|
-
|
|
81
|
+
ne
|
|
78
82
|
);
|
|
79
|
-
const
|
|
80
|
-
content:
|
|
81
|
-
() =>
|
|
83
|
+
const D = i(null), { codeMirror: r } = Z({
|
|
84
|
+
content: s(
|
|
85
|
+
() => o.modelValue !== void 0 ? String(o.modelValue) : ""
|
|
82
86
|
),
|
|
83
|
-
onChange: (
|
|
84
|
-
|
|
87
|
+
onChange: (e) => {
|
|
88
|
+
M(e), z();
|
|
85
89
|
},
|
|
86
|
-
onFocus: () =>
|
|
87
|
-
onBlur: (
|
|
88
|
-
codeMirrorRef:
|
|
89
|
-
disableTabIndent:
|
|
90
|
-
disableEnter:
|
|
91
|
-
disableCloseBrackets:
|
|
92
|
-
lineNumbers:
|
|
93
|
-
language:
|
|
94
|
-
lint:
|
|
95
|
-
extensions:
|
|
96
|
-
placeholder:
|
|
90
|
+
onFocus: () => B.value = !0,
|
|
91
|
+
onBlur: (e) => W(e),
|
|
92
|
+
codeMirrorRef: D,
|
|
93
|
+
disableTabIndent: s(() => o.disableTabIndent),
|
|
94
|
+
disableEnter: s(() => o.disableEnter),
|
|
95
|
+
disableCloseBrackets: s(() => o.disableCloseBrackets),
|
|
96
|
+
lineNumbers: s(() => o.lineNumbers),
|
|
97
|
+
language: s(() => o.language),
|
|
98
|
+
lint: s(() => o.lint),
|
|
99
|
+
extensions: b,
|
|
100
|
+
placeholder: s(() => o.placeholder)
|
|
97
101
|
});
|
|
98
|
-
(
|
|
99
|
-
|
|
102
|
+
(F = r.value) == null || F.focus(), L(r, () => {
|
|
103
|
+
r.value && Object.prototype.hasOwnProperty.call(g, "autofocus") && r.value.focus();
|
|
100
104
|
});
|
|
101
|
-
const { handleDropdownSelect:
|
|
102
|
-
codeMirror:
|
|
103
|
-
query:
|
|
105
|
+
const { handleDropdownSelect: j, updateDropdownVisibility: z } = ee({
|
|
106
|
+
codeMirror: r,
|
|
107
|
+
query: k,
|
|
104
108
|
showDropdown: m,
|
|
105
109
|
dropdownPosition: C
|
|
106
110
|
}), U = Q(() => {
|
|
107
|
-
var
|
|
108
|
-
return
|
|
111
|
+
var e;
|
|
112
|
+
return o.type === "boolean" || (e = o.type) != null && e.includes("boolean") || o.nullable ? ["true", "false", "null"] : ["true", "false"];
|
|
109
113
|
});
|
|
110
114
|
N({
|
|
111
115
|
focus: () => {
|
|
112
|
-
var
|
|
113
|
-
(
|
|
116
|
+
var e;
|
|
117
|
+
(e = r.value) == null || e.focus();
|
|
114
118
|
}
|
|
115
119
|
});
|
|
116
|
-
const v = (
|
|
117
|
-
var
|
|
118
|
-
m.value && (
|
|
120
|
+
const v = (e, l) => {
|
|
121
|
+
var p, t, E;
|
|
122
|
+
m.value && (e === "down" ? (l.preventDefault(), (p = f.value) == null || p.handleArrowKey("down")) : e === "up" ? (l.preventDefault(), (t = f.value) == null || t.handleArrowKey("up")) : e === "enter" && (l.preventDefault(), (E = f.value) == null || E.handleSelect()));
|
|
119
123
|
};
|
|
120
|
-
return (
|
|
121
|
-
var
|
|
122
|
-
return
|
|
123
|
-
e.
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
modelValue: e.modelValue,
|
|
127
|
-
value: e.enum,
|
|
128
|
-
"onUpdate:modelValue": t[0] || (t[0] = (l) => i("update:modelValue", l))
|
|
129
|
-
}, null, 8, ["default", "modelValue", "value"])) : e.type === "boolean" || (d = e.type) != null && d.includes("boolean") ? (s(), h(q, {
|
|
124
|
+
return (e, l) => {
|
|
125
|
+
var p;
|
|
126
|
+
return n(), u(G, null, [
|
|
127
|
+
e.disabled ? (n(), u("div", pe, [
|
|
128
|
+
h("span", fe, H(e.modelValue), 1)
|
|
129
|
+
])) : o.enum && o.enum.length ? (n(), w(R, {
|
|
130
130
|
key: 1,
|
|
131
|
-
default:
|
|
131
|
+
default: o.default,
|
|
132
132
|
modelValue: e.modelValue,
|
|
133
|
-
value:
|
|
134
|
-
"onUpdate:modelValue":
|
|
135
|
-
}, null, 8, ["default", "modelValue", "value"])) : (
|
|
133
|
+
value: o.enum,
|
|
134
|
+
"onUpdate:modelValue": l[0] || (l[0] = (t) => d("update:modelValue", t))
|
|
135
|
+
}, null, 8, ["default", "modelValue", "value"])) : e.type === "boolean" || (p = e.type) != null && p.includes("boolean") ? (n(), w(R, {
|
|
136
136
|
key: 2,
|
|
137
|
-
|
|
138
|
-
|
|
137
|
+
default: o.default,
|
|
138
|
+
modelValue: e.modelValue,
|
|
139
|
+
value: U.value,
|
|
140
|
+
"onUpdate:modelValue": l[1] || (l[1] = (t) => d("update:modelValue", t))
|
|
141
|
+
}, null, 8, ["default", "modelValue", "value"])) : (n(), u("div", X({
|
|
142
|
+
key: 3,
|
|
143
|
+
id: a(A)
|
|
144
|
+
}, e.$attrs, {
|
|
139
145
|
ref_key: "codeMirrorRef",
|
|
140
|
-
ref:
|
|
146
|
+
ref: D,
|
|
141
147
|
class: ["peer font-code w-full whitespace-nowrap overflow-hidden text-xs leading-[1.44] relative has-[:focus-visible]:outline has-[:focus-visible]:rounded-[4px] -outline-offset-2", {
|
|
142
|
-
"flow-code-input--error":
|
|
148
|
+
"flow-code-input--error": e.error
|
|
143
149
|
}],
|
|
144
150
|
onKeydown: [
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
151
|
+
l[3] || (l[3] = V($((t) => v("down", t), ["stop"]), ["down"])),
|
|
152
|
+
l[4] || (l[4] = V((t) => v("enter", t), ["enter"])),
|
|
153
|
+
l[5] || (l[5] = V($((t) => v("up", t), ["stop"]), ["up"]))
|
|
148
154
|
]
|
|
149
155
|
}), [
|
|
150
|
-
|
|
151
|
-
|
|
156
|
+
e.isCopyable ? (n(), u("div", me, [
|
|
157
|
+
h("button", {
|
|
152
158
|
class: "copy-button",
|
|
153
159
|
type: "button",
|
|
154
|
-
onClick:
|
|
160
|
+
onClick: l[2] || (l[2] = (t) => a(K)(a(ie)(e.modelValue)))
|
|
155
161
|
}, [
|
|
156
|
-
|
|
157
|
-
|
|
162
|
+
l[6] || (l[6] = h("span", { class: "sr-only" }, "Copy content", -1)),
|
|
163
|
+
Y(a(se), {
|
|
158
164
|
icon: "Clipboard",
|
|
159
165
|
size: "md"
|
|
160
166
|
})
|
|
161
167
|
])
|
|
162
|
-
])) :
|
|
163
|
-
], 16,
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
])) :
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
m.value && e.withVariables && !
|
|
170
|
-
key:
|
|
168
|
+
])) : c("", !0)
|
|
169
|
+
], 16, ce)),
|
|
170
|
+
e.$slots.warning ? (n(), u("div", ye, [
|
|
171
|
+
q(e.$slots, "warning", {}, void 0, !0)
|
|
172
|
+
])) : c("", !0),
|
|
173
|
+
q(e.$slots, "icon", {}, void 0, !0),
|
|
174
|
+
e.required ? (n(), u("div", be, " Required ")) : c("", !0),
|
|
175
|
+
m.value && e.withVariables && !a(P) && a(y) ? (n(), w(ae, {
|
|
176
|
+
key: 6,
|
|
171
177
|
ref_key: "dropdownRef",
|
|
172
|
-
ref:
|
|
178
|
+
ref: f,
|
|
173
179
|
dropdownPosition: C.value,
|
|
174
|
-
envVariables:
|
|
175
|
-
environment:
|
|
176
|
-
query:
|
|
177
|
-
onSelect:
|
|
178
|
-
}, null, 8, ["dropdownPosition", "envVariables", "environment", "query", "onSelect"])) :
|
|
180
|
+
envVariables: a(S),
|
|
181
|
+
environment: a(y),
|
|
182
|
+
query: k.value,
|
|
183
|
+
onSelect: a(j)
|
|
184
|
+
}, null, 8, ["dropdownPosition", "envVariables", "environment", "query", "onSelect"])) : c("", !0)
|
|
179
185
|
], 64);
|
|
180
186
|
};
|
|
181
187
|
}
|
|
182
188
|
});
|
|
183
189
|
export {
|
|
184
|
-
|
|
190
|
+
Ee as default
|
|
185
191
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
2
|
modelValue?: string;
|
|
3
3
|
placeholder?: string;
|
|
4
|
+
autofocus?: boolean;
|
|
4
5
|
};
|
|
5
6
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
6
7
|
"update:modelValue": (v: string) => any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommandActionInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/CommandActionInput.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CommandActionInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/CommandActionInput.vue"],"names":[],"mappings":"AAgEA,KAAK,WAAW,GAAG;IACjB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,CAAC;;;;;;;;AAkHF,wBAOG"}
|
|
@@ -1,46 +1,49 @@
|
|
|
1
|
-
import { defineComponent as f, ref as c, onMounted as h, nextTick as g, computed as v, withDirectives as w, openBlock as x, createElementBlock as
|
|
1
|
+
import { defineComponent as f, ref as c, onMounted as h, nextTick as g, computed as v, withDirectives as w, openBlock as x, createElementBlock as y, mergeProps as k, withKeys as s, vModelText as D } from "vue";
|
|
2
2
|
const E = ["placeholder"], b = /* @__PURE__ */ f({
|
|
3
3
|
inheritAttrs: !1,
|
|
4
4
|
__name: "CommandActionInput",
|
|
5
5
|
props: {
|
|
6
6
|
modelValue: {},
|
|
7
|
-
placeholder: {}
|
|
7
|
+
placeholder: {},
|
|
8
|
+
autofocus: { type: Boolean }
|
|
8
9
|
},
|
|
9
10
|
emits: ["update:modelValue", "onDelete"],
|
|
10
11
|
setup(i, { emit: p }) {
|
|
11
|
-
const
|
|
12
|
-
h(
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
const n = i, r = p, a = c(null);
|
|
13
|
+
h(
|
|
14
|
+
() => g(() => {
|
|
15
|
+
var e;
|
|
16
|
+
n.autofocus || (e = a.value) == null || e.focus();
|
|
17
|
+
})
|
|
18
|
+
);
|
|
19
|
+
const l = v({
|
|
20
|
+
get: () => n.modelValue ?? "",
|
|
18
21
|
set: (e) => r("update:modelValue", e)
|
|
19
22
|
});
|
|
20
23
|
function d(e) {
|
|
21
24
|
var u;
|
|
22
25
|
if (e.shiftKey || !e.target) return;
|
|
23
26
|
e.preventDefault();
|
|
24
|
-
const t = e.target,
|
|
25
|
-
(u = t.form) == null || u.dispatchEvent(
|
|
27
|
+
const t = e.target, o = new Event("submit", { cancelable: !0 });
|
|
28
|
+
(u = t.form) == null || u.dispatchEvent(o);
|
|
26
29
|
}
|
|
27
30
|
function m(e) {
|
|
28
|
-
|
|
31
|
+
l.value === "" && (e.preventDefault(), e.stopPropagation(), r("onDelete", e));
|
|
29
32
|
}
|
|
30
|
-
return (e, t) => w((x(),
|
|
33
|
+
return (e, t) => w((x(), y("textarea", k({
|
|
31
34
|
ref_key: "input",
|
|
32
35
|
ref: a,
|
|
33
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
36
|
+
"onUpdate:modelValue": t[0] || (t[0] = (o) => l.value = o),
|
|
34
37
|
class: "border-none outline-none flex-1 w-full pl-8 text-sm min-h-8 py-1.5 resize-none",
|
|
35
|
-
placeholder:
|
|
38
|
+
placeholder: n.placeholder,
|
|
36
39
|
wrap: "hard"
|
|
37
40
|
}, e.$attrs, {
|
|
38
41
|
onKeydown: [
|
|
39
|
-
t[1] || (t[1] = s((
|
|
40
|
-
t[2] || (t[2] = s((
|
|
42
|
+
t[1] || (t[1] = s((o) => m(o), ["delete"])),
|
|
43
|
+
t[2] || (t[2] = s((o) => d(o), ["enter"]))
|
|
41
44
|
]
|
|
42
45
|
}), null, 16, E)), [
|
|
43
|
-
[D,
|
|
46
|
+
[D, l.value]
|
|
44
47
|
]);
|
|
45
48
|
}
|
|
46
49
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TheCommandPalette.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/TheCommandPalette.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TheCommandPalette.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/TheCommandPalette.vue"],"names":[],"mappings":"AAkZA;;;;GAIG;;AACH,wBAieI;AAEJ,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBA7f9B,CA9OiD;qBA8OjD,CA7OQ;;;;;;;mBA6OR,CA9OiD;qBA8OjD,CA7OQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkvBE,CAAA;AAEV,yCAAyC;AACzC,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,iBAAiB,CAAA;AAEzD,MAAM,MAAM,mBAAmB,GAAG;IAChC,8DAA8D;IAC9D,WAAW,CAAC,EAAE,YAAY,CAAA;IAC1B,iEAAiE;IACjE,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAC/B,CACA"}
|
|
@@ -2,8 +2,8 @@ import o from "./TheCommandPalette.vue2.js";
|
|
|
2
2
|
import { PaletteComponents as s } from "./TheCommandPalette.vue2.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const
|
|
5
|
+
const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f73a73e6"]]);
|
|
6
6
|
export {
|
|
7
7
|
s as PaletteComponents,
|
|
8
|
-
|
|
8
|
+
r as default
|
|
9
9
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTableInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInput.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DataTableInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInput.vue"],"names":[],"mappings":"AAoKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAS/C,KAAK,WAAW,GAAG;IACf,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,sEAAsE;IACtE,cAAc,CAAC,EAAE,YAAY,CAAA;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,EAAE,MAAM,GAAG,MAAM,CAAA;IAC3B,0EAA0E;IAC1E,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;IACf,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;CACb,CAAC;AAwCJ,iBAAS,cAAc;WA4OT,OAAO,IAA6B;;yBAVrB,GAAG;yBACF,GAAG;sBACN,GAAG;;;;EAa7B;AAkBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;cApTN,OAAO;2BAGM,OAAO;cACpB,OAAO;6EAwTpB,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,7 +1,7 @@
|
|
|
1
1
|
import t from "./DataTableInput.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const e = /* @__PURE__ */
|
|
3
|
+
import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const e = /* @__PURE__ */ o(t, [["__scopeId", "data-v-de383491"]]);
|
|
5
5
|
export {
|
|
6
6
|
e as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTableInputSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInputSelect.vue"],"names":[],"mappings":"AAmJA,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,MAAM,GAAG,MAAM,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACzB,iBAAiB,CAAC,EAAE,OAAO,CAAA;CAC5B,CAAC;;;;;;uBADoB,OAAO;;
|
|
1
|
+
{"version":3,"file":"DataTableInputSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInputSelect.vue"],"names":[],"mappings":"AAmJA,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,MAAM,GAAG,MAAM,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACzB,iBAAiB,CAAC,EAAE,OAAO,CAAA;CAC5B,CAAC;;;;;;uBADoB,OAAO;;AAqR/B,wBASG"}
|