@scalar/api-reference 1.33.0 → 1.34.0

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 (146) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/dist/browser/standalone.js +13260 -13196
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/Anchor/WithBreadcrumb.vue.d.ts +24 -0
  5. package/dist/components/Anchor/WithBreadcrumb.vue.d.ts.map +1 -0
  6. package/dist/components/Anchor/WithBreadcrumb.vue.js +4 -0
  7. package/dist/components/Anchor/WithBreadcrumb.vue2.js +46 -0
  8. package/dist/components/Anchor/index.d.ts +1 -0
  9. package/dist/components/Anchor/index.d.ts.map +1 -1
  10. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  11. package/dist/components/ApiReferenceLayout.vue.js +1 -1
  12. package/dist/components/ApiReferenceLayout.vue2.js +184 -201
  13. package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
  14. package/dist/components/Content/Introduction/Introduction.vue.js +1 -1
  15. package/dist/components/Content/Introduction/Introduction.vue2.js +1 -0
  16. package/dist/components/Content/Operations/TraversedEntry.vue.d.ts +1 -0
  17. package/dist/components/Content/Operations/TraversedEntry.vue.d.ts.map +1 -1
  18. package/dist/components/Content/Operations/TraversedEntry.vue.js +34 -32
  19. package/dist/components/Content/Operations/TraversedEntryContainer.vue.d.ts.map +1 -1
  20. package/dist/components/Content/Operations/TraversedEntryContainer.vue.js +33 -29
  21. package/dist/components/Content/Operations/get-current-index.d.ts +4 -0
  22. package/dist/components/Content/Operations/get-current-index.d.ts.map +1 -0
  23. package/dist/components/Content/Operations/get-current-index.js +16 -0
  24. package/dist/components/Content/Schema/Schema.preview.d.ts +28 -0
  25. package/dist/components/Content/Schema/Schema.preview.d.ts.map +1 -1
  26. package/dist/components/Content/Schema/Schema.vue.d.ts +2 -0
  27. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  28. package/dist/components/Content/Schema/Schema.vue.js +2 -2
  29. package/dist/components/Content/Schema/Schema.vue2.js +164 -157
  30. package/dist/components/Content/Schema/SchemaComposition.vue.d.ts +1 -0
  31. package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
  32. package/dist/components/Content/Schema/SchemaComposition.vue.js +58 -53
  33. package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts +1 -0
  34. package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts.map +1 -1
  35. package/dist/components/Content/Schema/SchemaObjectProperties.vue.js +52 -40
  36. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +1 -0
  37. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  38. package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
  39. package/dist/components/Content/Schema/SchemaProperty.vue2.js +100 -87
  40. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  41. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +3 -3
  42. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +4 -1
  43. package/dist/components/Lazy/Lazy.vue.d.ts +1 -0
  44. package/dist/components/Lazy/Lazy.vue.d.ts.map +1 -1
  45. package/dist/components/Lazy/Lazy.vue2.js +12 -11
  46. package/dist/components/Lazy/lazyBus.d.ts +5 -3
  47. package/dist/components/Lazy/lazyBus.d.ts.map +1 -1
  48. package/dist/components/OperationsList/OperationsListItem.vue.d.ts.map +1 -1
  49. package/dist/components/OperationsList/OperationsListItem.vue.js +1 -1
  50. package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts +4 -4
  51. package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts.map +1 -1
  52. package/dist/features/Operation/components/OperationParameters.vue.d.ts +1 -0
  53. package/dist/features/Operation/components/OperationParameters.vue.d.ts.map +1 -1
  54. package/dist/features/Operation/components/OperationParameters.vue.js +49 -43
  55. package/dist/features/Operation/components/OperationResponses.vue.d.ts +1 -0
  56. package/dist/features/Operation/components/OperationResponses.vue.d.ts.map +1 -1
  57. package/dist/features/Operation/components/OperationResponses.vue.js +4 -3
  58. package/dist/features/Operation/components/ParameterHeaders.vue.d.ts +1 -0
  59. package/dist/features/Operation/components/ParameterHeaders.vue.d.ts.map +1 -1
  60. package/dist/features/Operation/components/ParameterHeaders.vue.js +2 -2
  61. package/dist/features/Operation/components/ParameterHeaders.vue2.js +28 -26
  62. package/dist/features/Operation/components/ParameterList.vue.d.ts +1 -0
  63. package/dist/features/Operation/components/ParameterList.vue.d.ts.map +1 -1
  64. package/dist/features/Operation/components/ParameterList.vue.js +2 -2
  65. package/dist/features/Operation/components/ParameterList.vue2.js +17 -15
  66. package/dist/features/Operation/components/ParameterListItem.vue.d.ts +1 -0
  67. package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
  68. package/dist/features/Operation/components/ParameterListItem.vue.js +2 -2
  69. package/dist/features/Operation/components/ParameterListItem.vue2.js +17 -16
  70. package/dist/features/Operation/components/RequestBody.vue.d.ts +2 -2
  71. package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
  72. package/dist/features/Operation/components/RequestBody.vue.js +2 -2
  73. package/dist/features/Operation/components/RequestBody.vue2.js +47 -39
  74. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts +1 -0
  75. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts.map +1 -1
  76. package/dist/features/Operation/components/callbacks/Callback.vue.js +3 -3
  77. package/dist/features/Operation/components/callbacks/Callback.vue2.js +12 -11
  78. package/dist/features/Operation/components/callbacks/Callback.vue3.js +2 -2
  79. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  80. package/dist/features/Operation/layouts/ModernLayout.vue.js +1 -1
  81. package/dist/features/Operation/layouts/ModernLayout.vue2.js +63 -61
  82. package/dist/features/Search/{SearchButton.vue.d.ts → components/SearchButton.vue.d.ts} +0 -2
  83. package/dist/features/Search/components/SearchButton.vue.d.ts.map +1 -0
  84. package/dist/features/Search/components/SearchButton.vue.js +65 -0
  85. package/dist/features/Search/{SearchModal.vue.d.ts → components/SearchModal.vue.d.ts} +0 -2
  86. package/dist/features/Search/components/SearchModal.vue.d.ts.map +1 -0
  87. package/dist/features/Search/components/SearchModal.vue.js +7 -0
  88. package/dist/features/Search/components/SearchModal.vue2.js +199 -0
  89. package/dist/features/Search/helpers/create-fuse-instance.d.ts +9 -0
  90. package/dist/features/Search/helpers/create-fuse-instance.d.ts.map +1 -0
  91. package/dist/features/Search/helpers/create-fuse-instance.js +46 -0
  92. package/dist/features/Search/helpers/create-search-index.d.ts +7 -0
  93. package/dist/features/Search/helpers/create-search-index.d.ts.map +1 -0
  94. package/dist/features/Search/helpers/create-search-index.js +109 -0
  95. package/dist/features/Search/hooks/useSearchIndex.d.ts +14 -0
  96. package/dist/features/Search/hooks/useSearchIndex.d.ts.map +1 -0
  97. package/dist/features/Search/hooks/useSearchIndex.js +46 -0
  98. package/dist/features/Search/index.d.ts +2 -2
  99. package/dist/features/Search/index.d.ts.map +1 -1
  100. package/dist/features/Search/types.d.ts +15 -0
  101. package/dist/features/Search/types.d.ts.map +1 -0
  102. package/dist/features/api-client-modal/useApiClient.d.ts +14 -14
  103. package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -1
  104. package/dist/features/traverse-schema/helpers/traverse-paths.d.ts +3 -1
  105. package/dist/features/traverse-schema/helpers/traverse-paths.d.ts.map +1 -1
  106. package/dist/features/traverse-schema/helpers/traverse-schemas.d.ts.map +1 -1
  107. package/dist/features/traverse-schema/helpers/traverse-schemas.js +18 -18
  108. package/dist/features/traverse-schema/helpers/traverse-tags.d.ts.map +1 -1
  109. package/dist/features/traverse-schema/helpers/traverse-webhooks.d.ts.map +1 -1
  110. package/dist/features/traverse-schema/types.d.ts +10 -6
  111. package/dist/features/traverse-schema/types.d.ts.map +1 -1
  112. package/dist/helpers/test-utils.d.ts +9 -0
  113. package/dist/helpers/test-utils.d.ts.map +1 -1
  114. package/dist/hooks/useNavState.d.ts +4 -1
  115. package/dist/hooks/useNavState.d.ts.map +1 -1
  116. package/dist/index.d.ts +0 -1
  117. package/dist/index.d.ts.map +1 -1
  118. package/dist/index.js +17 -19
  119. package/dist/libs/openapi.d.ts +11 -8
  120. package/dist/libs/openapi.d.ts.map +1 -1
  121. package/dist/libs/openapi.js +34 -55
  122. package/dist/style.css +1 -1
  123. package/dist/types.d.ts +1 -6
  124. package/dist/types.d.ts.map +1 -1
  125. package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
  126. package/dist/v2/ApiReferenceWorkspace.vue.js +120 -111
  127. package/dist/v2/helpers/get-document-name.d.ts +13 -0
  128. package/dist/v2/helpers/get-document-name.d.ts.map +1 -0
  129. package/dist/v2/helpers/get-document-name.js +15 -0
  130. package/dist/v2/helpers/normalize-content.d.ts +3 -0
  131. package/dist/v2/helpers/normalize-content.d.ts.map +1 -0
  132. package/dist/v2/helpers/normalize-content.js +8 -0
  133. package/package.json +14 -8
  134. package/dist/features/Search/SearchButton.vue.d.ts.map +0 -1
  135. package/dist/features/Search/SearchButton.vue.js +0 -66
  136. package/dist/features/Search/SearchModal.vue.d.ts.map +0 -1
  137. package/dist/features/Search/SearchModal.vue.js +0 -7
  138. package/dist/features/Search/SearchModal.vue2.js +0 -207
  139. package/dist/features/Search/useSearchIndex.d.ts +0 -32
  140. package/dist/features/Search/useSearchIndex.d.ts.map +0 -1
  141. package/dist/features/Search/useSearchIndex.js +0 -170
  142. package/dist/helpers/parse.d.ts +0 -10
  143. package/dist/helpers/parse.d.ts.map +0 -1
  144. package/dist/helpers/parse.js +0 -81
  145. /package/dist/features/Search/{SearchButton.vue2.js → components/SearchButton.vue2.js} +0 -0
  146. /package/dist/features/Search/{SearchModal.vue3.js → components/SearchModal.vue3.js} +0 -0
