@api-client/ui 0.0.17 → 0.1.1

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 (1241) hide show
  1. package/.github/workflows/deployment.yml +3 -1
  2. package/README.md +74 -11
  3. package/bin/dev.ts +1 -0
  4. package/build/src/amf/lib/AmfInputParser.d.ts +7 -6
  5. package/build/src/amf/lib/AmfInputParser.d.ts.map +1 -1
  6. package/build/src/amf/lib/AmfInputParser.js +2 -1
  7. package/build/src/amf/lib/AmfInputParser.js.map +1 -1
  8. package/build/src/amf/lib/AmfParameters.d.ts +16 -15
  9. package/build/src/amf/lib/AmfParameters.d.ts.map +1 -1
  10. package/build/src/amf/lib/AmfParameters.js +5 -3
  11. package/build/src/amf/lib/AmfParameters.js.map +1 -1
  12. package/build/src/amf/lib/AmfSecurity.d.ts +3 -3
  13. package/build/src/amf/lib/AmfSecurity.d.ts.map +1 -1
  14. package/build/src/amf/lib/AmfSecurity.js +1 -0
  15. package/build/src/amf/lib/AmfSecurity.js.map +1 -1
  16. package/build/src/amf/lib/Oauth2RamlCustomData.d.ts +13 -12
  17. package/build/src/amf/lib/Oauth2RamlCustomData.d.ts.map +1 -1
  18. package/build/src/amf/lib/Oauth2RamlCustomData.js +3 -3
  19. package/build/src/amf/lib/Oauth2RamlCustomData.js.map +1 -1
  20. package/build/src/amf/lib/PayloadUtils.d.ts +3 -2
  21. package/build/src/amf/lib/PayloadUtils.d.ts.map +1 -1
  22. package/build/src/amf/lib/PayloadUtils.js +3 -1
  23. package/build/src/amf/lib/PayloadUtils.js.map +1 -1
  24. package/build/src/amf/lib/QueryParameterProcessor.d.ts +7 -7
  25. package/build/src/amf/lib/QueryParameterProcessor.d.ts.map +1 -1
  26. package/build/src/amf/lib/QueryParameterProcessor.js +1 -1
  27. package/build/src/amf/lib/QueryParameterProcessor.js.map +1 -1
  28. package/build/src/amf/lib/Utils.d.ts +6 -5
  29. package/build/src/amf/lib/Utils.d.ts.map +1 -1
  30. package/build/src/amf/lib/Utils.js +2 -1
  31. package/build/src/amf/lib/Utils.js.map +1 -1
  32. package/build/src/amf/store/AmfGraphStore.d.ts +2 -2
  33. package/build/src/amf/store/AmfGraphStore.d.ts.map +1 -1
  34. package/build/src/amf/store/AmfGraphStore.js +2 -2
  35. package/build/src/amf/store/AmfGraphStore.js.map +1 -1
  36. package/build/src/amf/store/AmfStore.d.ts +21 -17
  37. package/build/src/amf/store/AmfStore.d.ts.map +1 -1
  38. package/build/src/amf/store/AmfStore.js +1 -2
  39. package/build/src/amf/store/AmfStore.js.map +1 -1
  40. package/build/src/amf/store/InMemAmfGraphStore.d.ts +24 -21
  41. package/build/src/amf/store/InMemAmfGraphStore.d.ts.map +1 -1
  42. package/build/src/amf/store/InMemAmfGraphStore.js +2 -1
  43. package/build/src/amf/store/InMemAmfGraphStore.js.map +1 -1
  44. package/build/src/amf/types.d.ts +9 -8
  45. package/build/src/amf/types.d.ts.map +1 -1
  46. package/build/src/amf/types.js.map +1 -1
  47. package/build/src/bindings/base/ConfigurationBindings.d.ts +1 -1
  48. package/build/src/bindings/base/ConfigurationBindings.d.ts.map +1 -1
  49. package/build/src/bindings/base/ConfigurationBindings.js.map +1 -1
  50. package/build/src/bindings/base/IoThread.d.ts +1 -1
  51. package/build/src/bindings/base/IoThread.d.ts.map +1 -1
  52. package/build/src/bindings/base/IoThread.js +1 -1
  53. package/build/src/bindings/base/IoThread.js.map +1 -1
  54. package/build/src/bindings/base/PlatformBindings.js +1 -1
  55. package/build/src/bindings/base/PlatformBindings.js.map +1 -1
  56. package/build/src/bindings/web/WebConfigurationBindings.d.ts.map +1 -1
  57. package/build/src/bindings/web/WebConfigurationBindings.js.map +1 -1
  58. package/build/src/code-snippets/Bash/CurlSnippet.d.ts +2 -1
  59. package/build/src/code-snippets/Bash/CurlSnippet.d.ts.map +1 -1
  60. package/build/src/code-snippets/Bash/CurlSnippet.js.map +1 -1
  61. package/build/src/code-snippets/C/CcurlSnippet.d.ts +2 -1
  62. package/build/src/code-snippets/C/CcurlSnippet.d.ts.map +1 -1
  63. package/build/src/code-snippets/C/CcurlSnippet.js.map +1 -1
  64. package/build/src/code-snippets/CodeSnippet.d.ts +3 -1
  65. package/build/src/code-snippets/CodeSnippet.d.ts.map +1 -1
  66. package/build/src/code-snippets/CodeSnippet.js +1 -1
  67. package/build/src/code-snippets/CodeSnippet.js.map +1 -1
  68. package/build/src/code-snippets/Dart/DartSnippet.d.ts +2 -1
  69. package/build/src/code-snippets/Dart/DartSnippet.d.ts.map +1 -1
  70. package/build/src/code-snippets/Dart/DartSnippet.js.map +1 -1
  71. package/build/src/code-snippets/HTTP/RawSnippet.d.ts +2 -1
  72. package/build/src/code-snippets/HTTP/RawSnippet.d.ts.map +1 -1
  73. package/build/src/code-snippets/HTTP/RawSnippet.js.map +1 -1
  74. package/build/src/code-snippets/Java/PlatformSnippet.d.ts +2 -1
  75. package/build/src/code-snippets/Java/PlatformSnippet.d.ts.map +1 -1
  76. package/build/src/code-snippets/Java/PlatformSnippet.js.map +1 -1
  77. package/build/src/code-snippets/Java/SpringSnippet.d.ts +2 -1
  78. package/build/src/code-snippets/Java/SpringSnippet.d.ts.map +1 -1
  79. package/build/src/code-snippets/Java/SpringSnippet.js.map +1 -1
  80. package/build/src/code-snippets/JavaScript/AsyncFetchSnippet.d.ts +2 -1
  81. package/build/src/code-snippets/JavaScript/AsyncFetchSnippet.d.ts.map +1 -1
  82. package/build/src/code-snippets/JavaScript/AsyncFetchSnippet.js.map +1 -1
  83. package/build/src/code-snippets/JavaScript/AxiosSnippet.d.ts +2 -1
  84. package/build/src/code-snippets/JavaScript/AxiosSnippet.d.ts.map +1 -1
  85. package/build/src/code-snippets/JavaScript/AxiosSnippet.js.map +1 -1
  86. package/build/src/code-snippets/JavaScript/FetchSnippet.d.ts +2 -1
  87. package/build/src/code-snippets/JavaScript/FetchSnippet.d.ts.map +1 -1
  88. package/build/src/code-snippets/JavaScript/FetchSnippet.js.map +1 -1
  89. package/build/src/code-snippets/JavaScript/NodeSnippet.d.ts +2 -1
  90. package/build/src/code-snippets/JavaScript/NodeSnippet.d.ts.map +1 -1
  91. package/build/src/code-snippets/JavaScript/NodeSnippet.js.map +1 -1
  92. package/build/src/code-snippets/JavaScript/XhrSnippet.d.ts +2 -1
  93. package/build/src/code-snippets/JavaScript/XhrSnippet.d.ts.map +1 -1
  94. package/build/src/code-snippets/JavaScript/XhrSnippet.js.map +1 -1
  95. package/build/src/code-snippets/JavaScript/jQuerySnippet.d.ts +2 -1
  96. package/build/src/code-snippets/JavaScript/jQuerySnippet.d.ts.map +1 -1
  97. package/build/src/code-snippets/JavaScript/jQuerySnippet.js.map +1 -1
  98. package/build/src/code-snippets/Python/Python27Snippet.d.ts +2 -1
  99. package/build/src/code-snippets/Python/Python27Snippet.d.ts.map +1 -1
  100. package/build/src/code-snippets/Python/Python27Snippet.js.map +1 -1
  101. package/build/src/code-snippets/Python/Python31Snippet.d.ts +2 -1
  102. package/build/src/code-snippets/Python/Python31Snippet.d.ts.map +1 -1
  103. package/build/src/code-snippets/Python/Python31Snippet.js.map +1 -1
  104. package/build/src/code-snippets/Python/RequestsSnippet.d.ts +2 -1
  105. package/build/src/code-snippets/Python/RequestsSnippet.d.ts.map +1 -1
  106. package/build/src/code-snippets/Python/RequestsSnippet.js.map +1 -1
  107. package/build/src/controllers/LiveDataController.d.ts +1 -1
  108. package/build/src/controllers/LiveDataController.d.ts.map +1 -1
  109. package/build/src/controllers/LiveDataController.js.map +1 -1
  110. package/build/src/core/Activity.d.ts +19 -1
  111. package/build/src/core/Activity.d.ts.map +1 -1
  112. package/build/src/core/Activity.js +286 -238
  113. package/build/src/core/Activity.js.map +1 -1
  114. package/build/src/core/ActivityManager.d.ts +8 -1
  115. package/build/src/core/ActivityManager.d.ts.map +1 -1
  116. package/build/src/core/ActivityManager.js +22 -1
  117. package/build/src/core/ActivityManager.js.map +1 -1
  118. package/build/src/core/Fragment.d.ts +5 -0
  119. package/build/src/core/Fragment.d.ts.map +1 -1
  120. package/build/src/core/Fragment.js +11 -0
  121. package/build/src/core/Fragment.js.map +1 -1
  122. package/build/src/core/FragmentManager.d.ts +1 -1
  123. package/build/src/core/FragmentManager.d.ts.map +1 -1
  124. package/build/src/core/FragmentManager.js.map +1 -1
  125. package/build/src/core/ModalActivity.d.ts +1 -1
  126. package/build/src/core/ModalActivity.js +1 -1
  127. package/build/src/core/ModalActivity.js.map +1 -1
  128. package/build/src/directives/live.d.ts +1 -1
  129. package/build/src/directives/live.d.ts.map +1 -1
  130. package/build/src/directives/live.js.map +1 -1
  131. package/build/src/elements/amf/ApiAnnotationDocument.element.d.ts +6 -5
  132. package/build/src/elements/amf/ApiAnnotationDocument.element.d.ts.map +1 -1
  133. package/build/src/elements/amf/ApiAnnotationDocument.element.js +1 -1
  134. package/build/src/elements/amf/ApiAnnotationDocument.element.js.map +1 -1
  135. package/build/src/elements/amf/ApiAuthorizationEditor.element.d.ts +16 -15
  136. package/build/src/elements/amf/ApiAuthorizationEditor.element.d.ts.map +1 -1
  137. package/build/src/elements/amf/ApiAuthorizationEditor.element.js.map +1 -1
  138. package/build/src/elements/amf/ApiChannelDocument.element.d.ts +2 -2
  139. package/build/src/elements/amf/ApiChannelDocument.element.d.ts.map +1 -1
  140. package/build/src/elements/amf/ApiChannelDocument.element.js.map +1 -1
  141. package/build/src/elements/amf/ApiDocumentation.element.d.ts +2 -2
  142. package/build/src/elements/amf/ApiDocumentation.element.d.ts.map +1 -1
  143. package/build/src/elements/amf/ApiDocumentation.element.js +1 -1
  144. package/build/src/elements/amf/ApiDocumentation.element.js.map +1 -1
  145. package/build/src/elements/amf/ApiDocumentationBase.d.ts +6 -4
  146. package/build/src/elements/amf/ApiDocumentationBase.d.ts.map +1 -1
  147. package/build/src/elements/amf/ApiDocumentationBase.js +1 -1
  148. package/build/src/elements/amf/ApiDocumentationBase.js.map +1 -1
  149. package/build/src/elements/amf/ApiDocumentationDocument.element.d.ts +5 -5
  150. package/build/src/elements/amf/ApiDocumentationDocument.element.d.ts.map +1 -1
  151. package/build/src/elements/amf/ApiDocumentationDocument.element.js.map +1 -1
  152. package/build/src/elements/amf/ApiNavigation.element.d.ts +12 -12
  153. package/build/src/elements/amf/ApiNavigation.element.d.ts.map +1 -1
  154. package/build/src/elements/amf/ApiNavigation.element.js.map +1 -1
  155. package/build/src/elements/amf/ApiOperationDocument.element.d.ts +27 -27
  156. package/build/src/elements/amf/ApiOperationDocument.element.d.ts.map +1 -1
  157. package/build/src/elements/amf/ApiOperationDocument.element.js +3 -1
  158. package/build/src/elements/amf/ApiOperationDocument.element.js.map +1 -1
  159. package/build/src/elements/amf/ApiParameterDocument.element.d.ts +6 -5
  160. package/build/src/elements/amf/ApiParameterDocument.element.d.ts.map +1 -1
  161. package/build/src/elements/amf/ApiParameterDocument.element.js.map +1 -1
  162. package/build/src/elements/amf/ApiParametrizedSecurityScheme.element.d.ts +6 -6
  163. package/build/src/elements/amf/ApiParametrizedSecurityScheme.element.d.ts.map +1 -1
  164. package/build/src/elements/amf/ApiParametrizedSecurityScheme.element.js +1 -1
  165. package/build/src/elements/amf/ApiParametrizedSecurityScheme.element.js.map +1 -1
  166. package/build/src/elements/amf/ApiPayloadDocument.element.d.ts +7 -7
  167. package/build/src/elements/amf/ApiPayloadDocument.element.d.ts.map +1 -1
  168. package/build/src/elements/amf/ApiPayloadDocument.element.js.map +1 -1
  169. package/build/src/elements/amf/ApiRequest.element.d.ts +2 -1
  170. package/build/src/elements/amf/ApiRequest.element.d.ts.map +1 -1
  171. package/build/src/elements/amf/ApiRequest.element.js.map +1 -1
  172. package/build/src/elements/amf/ApiRequestDocument.element.d.ts +9 -9
  173. package/build/src/elements/amf/ApiRequestDocument.element.d.ts.map +1 -1
  174. package/build/src/elements/amf/ApiRequestDocument.element.js.map +1 -1
  175. package/build/src/elements/amf/ApiRequestEditor.element.d.ts +16 -12
  176. package/build/src/elements/amf/ApiRequestEditor.element.d.ts.map +1 -1
  177. package/build/src/elements/amf/ApiRequestEditor.element.js +8 -3
  178. package/build/src/elements/amf/ApiRequestEditor.element.js.map +1 -1
  179. package/build/src/elements/amf/ApiResourceDocument.element.d.ts +17 -16
  180. package/build/src/elements/amf/ApiResourceDocument.element.d.ts.map +1 -1
  181. package/build/src/elements/amf/ApiResourceDocument.element.js +2 -1
  182. package/build/src/elements/amf/ApiResourceDocument.element.js.map +1 -1
  183. package/build/src/elements/amf/ApiResponseDocument.element.d.ts +9 -9
  184. package/build/src/elements/amf/ApiResponseDocument.element.d.ts.map +1 -1
  185. package/build/src/elements/amf/ApiResponseDocument.element.js.map +1 -1
  186. package/build/src/elements/amf/ApiSchemaDocument.element.d.ts +22 -22
  187. package/build/src/elements/amf/ApiSchemaDocument.element.d.ts.map +1 -1
  188. package/build/src/elements/amf/ApiSchemaDocument.element.js +4 -3
  189. package/build/src/elements/amf/ApiSchemaDocument.element.js.map +1 -1
  190. package/build/src/elements/amf/ApiSecurityDocument.element.d.ts +19 -19
  191. package/build/src/elements/amf/ApiSecurityDocument.element.d.ts.map +1 -1
  192. package/build/src/elements/amf/ApiSecurityDocument.element.js +1 -1
  193. package/build/src/elements/amf/ApiSecurityDocument.element.js.map +1 -1
  194. package/build/src/elements/amf/ApiSecurityRequirementDocument.element.d.ts +4 -4
  195. package/build/src/elements/amf/ApiSecurityRequirementDocument.element.d.ts.map +1 -1
  196. package/build/src/elements/amf/ApiSecurityRequirementDocument.element.js.map +1 -1
  197. package/build/src/elements/amf/ApiServerPicker.element.d.ts +3 -3
  198. package/build/src/elements/amf/ApiServerPicker.element.d.ts.map +1 -1
  199. package/build/src/elements/amf/ApiServerPicker.element.js +3 -3
  200. package/build/src/elements/amf/ApiServerPicker.element.js.map +1 -1
  201. package/build/src/elements/amf/ApiSummary.element.d.ts +13 -13
  202. package/build/src/elements/amf/ApiSummary.element.d.ts.map +1 -1
  203. package/build/src/elements/amf/ApiSummary.element.js +1 -1
  204. package/build/src/elements/amf/ApiSummary.element.js.map +1 -1
  205. package/build/src/elements/amf/SchemaCommonTemplates.d.ts +5 -5
  206. package/build/src/elements/amf/SchemaCommonTemplates.d.ts.map +1 -1
  207. package/build/src/elements/amf/SchemaCommonTemplates.js +1 -1
  208. package/build/src/elements/amf/SchemaCommonTemplates.js.map +1 -1
  209. package/build/src/elements/amf/authorization/AmfApiKey.d.ts +4 -2
  210. package/build/src/elements/amf/authorization/AmfApiKey.d.ts.map +1 -1
  211. package/build/src/elements/amf/authorization/AmfApiKey.js +2 -1
  212. package/build/src/elements/amf/authorization/AmfApiKey.js.map +1 -1
  213. package/build/src/elements/amf/authorization/AmfBasic.d.ts +3 -2
  214. package/build/src/elements/amf/authorization/AmfBasic.d.ts.map +1 -1
  215. package/build/src/elements/amf/authorization/AmfBasic.js +1 -1
  216. package/build/src/elements/amf/authorization/AmfBasic.js.map +1 -1
  217. package/build/src/elements/amf/authorization/AmfBearer.d.ts +3 -2
  218. package/build/src/elements/amf/authorization/AmfBearer.d.ts.map +1 -1
  219. package/build/src/elements/amf/authorization/AmfBearer.js +1 -1
  220. package/build/src/elements/amf/authorization/AmfBearer.js.map +1 -1
  221. package/build/src/elements/amf/authorization/AmfOauth2.d.ts +22 -18
  222. package/build/src/elements/amf/authorization/AmfOauth2.d.ts.map +1 -1
  223. package/build/src/elements/amf/authorization/AmfOauth2.js +2 -1
  224. package/build/src/elements/amf/authorization/AmfOauth2.js.map +1 -1
  225. package/build/src/elements/amf/authorization/AmfOidc.d.ts +3 -2
  226. package/build/src/elements/amf/authorization/AmfOidc.d.ts.map +1 -1
  227. package/build/src/elements/amf/authorization/AmfOidc.js +1 -1
  228. package/build/src/elements/amf/authorization/AmfOidc.js.map +1 -1
  229. package/build/src/elements/amf/authorization/AmfPassThrough.d.ts +7 -4
  230. package/build/src/elements/amf/authorization/AmfPassThrough.d.ts.map +1 -1
  231. package/build/src/elements/amf/authorization/AmfPassThrough.js +2 -1
  232. package/build/src/elements/amf/authorization/AmfPassThrough.js.map +1 -1
  233. package/build/src/elements/amf/authorization/AmfRamlCustom.d.ts +7 -4
  234. package/build/src/elements/amf/authorization/AmfRamlCustom.d.ts.map +1 -1
  235. package/build/src/elements/amf/authorization/AmfRamlCustom.js +2 -1
  236. package/build/src/elements/amf/authorization/AmfRamlCustom.js.map +1 -1
  237. package/build/src/elements/authorization/OAuth2Authorize.d.ts +1 -1
  238. package/build/src/elements/authorization/OAuth2Authorize.d.ts.map +1 -1
  239. package/build/src/elements/authorization/OAuth2Authorize.js +2 -1
  240. package/build/src/elements/authorization/OAuth2Authorize.js.map +1 -1
  241. package/build/src/elements/authorization/OidcAuthorize.d.ts +1 -1
  242. package/build/src/elements/authorization/OidcAuthorize.d.ts.map +1 -1
  243. package/build/src/elements/authorization/OidcAuthorize.js +2 -1
  244. package/build/src/elements/authorization/OidcAuthorize.js.map +1 -1
  245. package/build/src/elements/authorization/ui/ApiKeyAuthorization.d.ts +1 -1
  246. package/build/src/elements/authorization/ui/ApiKeyAuthorization.d.ts.map +1 -1
  247. package/build/src/elements/authorization/ui/ApiKeyAuthorization.js.map +1 -1
  248. package/build/src/elements/authorization/ui/Authorization.d.ts +1 -1
  249. package/build/src/elements/authorization/ui/Authorization.d.ts.map +1 -1
  250. package/build/src/elements/authorization/ui/Authorization.js.map +1 -1
  251. package/build/src/elements/authorization/ui/BasicAuthorization.d.ts +1 -1
  252. package/build/src/elements/authorization/ui/BasicAuthorization.d.ts.map +1 -1
  253. package/build/src/elements/authorization/ui/BasicAuthorization.js.map +1 -1
  254. package/build/src/elements/authorization/ui/BearerAuthorization.d.ts +1 -1
  255. package/build/src/elements/authorization/ui/BearerAuthorization.d.ts.map +1 -1
  256. package/build/src/elements/authorization/ui/BearerAuthorization.js.map +1 -1
  257. package/build/src/elements/authorization/ui/CcAuthorization.d.ts +3 -1
  258. package/build/src/elements/authorization/ui/CcAuthorization.d.ts.map +1 -1
  259. package/build/src/elements/authorization/ui/CcAuthorization.js +2 -1
  260. package/build/src/elements/authorization/ui/CcAuthorization.js.map +1 -1
  261. package/build/src/elements/authorization/ui/NtlmAuthorization.d.ts +1 -1
  262. package/build/src/elements/authorization/ui/NtlmAuthorization.d.ts.map +1 -1
  263. package/build/src/elements/authorization/ui/NtlmAuthorization.js.map +1 -1
  264. package/build/src/elements/authorization/ui/OAuth2Authorization.d.ts +2 -1
  265. package/build/src/elements/authorization/ui/OAuth2Authorization.d.ts.map +1 -1
  266. package/build/src/elements/authorization/ui/OAuth2Authorization.js +3 -2
  267. package/build/src/elements/authorization/ui/OAuth2Authorization.js.map +1 -1
  268. package/build/src/elements/authorization/ui/OidcAuthorization.d.ts +2 -1
  269. package/build/src/elements/authorization/ui/OidcAuthorization.d.ts.map +1 -1
  270. package/build/src/elements/authorization/ui/OidcAuthorization.js +4 -2
  271. package/build/src/elements/authorization/ui/OidcAuthorization.js.map +1 -1
  272. package/build/src/elements/code/HttpSnippets.d.ts +1 -1
  273. package/build/src/elements/code/HttpSnippets.d.ts.map +1 -1
  274. package/build/src/elements/code/HttpSnippets.js.map +1 -1
  275. package/build/src/elements/data-table/{internals/DataTable.d.ts → DataTable.d.ts} +1 -1
  276. package/build/src/elements/data-table/DataTable.d.ts.map +1 -0
  277. package/build/src/elements/data-table/{internals/DataTable.js → DataTable.js} +1 -1
  278. package/build/src/elements/data-table/DataTable.js.map +1 -0
  279. package/build/src/elements/data-table/DataTable.styles.d.ts.map +1 -0
  280. package/build/src/elements/data-table/DataTable.styles.js.map +1 -0
  281. package/build/src/elements/dialog/internals/DeleteCookieAction.element.d.ts +1 -1
  282. package/build/src/elements/dialog/internals/DeleteCookieAction.element.d.ts.map +1 -1
  283. package/build/src/elements/dialog/internals/DeleteCookieAction.element.js +1 -1
  284. package/build/src/elements/dialog/internals/DeleteCookieAction.element.js.map +1 -1
  285. package/build/src/elements/dialog/internals/SetCookieAction.element.d.ts +1 -1
  286. package/build/src/elements/dialog/internals/SetCookieAction.element.d.ts.map +1 -1
  287. package/build/src/elements/dialog/internals/SetCookieAction.element.js +1 -1
  288. package/build/src/elements/dialog/internals/SetCookieAction.element.js.map +1 -1
  289. package/build/src/elements/environment/EnvironmentEditor.d.ts +5 -1
  290. package/build/src/elements/environment/EnvironmentEditor.d.ts.map +1 -1
  291. package/build/src/elements/environment/EnvironmentEditor.js +3 -1
  292. package/build/src/elements/environment/EnvironmentEditor.js.map +1 -1
  293. package/build/src/elements/environment/ServerEditor.d.ts +2 -1
  294. package/build/src/elements/environment/ServerEditor.d.ts.map +1 -1
  295. package/build/src/elements/environment/ServerEditor.js +1 -1
  296. package/build/src/elements/environment/ServerEditor.js.map +1 -1
  297. package/build/src/elements/environment/VariablesEditor.d.ts +1 -1
  298. package/build/src/elements/environment/VariablesEditor.d.ts.map +1 -1
  299. package/build/src/elements/environment/VariablesEditor.js +1 -1
  300. package/build/src/elements/environment/VariablesEditor.js.map +1 -1
  301. package/build/src/elements/file-system/internals/Breadcrumbs.d.ts +2 -2
  302. package/build/src/elements/file-system/internals/Breadcrumbs.d.ts.map +1 -1
  303. package/build/src/elements/file-system/internals/Breadcrumbs.js +1 -1
  304. package/build/src/elements/file-system/internals/Breadcrumbs.js.map +1 -1
  305. package/build/src/elements/har/HarViewer.js +1 -1
  306. package/build/src/elements/har/HarViewer.js.map +1 -1
  307. package/build/src/elements/http/BodyEditor.d.ts +3 -1
  308. package/build/src/elements/http/BodyEditor.d.ts.map +1 -1
  309. package/build/src/elements/http/BodyEditor.js +1 -1
  310. package/build/src/elements/http/BodyEditor.js.map +1 -1
  311. package/build/src/elements/http/BodyMultipartEditor.d.ts +1 -1
  312. package/build/src/elements/http/BodyMultipartEditor.d.ts.map +1 -1
  313. package/build/src/elements/http/BodyMultipartEditor.js +3 -2
  314. package/build/src/elements/http/BodyMultipartEditor.js.map +1 -1
  315. package/build/src/elements/http/BodyUrlEncodedEditor.d.ts +1 -1
  316. package/build/src/elements/http/BodyUrlEncodedEditor.d.ts.map +1 -1
  317. package/build/src/elements/http/BodyUrlEncodedEditor.js +1 -1
  318. package/build/src/elements/http/BodyUrlEncodedEditor.js.map +1 -1
  319. package/build/src/elements/http/CertificateAdd.element.d.ts +1 -1
  320. package/build/src/elements/http/CertificateAdd.element.d.ts.map +1 -1
  321. package/build/src/elements/http/CertificateAdd.element.js +2 -1
  322. package/build/src/elements/http/CertificateAdd.element.js.map +1 -1
  323. package/build/src/elements/http/HeadersForm.d.ts +2 -1
  324. package/build/src/elements/http/HeadersForm.d.ts.map +1 -1
  325. package/build/src/elements/http/HeadersForm.js +6 -3
  326. package/build/src/elements/http/HeadersForm.js.map +1 -1
  327. package/build/src/elements/http/HttpAssertions.element.d.ts +2 -1
  328. package/build/src/elements/http/HttpAssertions.element.d.ts.map +1 -1
  329. package/build/src/elements/http/HttpAssertions.element.js.map +1 -1
  330. package/build/src/elements/http/HttpFlows.element.d.ts +2 -1
  331. package/build/src/elements/http/HttpFlows.element.d.ts.map +1 -1
  332. package/build/src/elements/http/HttpFlows.element.js.map +1 -1
  333. package/build/src/elements/http/HttpFlowsUi.d.ts +5 -1
  334. package/build/src/elements/http/HttpFlowsUi.d.ts.map +1 -1
  335. package/build/src/elements/http/HttpFlowsUi.js +5 -1
  336. package/build/src/elements/http/HttpFlowsUi.js.map +1 -1
  337. package/build/src/elements/http/LogBody.d.ts +1 -1
  338. package/build/src/elements/http/LogBody.d.ts.map +1 -1
  339. package/build/src/elements/http/LogBody.js +1 -1
  340. package/build/src/elements/http/LogBody.js.map +1 -1
  341. package/build/src/elements/http/LogHeaders.d.ts +5 -1
  342. package/build/src/elements/http/LogHeaders.d.ts.map +1 -1
  343. package/build/src/elements/http/LogHeaders.js +3 -1
  344. package/build/src/elements/http/LogHeaders.js.map +1 -1
  345. package/build/src/elements/http/LogTimings.d.ts +1 -1
  346. package/build/src/elements/http/LogTimings.d.ts.map +1 -1
  347. package/build/src/elements/http/LogTimings.js.map +1 -1
  348. package/build/src/elements/http/RequestConfigElement.d.ts +1 -1
  349. package/build/src/elements/http/RequestConfigElement.d.ts.map +1 -1
  350. package/build/src/elements/http/RequestConfigElement.js +1 -1
  351. package/build/src/elements/http/RequestConfigElement.js.map +1 -1
  352. package/build/src/elements/http/RequestEditor.d.ts +9 -1
  353. package/build/src/elements/http/RequestEditor.d.ts.map +1 -1
  354. package/build/src/elements/http/RequestEditor.js +6 -1
  355. package/build/src/elements/http/RequestEditor.js.map +1 -1
  356. package/build/src/elements/http/RequestLog.d.ts +6 -1
  357. package/build/src/elements/http/RequestLog.d.ts.map +1 -1
  358. package/build/src/elements/http/RequestLog.js +3 -1
  359. package/build/src/elements/http/RequestLog.js.map +1 -1
  360. package/build/src/elements/http/UrlEncodeUtils.d.ts +1 -1
  361. package/build/src/elements/http/UrlEncodeUtils.d.ts.map +1 -1
  362. package/build/src/elements/http/UrlEncodeUtils.js +1 -1
  363. package/build/src/elements/http/UrlEncodeUtils.js.map +1 -1
  364. package/build/src/elements/http/UrlInput.d.ts +1 -1
  365. package/build/src/elements/http/UrlInput.d.ts.map +1 -1
  366. package/build/src/elements/http/UrlInput.js.map +1 -1
  367. package/build/src/elements/http/UrlParamsForm.d.ts +1 -1
  368. package/build/src/elements/http/UrlParamsForm.d.ts.map +1 -1
  369. package/build/src/elements/http/UrlParamsForm.js +2 -1
  370. package/build/src/elements/http/UrlParamsForm.js.map +1 -1
  371. package/build/src/elements/layout/SplitPanel.js +3 -3
  372. package/build/src/elements/layout/SplitPanel.js.map +1 -1
  373. package/build/src/elements/navigation/internals/AppNavigation.styles.d.ts.map +1 -1
  374. package/build/src/elements/navigation/internals/AppNavigation.styles.js +1 -0
  375. package/build/src/elements/navigation/internals/AppNavigation.styles.js.map +1 -1
  376. package/build/src/elements/navigation/internals/AppNavigationElement.d.ts.map +1 -1
  377. package/build/src/elements/navigation/internals/AppNavigationElement.js +2 -7
  378. package/build/src/elements/navigation/internals/AppNavigationElement.js.map +1 -1
  379. package/build/src/elements/project/HttpHistoryChart.d.ts +1 -1
  380. package/build/src/elements/project/HttpHistoryChart.d.ts.map +1 -1
  381. package/build/src/elements/project/HttpHistoryChart.js +1 -1
  382. package/build/src/elements/project/HttpHistoryChart.js.map +1 -1
  383. package/build/src/elements/project/HttpProjectRequest.d.ts +17 -3
  384. package/build/src/elements/project/HttpProjectRequest.d.ts.map +1 -1
  385. package/build/src/elements/project/HttpProjectRequest.js +6 -1
  386. package/build/src/elements/project/HttpProjectRequest.js.map +1 -1
  387. package/build/src/elements/project/HttpProjectRequestHistory.d.ts +2 -1
  388. package/build/src/elements/project/HttpProjectRequestHistory.d.ts.map +1 -1
  389. package/build/src/elements/project/HttpProjectRequestHistory.js +1 -1
  390. package/build/src/elements/project/HttpProjectRequestHistory.js.map +1 -1
  391. package/build/src/elements/project/ProjectNavigation.d.ts +4 -1
  392. package/build/src/elements/project/ProjectNavigation.d.ts.map +1 -1
  393. package/build/src/elements/project/ProjectNavigation.js +3 -1
  394. package/build/src/elements/project/ProjectNavigation.js.map +1 -1
  395. package/build/src/elements/project/ProjectRunReport.d.ts +2 -1
  396. package/build/src/elements/project/ProjectRunReport.d.ts.map +1 -1
  397. package/build/src/elements/project/ProjectRunReport.js +1 -1
  398. package/build/src/elements/project/ProjectRunReport.js.map +1 -1
  399. package/build/src/elements/project/ProjectRunner.d.ts +5 -1
  400. package/build/src/elements/project/ProjectRunner.d.ts.map +1 -1
  401. package/build/src/elements/project/ProjectRunner.js +2 -1
  402. package/build/src/elements/project/ProjectRunner.js.map +1 -1
  403. package/build/src/elements/project/ProjectRunnerNavigationElement.d.ts +3 -1
  404. package/build/src/elements/project/ProjectRunnerNavigationElement.d.ts.map +1 -1
  405. package/build/src/elements/project/ProjectRunnerNavigationElement.js +1 -1
  406. package/build/src/elements/project/ProjectRunnerNavigationElement.js.map +1 -1
  407. package/build/src/elements/user/internals/UserAvatar.d.ts +1 -1
  408. package/build/src/elements/user/internals/UserAvatar.d.ts.map +1 -1
  409. package/build/src/elements/user/internals/UserAvatar.js.map +1 -1
  410. package/build/src/events/BroadcastUiEvents.d.ts +2 -1
  411. package/build/src/events/BroadcastUiEvents.d.ts.map +1 -1
  412. package/build/src/events/BroadcastUiEvents.js.map +1 -1
  413. package/build/src/events/ConfigEvents.d.ts +1 -1
  414. package/build/src/events/ConfigEvents.d.ts.map +1 -1
  415. package/build/src/events/ConfigEvents.js.map +1 -1
  416. package/build/src/events/Events.d.ts +2 -2
  417. package/build/src/events/HttpClientEvents.d.ts +3 -1
  418. package/build/src/events/HttpClientEvents.d.ts.map +1 -1
  419. package/build/src/events/HttpClientEvents.js +1 -1
  420. package/build/src/events/HttpClientEvents.js.map +1 -1
  421. package/build/src/events/HttpProjectEvents.d.ts +2 -1
  422. package/build/src/events/HttpProjectEvents.d.ts.map +1 -1
  423. package/build/src/events/HttpProjectEvents.js +1 -1
  424. package/build/src/events/HttpProjectEvents.js.map +1 -1
  425. package/build/src/events/IntentEvents.d.ts +1 -1
  426. package/build/src/events/IntentEvents.js +1 -1
  427. package/build/src/events/IntentEvents.js.map +1 -1
  428. package/build/src/events/StoreEvents.d.ts +9 -4
  429. package/build/src/events/StoreEvents.d.ts.map +1 -1
  430. package/build/src/events/StoreEvents.js.map +1 -1
  431. package/build/src/events/amf/ApiEvents.d.ts +2 -2
  432. package/build/src/events/amf/ApiEvents.d.ts.map +1 -1
  433. package/build/src/events/amf/ApiEvents.js.map +1 -1
  434. package/build/src/events/amf/DocumentationEvents.d.ts +3 -3
  435. package/build/src/events/amf/DocumentationEvents.d.ts.map +1 -1
  436. package/build/src/events/amf/DocumentationEvents.js.map +1 -1
  437. package/build/src/events/amf/EndpointEvents.d.ts +4 -4
  438. package/build/src/events/amf/EndpointEvents.d.ts.map +1 -1
  439. package/build/src/events/amf/EndpointEvents.js.map +1 -1
  440. package/build/src/events/amf/Events.d.ts +17 -17
  441. package/build/src/events/amf/OperationEvents.d.ts +3 -3
  442. package/build/src/events/amf/OperationEvents.d.ts.map +1 -1
  443. package/build/src/events/amf/OperationEvents.js.map +1 -1
  444. package/build/src/events/amf/PayloadEvents.d.ts +2 -2
  445. package/build/src/events/amf/PayloadEvents.d.ts.map +1 -1
  446. package/build/src/events/amf/PayloadEvents.js.map +1 -1
  447. package/build/src/events/amf/RequestEvents.d.ts +2 -2
  448. package/build/src/events/amf/RequestEvents.d.ts.map +1 -1
  449. package/build/src/events/amf/RequestEvents.js.map +1 -1
  450. package/build/src/events/amf/ResponseEvents.d.ts +2 -2
  451. package/build/src/events/amf/ResponseEvents.d.ts.map +1 -1
  452. package/build/src/events/amf/ResponseEvents.js.map +1 -1
  453. package/build/src/events/amf/SecurityEvents.d.ts +4 -4
  454. package/build/src/events/amf/SecurityEvents.d.ts.map +1 -1
  455. package/build/src/events/amf/SecurityEvents.js.map +1 -1
  456. package/build/src/events/amf/ServerEvents.d.ts +4 -3
  457. package/build/src/events/amf/ServerEvents.d.ts.map +1 -1
  458. package/build/src/events/amf/ServerEvents.js.map +1 -1
  459. package/build/src/events/amf/TypeEvents.d.ts +4 -3
  460. package/build/src/events/amf/TypeEvents.d.ts.map +1 -1
  461. package/build/src/events/amf/TypeEvents.js.map +1 -1
  462. package/build/src/index.d.ts +1 -1
  463. package/build/src/index.d.ts.map +1 -1
  464. package/build/src/index.js +1 -1
  465. package/build/src/index.js.map +1 -1
  466. package/build/src/lib/UserCache.d.ts +1 -1
  467. package/build/src/lib/UserCache.d.ts.map +1 -1
  468. package/build/src/lib/UserCache.js.map +1 -1
  469. package/build/src/lib/http/Har.d.ts +1 -1
  470. package/build/src/lib/http/Har.d.ts.map +1 -1
  471. package/build/src/lib/http/Har.js.map +1 -1
  472. package/build/src/lib/http/HeadersArray.js +1 -1
  473. package/build/src/lib/http/HeadersArray.js.map +1 -1
  474. package/build/src/lib/http/Payload.d.ts +1 -1
  475. package/build/src/lib/http/Payload.d.ts.map +1 -1
  476. package/build/src/lib/http/Payload.js.map +1 -1
  477. package/build/src/lib/http/Url.d.ts +1 -1
  478. package/build/src/lib/http/Url.d.ts.map +1 -1
  479. package/build/src/lib/http/Url.js.map +1 -1
  480. package/build/src/md/chip/internals/Chip.d.ts.map +1 -1
  481. package/build/src/md/chip/internals/Chip.js +3 -3
  482. package/build/src/md/chip/internals/Chip.js.map +1 -1
  483. package/build/src/md/dialog/internals/Dialog.styles.d.ts.map +1 -1
  484. package/build/src/md/dialog/internals/Dialog.styles.js +5 -0
  485. package/build/src/md/dialog/internals/Dialog.styles.js.map +1 -1
  486. package/build/src/md/dropdown-list/internals/UiDropdownList.d.ts.map +1 -1
  487. package/build/src/md/dropdown-list/internals/UiDropdownList.js +3 -3
  488. package/build/src/md/dropdown-list/internals/UiDropdownList.js.map +1 -1
  489. package/build/src/md/listbox/internals/Listbox.js +2 -2
  490. package/build/src/md/listbox/internals/Listbox.js.map +1 -1
  491. package/build/src/md/snackbar/internals/Snackbar.d.ts.map +1 -1
  492. package/build/src/md/snackbar/internals/Snackbar.js +3 -5
  493. package/build/src/md/snackbar/internals/Snackbar.js.map +1 -1
  494. package/build/src/mixins/FileDropMixin.d.ts +1 -0
  495. package/build/src/mixins/FileDropMixin.d.ts.map +1 -1
  496. package/build/src/mixins/FileDropMixin.js +24 -12
  497. package/build/src/mixins/FileDropMixin.js.map +1 -1
  498. package/build/src/{core → reactive}/LiveData.d.ts +1 -1
  499. package/build/src/reactive/LiveData.d.ts.map +1 -0
  500. package/build/src/{core → reactive}/LiveData.js +1 -1
  501. package/build/src/reactive/LiveData.js.map +1 -0
  502. package/build/src/reactive/reactive.d.ts.map +1 -0
  503. package/build/src/reactive/reactive.js.map +1 -0
  504. package/build/src/visualization/plugin/positioning/DataModelLayout.d.ts +2 -2
  505. package/build/src/visualization/plugin/positioning/DataModelLayout.d.ts.map +1 -1
  506. package/build/src/visualization/plugin/positioning/DataModelLayout.js +1 -2
  507. package/build/src/visualization/plugin/positioning/DataModelLayout.js.map +1 -1
  508. package/build/src/visualization/plugin/positioning/WorkspaceLayout.d.ts +2 -2
  509. package/build/src/visualization/plugin/positioning/WorkspaceLayout.d.ts.map +1 -1
  510. package/build/src/visualization/plugin/positioning/WorkspaceLayout.js +1 -1
  511. package/build/src/visualization/plugin/positioning/WorkspaceLayout.js.map +1 -1
  512. package/demo/amf/api-annotation.ts +4 -3
  513. package/demo/amf/api-channel.ts +1 -1
  514. package/demo/amf/api-console.ts +21 -22
  515. package/demo/amf/api-documentation-document.ts +1 -1
  516. package/demo/amf/api-documentation.ts +3 -2
  517. package/demo/amf/api-navigation.ts +5 -3
  518. package/demo/amf/api-operation.ts +3 -2
  519. package/demo/amf/api-payload.ts +13 -11
  520. package/demo/amf/api-request.ts +4 -3
  521. package/demo/amf/api-resource.ts +3 -2
  522. package/demo/amf/api-schema-documentation.ts +13 -10
  523. package/demo/amf/api-security-documentation.ts +3 -2
  524. package/demo/amf/api-server-picker.ts +4 -2
  525. package/demo/amf/api-summary.ts +1 -1
  526. package/demo/amf/bare-components.ts +3 -3
  527. package/demo/amf/lib/AmfDemoPage.ts +15 -10
  528. package/demo/amf/oauth-authorize.ts +3 -3
  529. package/demo/amf/request-editor.ts +3 -3
  530. package/demo/elements/authorization/api-key.ts +1 -1
  531. package/demo/elements/authorization/basic.ts +1 -1
  532. package/demo/elements/authorization/bearer.ts +1 -1
  533. package/demo/elements/authorization/ntlm.ts +1 -1
  534. package/demo/elements/authorization/oauth-authorize.ts +3 -3
  535. package/demo/elements/authorization/oauth2.ts +2 -1
  536. package/demo/elements/authorization/oidc.ts +2 -1
  537. package/demo/elements/environment/environment-editor.ts +1 -1
  538. package/demo/elements/environment/server-editor.ts +1 -1
  539. package/demo/elements/environment/variables-editor.ts +1 -1
  540. package/demo/elements/har/har-viewer.ts +1 -1
  541. package/demo/elements/highlight/marked-highlight.ts +1 -1
  542. package/demo/elements/http/body-editor.ts +1 -1
  543. package/demo/elements/http/headers.ts +1 -1
  544. package/demo/elements/http/http-assertions.ts +2 -2
  545. package/demo/elements/http/http-flows.ts +2 -2
  546. package/demo/elements/http/request-editor.ts +4 -10
  547. package/demo/elements/http/request-log.ts +4 -1
  548. package/demo/elements/http/url-editing.ts +1 -1
  549. package/demo/elements/md/list/list.ts +1 -1
  550. package/demo/elements/project/project-run-report.ts +3 -7
  551. package/demo/elements/project/request-editor.ts +8 -11
  552. package/demo/index.html +0 -3
  553. package/demo/layout/index.ts +2 -2
  554. package/demo/lib/DemoBindings.ts +1 -1
  555. package/demo/lib/amf/AmfPartialGraphStore.ts +39 -35
  556. package/demo/lib/amf/AmfPartialModel.ts +52 -52
  557. package/dev/amf-server/AmfService.js +2 -2
  558. package/license.md +15 -0
  559. package/package.json +48 -42
  560. package/src/amf/lib/AmfInputParser.ts +19 -11
  561. package/src/amf/lib/AmfParameters.ts +42 -45
  562. package/src/amf/lib/AmfSecurity.ts +3 -3
  563. package/src/amf/lib/Oauth2RamlCustomData.ts +44 -40
  564. package/src/amf/lib/PayloadUtils.ts +8 -10
  565. package/src/amf/lib/QueryParameterProcessor.ts +24 -23
  566. package/src/amf/lib/Utils.ts +23 -13
  567. package/src/amf/store/AmfGraphStore.ts +4 -3
  568. package/src/amf/store/AmfStore.ts +32 -24
  569. package/src/amf/store/InMemAmfGraphStore.ts +40 -36
  570. package/src/amf/types.ts +16 -12
  571. package/src/bindings/base/ConfigurationBindings.ts +1 -1
  572. package/src/bindings/base/IoThread.ts +1 -1
  573. package/src/bindings/base/PlatformBindings.ts +1 -1
  574. package/src/bindings/web/WebConfigurationBindings.ts +1 -1
  575. package/src/code-snippets/Bash/CurlSnippet.ts +2 -1
  576. package/src/code-snippets/C/CcurlSnippet.ts +2 -1
  577. package/src/code-snippets/CodeSnippet.ts +3 -1
  578. package/src/code-snippets/Dart/DartSnippet.ts +2 -1
  579. package/src/code-snippets/HTTP/RawSnippet.ts +2 -1
  580. package/src/code-snippets/Java/PlatformSnippet.ts +2 -1
  581. package/src/code-snippets/Java/SpringSnippet.ts +2 -1
  582. package/src/code-snippets/JavaScript/AsyncFetchSnippet.ts +2 -1
  583. package/src/code-snippets/JavaScript/AxiosSnippet.ts +2 -1
  584. package/src/code-snippets/JavaScript/FetchSnippet.ts +2 -1
  585. package/src/code-snippets/JavaScript/NodeSnippet.ts +2 -1
  586. package/src/code-snippets/JavaScript/XhrSnippet.ts +2 -1
  587. package/src/code-snippets/JavaScript/jQuerySnippet.ts +2 -1
  588. package/src/code-snippets/Python/Python27Snippet.ts +2 -1
  589. package/src/code-snippets/Python/Python31Snippet.ts +2 -1
  590. package/src/code-snippets/Python/RequestsSnippet.ts +2 -1
  591. package/src/controllers/LiveDataController.ts +1 -1
  592. package/src/core/Activity.ts +38 -1
  593. package/src/core/ActivityManager.ts +24 -1
  594. package/src/core/Fragment.ts +12 -0
  595. package/src/core/FragmentManager.ts +1 -1
  596. package/src/core/ModalActivity.ts +1 -1
  597. package/src/directives/live.ts +1 -1
  598. package/src/elements/amf/ApiAnnotationDocument.element.ts +9 -7
  599. package/src/elements/amf/ApiAuthorizationEditor.element.ts +21 -19
  600. package/src/elements/amf/ApiChannelDocument.element.ts +2 -5
  601. package/src/elements/amf/ApiDocumentation.element.ts +4 -3
  602. package/src/elements/amf/ApiDocumentationBase.ts +7 -4
  603. package/src/elements/amf/ApiDocumentationDocument.element.ts +4 -4
  604. package/src/elements/amf/ApiNavigation.element.ts +18 -12
  605. package/src/elements/amf/ApiOperationDocument.element.ts +45 -39
  606. package/src/elements/amf/ApiParameterDocument.element.ts +5 -4
  607. package/src/elements/amf/ApiParametrizedSecurityScheme.element.ts +15 -10
  608. package/src/elements/amf/ApiPayloadDocument.element.ts +6 -6
  609. package/src/elements/amf/ApiRequest.element.ts +2 -1
  610. package/src/elements/amf/ApiRequestDocument.element.ts +22 -19
  611. package/src/elements/amf/ApiRequestEditor.element.ts +34 -32
  612. package/src/elements/amf/ApiResourceDocument.element.ts +18 -17
  613. package/src/elements/amf/ApiResponseDocument.element.ts +14 -9
  614. package/src/elements/amf/ApiSchemaDocument.element.ts +55 -41
  615. package/src/elements/amf/ApiSecurityDocument.element.ts +35 -25
  616. package/src/elements/amf/ApiSecurityRequirementDocument.element.ts +4 -4
  617. package/src/elements/amf/ApiServerPicker.element.ts +6 -5
  618. package/src/elements/amf/ApiSummary.element.ts +21 -17
  619. package/src/elements/amf/SchemaCommonTemplates.ts +28 -17
  620. package/src/elements/amf/authorization/AmfApiKey.ts +15 -11
  621. package/src/elements/amf/authorization/AmfBasic.ts +6 -6
  622. package/src/elements/amf/authorization/AmfBearer.ts +6 -6
  623. package/src/elements/amf/authorization/AmfOauth2.ts +57 -47
  624. package/src/elements/amf/authorization/AmfOidc.ts +10 -7
  625. package/src/elements/amf/authorization/AmfPassThrough.ts +12 -12
  626. package/src/elements/amf/authorization/AmfRamlCustom.ts +14 -14
  627. package/src/elements/authorization/OAuth2Authorize.ts +5 -8
  628. package/src/elements/authorization/OidcAuthorize.ts +5 -9
  629. package/src/elements/authorization/ui/ApiKeyAuthorization.ts +1 -1
  630. package/src/elements/authorization/ui/Authorization.ts +1 -1
  631. package/src/elements/authorization/ui/BasicAuthorization.ts +1 -1
  632. package/src/elements/authorization/ui/BearerAuthorization.ts +1 -1
  633. package/src/elements/authorization/ui/CcAuthorization.ts +5 -8
  634. package/src/elements/authorization/ui/NtlmAuthorization.ts +1 -1
  635. package/src/elements/authorization/ui/OAuth2Authorization.ts +9 -10
  636. package/src/elements/authorization/ui/OidcAuthorization.ts +7 -7
  637. package/src/elements/code/HttpSnippets.ts +1 -1
  638. package/src/elements/data-table/{internals/DataTable.ts → DataTable.ts} +2 -2
  639. package/src/elements/dialog/internals/DeleteCookieAction.element.ts +4 -1
  640. package/src/elements/dialog/internals/SetCookieAction.element.ts +2 -1
  641. package/src/elements/environment/EnvironmentEditor.ts +5 -10
  642. package/src/elements/environment/ServerEditor.ts +2 -1
  643. package/src/elements/environment/VariablesEditor.ts +1 -1
  644. package/src/elements/file-system/internals/Breadcrumbs.ts +3 -2
  645. package/src/elements/har/HarViewer.ts +1 -1
  646. package/src/elements/http/BodyEditor.ts +5 -7
  647. package/src/elements/http/BodyMultipartEditor.ts +7 -7
  648. package/src/elements/http/BodyUrlEncodedEditor.ts +1 -1
  649. package/src/elements/http/CertificateAdd.element.ts +2 -1
  650. package/src/elements/http/HeadersForm.ts +6 -3
  651. package/src/elements/http/HttpAssertions.element.ts +2 -1
  652. package/src/elements/http/HttpFlows.element.ts +2 -1
  653. package/src/elements/http/HttpFlowsUi.ts +8 -8
  654. package/src/elements/http/LogBody.ts +6 -1
  655. package/src/elements/http/LogHeaders.ts +6 -9
  656. package/src/elements/http/LogTimings.ts +1 -1
  657. package/src/elements/http/RequestConfigElement.ts +1 -1
  658. package/src/elements/http/RequestEditor.ts +11 -18
  659. package/src/elements/http/RequestLog.ts +8 -11
  660. package/src/elements/http/UrlEncodeUtils.ts +1 -1
  661. package/src/elements/http/UrlInput.ts +1 -1
  662. package/src/elements/http/UrlParamsForm.ts +2 -1
  663. package/src/elements/layout/SplitPanel.ts +3 -3
  664. package/src/elements/navigation/internals/AppNavigation.styles.ts +1 -0
  665. package/src/elements/navigation/internals/AppNavigationElement.ts +2 -7
  666. package/src/elements/project/HttpHistoryChart.ts +3 -1
  667. package/src/elements/project/HttpProjectRequest.ts +21 -28
  668. package/src/elements/project/HttpProjectRequestHistory.ts +5 -8
  669. package/src/elements/project/ProjectNavigation.ts +5 -9
  670. package/src/elements/project/ProjectRunReport.ts +5 -7
  671. package/src/elements/project/ProjectRunner.ts +9 -12
  672. package/src/elements/project/ProjectRunnerNavigationElement.ts +3 -1
  673. package/src/elements/user/internals/UserAvatar.ts +1 -1
  674. package/src/events/BroadcastUiEvents.ts +2 -6
  675. package/src/events/ConfigEvents.ts +1 -1
  676. package/src/events/HttpClientEvents.ts +3 -7
  677. package/src/events/HttpProjectEvents.ts +5 -5
  678. package/src/events/IntentEvents.ts +1 -1
  679. package/src/events/StoreEvents.ts +10 -16
  680. package/src/events/amf/ApiEvents.ts +3 -3
  681. package/src/events/amf/DocumentationEvents.ts +5 -5
  682. package/src/events/amf/EndpointEvents.ts +7 -7
  683. package/src/events/amf/OperationEvents.ts +5 -5
  684. package/src/events/amf/PayloadEvents.ts +3 -3
  685. package/src/events/amf/RequestEvents.ts +3 -3
  686. package/src/events/amf/ResponseEvents.ts +3 -3
  687. package/src/events/amf/SecurityEvents.ts +11 -7
  688. package/src/events/amf/ServerEvents.ts +5 -4
  689. package/src/events/amf/TypeEvents.ts +6 -5
  690. package/src/index.ts +1 -1
  691. package/src/lib/UserCache.ts +1 -1
  692. package/src/lib/http/Har.ts +1 -1
  693. package/src/lib/http/HeadersArray.ts +1 -1
  694. package/src/lib/http/Payload.ts +1 -1
  695. package/src/lib/http/Url.ts +1 -1
  696. package/src/md/chip/internals/Chip.ts +3 -3
  697. package/src/md/dialog/internals/Dialog.styles.ts +5 -0
  698. package/src/md/dropdown-list/internals/UiDropdownList.ts +3 -3
  699. package/src/md/listbox/internals/Listbox.ts +2 -2
  700. package/src/md/snackbar/internals/Snackbar.ts +3 -5
  701. package/src/mixins/FileDropMixin.ts +28 -11
  702. package/src/{core → reactive}/LiveData.ts +1 -1
  703. package/src/visualization/plugin/positioning/DataModelLayout.ts +3 -2
  704. package/src/visualization/plugin/positioning/WorkspaceLayout.ts +3 -3
  705. package/test/core/live_data.spec.ts +1 -1
  706. package/test/elements/data-table/DataTable.browser.test.ts +2 -2
  707. package/test/elements/http/CertificateAdd.test.ts +5 -1
  708. package/test/elements/layout/SplitPanel.test.ts +1 -1
  709. package/web-test-runner.config.js +1 -1
  710. package/build/src/apps/activities/ApiActivity.d.ts +0 -21
  711. package/build/src/apps/activities/ApiActivity.d.ts.map +0 -1
  712. package/build/src/apps/activities/ApiActivity.js +0 -23
  713. package/build/src/apps/activities/ApiActivity.js.map +0 -1
  714. package/build/src/apps/activities/AppStartActivity.d.ts +0 -61
  715. package/build/src/apps/activities/AppStartActivity.d.ts.map +0 -1
  716. package/build/src/apps/activities/AppStartActivity.js +0 -100
  717. package/build/src/apps/activities/AppStartActivity.js.map +0 -1
  718. package/build/src/apps/activities/BrowseDataDomainActivity.d.ts +0 -375
  719. package/build/src/apps/activities/BrowseDataDomainActivity.d.ts.map +0 -1
  720. package/build/src/apps/activities/BrowseDataDomainActivity.js +0 -943
  721. package/build/src/apps/activities/BrowseDataDomainActivity.js.map +0 -1
  722. package/build/src/apps/activities/CreateFolderDialogActivity.d.ts +0 -30
  723. package/build/src/apps/activities/CreateFolderDialogActivity.d.ts.map +0 -1
  724. package/build/src/apps/activities/CreateFolderDialogActivity.js +0 -135
  725. package/build/src/apps/activities/CreateFolderDialogActivity.js.map +0 -1
  726. package/build/src/apps/activities/DeleteDataDomainActivity.d.ts +0 -47
  727. package/build/src/apps/activities/DeleteDataDomainActivity.d.ts.map +0 -1
  728. package/build/src/apps/activities/DeleteDataDomainActivity.js +0 -162
  729. package/build/src/apps/activities/DeleteDataDomainActivity.js.map +0 -1
  730. package/build/src/apps/activities/LoadingActivity.d.ts +0 -26
  731. package/build/src/apps/activities/LoadingActivity.d.ts.map +0 -1
  732. package/build/src/apps/activities/LoadingActivity.js +0 -67
  733. package/build/src/apps/activities/LoadingActivity.js.map +0 -1
  734. package/build/src/apps/activities/LoginActivity.d.ts +0 -26
  735. package/build/src/apps/activities/LoginActivity.d.ts.map +0 -1
  736. package/build/src/apps/activities/LoginActivity.js +0 -186
  737. package/build/src/apps/activities/LoginActivity.js.map +0 -1
  738. package/build/src/apps/activities/OrganizationSelectionActivity.d.ts +0 -35
  739. package/build/src/apps/activities/OrganizationSelectionActivity.d.ts.map +0 -1
  740. package/build/src/apps/activities/OrganizationSelectionActivity.js +0 -107
  741. package/build/src/apps/activities/OrganizationSelectionActivity.js.map +0 -1
  742. package/build/src/apps/activities/OrganizationSetupActivity.d.ts +0 -40
  743. package/build/src/apps/activities/OrganizationSetupActivity.d.ts.map +0 -1
  744. package/build/src/apps/activities/OrganizationSetupActivity.js +0 -171
  745. package/build/src/apps/activities/OrganizationSetupActivity.js.map +0 -1
  746. package/build/src/apps/activities/RenameFileDialogActivity.d.ts +0 -32
  747. package/build/src/apps/activities/RenameFileDialogActivity.d.ts.map +0 -1
  748. package/build/src/apps/activities/RenameFileDialogActivity.js +0 -168
  749. package/build/src/apps/activities/RenameFileDialogActivity.js.map +0 -1
  750. package/build/src/apps/activities/styles/BrowseDataDomain.styles.d.ts +0 -3
  751. package/build/src/apps/activities/styles/BrowseDataDomain.styles.d.ts.map +0 -1
  752. package/build/src/apps/activities/styles/BrowseDataDomain.styles.js +0 -28
  753. package/build/src/apps/activities/styles/BrowseDataDomain.styles.js.map +0 -1
  754. package/build/src/apps/activities/styles/DeleteDataDomain.styles.d.ts +0 -3
  755. package/build/src/apps/activities/styles/DeleteDataDomain.styles.d.ts.map +0 -1
  756. package/build/src/apps/activities/styles/DeleteDataDomain.styles.js +0 -26
  757. package/build/src/apps/activities/styles/DeleteDataDomain.styles.js.map +0 -1
  758. package/build/src/apps/activities/styles/login.d.ts +0 -3
  759. package/build/src/apps/activities/styles/login.d.ts.map +0 -1
  760. package/build/src/apps/activities/styles/login.js +0 -66
  761. package/build/src/apps/activities/styles/login.js.map +0 -1
  762. package/build/src/apps/api_service.d.ts +0 -18
  763. package/build/src/apps/api_service.d.ts.map +0 -1
  764. package/build/src/apps/api_service.js +0 -4
  765. package/build/src/apps/api_service.js.map +0 -1
  766. package/build/src/apps/fragments/loading.d.ts +0 -21
  767. package/build/src/apps/fragments/loading.d.ts.map +0 -1
  768. package/build/src/apps/fragments/loading.js +0 -63
  769. package/build/src/apps/fragments/loading.js.map +0 -1
  770. package/build/src/apps/quick-api/Intents.d.ts +0 -12
  771. package/build/src/apps/quick-api/Intents.d.ts.map +0 -1
  772. package/build/src/apps/quick-api/Intents.js +0 -12
  773. package/build/src/apps/quick-api/Intents.js.map +0 -1
  774. package/build/src/apps/quick-api/QuickApiApp.d.ts +0 -10
  775. package/build/src/apps/quick-api/QuickApiApp.d.ts.map +0 -1
  776. package/build/src/apps/quick-api/QuickApiApp.js +0 -61
  777. package/build/src/apps/quick-api/QuickApiApp.js.map +0 -1
  778. package/build/src/apps/quick-api/Schema.styles.d.ts +0 -3
  779. package/build/src/apps/quick-api/Schema.styles.d.ts.map +0 -1
  780. package/build/src/apps/quick-api/Schema.styles.js +0 -95
  781. package/build/src/apps/quick-api/Schema.styles.js.map +0 -1
  782. package/build/src/apps/quick-api/SchemaEditorApp.d.ts +0 -9
  783. package/build/src/apps/quick-api/SchemaEditorApp.d.ts.map +0 -1
  784. package/build/src/apps/quick-api/SchemaEditorApp.js +0 -60
  785. package/build/src/apps/quick-api/SchemaEditorApp.js.map +0 -1
  786. package/build/src/apps/quick-api/SchemaScreenActivity.d.ts +0 -49
  787. package/build/src/apps/quick-api/SchemaScreenActivity.d.ts.map +0 -1
  788. package/build/src/apps/quick-api/SchemaScreenActivity.js +0 -285
  789. package/build/src/apps/quick-api/SchemaScreenActivity.js.map +0 -1
  790. package/build/src/apps/quick-api/SchemaScreenViewModel.d.ts +0 -43
  791. package/build/src/apps/quick-api/SchemaScreenViewModel.d.ts.map +0 -1
  792. package/build/src/apps/quick-api/SchemaScreenViewModel.js +0 -40
  793. package/build/src/apps/quick-api/SchemaScreenViewModel.js.map +0 -1
  794. package/build/src/apps/quick-api/Start.styles.d.ts +0 -3
  795. package/build/src/apps/quick-api/Start.styles.d.ts.map +0 -1
  796. package/build/src/apps/quick-api/Start.styles.js +0 -125
  797. package/build/src/apps/quick-api/Start.styles.js.map +0 -1
  798. package/build/src/apps/quick-api/StartScreenActivity.d.ts +0 -46
  799. package/build/src/apps/quick-api/StartScreenActivity.d.ts.map +0 -1
  800. package/build/src/apps/quick-api/StartScreenActivity.js +0 -70
  801. package/build/src/apps/quick-api/StartScreenActivity.js.map +0 -1
  802. package/build/src/apps/quick-api/filesystem/Files.styles.d.ts +0 -3
  803. package/build/src/apps/quick-api/filesystem/Files.styles.d.ts.map +0 -1
  804. package/build/src/apps/quick-api/filesystem/Files.styles.js +0 -72
  805. package/build/src/apps/quick-api/filesystem/Files.styles.js.map +0 -1
  806. package/build/src/apps/quick-api/filesystem/FilesLib.d.ts +0 -10
  807. package/build/src/apps/quick-api/filesystem/FilesLib.d.ts.map +0 -1
  808. package/build/src/apps/quick-api/filesystem/FilesLib.js +0 -41
  809. package/build/src/apps/quick-api/filesystem/FilesLib.js.map +0 -1
  810. package/build/src/apps/quick-api/fragments/FilesystemFragment.d.ts +0 -92
  811. package/build/src/apps/quick-api/fragments/FilesystemFragment.d.ts.map +0 -1
  812. package/build/src/apps/quick-api/fragments/FilesystemFragment.js +0 -400
  813. package/build/src/apps/quick-api/fragments/FilesystemFragment.js.map +0 -1
  814. package/build/src/apps/quick-api/fragments/HeaderFragment.d.ts +0 -23
  815. package/build/src/apps/quick-api/fragments/HeaderFragment.d.ts.map +0 -1
  816. package/build/src/apps/quick-api/fragments/HeaderFragment.js +0 -64
  817. package/build/src/apps/quick-api/fragments/HeaderFragment.js.map +0 -1
  818. package/build/src/apps/quick-api/fragments/MainFragment.d.ts +0 -17
  819. package/build/src/apps/quick-api/fragments/MainFragment.d.ts.map +0 -1
  820. package/build/src/apps/quick-api/fragments/MainFragment.js +0 -39
  821. package/build/src/apps/quick-api/fragments/MainFragment.js.map +0 -1
  822. package/build/src/apps/quick-api/fragments/NavigationFragment.d.ts +0 -19
  823. package/build/src/apps/quick-api/fragments/NavigationFragment.d.ts.map +0 -1
  824. package/build/src/apps/quick-api/fragments/NavigationFragment.js +0 -158
  825. package/build/src/apps/quick-api/fragments/NavigationFragment.js.map +0 -1
  826. package/build/src/apps/quick-api/fragments/SchemaEditorEmptyState.fragment.d.ts +0 -9
  827. package/build/src/apps/quick-api/fragments/SchemaEditorEmptyState.fragment.d.ts.map +0 -1
  828. package/build/src/apps/quick-api/fragments/SchemaEditorEmptyState.fragment.js +0 -11
  829. package/build/src/apps/quick-api/fragments/SchemaEditorEmptyState.fragment.js.map +0 -1
  830. package/build/src/apps/quick-api/fragments/SchemaEditorHost.d.ts +0 -56
  831. package/build/src/apps/quick-api/fragments/SchemaEditorHost.d.ts.map +0 -1
  832. package/build/src/apps/quick-api/fragments/SchemaEditorHost.js +0 -241
  833. package/build/src/apps/quick-api/fragments/SchemaEditorHost.js.map +0 -1
  834. package/build/src/apps/quick-api/fragments/SchemaEditorHost.styles.d.ts +0 -3
  835. package/build/src/apps/quick-api/fragments/SchemaEditorHost.styles.d.ts.map +0 -1
  836. package/build/src/apps/quick-api/fragments/SchemaEditorHost.styles.js +0 -22
  837. package/build/src/apps/quick-api/fragments/SchemaEditorHost.styles.js.map +0 -1
  838. package/build/src/apps/quick-api/fragments/SchemaHeaderFragment.d.ts +0 -20
  839. package/build/src/apps/quick-api/fragments/SchemaHeaderFragment.d.ts.map +0 -1
  840. package/build/src/apps/quick-api/fragments/SchemaHeaderFragment.js +0 -106
  841. package/build/src/apps/quick-api/fragments/SchemaHeaderFragment.js.map +0 -1
  842. package/build/src/apps/quick-api/fragments/SchemaNavigation.styles.d.ts +0 -3
  843. package/build/src/apps/quick-api/fragments/SchemaNavigation.styles.d.ts.map +0 -1
  844. package/build/src/apps/quick-api/fragments/SchemaNavigation.styles.js +0 -16
  845. package/build/src/apps/quick-api/fragments/SchemaNavigation.styles.js.map +0 -1
  846. package/build/src/apps/quick-api/fragments/SchemaNavigationFragment.d.ts +0 -45
  847. package/build/src/apps/quick-api/fragments/SchemaNavigationFragment.d.ts.map +0 -1
  848. package/build/src/apps/quick-api/fragments/SchemaNavigationFragment.js +0 -282
  849. package/build/src/apps/quick-api/fragments/SchemaNavigationFragment.js.map +0 -1
  850. package/build/src/apps/quick-api/fragments/TrashFragment.d.ts +0 -40
  851. package/build/src/apps/quick-api/fragments/TrashFragment.d.ts.map +0 -1
  852. package/build/src/apps/quick-api/fragments/TrashFragment.js +0 -179
  853. package/build/src/apps/quick-api/fragments/TrashFragment.js.map +0 -1
  854. package/build/src/apps/quick-api/lib/SchemaContextualMenu.d.ts +0 -6
  855. package/build/src/apps/quick-api/lib/SchemaContextualMenu.d.ts.map +0 -1
  856. package/build/src/apps/quick-api/lib/SchemaContextualMenu.js +0 -61
  857. package/build/src/apps/quick-api/lib/SchemaContextualMenu.js.map +0 -1
  858. package/build/src/apps/quick-api/lib/UiLib.d.ts +0 -8
  859. package/build/src/apps/quick-api/lib/UiLib.d.ts.map +0 -1
  860. package/build/src/apps/quick-api/lib/UiLib.js +0 -16
  861. package/build/src/apps/quick-api/lib/UiLib.js.map +0 -1
  862. package/build/src/apps/services/ConfigurationService.d.ts +0 -12
  863. package/build/src/apps/services/ConfigurationService.d.ts.map +0 -1
  864. package/build/src/apps/services/ConfigurationService.js +0 -23
  865. package/build/src/apps/services/ConfigurationService.js.map +0 -1
  866. package/build/src/apps/services/LoggingService.d.ts +0 -17
  867. package/build/src/apps/services/LoggingService.d.ts.map +0 -1
  868. package/build/src/apps/services/LoggingService.js +0 -37
  869. package/build/src/apps/services/LoggingService.js.map +0 -1
  870. package/build/src/apps/services/OrganizationService.d.ts +0 -54
  871. package/build/src/apps/services/OrganizationService.d.ts.map +0 -1
  872. package/build/src/apps/services/OrganizationService.js +0 -133
  873. package/build/src/apps/services/OrganizationService.js.map +0 -1
  874. package/build/src/apps/services/SdkService.d.ts +0 -17
  875. package/build/src/apps/services/SdkService.d.ts.map +0 -1
  876. package/build/src/apps/services/SdkService.js +0 -36
  877. package/build/src/apps/services/SdkService.js.map +0 -1
  878. package/build/src/apps/services/TransmitService.d.ts +0 -10
  879. package/build/src/apps/services/TransmitService.d.ts.map +0 -1
  880. package/build/src/apps/services/TransmitService.js +0 -17
  881. package/build/src/apps/services/TransmitService.js.map +0 -1
  882. package/build/src/apps/services/UserService.d.ts +0 -23
  883. package/build/src/apps/services/UserService.d.ts.map +0 -1
  884. package/build/src/apps/services/UserService.js +0 -62
  885. package/build/src/apps/services/UserService.js.map +0 -1
  886. package/build/src/apps/transmit_client.d.ts +0 -3
  887. package/build/src/apps/transmit_client.d.ts.map +0 -1
  888. package/build/src/apps/transmit_client.js +0 -5
  889. package/build/src/apps/transmit_client.js.map +0 -1
  890. package/build/src/apps/types.d.ts +0 -11
  891. package/build/src/apps/types.d.ts.map +0 -1
  892. package/build/src/apps/types.js +0 -2
  893. package/build/src/apps/types.js.map +0 -1
  894. package/build/src/boot.d.ts +0 -3
  895. package/build/src/boot.d.ts.map +0 -1
  896. package/build/src/boot.js +0 -17
  897. package/build/src/boot.js.map +0 -1
  898. package/build/src/builders/DialogBuilder.d.ts +0 -131
  899. package/build/src/builders/DialogBuilder.d.ts.map +0 -1
  900. package/build/src/builders/DialogBuilder.js +0 -227
  901. package/build/src/builders/DialogBuilder.js.map +0 -1
  902. package/build/src/core/LiveData.d.ts.map +0 -1
  903. package/build/src/core/LiveData.js.map +0 -1
  904. package/build/src/core/container.d.ts +0 -14
  905. package/build/src/core/container.d.ts.map +0 -1
  906. package/build/src/core/container.js +0 -4
  907. package/build/src/core/container.js.map +0 -1
  908. package/build/src/core/reactive/reactive.d.ts.map +0 -1
  909. package/build/src/core/reactive/reactive.js.map +0 -1
  910. package/build/src/data/BreadcrumbsModel.d.ts +0 -36
  911. package/build/src/data/BreadcrumbsModel.d.ts.map +0 -1
  912. package/build/src/data/BreadcrumbsModel.js +0 -65
  913. package/build/src/data/BreadcrumbsModel.js.map +0 -1
  914. package/build/src/data/FileModel.d.ts +0 -35
  915. package/build/src/data/FileModel.d.ts.map +0 -1
  916. package/build/src/data/FileModel.js +0 -54
  917. package/build/src/data/FileModel.js.map +0 -1
  918. package/build/src/data/FilesModel.d.ts +0 -71
  919. package/build/src/data/FilesModel.d.ts.map +0 -1
  920. package/build/src/data/FilesModel.js +0 -166
  921. package/build/src/data/FilesModel.js.map +0 -1
  922. package/build/src/data/PatchableFileModel.d.ts +0 -141
  923. package/build/src/data/PatchableFileModel.d.ts.map +0 -1
  924. package/build/src/data/PatchableFileModel.js +0 -212
  925. package/build/src/data/PatchableFileModel.js.map +0 -1
  926. package/build/src/data/PatchableLiveDataContentModel.d.ts +0 -13
  927. package/build/src/data/PatchableLiveDataContentModel.d.ts.map +0 -1
  928. package/build/src/data/PatchableLiveDataContentModel.js +0 -18
  929. package/build/src/data/PatchableLiveDataContentModel.js.map +0 -1
  930. package/build/src/data/PatchableRawContentModel.d.ts +0 -14
  931. package/build/src/data/PatchableRawContentModel.d.ts.map +0 -1
  932. package/build/src/data/PatchableRawContentModel.js +0 -32
  933. package/build/src/data/PatchableRawContentModel.js.map +0 -1
  934. package/build/src/data/TrashModel.d.ts +0 -50
  935. package/build/src/data/TrashModel.d.ts.map +0 -1
  936. package/build/src/data/TrashModel.js +0 -102
  937. package/build/src/data/TrashModel.js.map +0 -1
  938. package/build/src/elements/data-table/filesystem-table.d.ts +0 -11
  939. package/build/src/elements/data-table/filesystem-table.d.ts.map +0 -1
  940. package/build/src/elements/data-table/filesystem-table.js +0 -28
  941. package/build/src/elements/data-table/filesystem-table.js.map +0 -1
  942. package/build/src/elements/data-table/internals/DataTable.d.ts.map +0 -1
  943. package/build/src/elements/data-table/internals/DataTable.js.map +0 -1
  944. package/build/src/elements/data-table/internals/DataTable.styles.d.ts.map +0 -1
  945. package/build/src/elements/data-table/internals/DataTable.styles.js.map +0 -1
  946. package/build/src/elements/data-table/internals/Filesystem.styles.d.ts +0 -3
  947. package/build/src/elements/data-table/internals/Filesystem.styles.d.ts.map +0 -1
  948. package/build/src/elements/data-table/internals/Filesystem.styles.js +0 -17
  949. package/build/src/elements/data-table/internals/Filesystem.styles.js.map +0 -1
  950. package/build/src/elements/data-table/internals/FilesystemDataTable.d.ts +0 -35
  951. package/build/src/elements/data-table/internals/FilesystemDataTable.d.ts.map +0 -1
  952. package/build/src/elements/data-table/internals/FilesystemDataTable.js +0 -237
  953. package/build/src/elements/data-table/internals/FilesystemDataTable.js.map +0 -1
  954. package/build/src/elements/data-table/internals/TrashDataTable.d.ts +0 -34
  955. package/build/src/elements/data-table/internals/TrashDataTable.d.ts.map +0 -1
  956. package/build/src/elements/data-table/internals/TrashDataTable.js +0 -173
  957. package/build/src/elements/data-table/internals/TrashDataTable.js.map +0 -1
  958. package/build/src/elements/data-table/trash-table.d.ts +0 -11
  959. package/build/src/elements/data-table/trash-table.d.ts.map +0 -1
  960. package/build/src/elements/data-table/trash-table.js +0 -28
  961. package/build/src/elements/data-table/trash-table.js.map +0 -1
  962. package/build/src/elements/modeling/domain-association-editor.d.ts +0 -10
  963. package/build/src/elements/modeling/domain-association-editor.d.ts.map +0 -1
  964. package/build/src/elements/modeling/domain-association-editor.js +0 -28
  965. package/build/src/elements/modeling/domain-association-editor.js.map +0 -1
  966. package/build/src/elements/modeling/domain-entity-editor.d.ts +0 -10
  967. package/build/src/elements/modeling/domain-entity-editor.d.ts.map +0 -1
  968. package/build/src/elements/modeling/domain-entity-editor.js +0 -30
  969. package/build/src/elements/modeling/domain-entity-editor.js.map +0 -1
  970. package/build/src/elements/modeling/domain-model-editor.d.ts +0 -10
  971. package/build/src/elements/modeling/domain-model-editor.d.ts.map +0 -1
  972. package/build/src/elements/modeling/domain-model-editor.js +0 -30
  973. package/build/src/elements/modeling/domain-model-editor.js.map +0 -1
  974. package/build/src/elements/modeling/domain-namespace-editor.d.ts +0 -10
  975. package/build/src/elements/modeling/domain-namespace-editor.d.ts.map +0 -1
  976. package/build/src/elements/modeling/domain-namespace-editor.js +0 -30
  977. package/build/src/elements/modeling/domain-namespace-editor.js.map +0 -1
  978. package/build/src/elements/modeling/domain-navigation.d.ts +0 -10
  979. package/build/src/elements/modeling/domain-navigation.d.ts.map +0 -1
  980. package/build/src/elements/modeling/domain-navigation.js +0 -28
  981. package/build/src/elements/modeling/domain-navigation.js.map +0 -1
  982. package/build/src/elements/modeling/domain-property-editor.d.ts +0 -10
  983. package/build/src/elements/modeling/domain-property-editor.d.ts.map +0 -1
  984. package/build/src/elements/modeling/domain-property-editor.js +0 -29
  985. package/build/src/elements/modeling/domain-property-editor.js.map +0 -1
  986. package/build/src/elements/modeling/internals/DomainAssociationEditor.d.ts +0 -100
  987. package/build/src/elements/modeling/internals/DomainAssociationEditor.d.ts.map +0 -1
  988. package/build/src/elements/modeling/internals/DomainAssociationEditor.js +0 -535
  989. package/build/src/elements/modeling/internals/DomainAssociationEditor.js.map +0 -1
  990. package/build/src/elements/modeling/internals/DomainEntityEditor.d.ts +0 -130
  991. package/build/src/elements/modeling/internals/DomainEntityEditor.d.ts.map +0 -1
  992. package/build/src/elements/modeling/internals/DomainEntityEditor.js +0 -809
  993. package/build/src/elements/modeling/internals/DomainEntityEditor.js.map +0 -1
  994. package/build/src/elements/modeling/internals/DomainModelEditor.d.ts +0 -19
  995. package/build/src/elements/modeling/internals/DomainModelEditor.d.ts.map +0 -1
  996. package/build/src/elements/modeling/internals/DomainModelEditor.js +0 -235
  997. package/build/src/elements/modeling/internals/DomainModelEditor.js.map +0 -1
  998. package/build/src/elements/modeling/internals/DomainNamespaceEditor.d.ts +0 -20
  999. package/build/src/elements/modeling/internals/DomainNamespaceEditor.d.ts.map +0 -1
  1000. package/build/src/elements/modeling/internals/DomainNamespaceEditor.js +0 -200
  1001. package/build/src/elements/modeling/internals/DomainNamespaceEditor.js.map +0 -1
  1002. package/build/src/elements/modeling/internals/DomainNavigation.d.ts +0 -33
  1003. package/build/src/elements/modeling/internals/DomainNavigation.d.ts.map +0 -1
  1004. package/build/src/elements/modeling/internals/DomainNavigation.js +0 -286
  1005. package/build/src/elements/modeling/internals/DomainNavigation.js.map +0 -1
  1006. package/build/src/elements/modeling/internals/DomainPropertyEditor.d.ts +0 -271
  1007. package/build/src/elements/modeling/internals/DomainPropertyEditor.d.ts.map +0 -1
  1008. package/build/src/elements/modeling/internals/DomainPropertyEditor.js +0 -1096
  1009. package/build/src/elements/modeling/internals/DomainPropertyEditor.js.map +0 -1
  1010. package/build/src/elements/modeling/internals/ModelingElement.d.ts +0 -26
  1011. package/build/src/elements/modeling/internals/ModelingElement.d.ts.map +0 -1
  1012. package/build/src/elements/modeling/internals/ModelingElement.js +0 -66
  1013. package/build/src/elements/modeling/internals/ModelingElement.js.map +0 -1
  1014. package/build/src/elements/modeling/internals/lib/UiMapping.d.ts +0 -37
  1015. package/build/src/elements/modeling/internals/lib/UiMapping.d.ts.map +0 -1
  1016. package/build/src/elements/modeling/internals/lib/UiMapping.js +0 -208
  1017. package/build/src/elements/modeling/internals/lib/UiMapping.js.map +0 -1
  1018. package/build/src/elements/modeling/internals/styles/DomainEntityEditor.styles.d.ts +0 -3
  1019. package/build/src/elements/modeling/internals/styles/DomainEntityEditor.styles.d.ts.map +0 -1
  1020. package/build/src/elements/modeling/internals/styles/DomainEntityEditor.styles.js +0 -83
  1021. package/build/src/elements/modeling/internals/styles/DomainEntityEditor.styles.js.map +0 -1
  1022. package/build/src/elements/modeling/internals/styles/DomainModelEditor.styles.d.ts +0 -3
  1023. package/build/src/elements/modeling/internals/styles/DomainModelEditor.styles.d.ts.map +0 -1
  1024. package/build/src/elements/modeling/internals/styles/DomainModelEditor.styles.js +0 -7
  1025. package/build/src/elements/modeling/internals/styles/DomainModelEditor.styles.js.map +0 -1
  1026. package/build/src/elements/modeling/internals/styles/DomainNamespaceEditor.styles.d.ts +0 -3
  1027. package/build/src/elements/modeling/internals/styles/DomainNamespaceEditor.styles.d.ts.map +0 -1
  1028. package/build/src/elements/modeling/internals/styles/DomainNamespaceEditor.styles.js +0 -7
  1029. package/build/src/elements/modeling/internals/styles/DomainNamespaceEditor.styles.js.map +0 -1
  1030. package/build/src/elements/modeling/internals/styles/DomainNavigation.styles.d.ts +0 -3
  1031. package/build/src/elements/modeling/internals/styles/DomainNavigation.styles.d.ts.map +0 -1
  1032. package/build/src/elements/modeling/internals/styles/DomainNavigation.styles.js +0 -27
  1033. package/build/src/elements/modeling/internals/styles/DomainNavigation.styles.js.map +0 -1
  1034. package/build/src/elements/modeling/internals/styles/DomainPropertyEditor.styles.d.ts +0 -3
  1035. package/build/src/elements/modeling/internals/styles/DomainPropertyEditor.styles.d.ts.map +0 -1
  1036. package/build/src/elements/modeling/internals/styles/DomainPropertyEditor.styles.js +0 -18
  1037. package/build/src/elements/modeling/internals/styles/DomainPropertyEditor.styles.js.map +0 -1
  1038. package/build/src/elements/modeling/internals/styles/form_styles.d.ts +0 -3
  1039. package/build/src/elements/modeling/internals/styles/form_styles.d.ts.map +0 -1
  1040. package/build/src/elements/modeling/internals/styles/form_styles.js +0 -63
  1041. package/build/src/elements/modeling/internals/styles/form_styles.js.map +0 -1
  1042. package/build/src/elements/modeling/internals/styles/learning.styles.d.ts +0 -3
  1043. package/build/src/elements/modeling/internals/styles/learning.styles.d.ts.map +0 -1
  1044. package/build/src/elements/modeling/internals/styles/learning.styles.js +0 -40
  1045. package/build/src/elements/modeling/internals/styles/learning.styles.js.map +0 -1
  1046. package/build/src/elements/modeling/types.d.ts +0 -32
  1047. package/build/src/elements/modeling/types.d.ts.map +0 -1
  1048. package/build/src/elements/modeling/types.js +0 -2
  1049. package/build/src/elements/modeling/types.js.map +0 -1
  1050. package/build/src/elements/schema-design/AssociationFormElement.d.ts +0 -34
  1051. package/build/src/elements/schema-design/AssociationFormElement.d.ts.map +0 -1
  1052. package/build/src/elements/schema-design/AssociationFormElement.js +0 -178
  1053. package/build/src/elements/schema-design/AssociationFormElement.js.map +0 -1
  1054. package/build/src/elements/schema-design/CommonStyles.d.ts +0 -3
  1055. package/build/src/elements/schema-design/CommonStyles.d.ts.map +0 -1
  1056. package/build/src/elements/schema-design/CommonStyles.js +0 -62
  1057. package/build/src/elements/schema-design/CommonStyles.js.map +0 -1
  1058. package/build/src/elements/schema-design/DataEntityEditorElement.d.ts +0 -69
  1059. package/build/src/elements/schema-design/DataEntityEditorElement.d.ts.map +0 -1
  1060. package/build/src/elements/schema-design/DataEntityEditorElement.js +0 -415
  1061. package/build/src/elements/schema-design/DataEntityEditorElement.js.map +0 -1
  1062. package/build/src/elements/schema-design/DataModelVisualizationElement.d.ts +0 -62
  1063. package/build/src/elements/schema-design/DataModelVisualizationElement.d.ts.map +0 -1
  1064. package/build/src/elements/schema-design/DataModelVisualizationElement.js +0 -417
  1065. package/build/src/elements/schema-design/DataModelVisualizationElement.js.map +0 -1
  1066. package/build/src/elements/schema-design/DataSchemaDocument.d.ts +0 -176
  1067. package/build/src/elements/schema-design/DataSchemaDocument.d.ts.map +0 -1
  1068. package/build/src/elements/schema-design/DataSchemaDocument.js +0 -949
  1069. package/build/src/elements/schema-design/DataSchemaDocument.js.map +0 -1
  1070. package/build/src/elements/schema-design/EntityFormElement.d.ts +0 -64
  1071. package/build/src/elements/schema-design/EntityFormElement.d.ts.map +0 -1
  1072. package/build/src/elements/schema-design/EntityFormElement.js +0 -331
  1073. package/build/src/elements/schema-design/EntityFormElement.js.map +0 -1
  1074. package/build/src/elements/schema-design/PropertyFormElement.d.ts +0 -96
  1075. package/build/src/elements/schema-design/PropertyFormElement.d.ts.map +0 -1
  1076. package/build/src/elements/schema-design/PropertyFormElement.js +0 -647
  1077. package/build/src/elements/schema-design/PropertyFormElement.js.map +0 -1
  1078. package/build/src/elements/schema-design/SchemaNamespaceSelector.d.ts +0 -27
  1079. package/build/src/elements/schema-design/SchemaNamespaceSelector.d.ts.map +0 -1
  1080. package/build/src/elements/schema-design/SchemaNamespaceSelector.js +0 -97
  1081. package/build/src/elements/schema-design/SchemaNamespaceSelector.js.map +0 -1
  1082. package/build/src/elements/schema-design/SchemaNamespaceSelector.styles.d.ts +0 -3
  1083. package/build/src/elements/schema-design/SchemaNamespaceSelector.styles.d.ts.map +0 -1
  1084. package/build/src/elements/schema-design/SchemaNamespaceSelector.styles.js +0 -28
  1085. package/build/src/elements/schema-design/SchemaNamespaceSelector.styles.js.map +0 -1
  1086. package/build/src/elements/schema-design/data-association-form.d.ts +0 -7
  1087. package/build/src/elements/schema-design/data-association-form.d.ts.map +0 -1
  1088. package/build/src/elements/schema-design/data-association-form.js +0 -3
  1089. package/build/src/elements/schema-design/data-association-form.js.map +0 -1
  1090. package/build/src/elements/schema-design/data-entity-editor.d.ts +0 -7
  1091. package/build/src/elements/schema-design/data-entity-editor.d.ts.map +0 -1
  1092. package/build/src/elements/schema-design/data-entity-editor.js +0 -3
  1093. package/build/src/elements/schema-design/data-entity-editor.js.map +0 -1
  1094. package/build/src/elements/schema-design/data-entity-form.d.ts +0 -7
  1095. package/build/src/elements/schema-design/data-entity-form.d.ts.map +0 -1
  1096. package/build/src/elements/schema-design/data-entity-form.js +0 -3
  1097. package/build/src/elements/schema-design/data-entity-form.js.map +0 -1
  1098. package/build/src/elements/schema-design/data-model-visualization.d.ts +0 -7
  1099. package/build/src/elements/schema-design/data-model-visualization.d.ts.map +0 -1
  1100. package/build/src/elements/schema-design/data-model-visualization.js +0 -3
  1101. package/build/src/elements/schema-design/data-model-visualization.js.map +0 -1
  1102. package/build/src/elements/schema-design/data-property-form.d.ts +0 -7
  1103. package/build/src/elements/schema-design/data-property-form.d.ts.map +0 -1
  1104. package/build/src/elements/schema-design/data-property-form.js +0 -3
  1105. package/build/src/elements/schema-design/data-property-form.js.map +0 -1
  1106. package/build/src/elements/schema-design/data-schema-document.d.ts +0 -7
  1107. package/build/src/elements/schema-design/data-schema-document.d.ts.map +0 -1
  1108. package/build/src/elements/schema-design/data-schema-document.js +0 -3
  1109. package/build/src/elements/schema-design/data-schema-document.js.map +0 -1
  1110. package/build/src/elements/schema-design/schemaCommon.d.ts +0 -3
  1111. package/build/src/elements/schema-design/schemaCommon.d.ts.map +0 -1
  1112. package/build/src/elements/schema-design/schemaCommon.js +0 -375
  1113. package/build/src/elements/schema-design/schemaCommon.js.map +0 -1
  1114. package/build/src/exceptions/FileLoadException.d.ts +0 -8
  1115. package/build/src/exceptions/FileLoadException.d.ts.map +0 -1
  1116. package/build/src/exceptions/FileLoadException.js +0 -8
  1117. package/build/src/exceptions/FileLoadException.js.map +0 -1
  1118. package/build/src/exceptions/MisconfigurationException.d.ts +0 -8
  1119. package/build/src/exceptions/MisconfigurationException.d.ts.map +0 -1
  1120. package/build/src/exceptions/MisconfigurationException.js +0 -8
  1121. package/build/src/exceptions/MisconfigurationException.js.map +0 -1
  1122. package/build/src/sdk/UiSdk.d.ts +0 -17
  1123. package/build/src/sdk/UiSdk.d.ts.map +0 -1
  1124. package/build/src/sdk/UiSdk.js +0 -41
  1125. package/build/src/sdk/UiSdk.js.map +0 -1
  1126. package/demo/apps/auth-callback.html +0 -37
  1127. package/demo/apps/main.html +0 -23
  1128. package/demo/apps/main.ts +0 -5
  1129. package/demo/apps/schema.html +0 -22
  1130. package/demo/apps/schema.ts +0 -5
  1131. package/src/apps/activities/ApiActivity.ts +0 -40
  1132. package/src/apps/activities/AppStartActivity.ts +0 -123
  1133. package/src/apps/activities/BrowseDataDomainActivity.ts +0 -1073
  1134. package/src/apps/activities/CreateFolderDialogActivity.ts +0 -128
  1135. package/src/apps/activities/DeleteDataDomainActivity.ts +0 -150
  1136. package/src/apps/activities/LoadingActivity.ts +0 -90
  1137. package/src/apps/activities/LoginActivity.ts +0 -193
  1138. package/src/apps/activities/OrganizationSelectionActivity.ts +0 -102
  1139. package/src/apps/activities/OrganizationSetupActivity.ts +0 -146
  1140. package/src/apps/activities/RenameFileDialogActivity.ts +0 -156
  1141. package/src/apps/activities/styles/BrowseDataDomain.styles.ts +0 -28
  1142. package/src/apps/activities/styles/DeleteDataDomain.styles.ts +0 -26
  1143. package/src/apps/activities/styles/login.ts +0 -66
  1144. package/src/apps/api_service.ts +0 -20
  1145. package/src/apps/fragments/loading.ts +0 -84
  1146. package/src/apps/quick-api/Intents.ts +0 -14
  1147. package/src/apps/quick-api/QuickApiApp.ts +0 -55
  1148. package/src/apps/quick-api/Schema.styles.ts +0 -95
  1149. package/src/apps/quick-api/SchemaEditorApp.ts +0 -60
  1150. package/src/apps/quick-api/SchemaScreenActivity.ts +0 -319
  1151. package/src/apps/quick-api/SchemaScreenViewModel.ts +0 -74
  1152. package/src/apps/quick-api/Start.styles.ts +0 -125
  1153. package/src/apps/quick-api/StartScreenActivity.ts +0 -102
  1154. package/src/apps/quick-api/filesystem/Files.styles.ts +0 -72
  1155. package/src/apps/quick-api/filesystem/FilesLib.ts +0 -43
  1156. package/src/apps/quick-api/fragments/FilesystemFragment.ts +0 -417
  1157. package/src/apps/quick-api/fragments/HeaderFragment.ts +0 -72
  1158. package/src/apps/quick-api/fragments/MainFragment.ts +0 -47
  1159. package/src/apps/quick-api/fragments/NavigationFragment.ts +0 -165
  1160. package/src/apps/quick-api/fragments/SchemaEditorEmptyState.fragment.ts +0 -11
  1161. package/src/apps/quick-api/fragments/SchemaEditorHost.styles.ts +0 -22
  1162. package/src/apps/quick-api/fragments/SchemaEditorHost.ts +0 -239
  1163. package/src/apps/quick-api/fragments/SchemaHeaderFragment.ts +0 -117
  1164. package/src/apps/quick-api/fragments/SchemaNavigation.styles.ts +0 -16
  1165. package/src/apps/quick-api/fragments/SchemaNavigationFragment.ts +0 -292
  1166. package/src/apps/quick-api/fragments/TrashFragment.ts +0 -174
  1167. package/src/apps/quick-api/lib/SchemaContextualMenu.ts +0 -63
  1168. package/src/apps/quick-api/lib/UiLib.ts +0 -17
  1169. package/src/apps/services/ConfigurationService.ts +0 -28
  1170. package/src/apps/services/LoggingService.ts +0 -48
  1171. package/src/apps/services/OrganizationService.ts +0 -138
  1172. package/src/apps/services/SdkService.ts +0 -45
  1173. package/src/apps/services/TransmitService.ts +0 -21
  1174. package/src/apps/services/UserService.ts +0 -69
  1175. package/src/apps/transmit_client.ts +0 -5
  1176. package/src/apps/types.ts +0 -10
  1177. package/src/boot.ts +0 -18
  1178. package/src/builders/DialogBuilder.ts +0 -248
  1179. package/src/core/container.ts +0 -15
  1180. package/src/data/BreadcrumbsModel.ts +0 -69
  1181. package/src/data/FileModel.ts +0 -58
  1182. package/src/data/FilesModel.ts +0 -186
  1183. package/src/data/PatchableFileModel.ts +0 -266
  1184. package/src/data/PatchableLiveDataContentModel.ts +0 -26
  1185. package/src/data/PatchableRawContentModel.ts +0 -42
  1186. package/src/data/TrashModel.ts +0 -114
  1187. package/src/elements/data-table/filesystem-table.ts +0 -16
  1188. package/src/elements/data-table/internals/Filesystem.styles.ts +0 -17
  1189. package/src/elements/data-table/internals/FilesystemDataTable.ts +0 -230
  1190. package/src/elements/data-table/internals/TrashDataTable.ts +0 -165
  1191. package/src/elements/data-table/trash-table.ts +0 -16
  1192. package/src/elements/modeling/domain-association-editor.ts +0 -15
  1193. package/src/elements/modeling/domain-entity-editor.ts +0 -17
  1194. package/src/elements/modeling/domain-model-editor.ts +0 -17
  1195. package/src/elements/modeling/domain-namespace-editor.ts +0 -17
  1196. package/src/elements/modeling/domain-navigation.ts +0 -15
  1197. package/src/elements/modeling/domain-property-editor.ts +0 -16
  1198. package/src/elements/modeling/internals/DomainAssociationEditor.ts +0 -550
  1199. package/src/elements/modeling/internals/DomainEntityEditor.ts +0 -813
  1200. package/src/elements/modeling/internals/DomainModelEditor.ts +0 -241
  1201. package/src/elements/modeling/internals/DomainNamespaceEditor.ts +0 -207
  1202. package/src/elements/modeling/internals/DomainNavigation.ts +0 -285
  1203. package/src/elements/modeling/internals/DomainPropertyEditor.ts +0 -1112
  1204. package/src/elements/modeling/internals/ModelingElement.ts +0 -48
  1205. package/src/elements/modeling/internals/lib/UiMapping.ts +0 -218
  1206. package/src/elements/modeling/internals/styles/DomainEntityEditor.styles.ts +0 -83
  1207. package/src/elements/modeling/internals/styles/DomainModelEditor.styles.ts +0 -7
  1208. package/src/elements/modeling/internals/styles/DomainNamespaceEditor.styles.ts +0 -7
  1209. package/src/elements/modeling/internals/styles/DomainNavigation.styles.ts +0 -27
  1210. package/src/elements/modeling/internals/styles/DomainPropertyEditor.styles.ts +0 -18
  1211. package/src/elements/modeling/internals/styles/form_styles.ts +0 -63
  1212. package/src/elements/modeling/internals/styles/learning.styles.ts +0 -40
  1213. package/src/elements/modeling/types.ts +0 -33
  1214. package/src/elements/schema-design/AssociationFormElement.ts +0 -155
  1215. package/src/elements/schema-design/CommonStyles.ts +0 -62
  1216. package/src/elements/schema-design/DataEntityEditorElement.ts +0 -376
  1217. package/src/elements/schema-design/DataModelVisualizationElement.ts +0 -417
  1218. package/src/elements/schema-design/DataSchemaDocument.ts +0 -959
  1219. package/src/elements/schema-design/EntityFormElement.ts +0 -315
  1220. package/src/elements/schema-design/PropertyFormElement.ts +0 -672
  1221. package/src/elements/schema-design/SchemaNamespaceSelector.styles.ts +0 -28
  1222. package/src/elements/schema-design/SchemaNamespaceSelector.ts +0 -78
  1223. package/src/elements/schema-design/data-association-form.ts +0 -9
  1224. package/src/elements/schema-design/data-entity-editor.ts +0 -9
  1225. package/src/elements/schema-design/data-entity-form.ts +0 -9
  1226. package/src/elements/schema-design/data-model-visualization.ts +0 -9
  1227. package/src/elements/schema-design/data-property-form.ts +0 -9
  1228. package/src/elements/schema-design/data-schema-document.ts +0 -9
  1229. package/src/elements/schema-design/schemaCommon.ts +0 -375
  1230. package/src/exceptions/FileLoadException.ts +0 -8
  1231. package/src/exceptions/MisconfigurationException.ts +0 -8
  1232. package/src/sdk/UiSdk.ts +0 -47
  1233. package/test/elements/modeling/domain-entity-editor.spec.ts +0 -1377
  1234. package/test/elements/modeling/domain-property-editor.spec.ts +0 -1551
  1235. /package/build/src/elements/data-table/{internals/DataTable.styles.d.ts → DataTable.styles.d.ts} +0 -0
  1236. /package/build/src/elements/data-table/{internals/DataTable.styles.js → DataTable.styles.js} +0 -0
  1237. /package/build/src/{core/reactive → reactive}/reactive.d.ts +0 -0
  1238. /package/build/src/{core/reactive → reactive}/reactive.js +0 -0
  1239. /package/src/elements/data-table/{internals/DataTable.styles.ts → DataTable.styles.ts} +0 -0
  1240. /package/src/{core/reactive → reactive}/reactive.ts +0 -0
  1241. /package/{web-dev-server.config.js → wds-demo.config.js} +0 -0
