@scalar/api-reference 1.31.8 → 1.31.9

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.
Files changed (183) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/dist/browser/standalone.js +18613 -18470
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/ApiReference.vue.d.ts.map +1 -1
  5. package/dist/components/ApiReference.vue.js +10 -30
  6. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  7. package/dist/components/ApiReferenceLayout.vue.js +2 -2
  8. package/dist/components/ApiReferenceLayout.vue2.js +240 -222
  9. package/dist/components/Content/Content.vue.d.ts +2 -0
  10. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  11. package/dist/components/Content/Content.vue.js +2 -2
  12. package/dist/components/Content/Content.vue2.js +84 -74
  13. package/dist/components/Content/Introduction/Introduction.vue.d.ts +1 -3
  14. package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
  15. package/dist/components/Content/Introduction/Introduction.vue.js +2 -2
  16. package/dist/components/Content/Introduction/Introduction.vue2.js +93 -83
  17. package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
  18. package/dist/components/Content/Lazy/Loading.vue.js +84 -86
  19. package/dist/components/Content/Models/Models.vue.js +1 -1
  20. package/dist/components/Content/Models/Models.vue2.js +4 -4
  21. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  22. package/dist/components/Content/Schema/Schema.vue.js +2 -2
  23. package/dist/components/Content/Schema/Schema.vue2.js +53 -53
  24. package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts.map +1 -1
  25. package/dist/components/Content/Schema/SchemaDiscriminator.vue.js +1 -1
  26. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  27. package/dist/components/Content/Schema/SchemaProperty.vue.js +1 -1
  28. package/dist/components/Content/Schema/SchemaProperty.vue2.js +117 -112
  29. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  30. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +2 -2
  31. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +161 -191
  32. package/dist/components/Content/Schema/helpers/schema-name.d.ts +13 -0
  33. package/dist/components/Content/Schema/helpers/schema-name.d.ts.map +1 -1
  34. package/dist/components/Content/Schema/helpers/schema-name.js +59 -13
  35. package/dist/components/Content/Tag/OperationsList.vue.d.ts.map +1 -1
  36. package/dist/components/Content/Tag/OperationsList.vue.js +1 -1
  37. package/dist/components/Content/Tag/OperationsList.vue2.js +22 -25
  38. package/dist/components/Content/Tag/OperationsListItem.vue.d.ts +2 -3
  39. package/dist/components/Content/Tag/OperationsListItem.vue.d.ts.map +1 -1
  40. package/dist/components/Content/Tag/OperationsListItem.vue.js +2 -2
  41. package/dist/components/Content/Tag/OperationsListItem.vue2.js +46 -47
  42. package/dist/components/Content/Tag/Tag.vue.d.ts.map +1 -1
  43. package/dist/components/Content/Tag/Tag.vue.js +45 -47
  44. package/dist/components/Content/Tag/TagList.vue.d.ts +2 -0
  45. package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
  46. package/dist/components/Content/Tag/TagList.vue.js +40 -41
  47. package/dist/components/Content/Tag/TagSection.vue.d.ts.map +1 -1
  48. package/dist/components/Content/Tag/TagSection.vue.js +2 -2
  49. package/dist/components/Content/Tag/TagSection.vue2.js +21 -21
  50. package/dist/components/HttpMethod/HttpMethod.vue.d.ts +16 -1
  51. package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
  52. package/dist/components/HttpMethod/HttpMethod.vue.js +12 -11
  53. package/dist/components/MobileHeader.vue.d.ts +1 -8
  54. package/dist/components/MobileHeader.vue.d.ts.map +1 -1
  55. package/dist/components/MobileHeader.vue.js +1 -1
  56. package/dist/components/MobileHeader.vue2.js +19 -19
  57. package/dist/components/Section/Section.vue.js +2 -2
  58. package/dist/components/Section/Section.vue2.js +1 -1
  59. package/dist/components/ShowMoreButton.vue.js +2 -2
  60. package/dist/components/ShowMoreButton.vue2.js +1 -1
  61. package/dist/components/Sidebar/Sidebar.vue.d.ts +2 -4
  62. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  63. package/dist/components/Sidebar/Sidebar.vue.js +1 -1
  64. package/dist/components/Sidebar/Sidebar.vue2.js +113 -159
  65. package/dist/components/Sidebar/SidebarElement.vue.d.ts +2 -11
  66. package/dist/components/Sidebar/SidebarElement.vue.d.ts.map +1 -1
  67. package/dist/components/Sidebar/SidebarElement.vue.js +2 -2
  68. package/dist/components/Sidebar/SidebarElement.vue2.js +85 -81
  69. package/dist/components/Sidebar/SidebarHttpBadge.vue.d.ts +16 -1
  70. package/dist/components/Sidebar/SidebarHttpBadge.vue.d.ts.map +1 -1
  71. package/dist/components/Sidebar/SidebarHttpBadge.vue.js +2 -2
  72. package/dist/components/Sidebar/SidebarHttpBadge.vue2.js +11 -5
  73. package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts.map +1 -1
  74. package/dist/features/ApiClientModal/ApiClientModal.vue.js +54 -42
  75. package/dist/features/ApiClientModal/useApiClient.d.ts +74 -72
  76. package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
  77. package/dist/features/DocumentSource/hooks/useDocumentSource.d.ts +0 -2
  78. package/dist/features/DocumentSource/hooks/useDocumentSource.d.ts.map +1 -1
  79. package/dist/features/DocumentSource/hooks/useDocumentSource.js +40 -67
  80. package/dist/features/DownloadLink/DownloadLink.vue.js +1 -1
  81. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts +5 -5
  82. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
  83. package/dist/features/ExampleRequest/ExampleRequest.vue.js +1 -1
  84. package/dist/features/ExampleRequest/ExampleRequest.vue2.js +200 -179
  85. package/dist/features/Operation/Operation.vue.d.ts +0 -1
  86. package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
  87. package/dist/features/Operation/Operation.vue.js +31 -34
  88. package/dist/features/Operation/components/OperationParameters.vue.d.ts +3 -2
  89. package/dist/features/Operation/components/OperationParameters.vue.d.ts.map +1 -1
  90. package/dist/features/Operation/components/OperationParameters.vue.js +62 -64
  91. package/dist/features/Operation/components/OperationResponses.vue.d.ts +1 -2
  92. package/dist/features/Operation/components/OperationResponses.vue.d.ts.map +1 -1
  93. package/dist/features/Operation/components/OperationResponses.vue.js +2 -2
  94. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts.map +1 -1
  95. package/dist/features/Operation/components/callbacks/Callback.vue.js +3 -3
  96. package/dist/features/Operation/components/callbacks/Callback.vue2.js +31 -38
  97. package/dist/features/Operation/hooks/useResponses.d.ts +3 -3
  98. package/dist/features/Operation/hooks/useResponses.d.ts.map +1 -1
  99. package/dist/features/Operation/hooks/useResponses.js +12 -13
  100. package/dist/features/Operation/index.d.ts +0 -1
  101. package/dist/features/Operation/index.d.ts.map +1 -1
  102. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +4 -6
  103. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  104. package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
  105. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +85 -72
  106. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +2 -4
  107. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  108. package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
  109. package/dist/features/Operation/layouts/ModernLayout.vue2.js +114 -98
  110. package/dist/features/Search/SearchModal.vue.js +2 -2
  111. package/dist/features/Search/SearchModal.vue2.js +1 -1
  112. package/dist/features/Search/useSearchIndex.d.ts.map +1 -1
  113. package/dist/features/Search/useSearchIndex.js +61 -64
  114. package/dist/features/sidebar/helpers/create-sidebar.d.ts +4 -2
  115. package/dist/features/sidebar/helpers/create-sidebar.d.ts.map +1 -1
  116. package/dist/features/sidebar/helpers/create-sidebar.js +33 -0
  117. package/dist/features/sidebar/hooks/useSidebar.d.ts +2 -3
  118. package/dist/features/sidebar/hooks/useSidebar.d.ts.map +1 -1
  119. package/dist/features/sidebar/hooks/useSidebar.js +18 -0
  120. package/dist/features/sidebar/index.d.ts +2 -1
  121. package/dist/features/sidebar/index.d.ts.map +1 -1
  122. package/dist/features/traverse-schema/helpers/get-tag.d.ts +4 -2
  123. package/dist/features/traverse-schema/helpers/get-tag.d.ts.map +1 -1
  124. package/dist/features/traverse-schema/helpers/get-tag.js +7 -0
  125. package/dist/features/traverse-schema/helpers/traverse-description.js +33 -0
  126. package/dist/features/traverse-schema/helpers/traverse-document.d.ts.map +1 -1
  127. package/dist/features/traverse-schema/helpers/traverse-document.js +34 -0
  128. package/dist/features/traverse-schema/helpers/traverse-paths.d.ts +5 -3
  129. package/dist/features/traverse-schema/helpers/traverse-paths.d.ts.map +1 -1
  130. package/dist/features/traverse-schema/helpers/traverse-paths.js +32 -0
  131. package/dist/features/traverse-schema/helpers/traverse-schemas.d.ts +2 -2
  132. package/dist/features/traverse-schema/helpers/traverse-schemas.d.ts.map +1 -1
  133. package/dist/features/traverse-schema/helpers/traverse-schemas.js +23 -0
  134. package/dist/features/traverse-schema/helpers/traverse-tags.d.ts +2 -2
  135. package/dist/features/traverse-schema/helpers/traverse-tags.d.ts.map +1 -1
  136. package/dist/features/traverse-schema/helpers/traverse-tags.js +43 -0
  137. package/dist/features/traverse-schema/helpers/traverse-webhooks.d.ts +2 -2
  138. package/dist/features/traverse-schema/helpers/traverse-webhooks.d.ts.map +1 -1
  139. package/dist/features/traverse-schema/helpers/traverse-webhooks.js +26 -0
  140. package/dist/features/traverse-schema/index.d.ts +3 -3
  141. package/dist/features/traverse-schema/index.d.ts.map +1 -1
  142. package/dist/features/traverse-schema/types.d.ts +8 -5
  143. package/dist/features/traverse-schema/types.d.ts.map +1 -1
  144. package/dist/helpers/parse.d.ts +2 -1
  145. package/dist/helpers/parse.d.ts.map +1 -1
  146. package/dist/helpers/parse.js +72 -88
  147. package/dist/hooks/useMultipleDocuments.d.ts +6 -6
  148. package/dist/hooks/useMultipleDocuments.d.ts.map +1 -1
  149. package/dist/hooks/useNavState.d.ts +1 -1
  150. package/dist/hooks/useNavState.d.ts.map +1 -1
  151. package/dist/hooks/useNavState.js +14 -9
  152. package/dist/hooks/useOperation.d.ts +7 -7
  153. package/dist/hooks/useOperation.d.ts.map +1 -1
  154. package/dist/hooks/useOperation.js +13 -12
  155. package/dist/index.d.ts +0 -1
  156. package/dist/index.d.ts.map +1 -1
  157. package/dist/index.js +23 -25
  158. package/dist/legacy/fixtures/index.d.ts +1 -1
  159. package/dist/libs/openapi.d.ts +3 -4
  160. package/dist/libs/openapi.d.ts.map +1 -1
  161. package/dist/libs/openapi.js +8 -9
  162. package/dist/style.css +1 -1
  163. package/dist/v2/ApiReferenceWorkspace.vue.d.ts +4 -18
  164. package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
  165. package/dist/v2/ApiReferenceWorkspace.vue.js +68 -45
  166. package/package.json +16 -16
  167. package/dist/components/Content/Webhooks/index.d.ts +0 -2
  168. package/dist/components/Content/Webhooks/index.d.ts.map +0 -1
  169. package/dist/features/Operation/Webhooks.vue.d.ts +0 -7
  170. package/dist/features/Operation/Webhooks.vue.d.ts.map +0 -1
  171. package/dist/features/Operation/Webhooks.vue.js +0 -7
  172. package/dist/features/Operation/Webhooks.vue2.js +0 -121
  173. package/dist/features/Operation/components/Webhook.vue.d.ts +0 -7
  174. package/dist/features/Operation/components/Webhook.vue.d.ts.map +0 -1
  175. package/dist/features/Operation/components/Webhook.vue.js +0 -7
  176. package/dist/features/Operation/components/Webhook.vue2.js +0 -29
  177. package/dist/features/traverse-schema/helpers/operation-id-params.d.ts +0 -8
  178. package/dist/features/traverse-schema/helpers/operation-id-params.d.ts.map +0 -1
  179. package/dist/features/traverse-schema/helpers/operation-id-params.js +0 -8
  180. package/dist/hooks/useSidebar.d.ts +0 -53
  181. package/dist/hooks/useSidebar.d.ts.map +0 -1
  182. package/dist/hooks/useSidebar.js +0 -248
  183. package/dist/legacy/fixtures/httpRequestMethods.js +0 -14
