@scalar/api-reference 1.25.5 → 1.25.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.
@@ -0,0 +1,18 @@
1
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
2
+ name: string;
3
+ schemas: Record<string, any>;
4
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
5
+ name: string;
6
+ schemas: Record<string, any>;
7
+ }>>>, {}, {}>;
8
+ export default _default;
9
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
10
+ type __VLS_TypePropsToOption<T> = {
11
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
12
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
13
+ } : {
14
+ type: import('vue').PropType<T[K]>;
15
+ required: true;
16
+ };
17
+ };
18
+ //# sourceMappingURL=CollapsedModel.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CollapsedModel.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Models/CollapsedModel.vue"],"names":[],"mappings":";UAkH8B,MAAM;aAAW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;;UAApC,MAAM;aAAW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;;AAwJlE,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -0,0 +1,7 @@
1
+ import o from "./CollapsedModel.vue2.js";
2
+ /* empty css */
3
+ import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8ef70f00"]]);
5
+ export {
6
+ r as default
7
+ };
@@ -0,0 +1,70 @@
1
+ import { defineComponent as p, ref as f, watch as h, nextTick as v, openBlock as m, createElementBlock as t, unref as a, Fragment as C, createElementVNode as g, createVNode as n, withCtx as i, createBlock as k, createCommentVNode as d } from "vue";
2
+ import { ScalarIcon as b } from "@scalar/components";
3
+ import w from "../../Anchor/Anchor.vue.js";
4
+ import S from "../Schema/SchemaHeading.vue.js";
5
+ import I from "../../Section/Section.vue.js";
6
+ import N from "../Schema/Schema.vue.js";
7
+ import { scrollToId as y } from "../../../helpers/scrollToId.js";
8
+ import { useNavState as B } from "../../../hooks/useNavState.js";
9
+ const V = ["id", "label"], $ = /* @__PURE__ */ p({
10
+ __name: "CollapsedModel",
11
+ props: {
12
+ name: {},
13
+ schemas: {}
14
+ },
15
+ setup(c) {
16
+ const r = c, { hash: u, getModelId: l } = B(), o = f(!1);
17
+ return h(
18
+ u,
19
+ async (e) => {
20
+ e === l(r.name) && !o.value && (o.value = !0, await v(), y(l(r.name)));
21
+ },
22
+ { immediate: !0 }
23
+ ), (e, s) => (m(), t("div", {
24
+ id: a(l)(e.name),
25
+ class: "collapsed-model",
26
+ label: e.name
27
+ }, [
28
+ e.schemas[e.name] ? (m(), t(C, { key: 0 }, [
29
+ g("div", {
30
+ class: "collapsed-model-trigger",
31
+ onClick: s[0] || (s[0] = (E) => o.value = !o.value)
32
+ }, [
33
+ n(a(b), {
34
+ icon: o.value ? "ChevronDown" : "ChevronRight",
35
+ size: "sm"
36
+ }, null, 8, ["icon"]),
37
+ n(w, {
38
+ id: a(l)(e.name)
39
+ }, {
40
+ default: i(() => [
41
+ n(a(S), {
42
+ name: e.name,
43
+ value: e.schemas[e.name]
44
+ }, null, 8, ["name", "value"])
45
+ ]),
46
+ _: 1
47
+ }, 8, ["id"])
48
+ ]),
49
+ o.value ? (m(), k(a(I), {
50
+ key: 0,
51
+ id: a(l)(e.name),
52
+ class: "collapsed-model-section",
53
+ label: e.name
54
+ }, {
55
+ default: i(() => [
56
+ n(a(N), {
57
+ hideHeading: !0,
58
+ noncollapsible: "",
59
+ value: e.schemas[e.name]
60
+ }, null, 8, ["value"])
61
+ ]),
62
+ _: 1
63
+ }, 8, ["id", "label"])) : d("", !0)
64
+ ], 64)) : d("", !0)
65
+ ], 8, V));
66
+ }
67
+ });
68
+ export {
69
+ $ as default
70
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"Models.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Models/Models.vue"],"names":[],"mappings":"AA0FA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;;cAmBzE,SAAS,CAAC,iBAAiB,GAC3B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,YAAY,CAAC,GACtC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GACxC,OAAO;;cAHP,SAAS,CAAC,iBAAiB,GAC3B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,YAAY,CAAC,GACtC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GACxC,OAAO;;AA+Mb,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAA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,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import o from "./Models.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f19478dd"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-5a02ee3b"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -1,87 +1,68 @@
1
- import { defineComponent as S, computed as p, openBlock as i, createBlock as d, unref as e, withCtx as l, createVNode as a, createElementBlock as v, Fragment as k, renderList as y, createTextVNode as b, toDisplayString as g, createCommentVNode as c, pushScopeId as C, popScopeId as I, createElementVNode as M } from "vue";
2
- import N from "../../ShowMoreButton.vue.js";
1
+ import { defineComponent as M, computed as u, openBlock as r, createBlock as d, unref as e, withCtx as s, createVNode as l, createTextVNode as k, createElementBlock as v, Fragment as I, renderList as y, createCommentVNode as p, pushScopeId as N, popScopeId as L, createElementVNode as b } from "vue";
2
+ import C from "../../ShowMoreButton.vue.js";
3
+ import g from "./CollapsedModel.vue.js";
3
4
  import w from "../../Section/SectionContainer.vue.js";