@@ -1,92 +1,104 @@
1
- import { defineComponent as P, createElementBlock as m, openBlock as i, Fragment as o, createCommentVNode as s, createBlock as n, renderList as g } from "vue";
2
- import t from "./SchemaProperty.vue.js";
3
- const H = /* @__PURE__ */ P({
1
+ import { defineComponent as V, computed as k, createElementBlock as d, openBlock as a, Fragment as l, createCommentVNode as c, createBlock as p, renderList as y } from "vue";
2
+ import h from "./SchemaProperty.vue.js";
3
+ const j = /* @__PURE__ */ V({
4
4
  __name: "SchemaObjectProperties",
5
5
  props: {
6
6
  schema: { type: [Object, Boolean] },
7
7
  compact: { type: Boolean },
8
8
  hideHeading: { type: Boolean },
9
- level: { default: 0 },
10
- hideModelNames: { type: Boolean, default: !1 },
9
+ level: {},
10
+ hideModelNames: { type: Boolean },
11
11
  schemas: {},
12
12
  discriminator: {},
13
13
  discriminatorMapping: {},
14
14
  discriminatorPropertyName: {},
15
- hasDiscriminator: { type: Boolean }
15
+ hasDiscriminator: { type: Boolean },
16
+ breadcrumb: {}
16
17
  },
17
18
  emits: ["update:modelValue"],
18
- setup(f, { emit: y }) {
19
- const v = y, r = (e) => {
20
- v("update:modelValue", e);
21
- }, M = (e) => typeof e == "object" && typeof e["x-additionalPropertiesName"] == "string" && e["x-additionalPropertiesName"].trim().length > 0 ? `${e["x-additionalPropertiesName"].trim()}*` : "propertyName*", d = (e) => e === !0 || typeof e == "object" && Object.keys(e).length === 0 || typeof e != "object" || !("type" in e) ? {
19
+ setup(s, { emit: v }) {
20
+ const P = v, M = k(() => {
21
+ if (!s.schema.properties)
22
+ return [];
23
+ const e = Object.keys(s.schema.properties), t = new Set(s.schema.required || []);
24
+ return e.sort((r, i) => {
25
+ const m = t.has(r), o = t.has(i);
26
+ return m && !o ? -1 : !m && o ? 1 : r.localeCompare(i);
27
+ });
28
+ }), n = (e) => {
29
+ P("update:modelValue", e);
30
+ }, f = (e) => typeof e == "object" && typeof e["x-additionalPropertiesName"] == "string" && e["x-additionalPropertiesName"].trim().length > 0 ? `${e["x-additionalPropertiesName"].trim()}*` : "propertyName*", u = (e) => e === !0 || typeof e == "object" && Object.keys(e).length === 0 || typeof e != "object" || !("type" in e) ? {
22
31
  type: "anything",
23
32
  ...typeof e == "object" ? e : {}
24
33
  } : e;
25
- return (e, V) => (i(), m(o, null, [
26
- e.schema.properties ? (i(!0), m(o, { key: 0 }, g(Object.keys(e.schema.properties), (a) => {
27
- var l, p, c, h, u, N;
28
- return i(), n(t, {
29
- key: a,
34
+ return (e, t) => (a(), d(l, null, [
35
+ e.schema.properties ? (a(!0), d(l, { key: 0 }, y(M.value, (r) => {
36
+ var i, m, o, N, b, g;
37
+ return a(), p(h, {
38
+ key: r,
39
+ breadcrumb: e.breadcrumb,
30
40
  compact: e.compact,
31
41
  hideHeading: e.hideHeading,
32
42
  level: e.level,
33
- name: a,
43
+ name: r,
34
44
  hideModelNames: e.hideModelNames,
35
- required: ((l = e.schema.required) == null ? void 0 : l.includes(a)) || ((p = e.schema.properties[a]) == null ? void 0 : p.required) === !0,
45
+ required: ((i = e.schema.required) == null ? void 0 : i.includes(r)) || ((m = e.schema.properties[r]) == null ? void 0 : m.required) === !0,
36
46
  schemas: e.schemas,
37
- resolvedSchema: e.schema.properties[a],
47
+ resolvedSchema: e.schema.properties[r],
38
48
  value: {
39
- ...e.schema.properties[a],
49
+ ...e.schema.properties[r],
40
50
  parent: e.schema,
41
- isDiscriminator: a === e.discriminatorPropertyName || ((c = e.schema.discriminator) == null ? void 0 : c.propertyName) === a
51
+ isDiscriminator: r === e.discriminatorPropertyName || ((o = e.schema.discriminator) == null ? void 0 : o.propertyName) === r
42
52
  },
43
- discriminatorMapping: ((h = e.schema.discriminator) == null ? void 0 : h.mapping) || e.discriminatorMapping,
44
- discriminatorPropertyName: ((u = e.schema.discriminator) == null ? void 0 : u.propertyName) || e.discriminatorPropertyName,
45
- isDiscriminator: a === (((N = e.schema.discriminator) == null ? void 0 : N.propertyName) || e.discriminatorPropertyName),
53
+ discriminatorMapping: ((N = e.schema.discriminator) == null ? void 0 : N.mapping) || e.discriminatorMapping,
54
+ discriminatorPropertyName: ((b = e.schema.discriminator) == null ? void 0 : b.propertyName) || e.discriminatorPropertyName,
55
+ isDiscriminator: r === (((g = e.schema.discriminator) == null ? void 0 : g.propertyName) || e.discriminatorPropertyName),
46
56
  modelValue: e.discriminator,
47
- "onUpdate:modelValue": r
48
- }, null, 8, ["compact", "hideHeading", "level", "name", "hideModelNames", "required", "schemas", "resolvedSchema", "value", "discriminatorMapping", "discriminatorPropertyName", "isDiscriminator", "modelValue"]);
49
- }), 128)) : s("", !0),
50
- e.schema.patternProperties ? (i(!0), m(o, { key: 1 }, g(Object.keys(e.schema.patternProperties), (a) => (i(), n(t, {
51
- key: a,
57
+ "onUpdate:modelValue": n
58
+ }, null, 8, ["breadcrumb", "compact", "hideHeading", "level", "name", "hideModelNames", "required", "schemas", "resolvedSchema", "value", "discriminatorMapping", "discriminatorPropertyName", "isDiscriminator", "modelValue"]);
59
+ }), 128)) : c("", !0),
60
+ e.schema.patternProperties ? (a(!0), d(l, { key: 1 }, y(Object.keys(e.schema.patternProperties), (r) => (a(), p(h, {
61
+ breadcrumb: e.breadcrumb,
62
+ key: r,
52
63
  variant: "patternProperties",
53
64
  compact: e.compact,
54
65
  hideHeading: e.hideHeading,
55
66
  level: e.level,
56
- name: a,
67
+ name: r,
57
68
  hideModelNames: e.hideModelNames,
58
69
  schemas: e.schemas,
59
- resolvedSchema: e.schema.patternProperties[a],
70
+ resolvedSchema: e.schema.patternProperties[r],
60
71
  value: {
61
- ...e.schema.patternProperties[a]
72
+ ...e.schema.patternProperties[r]
62
73
  },
63
74
  discriminatorMapping: e.discriminatorMapping,
64
75
  discriminatorPropertyName: e.discriminatorPropertyName,
65
76
  isDiscriminator: !1,
66
77
  modelValue: e.discriminator,
67
- "onUpdate:modelValue": r
68
- }, null, 8, ["compact", "hideHeading", "level", "name", "hideModelNames", "schemas", "resolvedSchema", "value", "discriminatorMapping", "discriminatorPropertyName", "modelValue"]))), 128)) : s("", !0),
69
- e.schema.additionalProperties ? (i(), n(t, {
78
+ "onUpdate:modelValue": n
79
+ }, null, 8, ["breadcrumb", "compact", "hideHeading", "level", "name", "hideModelNames", "schemas", "resolvedSchema", "value", "discriminatorMapping", "discriminatorPropertyName", "modelValue"]))), 128)) : c("", !0),
80
+ e.schema.additionalProperties ? (a(), p(h, {
70
81
  key: 2,
82
+ breadcrumb: e.breadcrumb,
71
83
  variant: "additionalProperties",
72
84
  compact: e.compact,
73
85
  hideHeading: e.hideHeading,
74
86
  level: e.level,
75
- name: M(e.schema.additionalProperties),
87
+ name: f(e.schema.additionalProperties),
76
88
  hideModelNames: e.hideModelNames,
77
89
  schemas: e.schemas,
78
- resolvedSchema: d(e.schema.additionalProperties),
79
- value: d(e.schema.additionalProperties),
90
+ resolvedSchema: u(e.schema.additionalProperties),
91
+ value: u(e.schema.additionalProperties),
80
92
  discriminatorMapping: e.discriminatorMapping,
81
93
  discriminatorPropertyName: e.discriminatorPropertyName,
82
94
  isDiscriminator: !1,
83
95
  modelValue: e.discriminator,
84
96
  noncollapsible: "",
85
- "onUpdate:modelValue": r
86
- }, null, 8, ["compact", "hideHeading", "level", "name", "hideModelNames", "schemas", "resolvedSchema", "value", "discriminatorMapping", "discriminatorPropertyName", "modelValue"])) : s("", !0)
97
+ "onUpdate:modelValue": n
98
+ }, null, 8, ["breadcrumb", "compact", "hideHeading", "level", "name", "hideModelNames", "schemas", "resolvedSchema", "value", "discriminatorMapping", "discriminatorPropertyName", "modelValue"])) : c("", !0)
87
99
  ], 64));
88
100
  }
89
101
  });
90
102
  export {
91
- H as default
103
+ j as default
92
104
  };
@@ -23,6 +23,7 @@ type __VLS_Props = {
23
23
  discriminatorPropertyName?: string;
24
24
  isDiscriminator?: boolean;
25
25
  variant?: 'additionalProperties' | 'patternProperties';
26
+ breadcrumb?: string[];
26
27
  };
27
28
  declare const _default_1: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
28
29
  "update:modelValue": (value: string) => any;
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaProperty.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaProperty.vue"],"names":[],"mappings":"AAqhBA,OAAO,EAAoB,KAAK,SAAS,EAAE,MAAM,KAAK,CAAA;AAGtD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAgBjE;;;;;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,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,oBAAoB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC7C,yBAAyB,CAAC,EAAE,MAAM,CAAA;IAClC,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,OAAO,CAAC,EAAE,sBAAsB,GAAG,mBAAmB,CAAA;CACvD,CAAC;;;;;;cAXW,OAAO;WAFV,MAAM;aAGJ,OAAO;oBAGA,OAAO;kBADT,OAAO;;AAohB1B,0BASG"}
1
+ {"version":3,"file":"SchemaProperty.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaProperty.vue"],"names":[],"mappings":"AAuiBA,OAAO,EAAoB,KAAK,SAAS,EAAE,MAAM,KAAK,CAAA;AAItD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAgBjE;;;;;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,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,oBAAoB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC7C,yBAAyB,CAAC,EAAE,MAAM,CAAA;IAClC,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,OAAO,CAAC,EAAE,sBAAsB,GAAG,mBAAmB,CAAA;IACtD,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;CACtB,CAAC;;;;;;cAZW,OAAO;WAFV,MAAM;aAGJ,OAAO;oBAGA,OAAO;kBADT,OAAO;;AAuiB1B,0BASG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./SchemaProperty.vue2.js";
2
2
  import "./SchemaProperty.vue3.js";
3
3
  import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const a = /* @__PURE__ */ r(o, [["__scopeId", "data-v-4d69c400"]]);
4
+ const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-705ef8bd"]]);
5
5
  export {
6
- a as default
6
+ p as default
7
7
  };
@@ -1,33 +1,34 @@
1
- import { defineComponent as A, computed as p, inject as z, createBlock as c, openBlock as r, resolveDynamicComponent as Z, normalizeClass as L, withCtx as v, createCommentVNode as l, createElementBlock as t, createVNode as d, createSlots as X, toDisplayString as y, Fragment as f, createTextVNode as V, unref as h, renderList as G } from "vue";
1
+ import { defineComponent as z, computed as m, inject as Z, createBlock as u, openBlock as a, resolveDynamicComponent as L, normalizeClass as X, withCtx as b, createCommentVNode as l, createElementBlock as o, createVNode as d, createSlots as G, unref as y, toDisplayString as f, Fragment as h, createTextVNode as V, renderList as J } from "vue";
2
2
  import { ScalarMarkdown as D } from "@scalar/components";
3
- import { isTypeObject as J } from "./helpers/is-type-object.js";
4
- import { DISCRIMINATOR_CONTEXT as K } from "../../../hooks/useDiscriminator.js";
5
- import { optimizeValueForDisplay as Q, compositions as W } from "./helpers/optimize-value-for-display.js";
6
- import C from "./Schema.vue.js";
7
- import H from "./SchemaComposition.vue.js";
8
- import Y from "./SchemaDiscriminator.vue.js";
9
- import _ from "./SchemaEnumValues.vue.js";
10
- import x from "./SchemaPropertyHeading.vue.js";
11
- import ee from "../../../features/specification-extension/SpecificationExtension.vue.js";
12
- const ie = {
3
+ import { isTypeObject as K } from "./helpers/is-type-object.js";
4
+ import { DISCRIMINATOR_CONTEXT as Q } from "../../../hooks/useDiscriminator.js";
5
+ import { optimizeValueForDisplay as W, compositions as Y } from "./helpers/optimize-value-for-display.js";
6
+ import H from "./Schema.vue.js";
7
+ import C from "./SchemaComposition.vue.js";
8
+ import _ from "./SchemaDiscriminator.vue.js";
9
+ import x from "./SchemaEnumValues.vue.js";
10
+ import ee from "./SchemaPropertyHeading.vue.js";
11
+ import re from "../../Anchor/WithBreadcrumb.vue2.js";
12
+ import ie from "../../../features/specification-extension/SpecificationExtension.vue.js";
13
+ const ae = {
13
14
  key: 0,
14
15
  class: "property-name-pattern-properties"
15
16
  }, ne = {
16
17
  key: 1,
17
18
  class: "property-name-additional-properties"
18
- }, re = {
19
+ }, oe = {
19
20
  key: 1,
20
21
  class: "property-description"
21
- }, ae = {
22
+ }, te = {
22
23
  key: 2,
23
24
  class: "property-description"
24
- }, te = {
25
+ }, se = {
25
26
  key: 3,
26
27
  class: "children"
27
- }, oe = {
28
+ }, me = {
28
29
  key: 0,
29
30
  class: "children"
30
- }, be = /* @__PURE__ */ A({
31
+ }, Ne = /* @__PURE__ */ z({
31
32
  __name: "SchemaProperty",
32
33
  props: {
33
34
  is: {},
@@ -45,11 +46,12 @@ const ie = {
45
46
  discriminatorMapping: {},
46
47
  discriminatorPropertyName: {},
47
48
  isDiscriminator: { type: Boolean },
48
- variant: {}
49
+ variant: {},
50
+ breadcrumb: {}
49
51
  },
50
52
  emits: ["update:modelValue"],
51
53
  setup(T, { emit: R }) {
52
- const u = T, w = R, k = {
54
+ const c = T, w = R, k = {
53
55
  integer: {
54
56
  _default: "Integer numbers.",
55
57
  int32: "Signed 32-bit integers (commonly used integer type).",
@@ -63,117 +65,127 @@ const ie = {
63
65
  byte: "base64-encoded characters, for example, U3dhZ2dlciByb2Nrcw==",
64
66
  binary: "binary data, used to describe files"
65
67
  }
66
- }, g = (e, i) => i != null && i.properties || i != null && i.additionalProperties || i != null && i.patternProperties || i != null && i.allOf ? null : e || (i == null ? void 0 : i.description) || null, N = (e) => !e || !k[e.type] ? null : k[e.type][e.format || e.contentEncoding || "_default"], E = (e) => {
67
- var i;
68
- return (e == null ? void 0 : e.enum) || ((i = e == null ? void 0 : e.items) == null ? void 0 : i.enum) || [];
69
- }, n = p(() => Q(u.value)), o = z(K, null), a = p(() => {
68
+ }, g = (e, r) => r != null && r.properties || r != null && r.additionalProperties || r != null && r.patternProperties || r != null && r.allOf ? null : e || (r == null ? void 0 : r.description) || null, N = (e) => !e || !k[e.type] ? null : k[e.type][e.format || e.contentEncoding || "_default"], E = (e) => {
69
+ var r;
70
+ return (e == null ? void 0 : e.enum) || ((r = e == null ? void 0 : e.items) == null ? void 0 : r.enum) || [];
71
+ }, i = m(() => W(c.value)), t = Z(Q, null), n = m(() => {
70
72
  var e;
71
- return u.level > 0 ? n.value : (e = o == null ? void 0 : o.value) != null && e.mergedSchema ? o.value.mergedSchema : n.value;
72
- }), I = p(() => {
73
+ return c.level > 0 ? i.value : (e = t == null ? void 0 : t.value) != null && e.mergedSchema ? t.value.mergedSchema : i.value;
74
+ }), I = m(() => {
73
75
  var e;
74
- return ((e = o == null ? void 0 : o.value) == null ? void 0 : e.selectedType) || (u.discriminatorMapping ? Object.keys(u.discriminatorMapping)[0] : "");
75
- }), U = (e, i, m) => i || (e == null ? void 0 : e.deprecated) || (e == null ? void 0 : e.const) !== void 0 || (e == null ? void 0 : e.enum) && e.enum.length === 1 || (e == null ? void 0 : e.type) || (e == null ? void 0 : e.nullable) === !0 || (e == null ? void 0 : e.writeOnly) || (e == null ? void 0 : e.readOnly) || m, b = (e) => {
76
+ return ((e = t == null ? void 0 : t.value) == null ? void 0 : e.selectedType) || (c.discriminatorMapping ? Object.keys(c.discriminatorMapping)[0] : "");
77
+ }), U = (e, r, p) => r || (e == null ? void 0 : e.deprecated) || (e == null ? void 0 : e.const) !== void 0 || (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) || p, v = (e) => {
76
78
  w("update:modelValue", e);
77
- }, P = p(() => {
78
- const e = n.value;
79
+ }, P = m(() => {
80
+ const e = i.value;
79
81
  if (!(e != null && e.items) || typeof e.items != "object")
80
82
  return !1;
81
- const i = e.items;
82
- return "type" in i && ["object"].includes(i.type) || "$ref" in i || "discriminator" in i || "allOf" in i || "oneOf" in i || "anyOf" in i;
83
- }), q = (e) => {
84
- const i = n.value;
85
- return !(i != null && i.items) || typeof i.items != "object" || !(e in i.items) ? !1 : !P.value;
86
- }, F = p(() => P.value), $ = p(() => {
87
- if (!n.value)
83
+ const r = e.items;
84
+ return "type" in r && ["object"].includes(r.type) || "$ref" in r || "discriminator" in r || "allOf" in r || "oneOf" in r || "anyOf" in r;
85
+ }), $ = (e) => {
86
+ const r = i.value;
87
+ return !(r != null && r.items) || typeof r.items != "object" || !(e in r.items) ? !1 : !P.value;
88
+ }, q = m(() => P.value), F = m(() => {
89
+ if (!i.value)
88
90
  return !1;
89
- const e = n.value, i = J(e), m = e.properties || e.additionalProperties;
90
- return i && m;
91
- });
92
- return (e, i) => {
93
- var m;
94
- return r(), c(Z(e.is ?? "li"), {
95
- class: L(["property", [
96
- (g(e.description, n.value), ""),
91
+ const e = i.value, r = K(e), p = e.properties || e.additionalProperties;
92
+ return r && p;
93
+ }), A = m(() => c.level <= 1);
94
+ return (e, r) => {
95
+ var p;
96
+ return a(), u(L(e.is ?? "li"), {
97
+ class: X(["property", [
98
+ (g(e.description, i.value), ""),
97
99
  `property--level-${e.level}`,
98
100
  {
99
101
  "property--compact": e.compact,
100
- "property--deprecated": (m = n.value) == null ? void 0 : m.deprecated
102
+ "property--deprecated": (p = i.value) == null ? void 0 : p.deprecated
101
103
  }
102
104
  ]])
103
105
  }, {
104
- default: v(() => {
106
+ default: b(() => {
105
107
  var M, S;
106
108
  return [
107
- U(n.value, e.name, e.required) ? (r(), c(x, {
109
+ U(i.value, e.name, e.required) ? (a(), u(ee, {
108
110
  key: 0,
109
- enum: E(n.value).length > 0,
111
+ enum: E(i.value).length > 0,
110
112
  required: e.required,
111
- value: n.value,
113
+ value: i.value,
112
114
  schemas: e.schemas,
113
- hideModelNames: e.hideModelNames
114
- }, X({ _: 2 }, [
115
+ hideModelNames: e.hideModelNames,
116
+ class: "group"
117
+ }, G({ _: 2 }, [
115
118
  e.name ? {
116
119
  name: "name",
117
- fn: v(() => [
118
- e.variant === "patternProperties" ? (r(), t("span", ie, y(e.name), 1)) : e.variant === "additionalProperties" ? (r(), t("span", ne, y(e.name), 1)) : (r(), t(f, { key: 2 }, [
119
- V(y(e.name), 1)
120
- ], 64))
120
+ fn: b(() => [
121
+ d(y(re), {
122
+ breadcrumb: A.value && e.breadcrumb ? [...e.breadcrumb, e.name] : void 0
123
+ }, {
124
+ default: b(() => [
125
+ e.variant === "patternProperties" ? (a(), o("span", ae, f(e.name), 1)) : e.variant === "additionalProperties" ? (a(), o("span", ne, f(e.name), 1)) : (a(), o(h, { key: 2 }, [
126
+ V(f(e.name), 1)
127
+ ], 64))
128
+ ]),
129
+ _: 1
130
+ }, 8, ["breadcrumb"])
121
131
  ]),
122
132
  key: "0"
123
133
  } : void 0,
124
- (M = n.value) != null && M.example ? {
134
+ (M = i.value) != null && M.example ? {
125
135
  name: "example",
126
- fn: v(() => [
127
- V(" Example: " + y(n.value.example), 1)
136
+ fn: b(() => [
137
+ V(" Example: " + f(i.value.example), 1)
128
138
  ]),
129
139
  key: "1"
130
140
  } : void 0
131
141
  ]), 1032, ["enum", "required", "value", "schemas", "hideModelNames"])) : l("", !0),
132
- g(e.description, n.value) ? (r(), t("div", re, [
133
- d(h(D), {
134
- value: g(e.description, n.value)
142
+ g(e.description, i.value) ? (a(), o("div", oe, [
143
+ d(y(D), {
144
+ value: g(e.description, i.value)
135
145
  }, null, 8, ["value"])
136
- ])) : N(n.value) ? (r(), t("div", ae, [
137
- d(h(D), {
138
- value: N(n.value) || ""
146
+ ])) : N(i.value) ? (a(), o("div", te, [
147
+ d(y(D), {
148
+ value: N(i.value) || ""
139
149
  }, null, 8, ["value"])
140
150
  ])) : l("", !0),
141
- d(_, { value: n.value }, null, 8, ["value"]),
142
- $.value ? (r(), t("div", te, [
143
- d(C, {
151
+ d(x, { value: i.value }, null, 8, ["value"]),
152
+ F.value ? (a(), o("div", se, [
153
+ d(H, {
144
154
  compact: e.compact,
155
+ breadcrumb: e.breadcrumb && e.name ? [...e.breadcrumb, e.name] : void 0,
145
156
  level: e.level + 1,
146
157
  name: e.name,
147
158
  noncollapsible: e.noncollapsible,
148
- value: a.value,
149
- resolvedSchema: a.value,
159
+ value: n.value,
160
+ resolvedSchema: n.value,
150
161
  discriminatorMapping: e.discriminatorMapping,
151
162
  discriminatorPropertyName: e.discriminatorPropertyName,
152
163
  schemas: e.schemas,
153
- "onUpdate:modelValue": b
154
- }, null, 8, ["compact", "level", "name", "noncollapsible", "value", "resolvedSchema", "discriminatorMapping", "discriminatorPropertyName", "schemas"])
164
+ "onUpdate:modelValue": v
165
+ }, null, 8, ["compact", "breadcrumb", "level", "name", "noncollapsible", "value", "resolvedSchema", "discriminatorMapping", "discriminatorPropertyName", "schemas"])
155
166
  ])) : l("", !0),
156
- (S = n.value) != null && S.items && typeof n.value.items == "object" ? (r(), t(f, { key: 4 }, [
157
- F.value ? (r(), t("div", oe, [
158
- d(C, {
167
+ (S = i.value) != null && S.items && typeof i.value.items == "object" ? (a(), o(h, { key: 4 }, [
168
+ q.value ? (a(), o("div", me, [
169
+ d(H, {
159
170
  compact: e.compact,
160
171
  level: e.level + 1,
161
172
  name: e.name,
162
173
  noncollapsible: e.noncollapsible,
163
- value: a.value && typeof a.value == "object" && "items" in a.value ? a.value.items : n.value.items,
164
- resolvedSchema: a.value && typeof a.value == "object" && "items" in a.value ? a.value.items : n.value.items,
174
+ value: n.value && typeof n.value == "object" && "items" in n.value ? n.value.items : i.value.items,
175
+ resolvedSchema: n.value && typeof n.value == "object" && "items" in n.value ? n.value.items : i.value.items,
165
176
  discriminatorMapping: e.discriminatorMapping,
166
177
  discriminatorPropertyName: e.discriminatorPropertyName,
167
178
  schemas: e.schemas,
168
- "onUpdate:modelValue": b
179
+ "onUpdate:modelValue": v
169
180
  }, null, 8, ["compact", "level", "name", "noncollapsible", "value", "resolvedSchema", "discriminatorMapping", "discriminatorPropertyName", "schemas"])
170
181
  ])) : l("", !0)
171
182
  ], 64)) : l("", !0),
172
- (r(!0), t(f, null, G(h(W), (s) => {
183
+ (a(!0), o(h, null, J(y(Y), (s) => {
173
184
  var O, j, B;
174
- return r(), t(f, { key: s }, [
175
- (O = n.value) != null && O[s] && !((j = n.value) != null && j.items && typeof s == "string" && typeof n.value.items == "object" && s in n.value.items) ? (r(), c(H, {
185
+ return a(), o(h, { key: s }, [
186
+ (O = i.value) != null && O[s] && !((j = i.value) != null && j.items && typeof s == "string" && typeof i.value.items == "object" && s in i.value.items) ? (a(), u(C, {
176
187
  key: 0,
188
+ breadcrumb: e.breadcrumb,
177
189
  compact: e.compact,
178
190
  composition: s,
179
191
  hideHeading: e.hideHeading,
@@ -181,9 +193,10 @@ const ie = {
181
193
  name: e.name,
182
194
  noncollapsible: e.noncollapsible,
183
195
  schemas: e.schemas,
184
- value: n.value
185
- }, null, 8, ["compact", "composition", "hideHeading", "level", "name", "noncollapsible", "schemas", "value"])) : q(s) ? (r(), c(H, {
196
+ value: i.value
197
+ }, null, 8, ["breadcrumb", "compact", "composition", "hideHeading", "level", "name", "noncollapsible", "schemas", "value"])) : $(s) ? (a(), u(C, {
186
198
  key: 1,
199
+ breadcrumb: e.breadcrumb,
187
200
  compact: e.compact,
188
201
  composition: s,
189
202
  hideHeading: e.hideHeading,
@@ -191,17 +204,17 @@ const ie = {
191
204
  name: e.name,
192
205
  noncollapsible: e.noncollapsible,
193
206
  schemas: e.schemas,
194
- value: (B = n.value) == null ? void 0 : B.items
195
- }, null, 8, ["compact", "composition", "hideHeading", "level", "name", "noncollapsible", "schemas", "value"])) : l("", !0)
207
+ value: (B = i.value) == null ? void 0 : B.items
208
+ }, null, 8, ["breadcrumb", "compact", "composition", "hideHeading", "level", "name", "noncollapsible", "schemas", "value"])) : l("", !0)
196
209
  ], 64);
197
210
  }), 128)),
198
- e.isDiscriminator && e.discriminatorMapping && e.compact ? (r(), c(Y, {
211
+ e.isDiscriminator && e.discriminatorMapping && e.compact ? (a(), u(_, {
199
212
  key: 5,
200
213
  "discriminator-mapping": e.discriminatorMapping,
201
214
  discriminator: I.value,
202
- "onUpdate:modelValue": b
215
+ "onUpdate:modelValue": v
203
216
  }, null, 8, ["discriminator-mapping", "discriminator"])) : l("", !0),
204
- d(h(ee), { value: n.value }, null, 8, ["value"])
217
+ d(y(ie), { value: i.value }, null, 8, ["value"])
205
218
  ];
206
219
  }),
207
220
  _: 1
@@ -210,5 +223,5 @@ const ie = {
210
223
  }
211
224
  });
212
225
  export {
213
- be as default
226
+ Ne as default
214
227
  };
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaPropertyHeading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaPropertyHeading.vue"],"names":[],"mappings":"AA6SA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAWjE,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;AAuEF,iBAAS,cAAc;WA2UT,OAAO,IAA6B;;sBARxB,GAAG;;;;EAa5B;AAkBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,6SAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"SchemaPropertyHeading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaPropertyHeading.vue"],"names":[],"mappings":"AA8SA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAWjE,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;AAuEF,iBAAS,cAAc;WA2UT,OAAO,IAA6B;;sBARxB,GAAG;;;;EAa5B;AAkBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,6SAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import o from "./SchemaPropertyHeading.vue2.js";
2
2
  import "./SchemaPropertyHeading.vue3.js";
3
- import a from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ a(o, [["__scopeId", "data-v-956a258a"]]);
3
+ import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-fe194f0c"]]);
5
5
  export {
6
- m as default
6
+ f as default
7
7
  };
@@ -121,7 +121,10 @@ const R = { class: "property-heading" }, j = {
121
121
  _: 1,
122
122
  __: [3]
123
123
  })) : a("", !0),
124
- e.value.format ? (r(), i(n, { key: 5 }, {
124
+ e.value.format ? (r(), i(n, {
125
+ key: 5,
126
+ truncate: ""
127
+ }, {
125
128
  default: u(() => [
126
129
  y(S, null, {
127
130
  default: u(() => t[4] || (t[4] = [
@@ -2,6 +2,7 @@ type __VLS_Props = {
2
2
  id?: string;
3
3
  isLazy?: boolean;
4
4
  lazyTimeout?: number;
5
+ prev?: boolean;
5
6
  };
6
7
  declare function __VLS_template(): {
7
8
  attrs: Partial<{}>;
@@ -1 +1 @@
1
- {"version":3,"file":"Lazy.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Lazy/Lazy.vue"],"names":[],"mappings":"AAwFA,KAAK,WAAW,GAAG;IAEjB,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX,MAAM,CAAC,EAAE,OAAO,CAAA;IAEhB,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAC;AA4CF,iBAAS,cAAc;WAmCT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AASD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"Lazy.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Lazy/Lazy.vue"],"names":[],"mappings":"AA8FA,KAAK,WAAW,GAAG;IAEjB,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX,MAAM,CAAC,EAAE,OAAO,CAAA;IAEhB,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB,IAAI,CAAC,EAAE,OAAO,CAAA;CACf,CAAC;AAgDF,iBAAS,cAAc;WAmCT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AASD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,25 +1,26 @@
1
- import { defineComponent as n, ref as o, nextTick as i, renderSlot as u, createCommentVNode as m } from "vue";
2
- import { lazyBus as a } from "./lazyBus.js";
3
- const f = 300, c = /* @__PURE__ */ n({
1
+ import { defineComponent as o, ref as u, nextTick as a, renderSlot as f, createCommentVNode as m } from "vue";
2
+ import { lazyBus as d } from "./lazyBus.js";
3
+ const s = 300, T = /* @__PURE__ */ o({
4
4
  __name: "Lazy",
5
5
  props: {
6
6
  id: {},
7
7
  isLazy: { type: Boolean, default: !0 },
8
- lazyTimeout: { default: 0 }
8
+ lazyTimeout: { default: 0 },
9
+ prev: { type: Boolean, default: !1 }
9
10
  },
10
11
  setup(e) {
11
- const l = (t) => {
12
+ const i = e.prev || !e.isLazy, n = (t) => {
12
13
  typeof window > "u" || ("requestIdleCallback" in window ? setTimeout(() => window.requestIdleCallback(t), e.lazyTimeout) : setTimeout(() => {
13
- i(() => {
14
+ a(() => {
14
15
  t();
15
16
  }), e.lazyTimeout;
16
17
  }));
17
- }, d = o(!e.isLazy);
18
- return a.emit({ loading: e.id }), e.isLazy ? l(() => {
19
- d.value = !0, e.id && i(() => a.emit({ loaded: e.id }));
20
- }) : e.id && i(() => a.emit({ loaded: e.id })), (t, r) => d.value ? u(t.$slots, "default", { key: 0 }) : m("", !0);
18
+ }, l = u(!e.isLazy);
19
+ return d.emit({ loading: e.id, save: i }), e.isLazy ? n(() => {
20
+ l.value = !0, e.id && a(() => d.emit({ loaded: e.id, save: i }));
21
+ }) : e.id && a(() => d.emit({ loaded: e.id, save: i })), (t, y) => l.value ? f(t.$slots, "default", { key: 0 }) : m("", !0);
21
22
  }
22
23
  });
23
24
  export {
24
- c as default
25
+ T as default
25
26
  };
@@ -1,8 +1,10 @@
1
- /** All aboard the lazy bus! */
2
- export declare const lazyBus: import("@vueuse/core").UseEventBusReturn<{
1
+ export type LazyEvent = {
3
2
  loading?: string;
4
3
  loaded?: string;
5
- }, any>;
4
+ save: boolean;
5
+ };
6
+ /** All aboard the lazy bus! */
7
+ export declare const lazyBus: import("@vueuse/core").UseEventBusReturn<LazyEvent, any>;
6
8
  /** Ensure we only lazy load once per page load */
7
9
  export declare const hasLazyLoaded: import("vue").Ref<boolean, boolean>;
8
10
  //# sourceMappingURL=lazyBus.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"lazyBus.d.ts","sourceRoot":"","sources":["../../../src/components/Lazy/lazyBus.ts"],"names":[],"mappings":"AAMA,+BAA+B;AAC/B,eAAO,MAAM,OAAO;cAH2B,MAAM;aAAW,MAAM;OAGnB,CAAA;AAEnD,kDAAkD;AAClD,eAAO,MAAM,aAAa,qCAAa,CAAA"}
1
+ {"version":3,"file":"lazyBus.d.ts","sourceRoot":"","sources":["../../../src/components/Lazy/lazyBus.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,SAAS,GAAG;IAAE,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,OAAO,CAAA;CAAE,CAAA;AAK5E,+BAA+B;AAC/B,eAAO,MAAM,OAAO,0DAA+B,CAAA;AAEnD,kDAAkD;AAClD,eAAO,MAAM,aAAa,qCAAa,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"OperationsListItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/OperationsList/OperationsListItem.vue"],"names":[],"mappings":"AAkJA,OAAO,KAAK,EAEV,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,4BAA4B,CAAA;AAInC,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,kBAAkB,GAAG,gBAAgB,CAAA;IAChD,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AA6JF,wBAOG"}
1
+ {"version":3,"file":"OperationsListItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/OperationsList/OperationsListItem.vue"],"names":[],"mappings":"AA0IA,OAAO,KAAK,EAEV,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,4BAA4B,CAAA;AAInC,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,kBAAkB,GAAG,gBAAgB,CAAA;IAChD,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AA6JF,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import t from "./OperationsListItem.vue2.js";
2
2
  import "./OperationsListItem.vue3.js";
3
3
  import o from "../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ o(t, [["__scopeId", "data-v-01fed68e"]]);
4
+ const p = /* @__PURE__ */ o(t, [["__scopeId", "data-v-e2dcc62f"]]);
5
5
  export {
6
6
  p as default
7
7
  };
@@ -1,15 +1,15 @@
1
- import type { ContentType, RequestBody } from '@scalar/types/legacy';
1
+ import type { RequestBody } from '@scalar/types/legacy';
2
2
  type __VLS_Props = {
3
3
  requestBody?: RequestBody;
4
- defaultValue?: ContentType;
4
+ defaultValue?: string;
5
5
  };
6
6
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
7
7
  selectContentType: (payload: {
8
- contentType: ContentType;
8
+ contentType: string;
9
9
  }) => any;
10
10
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
11
11
  onSelectContentType?: ((payload: {
12
- contentType: ContentType;
12
+ contentType: string;
13
13
  }) => any) | undefined;
14
14
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
15
  export default _default;