@scalar/api-reference 1.28.9 → 1.28.11
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 +40 -0
- package/dist/browser/standalone.js +5570 -5486
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +2 -2
- package/dist/components/ApiReferenceLayout.vue2.js +13 -13
- 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/Schema/Schema.vue.d.ts +2 -0
- package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/Schema.vue.js +4 -4
- package/dist/components/Content/Schema/Schema.vue2.js +78 -54
- 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 -114
- package/dist/components/Content/Schema/SchemaPropertyExamples.vue.d.ts +8 -0
- package/dist/components/Content/Schema/SchemaPropertyExamples.vue.d.ts.map +1 -0
- package/dist/components/Content/Schema/SchemaPropertyExamples.vue.js +7 -0
- package/dist/components/Content/Schema/SchemaPropertyExamples.vue2.js +71 -0
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts +2 -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 +139 -130
- package/dist/features/ApiClientModal/useApiClient.d.ts +76 -334
- package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
- package/dist/features/ExampleResponses/ExampleResponses.vue.d.ts.map +1 -1
- package/dist/features/ExampleResponses/ExampleResponses.vue.js +2 -2
- package/dist/features/ExampleResponses/ExampleResponses.vue2.js +86 -85
- package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/RequestBody.vue.js +2 -2
- package/dist/features/Operation/components/RequestBody.vue2.js +65 -28
- package/dist/features/Search/useSearchIndex.js +72 -72
- package/dist/helpers/get-request.d.ts.map +1 -1
- package/dist/hooks/useMultipleDocuments.d.ts +5 -1
- package/dist/hooks/useMultipleDocuments.d.ts.map +1 -1
- package/dist/hooks/useMultipleDocuments.js +49 -48
- package/dist/hooks/useNavState.d.ts +6 -4
- package/dist/hooks/useNavState.d.ts.map +1 -1
- package/dist/hooks/useNavState.js +34 -37
- package/dist/index.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +12 -12
|
@@ -2,7 +2,7 @@ import o from "./ApiReferenceLayout.vue2.js";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import t from "../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const
|
|
5
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-19fd3fc9"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
m as default
|
|
8
8
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as ie, computed as g, ref as $, onBeforeMount as A, onMounted as le, onUnmounted as de, watch as R, onServerPrefetch as ue, useSSRContext as ce, useId as pe, provide as w, openBlock as y, createElementBlock as C, Fragment as
|
|
1
|
+
import { defineComponent as ie, computed as g, ref as $, onBeforeMount as A, onMounted as le, onUnmounted as de, watch as R, onServerPrefetch as ue, useSSRContext as ce, useId as pe, provide as w, openBlock as y, createElementBlock as C, Fragment as D, createElementVNode as d, normalizeClass as fe, unref as i, normalizeStyle as me, renderSlot as u, normalizeProps as c, guardReactiveProps as p, createVNode as m, withCtx as v, createCommentVNode as E, withDirectives as ve, vShow as Se, createSlots as he } from "vue";
|
|
2
2
|
import { provideUseId as ge } from "@headlessui/vue";
|
|
3
3
|
import { LAYOUT_SYMBOL as be } from "@scalar/api-client/hooks";
|
|
4
4
|
import { createWorkspaceStore as we, WORKSPACE_SYMBOL as ye, createActiveEntitiesStore as Ce, ACTIVE_ENTITIES_SYMBOL as Te } from "@scalar/api-client/store";
|
|
5
5
|
import { addScalarClassesToHeadless as $e, ScalarErrorBoundary as Re } from "@scalar/components";
|
|
6
|
-
import { defaultStateFactory as
|
|
6
|
+
import { defaultStateFactory as H } from "@scalar/oas-utils/helpers";
|
|
7
7
|
import { hasObtrusiveScrollbars as Ee, getThemeStyles as Oe } from "@scalar/themes";
|
|
8
8
|
import { apiReferenceConfigurationSchema as Ie } from "@scalar/types/api-reference";
|
|
9
9
|
import { useToasts as ke, ScalarToasts as Fe } from "@scalar/use-toasts";
|
|
10
10
|
import { useMediaQuery as Le, useResizeObserver as Pe, useDebounceFn as Me } from "@vueuse/core";
|
|
11
11
|
import Be from "./GettingStarted.vue.js";
|
|
12
12
|
import { CONFIGURATION_SYMBOL as Ae } from "../hooks/useConfig.js";
|
|
13
|
-
import { useHttpClientStore as
|
|
14
|
-
import { downloadSpecBus as _, downloadSpecFile as
|
|
13
|
+
import { useHttpClientStore as De } from "../stores/useHttpClientStore.js";
|
|
14
|
+
import { downloadSpecBus as _, downloadSpecFile as He } from "../helpers/specDownloads.js";
|
|
15
15
|
import _e from "./Sidebar/Sidebar.vue.js";
|
|
16
16
|
import Ne from "./Content/Content.vue.js";
|
|
17
17
|
import Ue from "../features/ApiClientModal/ApiClientModal.vue.js";
|
|
@@ -49,7 +49,7 @@ const Ge = ["innerHTML"], We = { class: "references-header" }, je = ["aria-label
|
|
|
49
49
|
setParsedSpec: q,
|
|
50
50
|
scrollToOperation: J
|
|
51
51
|
} = ze(), {
|
|
52
|
-
|
|
52
|
+
getReferenceId: X,
|
|
53
53
|
getPathRoutingId: I,
|
|
54
54
|
getSectionId: Z,
|
|
55
55
|
getTagId: x,
|
|
@@ -57,7 +57,7 @@ const Ge = ["innerHTML"], We = { class: "references-header" }, je = ["aria-label
|
|
|
57
57
|
isIntersectionEnabled: k,
|
|
58
58
|
updateHash: F,
|
|
59
59
|
replaceUrlState: te
|
|
60
|
-
} = Ye();
|
|
60
|
+
} = Ye(t);
|
|
61
61
|
if (t.value.redirect && typeof window < "u") {
|
|
62
62
|
const e = t.value.redirect(
|
|
63
63
|
(t.value.pathRouting ? window.location.pathname : "") + window.location.hash
|
|
@@ -72,7 +72,7 @@ const Ge = ["innerHTML"], We = { class: "references-header" }, je = ["aria-label
|
|
|
72
72
|
A(() => $e()), le(() => {
|
|
73
73
|
var o, s, r;
|
|
74
74
|
history.scrollRestoration = "manual", _.on(({ specTitle: n }) => {
|
|
75
|
-
|
|
75
|
+
He(f.rawSpec, n);
|
|
76
76
|
});
|
|
77
77
|
const e = (s = (o = S.value) == null ? void 0 : o.parentElement) == null ? void 0 : s.getBoundingClientRect(), a = (r = S.value) == null ? void 0 : r.getBoundingClientRect();
|
|
78
78
|
if (e && a) {
|
|
@@ -99,7 +99,7 @@ const Ge = ["innerHTML"], We = { class: "references-header" }, je = ["aria-label
|
|
|
99
99
|
}), R(() => f.parsedSpec, q, { deep: !0 }), ue(() => {
|
|
100
100
|
var a, o;
|
|
101
101
|
const e = ce();
|
|
102
|
-
if (e && (e.payload || (e.payload = { data:
|
|
102
|
+
if (e && (e.payload || (e.payload = { data: H() }), (a = e.payload).data || (a.data = H()), t.value.pathRouting)) {
|
|
103
103
|
const s = I(e.url);
|
|
104
104
|
ee.value = s, e.payload.data.hash = s;
|
|
105
105
|
for (const r in b)
|
|
@@ -123,8 +123,8 @@ const Ge = ["innerHTML"], We = { class: "references-header" }, je = ["aria-label
|
|
|
123
123
|
var a;
|
|
124
124
|
return e && T.importSpecFile(e, "default", {
|
|
125
125
|
shouldLoad: !1,
|
|
126
|
-
documentUrl: (a = t.value.spec) == null ? void 0 : a.url,
|
|
127
|
-
|
|
126
|
+
documentUrl: ((a = t.value.spec) == null ? void 0 : a.url) ?? t.value.url,
|
|
127
|
+
useCollectionSecurity: !0,
|
|
128
128
|
...t.value
|
|
129
129
|
});
|
|
130
130
|
},
|
|
@@ -141,7 +141,7 @@ const Ge = ["innerHTML"], We = { class: "references-header" }, je = ["aria-label
|
|
|
141
141
|
{ immediate: !0 }
|
|
142
142
|
);
|
|
143
143
|
}
|
|
144
|
-
const { setExcludedClients: re, setDefaultHttpClient: se } =
|
|
144
|
+
const { setExcludedClients: re, setDefaultHttpClient: se } = De();
|
|
145
145
|
B("defaultHttpClient", se), B("hiddenClients", re), K.value = t.value.hideModels ?? !1, Q.value = t.value.defaultOpenAllTags ?? !1;
|
|
146
146
|
const ne = g(
|
|
147
147
|
() => `<style>
|
|
@@ -151,7 +151,7 @@ const Ge = ["innerHTML"], We = { class: "references-header" }, je = ["aria-label
|
|
|
151
151
|
);
|
|
152
152
|
return (e, a) => {
|
|
153
153
|
var o, s, r;
|
|
154
|
-
return y(), C(
|
|
154
|
+
return y(), C(D, null, [
|
|
155
155
|
d("div", { innerHTML: ne.value }, null, 8, Ge),
|
|
156
156
|
d("div", {
|
|
157
157
|
ref_key: "documentEl",
|
|
@@ -208,7 +208,7 @@ const Ge = ["innerHTML"], We = { class: "references-header" }, je = ["aria-label
|
|
|
208
208
|
], 512), [
|
|
209
209
|
[Se, t.value.isEditable]
|
|
210
210
|
]),
|
|
211
|
-
ae.value ? (y(), C(
|
|
211
|
+
ae.value ? (y(), C(D, { key: 1 }, [
|
|
212
212
|
d("main", {
|
|
213
213
|
"aria-label": `Open API Documentation for ${(s = e.parsedSpec.info) == null ? void 0 : s.title}`,
|
|
214
214
|
class: "references-rendered"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Models.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Models/Models.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Models.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Models/Models.vue"],"names":[],"mappings":"AAuHA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAiB9E,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,EACJ,SAAS,CAAC,iBAAiB,GAC3B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,YAAY,CAAC,GACtC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GACxC,OAAO,CAAA;CACZ,CAAC;;AAqMF,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Models.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f1f02ced"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -9,6 +9,8 @@ type __VLS_Props = {
|
|
|
9
9
|
/** Shows a toggle to hide/show children */
|
|
10
10
|
noncollapsible?: boolean;
|
|
11
11
|
hideHeading?: boolean;
|
|
12
|
+
/** Show a special one way toggle for additional properties, also has a top border when open */
|
|
13
|
+
additionalProperties?: boolean;
|
|
12
14
|
schemas?: OpenAPIV2.DefinitionsObject | Record<string, OpenAPIV3.SchemaObject> | Record<string, OpenAPIV3_1.SchemaObject> | unknown;
|
|
13
15
|
};
|
|
14
16
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Schema.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/Schema.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Schema.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/Schema.vue"],"names":[],"mappings":"AA8UA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAQ9E,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EACF,SAAS,CAAC,iBAAiB,GAC3B,SAAS,CAAC,YAAY,GACtB,SAAS,CAAC,iBAAiB,GAC3B,SAAS,CAAC,oBAAoB,GAC9B,WAAW,CAAC,YAAY,GACxB,WAAW,CAAC,iBAAiB,GAC7B,WAAW,CAAC,oBAAoB,CAAA;IACpC,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,+DAA+D;IAC/D,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,2CAA2C;IAC3C,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,+FAA+F;IAC/F,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,OAAO,CAAC,EACJ,SAAS,CAAC,iBAAiB,GAC3B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,YAAY,CAAC,GACtC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GACxC,OAAO,CAAA;CACZ,CAAC;;WAfQ,MAAM;;AAwWlB,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import o from "./Schema.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import a from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const r = /* @__PURE__ */ a(o, [["__scopeId", "data-v-6fa5fa1b"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
r as default
|
|
7
7
|
};
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Disclosure as
|
|
3
|
-
import { ScalarMarkdown as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
const
|
|
1
|
+
import { defineComponent as N, computed as V, openBlock as a, createBlock as s, unref as o, withCtx as h, createElementVNode as B, normalizeClass as m, createElementBlock as i, createVNode as p, createCommentVNode as n, withDirectives as j, createTextVNode as k, vShow as w, normalizeStyle as E, Fragment as t, toDisplayString as z, renderList as A } from "vue";
|
|
2
|
+
import { Disclosure as T, DisclosureButton as D, DisclosurePanel as $ } from "@headlessui/vue";
|
|
3
|
+
import { ScalarMarkdown as F, ScalarIcon as g } from "@scalar/components";
|
|
4
|
+
import I from "./SchemaHeading.vue.js";
|
|
5
|
+
import v from "./SchemaProperty.vue.js";
|
|
6
|
+
const L = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "schema-card-description"
|
|
9
|
-
},
|
|
9
|
+
}, M = {
|
|
10
|
+
key: 0,
|
|
11
|
+
class: "schema-properties"
|
|
12
|
+
}, U = /* @__PURE__ */ N({
|
|
10
13
|
__name: "Schema",
|
|
11
14
|
props: {
|
|
12
15
|
value: { type: [Object, Boolean] },
|
|
@@ -15,64 +18,85 @@ const I = {
|
|
|
15
18
|
compact: { type: Boolean },
|
|
16
19
|
noncollapsible: { type: Boolean },
|
|
17
20
|
hideHeading: { type: Boolean },
|
|
21
|
+
additionalProperties: { type: Boolean },
|
|
18
22
|
schemas: {}
|
|
19
23
|
},
|
|
20
|
-
setup(
|
|
21
|
-
const
|
|
22
|
-
return (e,
|
|
24
|
+
setup(q) {
|
|
25
|
+
const y = q, f = V(() => !(y.noncollapsible || y.level === 0)), b = (e) => y.noncollapsible && e.stopPropagation();
|
|
26
|
+
return (e, H) => typeof e.value == "object" && Object.keys(e.value).length ? (a(), s(o(T), {
|
|
23
27
|
key: 0,
|
|
24
28
|
defaultOpen: e.noncollapsible
|
|
25
29
|
}, {
|
|
26
|
-
default:
|
|
27
|
-
var
|
|
30
|
+
default: h(({ open: r }) => {
|
|
31
|
+
var P;
|
|
28
32
|
return [
|
|
29
|
-
|
|
33
|
+
B("div", {
|
|
30
34
|
class: m(["schema-card", [
|
|
31
35
|
`schema-card--level-${e.level}`,
|
|
32
|
-
{ "schema-card--compact": e.compact, "schema-card--open":
|
|
36
|
+
{ "schema-card--compact": e.compact, "schema-card--open": r },
|
|
37
|
+
{ "border-t-1/2": e.additionalProperties && r }
|
|
33
38
|
]])
|
|
34
39
|
}, [
|
|
35
|
-
(
|
|
36
|
-
|
|
40
|
+
(P = e.value) != null && P.description && typeof e.value.description == "string" && !e.value.allOf && !e.value.oneOf && !e.value.anyOf && !e.compact ? (a(), i("div", L, [
|
|
41
|
+
p(o(F), {
|
|
37
42
|
value: e.value.description
|
|
38
43
|
}, null, 8, ["value"])
|
|
39
44
|
])) : n("", !0),
|
|
40
|
-
|
|
45
|
+
B("div", {
|
|
41
46
|
class: m(["schema-properties", {
|
|
42
|
-
"schema-properties-open":
|
|
47
|
+
"schema-properties-open": r
|
|
43
48
|
}])
|
|
44
49
|
}, [
|
|
45
|
-
|
|
50
|
+
e.additionalProperties ? j((a(), i("div", M, [
|
|
51
|
+
p(o(D), {
|
|
52
|
+
as: "button",
|
|
53
|
+
class: "schema-card-title schema-card-title--compact",
|
|
54
|
+
onClickCapture: b
|
|
55
|
+
}, {
|
|
56
|
+
default: h(() => [
|
|
57
|
+
p(o(g), {
|
|
58
|
+
class: "schema-card-title-icon",
|
|
59
|
+
icon: "Add",
|
|
60
|
+
size: "sm"
|
|
61
|
+
}),
|
|
62
|
+
H[0] || (H[0] = k(" Show additional properties "))
|
|
63
|
+
]),
|
|
64
|
+
_: 1
|
|
65
|
+
})
|
|
66
|
+
], 512)), [
|
|
67
|
+
[w, !r]
|
|
68
|
+
]) : j((a(), s(o(D), {
|
|
69
|
+
key: 1,
|
|
46
70
|
as: e.noncollapsible ? "div" : "button",
|
|
47
71
|
class: m(["schema-card-title", { "schema-card-title--compact": e.compact }]),
|
|
48
|
-
style:
|
|
72
|
+
style: E({
|
|
49
73
|
top: `calc(var(--refs-header-height) + calc(var(--schema-title-height) * ${e.level}))`
|
|
50
74
|
}),
|
|
51
|
-
onClickCapture:
|
|
75
|
+
onClickCapture: b
|
|
52
76
|
}, {
|
|
53
|
-
default:
|
|
54
|
-
var d,
|
|
77
|
+
default: h(() => {
|
|
78
|
+
var d, c, l;
|
|
55
79
|
return [
|
|
56
|
-
e.compact ? (a(), i(
|
|
57
|
-
|
|
80
|
+
e.compact ? (a(), i(t, { key: 0 }, [
|
|
81
|
+
f.value ? (a(), s(o(g), {
|
|
58
82
|
key: 0,
|
|
59
|
-
class: m(["schema-card-title-icon", { "schema-card-title-icon--open":
|
|
83
|
+
class: m(["schema-card-title-icon", { "schema-card-title-icon--open": r }]),
|
|
60
84
|
icon: "Add",
|
|
61
85
|
size: "sm"
|
|
62
86
|
}, null, 8, ["class"])) : n("", !0),
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
], 64)) : (a(), i(
|
|
66
|
-
|
|
87
|
+
r ? (a(), i(t, { key: 1 }, [
|
|
88
|
+
k(" Hide " + z(((d = e.value) == null ? void 0 : d.title) ?? "Child Attributes"), 1)
|
|
89
|
+
], 64)) : (a(), i(t, { key: 2 }, [
|
|
90
|
+
k(" Show " + z(((c = e.value) == null ? void 0 : c.title) ?? "Child Attributes"), 1)
|
|
67
91
|
], 64))
|
|
68
|
-
], 64)) : (a(), i(
|
|
69
|
-
|
|
92
|
+
], 64)) : (a(), i(t, { key: 1 }, [
|
|
93
|
+
f.value ? (a(), s(o(g), {
|
|
70
94
|
key: 0,
|
|
71
|
-
class: m(["schema-card-title-icon", { "schema-card-title-icon--open":
|
|
95
|
+
class: m(["schema-card-title-icon", { "schema-card-title-icon--open": r }]),
|
|
72
96
|
icon: "Add",
|
|
73
97
|
size: "sm"
|
|
74
98
|
}, null, 8, ["class"])) : n("", !0),
|
|
75
|
-
|
|
99
|
+
p(I, {
|
|
76
100
|
name: ((l = e.value) == null ? void 0 : l.title) ?? e.name,
|
|
77
101
|
value: e.value
|
|
78
102
|
}, null, 8, ["name", "value"])
|
|
@@ -80,33 +104,33 @@ const I = {
|
|
|
80
104
|
];
|
|
81
105
|
}),
|
|
82
106
|
_: 2
|
|
83
|
-
}, 1032, ["as", "class", "style"]), [
|
|
84
|
-
[
|
|
107
|
+
}, 1032, ["as", "class", "style"])), [
|
|
108
|
+
[w, !e.hideHeading && !(e.noncollapsible && e.compact)]
|
|
85
109
|
]),
|
|
86
|
-
|
|
110
|
+
p(o($), {
|
|
87
111
|
as: "ul",
|
|
88
112
|
static: e.noncollapsible
|
|
89
113
|
}, {
|
|
90
|
-
default:
|
|
91
|
-
var d,
|
|
114
|
+
default: h(() => {
|
|
115
|
+
var d, c;
|
|
92
116
|
return [
|
|
93
|
-
e.value.properties || e.value.additionalProperties || e.value.patternProperties ? (a(), i(
|
|
94
|
-
e.value.properties ? (a(!0), i(
|
|
95
|
-
var
|
|
96
|
-
return a(), s(
|
|
117
|
+
e.value.properties || e.value.additionalProperties || e.value.patternProperties ? (a(), i(t, { key: 0 }, [
|
|
118
|
+
e.value.properties ? (a(!0), i(t, { key: 0 }, A(Object.keys((d = e.value) == null ? void 0 : d.properties), (l) => {
|
|
119
|
+
var u, C, S, O;
|
|
120
|
+
return a(), s(v, {
|
|
97
121
|
key: l,
|
|
98
122
|
compact: e.compact,
|
|
99
123
|
hideHeading: e.hideHeading,
|
|
100
124
|
level: e.level + 1,
|
|
101
125
|
name: l,
|
|
102
|
-
required: ((
|
|
126
|
+
required: ((u = e.value.required) == null ? void 0 : u.includes(l)) || ((S = (C = e.value.properties) == null ? void 0 : C[l]) == null ? void 0 : S.required) === !0,
|
|
103
127
|
schemas: e.schemas,
|
|
104
|
-
value: (
|
|
128
|
+
value: (O = e.value.properties) == null ? void 0 : O[l]
|
|
105
129
|
}, null, 8, ["compact", "hideHeading", "level", "name", "required", "schemas", "value"]);
|
|
106
130
|
}), 128)) : n("", !0),
|
|
107
|
-
e.value.patternProperties ? (a(!0), i(
|
|
108
|
-
var
|
|
109
|
-
return a(), s(
|
|
131
|
+
e.value.patternProperties ? (a(!0), i(t, { key: 1 }, A(Object.keys((c = e.value) == null ? void 0 : c.patternProperties), (l) => {
|
|
132
|
+
var u;
|
|
133
|
+
return a(), s(v, {
|
|
110
134
|
key: l,
|
|
111
135
|
compact: e.compact,
|
|
112
136
|
hideHeading: e.hideHeading,
|
|
@@ -114,11 +138,11 @@ const I = {
|
|
|
114
138
|
name: l,
|
|
115
139
|
pattern: "",
|
|
116
140
|
schemas: e.schemas,
|
|
117
|
-
value: (
|
|
141
|
+
value: (u = e.value.patternProperties) == null ? void 0 : u[l]
|
|
118
142
|
}, null, 8, ["compact", "hideHeading", "level", "name", "schemas", "value"]);
|
|
119
143
|
}), 128)) : n("", !0),
|
|
120
|
-
e.value.additionalProperties ? (a(), i(
|
|
121
|
-
e.value.additionalProperties === !0 || Object.keys(e.value.additionalProperties).length === 0 || !e.value.additionalProperties.type ? (a(), s(
|
|
144
|
+
e.value.additionalProperties ? (a(), i(t, { key: 2 }, [
|
|
145
|
+
e.value.additionalProperties === !0 || Object.keys(e.value.additionalProperties).length === 0 || !e.value.additionalProperties.type ? (a(), s(v, {
|
|
122
146
|
key: 0,
|
|
123
147
|
additional: "",
|
|
124
148
|
compact: e.compact,
|
|
@@ -130,7 +154,7 @@ const I = {
|
|
|
130
154
|
type: "anything",
|
|
131
155
|
...typeof e.value.additionalProperties == "object" ? e.value.additionalProperties : {}
|
|
132
156
|
}
|
|
133
|
-
}, null, 8, ["compact", "hideHeading", "level", "schemas", "value"])) : (a(), s(
|
|
157
|
+
}, null, 8, ["compact", "hideHeading", "level", "schemas", "value"])) : (a(), s(v, {
|
|
134
158
|
key: 1,
|
|
135
159
|
additional: "",
|
|
136
160
|
compact: e.compact,
|
|
@@ -141,7 +165,7 @@ const I = {
|
|
|
141
165
|
value: e.value.additionalProperties
|
|
142
166
|
}, null, 8, ["compact", "hideHeading", "level", "schemas", "value"]))
|
|
143
167
|
], 64)) : n("", !0)
|
|
144
|
-
], 64)) : (a(), s(
|
|
168
|
+
], 64)) : (a(), s(v, {
|
|
145
169
|
key: 1,
|
|
146
170
|
compact: e.compact,
|
|
147
171
|
hideHeading: e.hideHeading,
|
|
@@ -162,5 +186,5 @@ const I = {
|
|
|
162
186
|
}
|
|
163
187
|
});
|
|
164
188
|
export {
|
|
165
|
-
|
|
189
|
+
U as default
|
|
166
190
|
};
|
|
@@ -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":"AAieA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAc9E;;;;;GAKG;AAEH,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,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,OAAO,CAAC,EACJ,SAAS,CAAC,iBAAiB,GAC3B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,YAAY,CAAC,GACtC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GACxC,OAAO,CAAA;IACX,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;cAZW,OAAO;WAFV,MAAM;aAGJ,OAAO;kBAIF,OAAO;;AAic1B,0BAQG"}
|
|
@@ -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 p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-
|
|
4
|
+
const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-3431ec35"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|