4
- import f from "../Lazy/Lazy.vue.js";
5
5
  import B from "../../Section/Section.vue.js";
6
- import V from "../../Section/SectionContent.vue.js";
7
- import L from "../../Section/SectionHeader.vue.js";
8
- import j from "../../Anchor/Anchor.vue.js";
9
- import z from "../Schema/Schema.vue.js";
10
- import { useSidebar as A } from "../../../hooks/useSidebar.js";
11
- import { useNavState as E } from "../../../hooks/useNavState.js";
12
- const O = (r) => (C("data-v-f19478dd"), r = r(), I(), r), D = /* @__PURE__ */ O(() => /* @__PURE__ */ M("div", { id: "models" }, null, -1)), U = /* @__PURE__ */ S({
6
+ import O from "../../Section/SectionHeader.vue.js";
7
+ import f from "../Lazy/Lazy.vue.js";
8
+ import { useSidebar as V } from "../../../hooks/useSidebar.js";
9
+ import { useNavState as A } from "../../../hooks/useNavState.js";
10
+ const E = (o) => (N("data-v-5a02ee3b"), o = o(), L(), o), j = /* @__PURE__ */ E(() => /* @__PURE__ */ b("div", { id: "models" }, null, -1)), _ = 10, q = /* @__PURE__ */ M({
13
11
  __name: "Models",
14
12
  props: {
15
13
  schemas: {}
16
14
  },
17
- setup(r) {
18
- const m = r, { collapsedSidebarItems: h } = A(), { getModelId: s } = E(), n = p(
19
- () => Object.keys(m.schemas ?? {}).length <= 3 || h[s()]
20
- ), u = p(() => {
21
- const o = Object.keys(m.schemas ?? {});
22
- return n.value ? o : o.slice(0, 3);
15
+ setup(o) {
16
+ const m = o, { collapsedSidebarItems: h } = V(), { getModelId: a } = A(), n = u(
17
+ () => Object.keys(m.schemas ?? {}).length <= _ || h[a()]
18
+ ), i = u(() => {
19
+ const t = Object.keys(m.schemas ?? {});
20
+ return n.value ? t : t.slice(0, _);
23
21
  });
24
- return (o, F) => o.schemas ? (i(), d(e(w), { key: 0 }, {
25
- default: l(() => [
26
- a(e(f), {
27
- id: "models",
28
- isLazy: !1
29
- }, {
30
- default: l(() => [
31
- D
32
- ]),
33
- _: 1
34
- }),
35
- (i(!0), v(k, null, y(u.value, (t, _) => (i(), d(e(f), {
36
- id: e(s)(t),
37
- key: t,
38
- isLazy: ""
39
- }, {
40
- default: l(() => [
41
- a(e(B), {
42
- id: e(s)(t),
43
- label: t
22
+ return (t, x) => t.schemas ? (r(), d(e(w), { key: 0 }, {
23
+ default: s(() => [
24
+ l(e(B), null, {
25
+ default: s(() => [
26
+ l(e(O), { level: 2 }, {
27
+ default: s(() => [
28
+ k("Models")
29
+ ]),
30
+ _: 1
31
+ }),
32
+ l(e(f), {
33
+ id: "models",
34
+ isLazy: !1
35
+ }, {
36
+ default: s(() => [
37
+ j
38
+ ]),
39
+ _: 1
40
+ }),
41
+ (r(!0), v(I, null, y(i.value, (c, S) => (r(), d(e(f), {
42
+ id: e(a)(c),
43
+ key: c,
44
+ isLazy: ""
44
45
  }, {
45
- default: l(() => [
46
- o.schemas[t] ? (i(), d(e(V), { key: 0 }, {
47
- default: l(() => [
48
- a(e(L), { level: 2 }, {
49
- default: l(() => [
50
- a(e(j), {
51
- id: e(s)(t)
52
- }, {
53
- default: l(() => [
54
- b(g(o.schemas[t].title ?? t), 1)
55
- ]),
56
- _: 2
57
- }, 1032, ["id"])
58
- ]),
59
- _: 2
60
- }, 1024),
61
- a(e(z), {
62
- name: t,
63
- noncollapsible: "",
64
- value: o.schemas[t]
65
- }, null, 8, ["name", "value"]),
66
- !n.value && _ === u.value.length - 1 ? (i(), d(N, {
67
- key: 0,
68
- id: e(s)(),
69
- class: "something-special"
70
- }, null, 8, ["id"])) : c("", !0)
71
- ]),
72
- _: 2
73
- }, 1024)) : c("", !0)
46
+ default: s(() => [
47
+ l(g, {
48
+ name: c,
49
+ schemas: t.schemas
50
+ }, null, 8, ["name", "schemas"]),
51
+ !n.value && S === i.value.length - 1 ? (r(), d(C, {
52
+ key: 0,
53
+ id: e(a)()
54
+ }, null, 8, ["id"])) : p("", !0)
74
55
  ]),
75
56
  _: 2
76
- }, 1032, ["id", "label"])
57
+ }, 1032, ["id"]))), 128))
77
58
  ]),
78
- _: 2
79
- }, 1032, ["id"]))), 128))
59
+ _: 1
60
+ })
80
61
  ]),
81
62
  _: 1
82
- })) : c("", !0);
63
+ })) : p("", !0);
83
64
  }
84
65
  });
85
66
  export {
86
- U as default
67
+ q as default
87
68
  };
@@ -8,6 +8,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
8
8
  compact?: boolean;
9
9
  /** Shows a toggle to hide/show children */
10
10
  noncollapsible?: boolean;
11
+ hideHeading?: boolean;
11
12
  }>, {
12
13
  level: number;
13
14
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
@@ -19,6 +20,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
19
20
  compact?: boolean;
20
21
  /** Shows a toggle to hide/show children */
21
22
  noncollapsible?: boolean;
23
+ hideHeading?: boolean;
22
24
  }>, {
23
25
  level: number;
24
26
  }>>>, {
@@ -1 +1 @@
1
- {"version":3,"file":"Schema.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/Schema.vue"],"names":[],"mappings":"AAmRA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;;YAUvE,SAAS,CAAC,iBAAiB,GAC3B,SAAS,CAAC,YAAY,GACtB,SAAS,CAAC,iBAAiB,GAC3B,SAAS,CAAC,oBAAoB,GAC9B,WAAW,CAAC,YAAY,GACxB,WAAW,CAAC,iBAAiB,GAC7B,WAAW,CAAC,oBAAoB;IACpC,gCAAgC;YACxB,MAAM;WAEP,MAAM;IACb,+DAA+D;cACrD,OAAO;IACjB,2CAA2C;qBAC1B,OAAO;;;;YAdpB,SAAS,CAAC,iBAAiB,GAC3B,SAAS,CAAC,YAAY,GACtB,SAAS,CAAC,iBAAiB,GAC3B,SAAS,CAAC,oBAAoB,GAC9B,WAAW,CAAC,YAAY,GACxB,WAAW,CAAC,iBAAiB,GAC7B,WAAW,CAAC,oBAAoB;IACpC,gCAAgC;YACxB,MAAM;WAEP,MAAM;IACb,+DAA+D;cACrD,OAAO;IACjB,2CAA2C;qBAC1B,OAAO;;;;WANhB,MAAM;;AAyVlB,wBAMG;AAOH,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAC7C,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KAAC,CAAC,GACvC,CAAC,CAAC,CAAC,CAAC;CACP,CAAC;AAEN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CA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;IACb,+DAA+D;cACrD,OAAO;IACjB,2CAA2C;qBAC1B,OAAO;kBACV,OAAO;;;;WAPb,MAAM;;AAiWlB,wBAMG;AAOH,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAC7C,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KAAC,CAAC,GACvC,CAAC,CAAC,CAAC,CAAC;CACP,CAAC;AAEN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AAExD,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import o from "./Schema.vue2.js";
2
2
  /* empty css */
3
- import a from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const c = /* @__PURE__ */ a(o, [["__scopeId", "data-v-ab8ac369"]]);
3
+ import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-4b345758"]]);
5
5
  export {
6
- c as default
6
+ p as default
7
7
  };
@@ -1,23 +1,24 @@
1
- import { defineComponent as D, computed as O, openBlock as l, createBlock as t, unref as r, withCtx as h, createElementVNode as P, normalizeClass as p, createElementBlock as o, createVNode as d, createCommentVNode as s, withDirectives as q, normalizeStyle as N, Fragment as i, createTextVNode as C, toDisplayString as S, vShow as V, renderList as z } from "vue";
2
- import { Disclosure as A, DisclosureButton as E, DisclosurePanel as H } from "@headlessui/vue";
3
- import { ScalarMarkdown as T, ScalarIcon as w } from "@scalar/components";
1
+ import { defineComponent as D, computed as O, openBlock as l, createBlock as i, unref as r, withCtx as h, createElementVNode as P, normalizeClass as p, createElementBlock as o, createVNode as d, createCommentVNode as s, withDirectives as q, normalizeStyle as A, Fragment as t, createTextVNode as S, toDisplayString as C, vShow as H, renderList as N } from "vue";
2
+ import { Disclosure as V, DisclosureButton as z, DisclosurePanel as E } from "@headlessui/vue";
3
+ import { ScalarMarkdown as T, ScalarIcon as B } from "@scalar/components";
4
4
  import $ from "./SchemaHeading.vue.js";
5
5
  import m from "./SchemaProperty.vue.js";
6
6
  const F = {
7
7
  key: 0,
8
8
  class: "schema-card-description"
9
- }, K = /* @__PURE__ */ D({
9
+ }, Q = /* @__PURE__ */ D({
10
10
  __name: "Schema",
11
11
  props: {
12
12
  value: {},
13
13
  level: { default: 0 },
14
14
  name: {},
15
15
  compact: { type: Boolean },
16
- noncollapsible: { type: Boolean }
16
+ noncollapsible: { type: Boolean },
17
+ hideHeading: { type: Boolean }
17
18
  },
18
- setup(B) {
19
- const v = B, y = O(() => !(v.noncollapsible || v.level === 0)), j = (e) => v.noncollapsible && e.stopPropagation();
20
- return (e, I) => typeof e.value == "object" && Object.keys(e.value).length ? (l(), t(r(A), {
19
+ setup(w) {
20
+ const v = w, y = O(() => !(v.noncollapsible || v.level === 0)), j = (e) => v.noncollapsible && e.stopPropagation();
21
+ return (e, I) => typeof e.value == "object" && Object.keys(e.value).length ? (l(), i(r(V), {
21
22
  key: 0,
22
23
  defaultOpen: e.noncollapsible
23
24
  }, {
@@ -38,10 +39,10 @@ const F = {
38
39
  P("div", {
39
40
  class: p(["schema-properties", { "schema-properties-open": n }])
40
41
  }, [
41
- q(d(r(E), {
42
+ q(d(r(z), {
42
43
  as: e.noncollapsible ? "div" : "button",
43
44
  class: p(["schema-card-title", { "schema-card-title--compact": e.compact }]),
44
- style: N({
45
+ style: A({
45
46
  top: `calc(var(--refs-header-height) + calc(var(--schema-title-height) * ${e.level}))`
46
47
  }),
47
48
  onClickCapture: j
@@ -49,24 +50,25 @@ const F = {
49
50
  default: h(() => {
50
51
  var c, a, u;
51
52
  return [
52
- e.compact ? (l(), o(i, { key: 0 }, [
53
- y.value ? (l(), t(r(w), {
53
+ e.compact ? (l(), o(t, { key: 0 }, [
54
+ y.value ? (l(), i(r(B), {
54
55
  key: 0,
55
56
  class: p(["schema-card-title-icon h-2.5", { "schema-card-title-icon--open": n }]),
56
57
  icon: "Add",
57
58
  thickness: "3"
58
59
  }, null, 8, ["class"])) : s("", !0),
59
- n ? (l(), o(i, { key: 1 }, [
60
- C(" Hide " + S(((c = e.value) == null ? void 0 : c.title) ?? "Child Attributes"), 1)
61
- ], 64)) : (l(), o(i, { key: 2 }, [
62
- C(" Show " + S(((a = e.value) == null ? void 0 : a.title) ?? "Child Attributes"), 1)
60
+ n ? (l(), o(t, { key: 1 }, [
61
+ S(" Hide " + C(((c = e.value) == null ? void 0 : c.title) ?? "Child Attributes"), 1)
62
+ ], 64)) : (l(), o(t, { key: 2 }, [
63
+ S(" Show " + C(((a = e.value) == null ? void 0 : a.title) ?? "Child Attributes"), 1)
63
64
  ], 64))
64
- ], 64)) : (l(), o(i, { key: 1 }, [
65
- y.value ? (l(), t(r(w), {
65
+ ], 64)) : (l(), o(t, { key: 1 }, [
66
+ y.value ? (l(), i(r(B), {
66
67
  key: 0,
67
68
  class: p(["schema-card-title-icon", { "schema-card-title-icon--open": n }]),
68
- icon: "ChevronRight",
69
- size: "md"
69
+ icon: "Add",
70
+ size: "xs",
71
+ thickness: "2.5"
70
72
  }, null, 8, ["class"])) : s("", !0),
71
73
  d($, {
72
74
  name: ((u = e.value) == null ? void 0 : u.title) ?? e.name,
@@ -77,16 +79,16 @@ const F = {
77
79
  }),
78
80
  _: 2
79
81
  }, 1032, ["as", "class", "style"]), [
80
- [V, !(e.noncollapsible && e.compact)]
82
+ [H, !e.hideHeading && !(e.noncollapsible && e.compact)]
81
83
  ]),
82
- d(r(H), { static: e.noncollapsible }, {
84
+ d(r(E), { static: e.noncollapsible }, {
83
85
  default: h(() => {
84
86
  var c;
85
87
  return [
86
- e.value.properties || e.value.additionalProperties ? (l(), o(i, { key: 0 }, [
87
- e.value.properties ? (l(!0), o(i, { key: 0 }, z(Object.keys((c = e.value) == null ? void 0 : c.properties), (a) => {
88
+ e.value.properties || e.value.additionalProperties ? (l(), o(t, { key: 0 }, [
89
+ e.value.properties ? (l(!0), o(t, { key: 0 }, N(Object.keys((c = e.value) == null ? void 0 : c.properties), (a) => {
88
90
  var u, f, b, g;
89
- return l(), t(m, {
91
+ return l(), i(m, {
90
92
  key: a,
91
93
  compact: e.compact,
92
94
  level: e.level,
@@ -95,8 +97,8 @@ const F = {
95
97
  value: (g = e.value.properties) == null ? void 0 : g[a]
96
98
  }, null, 8, ["compact", "level", "name", "required", "value"]);
97
99
  }), 128)) : s("", !0),
98
- e.value.additionalProperties ? (l(), o(i, { key: 1 }, [
99
- e.value.additionalProperties === !0 || Object.keys(e.value.additionalProperties).length === 0 || !e.value.additionalProperties.type ? (l(), t(m, {
100
+ e.value.additionalProperties ? (l(), o(t, { key: 1 }, [
101
+ e.value.additionalProperties === !0 || Object.keys(e.value.additionalProperties).length === 0 || !e.value.additionalProperties.type ? (l(), i(m, {
100
102
  key: 0,
101
103
  additional: "",
102
104
  compact: e.compact,
@@ -106,7 +108,7 @@ const F = {
106
108
  type: "anything",
107
109
  ...typeof e.value.additionalProperties == "object" ? e.value.additionalProperties : {}
108
110
  }
109
- }, null, 8, ["compact", "level", "value"])) : (l(), t(m, {
111
+ }, null, 8, ["compact", "level", "value"])) : (l(), i(m, {
110
112
  key: 1,
111
113
  additional: "",
112
114
  compact: e.compact,
@@ -115,7 +117,7 @@ const F = {
115
117
  value: e.value.additionalProperties
116
118
  }, null, 8, ["compact", "level", "value"]))
117
119
  ], 64)) : s("", !0)
118
- ], 64)) : (l(), t(m, {
120
+ ], 64)) : (l(), i(m, {
119
121
  key: 1,
120
122
  compact: e.compact,
121
123
  level: e.level,
@@ -135,5 +137,5 @@ const F = {
135
137
  }
136
138
  });
137
139
  export {
138
- K as default
140
+ Q as default
139
141
  };
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaHeading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaHeading.vue"],"names":[],"mappings":"AAsDA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;;WAMzE,SAAS,CAAC,iBAAiB,GAC3B,SAAS,CAAC,YAAY,GACtB,SAAS,CAAC,iBAAiB,GAC3B,SAAS,CAAC,oBAAoB,GAC9B,WAAW,CAAC,YAAY,GACxB,WAAW,CAAC,iBAAiB,GAC7B,WAAW,CAAC,oBAAoB;WAC7B,MAAM;;WAPT,SAAS,CAAC,iBAAiB,GAC3B,SAAS,CAAC,YAAY,GACtB,SAAS,CAAC,iBAAiB,GAC3B,SAAS,CAAC,oBAAoB,GAC9B,WAAW,CAAC,YAAY,GACxB,WAAW,CAAC,iBAAiB,GAC7B,WAAW,CAAC,oBAAoB;WAC7B,MAAM;;AAgFf,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,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AO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -1,7 +1,7 @@
1
- import a from "./SchemaHeading.vue2.js";
1
+ import o from "./SchemaHeading.vue2.js";
2
2
  /* empty css */
3
- import o from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const c = /* @__PURE__ */ o(a, [["__scopeId", "data-v-c0a69ad0"]]);
3
+ import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-c6c012d1"]]);
5
5
  export {
6
- c as default
6
+ r as default
7
7
  };
@@ -1 +1 @@
1
- {"version":3,"file":"SearchModal.vue.d.ts","sourceRoot":"","sources":["../../../src/features/Search/SearchModal.vue"],"names":[],"mappings":"AAoKA,OAAO,EAEL,KAAK,UAAU,EAKhB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;;gBAYlC,IAAI;gBACJ,UAAU;;gBADV,IAAI;gBACJ,UAAU;;AAgRxB,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
1
+ {"version":3,"file":"SearchModal.vue.d.ts","sourceRoot":"","sources":["../../../src/features/Search/SearchModal.vue"],"names":[],"mappings":"AA0KA,OAAO,EAEL,KAAK,UAAU,EAKhB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;;gBAYlC,IAAI;gBACJ,UAAU;;gBADV,IAAI;gBACJ,UAAU;;AAmRxB,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import o from "./SearchModal.vue2.js";
2
2
  /* empty css */
3
- import a from "../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ a(o, [["__scopeId", "data-v-6ee7fa31"]]);
3
+ import r from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-fb0fd0be"]]);
5
5
  export {
6
- f as default
6
+ e as default
7
7
  };