@scalar/api-client 2.2.44 → 2.2.47

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 (388) hide show
  1. package/CHANGELOG.md +77 -0
  2. package/dist/components/AddressBar/AddressBar.vue.d.ts +1 -1
  3. package/dist/components/AddressBar/AddressBar.vue.js +2 -2
  4. package/dist/components/AddressBar/AddressBar.vue2.js +1 -2
  5. package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +1 -1
  6. package/dist/components/AddressBar/AddressBarHistory.vue.js +2 -2
  7. package/dist/components/AddressBar/AddressBarHistory.vue2.js +35 -30
  8. package/dist/components/AddressBar/index.d.ts +1 -1
  9. package/dist/components/CodeInput/CodeInput.vue.d.ts +5 -5
  10. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  11. package/dist/components/CodeInput/CodeInput.vue.js +2 -2
  12. package/dist/components/CodeInput/CodeInput.vue2.js +70 -64
  13. package/dist/components/CodeInput/codeVariableWidget.d.ts +5 -5
  14. package/dist/components/CodeInput/codeVariableWidget.d.ts.map +1 -1
  15. package/dist/components/CodeInput/codeVariableWidget.js +2 -3
  16. package/dist/components/CommandPalette/CommandActionForm.vue.d.ts +4 -4
  17. package/dist/components/CommandPalette/CommandActionForm.vue.d.ts.map +1 -1
  18. package/dist/components/CommandPalette/CommandActionForm.vue.js +10 -10
  19. package/dist/components/CommandPalette/CommandActionInput.vue.d.ts +2 -2
  20. package/dist/components/CommandPalette/CommandActionInput.vue.js +1 -1
  21. package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts +2 -2
  22. package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts +2 -2
  23. package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts.map +1 -1
  24. package/dist/components/CommandPalette/CommandPaletteExample.vue.js +46 -40
  25. package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts +2 -2
  26. package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts +2 -2
  27. package/dist/components/CommandPalette/CommandPaletteServer.vue.d.ts +2 -2
  28. package/dist/components/CommandPalette/CommandPaletteTag.vue.d.ts +2 -2
  29. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts +2 -2
  30. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +14 -14
  31. package/dist/components/CommandPalette/WatchModeToggle.vue.d.ts +1 -1
  32. package/dist/components/CommandPalette/WatchModeToggle.vue.js +1 -1
  33. package/dist/components/CommandPalette/index.d.ts +1 -1
  34. package/dist/components/ContextBar.vue.d.ts +1 -1
  35. package/dist/components/DataTable/DataTable.vue.d.ts.map +1 -1
  36. package/dist/components/DataTable/DataTableCell.vue.d.ts.map +1 -1
  37. package/dist/components/DataTable/DataTableCheckbox.vue.d.ts +1 -1
  38. package/dist/components/DataTable/DataTableCheckbox.vue.js +6 -6
  39. package/dist/components/DataTable/DataTableInput.vue.d.ts +6 -6
  40. package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
  41. package/dist/components/DataTable/DataTableInput.vue.js +4 -4
  42. package/dist/components/DataTable/DataTableInput.vue2.js +22 -23
  43. package/dist/components/DataTable/DataTableInputSelect.vue.d.ts +3 -3
  44. package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -1
  45. package/dist/components/DataTable/DataTableInputSelect.vue.js +39 -39
  46. package/dist/components/DataTable/DataTableText.vue.d.ts.map +1 -1
  47. package/dist/components/DataTable/index.d.ts +8 -8
  48. package/dist/components/EmptyState.vue.d.ts +3 -0
  49. package/dist/components/EmptyState.vue.d.ts.map +1 -0
  50. package/dist/components/EmptyState.vue.js +7 -0
  51. package/dist/components/EmptyState.vue2.js +31 -0
  52. package/dist/components/Form/Form.vue.d.ts.map +1 -1
  53. package/dist/components/Form/Form.vue.js +1 -1
  54. package/dist/components/HelpfulLink.vue.d.ts.map +1 -1
  55. package/dist/components/HttpMethod/HttpMethod.vue.d.ts +1 -1
  56. package/dist/components/HttpMethod/index.d.ts +1 -1
  57. package/dist/components/IconSelector.vue.d.ts +1 -1
  58. package/dist/components/IconSelector.vue.d.ts.map +1 -1
  59. package/dist/components/ImportCollection/DropEventListener.vue.d.ts +1 -1
  60. package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts +1 -1
  61. package/dist/components/ImportCollection/ImportNowButton.vue.d.ts +1 -1
  62. package/dist/components/ImportCollection/PasteEventListener.vue.d.ts +1 -1
  63. package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.d.ts +1 -1
  64. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts +2 -2
  65. package/dist/components/ImportCollection/index.d.ts +1 -1
  66. package/dist/components/ImportCurl/ImportCurlModal.vue.d.ts +3 -3
  67. package/dist/components/ScalarHotkey.vue.d.ts.map +1 -1
  68. package/dist/components/ScalarHotkey.vue.js +12 -7
  69. package/dist/components/ScreenReader.vue.d.ts.map +1 -1
  70. package/dist/components/Search/useSearch.d.ts +4 -2
  71. package/dist/components/Search/useSearch.d.ts.map +1 -1
  72. package/dist/components/Search/useSearch.js +63 -56
  73. package/dist/components/Search/useSearch.test.d.ts +2 -0
  74. package/dist/components/Search/useSearch.test.d.ts.map +1 -0
  75. package/dist/components/Server/ServerDropdown.test.d.ts +2 -0
  76. package/dist/components/Server/ServerDropdown.test.d.ts.map +1 -0
  77. package/dist/components/Server/ServerDropdownItem.vue.d.ts +1 -1
  78. package/dist/components/Server/ServerDropdownItem.vue.d.ts.map +1 -1
  79. package/dist/components/Server/ServerDropdownItem.vue.js +1 -1
  80. package/dist/components/Server/ServerDropdownItem.vue2.js +27 -28
  81. package/dist/components/Server/ServerVariablesForm.vue.d.ts +2 -2
  82. package/dist/components/Server/ServerVariablesForm.vue.d.ts.map +1 -1
  83. package/dist/components/Server/ServerVariablesSelect.vue.d.ts +2 -2
  84. package/dist/components/Server/ServerVariablesSelect.vue.d.ts.map +1 -1
  85. package/dist/components/Server/ServerVariablesTextbox.vue.d.ts +2 -2
  86. package/dist/components/Server/ServerVariablesTextbox.vue.d.ts.map +1 -1
  87. package/dist/components/Server/ServerVariablesTextbox.vue.js +9 -9
  88. package/dist/components/Server/index.d.ts +2 -2
  89. package/dist/components/SideNav/SideNav.vue.d.ts.map +1 -1
  90. package/dist/components/SideNav/SideNav.vue.js +19 -19
  91. package/dist/components/SideNav/SideNavLink.vue.d.ts.map +1 -1
  92. package/dist/components/SideNav/SideNavLink.vue.js +11 -11
  93. package/dist/components/SideNav/SideNavRouterLink.vue.d.ts +1 -1
  94. package/dist/components/SideNav/SideNavRouterLink.vue.d.ts.map +1 -1
  95. package/dist/components/SideNav/SideNavRouterLink.vue.js +19 -13
  96. package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.d.ts +3 -3
  97. package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.d.ts.map +1 -1
  98. package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.d.ts +2 -2
  99. package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.d.ts +2 -2
  100. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.d.ts +2 -2
  101. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.d.ts.map +1 -1
  102. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  103. package/dist/components/Sidebar/Sidebar.vue.js +1 -1
  104. package/dist/components/Sidebar/Sidebar.vue2.js +5 -5
  105. package/dist/components/Sidebar/SidebarButton.vue.d.ts.map +1 -1
  106. package/dist/components/Sidebar/SidebarListElement.vue.d.ts +3 -3
  107. package/dist/components/Sidebar/SidebarListElement.vue.js +2 -2
  108. package/dist/components/Sidebar/SidebarListElement.vue2.js +9 -9
  109. package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts +3 -3
  110. package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts.map +1 -1
  111. package/dist/components/Sidebar/SidebarToggle.vue.d.ts +1 -1
  112. package/dist/components/Sidebar/index.d.ts +1 -1
  113. package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
  114. package/dist/components/TopNav/TopNav.vue.js +74 -73
  115. package/dist/components/TopNav/TopNavItem.vue.d.ts +5 -5
  116. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
  117. package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts.map +1 -1
  118. package/dist/components/ViewLayout/ViewLayoutSection.vue.js +3 -3
  119. package/dist/components/index.d.ts +3 -3
  120. package/dist/hooks/index.d.ts +5 -4
  121. package/dist/hooks/index.d.ts.map +1 -1
  122. package/dist/hooks/index.js +4 -2
  123. package/dist/hooks/useResponseBody.d.ts +18 -0
  124. package/dist/hooks/useResponseBody.d.ts.map +1 -0
  125. package/dist/hooks/useResponseBody.js +28 -0
  126. package/dist/hooks/useResponseBody.test.d.ts +2 -0
  127. package/dist/hooks/useResponseBody.test.d.ts.map +1 -0
  128. package/dist/index.d.ts +4 -4
  129. package/dist/layouts/App/ApiClientApp.vue.d.ts +2 -2
  130. package/dist/layouts/App/create-api-client-app.d.ts +106 -66
  131. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  132. package/dist/layouts/App/create-api-client-app.test.d.ts +2 -0
  133. package/dist/layouts/App/create-api-client-app.test.d.ts.map +1 -0
  134. package/dist/layouts/App/index.d.ts +2 -2
  135. package/dist/layouts/Modal/create-api-client-modal.d.ts +215 -135
  136. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  137. package/dist/layouts/Modal/create-api-client-modal.test.d.ts +2 -0
  138. package/dist/layouts/Modal/create-api-client-modal.test.d.ts.map +1 -0
  139. package/dist/layouts/Modal/index.d.ts +2 -2
  140. package/dist/layouts/Web/create-api-client-web.d.ts +106 -66
  141. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  142. package/dist/layouts/Web/create-api-client-web.test.d.ts +2 -0
  143. package/dist/layouts/Web/create-api-client-web.test.d.ts.map +1 -0
  144. package/dist/layouts/Web/index.d.ts +2 -2
  145. package/dist/libs/create-client.d.ts +106 -66
  146. package/dist/libs/create-client.d.ts.map +1 -1
  147. package/dist/libs/create-client.js +56 -57
  148. package/dist/libs/env-helpers.test.d.ts +2 -0
  149. package/dist/libs/env-helpers.test.d.ts.map +1 -0
  150. package/dist/libs/environment-parser.d.ts +1 -1
  151. package/dist/libs/event-bus.test.d.ts +2 -0
  152. package/dist/libs/event-bus.test.d.ts.map +1 -0
  153. package/dist/libs/extractAttachmentFilename.test.d.ts +2 -0
  154. package/dist/libs/extractAttachmentFilename.test.d.ts.map +1 -0
  155. package/dist/libs/find-request.test.d.ts +2 -0
  156. package/dist/libs/find-request.test.d.ts.map +1 -0
  157. package/dist/libs/getOpenApiDocumentDetails.d.ts +1 -1
  158. package/dist/libs/getOpenApiDocumentDetails.d.ts.map +1 -1
  159. package/dist/libs/hot-keys.d.ts +1 -1
  160. package/dist/libs/importers/curl.js +1 -1
  161. package/dist/libs/importers/curl.test.d.ts +2 -0
  162. package/dist/libs/importers/curl.test.d.ts.map +1 -0
  163. package/dist/libs/importers/index.d.ts +1 -1
  164. package/dist/libs/index.d.ts +16 -16
  165. package/dist/libs/index.js +31 -33
  166. package/dist/libs/local-storage.d.ts +1 -1
  167. package/dist/libs/normalize-headers.test.d.ts +2 -0
  168. package/dist/libs/normalize-headers.test.d.ts.map +1 -0
  169. package/dist/libs/parse-curl.test.d.ts +2 -0
  170. package/dist/libs/parse-curl.test.d.ts.map +1 -0
  171. package/dist/libs/send-request/build-request-security.d.ts +17 -0
  172. package/dist/libs/send-request/build-request-security.d.ts.map +1 -0
  173. package/dist/libs/send-request/build-request-security.js +32 -0
  174. package/dist/libs/send-request/build-request-security.test.d.ts +2 -0
  175. package/dist/libs/send-request/build-request-security.test.d.ts.map +1 -0
  176. package/dist/libs/send-request/create-fetch-auth.test.d.ts +2 -0
  177. package/dist/libs/send-request/create-fetch-auth.test.d.ts.map +1 -0
  178. package/dist/libs/send-request/create-fetch-body.d.ts +18 -0
  179. package/dist/libs/send-request/create-fetch-body.d.ts.map +1 -0
  180. package/dist/libs/send-request/create-fetch-body.js +26 -0
  181. package/dist/libs/send-request/create-fetch-body.test.d.ts +2 -0
  182. package/dist/libs/send-request/create-fetch-body.test.d.ts.map +1 -0
  183. package/dist/libs/send-request/create-fetch-headers.d.ts +4 -0
  184. package/dist/libs/send-request/create-fetch-headers.d.ts.map +1 -0
  185. package/dist/libs/send-request/create-fetch-headers.js +11 -0
  186. package/dist/libs/send-request/create-fetch-headers.test.d.ts +2 -0
  187. package/dist/libs/send-request/create-fetch-headers.test.d.ts.map +1 -0
  188. package/dist/libs/send-request/create-fetch-query-params.d.ts +4 -0
  189. package/dist/libs/send-request/create-fetch-query-params.d.ts.map +1 -0
  190. package/dist/libs/send-request/create-fetch-query-params.js +10 -0
  191. package/dist/libs/send-request/create-fetch-query-params.test.d.ts +2 -0
  192. package/dist/libs/send-request/create-fetch-query-params.test.d.ts.map +1 -0
  193. package/dist/libs/send-request/create-request-operation.d.ts +29 -0
  194. package/dist/libs/send-request/create-request-operation.d.ts.map +1 -0
  195. package/dist/libs/send-request/create-request-operation.js +111 -0
  196. package/dist/libs/send-request/create-request-operation.test.d.ts +171 -0
  197. package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -0
  198. package/dist/libs/send-request/decode-buffer.d.ts +3 -0
  199. package/dist/libs/send-request/decode-buffer.d.ts.map +1 -0
  200. package/dist/libs/send-request/decode-buffer.js +9 -0
  201. package/dist/libs/send-request/decode-buffer.test.d.ts +2 -0
  202. package/dist/libs/send-request/decode-buffer.test.d.ts.map +1 -0
  203. package/dist/libs/send-request/index.d.ts +2 -1
  204. package/dist/libs/send-request/index.d.ts.map +1 -1
  205. package/dist/libs/send-request/index.js +4 -6
  206. package/dist/libs/send-request/set-request-cookies.d.ts +1 -1
  207. package/dist/libs/send-request/set-request-cookies.d.ts.map +1 -1
  208. package/dist/libs/send-request/set-request-cookies.test.d.ts +2 -0
  209. package/dist/libs/send-request/set-request-cookies.test.d.ts.map +1 -0
  210. package/dist/libs/string-template.test.d.ts +2 -0
  211. package/dist/libs/string-template.test.d.ts.map +1 -0
  212. package/dist/router.d.ts +1 -1
  213. package/dist/routes.d.ts +27 -27
  214. package/dist/routes.js +4 -4
  215. package/dist/routes.test.d.ts +2 -0
  216. package/dist/routes.test.d.ts.map +1 -0
  217. package/dist/store/active-entities.d.ts +10 -6
  218. package/dist/store/active-entities.d.ts.map +1 -1
  219. package/dist/store/collections.d.ts +1 -1
  220. package/dist/store/collections.d.ts.map +1 -1
  221. package/dist/store/collections.js +17 -14
  222. package/dist/store/collections.test.d.ts +2 -0
  223. package/dist/store/collections.test.d.ts.map +1 -0
  224. package/dist/store/events.d.ts +7 -7
  225. package/dist/store/import-spec.d.ts +1 -1
  226. package/dist/store/index.d.ts +2 -2
  227. package/dist/store/request-example.d.ts +52 -52
  228. package/dist/store/request-example.d.ts.map +1 -1
  229. package/dist/store/request.test.d.ts +2 -0
  230. package/dist/store/request.test.d.ts.map +1 -0
  231. package/dist/store/requests.d.ts +1 -1
  232. package/dist/store/router-params.d.ts +1 -1
  233. package/dist/store/store.d.ts +103 -63
  234. package/dist/store/store.d.ts.map +1 -1
  235. package/dist/store/store.js +1 -1
  236. package/dist/store/workspace.d.ts +44 -4
  237. package/dist/store/workspace.d.ts.map +1 -1
  238. package/dist/style.css +1 -1
  239. package/dist/views/Components/CodeSnippet/CodeSnippet.test.d.ts +2 -0
  240. package/dist/views/Components/CodeSnippet/CodeSnippet.test.d.ts.map +1 -0
  241. package/dist/views/Components/CodeSnippet/CodeSnippet.vue.d.ts +13 -0
  242. package/dist/views/Components/CodeSnippet/CodeSnippet.vue.d.ts.map +1 -0
  243. package/dist/views/Components/CodeSnippet/CodeSnippet.vue.js +46 -0
  244. package/dist/views/Components/CodeSnippet/CodeSnippet.vue2.js +4 -0
  245. package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.d.ts +28 -0
  246. package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.d.ts.map +1 -0
  247. package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.js +64 -0
  248. package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.test.d.ts +2 -0
  249. package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.test.d.ts.map +1 -0
  250. package/dist/views/Components/CodeSnippet/helpers/get-har-request.d.ts +12 -0
  251. package/dist/views/Components/CodeSnippet/helpers/get-har-request.d.ts.map +1 -0
  252. package/dist/views/Components/CodeSnippet/helpers/get-har-request.js +47 -0
  253. package/dist/views/Components/CodeSnippet/helpers/get-har-request.test.d.ts +2 -0
  254. package/dist/views/Components/CodeSnippet/helpers/get-har-request.test.d.ts.map +1 -0
  255. package/dist/views/Components/CodeSnippet/helpers/get-snippet.d.ts +13 -0
  256. package/dist/views/Components/CodeSnippet/helpers/get-snippet.d.ts.map +1 -0
  257. package/dist/views/Components/CodeSnippet/helpers/get-snippet.js +47 -0
  258. package/dist/views/Components/CodeSnippet/helpers/get-snippet.test.d.ts +2 -0
  259. package/dist/views/Components/CodeSnippet/helpers/get-snippet.test.d.ts.map +1 -0
  260. package/dist/views/Components/CodeSnippet/index.d.ts +5 -0
  261. package/dist/views/Components/CodeSnippet/index.d.ts.map +1 -0
  262. package/dist/views/Components/CodeSnippet/index.js +10 -0
  263. package/dist/views/Cookies/CookieModal.vue.d.ts +3 -3
  264. package/dist/views/Cookies/CookieModal.vue.d.ts.map +1 -1
  265. package/dist/views/Cookies/CookieModal.vue.js +2 -2
  266. package/dist/views/Cookies/CookieModal.vue2.js +11 -11
  267. package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
  268. package/dist/views/Cookies/Cookies.vue2.js +84 -76
  269. package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
  270. package/dist/views/Environment/Environment.vue2.js +127 -113
  271. package/dist/views/Environment/EnvironmentColorModal.vue.d.ts +2 -2
  272. package/dist/views/Environment/EnvironmentColors.vue.d.ts +1 -1
  273. package/dist/views/Environment/EnvironmentModal.vue.d.ts +6 -6
  274. package/dist/views/Environment/EnvironmentModal.vue.d.ts.map +1 -1
  275. package/dist/views/Environment/EnvironmentModal.vue.js +1 -1
  276. package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts +2 -2
  277. package/dist/views/Request/Request.vue.d.ts +2 -2
  278. package/dist/views/Request/Request.vue.d.ts.map +1 -1
  279. package/dist/views/Request/Request.vue.js +2 -2
  280. package/dist/views/Request/Request.vue2.js +92 -86
  281. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.d.ts +2 -2
  282. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts +1 -1
  283. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.test.d.ts +2 -0
  284. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.test.d.ts.map +1 -0
  285. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts +1 -1
  286. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
  287. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +2 -2
  288. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts +4 -4
  289. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts.map +1 -1
  290. package/dist/views/Request/RequestSection/RequestAuth/index.d.ts +2 -2
  291. package/dist/views/Request/RequestSection/RequestBody.test.d.ts +2 -0
  292. package/dist/views/Request/RequestSection/RequestBody.test.d.ts.map +1 -0
  293. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
  294. package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
  295. package/dist/views/Request/RequestSection/RequestBody.vue2.js +105 -103
  296. package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts +3 -0
  297. package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts.map +1 -0
  298. package/dist/views/Request/RequestSection/RequestCodeExample.vue.js +7 -0
  299. package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +141 -0
  300. package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
  301. package/dist/views/Request/RequestSection/RequestParams.vue.js +70 -74
  302. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
  303. package/dist/views/Request/RequestSection/RequestSection.vue.js +1 -1
  304. package/dist/views/Request/RequestSection/RequestSection.vue2.js +71 -62
  305. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +8 -8
  306. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
  307. package/dist/views/Request/RequestSection/RequestTable.vue.js +2 -2
  308. package/dist/views/Request/RequestSection/RequestTable.vue2.js +60 -59
  309. package/dist/views/Request/RequestSection/helpers/filter-security-requirements.d.ts +6 -0
  310. package/dist/views/Request/RequestSection/helpers/filter-security-requirements.d.ts.map +1 -0
  311. package/dist/views/Request/RequestSection/helpers/filter-security-requirements.js +20 -0
  312. package/dist/views/Request/RequestSection/helpers/filter-security-requirements.test.d.ts +2 -0
  313. package/dist/views/Request/RequestSection/helpers/filter-security-requirements.test.d.ts.map +1 -0
  314. package/dist/views/Request/RequestSection/helpers/getting-started.d.ts +6 -0
  315. package/dist/views/Request/RequestSection/helpers/getting-started.d.ts.map +1 -0
  316. package/dist/views/Request/RequestSection/helpers/getting-started.js +17 -0
  317. package/dist/views/Request/RequestSection/helpers/getting-started.test.d.ts +2 -0
  318. package/dist/views/Request/RequestSection/helpers/getting-started.test.d.ts.map +1 -0
  319. package/dist/views/Request/RequestSection/index.d.ts +2 -1
  320. package/dist/views/Request/RequestSection/index.d.ts.map +1 -1
  321. package/dist/views/Request/RequestSection/index.js +4 -2
  322. package/dist/views/Request/RequestSidebar.vue.d.ts +5 -5
  323. package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
  324. package/dist/views/Request/RequestSidebar.vue.js +2 -2
  325. package/dist/views/Request/RequestSidebar.vue2.js +211 -193
  326. package/dist/views/Request/RequestSidebarItem.vue.d.ts +18 -31
  327. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  328. package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
  329. package/dist/views/Request/RequestSidebarItem.vue2.js +134 -141
  330. package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts +5 -5
  331. package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
  332. package/dist/views/Request/RequestSidebarItemMenu.vue.js +1 -1
  333. package/dist/views/Request/RequestSidebarItemMenu.vue2.js +120 -101
  334. package/dist/views/Request/RequestSubpageHeader.test.d.ts +2 -0
  335. package/dist/views/Request/RequestSubpageHeader.test.d.ts.map +1 -0
  336. package/dist/views/Request/RequestSubpageHeader.vue.d.ts +3 -3
  337. package/dist/views/Request/RequestSubpageHeader.vue.js +1 -1
  338. package/dist/views/Request/RequestSubpageHeader.vue2.js +1 -1
  339. package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts.map +1 -1
  340. package/dist/views/Request/ResponseSection/ResponseBody.vue.js +2 -2
  341. package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +50 -64
  342. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.d.ts +3 -3
  343. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.d.ts.map +1 -1
  344. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.js +1 -1
  345. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +27 -27
  346. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.d.ts +1 -1
  347. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.d.ts.map +1 -1
  348. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.js +2 -2
  349. package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.d.ts +1 -1
  350. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.test.d.ts +2 -0
  351. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.test.d.ts.map +1 -0
  352. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.d.ts +6 -0
  353. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.d.ts.map +1 -1
  354. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js +38 -19
  355. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
  356. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +2 -2
  357. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +39 -57
  358. package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
  359. package/dist/views/Request/ResponseSection/ResponseSection.vue.js +1 -1
  360. package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +30 -28
  361. package/dist/views/Request/ResponseSection/index.d.ts +1 -1
  362. package/dist/views/Request/components/index.d.ts +1 -1
  363. package/dist/views/Request/consts/index.d.ts +3 -3
  364. package/dist/views/Request/handle-drag.d.ts +2 -2
  365. package/dist/views/Request/libs/auth.d.ts +1 -1
  366. package/dist/views/Request/libs/auth.test.d.ts +2 -0
  367. package/dist/views/Request/libs/auth.test.d.ts.map +1 -0
  368. package/dist/views/Request/libs/index.d.ts +2 -2
  369. package/dist/views/Request/libs/oauth2.d.ts +2 -2
  370. package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
  371. package/dist/views/Request/libs/oauth2.js +7 -7
  372. package/dist/views/Request/libs/oauth2.test.d.ts +2 -0
  373. package/dist/views/Request/libs/oauth2.test.d.ts.map +1 -0
  374. package/dist/views/Request/libs/request.test.d.ts +2 -0
  375. package/dist/views/Request/libs/request.test.d.ts.map +1 -0
  376. package/dist/views/Request/libs/watch-mode.d.ts +2 -2
  377. package/dist/views/Request/libs/watch-mode.test.d.ts +2 -0
  378. package/dist/views/Request/libs/watch-mode.test.d.ts.map +1 -0
  379. package/dist/views/Request/types/sidebar-item.d.ts +2 -2
  380. package/dist/views/Request/types/sidebar-item.d.ts.map +1 -1
  381. package/dist/views/Servers/Servers.vue.d.ts.map +1 -1
  382. package/dist/views/Servers/Servers.vue2.js +86 -73
  383. package/dist/views/Servers/index.d.ts +1 -1
  384. package/dist/views/Settings/components/SettingsAppearance.vue.js +6 -6
  385. package/package.json +21 -15
  386. package/dist/libs/send-request/send-request.d.ts +0 -51
  387. package/dist/libs/send-request/send-request.d.ts.map +0 -1
  388. package/dist/libs/send-request/send-request.js +0 -177
