@scalar/api-client 2.2.48 → 2.2.50

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 (217) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist/components/AddressBar/AddressBar.vue.d.ts +15 -3
  3. package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
  4. package/dist/components/AddressBar/AddressBar.vue.js +1 -1
  5. package/dist/components/AddressBar/AddressBar.vue2.js +102 -94
  6. package/dist/components/AddressBar/AddressBarHistory.vue.d.ts +2 -0
  7. package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +1 -1
  8. package/dist/components/AddressBar/AddressBarHistory.vue.js +2 -2
  9. package/dist/components/AddressBar/AddressBarHistory.vue2.js +54 -58
  10. package/dist/components/CodeInput/CodeInput.vue.d.ts +9 -0
  11. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  12. package/dist/components/CodeInput/CodeInput.vue.js +2 -2
  13. package/dist/components/CodeInput/CodeInput.vue2.js +95 -93
  14. package/dist/components/CodeInput/codeVariableWidget.d.ts.map +1 -1
  15. package/dist/components/CodeInput/codeVariableWidget.js +1 -3
  16. package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts.map +1 -1
  17. package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +26 -22
  18. package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
  19. package/dist/components/CommandPalette/CommandPaletteImport.vue.js +13 -13
  20. package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts.map +1 -1
  21. package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +12 -12
  22. package/dist/components/CommandPalette/CommandPaletteServer.vue.d.ts.map +1 -1
  23. package/dist/components/CommandPalette/CommandPaletteServer.vue.js +54 -49
  24. package/dist/components/CommandPalette/CommandPaletteTag.vue.d.ts.map +1 -1
  25. package/dist/components/CommandPalette/CommandPaletteTag.vue.js +9 -9
  26. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
  27. package/dist/components/DataTable/DataTableCell.vue.d.ts.map +1 -1
  28. package/dist/components/DataTable/DataTableCell.vue.js +11 -8
  29. package/dist/components/DataTable/DataTableInput.vue.d.ts +6 -0
  30. package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
  31. package/dist/components/DataTable/DataTableInput.vue.js +4 -4
  32. package/dist/components/DataTable/DataTableInput.vue2.js +36 -30
  33. package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -1
  34. package/dist/components/DataTable/DataTableInputSelect.vue.js +15 -15
  35. package/dist/components/Form/Form.vue.d.ts +3 -1
  36. package/dist/components/Form/Form.vue.d.ts.map +1 -1
  37. package/dist/components/Form/Form.vue.js +30 -25
  38. package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts.map +1 -1
  39. package/dist/components/ImportCollection/ImportCollectionModal.vue.js +41 -41
  40. package/dist/components/ImportCollection/ImportNowButton.vue.js +24 -24
  41. package/dist/components/ScreenReader.vue.d.ts.map +1 -1
  42. package/dist/components/Server/ServerDropdown.vue.d.ts.map +1 -1
  43. package/dist/components/Server/ServerDropdown.vue.js +13 -13
  44. package/dist/components/Server/ServerDropdownItem.vue.d.ts +1 -1
  45. package/dist/components/Server/ServerDropdownItem.vue.d.ts.map +1 -1
  46. package/dist/components/Server/ServerDropdownItem.vue.js +1 -1
  47. package/dist/components/Server/ServerDropdownItem.vue2.js +19 -19
  48. package/dist/layouts/App/create-api-client-app.d.ts +387 -477
  49. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  50. package/dist/layouts/Modal/create-api-client-modal.d.ts +774 -954
  51. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  52. package/dist/layouts/Web/create-api-client-web.d.ts +387 -477
  53. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  54. package/dist/libs/create-client.d.ts +390 -479
  55. package/dist/libs/create-client.d.ts.map +1 -1
  56. package/dist/libs/create-client.js +3 -15
  57. package/dist/libs/env-helpers.d.ts.map +1 -1
  58. package/dist/libs/find-request.d.ts +7 -7
  59. package/dist/libs/find-request.d.ts.map +1 -1
  60. package/dist/libs/hot-keys.d.ts +3 -1
  61. package/dist/libs/hot-keys.d.ts.map +1 -1
  62. package/dist/libs/hot-keys.js +11 -15
  63. package/dist/libs/hot-keys.test.d.ts +2 -0
  64. package/dist/libs/hot-keys.test.d.ts.map +1 -0
  65. package/dist/libs/index.js +27 -26
  66. package/dist/libs/send-request/build-request-security.d.ts +1 -1
  67. package/dist/libs/send-request/build-request-security.js +19 -16
  68. package/dist/libs/send-request/create-request-operation.test.d.ts +10 -10
  69. package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -1
  70. package/dist/libs/send-request/set-request-cookies.d.ts +1 -1
  71. package/dist/libs/send-request/set-request-cookies.d.ts.map +1 -1
  72. package/dist/libs/send-request/set-request-cookies.js +37 -34
  73. package/dist/store/active-entities.d.ts +58 -67
  74. package/dist/store/active-entities.d.ts.map +1 -1
  75. package/dist/store/active-entities.js +61 -74
  76. package/dist/store/collections.d.ts +90 -90
  77. package/dist/store/collections.d.ts.map +1 -1
  78. package/dist/store/collections.js +4 -17
  79. package/dist/store/cookies.d.ts +14 -14
  80. package/dist/store/environment.d.ts +19 -18
  81. package/dist/store/environment.d.ts.map +1 -1
  82. package/dist/store/environment.js +2 -8
  83. package/dist/store/import-spec.d.ts +16 -106
  84. package/dist/store/import-spec.d.ts.map +1 -1
  85. package/dist/store/import-spec.js +9 -14
  86. package/dist/store/request-example.d.ts +25 -25
  87. package/dist/store/request-example.d.ts.map +1 -1
  88. package/dist/store/request-example.js +15 -20
  89. package/dist/store/requests.d.ts +84 -84
  90. package/dist/store/requests.d.ts.map +1 -1
  91. package/dist/store/requests.js +17 -40
  92. package/dist/store/router-params.d.ts +13 -11
  93. package/dist/store/router-params.d.ts.map +1 -1
  94. package/dist/store/router-params.js +5 -5
  95. package/dist/store/security-schemes.d.ts +58 -58
  96. package/dist/store/security-schemes.d.ts.map +1 -1
  97. package/dist/store/security-schemes.js +1 -3
  98. package/dist/store/servers.d.ts +17 -17
  99. package/dist/store/servers.d.ts.map +1 -1
  100. package/dist/store/servers.js +2 -9
  101. package/dist/store/store.d.ts +387 -477
  102. package/dist/store/store.d.ts.map +1 -1
  103. package/dist/store/store.js +2 -4
  104. package/dist/store/tags.d.ts +28 -28
  105. package/dist/store/tags.d.ts.map +1 -1
  106. package/dist/store/tags.js +19 -34
  107. package/dist/store/workspace.d.ts +36 -36
  108. package/dist/store/workspace.d.ts.map +1 -1
  109. package/dist/store/workspace.js +1 -5
  110. package/dist/style.css +1 -1
  111. package/dist/views/Collection/Collection.vue.d.ts.map +1 -1
  112. package/dist/views/Cookies/CookieForm.vue.d.ts.map +1 -1
  113. package/dist/views/Cookies/CookieForm.vue.js +18 -18
  114. package/dist/views/Cookies/CookieRaw.vue.d.ts.map +1 -1
  115. package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
  116. package/dist/views/Cookies/Cookies.vue2.js +24 -24
  117. package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
  118. package/dist/views/Environment/Environment.vue2.js +140 -132
  119. package/dist/views/Environment/EnvironmentModal.vue.d.ts +2 -2
  120. package/dist/views/Environment/EnvironmentModal.vue.d.ts.map +1 -1
  121. package/dist/views/Environment/EnvironmentModal.vue.js +15 -15
  122. package/dist/views/Request/Request.vue.d.ts.map +1 -1
  123. package/dist/views/Request/Request.vue.js +2 -2
  124. package/dist/views/Request/Request.vue2.js +160 -141
  125. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.d.ts +2 -1
  126. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.d.ts.map +1 -1
  127. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +7 -7
  128. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts +6 -2
  129. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -1
  130. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +99 -95
  131. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts +4 -0
  132. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
  133. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +2 -2
  134. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +70 -64
  135. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts +4 -0
  136. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
  137. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +1 -1
  138. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +40 -34
  139. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts +6 -0
  140. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts.map +1 -1
  141. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.js +32 -26
  142. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts +4 -0
  143. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts.map +1 -1
  144. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +2 -2
  145. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue2.js +93 -85
  146. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts +9 -0
  147. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
  148. package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
  149. package/dist/views/Request/RequestSection/RequestBody.vue2.js +214 -244
  150. package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts +10 -1
  151. package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts.map +1 -1
  152. package/dist/views/Request/RequestSection/RequestCodeExample.vue.js +2 -2
  153. package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +77 -80
  154. package/dist/views/Request/RequestSection/RequestParams.vue.d.ts +7 -0
  155. package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
  156. package/dist/views/Request/RequestSection/RequestParams.vue.js +89 -96
  157. package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts +10 -2
  158. package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts.map +1 -1
  159. package/dist/views/Request/RequestSection/RequestPathParams.vue.js +59 -66
  160. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts +11 -0
  161. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
  162. package/dist/views/Request/RequestSection/RequestSection.vue.js +2 -2
  163. package/dist/views/Request/RequestSection/RequestSection.vue2.js +176 -155
  164. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +6 -0
  165. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
  166. package/dist/views/Request/RequestSection/RequestTable.vue.js +2 -2
  167. package/dist/views/Request/RequestSection/RequestTable.vue2.js +97 -100
  168. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
  169. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +2 -2
  170. package/dist/views/Request/RequestSection/RequestTableTooltip.vue2.js +31 -22
  171. package/dist/views/Request/RequestSection/helpers/getting-started.d.ts +2 -2
  172. package/dist/views/Request/RequestSection/helpers/getting-started.d.ts.map +1 -1
  173. package/dist/views/Request/RequestSection/helpers/getting-started.js +11 -13
  174. package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
  175. package/dist/views/Request/RequestSidebar.vue.js +1 -1
  176. package/dist/views/Request/RequestSidebar.vue2.js +50 -48
  177. package/dist/views/Request/RequestSidebarItem.vue.d.ts +1 -1
  178. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  179. package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
  180. package/dist/views/Request/RequestSidebarItem.vue2.js +38 -44
  181. package/dist/views/Request/RequestSubpageHeader.vue.d.ts +10 -0
  182. package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -1
  183. package/dist/views/Request/RequestSubpageHeader.vue.js +1 -1
  184. package/dist/views/Request/RequestSubpageHeader.vue2.js +77 -69
  185. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js +7 -7
  186. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts +4 -1
  187. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
  188. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +1 -1
  189. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +41 -39
  190. package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts +1 -0
  191. package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
  192. package/dist/views/Request/ResponseSection/ResponseSection.vue.js +1 -1
  193. package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +56 -52
  194. package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
  195. package/dist/views/Request/components/WorkspaceDropdown.vue.js +68 -68
  196. package/dist/views/Request/consts/new-auth-options.d.ts.map +1 -1
  197. package/dist/views/Request/handle-drag.d.ts +1 -1
  198. package/dist/views/Request/handle-drag.d.ts.map +1 -1
  199. package/dist/views/Request/handle-drag.js +38 -55
  200. package/dist/views/Request/libs/auth.d.ts +2 -2
  201. package/dist/views/Request/libs/auth.d.ts.map +1 -1
  202. package/dist/views/Request/libs/auth.js +28 -29
  203. package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
  204. package/dist/views/Request/libs/oauth2.js +42 -65
  205. package/dist/views/Request/libs/request.d.ts +5 -0
  206. package/dist/views/Request/libs/request.d.ts.map +1 -1
  207. package/dist/views/Request/libs/request.js +37 -2
  208. package/dist/views/Request/libs/watch-mode.d.ts.map +1 -1
  209. package/dist/views/Request/libs/watch-mode.js +10 -34
  210. package/dist/views/Servers/ServerForm.vue.d.ts +1 -8
  211. package/dist/views/Servers/ServerForm.vue.d.ts.map +1 -1
  212. package/dist/views/Servers/ServerForm.vue.js +21 -22
  213. package/dist/views/Servers/Servers.vue.d.ts.map +1 -1
  214. package/dist/views/Servers/Servers.vue2.js +73 -81
  215. package/dist/views/Settings/SettingsGeneral.vue.d.ts.map +1 -1
  216. package/dist/views/Settings/SettingsGeneral.vue.js +118 -134
  217. package/package.json +14 -14