@@ -1,35 +1,35 @@
1
- import { defineComponent as _, computed as s, inject as x, createBlock as u, openBlock as t, resolveDynamicComponent as ee, normalizeClass as U, withCtx as y, createCommentVNode as l, createElementBlock as o, createVNode as m, createSlots as ne, createTextVNode as B, toDisplayString as h, unref as p, Fragment as f, renderList as M, createElementVNode as v } from "vue";
2
- import { Disclosure as ie, DisclosurePanel as te, DisclosureButton as ae } from "@headlessui/vue";
3
- import { ScalarMarkdown as j, ScalarIcon as oe } from "@scalar/components";
4
- import { optimizeValueForDisplay as re, compositions as se } from "./helpers/optimizeValueForDisplay.js";
5
- import { DISCRIMINATOR_CONTEXT as le } from "../../../hooks/useDiscriminator.js";
6
- import $ from "./Schema.vue.js";
7
- import z from "./SchemaComposition.vue.js";
8
- import me from "./SchemaDiscriminator.vue.js";
9
- import pe from "./SchemaPropertyHeading.vue.js";
10
- import de from "../../SpecificationExtension/SpecificationExtension.vue.js";
11
- const ce = {
1
+ import { defineComponent as W, computed as s, inject as Y, createBlock as y, openBlock as t, resolveDynamicComponent as _, normalizeClass as w, withCtx as h, createCommentVNode as l, createElementBlock as r, createVNode as m, createSlots as x, createTextVNode as j, toDisplayString as f, unref as p, Fragment as g, renderList as P, createElementVNode as b } from "vue";
2
+ import { Disclosure as ee, DisclosurePanel as ne, DisclosureButton as ie } from "@headlessui/vue";
3
+ import { ScalarMarkdown as B, ScalarIcon as te } from "@scalar/components";
4
+ import { optimizeValueForDisplay as ae, compositions as re } from "./helpers/optimizeValueForDisplay.js";
5
+ import { DISCRIMINATOR_CONTEXT as oe } from "../../../hooks/useDiscriminator.js";
6
+ import q from "./Schema.vue.js";
7
+ import F from "./SchemaComposition.vue.js";
8
+ import se from "./SchemaDiscriminator.vue.js";
9
+ import le from "./SchemaPropertyHeading.vue.js";
10
+ import me from "../../SpecificationExtension/SpecificationExtension.vue.js";
11
+ const pe = {
12
12
  key: 1,
13
13
  class: "property-description"
14
- }, ue = {
14
+ }, ce = {
15
15
  key: 2,
16
16
  class: "property-description"
17
- }, ye = {
17
+ }, de = {
18
18
  key: 3,
19
19
  class: "property-enum"
20
- }, he = {
20
+ }, ue = {
21
21
  key: 0,
22
22
  class: "property-list"
23
- }, fe = { class: "property-heading" }, ge = { class: "property-name" }, ve = { class: "property-description" }, be = {
23
+ }, ye = { class: "property-heading" }, he = { class: "property-name" }, fe = { class: "property-description" }, ge = {
24
24
  key: 1,
25
25
  class: "property-enum-values"
26
- }, ke = { class: "property-enum-value-label" }, Ne = { class: "property-enum-value-label" }, Me = {
26
+ }, ve = { class: "property-enum-value-label" }, be = { class: "property-enum-value-label" }, ke = {
27
27
  key: 4,
28
28
  class: "children"
29
- }, Se = {
29
+ }, Ne = {
30
30
  key: 0,
31
31
  class: "children"
32
- }, we = /* @__PURE__ */ _({
32
+ }, Ve = /* @__PURE__ */ W({
33
33
  __name: "SchemaProperty",
34
34
  props: {
35
35
  is: {},
@@ -51,8 +51,8 @@ const ce = {
51
51
  isDiscriminator: { type: Boolean }
52
52
  },
53
53
  emits: ["update:modelValue"],
54
- setup(L, { emit: Z }) {
55
- const S = L, X = Z, O = {
54
+ setup(U, { emit: $ }) {
55
+ const k = U, z = $, O = {
56
56
  integer: {
57
57
  _default: "Integer numbers.",
58
58
  int32: "Signed 32-bit integers (commonly used integer type).",
@@ -65,131 +65,136 @@ const ce = {
65
65
  byte: "base64-encoded characters, for example, U3dhZ2dlciByb2Nrcw==",
66
66
  binary: "binary data, used to describe files"
67
67
  }
68
- }, D = (e, i) => i != null && i.properties || i != null && i.additionalProperties || i != null && i.patternProperties || i != null && i.allOf ? null : e || (i == null ? void 0 : i.description) || null, C = (e) => !e || !O[e.type] ? null : O[e.type][e.format || "_default"], c = (e) => {
69
- var i;
70
- return (e == null ? void 0 : e.enum) || ((i = e == null ? void 0 : e.items) == null ? void 0 : i.enum) || [];
68
+ }, S = (e, n) => n != null && n.properties || n != null && n.additionalProperties || n != null && n.patternProperties || n != null && n.allOf ? null : e || (n == null ? void 0 : n.description) || null, C = (e) => !e || !O[e.type] ? null : O[e.type][e.format || "_default"], d = (e) => {
69
+ var n;
70
+ return (e == null ? void 0 : e.enum) || ((n = e == null ? void 0 : e.items) == null ? void 0 : n.enum) || [];
71
71
  }, E = s(
72
- () => c(n.value).length > 9
73
- ), H = s(() => E.value ? 5 : 9), G = s(
74
- () => c(n.value).slice(0, H.value)
75
- ), J = s(
76
- () => c(n.value).slice(H.value)
77
- ), n = s(() => re(S.value)), d = x(le, null), r = s(() => {
72
+ () => d(i.value).length > 9
73
+ ), H = s(() => E.value ? 5 : 9), L = s(
74
+ () => d(i.value).slice(0, H.value)
75
+ ), Z = s(
76
+ () => d(i.value).slice(H.value)
77
+ ), i = s(() => ae(k.value)), c = Y(oe, null), o = s(() => {
78
78
  var e;
79
- return (e = d == null ? void 0 : d.value) != null && e.mergedSchema ? d.value.mergedSchema : n.value;
80
- }), K = s(() => {
79
+ return k.level > 0 ? i.value : (e = c == null ? void 0 : c.value) != null && e.mergedSchema ? c.value.mergedSchema : i.value;
80
+ }), X = s(() => {
81
81
  var e;
82
- return ((e = d == null ? void 0 : d.value) == null ? void 0 : e.selectedType) || (S.discriminatorMapping ? Object.keys(S.discriminatorMapping)[0] : "");
83
- }), Q = (e, i, b, k, N) => i || b || k || (e == null ? void 0 : e.deprecated) || (e == null ? void 0 : e.const) || (e == null ? void 0 : e.enum) && e.enum.length === 1 || (e == null ? void 0 : e.type) || (e == null ? void 0 : e.nullable) === !0 || (e == null ? void 0 : e.writeOnly) || (e == null ? void 0 : e.readOnly) || N, P = (e) => {
84
- X("update:modelValue", e);
82
+ return ((e = c == null ? void 0 : c.value) == null ? void 0 : e.selectedType) || (k.discriminatorMapping ? Object.keys(k.discriminatorMapping)[0] : "");
83
+ }), G = (e, n, u, N, M) => n || u || N || (e == null ? void 0 : e.deprecated) || (e == null ? void 0 : e.const) || (e == null ? void 0 : e.enum) && e.enum.length === 1 || (e == null ? void 0 : e.type) || (e == null ? void 0 : e.nullable) === !0 || (e == null ? void 0 : e.writeOnly) || (e == null ? void 0 : e.readOnly) || M, D = (e) => {
84
+ z("update:modelValue", e);
85
85
  }, V = s(() => {
86
- const e = n.value;
86
+ const e = i.value;
87
87
  if (!(e != null && e.items) || typeof e.items != "object")
88
88
  return !1;
89
- const i = e.items;
90
- return "type" in i && ["object"].includes(i.type) || "$ref" in i || "discriminator" in i || "allOf" in i || "oneOf" in i || "anyOf" in i;
91
- }), W = (e) => {
92
- const i = n.value;
93
- return !(i != null && i.items) || typeof i.items != "object" || !(e in i.items) ? !1 : !V.value;
94
- }, Y = s(() => V.value);
95
- return (e, i) => {
96
- var b;
97
- return t(), u(ee(e.is ?? "li"), {
98
- class: U(["property", [
99
- (D(e.description, n.value), ""),
89
+ const n = e.items;
90
+ return "type" in n && ["object"].includes(n.type) || "$ref" in n || "discriminator" in n || "allOf" in n || "oneOf" in n || "anyOf" in n;
91
+ }), J = (e) => {
92
+ const n = i.value;
93
+ return !(n != null && n.items) || typeof n.items != "object" || !(e in n.items) ? !1 : !V.value;
94
+ }, K = s(() => V.value), Q = s(() => {
95
+ if (!i.value)
96
+ return !1;
97
+ const e = i.value, n = e.type === "object" || Array.isArray(e.type) && e.type.includes("object"), u = e.properties || e.additionalProperties;
98
+ return n && u;
99
+ });
100
+ return (e, n) => {
101
+ var u;
102
+ return t(), y(_(e.is ?? "li"), {
103
+ class: w(["property", [
104
+ (S(e.description, i.value), ""),
100
105
  `property--level-${e.level}`,
101
106
  {
102
107
  "property--compact": e.compact,
103
- "property--deprecated": (b = n.value) == null ? void 0 : b.deprecated
108
+ "property--deprecated": (u = i.value) == null ? void 0 : u.deprecated
104
109
  }
105
110
  ]])
106
111
  }, {
107
- default: y(() => {
108
- var k, N, I, w, A, R, T;
112
+ default: h(() => {
113
+ var N, M, A, I;
109
114
  return [
110
- Q(
111
- n.value,
115
+ G(
116
+ i.value,
112
117
  e.name,
113
118
  e.additional,
114
119
  e.pattern,
115
120
  e.required
116
- ) ? (t(), u(pe, {
121
+ ) ? (t(), y(le, {
117
122
  key: 0,
118
123
  additional: e.additional,
119
- enum: c(n.value).length > 0,
124
+ enum: d(i.value).length > 0,
120
125
  pattern: e.pattern,
121
126
  required: e.required,
122
- value: n.value,
127
+ value: i.value,
123
128
  schemas: e.schemas,
124
129
  hideModelNames: e.hideModelNames
125
- }, ne({ _: 2 }, [
130
+ }, x({ _: 2 }, [
126
131
  e.name ? {
127
132
  name: "name",
128
- fn: y(() => [
129
- B(h(e.name), 1)
133
+ fn: h(() => [
134
+ j(f(e.name), 1)
130
135
  ]),
131
136
  key: "0"
132
137
  } : void 0,
133
- (k = n.value) != null && k.example ? {
138
+ (N = i.value) != null && N.example ? {
134
139
  name: "example",
135
- fn: y(() => [
136
- B(" Example: " + h(n.value.example), 1)
140
+ fn: h(() => [
141
+ j(" Example: " + f(i.value.example), 1)
137
142
  ]),
138
143
  key: "1"
139
144
  } : void 0
140
145
  ]), 1032, ["additional", "enum", "pattern", "required", "value", "schemas", "hideModelNames"])) : l("", !0),
141
- D(e.description, n.value) ? (t(), o("div", ce, [
142
- m(p(j), {
143
- value: D(e.description, n.value)
146
+ S(e.description, i.value) ? (t(), r("div", pe, [
147
+ m(p(B), {
148
+ value: S(e.description, i.value)
144
149
  }, null, 8, ["value"])
145
- ])) : C(n.value) ? (t(), o("div", ue, [
146
- m(p(j), {
147
- value: C(n.value) || ""
150
+ ])) : C(i.value) ? (t(), r("div", ce, [
151
+ m(p(B), {
152
+ value: C(i.value) || ""
148
153
  }, null, 8, ["value"])
149
154
  ])) : l("", !0),
150
- ((N = c(n.value)) == null ? void 0 : N.length) > 0 ? (t(), o("div", ye, [
151
- Array.isArray((I = n.value) == null ? void 0 : I["x-enumDescriptions"]) ? (t(), o("div", he, [
152
- (t(!0), o(f, null, M(c(n.value), (a) => (t(), o("div", {
155
+ ((M = d(i.value)) == null ? void 0 : M.length) > 0 && !e.isDiscriminator ? (t(), r("div", de, [
156
+ Array.isArray((A = i.value) == null ? void 0 : A["x-enumDescriptions"]) ? (t(), r("div", ue, [
157
+ (t(!0), r(g, null, P(d(i.value), (a) => (t(), r("div", {
153
158
  key: a,
154
159
  class: "property"
155
160
  }, [
156
- v("div", fe, [
157
- v("div", ge, h(a), 1)
161
+ b("div", ye, [
162
+ b("div", he, f(a), 1)
158
163
  ]),
159
- v("div", ve, [
160
- m(p(j), {
161
- value: n.value["x-enumDescriptions"][a]
164
+ b("div", fe, [
165
+ m(p(B), {
166
+ value: i.value["x-enumDescriptions"][a]
162
167
  }, null, 8, ["value"])
163
168
  ])
164
169
  ]))), 128))
165
- ])) : (t(), o("ul", be, [
166
- (t(!0), o(f, null, M(G.value, (a) => (t(), o("li", {
170
+ ])) : (t(), r("ul", ge, [
171
+ (t(!0), r(g, null, P(L.value, (a) => (t(), r("li", {
167
172
  key: a,
168
173
  class: "property-enum-value"
169
174
  }, [
170
- v("span", ke, h(a), 1)
175
+ b("span", ve, f(a), 1)
171
176
  ]))), 128)),
172
- E.value ? (t(), u(p(ie), { key: 0 }, {
173
- default: y(({ open: a }) => [
174
- m(p(te), null, {
175
- default: y(() => [
176
- (t(!0), o(f, null, M(J.value, (g) => (t(), o("li", {
177
- key: g,
177
+ E.value ? (t(), y(p(ee), { key: 0 }, {
178
+ default: h(({ open: a }) => [
179
+ m(p(ne), null, {
180
+ default: h(() => [
181
+ (t(!0), r(g, null, P(Z.value, (v) => (t(), r("li", {
182
+ key: v,
178
183
  class: "property-enum-value"
179
184
  }, [
180
- v("span", Ne, h(g), 1)
185
+ b("span", be, f(v), 1)
181
186
  ]))), 128))
182
187
  ]),
183
188
  _: 1
184
189
  }),
185
- m(p(ae), { class: "enum-toggle-button" }, {
186
- default: y(() => [
187
- m(p(oe), {
188
- class: U(["enum-toggle-button-icon", { "enum-toggle-button-icon--open": a }]),
190
+ m(p(ie), { class: "enum-toggle-button" }, {
191
+ default: h(() => [
192
+ m(p(te), {
193
+ class: w(["enum-toggle-button-icon", { "enum-toggle-button-icon--open": a }]),
189
194
  icon: "Add",
190
195
  size: "sm"
191
196
  }, null, 8, ["class"]),
192
- B(" " + h(a ? "Hide values" : "Show all values"), 1)
197
+ j(" " + f(a ? "Hide values" : "Show all values"), 1)
193
198
  ]),
194
199
  _: 2
195
200
  }, 1024)
@@ -198,40 +203,40 @@ const ce = {
198
203
  })) : l("", !0)
199
204
  ]))
200
205
  ])) : l("", !0),
201
- ((w = n.value) == null ? void 0 : w.type) === "object" && ((A = n.value) != null && A.properties || (R = n.value) != null && R.additionalProperties) ? (t(), o("div", Me, [
202
- m($, {
206
+ Q.value ? (t(), r("div", ke, [
207
+ m(q, {
203
208
  compact: e.compact,
204
209
  level: e.level + 1,
205
210
  name: e.name,
206
211
  noncollapsible: e.noncollapsible,
207
- value: r.value,
208
- resolvedSchema: r.value,
212
+ value: o.value,
213
+ resolvedSchema: o.value,
209
214
  discriminatorMapping: e.discriminatorMapping,
210
215
  discriminatorPropertyName: e.discriminatorPropertyName,
211
216
  schemas: e.schemas,
212
- "onUpdate:modelValue": P
217
+ "onUpdate:modelValue": D
213
218
  }, null, 8, ["compact", "level", "name", "noncollapsible", "value", "resolvedSchema", "discriminatorMapping", "discriminatorPropertyName", "schemas"])
214
219
  ])) : l("", !0),
215
- (T = n.value) != null && T.items && typeof n.value.items == "object" ? (t(), o(f, { key: 5 }, [
216
- Y.value ? (t(), o("div", Se, [
217
- m($, {
220
+ (I = i.value) != null && I.items && typeof i.value.items == "object" ? (t(), r(g, { key: 5 }, [
221
+ K.value ? (t(), r("div", Ne, [
222
+ m(q, {
218
223
  compact: e.compact,
219
224
  level: e.level + 1,
220
225
  name: e.name,
221
226
  noncollapsible: e.noncollapsible,
222
- value: r.value && typeof r.value == "object" && "items" in r.value ? r.value.items : n.value.items,
223
- resolvedSchema: r.value && typeof r.value == "object" && "items" in r.value ? r.value.items : n.value.items,
227
+ value: o.value && typeof o.value == "object" && "items" in o.value ? o.value.items : i.value.items,
228
+ resolvedSchema: o.value && typeof o.value == "object" && "items" in o.value ? o.value.items : i.value.items,
224
229
  discriminatorMapping: e.discriminatorMapping,
225
230
  discriminatorPropertyName: e.discriminatorPropertyName,
226
231
  schemas: e.schemas,
227
- "onUpdate:modelValue": P
232
+ "onUpdate:modelValue": D
228
233
  }, null, 8, ["compact", "level", "name", "noncollapsible", "value", "resolvedSchema", "discriminatorMapping", "discriminatorPropertyName", "schemas"])
229
234
  ])) : l("", !0)
230
235
  ], 64)) : l("", !0),
231
- (t(!0), o(f, null, M(p(se), (a) => {
232
- var g, q, F;
233
- return t(), o(f, { key: a }, [
234
- (g = n.value) != null && g[a] && !((q = n.value) != null && q.items && typeof a == "string" && typeof n.value.items == "object" && a in n.value.items) ? (t(), u(z, {
236
+ (t(!0), r(g, null, P(p(re), (a) => {
237
+ var v, R, T;
238
+ return t(), r(g, { key: a }, [
239
+ (v = i.value) != null && v[a] && !((R = i.value) != null && R.items && typeof a == "string" && typeof i.value.items == "object" && a in i.value.items) ? (t(), y(F, {
235
240
  key: 0,
236
241
  compact: e.compact,
237
242
  composition: a,
@@ -240,8 +245,8 @@ const ce = {
240
245
  name: e.name,
241
246
  noncollapsible: e.noncollapsible,
242
247
  schemas: e.schemas,
243
- value: n.value
244
- }, null, 8, ["compact", "composition", "hideHeading", "level", "name", "noncollapsible", "schemas", "value"])) : W(a) ? (t(), u(z, {
248
+ value: i.value
249
+ }, null, 8, ["compact", "composition", "hideHeading", "level", "name", "noncollapsible", "schemas", "value"])) : J(a) ? (t(), y(F, {
245
250
  key: 1,
246
251
  compact: e.compact,
247
252
  composition: a,
@@ -250,17 +255,17 @@ const ce = {
250
255
  name: e.name,
251
256
  noncollapsible: e.noncollapsible,
252
257
  schemas: e.schemas,
253
- value: (F = n.value) == null ? void 0 : F.items
258
+ value: (T = i.value) == null ? void 0 : T.items
254
259
  }, null, 8, ["compact", "composition", "hideHeading", "level", "name", "noncollapsible", "schemas", "value"])) : l("", !0)
255
260
  ], 64);
256
261
  }), 128)),
257
- e.isDiscriminator && e.discriminatorMapping && e.compact ? (t(), u(me, {
262
+ e.isDiscriminator && e.discriminatorMapping && e.compact ? (t(), y(se, {
258
263
  key: 6,
259
264
  "discriminator-mapping": e.discriminatorMapping,
260
- discriminator: K.value,
261
- "onUpdate:modelValue": P
265
+ discriminator: X.value,
266
+ "onUpdate:modelValue": D
262
267
  }, null, 8, ["discriminator-mapping", "discriminator"])) : l("", !0),
263
- m(p(de), { value: n.value }, null, 8, ["value"])
268
+ m(p(me), { value: i.value }, null, 8, ["value"])
264
269
  ];
265
270
  }),
266
271
  _: 1
@@ -269,5 +274,5 @@ const ce = {
269
274
  }
270
275
  });
271
276
  export {
272
- we as default
277
+ Ve as default
273
278
  };
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaPropertyHeading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaPropertyHeading.vue"],"names":[],"mappings":"AA4ZA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAQjE,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,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;AA0KF,iBAAS,cAAc;WAyVT,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
+ {"version":3,"file":"SchemaPropertyHeading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaPropertyHeading.vue"],"names":[],"mappings":"AAsUA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AASjE,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,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;AAmFF,iBAAS,cAAc;WAyVT,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
- import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-a92839e2"]]);
3
+ import a from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ a(o, [["__scopeId", "data-v-5af5a0b2"]]);
5
5
  export {
6
6
  m as default
7
7
  };