@scalar/api-reference 1.32.0 → 1.32.4
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 +83 -0
- package/README.md +1 -1
- package/dist/browser/standalone.js +15732 -15435
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +1 -1
- package/dist/components/ApiReferenceLayout.vue2.js +163 -158
- package/dist/components/Badge/Badge.vue.d.ts.map +1 -1
- package/dist/components/Badge/Badge.vue.js +1 -1
- package/dist/components/Card/CardHeader.vue.d.ts.map +1 -1
- package/dist/components/Card/CardHeader.vue.js +2 -2
- package/dist/components/Card/CardTab.vue.d.ts.map +1 -1
- package/dist/components/Card/CardTab.vue.js +3 -3
- package/dist/components/Card/CardTabHeader.vue.d.ts.map +1 -1
- package/dist/components/Card/CardTabHeader.vue.js +2 -2
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +1 -1
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.js +1 -1
- package/dist/components/Content/Introduction/Introduction.vue.js +2 -2
- package/dist/components/Content/Lazy/Loading.vue.d.ts +1 -3
- package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
- package/dist/components/Content/Lazy/Loading.vue.js +92 -91
- package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/Models.vue.js +2 -2
- package/dist/components/Content/Models/Models.vue2.js +59 -56
- package/dist/components/Content/Schema/RenderString.vue.d.ts +6 -0
- package/dist/components/Content/Schema/RenderString.vue.d.ts.map +1 -0
- package/dist/components/Content/Schema/RenderString.vue.js +14 -0
- package/dist/components/Content/Schema/RenderString.vue2.js +4 -0
- package/dist/components/Content/Schema/Schema.vue.d.ts +1 -1
- package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/Schema.vue.js +2 -2
- package/dist/components/Content/Schema/Schema.vue2.js +76 -75
- package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaComposition.vue.js +58 -66
- package/dist/components/Content/Schema/SchemaEnumValues.vue.d.ts +19 -0
- package/dist/components/Content/Schema/SchemaEnumValues.vue.d.ts.map +1 -0
- package/dist/components/Content/Schema/SchemaEnumValues.vue.js +7 -0
- package/dist/components/Content/Schema/SchemaEnumValues.vue2.js +125 -0
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +2 -2
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue2.js +96 -170
- package/dist/components/Content/Schema/SchemaPropertyDescription.vue.d.ts +18 -0
- package/dist/components/Content/Schema/SchemaPropertyDescription.vue.d.ts.map +1 -0
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +155 -160
- package/dist/components/Content/Schema/helpers/get-schema-type.d.ts +6 -0
- package/dist/components/Content/Schema/helpers/get-schema-type.d.ts.map +1 -0
- package/dist/components/Content/Schema/helpers/get-schema-type.js +20 -0
- package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +1 -1
- package/dist/components/Content/Schema/helpers/optimizeValueForDisplay.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/schema-name.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/schema-name.js +20 -46
- package/dist/features/Operation/components/ParameterListItem.vue.js +3 -3
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
- package/dist/features/Operation/layouts/ModernLayout.vue2.js +13 -13
- package/dist/features/Search/SearchButton.vue.d.ts +1 -0
- package/dist/features/Search/SearchButton.vue.d.ts.map +1 -1
- package/dist/features/Search/SearchButton.vue.js +36 -34
- package/dist/features/Search/SearchModal.vue.d.ts +1 -0
- package/dist/features/Search/SearchModal.vue.d.ts.map +1 -1
- package/dist/features/Search/SearchModal.vue.js +1 -1
- package/dist/features/Search/SearchModal.vue2.js +112 -112
- package/dist/features/Search/useSearchIndex.d.ts +4 -3
- package/dist/features/Search/useSearchIndex.d.ts.map +1 -1
- package/dist/features/Search/useSearchIndex.js +119 -82
- package/dist/features/api-client-modal/ApiClientModal.vue.d.ts +2 -2
- package/dist/features/api-client-modal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/features/api-client-modal/ApiClientModal.vue.js +47 -38
- package/dist/features/api-client-modal/useApiClient.d.ts +334 -334
- package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -1
- package/dist/features/base-url/BaseUrl.vue.js +1 -1
- package/dist/features/example-responses/ExampleResponse.vue.js +3 -3
- package/dist/features/example-responses/ExampleResponse.vue2.js +7 -7
- package/dist/features/example-responses/ExampleResponses.vue.d.ts +1 -1
- package/dist/features/example-responses/ExampleResponses.vue.d.ts.map +1 -1
- package/dist/features/example-responses/ExampleResponses.vue.js +2 -2
- package/dist/features/sidebar/components/SidebarElement.vue.d.ts.map +1 -1
- package/dist/features/sidebar/components/SidebarElement.vue.js +1 -1
- package/dist/features/sidebar/components/SidebarElement.vue2.js +23 -21
- package/dist/features/sidebar/components/SidebarHttpBadge.vue.d.ts.map +1 -1
- package/dist/features/sidebar/components/SidebarHttpBadge.vue.js +2 -2
- package/dist/features/sidebar/components/SidebarHttpBadge.vue2.js +5 -6
- package/dist/features/test-request-button/TestRequestButton.vue.js +2 -2
- package/dist/features/traverse-schema/helpers/traverse-tags.js +26 -26
- package/dist/features/traverse-schema/index.d.ts +1 -1
- package/dist/features/traverse-schema/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/libs/openapi.d.ts +15 -1
- package/dist/libs/openapi.d.ts.map +1 -1
- package/dist/libs/openapi.js +66 -47
- package/dist/standalone/lib/html-api.d.ts.map +1 -1
- package/dist/stores/useHttpClientStore.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types.d.ts +3 -3
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts +2 -2
- package/package.json +18 -18
- package/dist/hooks/useOperation.d.ts +0 -16
- package/dist/hooks/useOperation.d.ts.map +0 -1
- package/dist/hooks/useOperation.js +0 -27
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { defineComponent as w, computed as a, createElementBlock as l, createCommentVNode as _, openBlock as u, Fragment as y, renderList as h, createElementVNode as i, toDisplayString as d, createVNode as v, unref as c, createBlock as H, withCtx as D, createTextVNode as O, normalizeClass as $ } from "vue";
|
|
2
|
+
import { Disclosure as F, DisclosurePanel as P, DisclosureButton as U } from "@headlessui/vue";
|
|
3
|
+
import { ScalarMarkdown as b, ScalarIcon as z } from "@scalar/components";
|
|
4
|
+
const M = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "property-enum"
|
|
7
|
+
}, R = {
|
|
8
|
+
key: 0,
|
|
9
|
+
class: "property-list"
|
|
10
|
+
}, K = { class: "property-heading" }, W = { class: "property-name" }, Y = { class: "property-description" }, q = {
|
|
11
|
+
key: 1,
|
|
12
|
+
class: "property-enum-values"
|
|
13
|
+
}, G = { class: "property-enum-value-content" }, J = { class: "property-enum-value-label" }, Q = { class: "property-enum-value-description" }, X = { class: "property-enum-value-label" }, k = 9, Z = 5, N = " ", ne = /* @__PURE__ */ w({
|
|
14
|
+
__name: "SchemaEnumValues",
|
|
15
|
+
props: {
|
|
16
|
+
value: {},
|
|
17
|
+
isDiscriminator: { type: Boolean }
|
|
18
|
+
},
|
|
19
|
+
setup(r) {
|
|
20
|
+
const S = (t) => {
|
|
21
|
+
var s;
|
|
22
|
+
return t ? t.enum || ((s = t.items) == null ? void 0 : s.enum) || [] : [];
|
|
23
|
+
}, f = (t, s) => {
|
|
24
|
+
var n, o, g, x;
|
|
25
|
+
const e = ((o = (n = r.value) == null ? void 0 : n["x-enum-varnames"]) == null ? void 0 : o[s]) ?? ((x = (g = r.value) == null ? void 0 : g["x-enumNames"]) == null ? void 0 : x[s]);
|
|
26
|
+
return e ? `${t}${N}=${N}${e}` : String(t);
|
|
27
|
+
}, A = (t) => {
|
|
28
|
+
var n, o;
|
|
29
|
+
const s = (n = r.value) == null ? void 0 : n["x-enum-descriptions"];
|
|
30
|
+
if (Array.isArray(s))
|
|
31
|
+
return s[t];
|
|
32
|
+
const e = (o = r.value) == null ? void 0 : o["x-enumDescriptions"];
|
|
33
|
+
if (Array.isArray(e))
|
|
34
|
+
return e[t];
|
|
35
|
+
}, I = (t) => {
|
|
36
|
+
var n, o;
|
|
37
|
+
const s = (n = r.value) == null ? void 0 : n["x-enumDescriptions"];
|
|
38
|
+
if (s && !Array.isArray(s))
|
|
39
|
+
return s[t];
|
|
40
|
+
const e = (o = r.value) == null ? void 0 : o["x-enum-descriptions"];
|
|
41
|
+
if (e && !Array.isArray(e))
|
|
42
|
+
return e[t];
|
|
43
|
+
}, m = a(() => S(r.value)), V = a(() => m.value.length > 0), E = a(
|
|
44
|
+
() => m.value.length > k
|
|
45
|
+
), p = a(
|
|
46
|
+
() => E.value ? Z : k
|
|
47
|
+
), C = a(
|
|
48
|
+
() => m.value.slice(0, p.value)
|
|
49
|
+
), L = a(
|
|
50
|
+
() => m.value.slice(p.value)
|
|
51
|
+
), B = a(() => {
|
|
52
|
+
var s, e;
|
|
53
|
+
const t = ((s = r.value) == null ? void 0 : s["x-enumDescriptions"]) ?? ((e = r.value) == null ? void 0 : e["x-enum-descriptions"]);
|
|
54
|
+
return t && typeof t == "object" && !Array.isArray(t);
|
|
55
|
+
}), T = a(() => {
|
|
56
|
+
var s, e;
|
|
57
|
+
const t = ((s = r.value) == null ? void 0 : s["x-enumDescriptions"]) ?? ((e = r.value) == null ? void 0 : e["x-enum-descriptions"]);
|
|
58
|
+
return t && typeof t == "object" && !Array.isArray(t);
|
|
59
|
+
}), j = a(() => V.value && !r.isDiscriminator);
|
|
60
|
+
return (t, s) => j.value ? (u(), l("div", M, [
|
|
61
|
+
B.value ? (u(), l("div", R, [
|
|
62
|
+
(u(!0), l(y, null, h(m.value, (e, n) => (u(), l("div", {
|
|
63
|
+
key: e,
|
|
64
|
+
class: "property"
|
|
65
|
+
}, [
|
|
66
|
+
i("div", K, [
|
|
67
|
+
i("div", W, d(e), 1)
|
|
68
|
+
]),
|
|
69
|
+
i("div", Y, [
|
|
70
|
+
v(c(b), {
|
|
71
|
+
value: T.value ? I(e) : A(n)
|
|
72
|
+
}, null, 8, ["value"])
|
|
73
|
+
])
|
|
74
|
+
]))), 128))
|
|
75
|
+
])) : (u(), l("ul", q, [
|
|
76
|
+
(u(!0), l(y, null, h(C.value, (e, n) => (u(), l("li", {
|
|
77
|
+
key: e,
|
|
78
|
+
class: "property-enum-value"
|
|
79
|
+
}, [
|
|
80
|
+
i("div", G, [
|
|
81
|
+
i("span", J, d(f(e, n)), 1),
|
|
82
|
+
i("span", Q, [
|
|
83
|
+
v(c(b), {
|
|
84
|
+
value: A(n)
|
|
85
|
+
}, null, 8, ["value"])
|
|
86
|
+
])
|
|
87
|
+
])
|
|
88
|
+
]))), 128)),
|
|
89
|
+
E.value ? (u(), H(c(F), { key: 0 }, {
|
|
90
|
+
default: D(({ open: e }) => [
|
|
91
|
+
v(c(P), null, {
|
|
92
|
+
default: D(() => [
|
|
93
|
+
(u(!0), l(y, null, h(L.value, (n, o) => (u(), l("li", {
|
|
94
|
+
key: n,
|
|
95
|
+
class: "property-enum-value"
|
|
96
|
+
}, [
|
|
97
|
+
i("span", X, d(f(
|
|
98
|
+
n,
|
|
99
|
+
p.value + o
|
|
100
|
+
)), 1)
|
|
101
|
+
]))), 128))
|
|
102
|
+
]),
|
|
103
|
+
_: 1
|
|
104
|
+
}),
|
|
105
|
+
v(c(U), { class: "enum-toggle-button" }, {
|
|
106
|
+
default: D(() => [
|
|
107
|
+
v(c(z), {
|
|
108
|
+
class: $(["enum-toggle-button-icon", { "enum-toggle-button-icon--open": e }]),
|
|
109
|
+
icon: "Add",
|
|
110
|
+
size: "sm"
|
|
111
|
+
}, null, 8, ["class"]),
|
|
112
|
+
O(" " + d(e ? "Hide values" : "Show all values"), 1)
|
|
113
|
+
]),
|
|
114
|
+
_: 2
|
|
115
|
+
}, 1024)
|
|
116
|
+
]),
|
|
117
|
+
_: 1
|
|
118
|
+
})) : _("", !0)
|
|
119
|
+
]))
|
|
120
|
+
])) : _("", !0);
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
export {
|
|
124
|
+
ne as default
|
|
125
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { type Component } from 'vue';
|
|
2
2
|
import type { Schemas } from '../../../features/Operation/types/schemas';
|
|
3
3
|
/**
|
|
4
|
-
* Note: We
|
|
4
|
+
* Note: We're taking in a prop called `value` which should be a JSON Schema.
|
|
5
5
|
*
|
|
6
|
-
* We
|
|
6
|
+
* We're using `optimizeValueForDisplay` to merge null types in compositions (anyOf, allOf, oneOf, not).
|
|
7
7
|
* So you should basically use the optimizedValue everywhere in the component.
|
|
8
8
|
*/
|
|
9
9
|
type __VLS_Props = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaProperty.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaProperty.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SchemaProperty.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaProperty.vue"],"names":[],"mappings":"AA8gBA,OAAO,EAAoB,KAAK,SAAS,EAAE,MAAM,KAAK,CAAA;AAOtD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAWjE;;;;;GAKG;AAEH,KAAK,WAAW,GAAG;IACf,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,oBAAoB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC7C,yBAAyB,CAAC,EAAE,MAAM,CAAA;IAClC,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B,CAAC;;;;;;cAZW,OAAO;WAFV,MAAM;aAGJ,OAAO;oBAKA,OAAO;kBADT,OAAO;;AAohB1B,0BASG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./SchemaProperty.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-4a4e028a"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1,35 +1,26 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import { DISCRIMINATOR_CONTEXT as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
const
|
|
1
|
+
import { defineComponent as $, computed as p, inject as z, createBlock as c, openBlock as a, resolveDynamicComponent as Z, normalizeClass as L, withCtx as v, createCommentVNode as s, createElementBlock as l, createVNode as d, createSlots as X, createTextVNode as O, toDisplayString as V, unref as h, Fragment as k, renderList as G } from "vue";
|
|
2
|
+
import { ScalarMarkdown as D } from "@scalar/components";
|
|
3
|
+
import { optimizeValueForDisplay as J, compositions as K } from "./helpers/optimizeValueForDisplay.js";
|
|
4
|
+
import Q from "./SchemaEnumValues.vue.js";
|
|
5
|
+
import { DISCRIMINATOR_CONTEXT as W } from "../../../hooks/useDiscriminator.js";
|
|
6
|
+
import C from "./Schema.vue.js";
|
|
7
|
+
import H from "./SchemaComposition.vue.js";
|
|
8
|
+
import Y from "./SchemaDiscriminator.vue.js";
|
|
9
|
+
import _ from "./SchemaPropertyHeading.vue.js";
|
|
10
|
+
import x from "../../../features/specification-extension/SpecificationExtension.vue.js";
|
|
11
|
+
const ee = {
|
|
12
12
|
key: 1,
|
|
13
13
|
class: "property-description"
|
|
14
|
-
},
|
|
14
|
+
}, ie = {
|
|
15
15
|
key: 2,
|
|
16
16
|
class: "property-description"
|
|
17
|
-
},
|
|
17
|
+
}, ne = {
|
|
18
18
|
key: 3,
|
|
19
|
-
class: "property-enum"
|
|
20
|
-
}, ue = {
|
|
21
|
-
key: 0,
|
|
22
|
-
class: "property-list"
|
|
23
|
-
}, ye = { class: "property-heading" }, he = { class: "property-name" }, fe = { class: "property-description" }, ge = {
|
|
24
|
-
key: 1,
|
|
25
|
-
class: "property-enum-values"
|
|
26
|
-
}, ve = { class: "property-enum-value-label" }, be = { class: "property-enum-value-label" }, ke = {
|
|
27
|
-
key: 4,
|
|
28
19
|
class: "children"
|
|
29
|
-
},
|
|
20
|
+
}, ae = {
|
|
30
21
|
key: 0,
|
|
31
22
|
class: "children"
|
|
32
|
-
},
|
|
23
|
+
}, ye = /* @__PURE__ */ $({
|
|
33
24
|
__name: "SchemaProperty",
|
|
34
25
|
props: {
|
|
35
26
|
is: {},
|
|
@@ -51,8 +42,8 @@ const pe = {
|
|
|
51
42
|
isDiscriminator: { type: Boolean }
|
|
52
43
|
},
|
|
53
44
|
emits: ["update:modelValue"],
|
|
54
|
-
setup(
|
|
55
|
-
const
|
|
45
|
+
setup(R, { emit: T }) {
|
|
46
|
+
const u = R, w = T, N = {
|
|
56
47
|
integer: {
|
|
57
48
|
_default: "Integer numbers.",
|
|
58
49
|
int32: "Signed 32-bit integers (commonly used integer type).",
|
|
@@ -66,216 +57,151 @@ const pe = {
|
|
|
66
57
|
byte: "base64-encoded characters, for example, U3dhZ2dlciByb2Nrcw==",
|
|
67
58
|
binary: "binary data, used to describe files"
|
|
68
59
|
}
|
|
69
|
-
},
|
|
70
|
-
var
|
|
71
|
-
return (e == null ? void 0 : e.enum) || ((
|
|
72
|
-
},
|
|
73
|
-
() => u(i.value).length > 9
|
|
74
|
-
), V = o(() => H.value ? 5 : 9), z = o(
|
|
75
|
-
() => u(i.value).slice(0, V.value)
|
|
76
|
-
), L = o(
|
|
77
|
-
() => u(i.value).slice(V.value)
|
|
78
|
-
), i = o(() => ae(D.value)), d = Y(oe, null), s = o(() => {
|
|
60
|
+
}, g = (e, i) => i != null && i.properties || i != null && i.additionalProperties || i != null && i.patternProperties || i != null && i.allOf ? null : e || (i == null ? void 0 : i.description) || null, M = (e) => !e || !N[e.type] ? null : N[e.type][e.format || e.contentEncoding || "_default"], E = (e) => {
|
|
61
|
+
var i;
|
|
62
|
+
return (e == null ? void 0 : e.enum) || ((i = e == null ? void 0 : e.items) == null ? void 0 : i.enum) || [];
|
|
63
|
+
}, n = p(() => J(u.value)), t = z(W, null), r = p(() => {
|
|
79
64
|
var e;
|
|
80
|
-
return
|
|
81
|
-
}),
|
|
65
|
+
return u.level > 0 ? n.value : (e = t == null ? void 0 : t.value) != null && e.mergedSchema ? t.value.mergedSchema : n.value;
|
|
66
|
+
}), I = p(() => {
|
|
82
67
|
var e;
|
|
83
|
-
return ((e =
|
|
84
|
-
}),
|
|
85
|
-
|
|
86
|
-
},
|
|
87
|
-
const e =
|
|
68
|
+
return ((e = t == null ? void 0 : t.value) == null ? void 0 : e.selectedType) || (u.discriminatorMapping ? Object.keys(u.discriminatorMapping)[0] : "");
|
|
69
|
+
}), A = (e, i, m, y, f) => i || m || y || (e == null ? void 0 : e.deprecated) || (e == null ? void 0 : e.const) !== void 0 || (e == null ? void 0 : e.enum) && e.enum.length === 1 || (e == null ? void 0 : e.type) || (e == null ? void 0 : e.nullable) === !0 || (e == null ? void 0 : e.writeOnly) || (e == null ? void 0 : e.readOnly) || f, b = (e) => {
|
|
70
|
+
w("update:modelValue", e);
|
|
71
|
+
}, P = p(() => {
|
|
72
|
+
const e = n.value;
|
|
88
73
|
if (!(e != null && e.items) || typeof e.items != "object")
|
|
89
74
|
return !1;
|
|
90
|
-
const
|
|
91
|
-
return "type" in
|
|
92
|
-
}),
|
|
93
|
-
const
|
|
94
|
-
return !(
|
|
95
|
-
},
|
|
96
|
-
if (!
|
|
97
|
-
return !1;
|
|
98
|
-
const e = i.value, n = e.type === "object" || Array.isArray(e.type) && e.type.includes("object"), y = e.properties || e.additionalProperties;
|
|
99
|
-
return n && y;
|
|
100
|
-
}), Q = o(() => {
|
|
101
|
-
var n;
|
|
102
|
-
if (!((n = i.value) != null && n["x-enumDescriptions"]))
|
|
75
|
+
const i = e.items;
|
|
76
|
+
return "type" in i && ["object"].includes(i.type) || "$ref" in i || "discriminator" in i || "allOf" in i || "oneOf" in i || "anyOf" in i;
|
|
77
|
+
}), U = (e) => {
|
|
78
|
+
const i = n.value;
|
|
79
|
+
return !(i != null && i.items) || typeof i.items != "object" || !(e in i.items) ? !1 : !P.value;
|
|
80
|
+
}, q = p(() => P.value), F = p(() => {
|
|
81
|
+
if (!n.value)
|
|
103
82
|
return !1;
|
|
104
|
-
const e = i.
|
|
105
|
-
return
|
|
83
|
+
const e = n.value, i = e.type === "object" || Array.isArray(e.type) && e.type.includes("object"), m = e.properties || e.additionalProperties;
|
|
84
|
+
return i && m;
|
|
106
85
|
});
|
|
107
|
-
return (e,
|
|
108
|
-
var
|
|
109
|
-
return
|
|
110
|
-
class:
|
|
111
|
-
(
|
|
86
|
+
return (e, i) => {
|
|
87
|
+
var m;
|
|
88
|
+
return a(), c(Z(e.is ?? "li"), {
|
|
89
|
+
class: L(["property", [
|
|
90
|
+
(g(e.description, n.value), ""),
|
|
112
91
|
`property--level-${e.level}`,
|
|
113
92
|
{
|
|
114
93
|
"property--compact": e.compact,
|
|
115
|
-
"property--deprecated": (
|
|
94
|
+
"property--deprecated": (m = n.value) == null ? void 0 : m.deprecated
|
|
116
95
|
}
|
|
117
96
|
]])
|
|
118
97
|
}, {
|
|
119
|
-
default:
|
|
120
|
-
var
|
|
98
|
+
default: v(() => {
|
|
99
|
+
var y, f;
|
|
121
100
|
return [
|
|
122
|
-
|
|
123
|
-
|
|
101
|
+
A(
|
|
102
|
+
n.value,
|
|
124
103
|
e.name,
|
|
125
104
|
e.additional,
|
|
126
105
|
e.pattern,
|
|
127
106
|
e.required
|
|
128
|
-
) ? (
|
|
107
|
+
) ? (a(), c(_, {
|
|
129
108
|
key: 0,
|
|
130
109
|
additional: e.additional,
|
|
131
|
-
enum:
|
|
110
|
+
enum: E(n.value).length > 0,
|
|
132
111
|
pattern: e.pattern,
|
|
133
112
|
required: e.required,
|
|
134
|
-
value:
|
|
113
|
+
value: n.value,
|
|
135
114
|
schemas: e.schemas,
|
|
136
115
|
hideModelNames: e.hideModelNames
|
|
137
|
-
},
|
|
116
|
+
}, X({ _: 2 }, [
|
|
138
117
|
e.name ? {
|
|
139
118
|
name: "name",
|
|
140
|
-
fn:
|
|
141
|
-
|
|
119
|
+
fn: v(() => [
|
|
120
|
+
O(V(e.name), 1)
|
|
142
121
|
]),
|
|
143
122
|
key: "0"
|
|
144
123
|
} : void 0,
|
|
145
|
-
(
|
|
124
|
+
(y = n.value) != null && y.example ? {
|
|
146
125
|
name: "example",
|
|
147
|
-
fn:
|
|
148
|
-
|
|
126
|
+
fn: v(() => [
|
|
127
|
+
O(" Example: " + V(n.value.example), 1)
|
|
149
128
|
]),
|
|
150
129
|
key: "1"
|
|
151
130
|
} : void 0
|
|
152
|
-
]), 1032, ["additional", "enum", "pattern", "required", "value", "schemas", "hideModelNames"])) :
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
value:
|
|
131
|
+
]), 1032, ["additional", "enum", "pattern", "required", "value", "schemas", "hideModelNames"])) : s("", !0),
|
|
132
|
+
g(e.description, n.value) ? (a(), l("div", ee, [
|
|
133
|
+
d(h(D), {
|
|
134
|
+
value: g(e.description, n.value)
|
|
156
135
|
}, null, 8, ["value"])
|
|
157
|
-
])) :
|
|
158
|
-
|
|
159
|
-
value:
|
|
136
|
+
])) : M(n.value) ? (a(), l("div", ie, [
|
|
137
|
+
d(h(D), {
|
|
138
|
+
value: M(n.value) || ""
|
|
160
139
|
}, null, 8, ["value"])
|
|
161
|
-
])) :
|
|
162
|
-
(
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
var c, b;
|
|
166
|
-
return t(), r("div", {
|
|
167
|
-
key: a,
|
|
168
|
-
class: "property"
|
|
169
|
-
}, [
|
|
170
|
-
k("div", ye, [
|
|
171
|
-
k("div", he, g(a), 1)
|
|
172
|
-
]),
|
|
173
|
-
k("div", fe, [
|
|
174
|
-
m(p(O), {
|
|
175
|
-
value: (b = (c = i.value) == null ? void 0 : c["x-enumDescriptions"]) == null ? void 0 : b[a]
|
|
176
|
-
}, null, 8, ["value"])
|
|
177
|
-
])
|
|
178
|
-
]);
|
|
179
|
-
}), 128))
|
|
180
|
-
])) : (t(), r("ul", ge, [
|
|
181
|
-
(t(!0), r(v, null, M(z.value, (a) => (t(), r("li", {
|
|
182
|
-
key: a,
|
|
183
|
-
class: "property-enum-value"
|
|
184
|
-
}, [
|
|
185
|
-
k("span", ve, g(a), 1)
|
|
186
|
-
]))), 128)),
|
|
187
|
-
H.value ? (t(), h(p(ee), { key: 0 }, {
|
|
188
|
-
default: f(({ open: a }) => [
|
|
189
|
-
m(p(ne), null, {
|
|
190
|
-
default: f(() => [
|
|
191
|
-
(t(!0), r(v, null, M(L.value, (c) => (t(), r("li", {
|
|
192
|
-
key: c,
|
|
193
|
-
class: "property-enum-value"
|
|
194
|
-
}, [
|
|
195
|
-
k("span", be, g(c), 1)
|
|
196
|
-
]))), 128))
|
|
197
|
-
]),
|
|
198
|
-
_: 1
|
|
199
|
-
}),
|
|
200
|
-
m(p(ie), { class: "enum-toggle-button" }, {
|
|
201
|
-
default: f(() => [
|
|
202
|
-
m(p(te), {
|
|
203
|
-
class: R(["enum-toggle-button-icon", { "enum-toggle-button-icon--open": a }]),
|
|
204
|
-
icon: "Add",
|
|
205
|
-
size: "sm"
|
|
206
|
-
}, null, 8, ["class"]),
|
|
207
|
-
B(" " + g(a ? "Hide values" : "Show all values"), 1)
|
|
208
|
-
]),
|
|
209
|
-
_: 2
|
|
210
|
-
}, 1024)
|
|
211
|
-
]),
|
|
212
|
-
_: 1
|
|
213
|
-
})) : l("", !0)
|
|
214
|
-
]))
|
|
215
|
-
])) : l("", !0),
|
|
216
|
-
K.value ? (t(), r("div", ke, [
|
|
217
|
-
m(T, {
|
|
140
|
+
])) : s("", !0),
|
|
141
|
+
d(Q, { value: n.value }, null, 8, ["value"]),
|
|
142
|
+
F.value ? (a(), l("div", ne, [
|
|
143
|
+
d(C, {
|
|
218
144
|
compact: e.compact,
|
|
219
145
|
level: e.level + 1,
|
|
220
146
|
name: e.name,
|
|
221
147
|
noncollapsible: e.noncollapsible,
|
|
222
|
-
value:
|
|
223
|
-
resolvedSchema:
|
|
148
|
+
value: r.value,
|
|
149
|
+
resolvedSchema: r.value,
|
|
224
150
|
discriminatorMapping: e.discriminatorMapping,
|
|
225
151
|
discriminatorPropertyName: e.discriminatorPropertyName,
|
|
226
152
|
schemas: e.schemas,
|
|
227
|
-
"onUpdate:modelValue":
|
|
153
|
+
"onUpdate:modelValue": b
|
|
228
154
|
}, null, 8, ["compact", "level", "name", "noncollapsible", "value", "resolvedSchema", "discriminatorMapping", "discriminatorPropertyName", "schemas"])
|
|
229
|
-
])) :
|
|
230
|
-
(
|
|
231
|
-
|
|
232
|
-
|
|
155
|
+
])) : s("", !0),
|
|
156
|
+
(f = n.value) != null && f.items && typeof n.value.items == "object" ? (a(), l(k, { key: 4 }, [
|
|
157
|
+
q.value ? (a(), l("div", ae, [
|
|
158
|
+
d(C, {
|
|
233
159
|
compact: e.compact,
|
|
234
160
|
level: e.level + 1,
|
|
235
161
|
name: e.name,
|
|
236
162
|
noncollapsible: e.noncollapsible,
|
|
237
|
-
value:
|
|
238
|
-
resolvedSchema:
|
|
163
|
+
value: r.value && typeof r.value == "object" && "items" in r.value ? r.value.items : n.value.items,
|
|
164
|
+
resolvedSchema: r.value && typeof r.value == "object" && "items" in r.value ? r.value.items : n.value.items,
|
|
239
165
|
discriminatorMapping: e.discriminatorMapping,
|
|
240
166
|
discriminatorPropertyName: e.discriminatorPropertyName,
|
|
241
167
|
schemas: e.schemas,
|
|
242
|
-
"onUpdate:modelValue":
|
|
168
|
+
"onUpdate:modelValue": b
|
|
243
169
|
}, null, 8, ["compact", "level", "name", "noncollapsible", "value", "resolvedSchema", "discriminatorMapping", "discriminatorPropertyName", "schemas"])
|
|
244
|
-
])) :
|
|
245
|
-
], 64)) :
|
|
246
|
-
(
|
|
247
|
-
var
|
|
248
|
-
return
|
|
249
|
-
(
|
|
170
|
+
])) : s("", !0)
|
|
171
|
+
], 64)) : s("", !0),
|
|
172
|
+
(a(!0), l(k, null, G(h(K), (o) => {
|
|
173
|
+
var S, j, B;
|
|
174
|
+
return a(), l(k, { key: o }, [
|
|
175
|
+
(S = n.value) != null && S[o] && !((j = n.value) != null && j.items && typeof o == "string" && typeof n.value.items == "object" && o in n.value.items) ? (a(), c(H, {
|
|
250
176
|
key: 0,
|
|
251
177
|
compact: e.compact,
|
|
252
|
-
composition:
|
|
178
|
+
composition: o,
|
|
253
179
|
hideHeading: e.hideHeading,
|
|
254
180
|
level: e.level,
|
|
255
181
|
name: e.name,
|
|
256
182
|
noncollapsible: e.noncollapsible,
|
|
257
183
|
schemas: e.schemas,
|
|
258
|
-
value:
|
|
259
|
-
}, null, 8, ["compact", "composition", "hideHeading", "level", "name", "noncollapsible", "schemas", "value"])) :
|
|
184
|
+
value: n.value
|
|
185
|
+
}, null, 8, ["compact", "composition", "hideHeading", "level", "name", "noncollapsible", "schemas", "value"])) : U(o) ? (a(), c(H, {
|
|
260
186
|
key: 1,
|
|
261
187
|
compact: e.compact,
|
|
262
|
-
composition:
|
|
188
|
+
composition: o,
|
|
263
189
|
hideHeading: e.hideHeading,
|
|
264
190
|
level: e.level,
|
|
265
191
|
name: e.name,
|
|
266
192
|
noncollapsible: e.noncollapsible,
|
|
267
193
|
schemas: e.schemas,
|
|
268
|
-
value: (
|
|
269
|
-
}, null, 8, ["compact", "composition", "hideHeading", "level", "name", "noncollapsible", "schemas", "value"])) :
|
|
194
|
+
value: (B = n.value) == null ? void 0 : B.items
|
|
195
|
+
}, null, 8, ["compact", "composition", "hideHeading", "level", "name", "noncollapsible", "schemas", "value"])) : s("", !0)
|
|
270
196
|
], 64);
|
|
271
197
|
}), 128)),
|
|
272
|
-
e.isDiscriminator && e.discriminatorMapping && e.compact ? (
|
|
273
|
-
key:
|
|
198
|
+
e.isDiscriminator && e.discriminatorMapping && e.compact ? (a(), c(Y, {
|
|
199
|
+
key: 5,
|
|
274
200
|
"discriminator-mapping": e.discriminatorMapping,
|
|
275
|
-
discriminator:
|
|
276
|
-
"onUpdate:modelValue":
|
|
277
|
-
}, null, 8, ["discriminator-mapping", "discriminator"])) :
|
|
278
|
-
|
|
201
|
+
discriminator: I.value,
|
|
202
|
+
"onUpdate:modelValue": b
|
|
203
|
+
}, null, 8, ["discriminator-mapping", "discriminator"])) : s("", !0),
|
|
204
|
+
d(h(x), { value: n.value }, null, 8, ["value"])
|
|
279
205
|
];
|
|
280
206
|
}),
|
|
281
207
|
_: 1
|
|
@@ -284,5 +210,5 @@ const pe = {
|
|
|
284
210
|
}
|
|
285
211
|
});
|
|
286
212
|
export {
|
|
287
|
-
|
|
213
|
+
ye as default
|
|
288
214
|
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {};
|
|
7
|
+
rootEl: HTMLDivElement;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
11
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=SchemaPropertyDescription.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SchemaPropertyDescription.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaPropertyDescription.vue"],"names":[],"mappings":"AAcA,iBAAS,cAAc;WAmCT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAOD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,0RAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaPropertyHeading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaPropertyHeading.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SchemaPropertyHeading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaPropertyHeading.vue"],"names":[],"mappings":"AAgTA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAWjE,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;AAmEF,iBAAS,cAAc;WA6VT,OAAO,IAA6B;;sBATxB,GAAG;sBACH,GAAG;;;;EAa5B;AAkBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,6SAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./SchemaPropertyHeading.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-67d0f2e8"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|