@scalar/api-reference 1.29.2 → 1.29.3
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 +13 -0
- package/dist/browser/standalone.js +2239 -2234
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/Content/Introduction/Introduction.vue.js +2 -2
- package/dist/components/Content/Introduction/Introduction.vue2.js +1 -1
- package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaComposition.vue.js +62 -60
- 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 +40 -39
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +2 -2
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +167 -152
- package/dist/index.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +5 -5
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Introduction.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-b6809143"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
_ as default
|
|
7
7
|
};
|
|
@@ -81,11 +81,11 @@ const M = { class: "flex gap-1" }, R = { class: "sticky-cards" }, ne = /* @__PUR
|
|
|
81
81
|
]),
|
|
82
82
|
_: 1
|
|
83
83
|
}, 8, ["loading"]),
|
|
84
|
-
i(B, { filename: $.value }, null, 8, ["filename"]),
|
|
85
84
|
i(o(G), null, {
|
|
86
85
|
default: t(() => [
|
|
87
86
|
i(o(h), null, {
|
|
88
87
|
default: t(() => [
|
|
88
|
+
i(B, { filename: $.value }, null, 8, ["filename"]),
|
|
89
89
|
i(O, {
|
|
90
90
|
value: e.info.description
|
|
91
91
|
}, null, 8, ["value"])
|
|
@@ -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":"AAwRA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAM9E,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,8BAA8B,CAAA;AAKrC,KAAK,WAAW,GAAG;IACjB,WAAW,EAAE,kBAAkB,CAAA;IAC/B,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,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;;AA2UF,wBAOG"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarListbox as
|
|
3
|
-
import { ScalarIconCaretDown as
|
|
4
|
-
import { stringify as
|
|
5
|
-
import { mergeAllOfSchemas as
|
|
1
|
+
import { defineComponent as E, ref as F, computed as m, resolveComponent as I, createElementBlock as u, openBlock as s, createCommentVNode as p, createBlock as f, Fragment as A, renderList as M, createVNode as b, createElementVNode as d, unref as v, withCtx as $, toDisplayString as B } from "vue";
|
|
2
|
+
import { ScalarListbox as Z, ScalarMarkdown as G } from "@scalar/components";
|
|
3
|
+
import { ScalarIconCaretDown as J } from "@scalar/icons";
|
|
4
|
+
import { stringify as T } from "flatted";
|
|
5
|
+
import { mergeAllOfSchemas as K } from "./helpers/merge-all-of-schemas.js";
|
|
6
6
|
import { hasComposition as g } from "./helpers/schema-composition.js";
|
|
7
7
|
import S from "./Schema.vue.js";
|
|
8
|
-
const
|
|
8
|
+
const P = { class: "property-rule" }, Q = {
|
|
9
9
|
class: "composition-selector bg-b-1.5 hover:bg-b-2 py-1.25 flex w-full cursor-pointer items-center gap-1 rounded-t-lg border border-b-0 px-2 pr-3 text-left",
|
|
10
10
|
type: "button"
|
|
11
|
-
},
|
|
11
|
+
}, R = { class: "text-c-2" }, X = { class: "composition-selector-label text-c-1 relative" }, Y = { class: "composition-panel" }, W = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "property-description border-x border-t p-2"
|
|
14
|
-
},
|
|
14
|
+
}, ae = /* @__PURE__ */ E({
|
|
15
15
|
__name: "SchemaComposition",
|
|
16
16
|
props: {
|
|
17
17
|
composition: {},
|
|
@@ -23,21 +23,21 @@ const G = { class: "property-rule" }, J = {
|
|
|
23
23
|
hideHeading: { type: Boolean }
|
|
24
24
|
},
|
|
25
25
|
setup(l) {
|
|
26
|
-
const y =
|
|
27
|
-
() =>
|
|
26
|
+
const y = F(0), C = m(
|
|
27
|
+
() => N.value.map((e, o) => ({
|
|
28
28
|
id: String(o),
|
|
29
|
-
label:
|
|
29
|
+
label: z(e) || "Schema"
|
|
30
30
|
}))
|
|
31
31
|
), O = m({
|
|
32
32
|
get: () => C.value.find(
|
|
33
33
|
(e) => e.id === String(y.value)
|
|
34
34
|
),
|
|
35
35
|
set: (e) => y.value = Number(e.id)
|
|
36
|
-
}),
|
|
36
|
+
}), q = m(() => {
|
|
37
37
|
var t;
|
|
38
38
|
const e = ["oneOf", "anyOf"].includes(l.composition), o = l.composition === "allOf" && ((t = l.value[l.composition]) == null ? void 0 : t.some((n) => g(n)));
|
|
39
39
|
return e || o;
|
|
40
|
-
}),
|
|
40
|
+
}), z = (e) => {
|
|
41
41
|
if (!e)
|
|
42
42
|
return null;
|
|
43
43
|
if (e.title)
|
|
@@ -46,7 +46,7 @@ const G = { class: "property-rule" }, J = {
|
|
|
46
46
|
return e.name;
|
|
47
47
|
if (l.schemas && typeof l.schemas == "object") {
|
|
48
48
|
for (const [o, t] of Object.entries(l.schemas))
|
|
49
|
-
if (
|
|
49
|
+
if (T(t) === T(e))
|
|
50
50
|
return o;
|
|
51
51
|
}
|
|
52
52
|
if (e.type === "array" && e.items)
|
|
@@ -59,32 +59,34 @@ const G = { class: "property-rule" }, J = {
|
|
|
59
59
|
return o[0];
|
|
60
60
|
}
|
|
61
61
|
return null;
|
|
62
|
-
},
|
|
63
|
-
|
|
64
|
-
|
|
62
|
+
}, k = (e) => e.find((o) => g(o)), N = m(() => {
|
|
63
|
+
if (!k(l.value[l.composition]))
|
|
64
|
+
return l.value[l.composition];
|
|
65
|
+
const e = k(l.value[l.composition]);
|
|
66
|
+
return (e.oneOf || e.anyOf).map((t) => {
|
|
65
67
|
if (t.allOf) {
|
|
66
|
-
const n = t.allOf.find((c) => c.title),
|
|
67
|
-
return n &&
|
|
68
|
+
const n = t.allOf.find((c) => c.title), r = t.allOf.find((c) => !c.title);
|
|
69
|
+
return n && r ? {
|
|
68
70
|
...n,
|
|
69
71
|
properties: {
|
|
70
72
|
...n.properties,
|
|
71
|
-
...
|
|
73
|
+
...r.properties
|
|
72
74
|
},
|
|
73
75
|
required: [
|
|
74
76
|
...n.required || [],
|
|
75
|
-
...
|
|
77
|
+
...r.required || []
|
|
76
78
|
],
|
|
77
|
-
oneOf:
|
|
78
|
-
anyOf:
|
|
79
|
+
oneOf: r.oneOf,
|
|
80
|
+
anyOf: r.anyOf
|
|
79
81
|
} : n || t;
|
|
80
82
|
}
|
|
81
83
|
return t;
|
|
82
|
-
})
|
|
83
|
-
}),
|
|
84
|
+
});
|
|
85
|
+
}), L = (e) => {
|
|
84
86
|
var o, t;
|
|
85
87
|
if (e === "allOf") {
|
|
86
88
|
const n = (t = (o = l.value) == null ? void 0 : o[e]) == null ? void 0 : t.find(
|
|
87
|
-
(
|
|
89
|
+
(r) => g(r)
|
|
88
90
|
);
|
|
89
91
|
if (n != null && n.oneOf)
|
|
90
92
|
return "One of";
|
|
@@ -92,57 +94,57 @@ const G = { class: "property-rule" }, J = {
|
|
|
92
94
|
return "Any of";
|
|
93
95
|
}
|
|
94
96
|
return e.replace(/([A-Z])/g, " $1").replace(/^./, (n) => n.toUpperCase()).toLowerCase().replace(/^(\w)/, (n) => n.toUpperCase());
|
|
95
|
-
},
|
|
96
|
-
() =>
|
|
97
|
+
}, a = m(
|
|
98
|
+
() => N.value[y.value]
|
|
97
99
|
), h = m(() => {
|
|
98
100
|
var e;
|
|
99
|
-
return (e =
|
|
100
|
-
}),
|
|
101
|
+
return (e = a.value) != null && e.oneOf ? "oneOf" : "anyOf";
|
|
102
|
+
}), U = m(() => {
|
|
101
103
|
var o;
|
|
102
104
|
const e = h.value;
|
|
103
|
-
return (o =
|
|
105
|
+
return (o = a.value) == null ? void 0 : o[e];
|
|
104
106
|
});
|
|
105
107
|
return (e, o) => {
|
|
106
|
-
var n,
|
|
107
|
-
const t =
|
|
108
|
-
return s(), u("div",
|
|
109
|
-
e.composition === "allOf" && e.value[e.composition].some((
|
|
110
|
-
(
|
|
111
|
-
), (
|
|
112
|
-
key:
|
|
108
|
+
var n, r, c, V, H, w, j;
|
|
109
|
+
const t = I("SchemaComposition", !0);
|
|
110
|
+
return s(), u("div", P, [
|
|
111
|
+
e.composition === "allOf" && e.value[e.composition].some((i) => i.oneOf || i.anyOf) ? (s(!0), u(A, { key: 0 }, M(e.value[e.composition].filter(
|
|
112
|
+
(i) => !i.oneOf && !i.anyOf
|
|
113
|
+
), (i, D) => (s(), f(S, {
|
|
114
|
+
key: D,
|
|
113
115
|
compact: e.compact,
|
|
114
116
|
level: e.level,
|
|
115
117
|
name: e.name,
|
|
116
118
|
noncollapsible: e.level == 0,
|
|
117
119
|
schemas: e.schemas,
|
|
118
|
-
value:
|
|
120
|
+
value: i
|
|
119
121
|
}, null, 8, ["compact", "level", "name", "noncollapsible", "schemas", "value"]))), 128)) : p("", !0),
|
|
120
|
-
|
|
121
|
-
b(v(
|
|
122
|
+
q.value ? (s(), u(A, { key: 1 }, [
|
|
123
|
+
b(v(Z), {
|
|
122
124
|
modelValue: O.value,
|
|
123
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
125
|
+
"onUpdate:modelValue": o[0] || (o[0] = (i) => O.value = i),
|
|
124
126
|
options: C.value,
|
|
125
127
|
resize: ""
|
|
126
128
|
}, {
|
|
127
|
-
default:
|
|
128
|
-
var
|
|
129
|
+
default: $(() => {
|
|
130
|
+
var i;
|
|
129
131
|
return [
|
|
130
|
-
d("button",
|
|
131
|
-
d("span",
|
|
132
|
-
d("span",
|
|
133
|
-
b(v(
|
|
132
|
+
d("button", Q, [
|
|
133
|
+
d("span", R, B(L(e.composition)), 1),
|
|
134
|
+
d("span", X, B(((i = O.value) == null ? void 0 : i.label) || "Schema"), 1),
|
|
135
|
+
b(v(J), { class: "z-1" })
|
|
134
136
|
])
|
|
135
137
|
];
|
|
136
138
|
}),
|
|
137
139
|
_: 1
|
|
138
140
|
}, 8, ["modelValue", "options"]),
|
|
139
|
-
d("div",
|
|
140
|
-
(n =
|
|
141
|
-
b(v(
|
|
142
|
-
value:
|
|
141
|
+
d("div", Y, [
|
|
142
|
+
(n = a.value) != null && n.description ? (s(), u("div", W, [
|
|
143
|
+
b(v(G), {
|
|
144
|
+
value: a.value.description
|
|
143
145
|
}, null, 8, ["value"])
|
|
144
146
|
])) : p("", !0),
|
|
145
|
-
(
|
|
147
|
+
(r = a.value) != null && r.properties || (c = a.value) != null && c.type || (V = a.value) != null && V.nullable ? (s(), f(S, {
|
|
146
148
|
key: 1,
|
|
147
149
|
compact: e.compact,
|
|
148
150
|
level: e.level + 1,
|
|
@@ -150,12 +152,12 @@ const G = { class: "property-rule" }, J = {
|
|
|
150
152
|
name: e.name,
|
|
151
153
|
noncollapsible: !0,
|
|
152
154
|
schemas: e.schemas,
|
|
153
|
-
value: {
|
|
155
|
+
value: (H = a.value) != null && H.properties ? {
|
|
154
156
|
type: "object",
|
|
155
|
-
properties:
|
|
156
|
-
}
|
|
157
|
+
properties: a.value.properties
|
|
158
|
+
} : a.value
|
|
157
159
|
}, null, 8, ["compact", "level", "hideHeading", "name", "schemas", "value"])) : p("", !0),
|
|
158
|
-
(
|
|
160
|
+
(w = a.value) != null && w.oneOf || (j = a.value) != null && j.anyOf ? (s(), f(t, {
|
|
159
161
|
key: 2,
|
|
160
162
|
compact: e.compact,
|
|
161
163
|
composition: h.value,
|
|
@@ -165,7 +167,7 @@ const G = { class: "property-rule" }, J = {
|
|
|
165
167
|
noncollapsible: !0,
|
|
166
168
|
schemas: e.schemas,
|
|
167
169
|
value: {
|
|
168
|
-
[h.value]:
|
|
170
|
+
[h.value]: U.value
|
|
169
171
|
}
|
|
170
172
|
}, null, 8, ["compact", "composition", "hideHeading", "level", "name", "schemas", "value"])) : p("", !0)
|
|
171
173
|
])
|
|
@@ -176,12 +178,12 @@ const G = { class: "property-rule" }, J = {
|
|
|
176
178
|
name: e.name,
|
|
177
179
|
noncollapsible: e.level == 0,
|
|
178
180
|
schemas: e.schemas,
|
|
179
|
-
value: v(
|
|
181
|
+
value: v(K)(e.value[e.composition])
|
|
180
182
|
}, null, 8, ["compact", "level", "name", "noncollapsible", "schemas", "value"]))
|
|
181
183
|
]);
|
|
182
184
|
};
|
|
183
185
|
}
|
|
184
186
|
});
|
|
185
187
|
export {
|
|
186
|
-
|
|
188
|
+
ae as default
|
|
187
189
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaProperty.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaProperty.vue"],"names":[],"mappings":"AA+gBA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAC9E,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,KAAK,CAAA;AAc9C;;;;;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,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;;
|
|
1
|
+
{"version":3,"file":"SchemaProperty.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaProperty.vue"],"names":[],"mappings":"AA+gBA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAC9E,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,KAAK,CAAA;AAc9C;;;;;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,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;;AAmd1B,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
|
|
4
|
+
const a = /* @__PURE__ */ r(o, [["__scopeId", "data-v-689c7117"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as Z, computed as y, createBlock as h, openBlock as l, resolveDynamicComponent as M, normalizeClass as
|
|
1
|
+
import { defineComponent as Z, computed as y, createBlock as h, openBlock as l, resolveDynamicComponent as M, normalizeClass as I, withCtx as m, createCommentVNode as r, createElementBlock as o, createVNode as a, createSlots as G, createTextVNode as D, toDisplayString as c, unref as i, Fragment as d, renderList as k, createElementVNode as f } from "vue";
|
|
2
2
|
import { Disclosure as J, DisclosurePanel as K, DisclosureButton as Q } from "@headlessui/vue";
|
|
3
3
|
import { ScalarMarkdown as H, ScalarIcon as W } from "@scalar/components";
|
|
4
4
|
import { optimizeValueForDisplay as X, compositions as Y } from "./helpers/optimizeValueForDisplay.js";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
5
|
+
import L from "./Schema.vue.js";
|
|
6
|
+
import O from "./SchemaComposition.vue.js";
|
|
7
7
|
import x from "./SchemaPropertyHeading.vue.js";
|
|
8
8
|
import ee from "../../SpecificationExtension/SpecificationExtension.vue.js";
|
|
9
9
|
const ne = {
|
|
@@ -15,10 +15,10 @@ const ne = {
|
|
|
15
15
|
}, le = {
|
|
16
16
|
key: 3,
|
|
17
17
|
class: "property-enum"
|
|
18
|
-
},
|
|
18
|
+
}, se = {
|
|
19
19
|
key: 0,
|
|
20
20
|
class: "property-list"
|
|
21
|
-
},
|
|
21
|
+
}, oe = { class: "property-heading" }, ae = { class: "property-name" }, ie = { class: "property-description" }, re = {
|
|
22
22
|
key: 1,
|
|
23
23
|
class: "property-enum-values"
|
|
24
24
|
}, pe = { class: "property-enum-value-label" }, me = { class: "property-enum-value-label" }, ce = {
|
|
@@ -44,8 +44,8 @@ const ne = {
|
|
|
44
44
|
schemas: {},
|
|
45
45
|
hideHeading: { type: Boolean }
|
|
46
46
|
},
|
|
47
|
-
setup(
|
|
48
|
-
const $ =
|
|
47
|
+
setup(_) {
|
|
48
|
+
const $ = _, S = {
|
|
49
49
|
integer: {
|
|
50
50
|
_default: "Integer numbers.",
|
|
51
51
|
int32: "Signed 32-bit integers (commonly used integer type).",
|
|
@@ -71,7 +71,7 @@ const ne = {
|
|
|
71
71
|
return (e, t) => {
|
|
72
72
|
var g;
|
|
73
73
|
return l(), h(M(e.is ?? "li"), {
|
|
74
|
-
class:
|
|
74
|
+
class: I(["property", [
|
|
75
75
|
(B(e.description, n.value), ""),
|
|
76
76
|
`property--level-${e.level}`,
|
|
77
77
|
{
|
|
@@ -113,42 +113,42 @@ const ne = {
|
|
|
113
113
|
key: "1"
|
|
114
114
|
} : void 0
|
|
115
115
|
]), 1032, ["additional", "enum", "pattern", "required", "value", "schemas"])) : r("", !0),
|
|
116
|
-
B(e.description, n.value) ? (l(),
|
|
116
|
+
B(e.description, n.value) ? (l(), o("div", ne, [
|
|
117
117
|
a(i(H), {
|
|
118
118
|
value: B(e.description, n.value)
|
|
119
119
|
}, null, 8, ["value"])
|
|
120
|
-
])) : E(n.value) ? (l(),
|
|
120
|
+
])) : E(n.value) ? (l(), o("div", te, [
|
|
121
121
|
a(i(H), {
|
|
122
122
|
value: E(n.value) || ""
|
|
123
123
|
}, null, 8, ["value"])
|
|
124
124
|
])) : r("", !0),
|
|
125
|
-
((v = p(n.value)) == null ? void 0 : v.length) > 0 ? (l(),
|
|
126
|
-
Array.isArray((w = n.value) == null ? void 0 : w["x-enumDescriptions"]) ? (l(),
|
|
127
|
-
(l(!0),
|
|
128
|
-
key:
|
|
125
|
+
((v = p(n.value)) == null ? void 0 : v.length) > 0 ? (l(), o("div", le, [
|
|
126
|
+
Array.isArray((w = n.value) == null ? void 0 : w["x-enumDescriptions"]) ? (l(), o("div", se, [
|
|
127
|
+
(l(!0), o(d, null, k(p(n.value), (s) => (l(), o("div", {
|
|
128
|
+
key: s,
|
|
129
129
|
class: "property"
|
|
130
130
|
}, [
|
|
131
|
-
f("div",
|
|
132
|
-
f("div", ae, c(
|
|
131
|
+
f("div", oe, [
|
|
132
|
+
f("div", ae, c(s), 1)
|
|
133
133
|
]),
|
|
134
134
|
f("div", ie, [
|
|
135
135
|
a(i(H), {
|
|
136
|
-
value: n.value["x-enumDescriptions"][
|
|
136
|
+
value: n.value["x-enumDescriptions"][s]
|
|
137
137
|
}, null, 8, ["value"])
|
|
138
138
|
])
|
|
139
139
|
]))), 128))
|
|
140
|
-
])) : (l(),
|
|
141
|
-
(l(!0),
|
|
142
|
-
key:
|
|
140
|
+
])) : (l(), o("ul", re, [
|
|
141
|
+
(l(!0), o(d, null, k(R.value, (s) => (l(), o("li", {
|
|
142
|
+
key: s,
|
|
143
143
|
class: "property-enum-value"
|
|
144
144
|
}, [
|
|
145
|
-
f("span", pe, c(
|
|
145
|
+
f("span", pe, c(s), 1)
|
|
146
146
|
]))), 128)),
|
|
147
147
|
C.value ? (l(), h(i(J), { key: 0 }, {
|
|
148
|
-
default: m(({ open:
|
|
148
|
+
default: m(({ open: s }) => [
|
|
149
149
|
a(i(K), null, {
|
|
150
150
|
default: m(() => [
|
|
151
|
-
(l(!0),
|
|
151
|
+
(l(!0), o(d, null, k(T.value, (u) => (l(), o("li", {
|
|
152
152
|
key: u,
|
|
153
153
|
class: "property-enum-value"
|
|
154
154
|
}, [
|
|
@@ -160,11 +160,11 @@ const ne = {
|
|
|
160
160
|
a(i(Q), { class: "enum-toggle-button" }, {
|
|
161
161
|
default: m(() => [
|
|
162
162
|
a(i(W), {
|
|
163
|
-
class:
|
|
163
|
+
class: I(["enum-toggle-button-icon", { "enum-toggle-button-icon--open": s }]),
|
|
164
164
|
icon: "Add",
|
|
165
165
|
size: "sm"
|
|
166
166
|
}, null, 8, ["class"]),
|
|
167
|
-
D(" " + c(
|
|
167
|
+
D(" " + c(s ? "Hide values" : "Show all values"), 1)
|
|
168
168
|
]),
|
|
169
169
|
_: 2
|
|
170
170
|
}, 1024)
|
|
@@ -173,8 +173,8 @@ const ne = {
|
|
|
173
173
|
})) : r("", !0)
|
|
174
174
|
]))
|
|
175
175
|
])) : r("", !0),
|
|
176
|
-
((q = n.value) == null ? void 0 : q.type) === "object" && ((F = n.value) != null && F.properties || (N = n.value) != null && N.additionalProperties) ? (l(),
|
|
177
|
-
a(
|
|
176
|
+
((q = n.value) == null ? void 0 : q.type) === "object" && ((F = n.value) != null && F.properties || (N = n.value) != null && N.additionalProperties) ? (l(), o("div", ce, [
|
|
177
|
+
a(L, {
|
|
178
178
|
compact: e.compact,
|
|
179
179
|
level: e.level + 1,
|
|
180
180
|
name: e.name,
|
|
@@ -183,34 +183,35 @@ const ne = {
|
|
|
183
183
|
schemas: e.schemas
|
|
184
184
|
}, null, 8, ["compact", "level", "name", "noncollapsible", "value", "schemas"])
|
|
185
185
|
])) : r("", !0),
|
|
186
|
-
(V = n.value) != null && V.items && typeof n.value.items == "object" && "type" in n.value.items && typeof n.value.items.type == "string" ? (l(),
|
|
187
|
-
["object"].includes((z = (j = n.value) == null ? void 0 : j.items) == null ? void 0 : z.type) ? (l(),
|
|
188
|
-
a(
|
|
186
|
+
(V = n.value) != null && V.items && typeof n.value.items == "object" && "type" in n.value.items && typeof n.value.items.type == "string" ? (l(), o(d, { key: 5 }, [
|
|
187
|
+
["object"].includes((z = (j = n.value) == null ? void 0 : j.items) == null ? void 0 : z.type) ? (l(), o("div", de, [
|
|
188
|
+
a(L, {
|
|
189
189
|
compact: e.compact,
|
|
190
190
|
level: e.level + 1,
|
|
191
191
|
name: e.name,
|
|
192
192
|
noncollapsible: e.noncollapsible,
|
|
193
|
-
value: n.value.items
|
|
194
|
-
|
|
193
|
+
value: n.value.items,
|
|
194
|
+
schemas: e.schemas
|
|
195
|
+
}, null, 8, ["compact", "level", "name", "noncollapsible", "value", "schemas"])
|
|
195
196
|
])) : r("", !0)
|
|
196
197
|
], 64)) : r("", !0),
|
|
197
|
-
(l(!0),
|
|
198
|
-
var u,
|
|
199
|
-
return l(),
|
|
200
|
-
(u = n.value) != null && u[
|
|
198
|
+
(l(!0), o(d, null, k(i(Y), (s) => {
|
|
199
|
+
var u, A;
|
|
200
|
+
return l(), o(d, { key: s }, [
|
|
201
|
+
(u = n.value) != null && u[s] ? (l(), h(O, {
|
|
201
202
|
key: 0,
|
|
202
203
|
compact: e.compact,
|
|
203
|
-
composition:
|
|
204
|
+
composition: s,
|
|
204
205
|
hideHeading: e.hideHeading,
|
|
205
206
|
level: e.level,
|
|
206
207
|
name: e.name,
|
|
207
208
|
noncollapsible: e.noncollapsible,
|
|
208
209
|
schemas: e.schemas,
|
|
209
210
|
value: n.value
|
|
210
|
-
}, null, 8, ["compact", "composition", "hideHeading", "level", "name", "noncollapsible", "schemas", "value"])) : (
|
|
211
|
+
}, null, 8, ["compact", "composition", "hideHeading", "level", "name", "noncollapsible", "schemas", "value"])) : (A = n.value) != null && A.items && typeof s == "string" && typeof n.value.items == "object" && !("type" in n.value.items) && s in n.value.items ? (l(), h(O, {
|
|
211
212
|
key: 1,
|
|
212
213
|
compact: e.compact,
|
|
213
|
-
composition:
|
|
214
|
+
composition: s,
|
|
214
215
|
hideHeading: e.hideHeading,
|
|
215
216
|
level: e.level,
|
|
216
217
|
name: e.name,
|
|
@@ -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":"AA2XA,OAAO,KAAK,EAEV,SAAS,EACT,SAAS,EACT,WAAW,EACZ,MAAM,uBAAuB,CAAA;AAgB9B,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,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;AAkJF,iBAAS,cAAc;WAuUT,OAAO,IAA6B;;sBATxB,GAAG;sBACH,GAAG;;;;EAa5B;AAiBD,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
|
|
4
|
+
const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-2e17f3f8"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|