@scalar/api-reference 1.28.14 → 1.28.16

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 (34) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/browser/standalone.js +5125 -5093
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
  5. package/dist/components/Content/Introduction/Introduction.vue.js +2 -2
  6. package/dist/components/Content/Introduction/Introduction.vue2.js +44 -35
  7. package/dist/components/Content/Models/Models.vue.js +2 -2
  8. package/dist/components/Content/Models/Models.vue2.js +17 -17
  9. package/dist/components/Content/Models/ModelsAccordion.vue.js +1 -1
  10. package/dist/components/Content/Models/ModelsAccordion.vue2.js +3 -3
  11. package/dist/components/Content/Schema/Schema.preview.d.ts +525 -0
  12. package/dist/components/Content/Schema/Schema.preview.d.ts.map +1 -1
  13. package/dist/components/Content/Schema/Schema.vue.d.ts +1 -0
  14. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  15. package/dist/components/Content/Schema/Schema.vue.js +2 -2
  16. package/dist/components/Content/Schema/Schema.vue2.js +60 -62
  17. package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts.map +1 -1
  18. package/dist/components/Content/Schema/SchemaDiscriminator.vue.js +2 -2
  19. package/dist/components/Content/Schema/SchemaDiscriminator.vue2.js +32 -50
  20. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +1 -0
  21. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  22. package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
  23. package/dist/components/Content/Schema/SchemaProperty.vue2.js +72 -67
  24. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts +12 -0
  25. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts.map +1 -0
  26. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +70 -0
  27. package/dist/features/Operation/components/ParameterListItem.vue.js +3 -3
  28. package/dist/features/Operation/components/ParameterListItem.vue2.js +12 -12
  29. package/dist/hooks/useSidebar.d.ts +1 -0
  30. package/dist/hooks/useSidebar.d.ts.map +1 -1
  31. package/dist/hooks/useSidebar.js +131 -119
  32. package/dist/index.js +1 -1
  33. package/dist/style.css +1 -1
  34. package/package.json +6 -6
@@ -1,9 +1,9 @@
1
- import { defineComponent as V, computed as E, openBlock as a, createBlock as i, unref as r, withCtx as d, createElementVNode as j, normalizeClass as p, createElementBlock as o, createCommentVNode as s, withDirectives as w, createVNode as y, createTextVNode as v, toDisplayString as k, vShow as z, normalizeStyle as T, Fragment as n, renderList as A } from "vue";
1
+ import { defineComponent as V, computed as E, openBlock as a, createBlock as i, unref as r, withCtx as d, createElementVNode as j, normalizeClass as v, createElementBlock as s, createCommentVNode as o, withDirectives as w, createVNode as u, createTextVNode as h, toDisplayString as f, vShow as z, normalizeStyle as T, Fragment as t, renderList as A } from "vue";
2
2
  import { Disclosure as $, DisclosureButton as D, DisclosurePanel as F } from "@headlessui/vue";
3
3
  import { ScalarMarkdown as I, ScalarIcon as g } from "@scalar/components";
4
4
  import q from "../../ScreenReader.vue.js";
5
5
  import L from "./SchemaHeading.vue.js";