@@ -1,5 +1,5 @@
1
1
  import { type TemplateResult, type PropertyValues, nothing } from 'lit';
2
- import { type ApiDefinitions } from '@api-client/core/browser.js';
2
+ import type { IApiServer } from '@api-client/core/amf/definitions/Api.js';
3
3
  import type { SelectionType, ServerType } from '../../amf/types.js';
4
4
  import { type UiDropdownListSelection } from '../../md/dropdown-list/internals/UiDropdownList.js';
5
5
  import { ApiDocumentationBase } from './ApiDocumentationBase.js';
@@ -120,7 +120,7 @@ export default class ApiServerPicker extends ApiDocumentationBase {
120
120
  * A list of custom items rendered in the slot.
121
121
  */
122
122
  protected accessor _customItems: ICustomServer[];
123
- protected accessor _servers: ApiDefinitions.IApiServer[] | undefined;
123
+ protected accessor _servers: IApiServer[] | undefined;
124
124
  /**
125
125
  * Returns a list of custom servers found in the element's DOM.
126
126
  * For an item to be included in the list it has to have the `data-value="..."` attribute set.
@@ -249,7 +249,7 @@ export default class ApiServerPicker extends ApiDocumentationBase {
249
249
  * @param server The server definition
250
250
  * @returns The template for a server list item.
251
251
  */
252
- protected renderServerListItem(server: ApiDefinitions.IApiServer): TemplateResult;
252
+ protected renderServerListItem(server: IApiServer): TemplateResult;
253
253
  protected renderSlot(): TemplateResult;
254
254
  }
