@scalar/api-reference 1.28.5 → 1.28.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (139) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist/browser/standalone.js +6206 -6147
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  5. package/dist/components/ApiReferenceLayout.vue.js +2 -2
  6. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
  7. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +2 -2
  8. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  9. package/dist/components/Content/Content.vue.js +2 -2
  10. package/dist/components/Content/Content.vue2.js +57 -55
  11. package/dist/components/Content/Introduction/Description.vue.d.ts.map +1 -1
  12. package/dist/components/Content/Introduction/Description.vue.js +2 -2
  13. package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
  14. package/dist/components/Content/Introduction/Introduction.vue.js +2 -2
  15. package/dist/components/Content/Introduction/Introduction.vue2.js +24 -24
  16. package/dist/components/Content/Lazy/Lazy.vue.d.ts.map +1 -1
  17. package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
  18. package/dist/components/Content/Lazy/Loading.vue.js +4 -2
  19. package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
  20. package/dist/components/Content/Models/Models.vue.js +2 -2
  21. package/dist/components/Content/Models/Models.vue2.js +18 -17
  22. package/dist/components/Content/Schema/Schema.vue.d.ts +1 -0
  23. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  24. package/dist/components/Content/Schema/Schema.vue.js +4 -4
  25. package/dist/components/Content/Schema/Schema.vue2.js +79 -67
  26. package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts +12 -0
  27. package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts.map +1 -0
  28. package/dist/components/Content/Schema/SchemaDiscriminator.vue.js +7 -0
  29. package/dist/components/Content/Schema/SchemaDiscriminator.vue2.js +109 -0
  30. package/dist/components/Content/Schema/SchemaHeading.vue.d.ts.map +1 -1
  31. package/dist/components/Content/Schema/SchemaHeading.vue.js +2 -2
  32. package/dist/components/Content/Schema/SchemaHeading.vue2.js +26 -31
  33. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +3 -0
  34. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  35. package/dist/components/Content/Schema/SchemaProperty.vue.js +1 -1
  36. package/dist/components/Content/Schema/SchemaProperty.vue2.js +143 -141
  37. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  38. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +1 -1
  39. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +83 -99
  40. package/dist/components/Content/Tag/OperationsList.vue.js +2 -2
  41. package/dist/components/Content/Tag/OperationsList.vue2.js +3 -3
  42. package/dist/components/Content/Tag/Tag.vue.d.ts.map +1 -1
  43. package/dist/components/Content/Tag/Tag.vue.js +41 -36
  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 +38 -36
  47. package/dist/components/Content/Tag/TagSection.vue.js +2 -2
  48. package/dist/components/Content/Tag/TagSection.vue2.js +3 -3
  49. package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
  50. package/dist/components/Layouts/ModernLayout.vue.d.ts.map +1 -1
  51. package/dist/components/Layouts/ModernLayout.vue.js +1 -1
  52. package/dist/components/Section/CompactSection.vue.d.ts.map +1 -1
  53. package/dist/components/Section/CompactSection.vue.js +2 -2
  54. package/dist/components/Section/Section.vue.d.ts.map +1 -1
  55. package/dist/components/Section/Section.vue.js +2 -2
  56. package/dist/components/Section/SectionHeaderTag.vue.d.ts.map +1 -1
  57. package/dist/components/Section/SectionHeaderTag.vue.js +2 -2
  58. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  59. package/dist/components/Sidebar/Sidebar.vue.js +2 -2
  60. package/dist/components/Sidebar/Sidebar.vue2.js +2 -1
  61. package/dist/components/Sidebar/SidebarElement.vue.d.ts.map +1 -1
  62. package/dist/components/Sidebar/SidebarElement.vue.js +1 -1
  63. package/dist/components/Sidebar/SidebarElement.vue2.js +2 -1
  64. package/dist/esm.d.ts.map +1 -1
  65. package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts.map +1 -1
  66. package/dist/features/ApiClientModal/useApiClient.d.ts +2 -4
  67. package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
  68. package/dist/features/BaseUrl/BaseUrl.vue.d.ts.map +1 -1
  69. package/dist/features/BaseUrl/BaseUrl.vue.js +2 -1
  70. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
  71. package/dist/features/ExampleRequest/ExampleRequest.vue.js +1 -1
  72. package/dist/features/ExampleRequest/ExampleRequest.vue2.js +2 -1
  73. package/dist/features/ExampleResponses/ExampleResponses.vue.d.ts.map +1 -1
  74. package/dist/features/ExampleResponses/ExampleResponses.vue.js +3 -3
  75. package/dist/features/ExampleResponses/ExampleResponses.vue2.js +6 -8
  76. package/dist/features/Operation/Operation.vue.d.ts +2 -0
  77. package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
  78. package/dist/features/Operation/Operation.vue.js +13 -10
  79. package/dist/features/Operation/Webhooks.vue.d.ts.map +1 -1
  80. package/dist/features/Operation/Webhooks.vue.js +2 -2
  81. package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts.map +1 -1
  82. package/dist/features/Operation/components/ContentTypeSelect.vue.js +4 -4
  83. package/dist/features/Operation/components/OperationParameters.vue.d.ts +2 -0
  84. package/dist/features/Operation/components/OperationParameters.vue.d.ts.map +1 -1
  85. package/dist/features/Operation/components/OperationParameters.vue.js +37 -31
  86. package/dist/features/Operation/components/OperationResponses.vue.d.ts +2 -0
  87. package/dist/features/Operation/components/OperationResponses.vue.d.ts.map +1 -1
  88. package/dist/features/Operation/components/OperationResponses.vue.js +15 -13
  89. package/dist/features/Operation/components/ParameterList.vue.d.ts +2 -0
  90. package/dist/features/Operation/components/ParameterList.vue.d.ts.map +1 -1
  91. package/dist/features/Operation/components/ParameterList.vue.js +2 -2
  92. package/dist/features/Operation/components/ParameterList.vue2.js +14 -12
  93. package/dist/features/Operation/components/ParameterListItem.vue.d.ts +2 -0
  94. package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
  95. package/dist/features/Operation/components/ParameterListItem.vue.js +2 -2
  96. package/dist/features/Operation/components/ParameterListItem.vue2.js +20 -18
  97. package/dist/features/Operation/components/RequestBody.vue.d.ts +2 -0
  98. package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
  99. package/dist/features/Operation/components/RequestBody.vue.js +2 -2
  100. package/dist/features/Operation/components/RequestBody.vue2.js +20 -18
  101. package/dist/features/Operation/hooks/useResponses.d.ts.map +1 -1
  102. package/dist/features/Operation/hooks/useResponses.js +2 -1
  103. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +2 -0
  104. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  105. package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
  106. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +29 -24
  107. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +2 -0
  108. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  109. package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
  110. package/dist/features/Operation/layouts/ModernLayout.vue2.js +66 -56
  111. package/dist/features/Search/SearchModal.vue.d.ts.map +1 -1
  112. package/dist/features/Search/SearchModal.vue.js +2 -2
  113. package/dist/features/Search/SearchModal.vue2.js +2 -1
  114. package/dist/helpers/index.d.ts +4 -4
  115. package/dist/helpers/scrollToId.d.ts.map +1 -1
  116. package/dist/helpers/specHelpers.js +15 -14
  117. package/dist/hooks/index.d.ts +2 -2
  118. package/dist/hooks/useMultipleDocuments.d.ts +1 -0
  119. package/dist/hooks/useMultipleDocuments.d.ts.map +1 -1
  120. package/dist/hooks/useNavState.d.ts.map +1 -1
  121. package/dist/hooks/useNavState.js +2 -1
  122. package/dist/hooks/useReactiveSpec.d.ts.map +1 -1
  123. package/dist/hooks/useSidebar.d.ts.map +1 -1
  124. package/dist/hooks/useSidebar.js +3 -2
  125. package/dist/index.d.ts +6 -4
  126. package/dist/index.d.ts.map +1 -1
  127. package/dist/index.js +39 -76
  128. package/dist/libs/operation.d.ts.map +1 -1
  129. package/dist/standalone/lib/html-api.d.ts +4 -4
  130. package/dist/standalone/lib/html-api.d.ts.map +1 -1
  131. package/dist/stores/useHttpClientStore.d.ts.map +1 -1
  132. package/dist/style.css +1 -1
  133. package/package.json +9 -8
  134. package/dist/helpers/getVariableNames.js +0 -7
  135. package/dist/helpers/hasSecuritySchemes.js +0 -7
  136. package/dist/helpers/mapFromObject.js +0 -7
  137. package/dist/helpers/mergeAllObjects.js +0 -7
  138. package/dist/hooks/useClientStore.js +0 -5
  139. package/dist/hooks/useRefOnMount.js +0 -10
