@scalar/api-reference 1.43.4 → 1.43.7
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 +85 -0
- package/dist/blocks/scalar-client-selector-block/components/ClientDropdown.vue2.js +7 -7
- package/dist/blocks/scalar-client-selector-block/components/ClientSelector.vue2.js +5 -5
- package/dist/blocks/scalar-info-block/components/DownloadLink.vue.js +1 -1
- package/dist/blocks/scalar-info-block/components/DownloadLink.vue2.js +5 -5
- package/dist/blocks/scalar-info-block/components/InfoBlock.vue.js +11 -11
- package/dist/blocks/scalar-info-block/components/InfoDescription.vue2.js +2 -2
- package/dist/blocks/scalar-info-block/components/InfoLinks.vue.js +7 -7
- package/dist/blocks/scalar-info-block/components/InfoMarkdownSection.vue.js +2 -2
- package/dist/blocks/scalar-info-block/components/IntroductionCard.vue2.js +1 -1
- package/dist/blocks/scalar-info-block/components/IntroductionLayout.vue2.js +16 -16
- package/dist/blocks/scalar-info-block/components/OpenApiVersion.vue.js +2 -2
- package/dist/blocks/scalar-server-selector-block/components/Selector.vue.js +1 -1
- package/dist/blocks/scalar-server-selector-block/components/ServerSelector.vue.js +7 -7
- package/dist/browser/standalone.js +18486 -18113
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/Anchor/WithBreadcrumb.vue.js +3 -3
- package/dist/components/ApiReference.vue.d.ts.map +1 -1
- package/dist/components/ApiReference.vue.js +1 -1
- package/dist/components/ApiReference.vue2.js +16 -11
- package/dist/components/Content/Auth/Auth.vue.js +7 -7
- package/dist/components/Content/Content.vue.js +28 -28
- package/dist/components/Content/Models/Model.vue.js +14 -14
- package/dist/components/Content/Models/ModelTag.vue.js +8 -8
- package/dist/components/Content/Models/components/ClassicLayout.vue2.js +15 -15
- package/dist/components/Content/Models/components/ModernLayout.vue.js +11 -11
- package/dist/components/Content/Operations/TraversedEntry.vue.js +51 -51
- package/dist/components/Content/Schema/Schema.vue2.js +40 -40
- package/dist/components/Content/Schema/SchemaComposition.vue.js +17 -17
- package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue2.js +3 -3
- package/dist/components/Content/Schema/SchemaHeading.vue2.js +7 -7
- package/dist/components/Content/Schema/SchemaObjectProperties.vue.js +31 -31
- 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 +88 -147
- package/dist/components/Content/Schema/SchemaPropertyDetail.vue2.js +2 -2
- package/dist/components/Content/Schema/SchemaPropertyExamples.vue2.js +6 -6
- package/dist/components/Content/Schema/helpers/get-compositions-to-render.d.ts +14 -0
- package/dist/components/Content/Schema/helpers/get-compositions-to-render.d.ts.map +1 -0
- package/dist/components/Content/Schema/helpers/get-compositions-to-render.js +31 -0
- package/dist/components/Content/Schema/helpers/get-enum-values.d.ts +9 -0
- package/dist/components/Content/Schema/helpers/get-enum-values.d.ts.map +1 -0
- package/dist/components/Content/Schema/helpers/get-enum-values.js +20 -0
- package/dist/components/Content/Schema/helpers/get-property-description.d.ts +9 -0
- package/dist/components/Content/Schema/helpers/get-property-description.d.ts.map +1 -0
- package/dist/components/Content/Schema/helpers/get-property-description.js +34 -0
- package/dist/components/Content/Schema/helpers/has-complex-array-items.d.ts +10 -0
- package/dist/components/Content/Schema/helpers/has-complex-array-items.d.ts.map +1 -0
- package/dist/components/Content/Schema/helpers/has-complex-array-items.js +48 -0
- package/dist/components/Content/Schema/helpers/should-display-description.d.ts +10 -0
- package/dist/components/Content/Schema/helpers/should-display-description.d.ts.map +1 -0
- package/dist/components/Content/Schema/helpers/should-display-description.js +12 -0
- package/dist/components/Content/Schema/helpers/should-display-heading.d.ts +11 -0
- package/dist/components/Content/Schema/helpers/should-display-heading.d.ts.map +1 -0
- package/dist/components/Content/Schema/helpers/should-display-heading.js +12 -0
- package/dist/components/Content/Schema/helpers/should-render-array-item-composition.d.ts +10 -0
- package/dist/components/Content/Schema/helpers/should-render-array-item-composition.d.ts.map +1 -0
- package/dist/components/Content/Schema/helpers/should-render-array-item-composition.js +15 -0
- package/dist/components/Content/Tags/Tag.vue.js +11 -11
- package/dist/components/Content/Tags/components/ClassicLayout.vue2.js +6 -6
- package/dist/components/Content/Tags/components/ModernLayout.vue2.js +10 -10
- package/dist/components/Content/Tags/components/TagSection.vue.js +14 -14
- package/dist/components/Content/index.d.ts +1 -0
- package/dist/components/Content/index.d.ts.map +1 -1
- package/dist/components/GettingStarted.vue2.js +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue.js +3 -3
- package/dist/components/IntersectionObserver.vue.js +2 -2
- package/dist/components/LoadingSkeleton.vue2.js +2 -2
- package/dist/components/MobileHeader.vue.js +6 -6
- package/dist/components/OperationPath.vue2.js +1 -1
- package/dist/components/OperationsList/OperationsList.vue2.js +5 -5
- package/dist/components/OperationsList/OperationsListItem.vue2.js +8 -8
- package/dist/components/RenderPlugins/RenderPlugins.vue.js +2 -2
- package/dist/components/Section/CompactSection.vue2.js +9 -9
- package/dist/components/Section/SectionAccordion.vue2.js +5 -5
- package/dist/components/Section/SectionContainer.vue2.js +1 -1
- package/dist/components/Section/SectionContainerAccordion.vue2.js +3 -3
- package/dist/components/Section/SectionContent.vue2.js +1 -1
- package/dist/components/Section/SectionHeader.vue2.js +2 -2
- package/dist/components/Section/SectionHeaderTag.vue2.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +18 -16
- package/dist/features/Operation/Operation.vue.js +18 -18
- package/dist/features/Operation/components/Header.vue.js +8 -8
- package/dist/features/Operation/components/Headers.vue2.js +5 -5
- package/dist/features/Operation/components/OperationParameters.vue.js +17 -17
- package/dist/features/Operation/components/OperationResponses.vue.js +6 -6
- package/dist/features/Operation/components/ParameterList.vue.js +6 -6
- package/dist/features/Operation/components/ParameterListItem.vue2.js +16 -16
- package/dist/features/Operation/components/RequestBody.vue2.js +17 -17
- package/dist/features/Operation/components/callbacks/Callback.vue2.js +10 -10
- package/dist/features/Operation/components/callbacks/Callbacks.vue.js +3 -3
- package/dist/features/Operation/layouts/ClassicLayout.vue2.js +49 -49
- package/dist/features/Operation/layouts/ModernLayout.vue2.js +50 -50
- package/dist/features/Search/components/SearchButton.vue.js +5 -5
- package/dist/features/Search/components/SearchModal.vue2.js +1 -1
- package/dist/features/Search/components/SearchResult.vue.js +14 -14
- package/dist/features/example-responses/ExampleResponse.vue2.js +3 -3
- package/dist/features/external-docs/ExternalDocs.vue.js +3 -3
- package/dist/features/info-object/Contact.vue.js +6 -6
- package/dist/features/info-object/License.vue.js +4 -4
- package/dist/features/info-object/TermsOfService.vue.js +2 -2
- package/dist/features/multiple-documents/DocumentSelector.vue.js +1 -1
- package/dist/features/specification-extension/SpecificationExtension.vue2.js +3 -3
- package/dist/features/test-request-button/TestRequestButton.vue2.js +2 -2
- package/dist/features/toolbar/ApiReferenceToolbar.vue.js +4 -4
- package/dist/features/toolbar/ApiReferenceToolbarConfig.vue.js +1 -1
- package/dist/features/toolbar/ApiReferenceToolbarSdks.vue.js +1 -1
- package/dist/features/toolbar/ApiReferenceToolbarShare.vue.js +2 -2
- package/dist/features/toolbar/ApiReferenceToolbarShareRegister.vue.js +1 -1
- package/dist/helpers/id-routing.d.ts.map +1 -1
- package/dist/helpers/id-routing.js +7 -1
- package/dist/helpers/load-from-perssistance.d.ts +32 -0
- package/dist/helpers/load-from-perssistance.d.ts.map +1 -0
- package/dist/helpers/load-from-perssistance.js +74 -0
- package/dist/helpers/map-config-plugins.d.ts +17 -2
- package/dist/helpers/map-config-plugins.d.ts.map +1 -1
- package/dist/helpers/map-config-plugins.js +20 -22
- package/dist/helpers/map-config-to-workspace-store.d.ts.map +1 -1
- package/dist/helpers/map-config-to-workspace-store.js +1 -8
- package/dist/helpers/storage.d.ts +6 -6
- package/dist/helpers/storage.d.ts.map +1 -1
- package/dist/helpers/storage.js +15 -10
- package/dist/plugins/hooks/usePluginManager.js +1 -1
- package/dist/style.css +133 -116
- package/package.json +31 -31
|
@@ -59,28 +59,28 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
59
59
|
});
|
|
60
60
|
const handleClick = (e) => __props.noncollapsible && e.stopPropagation();
|
|
61
61
|
return (_ctx, _cache) => {
|
|
62
|
-
return typeof
|
|
62
|
+
return typeof __props.schema === "object" && Object.keys(__props.schema).length ? (openBlock(), createBlock(unref(Disclosure), {
|
|
63
63
|
key: 0,
|
|
64
|
-
defaultOpen:
|
|
64
|
+
defaultOpen: __props.noncollapsible
|
|
65
65
|
}, {
|
|
66
66
|
default: withCtx(({ open }) => [
|
|
67
67
|
createElementVNode("div", {
|
|
68
68
|
class: normalizeClass(["schema-card", [
|
|
69
|
-
`schema-card--level-${
|
|
70
|
-
{ "schema-card--compact":
|
|
71
|
-
{ "border-t":
|
|
69
|
+
`schema-card--level-${__props.level}`,
|
|
70
|
+
{ "schema-card--compact": __props.compact, "schema-card--open": open },
|
|
71
|
+
{ "border-t": __props.additionalProperties && open }
|
|
72
72
|
]])
|
|
73
73
|
}, [
|
|
74
74
|
schemaDescription.value ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
75
75
|
createVNode(unref(ScalarMarkdown), { value: schemaDescription.value }, null, 8, ["value"])
|
|
76
76
|
])) : createCommentVNode("", true),
|
|
77
|
-
unref(isEmptySchemaObject)(
|
|
77
|
+
unref(isEmptySchemaObject)(__props.schema) ? (openBlock(), createElementBlock("div", _hoisted_2, " Empty object ")) : createCommentVNode("", true),
|
|
78
78
|
createElementVNode("div", {
|
|
79
79
|
class: normalizeClass(["schema-properties", {
|
|
80
80
|
"schema-properties-open": open
|
|
81
81
|
}])
|
|
82
82
|
}, [
|
|
83
|
-
|
|
83
|
+
__props.additionalProperties ? withDirectives((openBlock(), createElementBlock("div", _hoisted_3, [
|
|
84
84
|
createVNode(unref(DisclosureButton), {
|
|
85
85
|
as: "button",
|
|
86
86
|
class: "schema-card-title schema-card-title--compact",
|
|
@@ -93,9 +93,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
93
93
|
size: "sm"
|
|
94
94
|
}),
|
|
95
95
|
_cache[0] || (_cache[0] = createTextVNode(" Show additional properties ", -1)),
|
|
96
|
-
|
|
96
|
+
__props.name ? (openBlock(), createBlock(ScreenReader, { key: 0 }, {
|
|
97
97
|
default: withCtx(() => [
|
|
98
|
-
createTextVNode("for " + toDisplayString(
|
|
98
|
+
createTextVNode("for " + toDisplayString(__props.name), 1)
|
|
99
99
|
]),
|
|
100
100
|
_: 1
|
|
101
101
|
})) : createCommentVNode("", true)
|
|
@@ -106,28 +106,28 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
106
106
|
[vShow, !open]
|
|
107
107
|
]) : shouldShowToggle.value ? withDirectives((openBlock(), createBlock(unref(DisclosureButton), {
|
|
108
108
|
key: 1,
|
|
109
|
-
as:
|
|
110
|
-
class: normalizeClass(["schema-card-title", { "schema-card-title--compact":
|
|
109
|
+
as: __props.noncollapsible ? "div" : "button",
|
|
110
|
+
class: normalizeClass(["schema-card-title", { "schema-card-title--compact": __props.compact }]),
|
|
111
111
|
style: normalizeStyle({
|
|
112
|
-
top: `calc(var(--refs-viewport-offset) + calc(var(--schema-title-height) * ${
|
|
112
|
+
top: `calc(var(--refs-viewport-offset) + calc(var(--schema-title-height) * ${__props.level}))`
|
|
113
113
|
}),
|
|
114
114
|
onClickCapture: handleClick
|
|
115
115
|
}, {
|
|
116
116
|
default: withCtx(() => [
|
|
117
|
-
|
|
117
|
+
__props.compact ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
118
118
|
createVNode(unref(ScalarIcon), {
|
|
119
119
|
class: normalizeClass(["schema-card-title-icon", { "schema-card-title-icon--open": open }]),
|
|
120
120
|
icon: "Add",
|
|
121
121
|
size: "sm"
|
|
122
122
|
}, null, 8, ["class"]),
|
|
123
123
|
open ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
124
|
-
createTextVNode(" Hide " + toDisplayString(
|
|
124
|
+
createTextVNode(" Hide " + toDisplayString(__props.schema?.title ?? "Child Attributes"), 1)
|
|
125
125
|
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
126
|
-
createTextVNode(" Show " + toDisplayString(
|
|
126
|
+
createTextVNode(" Show " + toDisplayString(__props.schema?.title ?? "Child Attributes"), 1)
|
|
127
127
|
], 64)),
|
|
128
|
-
|
|
128
|
+
__props.name ? (openBlock(), createBlock(ScreenReader, { key: 2 }, {
|
|
129
129
|
default: withCtx(() => [
|
|
130
|
-
createTextVNode("for " + toDisplayString(
|
|
130
|
+
createTextVNode("for " + toDisplayString(__props.name), 1)
|
|
131
131
|
]),
|
|
132
132
|
_: 1
|
|
133
133
|
})) : createCommentVNode("", true)
|
|
@@ -138,43 +138,43 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
138
138
|
size: "sm"
|
|
139
139
|
}, null, 8, ["class"]),
|
|
140
140
|
createVNode(SchemaHeading, {
|
|
141
|
-
name:
|
|
142
|
-
value:
|
|
141
|
+
name: __props.schema?.title ?? __props.name,
|
|
142
|
+
value: __props.schema
|
|
143
143
|
}, null, 8, ["name", "value"])
|
|
144
144
|
], 64))
|
|
145
145
|
]),
|
|
146
146
|
_: 2
|
|
147
147
|
}, 1032, ["as", "class", "style"])), [
|
|
148
|
-
[vShow, !
|
|
148
|
+
[vShow, !__props.hideHeading && !(__props.noncollapsible && __props.compact)]
|
|
149
149
|
]) : createCommentVNode("", true),
|
|
150
|
-
!
|
|
150
|
+
!__props.additionalProperties || open ? (openBlock(), createBlock(unref(DisclosurePanel), {
|
|
151
151
|
key: 2,
|
|
152
152
|
as: "ul",
|
|
153
153
|
static: !shouldShowToggle.value
|
|
154
154
|
}, {
|
|
155
155
|
default: withCtx(() => [
|
|
156
|
-
unref(isTypeObject)(
|
|
156
|
+
unref(isTypeObject)(__props.schema) ? (openBlock(), createBlock(_sfc_main$1, {
|
|
157
157
|
key: 0,
|
|
158
|
-
breadcrumb:
|
|
159
|
-
compact:
|
|
160
|
-
discriminator:
|
|
161
|
-
eventBus:
|
|
162
|
-
hideHeading:
|
|
163
|
-
hideModelNames:
|
|
164
|
-
level:
|
|
165
|
-
options:
|
|
166
|
-
schema:
|
|
158
|
+
breadcrumb: __props.breadcrumb,
|
|
159
|
+
compact: __props.compact,
|
|
160
|
+
discriminator: __props.discriminator,
|
|
161
|
+
eventBus: __props.eventBus,
|
|
162
|
+
hideHeading: __props.hideHeading,
|
|
163
|
+
hideModelNames: __props.hideModelNames,
|
|
164
|
+
level: __props.level + 1,
|
|
165
|
+
options: __props.options,
|
|
166
|
+
schema: __props.schema
|
|
167
167
|
}, null, 8, ["breadcrumb", "compact", "discriminator", "eventBus", "hideHeading", "hideModelNames", "level", "options", "schema"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
168
|
-
|
|
168
|
+
__props.schema ? (openBlock(), createBlock(SchemaProperty, {
|
|
169
169
|
key: 0,
|
|
170
|
-
breadcrumb:
|
|
171
|
-
compact:
|
|
172
|
-
eventBus:
|
|
173
|
-
hideHeading:
|
|
174
|
-
hideModelNames:
|
|
175
|
-
level:
|
|
176
|
-
options:
|
|
177
|
-
schema:
|
|
170
|
+
breadcrumb: __props.breadcrumb,
|
|
171
|
+
compact: __props.compact,
|
|
172
|
+
eventBus: __props.eventBus,
|
|
173
|
+
hideHeading: __props.hideHeading,
|
|
174
|
+
hideModelNames: __props.hideModelNames,
|
|
175
|
+
level: __props.level,
|
|
176
|
+
options: __props.options,
|
|
177
|
+
schema: __props.schema
|
|
178
178
|
}, null, 8, ["breadcrumb", "compact", "eventBus", "hideHeading", "hideModelNames", "level", "options", "schema"])) : createCommentVNode("", true)
|
|
179
179
|
], 64))
|
|
180
180
|
]),
|
|
@@ -53,16 +53,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
53
53
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
54
54
|
props.composition === "allOf" ? (openBlock(), createBlock(Schema, {
|
|
55
55
|
key: 0,
|
|
56
|
-
breadcrumb:
|
|
57
|
-
compact:
|
|
58
|
-
discriminator:
|
|
59
|
-
eventBus:
|
|
60
|
-
hideHeading:
|
|
61
|
-
level:
|
|
62
|
-
name:
|
|
56
|
+
breadcrumb: __props.breadcrumb,
|
|
57
|
+
compact: __props.compact,
|
|
58
|
+
discriminator: __props.discriminator,
|
|
59
|
+
eventBus: __props.eventBus,
|
|
60
|
+
hideHeading: __props.hideHeading,
|
|
61
|
+
level: __props.level,
|
|
62
|
+
name: __props.name,
|
|
63
63
|
noncollapsible: true,
|
|
64
|
-
options:
|
|
65
|
-
schema: unref(mergeAllOfSchemas)(
|
|
64
|
+
options: __props.options,
|
|
65
|
+
schema: unref(mergeAllOfSchemas)(__props.schema)
|
|
66
66
|
}, null, 8, ["breadcrumb", "compact", "discriminator", "eventBus", "hideHeading", "level", "name", "options", "schema"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
67
67
|
createVNode(unref(ScalarListbox), {
|
|
68
68
|
modelValue: selectedOption.value,
|
|
@@ -86,15 +86,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
86
86
|
}, 8, ["modelValue", "options"]),
|
|
87
87
|
createElementVNode("div", _hoisted_5, [
|
|
88
88
|
createVNode(Schema, {
|
|
89
|
-
breadcrumb:
|
|
90
|
-
compact:
|
|
91
|
-
discriminator:
|
|
92
|
-
eventBus:
|
|
93
|
-
hideHeading:
|
|
94
|
-
level:
|
|
95
|
-
name:
|
|
89
|
+
breadcrumb: __props.breadcrumb,
|
|
90
|
+
compact: __props.compact,
|
|
91
|
+
discriminator: __props.discriminator,
|
|
92
|
+
eventBus: __props.eventBus,
|
|
93
|
+
hideHeading: __props.hideHeading,
|
|
94
|
+
level: __props.level + 1,
|
|
95
|
+
name: __props.name,
|
|
96
96
|
noncollapsible: true,
|
|
97
|
-
options:
|
|
97
|
+
options: __props.options,
|
|
98
98
|
schema: selectedComposition.value
|
|
99
99
|
}, null, 8, ["breadcrumb", "compact", "discriminator", "eventBus", "hideHeading", "level", "name", "options", "schema"])
|
|
100
100
|
])
|
|
@@ -19,12 +19,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
19
19
|
createElementVNode("div", _hoisted_2, [
|
|
20
20
|
createElementVNode("span", _hoisted_3, [
|
|
21
21
|
createVNode(unref(ScalarWrappingText), {
|
|
22
|
-
text:
|
|
22
|
+
text: __props.label,
|
|
23
23
|
preset: "property"
|
|
24
24
|
}, null, 8, ["text"])
|
|
25
25
|
]),
|
|
26
|
-
|
|
27
|
-
createVNode(unref(ScalarMarkdown), { value:
|
|
26
|
+
__props.description ? (openBlock(), createElementBlock("span", _hoisted_4, [
|
|
27
|
+
createVNode(unref(ScalarMarkdown), { value: __props.description }, null, 8, ["value"])
|
|
28
28
|
])) : createCommentVNode("", true)
|
|
29
29
|
])
|
|
30
30
|
]);
|
|
@@ -30,24 +30,24 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
30
30
|
return "unknown";
|
|
31
31
|
});
|
|
32
32
|
return (_ctx, _cache) => {
|
|
33
|
-
return typeof
|
|
33
|
+
return typeof __props.value === "object" ? (openBlock(), createElementBlock("span", _hoisted_1, [
|
|
34
34
|
createElementVNode("span", {
|
|
35
35
|
class: "schema-type-icon",
|
|
36
|
-
title: "type" in
|
|
36
|
+
title: "type" in __props.value && typeof __props.value.type === "string" ? __props.value.type : "type" in __props.value && Array.isArray(__props.value.type) ? __props.value.type.join(" | ") : "unknown type"
|
|
37
37
|
}, [
|
|
38
|
-
unref(isTypeObject)(
|
|
38
|
+
unref(isTypeObject)(__props.value) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
39
39
|
createTextVNode(" {} ")
|
|
40
40
|
], 64)) : createCommentVNode("", true),
|
|
41
|
-
unref(isArraySchema)(
|
|
41
|
+
unref(isArraySchema)(__props.value) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
42
42
|
createTextVNode(" [] ")
|
|
43
43
|
], 64)) : createCommentVNode("", true),
|
|
44
|
-
|
|
44
|
+
__props.value.enum ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
45
45
|
createTextVNode(" enum ")
|
|
46
46
|
], 64)) : createCommentVNode("", true)
|
|
47
47
|
], 8, _hoisted_2),
|
|
48
|
-
|
|
48
|
+
__props.name ? (openBlock(), createBlock(unref(ScalarWrappingText), {
|
|
49
49
|
key: 0,
|
|
50
|
-
text:
|
|
50
|
+
text: __props.name,
|
|
51
51
|
preset: "property"
|
|
52
52
|
}, null, 8, ["text"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
53
53
|
createTextVNode(toDisplayString(failsafeType.value), 1)
|
|
@@ -39,50 +39,50 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
39
39
|
};
|
|
40
40
|
return (_ctx, _cache) => {
|
|
41
41
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
42
|
-
unref(isTypeObject)(
|
|
42
|
+
unref(isTypeObject)(__props.schema) && __props.schema.properties ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(sortedProperties.value, (property) => {
|
|
43
43
|
return openBlock(), createBlock(SchemaProperty, {
|
|
44
44
|
key: property,
|
|
45
|
-
breadcrumb:
|
|
46
|
-
compact:
|
|
47
|
-
discriminator:
|
|
48
|
-
eventBus:
|
|
49
|
-
hideHeading:
|
|
50
|
-
hideModelNames:
|
|
51
|
-
level:
|
|
45
|
+
breadcrumb: __props.breadcrumb,
|
|
46
|
+
compact: __props.compact,
|
|
47
|
+
discriminator: __props.discriminator,
|
|
48
|
+
eventBus: __props.eventBus,
|
|
49
|
+
hideHeading: __props.hideHeading,
|
|
50
|
+
hideModelNames: __props.hideModelNames,
|
|
51
|
+
level: __props.level,
|
|
52
52
|
name: property,
|
|
53
|
-
options:
|
|
54
|
-
required:
|
|
55
|
-
schema: unref(getResolvedRef)(
|
|
53
|
+
options: __props.options,
|
|
54
|
+
required: __props.schema.required?.includes(property),
|
|
55
|
+
schema: unref(getResolvedRef)(__props.schema.properties[property])
|
|
56
56
|
}, null, 8, ["breadcrumb", "compact", "discriminator", "eventBus", "hideHeading", "hideModelNames", "level", "name", "options", "required", "schema"]);
|
|
57
57
|
}), 128)) : createCommentVNode("", true),
|
|
58
|
-
unref(isTypeObject)(
|
|
58
|
+
unref(isTypeObject)(__props.schema) && __props.schema.patternProperties ? (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(Object.entries(__props.schema.patternProperties), ([key, property]) => {
|
|
59
59
|
return openBlock(), createBlock(SchemaProperty, {
|
|
60
60
|
key,
|
|
61
|
-
breadcrumb:
|
|
62
|
-
compact:
|
|
63
|
-
discriminator:
|
|
64
|
-
eventBus:
|
|
65
|
-
hideHeading:
|
|
66
|
-
hideModelNames:
|
|
67
|
-
level:
|
|
61
|
+
breadcrumb: __props.breadcrumb,
|
|
62
|
+
compact: __props.compact,
|
|
63
|
+
discriminator: __props.discriminator,
|
|
64
|
+
eventBus: __props.eventBus,
|
|
65
|
+
hideHeading: __props.hideHeading,
|
|
66
|
+
hideModelNames: __props.hideModelNames,
|
|
67
|
+
level: __props.level,
|
|
68
68
|
name: key,
|
|
69
|
-
options:
|
|
69
|
+
options: __props.options,
|
|
70
70
|
schema: unref(getResolvedRef)(property)
|
|
71
71
|
}, null, 8, ["breadcrumb", "compact", "discriminator", "eventBus", "hideHeading", "hideModelNames", "level", "name", "options", "schema"]);
|
|
72
72
|
}), 128)) : createCommentVNode("", true),
|
|
73
|
-
unref(isTypeObject)(
|
|
73
|
+
unref(isTypeObject)(__props.schema) && __props.schema.additionalProperties ? (openBlock(), createBlock(SchemaProperty, {
|
|
74
74
|
key: 2,
|
|
75
|
-
breadcrumb:
|
|
76
|
-
compact:
|
|
77
|
-
discriminator:
|
|
78
|
-
eventBus:
|
|
79
|
-
hideHeading:
|
|
80
|
-
hideModelNames:
|
|
81
|
-
level:
|
|
82
|
-
name: getAdditionalPropertiesName(
|
|
75
|
+
breadcrumb: __props.breadcrumb,
|
|
76
|
+
compact: __props.compact,
|
|
77
|
+
discriminator: __props.discriminator,
|
|
78
|
+
eventBus: __props.eventBus,
|
|
79
|
+
hideHeading: __props.hideHeading,
|
|
80
|
+
hideModelNames: __props.hideModelNames,
|
|
81
|
+
level: __props.level,
|
|
82
|
+
name: getAdditionalPropertiesName(__props.schema.additionalProperties),
|
|
83
83
|
noncollapsible: "",
|
|
84
|
-
options:
|
|
85
|
-
schema: getAdditionalPropertiesValue(
|
|
84
|
+
options: __props.options,
|
|
85
|
+
schema: getAdditionalPropertiesValue(__props.schema.additionalProperties),
|
|
86
86
|
variant: "additionalProperties"
|
|
87
87
|
}, null, 8, ["breadcrumb", "compact", "discriminator", "eventBus", "hideHeading", "hideModelNames", "level", "name", "options", "schema"])) : createCommentVNode("", true)
|
|
88
88
|
], 64);
|
|
@@ -25,11 +25,11 @@ type __VLS_Props = {
|
|
|
25
25
|
eventBus: WorkspaceEventBus | null;
|
|
26
26
|
options: SchemaOptions;
|
|
27
27
|
};
|
|
28
|
-
declare const
|
|
28
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
29
29
|
level: number;
|
|
30
30
|
required: boolean;
|
|
31
31
|
compact: boolean;
|
|
32
32
|
hideModelNames: boolean;
|
|
33
33
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
34
|
-
export default
|
|
34
|
+
export default _default;
|
|
35
35
|
//# sourceMappingURL=SchemaProperty.vue.d.ts.map
|
|
@@ -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":"AAyaA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAEvE,OAAO,KAAK,EACV,mBAAmB,EACnB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAErE,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,KAAK,CAAA;AAI9C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAA;AAetE;;;;;GAKG;AAEH,KAAK,WAAW,GAAG;IACf,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACvB,MAAM,EAAE,YAAY,GAAG,SAAS,CAAA;IAChC,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,aAAa,CAAC,EAAE,mBAAmB,CAAA;IACnC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,OAAO,CAAC,EAAE,sBAAsB,GAAG,mBAAmB,CAAA;IACtD,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAClC,OAAO,EAAE,aAAa,CAAA;CACvB,CAAC;;WAZQ,MAAM;cAEH,OAAO;aACR,OAAO;oBAGA,OAAO;;AAyc5B,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./SchemaProperty.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const SchemaProperty = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const SchemaProperty = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a4c1ff0a"]]);
|
|
5
5
|
export {
|
|
6
6
|
SchemaProperty as default
|
|
7
7
|
};
|