@scalar/api-client 2.0.33 → 2.0.35
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 +28 -0
- package/dist/components/CodeInput/CodeInput.vue.js +2 -2
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +39 -31
- package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteExample.vue.js +65 -55
- package/dist/components/CommandPalette/CommandPaletteFolder.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteFolder.vue.js +53 -44
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +42 -34
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +126 -70
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.js +37 -29
- 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 +97 -85
- package/dist/components/CommandPalette/handleKeyDown.d.ts +2 -0
- package/dist/components/CommandPalette/handleKeyDown.d.ts.map +1 -0
- package/dist/components/CommandPalette/handleKeyDown.js +7 -0
- package/dist/components/DataTable/DataTableInput.vue.d.ts +7 -0
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInput.vue.js +3 -3
- package/dist/components/DataTable/DataTableInput.vue2.js +33 -31
- package/dist/components/DataTable/DataTableInputSelect.vue.d.ts +19 -3
- package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInputSelect.vue.js +37 -35
- package/dist/components/DataTable/index.d.ts +1 -0
- package/dist/components/DataTable/index.d.ts.map +1 -1
- package/dist/components/DataTable/index.js +6 -4
- package/dist/components/Form/Form.vue.js +1 -1
- package/dist/components/Search/SearchButton.vue.d.ts.map +1 -1
- package/dist/components/Search/SearchButton.vue.js +14 -16
- package/dist/components/SideNav/SideHelp.vue.d.ts +3 -0
- package/dist/components/SideNav/SideHelp.vue.d.ts.map +1 -0
- package/dist/components/SideNav/SideHelp.vue.js +125 -0
- package/dist/components/SideNav/SideHelp.vue2.js +4 -0
- package/dist/components/SideNav/SideNav.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNav.vue.js +3 -3
- package/dist/components/SideNav/SideNav.vue2.js +28 -24
- package/dist/components/Sidebar/SidebarButton.vue.js +1 -1
- package/dist/components/Sidebar/SidebarList.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarList.vue.js +1 -1
- package/dist/components/Sidebar/SidebarListElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarListElement.vue.js +1 -1
- package/dist/components/Sidebar/SidebarListElement.vue2.js +9 -9
- package/dist/constants.d.ts +0 -4
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +2 -2
- package/dist/layouts/App/create-api-client-app.d.ts +512 -603
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/api-client-modal.d.ts +1036 -1218
- package/dist/layouts/Modal/api-client-modal.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +513 -603
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/create-client.js +58 -68
- package/dist/libs/local-storage.js +5 -5
- package/dist/libs/sendRequest.d.ts +3 -5
- package/dist/libs/sendRequest.d.ts.map +1 -1
- package/dist/libs/sendRequest.js +73 -67
- package/dist/store/workspace.d.ts +1037 -1219
- package/dist/store/workspace.d.ts.map +1 -1
- package/dist/store/workspace.js +350 -277
- package/dist/style.css +1 -1
- 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 +101 -102
- package/dist/views/Request/RequestSection/RequestAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth.vue.js +270 -177
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.js +52 -42
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue.js +141 -104
- package/dist/views/Request/components/OAuth2.vue.d.ts +3 -9
- package/dist/views/Request/components/OAuth2.vue.d.ts.map +1 -1
- package/dist/views/Request/components/OAuth2.vue.js +141 -112
- package/dist/views/Request/components/OAuthScopesInput.vue.d.ts +2 -6
- package/dist/views/Request/components/OAuthScopesInput.vue.d.ts.map +1 -1
- package/dist/views/Request/components/OAuthScopesInput.vue.js +35 -39
- package/dist/views/Request/consts/index.d.ts +2 -0
- package/dist/views/Request/consts/index.d.ts.map +1 -0
- package/dist/views/Request/consts/index.js +5 -0
- package/dist/views/Request/consts/new-auth-options.d.ts +92 -0
- package/dist/views/Request/consts/new-auth-options.d.ts.map +1 -0
- package/dist/views/Request/consts/new-auth-options.js +83 -0
- package/dist/views/Request/libs/oauth2.d.ts +3 -16
- package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
- package/dist/views/Request/libs/oauth2.js +28 -31
- package/package.json +9 -5
|
@@ -10,11 +10,14 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
|
10
10
|
containerClass?: string;
|
|
11
11
|
required?: boolean;
|
|
12
12
|
modelValue: string | number;
|
|
13
|
+
/** Allows adding a custom value to the enum dropdown, defaults to true */
|
|
14
|
+
canAddCustomEnumValue?: boolean;
|
|
13
15
|
readOnly?: boolean;
|
|
14
16
|
enum?: string[];
|
|
15
17
|
min?: number;
|
|
16
18
|
max?: number;
|
|
17
19
|
}>, {
|
|
20
|
+
canAddCustomEnumValue: boolean;
|
|
18
21
|
required: boolean;
|
|
19
22
|
readOnly: boolean;
|
|
20
23
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -29,11 +32,14 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
|
29
32
|
containerClass?: string;
|
|
30
33
|
required?: boolean;
|
|
31
34
|
modelValue: string | number;
|
|
35
|
+
/** Allows adding a custom value to the enum dropdown, defaults to true */
|
|
36
|
+
canAddCustomEnumValue?: boolean;
|
|
32
37
|
readOnly?: boolean;
|
|
33
38
|
enum?: string[];
|
|
34
39
|
min?: number;
|
|
35
40
|
max?: number;
|
|
36
41
|
}>, {
|
|
42
|
+
canAddCustomEnumValue: boolean;
|
|
37
43
|
required: boolean;
|
|
38
44
|
readOnly: boolean;
|
|
39
45
|
}>>> & {
|
|
@@ -43,6 +49,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
|
43
49
|
onInputBlur?: (() => any) | undefined;
|
|
44
50
|
}, {
|
|
45
51
|
required: boolean;
|
|
52
|
+
canAddCustomEnumValue: boolean;
|
|
46
53
|
readOnly: boolean;
|
|
47
54
|
}, {}>;
|
|
48
55
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
@@ -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":"AAwNA,iBAAS,cAAc;qBAkKM,GAAG;qBACF,GAAG;kBACN,GAAG;EAuB7B;AACD,QAAA,MAAM,eAAe;SAlQZ,MAAM;WACJ,MAAM;IACb,sEAAsE;qBACrD,MAAM;eACZ,OAAO;gBACN,MAAM,GAAG,MAAM;IAC3B,0EAA0E;4BAClD,OAAO;eACpB,OAAO;WACX,MAAM,EAAE;UACT,MAAM;UACN,MAAM;;;;;;;;;;;SAXP,MAAM;WACJ,MAAM;IACb,sEAAsE;qBACrD,MAAM;eACZ,OAAO;gBACN,MAAM,GAAG,MAAM;IAC3B,0EAA0E;4BAClD,OAAO;eACpB,OAAO;WACX,MAAM,EAAE;UACT,MAAM;UACN,MAAM;;;;;;;;;;;cAPD,OAAO;2BAGM,OAAO;cACpB,OAAO;MAiQpB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAC7C,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KAAC,CAAC,GACvC,CAAC,CAAC,CAAC,CAAC;CACP,CAAC;AAEN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AAExD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./DataTableInput.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-72405dcb"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarIconButton as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
const
|
|
1
|
+
import { defineComponent as h, ref as d, computed as k, openBlock as o, createBlock as i, normalizeClass as b, withCtx as B, createElementBlock as r, renderSlot as p, createCommentVNode as s, createElementVNode as m, Fragment as C, mergeProps as $, unref as x } from "vue";
|
|
2
|
+
import { ScalarIconButton as q } from "@scalar/components";
|
|
3
|
+
import A from "./DataTableCell.vue.js";
|
|
4
|
+
import E from "./DataTableInputSelect.vue.js";
|
|
5
|
+
const F = {
|
|
6
6
|
key: 0,
|
|
7
|
-
class: "text-c-2 flex min-w-[
|
|
8
|
-
},
|
|
7
|
+
class: "text-c-2 flex min-w-[120px] items-center border-r-1/2 pl-2 pr-0"
|
|
8
|
+
}, I = { class: "row-1" }, O = ["id", "max", "min", "readOnly", "required", "type", "value"], S = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "absolute centered-y right-0 pt-px pr-2 text-xxs text-c-3 bg-b-1 shadow-[-8px_0_4px_var(--scalar-background-1)] opacity-100 duration-150 transition-opacity peer-focus:opacity-0"
|
|
11
|
-
},
|
|
11
|
+
}, P = {
|
|
12
12
|
key: 1,
|
|
13
13
|
class: "absolute centered-y right-7 text-orange text-xs"
|
|
14
|
-
},
|
|
14
|
+
}, _ = /* @__PURE__ */ h({
|
|
15
15
|
inheritAttrs: !1,
|
|
16
16
|
__name: "DataTableInput",
|
|
17
17
|
props: {
|
|
@@ -20,6 +20,7 @@ const O = {
|
|
|
20
20
|
containerClass: {},
|
|
21
21
|
required: { type: Boolean, default: !1 },
|
|
22
22
|
modelValue: {},
|
|
23
|
+
canAddCustomEnumValue: { type: Boolean, default: !0 },
|
|
23
24
|
readOnly: { type: Boolean, default: !1 },
|
|
24
25
|
enum: {},
|
|
25
26
|
min: {},
|
|
@@ -27,28 +28,29 @@ const O = {
|
|
|
27
28
|
},
|
|
28
29
|
emits: ["update:modelValue", "inputFocus", "inputBlur", "selectVariable"],
|
|
29
30
|
setup(c, { emit: f }) {
|
|
30
|
-
const
|
|
31
|
+
const a = c, n = f, l = d(!0), y = d(""), v = d(!1), w = () => {
|
|
31
32
|
v.value || n("inputBlur");
|
|
32
|
-
},
|
|
33
|
-
() =>
|
|
34
|
-
),
|
|
33
|
+
}, V = k(
|
|
34
|
+
() => a.type === "password" ? l.value ? "password" : "text" : a.type ?? "text"
|
|
35
|
+
), g = (e) => {
|
|
35
36
|
const t = e.target;
|
|
36
37
|
y.value = t.value, n("update:modelValue", t.value);
|
|
37
38
|
};
|
|
38
|
-
return (e, t) => (o(),
|
|
39
|
+
return (e, t) => (o(), i(A, {
|
|
39
40
|
class: b(["relative row", e.containerClass])
|
|
40
41
|
}, {
|
|
41
|
-
default:
|
|
42
|
-
e.$slots.default ? (o(), r("div",
|
|
42
|
+
default: B(() => [
|
|
43
|
+
e.$slots.default ? (o(), r("div", F, [
|
|
43
44
|
p(e.$slots, "default", {}, void 0, !0)
|
|
44
45
|
])) : s("", !0),
|
|
45
|
-
m("div",
|
|
46
|
-
|
|
46
|
+
m("div", I, [
|
|
47
|
+
a.enum && a.enum.length ? (o(), i(E, {
|
|
47
48
|
key: 0,
|
|
48
|
-
|
|
49
|
-
|
|
49
|
+
canAddCustomValue: e.canAddCustomEnumValue,
|
|
50
|
+
modelValue: a.modelValue,
|
|
51
|
+
value: a.enum,
|
|
50
52
|
"onUpdate:modelValue": t[0] || (t[0] = (u) => n("update:modelValue", u))
|
|
51
|
-
}, null, 8, ["modelValue", "value"])) : (o(), r(
|
|
53
|
+
}, null, 8, ["canAddCustomValue", "modelValue", "value"])) : (o(), r(C, { key: 1 }, [
|
|
52
54
|
m("input", $(e.$attrs, {
|
|
53
55
|
id: e.id,
|
|
54
56
|
autocomplete: "off",
|
|
@@ -59,25 +61,25 @@ const O = {
|
|
|
59
61
|
readOnly: e.readOnly,
|
|
60
62
|
required: e.required,
|
|
61
63
|
spellcheck: "false",
|
|
62
|
-
type:
|
|
64
|
+
type: V.value,
|
|
63
65
|
value: e.modelValue,
|
|
64
66
|
onBlur: w,
|
|
65
67
|
onFocus: t[1] || (t[1] = (u) => n("inputFocus")),
|
|
66
|
-
onInput:
|
|
67
|
-
}), null, 16,
|
|
68
|
-
e.required ? (o(), r("div",
|
|
68
|
+
onInput: g
|
|
69
|
+
}), null, 16, O),
|
|
70
|
+
e.required ? (o(), r("div", S, " Required ")) : s("", !0)
|
|
69
71
|
], 64))
|
|
70
72
|
]),
|
|
71
|
-
e.$slots.warning ? (o(), r("div",
|
|
73
|
+
e.$slots.warning ? (o(), r("div", P, [
|
|
72
74
|
p(e.$slots, "warning", {}, void 0, !0)
|
|
73
75
|
])) : s("", !0),
|
|
74
76
|
p(e.$slots, "icon", {}, void 0, !0),
|
|
75
|
-
e.type === "password" ? (o(),
|
|
77
|
+
e.type === "password" ? (o(), i(x(q), {
|
|
76
78
|
key: 2,
|
|
77
79
|
class: "-ml-.5 mr-1 h-6 w-6 self-center p-1.5",
|
|
78
|
-
icon:
|
|
79
|
-
label:
|
|
80
|
-
onClick: t[2] || (t[2] = (u) =>
|
|
80
|
+
icon: l.value ? "Show" : "Hide",
|
|
81
|
+
label: l.value ? "Show Password" : "Hide Password",
|
|
82
|
+
onClick: t[2] || (t[2] = (u) => l.value = !l.value)
|
|
81
83
|
}, null, 8, ["icon", "label"])) : s("", !0)
|
|
82
84
|
]),
|
|
83
85
|
_: 3
|
|
@@ -85,5 +87,5 @@ const O = {
|
|
|
85
87
|
}
|
|
86
88
|
});
|
|
87
89
|
export {
|
|
88
|
-
|
|
90
|
+
_ as default
|
|
89
91
|
};
|
|
@@ -1,15 +1,31 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
1
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
2
2
|
modelValue: string | number;
|
|
3
3
|
value?: string[];
|
|
4
|
+
canAddCustomValue?: boolean;
|
|
5
|
+
}>, {
|
|
6
|
+
canAddCustomValue: boolean;
|
|
4
7
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
5
8
|
"update:modelValue": (v: string) => void;
|
|
6
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
7
10
|
modelValue: string | number;
|
|
8
11
|
value?: string[];
|
|
12
|
+
canAddCustomValue?: boolean;
|
|
13
|
+
}>, {
|
|
14
|
+
canAddCustomValue: boolean;
|
|
9
15
|
}>>> & {
|
|
10
16
|
"onUpdate:modelValue"?: ((v: string) => any) | undefined;
|
|
11
|
-
}, {
|
|
17
|
+
}, {
|
|
18
|
+
canAddCustomValue: boolean;
|
|
19
|
+
}, {}>;
|
|
12
20
|
export default _default;
|
|
21
|
+
type __VLS_WithDefaults<P, D> = {
|
|
22
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
23
|
+
default: D[K];
|
|
24
|
+
}> : P[K];
|
|
25
|
+
};
|
|
26
|
+
type __VLS_Prettify<T> = {
|
|
27
|
+
[K in keyof T]: T[K];
|
|
28
|
+
} & {};
|
|
13
29
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
14
30
|
type __VLS_TypePropsToOption<T> = {
|
|
15
31
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTableInputSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInputSelect.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"DataTableInputSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInputSelect.vue"],"names":[],"mappings":";gBA+IgB,MAAM,GAAG,MAAM;YACnB,MAAM,EAAE;wBACI,OAAO;;;;;;gBAFf,MAAM,GAAG,MAAM;YACnB,MAAM,EAAE;wBACI,OAAO;;;;;;uBAAP,OAAO;;AAmU/B,wBAOG;AAOH,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAC7C,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KAAC,CAAC,GACvC,CAAC,CAAC,CAAC,CAAC;CACP,CAAC;AAEN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AAExD,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -1,79 +1,81 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarDropdown as F, ScalarDropdownItem as
|
|
3
|
-
const U = { class: "w-full" }, W = { class: "flex items-center justify-center h-4 w-4" }, q = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as z, computed as A, ref as c, watch as k, nextTick as N, openBlock as n, createElementBlock as m, withDirectives as T, withKeys as j, vModelText as I, createBlock as i, unref as l, withCtx as r, Fragment as E, renderList as K, createElementVNode as p, normalizeClass as R, createVNode as d, createTextVNode as $, toDisplayString as y, createCommentVNode as V } from "vue";
|
|
2
|
+
import { ScalarDropdown as F, ScalarDropdownItem as C, ScalarIcon as f, ScalarDropdownDivider as L, ScalarButton as M } from "@scalar/components";
|
|
3
|
+
const U = { class: "w-full" }, W = { class: "flex items-center justify-center h-4 w-4" }, q = /* @__PURE__ */ p("span", null, "Add value", -1), O = /* @__PURE__ */ z({
|
|
4
4
|
__name: "DataTableInputSelect",
|
|
5
5
|
props: {
|
|
6
6
|
modelValue: {},
|
|
7
|
-
value: {}
|
|
7
|
+
value: {},
|
|
8
|
+
canAddCustomValue: { type: Boolean, default: !0 }
|
|
8
9
|
},
|
|
9
10
|
emits: ["update:modelValue"],
|
|
10
11
|
setup(_, { emit: g }) {
|
|
11
|
-
const v = _,
|
|
12
|
+
const v = _, h = g, S = A(() => v.value ?? []), o = c(v.modelValue.toString()), s = c(!1), a = c(""), x = c(null);
|
|
12
13
|
k(a, (e) => {
|
|
13
|
-
|
|
14
|
+
h("update:modelValue", e);
|
|
14
15
|
});
|
|
15
16
|
const w = (e) => {
|
|
16
|
-
|
|
17
|
-
}, S = () => {
|
|
18
|
-
a.value.trim() && (w(a.value), a.value = "");
|
|
17
|
+
o.value = e, h("update:modelValue", e), s.value = !1;
|
|
19
18
|
}, D = () => {
|
|
20
|
-
a.value.trim()
|
|
21
|
-
},
|
|
19
|
+
a.value.trim() && (w(a.value), a.value = "");
|
|
20
|
+
}, B = () => {
|
|
21
|
+
a.value.trim() || (o.value = "", s.value = !1);
|
|
22
|
+
}, b = (e) => o.value === e;
|
|
22
23
|
return k(s, (e) => {
|
|
23
24
|
e && N(() => {
|
|
24
|
-
var
|
|
25
|
-
(
|
|
25
|
+
var u;
|
|
26
|
+
(u = x.value) == null || u.focus();
|
|
26
27
|
});
|
|
27
|
-
}), (e,
|
|
28
|
-
s.value ? T((
|
|
28
|
+
}), (e, u) => (n(), m("div", U, [
|
|
29
|
+
s.value ? T((n(), m("input", {
|
|
29
30
|
key: 0,
|
|
30
31
|
ref_key: "inputRef",
|
|
31
|
-
ref:
|
|
32
|
-
"onUpdate:modelValue":
|
|
32
|
+
ref: x,
|
|
33
|
+
"onUpdate:modelValue": u[0] || (u[0] = (t) => a.value = t),
|
|
33
34
|
class: "border-none focus:text-c-1 text-c-2 min-w-0 w-full px-2 py-1.5 outline-none",
|
|
34
35
|
placeholder: "Value",
|
|
35
36
|
type: "text",
|
|
36
|
-
onBlur:
|
|
37
|
-
onKeyup: j(
|
|
37
|
+
onBlur: B,
|
|
38
|
+
onKeyup: j(D, ["enter"])
|
|
38
39
|
}, null, 544)), [
|
|
39
40
|
[I, a.value]
|
|
40
|
-
]) : (
|
|
41
|
+
]) : (n(), i(l(F), {
|
|
41
42
|
key: 1,
|
|
42
43
|
resize: "",
|
|
43
|
-
value:
|
|
44
|
+
value: o.value
|
|
44
45
|
}, {
|
|
45
46
|
items: r(() => [
|
|
46
|
-
(
|
|
47
|
+
(n(!0), m(E, null, K(S.value, (t) => (n(), i(l(C), {
|
|
47
48
|
key: t,
|
|
48
49
|
class: "flex gap-1.5 group/item items-center whitespace-nowrap text-ellipsis overflow-hidden",
|
|
49
50
|
value: t,
|
|
50
51
|
onClick: (G) => w(t)
|
|
51
52
|
}, {
|
|
52
53
|
default: r(() => [
|
|
53
|
-
|
|
54
|
-
class:
|
|
54
|
+
p("div", {
|
|
55
|
+
class: R([
|
|
55
56
|
"flex items-center justify-center rounded-full p-[3px] w-4 h-4 group-hover/item:shadow-border",
|
|
56
57
|
b(t) ? "bg-blue text-b-1" : "text-transparent"
|
|
57
58
|
])
|
|
58
59
|
}, [
|
|
59
|
-
|
|
60
|
+
d(l(f), {
|
|
60
61
|
class: "size-2.5",
|
|
61
62
|
icon: "Checkmark",
|
|
62
63
|
thickness: "3.5"
|
|
63
64
|
})
|
|
64
65
|
], 2),
|
|
65
|
-
|
|
66
|
+
$(" " + y(t), 1)
|
|
66
67
|
]),
|
|
67
68
|
_: 2
|
|
68
69
|
}, 1032, ["value", "onClick"]))), 128)),
|
|
69
|
-
|
|
70
|
-
|
|
70
|
+
d(l(L)),
|
|
71
|
+
e.canAddCustomValue ? (n(), i(l(C), {
|
|
72
|
+
key: 0,
|
|
71
73
|
class: "flex items-center gap-1.5",
|
|
72
|
-
onClick:
|
|
74
|
+
onClick: u[1] || (u[1] = (t) => s.value = !0)
|
|
73
75
|
}, {
|
|
74
76
|
default: r(() => [
|
|
75
|
-
|
|
76
|
-
|
|
77
|
+
p("div", W, [
|
|
78
|
+
d(l(f), {
|
|
77
79
|
class: "h-2.5",
|
|
78
80
|
icon: "Add"
|
|
79
81
|
})
|
|
@@ -81,17 +83,17 @@ const U = { class: "w-full" }, W = { class: "flex items-center justify-center h-
|
|
|
81
83
|
q
|
|
82
84
|
]),
|
|
83
85
|
_: 1
|
|
84
|
-
})
|
|
86
|
+
})) : V("", !0)
|
|
85
87
|
]),
|
|
86
88
|
default: r(() => [
|
|
87
|
-
|
|
89
|
+
d(l(M), {
|
|
88
90
|
class: "gap-1.5 font-normal h-full justify-start px-2 py-1.5",
|
|
89
91
|
fullWidth: "",
|
|
90
92
|
variant: "ghost"
|
|
91
93
|
}, {
|
|
92
94
|
default: r(() => [
|
|
93
|
-
|
|
94
|
-
|
|
95
|
+
p("span", null, y(o.value || "Select a value"), 1),
|
|
96
|
+
o.value ? V("", !0) : (n(), i(l(f), {
|
|
95
97
|
key: 0,
|
|
96
98
|
icon: "ChevronDown",
|
|
97
99
|
size: "xs"
|
|
@@ -3,6 +3,7 @@ export { default as DataTableCell } from './DataTableCell.vue.js';
|
|
|
3
3
|
export { default as DataTableCheckbox } from './DataTableCheckbox.vue.js';
|
|
4
4
|
export { default as DataTableHeader } from './DataTableHeader.vue.js';
|
|
5
5
|
export { default as DataTableInput } from './DataTableInput.vue.js';
|
|
6
|
+
export { default as DataTableInputSelect } from './DataTableInputSelect.vue.js';
|
|
6
7
|
export { default as DataTableRow } from './DataTableRow.vue.js';
|
|
7
8
|
export { default as DataTableText } from './DataTableText.vue.js';
|
|
8
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,iBAAiB,CAAA;AACtD,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAC9D,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AACtE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAClE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAChE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAC5D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,iBAAiB,CAAA;AACtD,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAC9D,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AACtE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAClE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAChE,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,4BAA4B,CAAA;AAC5E,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAC5D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAA"}
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { default as t } from "./DataTable.vue.js";
|
|
2
2
|
import { default as o } from "./DataTableHeader.vue.js";
|
|
3
3
|
import { default as f } from "./DataTableInput.vue.js";
|
|
4
|
-
import { default as
|
|
5
|
-
import { default as
|
|
4
|
+
import { default as u } from "./DataTableRow.vue.js";
|
|
5
|
+
import { default as b } from "./DataTableText.vue.js";
|
|
6
6
|
import { default as T } from "./DataTableCell.vue.js";
|
|
7
7
|
import { default as s } from "./DataTableCheckbox.vue.js";
|
|
8
|
+
import { default as c } from "./DataTableInputSelect.vue.js";
|
|
8
9
|
export {
|
|
9
10
|
t as DataTable,
|
|
10
11
|
T as DataTableCell,
|
|
11
12
|
s as DataTableCheckbox,
|
|
12
13
|
o as DataTableHeader,
|
|
13
14
|
f as DataTableInput,
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
c as DataTableInputSelect,
|
|
16
|
+
u as DataTableRow,
|
|
17
|
+
b as DataTableText
|
|
16
18
|
};
|
|
@@ -3,7 +3,7 @@ import y from "../DataTable/DataTable.vue.js";
|
|
|
3
3
|
import V from "../DataTable/DataTableInput.vue.js";
|
|
4
4
|
import h from "../DataTable/DataTableRow.vue.js";
|
|
5
5
|
import b from "../ViewLayout/ViewLayoutSection.vue.js";
|
|
6
|
-
const g = { class: "custom-scroll flex flex-1 flex-col gap-1.5 px-5 py-
|
|
6
|
+
const g = { class: "custom-scroll flex flex-1 flex-col gap-1.5 px-5 py-5" }, w = /* @__PURE__ */ s({
|
|
7
7
|
__name: "Form",
|
|
8
8
|
props: {
|
|
9
9
|
title: {},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Search/SearchButton.vue"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"SearchButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Search/SearchButton.vue"],"names":[],"mappings":";;;;;AAwHA,wBAMG"}
|
|
@@ -1,32 +1,30 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import l from "
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { defineComponent as n, openBlock as c, createElementBlock as r, createElementVNode as e, createVNode as i, unref as a } from "vue";
|
|
2
|
+
import { ScalarIcon as l } from "@scalar/components";
|
|
3
|
+
const p = { class: "bg-b-1 sticky top-0 z-50 px-3 py-2.5 pb-0" }, d = { class: "w-[15px] flex items-center justify-center" }, m = /* @__PURE__ */ e("div", { class: "sidebar-search-input ml-1.5 flex w-full items-center justify-between text-sm font-medium" }, [
|
|
4
|
+
/* @__PURE__ */ e("span", { class: "sidebar-search-placeholder" }, "Search")
|
|
5
|
+
], -1), b = /* @__PURE__ */ n({
|
|
5
6
|
__name: "SearchButton",
|
|
6
7
|
emits: ["openSearchModal"],
|
|
7
|
-
setup(u, { emit:
|
|
8
|
-
const
|
|
9
|
-
return (
|
|
8
|
+
setup(u, { emit: s }) {
|
|
9
|
+
const o = s;
|
|
10
|
+
return (f, t) => (c(), r("div", p, [
|
|
10
11
|
e("button", {
|
|
11
|
-
class: "
|
|
12
|
+
class: "border-1/2 text-c-2 flex w-full items-center rounded p-1.5",
|
|
12
13
|
type: "button",
|
|
13
|
-
onClick: t[0] || (t[0] = (
|
|
14
|
+
onClick: t[0] || (t[0] = (_) => o("openSearchModal"))
|
|
14
15
|
}, [
|
|
15
|
-
e("div",
|
|
16
|
-
|
|
16
|
+
e("div", d, [
|
|
17
|
+
i(a(l), {
|
|
17
18
|
icon: "Search",
|
|
18
19
|
size: "xs",
|
|
19
20
|
thickness: "2.5"
|
|
20
21
|
})
|
|
21
22
|
]),
|
|
22
|
-
|
|
23
|
-
_,
|
|
24
|
-
s(l, { hotkey: "k" })
|
|
25
|
-
])
|
|
23
|
+
m
|
|
26
24
|
])
|
|
27
25
|
]));
|
|
28
26
|
}
|
|
29
27
|
});
|
|
30
28
|
export {
|
|
31
|
-
|
|
29
|
+
b as default
|
|
32
30
|
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
|
+
export default _default;
|
|
3
|
+
//# sourceMappingURL=SideHelp.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SideHelp.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SideNav/SideHelp.vue"],"names":[],"mappings":";AAwaA,wBAKG"}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { defineComponent as n, openBlock as o, createBlock as i, unref as t, withCtx as c, createElementVNode as e, createVNode as s } from "vue";
|
|
2
|
+
import { ScalarDropdown as r, ScalarDropdownItem as l, ScalarIcon as a, ScalarDropdownDivider as d, ScalarButton as _ } from "@scalar/components";
|
|
3
|
+
const h = /* @__PURE__ */ e("span", { class: "px-2.5 py-1.5 text-sm text-c-2 font-medium" }, "Support", -1), u = {
|
|
4
|
+
class: "no-underline block",
|
|
5
|
+
href: "https://discord.gg/scalar",
|
|
6
|
+
target: "_blank"
|
|
7
|
+
}, f = { class: "flex items-center justify-center h-4 w-4" }, p = /* @__PURE__ */ e("span", null, "Discord", -1), m = {
|
|
8
|
+
class: "no-underline block",
|
|
9
|
+
href: "https://github.com/scalar/scalar",
|
|
10
|
+
target: "_blank"
|
|
11
|
+
}, x = { class: "flex items-center justify-center h-4 w-4" }, g = /* @__PURE__ */ e("span", null, "Github", -1), b = {
|
|
12
|
+
class: "no-underline block",
|
|
13
|
+
href: "mailto:marc@scalar.com",
|
|
14
|
+
target: "_blank"
|
|
15
|
+
}, w = { class: "flex items-center justify-center h-4 w-4" }, k = /* @__PURE__ */ e("span", null, "Email", -1), v = /* @__PURE__ */ e("span", { class: "px-2.5 py-1.5 text-sm text-c-2 font-medium" }, "Product", -1), y = {
|
|
16
|
+
class: "no-underline block",
|
|
17
|
+
href: "https://scalar.com/changelog",
|
|
18
|
+
target: "_blank"
|
|
19
|
+
}, S = { class: "flex items-center justify-center h-4 w-4" }, j = /* @__PURE__ */ e("span", null, "Changelog", -1), D = {
|
|
20
|
+
class: "no-underline block",
|
|
21
|
+
href: "https://github.com/scalar/scalar/issues/2669",
|
|
22
|
+
target: "_blank"
|
|
23
|
+
}, C = { class: "flex items-center justify-center h-4 w-4" }, B = /* @__PURE__ */ e("span", null, "Roadmap", -1), R = /* @__PURE__ */ n({
|
|
24
|
+
__name: "SideHelp",
|
|
25
|
+
setup(E) {
|
|
26
|
+
return (H, G) => (o(), i(t(r), { placement: "top-end" }, {
|
|
27
|
+
items: c(() => [
|
|
28
|
+
h,
|
|
29
|
+
e("a", u, [
|
|
30
|
+
s(t(l), { class: "flex items-center gap-1.5 w-full" }, {
|
|
31
|
+
default: c(() => [
|
|
32
|
+
e("div", f, [
|
|
33
|
+
s(t(a), {
|
|
34
|
+
class: "h-2.5",
|
|
35
|
+
icon: "Discord"
|
|
36
|
+
})
|
|
37
|
+
]),
|
|
38
|
+
p
|
|
39
|
+
]),
|
|
40
|
+
_: 1
|
|
41
|
+
})
|
|
42
|
+
]),
|
|
43
|
+
e("a", m, [
|
|
44
|
+
s(t(l), { class: "flex items-center gap-1.5 w-full" }, {
|
|
45
|
+
default: c(() => [
|
|
46
|
+
e("div", x, [
|
|
47
|
+
s(t(a), {
|
|
48
|
+
class: "h-2.5",
|
|
49
|
+
icon: "GitHub"
|
|
50
|
+
})
|
|
51
|
+
]),
|
|
52
|
+
g
|
|
53
|
+
]),
|
|
54
|
+
_: 1
|
|
55
|
+
})
|
|
56
|
+
]),
|
|
57
|
+
e("a", b, [
|
|
58
|
+
s(t(l), { class: "flex items-center gap-1.5 w-full" }, {
|
|
59
|
+
default: c(() => [
|
|
60
|
+
e("div", w, [
|
|
61
|
+
s(t(a), {
|
|
62
|
+
class: "h-2.5",
|
|
63
|
+
icon: "Email"
|
|
64
|
+
})
|
|
65
|
+
]),
|
|
66
|
+
k
|
|
67
|
+
]),
|
|
68
|
+
_: 1
|
|
69
|
+
})
|
|
70
|
+
]),
|
|
71
|
+
s(t(d)),
|
|
72
|
+
v,
|
|
73
|
+
e("a", y, [
|
|
74
|
+
s(t(l), { class: "flex items-center gap-1.5 w-full" }, {
|
|
75
|
+
default: c(() => [
|
|
76
|
+
e("div", S, [
|
|
77
|
+
s(t(a), {
|
|
78
|
+
class: "h-2.5",
|
|
79
|
+
icon: "Changelog",
|
|
80
|
+
thickness: "1.5"
|
|
81
|
+
})
|
|
82
|
+
]),
|
|
83
|
+
j
|
|
84
|
+
]),
|
|
85
|
+
_: 1
|
|
86
|
+
})
|
|
87
|
+
]),
|
|
88
|
+
e("a", D, [
|
|
89
|
+
s(t(l), { class: "flex items-center gap-1.5 w-full" }, {
|
|
90
|
+
default: c(() => [
|
|
91
|
+
e("div", C, [
|
|
92
|
+
s(t(a), {
|
|
93
|
+
class: "h-2.5",
|
|
94
|
+
icon: "Roadmap",
|
|
95
|
+
thickness: "1.5"
|
|
96
|
+
})
|
|
97
|
+
]),
|
|
98
|
+
B
|
|
99
|
+
]),
|
|
100
|
+
_: 1
|
|
101
|
+
})
|
|
102
|
+
])
|
|
103
|
+
]),
|
|
104
|
+
default: c(() => [
|
|
105
|
+
s(t(_), {
|
|
106
|
+
class: "min-w-[37px] max-w-[42px] hover:bg-b-2 flex items-center justify-center rounded-lg p-[7px]",
|
|
107
|
+
fullWidth: "",
|
|
108
|
+
variant: "ghost"
|
|
109
|
+
}, {
|
|
110
|
+
default: c(() => [
|
|
111
|
+
s(t(a), {
|
|
112
|
+
icon: "Help",
|
|
113
|
+
thickness: "1.5"
|
|
114
|
+
})
|
|
115
|
+
]),
|
|
116
|
+
_: 1
|
|
117
|
+
})
|
|
118
|
+
]),
|
|
119
|
+
_: 1
|
|
120
|
+
}));
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
export {
|
|
124
|
+
R as default
|
|
125
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SideNav.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SideNav/SideNav.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"SideNav.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SideNav/SideNav.vue"],"names":[],"mappings":";AAkKA,wBAKG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./SideNav.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-919f36e4"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|