@api-client/ui 0.0.4 → 0.0.5

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 (514) hide show
  1. package/dist/amf/lib/AmfParameters.js +0 -4
  2. package/dist/amf/lib/AmfParameters.js.map +1 -1
  3. package/dist/amf/lib/navigation-layout/EndpointsTree.js +0 -2
  4. package/dist/amf/lib/navigation-layout/EndpointsTree.js.map +1 -1
  5. package/dist/amf/lib/navigation-layout/NaturalTree.js +0 -2
  6. package/dist/amf/lib/navigation-layout/NaturalTree.js.map +1 -1
  7. package/dist/amf/store/AmfGraphStore.js +0 -2
  8. package/dist/amf/store/AmfGraphStore.js.map +1 -1
  9. package/dist/amf/store/AmfStore.js +0 -7
  10. package/dist/amf/store/AmfStore.js.map +1 -1
  11. package/dist/bindings/base/HttpClientStoreBindings.js +4 -1
  12. package/dist/bindings/base/HttpClientStoreBindings.js.map +1 -1
  13. package/dist/bindings/base/PlatformBindings.js +6 -10
  14. package/dist/bindings/base/PlatformBindings.js.map +1 -1
  15. package/dist/bindings/base/ProxyBindings.js +9 -6
  16. package/dist/bindings/base/ProxyBindings.js.map +1 -1
  17. package/dist/bindings/base/SharedWorkerThread.js +4 -1
  18. package/dist/bindings/base/SharedWorkerThread.js.map +1 -1
  19. package/dist/bindings/base/StoreBindings.js +162 -170
  20. package/dist/bindings/base/StoreBindings.js.map +1 -1
  21. package/dist/bindings/web/WebConfigurationBindings.js +22 -24
  22. package/dist/bindings/web/WebConfigurationBindings.js.map +1 -1
  23. package/dist/bindings/web/WebFileBindings.js +7 -4
  24. package/dist/bindings/web/WebFileBindings.js.map +1 -1
  25. package/dist/bindings/web/WebHttpClientStoreBindings.js +19 -21
  26. package/dist/bindings/web/WebHttpClientStoreBindings.js.map +1 -1
  27. package/dist/bindings/web/WebNavigationBindings.js +4 -1
  28. package/dist/bindings/web/WebNavigationBindings.js.map +1 -1
  29. package/dist/bindings/web/WebProxyBindings.js +5 -6
  30. package/dist/bindings/web/WebProxyBindings.js.map +1 -1
  31. package/dist/bindings/web/WebStoreBindings.js +39 -44
  32. package/dist/bindings/web/WebStoreBindings.js.map +1 -1
  33. package/dist/contextual-menu/ContextualMenu.js +10 -19
  34. package/dist/contextual-menu/ContextualMenu.js.map +1 -1
  35. package/dist/contextual-menu/ContextualMenuElement.js +4 -32
  36. package/dist/contextual-menu/ContextualMenuElement.js.map +1 -1
  37. package/dist/contextual-menu/MenuItem.js +0 -12
  38. package/dist/contextual-menu/MenuItem.js.map +1 -1
  39. package/dist/define/amf/api-annotation-document.js +1 -1
  40. package/dist/define/amf/api-annotation-document.js.map +1 -1
  41. package/dist/define/amf/api-authorization-editor.js +1 -1
  42. package/dist/define/amf/api-authorization-editor.js.map +1 -1
  43. package/dist/define/amf/api-channel-document.js +1 -1
  44. package/dist/define/amf/api-channel-document.js.map +1 -1
  45. package/dist/define/amf/api-documentation-document.js +1 -1
  46. package/dist/define/amf/api-documentation-document.js.map +1 -1
  47. package/dist/define/amf/api-documentation.js +1 -1
  48. package/dist/define/amf/api-documentation.js.map +1 -1
  49. package/dist/define/amf/api-navigation.js +1 -1
  50. package/dist/define/amf/api-navigation.js.map +1 -1
  51. package/dist/define/amf/api-operation-document.js +1 -1
  52. package/dist/define/amf/api-operation-document.js.map +1 -1
  53. package/dist/define/amf/api-parameter-document.js +1 -1
  54. package/dist/define/amf/api-parameter-document.js.map +1 -1
  55. package/dist/define/amf/api-parametrized-security-scheme.js +1 -1
  56. package/dist/define/amf/api-parametrized-security-scheme.js.map +1 -1
  57. package/dist/define/amf/api-payload-document.js +1 -1
  58. package/dist/define/amf/api-payload-document.js.map +1 -1
  59. package/dist/define/amf/api-request-document.js +1 -1
  60. package/dist/define/amf/api-request-document.js.map +1 -1
  61. package/dist/define/amf/api-request-editor.js +1 -1
  62. package/dist/define/amf/api-request-editor.js.map +1 -1
  63. package/dist/define/amf/api-request.js +1 -1
  64. package/dist/define/amf/api-request.js.map +1 -1
  65. package/dist/define/amf/api-resource-document.js +1 -1
  66. package/dist/define/amf/api-resource-document.js.map +1 -1
  67. package/dist/define/amf/api-response-document.js +1 -1
  68. package/dist/define/amf/api-response-document.js.map +1 -1
  69. package/dist/define/amf/api-schema-document.js +1 -1
  70. package/dist/define/amf/api-schema-document.js.map +1 -1
  71. package/dist/define/amf/api-security-document.js +1 -1
  72. package/dist/define/amf/api-security-document.js.map +1 -1
  73. package/dist/define/amf/api-security-requirement-document.js +1 -1
  74. package/dist/define/amf/api-security-requirement-document.js.map +1 -1
  75. package/dist/define/amf/api-server-picker.js +1 -1
  76. package/dist/define/amf/api-server-picker.js.map +1 -1
  77. package/dist/define/amf/api-summary.js +1 -1
  78. package/dist/define/amf/api-summary.js.map +1 -1
  79. package/dist/define/amf/authorization/amf-apikey-authorization.js +1 -1
  80. package/dist/define/amf/authorization/amf-apikey-authorization.js.map +1 -1
  81. package/dist/define/amf/authorization/amf-basic-authorization.js +1 -1
  82. package/dist/define/amf/authorization/amf-basic-authorization.js.map +1 -1
  83. package/dist/define/amf/authorization/amf-bearer-authorization.js +1 -1
  84. package/dist/define/amf/authorization/amf-bearer-authorization.js.map +1 -1
  85. package/dist/define/amf/authorization/amf-oauth2-authorization.js +1 -1
  86. package/dist/define/amf/authorization/amf-oauth2-authorization.js.map +1 -1
  87. package/dist/define/amf/authorization/amf-oidc-authorization.js +1 -1
  88. package/dist/define/amf/authorization/amf-oidc-authorization.js.map +1 -1
  89. package/dist/define/amf/authorization/amf-passthrough-authorization.js +1 -1
  90. package/dist/define/amf/authorization/amf-passthrough-authorization.js.map +1 -1
  91. package/dist/define/amf/authorization/amf-ramlcustom-authorization.js +1 -1
  92. package/dist/define/amf/authorization/amf-ramlcustom-authorization.js.map +1 -1
  93. package/dist/define/authorization/apikey-authorization.js +1 -1
  94. package/dist/define/authorization/apikey-authorization.js.map +1 -1
  95. package/dist/define/authorization/basic-authorization.js +1 -1
  96. package/dist/define/authorization/basic-authorization.js.map +1 -1
  97. package/dist/define/authorization/bearer-authorization.js +1 -1
  98. package/dist/define/authorization/bearer-authorization.js.map +1 -1
  99. package/dist/define/authorization/cc-authorization.js +1 -1
  100. package/dist/define/authorization/cc-authorization.js.map +1 -1
  101. package/dist/define/authorization/ntlm-authorization.js +1 -1
  102. package/dist/define/authorization/ntlm-authorization.js.map +1 -1
  103. package/dist/define/authorization/oauth2-authorization.js +1 -1
  104. package/dist/define/authorization/oauth2-authorization.js.map +1 -1
  105. package/dist/define/authorization/oidc-authorization.js +1 -1
  106. package/dist/define/authorization/oidc-authorization.js.map +1 -1
  107. package/dist/define/contextual-menu/contextual-menu.js +1 -1
  108. package/dist/define/contextual-menu/contextual-menu.js.map +1 -1
  109. package/dist/define/dialog/confirm-delete-dialog.js +1 -1
  110. package/dist/define/dialog/confirm-delete-dialog.js.map +1 -1
  111. package/dist/define/dialog/rename-dialog.js +1 -1
  112. package/dist/define/dialog/rename-dialog.js.map +1 -1
  113. package/dist/define/files/share-file.js +1 -1
  114. package/dist/define/files/share-file.js.map +1 -1
  115. package/dist/define/har/har-viewer.js +1 -1
  116. package/dist/define/har/har-viewer.js.map +1 -1
  117. package/dist/define/highlight/marked-highlight.js +1 -1
  118. package/dist/define/highlight/marked-highlight.js.map +1 -1
  119. package/dist/define/highlight/prism-highlight.js +1 -1
  120. package/dist/define/highlight/prism-highlight.js.map +1 -1
  121. package/dist/define/http/http-assertions.js +1 -1
  122. package/dist/define/http/http-assertions.js.map +1 -1
  123. package/dist/define/http/http-body-editor.js +1 -1
  124. package/dist/define/http/http-body-editor.js.map +1 -1
  125. package/dist/define/http/http-body-multipart-editor.js +1 -1
  126. package/dist/define/http/http-body-multipart-editor.js.map +1 -1
  127. package/dist/define/http/http-body-text-editor.js +1 -1
  128. package/dist/define/http/http-body-text-editor.js.map +1 -1
  129. package/dist/define/http/http-body-urlencoded-editor.js +1 -1
  130. package/dist/define/http/http-body-urlencoded-editor.js.map +1 -1
  131. package/dist/define/http/http-headers-form.js +1 -1
  132. package/dist/define/http/http-headers-form.js.map +1 -1
  133. package/dist/define/http/http-log-body.js +1 -1
  134. package/dist/define/http/http-log-body.js.map +1 -1
  135. package/dist/define/http/http-log-headers.js +1 -1
  136. package/dist/define/http/http-log-headers.js.map +1 -1
  137. package/dist/define/http/http-log-timings.js +1 -1
  138. package/dist/define/http/http-log-timings.js.map +1 -1
  139. package/dist/define/http/http-request-config.js +1 -1
  140. package/dist/define/http/http-request-config.js.map +1 -1
  141. package/dist/define/http/http-request-editor.js +1 -1
  142. package/dist/define/http/http-request-editor.js.map +1 -1
  143. package/dist/define/http/http-request-log.js +1 -1
  144. package/dist/define/http/http-request-log.js.map +1 -1
  145. package/dist/define/http/http-snippets.js +1 -1
  146. package/dist/define/http/http-snippets.js.map +1 -1
  147. package/dist/define/http/http-url-input.js +1 -1
  148. package/dist/define/http/http-url-input.js.map +1 -1
  149. package/dist/define/http/http-url-params-form.js +1 -1
  150. package/dist/define/http/http-url-params-form.js.map +1 -1
  151. package/dist/define/http-project/http-project-request-history.js +1 -1
  152. package/dist/define/http-project/http-project-request-history.js.map +1 -1
  153. package/dist/define/http-project/http-project-request.js +2 -2
  154. package/dist/define/http-project/http-project-request.js.map +1 -1
  155. package/dist/define/http-project/project-navigation.js +1 -1
  156. package/dist/define/http-project/project-navigation.js.map +1 -1
  157. package/dist/define/http-project/project-run-report.js +1 -1
  158. package/dist/define/http-project/project-run-report.js.map +1 -1
  159. package/dist/define/http-project/project-runner.js +2 -2
  160. package/dist/define/http-project/project-runner.js.map +1 -1
  161. package/dist/define/layout/split-view.js +1 -1
  162. package/dist/define/layout/split-view.js.map +1 -1
  163. package/dist/define/schema-design/schema-design-navigation.js +1 -1
  164. package/dist/define/schema-design/schema-design-navigation.js.map +1 -1
  165. package/dist/define/schema-design/schema-namespace-selector.js +1 -1
  166. package/dist/define/schema-design/schema-namespace-selector.js.map +1 -1
  167. package/dist/define/ui/ui-button.js +1 -1
  168. package/dist/define/ui/ui-button.js.map +1 -1
  169. package/dist/define/ui/ui-chip.js +1 -1
  170. package/dist/define/ui/ui-chip.js.map +1 -1
  171. package/dist/define/ui/ui-collapse.js +1 -1
  172. package/dist/define/ui/ui-collapse.js.map +1 -1
  173. package/dist/define/ui/ui-dialog.js +1 -1
  174. package/dist/define/ui/ui-dialog.js.map +1 -1
  175. package/dist/define/ui/ui-dropdown-list.js +1 -1
  176. package/dist/define/ui/ui-dropdown-list.js.map +1 -1
  177. package/dist/define/ui/ui-icon-button.js +1 -1
  178. package/dist/define/ui/ui-icon-button.js.map +1 -1
  179. package/dist/define/ui/ui-icon.js +1 -1
  180. package/dist/define/ui/ui-icon.js.map +1 -1
  181. package/dist/define/ui/ui-list-item.js +1 -1
  182. package/dist/define/ui/ui-list-item.js.map +1 -1
  183. package/dist/define/ui/ui-list.js +1 -1
  184. package/dist/define/ui/ui-list.js.map +1 -1
  185. package/dist/define/ui/ui-listbox.js +1 -1
  186. package/dist/define/ui/ui-listbox.js.map +1 -1
  187. package/dist/define/ui/ui-progress.js +1 -1
  188. package/dist/define/ui/ui-progress.js.map +1 -1
  189. package/dist/define/ui/ui-segmented-button-set.js +1 -1
  190. package/dist/define/ui/ui-segmented-button-set.js.map +1 -1
  191. package/dist/define/ui/ui-segmented-button.js +1 -1
  192. package/dist/define/ui/ui-segmented-button.js.map +1 -1
  193. package/dist/define/ui/ui-snackbar.js +1 -1
  194. package/dist/define/ui/ui-snackbar.js.map +1 -1
  195. package/dist/define/ui/ui-tab.js +1 -1
  196. package/dist/define/ui/ui-tab.js.map +1 -1
  197. package/dist/define/ui/ui-tabs.js +1 -1
  198. package/dist/define/ui/ui-tabs.js.map +1 -1
  199. package/dist/directives/data-attr.js +0 -1
  200. package/dist/directives/data-attr.js.map +1 -1
  201. package/dist/elements/ApiElement.js +0 -7
  202. package/dist/elements/ApiElement.js.map +1 -1
  203. package/dist/elements/amf/ApiAnnotationDocument.element.js +0 -2
  204. package/dist/elements/amf/ApiAnnotationDocument.element.js.map +1 -1
  205. package/dist/elements/amf/ApiAuthorizationEditor.element.js +0 -32
  206. package/dist/elements/amf/ApiAuthorizationEditor.element.js.map +1 -1
  207. package/dist/elements/amf/ApiDocumentation.element.js +0 -91
  208. package/dist/elements/amf/ApiDocumentation.element.js.map +1 -1
  209. package/dist/elements/amf/ApiDocumentationBase.js +0 -9
  210. package/dist/elements/amf/ApiDocumentationBase.js.map +1 -1
  211. package/dist/elements/amf/ApiDocumentationDocument.element.js +0 -1
  212. package/dist/elements/amf/ApiDocumentationDocument.element.js.map +1 -1
  213. package/dist/elements/amf/ApiNavigation.element.js +0 -97
  214. package/dist/elements/amf/ApiNavigation.element.js.map +1 -1
  215. package/dist/elements/amf/ApiOperationDocument.element.js +0 -76
  216. package/dist/elements/amf/ApiOperationDocument.element.js.map +1 -1
  217. package/dist/elements/amf/ApiParameterDocument.element.js +0 -3
  218. package/dist/elements/amf/ApiParameterDocument.element.js.map +1 -1
  219. package/dist/elements/amf/ApiParametrizedSecurityScheme.element.js +0 -1
  220. package/dist/elements/amf/ApiParametrizedSecurityScheme.element.js.map +1 -1
  221. package/dist/elements/amf/ApiPayloadDocument.element.js +0 -1
  222. package/dist/elements/amf/ApiPayloadDocument.element.js.map +1 -1
  223. package/dist/elements/amf/ApiRequest.element.js +0 -78
  224. package/dist/elements/amf/ApiRequest.element.js.map +1 -1
  225. package/dist/elements/amf/ApiRequestDocument.element.js +0 -38
  226. package/dist/elements/amf/ApiRequestDocument.element.js.map +1 -1
  227. package/dist/elements/amf/ApiRequestEditor.element.js +0 -118
  228. package/dist/elements/amf/ApiRequestEditor.element.js.map +1 -1
  229. package/dist/elements/amf/ApiResourceDocument.element.js +0 -75
  230. package/dist/elements/amf/ApiResourceDocument.element.js.map +1 -1
  231. package/dist/elements/amf/ApiResponseDocument.element.js +0 -17
  232. package/dist/elements/amf/ApiResponseDocument.element.js.map +1 -1
  233. package/dist/elements/amf/ApiSchemaDocument.element.js +0 -28
  234. package/dist/elements/amf/ApiSchemaDocument.element.js.map +1 -1
  235. package/dist/elements/amf/ApiSecurityDocument.element.js +0 -28
  236. package/dist/elements/amf/ApiSecurityDocument.element.js.map +1 -1
  237. package/dist/elements/amf/ApiSecurityRequirementDocument.element.js +0 -1
  238. package/dist/elements/amf/ApiSecurityRequirementDocument.element.js.map +1 -1
  239. package/dist/elements/amf/ApiServerPicker.element.js +2 -65
  240. package/dist/elements/amf/ApiServerPicker.element.js.map +1 -1
  241. package/dist/elements/amf/ApiSummary.element.js +0 -26
  242. package/dist/elements/amf/ApiSummary.element.js.map +1 -1
  243. package/dist/elements/amf/authorization/AmfApiKey.js +0 -5
  244. package/dist/elements/amf/authorization/AmfApiKey.js.map +1 -1
  245. package/dist/elements/amf/authorization/AmfBasic.js +0 -4
  246. package/dist/elements/amf/authorization/AmfBasic.js.map +1 -1
  247. package/dist/elements/amf/authorization/AmfBearer.js +0 -4
  248. package/dist/elements/amf/authorization/AmfBearer.js.map +1 -1
  249. package/dist/elements/amf/authorization/AmfOauth2.js +0 -13
  250. package/dist/elements/amf/authorization/AmfOauth2.js.map +1 -1
  251. package/dist/elements/amf/authorization/AmfOidc.js +0 -4
  252. package/dist/elements/amf/authorization/AmfOidc.js.map +1 -1
  253. package/dist/elements/amf/authorization/AmfPassThrough.js +0 -6
  254. package/dist/elements/amf/authorization/AmfPassThrough.js.map +1 -1
  255. package/dist/elements/amf/authorization/AmfRamlCustom.js +0 -6
  256. package/dist/elements/amf/authorization/AmfRamlCustom.js.map +1 -1
  257. package/dist/elements/authorization/OAuth2Authorize.js +0 -14
  258. package/dist/elements/authorization/OAuth2Authorize.js.map +1 -1
  259. package/dist/elements/authorization/OidcAuthorize.js +0 -14
  260. package/dist/elements/authorization/OidcAuthorize.js.map +1 -1
  261. package/dist/elements/authorization/ui/ApiKeyAuthorization.js +0 -2
  262. package/dist/elements/authorization/ui/ApiKeyAuthorization.js.map +1 -1
  263. package/dist/elements/authorization/ui/Authorization.js +18 -32
  264. package/dist/elements/authorization/ui/Authorization.js.map +1 -1
  265. package/dist/elements/authorization/ui/CcAuthorization.js +1 -3
  266. package/dist/elements/authorization/ui/CcAuthorization.js.map +1 -1
  267. package/dist/elements/authorization/ui/OAuth2Authorization.js +21 -50
  268. package/dist/elements/authorization/ui/OAuth2Authorization.js.map +1 -1
  269. package/dist/elements/authorization/ui/OidcAuthorization.js +4 -6
  270. package/dist/elements/authorization/ui/OidcAuthorization.js.map +1 -1
  271. package/dist/elements/code/HttpSnippets.js +9 -8
  272. package/dist/elements/code/HttpSnippets.js.map +1 -1
  273. package/dist/elements/dialog/ConfirmDelete.js +0 -12
  274. package/dist/elements/dialog/ConfirmDelete.js.map +1 -1
  275. package/dist/elements/dialog/Rename.js +0 -6
  276. package/dist/elements/dialog/Rename.js.map +1 -1
  277. package/dist/elements/environment/EnvironmentEditor.js +8 -11
  278. package/dist/elements/environment/EnvironmentEditor.js.map +1 -1
  279. package/dist/elements/environment/ServerEditor.js +7 -45
  280. package/dist/elements/environment/ServerEditor.js.map +1 -1
  281. package/dist/elements/environment/VariablesEditor.js +7 -12
  282. package/dist/elements/environment/VariablesEditor.js.map +1 -1
  283. package/dist/elements/files/ShareFile.js +19 -57
  284. package/dist/elements/files/ShareFile.js.map +1 -1
  285. package/dist/elements/har/HarViewer.js +6 -7
  286. package/dist/elements/har/HarViewer.js.map +1 -1
  287. package/dist/elements/highlight/MarkedHighlight.js +4 -56
  288. package/dist/elements/highlight/MarkedHighlight.js.map +1 -1
  289. package/dist/elements/highlight/PrismHighlight.js +9 -18
  290. package/dist/elements/highlight/PrismHighlight.js.map +1 -1
  291. package/dist/elements/highlight/PrismHighlighter.js +4 -6
  292. package/dist/elements/highlight/PrismHighlighter.js.map +1 -1
  293. package/dist/elements/http/BodyEditor.js +21 -33
  294. package/dist/elements/http/BodyEditor.js.map +1 -1
  295. package/dist/elements/http/BodyMultipartEditor.js +17 -18
  296. package/dist/elements/http/BodyMultipartEditor.js.map +1 -1
  297. package/dist/elements/http/BodyTextEditor.js +2 -15
  298. package/dist/elements/http/BodyTextEditor.js.map +1 -1
  299. package/dist/elements/http/BodyUrlEncodedEditor.js +20 -21
  300. package/dist/elements/http/BodyUrlEncodedEditor.js.map +1 -1
  301. package/dist/elements/http/HeadersForm.js +16 -17
  302. package/dist/elements/http/HeadersForm.js.map +1 -1
  303. package/dist/elements/http/HttpAssertions.js +8 -6
  304. package/dist/elements/http/HttpAssertions.js.map +1 -1
  305. package/dist/elements/http/LogBody.js +10 -21
  306. package/dist/elements/http/LogBody.js.map +1 -1
  307. package/dist/elements/http/LogHeaders.js +4 -23
  308. package/dist/elements/http/LogHeaders.js.map +1 -1
  309. package/dist/elements/http/LogTimings.js +11 -13
  310. package/dist/elements/http/LogTimings.js.map +1 -1
  311. package/dist/elements/http/RequestConfigElement.js +7 -4
  312. package/dist/elements/http/RequestConfigElement.js.map +1 -1
  313. package/dist/elements/http/RequestEditor.js +54 -88
  314. package/dist/elements/http/RequestEditor.js.map +1 -1
  315. package/dist/elements/http/RequestLog.js +9 -14
  316. package/dist/elements/http/RequestLog.js.map +1 -1
  317. package/dist/elements/http/UrlInput.js +15 -25
  318. package/dist/elements/http/UrlInput.js.map +1 -1
  319. package/dist/elements/http/UrlParamsForm.js +16 -13
  320. package/dist/elements/http/UrlParamsForm.js.map +1 -1
  321. package/dist/elements/layout/LayoutManager.js +16 -24
  322. package/dist/elements/layout/LayoutManager.js.map +1 -1
  323. package/dist/elements/layout/LayoutPanelElement.js +17 -23
  324. package/dist/elements/layout/LayoutPanelElement.js.map +1 -1
  325. package/dist/elements/layout/SplitItem.js +4 -12
  326. package/dist/elements/layout/SplitItem.js.map +1 -1
  327. package/dist/elements/layout/SplitLayout.js +18 -24
  328. package/dist/elements/layout/SplitLayout.js.map +1 -1
  329. package/dist/elements/layout/SplitPanel.js +10 -16
  330. package/dist/elements/layout/SplitPanel.js.map +1 -1
  331. package/dist/elements/layout/SplitView.js +17 -26
  332. package/dist/elements/layout/SplitView.js.map +1 -1
  333. package/dist/elements/navigation/AppNavigationElement.js +8 -47
  334. package/dist/elements/navigation/AppNavigationElement.js.map +1 -1
  335. package/dist/elements/navigation/AppNavigationItemElement.js +19 -24
  336. package/dist/elements/navigation/AppNavigationItemElement.js.map +1 -1
  337. package/dist/elements/project/HttpProjectRequest.js +0 -38
  338. package/dist/elements/project/HttpProjectRequest.js.map +1 -1
  339. package/dist/elements/project/HttpProjectRequestHistory.js +9 -35
  340. package/dist/elements/project/HttpProjectRequestHistory.js.map +1 -1
  341. package/dist/elements/project/ProjectNavigation.js +0 -4
  342. package/dist/elements/project/ProjectNavigation.js.map +1 -1
  343. package/dist/elements/project/ProjectRunReport.js +4 -15
  344. package/dist/elements/project/ProjectRunReport.js.map +1 -1
  345. package/dist/elements/project/ProjectRunner.js +2 -47
  346. package/dist/elements/project/ProjectRunner.js.map +1 -1
  347. package/dist/elements/schema-design/AssociationFormElement.js +0 -13
  348. package/dist/elements/schema-design/AssociationFormElement.js.map +1 -1
  349. package/dist/elements/schema-design/DataEntityEditorElement.js +0 -22
  350. package/dist/elements/schema-design/DataEntityEditorElement.js.map +1 -1
  351. package/dist/elements/schema-design/DataModelVisualizationElement.js +0 -16
  352. package/dist/elements/schema-design/DataModelVisualizationElement.js.map +1 -1
  353. package/dist/elements/schema-design/DataSchemaDocument.js +0 -36
  354. package/dist/elements/schema-design/DataSchemaDocument.js.map +1 -1
  355. package/dist/elements/schema-design/EntityFormElement.js +0 -18
  356. package/dist/elements/schema-design/EntityFormElement.js.map +1 -1
  357. package/dist/elements/schema-design/PropertyFormElement.js +0 -12
  358. package/dist/elements/schema-design/PropertyFormElement.js.map +1 -1
  359. package/dist/elements/schema-design/SchemaDesignNavigation.js +0 -9
  360. package/dist/elements/schema-design/SchemaDesignNavigation.js.map +1 -1
  361. package/dist/elements/schema-design/SchemaNamespaceSelector.js +0 -9
  362. package/dist/elements/schema-design/SchemaNamespaceSelector.js.map +1 -1
  363. package/dist/elements/user/UserAvatarElement.js +0 -9
  364. package/dist/elements/user/UserAvatarElement.js.map +1 -1
  365. package/dist/events/http-client/models/CertificatesEvents.js +2 -2
  366. package/dist/events/http-client/models/CertificatesEvents.js.map +1 -1
  367. package/dist/http-client/idb/Base.js +5 -10
  368. package/dist/http-client/idb/Base.js.map +1 -1
  369. package/dist/http-client/idb/LegacyMockedStore.js +0 -1
  370. package/dist/http-client/idb/LegacyMockedStore.js.map +1 -1
  371. package/dist/http-client/idb/MockedStore.js +3 -1
  372. package/dist/http-client/idb/MockedStore.js.map +1 -1
  373. package/dist/http-client/store/DataImportProcessor.js +0 -3
  374. package/dist/http-client/store/DataImportProcessor.js.map +1 -1
  375. package/dist/http-client/store/HttpClientIdbDatabase.js +8 -7
  376. package/dist/http-client/store/HttpClientIdbDatabase.js.map +1 -1
  377. package/dist/http-client/store/IdbThread.js +23 -20
  378. package/dist/http-client/store/IdbThread.js.map +1 -1
  379. package/dist/http-client/store/idb/IdbProjectUi.js +4 -1
  380. package/dist/http-client/store/idb/IdbProjectUi.js.map +1 -1
  381. package/dist/http-client/store/idb/IdbStore.js +0 -2
  382. package/dist/http-client/store/idb/IdbStore.js.map +1 -1
  383. package/dist/http-client/store/idb/IdbUrlHistory.js +4 -1
  384. package/dist/http-client/store/idb/IdbUrlHistory.js.map +1 -1
  385. package/dist/http-client/store/idb/IdbWsHistory.js +4 -1
  386. package/dist/http-client/store/idb/IdbWsHistory.js.map +1 -1
  387. package/dist/lib/chart/HttpHistoryChart.js +7 -8
  388. package/dist/lib/chart/HttpHistoryChart.js.map +1 -1
  389. package/dist/mixins/FileDropMixin.js +0 -1
  390. package/dist/mixins/FileDropMixin.js.map +1 -1
  391. package/dist/mixins/RenderableMixin.js +11 -15
  392. package/dist/mixins/RenderableMixin.js.map +1 -1
  393. package/dist/pages/ApplicationScreen.js +34 -55
  394. package/dist/pages/ApplicationScreen.js.map +1 -1
  395. package/dist/pages/api-client/ApiClient.screen.js +11 -20
  396. package/dist/pages/api-client/ApiClient.screen.js.map +1 -1
  397. package/dist/pages/api-client/Authenticate.screen.js +4 -6
  398. package/dist/pages/api-client/Authenticate.screen.js.map +1 -1
  399. package/dist/pages/api-client/StoreConfig.screen.js +21 -37
  400. package/dist/pages/api-client/StoreConfig.screen.js.map +1 -1
  401. package/dist/pages/api-client/Telemetry.screen.js +1 -2
  402. package/dist/pages/api-client/Telemetry.screen.js.map +1 -1
  403. package/dist/pages/api-client/pages/Files.page.js +6 -27
  404. package/dist/pages/api-client/pages/Files.page.js.map +1 -1
  405. package/dist/pages/api-client/pages/Settings.page.js +2 -4
  406. package/dist/pages/api-client/pages/Settings.page.js.map +1 -1
  407. package/dist/pages/api-client/pages/Trash.page.js +2 -13
  408. package/dist/pages/api-client/pages/Trash.page.js.map +1 -1
  409. package/dist/pages/demo/DemoPage.js +13 -13
  410. package/dist/pages/demo/DemoPage.js.map +1 -1
  411. package/dist/pages/http-project/HttpProject.screen.js +25 -35
  412. package/dist/pages/http-project/HttpProject.screen.js.map +1 -1
  413. package/dist/pages/schema-design/SchemaDesigner.screen.js +14 -27
  414. package/dist/pages/schema-design/SchemaDesigner.screen.js.map +1 -1
  415. package/dist/store/HttpStore.js +0 -3
  416. package/dist/store/HttpStore.js.map +1 -1
  417. package/dist/store/UserCache.js +5 -5
  418. package/dist/store/UserCache.js.map +1 -1
  419. package/dist/ui/UiElement.js +4 -5
  420. package/dist/ui/UiElement.js.map +1 -1
  421. package/dist/ui/button/SegmentedButton.js +9 -11
  422. package/dist/ui/button/SegmentedButton.js.map +1 -1
  423. package/dist/ui/button/SegmentedButtonsSet.js +6 -7
  424. package/dist/ui/button/SegmentedButtonsSet.js.map +1 -1
  425. package/dist/ui/button/UiButton.js +17 -39
  426. package/dist/ui/button/UiButton.js.map +1 -1
  427. package/dist/ui/button/UiIconButton.js +9 -35
  428. package/dist/ui/button/UiIconButton.js.map +1 -1
  429. package/dist/ui/chip/UiChip.js +9 -49
  430. package/dist/ui/chip/UiChip.js.map +1 -1
  431. package/dist/ui/collapse/UiCollapse.js +15 -20
  432. package/dist/ui/collapse/UiCollapse.js.map +1 -1
  433. package/dist/ui/controllers/ActionController.js +143 -144
  434. package/dist/ui/controllers/ActionController.js.map +1 -1
  435. package/dist/ui/controllers/RadioSelectionController.js +0 -1
  436. package/dist/ui/controllers/RadioSelectionController.js.map +1 -1
  437. package/dist/ui/date/DateTime.js +3 -3
  438. package/dist/ui/date/DateTime.js.map +1 -1
  439. package/dist/ui/dialog/UiDialog.js +14 -38
  440. package/dist/ui/dialog/UiDialog.js.map +1 -1
  441. package/dist/ui/effects/ripple.js +20 -18
  442. package/dist/ui/effects/ripple.js.map +1 -1
  443. package/dist/ui/effects/rippleDirective.js +6 -7
  444. package/dist/ui/effects/rippleDirective.js.map +1 -1
  445. package/dist/ui/icons/UiIcon.js +4 -3
  446. package/dist/ui/icons/UiIcon.js.map +1 -1
  447. package/dist/ui/input/CheckboxElement.js +12 -10
  448. package/dist/ui/input/CheckboxElement.js.map +1 -1
  449. package/dist/ui/input/CheckedElement.js +2 -13
  450. package/dist/ui/input/CheckedElement.js.map +1 -1
  451. package/dist/ui/input/Input.js +169 -234
  452. package/dist/ui/input/Input.js.map +1 -1
  453. package/dist/ui/input/RadioElement.js +13 -11
  454. package/dist/ui/input/RadioElement.js.map +1 -1
  455. package/dist/ui/input/SwitchElement.js +0 -18
  456. package/dist/ui/input/SwitchElement.js.map +1 -1
  457. package/dist/ui/input/TextAreaElement.js +0 -15
  458. package/dist/ui/input/TextAreaElement.js.map +1 -1
  459. package/dist/ui/list/DividerElement.js +5 -10
  460. package/dist/ui/list/DividerElement.js.map +1 -1
  461. package/dist/ui/list/UiDropdownList.js +7 -48
  462. package/dist/ui/list/UiDropdownList.js.map +1 -1
  463. package/dist/ui/list/UiList.js +3 -15
  464. package/dist/ui/list/UiList.js.map +1 -1
  465. package/dist/ui/list/UiListItem.js +4 -17
  466. package/dist/ui/list/UiListItem.js.map +1 -1
  467. package/dist/ui/list/UiListbox.js +0 -1
  468. package/dist/ui/list/UiListbox.js.map +1 -1
  469. package/dist/ui/notification/SnackNotifications.js +1 -2
  470. package/dist/ui/notification/SnackNotifications.js.map +1 -1
  471. package/dist/ui/notification/Snackbar.js +27 -51
  472. package/dist/ui/notification/Snackbar.js.map +1 -1
  473. package/dist/ui/progress/Range.js +24 -23
  474. package/dist/ui/progress/Range.js.map +1 -1
  475. package/dist/ui/progress/UiProgress.js +0 -11
  476. package/dist/ui/progress/UiProgress.js.map +1 -1
  477. package/dist/ui/table/DataTable.js +7 -12
  478. package/dist/ui/table/DataTable.js.map +1 -1
  479. package/dist/ui/tabs/UiTab.js +24 -25
  480. package/dist/ui/tabs/UiTab.js.map +1 -1
  481. package/dist/ui/tabs/UiTabs.js +21 -35
  482. package/dist/ui/tabs/UiTabs.js.map +1 -1
  483. package/dist/visualization/elements/VizWorkspaceElement.js +12 -21
  484. package/dist/visualization/elements/VizWorkspaceElement.js.map +1 -1
  485. package/dist/visualization/lib/AssociationAnchors.js +16 -28
  486. package/dist/visualization/lib/AssociationAnchors.js.map +1 -1
  487. package/dist/visualization/lib/Point.js +0 -2
  488. package/dist/visualization/lib/Point.js.map +1 -1
  489. package/dist/visualization/lib/SelectionManager.js +10 -11
  490. package/dist/visualization/lib/SelectionManager.js.map +1 -1
  491. package/dist/visualization/lib/WorkspaceAlignment.js +0 -1
  492. package/dist/visualization/lib/WorkspaceAlignment.js.map +1 -1
  493. package/dist/visualization/lib/WorkspaceDebugging.js +5 -8
  494. package/dist/visualization/lib/WorkspaceDebugging.js.map +1 -1
  495. package/dist/visualization/lib/WorkspaceEdges.js +17 -19
  496. package/dist/visualization/lib/WorkspaceEdges.js.map +1 -1
  497. package/dist/visualization/lib/WorkspaceGestures.js +0 -3
  498. package/dist/visualization/lib/WorkspaceGestures.js.map +1 -1
  499. package/dist/visualization/lib/WorkspaceSizing.js +4 -6
  500. package/dist/visualization/lib/WorkspaceSizing.js.map +1 -1
  501. package/dist/visualization/lib/lines/RectilinearLine.js +8 -34
  502. package/dist/visualization/lib/lines/RectilinearLine.js.map +1 -1
  503. package/dist/visualization/lib/tips/RectilinearTip.js +0 -1
  504. package/dist/visualization/lib/tips/RectilinearTip.js.map +1 -1
  505. package/dist/visualization/lib/tips/TipArtist.js +0 -3
  506. package/dist/visualization/lib/tips/TipArtist.js.map +1 -1
  507. package/dist/visualization/plugin/dnd/DragAndDropPlugin.js +3 -5
  508. package/dist/visualization/plugin/dnd/DragAndDropPlugin.js.map +1 -1
  509. package/dist/visualization/plugin/group-selection/GroupSelection.js +19 -19
  510. package/dist/visualization/plugin/group-selection/GroupSelection.js.map +1 -1
  511. package/dist/visualization/plugin/positioning/WorkspaceLayout.js +21 -38
  512. package/dist/visualization/plugin/positioning/WorkspaceLayout.js.map +1 -1
  513. package/package.json +3 -2
  514. package/tsconfig.json +2 -2
