@scalar/api-reference 1.28.9 → 1.28.11

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 (41) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/dist/browser/standalone.js +5570 -5486
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/ApiReferenceLayout.vue.js +2 -2
  5. package/dist/components/ApiReferenceLayout.vue2.js +13 -13
  6. package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
  7. package/dist/components/Content/Models/Models.vue.js +2 -2
  8. package/dist/components/Content/Schema/Schema.vue.d.ts +2 -0
  9. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  10. package/dist/components/Content/Schema/Schema.vue.js +4 -4
  11. package/dist/components/Content/Schema/Schema.vue2.js +78 -54
  12. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  13. package/dist/components/Content/Schema/SchemaProperty.vue.js +1 -1
  14. package/dist/components/Content/Schema/SchemaProperty.vue2.js +96 -114
  15. package/dist/components/Content/Schema/SchemaPropertyExamples.vue.d.ts +8 -0
  16. package/dist/components/Content/Schema/SchemaPropertyExamples.vue.d.ts.map +1 -0
  17. package/dist/components/Content/Schema/SchemaPropertyExamples.vue.js +7 -0
  18. package/dist/components/Content/Schema/SchemaPropertyExamples.vue2.js +71 -0
  19. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts +2 -0
  20. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  21. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +1 -1
  22. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +139 -130
  23. package/dist/features/ApiClientModal/useApiClient.d.ts +76 -334
  24. package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
  25. package/dist/features/ExampleResponses/ExampleResponses.vue.d.ts.map +1 -1
  26. package/dist/features/ExampleResponses/ExampleResponses.vue.js +2 -2
  27. package/dist/features/ExampleResponses/ExampleResponses.vue2.js +86 -85
  28. package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
  29. package/dist/features/Operation/components/RequestBody.vue.js +2 -2
  30. package/dist/features/Operation/components/RequestBody.vue2.js +65 -28
  31. package/dist/features/Search/useSearchIndex.js +72 -72
  32. package/dist/helpers/get-request.d.ts.map +1 -1
  33. package/dist/hooks/useMultipleDocuments.d.ts +5 -1
  34. package/dist/hooks/useMultipleDocuments.d.ts.map +1 -1
  35. package/dist/hooks/useMultipleDocuments.js +49 -48
  36. package/dist/hooks/useNavState.d.ts +6 -4
  37. package/dist/hooks/useNavState.d.ts.map +1 -1
  38. package/dist/hooks/useNavState.js +34 -37
  39. package/dist/index.js +1 -1
  40. package/dist/style.css +1 -1
  41. package/package.json +12 -12
@@ -2,7 +2,7 @@ import o from "./ApiReferenceLayout.vue2.js";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import t from "../_virtual/_plugin-vue_export-helper.js";
5
- const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-afcca023"]]);
5
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-19fd3fc9"]]);
6
6
  export {
7
- c as default
7
+ m as default
8
8
  };
@@ -1,17 +1,17 @@
1
- import { defineComponent as ie, computed as g, ref as $, onBeforeMount as A, onMounted as le, onUnmounted as de, watch as R, onServerPrefetch as ue, useSSRContext as ce, useId as pe, provide as w, openBlock as y, createElementBlock as C, Fragment as H, createElementVNode as d, normalizeClass as fe, unref as i, normalizeStyle as me, renderSlot as u, normalizeProps as c, guardReactiveProps as p, createVNode as m, withCtx as v, createCommentVNode as E, withDirectives as ve, vShow as Se, createSlots as he } from "vue";
1
+ import { defineComponent as ie, computed as g, ref as $, onBeforeMount as A, onMounted as le, onUnmounted as de, watch as R, onServerPrefetch as ue, useSSRContext as ce, useId as pe, provide as w, openBlock as y, createElementBlock as C, Fragment as D, createElementVNode as d, normalizeClass as fe, unref as i, normalizeStyle as me, renderSlot as u, normalizeProps as c, guardReactiveProps as p, createVNode as m, withCtx as v, createCommentVNode as E, withDirectives as ve, vShow as Se, createSlots as he } from "vue";
2
2
  import { provideUseId as ge } from "@headlessui/vue";
3
3
  import { LAYOUT_SYMBOL as be } from "@scalar/api-client/hooks";
4
4
  import { createWorkspaceStore as we, WORKSPACE_SYMBOL as ye, createActiveEntitiesStore as Ce, ACTIVE_ENTITIES_SYMBOL as Te } from "@scalar/api-client/store";
