@scalar/api-reference 1.31.3 → 1.31.6
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 +55 -0
- package/dist/browser/standalone.js +15752 -15637
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReference.vue.js +6 -6
- package/dist/components/ApiReferenceLayout.vue.d.ts +6 -3
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +4 -2
- package/dist/components/ApiReferenceLayout.vue2.js +230 -153
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +2 -2
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +1 -1
- package/dist/components/Content/Introduction/Description.vue.d.ts.map +1 -1
- package/dist/components/Content/Introduction/Description.vue.js +2 -2
- package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
- package/dist/components/Content/Lazy/Loading.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaComposition.vue.js +81 -101
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
- package/dist/components/Content/Schema/SchemaProperty.vue2.js +114 -105
- package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +35 -35
- package/dist/components/Content/Schema/helpers/optimizeValueForDisplay.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/optimizeValueForDisplay.js +17 -15
- package/dist/components/Content/Schema/helpers/schema-name.js +13 -21
- package/dist/components/Content/Tag/OperationsList.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/OperationsList.vue.js +1 -1
- package/dist/components/Content/Tag/OperationsList.vue2.js +10 -9
- package/dist/components/Content/Tag/OperationsListItem.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/OperationsListItem.vue.js +1 -1
- package/dist/components/Content/Tag/OperationsListItem.vue2.js +29 -28
- package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/TagList.vue.js +35 -34
- package/dist/components/DocumentSelector/DocumentSelector.vue.d.ts.map +1 -1
- package/dist/components/DocumentSelector/DocumentSelector.vue.js +21 -28
- package/dist/components/GettingStarted.vue.d.ts.map +1 -1
- package/dist/components/GettingStarted.vue.js +3 -3
- package/dist/components/GettingStarted.vue2.js +23 -23
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts +1 -20
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue.js +12 -13
- package/dist/components/Section/CompactSection.vue.js +2 -2
- package/dist/components/Section/CompactSection.vue2.js +6 -6
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.js +2 -2
- package/dist/components/Sidebar/Sidebar.vue2.js +1 -1
- package/dist/components/Sidebar/SidebarElement.vue.js +1 -1
- package/dist/components/Sidebar/SidebarElement.vue2.js +5 -5
- package/dist/esm.d.ts.map +1 -1
- package/dist/features/DocumentSource/hooks/useDocumentFetcher.js +1 -1
- package/dist/features/DocumentSource/hooks/useDocumentSource.d.ts +1 -1
- package/dist/features/DocumentSource/hooks/useDocumentSource.d.ts.map +1 -1
- package/dist/features/DocumentSource/hooks/useDocumentSource.js +11 -11
- package/dist/features/DownloadLink/DownloadLink.vue.d.ts.map +1 -1
- package/dist/features/DownloadLink/DownloadLink.vue.js +2 -2
- package/dist/features/DownloadLink/DownloadLink.vue2.js +21 -21
- package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue.js +1 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue2.js +1 -1
- package/dist/features/Search/SearchButton.vue.d.ts.map +1 -1
- package/dist/features/Search/SearchButton.vue.js +2 -2
- package/dist/features/Search/SearchButton.vue2.js +16 -16
- package/dist/features/Search/SearchModal.vue.d.ts.map +1 -1
- package/dist/features/Search/SearchModal.vue.js +2 -2
- package/dist/features/Search/SearchModal.vue2.js +1 -1
- package/dist/features/Search/useSearchIndex.d.ts.map +1 -1
- package/dist/features/Search/useSearchIndex.js +29 -28
- package/dist/features/sidebar/helpers/create-sidebar.d.ts +26 -0
- package/dist/features/sidebar/helpers/create-sidebar.d.ts.map +1 -0
- package/dist/features/sidebar/hooks/useSidebar.d.ts +23 -0
- package/dist/features/sidebar/hooks/useSidebar.d.ts.map +1 -0
- package/dist/features/sidebar/index.d.ts +2 -0
- package/dist/features/sidebar/index.d.ts.map +1 -0
- package/dist/features/traverse-schema/helpers/get-tag.d.ts +4 -0
- package/dist/features/traverse-schema/helpers/get-tag.d.ts.map +1 -0
- package/dist/features/traverse-schema/helpers/operation-id-params.d.ts +8 -0
- package/dist/features/traverse-schema/helpers/operation-id-params.d.ts.map +1 -0
- package/dist/features/traverse-schema/helpers/operation-id-params.js +8 -0
- package/dist/features/traverse-schema/helpers/traverse-description.d.ts +9 -0
- package/dist/features/traverse-schema/helpers/traverse-description.d.ts.map +1 -0
- package/dist/features/traverse-schema/helpers/traverse-document.d.ts +16 -0
- package/dist/features/traverse-schema/helpers/traverse-document.d.ts.map +1 -0
- package/dist/features/traverse-schema/helpers/traverse-paths.d.ts +11 -0
- package/dist/features/traverse-schema/helpers/traverse-paths.d.ts.map +1 -0
- package/dist/features/traverse-schema/helpers/traverse-schemas.d.ts +6 -0
- package/dist/features/traverse-schema/helpers/traverse-schemas.d.ts.map +1 -0
- package/dist/features/traverse-schema/helpers/traverse-tags.d.ts +9 -0
- package/dist/features/traverse-schema/helpers/traverse-tags.d.ts.map +1 -0
- package/dist/features/traverse-schema/helpers/traverse-webhooks.d.ts +6 -0
- package/dist/features/traverse-schema/helpers/traverse-webhooks.d.ts.map +1 -0
- package/dist/features/traverse-schema/index.d.ts +4 -0
- package/dist/features/traverse-schema/index.d.ts.map +1 -0
- package/dist/features/traverse-schema/types.d.ts +51 -0
- package/dist/features/traverse-schema/types.d.ts.map +1 -0
- package/dist/helpers/parse.d.ts.map +1 -1
- package/dist/helpers/parse.js +16 -16
- package/dist/hooks/useNavState.d.ts +9 -4
- package/dist/hooks/useNavState.d.ts.map +1 -1
- package/dist/hooks/useNavState.js +31 -29
- package/dist/hooks/useSidebar.d.ts.map +1 -1
- package/dist/hooks/useSidebar.js +69 -68
- package/dist/index.d.ts +0 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +37 -44
- package/dist/legacy/fixtures/httpRequestMethods.js +2 -6
- package/dist/libs/openapi.js +32 -32
- package/dist/stores/useHttpClientStore.js +9 -8
- package/dist/style.css +1 -1
- package/dist/types.d.ts +0 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.d.ts +40 -0
- package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -0
- package/dist/v2/ApiReferenceWorkspace.vue.js +65 -0
- package/dist/v2/ApiReferenceWorkspace.vue3.js +5 -0
- package/dist/v2/events/definitions.d.ts +35 -0
- package/dist/v2/events/definitions.d.ts.map +1 -0
- package/dist/v2/events/index.d.ts +3 -0
- package/dist/v2/events/index.d.ts.map +1 -0
- package/dist/v2/events/listeners.d.ts +8 -0
- package/dist/v2/events/listeners.d.ts.map +1 -0
- package/dist/v2/events/listeners.js +15 -0
- package/dist/v2/styles.d.ts +2 -0
- package/dist/v2/styles.d.ts.map +1 -0
- package/package.json +13 -11
- package/dist/components/HttpMethod/constants.d.ts +0 -9
- package/dist/components/HttpMethod/constants.d.ts.map +0 -1
- package/dist/components/HttpMethod/constants.js +0 -36
- package/dist/components/HttpMethod/utils/isRequestMethod.d.ts +0 -4
- package/dist/components/HttpMethod/utils/isRequestMethod.d.ts.map +0 -1
- package/dist/components/HttpMethod/utils/isRequestMethod.js +0 -7
- package/dist/components/Layouts/ClassicLayout.vue.d.ts +0 -23
- package/dist/components/Layouts/ClassicLayout.vue.d.ts.map +0 -1
- package/dist/components/Layouts/ClassicLayout.vue.js +0 -67
- package/dist/components/Layouts/ClassicLayout.vue2.js +0 -4
- package/dist/components/Layouts/Layouts.vue.d.ts +0 -26
- package/dist/components/Layouts/Layouts.vue.d.ts.map +0 -1
- package/dist/components/Layouts/Layouts.vue.js +0 -35
- package/dist/components/Layouts/Layouts.vue2.js +0 -4
- package/dist/components/Layouts/ModernLayout.vue.d.ts +0 -23
- package/dist/components/Layouts/ModernLayout.vue.d.ts.map +0 -1
- package/dist/components/Layouts/ModernLayout.vue.js +0 -8
- package/dist/components/Layouts/ModernLayout.vue2.js +0 -102
- package/dist/components/Layouts/index.d.ts +0 -2
- package/dist/components/Layouts/index.d.ts.map +0 -1
- package/dist/components/SingleApiReference.vue.d.ts +0 -29
- package/dist/components/SingleApiReference.vue.d.ts.map +0 -1
- package/dist/components/SingleApiReference.vue.js +0 -57
- package/dist/components/SingleApiReference.vue3.js +0 -5
- package/dist/helpers/freeze-element.d.ts +0 -11
- package/dist/helpers/freeze-element.d.ts.map +0 -1
- package/dist/helpers/freeze-element.js +0 -20
- package/dist/helpers/is-mac-os.d.ts +0 -5
- package/dist/helpers/is-mac-os.d.ts.map +0 -1
- package/dist/helpers/is-mac-os.js +0 -4
- package/dist/helpers/measure.d.ts +0 -21
- package/dist/helpers/measure.d.ts.map +0 -1
- package/dist/helpers/measure.js +0 -7
- package/dist/helpers/scroll-to-id.d.ts +0 -7
- package/dist/helpers/scroll-to-id.d.ts.map +0 -1
- package/dist/helpers/scroll-to-id.js +0 -21
- package/dist/helpers/sleep.d.ts +0 -6
- package/dist/helpers/sleep.d.ts.map +0 -1
- package/dist/helpers/sleep.js +0 -4
- package/dist/legacy/helpers/index.d.ts +0 -2
- package/dist/legacy/helpers/index.d.ts.map +0 -1
- package/dist/legacy/helpers/normalizeRequestMethod.d.ts +0 -6
- package/dist/legacy/helpers/normalizeRequestMethod.d.ts.map +0 -1
- package/dist/legacy/helpers/normalizeRequestMethod.js +0 -10
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as E, ref as v, watch as H, onMounted as K, withDirectives as M, createElementBlock as f, openBlock as l, normalizeClass as j, createBlock as m, createCommentVNode as b, Fragment as h, renderList as k, unref as r, withCtx as c, createVNode as S, createTextVNode as A, toDisplayString as F, vShow as P } from "vue";
|
|
2
|
+
import { scrollToId as C } from "@scalar/helpers/dom/scroll-to-id";
|
|
2
3
|
import { lazyBus as q } from "./lazyBus.js";
|
|
3
|
-
import { scrollToId as C } from "../../../helpers/scroll-to-id.js";
|
|
4
4
|
import { useNavState as G } from "../../../hooks/useNavState.js";
|
|
5
5
|
import { getModels as y } from "../../../libs/openapi.js";
|
|
6
6
|
import J from "../Tag/TagSection.vue.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaComposition.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaComposition.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SchemaComposition.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaComposition.vue"],"names":[],"mappings":"AAyRA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAEjE,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,8BAA8B,CAAA;AAKrC,KAAK,WAAW,GAAG;IACjB,WAAW,EAAE,kBAAkB,CAAA;IAC/B,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AAoUF,wBAOG"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarListbox as
|
|
3
|
-
import { ScalarIconCaretDown as
|
|
4
|
-
import { mergeAllOfSchemas as
|
|
5
|
-
import {
|
|
6
|
-
import { hasComposition as
|
|
7
|
-
import
|
|
1
|
+
import { defineComponent as F, ref as M, computed as s, resolveComponent as T, createElementBlock as c, openBlock as r, createCommentVNode as u, createBlock as p, Fragment as N, renderList as j, createVNode as y, createElementVNode as f, unref as v, withCtx as R, toDisplayString as V } from "vue";
|
|
2
|
+
import { ScalarListbox as Z, ScalarMarkdown as $ } from "@scalar/components";
|
|
3
|
+
import { ScalarIconCaretDown as G } from "@scalar/icons";
|
|
4
|
+
import { mergeAllOfSchemas as w } from "./helpers/merge-all-of-schemas.js";
|
|
5
|
+
import { getModelNameFromSchema as J } from "./helpers/schema-name.js";
|
|
6
|
+
import { hasComposition as b } from "./helpers/schema-composition.js";
|
|
7
|
+
import g from "./Schema.vue.js";
|
|
8
8
|
const K = { class: "property-rule" }, P = {
|
|
9
9
|
class: "composition-selector bg-b-1.5 hover:bg-b-2 flex w-full cursor-pointer items-center gap-1 rounded-t-lg border border-b-0 px-2 py-1.25 pr-3 text-left",
|
|
10
10
|
type: "button"
|
|
11
|
-
}, Q = { class: "text-c-2" }, X = { class: "composition-selector-label text-c-1
|
|
11
|
+
}, Q = { class: "text-c-2" }, X = { class: "composition-selector-label text-c-1" }, Y = { class: "composition-panel" }, W = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "property-description border-x border-t p-2"
|
|
14
|
-
}, te = /* @__PURE__ */
|
|
14
|
+
}, te = /* @__PURE__ */ F({
|
|
15
15
|
__name: "SchemaComposition",
|
|
16
16
|
props: {
|
|
17
17
|
composition: {},
|
|
@@ -22,116 +22,96 @@ const K = { class: "property-rule" }, P = {
|
|
|
22
22
|
compact: { type: Boolean },
|
|
23
23
|
hideHeading: { type: Boolean }
|
|
24
24
|
},
|
|
25
|
-
setup(
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
n.schemas
|
|
30
|
-
)), C = r(
|
|
25
|
+
setup(a) {
|
|
26
|
+
const d = M(0);
|
|
27
|
+
s(() => a.value[a.composition] || []);
|
|
28
|
+
const B = s(() => k.value), C = s(
|
|
31
29
|
() => B.value.map(
|
|
32
|
-
(e,
|
|
33
|
-
id: String(
|
|
34
|
-
label: J(e,
|
|
30
|
+
(e, o) => ({
|
|
31
|
+
id: String(o),
|
|
32
|
+
label: J(e, a.schemas) || "Schema"
|
|
35
33
|
})
|
|
36
34
|
)
|
|
37
|
-
), O =
|
|
35
|
+
), O = s({
|
|
38
36
|
get: () => C.value.find(
|
|
39
|
-
(e) => e.id === String(
|
|
37
|
+
(e) => e.id === String(d.value)
|
|
40
38
|
),
|
|
41
|
-
set: (e) =>
|
|
42
|
-
}),
|
|
43
|
-
var
|
|
44
|
-
const e = ["oneOf", "anyOf"].includes(
|
|
45
|
-
return e ||
|
|
46
|
-
}),
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
const e =
|
|
50
|
-
return
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
return o && s ? {
|
|
54
|
-
...o,
|
|
55
|
-
properties: {
|
|
56
|
-
...o.properties,
|
|
57
|
-
...s.properties
|
|
58
|
-
},
|
|
59
|
-
required: [
|
|
60
|
-
...o.required || [],
|
|
61
|
-
...s.required || []
|
|
62
|
-
],
|
|
63
|
-
oneOf: s.oneOf,
|
|
64
|
-
anyOf: s.anyOf
|
|
65
|
-
} : o || l;
|
|
66
|
-
}
|
|
67
|
-
return l;
|
|
68
|
-
});
|
|
69
|
-
}), D = (e) => {
|
|
70
|
-
var a, l;
|
|
39
|
+
set: (e) => d.value = Number(e.id)
|
|
40
|
+
}), D = s(() => {
|
|
41
|
+
var i;
|
|
42
|
+
const e = ["oneOf", "anyOf"].includes(a.composition), o = a.composition === "allOf" && ((i = a.value[a.composition]) == null ? void 0 : i.some((l) => b(l)));
|
|
43
|
+
return e || o;
|
|
44
|
+
}), I = (e) => e.find((o) => b(o)), L = (e) => !e.allOf || !Array.isArray(e.allOf) ? !1 : e.allOf.some(
|
|
45
|
+
(o) => o.oneOf || o.anyOf || o.allOf
|
|
46
|
+
), S = (e) => e.allOf && Array.isArray(e.allOf) ? L(e) ? e : w(e.allOf) : e, k = s(() => {
|
|
47
|
+
const e = a.value[a.composition], o = I(e);
|
|
48
|
+
return !o || a.composition !== "allOf" && o.allOf ? e.map(S) : (o.oneOf || o.anyOf || o.allOf).map(S);
|
|
49
|
+
}), U = (e) => {
|
|
50
|
+
var o, i;
|
|
71
51
|
if (e === "allOf") {
|
|
72
|
-
const
|
|
73
|
-
(
|
|
52
|
+
const l = (i = (o = a.value) == null ? void 0 : o[e]) == null ? void 0 : i.find(
|
|
53
|
+
(m) => b(m)
|
|
74
54
|
);
|
|
75
|
-
if (
|
|
55
|
+
if (l != null && l.oneOf)
|
|
76
56
|
return "One of";
|
|
77
|
-
if (
|
|
57
|
+
if (l != null && l.anyOf)
|
|
78
58
|
return "Any of";
|
|
79
59
|
}
|
|
80
|
-
return e.replace(/([A-Z])/g, " $1").replace(/^./, (
|
|
81
|
-
},
|
|
82
|
-
() =>
|
|
83
|
-
),
|
|
60
|
+
return e.replace(/([A-Z])/g, " $1").replace(/^./, (l) => l.toUpperCase()).toLowerCase().replace(/^(\w)/, (l) => l.toUpperCase());
|
|
61
|
+
}, t = s(
|
|
62
|
+
() => k.value[d.value]
|
|
63
|
+
), h = s(() => {
|
|
84
64
|
var e;
|
|
85
|
-
return (e =
|
|
86
|
-
}),
|
|
87
|
-
var
|
|
88
|
-
const e =
|
|
89
|
-
return (
|
|
90
|
-
}),
|
|
91
|
-
const e =
|
|
65
|
+
return (e = t.value) != null && e.oneOf ? "oneOf" : "anyOf";
|
|
66
|
+
}), q = s(() => {
|
|
67
|
+
var o;
|
|
68
|
+
const e = h.value;
|
|
69
|
+
return (o = t.value) == null ? void 0 : o[e];
|
|
70
|
+
}), z = s(() => {
|
|
71
|
+
const e = t.value;
|
|
92
72
|
return e ? !!(e.properties || e.type || e.nullable || e.const !== void 0 || e.enum || e.allOf || e.oneOf || e.anyOf || e.items) : !1;
|
|
93
73
|
});
|
|
94
|
-
return (e,
|
|
95
|
-
var
|
|
96
|
-
const
|
|
97
|
-
return
|
|
98
|
-
e.composition === "allOf" && e.value[e.composition].some((
|
|
99
|
-
(
|
|
100
|
-
), (
|
|
101
|
-
key:
|
|
74
|
+
return (e, o) => {
|
|
75
|
+
var l, m, A, H;
|
|
76
|
+
const i = T("SchemaComposition", !0);
|
|
77
|
+
return r(), c("div", K, [
|
|
78
|
+
e.composition === "allOf" && e.value[e.composition].some((n) => n.oneOf || n.anyOf) ? (r(!0), c(N, { key: 0 }, j(e.value[e.composition].filter(
|
|
79
|
+
(n) => !n.oneOf && !n.anyOf
|
|
80
|
+
), (n, E) => (r(), p(g, {
|
|
81
|
+
key: E,
|
|
102
82
|
compact: e.compact,
|
|
103
83
|
level: e.level,
|
|
104
84
|
name: e.name,
|
|
105
85
|
noncollapsible: e.level == 0,
|
|
106
86
|
schemas: e.schemas,
|
|
107
|
-
value:
|
|
108
|
-
}, null, 8, ["compact", "level", "name", "noncollapsible", "schemas", "value"]))), 128)) :
|
|
109
|
-
|
|
110
|
-
|
|
87
|
+
value: n
|
|
88
|
+
}, null, 8, ["compact", "level", "name", "noncollapsible", "schemas", "value"]))), 128)) : u("", !0),
|
|
89
|
+
D.value ? (r(), c(N, { key: 1 }, [
|
|
90
|
+
y(v(Z), {
|
|
111
91
|
modelValue: O.value,
|
|
112
|
-
"onUpdate:modelValue":
|
|
92
|
+
"onUpdate:modelValue": o[0] || (o[0] = (n) => O.value = n),
|
|
113
93
|
options: C.value,
|
|
114
94
|
resize: ""
|
|
115
95
|
}, {
|
|
116
|
-
default:
|
|
117
|
-
var
|
|
96
|
+
default: R(() => {
|
|
97
|
+
var n;
|
|
118
98
|
return [
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
99
|
+
f("button", P, [
|
|
100
|
+
f("span", Q, V(U(e.composition)), 1),
|
|
101
|
+
f("span", X, V(((n = O.value) == null ? void 0 : n.label) || "Schema"), 1),
|
|
102
|
+
y(v(G))
|
|
123
103
|
])
|
|
124
104
|
];
|
|
125
105
|
}),
|
|
126
106
|
_: 1
|
|
127
107
|
}, 8, ["modelValue", "options"]),
|
|
128
|
-
|
|
129
|
-
(
|
|
130
|
-
|
|
131
|
-
value:
|
|
108
|
+
f("div", Y, [
|
|
109
|
+
(l = t.value) != null && l.description ? (r(), c("div", W, [
|
|
110
|
+
y(v($), {
|
|
111
|
+
value: t.value.description
|
|
132
112
|
}, null, 8, ["value"])
|
|
133
|
-
])) :
|
|
134
|
-
|
|
113
|
+
])) : u("", !0),
|
|
114
|
+
z.value ? (r(), p(g, {
|
|
135
115
|
key: 1,
|
|
136
116
|
compact: e.compact,
|
|
137
117
|
level: e.level + 1,
|
|
@@ -139,34 +119,34 @@ const K = { class: "property-rule" }, P = {
|
|
|
139
119
|
name: e.name,
|
|
140
120
|
noncollapsible: !0,
|
|
141
121
|
schemas: e.schemas,
|
|
142
|
-
value: (
|
|
122
|
+
value: (m = t.value) != null && m.properties ? {
|
|
143
123
|
type: "object",
|
|
144
|
-
properties:
|
|
145
|
-
required:
|
|
146
|
-
} :
|
|
147
|
-
}, null, 8, ["compact", "level", "hideHeading", "name", "schemas", "value"])) :
|
|
148
|
-
(
|
|
124
|
+
properties: t.value.properties,
|
|
125
|
+
required: t.value.required
|
|
126
|
+
} : t.value
|
|
127
|
+
}, null, 8, ["compact", "level", "hideHeading", "name", "schemas", "value"])) : u("", !0),
|
|
128
|
+
(A = t.value) != null && A.oneOf || (H = t.value) != null && H.anyOf ? (r(), p(i, {
|
|
149
129
|
key: 2,
|
|
150
130
|
compact: e.compact,
|
|
151
|
-
composition:
|
|
131
|
+
composition: h.value,
|
|
152
132
|
hideHeading: e.hideHeading,
|
|
153
133
|
level: e.level + 1,
|
|
154
134
|
name: e.name,
|
|
155
135
|
noncollapsible: !0,
|
|
156
136
|
schemas: e.schemas,
|
|
157
137
|
value: {
|
|
158
|
-
[
|
|
138
|
+
[h.value]: q.value
|
|
159
139
|
}
|
|
160
|
-
}, null, 8, ["compact", "composition", "hideHeading", "level", "name", "schemas", "value"])) :
|
|
140
|
+
}, null, 8, ["compact", "composition", "hideHeading", "level", "name", "schemas", "value"])) : u("", !0)
|
|
161
141
|
])
|
|
162
|
-
], 64)) : (
|
|
142
|
+
], 64)) : (r(), p(g, {
|
|
163
143
|
key: 2,
|
|
164
144
|
compact: e.compact,
|
|
165
145
|
level: e.level,
|
|
166
146
|
name: e.name,
|
|
167
147
|
noncollapsible: e.level == 0,
|
|
168
148
|
schemas: e.schemas,
|
|
169
|
-
value:
|
|
149
|
+
value: v(w)(e.value[e.composition])
|
|
170
150
|
}, null, 8, ["compact", "level", "name", "noncollapsible", "schemas", "value"]))
|
|
171
151
|
]);
|
|
172
152
|
};
|
|
@@ -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":"AAmnBA,OAAO,EAAoB,KAAK,SAAS,EAAE,MAAM,KAAK,CAAA;AAOtD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAUjE;;;;;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;;AA2mB1B,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
|
|
4
|
+
const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-cd0cb087"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|