@scalar/api-client 2.3.30 → 2.3.31
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 +24 -0
- package/dist/components/AddressBar/AddressBar.vue2.js +3 -3
- package/dist/components/AddressBar/AddressBarHistory.vue2.js +1 -1
- package/dist/components/CodeInput/CodeInput.vue2.js +1 -1
- package/dist/components/CodeInput/codeVariableWidget.js +4 -4
- package/dist/components/CommandPalette/CommandActionForm.vue.js +2 -2
- package/dist/components/CommandPalette/CommandActionInput.vue.js +2 -2
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +2 -2
- package/dist/components/CommandPalette/CommandPaletteExample.vue.js +6 -6
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +5 -5
- package/dist/components/CommandPalette/CommandPaletteImportCurl.vue2.js +7 -7
- package/dist/components/CommandPalette/CommandPaletteServer.vue.js +7 -7
- package/dist/components/CommandPalette/CommandPaletteTag.vue.js +6 -6
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.js +4 -4
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +5 -5
- package/dist/components/CommandPalette/WatchModeToggle.vue.js +2 -2
- package/dist/components/DataTable/DataTable.vue.js +5 -5
- package/dist/components/DataTable/DataTableCell.vue.js +2 -2
- package/dist/components/DataTable/DataTableCheckbox.vue.js +2 -2
- package/dist/components/DataTable/DataTableHeader.vue.js +2 -2
- package/dist/components/DataTable/DataTableInput.vue2.js +9 -9
- package/dist/components/DataTable/DataTableInputSelect.vue.js +5 -5
- package/dist/components/DataTable/DataTableRow.vue.js +2 -2
- package/dist/components/DataTable/DataTableText.vue.js +2 -2
- package/dist/components/DataTable/index.js +14 -14
- package/dist/components/EmptyState.vue2.js +2 -2
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +12 -12
- package/dist/components/Form/Form.vue.js +4 -4
- package/dist/components/Form/LabelInput.vue2.js +4 -4
- package/dist/components/HelpfulLink.vue.js +2 -2
- package/dist/components/HttpMethod/HttpMethod.vue2.js +3 -3
- package/dist/components/IconSelector.vue.js +5 -5
- package/dist/components/ImportCollection/DropEventListener.vue.js +3 -3
- package/dist/components/ImportCollection/ImportCollectionListener.vue.js +2 -2
- package/dist/components/ImportCollection/ImportCollectionModal.vue.js +1 -1
- package/dist/components/ImportCollection/ImportNowButton.vue.js +3 -3
- package/dist/components/ImportCollection/IntegrationLogo.vue.js +2 -2
- package/dist/components/ImportCollection/PrefetchError.vue.js +4 -4
- package/dist/components/ImportCollection/WorkspaceSelector.vue.js +10 -10
- package/dist/components/OpenApiClientButton.vue2.js +4 -4
- package/dist/components/ScalarAsciiArt.vue2.js +3 -3
- package/dist/components/ScalarHotkey.vue.js +2 -2
- package/dist/components/SectionFilter.vue2.js +1 -1
- package/dist/components/SectionFilterButton.vue.js +2 -2
- package/dist/components/Server/ServerDropdown.vue.js +21 -21
- package/dist/components/Server/ServerDropdownItem.vue2.js +4 -4
- package/dist/components/Server/ServerSelector.vue.js +1 -1
- package/dist/components/Server/ServerVariablesForm.vue.js +4 -4
- package/dist/components/Server/ServerVariablesSelect.vue.js +1 -1
- package/dist/components/Server/ServerVariablesTextbox.vue.js +2 -2
- package/dist/components/Server/index.js +6 -6
- package/dist/components/SideNav/DownloadAppButton.vue2.js +5 -5
- package/dist/components/SideNav/SideHelp.vue.js +2 -2
- package/dist/components/SideNav/SideNav.vue.js +5 -5
- package/dist/components/SideNav/SideNavGroup.vue.js +2 -2
- package/dist/components/SideNav/SideNavLink.vue.js +4 -4
- package/dist/components/SideNav/SideNavRouterLink.vue.js +2 -2
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.js +2 -2
- package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.js +2 -2
- package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.js +2 -2
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.js +2 -2
- package/dist/components/Sidebar/Sidebar.vue2.js +4 -4
- package/dist/components/Sidebar/SidebarButton.vue.js +3 -3
- package/dist/components/Sidebar/SidebarList.vue.js +2 -2
- package/dist/components/Sidebar/SidebarListElement.vue2.js +9 -9
- package/dist/components/Sidebar/SidebarListElementActions.vue.js +1 -1
- package/dist/components/Sidebar/SidebarToggle.vue.js +3 -3
- package/dist/components/TopNav/TopNav.vue.js +2 -2
- package/dist/components/TopNav/TopNavItem.vue2.js +20 -20
- package/dist/components/ViewLayout/ViewLayout.vue.js +2 -2
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +7 -7
- package/dist/components/ViewLayout/ViewLayoutContent.vue.js +2 -2
- package/dist/components/ViewLayout/ViewLayoutSection.vue.js +3 -3
- package/dist/hooks/useClientConfig.d.ts +3 -3
- package/dist/layouts/App/ApiClientApp.vue.js +10 -10
- package/dist/layouts/App/MainLayout.vue.js +2 -2
- package/dist/layouts/App/create-api-client-app.d.ts +2 -2
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/App/index.js +5 -4
- package/dist/layouts/Modal/ApiClientModal.vue2.js +2 -2
- package/dist/layouts/Modal/create-api-client-modal.d.ts +4 -4
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Web/ApiClientWeb.vue.js +6 -6
- package/dist/layouts/Web/create-api-client-web.d.ts +2 -2
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +2 -2
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/find-request.d.ts.map +1 -1
- package/dist/libs/hot-keys.d.ts +1 -1
- package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -1
- package/dist/router.js +4 -4
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/active-entities.js +1 -1
- package/dist/store/import-spec.js +3 -3
- package/dist/store/requests.d.ts.map +1 -1
- package/dist/store/store.d.ts +2 -2
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/store.js +37 -42
- package/dist/store/workspace.d.ts +2 -2
- package/dist/views/Collection/Collection.vue2.js +2 -2
- package/dist/views/Collection/CollectionAuthentication.vue2.js +5 -5
- package/dist/views/Collection/CollectionCookies.vue2.js +2 -2
- package/dist/views/Collection/CollectionEnvironment.vue2.js +2 -2
- package/dist/views/Collection/CollectionInfoForm.vue2.js +2 -2
- package/dist/views/Collection/CollectionNavigation.vue.js +1 -1
- package/dist/views/Collection/CollectionOverview.vue2.js +3 -3
- package/dist/views/Collection/CollectionScripts.vue2.js +2 -2
- package/dist/views/Collection/CollectionServerForm.vue.js +1 -1
- package/dist/views/Collection/CollectionServers.vue2.js +3 -3
- package/dist/views/Collection/CollectionSettings.vue2.js +4 -4
- package/dist/views/Collection/CollectionSync.vue2.js +2 -2
- package/dist/views/Collection/components/MarkdownInput.vue2.js +1 -1
- package/dist/views/Components/CodeSnippet/CodeSnippet.vue.js +3 -3
- package/dist/views/Components/CodeSnippet/index.js +8 -8
- package/dist/views/Cookies/CookieForm.vue.js +2 -2
- package/dist/views/Cookies/CookieModal.vue2.js +2 -2
- package/dist/views/Cookies/Cookies.vue2.js +6 -6
- package/dist/views/Environment/Environment.vue2.js +7 -7
- package/dist/views/Environment/EnvironmentColorModal.vue.js +2 -2
- package/dist/views/Environment/EnvironmentColors.vue.js +1 -1
- package/dist/views/Environment/EnvironmentModal.vue.js +7 -7
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +10 -10
- package/dist/views/Request/Request.vue2.js +1 -1
- package/dist/views/Request/RequestRoot.vue2.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +5 -5
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +10 -10
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +11 -11
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue2.js +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue2.js +1 -1
- package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +8 -8
- package/dist/views/Request/RequestSection/RequestParams.vue.js +13 -13
- package/dist/views/Request/RequestSection/RequestPathParams.vue.js +5 -5
- package/dist/views/Request/RequestSection/RequestSection.vue2.js +7 -7
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +7 -7
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue2.js +9 -9
- package/dist/views/Request/RequestSidebar.vue2.js +25 -25
- package/dist/views/Request/RequestSidebarItem.vue2.js +25 -25
- package/dist/views/Request/RequestSidebarItemMenu.vue2.js +1 -1
- package/dist/views/Request/RequestSubpageHeader.vue2.js +1 -1
- package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +5 -5
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +2 -2
- package/dist/views/Request/ResponseSection/ResponseBodyInfo.vue.js +2 -2
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue2.js +5 -5
- package/dist/views/Request/ResponseSection/ResponseBodyStreaming.vue.js +7 -7
- package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.js +6 -6
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js +4 -4
- package/dist/views/Request/ResponseSection/ResponseCookies.vue.js +3 -3
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +15 -15
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue2.js +3 -3
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +5 -5
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +2 -2
- package/dist/views/Request/libs/oauth2.d.ts +1 -1
- package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
- package/dist/views/Settings/Settings.vue2.js +3 -3
- package/dist/views/Settings/SettingsGeneral.vue.js +1 -1
- package/dist/views/Settings/components/SettingsAppearance.vue.js +10 -10
- package/dist/views/Settings/components/SettingsSection.vue.js +4 -4
- package/package.json +18 -18
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @scalar/api-client
|
|
2
2
|
|
|
3
|
+
## 2.3.31
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 8c7bad8: chore: move build tooling to esbuild
|
|
8
|
+
- Updated dependencies [8c7bad8]
|
|
9
|
+
- Updated dependencies [2157fb4]
|
|
10
|
+
- @scalar/postman-to-openapi@0.2.14
|
|
11
|
+
- @scalar/openapi-parser@0.10.17
|
|
12
|
+
- @scalar/use-codemirror@0.11.102
|
|
13
|
+
- @scalar/openapi-types@0.2.2
|
|
14
|
+
- @scalar/object-utils@1.1.14
|
|
15
|
+
- @scalar/use-tooltip@1.0.7
|
|
16
|
+
- @scalar/components@0.13.57
|
|
17
|
+
- @scalar/use-toasts@0.7.10
|
|
18
|
+
- @scalar/oas-utils@0.2.141
|
|
19
|
+
- @scalar/use-hooks@0.1.48
|
|
20
|
+
- @scalar/snippetz@0.2.20
|
|
21
|
+
- @scalar/import@0.3.24
|
|
22
|
+
- @scalar/themes@0.11.1
|
|
23
|
+
- @scalar/types@0.1.14
|
|
24
|
+
- @scalar/draggable@0.1.11
|
|
25
|
+
- @scalar/icons@0.3.5
|
|
26
|
+
|
|
3
27
|
## 2.3.30
|
|
4
28
|
|
|
5
29
|
### Patch Changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as z, useId as I, ref as i, watch as L,
|
|
1
|
+
import { defineComponent as z, useId as I, ref as i, watch as L, createElementBlock as U, openBlock as k, unref as r, createElementVNode as t, createVNode as u, normalizeStyle as A, normalizeClass as M, createBlock as $, createCommentVNode as H, withCtx as N, toDisplayString as b } from "vue";
|
|
2
2
|
import { ScalarButton as T, ScalarIcon as D } from "@scalar/components";
|
|
3
3
|
import { REQUEST_METHODS as O } from "@scalar/oas-utils/helpers";
|
|
4
4
|
import P from "../CodeInput/CodeInput.vue.js";
|
|
@@ -77,8 +77,8 @@ const G = ["id"], J = { class: "m-auto flex flex-row items-center" }, X = { clas
|
|
|
77
77
|
t("div", X, [
|
|
78
78
|
t("div", Y, [
|
|
79
79
|
t("div", {
|
|
80
|
-
class:
|
|
81
|
-
style:
|
|
80
|
+
class: M(["bg-mix-transparent bg-mix-amount-90 absolute left-0 top-0 z-[1002] h-full w-full", E()]),
|
|
81
|
+
style: A({ transform: `translate3d(-${l.value}%,0,0)` })
|
|
82
82
|
}, null, 6)
|
|
83
83
|
]),
|
|
84
84
|
t("div", Z, [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as x, computed as _,
|
|
1
|
+
import { defineComponent as x, computed as _, createBlock as i, openBlock as a, unref as e, withCtx as o, createVNode as l, createSlots as y, createCommentVNode as p, createElementVNode as s, normalizeStyle as C, createElementBlock as S, Fragment as b, renderList as H, toDisplayString as u, normalizeClass as q } from "vue";
|
|
2
2
|
import { Menu as B, MenuButton as M, MenuItems as w, MenuItem as z } from "@headlessui/vue";
|
|
3
3
|
import { ScalarFloating as I, ScalarIcon as F, ScalarFloatingBackdrop as N } from "@scalar/components";
|
|
4
4
|
import { httpStatusCodes as R } from "@scalar/oas-utils/helpers";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as J, useAttrs as Q, ref as d, computed as y, toRef as r, watch as G,
|
|
1
|
+
import { defineComponent as J, useAttrs as Q, ref as d, computed as y, toRef as r, watch as G, createElementBlock as s, openBlock as n, Fragment as X, createBlock as g, createCommentVNode as p, normalizeClass as Y, unref as u, createElementVNode as m, toDisplayString as Z, mergeProps as _, withKeys as v, withModifiers as N, createVNode as ee, createTextVNode as k, renderSlot as R } from "vue";
|
|
2
2
|
import { ScalarIcon as oe } from "@scalar/components";
|
|
3
3
|
import { prettyPrintJson as le } from "@scalar/oas-utils/helpers";
|
|
4
4
|
import { useCodeMirror as te, useDropdown as ne, colorPicker as ae } from "@scalar/use-codemirror";
|
|
@@ -4,7 +4,7 @@ var r = (n, t, e) => b(n, typeof t != "symbol" ? t + "" : t, e);
|
|
|
4
4
|
import { getEnvColor as v } from "../../libs/env-helpers.js";
|
|
5
5
|
import { ScalarIcon as h, ScalarButton as g, ScalarTooltip as w } from "@scalar/components";
|
|
6
6
|
import { REGEX as y } from "@scalar/oas-utils/helpers";
|
|
7
|
-
import { ViewPlugin as x,
|
|
7
|
+
import { ViewPlugin as x, EditorView as F, RangeSetBuilder as N, Decoration as k, WidgetType as C } from "@scalar/use-codemirror";
|
|
8
8
|
import { defineComponent as E, h as s, createApp as V } from "vue";
|
|
9
9
|
import { nanoid as R } from "nanoid";
|
|
10
10
|
import { parseEnvVariables as S } from "../../libs/environment-parser.js";
|
|
@@ -103,7 +103,7 @@ const z = (n) => x.fromClass(
|
|
|
103
103
|
});
|
|
104
104
|
}
|
|
105
105
|
buildDecorations(t) {
|
|
106
|
-
const e = new
|
|
106
|
+
const e = new N();
|
|
107
107
|
for (const { from: o, to: i } of t.visibleRanges) {
|
|
108
108
|
const l = t.state.doc.sliceString(o, i);
|
|
109
109
|
let a;
|
|
@@ -112,7 +112,7 @@ const z = (n) => x.fromClass(
|
|
|
112
112
|
e.add(
|
|
113
113
|
c,
|
|
114
114
|
p,
|
|
115
|
-
|
|
115
|
+
k.widget({
|
|
116
116
|
widget: new u(
|
|
117
117
|
d,
|
|
118
118
|
n.environment,
|
|
@@ -131,7 +131,7 @@ const z = (n) => x.fromClass(
|
|
|
131
131
|
{
|
|
132
132
|
decorations: (t) => t.decorations
|
|
133
133
|
}
|
|
134
|
-
), I =
|
|
134
|
+
), I = F.domEventHandlers({
|
|
135
135
|
keydown(n, t) {
|
|
136
136
|
if (n.key === "Backspace") {
|
|
137
137
|
const { state: e } = t, { from: o, to: i } = e.selection.main;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as a,
|
|
1
|
+
import { defineComponent as a, createElementBlock as d, openBlock as r, withModifiers as l, withKeys as m, createElementVNode as t, normalizeProps as p, guardReactiveProps as f, unref as n, renderSlot as s, createVNode as u, withCtx as x, createTextVNode as b } from "vue";
|
|
2
2
|
import { useBindCx as c, ScalarButton as g } from "@scalar/components";
|
|
3
3
|
const v = { class: "flex gap-2" }, w = { class: "flex max-h-8 flex-1" }, h = /* @__PURE__ */ a({
|
|
4
4
|
__name: "CommandActionForm",
|
|
@@ -9,7 +9,7 @@ const v = { class: "flex gap-2" }, w = { class: "flex max-h-8 flex-1" }, h = /*
|
|
|
9
9
|
emits: ["submit", "cancel", "back"],
|
|
10
10
|
setup(B) {
|
|
11
11
|
const { cx: i } = c();
|
|
12
|
-
return (e, o) => (
|
|
12
|
+
return (e, o) => (r(), d("form", {
|
|
13
13
|
class: "flex w-full flex-col gap-3",
|
|
14
14
|
onKeydown: o[0] || (o[0] = m(l(() => {
|
|
15
15
|
}, ["stop"]), ["enter"])),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as f, ref as c, onMounted as h, nextTick as g, computed as v, withDirectives as w,
|
|
1
|
+
import { defineComponent as f, ref as c, onMounted as h, nextTick as g, computed as v, withDirectives as w, createElementBlock as x, openBlock 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",
|
|
@@ -31,7 +31,7 @@ const E = ["placeholder"], b = /* @__PURE__ */ f({
|
|
|
31
31
|
function m(e) {
|
|
32
32
|
l.value === "" && (e.preventDefault(), e.stopPropagation(), r("onDelete", e));
|
|
33
33
|
}
|
|
34
|
-
return (e, t) => w((
|
|
34
|
+
return (e, t) => w((y(), x("textarea", k({
|
|
35
35
|
ref_key: "input",
|
|
36
36
|
ref: a,
|
|
37
37
|
"onUpdate:modelValue": t[0] || (t[0] = (o) => l.value = o),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as v, ref as u,
|
|
1
|
+
import { defineComponent as v, ref as u, createBlock as b, openBlock as _, withCtx as l, createVNode as r, createTextVNode as k, unref as c } from "vue";
|
|
2
2
|
import { ScalarButton as C } from "@scalar/components";
|
|
3
3
|
import { LibraryIcon as V } from "@scalar/icons/library";
|
|
4
4
|
import { useToasts as x } from "@scalar/use-toasts";
|
|
@@ -33,7 +33,7 @@ const D = /* @__PURE__ */ v({
|
|
|
33
33
|
(e = s.value) == null ? void 0 : e.uid
|
|
34
34
|
), i("close");
|
|
35
35
|
};
|
|
36
|
-
return (n, e) => (
|
|
36
|
+
return (n, e) => (_(), b(S, {
|
|
37
37
|
disabled: !o.value.trim(),
|
|
38
38
|
onSubmit: p
|
|
39
39
|
}, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as q, ref as x, computed as B,
|
|
2
|
-
import { ScalarDropdown as j,
|
|
1
|
+
import { defineComponent as q, ref as x, computed as B, createBlock as b, createCommentVNode as P, openBlock as i, withCtx as l, createVNode as r, createTextVNode as u, unref as n, createElementVNode as k, toDisplayString as h, createElementBlock as W, Fragment as $, renderList as I } from "vue";
|
|
2
|
+
import { ScalarDropdown as j, ScalarButton as z, ScalarIcon as M, ScalarDropdownItem as T } from "@scalar/components";
|
|
3
3
|
import { isDefined as U } from "@scalar/oas-utils/helpers";
|
|
4
4
|
import { useToasts as A } from "@scalar/use-toasts";
|
|
5
5
|
import { useRouter as F } from "vue-router";
|
|
@@ -57,7 +57,7 @@ const J = { class: "flex items-center gap-2" }, K = { class: "custom-scroll max-
|
|
|
57
57
|
}, {
|
|
58
58
|
items: l(() => [
|
|
59
59
|
k("div", K, [
|
|
60
|
-
(i(!0),
|
|
60
|
+
(i(!0), W($, null, I(R.value, (t) => (i(), b(n(T), {
|
|
61
61
|
key: t.uid,
|
|
62
62
|
class: "flex h-7 w-full items-center justify-between px-1 pr-[26px]",
|
|
63
63
|
onClick: (Q) => f(t)
|
|
@@ -73,7 +73,7 @@ const J = { class: "flex items-center gap-2" }, K = { class: "custom-scroll max-
|
|
|
73
73
|
])
|
|
74
74
|
]),
|
|
75
75
|
default: l(() => [
|
|
76
|
-
r(n(
|
|
76
|
+
r(n(z), {
|
|
77
77
|
class: "hover:bg-b-2 max-h-8 w-full justify-between gap-1 p-2 text-xs",
|
|
78
78
|
variant: "outlined",
|
|
79
79
|
onClick: e[2] || (e[2] = (t) => f(a.value))
|
|
@@ -84,7 +84,7 @@ const J = { class: "flex items-center gap-2" }, K = { class: "custom-scroll max-
|
|
|
84
84
|
r(_, {
|
|
85
85
|
method: a.value.method
|
|
86
86
|
}, null, 8, ["method"]),
|
|
87
|
-
r(n(
|
|
87
|
+
r(n(M), {
|
|
88
88
|
class: "text-c-3",
|
|
89
89
|
icon: "ChevronDown",
|
|
90
90
|
size: "md"
|
|
@@ -110,7 +110,7 @@ const J = { class: "flex items-center gap-2" }, K = { class: "custom-scroll max-
|
|
|
110
110
|
}, null, 8, ["modelValue"])
|
|
111
111
|
]),
|
|
112
112
|
_: 1
|
|
113
|
-
}, 8, ["disabled"])) :
|
|
113
|
+
}, 8, ["disabled"])) : P("", !0);
|
|
114
114
|
}
|
|
115
115
|
});
|
|
116
116
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as G, ref as R, computed as k, watch as D,
|
|
2
|
-
import { useLoadingState as K, ScalarButton as T,
|
|
1
|
+
import { defineComponent as G, ref as R, computed as k, watch as D, createBlock as _, openBlock as n, unref as s, withCtx as v, createElementBlock as c, Fragment as g, createElementVNode as w, createCommentVNode as H, createVNode as C, createTextVNode as f, toDisplayString as V } from "vue";
|
|
2
|
+
import { useLoadingState as K, ScalarButton as T, ScalarCodeBlock as Q, ScalarIcon as X, ScalarTooltip as Z } from "@scalar/components";
|
|
3
3
|
import { useToasts as ee } from "@scalar/use-toasts";
|
|
4
4
|
import { useRouter as te } from "vue-router";
|
|
5
5
|
import { importCurlCommand as oe } from "../../libs/importers/curl.js";
|
|
@@ -151,7 +151,7 @@ const me = { class: "flex justify-between" }, de = { class: "flex w-full flex-ro
|
|
|
151
151
|
}, {
|
|
152
152
|
default: v(() => [
|
|
153
153
|
e[5] || (e[5] = f(" JSON, or YAML File ")),
|
|
154
|
-
C(s(
|
|
154
|
+
C(s(X), {
|
|
155
155
|
class: "text-c-3",
|
|
156
156
|
icon: "Upload",
|
|
157
157
|
size: "md"
|
|
@@ -159,7 +159,7 @@ const me = { class: "flex justify-between" }, de = { class: "flex w-full flex-ro
|
|
|
159
159
|
]),
|
|
160
160
|
_: 1
|
|
161
161
|
}, 8, ["onClick"]),
|
|
162
|
-
C(s(
|
|
162
|
+
C(s(Z), {
|
|
163
163
|
as: "div",
|
|
164
164
|
class: "z-[10001]",
|
|
165
165
|
side: "bottom",
|
|
@@ -218,7 +218,7 @@ const me = { class: "flex justify-between" }, de = { class: "flex w-full flex-ro
|
|
|
218
218
|
_: 1
|
|
219
219
|
})
|
|
220
220
|
]),
|
|
221
|
-
i.value && !s(U)(a.value) ? (n(), _(s(
|
|
221
|
+
i.value && !s(U)(a.value) ? (n(), _(s(Q), {
|
|
222
222
|
key: 0,
|
|
223
223
|
class: "bg-b-2 mt-1 max-h-[40dvh] rounded border px-2 py-1 text-sm",
|
|
224
224
|
content: a.value,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as N, ref as I, computed as A,
|
|
1
|
+
import { defineComponent as N, ref as I, computed as A, createElementBlock as G, openBlock as H, Fragment as T, createElementVNode as r, createVNode as n, withCtx as d, toDisplayString as f, unref as v, normalizeClass as X } from "vue";
|
|
2
2
|
import { ScalarListbox as $, ScalarButton as J, ScalarIcon as K } from "@scalar/components";
|
|
3
3
|
import { REGEX as Q } from "@scalar/oas-utils/helpers";
|
|
4
4
|
import { useRouter as Y } from "vue-router";
|
|
@@ -80,7 +80,7 @@ const ae = { class: "flex h-9 flex-row items-center gap-2 rounded border p-[3px]
|
|
|
80
80
|
collectionUid: ((t = s.value) == null ? void 0 : t.id) ?? ""
|
|
81
81
|
});
|
|
82
82
|
};
|
|
83
|
-
return (t, e) => (
|
|
83
|
+
return (t, e) => (H(), G(T, null, [
|
|
84
84
|
e[1] || (e[1] = r("div", { class: "text-c-2 flex-center py-1.5 text-sm" }, "Import cURL", -1)),
|
|
85
85
|
n(Z, {
|
|
86
86
|
class: "mt-1.5 min-h-fit",
|
|
@@ -88,21 +88,21 @@ const ae = { class: "flex h-9 flex-row items-center gap-2 rounded border p-[3px]
|
|
|
88
88
|
}, {
|
|
89
89
|
options: d(() => [
|
|
90
90
|
r("div", se, [
|
|
91
|
-
n(
|
|
91
|
+
n(v($), {
|
|
92
92
|
modelValue: s.value,
|
|
93
93
|
"onUpdate:modelValue": e[0] || (e[0] = (l) => s.value = l),
|
|
94
94
|
options: p.value
|
|
95
95
|
}, {
|
|
96
96
|
default: d(() => [
|
|
97
|
-
n(
|
|
97
|
+
n(v(J), {
|
|
98
98
|
class: "hover:bg-b-2 max-h-8 w-full justify-between gap-1 p-2 text-xs",
|
|
99
99
|
variant: "outlined"
|
|
100
100
|
}, {
|
|
101
101
|
default: d(() => [
|
|
102
102
|
r("span", {
|
|
103
103
|
class: X(["whitespace-nowrap", s.value ? "text-c-1" : "text-c-3"])
|
|
104
|
-
},
|
|
105
|
-
n(
|
|
104
|
+
}, f(s.value ? s.value.label : "Select Collection"), 3),
|
|
105
|
+
n(v(K), {
|
|
106
106
|
class: "text-c-3",
|
|
107
107
|
icon: "ChevronDown",
|
|
108
108
|
size: "md"
|
|
@@ -129,7 +129,7 @@ const ae = { class: "flex h-9 flex-row items-center gap-2 rounded border p-[3px]
|
|
|
129
129
|
method: ((l = t.metaData.parsedCurl) == null ? void 0 : l.method) || "get"
|
|
130
130
|
}, null, 8, ["method"])
|
|
131
131
|
]),
|
|
132
|
-
r("span", re,
|
|
132
|
+
r("span", re, f(((i = (o = t.metaData.parsedCurl) == null ? void 0 : o.servers) == null ? void 0 : i[0]) || "") + f(((u = t.metaData.parsedCurl) == null ? void 0 : u.path) || ""), 1)
|
|
133
133
|
])
|
|
134
134
|
];
|
|
135
135
|
}),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as N, ref as p, computed as h,
|
|
1
|
+
import { defineComponent as N, ref as p, computed as h, createBlock as u, openBlock as c, withCtx as l, createVNode as m, createTextVNode as B, unref as s, createElementVNode as f, normalizeClass as M, toDisplayString as T } from "vue";
|
|
2
2
|
import { ScalarListbox as j, ScalarButton as b, ScalarIcon as z } from "@scalar/components";
|
|
3
3
|
import { useToasts as E } from "@scalar/use-toasts";
|
|
4
4
|
import { useRouter as I } from "vue-router";
|
|
@@ -63,7 +63,7 @@ const X = /* @__PURE__ */ N({
|
|
|
63
63
|
}, _ = () => {
|
|
64
64
|
w.commandPalette.emit({ commandName: "Create Collection" });
|
|
65
65
|
};
|
|
66
|
-
return (t, e) => (
|
|
66
|
+
return (t, e) => (c(), u(R, {
|
|
67
67
|
disabled: !r.value.trim() || !a.value,
|
|
68
68
|
onSubmit: P
|
|
69
69
|
}, {
|
|
@@ -74,15 +74,15 @@ const X = /* @__PURE__ */ N({
|
|
|
74
74
|
options: i.value
|
|
75
75
|
}, {
|
|
76
76
|
default: l(() => [
|
|
77
|
-
i.value.length > 0 ? (
|
|
77
|
+
i.value.length > 0 ? (c(), u(s(b), {
|
|
78
78
|
key: 0,
|
|
79
79
|
class: "hover:bg-b-2 max-h-8 w-fit justify-between gap-1 p-2 text-xs",
|
|
80
80
|
variant: "outlined"
|
|
81
81
|
}, {
|
|
82
82
|
default: l(() => [
|
|
83
83
|
f("span", {
|
|
84
|
-
class:
|
|
85
|
-
},
|
|
84
|
+
class: M(a.value ? "text-c-1" : "text-c-3")
|
|
85
|
+
}, T(a.value ? a.value.label : "Select Collection"), 3),
|
|
86
86
|
m(s(z), {
|
|
87
87
|
class: "text-c-3",
|
|
88
88
|
icon: "ChevronDown",
|
|
@@ -90,7 +90,7 @@ const X = /* @__PURE__ */ N({
|
|
|
90
90
|
})
|
|
91
91
|
]),
|
|
92
92
|
_: 1
|
|
93
|
-
})) : (
|
|
93
|
+
})) : (c(), u(s(b), {
|
|
94
94
|
key: 1,
|
|
95
95
|
class: "hover:bg-b-2 max-h-8 w-fit justify-between gap-1 p-2 text-xs",
|
|
96
96
|
variant: "outlined",
|
|
@@ -106,7 +106,7 @@ const X = /* @__PURE__ */ N({
|
|
|
106
106
|
}, 8, ["modelValue", "options"])
|
|
107
107
|
]),
|
|
108
108
|
submit: l(() => e[4] || (e[4] = [
|
|
109
|
-
|
|
109
|
+
B(" Create Server ")
|
|
110
110
|
])),
|
|
111
111
|
default: l(() => [
|
|
112
112
|
m(W, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as g, computed as x, ref as m,
|
|
1
|
+
import { defineComponent as g, computed as x, ref as m, createBlock as C, openBlock as V, withCtx as n, createVNode as i, createTextVNode as S, unref as s, createElementVNode as _, normalizeClass as k, toDisplayString as T } from "vue";
|
|
2
2
|
import { ScalarListbox as N, ScalarButton as w, ScalarIcon as B } from "@scalar/components";
|
|
3
3
|
import { useToasts as D } from "@scalar/use-toasts";
|
|
4
4
|
import { useActiveEntities as y } from "../../store/active-entities.js";
|
|
@@ -38,7 +38,7 @@ const O = /* @__PURE__ */ g({
|
|
|
38
38
|
t.value.id
|
|
39
39
|
) && r("close");
|
|
40
40
|
};
|
|
41
|
-
return (o, e) => (
|
|
41
|
+
return (o, e) => (V(), C(z, {
|
|
42
42
|
disabled: !a.value.trim(),
|
|
43
43
|
onSubmit: b
|
|
44
44
|
}, {
|
|
@@ -54,9 +54,9 @@ const O = /* @__PURE__ */ g({
|
|
|
54
54
|
variant: "outlined"
|
|
55
55
|
}, {
|
|
56
56
|
default: n(() => [
|
|
57
|
-
|
|
58
|
-
class:
|
|
59
|
-
},
|
|
57
|
+
_("span", {
|
|
58
|
+
class: k(t.value ? "text-c-1" : "text-c-3")
|
|
59
|
+
}, T(t.value ? t.value.label : "Select Collection"), 3),
|
|
60
60
|
i(s(B), {
|
|
61
61
|
class: "text-c-3",
|
|
62
62
|
icon: "ChevronDown",
|
|
@@ -70,7 +70,7 @@ const O = /* @__PURE__ */ g({
|
|
|
70
70
|
}, 8, ["modelValue", "options"])
|
|
71
71
|
]),
|
|
72
72
|
submit: n(() => e[3] || (e[3] = [
|
|
73
|
-
|
|
73
|
+
S(" Create Tag ")
|
|
74
74
|
])),
|
|
75
75
|
default: n(() => [
|
|
76
76
|
i(E, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as c, ref as i,
|
|
1
|
+
import { defineComponent as c, ref as i, createBlock as d, openBlock as f, withCtx as s, createVNode as k, createTextVNode as b } from "vue";
|
|
2
2
|
import { useToasts as w } from "@scalar/use-toasts";
|
|
3
3
|
import { useRouter as _ } from "vue-router";
|
|
4
4
|
import v from "./CommandActionForm.vue.js";
|
|
@@ -23,15 +23,15 @@ const $ = /* @__PURE__ */ c({
|
|
|
23
23
|
}
|
|
24
24
|
}), t("close");
|
|
25
25
|
};
|
|
26
|
-
return (r, e) => (
|
|
26
|
+
return (r, e) => (f(), d(v, {
|
|
27
27
|
disabled: !o.value.trim(),
|
|
28
28
|
onSubmit: u
|
|
29
29
|
}, {
|
|
30
30
|
submit: s(() => e[2] || (e[2] = [
|
|
31
|
-
|
|
31
|
+
b("Create Workspace")
|
|
32
32
|
])),
|
|
33
33
|
default: s(() => [
|
|
34
|
-
|
|
34
|
+
k(N, {
|
|
35
35
|
modelValue: o.value,
|
|
36
36
|
"onUpdate:modelValue": e[0] || (e[0] = (a) => o.value = a),
|
|
37
37
|
label: "Workspace Name",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TheCommandPalette.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/TheCommandPalette.vue"],"names":[],"mappings":"AA0eA;;;;GAIG;;AACH,wBAmjBI;AAEJ,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;mBAnlB9B,CAvTqC;qBAuTrC,CAtTY;;;;;;;mBAsTZ,CAvTqC;qBAuTrC,CAtTY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+
|
|
1
|
+
{"version":3,"file":"TheCommandPalette.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/TheCommandPalette.vue"],"names":[],"mappings":"AA0eA;;;;GAIG;;AACH,wBAmjBI;AAEJ,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;mBAnlB9B,CAvTqC;qBAuTrC,CAtTY;;;;;;;mBAsTZ,CAvTqC;qBAuTrC,CAtTY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BA6sBkB,CAAC;;;;;;;;;;;;;;;+BAOmD,CAAC;4BAAsC,CAAC;2BAAsC,CAAC;8BAEjK,CAAC;4BAEmC,CAAC;6BACb,CAAC;+BAA8B,CAAC;qCAA+C,CAAC;;0BAI/F,CAAC;2BAA0B,CAAC;yBAAwB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;+BAhBhC,CAAC;;;;;;;;;;;;;;;+BAOmD,CAAC;4BAAsC,CAAC;2BAAsC,CAAC;8BAEjK,CAAC;4BAEmC,CAAC;6BACb,CAAC;+BAA8B,CAAC;qCAA+C,CAAC;;0BAI/F,CAAC;2BAA0B,CAAC;yBAAwB,CAAC;;;;;;;;;;;;;;;;;;CAqLpD,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"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as oe, ref as f, computed as U, watch as te, onMounted as ne, onBeforeUnmount as ae,
|
|
1
|
+
import { defineComponent as oe, ref as f, computed as U, watch as te, onMounted as ne, onBeforeUnmount as ae, createBlock as W, openBlock as l, unref as c, withCtx as A, createElementVNode as v, createVNode as k, createElementBlock as u, createTextVNode as V, createCommentVNode as le, withKeys as S, withModifiers as T, Fragment as D, renderList as O, withDirectives as se, toDisplayString as F, vShow as re, normalizeClass as me, resolveDynamicComponent as ie, mergeProps as ce, nextTick as g } from "vue";
|
|
2
2
|
import { Dialog as ue, DialogPanel as de, DialogTitle as pe } from "@headlessui/vue";
|
|
3
3
|
import { useModal as fe, ScalarIcon as L } from "@scalar/components";
|
|
4
4
|
import { useRouter as ve } from "vue-router";
|
|
@@ -258,9 +258,9 @@ const Ae = {
|
|
|
258
258
|
(l(), u(D, null, O(E, (t) => (l(), u(D, {
|
|
259
259
|
key: t.label
|
|
260
260
|
}, [
|
|
261
|
-
|
|
261
|
+
se(v("div", { class: "text-c-3 mb-1 mt-2 px-2 text-xs font-medium" }, F(t.label), 513), [
|
|
262
262
|
[
|
|
263
|
-
|
|
263
|
+
re,
|
|
264
264
|
t.commands.filter(
|
|
265
265
|
(n) => n.name.toLowerCase().includes(s.value.toLowerCase())
|
|
266
266
|
).length > 0
|
|
@@ -281,7 +281,7 @@ const Ae = {
|
|
|
281
281
|
x !== -1 && (B.value[x] = i);
|
|
282
282
|
}
|
|
283
283
|
},
|
|
284
|
-
class:
|
|
284
|
+
class: me(["commandmenu-item hover:bg-b-2 flex cursor-pointer items-center rounded px-2 py-1.5 text-sm", {
|
|
285
285
|
"bg-b-2": n.name === ((a = I.value) == null ? void 0 : a.name)
|
|
286
286
|
}]),
|
|
287
287
|
onClick: (i) => H(n)
|
|
@@ -296,7 +296,7 @@ const Ae = {
|
|
|
296
296
|
], 10, Le);
|
|
297
297
|
}), 128))
|
|
298
298
|
], 64))), 64)),
|
|
299
|
-
h.value.length ?
|
|
299
|
+
h.value.length ? le("", !0) : (l(), u("div", Ee, " No commands found "))
|
|
300
300
|
]))
|
|
301
301
|
]),
|
|
302
302
|
_: 1
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as c, computed as p,
|
|
1
|
+
import { defineComponent as c, computed as p, createElementBlock as i, openBlock as f, normalizeClass as a, createElementVNode as V, createVNode as d, createTextVNode as g, unref as s } from "vue";
|
|
2
2
|
import { ScalarIcon as x, ScalarToggle as b } from "@scalar/components";
|
|
3
3
|
const N = /* @__PURE__ */ c({
|
|
4
4
|
__name: "WatchModeToggle",
|
|
@@ -12,7 +12,7 @@ const N = /* @__PURE__ */ c({
|
|
|
12
12
|
get: () => r.modelValue,
|
|
13
13
|
set: (e) => l("update:modelValue", e)
|
|
14
14
|
});
|
|
15
|
-
return (e, t) => (
|
|
15
|
+
return (e, t) => (f(), i("label", {
|
|
16
16
|
class: a(["text-c-2 flex select-none items-center gap-2 rounded p-3 py-1.5 text-sm", e.disabled ? "cursor-default" : "cursor-pointer"]),
|
|
17
17
|
for: "watch-toggle"
|
|
18
18
|
}, [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as r,
|
|
1
|
+
import { defineComponent as r, createElementBlock as o, openBlock as l, normalizeProps as n, guardReactiveProps as i, unref as m, createElementVNode as p, normalizeStyle as c, normalizeClass as u, createCommentVNode as d, renderSlot as t } from "vue";
|
|
2
2
|
import { useBindCx as f } from "@scalar/components";
|
|
3
3
|
const b = ["role"], y = {
|
|
4
4
|
key: 0,
|
|
@@ -12,20 +12,20 @@ const b = ["role"], y = {
|
|
|
12
12
|
},
|
|
13
13
|
setup(v) {
|
|
14
14
|
const { cx: a } = f();
|
|
15
|
-
return (e, w) => (
|
|
15
|
+
return (e, w) => (l(), o("div", n(i(
|
|
16
16
|
m(a)(
|
|
17
17
|
e.scroll ? "overflow-x-auto custom-scroll" : "overflow-visible",
|
|
18
18
|
"scalar-data-table bg-b-1"
|
|
19
19
|
)
|
|
20
20
|
)), [
|
|
21
21
|
p("table", {
|
|
22
|
-
class:
|
|
22
|
+
class: u(["mb-0 grid min-h-8 auto-rows-auto", { "w-max min-w-full": e.scroll }]),
|
|
23
23
|
role: e.presentational ? "presentation" : "table",
|
|
24
|
-
style:
|
|
24
|
+
style: c({
|
|
25
25
|
gridTemplateColumns: e.columns.map((s) => s || "1fr").join(" ")
|
|
26
26
|
})
|
|
27
27
|
}, [
|
|
28
|
-
e.$slots.caption ? (
|
|
28
|
+
e.$slots.caption ? (l(), o("caption", y, [
|
|
29
29
|
t(e.$slots, "caption")
|
|
30
30
|
])) : d("", !0),
|
|
31
31
|
t(e.$slots, "default")
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as t,
|
|
1
|
+
import { defineComponent as t, createBlock as o, openBlock as a, resolveDynamicComponent as n, mergeProps as s, unref as l, withCtx as p, renderSlot as d } from "vue";
|
|
2
2
|
import { useBindCx as m } from "@scalar/components";
|
|
3
3
|
const f = /* @__PURE__ */ t({
|
|
4
4
|
inheritAttrs: !1,
|
|
@@ -8,7 +8,7 @@ const f = /* @__PURE__ */ t({
|
|
|
8
8
|
},
|
|
9
9
|
setup(b) {
|
|
10
10
|
const { cx: e } = m();
|
|
11
|
-
return (r, i) => (
|
|
11
|
+
return (r, i) => (a(), o(n(r.is), s(
|
|
12
12
|
l(e)(
|
|
13
13
|
"box-content max-h-8 min-h-8 min-w-8 border-l-0 border-t border-b-0 border-r flex text-sm last:border-r-0 group-last:border-b-transparent p-0 m-0 relative"
|
|
14
14
|
),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as c,
|
|
1
|
+
import { defineComponent as c, createBlock as n, openBlock as i, withCtx as d, createElementVNode as a, normalizeClass as t, unref as l, createVNode as u } from "vue";
|
|
2
2
|
import { cva as p, ScalarIcon as m } from "@scalar/components";
|
|
3
3
|
import b from "./DataTableCell.vue.js";
|
|
4
4
|
const f = ["checked", "disabled"], y = /* @__PURE__ */ c({
|
|
@@ -19,7 +19,7 @@ const f = ["checked", "disabled"], y = /* @__PURE__ */ c({
|
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
|
-
return (e, o) => (
|
|
22
|
+
return (e, o) => (i(), n(b, { class: "group/cell relative flex min-w-8" }, {
|
|
23
23
|
default: d(() => [
|
|
24
24
|
a("input", {
|
|
25
25
|
checked: e.modelValue,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as o,
|
|
1
|
+
import { defineComponent as o, createBlock as r, openBlock as n, mergeProps as m, unref as s, withCtx as a, renderSlot as f } from "vue";
|
|
2
2
|
import { useBindCx as i } from "@scalar/components";
|
|
3
3
|
import c from "./DataTableCell.vue.js";
|
|
4
4
|
const x = /* @__PURE__ */ o({
|
|
5
5
|
__name: "DataTableHeader",
|
|
6
6
|
setup(p) {
|
|
7
7
|
const { cx: e } = i();
|
|
8
|
-
return (t, u) => (
|
|
8
|
+
return (t, u) => (n(), r(c, m({ is: "th" }, s(e)("items-center font-medium px-2 min-w-0 -outline-offset-1")), {
|
|
9
9
|
default: a(() => [
|
|
10
10
|
f(t.$slots, "default")
|
|
11
11
|
]),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as b, ref as d, computed as g,
|
|
1
|
+
import { defineComponent as b, ref as d, computed as g, createBlock as s, openBlock as n, normalizeClass as B, withCtx as C, createElementBlock as i, createCommentVNode as u, createElementVNode as $, renderSlot as p, createTextVNode as O, Fragment as I, mergeProps as y, unref as h } from "vue";
|
|
2
2
|
import { ScalarIconButton as A } from "@scalar/components";
|
|
3
3
|
import W from "../CodeInput/CodeInput.vue.js";
|
|
4
4
|
import q from "./DataTableCell.vue.js";
|
|
@@ -46,10 +46,10 @@ const F = ["for"], S = { class: "row-1 relative min-w-0" }, T = ["readOnly", "ty
|
|
|
46
46
|
for: e.id ?? "",
|
|
47
47
|
onClick: k
|
|
48
48
|
}, [
|
|
49
|
-
|
|
50
|
-
l[5] || (l[5] =
|
|
51
|
-
], 8, F)) :
|
|
52
|
-
|
|
49
|
+
p(e.$slots, "default", {}, void 0, !0),
|
|
50
|
+
l[5] || (l[5] = O(": "))
|
|
51
|
+
], 8, F)) : u("", !0),
|
|
52
|
+
$("div", S, [
|
|
53
53
|
a.enum && a.enum.length ? (n(), s(E, {
|
|
54
54
|
key: 0,
|
|
55
55
|
canAddCustomValue: a.canAddCustomEnumValue,
|
|
@@ -99,16 +99,16 @@ const F = ["for"], S = { class: "row-1 relative min-w-0" }, T = ["readOnly", "ty
|
|
|
99
99
|
], 64))
|
|
100
100
|
]),
|
|
101
101
|
e.$slots.warning ? (n(), i("div", N, [
|
|
102
|
-
|
|
103
|
-
])) :
|
|
104
|
-
|
|
102
|
+
p(e.$slots, "warning", {}, void 0, !0)
|
|
103
|
+
])) : u("", !0),
|
|
104
|
+
p(e.$slots, "icon", {}, void 0, !0),
|
|
105
105
|
e.type === "password" ? (n(), s(h(A), {
|
|
106
106
|
key: 2,
|
|
107
107
|
class: "-ml-.5 mr-1.25 p-1.25 h-6 w-6 self-center",
|
|
108
108
|
icon: r.value ? "Show" : "Hide",
|
|
109
109
|
label: r.value ? "Show Password" : "Hide Password",
|
|
110
110
|
onClick: l[4] || (l[4] = (o) => r.value = !r.value)
|
|
111
|
-
}, null, 8, ["icon", "label"])) :
|
|
111
|
+
}, null, 8, ["icon", "label"])) : u("", !0)
|
|
112
112
|
]),
|
|
113
113
|
_: 3
|
|
114
114
|
}, 8, ["class"]));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as T, computed as m, ref as V, watch as S, nextTick as E,
|
|
1
|
+
import { defineComponent as T, computed as m, ref as V, watch as S, nextTick as E, createElementBlock as f, openBlock as o, createBlock as v, withDirectives as K, unref as a, withCtx as s, createVNode as u, createElementVNode as i, toDisplayString as y, withKeys as M, vModelText as R, createCommentVNode as C, Fragment as _, renderList as U, normalizeClass as W } from "vue";
|
|
2
2
|
import { ScalarComboboxMultiselect as $, ScalarButton as b, ScalarIcon as h, ScalarDropdown as F, ScalarDropdownItem as D, ScalarDropdownDivider as L } from "@scalar/components";
|
|
3
3
|
const q = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-full pr-10 -outline-offset-1 has-[:focus-visible]:rounded-[4px] has-[:focus-visible]:outline" }, G = { class: "text-c-1 whitespace-nowrap" }, H = { class: "text-c-1 overflow-hidden text-ellipsis" }, J = { class: "overflow-hidden text-ellipsis" }, P = { class: "flex h-4 w-4 items-center justify-center" }, Z = /* @__PURE__ */ T({
|
|
4
4
|
__name: "DataTableInputSelect",
|
|
@@ -80,7 +80,7 @@ const q = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-f
|
|
|
80
80
|
value: k.value
|
|
81
81
|
}, {
|
|
82
82
|
items: s(() => [
|
|
83
|
-
(o(!0), f(
|
|
83
|
+
(o(!0), f(_, null, U(p.value, (t) => (o(), v(a(D), {
|
|
84
84
|
key: t,
|
|
85
85
|
class: "group/item flex items-center gap-1.5 overflow-hidden text-ellipsis whitespace-nowrap",
|
|
86
86
|
value: t,
|
|
@@ -103,8 +103,8 @@ const q = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-f
|
|
|
103
103
|
]),
|
|
104
104
|
_: 2
|
|
105
105
|
}, 1032, ["value", "onClick"]))), 128)),
|
|
106
|
-
e.canAddCustomValue ? (o(), f(
|
|
107
|
-
p.value.length ? (o(), v(a(L), { key: 0 })) :
|
|
106
|
+
e.canAddCustomValue ? (o(), f(_, { key: 0 }, [
|
|
107
|
+
p.value.length ? (o(), v(a(L), { key: 0 })) : C("", !0),
|
|
108
108
|
u(a(D), {
|
|
109
109
|
class: "flex items-center gap-1.5",
|
|
110
110
|
onClick: l[1] || (l[1] = (t) => d.value = !0)
|
|
@@ -120,7 +120,7 @@ const q = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-f
|
|
|
120
120
|
]),
|
|
121
121
|
_: 1
|
|
122
122
|
})
|
|
123
|
-
], 64)) :
|
|
123
|
+
], 64)) : C("", !0)
|
|
124
124
|
]),
|
|
125
125
|
default: s(() => [
|
|
126
126
|
u(a(b), {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createElementBlock as t, openBlock as o, renderSlot as r } from "vue";
|
|
2
2
|
import c from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
3
|
const n = {}, s = { class: "group contents" };
|
|
4
4
|
function a(e, l) {
|
|
5
|
-
return
|
|
5
|
+
return o(), t("tr", s, [
|
|
6
6
|
r(e.$slots, "default")
|
|
7
7
|
]);
|
|
8
8
|
}
|