@@ -1,24 +1,24 @@
1
- import { defineComponent as n, openBlock as i, createElementBlock as d, withKeys as a, withModifiers as l, createElementVNode as t, renderSlot as s, createVNode as r, unref as m, withCtx as p, createTextVNode as f } from "vue";
1
+ import { defineComponent as n, openBlock as i, createElementBlock as d, withKeys as a, withModifiers as l, createElementVNode as o, renderSlot as s, createVNode as r, unref as m, withCtx as f, createTextVNode as p } from "vue";
2
2
  import { ScalarButton as u } from "@scalar/components";
3
3
  const b = { class: "flex flex-col rounded min-h-20 relative" }, x = { class: "flex gap-2" }, c = { class: "flex flex-1 max-h-8" }, h = /* @__PURE__ */ n({
4
4
  __name: "CommandActionForm",
5
5
  props: {
6
6
  loading: {},
7
- disabled: { type: Boolean }
7
+ disabled: { type: Boolean, default: !1 }
8
8
  },
9
9
  emits: ["submit", "cancel", "back"],
10
10
  setup(g) {
11
- return (e, o) => (i(), d("form", {
11
+ return (e, t) => (i(), d("form", {
12
12
  class: "flex w-full flex-col gap-3",
13
- onKeydown: o[0] || (o[0] = a(l(() => {
13
+ onKeydown: t[0] || (t[0] = a(l(() => {
14
14
  }, ["stop"]), ["enter"])),
15
- onSubmit: o[1] || (o[1] = l((v) => e.$emit("submit"), ["prevent", "stop"]))
15
+ onSubmit: t[1] || (t[1] = l((v) => e.$emit("submit"), ["prevent", "stop"]))
16
16
  }, [
17
- t("div", b, [
17
+ o("div", b, [
18
18
  s(e.$slots, "default")
19
19
  ]),
20
- t("div", x, [
21
- t("div", c, [
20
+ o("div", x, [
21
+ o("div", c, [
22
22
  s(e.$slots, "options")
23
23
  ]),
24
24
  r(m(u), {
@@ -27,9 +27,9 @@ const b = { class: "flex flex-col rounded min-h-20 relative" }, x = { class: "fl
27
27
  loading: e.loading,
28
28
  type: "submit"
29
29
  }, {
30
- default: p(() => [
30
+ default: f(() => [
31
31
  s(e.$slots, "submit", {}, () => [
32
- o[2] || (o[2] = f("Continue"))
32
+ t[2] || (t[2] = p("Continue"))
33
33
  ])
34
34
  ]),
35
35
  _: 3
@@ -7,8 +7,8 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
7
7
  "update:modelValue": (v: string) => any;
8
8
  onDelete: (event: KeyboardEvent) => any;
9
9
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
10
- "onUpdate:modelValue"?: ((v: string) => any) | undefined;
11
- onOnDelete?: ((event: KeyboardEvent) => any) | undefined;
10
+ "onUpdate:modelValue"?: (v: string) => any;
11
+ onOnDelete?: (event: KeyboardEvent) => any;
12
12
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
13
  export default _default;
14
14
  //# sourceMappingURL=CommandActionInput.vue.d.ts.map
@@ -35,7 +35,7 @@ const E = ["placeholder"], b = /* @__PURE__ */ f({
35
35
  ref: a,
36
36
  "onUpdate:modelValue": t[0] || (t[0] = (o) => l.value = o),
37
37
  class: "border-none outline-none flex-1 w-full pl-8 text-sm min-h-8 py-1.5 resize-none",
38
- placeholder: n.placeholder,
38
+ placeholder: n.placeholder ?? "",
39
39
  wrap: "hard"
40
40
  }, e.$attrs, {
41
41
  onKeydown: [
@@ -2,8 +2,8 @@ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import
2
2
  close: () => any;
3
3
  back: (e: KeyboardEvent) => any;
4
4
  }, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
5
- onClose?: (() => any) | undefined;
6
- onBack?: ((e: KeyboardEvent) => any) | undefined;
5
+ onClose?: () => any;
6
+ onBack?: (e: KeyboardEvent) => any;
7
7
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLFormElement>;
8
8
  export default _default;
9
9
  //# sourceMappingURL=CommandPaletteCollection.vue.d.ts.map
@@ -8,8 +8,8 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
8
8
  close: () => any;
9
9
  back: (e: KeyboardEvent) => any;
10
10
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
11
- onClose?: (() => any) | undefined;
12
- onBack?: ((e: KeyboardEvent) => any) | undefined;
11
+ onClose?: () => any;
12
+ onBack?: (e: KeyboardEvent) => any;
13
13
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
14
  export default _default;
15
15
  //# sourceMappingURL=CommandPaletteExample.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CommandPaletteExample.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/CommandPaletteExample.vue"],"names":[],"mappings":"AA4IA,KAAK,WAAW,GAAG;IACjB,oCAAoC;IACpC,QAAQ,CAAC,EAAE;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,CAAA;CAC/B,CAAC;;;;;;;;AAqRF,wBAOG"}
1
+ {"version":3,"file":"CommandPaletteExample.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/CommandPaletteExample.vue"],"names":[],"mappings":"AAqJA,KAAK,WAAW,GAAG;IACjB,oCAAoC;IACpC,QAAQ,CAAC,EAAE;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,CAAA;CAC/B,CAAC;;;;;;;;AA4RF,wBAOG"}
@@ -1,48 +1,54 @@
1
- import { defineComponent as $, ref as v, computed as R, openBlock as i, createBlock as x, withCtx as l, createVNode as r, unref as n, createElementVNode as b, createElementBlock as B, Fragment as q, renderList as P, createTextVNode as u, toDisplayString as k, createCommentVNode as W } from "vue";
2
- import h from "../HttpMethod/HttpMethod.vue.js";
1
+ import { defineComponent as q, ref as x, computed as B, openBlock as i, createBlock as b, withCtx as l, createVNode as r, unref as n, createElementVNode as k, createElementBlock as P, Fragment as W, renderList as $, createTextVNode as u, toDisplayString as h, createCommentVNode as I } from "vue";
2
+ import _ from "../HttpMethod/HttpMethod.vue.js";
3
+ import { PathId as c } from "../../routes.js";
3
4
  import { useActiveEntities as j } from "../../store/active-entities.js";
4
- import { ScalarDropdown as z, ScalarDropdownItem as I, ScalarButton as M, ScalarIcon as T } from "@scalar/components";
5
- import { isDefined as U } from "@scalar/oas-utils/helpers";
6
- import { useToasts as A } from "@scalar/use-toasts";
7
- import { useRouter as F } from "vue-router";
8
- import H from "./CommandActionForm.vue.js";
9
- import L from "./CommandActionInput.vue.js";
10
- import { useWorkspace as O } from "../../store/store.js";
11
- const G = { class: "flex items-center gap-2" }, J = { class: "max-h-40 custom-scroll" }, me = /* @__PURE__ */ $({
5
+ import { ScalarDropdown as z, ScalarDropdownItem as M, ScalarButton as T, ScalarIcon as U } from "@scalar/components";
6
+ import { isDefined as A } from "@scalar/oas-utils/helpers";
7
+ import { useToasts as F } from "@scalar/use-toasts";
8
+ import { useRouter as H } from "vue-router";
9
+ import L from "./CommandActionForm.vue.js";
10
+ import O from "./CommandActionInput.vue.js";
11
+ import { useWorkspace as G } from "../../store/store.js";
12
+ const J = { class: "flex items-center gap-2" }, K = { class: "max-h-40 custom-scroll" }, ne = /* @__PURE__ */ q({
12
13
  __name: "CommandPaletteExample",
13
14
  props: {
14
15
  metaData: {}
15
16
  },
16
17
  emits: ["close", "back"],
17
- setup(_, { emit: w }) {
18
- var f;
19
- const C = _, c = w, { push: D } = F(), { activeRequest: E, activeWorkspace: S, activeWorkspaceRequests: g } = j(), { requests: s, requestExampleMutators: y } = O(), { toast: p } = A(), m = v(""), a = v(
18
+ setup(C, { emit: E }) {
19
+ var v;
20
+ const w = C, p = E, { push: D } = H(), { activeRequest: S, activeWorkspace: g, activeWorkspaceRequests: y } = j(), { requests: s, requestExampleMutators: N } = G(), { toast: d } = F(), m = x(""), a = x(
20
21
  // Ensure we pre-select the correct request
21
- s[((f = C.metaData) == null ? void 0 : f.itemUid) ?? ""] ?? E.value
22
- ), d = (o) => a.value = o, N = () => {
22
+ s[((v = w.metaData) == null ? void 0 : v.itemUid) ?? ""] ?? S.value
23
+ ), f = (o) => a.value = o, V = () => {
23
24
  var e;
24
25
  if (!m.value) {
25
- p("Please enter a name before creating an example.", "error");
26
+ d("Please enter a name before creating an example.", "error");
26
27
  return;
27
28
  }
28
29
  if (!a.value) {
29
- p("Please select a request before creating an example.", "error");
30
+ d("Please select a request before creating an example.", "error");
30
31
  return;
31
32
  }
32
- const o = y.add(
33
+ const o = N.add(
33
34
  a.value,
34
35
  m.value
35
36
  );
36
- o && (D(
37
- `/workspace/${(e = S.value) == null ? void 0 : e.uid}/request/${a.value.uid}/examples/${o.uid}`
38
- ), c("close"));
39
- }, V = R(
40
- () => g.value.map((o) => s == null ? void 0 : s[o]).filter(U)
37
+ o && (D({
38
+ name: "request.examples",
39
+ params: {
40
+ [c.Workspace]: (e = g.value) == null ? void 0 : e.uid,
41
+ [c.Request]: a.value.uid,
42
+ [c.Examples]: o.uid
43
+ }
44
+ }), p("close"));
45
+ }, R = B(
46
+ () => y.value.map((o) => s == null ? void 0 : s[o]).filter(A)
41
47
  );
42
- return (o, e) => a.value ? (i(), x(H, {
48
+ return (o, e) => a.value ? (i(), b(L, {
43
49
  key: 0,
44
50
  disabled: !m.value.trim(),
45
- onSubmit: N
51
+ onSubmit: V
46
52
  }, {
47
53
  options: l(() => [
48
54
  r(n(z), {
@@ -50,15 +56,15 @@ const G = { class: "flex items-center gap-2" }, J = { class: "max-h-40 custom-sc
50
56
  resize: ""
51
57
  }, {
52
58
  items: l(() => [
53
- b("div", J, [
54
- (i(!0), B(q, null, P(V.value, (t) => (i(), x(n(I), {
59
+ k("div", K, [
60
+ (i(!0), P(W, null, $(R.value, (t) => (i(), b(n(M), {
55
61
  key: t.uid,
56
62
  class: "flex h-7 w-full items-center justify-between px-1 pr-[26px]",
57
- onClick: (K) => d(t)
63
+ onClick: (Q) => f(t)
58
64
  }, {
59
65
  default: l(() => [
60
- u(k(t.summary) + " ", 1),
61
- r(h, {
66
+ u(h(t.summary) + " ", 1),
67
+ r(_, {
62
68
  method: t.method
63
69
  }, null, 8, ["method"])
64
70
  ]),
@@ -67,18 +73,18 @@ const G = { class: "flex items-center gap-2" }, J = { class: "max-h-40 custom-sc
67
73
  ])
68
74
  ]),
69
75
  default: l(() => [
70
- r(n(M), {
76
+ r(n(T), {
71
77
  class: "justify-between p-2 max-h-8 w-full gap-1 text-xs hover:bg-b-2",
72
78
  variant: "outlined",
73
- onClick: e[2] || (e[2] = (t) => d(a.value))
79
+ onClick: e[2] || (e[2] = (t) => f(a.value))
74
80
  }, {
75
81
  default: l(() => [
76
- u(k(a.value.summary) + " ", 1),
77
- b("div", G, [
78
- r(h, {
82
+ u(h(a.value.summary) + " ", 1),
83
+ k("div", J, [
84
+ r(_, {
79
85
  method: a.value.method
80
86
  }, null, 8, ["method"]),
81
- r(n(T), {
87
+ r(n(U), {
82
88
  class: "text-c-3",
83
89
  icon: "ChevronDown",
84
90
  size: "md"
@@ -95,18 +101,18 @@ const G = { class: "flex items-center gap-2" }, J = { class: "max-h-40 custom-sc
95
101
  u("Create Example")
96
102
  ])),
97
103
  default: l(() => [
98
- r(L, {
104
+ r(O, {
99
105
  modelValue: m.value,
100
106
  "onUpdate:modelValue": e[0] || (e[0] = (t) => m.value = t),
101
107
  label: "Example Name",
102
108
  placeholder: "Example Name",
103
- onOnDelete: e[1] || (e[1] = (t) => c("back", t))
109
+ onOnDelete: e[1] || (e[1] = (t) => p("back", t))
104
110
  }, null, 8, ["modelValue"])
105
111
  ]),
106
112
  _: 1
107
- }, 8, ["disabled"])) : W("", !0);
113
+ }, 8, ["disabled"])) : I("", !0);
108
114
  }
109
115
  });
110
116
  export {
111
- me as default
117
+ ne as default
112
118
  };
@@ -2,8 +2,8 @@ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import
2
2
  close: () => any;
3
3
  back: (e: KeyboardEvent) => any;
4
4
  }, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
5
- onClose?: (() => any) | undefined;
6
- onBack?: ((e: KeyboardEvent) => any) | undefined;
5
+ onClose?: () => any;
6
+ onBack?: (e: KeyboardEvent) => any;
7
7
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLFormElement>;
8
8
  export default _default;
9
9
  //# sourceMappingURL=CommandPaletteImport.vue.d.ts.map
@@ -8,8 +8,8 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
8
8
  close: () => any;
9
9
  back: (e: KeyboardEvent) => any;
10
10
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
11
- onClose?: (() => any) | undefined;
12
- onBack?: ((e: KeyboardEvent) => any) | undefined;
11
+ onClose?: () => any;
12
+ onBack?: (e: KeyboardEvent) => any;
13
13
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLFormElement>;
14
14
  export default _default;
15
15
  //# sourceMappingURL=CommandPaletteRequest.vue.d.ts.map
@@ -8,8 +8,8 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
8
8
  close: () => any;
9
9
  back: (e: KeyboardEvent) => any;
10
10
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
11
- onClose?: (() => any) | undefined;
12
- onBack?: ((e: KeyboardEvent) => any) | undefined;
11
+ onClose?: () => any;
12
+ onBack?: (e: KeyboardEvent) => any;
13
13
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLFormElement>;
14
14
  export default _default;
15
15
  //# sourceMappingURL=CommandPaletteServer.vue.d.ts.map
@@ -2,8 +2,8 @@ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import
2
2
  close: () => any;
3
3
  back: (e: KeyboardEvent) => any;
4
4
  }, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
5
- onClose?: (() => any) | undefined;
6
- onBack?: ((e: KeyboardEvent) => any) | undefined;
5
+ onClose?: () => any;
6
+ onBack?: (e: KeyboardEvent) => any;
7
7
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLFormElement>;
8
8
  export default _default;
9
9
  //# sourceMappingURL=CommandPaletteTag.vue.d.ts.map
@@ -2,8 +2,8 @@ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import
2
2
  close: () => any;
3
3
  back: (e: KeyboardEvent) => any;
4
4
  }, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
5
- onClose?: (() => any) | undefined;
6
- onBack?: ((e: KeyboardEvent) => any) | undefined;
5
+ onClose?: () => any;
6
+ onBack?: (e: KeyboardEvent) => any;
7
7
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLFormElement>;
8
8
  export default _default;
9
9
  //# sourceMappingURL=CommandPaletteWorkspace.vue.d.ts.map
@@ -10,8 +10,8 @@ export declare const PaletteComponents: {
10
10
  close: () => any;
11
11
  back: (e: KeyboardEvent) => any;
12
12
  }, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
13
- onClose?: (() => any) | undefined;
14
- onBack?: ((e: KeyboardEvent) => any) | undefined;
13
+ onClose?: () => any;
14
+ onBack?: (e: KeyboardEvent) => any;
15
15
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLFormElement>;
16
16
  readonly 'Create Request': import("vue").DefineComponent<{
17
17
  metaData?: {
@@ -27,22 +27,22 @@ export declare const PaletteComponents: {
27
27
  parentUid: string;
28
28
  };
29
29
  }> & Readonly<{
30
- onClose?: (() => any) | undefined;
31
- onBack?: ((e: KeyboardEvent) => any) | undefined;
30
+ onClose?: () => any;
31
+ onBack?: (e: KeyboardEvent) => any;
32
32
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLFormElement>;
33
33
  readonly 'Create Workspace': import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
34
34
  close: () => any;
35
35
  back: (e: KeyboardEvent) => any;
36
36
  }, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
37
- onClose?: (() => any) | undefined;
38
- onBack?: ((e: KeyboardEvent) => any) | undefined;
37
+ onClose?: () => any;
38
+ onBack?: (e: KeyboardEvent) => any;
39
39
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLFormElement>;
40
40
  readonly 'Add Tag': import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
41
41
  close: () => any;
42
42
  back: (e: KeyboardEvent) => any;
43
43
  }, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
44
- onClose?: (() => any) | undefined;
45
- onBack?: ((e: KeyboardEvent) => any) | undefined;
44
+ onClose?: () => any;
45
+ onBack?: (e: KeyboardEvent) => any;
46
46
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLFormElement>;
47
47
  readonly 'Add Server': import("vue").DefineComponent<{
48
48
  metaData?: {
@@ -58,15 +58,15 @@ export declare const PaletteComponents: {
58
58
  parentUid?: string;
59
59
  };
60
60
  }> & Readonly<{
61
- onClose?: (() => any) | undefined;
62
- onBack?: ((e: KeyboardEvent) => any) | undefined;
61
+ onClose?: () => any;
62
+ onBack?: (e: KeyboardEvent) => any;
63
63
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLFormElement>;
64
64
  readonly 'Create Collection': import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
65
65
  close: () => any;
66
66
  back: (e: KeyboardEvent) => any;
67
67
  }, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
68
- onClose?: (() => any) | undefined;
69
- onBack?: ((e: KeyboardEvent) => any) | undefined;
68
+ onClose?: () => any;
69
+ onBack?: (e: KeyboardEvent) => any;
70
70
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLFormElement>;
71
71
  readonly 'Add Example': import("vue").DefineComponent<{
72
72
  metaData?: {
@@ -80,8 +80,8 @@ export declare const PaletteComponents: {
80
80
  itemUid: string;
81
81
  };
82
82
  }> & Readonly<{
83
- onClose?: (() => any) | undefined;
84
- onBack?: ((e: KeyboardEvent) => any) | undefined;
83
+ onClose?: () => any;
84
+ onBack?: (e: KeyboardEvent) => any;
85
85
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
86
86
  };
87
87
  /** Infer the types from the commands */
@@ -5,7 +5,7 @@ type __VLS_Props = {
5
5
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
6
6
  "update:modelValue": (value: boolean) => any;
7
7
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
8
- "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
8
+ "onUpdate:modelValue"?: (value: boolean) => any;
9
9
  }>, {
10
10
  disabled: boolean;
11
11
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLLabelElement>;
@@ -27,7 +27,7 @@ const N = /* @__PURE__ */ c({
27
27
  ], 2),
28
28
  d(s(b), {
29
29
  id: "watch-toggle",
30
- disabled: e.disabled,
30
+ disabled: !!e.disabled,
31
31
  modelValue: o.value,
32
32
  "onUpdate:modelValue": t[0] || (t[0] = (u) => l("update:modelValue", u))
33
33
  }, null, 8, ["disabled", "modelValue"])
@@ -1,2 +1,2 @@
1
- export { default as TheCommandPalette } from './TheCommandPalette.vue.js';
1
+ export { default as TheCommandPalette } from './TheCommandPalette.vue';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -5,7 +5,7 @@ type __VLS_Props = {
5
5
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
6
6
  setActiveSection: (value: string) => any;
7
7
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
8
- onSetActiveSection?: ((value: string) => any) | undefined;
8
+ onSetActiveSection?: (value: string) => any;
9
9
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLFieldSetElement>;
10
10
  export default _default;
11
11
  //# sourceMappingURL=ContextBar.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DataTable.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTable.vue"],"names":[],"mappings":"AAuCA,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,CAAC,MAAM,GAAG,SAAS,CAAC,EAAE,CAAA;IAC/B,0BAA0B;IAC1B,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,CAAC;AASF,iBAAS,cAAc;WAuDT,OAAO,IAA6B;;yBATrB,GAAG;yBACH,GAAG;;;;EAa/B;AASD,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":"DataTable.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTable.vue"],"names":[],"mappings":"AAuCA,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,CAAC,MAAM,GAAG,SAAS,CAAC,EAAE,CAAA;IAC/B,0BAA0B;IAC1B,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,CAAC;AASF,iBAAS,cAAc;WAuDT,OAAO,IAA6B;;yBATrB,GAAG;yBACH,GAAG;;;;EAa/B;AASD,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;AAUpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -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;AAgBpG,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":"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"}
@@ -6,7 +6,7 @@ type __VLS_Props = {
6
6
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
7
7
  "update:modelValue": (v: boolean) => any;
8
8
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
9
- "onUpdate:modelValue"?: ((v: boolean) => any) | undefined;
9
+ "onUpdate:modelValue"?: (v: boolean) => any;
10
10
  }>, {
11
11
  align: "left" | "center";
12
12
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -1,4 +1,4 @@
1
- import { defineComponent as c, openBlock as i, createBlock as n, withCtx as d, createElementVNode as a, normalizeClass as o, unref as l, createVNode as u } from "vue";
1
+ import { defineComponent as c, openBlock as n, createBlock as i, withCtx as d, createElementVNode as a, normalizeClass as t, unref as l, createVNode as u } from "vue";
2
2
  import { cva as p, ScalarIcon as m } from "@scalar/components";
3
3
  import b from "./DataTableCell.vue.js";
4
4
  const f = ["checked", "disabled"], y = /* @__PURE__ */ c({
@@ -19,20 +19,20 @@ const f = ["checked", "disabled"], y = /* @__PURE__ */ c({
19
19
  }
20
20
  }
21
21
  });
22
- return (e, t) => (i(), n(b, { class: "group/cell relative flex min-w-8" }, {
22
+ return (e, o) => (n(), i(b, { class: "group/cell relative flex min-w-8" }, {
23
23
  default: d(() => [
24
24
  a("input", {
25
25
  checked: e.modelValue,
26
26
  class: "peer absolute inset-0 opacity-0 disabled:cursor-default cursor-pointer",
27
- disabled: e.disabled,
27
+ disabled: !!e.disabled,
28
28
  type: "checkbox",
29
- onChange: t[0] || (t[0] = (r) => e.$emit("update:modelValue", r.target.checked))
29
+ onChange: o[0] || (o[0] = (r) => e.$emit("update:modelValue", r.target.checked))
30
30
  }, null, 40, f),
31
31
  a("div", {
32
- class: o(l(s)({ align: e.align }))
32
+ class: t(l(s)({ align: e.align }))
33
33
  }, [
34
34
  a("div", {
35
- class: o([
35
+ class: t([
36
36
  "absolute opacity-0 border-[1px] rounded size-3/4 m-auto",
37
37
  !e.disabled && "group-hover/cell:opacity-100 group-has-[:focus-visible]/cell:opacity-100 group-has-[:focus-visible]/cell:border-c-accent"
38
38
  ])
@@ -1,9 +1,9 @@
1
1
  import type { VueClassProp } from '../../types/vue';
2
2
  type __VLS_Props = {
3
3
  id?: string;
4
- type?: string;
4
+ type?: string | undefined;
5
5
  /** Class for the wrapping cell because attrs is bound to the input */
6
- containerClass?: VueClassProp;
6
+ containerClass?: VueClassProp | undefined;
7
7
  required?: boolean;
8
8
  modelValue: string | number;
9
9
  /** Allows adding a custom value to the enum dropdown, defaults to true */
@@ -30,10 +30,10 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
30
30
  inputFocus: () => any;
31
31
  inputBlur: () => any;
32
32
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
33
- "onUpdate:modelValue"?: ((v: string) => any) | undefined;
34
- onSelectVariable?: ((value: string) => any) | undefined;
35
- onInputFocus?: (() => any) | undefined;
36
- onInputBlur?: (() => any) | undefined;
33
+ "onUpdate:modelValue"?: (v: string) => any;
34
+ onSelectVariable?: (value: string) => any;
35
+ onInputFocus?: () => any;
36
+ onInputBlur?: () => any;
37
37
  }>, {
38
38
  required: boolean;
39
39
  canAddCustomEnumValue: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"DataTableInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInput.vue"],"names":[],"mappings":"AAoKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAS/C,KAAK,WAAW,GAAG;IACf,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,sEAAsE;IACtE,cAAc,CAAC,EAAE,YAAY,CAAA;IAC7B,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;AAgBpG,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":"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,7 +1,7 @@
1
- import t from "./DataTableInput.vue2.js";
1
+ import a from "./DataTableInput.vue2.js";
2
2
  /* empty css */
3
- import o from "../../_virtual/_plugin-vue_export-helper.js";
4
- const e = /* @__PURE__ */ o(t, [["__scopeId", "data-v-de383491"]]);
3
+ import t from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ t(a, [["__scopeId", "data-v-da37da18"]]);
5
5
  export {
6
- e as default
6
+ m as default
7
7
  };
@@ -1,12 +1,12 @@
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 C, createCommentVNode as d, createElementVNode as B, 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 r, 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
- import { ScalarIconButton as x } from "@scalar/components";
4
- import O from "./DataTableCell.vue.js";
3
+ import { ScalarIconButton as O } from "@scalar/components";
4
+ import x from "./DataTableCell.vue.js";
5
5
  import A from "./DataTableInputSelect.vue.js";
6
6
  const I = {
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 = ["id", "readOnly", "type", "value"], S = {
9
+ }, E = { class: "row-1 overflow-x-auto" }, F = ["readOnly", "type", "value"], S = {
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
12
  }, T = {
@@ -29,29 +29,28 @@ const I = {
29
29
  },
30
30
  emits: ["update:modelValue", "inputFocus", "inputBlur", "selectVariable"],
31
31
  setup(y, { emit: c }) {
32
- const o = y, s = c, n = m(!0), v = m(!1), V = () => {
32
+ const a = y, s = c, n = m(!0), v = m(!1), V = () => {
33
33
  v.value || s("inputBlur");
34
34
  }, p = b(
35
- () => o.type === "password" ? n.value ? "password" : "text" : o.type ?? "text"
35
+ () => a.type === "password" ? n.value ? "password" : "text" : a.type ?? "text"
36
36
  );
37
- return (e, t) => (l(), u(O, {
37
+ return (e, t) => (l(), u(x, {
38
38
  class: k(["relative row", e.containerClass])
39
39
  }, {
40
40
  default: g(() => [
41
41
  e.$slots.default ? (l(), r("div", I, [
42
42
  i(e.$slots, "default", {}, void 0, !0),
43
- t[5] || (t[5] = C(": "))
43
+ t[5] || (t[5] = B(": "))
44
44
  ])) : d("", !0),
45
- B("div", E, [
46
- o.enum && o.enum.length ? (l(), u(A, {
45
+ C("div", E, [
46
+ a.enum && a.enum.length ? (l(), u(A, {
47
47
  key: 0,
48
- canAddCustomValue: e.canAddCustomEnumValue,
49
- modelValue: o.modelValue,
50
- value: o.enum,
51
- "onUpdate:modelValue": t[0] || (t[0] = (a) => s("update:modelValue", a))
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
52
  }, null, 8, ["canAddCustomValue", "modelValue", "value"])) : (l(), r($, { key: 1 }, [
53
- n.value && e.type === "password" ? (l(), r("input", f({ key: 0 }, e.$attrs, {
54
- id: e.id,
53
+ n.value && e.type === "password" ? (l(), r("input", f({ key: 0 }, e.id ? { ...e.$attrs, id: e.id } : e.$attrs, {
55
54
  autocomplete: "off",
56
55
  class: "border-none text-c-1 disabled:text-c-2 min-w-0 w-full peer px-2 py-1.25 -outline-offset-2",
57
56
  "data-1p-ignore": "",
@@ -59,9 +58,9 @@ const I = {
59
58
  spellcheck: "false",
60
59
  type: p.value,
61
60
  value: e.modelValue,
62
- onInput: t[1] || (t[1] = (a) => s(
61
+ onInput: t[1] || (t[1] = (o) => s(
63
62
  "update:modelValue",
64
- a.target.value ?? ""
63
+ o.target.value ?? ""
65
64
  ))
66
65
  }), null, 16, F)) : (l(), u(q, f({ key: 1 }, e.$attrs, {
67
66
  id: e.id,
@@ -72,12 +71,12 @@ const I = {
72
71
  min: e.min,
73
72
  modelValue: e.modelValue ?? "",
74
73
  readOnly: e.readOnly,
75
- required: e.required,
74
+ required: !!e.required,
76
75
  spellcheck: "false",
77
76
  type: p.value,
78
77
  onBlur: V,
79
- onFocus: t[2] || (t[2] = (a) => s("inputFocus")),
80
- "onUpdate:modelValue": t[3] || (t[3] = (a) => s("update:modelValue", a))
78
+ onFocus: t[2] || (t[2] = (o) => s("inputFocus")),
79
+ "onUpdate:modelValue": t[3] || (t[3] = (o) => s("update:modelValue", o))
81
80
  }), null, 16, ["id", "max", "min", "modelValue", "readOnly", "required", "type"])),
82
81
  e.required ? (l(), r("div", S, " Required ")) : d("", !0)
83
82
  ], 64))
@@ -86,12 +85,12 @@ const I = {
86
85
  i(e.$slots, "warning", {}, void 0, !0)
87
86
  ])) : d("", !0),
88
87
  i(e.$slots, "icon", {}, void 0, !0),
89
- e.type === "password" ? (l(), u(h(x), {
88
+ e.type === "password" ? (l(), u(h(O), {
90
89
  key: 2,
91
90
  class: "-ml-.5 mr-0.75 h-6 w-6 self-center p-1.5",
92
91
  icon: n.value ? "Show" : "Hide",
93
92
  label: n.value ? "Show Password" : "Hide Password",
94
- onClick: t[4] || (t[4] = (a) => n.value = !n.value)
93
+ onClick: t[4] || (t[4] = (o) => n.value = !n.value)
95
94
  }, null, 8, ["icon", "label"])) : d("", !0)
96
95
  ]),
97
96
  _: 3