@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
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { isDefined as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import { getModelName as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
|
|
1
|
+
import { defineComponent as b, computed as C, createElementBlock as i, openBlock as r, createCommentVNode as a, createBlock as n, normalizeClass as A, renderSlot as E, Fragment as f, createTextVNode as l, withCtx as u, createVNode as p, toDisplayString as o, unref as s } from "vue";
|
|
2
|
+
import { isDefined as y } from "@scalar/helpers/array/is-defined";
|
|
3
|
+
import B from "../../ScreenReader.vue.js";
|
|
4
|
+
import { getDiscriminatorSchemaName as F } from "../../../hooks/useDiscriminator.js";
|
|
5
|
+
import { getSchemaType as z } from "./helpers/get-schema-type.js";
|
|
6
|
+
import { getModelName as H } from "./helpers/schema-name.js";
|
|
7
|
+
import J from "./RenderString.vue.js";
|
|
8
|
+
import m from "./SchemaPropertyDetail.vue.js";
|
|
9
|
+
import R from "./SchemaPropertyExamples.vue.js";
|
|
10
|
+
import L from "../../Badge/Badge.vue.js";
|
|
11
|
+
const j = { class: "property-heading" }, G = {
|
|
10
12
|
key: 1,
|
|
11
13
|
class: "property-discriminator"
|
|
12
14
|
}, K = {
|
|
@@ -30,7 +32,7 @@ const R = { class: "property-heading" }, G = {
|
|
|
30
32
|
}, Z = {
|
|
31
33
|
key: 10,
|
|
32
34
|
class: "property-required"
|
|
33
|
-
},
|
|
35
|
+
}, ie = /* @__PURE__ */ b({
|
|
34
36
|
__name: "SchemaPropertyHeading",
|
|
35
37
|
props: {
|
|
36
38
|
value: {},
|
|
@@ -42,237 +44,230 @@ const R = { class: "property-heading" }, G = {
|
|
|
42
44
|
hideModelNames: { type: Boolean, default: !1 },
|
|
43
45
|
schemas: {}
|
|
44
46
|
},
|
|
45
|
-
setup(
|
|
46
|
-
const
|
|
47
|
-
var e, t,
|
|
48
|
-
if (
|
|
49
|
-
return (t =
|
|
50
|
-
if (((
|
|
51
|
-
return
|
|
52
|
-
if ((
|
|
53
|
-
if (
|
|
54
|
-
return
|
|
55
|
-
if (((N =
|
|
56
|
-
return
|
|
47
|
+
setup(d) {
|
|
48
|
+
const T = (e) => (e == null ? void 0 : e.default) === null ? "null" : Array.isArray(e == null ? void 0 : e.default) && e.default.length === 1 ? e.default[0] : typeof (e == null ? void 0 : e.default) == "string" ? JSON.stringify(e.default) : e == null ? void 0 : e.default, S = C(() => {
|
|
49
|
+
var e, t, v, k, g, N;
|
|
50
|
+
if (((e = d.value) == null ? void 0 : e.const) !== void 0)
|
|
51
|
+
return (t = d.value) == null ? void 0 : t.const;
|
|
52
|
+
if (((k = (v = d.value) == null ? void 0 : v.enum) == null ? void 0 : k.length) === 1)
|
|
53
|
+
return d.value.enum[0];
|
|
54
|
+
if ((g = d.value) != null && g.items) {
|
|
55
|
+
if (y(d.value.items.const))
|
|
56
|
+
return d.value.items.const;
|
|
57
|
+
if (((N = d.value.items.enum) == null ? void 0 : N.length) === 1)
|
|
58
|
+
return d.value.items.enum[0];
|
|
57
59
|
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
r.value,
|
|
64
|
-
r.schemas,
|
|
65
|
-
r.hideModelNames,
|
|
66
|
-
H
|
|
60
|
+
}), D = C(() => d.value ? H(
|
|
61
|
+
d.value,
|
|
62
|
+
d.schemas,
|
|
63
|
+
d.hideModelNames,
|
|
64
|
+
F
|
|
67
65
|
) : null);
|
|
68
66
|
return (e, t) => {
|
|
69
|
-
var
|
|
70
|
-
return
|
|
71
|
-
e.$slots.name ? (
|
|
67
|
+
var v, k, g, N, M, q, w, P, I, O, V, $;
|
|
68
|
+
return r(), i("div", j, [
|
|
69
|
+
e.$slots.name ? (r(), i("div", {
|
|
72
70
|
key: 0,
|
|
73
|
-
class:
|
|
71
|
+
class: A(["property-name", { deprecated: (v = e.value) == null ? void 0 : v.deprecated }])
|
|
74
72
|
}, [
|
|
75
|
-
e.pattern ? (
|
|
73
|
+
e.pattern ? (r(), i(f, { key: 1 }, [
|
|
76
74
|
t[0] || (t[0] = l("/")),
|
|
77
|
-
|
|
75
|
+
E(e.$slots, "name", {}, void 0, !0),
|
|
78
76
|
t[1] || (t[1] = l("/"))
|
|
79
|
-
], 64)) :
|
|
80
|
-
], 2)) :
|
|
81
|
-
(
|
|
82
|
-
e.value ? (
|
|
83
|
-
(
|
|
84
|
-
default:
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
], 64))
|
|
98
|
-
];
|
|
99
|
-
}),
|
|
77
|
+
], 64)) : E(e.$slots, "name", { key: 0 }, void 0, !0)
|
|
78
|
+
], 2)) : a("", !0),
|
|
79
|
+
(k = e.value) != null && k.isDiscriminator ? (r(), i("div", G, " Discriminator ")) : a("", !0),
|
|
80
|
+
e.value ? (r(), i(f, { key: 2 }, [
|
|
81
|
+
(g = e.value) != null && g.type ? (r(), n(m, { key: 0 }, {
|
|
82
|
+
default: u(() => [
|
|
83
|
+
p(B, null, {
|
|
84
|
+
default: u(() => t[2] || (t[2] = [
|
|
85
|
+
l("Type: ")
|
|
86
|
+
])),
|
|
87
|
+
_: 1
|
|
88
|
+
}),
|
|
89
|
+
D.value ? (r(), i(f, { key: 0 }, [
|
|
90
|
+
l(o(D.value), 1)
|
|
91
|
+
], 64)) : (r(), i(f, { key: 1 }, [
|
|
92
|
+
l(o(s(z)(e.value)), 1)
|
|
93
|
+
], 64))
|
|
94
|
+
]),
|
|
100
95
|
_: 1
|
|
101
|
-
})) :
|
|
102
|
-
e.value.minItems || e.value.maxItems ? (
|
|
103
|
-
default:
|
|
104
|
-
l(
|
|
96
|
+
})) : a("", !0),
|
|
97
|
+
e.value.minItems || e.value.maxItems ? (r(), n(m, { key: 1 }, {
|
|
98
|
+
default: u(() => [
|
|
99
|
+
l(o(e.value.minItems) + "…" + o(e.value.maxItems), 1)
|
|
105
100
|
]),
|
|
106
101
|
_: 1
|
|
107
|
-
})) :
|
|
108
|
-
e.value.minLength ? (
|
|
109
|
-
prefix:
|
|
110
|
-
l("min:")
|
|
102
|
+
})) : a("", !0),
|
|
103
|
+
e.value.minLength ? (r(), n(m, { key: 2 }, {
|
|
104
|
+
prefix: u(() => t[3] || (t[3] = [
|
|
105
|
+
l("min: ")
|
|
111
106
|
])),
|
|
112
|
-
default:
|
|
113
|
-
l(" " +
|
|
107
|
+
default: u(() => [
|
|
108
|
+
l(" " + o(e.value.minLength), 1)
|
|
114
109
|
]),
|
|
115
110
|
_: 1
|
|
116
|
-
})) :
|
|
117
|
-
e.value.maxLength ? (
|
|
118
|
-
prefix:
|
|
119
|
-
l("max:")
|
|
111
|
+
})) : a("", !0),
|
|
112
|
+
e.value.maxLength ? (r(), n(m, { key: 3 }, {
|
|
113
|
+
prefix: u(() => t[4] || (t[4] = [
|
|
114
|
+
l("max: ")
|
|
120
115
|
])),
|
|
121
|
-
default:
|
|
122
|
-
l(" " +
|
|
116
|
+
default: u(() => [
|
|
117
|
+
l(" " + o(e.value.maxLength), 1)
|
|
123
118
|
]),
|
|
124
119
|
_: 1
|
|
125
|
-
})) :
|
|
126
|
-
e.value.uniqueItems ? (
|
|
127
|
-
default:
|
|
120
|
+
})) : a("", !0),
|
|
121
|
+
e.value.uniqueItems ? (r(), n(m, { key: 4 }, {
|
|
122
|
+
default: u(() => t[5] || (t[5] = [
|
|
128
123
|
l(" unique! ")
|
|
129
124
|
])),
|
|
130
125
|
_: 1
|
|
131
|
-
})) :
|
|
132
|
-
e.value.format ? (
|
|
133
|
-
default:
|
|
134
|
-
|
|
135
|
-
default:
|
|
126
|
+
})) : a("", !0),
|
|
127
|
+
e.value.format ? (r(), n(m, { key: 5 }, {
|
|
128
|
+
default: u(() => [
|
|
129
|
+
p(B, null, {
|
|
130
|
+
default: u(() => t[6] || (t[6] = [
|
|
136
131
|
l("Format:")
|
|
137
132
|
])),
|
|
138
133
|
_: 1
|
|
139
134
|
}),
|
|
140
|
-
l(" " +
|
|
135
|
+
l(" " + o(e.value.format), 1)
|
|
141
136
|
]),
|
|
142
137
|
_: 1
|
|
143
|
-
})) :
|
|
144
|
-
|
|
145
|
-
prefix:
|
|
146
|
-
l("greater than:")
|
|
138
|
+
})) : a("", !0),
|
|
139
|
+
s(y)(e.value.exclusiveMinimum) ? (r(), n(m, { key: 6 }, {
|
|
140
|
+
prefix: u(() => t[7] || (t[7] = [
|
|
141
|
+
l("greater than: ")
|
|
147
142
|
])),
|
|
148
|
-
default:
|
|
149
|
-
l(" " +
|
|
143
|
+
default: u(() => [
|
|
144
|
+
l(" " + o(e.value.exclusiveMinimum), 1)
|
|
150
145
|
]),
|
|
151
146
|
_: 1
|
|
152
|
-
})) :
|
|
153
|
-
|
|
154
|
-
prefix:
|
|
155
|
-
l("min:")
|
|
147
|
+
})) : a("", !0),
|
|
148
|
+
s(y)(e.value.minimum) ? (r(), n(m, { key: 7 }, {
|
|
149
|
+
prefix: u(() => t[8] || (t[8] = [
|
|
150
|
+
l("min: ")
|
|
156
151
|
])),
|
|
157
|
-
default:
|
|
158
|
-
l(" " +
|
|
152
|
+
default: u(() => [
|
|
153
|
+
l(" " + o(e.value.minimum), 1)
|
|
159
154
|
]),
|
|
160
155
|
_: 1
|
|
161
|
-
})) :
|
|
162
|
-
|
|
163
|
-
prefix:
|
|
164
|
-
l("less than:")
|
|
156
|
+
})) : a("", !0),
|
|
157
|
+
s(y)(e.value.exclusiveMaximum) ? (r(), n(m, { key: 8 }, {
|
|
158
|
+
prefix: u(() => t[9] || (t[9] = [
|
|
159
|
+
l("less than: ")
|
|
165
160
|
])),
|
|
166
|
-
default:
|
|
167
|
-
l(" " +
|
|
161
|
+
default: u(() => [
|
|
162
|
+
l(" " + o(e.value.exclusiveMaximum), 1)
|
|
168
163
|
]),
|
|
169
164
|
_: 1
|
|
170
|
-
})) :
|
|
171
|
-
|
|
172
|
-
prefix:
|
|
173
|
-
l("max:")
|
|
165
|
+
})) : a("", !0),
|
|
166
|
+
s(y)(e.value.maximum) ? (r(), n(m, { key: 9 }, {
|
|
167
|
+
prefix: u(() => t[10] || (t[10] = [
|
|
168
|
+
l("max: ")
|
|
174
169
|
])),
|
|
175
|
-
default:
|
|
176
|
-
l(" " +
|
|
170
|
+
default: u(() => [
|
|
171
|
+
l(" " + o(e.value.maximum), 1)
|
|
177
172
|
]),
|
|
178
173
|
_: 1
|
|
179
|
-
})) :
|
|
180
|
-
|
|
181
|
-
prefix:
|
|
182
|
-
l("multiple of:")
|
|
174
|
+
})) : a("", !0),
|
|
175
|
+
s(y)(e.value.multipleOf) ? (r(), n(m, { key: 10 }, {
|
|
176
|
+
prefix: u(() => t[11] || (t[11] = [
|
|
177
|
+
l("multiple of: ")
|
|
183
178
|
])),
|
|
184
|
-
default:
|
|
185
|
-
l(" " +
|
|
179
|
+
default: u(() => [
|
|
180
|
+
l(" " + o(e.value.multipleOf), 1)
|
|
186
181
|
]),
|
|
187
182
|
_: 1
|
|
188
|
-
})) :
|
|
189
|
-
e.value.pattern ? (
|
|
183
|
+
})) : a("", !0),
|
|
184
|
+
e.value.pattern ? (r(), n(m, {
|
|
190
185
|
key: 11,
|
|
191
186
|
code: "",
|
|
192
187
|
truncate: ""
|
|
193
188
|
}, {
|
|
194
|
-
default:
|
|
195
|
-
|
|
196
|
-
default:
|
|
189
|
+
default: u(() => [
|
|
190
|
+
p(B, null, {
|
|
191
|
+
default: u(() => t[12] || (t[12] = [
|
|
197
192
|
l("Pattern:")
|
|
198
193
|
])),
|
|
199
194
|
_: 1
|
|
200
195
|
}),
|
|
201
|
-
l(" " +
|
|
196
|
+
l(" " + o(e.value.pattern), 1)
|
|
202
197
|
]),
|
|
203
198
|
_: 1
|
|
204
|
-
})) :
|
|
205
|
-
e.$props.enum ? (
|
|
206
|
-
default:
|
|
199
|
+
})) : a("", !0),
|
|
200
|
+
e.$props.enum ? (r(), n(m, { key: 12 }, {
|
|
201
|
+
default: u(() => t[13] || (t[13] = [
|
|
207
202
|
l("enum")
|
|
208
203
|
])),
|
|
209
204
|
_: 1
|
|
210
|
-
})) :
|
|
211
|
-
e.value.default !== void 0 ? (
|
|
205
|
+
})) : a("", !0),
|
|
206
|
+
e.value.default !== void 0 ? (r(), n(m, {
|
|
212
207
|
key: 13,
|
|
213
208
|
truncate: ""
|
|
214
209
|
}, {
|
|
215
|
-
prefix:
|
|
216
|
-
l("default:")
|
|
210
|
+
prefix: u(() => t[14] || (t[14] = [
|
|
211
|
+
l("default: ")
|
|
217
212
|
])),
|
|
218
|
-
default:
|
|
219
|
-
l(" " +
|
|
213
|
+
default: u(() => [
|
|
214
|
+
l(" " + o(T(e.value)), 1)
|
|
220
215
|
]),
|
|
221
216
|
_: 1
|
|
222
|
-
})) :
|
|
223
|
-
], 64)) :
|
|
224
|
-
e.additional ? (
|
|
225
|
-
(N = e.value) != null && N["x-additionalPropertiesName"] ? (
|
|
226
|
-
l(
|
|
227
|
-
], 64)) : (
|
|
217
|
+
})) : a("", !0)
|
|
218
|
+
], 64)) : a("", !0),
|
|
219
|
+
e.additional ? (r(), i("div", K, [
|
|
220
|
+
(N = e.value) != null && N["x-additionalPropertiesName"] ? (r(), i(f, { key: 0 }, [
|
|
221
|
+
l(o(e.value["x-additionalPropertiesName"]), 1)
|
|
222
|
+
], 64)) : (r(), i(f, { key: 1 }, [
|
|
228
223
|
l("additional properties")
|
|
229
224
|
], 64))
|
|
230
|
-
])) :
|
|
231
|
-
e.pattern ? (
|
|
232
|
-
|
|
233
|
-
default:
|
|
225
|
+
])) : a("", !0),
|
|
226
|
+
e.pattern ? (r(), i("div", Q, [
|
|
227
|
+
p(s(L), null, {
|
|
228
|
+
default: u(() => t[15] || (t[15] = [
|
|
234
229
|
l("pattern")
|
|
235
230
|
])),
|
|
236
231
|
_: 1
|
|
237
232
|
})
|
|
238
|
-
])) :
|
|
239
|
-
(
|
|
240
|
-
|
|
241
|
-
default:
|
|
233
|
+
])) : a("", !0),
|
|
234
|
+
(M = e.value) != null && M.deprecated ? (r(), i("div", U, [
|
|
235
|
+
p(s(L), null, {
|
|
236
|
+
default: u(() => t[16] || (t[16] = [
|
|
242
237
|
l("deprecated")
|
|
243
238
|
])),
|
|
244
239
|
_: 1
|
|
245
240
|
})
|
|
246
|
-
])) :
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
prefix:
|
|
250
|
-
l("const:")
|
|
241
|
+
])) : a("", !0),
|
|
242
|
+
S.value !== void 0 ? (r(), i("div", W, [
|
|
243
|
+
p(m, { truncate: "" }, {
|
|
244
|
+
prefix: u(() => t[17] || (t[17] = [
|
|
245
|
+
l("const: ")
|
|
251
246
|
])),
|
|
252
|
-
default:
|
|
253
|
-
|
|
247
|
+
default: u(() => [
|
|
248
|
+
p(J, { value: S.value }, null, 8, ["value"])
|
|
254
249
|
]),
|
|
255
250
|
_: 1
|
|
256
251
|
})
|
|
257
|
-
])) : (
|
|
258
|
-
((
|
|
259
|
-
default:
|
|
252
|
+
])) : (r(), i(f, { key: 7 }, [
|
|
253
|
+
((q = e.value) == null ? void 0 : q.nullable) === !0 ? (r(), n(m, { key: 0 }, {
|
|
254
|
+
default: u(() => t[18] || (t[18] = [
|
|
260
255
|
l(" nullable ")
|
|
261
256
|
])),
|
|
262
257
|
_: 1
|
|
263
|
-
})) :
|
|
258
|
+
})) : a("", !0)
|
|
264
259
|
], 64)),
|
|
265
|
-
(
|
|
266
|
-
e.required ? (
|
|
267
|
-
e.withExamples ? (
|
|
260
|
+
(w = e.value) != null && w.writeOnly ? (r(), i("div", X, " write-only ")) : (P = e.value) != null && P.readOnly ? (r(), i("div", Y, " read-only ")) : a("", !0),
|
|
261
|
+
e.required ? (r(), i("div", Z, " required ")) : a("", !0),
|
|
262
|
+
e.withExamples ? (r(), n(R, {
|
|
268
263
|
key: 11,
|
|
269
|
-
examples: (
|
|
270
|
-
example: ((
|
|
271
|
-
}, null, 8, ["examples", "example"])) :
|
|
264
|
+
examples: (I = e.value) == null ? void 0 : I.examples,
|
|
265
|
+
example: ((O = e.value) == null ? void 0 : O.example) || (($ = (V = e.value) == null ? void 0 : V.items) == null ? void 0 : $.example)
|
|
266
|
+
}, null, 8, ["examples", "example"])) : a("", !0)
|
|
272
267
|
]);
|
|
273
268
|
};
|
|
274
269
|
}
|
|
275
270
|
});
|
|
276
271
|
export {
|
|
277
|
-
|
|
272
|
+
ie as default
|
|
278
273
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-schema-type.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/get-schema-type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAExD;;IAEI;AACJ,eAAO,MAAM,aAAa,UAAW,WAAW,CAAC,YAAY,KAAG,MAuD/D,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
const o = (t) => {
|
|
2
|
+
var s;
|
|
3
|
+
if ((t == null ? void 0 : t.const) !== void 0)
|
|
4
|
+
return "const";
|
|
5
|
+
if (Array.isArray(t == null ? void 0 : t.type)) {
|
|
6
|
+
if (t.type.includes("array") && t.items) {
|
|
7
|
+
const r = o(t.items), i = r != null && r.includes(" | ") ? `(${r})` : r, n = r ? `array ${i}[]` : "array", y = t.type.filter((c) => c !== "array");
|
|
8
|
+
return y.length > 0 ? `${n} | ${y.join(" | ")}` : n;
|
|
9
|
+
}
|
|
10
|
+
return t.type.join(" | ");
|
|
11
|
+
}
|
|
12
|
+
if ((t == null ? void 0 : t.type) === "array" && t.items) {
|
|
13
|
+
const r = o(t.items), i = r != null && r.includes(" | ") ? `(${r})` : r, n = r ? `array ${i}[]` : "array";
|
|
14
|
+
return t.nullable ? `${n} | null` : n;
|
|
15
|
+
}
|
|
16
|
+
return t != null && t.title ? t.title : t != null && t.name ? t.name : (s = t == null ? void 0 : t.xml) != null && s.name ? t.xml.name : t != null && t.type && t.contentEncoding ? `${t.type} • ${t.contentEncoding}` : (t == null ? void 0 : t.type) ?? "";
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
o as getSchemaType
|
|
20
|
+
};
|
|
@@ -10,7 +10,7 @@ function o(f, e = 0) {
|
|
|
10
10
|
if (r.properties && (t.properties = n(t.properties || {}, r.properties, e + 1)), r.items) {
|
|
11
11
|
if (r.type === "array")
|
|
12
12
|
t.items = O(t.items || {}, r.items, e + 1);
|
|
13
|
-
else if (r.type
|
|
13
|
+
else if (typeof r.type == "string" && ["object", "string"].includes(r.type) && r.items.allOf) {
|
|
14
14
|
const i = o(r.items.allOf, e + 1);
|
|
15
15
|
t.properties = n(
|
|
16
16
|
t.properties || {},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"optimizeValueForDisplay.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/optimizeValueForDisplay.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"optimizeValueForDisplay.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/optimizeValueForDisplay.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAExD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAE9D,eAAO,MAAM,YAAY,EAAE,kBAAkB,EAAuC,CAAA;AAEpF;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,aAAa,GAAG,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,CAuEzG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-name.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/schema-name.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AACjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAGxD;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,GAAG,MAAM,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"schema-name.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/schema-name.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AACjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAGxD;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,GAAG,MAAM,GAAG,IAAI,CAyBtF;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAwB3G;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAE3E;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC1B,OAAO,CAAC,EAAE,OAAO,EACjB,cAAc,UAAQ,EACtB,0BAA0B,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,OAAO,KAAK,MAAM,GAAG,IAAI,GAC7E,MAAM,GAAG,IAAI,CAmDf;AAED;;GAEG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAgBpD;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,WAAW,EAAE,WAAW,CAAC,YAAY,EAAE,EACvC,kBAAkB,EAAE,WAAW,CAAC,YAAY,EAAE,EAC9C,OAAO,CAAC,EAAE,OAAO,GAChB,WAAW,CAAC,YAAY,EAAE,CA0B5B"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
function s(t) {
|
|
1
|
+
function o(t) {
|
|
3
2
|
if (!t)
|
|
4
3
|
return null;
|
|
5
4
|
if ("title" in t && t.title)
|
|
@@ -7,61 +6,36 @@ function s(t) {
|
|
|
7
6
|
if ("name" in t && t.name)
|
|
8
7
|
return t.name;
|
|
9
8
|
if ("$ref" in t) {
|
|
10
|
-
const
|
|
11
|
-
if (
|
|
12
|
-
return
|
|
9
|
+
const i = t.$ref.match(/\/([^\/]+)$/);
|
|
10
|
+
if (i)
|
|
11
|
+
return i[1];
|
|
13
12
|
}
|
|
14
|
-
if ("type" in t && t.type === "array" && "items" in t && t.items)
|
|
15
|
-
return `Array of ${"type" in t.items && t.items.type || "any"}`;
|
|
16
|
-
if ("type" in t && t.type)
|
|
17
|
-
return Array.isArray(t.type) ? t.type.join(" | ") : t.type;
|
|
18
|
-
if (typeof t == "object") {
|
|
19
|
-
const r = Object.keys(t);
|
|
20
|
-
if (r.length > 0)
|
|
21
|
-
return r[0];
|
|
22
|
-
}
|
|
23
|
-
return null;
|
|
24
|
-
}
|
|
25
|
-
function b(t, r) {
|
|
26
|
-
var n, y;
|
|
27
|
-
if (!t || !r || typeof r != "object" || t.type !== "array" && t.type !== "object")
|
|
28
|
-
return null;
|
|
29
|
-
for (const [e, i] of Object.entries(r))
|
|
30
|
-
if (i.type === t.type && (t.type === "array" && ((n = i.items) == null ? void 0 : n.type) === ((y = t.items) == null ? void 0 : y.type) || t.type === "object" && i.properties && t.properties && $(i.properties) === $(t.properties)))
|
|
31
|
-
return e;
|
|
32
13
|
return null;
|
|
33
14
|
}
|
|
34
|
-
function
|
|
35
|
-
return t === "array" ? `${t} ${
|
|
15
|
+
function e(t, n) {
|
|
16
|
+
return t === "array" ? `${t} ${n}[]` : `${t} ${n}`;
|
|
36
17
|
}
|
|
37
|
-
function
|
|
38
|
-
|
|
39
|
-
if (!(t != null && t.type))
|
|
18
|
+
function p(t, n, i = !1, y) {
|
|
19
|
+
if (!(t != null && t.type) || i)
|
|
40
20
|
return null;
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
if (e && (t.title || t.name))
|
|
45
|
-
return t.type === "array" ? `array ${e}[]` : e;
|
|
46
|
-
const i = b(t, r);
|
|
47
|
-
if (i)
|
|
48
|
-
return t.type === "array" ? `array ${i}[]` : i;
|
|
21
|
+
const r = o(t);
|
|
22
|
+
if (r && (t.title || t.name))
|
|
23
|
+
return t.type === "array" ? `array ${r}[]` : r;
|
|
49
24
|
if (t.type === "array" && t.items) {
|
|
50
25
|
if (y) {
|
|
51
|
-
const m = y(t.items,
|
|
26
|
+
const m = y(t.items, n);
|
|
52
27
|
if (m)
|
|
53
|
-
return
|
|
28
|
+
return e(t.type, m);
|
|
54
29
|
}
|
|
55
30
|
if (t.items.title || t.items.name)
|
|
56
|
-
return
|
|
57
|
-
const f =
|
|
58
|
-
return f && f !== t.items.type ?
|
|
31
|
+
return e(t.type, t.items.title || t.items.name);
|
|
32
|
+
const f = o(t.items);
|
|
33
|
+
return f && f !== t.items.type ? e(t.type, f) : t.items.type ? e(t.type, t.items.type) : e(t.type, "object");
|
|
59
34
|
}
|
|
60
|
-
return
|
|
35
|
+
return r && r !== t.type ? r.startsWith("Array of ") ? `array ${r.replace("Array of ", "")}[]` : r : null;
|
|
61
36
|
}
|
|
62
37
|
export {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
b as getSchemaNameFromSchemas
|
|
38
|
+
e as formatTypeWithModel,
|
|
39
|
+
p as getModelName,
|
|
40
|
+
o as getModelNameFromSchema
|
|
67
41
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./ParameterListItem.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import o from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const e = /* @__PURE__ */ o(t, [["__scopeId", "data-v-df3b54dc"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ModernLayout.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ModernLayout.vue"],"names":[],"mappings":"AAuLA,OAAO,KAAK,EACV,UAAU,EACV,OAAO,EACP,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AA2BvD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAI/C,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,WAAW,CAAC,WAAW,CAAA;IAC/B,SAAS,EAAE,WAAW,CAAC,eAAe,CAAA;IACtC,SAAS,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,UAAU,EAAE,UAAU,CAAA;IACtB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,OAAO,EAAE,OAAO,GAAG,SAAS,CAAA;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;;;;;;AA6TF,wBAQG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ModernLayout.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-d34fa883"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|