5
5
  import { addScalarClassesToHeadless as $e, ScalarErrorBoundary as Re } from "@scalar/components";
6
- import { defaultStateFactory as D } from "@scalar/oas-utils/helpers";
6
+ import { defaultStateFactory as H } from "@scalar/oas-utils/helpers";
7
7
  import { hasObtrusiveScrollbars as Ee, getThemeStyles as Oe } from "@scalar/themes";
8
8
  import { apiReferenceConfigurationSchema as Ie } from "@scalar/types/api-reference";
9
9
  import { useToasts as ke, ScalarToasts as Fe } from "@scalar/use-toasts";
10
10
  import { useMediaQuery as Le, useResizeObserver as Pe, useDebounceFn as Me } from "@vueuse/core";
11
11
  import Be from "./GettingStarted.vue.js";
12
12
  import { CONFIGURATION_SYMBOL as Ae } from "../hooks/useConfig.js";
13
- import { useHttpClientStore as He } from "../stores/useHttpClientStore.js";
14
- import { downloadSpecBus as _, downloadSpecFile as De } from "../helpers/specDownloads.js";
13
+ import { useHttpClientStore as De } from "../stores/useHttpClientStore.js";
14
+ import { downloadSpecBus as _, downloadSpecFile as He } from "../helpers/specDownloads.js";
15
15
  import _e from "./Sidebar/Sidebar.vue.js";
16
16
  import Ne from "./Content/Content.vue.js";
17
17
  import Ue from "../features/ApiClientModal/ApiClientModal.vue.js";
