@scalar/api-client 2.1.18 → 2.1.19
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 +29 -0
- package/dist/components/AddressBar/AddressBar.vue.d.ts +5 -1
- package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBar.vue.js +2 -2
- package/dist/components/AddressBar/AddressBar.vue2.js +78 -75
- package/dist/components/AddressBar/AddressBarHistory.vue.js +2 -2
- package/dist/components/AddressBar/AddressBarHistory.vue2.js +8 -8
- package/dist/components/AddressBar/AddressBarServer.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBarServer.vue.js +6 -6
- package/dist/components/CodeInput/CodeInput.vue.d.ts +6 -2
- 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 +57 -49
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts +1 -1
- package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts +1 -1
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts +1 -1
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts +1 -1
- package/dist/components/CommandPalette/CommandPaletteServer.vue.d.ts +1 -1
- package/dist/components/CommandPalette/CommandPaletteTag.vue.d.ts +1 -1
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +7 -7
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.js +4 -4
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +22 -22
- package/dist/components/ContextBar.vue.d.ts.map +1 -1
- package/dist/components/ContextBar.vue.js +2 -2
- package/dist/components/DataTable/DataTableCheckbox.vue.d.ts +19 -3
- package/dist/components/DataTable/DataTableCheckbox.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableCheckbox.vue.js +27 -14
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -1
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +8 -8
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts +2 -2
- package/dist/components/ImportCurl/ImportCurlModal.vue.d.ts +39 -0
- package/dist/components/ImportCurl/ImportCurlModal.vue.d.ts.map +1 -0
- package/dist/components/ImportCurl/ImportCurlModal.vue.js +7 -0
- package/dist/components/ImportCurl/ImportCurlModal.vue2.js +88 -0
- package/dist/components/SideNav/SideHelp.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNav.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNav.vue.js +1 -1
- package/dist/components/SideNav/SideNav.vue2.js +37 -26
- package/dist/components/SideNav/SideNavLink.vue.d.ts +2 -2
- package/dist/components/SideNav/SideNavLink.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNavLink.vue.js +10 -11
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.d.ts +1 -1
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.js +1 -1
- package/dist/components/Sidebar/Sidebar.vue2.js +1 -1
- package/dist/components/Sidebar/SidebarButton.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarButton.vue.js +1 -1
- package/dist/components/Sidebar/SidebarListElement.vue.d.ts +24 -3
- package/dist/components/Sidebar/SidebarListElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarListElement.vue.js +2 -2
- package/dist/components/Sidebar/SidebarListElement.vue2.js +26 -22
- package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts +4 -0
- package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarListElementActions.vue.js +35 -32
- package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNav.vue.js +1 -1
- package/dist/components/TopNav/TopNav.vue2.js +1 -1
- package/dist/components/ViewLayout/ViewLayout.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayout.vue.js +7 -7
- package/dist/components/ViewLayout/ViewLayoutContent.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutContent.vue.js +1 -1
- package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutSection.vue.js +11 -11
- package/dist/constants.d.ts +4 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +2 -1
- package/dist/hooks/useDarkModeState.d.ts +4 -3
- package/dist/hooks/useDarkModeState.d.ts.map +1 -1
- package/dist/hooks/useDarkModeState.js +36 -21
- package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
- package/dist/layouts/App/ApiClientApp.vue.js +34 -38
- package/dist/layouts/App/create-api-client-app.d.ts +35 -32
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue.js +2 -2
- package/dist/layouts/Modal/ApiClientModal.vue2.js +6 -6
- package/dist/layouts/Modal/create-api-client-modal.d.ts +70 -64
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Web/ApiClientWeb.vue.d.ts.map +1 -1
- package/dist/layouts/Web/ApiClientWeb.vue.js +35 -39
- package/dist/layouts/Web/create-api-client-web.d.ts +35 -32
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +35 -32
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/event-busses/hot-keys-bus.d.ts +1 -1
- package/dist/libs/importers/curl.d.ts +3 -0
- package/dist/libs/importers/curl.d.ts.map +1 -0
- package/dist/libs/importers/curl.js +61 -0
- package/dist/libs/importers/index.d.ts +2 -0
- package/dist/libs/importers/index.d.ts.map +1 -0
- package/dist/libs/importers/index.js +4 -0
- package/dist/libs/index.d.ts +1 -0
- package/dist/libs/index.d.ts.map +1 -1
- package/dist/libs/index.js +23 -21
- package/dist/libs/parse-curl.d.ts +12 -0
- package/dist/libs/parse-curl.d.ts.map +1 -0
- package/dist/libs/parse-curl.js +70 -0
- package/dist/router.d.ts +2 -1
- package/dist/router.d.ts.map +1 -1
- package/dist/router.js +33 -24
- package/dist/store/collections.d.ts +4 -4
- package/dist/store/cookies.d.ts +4 -4
- package/dist/store/environment.d.ts +4 -4
- package/dist/store/request-example.d.ts +4 -4
- package/dist/store/requests.d.ts +4 -4
- package/dist/store/router-params.d.ts +1 -0
- package/dist/store/router-params.d.ts.map +1 -1
- package/dist/store/router-params.js +2 -1
- package/dist/store/servers.d.ts +4 -4
- package/dist/store/store.d.ts +70 -64
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/store.js +126 -119
- package/dist/store/tags.d.ts +4 -4
- package/dist/store/workspace.d.ts +4 -4
- package/dist/style.css +1 -1
- package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue2.js +18 -18
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +9 -9
- package/dist/views/Request/Request.vue.d.ts.map +1 -1
- package/dist/views/Request/Request.vue.js +1 -1
- package/dist/views/Request/Request.vue2.js +146 -96
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +1 -1
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +4 -4
- package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebar.vue.js +3 -3
- package/dist/views/Request/RequestSidebar.vue2.js +2 -2
- package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItem.vue.js +1 -1
- package/dist/views/Request/RequestSidebarItem.vue2.js +49 -49
- package/dist/views/Request/RequestSubpageHeader.vue.d.ts +2 -0
- package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSubpageHeader.vue.js +4 -4
- package/dist/views/Request/RequestSubpageHeader.vue2.js +17 -15
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue2.js +1 -1
- package/dist/views/Settings/Settings.vue.d.ts +4 -0
- package/dist/views/Settings/Settings.vue.d.ts.map +1 -0
- package/dist/views/Settings/Settings.vue.js +4 -0
- package/dist/views/Settings/Settings.vue2.js +59 -0
- package/dist/{components/DarkModeToggle/DarkModeIconToggle.vue.d.ts → views/Settings/SettingsGeneral.vue.d.ts} +1 -1
- package/dist/views/Settings/SettingsGeneral.vue.d.ts.map +1 -0
- package/dist/views/Settings/SettingsGeneral.vue.js +124 -0
- package/dist/views/Settings/SettingsGeneral.vue2.js +4 -0
- package/dist/views/Settings/SettingsGeneralMode.vue.d.ts +3 -0
- package/dist/views/Settings/SettingsGeneralMode.vue.d.ts.map +1 -0
- package/dist/views/Settings/SettingsGeneralMode.vue.js +78 -0
- package/dist/views/Settings/SettingsGeneralMode.vue2.js +4 -0
- package/package.json +60 -36
- package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.d.ts.map +0 -1
- package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.js +0 -31
- package/dist/components/DarkModeToggle/DarkModeIconToggle.vue2.js +0 -4
- package/dist/components/DarkModeToggle/index.d.ts +0 -2
- package/dist/components/DarkModeToggle/index.d.ts.map +0 -1
- package/dist/components/DarkModeToggle/index.js +0 -4
- package/dist/components/ScreenReader.vue.js +0 -7
- package/dist/components/ScreenReader.vue2.js +0 -18
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# @scalar/api-client
|
|
2
2
|
|
|
3
|
+
## 2.1.19
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- e5ee02f: fix: too many z-index layers
|
|
8
|
+
- 8da2152: style: enhances responsiveness
|
|
9
|
+
- 2a77f7b: fix: comment out stackBlitz in the ci
|
|
10
|
+
- d02d70c: feat: add settings page to api client
|
|
11
|
+
- e911047: Add default exports
|
|
12
|
+
- 9a2d5ca: feat: adds curl importer
|
|
13
|
+
- Updated dependencies [d064a78]
|
|
14
|
+
- Updated dependencies [3db9355]
|
|
15
|
+
- Updated dependencies [2ff5905]
|
|
16
|
+
- Updated dependencies [9a2d5ca]
|
|
17
|
+
- Updated dependencies [e911047]
|
|
18
|
+
- Updated dependencies [d02d70c]
|
|
19
|
+
- Updated dependencies [3acbf26]
|
|
20
|
+
- @scalar/openapi-parser@0.8.6
|
|
21
|
+
- @scalar/oas-utils@0.2.54
|
|
22
|
+
- @scalar/object-utils@1.1.10
|
|
23
|
+
- @scalar/openapi-types@0.1.2
|
|
24
|
+
- @scalar/types@0.0.14
|
|
25
|
+
- @scalar/themes@0.9.36
|
|
26
|
+
- @scalar/components@0.12.51
|
|
27
|
+
- @scalar/icons@0.1.0
|
|
28
|
+
- @scalar/use-codemirror@0.11.18
|
|
29
|
+
- @scalar/use-toasts@0.7.6
|
|
30
|
+
- @scalar/use-tooltip@1.0.2
|
|
31
|
+
|
|
3
32
|
## 2.1.18
|
|
4
33
|
|
|
5
34
|
### Patch Changes
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
2
|
+
importCurl: (value: string) => void;
|
|
3
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
|
|
4
|
+
onImportCurl?: ((value: string) => any) | undefined;
|
|
5
|
+
}, {}, {}>;
|
|
2
6
|
export default _default;
|
|
3
7
|
//# sourceMappingURL=AddressBar.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddressBar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AddressBar/AddressBar.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AddressBar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AddressBar/AddressBar.vue"],"names":[],"mappings":";;;;;AA2vBA,wBAMG"}
|
|
@@ -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
|
|
4
|
+
const d = /* @__PURE__ */ r(o, [["__scopeId", "data-v-30d2e87b"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
d as default
|
|
7
7
|
};
|
|
@@ -1,141 +1,144 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import { Listbox as
|
|
4
|
-
import { ScalarButton as
|
|
5
|
-
import { REQUEST_METHODS as
|
|
6
|
-
import { isMacOS as
|
|
7
|
-
import { useMagicKeys as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { executeRequestBus as
|
|
12
|
-
import { useWorkspace as
|
|
13
|
-
import { requestStatusBus as
|
|
14
|
-
import { hotKeyBus as
|
|
15
|
-
const
|
|
1
|
+
import { defineComponent as z, ref as u, watch as A, onMounted as K, onBeforeUnmount as N, unref as l, openBlock as T, createElementBlock as $, createElementVNode as o, createVNode as n, withCtx as w, normalizeClass as B, normalizeStyle as D, createCommentVNode as P, pushScopeId as Q, popScopeId as W } from "vue";
|
|
2
|
+
import j from "../CodeInput/CodeInput.vue.js";
|
|
3
|
+
import { Listbox as F } from "@headlessui/vue";
|
|
4
|
+
import { ScalarButton as G, ScalarIcon as J } from "@scalar/components";
|
|
5
|
+
import { REQUEST_METHODS as X } from "@scalar/oas-utils/helpers";
|
|
6
|
+
import { isMacOS as Y } from "@scalar/use-tooltip";
|
|
7
|
+
import { useMagicKeys as Z, whenever as ee } from "@vueuse/core";
|
|
8
|
+
import te from "../HttpMethod/HttpMethod.vue.js";
|
|
9
|
+
import le from "./AddressBarHistory.vue.js";
|
|
10
|
+
import oe from "./AddressBarServer.vue.js";
|
|
11
|
+
import { executeRequestBus as C } from "../../libs/event-busses/execute-request-bus.js";
|
|
12
|
+
import { useWorkspace as ae } from "../../store/store.js";
|
|
13
|
+
import { requestStatusBus as re } from "../../libs/event-busses/request-status-bus.js";
|
|
14
|
+
import { hotKeyBus as S } from "../../libs/event-busses/hot-keys-bus.js";
|
|
15
|
+
const m = (d) => (Q("data-v-30d2e87b"), d = d(), W(), d), se = {
|
|
16
16
|
key: 0,
|
|
17
17
|
class: "order-last lg:order-none lg:w-auto w-full"
|
|
18
|
-
},
|
|
18
|
+
}, ne = { class: "m-auto flex flex-row items-center" }, ie = { class: "pointer-events-none absolute left-0 top-0 block h-full w-full overflow-hidden" }, ue = { class: "flex gap-1" }, de = { class: "codemirror-bg-switcher scroll-timeline-x scroll-timeline-x-hidden relative flex w-full" }, fe = /* @__PURE__ */ m(() => /* @__PURE__ */ o("div", { class: "fade-left" }, null, -1)), ce = /* @__PURE__ */ m(() => /* @__PURE__ */ o("div", { class: "fade-right" }, null, -1)), me = /* @__PURE__ */ m(() => /* @__PURE__ */ o("span", { class: "text-xxs relative lg:flex hidden" }, "Send", -1)), qe = /* @__PURE__ */ z({
|
|
19
19
|
__name: "AddressBar",
|
|
20
|
+
emits: ["importCurl"],
|
|
20
21
|
setup(d) {
|
|
21
22
|
const {
|
|
22
23
|
activeRequest: t,
|
|
23
|
-
activeExample:
|
|
24
|
-
activeServer:
|
|
25
|
-
isReadOnly:
|
|
26
|
-
requestMutators:
|
|
27
|
-
requestHistory:
|
|
28
|
-
} =
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
() =>
|
|
24
|
+
activeExample: k,
|
|
25
|
+
activeServer: y,
|
|
26
|
+
isReadOnly: v,
|
|
27
|
+
requestMutators: c,
|
|
28
|
+
requestHistory: R
|
|
29
|
+
} = ae(), p = u(R[0]), h = u(null), b = Z();
|
|
30
|
+
ee(
|
|
31
|
+
Y() ? b.meta_enter : b.ctrl_enter,
|
|
32
|
+
() => C.emit()
|
|
32
33
|
);
|
|
33
|
-
const
|
|
34
|
-
!t.value || t.value.path === e ||
|
|
34
|
+
const q = (e) => {
|
|
35
|
+
!t.value || t.value.path === e || c.edit(t.value.uid, "path", e);
|
|
35
36
|
};
|
|
36
|
-
|
|
37
|
+
A(
|
|
37
38
|
() => {
|
|
38
39
|
var e;
|
|
39
40
|
return (e = t.value) == null ? void 0 : e.path;
|
|
40
41
|
},
|
|
41
42
|
(e) => {
|
|
42
|
-
!t.value || !e ||
|
|
43
|
+
!t.value || !e || q(e);
|
|
43
44
|
}
|
|
44
45
|
);
|
|
45
|
-
const a =
|
|
46
|
-
function
|
|
47
|
-
r.value ? a.value -= (a.value - 15) / 60 : a.value -= x.value / 20, a.value <= 0 && (clearInterval(
|
|
46
|
+
const a = u(100), x = u(0), r = u(!1), i = u();
|
|
47
|
+
function E() {
|
|
48
|
+
r.value ? a.value -= (a.value - 15) / 60 : a.value -= x.value / 20, a.value <= 0 && (clearInterval(i.value), i.value = void 0, a.value = 100, r.value = !1);
|
|
48
49
|
}
|
|
49
50
|
function I() {
|
|
50
|
-
|
|
51
|
+
i.value || (r.value = !0, i.value = setInterval(E, 20));
|
|
51
52
|
}
|
|
52
53
|
function V() {
|
|
53
54
|
x.value = a.value, r.value = !1;
|
|
54
55
|
}
|
|
55
|
-
function
|
|
56
|
-
clearInterval(
|
|
56
|
+
function M() {
|
|
57
|
+
clearInterval(i.value), i.value = void 0, a.value = 100, r.value = !1;
|
|
57
58
|
}
|
|
58
|
-
|
|
59
|
-
e === "start" && I(), e === "stop" && V(), e === "abort" &&
|
|
59
|
+
re.on((e) => {
|
|
60
|
+
e === "start" && I(), e === "stop" && V(), e === "abort" && M();
|
|
60
61
|
});
|
|
61
|
-
function
|
|
62
|
-
t.value &&
|
|
62
|
+
function U(e) {
|
|
63
|
+
t.value && c.edit(t.value.uid, "method", e);
|
|
63
64
|
}
|
|
64
65
|
function H() {
|
|
65
66
|
if (!t.value) return;
|
|
66
67
|
const { method: e } = t.value;
|
|
67
|
-
return
|
|
68
|
+
return X[e].backgroundColor;
|
|
68
69
|
}
|
|
69
|
-
function
|
|
70
|
-
r.value || (r.value = !0,
|
|
70
|
+
function _() {
|
|
71
|
+
r.value || (r.value = !0, C.emit());
|
|
71
72
|
}
|
|
72
|
-
function
|
|
73
|
-
t.value &&
|
|
73
|
+
function L(e) {
|
|
74
|
+
t.value && c.edit(t.value.uid, "path", e);
|
|
74
75
|
}
|
|
75
76
|
function g(e) {
|
|
76
|
-
var
|
|
77
|
-
e.focusAddressBar && ((
|
|
77
|
+
var s;
|
|
78
|
+
e.focusAddressBar && ((s = h.value) == null || s.focus());
|
|
78
79
|
}
|
|
79
|
-
return
|
|
80
|
-
o("div",
|
|
81
|
-
|
|
80
|
+
return K(() => S.on(g)), N(() => S.off(g)), (e, s) => l(t) && l(k) ? (T(), $("div", se, [
|
|
81
|
+
o("div", ne, [
|
|
82
|
+
n(l(F), {
|
|
82
83
|
modelValue: p.value,
|
|
83
|
-
"onUpdate:modelValue":
|
|
84
|
+
"onUpdate:modelValue": s[1] || (s[1] = (f) => p.value = f)
|
|
84
85
|
}, {
|
|
85
|
-
default: w(({ open:
|
|
86
|
+
default: w(({ open: f }) => [
|
|
86
87
|
o("div", {
|
|
87
88
|
class: B([
|
|
88
89
|
"addressbar-bg-states text-xxs relative flex w-full lg:min-w-[720px] lg:max-w-[720px] order-last overflow-hidden lg:order-none flex-1 flex-row items-stretch rounded-lg border-1/2 p-[3px]",
|
|
89
|
-
{ "border-transparent overflow-visible rounded-b-none":
|
|
90
|
+
{ "border-transparent overflow-visible rounded-b-none": f }
|
|
90
91
|
])
|
|
91
92
|
}, [
|
|
92
|
-
o("div",
|
|
93
|
+
o("div", ie, [
|
|
93
94
|
o("div", {
|
|
94
95
|
class: B(["bg-mix-transparent bg-mix-amount-90 absolute left-0 top-0 h-full w-full", H()]),
|
|
95
|
-
style:
|
|
96
|
+
style: D({ transform: `translate3d(-${a.value}%,0,0)` })
|
|
96
97
|
}, null, 6)
|
|
97
98
|
]),
|
|
98
|
-
o("div",
|
|
99
|
-
|
|
100
|
-
isEditable: !l(
|
|
99
|
+
o("div", ue, [
|
|
100
|
+
n(te, {
|
|
101
|
+
isEditable: !l(v),
|
|
101
102
|
isSquare: "",
|
|
102
103
|
method: l(t).method,
|
|
103
104
|
teleport: ".scalar-client",
|
|
104
|
-
onChange:
|
|
105
|
+
onChange: U
|
|
105
106
|
}, null, 8, ["isEditable", "method"])
|
|
106
107
|
]),
|
|
107
|
-
o("div",
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
108
|
+
o("div", de, [
|
|
109
|
+
fe,
|
|
110
|
+
n(oe),
|
|
111
|
+
n(j, {
|
|
111
112
|
ref_key: "addressBarRef",
|
|
112
113
|
ref: h,
|
|
113
114
|
disableCloseBrackets: "",
|
|
114
|
-
disabled: l(
|
|
115
|
+
disabled: l(v),
|
|
115
116
|
disableEnter: "",
|
|
116
117
|
disableTabIndent: "",
|
|
117
118
|
emitOnBlur: !1,
|
|
119
|
+
importCurl: "",
|
|
118
120
|
modelValue: l(t).path,
|
|
119
|
-
placeholder: l(
|
|
121
|
+
placeholder: l(y) ? "" : "Enter a URL or cURL command",
|
|
120
122
|
server: "",
|
|
121
|
-
|
|
122
|
-
|
|
123
|
+
onCurl: s[0] || (s[0] = (O) => e.$emit("importCurl", O)),
|
|
124
|
+
onSubmit: _,
|
|
125
|
+
"onUpdate:modelValue": L
|
|
123
126
|
}, null, 8, ["disabled", "modelValue", "placeholder"]),
|
|
124
127
|
ce
|
|
125
128
|
]),
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
class: "relative h-auto shrink-0 gap-1 overflow-hidden pl-2 pr-2.5 py-1
|
|
129
|
+
n(le, { open: f }, null, 8, ["open"]),
|
|
130
|
+
n(l(G), {
|
|
131
|
+
class: "relative h-auto shrink-0 gap-1 overflow-hidden pl-2 pr-2.5 py-1 font-bold",
|
|
129
132
|
disabled: r.value,
|
|
130
|
-
onClick:
|
|
133
|
+
onClick: _
|
|
131
134
|
}, {
|
|
132
135
|
default: w(() => [
|
|
133
|
-
|
|
134
|
-
class: "relative
|
|
136
|
+
n(l(J), {
|
|
137
|
+
class: "relative shrink-0 fill-current",
|
|
135
138
|
icon: "Play",
|
|
136
139
|
size: "xs"
|
|
137
140
|
}),
|
|
138
|
-
|
|
141
|
+
me
|
|
139
142
|
]),
|
|
140
143
|
_: 1
|
|
141
144
|
}, 8, ["disabled"])
|
|
@@ -144,9 +147,9 @@ const v = (d) => (P("data-v-ef489963"), d = d(), Q(), d), re = {
|
|
|
144
147
|
_: 1
|
|
145
148
|
}, 8, ["modelValue"])
|
|
146
149
|
])
|
|
147
|
-
])) :
|
|
150
|
+
])) : P("", !0);
|
|
148
151
|
}
|
|
149
152
|
});
|
|
150
153
|
export {
|
|
151
|
-
|
|
154
|
+
qe as default
|
|
152
155
|
};
|
|
@@ -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
|
|
4
|
+
const a = /* @__PURE__ */ r(o, [["__scopeId", "data-v-0e166ebf"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as C, computed as q, openBlock as u, createElementBlock as b, Fragment as h, createBlock as
|
|
1
|
+
import { defineComponent as C, computed as q, openBlock as u, createElementBlock as b, Fragment as h, createBlock as c, unref as o, withCtx as i, createVNode as x, createCommentVNode as v, createElementVNode as r, normalizeClass as g, renderList as B, toDisplayString as l } from "vue";
|
|
2
2
|
import { formatMs as H } from "../../libs/formatters.js";
|
|
3
3
|
import { ListboxButton as y, ListboxOptions as L, ListboxOption as S } from "@headlessui/vue";
|
|
4
4
|
import { ScalarIcon as z } from "@scalar/components";
|
|
@@ -29,11 +29,11 @@ const $ = { class: "min-w-0" }, I = { class: "min-w-0 truncate text-c-1" }, P =
|
|
|
29
29
|
return (t, s) => {
|
|
30
30
|
var n;
|
|
31
31
|
return u(), b(h, null, [
|
|
32
|
-
(n = m.value) != null && n.length ? (u(),
|
|
32
|
+
(n = m.value) != null && n.length ? (u(), c(o(y), {
|
|
33
33
|
key: 0,
|
|
34
34
|
class: "addressbar-history-button mr-1 rounded-lg p-1.5 text-c-3 focus:text-c-1"
|
|
35
35
|
}, {
|
|
36
|
-
default:
|
|
36
|
+
default: i(() => [
|
|
37
37
|
x(o(z), {
|
|
38
38
|
icon: "History",
|
|
39
39
|
size: "sm",
|
|
@@ -44,22 +44,22 @@ const $ = { class: "min-w-0" }, I = { class: "min-w-0 truncate text-c-1" }, P =
|
|
|
44
44
|
})) : v("", !0),
|
|
45
45
|
r("div", {
|
|
46
46
|
class: g([
|
|
47
|
-
"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-
|
|
47
|
+
"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",
|
|
48
48
|
{ "before:shadow-lg": t.open }
|
|
49
49
|
])
|
|
50
50
|
}, [
|
|
51
51
|
x(o(L), { 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" }, {
|
|
52
|
-
default:
|
|
53
|
-
(u(!0), b(h, null, B(m.value, (e, f) => (u(),
|
|
52
|
+
default: i(() => [
|
|
53
|
+
(u(!0), b(h, null, B(m.value, (e, f) => (u(), c(o(S), {
|
|
54
54
|
key: f,
|
|
55
55
|
class: "contents font-code text-sm *:rounded-none first:*:rounded-l last:*:rounded-r *:h-8 *:hover:bg-b-2 *:flex *:items-center *:cursor-pointer *:px-1.5 text-c-2 font-medium",
|
|
56
56
|
value: f,
|
|
57
57
|
onClick: (a) => w(e)
|
|
58
58
|
}, {
|
|
59
|
-
default:
|
|
59
|
+
default: i(() => {
|
|
60
60
|
var a;
|
|
61
61
|
return [
|
|
62
|
-
e.response.method ? (u(),
|
|
62
|
+
e.response.method ? (u(), c(N, {
|
|
63
63
|
key: 0,
|
|
64
64
|
class: "text-[11px]",
|
|
65
65
|
method: e.response.method
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddressBarServer.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AddressBar/AddressBarServer.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"AddressBarServer.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AddressBar/AddressBarServer.vue"],"names":[],"mappings":";AA8YA,wBAKG"}
|
|
@@ -6,12 +6,12 @@ import { commandPaletteBus as L } from "../../libs/event-busses/command-palette-
|
|
|
6
6
|
const M = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "text-xxs text-c-2 ml-8"
|
|
9
|
-
}, j = /* @__PURE__ */ c("div", { class: "text-xxs text-c-2 ml-8" }, "Collection Servers", -1),
|
|
9
|
+
}, j = /* @__PURE__ */ c("div", { class: "text-xxs text-c-2 ml-8" }, "Collection Servers", -1), F = { class: "flex items-center justify-center h-4 w-4" }, P = /* @__PURE__ */ c("span", null, "Add Server", -1), T = {
|
|
10
10
|
key: 1,
|
|
11
11
|
class: "flex whitespace-nowrap items-center font-code lg:text-sm text-xs"
|
|
12
12
|
}, K = /* @__PURE__ */ U({
|
|
13
13
|
__name: "AddressBarServer",
|
|
14
|
-
setup(
|
|
14
|
+
setup($) {
|
|
15
15
|
const {
|
|
16
16
|
activeRequest: S,
|
|
17
17
|
activeCollection: k,
|
|
@@ -90,13 +90,13 @@ const M = {
|
|
|
90
90
|
class: "font-code text-xxs flex items-center gap-1.5",
|
|
91
91
|
onClick: N
|
|
92
92
|
}, [
|
|
93
|
-
c("div",
|
|
93
|
+
c("div", F, [
|
|
94
94
|
p(s(E), {
|
|
95
95
|
class: "h-2.5",
|
|
96
96
|
icon: "Add"
|
|
97
97
|
})
|
|
98
98
|
]),
|
|
99
|
-
|
|
99
|
+
P
|
|
100
100
|
])
|
|
101
101
|
]),
|
|
102
102
|
_: 1
|
|
@@ -105,14 +105,14 @@ const M = {
|
|
|
105
105
|
]),
|
|
106
106
|
default: _(() => [
|
|
107
107
|
c("button", {
|
|
108
|
-
class: "font-code lg:text-sm text-xs whitespace-nowrap border border-b-3 border-solid rounded px-1.5 py-0.5 text-c-2
|
|
108
|
+
class: "font-code lg:text-sm text-xs whitespace-nowrap border border-b-3 border-solid rounded px-1.5 py-0.5 text-c-2",
|
|
109
109
|
type: "button",
|
|
110
110
|
onClick: e[0] || (e[0] = R(() => {
|
|
111
111
|
}, ["stop"]))
|
|
112
112
|
}, b(f.value), 1)
|
|
113
113
|
]),
|
|
114
114
|
_: 1
|
|
115
|
-
})) : f.value ? (l(), n("div",
|
|
115
|
+
})) : f.value ? (l(), n("div", T, b(f.value), 1)) : v("", !0);
|
|
116
116
|
};
|
|
117
117
|
}
|
|
118
118
|
});
|
|
@@ -18,6 +18,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
18
18
|
type?: string;
|
|
19
19
|
nullable?: boolean;
|
|
20
20
|
withVariables?: boolean;
|
|
21
|
+
importCurl?: boolean;
|
|
21
22
|
}>, {
|
|
22
23
|
disableCloseBrackets: boolean;
|
|
23
24
|
disableEnter: boolean;
|
|
@@ -31,6 +32,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
31
32
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
32
33
|
submit: (v: string) => void;
|
|
33
34
|
"update:modelValue": (v: string) => void;
|
|
35
|
+
curl: (v: string) => void;
|
|
34
36
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
35
37
|
colorPicker?: boolean;
|
|
36
38
|
modelValue: string | number;
|
|
@@ -50,6 +52,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
50
52
|
type?: string;
|
|
51
53
|
nullable?: boolean;
|
|
52
54
|
withVariables?: boolean;
|
|
55
|
+
importCurl?: boolean;
|
|
53
56
|
}>, {
|
|
54
57
|
disableCloseBrackets: boolean;
|
|
55
58
|
disableEnter: boolean;
|
|
@@ -59,11 +62,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
59
62
|
nullable: boolean;
|
|
60
63
|
withVariables: boolean;
|
|
61
64
|
}>>> & {
|
|
62
|
-
onSubmit?: ((v: string) => any) | undefined;
|
|
63
65
|
"onUpdate:modelValue"?: ((v: string) => any) | undefined;
|
|
66
|
+
onSubmit?: ((v: string) => any) | undefined;
|
|
67
|
+
onCurl?: ((v: string) => any) | undefined;
|
|
64
68
|
}, {
|
|
65
|
-
colorPicker: boolean;
|
|
66
69
|
emitOnBlur: boolean;
|
|
70
|
+
colorPicker: boolean;
|
|
67
71
|
disableTabIndent: boolean;
|
|
68
72
|
disableEnter: boolean;
|
|
69
73
|
disableCloseBrackets: 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,OAwWO,EAGL,KAAK,kBAAkB,EAGxB,MAAM,wBAAwB,CAAA;;kBAcb,OAAO;gBACT,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;;;;;;;;;;;;;;;;kBAlBN,OAAO;gBACT,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;;;;;;;;;;;;;;gBAfP,OAAO;iBAHN,OAAO;sBAMF,OAAO;kBAMX,OAAO;0BACC,OAAO;cAGnB,OAAO;mBACF,OAAO;;qBAmUG,GAAG;kBACN,GAAG;;AAxV9B,wBAqYC;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,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"}
|
|
@@ -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
|
|
5
|
+
const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-5c35162a"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
_ as default
|
|
8
8
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as T, useAttrs as A, ref as
|
|
2
|
-
import { useCodeMirror as
|
|
3
|
-
import { nanoid as
|
|
1
|
+
import { defineComponent as T, useAttrs as A, ref as u, toRef as t, watch as U, computed as C, openBlock as a, createElementBlock as s, Fragment as W, createBlock as p, mergeProps as j, unref as i, renderSlot as _, createCommentVNode as m } from "vue";
|
|
2
|
+
import { useCodeMirror as L, useDropdown as Q, colorPicker as z } from "@scalar/use-codemirror";
|
|
3
|
+
import { nanoid as G } from "nanoid";
|
|
4
4
|
import x from "../DataTable/DataTableInputSelect.vue.js";
|
|
5
|
-
import { pillPlugin as
|
|
6
|
-
import
|
|
5
|
+
import { pillPlugin as H, backspaceCommand as J } from "./codeVariableWidget.js";
|
|
6
|
+
import K from "../../views/Environment/EnvironmentVariableDropdown.vue.js";
|
|
7
7
|
import { useWorkspace as X } from "../../store/store.js";
|
|
8
8
|
const Y = ["id"], Z = {
|
|
9
9
|
key: 3,
|
|
@@ -34,32 +34,40 @@ const Y = ["id"], Z = {
|
|
|
34
34
|
enum: {},
|
|
35
35
|
type: {},
|
|
36
36
|
nullable: { type: Boolean, default: !1 },
|
|
37
|
-
withVariables: { type: Boolean, default: !0 }
|
|
37
|
+
withVariables: { type: Boolean, default: !0 },
|
|
38
|
+
importCurl: { type: Boolean }
|
|
38
39
|
},
|
|
39
|
-
emits: ["submit", "update:modelValue"],
|
|
40
|
-
setup(
|
|
40
|
+
emits: ["submit", "update:modelValue", "curl"],
|
|
41
|
+
setup(S, { expose: F, emit: P }) {
|
|
41
42
|
var B;
|
|
42
|
-
const e =
|
|
43
|
+
const e = S, r = P, f = A(), q = f.id || `id-${G()}`, b = u(!1), h = u(!1), y = u(""), v = u({ left: 0, top: 0 }), { activeEnvVariables: g, isReadOnly: V, environments: E, router: $ } = X();
|
|
43
44
|
function O(o) {
|
|
44
|
-
|
|
45
|
+
var n;
|
|
46
|
+
return o === e.modelValue ? null : e.importCurl && o.trim().toLowerCase().startsWith("curl") ? (r("curl", o), (n = l.value) == null || n.dispatch({
|
|
47
|
+
changes: {
|
|
48
|
+
from: 0,
|
|
49
|
+
to: l.value.state.doc.length,
|
|
50
|
+
insert: String(e.modelValue)
|
|
51
|
+
}
|
|
52
|
+
}), null) : e.handleFieldChange ? e.handleFieldChange(o) : r("update:modelValue", o);
|
|
45
53
|
}
|
|
46
54
|
function R(o) {
|
|
47
|
-
return e.handleFieldSubmit ? e.handleFieldSubmit(o) :
|
|
55
|
+
return e.handleFieldSubmit ? e.handleFieldSubmit(o) : r("submit", o);
|
|
48
56
|
}
|
|
49
57
|
function D(o) {
|
|
50
58
|
b.value = !1, e.emitOnBlur && e.modelValue && R(o);
|
|
51
59
|
}
|
|
52
60
|
const d = [];
|
|
53
|
-
e.colorPicker && d.push(
|
|
54
|
-
|
|
61
|
+
e.colorPicker && d.push(z), d.push(
|
|
62
|
+
H({
|
|
55
63
|
environments: E,
|
|
56
64
|
activeEnvVariables: g,
|
|
57
65
|
isReadOnly: V
|
|
58
66
|
}),
|
|
59
|
-
|
|
67
|
+
J
|
|
60
68
|
);
|
|
61
|
-
const w =
|
|
62
|
-
content:
|
|
69
|
+
const w = u(null), { codeMirror: l } = L({
|
|
70
|
+
content: t(
|
|
63
71
|
() => e.modelValue !== void 0 ? String(e.modelValue) : ""
|
|
64
72
|
),
|
|
65
73
|
onChange: (o) => {
|
|
@@ -68,48 +76,48 @@ const Y = ["id"], Z = {
|
|
|
68
76
|
onFocus: () => b.value = !0,
|
|
69
77
|
onBlur: (o) => D(o),
|
|
70
78
|
codeMirrorRef: w,
|
|
71
|
-
disableTabIndent:
|
|
72
|
-
disableEnter:
|
|
73
|
-
disableCloseBrackets:
|
|
74
|
-
lineNumbers:
|
|
75
|
-
language:
|
|
76
|
-
lint:
|
|
79
|
+
disableTabIndent: t(() => e.disableTabIndent),
|
|
80
|
+
disableEnter: t(() => e.disableEnter),
|
|
81
|
+
disableCloseBrackets: t(() => e.disableCloseBrackets),
|
|
82
|
+
lineNumbers: t(() => e.lineNumbers),
|
|
83
|
+
language: t(() => e.language),
|
|
84
|
+
lint: t(() => e.lint),
|
|
77
85
|
extensions: d,
|
|
78
|
-
placeholder:
|
|
86
|
+
placeholder: t(() => e.placeholder)
|
|
79
87
|
});
|
|
80
|
-
(B =
|
|
81
|
-
|
|
88
|
+
(B = l.value) == null || B.focus(), U(l, () => {
|
|
89
|
+
l.value && Object.prototype.hasOwnProperty.call(f, "autofocus") && l.value.focus();
|
|
82
90
|
});
|
|
83
|
-
const { handleDropdownSelect: I, updateDropdownVisibility: M } =
|
|
84
|
-
codeMirror:
|
|
85
|
-
query:
|
|
86
|
-
showDropdown:
|
|
91
|
+
const { handleDropdownSelect: I, updateDropdownVisibility: M } = Q({
|
|
92
|
+
codeMirror: l,
|
|
93
|
+
query: y,
|
|
94
|
+
showDropdown: h,
|
|
87
95
|
dropdownPosition: v
|
|
88
|
-
}), N =
|
|
96
|
+
}), N = C(() => {
|
|
89
97
|
var o;
|
|
90
98
|
return e.type === "boolean" || (o = e.type) != null && o.includes("boolean") || e.nullable ? ["true", "false", "null"] : ["true", "false"];
|
|
91
99
|
});
|
|
92
|
-
return
|
|
100
|
+
return F({
|
|
93
101
|
focus: () => {
|
|
94
102
|
var o;
|
|
95
|
-
(o =
|
|
103
|
+
(o = l.value) == null || o.focus();
|
|
96
104
|
}
|
|
97
|
-
}), (o,
|
|
105
|
+
}), (o, n) => {
|
|
98
106
|
var k;
|
|
99
|
-
return
|
|
100
|
-
e.enum && e.enum.length ? (
|
|
107
|
+
return a(), s(W, null, [
|
|
108
|
+
e.enum && e.enum.length ? (a(), p(x, {
|
|
101
109
|
key: 0,
|
|
102
110
|
modelValue: e.modelValue,
|
|
103
111
|
value: e.enum,
|
|
104
|
-
"onUpdate:modelValue":
|
|
105
|
-
}, null, 8, ["modelValue", "value"])) : e.type === "boolean" || (k = e.type) != null && k.includes("boolean") ? (
|
|
112
|
+
"onUpdate:modelValue": n[0] || (n[0] = (c) => r("update:modelValue", c))
|
|
113
|
+
}, null, 8, ["modelValue", "value"])) : e.type === "boolean" || (k = e.type) != null && k.includes("boolean") ? (a(), p(x, {
|
|
106
114
|
key: 1,
|
|
107
115
|
modelValue: e.modelValue,
|
|
108
116
|
value: N.value,
|
|
109
|
-
"onUpdate:modelValue":
|
|
110
|
-
}, null, 8, ["modelValue", "value"])) : (
|
|
117
|
+
"onUpdate:modelValue": n[1] || (n[1] = (c) => r("update:modelValue", c))
|
|
118
|
+
}, null, 8, ["modelValue", "value"])) : (a(), s("div", j({
|
|
111
119
|
key: 2,
|
|
112
|
-
id:
|
|
120
|
+
id: i(q)
|
|
113
121
|
}, o.$attrs, {
|
|
114
122
|
ref_key: "codeMirrorRef",
|
|
115
123
|
ref: w,
|
|
@@ -117,18 +125,18 @@ const Y = ["id"], Z = {
|
|
|
117
125
|
"flow-code-input--error": o.error
|
|
118
126
|
}]
|
|
119
127
|
}), null, 16, Y)),
|
|
120
|
-
o.$slots.warning ? (
|
|
121
|
-
|
|
128
|
+
o.$slots.warning ? (a(), s("div", Z, [
|
|
129
|
+
_(o.$slots, "warning", {}, void 0, !0)
|
|
122
130
|
])) : m("", !0),
|
|
123
|
-
|
|
124
|
-
o.required ? (
|
|
125
|
-
|
|
131
|
+
_(o.$slots, "icon", {}, void 0, !0),
|
|
132
|
+
o.required ? (a(), s("div", ee, " Required ")) : m("", !0),
|
|
133
|
+
h.value && e.withVariables && !i(V) ? (a(), p(K, {
|
|
126
134
|
key: 5,
|
|
127
|
-
activeEnvVariables:
|
|
135
|
+
activeEnvVariables: C(() => i(g)),
|
|
128
136
|
dropdownPosition: v.value,
|
|
129
|
-
query:
|
|
130
|
-
router:
|
|
131
|
-
onSelect:
|
|
137
|
+
query: y.value,
|
|
138
|
+
router: i($),
|
|
139
|
+
onSelect: i(I)
|
|
132
140
|
}, null, 8, ["activeEnvVariables", "dropdownPosition", "query", "router", "onSelect"])) : m("", !0)
|
|
133
141
|
], 64);
|
|
134
142
|
};
|