6
- import h from "./SchemaProperty.vue.js";
6
+ import y from "./SchemaProperty.vue.js";
7
7
  const M = {
8
8
  key: 0,
9
9
  class: "schema-card-description"
@@ -17,100 +17,98 @@ const M = {
17
17
  level: { default: 0 },
18
18
  name: {},
19
19
  compact: { type: Boolean },
20
- noncollapsible: { type: Boolean },
20
+ noncollapsible: { type: Boolean, default: !1 },
21
21
  hideHeading: { type: Boolean },
22
22
  additionalProperties: { type: Boolean },
23
23
  schemas: {}
24
24
  },
25
25
  setup(N) {
26
- const f = N, b = E(() => !(f.noncollapsible || f.level === 0)), H = (e) => f.noncollapsible && e.stopPropagation();
26
+ const k = N, b = E(() => !(k.noncollapsible || k.level === 0)), H = (e) => k.noncollapsible && e.stopPropagation();
27
27
  return (e, P) => typeof e.value == "object" && Object.keys(e.value).length ? (a(), i(r($), {
28
28
  key: 0,
29
29
  defaultOpen: e.noncollapsible
30
30
  }, {
31
- default: d(({ open: t }) => {
31
+ default: d(({ open: n }) => {
32
32
  var S;
33
33
  return [
34
34
  j("div", {
35
- class: p(["schema-card", [
35
+ class: v(["schema-card", [
36
36
  `schema-card--level-${e.level}`,
37
- { "schema-card--compact": e.compact, "schema-card--open": t },
38
- { "border-t-1/2": e.additionalProperties && t }
37
+ { "schema-card--compact": e.compact, "schema-card--open": n },
38
+ { "border-t-1/2": e.additionalProperties && n }
39
39
  ]])
40
40
  }, [
41
- (S = e.value) != null && S.description && typeof e.value.description == "string" && !e.value.allOf && !e.value.oneOf && !e.value.anyOf && !e.compact ? (a(), o("div", M, [
42
- e.value.enum ? s("", !0) : (a(), i(r(I), {
41
+ (S = e.value) != null && S.description && typeof e.value.description == "string" && !e.value.allOf && !e.value.oneOf && !e.value.anyOf && !e.compact ? (a(), s("div", M, [
42
+ e.value.enum ? o("", !0) : (a(), i(r(I), {
43
43
  key: 0,
44
44
  value: e.value.description
45
45
  }, null, 8, ["value"]))
46
- ])) : s("", !0),
46
+ ])) : o("", !0),
47
47
  j("div", {
48
- class: p(["schema-properties", {
49
- "schema-properties-open": t
48
+ class: v(["schema-properties", {
49
+ "schema-properties-open": n
50
50
  }])
51
51
  }, [
52
- e.additionalProperties ? w((a(), o("div", R, [
53
- y(r(D), {
52
+ e.additionalProperties ? w((a(), s("div", R, [
53
+ u(r(D), {
54
54
  as: "button",
55
55
  class: "schema-card-title schema-card-title--compact",
56
56
  onClickCapture: H
57
57
  }, {
58
58
  default: d(() => [
59
- y(r(g), {
59
+ u(r(g), {
60
60
  class: "schema-card-title-icon",
61
61
  icon: "Add",
62
62
  size: "sm"
63
63
  }),
64
- P[0] || (P[0] = v(" Show additional properties ")),
64
+ P[0] || (P[0] = h(" Show additional properties ")),
65
65
  e.name ? (a(), i(q, { key: 0 }, {
66
66
  default: d(() => [
67
- v("for " + k(e.name), 1)
67
+ h("for " + f(e.name), 1)
68
68
  ]),
69
69
  _: 1
70
- })) : s("", !0)
70
+ })) : o("", !0)
71
71
  ]),
72
72
  _: 1
73
73
  })
74
74
  ], 512)), [
75
- [z, !t]
76
- ]) : w((a(), i(r(D), {
75
+ [z, !n]
76
+ ]) : b.value ? w((a(), i(r(D), {
77
77
  key: 1,
78
78
  as: e.noncollapsible ? "div" : "button",
79
- class: p(["schema-card-title", { "schema-card-title--compact": e.compact }]),
79
+ class: v(["schema-card-title", { "schema-card-title--compact": e.compact }]),
80
80
  style: T({
81
81
  top: `calc(var(--refs-header-height) + calc(var(--schema-title-height) * ${e.level}))`
82
82
  }),
83
83
  onClickCapture: H
84
84
  }, {
85
85
  default: d(() => {
86
- var u, m, l;
86
+ var m, c, l;
87
87
  return [
88
- e.compact ? (a(), o(n, { key: 0 }, [
89
- b.value ? (a(), i(r(g), {
90
- key: 0,
91
- class: p(["schema-card-title-icon", { "schema-card-title-icon--open": t }]),
88
+ e.compact ? (a(), s(t, { key: 0 }, [
89
+ u(r(g), {
90
+ class: v(["schema-card-title-icon", { "schema-card-title-icon--open": n }]),
92
91
  icon: "Add",
93
92
  size: "sm"
94
- }, null, 8, ["class"])) : s("", !0),
95
- t ? (a(), o(n, { key: 1 }, [
96
- v(" Hide " + k(((u = e.value) == null ? void 0 : u.title) ?? "Child Attributes"), 1)
97
- ], 64)) : (a(), o(n, { key: 2 }, [
98
- v(" Show " + k(((m = e.value) == null ? void 0 : m.title) ?? "Child Attributes"), 1)
93
+ }, null, 8, ["class"]),
94
+ n ? (a(), s(t, { key: 0 }, [
95
+ h(" Hide " + f(((m = e.value) == null ? void 0 : m.title) ?? "Child Attributes"), 1)
96
+ ], 64)) : (a(), s(t, { key: 1 }, [
97
+ h(" Show " + f(((c = e.value) == null ? void 0 : c.title) ?? "Child Attributes"), 1)
99
98
  ], 64)),
100
- e.name ? (a(), i(q, { key: 3 }, {
99
+ e.name ? (a(), i(q, { key: 2 }, {
101
100
  default: d(() => [
102
- v("for " + k(e.name), 1)
101
+ h("for " + f(e.name), 1)
103
102
  ]),
104
103
  _: 1
105
- })) : s("", !0)
106
- ], 64)) : (a(), o(n, { key: 1 }, [
107
- b.value ? (a(), i(r(g), {
108
- key: 0,
109
- class: p(["schema-card-title-icon", { "schema-card-title-icon--open": t }]),
104
+ })) : o("", !0)
105
+ ], 64)) : (a(), s(t, { key: 1 }, [
106
+ u(r(g), {
107
+ class: v(["schema-card-title-icon", { "schema-card-title-icon--open": n }]),
110
108
  icon: "Add",
111
109
  size: "sm"
112
- }, null, 8, ["class"])) : s("", !0),
113
- y(L, {
110
+ }, null, 8, ["class"]),
111
+ u(L, {
114
112
  name: ((l = e.value) == null ? void 0 : l.title) ?? e.name,
115
113
  value: e.value
116
114
  }, null, 8, ["name", "value"])
@@ -120,31 +118,31 @@ const M = {
120
118
  _: 2
121
119
  }, 1032, ["as", "class", "style"])), [
122
120
  [z, !e.hideHeading && !(e.noncollapsible && e.compact)]
123
- ]),
124
- y(r(F), {
121
+ ]) : o("", !0),
122
+ u(r(F), {
125
123
  as: "ul",
126
- static: e.noncollapsible
124
+ static: !b.value
127
125
  }, {
128
126
  default: d(() => {
129
- var u, m;
127
+ var m, c;
130
128
  return [
131
- e.value.properties || e.value.additionalProperties || e.value.patternProperties ? (a(), o(n, { key: 0 }, [
132
- e.value.properties ? (a(!0), o(n, { key: 0 }, A(Object.keys((u = e.value) == null ? void 0 : u.properties), (l) => {
133
- var c, C, O, B;
134
- return a(), i(h, {
129
+ e.value.properties || e.value.additionalProperties || e.value.patternProperties ? (a(), s(t, { key: 0 }, [
130
+ e.value.properties ? (a(!0), s(t, { key: 0 }, A(Object.keys((m = e.value) == null ? void 0 : m.properties), (l) => {
131
+ var p, C, O, B;
132
+ return a(), i(y, {
135
133
  key: l,
136
134
  compact: e.compact,
137
135
  hideHeading: e.hideHeading,
138
136
  level: e.level + 1,
139
137
  name: l,
140
- required: ((c = e.value.required) == null ? void 0 : c.includes(l)) || ((O = (C = e.value.properties) == null ? void 0 : C[l]) == null ? void 0 : O.required) === !0,
138
+ required: ((p = e.value.required) == null ? void 0 : p.includes(l)) || ((O = (C = e.value.properties) == null ? void 0 : C[l]) == null ? void 0 : O.required) === !0,
141
139
  schemas: e.schemas,
142
140
  value: (B = e.value.properties) == null ? void 0 : B[l]
143
141
  }, null, 8, ["compact", "hideHeading", "level", "name", "required", "schemas", "value"]);
144
- }), 128)) : s("", !0),
145
- e.value.patternProperties ? (a(!0), o(n, { key: 1 }, A(Object.keys((m = e.value) == null ? void 0 : m.patternProperties), (l) => {
146
- var c;
147
- return a(), i(h, {
142
+ }), 128)) : o("", !0),
143
+ e.value.patternProperties ? (a(!0), s(t, { key: 1 }, A(Object.keys((c = e.value) == null ? void 0 : c.patternProperties), (l) => {
144
+ var p;
145
+ return a(), i(y, {
148
146
  key: l,
149
147
  compact: e.compact,
150
148
  hideHeading: e.hideHeading,
@@ -152,11 +150,11 @@ const M = {
152
150
  name: l,
153
151
  pattern: "",
154
152
  schemas: e.schemas,
155
- value: (c = e.value.patternProperties) == null ? void 0 : c[l]
153
+ value: (p = e.value.patternProperties) == null ? void 0 : p[l]
156
154
  }, null, 8, ["compact", "hideHeading", "level", "name", "schemas", "value"]);
157
- }), 128)) : s("", !0),
158
- e.value.additionalProperties ? (a(), o(n, { key: 2 }, [
159
- e.value.additionalProperties === !0 || Object.keys(e.value.additionalProperties).length === 0 || !e.value.additionalProperties.type ? (a(), i(h, {
155
+ }), 128)) : o("", !0),
156
+ e.value.additionalProperties ? (a(), s(t, { key: 2 }, [
157
+ e.value.additionalProperties === !0 || Object.keys(e.value.additionalProperties).length === 0 || !e.value.additionalProperties.type ? (a(), i(y, {
160
158
  key: 0,
161
159
  additional: "",
162
160
  compact: e.compact,
@@ -168,7 +166,7 @@ const M = {
168
166
  type: "anything",
169
167
  ...typeof e.value.additionalProperties == "object" ? e.value.additionalProperties : {}
170
168
  }
171
- }, null, 8, ["compact", "hideHeading", "level", "schemas", "value"])) : (a(), i(h, {
169
+ }, null, 8, ["compact", "hideHeading", "level", "schemas", "value"])) : (a(), i(y, {
172
170
  key: 1,
173
171
  additional: "",
174
172
  compact: e.compact,
@@ -178,8 +176,8 @@ const M = {
178
176
  schemas: e.schemas,
179
177
  value: e.value.additionalProperties
180
178
  }, null, 8, ["compact", "hideHeading", "level", "schemas", "value"]))
181
- ], 64)) : s("", !0)
182
- ], 64)) : (a(), i(h, {
179
+ ], 64)) : o("", !0)
180
+ ], 64)) : (a(), i(y, {
183
181
  key: 1,
184
182
  compact: e.compact,
185
183
  hideHeading: e.hideHeading,
@@ -196,7 +194,7 @@ const M = {
196
194
  ];
197
195
  }),
198
196
  _: 1
199
- }, 8, ["defaultOpen"])) : s("", !0);
197
+ }, 8, ["defaultOpen"])) : o("", !0);
200
198
  }
201
199
  });
202
200
  export {
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaDiscriminator.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaDiscriminator.vue"],"names":[],"mappings":"AA4NA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAQ9E,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,MAAM,CAAA;IACrB,OAAO,CAAC,EACJ,SAAS,CAAC,iBAAiB,GAC3B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,YAAY,CAAC,GACtC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GACxC,OAAO,CAAA;IACX,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AA+QF,wBAOG"}
1
+ {"version":3,"file":"SchemaDiscriminator.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaDiscriminator.vue"],"names":[],"mappings":"AAgLA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAU9E,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,MAAM,CAAA;IACrB,OAAO,CAAC,EACJ,SAAS,CAAC,iBAAiB,GAC3B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,YAAY,CAAC,GACtC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GACxC,OAAO,CAAA;IACX,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AAiOF,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./SchemaDiscriminator.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const i = /* @__PURE__ */ r(o, [["__scopeId", "data-v-183d834f"]]);
4
+ const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-ed97a7ff"]]);
5
5
  export {
6
- i as default
6
+ f as default
7
7
  };
@@ -1,9 +1,10 @@
1
- import { defineComponent as S, ref as A, openBlock as n, createElementBlock as c, createBlock as l, unref as i, withCtx as o, createVNode as d, createElementVNode as p, toDisplayString as f, Fragment as y, renderList as b, normalizeClass as q } from "vue";
2
- import { TabGroup as B, TabList as T, Tab as j, TabPanel as H } from "@headlessui/vue";
3
- import { cva as N, cx as V } from "@scalar/components";
1
+ import { defineComponent as O, ref as S, openBlock as a, createElementBlock as c, createBlock as n, unref as r, withCtx as o, createVNode as u, createElementVNode as m, toDisplayString as d, Fragment as f, renderList as h, normalizeClass as B } from "vue";
2
+ import { TabGroup as T, TabList as H, Tab as N, TabPanel as V } from "@headlessui/vue";
3
+ import { cva as j, cx as w } from "@scalar/components";
4
4
  import { stringify as v } from "flatted";
5
- import g from "./Schema.vue.js";
6
- const w = { class: "property-rule" }, z = { class: "text-c-3" }, L = { class: "flex items-center gap-1.5" }, D = { class: "schema-tab-label z-1 relative" }, I = /* @__PURE__ */ S({
5
+ import { mergeAllOfSchemas as z } from "./helpers/merge-all-of-schemas.js";
6
+ import b from "./Schema.vue.js";
7
+ const L = { class: "property-rule" }, A = { class: "text-c-3" }, D = { class: "flex items-center gap-1.5" }, E = { class: "schema-tab-label z-1 relative" }, Z = /* @__PURE__ */ O({
7
8
  __name: "SchemaDiscriminator",
8
9
  props: {
9
10
  discriminator: {},
@@ -14,8 +15,8 @@ const w = { class: "property-rule" }, z = { class: "text-c-3" }, L = { class: "f
14
15
  compact: { type: Boolean },
15
16
  hideHeading: { type: Boolean }
16
17
  },
17
- setup(h) {
18
- const s = h, u = A(0), k = N({
18
+ setup(y) {
19
+ const i = y, p = S(0), g = j({
19
20
  base: "schema-tab",
20
21
  variants: {
21
22
  selected: {
@@ -23,55 +24,36 @@ const w = { class: "property-rule" }, z = { class: "text-c-3" }, L = { class: "f
23
24
  false: "text-c-3"
24
25
  }
25
26
  }
26
- }), m = (e) => {
27
- if (!Array.isArray(e) || e.length === 0)
28
- return {};
29
- if (e.length > 0 && e[0].allOf) {
30
- const a = e.flatMap((r) => r.allOf || []);
31
- return m(a);
32
- }
33
- return e.reduce((a, r) => {
34
- if (!r || typeof r != "object")
35
- return a;
36
- const t = { ...a };
37
- return r.properties && (t.properties = {
38
- ...t.properties,
39
- ...r.properties
40
- }), r.required && Array.isArray(r.required) && (t.required = [
41
- ...t.required || [],
42
- ...r.required
43
- ]), r.type && !t.type && (t.type = r.type), r.description && !t.description && (t.description = r.description), t;
44
- }, {});
45
- }, O = (e) => {
27
+ }), k = (e) => {
46
28
  if (!e)
47
29
  return null;
48
30
  if (e.name)
49
31
  return e.name;
50
- if (s.schemas && typeof s.schemas == "object") {
51
- for (const [a, r] of Object.entries(s.schemas))
52
- if (v(r) === v(e))
53
- return a;
32
+ if (i.schemas && typeof i.schemas == "object") {
33
+ for (const [s, t] of Object.entries(i.schemas))
34
+ if (v(t) === v(e))
35
+ return s;
54
36
  return Object.keys(e)[0];
55
37
  }
56
38
  return null;
57
- }, C = (e) => e.replace(/([A-Z])/g, " $1").replace(/^./, (a) => a.toUpperCase()).toLowerCase().replace(/^(\w)/, (a) => a.toUpperCase());
58
- return (e, a) => (n(), c("div", w, [
59
- e.discriminator === "oneOf" || e.discriminator === "anyOf" ? (n(), l(i(B), { key: 0 }, {
39
+ }, C = (e) => e.replace(/([A-Z])/g, " $1").replace(/^./, (s) => s.toUpperCase()).toLowerCase().replace(/^(\w)/, (s) => s.toUpperCase());
40
+ return (e, s) => (a(), c("div", L, [
41
+ e.discriminator === "oneOf" || e.discriminator === "anyOf" ? (a(), n(r(T), { key: 0 }, {
60
42
  default: o(() => [
61
- d(i(T), { class: "discriminator-tab-list py-1.25 flex flex-col gap-1 rounded-t-lg border border-b-0 px-2 pr-3" }, {
43
+ u(r(H), { class: "discriminator-tab-list py-1.25 flex flex-col gap-1 rounded-t-lg border border-b-0 px-2 pr-3" }, {
62
44
  default: o(() => [
63
- p("span", z, f(C(e.discriminator)), 1),
64
- p("div", L, [
65
- (n(!0), c(y, null, b(e.value[e.discriminator], (r, t) => (n(), l(i(j), {
66
- key: t,
67
- class: q([
45
+ m("span", A, d(C(e.discriminator)), 1),
46
+ m("div", D, [
47
+ (a(!0), c(f, null, h(e.value[e.discriminator], (t, l) => (a(), n(r(N), {
48
+ key: l,
49
+ class: B([
68
50
  "cursor-pointer",
69
- i(V)(i(k)({ selected: u.value === t }))
51
+ r(w)(r(g)({ selected: p.value === l }))
70
52
  ]),
71
- onClick: (E) => u.value = t
53
+ onClick: (F) => p.value = l
72
54
  }, {
73
55
  default: o(() => [
74
- p("span", D, f(O(r) || "Schema"), 1)
56
+ m("span", E, d(k(t) || "Schema"), 1)
75
57
  ]),
76
58
  _: 2
77
59
  }, 1032, ["class", "onClick"]))), 128))
@@ -79,36 +61,36 @@ const w = { class: "property-rule" }, z = { class: "text-c-3" }, L = { class: "f
79
61
  ]),
80
62
  _: 1
81
63
  }),
82
- (n(!0), c(y, null, b(e.value[e.discriminator], (r, t) => (n(), l(i(H), {
83
- key: t,
64
+ (a(!0), c(f, null, h(e.value[e.discriminator], (t, l) => (a(), n(r(V), {
65
+ key: l,
84
66
  class: "discriminator-panel"
85
67
  }, {
86
68
  default: o(() => [
87
- d(g, {
69
+ u(b, {
88
70
  compact: e.compact,
89
71
  hideHeading: e.hideHeading,
90
72
  name: e.name,
91
73
  noncollapsible: !0,
92
74
  schemas: e.schemas,
93
- value: r
75
+ value: t
94
76
  }, null, 8, ["compact", "hideHeading", "name", "schemas", "value"])
95
77
  ]),
96
78
  _: 2
97
79
  }, 1024))), 128))
98
80
  ]),
99
81
  _: 1
100
- })) : (n(), l(g, {
82
+ })) : (a(), n(b, {
101
83
  key: 1,
102
84
  compact: e.compact,
103
85
  level: e.level,
104
86
  name: e.name,
105
87
  noncollapsible: e.level == 0,
106
88
  schemas: e.schemas,
107
- value: m(e.value[e.discriminator])
89
+ value: r(z)(e.value[e.discriminator])
108
90
  }, null, 8, ["compact", "level", "name", "noncollapsible", "schemas", "value"]))
109
91
  ]));
110
92
  }
111
93
  });
112
94
  export {
113
- I as default
95
+ Z as default
114
96
  };
@@ -9,6 +9,7 @@ import { type Component } from 'vue';
9
9
  type __VLS_Props = {
10
10
  is?: string | Component;
11
11
  value?: Record<string, any>;
12
+ noncollapsible?: boolean;
12
13
  level?: number;
13
14
  name?: string;
14
15
  required?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaProperty.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaProperty.vue"],"names":[],"mappings":"AAkhBA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAC9E,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,KAAK,CAAA;AAa9C;;;;;GAKG;AAEH,KAAK,WAAW,GAAG;IACf,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,OAAO,CAAC,EACJ,SAAS,CAAC,iBAAiB,GAC3B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,YAAY,CAAC,GACtC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GACxC,OAAO,CAAA;IACX,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;cAZW,OAAO;WAFV,MAAM;aAGJ,OAAO;kBAIF,OAAO;;AAie1B,0BAQG"}
1
+ {"version":3,"file":"SchemaProperty.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaProperty.vue"],"names":[],"mappings":"AA0hBA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAC9E,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,KAAK,CAAA;AAa9C;;;;;GAKG;AAEH,KAAK,WAAW,GAAG;IACf,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,OAAO,CAAC,EACJ,SAAS,CAAC,iBAAiB,GAC3B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,YAAY,CAAC,GACtC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GACxC,OAAO,CAAA;IACX,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;cAZW,OAAO;WAFV,MAAM;aAGJ,OAAO;kBAIF,OAAO;;AAie1B,0BAQG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./SchemaProperty.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-f831b9af"]]);
4
+ const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-a719d4a9"]]);
5
5
  export {
6
- m as default
6
+ p as default
7
7
  };