@@ -6,12 +6,15 @@ import { PlatformBindings } from './PlatformBindings.js';
6
6
  * to run entire projects or folders.
7
7
  */
8
8
  export class ProxyBindings extends PlatformBindings {
9
- /**
10
- * This is used by the client side (main thread or the renderer process)
11
- * to define the current space the app is using.
12
- * This space is used in some APIs instead of adding the space to the events system.
13
- */
14
- space = '';
9
+ constructor() {
10
+ super(...arguments);
11
+ /**
12
+ * This is used by the client side (main thread or the renderer process)
13
+ * to define the current space the app is using.
14
+ * This space is used in some APIs instead of adding the space to the events system.
15
+ */
16
+ this.space = '';
17
+ }
15
18
  async initialize() {
16
19
  window.addEventListener(CoreEventTypes.Transport.Core.request, this.handleCoreRequest.bind(this));
17
20
  window.addEventListener(CoreEventTypes.Transport.Core.httpProject, this.handleHttpProject.bind(this));
@@ -1 +1 @@
1
- {"version":3,"file":"ProxyBindings.js","sourceRoot":"","sources":["../../../src/bindings/base/ProxyBindings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,IAAI,cAAc,EAAyK,MAAM,mCAAmC,CAAC;AACxP,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD;;;;GAIG;AACH,MAAM,OAAgB,aAAc,SAAQ,gBAAgB;IAC1D;;;;OAIG;IACH,KAAK,GAAG,EAAE,CAAC;IAEX,KAAK,CAAC,UAAU;QACd,MAAM,CAAC,gBAAgB,CAAC,cAAc,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAkB,CAAC,CAAC;QACnH,MAAM,CAAC,gBAAgB,CAAC,cAAc,CAAC,SAAS,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAkB,CAAC,CAAC;QACvH,MAAM,CAAC,gBAAgB,CAAC,cAAc,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAkB,CAAC,CAAC;IAChH,CAAC;IAES,iBAAiB,CAAC,CAA6D;QACvF,CAAC,CAAC,MAAM,CAAC,MAAM,GAAG,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;IAC/C,CAAC;IAES,iBAAiB,CAAC,CAAuG;QACjI,MAAM,IAAI,GAAG,EAAE,GAAG,CAAC,CAAC,MAAM,EAAgC,CAAC;QAC3D,IAAI,IAAI,CAAC,KAAK,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE;YAC7B,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;SACzB;QACD,CAAC,CAAC,MAAM,CAAC,MAAM,GAAG,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;IAC/C,CAAC;IAES,eAAe,CAAC,CAA6C;QACrE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC,MAAM,CAAC;QACnC,CAAC,CAAC,MAAM,CAAC,MAAM,GAAG,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IACjD,CAAC;CA2BF","sourcesContent":["import { EventTypes as CoreEventTypes, ContextEvent, IRequestLog, IHttpRequest, IHttpRequestDetail, IProjectExecutionLog, IRequestProxyInit, IProxyResult, IHttpProjectProxyInit, IHttpProjectStoreProxyInit } from '@api-client/core/build/browser.js';\nimport { PlatformBindings } from './PlatformBindings.js';\n\n/**\n * The bindings for making HTTP request in the application.\n * The purpose is to run API requests using the `CoreEngine` class or\n * to run entire projects or folders.\n */\nexport abstract class ProxyBindings extends PlatformBindings {\n /**\n * This is used by the client side (main thread or the renderer process)\n * to define the current space the app is using. \n * This space is used in some APIs instead of adding the space to the events system.\n */\n space = '';\n\n async initialize(): Promise<void> {\n window.addEventListener(CoreEventTypes.Transport.Core.request, this.handleCoreRequest.bind(this) as EventListener);\n window.addEventListener(CoreEventTypes.Transport.Core.httpProject, this.handleHttpProject.bind(this) as EventListener);\n window.addEventListener(CoreEventTypes.Transport.Http.send, this.handlerHttpSend.bind(this) as EventListener);\n }\n\n protected handleCoreRequest(e: ContextEvent<IRequestProxyInit, IProxyResult<IRequestLog>>): void {\n e.detail.result = this.coreRequest(e.detail);\n }\n\n protected handleHttpProject(e: ContextEvent<IHttpProjectProxyInit | IHttpProjectStoreProxyInit, IProxyResult<IProjectExecutionLog>>): void {\n const copy = { ...e.detail } as IHttpProjectStoreProxyInit;\n if (this.space && !copy.space) {\n copy.space = this.space;\n }\n e.detail.result = this.coreHttpProject(copy);\n }\n\n protected handlerHttpSend(e: ContextEvent<IHttpRequestDetail, Response>): void {\n const { request, init } = e.detail;\n e.detail.result = this.httpSend(request, init);\n }\n\n /**\n * Sends a single request without a context of a project.\n * \n * @param init The request execution configuration\n * @returns The execution log with the variables evaluated during the run or `undefined` when the event was not handled.\n */\n abstract coreRequest(init: IRequestProxyInit): Promise<IProxyResult<IRequestLog>>;\n\n /**\n * For both a request or a folder (since it's all single configuration.)\n * \n * @param init The project execution configuration\n * @returns The project execution log.\n */\n abstract coreHttpProject(init: IHttpProjectProxyInit | IHttpProjectStoreProxyInit): Promise<IProxyResult<IProjectExecutionLog>>;\n\n /**\n * Sends the request outside the Core engine, most probably using Fetch API.\n * Note, CORS may apply to the request.\n * \n * @param request The base request definition.\n * @param init Optional request init options compatible with the Fetch API.\n * @returns Compatible with the Fetch API Response object.\n */\n abstract httpSend(request: IHttpRequest, init?: RequestInit): Promise<Response>;\n}\n"]}
1
+ {"version":3,"file":"ProxyBindings.js","sourceRoot":"","sources":["../../../src/bindings/base/ProxyBindings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,IAAI,cAAc,EAAyK,MAAM,mCAAmC,CAAC;AACxP,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD;;;;GAIG;AACH,MAAM,OAAgB,aAAc,SAAQ,gBAAgB;IAA5D;;QACE;;;;WAIG;QACH,UAAK,GAAG,EAAE,CAAC;IAkDb,CAAC;IAhDC,KAAK,CAAC,UAAU;QACd,MAAM,CAAC,gBAAgB,CAAC,cAAc,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAkB,CAAC,CAAC;QACnH,MAAM,CAAC,gBAAgB,CAAC,cAAc,CAAC,SAAS,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAkB,CAAC,CAAC;QACvH,MAAM,CAAC,gBAAgB,CAAC,cAAc,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAkB,CAAC,CAAC;IAChH,CAAC;IAES,iBAAiB,CAAC,CAA6D;QACvF,CAAC,CAAC,MAAM,CAAC,MAAM,GAAG,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;IAC/C,CAAC;IAES,iBAAiB,CAAC,CAAuG;QACjI,MAAM,IAAI,GAAG,EAAE,GAAG,CAAC,CAAC,MAAM,EAAgC,CAAC;QAC3D,IAAI,IAAI,CAAC,KAAK,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE;YAC7B,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;SACzB;QACD,CAAC,CAAC,MAAM,CAAC,MAAM,GAAG,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;IAC/C,CAAC;IAES,eAAe,CAAC,CAA6C;QACrE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC,MAAM,CAAC;QACnC,CAAC,CAAC,MAAM,CAAC,MAAM,GAAG,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IACjD,CAAC;CA2BF","sourcesContent":["import { EventTypes as CoreEventTypes, ContextEvent, IRequestLog, IHttpRequest, IHttpRequestDetail, IProjectExecutionLog, IRequestProxyInit, IProxyResult, IHttpProjectProxyInit, IHttpProjectStoreProxyInit } from '@api-client/core/build/browser.js';\nimport { PlatformBindings } from './PlatformBindings.js';\n\n/**\n * The bindings for making HTTP request in the application.\n * The purpose is to run API requests using the `CoreEngine` class or\n * to run entire projects or folders.\n */\nexport abstract class ProxyBindings extends PlatformBindings {\n /**\n * This is used by the client side (main thread or the renderer process)\n * to define the current space the app is using. \n * This space is used in some APIs instead of adding the space to the events system.\n */\n space = '';\n\n async initialize(): Promise<void> {\n window.addEventListener(CoreEventTypes.Transport.Core.request, this.handleCoreRequest.bind(this) as EventListener);\n window.addEventListener(CoreEventTypes.Transport.Core.httpProject, this.handleHttpProject.bind(this) as EventListener);\n window.addEventListener(CoreEventTypes.Transport.Http.send, this.handlerHttpSend.bind(this) as EventListener);\n }\n\n protected handleCoreRequest(e: ContextEvent<IRequestProxyInit, IProxyResult<IRequestLog>>): void {\n e.detail.result = this.coreRequest(e.detail);\n }\n\n protected handleHttpProject(e: ContextEvent<IHttpProjectProxyInit | IHttpProjectStoreProxyInit, IProxyResult<IProjectExecutionLog>>): void {\n const copy = { ...e.detail } as IHttpProjectStoreProxyInit;\n if (this.space && !copy.space) {\n copy.space = this.space;\n }\n e.detail.result = this.coreHttpProject(copy);\n }\n\n protected handlerHttpSend(e: ContextEvent<IHttpRequestDetail, Response>): void {\n const { request, init } = e.detail;\n e.detail.result = this.httpSend(request, init);\n }\n\n /**\n * Sends a single request without a context of a project.\n * \n * @param init The request execution configuration\n * @returns The execution log with the variables evaluated during the run or `undefined` when the event was not handled.\n */\n abstract coreRequest(init: IRequestProxyInit): Promise<IProxyResult<IRequestLog>>;\n\n /**\n * For both a request or a folder (since it's all single configuration.)\n * \n * @param init The project execution configuration\n * @returns The project execution log.\n */\n abstract coreHttpProject(init: IHttpProjectProxyInit | IHttpProjectStoreProxyInit): Promise<IProxyResult<IProjectExecutionLog>>;\n\n /**\n * Sends the request outside the Core engine, most probably using Fetch API.\n * Note, CORS may apply to the request.\n * \n * @param request The base request definition.\n * @param init Optional request init options compatible with the Fetch API.\n * @returns Compatible with the Fetch API Response object.\n */\n abstract httpSend(request: IHttpRequest, init?: RequestInit): Promise<Response>;\n}\n"]}
@@ -5,7 +5,10 @@ import { IoThread } from "./IoThread.js";
5
5
  * Base class for ShareWorker threads.
6
6
  */
7
7
  export class SharedWorkerThread extends IoThread {
8
- ports = [];
8
+ constructor() {
9
+ super(...arguments);
10
+ this.ports = [];
11
+ }
9
12
  async initialize() {
10
13
  globalThis.addEventListener('connect', this.connectHandler.bind(this));
11
14
  }
@@ -1 +1 @@
1
- {"version":3,"file":"SharedWorkerThread.js","sourceRoot":"","sources":["../../../src/bindings/base/SharedWorkerThread.ts"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,sDAAsD;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAGzC;;GAEG;AACH,MAAM,OAAO,kBAAmB,SAAQ,QAAQ;IAC9C,KAAK,GAAkB,EAAE,CAAC;IAE1B,KAAK,CAAC,UAAU;QACd,UAAU,CAAC,gBAAgB,CAAC,SAAS,EAAE,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAkB,CAAC,CAAC;IAC1F,CAAC;IAED,cAAc,CAAC,CAAe;QAC5B,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QACxB,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACtB,IAAI,CAAC,gBAAgB,CAAC,SAAS,EAAE,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;QACjE,IAAI,CAAC,KAAK,EAAE,CAAC;QACb,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IAC5B,CAAC;IAED,WAAW,CAAC,OAAiC;QAC3C,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC;IAClD,CAAC;IAES,cAAc,CAAC,CAAe;QACtC,IAAI,CAAC,CAAC,IAAI,KAAK,MAAM,EAAE;YACrB,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC;YAC7C,OAAO;SACR;QACD,MAAM,KAAK,GAAG,CAAC,CAAC,IAA2B,CAAC;QAC5C,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IAC5B,CAAC;CACF","sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\n/* eslint-disable @typescript-eslint/ban-ts-comment */\nimport { IoThread } from \"./IoThread.js\";\nimport { IoCommand, IoEvent, IoNotification } from \"./PlatformBindings.js\";\n\n/**\n * Base class for ShareWorker threads.\n */\nexport class SharedWorkerThread extends IoThread {\n ports: MessagePort[] = [];\n\n async initialize(): Promise<void> {\n globalThis.addEventListener('connect', this.connectHandler.bind(this) as EventListener);\n }\n\n connectHandler(e: MessageEvent): void {\n const port = e.ports[0];\n this.ports.push(port);\n port.addEventListener('message', this.messageHandler.bind(this));\n port.start();\n port.postMessage('ready');\n }\n\n postMessage(message: IoNotification | IoEvent): void {\n this.ports.forEach(p => p.postMessage(message));\n }\n\n protected messageHandler(e: MessageEvent): void {\n if (e.data === 'init') {\n e.ports.forEach(p => p.postMessage('ready'));\n return;\n }\n const event = e.data as IoCommand | IoEvent;\n this.handleMessage(event);\n }\n}\n"]}
1
+ {"version":3,"file":"SharedWorkerThread.js","sourceRoot":"","sources":["../../../src/bindings/base/SharedWorkerThread.ts"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,sDAAsD;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAGzC;;GAEG;AACH,MAAM,OAAO,kBAAmB,SAAQ,QAAQ;IAAhD;;QACE,UAAK,GAAkB,EAAE,CAAC;IA0B5B,CAAC;IAxBC,KAAK,CAAC,UAAU;QACd,UAAU,CAAC,gBAAgB,CAAC,SAAS,EAAE,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAkB,CAAC,CAAC;IAC1F,CAAC;IAED,cAAc,CAAC,CAAe;QAC5B,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QACxB,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACtB,IAAI,CAAC,gBAAgB,CAAC,SAAS,EAAE,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;QACjE,IAAI,CAAC,KAAK,EAAE,CAAC;QACb,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IAC5B,CAAC;IAED,WAAW,CAAC,OAAiC;QAC3C,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC;IAClD,CAAC;IAES,cAAc,CAAC,CAAe;QACtC,IAAI,CAAC,CAAC,IAAI,KAAK,MAAM,EAAE;YACrB,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC;YAC7C,OAAO;SACR;QACD,MAAM,KAAK,GAAG,CAAC,CAAC,IAA2B,CAAC;QAC5C,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IAC5B,CAAC;CACF","sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\n/* eslint-disable @typescript-eslint/ban-ts-comment */\nimport { IoThread } from \"./IoThread.js\";\nimport { IoCommand, IoEvent, IoNotification } from \"./PlatformBindings.js\";\n\n/**\n * Base class for ShareWorker threads.\n */\nexport class SharedWorkerThread extends IoThread {\n ports: MessagePort[] = [];\n\n async initialize(): Promise<void> {\n globalThis.addEventListener('connect', this.connectHandler.bind(this) as EventListener);\n }\n\n connectHandler(e: MessageEvent): void {\n const port = e.ports[0];\n this.ports.push(port);\n port.addEventListener('message', this.messageHandler.bind(this));\n port.start();\n port.postMessage('ready');\n }\n\n postMessage(message: IoNotification | IoEvent): void {\n this.ports.forEach(p => p.postMessage(message));\n }\n\n protected messageHandler(e: MessageEvent): void {\n if (e.data === 'init') {\n e.ports.forEach(p => p.postMessage('ready'));\n return;\n }\n const event = e.data as IoCommand | IoEvent;\n this.handleMessage(event);\n }\n}\n"]}
@@ -11,29 +11,168 @@ import { StoreBroadcast } from '../../http-client/store/StoreBroadcast.js';
11
11
  * The base class for API store bindings.
12
12
  */
13
13
  export class StoreBindings extends PlatformBindings {
14
- /**
15
- * This is used by the client side (main thread or the renderer process)
16
- * to define the current space the app is using.
17
- * This space is used in some APIs instead of adding the space to the events system.
18
- */
19
- space = '';
20
- /**
21
- * The currently used environment for all store calls.
22
- * This can be changed via the `Events.Global.setEnv()`
23
- */
24
- globalEnvironment;
25
- /**
26
- * Initialized with the `globalEnvironment`.
27
- * The store with initialized SDK for the global environment
28
- */
29
- store;
30
- filesChannel = new BroadcastChannel(StoreBroadcast.files);
31
- mediaChannel = new BroadcastChannel(StoreBroadcast.media);
32
- spacesChannel = new BroadcastChannel(StoreBroadcast.spaces);
33
- trashChannel = new BroadcastChannel(StoreBroadcast.trash);
34
- historyChannel = new BroadcastChannel(StoreBroadcast.history);
35
- projectExeChannel = new BroadcastChannel(StoreBroadcast.projectRuns);
36
- certificatesChannel = new BroadcastChannel(StoreBroadcast.certificates);
14
+ constructor() {
15
+ super(...arguments);
16
+ /**
17
+ * This is used by the client side (main thread or the renderer process)
18
+ * to define the current space the app is using.
19
+ * This space is used in some APIs instead of adding the space to the events system.
20
+ */
21
+ this.space = '';
22
+ this.filesChannel = new BroadcastChannel(StoreBroadcast.files);
23
+ this.mediaChannel = new BroadcastChannel(StoreBroadcast.media);
24
+ this.spacesChannel = new BroadcastChannel(StoreBroadcast.spaces);
25
+ this.trashChannel = new BroadcastChannel(StoreBroadcast.trash);
26
+ this.historyChannel = new BroadcastChannel(StoreBroadcast.history);
27
+ this.projectExeChannel = new BroadcastChannel(StoreBroadcast.projectRuns);
28
+ this.certificatesChannel = new BroadcastChannel(StoreBroadcast.certificates);
29
+ this.auth = {
30
+ isAuthenticated: async (env) => {
31
+ let { store } = this;
32
+ if (env) {
33
+ store = new HttpStore(env);
34
+ }
35
+ if (!store) {
36
+ throw new Error(`Environment is not set.`);
37
+ }
38
+ return store.isAuthenticated(env);
39
+ },
40
+ authenticate: async (options = {}) => {
41
+ const { env, force, updateEnvironment } = options;
42
+ let { store } = this;
43
+ if (env) {
44
+ store = new HttpStore(env);
45
+ }
46
+ if (!store) {
47
+ throw new Error(`Environment is not set.`);
48
+ }
49
+ const result = await store.getStoreSessionToken(undefined, force);
50
+ if (updateEnvironment && result.new) {
51
+ await Events.Config.Environment.update(env || this.globalEnvironment);
52
+ }
53
+ return result;
54
+ },
55
+ /**
56
+ * @returns The current store token or undefined if no store is set.
57
+ */
58
+ getToken: async () => {
59
+ const { store } = this;
60
+ return store && store.sdk && store.sdk.token || undefined;
61
+ },
62
+ };
63
+ this.global = {
64
+ /**
65
+ * Sets the store environment to be used globally by the application.
66
+ * This initializes the store with the configuration.
67
+ *
68
+ * Note, this won't initialize the session with the store.
69
+ *
70
+ * @param env The environment to set. Note, it must have the `location` set.
71
+ */
72
+ set: async (env) => {
73
+ if (!env.location) {
74
+ throw new Error(`The location is required for store environment configuration.`);
75
+ }
76
+ this.globalEnvironment = env;
77
+ const store = new HttpStore(env);
78
+ this.store = store;
79
+ },
80
+ get: async () => {
81
+ const { globalEnvironment } = this;
82
+ if (!globalEnvironment) {
83
+ throw new Error(`The current environment is not set.`);
84
+ }
85
+ return globalEnvironment;
86
+ },
87
+ };
88
+ this.spaces = {
89
+ list: (options) => this.getStore().sdk.spaces.list(options),
90
+ add: (nameOrObject) => {
91
+ let space;
92
+ if (typeof nameOrObject === 'string') {
93
+ space = Space.fromName(nameOrObject).toJSON();
94
+ }
95
+ else {
96
+ space = nameOrObject;
97
+ }
98
+ return this.getStore().sdk.spaces.add(space);
99
+ },
100
+ read: (key) => this.getStore().sdk.spaces.read(key),
101
+ delete: async (key) => {
102
+ await this.getStore().sdk.spaces.delete(key);
103
+ return {
104
+ key,
105
+ kind: SpaceKind,
106
+ };
107
+ },
108
+ addUser: (space, otherUserKey, role, expires) => this.getStore().sdk.spaces.addUser(this.space || space, otherUserKey, role, expires),
109
+ removeUser: (space, otherUserKey) => this.getStore().sdk.spaces.removeUser(this.space || space, otherUserKey),
110
+ patchUsers: (space, value) => this.getStore().sdk.spaces.patchUsers(this.space || space, value),
111
+ };
112
+ this.certificates = {
113
+ add: (value, space) => this.getStore().sdk.certificates.add(value, this.space || space),
114
+ addBulk: (values, space) => this.getStore().sdk.certificates.addBulk(values, this.space || space),
115
+ read: (key) => this.getStore().sdk.certificates.read(key),
116
+ list: (options) => {
117
+ const cp = { ...options };
118
+ if (!cp.space) {
119
+ cp.space = this.space;
120
+ }
121
+ return this.getStore().sdk.certificates.list(cp);
122
+ },
123
+ delete: async (key) => {
124
+ await this.getStore().sdk.certificates.delete(key);
125
+ return {
126
+ key,
127
+ };
128
+ },
129
+ deleteBulk: (keys) => this.getStore().sdk.certificates.deleteBulk(keys),
130
+ empty: (space) => this.getStore().sdk.certificates.empty(this.space || space),
131
+ };
132
+ this.trash = {
133
+ add: (entry, space) => this.getStore().sdk.trash.add(entry, this.space || space),
134
+ list: (options) => {
135
+ const cp = { ...options };
136
+ if (!cp.space) {
137
+ cp.space = this.space;
138
+ }
139
+ return this.getStore().sdk.trash.list(cp);
140
+ },
141
+ delete: async (key) => {
142
+ await this.getStore().sdk.trash.delete(key);
143
+ return { key };
144
+ },
145
+ batchDelete: (keys) => this.getStore().sdk.trash.batchDelete(keys),
146
+ restore: (key) => this.getStore().sdk.trash.restore(key),
147
+ batchRestore: (keys) => this.getStore().sdk.trash.batchDelete(keys),
148
+ empty: (space) => this.getStore().sdk.trash.empty(this.space || space),
149
+ };
150
+ this.revisions = {
151
+ list: (key, options) => this.getStore().sdk.revisions.list(key, options),
152
+ };
153
+ this.media = {
154
+ add: (key, contents, mime) => this.getStore().sdk.file.createMedia(contents, this.space, key, { mime }),
155
+ read: (key) => this.getStore().sdk.file.read(this.space, key, true),
156
+ patch: (key, info) => this.getStore().sdk.file.patch(this.space, key, info, true),
157
+ };
158
+ this.files = {
159
+ list: (options, kinds) => this.getStore().sdk.file.list(this.space, kinds, options),
160
+ add: (input, opts) => this.getStore().sdk.file.createMeta(input, this.space, opts),
161
+ read: (key) => this.getStore().sdk.file.read(this.space, key, false),
162
+ readBulk: (keys) => this.getStore().sdk.file.readBulk(this.space, keys),
163
+ delete: (key) => this.getStore().sdk.file.delete(this.space, key),
164
+ patch: (key, info) => this.getStore().sdk.file.patch(this.space, key, info, false),
165
+ breadcrumbs: (key) => this.getStore().sdk.file.breadcrumbs(this.space, key),
166
+ };
167
+ this.shared = {
168
+ list: (options, kinds) => this.getStore().sdk.shared.list(this.space, kinds, options),
169
+ };
170
+ this.users = {
171
+ list: (options) => this.getStore().sdk.user.list(options),
172
+ me: () => this.getStore().sdk.user.me(),
173
+ read: (key) => this.getStore().sdk.user.read(key),
174
+ };
175
+ }
37
176
  async initializeStore() {
38
177
  // ...
39
178
  }
@@ -86,65 +225,6 @@ export class StoreBindings extends PlatformBindings {
86
225
  target.addEventListener(EventTypes.HttpClient.Model.Certificate.delete, this.handleCertificateDelete.bind(this));
87
226
  target.addEventListener(EventTypes.HttpClient.Model.Certificate.insert, this.handleCertificateInsert.bind(this));
88
227
  }
89
- auth = {
90
- isAuthenticated: async (env) => {
91
- let { store } = this;
92
- if (env) {
93
- store = new HttpStore(env);
94
- }
95
- if (!store) {
96
- throw new Error(`Environment is not set.`);
97
- }
98
- return store.isAuthenticated(env);
99
- },
100
- authenticate: async (options = {}) => {
101
- const { env, force, updateEnvironment } = options;
102
- let { store } = this;
103
- if (env) {
104
- store = new HttpStore(env);
105
- }
106
- if (!store) {
107
- throw new Error(`Environment is not set.`);
108
- }
109
- const result = await store.getStoreSessionToken(undefined, force);
110
- if (updateEnvironment && result.new) {
111
- await Events.Config.Environment.update(env || this.globalEnvironment);
112
- }
113
- return result;
114
- },
115
- /**
116
- * @returns The current store token or undefined if no store is set.
117
- */
118
- getToken: async () => {
119
- const { store } = this;
120
- return store && store.sdk && store.sdk.token || undefined;
121
- },
122
- };
123
- global = {
124
- /**
125
- * Sets the store environment to be used globally by the application.
126
- * This initializes the store with the configuration.
127
- *
128
- * Note, this won't initialize the session with the store.
129
- *
130
- * @param env The environment to set. Note, it must have the `location` set.
131
- */
132
- set: async (env) => {
133
- if (!env.location) {
134
- throw new Error(`The location is required for store environment configuration.`);
135
- }
136
- this.globalEnvironment = env;
137
- const store = new HttpStore(env);
138
- this.store = store;
139
- },
140
- get: async () => {
141
- const { globalEnvironment } = this;
142
- if (!globalEnvironment) {
143
- throw new Error(`The current environment is not set.`);
144
- }
145
- return globalEnvironment;
146
- },
147
- };
148
228
  handleInitializeEnvironment(input) {
149
229
  const e = input;
150
230
  e.preventDefault();
@@ -435,93 +515,6 @@ export class StoreBindings extends PlatformBindings {
435
515
  }
436
516
  return store;
437
517
  }
438
- spaces = {
439
- list: (options) => this.getStore().sdk.spaces.list(options),
440
- add: (nameOrObject) => {
441
- let space;
442
- if (typeof nameOrObject === 'string') {
443
- space = Space.fromName(nameOrObject).toJSON();
444
- }
445
- else {
446
- space = nameOrObject;
447
- }
448
- return this.getStore().sdk.spaces.add(space);
449
- },
450
- read: (key) => this.getStore().sdk.spaces.read(key),
451
- delete: async (key) => {
452
- await this.getStore().sdk.spaces.delete(key);
453
- return {
454
- key,
455
- kind: SpaceKind,
456
- };
457
- },
458
- addUser: (space, otherUserKey, role, expires) => this.getStore().sdk.spaces.addUser(this.space || space, otherUserKey, role, expires),
459
- removeUser: (space, otherUserKey) => this.getStore().sdk.spaces.removeUser(this.space || space, otherUserKey),
460
- patchUsers: (space, value) => this.getStore().sdk.spaces.patchUsers(this.space || space, value),
461
- };
462
- certificates = {
463
- add: (value, space) => this.getStore().sdk.certificates.add(value, this.space || space),
464
- addBulk: (values, space) => this.getStore().sdk.certificates.addBulk(values, this.space || space),
465
- read: (key) => this.getStore().sdk.certificates.read(key),
466
- list: (options) => {
467
- const cp = { ...options };
468
- if (!cp.space) {
469
- cp.space = this.space;
470
- }
471
- return this.getStore().sdk.certificates.list(cp);
472
- },
473
- delete: async (key) => {
474
- await this.getStore().sdk.certificates.delete(key);
475
- return {
476
- key,
477
- };
478
- },
479
- deleteBulk: (keys) => this.getStore().sdk.certificates.deleteBulk(keys),
480
- empty: (space) => this.getStore().sdk.certificates.empty(this.space || space),
481
- };
482
- trash = {
483
- add: (entry, space) => this.getStore().sdk.trash.add(entry, this.space || space),
484
- list: (options) => {
485
- const cp = { ...options };
486
- if (!cp.space) {
487
- cp.space = this.space;
488
- }
489
- return this.getStore().sdk.trash.list(cp);
490
- },
491
- delete: async (key) => {
492
- await this.getStore().sdk.trash.delete(key);
493
- return { key };
494
- },
495
- batchDelete: (keys) => this.getStore().sdk.trash.batchDelete(keys),
496
- restore: (key) => this.getStore().sdk.trash.restore(key),
497
- batchRestore: (keys) => this.getStore().sdk.trash.batchDelete(keys),
498
- empty: (space) => this.getStore().sdk.trash.empty(this.space || space),
499
- };
500
- revisions = {
501
- list: (key, options) => this.getStore().sdk.revisions.list(key, options),
502
- };
503
- media = {
504
- add: (key, contents, mime) => this.getStore().sdk.file.createMedia(contents, this.space, key, { mime }),
505
- read: (key) => this.getStore().sdk.file.read(this.space, key, true),
506
- patch: (key, info) => this.getStore().sdk.file.patch(this.space, key, info, true),
507
- };
508
- files = {
509
- list: (options, kinds) => this.getStore().sdk.file.list(this.space, kinds, options),
510
- add: (input, opts) => this.getStore().sdk.file.createMeta(input, this.space, opts),
511
- read: (key) => this.getStore().sdk.file.read(this.space, key, false),
512
- readBulk: (keys) => this.getStore().sdk.file.readBulk(this.space, keys),
513
- delete: (key) => this.getStore().sdk.file.delete(this.space, key),
514
- patch: (key, info) => this.getStore().sdk.file.patch(this.space, key, info, false),
515
- breadcrumbs: (key) => this.getStore().sdk.file.breadcrumbs(this.space, key),
516
- };
517
- shared = {
518
- list: (options, kinds) => this.getStore().sdk.shared.list(this.space, kinds, options),
519
- };
520
- users = {
521
- list: (options) => this.getStore().sdk.user.list(options),
522
- me: () => this.getStore().sdk.user.me(),
523
- read: (key) => this.getStore().sdk.user.read(key),
524
- };
525
518
  handleCertificateList(event) {
526
519
  const e = event;
527
520
  e.preventDefault();
@@ -615,7 +608,6 @@ export class StoreBindings extends PlatformBindings {
615
608
  };
616
609
  await this.sendSocket(socket, cmd);
617
610
  }
618
- eventsSocket;
619
611
  async getEventsSocket() {
620
612
  if (!this.eventsSocket) {
621
613
  const store = this.getStore();