255
255
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"ApiServerPicker.element.d.ts","sourceRoot":"","sources":["../../../../src/elements/amf/ApiServerPicker.element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,cAAc,EAAE,KAAK,cAAc,EAAE,OAAO,EAAE,MAAM,KAAK,CAAA;AAE7E,OAAO,EAAE,KAAK,cAAc,EAAc,MAAM,6BAA6B,CAAA;AAI7E,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AACnE,OAAuB,EAAE,KAAK,uBAAuB,EAAE,MAAM,oDAAoD,CAAA;AACjH,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAChE,OAAO,KAAK,KAAK,MAAM,yBAAyB,CAAA;AAChD,OAAO,2BAA2B,CAAA;AAClC,OAAO,4CAA4C,CAAA;AACnD,OAAO,0BAA0B,CAAA;AACjC,OAAO,+BAA+B,CAAA;AACtC,OAAO,sCAAsC,CAAA;AAC7C,OAAO,wCAAwC,CAAA;AAE/C,UAAU,aAAa;IACrB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;CACd;AAED,UAAU,kBAAkB;IAC1B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH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G;IACH,SAAS,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI;IAoB7C;;;;;;;;;;;;;;OAcG;IACH,SAAS,CAAC,WAAW,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAE,kBAAuB,GAAG,IAAI;IA8D7E,SAAS,CAAC,kBAAkB,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI;IAK5C,SAAS,CAAC,eAAe,CAAC,CAAC,EAAE,WAAW,CAAC,uBAAuB,CAAC,GAAG,IAAI;IAyBxE,SAAS,CAAC,UAAU,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI;IAmBpC;;OAEG;IACH,SAAS,CAAC,kBAAkB,IAAI,IAAI;IAIpC,SAAS,CAAC,kBAAkB,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI;IAM5C;;OAEG;IACH,SAAS,CAAC,iBAAiB,IAAI,IAAI;cAcnB,eAAe,IAAI,OAAO,CAAC,IAAI,CAAC;IAUhD;;;OAGG;IACH,aAAa,IAAI,IAAI;IAIZ,MAAM,IAAI,cAAc;IAMjC;;OAEG;IACH,SAAS,CAAC,oBAAoB,IAAI,cAAc;IAyBhD;;OAEG;IACH,SAAS,CAAC,cAAc,CAAC,MAAM,EAAE,OAAO,GAAG,cAAc;IA6BzD;;;;;;OAMG;IACH,SAAS,CAAC,kBAAkB,IAAI,cAAc;IAI9C;;OAEG;IACH,SAAS,CAAC,eAAe,IAAI,cAAc,GAAG,OAAO,OAAO;IAU5D;;OAEG;IACH,SAAS,CAAC,gBAAgB,IAAI,cAAc,EAAE,GAAG,OAAO,OAAO;IAQ/D;;;OAGG;IACH,SAAS,CAAC,oBAAoB,CAAC,MAAM,EAAE,UAAU,GAAG,cAAc;IAQlE,SAAS,CAAC,UAAU,IAAI,cAAc;CAGvC"}
@@ -1,8 +1,8 @@
1
1
  import { __esDecorate, __runInitializers } from "tslib";