@@ -1,44 +1,39 @@
1
- import { defineComponent as Y, computed as f, openBlock as l, createElementBlock as a, normalizeClass as G, createVNode as i, createSlots as ee, withCtx as h, createTextVNode as b, toDisplayString as u, unref as s, createCommentVNode as n, createElementVNode as v, Fragment as p, renderList as m, createBlock as k } from "vue";
2
- import { Disclosure as te, DisclosurePanel as le, DisclosureButton as ae } from "@headlessui/vue";
3
- import { ScalarMarkdown as _, ScalarIcon as oe } from "@scalar/components";
4
- import { formatExample as re } from "./helpers/formatExample.js";
5
- import { optimizeValueForDisplay as se, discriminators as J } from "./helpers/optimizeValueForDisplay.js";
6
- import g from "./Schema.vue.js";
1
+ import { defineComponent as X, computed as y, openBlock as l, createElementBlock as o, normalizeClass as U, createBlock as k, createSlots as Y, withCtx as f, createTextVNode as B, toDisplayString as i, createCommentVNode as a, createVNode as p, unref as n, createElementVNode as u, Fragment as c, renderList as h } from "vue";
2
+ import { Disclosure as ee, DisclosurePanel as te, DisclosureButton as le } from "@headlessui/vue";
3
+ import { ScalarMarkdown as S, ScalarIcon as se } from "@scalar/components";
4
+ import { formatExample as oe } from "./helpers/formatExample.js";
5
+ import { optimizeValueForDisplay as re, discriminators as Z } from "./helpers/optimizeValueForDisplay.js";
6
+ import M from "./Schema.vue.js";
7
+ import $ from "./SchemaDiscriminator.vue.js";
7
8
  import ne from "./SchemaPropertyHeading.vue.js";