@@ -49,7 +49,7 @@ const Ge = ["innerHTML"], We = { class: "references-header" }, je = ["aria-label
49
49
  setParsedSpec: q,
50
50
  scrollToOperation: J
51
51
  } = ze(), {
52
- getReferenceHash: X,
52
+ getReferenceId: X,
53
53
  getPathRoutingId: I,
54
54
  getSectionId: Z,
55
55
  getTagId: x,
@@ -57,7 +57,7 @@ const Ge = ["innerHTML"], We = { class: "references-header" }, je = ["aria-label
57
57
  isIntersectionEnabled: k,
58
58
  updateHash: F,
59
59
  replaceUrlState: te
60
- } = Ye();
60
+ } = Ye(t);
61
61
  if (t.value.redirect && typeof window < "u") {
62
62
  const e = t.value.redirect(
63
63
  (t.value.pathRouting ? window.location.pathname : "") + window.location.hash
@@ -72,7 +72,7 @@ const Ge = ["innerHTML"], We = { class: "references-header" }, je = ["aria-label
72
72
  A(() => $e()), le(() => {
73
73
  var o, s, r;
74
74
  history.scrollRestoration = "manual", _.on(({ specTitle: n }) => {
75
- De(f.rawSpec, n);
75
+ He(f.rawSpec, n);
76
76
  });
77
77
  const e = (s = (o = S.value) == null ? void 0 : o.parentElement) == null ? void 0 : s.getBoundingClientRect(), a = (r = S.value) == null ? void 0 : r.getBoundingClientRect();
78
78
  if (e && a) {
@@ -99,7 +99,7 @@ const Ge = ["innerHTML"], We = { class: "references-header" }, je = ["aria-label
99
99
  }), R(() => f.parsedSpec, q, { deep: !0 }), ue(() => {
100
100
  var a, o;
101
101
  const e = ce();
102
- if (e && (e.payload || (e.payload = { data: D() }), (a = e.payload).data || (a.data = D()), t.value.pathRouting)) {
102
+ if (e && (e.payload || (e.payload = { data: H() }), (a = e.payload).data || (a.data = H()), t.value.pathRouting)) {
103
103
  const s = I(e.url);
104
104
  ee.value = s, e.payload.data.hash = s;
105
105
  for (const r in b)
@@ -123,8 +123,8 @@ const Ge = ["innerHTML"], We = { class: "references-header" }, je = ["aria-label
123
123
  var a;
124
124
  return e && T.importSpecFile(e, "default", {
125
125
  shouldLoad: !1,
126
- documentUrl: (a = t.value.spec) == null ? void 0 : a.url,
127
- setCollectionSecurity: !0,
126
+ documentUrl: ((a = t.value.spec) == null ? void 0 : a.url) ?? t.value.url,
127
+ useCollectionSecurity: !0,
128
128
  ...t.value
129
129
  });
130
130
  },
@@ -141,7 +141,7 @@ const Ge = ["innerHTML"], We = { class: "references-header" }, je = ["aria-label
141
141
  { immediate: !0 }
142
142
  );
143
143
  }
144
- const { setExcludedClients: re, setDefaultHttpClient: se } = He();
144
+ const { setExcludedClients: re, setDefaultHttpClient: se } = De();
145
145
  B("defaultHttpClient", se), B("hiddenClients", re), K.value = t.value.hideModels ?? !1, Q.value = t.value.defaultOpenAllTags ?? !1;
146
146
  const ne = g(
147
147
  () => `<style>
@@ -151,7 +151,7 @@ const Ge = ["innerHTML"], We = { class: "references-header" }, je = ["aria-label
151
151
  );
152
152
  return (e, a) => {
153
153
  var o, s, r;
154
- return y(), C(H, null, [
154
+ return y(), C(D, null, [
155
155
  d("div", { innerHTML: ne.value }, null, 8, Ge),
156
156
  d("div", {
157
157
  ref_key: "documentEl",
@@ -208,7 +208,7 @@ const Ge = ["innerHTML"], We = { class: "references-header" }, je = ["aria-label
208
208
  ], 512), [
209
209
  [Se, t.value.isEditable]
210
210
  ]),
211
- ae.value ? (y(), C(H, { key: 1 }, [
211
+ ae.value ? (y(), C(D, { key: 1 }, [
212
212
  d("main", {
213
213
  "aria-label": `Open API Documentation for ${(s = e.parsedSpec.info) == null ? void 0 : s.title}`,
214
214
  class: "references-rendered"
@@ -1 +1 @@
1
- {"version":3,"file":"Models.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Models/Models.vue"],"names":[],"mappings":"AAmHA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAiB9E,KAAK,WAAW,GAAG;IACjB,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;CACZ,CAAC;;AAoMF,wBAMG"}
1
+ {"version":3,"file":"Models.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Models/Models.vue"],"names":[],"mappings":"AAuHA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAiB9E,KAAK,WAAW,GAAG;IACjB,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;CACZ,CAAC;;AAqMF,wBAMG"}
@@ -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 p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-066d8dc3"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f1f02ced"]]);
5
5
  export {
6
- p as default
6
+ m as default
7
7
  };
@@ -9,6 +9,8 @@ type __VLS_Props = {
9
9
  /** Shows a toggle to hide/show children */
10
10
  noncollapsible?: boolean;
11
11
  hideHeading?: boolean;
12
+ /** Show a special one way toggle for additional properties, also has a top border when open */
13
+ additionalProperties?: boolean;
12
14
  schemas?: OpenAPIV2.DefinitionsObject | Record<string, OpenAPIV3.SchemaObject> | Record<string, OpenAPIV3_1.SchemaObject> | unknown;
13
15
  };
14
16
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
@@ -1 +1 @@
1
- {"version":3,"file":"Schema.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/Schema.vue"],"names":[],"mappings":"AA2TA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAQ9E,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EACF,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,CAAA;IACpC,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,+DAA+D;IAC/D,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,2CAA2C;IAC3C,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,WAAW,CAAC,EAAE,OAAO,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;CACZ,CAAC;;WAbQ,MAAM;;AAgUlB,wBAOG"}
1
+ {"version":3,"file":"Schema.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/Schema.vue"],"names":[],"mappings":"AA8UA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAQ9E,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EACF,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,CAAA;IACpC,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,+DAA+D;IAC/D,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,2CAA2C;IAC3C,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,+FAA+F;IAC/F,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,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;CACZ,CAAC;;WAfQ,MAAM;;AAwWlB,wBAOG"}
@@ -1,7 +1,7 @@
1
- import a from "./Schema.vue2.js";
1
+ import o from "./Schema.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-cab606aa"]]);
3
+ import a from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const r = /* @__PURE__ */ a(o, [["__scopeId", "data-v-6fa5fa1b"]]);
5
5
  export {
6
- c as default
6
+ r as default
7
7
  };
@@ -1,12 +1,15 @@
1
- import { defineComponent as D, computed as q, openBlock as a, createBlock as s, unref as r, withCtx as y, createElementVNode as P, normalizeClass as m, createElementBlock as i, createVNode as v, createCommentVNode as n, withDirectives as z, normalizeStyle as A, Fragment as o, createTextVNode as O, toDisplayString as S, vShow as N, renderList as C } from "vue";
2
- import { Disclosure as V, DisclosureButton as E, DisclosurePanel as T } from "@headlessui/vue";
3
- import { ScalarMarkdown as $, ScalarIcon as B } from "@scalar/components";
4
- import F from "./SchemaHeading.vue.js";
5
- import p from "./SchemaProperty.vue.js";
6
- const I = {
1
+ import { defineComponent as N, computed as V, openBlock as a, createBlock as s, unref as o, withCtx as h, createElementVNode as B, normalizeClass as m, createElementBlock as i, createVNode as p, createCommentVNode as n, withDirectives as j, createTextVNode as k, vShow as w, normalizeStyle as E, Fragment as t, toDisplayString as z, renderList as A } from "vue";
2
+ import { Disclosure as T, DisclosureButton as D, DisclosurePanel as $ } from "@headlessui/vue";
3
+ import { ScalarMarkdown as F, ScalarIcon as g } from "@scalar/components";
4
+ import I from "./SchemaHeading.vue.js";
5
+ import v from "./SchemaProperty.vue.js";
6
+ const L = {
7
7
  key: 0,
8
8
  class: "schema-card-description"
9
- }, R = /* @__PURE__ */ D({
9
+ }, M = {
10
+ key: 0,
11
+ class: "schema-properties"
12
+ }, U = /* @__PURE__ */ N({
10
13
  __name: "Schema",
11
14
  props: {
12
15
  value: { type: [Object, Boolean] },
@@ -15,64 +18,85 @@ const I = {
15
18
  compact: { type: Boolean },
16
19
  noncollapsible: { type: Boolean },
17
20
  hideHeading: { type: Boolean },
21
+ additionalProperties: { type: Boolean },
18
22
  schemas: {}
19
23
  },
20
- setup(j) {
21
- const h = j, g = q(() => !(h.noncollapsible || h.level === 0)), w = (e) => h.noncollapsible && e.stopPropagation();
22
- return (e, L) => typeof e.value == "object" && Object.keys(e.value).length ? (a(), s(r(V), {
24
+ setup(q) {
25
+ const y = q, f = V(() => !(y.noncollapsible || y.level === 0)), b = (e) => y.noncollapsible && e.stopPropagation();
26
+ return (e, H) => typeof e.value == "object" && Object.keys(e.value).length ? (a(), s(o(T), {
23
27
  key: 0,
24
28
  defaultOpen: e.noncollapsible
25
29
  }, {
26
- default: y(({ open: t }) => {
27
- var k;
30
+ default: h(({ open: r }) => {
31
+ var P;
28
32
  return [
29
- P("div", {
33
+ B("div", {
30
34
  class: m(["schema-card", [
31
35
  `schema-card--level-${e.level}`,
32
- { "schema-card--compact": e.compact, "schema-card--open": t }
36
+ { "schema-card--compact": e.compact, "schema-card--open": r },
37
+ { "border-t-1/2": e.additionalProperties && r }
33
38
  ]])
34
39
  }, [
35
- (k = e.value) != null && k.description && typeof e.value.description == "string" && !e.value.allOf && !e.value.oneOf && !e.value.anyOf && !e.compact ? (a(), i("div", I, [
36
- v(r($), {
40
+ (P = e.value) != null && P.description && typeof e.value.description == "string" && !e.value.allOf && !e.value.oneOf && !e.value.anyOf && !e.compact ? (a(), i("div", L, [
41
+ p(o(F), {
37
42
  value: e.value.description
38
43
  }, null, 8, ["value"])
39
44
  ])) : n("", !0),
40
- P("div", {
45
+ B("div", {
41
46
  class: m(["schema-properties", {
42
- "schema-properties-open": t
47
+ "schema-properties-open": r
43
48
  }])
44
49
  }, [
45
- z(v(r(E), {
50
+ e.additionalProperties ? j((a(), i("div", M, [
51
+ p(o(D), {
52
+ as: "button",
53
+ class: "schema-card-title schema-card-title--compact",
54
+ onClickCapture: b
55
+ }, {
56
+ default: h(() => [
57
+ p(o(g), {
58
+ class: "schema-card-title-icon",
59
+ icon: "Add",
60
+ size: "sm"
61
+ }),
62
+ H[0] || (H[0] = k(" Show additional properties "))
63
+ ]),
64
+ _: 1
65
+ })
66
+ ], 512)), [
67
+ [w, !r]
68
+ ]) : j((a(), s(o(D), {
69
+ key: 1,
46
70
  as: e.noncollapsible ? "div" : "button",
47
71
  class: m(["schema-card-title", { "schema-card-title--compact": e.compact }]),
48
- style: A({
72
+ style: E({
49
73
  top: `calc(var(--refs-header-height) + calc(var(--schema-title-height) * ${e.level}))`
50
74
  }),
51
- onClickCapture: w
75
+ onClickCapture: b
52
76
  }, {
53
- default: y(() => {
54
- var d, u, l;
77
+ default: h(() => {
78
+ var d, c, l;
55
79
  return [
56
- e.compact ? (a(), i(o, { key: 0 }, [
57
- g.value ? (a(), s(r(B), {
80
+ e.compact ? (a(), i(t, { key: 0 }, [
81
+ f.value ? (a(), s(o(g), {
58
82
  key: 0,
59
- class: m(["schema-card-title-icon", { "schema-card-title-icon--open": t }]),
83
+ class: m(["schema-card-title-icon", { "schema-card-title-icon--open": r }]),
60
84
  icon: "Add",
61
85
  size: "sm"
62
86
  }, null, 8, ["class"])) : n("", !0),
63
- t ? (a(), i(o, { key: 1 }, [
64
- O(" Hide " + S(((d = e.value) == null ? void 0 : d.title) ?? "Child Attributes"), 1)
65
- ], 64)) : (a(), i(o, { key: 2 }, [
66
- O(" Show " + S(((u = e.value) == null ? void 0 : u.title) ?? "Child Attributes"), 1)
87
+ r ? (a(), i(t, { key: 1 }, [
88
+ k(" Hide " + z(((d = e.value) == null ? void 0 : d.title) ?? "Child Attributes"), 1)
89
+ ], 64)) : (a(), i(t, { key: 2 }, [
90
+ k(" Show " + z(((c = e.value) == null ? void 0 : c.title) ?? "Child Attributes"), 1)
67
91
  ], 64))
68
- ], 64)) : (a(), i(o, { key: 1 }, [
69
- g.value ? (a(), s(r(B), {
92
+ ], 64)) : (a(), i(t, { key: 1 }, [
93
+ f.value ? (a(), s(o(g), {
70
94
  key: 0,
71
- class: m(["schema-card-title-icon", { "schema-card-title-icon--open": t }]),
95
+ class: m(["schema-card-title-icon", { "schema-card-title-icon--open": r }]),
72
96
  icon: "Add",
73
97
  size: "sm"
74
98
  }, null, 8, ["class"])) : n("", !0),
75
- v(F, {
99
+ p(I, {
76
100
  name: ((l = e.value) == null ? void 0 : l.title) ?? e.name,
77
101
  value: e.value
78
102
  }, null, 8, ["name", "value"])
@@ -80,33 +104,33 @@ const I = {
80
104
  ];
81
105
  }),
82
106
  _: 2
83
- }, 1032, ["as", "class", "style"]), [
84
- [N, !e.hideHeading && !(e.noncollapsible && e.compact)]
107
+ }, 1032, ["as", "class", "style"])), [
108
+ [w, !e.hideHeading && !(e.noncollapsible && e.compact)]
85
109
  ]),
86
- v(r(T), {
110
+ p(o($), {
87
111
  as: "ul",
88
112
  static: e.noncollapsible
89
113
  }, {
90
- default: y(() => {
91
- var d, u;
114
+ default: h(() => {
115
+ var d, c;
92
116
  return [
93
- e.value.properties || e.value.additionalProperties || e.value.patternProperties ? (a(), i(o, { key: 0 }, [
94
- e.value.properties ? (a(!0), i(o, { key: 0 }, C(Object.keys((d = e.value) == null ? void 0 : d.properties), (l) => {
95
- var c, f, b, H;
96
- return a(), s(p, {
117
+ e.value.properties || e.value.additionalProperties || e.value.patternProperties ? (a(), i(t, { key: 0 }, [
118
+ e.value.properties ? (a(!0), i(t, { key: 0 }, A(Object.keys((d = e.value) == null ? void 0 : d.properties), (l) => {
119
+ var u, C, S, O;
120
+ return a(), s(v, {
97
121
  key: l,
98
122
  compact: e.compact,
99
123
  hideHeading: e.hideHeading,
100
124
  level: e.level + 1,
101
125
  name: l,
102
- required: ((c = e.value.required) == null ? void 0 : c.includes(l)) || ((b = (f = e.value.properties) == null ? void 0 : f[l]) == null ? void 0 : b.required) === !0,
126
+ required: ((u = e.value.required) == null ? void 0 : u.includes(l)) || ((S = (C = e.value.properties) == null ? void 0 : C[l]) == null ? void 0 : S.required) === !0,
103
127
  schemas: e.schemas,
104
- value: (H = e.value.properties) == null ? void 0 : H[l]
128
+ value: (O = e.value.properties) == null ? void 0 : O[l]
105
129
  }, null, 8, ["compact", "hideHeading", "level", "name", "required", "schemas", "value"]);
106
130
  }), 128)) : n("", !0),
107
- e.value.patternProperties ? (a(!0), i(o, { key: 1 }, C(Object.keys((u = e.value) == null ? void 0 : u.patternProperties), (l) => {
108
- var c;
109
- return a(), s(p, {
131
+ e.value.patternProperties ? (a(!0), i(t, { key: 1 }, A(Object.keys((c = e.value) == null ? void 0 : c.patternProperties), (l) => {
132
+ var u;
133
+ return a(), s(v, {
110
134
  key: l,
111
135
  compact: e.compact,
112
136
  hideHeading: e.hideHeading,
@@ -114,11 +138,11 @@ const I = {
114
138
  name: l,
115
139
  pattern: "",
116
140
  schemas: e.schemas,
117
- value: (c = e.value.patternProperties) == null ? void 0 : c[l]
141
+ value: (u = e.value.patternProperties) == null ? void 0 : u[l]
118
142
  }, null, 8, ["compact", "hideHeading", "level", "name", "schemas", "value"]);
119
143
  }), 128)) : n("", !0),
120
- e.value.additionalProperties ? (a(), i(o, { key: 2 }, [
121
- e.value.additionalProperties === !0 || Object.keys(e.value.additionalProperties).length === 0 || !e.value.additionalProperties.type ? (a(), s(p, {
144
+ e.value.additionalProperties ? (a(), i(t, { key: 2 }, [
145
+ e.value.additionalProperties === !0 || Object.keys(e.value.additionalProperties).length === 0 || !e.value.additionalProperties.type ? (a(), s(v, {
122
146
  key: 0,
123
147
  additional: "",
124
148
  compact: e.compact,
@@ -130,7 +154,7 @@ const I = {
130
154
  type: "anything",
131
155
  ...typeof e.value.additionalProperties == "object" ? e.value.additionalProperties : {}
132
156
  }
133
- }, null, 8, ["compact", "hideHeading", "level", "schemas", "value"])) : (a(), s(p, {
157
+ }, null, 8, ["compact", "hideHeading", "level", "schemas", "value"])) : (a(), s(v, {
134
158
  key: 1,
135
159
  additional: "",
136
160
  compact: e.compact,
@@ -141,7 +165,7 @@ const I = {
141
165
  value: e.value.additionalProperties
142
166
  }, null, 8, ["compact", "hideHeading", "level", "schemas", "value"]))
143
167
  ], 64)) : n("", !0)
144
- ], 64)) : (a(), s(p, {
168
+ ], 64)) : (a(), s(v, {
145
169
  key: 1,
146
170
  compact: e.compact,
147
171
  hideHeading: e.hideHeading,
@@ -162,5 +186,5 @@ const I = {
162
186
  }
163
187
  });
164
188
  export {
165
- R as default
189
+ U as default
166
190
  };
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaProperty.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaProperty.vue"],"names":[],"mappings":"AAwhBA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAe9E;;;;;GAKG;AAEH,KAAK,WAAW,GAAG;IACf,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;;AAkf1B,0BAQG"}
1
+ {"version":3,"file":"SchemaProperty.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaProperty.vue"],"names":[],"mappings":"AAieA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAc9E;;;;;GAKG;AAEH,KAAK,WAAW,GAAG;IACf,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;;AAic1B,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 p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-46e92dc2"]]);
4
+ const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-3431ec35"]]);
5
5
  export {
6
6
  p as default
7
7
  };