2
2
  import { html, nothing } from 'lit';
3
3
  import { property, query, state } from 'lit/decorators.js';
4
- import { EventUtils } from '@api-client/core/browser.js';
5
4
  import { live } from 'lit/directives/live.js';
5
+ import { cancelEvent } from '@api-client/core/lib/events/Utils.js';
6
6
  import { Events } from '../../events/amf/Events.js';
7
7
  import { EventTypes } from '../../events/amf/EventTypes.js';
8
8
  import { ApiDocumentationBase } from './ApiDocumentationBase.js';
@@ -578,7 +578,7 @@ let ApiServerPicker = (() => {
578
578
  type="url"
579
579
  ?readOnly="${!!baseUri}"
580
580
  @change="${this.handleCustomChange}"
581
- @select="${EventUtils.cancelEvent}"
581
+ @select="${cancelEvent}"
582
582
  >
583
583
  <ui-icon-button
584
584
  slot="suffix"
@@ -613,7 +613,7 @@ let ApiServerPicker = (() => {
613
613
  label="Select server"
614
614
  readOnly
615
615
  .value="${finalValue || ''}"
616
- @select="${EventUtils.cancelEvent}"
616
+ @select="${cancelEvent}"
617
617
  >
618
618
  <ui-icon icon="arrowDropDown" role="presentation" slot="suffix"></ui-icon>
619
619
  </ui-text-field>
@@ -1 +1 @@
1
- {"version":3,"file":"ApiServerPicker.element.js","sourceRoot":"","sources":["../../../../src/elements/amf/ApiServerPicker.element.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAA4C,OAAO,EAAE,MAAM,KAAK,CAAA;AAC7E,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAC1D,OAAO,EAAuB,UAAU,EAAE,MAAM,6BAA6B,CAAA;AAC7E,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAA;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAA;AAG3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAEhE,OAAO,2BAA2B,CAAA;AAClC,OAAO,4CAA4C,CAAA;AACnD,OAAO,0BAA0B,CAAA;AACjC,OAAO,+BAA+B,CAAA;AACtC,OAAO,s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AAM,CAAC,GAAG;;KAEhB,CAAA;QACH,CAAC;QAES,UAAU;YAClB,OAAO,IAAI,CAAA,6CAA6C,IAAI,CAAC,UAAU,WAAW,CAAA;QACpF,CAAC;;;AA7oBH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,+BAsmBC","sourcesContent":["import { html, type TemplateResult, type PropertyValues, nothing } from 'lit'\nimport { property, query, state } from 'lit/decorators.js'\nimport { type ApiDefinitions, EventUtils } from '@api-client/core/browser.js'\nimport { live } from 'lit/directives/live.js'\nimport { Events } from '../../events/amf/Events.js'\nimport { EventTypes } from '../../events/amf/EventTypes.js'\nimport type { SelectionType, ServerType } from '../../amf/types.js'\nimport UiDropdownList, { type UiDropdownListSelection } from '../../md/dropdown-list/internals/UiDropdownList.js'\nimport { ApiDocumentationBase } from './ApiDocumentationBase.js'\nimport type Input from '../../md/input/Input.js'\nimport '../../md/icons/ui-icon.js'\nimport '../../md/dropdown-list/ui-dropdown-list.js'\nimport '../../md/list/ui-list.js'\nimport '../../md/list/ui-list-item.js'\nimport '../../md/text-field/ui-text-field.js'\nimport '../../md/icon-button/ui-icon-button.js'\n\ninterface ICustomServer {\n index: number\n value: string\n}\n\ninterface IAutoSelectOptions {\n /**\n * The preferred URI value to use to select.\n */\n preferred?: string\n /**\n * When set to `true` it only allows to select the value from API servers or custom servers.\n * It won't select the value as a `custom` value.\n */\n noCustom?: boolean\n}\n\n/**\n * An element that presents a list of servers defined in the currently loaded API.\n * The user can select a server they prefer to use with the rest of the API documentation UI.\n *\n * The element dispatched the `apiserverchanged` event when the selection is made. This event\n * is dispatched when the selection is made automatically after querying for server data or when\n * the user decide to select a different option.\n *\n * ```javascript\n * const template = html`<api-server-picker @apiserverchanged=\"${this._serverChanged}\"></api-server-picker>`;\n * ```\n *\n * The event is dispatched with the `detail` object that has the `value` with the current\n * base URI of the selected server, optional `id` with the graph ID of the selected server,\n * and the type of the current selection. The `type` property is one of: `server`\n * (pick is one of the predefined servers), `custom` (user entered value), or `extra`\n * (one of the added server definitions from the outside of the API specification.)\n *\n * The picker allows the user to enter a custom value of the base URI when the `custom`\n * property is set. In this case, the user can select the \"custom\" value in the\n * drop-down options list which then renders an input field where the user can change the value.\n * The `apiserverchanged` event is dispatched after the user commit the change in the input field (enter, blur).\n *\n * Additionally, the element offers a named `<slot>` (custom-base-uri) which renders all passed items\n * in the dropdown. All items that have `data-value` attribute set are selectable as the server value.\n *\n * ```javascript\n * const template = html`\n * <api-server-picker @apiserverchanged=\"${this._serverChanged}\">\n * <ui-list-item slot=\"custom-base-uri\" data-value=\"http://mocking.com\">Mocking service</ui-list-item>\n * </api-server-picker>`;\n * ```\n *\n * By default all server items are rendered as `<ui-list-item>`. However, you can pass any element\n * to make the experience more compelling to the user (like adding a section header).\n *\n * @fires apiserverchanged - The event dispatched when a server selection change.\n * @fires serverscountchanged - The event dispatched when a server count change.\n * @fires query - Dispatched when the element asks the context store for servers info.\n */\nexport default class ApiServerPicker extends ApiDocumentationBase {\n /**\n * Currently selected type of the input.\n * `server` | `extra` | `custom`\n * @attribute\n */\n @property({ type: String, reflect: true }) accessor type: ServerType | undefined\n\n @state() protected accessor _graphLoaded: boolean | undefined\n\n /**\n * When set it automatically selected the first server from the list of servers when selection is missing.\n * @attribute\n */\n @property({ type: Boolean, reflect: true }) accessor auto: boolean | undefined\n\n /**\n * When set the `Custom base URI` is rendered in the dropdown\n * @attribute\n */\n @property({ type: Boolean, reflect: true }) accessor custom: boolean | undefined\n\n /**\n * A programmatic access to the opened state of the drop down.\n * Note, this does nothing when custom element is rendered.\n * @attribute\n */\n @property({ type: Boolean, reflect: true }) accessor opened: boolean | undefined\n\n /**\n * The graph domain id of the selected domain object.\n * @attribute\n */\n @property({ type: String, reflect: true }) accessor omainId: string | undefined\n\n /**\n * The selected domain type.\n * This is an abstract name from the api navigation.\n * @attribute\n */\n @property({ type: String, reflect: true }) accessor domainType: SelectionType | undefined\n\n /**\n * The current base URI value from either (in order) the baseUri, current value, or just empty string.\n * @attribute\n */\n @property({ type: String }) accessor value: string | undefined\n\n /**\n * The `baseUri` property overrides any server definition and turns the picker into the\n * \"custom\" mode.\n * @attribute\n */\n @property({ type: String }) accessor baseUri: string | undefined\n\n protected _debounceValue?: number\n\n /**\n * Holds the size of rendered custom servers.\n */\n protected _customNodesCount: number\n\n /**\n * A list of custom items rendered in the slot.\n */\n @state() protected accessor _customItems: ICustomServer[]\n\n @state() protected accessor _servers: ApiDefinitions.IApiServer[] | undefined\n\n /**\n * Returns a list of custom servers found in the element's DOM.\n * For an item to be included in the list it has to have the `data-value=\"...\"` attribute set.\n */\n get customServers(): string[] {\n return this._customItems.map((i) => i.value)\n }\n\n /**\n * Returns a list of servers defined in the API.\n */\n get apiServers(): string[] {\n return (this._servers || []).map((i) => i.url)\n }\n\n /**\n * @returns Total number of list items being rendered.\n */\n get serversCount(): number {\n const { custom, _servers = [], _customItems } = this\n const offset = custom ? 1 : 0\n const serversCount = _servers.length + _customItems.length + offset\n return serversCount\n }\n\n protected _onApiServerChange: EventListener | null = null\n\n /**\n * @returns Previously registered callback function for the `api-server-changed` event.\n */\n get onapiserverchange(): EventListener | null {\n return this._onApiServerChange\n }\n\n /**\n * @param value A callback function to be called when `api-server-changed` event is dispatched.\n */\n set onapiserverchange(value: EventListener | null) {\n const old = this._onApiServerChange\n if (old) {\n this.removeEventListener(EventTypes.Server.serverChange, old)\n }\n const isFn = typeof value === 'function'\n if (isFn) {\n this._onApiServerChange = value\n this.addEventListener(EventTypes.Server.serverChange, value)\n } else {\n this._onApiServerChange = null\n }\n }\n\n protected _onServersCountChangeValue: EventListener | null = null\n\n /**\n * @returns Previously registered callback function for the `servers-count-changed` event.\n */\n get onserverscountchange(): EventListener | null {\n return this._onServersCountChangeValue || null\n }\n\n /**\n * @param value A callback function to be called when `servers-count-changed` event is dispatched.\n */\n set onserverscountchange(value: EventListener | null) {\n const old = this._onServersCountChangeValue\n if (old) {\n this.removeEventListener(EventTypes.Server.serverCountChange, old)\n }\n const isFn = typeof value === 'function'\n if (isFn) {\n this._onServersCountChangeValue = value\n this.addEventListener(EventTypes.Server.serverCountChange, value)\n } else {\n this._onServersCountChangeValue = null\n }\n }\n\n protected _boundEvent: () => void\n\n @query('.uri-input')\n protected accessor customInput: Input | null = null\n\n constructor() {\n super()\n this.queryDebouncerTimeout = 1\n this._customNodesCount = 0\n this._graphLoaded = false\n this._customItems = []\n this._boundEvent = (): void => {\n this._processDebounce()\n }\n }\n\n override connectedCallback(): void {\n super.connectedCallback()\n this.eventsTarget.addEventListener(EventTypes.Store.graphChange, this._boundEvent)\n this._processDebounce()\n }\n\n override disconnectedCallback(): void {\n super.disconnectedCallback()\n this.eventsTarget.removeEventListener(EventTypes.Store.graphChange, this._boundEvent)\n if (this._debounceValue) {\n clearTimeout(this._debounceValue)\n this._debounceValue = undefined\n }\n }\n\n protected override shouldUpdate(_changedProperties: PropertyValues<this>): boolean {\n if (_changedProperties.has('value')) {\n if (this.baseUri) {\n this.value = this.baseUri\n return false\n }\n // const oldValue = _changedProperties.get('value');\n // const newValue = this.value;\n\n // if (newValue && this._isValueCustom(newValue) && !this.custom) {\n // // eslint-disable-next-line no-console\n // console.warn(`Trying to set a custom value on the selector but the \"custom\" is not set.`);\n // this.value = oldValue;\n // return _changedProperties.size !== 1;\n // }\n }\n return true\n }\n\n protected override updated(_changedProperties: PropertyValues<this>): void {\n super.updated(_changedProperties)\n if (_changedProperties.has('domainType') || _changedProperties.has('domainId')) {\n this._processDebounce()\n }\n if (_changedProperties.has('custom')) {\n this.notifyServersCount()\n if (!this.custom && this.type === 'custom') {\n this.disabledCustomUri()\n }\n }\n\n if (_changedProperties.has('auto') && this.auto && !this.value) {\n this._autoSelect({ preferred: this.value })\n }\n if (_changedProperties.has('value')) {\n this._valueChanged(this.value)\n }\n if (_changedProperties.has('baseUri') && this.baseUri) {\n this.value = this.baseUri\n this.type = 'custom'\n }\n }\n\n /**\n * Calls the `queryGraph()` function in a debouncer.\n */\n protected _processDebounce(): void {\n if (this._debounceValue) {\n clearTimeout(this._debounceValue)\n }\n this._debounceValue = setTimeout(() => {\n this._debounceValue = undefined\n this.processGraph()\n }, this.queryDebouncerTimeout) as unknown as number\n }\n\n /**\n * Queries for the current API server data from the store.\n */\n override async processGraph(): Promise<void> {\n this._graphLoaded = false\n let oldValue = this.value\n const oldCustom = this.isValueCustom(oldValue)\n await this._queryServers()\n const isCustom = this.isValueCustom(oldValue)\n this._graphLoaded = true\n if (!oldCustom && isCustom) {\n oldValue = undefined\n }\n const noCustom = !(oldCustom && isCustom)\n this._autoSelect({ preferred: oldValue, noCustom })\n this.notifyServersCount()\n }\n\n /**\n * Queries for the current servers value.\n */\n protected async _queryServers(): Promise<void> {\n const { domainId, domainType } = this\n let endpointId\n let methodId\n if (domainType === 'operation') {\n methodId = domainId\n } else if (domainType === 'resource') {\n endpointId = domainId\n }\n try {\n const info = await Events.Server.query(this, {\n endpointId,\n methodId,\n })\n this._servers = info\n } catch (e) {\n const ex = e as Error\n this._servers = undefined\n Events.Telemetry.exception(this, ex.message, false)\n Events.Reporting.error(this, ex, `Unable to query for API servers: ${ex.message}`, this.localName)\n }\n }\n\n /**\n * Checks whether the passed value would be rendered as a \"custom\" value.\n * The value is \"custom\" if it cannot be matched with server value for an API defined server or\n * a custom server passed in the DOM.\n *\n * @param value The value to test.\n * @returns `true` when the value would be rendered as \"custom\".\n */\n isValueCustom(value?: string): boolean {\n const { _servers = [], _customItems } = this\n const srv = _servers.some((s) => s.url === value)\n if (srv) {\n return false\n }\n const custom = _customItems.some((s) => s.value === value)\n if (custom) {\n return false\n }\n // returns false for no value.\n return !!value\n }\n\n /**\n * This only makes sure whether the set value is a \"custom\" value while no selection is made.\n *\n * @param value The current value.\n */\n protected _valueChanged(value?: string): void {\n if (!value || !this.custom || !this._graphLoaded) {\n return\n }\n\n const { _servers = [], _customItems, _graphLoaded } = this\n if (_graphLoaded) {\n return\n }\n if (_servers.some((s) => s.url === value)) {\n return\n }\n if (_customItems.some((s) => s.value === value)) {\n return\n }\n this.value = value\n this.type = 'custom'\n Events.Server.serverChange(this, value, this.type)\n }\n\n /**\n * Automatically selects one of available values.\n *\n * When the `preferred` is set it checks whether this value is on the servers list. If so this value is used.\n * If none match then it checks for custom servers and if they have this value then it is set.\n *\n * Otherwise it takes files value of servers or custom servers (when no servers) and sets this value instead.\n *\n * Caveats:\n * - it does nothing when `auto` is not set\n * - it does nothing when `type` is `custom`\n * - it won't set the \"first\" server or custom server value when the graph is being loaded.\n *\n * @param preferred The preferred value to be selected.\n */\n protected _autoSelect({ preferred, noCustom }: IAutoSelectOptions = {}): void {\n const { auto, type } = this\n if (type === 'custom') {\n if (preferred) {\n const isCustom = this.isValueCustom(preferred)\n if (!isCustom) {\n this.type = undefined\n } else {\n this.value = preferred\n Events.Server.serverChange(this, preferred || '', this.type as ServerType)\n return\n }\n } else {\n return\n }\n }\n if (!auto) {\n return\n }\n const { _servers = [], _customItems } = this\n const srv = _servers.find((s) => s.url === preferred)\n if (srv) {\n this.value = preferred\n this.type = 'server'\n Events.Server.serverChange(this, preferred || '', this.type as ServerType)\n return\n }\n const custom = _customItems.find((s) => s.value === preferred)\n if (custom) {\n this.value = custom.value\n this.type = 'extra'\n Events.Server.serverChange(this, custom.value, this.type as ServerType)\n return\n }\n if (!this._graphLoaded) {\n // do not pre-select values before servers query ends.\n return\n }\n\n // todo: if anything is wrong with auto-select and the custom values, remove these lines.\n if (this.custom && preferred && !noCustom) {\n this.value = preferred\n this.type = 'custom'\n Events.Server.serverChange(this, preferred, this.type as ServerType)\n return\n }\n\n const [firstServer] = _servers\n if (firstServer) {\n this.value = firstServer.url\n this.type = 'server'\n Events.Server.serverChange(this, firstServer.url, this.type as ServerType)\n return\n }\n const [firstCustom] = _customItems\n if (firstCustom) {\n this.value = firstCustom.value\n this.type = 'extra'\n Events.Server.serverChange(this, firstCustom.value, this.type as ServerType)\n }\n }\n\n protected handleDropdownOpen(e: Event): void {\n const node = e.target as UiDropdownList\n this.opened = node.open\n }\n\n protected handleSelection(e: CustomEvent<UiDropdownListSelection>): void {\n e.preventDefault()\n const { _graphLoaded, _customItems } = this\n if (!_graphLoaded) {\n return\n }\n const { item } = e.detail\n const { value } = item.dataset\n if (!value) {\n return\n }\n if (value === 'custom') {\n this.enableCustomUri()\n return\n }\n const custom = _customItems.find((i) => i.value === value)\n this.value = value\n if (custom) {\n this.type = 'extra'\n } else {\n this.type = 'server'\n }\n Events.Server.serverChange(this, value, this.type)\n }\n\n protected handleSlot(e: Event): void {\n const slot = e.target as HTMLSlotElement\n const elements = slot.assignedElements({ flatten: true })\n const servers: ICustomServer[] = []\n elements.forEach((element, index) => {\n const value = element.getAttribute('data-value')\n if (!value) {\n return\n }\n element.setAttribute('role', 'menuitem')\n servers.push({\n index,\n value,\n })\n })\n this._customItems = servers\n this.notifyServersCount()\n }\n\n /**\n * Dispatches the `servers-count-changed` event with the current number of rendered servers.\n */\n protected notifyServersCount(): void {\n Events.Server.serverCountChange(this, this.serversCount)\n }\n\n protected handleCustomChange(e: Event): void {\n const { value } = e.target as Input\n this.value = value\n Events.Server.serverChange(this, this.value, this.type as ServerType)\n }\n\n /**\n * Resets current selection to a default value.\n */\n protected disabledCustomUri(): void {\n const { baseUri } = this\n if (baseUri) {\n this.value = baseUri\n this.type = 'custom'\n } else {\n this.value = ''\n this.type = 'server'\n }\n Events.Server.serverChange(this, '', this.type)\n this.opened = false\n this._autoSelect()\n }\n\n protected async enableCustomUri(): Promise<void> {\n this.type = 'custom'\n this.value = ''\n this.opened = false\n Events.Server.serverChange(this, this.value, this.type)\n await this.updateComplete\n const { customInput } = this\n customInput?.focus()\n }\n\n /**\n * Removes the currently rendered servers from the element.\n * This allow to programmatically manipulate the list of servers by removing all API related definitions.\n */\n removeServers(): void {\n this._servers = []\n }\n\n override render(): TemplateResult {\n const { type } = this\n const isCustom = type === 'custom'\n return html` ${isCustom ? this.renderCustomUriInput() : ''} ${this.renderSelector(isCustom)} `\n }\n\n /**\n * @returns Template result for the custom input.\n */\n protected renderCustomUriInput(): TemplateResult {\n const { value = '', baseUri } = this\n return html`\n <ui-text-field\n class=\"uri-input\"\n .value=\"${live(value)}\"\n label=\"API base URI\"\n type=\"url\"\n ?readOnly=\"${!!baseUri}\"\n @change=\"${this.handleCustomChange}\"\n @select=\"${EventUtils.cancelEvent}\"\n >\n <ui-icon-button\n slot=\"suffix\"\n aria-label=\"Activate to clear and close the input\"\n title=\"Clears and closes the input\"\n ?hidden=\"${!!baseUri}\"\n @click=\"${this.disabledCustomUri}\"\n >\n <ui-icon role=\"presentation\" icon=\"close\"></ui-icon>\n </ui-icon-button>\n </ui-text-field>\n `\n }\n\n /**\n * @returns Template result for the drop down element.\n */\n protected renderSelector(hidden: boolean): TemplateResult {\n const { value, opened = false } = this\n const finalValue = value === '' ? undefined : value\n return html`\n <ui-dropdown-list\n class=\"api-server-dropdown\"\n closeOnOutsideClick\n matchTriggerWidth\n ?hidden=\"${hidden}\"\n .open=\"${opened}\"\n @open=\"${this.handleDropdownOpen}\"\n @select=\"${this.handleSelection}\"\n >\n <ui-text-field\n class=\"trigger\"\n label=\"Select server\"\n readOnly\n .value=\"${finalValue || ''}\"\n @select=\"${EventUtils.cancelEvent}\"\n >\n <ui-icon icon=\"arrowDropDown\" role=\"presentation\" slot=\"suffix\"></ui-icon>\n </ui-text-field>\n <ui-list slot=\"dropdown\" role=\"menu\" selector=\"[data-value]\" selectActive>\n ${this.renderSelectorList()}\n </ui-list>\n </ui-dropdown-list>\n `\n }\n\n /**\n * Call the render functions for\n * - Server options (from AMF Model)\n * - Custom URI option\n * - Extra slot\n * @returns The combination of all options\n */\n protected renderSelectorList(): TemplateResult {\n return html` ${this.renderServerList()} ${this.renderSlot()} ${this.renderCustomUri()} `\n }\n\n /**\n * @returns The template for the custom URI list item.\n */\n protected renderCustomUri(): TemplateResult | typeof nothing {\n const { custom } = this\n if (!custom) {\n return nothing\n }\n return html`\n <ui-list-item role=\"menuitem\" data-value=\"custom\" class=\"custom-option\">Custom base URI</ui-list-item>\n `\n }\n\n /**\n * @returns Template result for the drop down list options for current servers\n */\n protected renderServerList(): TemplateResult[] | typeof nothing {\n const { _servers } = this\n if (!Array.isArray(_servers)) {\n return nothing\n }\n return _servers.map((server) => this.renderServerListItem(server))\n }\n\n /**\n * @param server The server definition\n * @returns The template for a server list item.\n */\n protected renderServerListItem(server: ApiDefinitions.IApiServer): TemplateResult {\n return html`\n <ui-list-item role=\"menuitem\" data-value=\"${server.url}\" data-item=\"server-dropdown-option\"\n >${server.url}</ui-list-item\n >\n `\n }\n\n protected renderSlot(): TemplateResult {\n return html`<slot name=\"custom-base-uri\" @slotchange=\"${this.handleSlot}\"></slot>`\n }\n}\n"]}
1
+ {"version":3,"file":"ApiServerPicker.element.js","sourceRoot":"","sources":["../../../../src/elements/amf/ApiServerPicker.element.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAA4C,OAAO,EAAE,MAAM,KAAK,CAAA;AAC7E,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAC1D,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAA;AAE7C,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAA;AAClE,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAA;AAG3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAEhE,OAAO,2BAA2B,CAAA;AAClC,OAAO,4CAA4C,CAAA;AACnD,OAAO,0BAA0B,CAAA;AACjC,OAAO,+BAA+B,CAAA;AACtC,OAAO,sCAAsC,CAAA;AAC7C,OAAO,wCAAwC,CAAA;;sBA2DF,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAA5C,eAAgB,SAAQ,WAAoB;;;gCAM9D,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,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ent":["import { html, type TemplateResult, type PropertyValues, nothing } from 'lit'\nimport { property, query, state } from 'lit/decorators.js'\nimport { live } from 'lit/directives/live.js'\nimport type { IApiServer } from '@api-client/core/amf/definitions/Api.js'\nimport { cancelEvent } from '@api-client/core/lib/events/Utils.js'\nimport { Events } from '../../events/amf/Events.js'\nimport { EventTypes } from '../../events/amf/EventTypes.js'\nimport type { SelectionType, ServerType } from '../../amf/types.js'\nimport UiDropdownList, { type UiDropdownListSelection } from '../../md/dropdown-list/internals/UiDropdownList.js'\nimport { ApiDocumentationBase } from './ApiDocumentationBase.js'\nimport type Input from '../../md/input/Input.js'\nimport '../../md/icons/ui-icon.js'\nimport '../../md/dropdown-list/ui-dropdown-list.js'\nimport '../../md/list/ui-list.js'\nimport '../../md/list/ui-list-item.js'\nimport '../../md/text-field/ui-text-field.js'\nimport '../../md/icon-button/ui-icon-button.js'\n\ninterface ICustomServer {\n index: number\n value: string\n}\n\ninterface IAutoSelectOptions {\n /**\n * The preferred URI value to use to select.\n */\n preferred?: string\n /**\n * When set to `true` it only allows to select the value from API servers or custom servers.\n * It won't select the value as a `custom` value.\n */\n noCustom?: boolean\n}\n\n/**\n * An element that presents a list of servers defined in the currently loaded API.\n * The user can select a server they prefer to use with the rest of the API documentation UI.\n *\n * The element dispatched the `apiserverchanged` event when the selection is made. This event\n * is dispatched when the selection is made automatically after querying for server data or when\n * the user decide to select a different option.\n *\n * ```javascript\n * const template = html`<api-server-picker @apiserverchanged=\"${this._serverChanged}\"></api-server-picker>`;\n * ```\n *\n * The event is dispatched with the `detail` object that has the `value` with the current\n * base URI of the selected server, optional `id` with the graph ID of the selected server,\n * and the type of the current selection. The `type` property is one of: `server`\n * (pick is one of the predefined servers), `custom` (user entered value), or `extra`\n * (one of the added server definitions from the outside of the API specification.)\n *\n * The picker allows the user to enter a custom value of the base URI when the `custom`\n * property is set. In this case, the user can select the \"custom\" value in the\n * drop-down options list which then renders an input field where the user can change the value.\n * The `apiserverchanged` event is dispatched after the user commit the change in the input field (enter, blur).\n *\n * Additionally, the element offers a named `<slot>` (custom-base-uri) which renders all passed items\n * in the dropdown. All items that have `data-value` attribute set are selectable as the server value.\n *\n * ```javascript\n * const template = html`\n * <api-server-picker @apiserverchanged=\"${this._serverChanged}\">\n * <ui-list-item slot=\"custom-base-uri\" data-value=\"http://mocking.com\">Mocking service</ui-list-item>\n * </api-server-picker>`;\n * ```\n *\n * By default all server items are rendered as `<ui-list-item>`. However, you can pass any element\n * to make the experience more compelling to the user (like adding a section header).\n *\n * @fires apiserverchanged - The event dispatched when a server selection change.\n * @fires serverscountchanged - The event dispatched when a server count change.\n * @fires query - Dispatched when the element asks the context store for servers info.\n */\nexport default class ApiServerPicker extends ApiDocumentationBase {\n /**\n * Currently selected type of the input.\n * `server` | `extra` | `custom`\n * @attribute\n */\n @property({ type: String, reflect: true }) accessor type: ServerType | undefined\n\n @state() protected accessor _graphLoaded: boolean | undefined\n\n /**\n * When set it automatically selected the first server from the list of servers when selection is missing.\n * @attribute\n */\n @property({ type: Boolean, reflect: true }) accessor auto: boolean | undefined\n\n /**\n * When set the `Custom base URI` is rendered in the dropdown\n * @attribute\n */\n @property({ type: Boolean, reflect: true }) accessor custom: boolean | undefined\n\n /**\n * A programmatic access to the opened state of the drop down.\n * Note, this does nothing when custom element is rendered.\n * @attribute\n */\n @property({ type: Boolean, reflect: true }) accessor opened: boolean | undefined\n\n /**\n * The graph domain id of the selected domain object.\n * @attribute\n */\n @property({ type: String, reflect: true }) accessor omainId: string | undefined\n\n /**\n * The selected domain type.\n * This is an abstract name from the api navigation.\n * @attribute\n */\n @property({ type: String, reflect: true }) accessor domainType: SelectionType | undefined\n\n /**\n * The current base URI value from either (in order) the baseUri, current value, or just empty string.\n * @attribute\n */\n @property({ type: String }) accessor value: string | undefined\n\n /**\n * The `baseUri` property overrides any server definition and turns the picker into the\n * \"custom\" mode.\n * @attribute\n */\n @property({ type: String }) accessor baseUri: string | undefined\n\n protected _debounceValue?: number\n\n /**\n * Holds the size of rendered custom servers.\n */\n protected _customNodesCount: number\n\n /**\n * A list of custom items rendered in the slot.\n */\n @state() protected accessor _customItems: ICustomServer[]\n\n @state() protected accessor _servers: IApiServer[] | undefined\n\n /**\n * Returns a list of custom servers found in the element's DOM.\n * For an item to be included in the list it has to have the `data-value=\"...\"` attribute set.\n */\n get customServers(): string[] {\n return this._customItems.map((i) => i.value)\n }\n\n /**\n * Returns a list of servers defined in the API.\n */\n get apiServers(): string[] {\n return (this._servers || []).map((i) => i.url)\n }\n\n /**\n * @returns Total number of list items being rendered.\n */\n get serversCount(): number {\n const { custom, _servers = [], _customItems } = this\n const offset = custom ? 1 : 0\n const serversCount = _servers.length + _customItems.length + offset\n return serversCount\n }\n\n protected _onApiServerChange: EventListener | null = null\n\n /**\n * @returns Previously registered callback function for the `api-server-changed` event.\n */\n get onapiserverchange(): EventListener | null {\n return this._onApiServerChange\n }\n\n /**\n * @param value A callback function to be called when `api-server-changed` event is dispatched.\n */\n set onapiserverchange(value: EventListener | null) {\n const old = this._onApiServerChange\n if (old) {\n this.removeEventListener(EventTypes.Server.serverChange, old)\n }\n const isFn = typeof value === 'function'\n if (isFn) {\n this._onApiServerChange = value\n this.addEventListener(EventTypes.Server.serverChange, value)\n } else {\n this._onApiServerChange = null\n }\n }\n\n protected _onServersCountChangeValue: EventListener | null = null\n\n /**\n * @returns Previously registered callback function for the `servers-count-changed` event.\n */\n get onserverscountchange(): EventListener | null {\n return this._onServersCountChangeValue || null\n }\n\n /**\n * @param value A callback function to be called when `servers-count-changed` event is dispatched.\n */\n set onserverscountchange(value: EventListener | null) {\n const old = this._onServersCountChangeValue\n if (old) {\n this.removeEventListener(EventTypes.Server.serverCountChange, old)\n }\n const isFn = typeof value === 'function'\n if (isFn) {\n this._onServersCountChangeValue = value\n this.addEventListener(EventTypes.Server.serverCountChange, value)\n } else {\n this._onServersCountChangeValue = null\n }\n }\n\n protected _boundEvent: () => void\n\n @query('.uri-input')\n protected accessor customInput: Input | null = null\n\n constructor() {\n super()\n this.queryDebouncerTimeout = 1\n this._customNodesCount = 0\n this._graphLoaded = false\n this._customItems = []\n this._boundEvent = (): void => {\n this._processDebounce()\n }\n }\n\n override connectedCallback(): void {\n super.connectedCallback()\n this.eventsTarget.addEventListener(EventTypes.Store.graphChange, this._boundEvent)\n this._processDebounce()\n }\n\n override disconnectedCallback(): void {\n super.disconnectedCallback()\n this.eventsTarget.removeEventListener(EventTypes.Store.graphChange, this._boundEvent)\n if (this._debounceValue) {\n clearTimeout(this._debounceValue)\n this._debounceValue = undefined\n }\n }\n\n protected override shouldUpdate(_changedProperties: PropertyValues<this>): boolean {\n if (_changedProperties.has('value')) {\n if (this.baseUri) {\n this.value = this.baseUri\n return false\n }\n // const oldValue = _changedProperties.get('value');\n // const newValue = this.value;\n\n // if (newValue && this._isValueCustom(newValue) && !this.custom) {\n // // eslint-disable-next-line no-console\n // console.warn(`Trying to set a custom value on the selector but the \"custom\" is not set.`);\n // this.value = oldValue;\n // return _changedProperties.size !== 1;\n // }\n }\n return true\n }\n\n protected override updated(_changedProperties: PropertyValues<this>): void {\n super.updated(_changedProperties)\n if (_changedProperties.has('domainType') || _changedProperties.has('domainId')) {\n this._processDebounce()\n }\n if (_changedProperties.has('custom')) {\n this.notifyServersCount()\n if (!this.custom && this.type === 'custom') {\n this.disabledCustomUri()\n }\n }\n\n if (_changedProperties.has('auto') && this.auto && !this.value) {\n this._autoSelect({ preferred: this.value })\n }\n if (_changedProperties.has('value')) {\n this._valueChanged(this.value)\n }\n if (_changedProperties.has('baseUri') && this.baseUri) {\n this.value = this.baseUri\n this.type = 'custom'\n }\n }\n\n /**\n * Calls the `queryGraph()` function in a debouncer.\n */\n protected _processDebounce(): void {\n if (this._debounceValue) {\n clearTimeout(this._debounceValue)\n }\n this._debounceValue = setTimeout(() => {\n this._debounceValue = undefined\n this.processGraph()\n }, this.queryDebouncerTimeout) as unknown as number\n }\n\n /**\n * Queries for the current API server data from the store.\n */\n override async processGraph(): Promise<void> {\n this._graphLoaded = false\n let oldValue = this.value\n const oldCustom = this.isValueCustom(oldValue)\n await this._queryServers()\n const isCustom = this.isValueCustom(oldValue)\n this._graphLoaded = true\n if (!oldCustom && isCustom) {\n oldValue = undefined\n }\n const noCustom = !(oldCustom && isCustom)\n this._autoSelect({ preferred: oldValue, noCustom })\n this.notifyServersCount()\n }\n\n /**\n * Queries for the current servers value.\n */\n protected async _queryServers(): Promise<void> {\n const { domainId, domainType } = this\n let endpointId\n let methodId\n if (domainType === 'operation') {\n methodId = domainId\n } else if (domainType === 'resource') {\n endpointId = domainId\n }\n try {\n const info = await Events.Server.query(this, {\n endpointId,\n methodId,\n })\n this._servers = info\n } catch (e) {\n const ex = e as Error\n this._servers = undefined\n Events.Telemetry.exception(this, ex.message, false)\n Events.Reporting.error(this, ex, `Unable to query for API servers: ${ex.message}`, this.localName)\n }\n }\n\n /**\n * Checks whether the passed value would be rendered as a \"custom\" value.\n * The value is \"custom\" if it cannot be matched with server value for an API defined server or\n * a custom server passed in the DOM.\n *\n * @param value The value to test.\n * @returns `true` when the value would be rendered as \"custom\".\n */\n isValueCustom(value?: string): boolean {\n const { _servers = [], _customItems } = this\n const srv = _servers.some((s) => s.url === value)\n if (srv) {\n return false\n }\n const custom = _customItems.some((s) => s.value === value)\n if (custom) {\n return false\n }\n // returns false for no value.\n return !!value\n }\n\n /**\n * This only makes sure whether the set value is a \"custom\" value while no selection is made.\n *\n * @param value The current value.\n */\n protected _valueChanged(value?: string): void {\n if (!value || !this.custom || !this._graphLoaded) {\n return\n }\n\n const { _servers = [], _customItems, _graphLoaded } = this\n if (_graphLoaded) {\n return\n }\n if (_servers.some((s) => s.url === value)) {\n return\n }\n if (_customItems.some((s) => s.value === value)) {\n return\n }\n this.value = value\n this.type = 'custom'\n Events.Server.serverChange(this, value, this.type)\n }\n\n /**\n * Automatically selects one of available values.\n *\n * When the `preferred` is set it checks whether this value is on the servers list. If so this value is used.\n * If none match then it checks for custom servers and if they have this value then it is set.\n *\n * Otherwise it takes files value of servers or custom servers (when no servers) and sets this value instead.\n *\n * Caveats:\n * - it does nothing when `auto` is not set\n * - it does nothing when `type` is `custom`\n * - it won't set the \"first\" server or custom server value when the graph is being loaded.\n *\n * @param preferred The preferred value to be selected.\n */\n protected _autoSelect({ preferred, noCustom }: IAutoSelectOptions = {}): void {\n const { auto, type } = this\n if (type === 'custom') {\n if (preferred) {\n const isCustom = this.isValueCustom(preferred)\n if (!isCustom) {\n this.type = undefined\n } else {\n this.value = preferred\n Events.Server.serverChange(this, preferred || '', this.type as ServerType)\n return\n }\n } else {\n return\n }\n }\n if (!auto) {\n return\n }\n const { _servers = [], _customItems } = this\n const srv = _servers.find((s) => s.url === preferred)\n if (srv) {\n this.value = preferred\n this.type = 'server'\n Events.Server.serverChange(this, preferred || '', this.type as ServerType)\n return\n }\n const custom = _customItems.find((s) => s.value === preferred)\n if (custom) {\n this.value = custom.value\n this.type = 'extra'\n Events.Server.serverChange(this, custom.value, this.type as ServerType)\n return\n }\n if (!this._graphLoaded) {\n // do not pre-select values before servers query ends.\n return\n }\n\n // todo: if anything is wrong with auto-select and the custom values, remove these lines.\n if (this.custom && preferred && !noCustom) {\n this.value = preferred\n this.type = 'custom'\n Events.Server.serverChange(this, preferred, this.type as ServerType)\n return\n }\n\n const [firstServer] = _servers\n if (firstServer) {\n this.value = firstServer.url\n this.type = 'server'\n Events.Server.serverChange(this, firstServer.url, this.type as ServerType)\n return\n }\n const [firstCustom] = _customItems\n if (firstCustom) {\n this.value = firstCustom.value\n this.type = 'extra'\n Events.Server.serverChange(this, firstCustom.value, this.type as ServerType)\n }\n }\n\n protected handleDropdownOpen(e: Event): void {\n const node = e.target as UiDropdownList\n this.opened = node.open\n }\n\n protected handleSelection(e: CustomEvent<UiDropdownListSelection>): void {\n e.preventDefault()\n const { _graphLoaded, _customItems } = this\n if (!_graphLoaded) {\n return\n }\n const { item } = e.detail\n const { value } = item.dataset\n if (!value) {\n return\n }\n if (value === 'custom') {\n this.enableCustomUri()\n return\n }\n const custom = _customItems.find((i) => i.value === value)\n this.value = value\n if (custom) {\n this.type = 'extra'\n } else {\n this.type = 'server'\n }\n Events.Server.serverChange(this, value, this.type)\n }\n\n protected handleSlot(e: Event): void {\n const slot = e.target as HTMLSlotElement\n const elements = slot.assignedElements({ flatten: true })\n const servers: ICustomServer[] = []\n elements.forEach((element, index) => {\n const value = element.getAttribute('data-value')\n if (!value) {\n return\n }\n element.setAttribute('role', 'menuitem')\n servers.push({\n index,\n value,\n })\n })\n this._customItems = servers\n this.notifyServersCount()\n }\n\n /**\n * Dispatches the `servers-count-changed` event with the current number of rendered servers.\n */\n protected notifyServersCount(): void {\n Events.Server.serverCountChange(this, this.serversCount)\n }\n\n protected handleCustomChange(e: Event): void {\n const { value } = e.target as Input\n this.value = value\n Events.Server.serverChange(this, this.value, this.type as ServerType)\n }\n\n /**\n * Resets current selection to a default value.\n */\n protected disabledCustomUri(): void {\n const { baseUri } = this\n if (baseUri) {\n this.value = baseUri\n this.type = 'custom'\n } else {\n this.value = ''\n this.type = 'server'\n }\n Events.Server.serverChange(this, '', this.type)\n this.opened = false\n this._autoSelect()\n }\n\n protected async enableCustomUri(): Promise<void> {\n this.type = 'custom'\n this.value = ''\n this.opened = false\n Events.Server.serverChange(this, this.value, this.type)\n await this.updateComplete\n const { customInput } = this\n customInput?.focus()\n }\n\n /**\n * Removes the currently rendered servers from the element.\n * This allow to programmatically manipulate the list of servers by removing all API related definitions.\n */\n removeServers(): void {\n this._servers = []\n }\n\n override render(): TemplateResult {\n const { type } = this\n const isCustom = type === 'custom'\n return html` ${isCustom ? this.renderCustomUriInput() : ''} ${this.renderSelector(isCustom)} `\n }\n\n /**\n * @returns Template result for the custom input.\n */\n protected renderCustomUriInput(): TemplateResult {\n const { value = '', baseUri } = this\n return html`\n <ui-text-field\n class=\"uri-input\"\n .value=\"${live(value)}\"\n label=\"API base URI\"\n type=\"url\"\n ?readOnly=\"${!!baseUri}\"\n @change=\"${this.handleCustomChange}\"\n @select=\"${cancelEvent}\"\n >\n <ui-icon-button\n slot=\"suffix\"\n aria-label=\"Activate to clear and close the input\"\n title=\"Clears and closes the input\"\n ?hidden=\"${!!baseUri}\"\n @click=\"${this.disabledCustomUri}\"\n >\n <ui-icon role=\"presentation\" icon=\"close\"></ui-icon>\n </ui-icon-button>\n </ui-text-field>\n `\n }\n\n /**\n * @returns Template result for the drop down element.\n */\n protected renderSelector(hidden: boolean): TemplateResult {\n const { value, opened = false } = this\n const finalValue = value === '' ? undefined : value\n return html`\n <ui-dropdown-list\n class=\"api-server-dropdown\"\n closeOnOutsideClick\n matchTriggerWidth\n ?hidden=\"${hidden}\"\n .open=\"${opened}\"\n @open=\"${this.handleDropdownOpen}\"\n @select=\"${this.handleSelection}\"\n >\n <ui-text-field\n class=\"trigger\"\n label=\"Select server\"\n readOnly\n .value=\"${finalValue || ''}\"\n @select=\"${cancelEvent}\"\n >\n <ui-icon icon=\"arrowDropDown\" role=\"presentation\" slot=\"suffix\"></ui-icon>\n </ui-text-field>\n <ui-list slot=\"dropdown\" role=\"menu\" selector=\"[data-value]\" selectActive>\n ${this.renderSelectorList()}\n </ui-list>\n </ui-dropdown-list>\n `\n }\n\n /**\n * Call the render functions for\n * - Server options (from AMF Model)\n * - Custom URI option\n * - Extra slot\n * @returns The combination of all options\n */\n protected renderSelectorList(): TemplateResult {\n return html` ${this.renderServerList()} ${this.renderSlot()} ${this.renderCustomUri()} `\n }\n\n /**\n * @returns The template for the custom URI list item.\n */\n protected renderCustomUri(): TemplateResult | typeof nothing {\n const { custom } = this\n if (!custom) {\n return nothing\n }\n return html`\n <ui-list-item role=\"menuitem\" data-value=\"custom\" class=\"custom-option\">Custom base URI</ui-list-item>\n `\n }\n\n /**\n * @returns Template result for the drop down list options for current servers\n */\n protected renderServerList(): TemplateResult[] | typeof nothing {\n const { _servers } = this\n if (!Array.isArray(_servers)) {\n return nothing\n }\n return _servers.map((server) => this.renderServerListItem(server))\n }\n\n /**\n * @param server The server definition\n * @returns The template for a server list item.\n */\n protected renderServerListItem(server: IApiServer): TemplateResult {\n return html`\n <ui-list-item role=\"menuitem\" data-value=\"${server.url}\" data-item=\"server-dropdown-option\"\n >${server.url}</ui-list-item\n >\n `\n }\n\n protected renderSlot(): TemplateResult {\n return html`<slot name=\"custom-base-uri\" @slotchange=\"${this.handleSlot}\"></slot>`\n }\n}\n"]}
@@ -1,16 +1,16 @@
1
1
  import { TemplateResult } from 'lit';
2
- import { ApiDefinitions } from '@api-client/core/browser.js';
3
2
  import { ApiDocumentationBase } from './ApiDocumentationBase.js';
3
+ import type { IApiEndPointWithOperationsListItem, IApiOperationListItem, IApiServer, IApiSummary } from '@api-client/core/amf/definitions/Api.js';
4
4
  import '../../elements/highlight/marked-highlight.js';
5
5
  /**
6
6
  * A web component that renders the documentation page for an API documentation (like in RAML documentations) built from
7
7
  * the AMF graph model.
8
8
  */
9
9
  export default class ApiSummary extends ApiDocumentationBase {
10
- protected summaryValue?: ApiDefinitions.IApiSummary;
11
- get summary(): ApiDefinitions.IApiSummary | undefined;
12
- protected serversValue?: ApiDefinitions.IApiServer[];
13
- get servers(): ApiDefinitions.IApiServer[] | undefined;
10
+ protected summaryValue?: IApiSummary;
11
+ get summary(): IApiSummary | undefined;
12
+ protected serversValue?: IApiServer[];
13
+ get servers(): IApiServer[] | undefined;
14
14
  /**
15
15
  * A property to set to override AMF's model base URI information.
16
16
  * When this property is set, the `endpointUri` property is recalculated.
@@ -33,8 +33,8 @@ export default class ApiSummary extends ApiDocumentationBase {
33
33
  */
34
34
  accessor hideToc: boolean | undefined;
35
35
  accessor protocols: string[] | undefined;
36
- protected endpointsValue: ApiDefinitions.IApiEndPointWithOperationsListItem[] | undefined;
37
- get endpoints(): ApiDefinitions.IApiEndPointWithOperationsListItem[] | undefined;
36
+ protected endpointsValue: IApiEndPointWithOperationsListItem[] | undefined;
37
+ get endpoints(): IApiEndPointWithOperationsListItem[] | undefined;
38
38
  protected isAsyncValue?: boolean;
39
39
  constructor();
40
40
  connectedCallback(): void;
@@ -71,20 +71,20 @@ export default class ApiSummary extends ApiDocumentationBase {
71
71
  * @param server Server definition
72
72
  * @returns A template for a single server in the main API definition
73
73
  */
74
- protected baseUriTemplate(server?: ApiDefinitions.IApiServer): TemplateResult;
74
+ protected baseUriTemplate(server?: IApiServer): TemplateResult;
75
75
  /**
76
76
  * @param server Server definition
77
77
  * @returns Template for a server list items when there is more than one server.
78
78
  */
79
- protected serverTemplate(server: ApiDefinitions.IApiServer): TemplateResult;
79
+ protected serverTemplate(server: IApiServer): TemplateResult;
80
80
  protected protocolsTemplate(): TemplateResult | string;
81
81
  protected contactInfoTemplate(): TemplateResult | string;
82
82
  protected licenseTemplate(): TemplateResult | string;
83
83
  protected termsOfServiceTemplate(): TemplateResult | string;
84
84
  protected endpointsTemplate(): TemplateResult | string;
85
- protected endpointTemplate(item: ApiDefinitions.IApiEndPointWithOperationsListItem): TemplateResult;
86
- protected endpointPathTemplate(item: ApiDefinitions.IApiEndPointWithOperationsListItem): TemplateResult;
87
- protected endpointNameTemplate(item: ApiDefinitions.IApiEndPointWithOperationsListItem): TemplateResult | string;
88
- protected methodTemplate(item: ApiDefinitions.IApiOperationListItem, endpoint: ApiDefinitions.IApiEndPointWithOperationsListItem): TemplateResult;
85
+ protected endpointTemplate(item: IApiEndPointWithOperationsListItem): TemplateResult;
86
+ protected endpointPathTemplate(item: IApiEndPointWithOperationsListItem): TemplateResult;
87
+ protected endpointNameTemplate(item: IApiEndPointWithOperationsListItem): TemplateResult | string;
88
+ protected methodTemplate(item: IApiOperationListItem, endpoint: IApiEndPointWithOperationsListItem): TemplateResult;
89
89
  }
90
90
  //# sourceMappingURL=ApiSummary.element.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ApiSummary.element.d.ts","sourceRoot":"","sources":["../../../../src/elements/amf/ApiSummary.element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,cAAc,EAAE,MAAM,KAAK,CAAA;AAI1C,OAAO,EAAgB,cAAc,EAAE,MAA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IAYjC,SAAS,CAAC,aAAa,IAAI,cAAc,GAAG,MAAM;IAWlD,SAAS,CAAC,eAAe,IAAI,cAAc,GAAG,MAAM;IAWpD;;;OAGG;IACH,SAAS,CAAC,eAAe,IAAI,cAAc,GAAG,MAAM;IAmBpD;;;OAGG;IACH,SAAS,CAAC,eAAe,CAAC,MAAM,CAAC,EAAE,UAAU,GAAG,cAAc;IAU9D;;;OAGG;IACH,SAAS,CAAC,cAAc,CAAC,MAAM,EAAE,UAAU,GAAG,cAAc;IAY5D,SAAS,CAAC,iBAAiB,IAAI,cAAc,GAAG,MAAM;IAWtD,SAAS,CAAC,mBAAmB,IAAI,cAAc,GAAG,MAAM;IAqBxD,SAAS,CAAC,eAAe,IAAI,cAAc,GAAG,MAAM;IAgBpD,SAAS,CAAC,sBAAsB,IAAI,cAAc,GAAG,MAAM;IAa3D,SAAS,CAAC,iBAAiB,IAAI,cAAc,GAAG,MAAM;IAmBtD,SAAS,CAAC,gBAAgB,CAAC,IAAI,EAAE,kCAAkC,GAAG,cAAc;IASpF,SAAS,CAAC,oBAAoB,CAAC,IAAI,EAAE,kCAAkC,GAAG,cAAc;IAaxF,SAAS,CAAC,oBAAoB,CAAC,IAAI,EAAE,kCAAkC,GAAG,cAAc,GAAG,MAAM;IAiBjG,SAAS,CAAC,cAAc,CAAC,IAAI,EAAE,qBAAqB,EAAE,QAAQ,EAAE,kCAAkC,GAAG,cAAc;CAcpH"}
@@ -3,7 +3,6 @@ import { html } from 'lit';
3
3
  import { property, state } from 'lit/decorators.js';
4
4
  import { unsafeHTML } from 'lit/directives/unsafe-html.js';
5
5
  import { ifDefined } from 'lit/directives/if-defined.js';
6
- import { AmfNamespace } from '@api-client/core/browser.js';
7
6
  import { ApiDocumentationBase } from './ApiDocumentationBase.js';
8
7
  import { sanitizeHTML } from '../../amf/lib/Utils.js';
9
8
  import * as UrlLib from '../../amf/lib/UrlUtils.js';
@@ -13,6 +12,7 @@ import { ReportingEvents } from '../../events/amf/ReportingEvents.js';
13
12
  import { TelemetryEvents } from '../../events/amf/TelemetryEvents.js';
14
13
  import { ServerEvents } from '../../events/amf/ServerEvents.js';
15
14
  import { EndpointEvents } from '../../events/amf/EndpointEvents.js';
15
+ import { AmfNamespace } from '@api-client/core/amf/definitions/Namespace.js';
16
16
  import '../../elements/highlight/marked-highlight.js';
17
17
  let ApiSummary = (() => {
18
18
  let _classSuper = ApiDocumentationBase;
@@ -1 +1 @@
1
- {"version":3,"file":"ApiSummary.element.js","sourceRoot":"","sources":["../../../../src/elements/amf/ApiSummary.element.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAkB,MAAM,KAAK,CAAA;AAC1C,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAA;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAA;AACxD,OAAO,EAAE,YAAY,EAAkB,MAAM,6BAA6B,CAAA;AAC1E,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAA;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAA;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAA;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAA;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAA;AACrE,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAA;AAEnE,OAAO,8CAA8C,CAAA;;sBAMb,oBAAoB;;;;;;;;;;;;;iBAAvC,UAAW,SAAQ,WAAoB;;;mCAkBzD,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAA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AAC,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,cAAc,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAA;YAC1F,OAAO,IAAI,CAAA,uCAAuC,IAAI,CAAC,eAAe;QAClE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC;qCAChD,GAAG;WAC7B,CAAA;QACT,CAAC;QAES,oBAAoB,CAAC,IAAuD;YACpF,OAAO,IAAI,CAAA;;;iBAGE,IAAI,CAAC,IAAI;mBACP,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC;;;WAG1B,IAAI,CAAC,IAAI;;KAEf,CAAA;QACH,CAAC;QAES,oBAAoB,CAAC,IAAuD;YACpF,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;gBACf,OAAO,EAAE,CAAA;YACX,CAAC;YACD,OAAO,IAAI,CAAA;;;iBAGE,IAAI,CAAC,IAAI;mBACP,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC;;;WAG1B,IAAI,CAAC,IAAI;;sCAEkB,IAAI,CAAC,IAAI;KAC1C,CAAA;QACH,CAAC;QAES,cAAc,CACtB,IAA0C,EAC1C,QAA2D;YAE3D,OAAO,IAAI,CAAA;;iBAEE,GAAG,QAAQ,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,EAAE;;uBAE3B,IAAI,CAAC,MAAM;mBACf,IAAI,CAAC,EAAE;;uBAEH,SAAS,CAAC,QAAQ,CAAC,EAAE,CAAC;;WAElC,IAAI,CAAC,MAAM;;KAEjB,CAAA;QACH,CAAC;;;AA5WH;;;GAGG;AACH,0BAyWC","sourcesContent":["import { html, TemplateResult } from 'lit'\nimport { property, state } from 'lit/decorators.js'\nimport { unsafeHTML } from 'lit/directives/unsafe-html.js'\nimport { ifDefined } from 'lit/directives/if-defined.js'\nimport { AmfNamespace, ApiDefinitions } from '@api-client/core/browser.js'\nimport { ApiDocumentationBase } from './ApiDocumentationBase.js'\nimport { sanitizeHTML } from '../../amf/lib/Utils.js'\nimport * as UrlLib from '../../amf/lib/UrlUtils.js'\nimport { NavigationEvents } from '../../events/amf/NavigationEvents.js'\nimport { ApiEvents } from '../../events/amf/ApiEvents.js'\nimport { ReportingEvents } from '../../events/amf/ReportingEvents.js'\nimport { TelemetryEvents } from '../../events/amf/TelemetryEvents.js'\nimport { ServerEvents } from '../../events/amf/ServerEvents.js'\nimport { EndpointEvents } from '../../events/amf/EndpointEvents.js'\nimport { SelectionType } from '../../amf/types.js'\nimport '../../elements/highlight/marked-highlight.js'\n\n/**\n * A web component that renders the documentation page for an API documentation (like in RAML documentations) built from\n * the AMF graph model.\n */\nexport default class ApiSummary extends ApiDocumentationBase {\n protected summaryValue?: ApiDefinitions.IApiSummary\n\n get summary(): ApiDefinitions.IApiSummary | undefined {\n return this.summaryValue\n }\n\n protected serversValue?: ApiDefinitions.IApiServer[]\n\n get servers(): ApiDefinitions.IApiServer[] | undefined {\n return this.serversValue\n }\n\n /**\n * A property to set to override AMF's model base URI information.\n * When this property is set, the `endpointUri` property is recalculated.\n * @attribute\n */\n @property({ type: String }) accessor baseUri: string | undefined\n\n /**\n * API title header level in value range from 1 to 6.\n * This is made for accessibility. It the component is used in a context\n * where headers order matters then this property is to be set to\n * arrange headers in the right order.\n *\n * @default 2\n * @attribute\n */\n @property({ type: Number }) accessor titleLevel: number | undefined\n\n /**\n * A property to hide the table of contents list of endpoints.\n * @attribute\n */\n @property({ type: Boolean }) accessor hideToc: boolean | undefined\n\n @state() accessor protocols: string[] | undefined\n\n protected endpointsValue: ApiDefinitions.IApiEndPointWithOperationsListItem[] | undefined\n\n get endpoints(): ApiDefinitions.IApiEndPointWithOperationsListItem[] | undefined {\n if (this.endpointsValue) {\n return [...this.endpointsValue]\n }\n return undefined\n }\n\n protected isAsyncValue?: boolean\n\n constructor() {\n super()\n this.titleLevel = 2\n }\n\n override connectedCallback(): void {\n super.connectedCallback()\n this.processDebounce()\n }\n\n /**\n * Queries the graph store for the API data.\n */\n override async processGraph(): Promise<void> {\n await this.querySummary()\n await this.queryServers()\n await this.queryEndpoints()\n await this.processSummary()\n this.requestUpdate()\n }\n\n /**\n * Queries the API store for the API summary object.\n */\n async querySummary(): Promise<void> {\n this.summaryValue = undefined\n try {\n const info = await ApiEvents.summary(this)\n this.summaryValue = info\n } catch (e) {\n const ex = e as Error\n TelemetryEvents.exception(this, ex.message, false)\n ReportingEvents.error(this, ex, `Unable to query for API summary data: ${ex.message}`, this.localName)\n }\n }\n\n /**\n * Queries the API store for the API summary object.\n */\n async queryServers(): Promise<void> {\n this.serversValue = undefined\n try {\n const info = await ServerEvents.query(this)\n this.serversValue = info\n } catch (e) {\n const ex = e as Error\n TelemetryEvents.exception(this, ex.message, false)\n ReportingEvents.error(this, ex, `Unable to query for API servers: ${ex.message}`, this.localName)\n }\n }\n\n /**\n * Logic executed after the summary is requested from the store.\n */\n async processSummary(): Promise<void> {\n this.isAsyncValue = undefined\n const { summary } = this\n if (!summary) {\n return\n }\n this.isAsyncValue = summary.types.includes(AmfNamespace.aml.vocabularies.apiContract.AsyncAPI)\n }\n\n /**\n * Queries the API endpoints and methods.\n */\n async queryEndpoints(): Promise<void> {\n this.endpointsValue = undefined\n try {\n const info = await EndpointEvents.list(this)\n this.endpointsValue = info\n } catch (e) {\n const ex = e as Error\n TelemetryEvents.exception(this, ex.message, false)\n ReportingEvents.error(this, ex, `Unable to query for API endpoints: ${ex.message}`, this.localName)\n }\n }\n\n protected navigateHandler(e: Event): void {\n e.preventDefault()\n const target = e.composedPath()[0] as HTMLElement\n const data = target.dataset\n if (!data.id || !data.shapeType) {\n return\n }\n NavigationEvents.apiNavigate(this, data.id, data.shapeType as SelectionType, data.parent)\n }\n\n override render(): TemplateResult {\n const { summary } = this\n if (!summary) {\n return html``\n }\n return html`\n ${this.titleTemplate()} ${this.versionTemplate()} ${this.descriptionTemplate(summary.description)}\n ${this.serversTemplate()} ${this.protocolsTemplate()} ${this.contactInfoTemplate()} ${this.licenseTemplate()}\n ${this.termsOfServiceTemplate()} ${this.endpointsTemplate()}\n `\n }\n\n protected titleTemplate(): TemplateResult | string {\n const { summary, titleLevel } = this\n if (!summary || !summary.name) {\n return ''\n }\n return html` <div class=\"api-title\" role=\"heading\" aria-level=\"${titleLevel || ''}\" part=\"api-title\">\n <label part=\"api-title-label\">API title:</label>\n <span class=\"text-selectable\">${summary.name}</span>\n </div>`\n }\n\n protected versionTemplate(): TemplateResult | string {\n const { summary } = this\n if (!summary || !summary.version) {\n return ''\n }\n return html` <p class=\"inline-description version\" part=\"api-version\">\n <label>Version:</label>\n <span class=\"text-selectable\">${summary.version}</span>\n </p>`\n }\n\n /**\n * @returns A template for a server, servers, or no servers\n * whether it's defined in the main API definition or not.\n */\n protected serversTemplate(): TemplateResult | string {\n const { servers, baseUri } = this\n if (baseUri) {\n return this.baseUriTemplate(undefined)\n }\n if (!servers || !servers.length) {\n return ''\n }\n if (servers.length === 1) {\n return this.baseUriTemplate(servers[0])\n }\n return html` <div class=\"servers\" slot=\"markdown-html\">\n <p class=\"servers-label\">API servers</p>\n <ul class=\"server-lists\">\n ${servers.map((server) => this.serverTemplate(server))}\n </ul>\n </div>`\n }\n\n /**\n * @param server Server definition\n * @returns A template for a single server in the main API definition\n */\n protected baseUriTemplate(server?: ApiDefinitions.IApiServer): TemplateResult {\n const { baseUri, protocols } = this\n const uri = UrlLib.computeApiBaseUri({ baseUri, server, protocols })\n return html`\n <div class=\"endpoint-url\">\n <div class=\"url-value\">${uri}</div>\n </div>\n `\n }\n\n /**\n * @param server Server definition\n * @returns Template for a server list items when there is more than one server.\n */\n protected serverTemplate(server: ApiDefinitions.IApiServer): TemplateResult {\n const { baseUri, protocols } = this\n const uri = UrlLib.computeApiBaseUri({ baseUri, server, protocols })\n const { description } = server\n return html` <li class=\"text-selectable\">\n ${uri}\n ${description\n ? html`<marked-highlight .markdown=${description} class=\"server-description\"></marked-highlight>`\n : ''}\n </li>`\n }\n\n protected protocolsTemplate(): TemplateResult | string {\n const { summary } = this\n if (!summary || !summary.schemes || !summary.schemes.length) {\n return ''\n }\n const result = summary.schemes.map((item) => html`<span class=\"chip text-selectable\">${item}</span>`)\n\n return html` <label class=\"section\">Supported protocols</label>\n <div class=\"protocol-chips\">${result}</div>`\n }\n\n protected contactInfoTemplate(): TemplateResult | string {\n const { summary } = this\n if (!summary || !summary.provider || !summary.provider.name) {\n return ''\n }\n const { name = '', email, url } = summary.provider\n const link = url\n ? sanitizeHTML(`<a href=\"${url}\" target=\"_blank\" class=\"app-link provider-url text-selectable\">${url}</a>`)\n : ''\n return html` <section role=\"contentinfo\" class=\"docs-section\" part=\"info-section\">\n <label class=\"section\">Contact information</label>\n <p class=\"inline-description\" part=\"info-inline-desc\">\n <span class=\"provider-name text-selectable\">${name}</span>\n ${email\n ? html`<a class=\"app-link link-padding provider-email text-selectable\" href=\"mailto:${email}\">${email}</a>`\n : ''}\n </p>\n ${url ? html` <p class=\"inline-description text-selectable\" part=\"info-inline-desc\">${unsafeHTML(link)}</p>` : ''}\n </section>`\n }\n\n protected licenseTemplate(): TemplateResult | string {\n const { summary } = this\n if (!summary || !summary.license) {\n return ''\n }\n const { url, name } = summary.license\n if (!url || !name) {\n return ''\n }\n const link = sanitizeHTML(`<a href=\"${url}\" target=\"_blank\" class=\"app-link text-selectable\">${name}</a>`)\n return html` <section aria-labelledby=\"licenseLabel\" class=\"docs-section\" part=\"license-section\">\n <label class=\"section\" id=\"licenseLabel\">License</label>\n <p class=\"inline-description\">${unsafeHTML(link)}</p>\n </section>`\n }\n\n protected termsOfServiceTemplate(): TemplateResult | string {\n const { summary } = this\n if (!summary || !summary.termsOfService || !summary.termsOfService.length) {\n return ''\n }\n return html` <section aria-labelledby=\"tocLabel\" class=\"docs-section\">\n <label class=\"section\" id=\"tocLabel\">Terms of service</label>\n <marked-highlight .markdown=\"${summary.termsOfService}\" sanitize>\n <div slot=\"markdown-html\" class=\"markdown-body text-selectable\"></div>\n </marked-highlight>\n </section>`\n }\n\n protected endpointsTemplate(): TemplateResult | string {\n if (this.hideToc) {\n return ''\n }\n const endpoints = this.endpointsValue as ApiDefinitions.IApiEndPointWithOperationsListItem[]\n if (!endpoints || !endpoints.length) {\n return ''\n }\n const result = endpoints.map((item) => this.endpointTemplate(item))\n const pathLabel = this.isAsyncValue ? 'channels' : 'endpoints'\n return html`\n <div class=\"separator\" part=\"separator\"></div>\n <div class=\"toc\" part=\"toc\">\n <label class=\"section endpoints-title\">API ${pathLabel}</label>\n ${result}\n </div>\n `\n }\n\n protected endpointTemplate(item: ApiDefinitions.IApiEndPointWithOperationsListItem): TemplateResult {\n const { operations = [] } = item\n const ops = operations.length ? operations.map((op) => this.methodTemplate(op, item)) : ''\n return html` <div class=\"endpoint-item\" @click=\"${this.navigateHandler}\">\n ${item.name ? this.endpointNameTemplate(item) : this.endpointPathTemplate(item)}\n <div class=\"endpoint-header\">${ops}</div>\n </div>`\n }\n\n protected endpointPathTemplate(item: ApiDefinitions.IApiEndPointWithOperationsListItem): TemplateResult {\n return html`\n <a\n class=\"endpoint-path text-selectable\"\n href=\"#${item.path}\"\n data-id=\"${ifDefined(item.id)}\"\n data-shape-type=\"resource\"\n title=\"Open endpoint documentation\"\n >${item.path}</a\n >\n `\n }\n\n protected endpointNameTemplate(item: ApiDefinitions.IApiEndPointWithOperationsListItem): TemplateResult | string {\n if (!item.name) {\n return ''\n }\n return html`\n <a\n class=\"endpoint-path text-selectable\"\n href=\"#${item.path}\"\n data-id=\"${ifDefined(item.id)}\"\n data-shape-type=\"resource\"\n title=\"Open endpoint documentation\"\n >${item.name}</a\n >\n <p class=\"endpoint-path-name\">${item.path}</p>\n `\n }\n\n protected methodTemplate(\n item: ApiDefinitions.IApiOperationListItem,\n endpoint: ApiDefinitions.IApiEndPointWithOperationsListItem\n ): TemplateResult {\n return html`\n <a\n href=\"#${`${endpoint.path}/${item.method}`}\"\n class=\"http-label pill\"\n data-method=\"${item.method}\"\n data-id=\"${item.id}\"\n data-shape-type=\"operation\"\n data-parent=\"${ifDefined(endpoint.id)}\"\n title=\"Open method documentation\"\n >${item.method}</a\n >\n `\n }\n}\n"]}
1
+ {"version":3,"file":"ApiSummary.element.js","sourceRoot":"","sources":["../../../../src/elements/amf/ApiSummary.element.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAkB,MAAM,KAAK,CAAA;AAC1C,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAA;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAA;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAA;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAA;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAA;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAA;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAA;AACrE,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAA;AAQnE,OAAO,EAAE,YAAY,EAAE,MAAM,+CAA+C,CAAA;AAE5E,OAAO,8CAA8C,CAAA;;sBAMb,oBAAoB;;;;;;;;;;;;;iBAAvC,UAAW,SAAQ,WAAoB;;;mCAkBzD,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;sCAW1B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;mCAM1B,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;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AAO,IAAI,CAAA,uCAAuC,IAAI,CAAC,eAAe;QAClE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC;qCAChD,GAAG;WAC7B,CAAA;QACT,CAAC;QAES,oBAAoB,CAAC,IAAwC;YACrE,OAAO,IAAI,CAAA;;;iBAGE,IAAI,CAAC,IAAI;mBACP,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC;;;WAG1B,IAAI,CAAC,IAAI;;KAEf,CAAA;QACH,CAAC;QAES,oBAAoB,CAAC,IAAwC;YACrE,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;gBACf,OAAO,EAAE,CAAA;YACX,CAAC;YACD,OAAO,IAAI,CAAA;;;iBAGE,IAAI,CAAC,IAAI;mBACP,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC;;;WAG1B,IAAI,CAAC,IAAI;;sCAEkB,IAAI,CAAC,IAAI;KAC1C,CAAA;QACH,CAAC;QAES,cAAc,CAAC,IAA2B,EAAE,QAA4C;YAChG,OAAO,IAAI,CAAA;;iBAEE,GAAG,QAAQ,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,EAAE;;uBAE3B,IAAI,CAAC,MAAM;mBACf,IAAI,CAAC,EAAE;;uBAEH,SAAS,CAAC,QAAQ,CAAC,EAAE,CAAC;;WAElC,IAAI,CAAC,MAAM;;KAEjB,CAAA;QACH,CAAC;;;AAzWH;;;GAGG;AACH,0BAsWC","sourcesContent":["import { html, TemplateResult } from 'lit'\nimport { property, state } from 'lit/decorators.js'\nimport { unsafeHTML } from 'lit/directives/unsafe-html.js'\nimport { ifDefined } from 'lit/directives/if-defined.js'\nimport { ApiDocumentationBase } from './ApiDocumentationBase.js'\nimport { sanitizeHTML } from '../../amf/lib/Utils.js'\nimport * as UrlLib from '../../amf/lib/UrlUtils.js'\nimport { NavigationEvents } from '../../events/amf/NavigationEvents.js'\nimport { ApiEvents } from '../../events/amf/ApiEvents.js'\nimport { ReportingEvents } from '../../events/amf/ReportingEvents.js'\nimport { TelemetryEvents } from '../../events/amf/TelemetryEvents.js'\nimport { ServerEvents } from '../../events/amf/ServerEvents.js'\nimport { EndpointEvents } from '../../events/amf/EndpointEvents.js'\nimport { SelectionType } from '../../amf/types.js'\nimport type {\n IApiEndPointWithOperationsListItem,\n IApiOperationListItem,\n IApiServer,\n IApiSummary,\n} from '@api-client/core/amf/definitions/Api.js'\nimport { AmfNamespace } from '@api-client/core/amf/definitions/Namespace.js'\n\nimport '../../elements/highlight/marked-highlight.js'\n\n/**\n * A web component that renders the documentation page for an API documentation (like in RAML documentations) built from\n * the AMF graph model.\n */\nexport default class ApiSummary extends ApiDocumentationBase {\n protected summaryValue?: IApiSummary\n\n get summary(): IApiSummary | undefined {\n return this.summaryValue\n }\n\n protected serversValue?: IApiServer[]\n\n get servers(): IApiServer[] | undefined {\n return this.serversValue\n }\n\n /**\n * A property to set to override AMF's model base URI information.\n * When this property is set, the `endpointUri` property is recalculated.\n * @attribute\n */\n @property({ type: String }) accessor baseUri: string | undefined\n\n /**\n * API title header level in value range from 1 to 6.\n * This is made for accessibility. It the component is used in a context\n * where headers order matters then this property is to be set to\n * arrange headers in the right order.\n *\n * @default 2\n * @attribute\n */\n @property({ type: Number }) accessor titleLevel: number | undefined\n\n /**\n * A property to hide the table of contents list of endpoints.\n * @attribute\n */\n @property({ type: Boolean }) accessor hideToc: boolean | undefined\n\n @state() accessor protocols: string[] | undefined\n\n protected endpointsValue: IApiEndPointWithOperationsListItem[] | undefined\n\n get endpoints(): IApiEndPointWithOperationsListItem[] | undefined {\n if (this.endpointsValue) {\n return [...this.endpointsValue]\n }\n return undefined\n }\n\n protected isAsyncValue?: boolean\n\n constructor() {\n super()\n this.titleLevel = 2\n }\n\n override connectedCallback(): void {\n super.connectedCallback()\n this.processDebounce()\n }\n\n /**\n * Queries the graph store for the API data.\n */\n override async processGraph(): Promise<void> {\n await this.querySummary()\n await this.queryServers()\n await this.queryEndpoints()\n await this.processSummary()\n this.requestUpdate()\n }\n\n /**\n * Queries the API store for the API summary object.\n */\n async querySummary(): Promise<void> {\n this.summaryValue = undefined\n try {\n const info = await ApiEvents.summary(this)\n this.summaryValue = info\n } catch (e) {\n const ex = e as Error\n TelemetryEvents.exception(this, ex.message, false)\n ReportingEvents.error(this, ex, `Unable to query for API summary data: ${ex.message}`, this.localName)\n }\n }\n\n /**\n * Queries the API store for the API summary object.\n */\n async queryServers(): Promise<void> {\n this.serversValue = undefined\n try {\n const info = await ServerEvents.query(this)\n this.serversValue = info\n } catch (e) {\n const ex = e as Error\n TelemetryEvents.exception(this, ex.message, false)\n ReportingEvents.error(this, ex, `Unable to query for API servers: ${ex.message}`, this.localName)\n }\n }\n\n /**\n * Logic executed after the summary is requested from the store.\n */\n async processSummary(): Promise<void> {\n this.isAsyncValue = undefined\n const { summary } = this\n if (!summary) {\n return\n }\n this.isAsyncValue = summary.types.includes(AmfNamespace.aml.vocabularies.apiContract.AsyncAPI)\n }\n\n /**\n * Queries the API endpoints and methods.\n */\n async queryEndpoints(): Promise<void> {\n this.endpointsValue = undefined\n try {\n const info = await EndpointEvents.list(this)\n this.endpointsValue = info\n } catch (e) {\n const ex = e as Error\n TelemetryEvents.exception(this, ex.message, false)\n ReportingEvents.error(this, ex, `Unable to query for API endpoints: ${ex.message}`, this.localName)\n }\n }\n\n protected navigateHandler(e: Event): void {\n e.preventDefault()\n const target = e.composedPath()[0] as HTMLElement\n const data = target.dataset\n if (!data.id || !data.shapeType) {\n return\n }\n NavigationEvents.apiNavigate(this, data.id, data.shapeType as SelectionType, data.parent)\n }\n\n override render(): TemplateResult {\n const { summary } = this\n if (!summary) {\n return html``\n }\n return html`\n ${this.titleTemplate()} ${this.versionTemplate()} ${this.descriptionTemplate(summary.description)}\n ${this.serversTemplate()} ${this.protocolsTemplate()} ${this.contactInfoTemplate()} ${this.licenseTemplate()}\n ${this.termsOfServiceTemplate()} ${this.endpointsTemplate()}\n `\n }\n\n protected titleTemplate(): TemplateResult | string {\n const { summary, titleLevel } = this\n if (!summary || !summary.name) {\n return ''\n }\n return html` <div class=\"api-title\" role=\"heading\" aria-level=\"${titleLevel || ''}\" part=\"api-title\">\n <label part=\"api-title-label\">API title:</label>\n <span class=\"text-selectable\">${summary.name}</span>\n </div>`\n }\n\n protected versionTemplate(): TemplateResult | string {\n const { summary } = this\n if (!summary || !summary.version) {\n return ''\n }\n return html` <p class=\"inline-description version\" part=\"api-version\">\n <label>Version:</label>\n <span class=\"text-selectable\">${summary.version}</span>\n </p>`\n }\n\n /**\n * @returns A template for a server, servers, or no servers\n * whether it's defined in the main API definition or not.\n */\n protected serversTemplate(): TemplateResult | string {\n const { servers, baseUri } = this\n if (baseUri) {\n return this.baseUriTemplate(undefined)\n }\n if (!servers || !servers.length) {\n return ''\n }\n if (servers.length === 1) {\n return this.baseUriTemplate(servers[0])\n }\n return html` <div class=\"servers\" slot=\"markdown-html\">\n <p class=\"servers-label\">API servers</p>\n <ul class=\"server-lists\">\n ${servers.map((server) => this.serverTemplate(server))}\n </ul>\n </div>`\n }\n\n /**\n * @param server Server definition\n * @returns A template for a single server in the main API definition\n */\n protected baseUriTemplate(server?: IApiServer): TemplateResult {\n const { baseUri, protocols } = this\n const uri = UrlLib.computeApiBaseUri({ baseUri, server, protocols })\n return html`\n <div class=\"endpoint-url\">\n <div class=\"url-value\">${uri}</div>\n </div>\n `\n }\n\n /**\n * @param server Server definition\n * @returns Template for a server list items when there is more than one server.\n */\n protected serverTemplate(server: IApiServer): TemplateResult {\n const { baseUri, protocols } = this\n const uri = UrlLib.computeApiBaseUri({ baseUri, server, protocols })\n const { description } = server\n return html` <li class=\"text-selectable\">\n ${uri}\n ${description\n ? html`<marked-highlight .markdown=${description} class=\"server-description\"></marked-highlight>`\n : ''}\n </li>`\n }\n\n protected protocolsTemplate(): TemplateResult | string {\n const { summary } = this\n if (!summary || !summary.schemes || !summary.schemes.length) {\n return ''\n }\n const result = summary.schemes.map((item) => html`<span class=\"chip text-selectable\">${item}</span>`)\n\n return html` <label class=\"section\">Supported protocols</label>\n <div class=\"protocol-chips\">${result}</div>`\n }\n\n protected contactInfoTemplate(): TemplateResult | string {\n const { summary } = this\n if (!summary || !summary.provider || !summary.provider.name) {\n return ''\n }\n const { name = '', email, url } = summary.provider\n const link = url\n ? sanitizeHTML(`<a href=\"${url}\" target=\"_blank\" class=\"app-link provider-url text-selectable\">${url}</a>`)\n : ''\n return html` <section role=\"contentinfo\" class=\"docs-section\" part=\"info-section\">\n <label class=\"section\">Contact information</label>\n <p class=\"inline-description\" part=\"info-inline-desc\">\n <span class=\"provider-name text-selectable\">${name}</span>\n ${email\n ? html`<a class=\"app-link link-padding provider-email text-selectable\" href=\"mailto:${email}\">${email}</a>`\n : ''}\n </p>\n ${url ? html` <p class=\"inline-description text-selectable\" part=\"info-inline-desc\">${unsafeHTML(link)}</p>` : ''}\n </section>`\n }\n\n protected licenseTemplate(): TemplateResult | string {\n const { summary } = this\n if (!summary || !summary.license) {\n return ''\n }\n const { url, name } = summary.license\n if (!url || !name) {\n return ''\n }\n const link = sanitizeHTML(`<a href=\"${url}\" target=\"_blank\" class=\"app-link text-selectable\">${name}</a>`)\n return html` <section aria-labelledby=\"licenseLabel\" class=\"docs-section\" part=\"license-section\">\n <label class=\"section\" id=\"licenseLabel\">License</label>\n <p class=\"inline-description\">${unsafeHTML(link)}</p>\n </section>`\n }\n\n protected termsOfServiceTemplate(): TemplateResult | string {\n const { summary } = this\n if (!summary || !summary.termsOfService || !summary.termsOfService.length) {\n return ''\n }\n return html` <section aria-labelledby=\"tocLabel\" class=\"docs-section\">\n <label class=\"section\" id=\"tocLabel\">Terms of service</label>\n <marked-highlight .markdown=\"${summary.termsOfService}\" sanitize>\n <div slot=\"markdown-html\" class=\"markdown-body text-selectable\"></div>\n </marked-highlight>\n </section>`\n }\n\n protected endpointsTemplate(): TemplateResult | string {\n if (this.hideToc) {\n return ''\n }\n const endpoints = this.endpointsValue as IApiEndPointWithOperationsListItem[]\n if (!endpoints || !endpoints.length) {\n return ''\n }\n const result = endpoints.map((item) => this.endpointTemplate(item))\n const pathLabel = this.isAsyncValue ? 'channels' : 'endpoints'\n return html`\n <div class=\"separator\" part=\"separator\"></div>\n <div class=\"toc\" part=\"toc\">\n <label class=\"section endpoints-title\">API ${pathLabel}</label>\n ${result}\n </div>\n `\n }\n\n protected endpointTemplate(item: IApiEndPointWithOperationsListItem): TemplateResult {\n const { operations = [] } = item\n const ops = operations.length ? operations.map((op) => this.methodTemplate(op, item)) : ''\n return html` <div class=\"endpoint-item\" @click=\"${this.navigateHandler}\">\n ${item.name ? this.endpointNameTemplate(item) : this.endpointPathTemplate(item)}\n <div class=\"endpoint-header\">${ops}</div>\n </div>`\n }\n\n protected endpointPathTemplate(item: IApiEndPointWithOperationsListItem): TemplateResult {\n return html`\n <a\n class=\"endpoint-path text-selectable\"\n href=\"#${item.path}\"\n data-id=\"${ifDefined(item.id)}\"\n data-shape-type=\"resource\"\n title=\"Open endpoint documentation\"\n >${item.path}</a\n >\n `\n }\n\n protected endpointNameTemplate(item: IApiEndPointWithOperationsListItem): TemplateResult | string {\n if (!item.name) {\n return ''\n }\n return html`\n <a\n class=\"endpoint-path text-selectable\"\n href=\"#${item.path}\"\n data-id=\"${ifDefined(item.id)}\"\n data-shape-type=\"resource\"\n title=\"Open endpoint documentation\"\n >${item.name}</a\n >\n <p class=\"endpoint-path-name\">${item.path}</p>\n `\n }\n\n protected methodTemplate(item: IApiOperationListItem, endpoint: IApiEndPointWithOperationsListItem): TemplateResult {\n return html`\n <a\n href=\"#${`${endpoint.path}/${item.method}`}\"\n class=\"http-label pill\"\n data-method=\"${item.method}\"\n data-id=\"${item.id}\"\n data-shape-type=\"operation\"\n data-parent=\"${ifDefined(endpoint.id)}\"\n title=\"Open method documentation\"\n >${item.method}</a\n >\n `\n }\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  import { TemplateResult } from 'lit';
2
- import { AmfShapes } from '@api-client/core/browser.js';
2
+ import type { IApiFileShape, IApiScalarShape, IApiUnionShape, IShapeUnion } from '@api-client/core/amf/definitions/Shapes.js';
3
3
  import '../../define/amf/api-annotation-document.js';
4
4
  import '../../elements/highlight/marked-highlight.js';
5
5
  /**
@@ -38,19 +38,19 @@ export declare function detailSectionTemplate(items: TemplateResult[]): Template
38
38
  * @param noDetail When true it always render all properties, without the detail element.
39
39
  * @returns The template for the details of the scalar schema
40
40
  */
41
- export declare function scalarDetailsTemplate(schema: AmfShapes.IApiScalarShape, noDetail?: boolean): TemplateResult | string;
41
+ export declare function scalarDetailsTemplate(schema: IApiScalarShape, noDetail?: boolean): TemplateResult | string;
42
42
  /**
43
43
  * @returns The template for the details of the Union schema
44
44
  */
45
- export declare function unionDetailsTemplate(schema: AmfShapes.IApiUnionShape): TemplateResult | string;
45
+ export declare function unionDetailsTemplate(schema: IApiUnionShape): TemplateResult | string;
46
46
  /**
47
47
  * @param noDetail When true it always render all properties, without the detail element.
48
48
  * @returns The template for the details of the File schema
49
49
  */
50
- export declare function fileDetailsTemplate(schema: AmfShapes.IApiFileShape, noDetail?: boolean): TemplateResult | string;
50
+ export declare function fileDetailsTemplate(schema: IApiFileShape, noDetail?: boolean): TemplateResult | string;
51
51
  /**
52
52
  * @param schema The schema definition.
53
53
  * @returns The template for the property details.
54
54
  */
55
- export declare function detailsTemplate(schema?: AmfShapes.IShapeUnion): TemplateResult | string;
55
+ export declare function detailsTemplate(schema?: IShapeUnion): TemplateResult | string;
56
56
  //# sourceMappingURL=SchemaCommonTemplates.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaCommonTemplates.d.ts","sourceRoot":"","sources":["../../../../src/elements/amf/SchemaCommonTemplates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,cAAc,EAAE,MAAM,KAAK,CAAA;AAG1C,OAAO,EAAE,SAAS,EAAgB,MAAM,6BAA6B,CAAA;AACrE,OAAO,6CAA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AQ,CAAC,EAAE,OAAO,GAAG,cAAc,GAAG,MAAM,CAoFtG;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,MAAM,CAAC,EAAE,WAAW,GAAG,cAAc,GAAG,MAAM,CAwB7E"}
@@ -1,7 +1,7 @@
1
1
  import { html } from 'lit';
2
2
  import { classMap } from 'lit/directives/class-map.js';
3
3
  import { ifDefined } from 'lit/directives/if-defined.js';
4
- import { AmfNamespace } from '@api-client/core/browser.js';
4
+ import { AmfNamespace } from '@api-client/core/amf/definitions/Namespace.js';
5
5
  import '../../define/amf/api-annotation-document.js';
6
6
  import '../../elements/highlight/marked-highlight.js';
7
7
  /**