@@ -1,90 +1,95 @@
1
- import { defineComponent as y, ref as f, computed as N, openBlock as u, createBlock as d, withCtx as o, createVNode as m, unref as n, createElementVNode as p, normalizeClass as P, toDisplayString as _, createTextVNode as B } from "vue";
2
- import { useActiveEntities as L } from "../../store/active-entities.js";
1
+ import { defineComponent as _, ref as p, computed as N, openBlock as u, createBlock as c, withCtx as l, createVNode as d, unref as n, createElementVNode as f, normalizeClass as P, toDisplayString as B, createTextVNode as L } from "vue";
3
2
  import { ScalarListbox as M, ScalarButton as b, ScalarIcon as T } from "@scalar/components";
4
3
  import { useToasts as j } from "@scalar/use-toasts";
5
- import z from "./CommandActionForm.vue.js";
6
- import E from "./CommandActionInput.vue.js";
7
- import { useWorkspace as R } from "../../store/store.js";
8
- const F = /* @__PURE__ */ y({
4
+ import { useActiveEntities as z } from "../../store/active-entities.js";
5
+ import E from "./CommandActionForm.vue.js";
6
+ import R from "./CommandActionInput.vue.js";
7
+ import { useWorkspace as W } from "../../store/store.js";
8
+ const G = /* @__PURE__ */ _({
9
9
  __name: "CommandPaletteServer",
10
10
  props: {
11
11
  metaData: {}
12
12
  },
13
13
  emits: ["close", "back"],
14
14
  setup(C, { emit: x }) {
15
- const s = C, c = x, { toast: v } = j(), { activeCollection: S, activeWorkspaceCollections: k } = L(), { collectionMutators: U, serverMutators: V, events: g } = R(), r = f(""), i = N(
15
+ const s = C, m = x, { toast: v } = j(), { activeCollection: S, activeWorkspaceCollections: k } = z(), {
16
+ collectionMutators: V,
17
+ serverMutators: g,
18
+ events: D,
19
+ collections: U
20
+ } = W(), r = p(""), i = N(
16
21
  () => k.value.flatMap(
17
- (a) => {
22
+ (o) => {
18
23
  var e, t;
19
- return ((e = a.info) == null ? void 0 : e.title) === "Drafts" ? [] : {
20
- id: a.uid,
21
- label: ((t = a.info) == null ? void 0 : t.title) ?? "Unititled Collection"
24
+ return ((e = o.info) == null ? void 0 : e.title) === "Drafts" ? [] : {
25
+ id: o.uid,
26
+ label: ((t = o.info) == null ? void 0 : t.title) ?? "Unititled Collection"
22
27
  };
23
28
  }
24
29
  )
25
- ), l = f(
30
+ ), a = p(
26
31
  s.metaData ? i.value.find(
27
- (a) => {
32
+ (o) => {
28
33
  var e, t;
29
- return a.id === ((e = s.metaData) == null ? void 0 : e.itemUid) || a.id === ((t = s.metaData) == null ? void 0 : t.parentUid);
34
+ return o.id === ((e = s.metaData) == null ? void 0 : e.itemUid) || o.id === ((t = s.metaData) == null ? void 0 : t.parentUid);
30
35
  }
31
36
  ) : i.value.find(
32
- (a) => {
37
+ (o) => {
33
38
  var e;
34
- return a.id === ((e = S.value) == null ? void 0 : e.uid);
39
+ return o.id === ((e = S.value) == null ? void 0 : e.uid);
35
40
  }
36
41
  )
37
- ), D = () => {
42
+ ), w = () => {
38
43
  var t;
39
44
  if (!r.value.trim()) {
40
45
  v("Please enter a valid url before creating a server.", "error");
41
46
  return;
42
47
  }
43
- const a = (t = l.value) == null ? void 0 : t.id;
44
- if (!a) {
48
+ const o = U[((t = a.value) == null ? void 0 : t.id) ?? ""];
49
+ if (!o) {
45
50
  v("Please select a collection before creating a server.", "error");
46
51
  return;
47
52
  }
48
- const e = V.add({ url: r.value }, a);
49
- U.edit(a, "selectedServerUid", e.uid), c("close");
50
- }, w = () => {
51
- g.commandPalette.emit({ commandName: "Create Collection" });
53
+ const e = g.add({ url: r.value }, o.uid);
54
+ V.edit(o.uid, "selectedServerUid", e.uid), m("close");
55
+ }, y = () => {
56
+ D.commandPalette.emit({ commandName: "Create Collection" });
52
57
  };
53
- return (a, e) => (u(), d(z, {
54
- disabled: !r.value.trim() || !l.value,
55
- onSubmit: D
58
+ return (o, e) => (u(), c(E, {
59
+ disabled: !r.value.trim() || !a.value,
60
+ onSubmit: w
56
61
  }, {
57
- options: o(() => [
58
- m(n(M), {
59
- modelValue: l.value,
60
- "onUpdate:modelValue": e[2] || (e[2] = (t) => l.value = t),
62
+ options: l(() => [
63
+ d(n(M), {
64
+ modelValue: a.value,
65
+ "onUpdate:modelValue": e[2] || (e[2] = (t) => a.value = t),
61
66
  options: i.value
62
67
  }, {
63
- default: o(() => [
64
- i.value.length > 0 ? (u(), d(n(b), {
68
+ default: l(() => [
69
+ i.value.length > 0 ? (u(), c(n(b), {
65
70
  key: 0,
66
- class: "justify-between p-2 max-h-8 w-fit gap-1 text-xs hover:bg-b-2",
71
+ class: "hover:bg-b-2 max-h-8 w-fit justify-between gap-1 p-2 text-xs",
67
72
  variant: "outlined"
68
73
  }, {
69
- default: o(() => [
70
- p("span", {
71
- class: P(l.value ? "text-c-1" : "text-c-3")
72
- }, _(l.value ? l.value.label : "Select Collection"), 3),
73
- m(n(T), {
74
+ default: l(() => [
75
+ f("span", {
76
+ class: P(a.value ? "text-c-1" : "text-c-3")
77
+ }, B(a.value ? a.value.label : "Select Collection"), 3),
78
+ d(n(T), {
74
79
  class: "text-c-3",
75
80
  icon: "ChevronDown",
76
81
  size: "md"
77
82
  })
78
83
  ]),
79
84
  _: 1
80
- })) : (u(), d(n(b), {
85
+ })) : (u(), c(n(b), {
81
86
  key: 1,
82
- class: "justify-between p-2 max-h-8 w-full gap-1 text-xs hover:bg-b-2 w-fit",
87
+ class: "hover:bg-b-2 max-h-8 w-fit justify-between gap-1 p-2 text-xs",
83
88
  variant: "outlined",
84
- onClick: w
89
+ onClick: y
85
90
  }, {
86
- default: o(() => e[3] || (e[3] = [
87
- p("span", { class: "text-c-1" }, "Create Collection", -1)
91
+ default: l(() => e[3] || (e[3] = [
92
+ f("span", { class: "text-c-1" }, "Create Collection", -1)
88
93
  ])),
89
94
  _: 1
90
95
  }))
@@ -92,16 +97,16 @@ const F = /* @__PURE__ */ y({
92
97
  _: 1
93
98
  }, 8, ["modelValue", "options"])
94
99
  ]),
95
- submit: o(() => e[4] || (e[4] = [
96
- B("Create Server")
100
+ submit: l(() => e[4] || (e[4] = [
101
+ L(" Create Server ")
97
102
  ])),
98
- default: o(() => [
99
- m(E, {
103
+ default: l(() => [
104
+ d(R, {
100
105
  modelValue: r.value,
101
106
  "onUpdate:modelValue": e[0] || (e[0] = (t) => r.value = t),
102
107
  label: "Server URL",
103
108
  placeholder: "Server URL",
104
- onOnDelete: e[1] || (e[1] = (t) => c("back", t))
109
+ onOnDelete: e[1] || (e[1] = (t) => m("back", t))
105
110
  }, null, 8, ["modelValue"])
106
111
  ]),
107
112
  _: 1
@@ -109,5 +114,5 @@ const F = /* @__PURE__ */ y({
109
114
  }
110
115
  });
111
116
  export {
112
- F as default
117
+ G as default
113
118
  };
@@ -1 +1 @@
1
- {"version":3,"file":"CommandPaletteTag.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/CommandPaletteTag.vue"],"names":[],"mappings":";;;;;;;AAgSA,wBAOG"}
1
+ {"version":3,"file":"CommandPaletteTag.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/CommandPaletteTag.vue"],"names":[],"mappings":";;;;;;;AAwRA,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as g, computed as x, ref as m, openBlock as C, createBlock as V, withCtx as n, createVNode as i, unref as s, createElementVNode as S, normalizeClass as _, toDisplayString as k, createTextVNode as T } from "vue";
2
- import { useActiveEntities as N } from "../../store/active-entities.js";
3
- import { ScalarListbox as w, ScalarButton as B, ScalarIcon as D } from "@scalar/components";
4
- import { useToasts as y } from "@scalar/use-toasts";
2
+ import { ScalarListbox as N, ScalarButton as w, ScalarIcon as B } from "@scalar/components";
3
+ import { useToasts as D } from "@scalar/use-toasts";
4
+ import { useActiveEntities as y } from "../../store/active-entities.js";
5
5
  import z from "./CommandActionForm.vue.js";
6
6
  import E from "./CommandActionInput.vue.js";
7
7
  import { useWorkspace as P } from "../../store/store.js";
@@ -9,7 +9,7 @@ const O = /* @__PURE__ */ g({
9
9
  __name: "CommandPaletteTag",
10
10
  emits: ["close", "back"],
11
11
  setup(U, { emit: d }) {
12
- const r = d, { activeWorkspaceCollections: c, activeCollection: p } = N(), { tagMutators: f } = P(), { toast: v } = y(), u = x(
12
+ const r = d, { activeWorkspaceCollections: c, activeCollection: p } = y(), { tagMutators: f } = P(), { toast: v } = D(), u = x(
13
13
  () => c.value.map((o) => {
14
14
  var e;
15
15
  return {
@@ -42,21 +42,21 @@ const O = /* @__PURE__ */ g({
42
42
  onSubmit: b
43
43
  }, {
44
44
  options: n(() => [
45
- i(s(w), {
45
+ i(s(N), {
46
46
  modelValue: t.value,
47
47
  "onUpdate:modelValue": e[2] || (e[2] = (l) => t.value = l),
48
48
  options: u.value
49
49
  }, {
50
50
  default: n(() => [
51
- i(s(B), {
52
- class: "justify-between p-2 max-h-8 w-fit gap-1 text-xs hover:bg-b-2",
51
+ i(s(w), {
52
+ class: "hover:bg-b-2 max-h-8 w-fit justify-between gap-1 p-2 text-xs",
53
53
  variant: "outlined"
54
54
  }, {
55
55
  default: n(() => [
56
56
  S("span", {
57
57
  class: _(t.value ? "text-c-1" : "text-c-3")
58
58
  }, k(t.value ? t.value.label : "Select Collection"), 3),
59
- i(s(D), {
59
+ i(s(B), {
60
60
  class: "text-c-3",
61
61
  icon: "ChevronDown",
62
62
  size: "md"
@@ -69,7 +69,7 @@ const O = /* @__PURE__ */ g({
69
69
  }, 8, ["modelValue", "options"])
70
70
  ]),
71
71
  submit: n(() => e[3] || (e[3] = [
72
- T("Create Tag")
72
+ T(" Create Tag ")
73
73
  ])),
74
74
  default: n(() => [
75
75
  i(E, {
@@ -1 +1 @@
1
- {"version":3,"file":"TheCommandPalette.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/TheCommandPalette.vue"],"names":[],"mappings":"AAoZA;;;;GAIG;;AACH,wBAieI;AAEJ,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBA9f9B,CA9OgD;qBA8OhD,CA7OO;;;;;;;mBA6OP,CA9OgD;qBA8OhD,CA7OO;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmvBG,CAAA;AAEV,yCAAyC;AACzC,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,iBAAiB,CAAA;AAEzD,MAAM,MAAM,mBAAmB,GAAG;IAChC,8DAA8D;IAC9D,WAAW,CAAC,EAAE,YAAY,CAAA;IAC1B,iEAAiE;IACjE,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAC/B,CACA"}
1
+ {"version":3,"file":"TheCommandPalette.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/TheCommandPalette.vue"],"names":[],"mappings":"AAoZA;;;;GAIG;;AACH,wBAieI;AAEJ,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBA9f9B,CA/OuC;qBA+OvC,CA9Oc;;;;;;;mBA8Od,CA/OuC;qBA+OvC,CA9Oc;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAovBJ,CAAA;AAEV,yCAAyC;AACzC,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,iBAAiB,CAAA;AAEzD,MAAM,MAAM,mBAAmB,GAAG;IAChC,8DAA8D;IAC9D,WAAW,CAAC,EAAE,YAAY,CAAA;IAC1B,iEAAiE;IACjE,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAC/B,CACA"}
@@ -1 +1 @@
1
- {"version":3,"file":"DataTableCell.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableCell.vue"],"names":[],"mappings":"AA6BA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AAIpC,KAAK,WAAW,GAAG;IACf,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CACxB,CAAC;AAeJ,iBAAS,cAAc;WA+CT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;QA/EZ,MAAM,GAAG,SAAS;6EAsFzB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAepG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"DataTableCell.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableCell.vue"],"names":[],"mappings":"AA8BA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AAIpC,KAAK,WAAW,GAAG;IACf,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CACxB,CAAC;AAeJ,iBAAS,cAAc;WAgDT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;QAhFZ,MAAM,GAAG,SAAS;6EAuFzB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAepG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,6 +1,6 @@
1
- import { defineComponent as t, openBlock as o, createBlock as l, resolveDynamicComponent as n, mergeProps as a, unref as s, withCtx as m, renderSlot as p } from "vue";
1
+ import { defineComponent as t, openBlock as o, createBlock as l, resolveDynamicComponent as a, mergeProps as s, unref as n, withCtx as p, renderSlot as m } from "vue";
2
2
  import { useBindCx as d } from "@scalar/components";
3
- const b = /* @__PURE__ */ t({
3
+ const u = /* @__PURE__ */ t({
4
4
  inheritAttrs: !1,
5
5
  __name: "DataTableCell",
6
6
  props: {
@@ -8,19 +8,22 @@ const b = /* @__PURE__ */ t({
8
8
  },
9
9
  setup(i) {
10
10
  const { cx: r } = d();
11
- return (e, f) => (o(), l(n(e.is), a(
12
- s(r)(
11
+ return (e, b) => (o(), l(a(e.is), s(
12
+ n(r)(
13
13
  "max-h-8 min-h-8 min-w-8 border-l-0 border-t border-b-0 border-r flex text-sm last:border-r-0 group-last:border-b-transparent p-0 m-0 relative"
14
14
  ),
15
- { role: "cell" }
15
+ {
16
+ class: "group-[.alert]:bg-b-alert",
17
+ role: "cell"
18
+ }
16
19
  ), {
17
- default: m(() => [
18
- p(e.$slots, "default")
20
+ default: p(() => [
21
+ m(e.$slots, "default")
19
22
  ]),
20
23
  _: 3
21
24
  }, 16));
22
25
  }
23
26
  });
24
27
  export {
25
- b as default
28
+ u as default
26
29
  };
@@ -1,4 +1,7 @@
1
+ import type { EnvVariable } from '../../store/active-entities';
1
2
  import type { VueClassProp } from '../../types/vue';
3
+ import type { Environment } from '@scalar/oas-utils/entities/environment';
4
+ import type { Workspace } from '@scalar/oas-utils/entities/workspace';
2
5
  type __VLS_Props = {
3
6
  id?: string;
4
7
  type?: string | undefined;
@@ -12,6 +15,9 @@ type __VLS_Props = {
12
15
  enum?: string[];
13
16
  min?: number;
14
17
  max?: number;
18
+ environment: Environment;
19
+ envVariables: EnvVariable[];
20
+ workspace: Workspace;
15
21
  };
16
22
  declare function __VLS_template(): {
17
23
  attrs: Partial<{}>;
@@ -1 +1 @@
1
- {"version":3,"file":"DataTableInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInput.vue"],"names":[],"mappings":"AAiKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAS/C,KAAK,WAAW,GAAG;IACf,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACzB,sEAAsE;IACtE,cAAc,CAAC,EAAE,YAAY,GAAG,SAAS,CAAA;IACzC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,EAAE,MAAM,GAAG,MAAM,CAAA;IAC3B,0EAA0E;IAC1E,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;IACf,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;CACb,CAAC;AAwCJ,iBAAS,cAAc;WA4OT,OAAO,IAA6B;;yBAVrB,GAAG;yBACF,GAAG;sBACN,GAAG;;;;EAa7B;AAkBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;cApTN,OAAO;2BAGM,OAAO;cACpB,OAAO;6EAwTpB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAepG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"DataTableInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInput.vue"],"names":[],"mappings":"AA0KA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE/C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAQrE,KAAK,WAAW,GAAG;IACf,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACzB,sEAAsE;IACtE,cAAc,CAAC,EAAE,YAAY,GAAG,SAAS,CAAA;IACzC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,EAAE,MAAM,GAAG,MAAM,CAAA;IAC3B,0EAA0E;IAC1E,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;IACf,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;AAwCJ,iBAAS,cAAc;WA4OT,OAAO,IAA6B;;yBAVrB,GAAG;yBACF,GAAG;sBACN,GAAG;;;;EAa7B;AAkBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;cAvTN,OAAO;2BAGM,OAAO;cACpB,OAAO;6EA2TpB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAepG,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
- import a from "./DataTableInput.vue2.js";
1
+ import t from "./DataTableInput.vue2.js";
2
2
  /* empty css */
3
- import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(a, [["__scopeId", "data-v-da37da18"]]);
3
+ import o from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const r = /* @__PURE__ */ o(t, [["__scopeId", "data-v-cb0ff5b1"]]);
5
5
  export {
6
- m as default
6
+ r as default
7
7
  };
@@ -1,15 +1,15 @@
1
- import { defineComponent as w, ref as m, computed as b, openBlock as l, createBlock as u, normalizeClass as k, withCtx as g, createElementBlock as r, renderSlot as i, createTextVNode as B, createCommentVNode as d, createElementVNode as C, Fragment as $, mergeProps as f, unref as h } from "vue";
1
+ import { defineComponent as w, ref as m, computed as b, openBlock as l, createBlock as u, normalizeClass as k, withCtx as g, createElementBlock as s, renderSlot as i, createTextVNode as B, createCommentVNode as d, createElementVNode as C, Fragment as $, mergeProps as f, unref as h } from "vue";
2
2
  import q from "../CodeInput/CodeInput.vue.js";
3
3
  import { ScalarIconButton as O } from "@scalar/components";
4
- import x from "./DataTableCell.vue.js";
5
- import A from "./DataTableInputSelect.vue.js";
6
- const I = {
4
+ import A from "./DataTableCell.vue.js";
5
+ import I from "./DataTableInputSelect.vue.js";
6
+ const E = {
7
7
  key: 0,
8
8
  class: "text-c-1 flex items-center pl-3 pr-0"
9
- }, E = { class: "row-1 overflow-x-auto" }, F = ["readOnly", "type", "value"], S = {
9
+ }, F = { class: "row-1 overflow-x-auto" }, S = ["readOnly", "type", "value"], T = {
10
10
  key: 2,
11
11
  class: "scalar-input-required absolute centered-y right-2 pt-px text-xxs text-c-3 bg-b-1 shadow-[-8px_0_4px_var(--scalar-background-1)] opacity-100 duration-150 transition-opacity peer-has-[:focus-visible]:opacity-0"
12
- }, T = {
12
+ }, x = {
13
13
  key: 1,
14
14
  class: "absolute centered-y right-7 text-orange text-xs"
15
15
  }, z = /* @__PURE__ */ w({
@@ -25,32 +25,35 @@ const I = {
25
25
  readOnly: { type: Boolean, default: !1 },
26
26
  enum: {},
27
27
  min: {},
28
- max: {}
28
+ max: {},
29
+ environment: {},
30
+ envVariables: {},
31
+ workspace: {}
29
32
  },
30
33
  emits: ["update:modelValue", "inputFocus", "inputBlur", "selectVariable"],
31
- setup(y, { emit: c }) {
32
- const a = y, s = c, n = m(!0), v = m(!1), V = () => {
33
- v.value || s("inputBlur");
34
+ setup(v, { emit: y }) {
35
+ const t = v, r = y, n = m(!0), c = m(!1), V = () => {
36
+ c.value || r("inputBlur");
34
37
  }, p = b(
35
- () => a.type === "password" ? n.value ? "password" : "text" : a.type ?? "text"
38
+ () => t.type === "password" ? n.value ? "password" : "text" : t.type ?? "text"
36
39
  );
37
- return (e, t) => (l(), u(x, {
40
+ return (e, a) => (l(), u(A, {
38
41
  class: k(["relative row", e.containerClass])
39
42
  }, {
40
43
  default: g(() => [
41
- e.$slots.default ? (l(), r("div", I, [
44
+ e.$slots.default ? (l(), s("div", E, [
42
45
  i(e.$slots, "default", {}, void 0, !0),
43
- t[5] || (t[5] = B(": "))
46
+ a[5] || (a[5] = B(": "))
44
47
  ])) : d("", !0),
45
- C("div", E, [
46
- a.enum && a.enum.length ? (l(), u(A, {
48
+ C("div", F, [
49
+ t.enum && t.enum.length ? (l(), u(I, {
47
50
  key: 0,
48
- canAddCustomValue: a.canAddCustomEnumValue,
49
- modelValue: a.modelValue,
50
- value: a.enum,
51
- "onUpdate:modelValue": t[0] || (t[0] = (o) => s("update:modelValue", o))
52
- }, null, 8, ["canAddCustomValue", "modelValue", "value"])) : (l(), r($, { key: 1 }, [
53
- n.value && e.type === "password" ? (l(), r("input", f({ key: 0 }, e.id ? { ...e.$attrs, id: e.id } : e.$attrs, {
51
+ canAddCustomValue: t.canAddCustomEnumValue,
52
+ modelValue: t.modelValue,
53
+ value: t.enum,
54
+ "onUpdate:modelValue": a[0] || (a[0] = (o) => r("update:modelValue", o))
55
+ }, null, 8, ["canAddCustomValue", "modelValue", "value"])) : (l(), s($, { key: 1 }, [
56
+ n.value && e.type === "password" ? (l(), s("input", f({ key: 0 }, e.id ? { ...e.$attrs, id: e.id } : e.$attrs, {
54
57
  autocomplete: "off",
55
58
  class: "border-none text-c-1 disabled:text-c-2 min-w-0 w-full peer px-2 py-1.25 -outline-offset-2",
56
59
  "data-1p-ignore": "",
@@ -58,15 +61,17 @@ const I = {
58
61
  spellcheck: "false",
59
62
  type: p.value,
60
63
  value: e.modelValue,
61
- onInput: t[1] || (t[1] = (o) => s(
64
+ onInput: a[1] || (a[1] = (o) => r(
62
65
  "update:modelValue",
63
66
  o.target.value ?? ""
64
67
  ))
65
- }), null, 16, F)) : (l(), u(q, f({ key: 1 }, e.$attrs, {
68
+ }), null, 16, S)) : (l(), u(q, f({ key: 1 }, e.$attrs, {
66
69
  id: e.id,
67
70
  class: "border-none text-c-1 disabled:text-c-2 min-w-0 w-full peer",
68
71
  disableCloseBrackets: "",
69
72
  disableTabIndent: "",
73
+ envVariables: e.envVariables,
74
+ environment: e.environment,
70
75
  max: e.max,
71
76
  min: e.min,
72
77
  modelValue: e.modelValue ?? "",
@@ -74,14 +79,15 @@ const I = {
74
79
  required: !!e.required,
75
80
  spellcheck: "false",
76
81
  type: p.value,
82
+ workspace: e.workspace,
77
83
  onBlur: V,
78
- onFocus: t[2] || (t[2] = (o) => s("inputFocus")),
79
- "onUpdate:modelValue": t[3] || (t[3] = (o) => s("update:modelValue", o))
80
- }), null, 16, ["id", "max", "min", "modelValue", "readOnly", "required", "type"])),
81
- e.required ? (l(), r("div", S, " Required ")) : d("", !0)
84
+ onFocus: a[2] || (a[2] = (o) => r("inputFocus")),
85
+ "onUpdate:modelValue": a[3] || (a[3] = (o) => r("update:modelValue", o))
86
+ }), null, 16, ["id", "envVariables", "environment", "max", "min", "modelValue", "readOnly", "required", "type", "workspace"])),
87
+ e.required ? (l(), s("div", T, " Required ")) : d("", !0)
82
88
  ], 64))
83
89
  ]),
84
- e.$slots.warning ? (l(), r("div", T, [
90
+ e.$slots.warning ? (l(), s("div", x, [
85
91
  i(e.$slots, "warning", {}, void 0, !0)
86
92
  ])) : d("", !0),
87
93
  i(e.$slots, "icon", {}, void 0, !0),
@@ -90,7 +96,7 @@ const I = {
90
96
  class: "-ml-.5 mr-0.75 h-6 w-6 self-center p-1.5",
91
97
  icon: n.value ? "Show" : "Hide",
92
98
  label: n.value ? "Show Password" : "Hide Password",
93
- onClick: t[4] || (t[4] = (o) => n.value = !n.value)
99
+ onClick: a[4] || (a[4] = (o) => n.value = !n.value)
94
100
  }, null, 8, ["icon", "label"])) : d("", !0)
95
101
  ]),
96
102
  _: 3
@@ -1 +1 @@
1
- {"version":3,"file":"DataTableInputSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInputSelect.vue"],"names":[],"mappings":"AA4LA,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,MAAM,GAAG,MAAM,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAA;IACrC,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC1B,CAAC;;;;;;uBAFoB,OAAO;;AA0W/B,wBASG"}
1
+ {"version":3,"file":"DataTableInputSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInputSelect.vue"],"names":[],"mappings":"AA4LA,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,MAAM,GAAG,MAAM,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAA;IACrC,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC1B,CAAC;;;;;;uBAFoB,OAAO;;AA2W/B,wBASG"}
@@ -1,6 +1,6 @@
1
- import { defineComponent as O, computed as m, ref as w, watch as g, nextTick as E, openBlock as o, createElementBlock as f, createBlock as v, unref as a, withCtx as u, createVNode as n, createElementVNode as d, toDisplayString as y, withDirectives as K, withKeys as M, vModelText as R, Fragment as C, renderList as U, normalizeClass as W, createTextVNode as $, createCommentVNode as _ } from "vue";
1
+ import { defineComponent as O, computed as m, ref as w, watch as S, nextTick as E, openBlock as o, createElementBlock as f, createBlock as v, unref as a, withCtx as u, createVNode as n, createElementVNode as d, toDisplayString as y, withDirectives as K, withKeys as M, vModelText as R, Fragment as C, renderList as U, normalizeClass as W, createTextVNode as $, createCommentVNode as _ } from "vue";
2
2
  import { ScalarComboboxMultiselect as F, ScalarButton as b, ScalarIcon as h, ScalarDropdown as L, ScalarDropdownItem as D, ScalarDropdownDivider as q } from "@scalar/components";
3
- const G = { class: "pr-4 w-full has-[:focus-visible]:outline has-[:focus-visible]:rounded-[4px] -outline-offset-1" }, H = { class: "text-c-1 whitespace-nowrap" }, J = { class: "text-c-1" }, P = { class: "flex items-center justify-center h-4 w-4" }, Z = /* @__PURE__ */ O({
3
+ const G = { class: "group-[.alert]:outline-orange w-full pr-4 -outline-offset-1 has-[:focus-visible]:rounded-[4px] has-[:focus-visible]:outline" }, H = { class: "text-c-1 whitespace-nowrap" }, J = { class: "text-c-1" }, P = { class: "flex h-4 w-4 items-center justify-center" }, Z = /* @__PURE__ */ O({
4
4
  __name: "DataTableInputSelect",
5
5
  props: {
6
6
  modelValue: {},
@@ -12,23 +12,23 @@ const G = { class: "pr-4 w-full has-[:focus-visible]:outline has-[:focus-visible
12
12
  emits: ["update:modelValue"],
13
13
  setup(B, { emit: j }) {
14
14
  const s = B, c = j, p = m(() => s.value ?? []), i = w(!1), r = w(""), x = w(null);
15
- g(r, (e) => {
15
+ S(r, (e) => {
16
16
  c("update:modelValue", e);
17
17
  });
18
- const k = (e) => {
18
+ const g = (e) => {
19
19
  c("update:modelValue", e), i.value = !1;
20
20
  }, z = () => {
21
- r.value.trim() && k(r.value);
21
+ r.value.trim() && g(r.value);
22
22
  }, A = () => {
23
23
  r.value.trim() || c("update:modelValue", ""), i.value = !1;
24
24
  }, N = (e) => s.modelValue.toString() === e;
25
- g(i, (e) => {
25
+ S(i, (e) => {
26
26
  e && E(() => {
27
27
  var t;
28
28
  (t = x.value) == null || t.focus();
29
29
  });
30
30
  });
31
- const S = m(() => s.modelValue !== void 0 ? s.modelValue : s.default), V = m(() => {
31
+ const k = m(() => s.modelValue !== void 0 ? s.modelValue : s.default), V = m(() => {
32
32
  const e = new Set(s.modelValue.toString().split(", "));
33
33
  return p.value.filter((t) => e.has(t)).map((t) => ({ id: t, label: t, value: t }));
34
34
  }), T = m(
@@ -46,7 +46,7 @@ const G = { class: "pr-4 w-full has-[:focus-visible]:outline has-[:focus-visible
46
46
  }, {
47
47
  default: u(() => [
48
48
  n(a(b), {
49
- class: "gap-1.5 font-normal h-full justify-start px-2 py-1.5 custom-scroll pr-6 outline-none",
49
+ class: "custom-scroll h-full justify-start gap-1.5 px-2 py-1.5 pr-6 font-normal outline-none",
50
50
  fullWidth: "",
51
51
  variant: "ghost"
52
52
  }, {
@@ -66,7 +66,7 @@ const G = { class: "pr-4 w-full has-[:focus-visible]:outline has-[:focus-visible
66
66
  ref_key: "inputRef",
67
67
  ref: x,
68
68
  "onUpdate:modelValue": t[0] || (t[0] = (l) => r.value = l),
69
- class: "border-none text-c-1 min-w-0 w-full px-2 py-1.5 outline-none",
69
+ class: "text-c-1 w-full min-w-0 border-none px-2 py-1.5 outline-none",
70
70
  placeholder: "Value",
71
71
  type: "text",
72
72
  onBlur: A,
@@ -76,19 +76,19 @@ const G = { class: "pr-4 w-full has-[:focus-visible]:outline has-[:focus-visible
76
76
  ]) : (o(), v(a(L), {
77
77
  key: 2,
78
78
  resize: "",
79
- value: S.value
79
+ value: k.value
80
80
  }, {
81
81
  items: u(() => [
82
82
  (o(!0), f(C, null, U(p.value, (l) => (o(), v(a(D), {
83
83
  key: l,
84
- class: "flex gap-1.5 group/item items-center whitespace-nowrap text-ellipsis overflow-hidden",
84
+ class: "group/item flex items-center gap-1.5 overflow-hidden text-ellipsis whitespace-nowrap",
85
85
  value: l,
86
- onClick: (Q) => k(l)
86
+ onClick: (Q) => g(l)
87
87
  }, {
88
88
  default: u(() => [
89
89
  d("div", {
90
90
  class: W([
91
- "flex items-center justify-center rounded-full p-[3px] w-4 h-4",
91
+ "flex h-4 w-4 items-center justify-center rounded-full p-[3px]",
92
92
  N(l) ? "bg-c-accent text-b-1" : "shadow-border text-transparent"
93
93
  ])
94
94
  }, [
@@ -123,12 +123,12 @@ const G = { class: "pr-4 w-full has-[:focus-visible]:outline has-[:focus-visible
123
123
  ]),
124
124
  default: u(() => [
125
125
  n(a(b), {
126
- class: "gap-1.5 font-normal h-full justify-start px-2 py-1.5 outline-none overflow-auto whitespace-nowrap",
126
+ class: "h-full justify-start gap-1.5 overflow-auto whitespace-nowrap px-2 py-1.5 font-normal outline-none",
127
127
  fullWidth: "",
128
128
  variant: "ghost"
129
129
  }, {
130
130
  default: u(() => [
131
- d("span", J, y(S.value || "Select a value"), 1),
131
+ d("span", J, y(k.value || "Select a value"), 1),
132
132
  n(a(h), {
133
133
  icon: "ChevronDown",
134
134
  size: "md"
@@ -1,3 +1,5 @@
1
+ import type { Cookie } from '@scalar/oas-utils/entities/cookie';
2
+ import type { Path, PathValue } from '@scalar/object-utils/nested';
1
3
  type __VLS_Props = {
2
4
  title?: string;
3
5
  options: {
@@ -6,7 +8,7 @@ type __VLS_Props = {
6
8
  placeholder: string;
7
9
  }[];
8
10
  data: Record<string, any>;
9
- onUpdate: (key: string, value: any) => void;
11
+ onUpdate: <P extends Path<Cookie>>(key: P, value: NonNullable<PathValue<Cookie, P>>) => void;
10
12
  };
11
13
  declare function __VLS_template(): {
12
14
  attrs: Partial<{}>;
@@ -1 +1 @@
1
- {"version":3,"file":"Form.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Form/Form.vue"],"names":[],"mappings":"AAqDA,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,EAAE;QACP,GAAG,EAAE,MAAM,CAAA;QACX,KAAK,EAAE,MAAM,CAAA;QACb,WAAW,EAAE,MAAM,CAAA;KACpB,EAAE,CAAA;IACH,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACzB,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,IAAI,CAAA;CAC5C,CAAC;AAQF,iBAAS,cAAc;WAwGT,OAAO,IAA6B;;uBARvB,GAAG;;;;EAa7B;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,0SAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAUpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"Form.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Form/Form.vue"],"names":[],"mappings":"AA2DA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mCAAmC,CAAA;AAC/D,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAA;AAUlE,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,EAAE;QACP,GAAG,EAAE,MAAM,CAAA;QACX,KAAK,EAAE,MAAM,CAAA;QACb,WAAW,EAAE,MAAM,CAAA;KACpB,EAAE,CAAA;IACH,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACzB,QAAQ,EAAE,CAAC,CAAC,SAAS,IAAI,CAAC,MAAM,CAAC,EAC/B,GAAG,EAAE,CAAC,EACN,KAAK,EAAE,WAAW,CAAC,SAAS,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,KACrC,IAAI,CAAA;CACV,CAAC;AAWF,iBAAS,cAAc;WAwGT,OAAO,IAA6B;;uBARvB,GAAG;;;;EAa7B;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,0SAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAUpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}