8
- const ie = {
9
- key: 0,
10
- class: "property-description"
11
- }, ue = {
9
+ const ae = {
12
10
  key: 1,
13
11
  class: "property-description"
14
- }, pe = {
12
+ }, ie = {
15
13
  key: 2,
16
- class: "property-example custom-scroll"
17
- }, ce = { class: "property-example-value" }, me = {
14
+ class: "property-description"
15
+ }, pe = {
18
16
  key: 3,
19
17
  class: "property-example custom-scroll"
20
- }, de = { class: "property-example-label" }, ve = {
18
+ }, me = { class: "property-example-value" }, ce = {
21
19
  key: 4,
20
+ class: "property-example custom-scroll"
21
+ }, de = { class: "property-example-label" }, ue = {
22
+ key: 5,
22
23
  class: "property-enum"
23
24
  }, ye = {
24
25
  key: 0,
25
26
  class: "property-list"
26
- }, fe = { class: "property-heading" }, he = { class: "property-name" }, ge = { class: "property-description" }, be = {
27
+ }, fe = { class: "property-heading" }, he = { class: "property-name" }, ve = { class: "property-description" }, ge = {
27
28
  key: 1,
28
29
  class: "property-enum-values"
29
- }, ke = {
30
- key: 5,
30
+ }, be = {
31
+ key: 6,
31
32
  class: "children"
32
- }, _e = {
33
+ }, ke = {
33
34
  key: 0,
34
35
  class: "children"
35
- }, xe = {
36
- key: 0,
37
- class: "property-rule"
38
- }, Ee = {
39
- key: 1,
40
- class: "property-rule"
41
- }, Pe = /* @__PURE__ */ Y({
36
+ }, Pe = /* @__PURE__ */ X({
42
37
  __name: "SchemaProperty",
43
38
  props: {
44
39
  value: {},
@@ -49,10 +44,12 @@ const ie = {
49
44
  description: {},
50
45
  additional: { type: Boolean },
51
46
  pattern: { type: Boolean },
52
- withExamples: { type: Boolean, default: !0 }
47
+ withExamples: { type: Boolean, default: !0 },
48
+ schemas: {},
49
+ hideHeading: { type: Boolean }
53
50
  },
54
- setup(K) {
55
- const Q = K, x = {
51
+ setup(G) {
52
+ const J = G, j = {
56
53
  integer: {
57
54
  _default: "Integer numbers.",
58
55
  int32: "Signed 32-bit integers (commonly used integer type).",
@@ -65,157 +62,162 @@ const ie = {
65
62
  byte: "base64-encoded characters, for example, U3dhZ2dlciByb2Nrcw==",
66
63
  binary: "binary data, used to describe files"
67
64
  }
68
- }, E = (t, r) => r != null && r.properties || r != null && r.additionalProperties || r != null && r.patternProperties ? null : t || (r == null ? void 0 : r.description) || null, j = (t) => !t || !x[t.type] ? null : x[t.type][t.format || "_default"], d = (t) => {
69
- var r;
70
- return (t == null ? void 0 : t.enum) || ((r = t == null ? void 0 : t.items) == null ? void 0 : r.enum) || [];
71
- }, B = f(
72
- () => d(e.value).length > 9
73
- ), S = f(() => B.value ? 5 : 9), W = f(
74
- () => d(e.value).slice(0, S.value)
75
- ), X = f(
76
- () => d(e.value).slice(S.value)
77
- ), e = f(() => se(Q.value)), D = J.find((t) => !e.value || typeof e.value != "object" ? !1 : t in e.value || e.value.items && typeof e.value.items == "object" && t in e.value.items);
78
- return (t, r) => {
79
- var w, A, C, P, F, N, V, q, z, I, L, T, H, O, R, U;
80
- return l(), a("li", {
81
- class: G(["property", [
82
- `property--level-${t.level}`,
65
+ }, E = (e, s) => s != null && s.properties || s != null && s.additionalProperties || s != null && s.patternProperties || s != null && s.allOf ? null : e || (s == null ? void 0 : s.description) || null, D = (e) => !e || !j[e.type] ? null : j[e.type][e.format || "_default"], d = (e) => {
66
+ var s;
67
+ return (e == null ? void 0 : e.enum) || ((s = e == null ? void 0 : e.items) == null ? void 0 : s.enum) || [];
68
+ }, H = y(
69
+ () => d(t.value).length > 9
70
+ ), _ = y(() => H.value ? 5 : 9), K = y(
71
+ () => d(t.value).slice(0, _.value)
72
+ ), Q = y(
73
+ () => d(t.value).slice(_.value)
74
+ ), t = y(() => re(J.value)), w = Z.find((e) => !t.value || typeof t.value != "object" ? !1 : e in t.value || t.value.items && typeof t.value.items == "object" && e in t.value.items), W = (e, s, v, g, b) => s || v || g || (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) || b;
75
+ return (e, s) => {
76
+ var v, g, b, P, C, q, x, A, F, N, O, V, z, I, L, T;
77
+ return l(), o("li", {
78
+ class: U(["property", [
79
+ (E(e.description, t.value), ""),
80
+ `property--level-${e.level}`,
83
81
  {
84
- "property--compact": t.compact,
85
- "property--deprecated": (w = e.value) == null ? void 0 : w.deprecated
82
+ "property--compact": e.compact,
83
+ "property--deprecated": (v = t.value) == null ? void 0 : v.deprecated
86
84
  }
87
85
  ]])
88
86
  }, [
89
- i(ne, {
90
- additional: t.additional,
91
- enum: d(e.value).length > 0,
92
- pattern: t.pattern,
93
- required: t.required,
94
- value: e.value
95
- }, ee({ _: 2 }, [
96
- t.name ? {
87
+ W(
88
+ t.value,
89
+ e.name,
90
+ e.additional,
91
+ e.pattern,
92
+ e.required
93
+ ) ? (l(), k(ne, {
94
+ key: 0,
95
+ additional: e.additional,
96
+ enum: d(t.value).length > 0,
97
+ pattern: e.pattern,
98
+ required: e.required,
99
+ value: t.value
100
+ }, Y({ _: 2 }, [
101
+ e.name ? {
97
102
  name: "name",
98
- fn: h(() => [
99
- b(u(t.name), 1)
103
+ fn: f(() => [
104
+ B(i(e.name), 1)
100
105
  ]),
101
106
  key: "0"
102
107
  } : void 0,
103
- (A = e.value) != null && A.example ? {
108
+ (g = t.value) != null && g.example ? {
104
109
  name: "example",
105
- fn: h(() => [
106
- b(" Example: " + u(e.value.example), 1)
110
+ fn: f(() => [
111
+ B(" Example: " + i(t.value.example), 1)
107
112
  ]),
108
113
  key: "1"
109
114
  } : void 0
110
- ]), 1032, ["additional", "enum", "pattern", "required", "value"]),
111
- E(t.description, e.value) ? (l(), a("div", ie, [
112
- i(s(_), {
113
- value: E(t.description, e.value)
115
+ ]), 1032, ["additional", "enum", "pattern", "required", "value"])) : a("", !0),
116
+ E(e.description, t.value) ? (l(), o("div", ae, [
117
+ p(n(S), {
118
+ value: E(e.description, t.value)
114
119
  }, null, 8, ["value"])
115
- ])) : j(e.value) ? (l(), a("div", ue, [
116
- i(s(_), {
117
- value: j(e.value) || ""
120
+ ])) : D(t.value) ? (l(), o("div", ie, [
121
+ p(n(S), {
122
+ value: D(t.value) || ""
118
123
  }, null, 8, ["value"])
119
- ])) : n("", !0),
120
- t.withExamples && ((C = e.value) != null && C.example || (F = (P = e.value) == null ? void 0 : P.items) != null && F.example) ? (l(), a("div", pe, [
121
- r[0] || (r[0] = v("span", { class: "property-example-label" }, "Example", -1)),
122
- v("code", ce, u(s(re)(
123
- ((N = e.value) == null ? void 0 : N.example) || s(D) && ((V = e.value) == null ? void 0 : V.items) && typeof e.value.items == "object" && e.value.items[s(D)]
124
+ ])) : a("", !0),
125
+ e.withExamples && ((b = t.value) != null && b.example || (C = (P = t.value) == null ? void 0 : P.items) != null && C.example) ? (l(), o("div", pe, [
126
+ s[0] || (s[0] = u("span", { class: "property-example-label" }, "Example", -1)),
127
+ u("code", me, i(n(oe)(
128
+ ((q = t.value) == null ? void 0 : q.example) || n(w) && ((x = t.value) == null ? void 0 : x.items) && typeof t.value.items == "object" && t.value.items[n(w)]
124
129
  )), 1)
125
- ])) : n("", !0),
126
- (q = e.value) != null && q.examples && typeof e.value.examples == "object" && Object.keys(e.value.examples).length > 0 ? (l(), a("div", me, [
127
- v("span", de, u(Object.keys(e.value.examples).length === 1 ? "Example" : "Examples"), 1),
128
- (l(!0), a(p, null, m(e.value.examples, (o, c) => (l(), a("code", {
129
- key: c,
130
+ ])) : a("", !0),
131
+ (A = t.value) != null && A.examples && typeof t.value.examples == "object" && Object.keys(t.value.examples).length > 0 ? (l(), o("div", ce, [
132
+ u("span", de, i(Object.keys(t.value.examples).length === 1 ? "Example" : "Examples"), 1),
133
+ (l(!0), o(c, null, h(t.value.examples, (r, m) => (l(), o("code", {
134
+ key: m,
130
135
  class: "property-example-value"
131
- }, u(o), 1))), 128))
132
- ])) : n("", !0),
133
- ((z = d(e.value)) == null ? void 0 : z.length) > 0 ? (l(), a("div", ve, [
134
- Array.isArray((I = e.value) == null ? void 0 : I["x-enumDescriptions"]) ? (l(), a("div", ye, [
135
- (l(!0), a(p, null, m(d(e.value), (o) => (l(), a("div", {
136
- key: o,
136
+ }, i(r), 1))), 128))
137
+ ])) : a("", !0),
138
+ ((F = d(t.value)) == null ? void 0 : F.length) > 0 ? (l(), o("div", ue, [
139
+ Array.isArray((N = t.value) == null ? void 0 : N["x-enumDescriptions"]) ? (l(), o("div", ye, [
140
+ (l(!0), o(c, null, h(d(t.value), (r) => (l(), o("div", {
141
+ key: r,
137
142
  class: "property"
138
143
  }, [
139
- v("div", fe, [
140
- v("div", he, u(o), 1)
144
+ u("div", fe, [
145
+ u("div", he, i(r), 1)
141
146
  ]),
142
- v("div", ge, [
143
- i(s(_), {
144
- value: e.value["x-enumDescriptions"][o]
147
+ u("div", ve, [
148
+ p(n(S), {
149
+ value: t.value["x-enumDescriptions"][r]
145
150
  }, null, 8, ["value"])
146
151
  ])
147
152
  ]))), 128))
148
- ])) : (l(), a("ul", be, [
149
- (l(!0), a(p, null, m(W.value, (o) => (l(), a("li", {
150
- key: o,
153
+ ])) : (l(), o("ul", ge, [
154
+ (l(!0), o(c, null, h(K.value, (r) => (l(), o("li", {
155
+ key: r,
151
156
  class: "property-enum-value"
152
- }, u(o), 1))), 128)),
153
- B.value ? (l(), k(s(te), { key: 0 }, {
154
- default: h(({ open: o }) => [
155
- i(s(le), null, {
156
- default: h(() => [
157
- (l(!0), a(p, null, m(X.value, (c) => (l(), a("li", {
158
- key: c,
157
+ }, i(r), 1))), 128)),
158
+ H.value ? (l(), k(n(ee), { key: 0 }, {
159
+ default: f(({ open: r }) => [
160
+ p(n(te), null, {
161
+ default: f(() => [
162
+ (l(!0), o(c, null, h(Q.value, (m) => (l(), o("li", {
163
+ key: m,
159
164
  class: "property-enum-value"
160
- }, u(c), 1))), 128))
165
+ }, i(m), 1))), 128))
161
166
  ]),
162
167
  _: 1
163
168
  }),
164
- i(s(ae), { class: "enum-toggle-button" }, {
165
- default: h(() => [
166
- i(s(oe), {
167
- class: G(["enum-toggle-button-icon", { "enum-toggle-button-icon--open": o }]),
169
+ p(n(le), { class: "enum-toggle-button" }, {
170
+ default: f(() => [
171
+ p(n(se), {
172
+ class: U(["enum-toggle-button-icon", { "enum-toggle-button-icon--open": r }]),
168
173
  icon: "Add",
169
174
  size: "sm"
170
175
  }, null, 8, ["class"]),
171
- b(" " + u(o ? "Hide values" : "Show all values"), 1)
176
+ B(" " + i(r ? "Hide values" : "Show all values"), 1)
172
177
  ]),
173
178
  _: 2
174
179
  }, 1024)
175
180
  ]),
176
181
  _: 1
177
- })) : n("", !0)
182
+ })) : a("", !0)
178
183
  ]))
179
- ])) : n("", !0),
180
- ((L = e.value) == null ? void 0 : L.type) === "object" && ((T = e.value) != null && T.properties || (H = e.value) != null && H.additionalProperties) ? (l(), a("div", ke, [
181
- i(g, {
182
- compact: t.compact,
183
- level: t.level + 1,
184
- value: e.value
184
+ ])) : a("", !0),
185
+ ((O = t.value) == null ? void 0 : O.type) === "object" && ((V = t.value) != null && V.properties || (z = t.value) != null && z.additionalProperties) ? (l(), o("div", be, [
186
+ p(M, {
187
+ compact: e.compact,
188
+ level: e.level + 1,
189
+ value: t.value
185
190
  }, null, 8, ["compact", "level", "value"])
186
- ])) : n("", !0),
187
- (O = e.value) != null && O.items && typeof e.value.items == "object" && "type" in e.value.items && typeof e.value.items.type == "string" ? (l(), a(p, { key: 6 }, [
188
- ["object"].includes((U = (R = e.value) == null ? void 0 : R.items) == null ? void 0 : U.type) ? (l(), a("div", _e, [
189
- i(g, {
190
- compact: t.compact,
191
- level: t.level + 1,
192
- value: e.value.items
191
+ ])) : a("", !0),
192
+ (I = t.value) != null && I.items && typeof t.value.items == "object" && "type" in t.value.items && typeof t.value.items.type == "string" ? (l(), o(c, { key: 7 }, [
193
+ ["object"].includes((T = (L = t.value) == null ? void 0 : L.items) == null ? void 0 : T.type) ? (l(), o("div", ke, [
194
+ p(M, {
195
+ compact: e.compact,
196
+ level: e.level + 1,
197
+ value: t.value.items
193
198
  }, null, 8, ["compact", "level", "value"])
194
- ])) : n("", !0)
195
- ], 64)) : n("", !0),
196
- (l(!0), a(p, null, m(s(J), (o) => {
197
- var c, Z;
198
- return l(), a(p, { key: o }, [
199
- (c = e.value) != null && c[o] ? (l(), a("div", xe, [
200
- (l(!0), a(p, null, m(e.value[o], (y) => {
201
- var M, $;
202
- return l(), k(g, {
203
- key: y.id,
204
- compact: t.compact,
205
- level: t.level + 1,
206
- noncollapsible: Array.isArray((M = e.value) == null ? void 0 : M[o]) && (($ = e.value) == null ? void 0 : $[o].length) === 1,
207
- value: y
208
- }, null, 8, ["compact", "level", "noncollapsible", "value"]);
209
- }), 128))
210
- ])) : n("", !0),
211
- (Z = e.value) != null && Z.items && typeof o == "string" && typeof e.value.items == "object" && o in e.value.items && Array.isArray(e.value.items[o]) && t.level < 3 ? (l(), a("div", Ee, [
212
- (l(!0), a(p, null, m(e.value.items[o], (y) => (l(), k(g, {
213
- key: y.id,
214
- compact: t.compact,
215
- level: t.level + 1,
216
- value: y
217
- }, null, 8, ["compact", "level", "value"]))), 128))
218
- ])) : n("", !0)
199
+ ])) : a("", !0)
200
+ ], 64)) : a("", !0),
201
+ (l(!0), o(c, null, h(n(Z), (r) => {
202
+ var m, R;
203
+ return l(), o(c, { key: r }, [
204
+ (m = t.value) != null && m[r] ? (l(), k($, {
205
+ key: 0,
206
+ compact: e.compact,
207
+ discriminator: r,
208
+ hideHeading: e.hideHeading,
209
+ level: e.level,
210
+ schemas: e.schemas,
211
+ value: t.value
212
+ }, null, 8, ["compact", "discriminator", "hideHeading", "level", "schemas", "value"])) : (R = t.value) != null && R.items && typeof r == "string" && typeof t.value.items == "object" && r in t.value.items && Array.isArray(t.value.items[r]) && e.level < 3 ? (l(), k($, {
213
+ key: 1,
214
+ compact: e.compact,
215
+ discriminator: r,
216
+ hideHeading: e.hideHeading,
217
+ level: e.level,
218
+ schemas: e.schemas,
219
+ value: t.value.items
220
+ }, null, 8, ["compact", "discriminator", "hideHeading", "level", "schemas", "value"])) : a("", !0)
219
221
  ], 64);
220
222
  }), 128))
221
223
  ], 2);
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaPropertyHeading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaPropertyHeading.vue"],"names":[],"mappings":"AAgPA,KAAK,WAAW,GAAG;IACf,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;CAClB,CAAC;AA0BJ,iBAAS,cAAc;WAkUT,OAAO,IAA6B;;sBATxB,GAAG;sBACH,GAAG;;;;EAa5B;AAcD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;cAnXN,OAAO;wFA2XpB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,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":"AAyOA,KAAK,WAAW,GAAG;IACf,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;CAClB,CAAC;AAwBJ,iBAAS,cAAc;WAuTT,OAAO,IAA6B;;sBATxB,GAAG;sBACH,GAAG;;;;EAa5B;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;cArWN,OAAO;wFA6WpB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,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 m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-4b65b768"]]);
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-7956666a"]]);
5
5
  export {
6
6
  m as default
7
7
  };