@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
@@ -2,7 +2,8 @@ import { __esDecorate, __runInitializers } from "tslib";
2
2
  import { html, nothing } from 'lit';
3
3
  import { property } from 'lit/decorators.js';
4
4
  import { classMap } from 'lit/directives/class-map.js';
5
- import { AmfNamespace, SecurityProcessor } from '@api-client/core/browser.js';
5
+ import { SecurityProcessor } from '@api-client/core/authorization/lib/SecurityProcessor.js';
6
+ import { AmfNamespace } from '@api-client/core/amf/definitions/Namespace.js';
6
7
  import { ApiDocumentationBase } from './ApiDocumentationBase.js';
7
8
  import { joinTraitNames } from '../../amf/lib/Utils.js';
8
9
  import * as UrlLib from '../../amf/lib/UrlUtils.js';
@@ -1 +1 @@
1
- {"version":3,"file":"ApiResourceDocument.element.js","sour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AO,IAAI,CAAA;yGAC0F,KAAK,UAAU,CAAA;QACtH,CAAC;QAED;;WAEG;QACO,YAAY,CAAC,KAAc;YACnC,IAAI,CAAC,KAAK,EAAE,CAAC;gBACX,OAAO,OAAO,CAAA;YAChB,CAAC;YACD,OAAO,IAAI,CAAA,kEAAkE,KAAK,UAAU,CAAA;QAC9F,CAAC;;;AA/oBH;;;;;GAKG;AACH,mCA0oBC","sourcesContent":["import { html, nothing, TemplateResult } from 'lit'\nimport { property } from 'lit/decorators.js'\nimport { classMap } from 'lit/directives/class-map.js'\nimport { AmfNamespace, ApiDefinitions, IHttpRequest, IRequest, SecurityProcessor } from '@api-client/core/browser.js'\nimport { ApiDocumentationBase } from './ApiDocumentationBase.js'\nimport { joinTraitNames } from '../../amf/lib/Utils.js'\nimport * as UrlLib from '../../amf/lib/UrlUtils.js'\nimport { ReportingEvents } from '../../events/amf/ReportingEvents.js'\nimport { TelemetryEvents } from '../../events/amf/TelemetryEvents.js'\nimport { EndpointEvents } from '../../events/amf/EndpointEvents.js'\nimport { ServerEvents } from '../../events/amf/ServerEvents.js'\nimport { ApiEvents } from '../../events/amf/ApiEvents.js'\nimport ApiRequestElement from './ApiRequest.element.js'\nimport { Oauth2Credentials } from '../authorization/types.js'\nimport '../../define/amf/api-request.js'\nimport '../../define/amf/api-operation-document.js'\nimport '../../define/amf/api-parameter-document.js'\nimport '../../define/http/http-snippets.js'\n\ninterface SnippetInfo {\n value?: IRequest\n reading: boolean\n}\n\n/**\n * A web component that renders the resource documentation page for an API resource built from\n * the AMF graph model.\n *\n * @fires tryit\n */\nexport default class ApiResourceDocument extends ApiDocumentationBase {\n protected endpointValue?: ApiDefinitions.IApiEndPoint\n\n protected serverInternal?: ApiDefinitions.IApiServer\n\n protected serversValue?: ApiDefinitions.IApiServer[]\n\n protected operationIdValue?: string\n\n protected serverIdValue?: string\n\n protected baseUriValue?: string\n\n protected urlValue?: string\n\n protected protocolsValue?: string[]\n\n protected snippetsInternal: Record<string, SnippetInfo>\n\n get snippets(): Record<string, SnippetInfo> {\n return { ...this.snippetsInternal }\n }\n\n protected processSelectionTimeout?: number\n\n get endpoint(): ApiDefinitions.IApiEndPoint | undefined {\n return this.endpointValue\n }\n\n set endpoint(value) {\n const old = this.endpointValue\n if (old === value) {\n return\n }\n this.endpointValue = value\n this.processGraph()\n }\n\n get operationId(): string | undefined {\n return this.operationIdValue\n }\n\n /**\n * When set it scrolls to the operation with the given id, if exists.\n * The operation is performed after render.\n * @attribute\n */\n @property({ type: String, reflect: true })\n set operationId(value) {\n const old = this.operationIdValue\n if (old === value) {\n return\n }\n this.operationIdValue = value\n this.requestUpdate('operationId', old)\n this.operationIdChanged()\n }\n\n get serverId(): string | undefined {\n return this.serverIdValue\n }\n\n /**\n * The id of the currently selected server to use to construct the URL.\n * If not set a first server in the API servers array is used.\n * @attribute\n */\n @property({ type: String, reflect: true })\n set serverId(value) {\n const old = this.serverIdValue\n if (old === value) {\n return\n }\n this.serverIdValue = value\n this.selectServer()\n this.processServerSelection()\n this.requestUpdate()\n }\n\n get server(): ApiDefinitions.IApiServer | undefined {\n if (this.serverInternal) {\n return this.serverInternal\n }\n const servers = this.serversValue\n if (Array.isArray(servers) && servers.length) {\n const [server] = servers\n if (server) {\n this.serverInternal = server\n }\n }\n return this.serverInternal\n }\n\n set server(value) {\n const old = this.serverInternal\n if (old === value) {\n return\n }\n this.serverInternal = value\n this.processServerSelection()\n this.requestUpdate('server', old)\n }\n\n /**\n * The list of the servers read from the API and the endpoint.\n */\n get servers(): ApiDefinitions.IApiServer[] | undefined {\n return this.serversValue\n }\n\n /**\n * The list of protocols to render.\n */\n get protocol(): string | undefined {\n const { server } = this\n if (!server) {\n return undefined\n }\n const { protocol } = server\n return protocol\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 get baseUri(): string | undefined {\n return this.baseUriValue\n }\n\n @property({ type: String })\n set baseUri(value) {\n const old = this.baseUriValue\n if (old === value) {\n return\n }\n this.baseUriValue = value\n this.computeUrlValue()\n this.requestUpdate()\n }\n\n /**\n * The computed URI for the endpoint.\n */\n get endpointUri(): string | undefined {\n return this.urlValue\n }\n\n /**\n * The API's protocols.\n */\n get protocols(): string[] | undefined {\n return this.protocolsValue\n }\n\n /**\n * When set it renders the \"try it\" button that dispatches the `tryit` event.\n * @attribute\n */\n @property({ type: Boolean, reflect: true }) accessor tryItButton: boolean | undefined\n\n /**\n * When set it renders the \"try it\" panel next to the operation documentation.\n * Setting this automatically disables the `tryItButton` property.\n *\n * Note, use this only when there's enough space on the screen to render 2 panels side-by-side.\n * @attribute\n */\n @property({ type: Boolean, reflect: true }) accessor tryItPanel: boolean | undefined\n\n /**\n * When set it renders the URL input above the URL parameters in the HTTP editor.\n * @attribute\n */\n @property({ type: Boolean, reflect: true }) accessor httpUrlEditor: boolean | undefined\n\n /**\n * List of credentials source passed to the HTTP editor\n */\n @property({ type: Array }) accessor httpCredentialsSource: Oauth2Credentials[] | undefined\n\n /**\n * OAuth2 redirect URI.\n * This value **must** be set in order for OAuth 1/2 to work properly.\n * This is only required in inline mode (`inlineMethods`).\n * @attribute\n */\n @property({ type: String }) accessor redirectUri: string | undefined\n\n /**\n * Optional property to set on the request editor.\n * When true, the server selector is not rendered\n * @attribute\n */\n @property({ type: Boolean, reflect: true }) accessor httpNoServerSelector: boolean | undefined\n\n /**\n * When set it renders \"add custom\" item button in the HTTP request editor.\n * If the element is to be used without AMF model this should always\n * be enabled. Otherwise users won't be able to add a parameter.\n * @attribute\n */\n @property({ type: Boolean, reflect: true }) accessor httpAllowCustom: boolean | undefined\n\n /**\n * Optional property to set on the request editor.\n * If true, the server selector custom base URI option is rendered\n * @attribute\n */\n @property({ type: Boolean, reflect: true }) accessor httpAllowCustomBaseUri: boolean | undefined\n\n /**\n * When set it renders the view optimised for asynchronous API operation.\n * @attribute\n */\n @property({ type: Boolean, reflect: true }) accessor asyncApi: boolean | undefined\n\n /**\n * Holds the value of the currently selected server\n * Data type: URI\n * @attribute\n */\n @property({ type: String }) accessor serverValue: string | undefined\n\n /**\n * Holds the type of the currently selected server\n * Values: `server` | `uri` | `custom`\n * @attribute\n */\n @property({ type: String }) accessor serverType: string | undefined\n\n constructor() {\n super()\n\n this.snippetsInternal = {}\n }\n\n override disconnectedCallback(): void {\n if (this.processSelectionTimeout) {\n clearTimeout(this.processSelectionTimeout)\n this.processSelectionTimeout = undefined\n }\n super.disconnectedCallback()\n }\n\n /**\n * Scrolls the view to the operation, when present in the DOM.\n * @param id The operation domain id to scroll into.\n */\n scrollToOperation(id: string): void {\n const { shadowRoot } = this\n if (!shadowRoot) {\n return\n }\n const elm = shadowRoot.querySelector(`api-operation-document[data-domain-id=\"${id}\"]`)\n if (!elm) {\n return\n }\n elm.scrollIntoView({ block: 'start', inline: 'nearest', behavior: 'smooth' })\n }\n\n override async processGraph(): Promise<void> {\n await this.queryEndpoint()\n await this.queryServers()\n await this.queryProtocols()\n this.computeUrlValue()\n this.requestUpdate()\n await this.updateComplete\n if (this.processSelectionTimeout) {\n clearTimeout(this.processSelectionTimeout)\n this.processSelectionTimeout = undefined\n }\n // this timeout gives few milliseconds for operations to render.\n this.processSelectionTimeout = setTimeout(() => {\n this.processSelectionTimeout = undefined\n this.collectCodeSnippets()\n if (this.operationId) {\n this.scrollToOperation(this.operationId)\n }\n }, 200) as unknown as number\n }\n\n /**\n * Queries the API store for the API summary object.\n */\n async queryProtocols(): Promise<void> {\n this.protocolsValue = undefined\n try {\n const info = await ApiEvents.protocols(this)\n this.protocolsValue = 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 protocols list: ${ex.message}`, this.localName)\n }\n }\n\n /**\n * Queries the store for the endpoint data.\n * @returns {Promise<void>}\n */\n async queryEndpoint(): Promise<void> {\n const { domainId } = this\n if (!domainId) {\n // this.endpointValue = undefined;\n return\n }\n if (this.endpointValue && this.endpointValue.id === domainId) {\n // in case the endpoint model was provided via property setter.\n return\n }\n try {\n const info = await EndpointEvents.get(this, domainId)\n this.endpointValue = 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 endpoint data: ${ex.message}`, this.localName)\n }\n }\n\n /**\n * Scrolls to the selected operation after view update.\n */\n protected async operationIdChanged(): Promise<void> {\n await this.updateComplete\n const { operationId } = this\n if (operationId) {\n this.scrollToOperation(operationId)\n } else {\n this.scrollIntoView({ block: 'start', inline: 'nearest', behavior: 'smooth' })\n }\n }\n\n /**\n * Queries the store for the current servers value.\n */\n async queryServers(): Promise<void> {\n this.serversValue = undefined\n const { domainId } = this\n const endpointId = this.endpointValue && this.endpointValue.id\n try {\n const info = await ServerEvents.query(this, {\n endpointId,\n methodId: domainId,\n })\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 * Sets the private server value for the current server defined by `serverId`.\n * Calls the `.processServerSelection()` function to set server related values.\n */\n protected selectServer(): void {\n this.serverInternal = undefined\n const { serverId } = this\n const servers = this.serversValue\n if (!serverId || !Array.isArray(servers)) {\n return\n }\n this.serverInternal = servers.find((s) => s.id === serverId)\n }\n\n /**\n * Performs actions after a server is selected.\n */\n protected processServerSelection(): void {\n this.computeUrlValue()\n }\n\n /**\n * Computes the URL value for the current serves, selected server, and endpoint's path.\n */\n protected computeUrlValue(): void {\n const endpoint = this.endpointValue\n const { baseUri, server, protocols } = this\n const url = UrlLib.computeEndpointUri({ baseUri, server, endpoint, protocols })\n this.urlValue = url\n }\n\n /**\n * Runs over each request editor and collects request values for code snippets generators.\n */\n protected collectCodeSnippets(): void {\n const { shadowRoot } = this\n if (!shadowRoot) {\n return\n }\n const panels = shadowRoot.querySelectorAll('api-request')\n if (!panels.length) {\n return\n }\n Array.from(panels).forEach((panel) => this.readCodeSnippets(panel))\n this.requestUpdate()\n }\n\n protected requestChangeHandler(e: Event): void {\n const panel = e.target as ApiRequestElement\n this.readCodeSnippets(panel)\n this.requestUpdate()\n }\n\n /**\n * Reads the request data from the request panel for the code snippets.\n */\n protected async readCodeSnippets(panel: ApiRequestElement): Promise<void> {\n const { requestId } = panel.dataset\n if (!requestId) {\n return\n }\n if (!this.snippetsInternal[requestId]) {\n this.snippetsInternal[requestId] = { reading: false }\n }\n const info = this.snippetsInternal[requestId]\n if (info.reading) {\n return\n }\n try {\n info.reading = true\n const request = await panel.serialize()\n if (request.authorization && request.authorization.length) {\n SecurityProcessor.applyAuthorization(request.expects, request.authorization)\n }\n info.value = request\n this.requestUpdate()\n } catch {\n // what can go wrong it that the request is not yet set on the editor\n // due to the debouncer and we are trying to serialize a request\n // that is not yet ready. This will redo the operation when the request panel\n // render the HTTP editor.\n // ...\n } finally {\n info.reading = false\n }\n }\n\n override render(): TemplateResult {\n const { endpoint } = this\n if (!endpoint) {\n return html``\n }\n return html`\n ${this.renderTitle(endpoint)} ${this.renderUrl()} ${this.renderExtensions(endpoint)}\n ${this.descriptionTemplate(endpoint.description)}\n ${this.customDomainPropertiesTemplate(endpoint.customDomainProperties)} ${this.renderOperations(endpoint)}\n `\n }\n\n /**\n * @returns The template for the Operation title.\n */\n protected renderTitle(endpoint: ApiDefinitions.IApiEndPoint): TemplateResult | string {\n const { name, path } = endpoint\n const label = name || path\n if (!label) {\n return ''\n }\n const subLabel = this.asyncApi ? 'API channel' : 'API endpoint'\n return html`\n <div class=\"endpoint-header\">\n <div class=\"endpoint-title\">\n <span class=\"label text-selectable\">${label}</span>\n </div>\n <p class=\"sub-header\">${subLabel}</p>\n </div>\n `\n }\n\n /**\n * @returns The template for the operation's URL.\n */\n protected renderUrl(): TemplateResult {\n const url = this.urlValue\n return html`\n <div class=\"endpoint-url\">\n <div class=\"url-value text-selectable\">${url}</div>\n </div>\n `\n }\n\n /**\n * @returns The template for the list of operations.\n */\n protected renderOperations(endpoint: ApiDefinitions.IApiEndPoint): TemplateResult | string {\n const { operations } = endpoint\n if (!operations.length) {\n return ''\n }\n return html`\n <div class=\"operations\">${operations.map((operation) => this.renderOperation(endpoint, operation))}</div>\n `\n }\n\n /**\n * @param operation The operation to render.\n * @returns The template for the API operation.\n */\n protected renderOperation(\n endpoint: ApiDefinitions.IApiEndPoint,\n operation: ApiDefinitions.IApiOperation\n ): TemplateResult {\n const { serverId, baseUri, tryItPanel, tryItButton, asyncApi } = this\n const renderTryIt = !tryItPanel && !asyncApi && !!tryItButton\n const classes = {\n 'operation-container': true,\n 'surface1': true,\n 'tryit': !!tryItPanel,\n }\n return html`\n <div class=\"${classMap(classes)}\">\n <api-operation-document\n .domainId=\"${operation.id}\"\n .operation=\"${operation}\"\n .endpoint=\"${endpoint}\"\n .endpointId=\"${endpoint.id}\"\n .serverId=\"${serverId}\"\n .baseUri=\"${baseUri}\"\n data-domain-id=\"${operation.id}\"\n ?tryItButton=\"${renderTryIt}\"\n showSecurity\n ?renderCodeSnippets=\"${!tryItPanel}\"\n ?asyncApi=\"${this.asyncApi}\"\n class=\"operation\"\n ></api-operation-document>\n ${tryItPanel ? this.renderTryItColumn(operation) : ''}\n </div>\n `\n }\n\n /**\n * @param operation The operation to render.\n * @returns The template for the try it column panel rendered next to the operation documentation/\n */\n protected renderTryItColumn(operation: ApiDefinitions.IApiOperation): TemplateResult | string {\n if (this.asyncApi) {\n return ''\n }\n return html`\n <div class=\"try-it-column\">\n <!-- <div class=\"sticky-content\"> -->\n ${this.renderHttpRequest(operation)} ${this.renderCodeSnippetsPanel(operation)}\n <!-- </div> -->\n </div>\n `\n }\n\n /**\n * @param operation The operation to render.\n * @returns The template for the request editor.\n */\n protected renderHttpRequest(operation: ApiDefinitions.IApiOperation): TemplateResult {\n const content = html`\n <api-request\n .domainId=\"${operation.id}\"\n .serverValue=\"${this.serverValue}\"\n .serverType=\"${this.serverType}\"\n .baseUri=\"${this.baseUri}\"\n .redirectUri=\"${this.redirectUri}\"\n .credentialsSource=\"${this.httpCredentialsSource}\"\n ?urlEditor=\"${this.httpUrlEditor}\"\n ?urlLabel=\"${!this.httpUrlEditor}\"\n ?noServerSelector=\"${this.httpNoServerSelector}\"\n ?allowCustomBaseUri=\"${this.httpAllowCustomBaseUri}\"\n ?allowCustom=\"${this.httpAllowCustom}\"\n allowHideOptional\n data-request-id=\"${operation.id}\"\n @change=\"${this.requestChangeHandler}\"\n ></api-request>\n `\n\n return content\n }\n\n /**\n * @param operation The operation to render.\n * @returns The template for the request's code snippets.\n */\n protected renderCodeSnippetsPanel(operation: ApiDefinitions.IApiOperation): TemplateResult | typeof nothing {\n const values = this.snippetsInternal[operation.id]\n if (!values || !values.value) {\n return nothing\n }\n const { expects } = values.value\n let { payload } = expects\n if (payload && typeof payload !== 'string') {\n payload = ''\n }\n const request: IHttpRequest = {\n url: expects.url,\n headers: expects.headers,\n method: expects.method,\n payload: payload as string,\n }\n return html`\n <section class=\"snippets text-selectable\">\n <http-snippets .request=\"${request}\"></http-snippets>\n </section>\n `\n }\n\n /**\n * @return The template for the endpoint's extensions.\n */\n protected renderExtensions(endpoint: ApiDefinitions.IApiEndPoint): TemplateResult | typeof nothing {\n const { extends: extensions } = endpoint\n if (!extensions || !extensions.length) {\n return nothing\n }\n const type = extensions.find((e) =>\n e.types.includes(AmfNamespace.aml.vocabularies.apiContract.ParametrizedResourceType)\n )\n const traits = extensions.filter((e) =>\n e.types.includes(AmfNamespace.aml.vocabularies.apiContract.ParametrizedTrait)\n )\n const traitsLabel = joinTraitNames(traits)\n const typeLabel = type && type.name\n if (!traitsLabel && !typeLabel) {\n return nothing\n }\n return html`\n <section class=\"extensions\">${this.renderExtends(typeLabel)} ${this.renderTraits(traitsLabel)}</section>\n `\n }\n\n /**\n * @returns The template for the parent resource type.\n */\n protected renderExtends(label?: string): TemplateResult | typeof nothing {\n if (!label) {\n return nothing\n }\n return html`<span>Implements </span\n ><span class=\"resource-type-name text-selectable\" title=\"Resource type applied to this endpoint\">${label}</span>.`\n }\n\n /**\n * @returns The template for the traits applied to the resource.\n */\n protected renderTraits(label?: string): TemplateResult | typeof nothing {\n if (!label) {\n return nothing\n }\n return html`<span>Mixes in </span><span class=\"trait-name text-selectable\">${label}</span>.`\n }\n}\n"]}
1
+ {"version":3,"file":"ApiResourceDocument.element.js","sourceRoot":"","sources":["../../../../src/elements/amf/ApiResourceDocument.element.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAkB,MAAM,KAAK,CAAA;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAA;AAGtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,yDAAyD,CAAA;AAE3F,OAAO,EAAE,YAAY,EAAE,MAAM,+CAA+C,CAAA;AAC5E,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AACvD,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAA;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAA;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAA;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAA;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAA;AAGzD,OAAO,iCAAiC,CAAA;AACxC,OAAO,4CAA4C,CAAA;AACnD,OAAO,4CAA4C,CAAA;AACnD,OAAO,oCAAoC,CAAA;;sBAaM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAhD,mBAAoB,SAAQ,WAAoB;;;2CA+ClE,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;wCAoBzC,QAAQ,CA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,CAAA;oCACqB,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,IAAI,IAAI,CAAC,YAAY,CAAC,WAAW,CAAC;KAC9F,CAAA;QACH,CAAC;QAED;;WAEG;QACO,aAAa,CAAC,KAAc;YACpC,IAAI,CAAC,KAAK,EAAE,CAAC;gBACX,OAAO,OAAO,CAAA;YAChB,CAAC;YACD,OAAO,IAAI,CAAA;yGAC0F,KAAK,UAAU,CAAA;QACtH,CAAC;QAED;;WAEG;QACO,YAAY,CAAC,KAAc;YACnC,IAAI,CAAC,KAAK,EAAE,CAAC;gBACX,OAAO,OAAO,CAAA;YAChB,CAAC;YACD,OAAO,IAAI,CAAA,kEAAkE,KAAK,UAAU,CAAA;QAC9F,CAAC;;;AA5oBH;;;;;GAKG;AACH,mCAuoBC","sourcesContent":["import { html, nothing, TemplateResult } from 'lit'\nimport { property } from 'lit/decorators.js'\nimport { classMap } from 'lit/directives/class-map.js'\nimport type { IRequest } from '@api-client/core/models/Request.js'\nimport type { IApiEndPoint, IApiOperation, IApiServer } from '@api-client/core/amf/definitions/Api.js'\nimport { SecurityProcessor } from '@api-client/core/authorization/lib/SecurityProcessor.js'\nimport { IHttpRequest } from '@api-client/core/models/HttpRequest.js'\nimport { AmfNamespace } from '@api-client/core/amf/definitions/Namespace.js'\nimport { ApiDocumentationBase } from './ApiDocumentationBase.js'\nimport { joinTraitNames } from '../../amf/lib/Utils.js'\nimport * as UrlLib from '../../amf/lib/UrlUtils.js'\nimport { ReportingEvents } from '../../events/amf/ReportingEvents.js'\nimport { TelemetryEvents } from '../../events/amf/TelemetryEvents.js'\nimport { EndpointEvents } from '../../events/amf/EndpointEvents.js'\nimport { ServerEvents } from '../../events/amf/ServerEvents.js'\nimport { ApiEvents } from '../../events/amf/ApiEvents.js'\nimport ApiRequestElement from './ApiRequest.element.js'\nimport { Oauth2Credentials } from '../authorization/types.js'\nimport '../../define/amf/api-request.js'\nimport '../../define/amf/api-operation-document.js'\nimport '../../define/amf/api-parameter-document.js'\nimport '../../define/http/http-snippets.js'\n\ninterface SnippetInfo {\n value?: IRequest\n reading: boolean\n}\n\n/**\n * A web component that renders the resource documentation page for an API resource built from\n * the AMF graph model.\n *\n * @fires tryit\n */\nexport default class ApiResourceDocument extends ApiDocumentationBase {\n protected endpointValue?: IApiEndPoint\n\n protected serverInternal?: IApiServer\n\n protected serversValue?: IApiServer[]\n\n protected operationIdValue?: string\n\n protected serverIdValue?: string\n\n protected baseUriValue?: string\n\n protected urlValue?: string\n\n protected protocolsValue?: string[]\n\n protected snippetsInternal: Record<string, SnippetInfo>\n\n get snippets(): Record<string, SnippetInfo> {\n return { ...this.snippetsInternal }\n }\n\n protected processSelectionTimeout?: number\n\n get endpoint(): IApiEndPoint | undefined {\n return this.endpointValue\n }\n\n set endpoint(value) {\n const old = this.endpointValue\n if (old === value) {\n return\n }\n this.endpointValue = value\n this.processGraph()\n }\n\n get operationId(): string | undefined {\n return this.operationIdValue\n }\n\n /**\n * When set it scrolls to the operation with the given id, if exists.\n * The operation is performed after render.\n * @attribute\n */\n @property({ type: String, reflect: true })\n set operationId(value) {\n const old = this.operationIdValue\n if (old === value) {\n return\n }\n this.operationIdValue = value\n this.requestUpdate('operationId', old)\n this.operationIdChanged()\n }\n\n get serverId(): string | undefined {\n return this.serverIdValue\n }\n\n /**\n * The id of the currently selected server to use to construct the URL.\n * If not set a first server in the API servers array is used.\n * @attribute\n */\n @property({ type: String, reflect: true })\n set serverId(value) {\n const old = this.serverIdValue\n if (old === value) {\n return\n }\n this.serverIdValue = value\n this.selectServer()\n this.processServerSelection()\n this.requestUpdate()\n }\n\n get server(): IApiServer | undefined {\n if (this.serverInternal) {\n return this.serverInternal\n }\n const servers = this.serversValue\n if (Array.isArray(servers) && servers.length) {\n const [server] = servers\n if (server) {\n this.serverInternal = server\n }\n }\n return this.serverInternal\n }\n\n set server(value) {\n const old = this.serverInternal\n if (old === value) {\n return\n }\n this.serverInternal = value\n this.processServerSelection()\n this.requestUpdate('server', old)\n }\n\n /**\n * The list of the servers read from the API and the endpoint.\n */\n get servers(): IApiServer[] | undefined {\n return this.serversValue\n }\n\n /**\n * The list of protocols to render.\n */\n get protocol(): string | undefined {\n const { server } = this\n if (!server) {\n return undefined\n }\n const { protocol } = server\n return protocol\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 get baseUri(): string | undefined {\n return this.baseUriValue\n }\n\n @property({ type: String })\n set baseUri(value) {\n const old = this.baseUriValue\n if (old === value) {\n return\n }\n this.baseUriValue = value\n this.computeUrlValue()\n this.requestUpdate()\n }\n\n /**\n * The computed URI for the endpoint.\n */\n get endpointUri(): string | undefined {\n return this.urlValue\n }\n\n /**\n * The API's protocols.\n */\n get protocols(): string[] | undefined {\n return this.protocolsValue\n }\n\n /**\n * When set it renders the \"try it\" button that dispatches the `tryit` event.\n * @attribute\n */\n @property({ type: Boolean, reflect: true }) accessor tryItButton: boolean | undefined\n\n /**\n * When set it renders the \"try it\" panel next to the operation documentation.\n * Setting this automatically disables the `tryItButton` property.\n *\n * Note, use this only when there's enough space on the screen to render 2 panels side-by-side.\n * @attribute\n */\n @property({ type: Boolean, reflect: true }) accessor tryItPanel: boolean | undefined\n\n /**\n * When set it renders the URL input above the URL parameters in the HTTP editor.\n * @attribute\n */\n @property({ type: Boolean, reflect: true }) accessor httpUrlEditor: boolean | undefined\n\n /**\n * List of credentials source passed to the HTTP editor\n */\n @property({ type: Array }) accessor httpCredentialsSource: Oauth2Credentials[] | undefined\n\n /**\n * OAuth2 redirect URI.\n * This value **must** be set in order for OAuth 1/2 to work properly.\n * This is only required in inline mode (`inlineMethods`).\n * @attribute\n */\n @property({ type: String }) accessor redirectUri: string | undefined\n\n /**\n * Optional property to set on the request editor.\n * When true, the server selector is not rendered\n * @attribute\n */\n @property({ type: Boolean, reflect: true }) accessor httpNoServerSelector: boolean | undefined\n\n /**\n * When set it renders \"add custom\" item button in the HTTP request editor.\n * If the element is to be used without AMF model this should always\n * be enabled. Otherwise users won't be able to add a parameter.\n * @attribute\n */\n @property({ type: Boolean, reflect: true }) accessor httpAllowCustom: boolean | undefined\n\n /**\n * Optional property to set on the request editor.\n * If true, the server selector custom base URI option is rendered\n * @attribute\n */\n @property({ type: Boolean, reflect: true }) accessor httpAllowCustomBaseUri: boolean | undefined\n\n /**\n * When set it renders the view optimised for asynchronous API operation.\n * @attribute\n */\n @property({ type: Boolean, reflect: true }) accessor asyncApi: boolean | undefined\n\n /**\n * Holds the value of the currently selected server\n * Data type: URI\n * @attribute\n */\n @property({ type: String }) accessor serverValue: string | undefined\n\n /**\n * Holds the type of the currently selected server\n * Values: `server` | `uri` | `custom`\n * @attribute\n */\n @property({ type: String }) accessor serverType: string | undefined\n\n constructor() {\n super()\n\n this.snippetsInternal = {}\n }\n\n override disconnectedCallback(): void {\n if (this.processSelectionTimeout) {\n clearTimeout(this.processSelectionTimeout)\n this.processSelectionTimeout = undefined\n }\n super.disconnectedCallback()\n }\n\n /**\n * Scrolls the view to the operation, when present in the DOM.\n * @param id The operation domain id to scroll into.\n */\n scrollToOperation(id: string): void {\n const { shadowRoot } = this\n if (!shadowRoot) {\n return\n }\n const elm = shadowRoot.querySelector(`api-operation-document[data-domain-id=\"${id}\"]`)\n if (!elm) {\n return\n }\n elm.scrollIntoView({ block: 'start', inline: 'nearest', behavior: 'smooth' })\n }\n\n override async processGraph(): Promise<void> {\n await this.queryEndpoint()\n await this.queryServers()\n await this.queryProtocols()\n this.computeUrlValue()\n this.requestUpdate()\n await this.updateComplete\n if (this.processSelectionTimeout) {\n clearTimeout(this.processSelectionTimeout)\n this.processSelectionTimeout = undefined\n }\n // this timeout gives few milliseconds for operations to render.\n this.processSelectionTimeout = setTimeout(() => {\n this.processSelectionTimeout = undefined\n this.collectCodeSnippets()\n if (this.operationId) {\n this.scrollToOperation(this.operationId)\n }\n }, 200) as unknown as number\n }\n\n /**\n * Queries the API store for the API summary object.\n */\n async queryProtocols(): Promise<void> {\n this.protocolsValue = undefined\n try {\n const info = await ApiEvents.protocols(this)\n this.protocolsValue = 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 protocols list: ${ex.message}`, this.localName)\n }\n }\n\n /**\n * Queries the store for the endpoint data.\n * @returns {Promise<void>}\n */\n async queryEndpoint(): Promise<void> {\n const { domainId } = this\n if (!domainId) {\n // this.endpointValue = undefined;\n return\n }\n if (this.endpointValue && this.endpointValue.id === domainId) {\n // in case the endpoint model was provided via property setter.\n return\n }\n try {\n const info = await EndpointEvents.get(this, domainId)\n this.endpointValue = 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 endpoint data: ${ex.message}`, this.localName)\n }\n }\n\n /**\n * Scrolls to the selected operation after view update.\n */\n protected async operationIdChanged(): Promise<void> {\n await this.updateComplete\n const { operationId } = this\n if (operationId) {\n this.scrollToOperation(operationId)\n } else {\n this.scrollIntoView({ block: 'start', inline: 'nearest', behavior: 'smooth' })\n }\n }\n\n /**\n * Queries the store for the current servers value.\n */\n async queryServers(): Promise<void> {\n this.serversValue = undefined\n const { domainId } = this\n const endpointId = this.endpointValue && this.endpointValue.id\n try {\n const info = await ServerEvents.query(this, {\n endpointId,\n methodId: domainId,\n })\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 * Sets the private server value for the current server defined by `serverId`.\n * Calls the `.processServerSelection()` function to set server related values.\n */\n protected selectServer(): void {\n this.serverInternal = undefined\n const { serverId } = this\n const servers = this.serversValue\n if (!serverId || !Array.isArray(servers)) {\n return\n }\n this.serverInternal = servers.find((s) => s.id === serverId)\n }\n\n /**\n * Performs actions after a server is selected.\n */\n protected processServerSelection(): void {\n this.computeUrlValue()\n }\n\n /**\n * Computes the URL value for the current serves, selected server, and endpoint's path.\n */\n protected computeUrlValue(): void {\n const endpoint = this.endpointValue\n const { baseUri, server, protocols } = this\n const url = UrlLib.computeEndpointUri({ baseUri, server, endpoint, protocols })\n this.urlValue = url\n }\n\n /**\n * Runs over each request editor and collects request values for code snippets generators.\n */\n protected collectCodeSnippets(): void {\n const { shadowRoot } = this\n if (!shadowRoot) {\n return\n }\n const panels = shadowRoot.querySelectorAll('api-request')\n if (!panels.length) {\n return\n }\n Array.from(panels).forEach((panel) => this.readCodeSnippets(panel))\n this.requestUpdate()\n }\n\n protected requestChangeHandler(e: Event): void {\n const panel = e.target as ApiRequestElement\n this.readCodeSnippets(panel)\n this.requestUpdate()\n }\n\n /**\n * Reads the request data from the request panel for the code snippets.\n */\n protected async readCodeSnippets(panel: ApiRequestElement): Promise<void> {\n const { requestId } = panel.dataset\n if (!requestId) {\n return\n }\n if (!this.snippetsInternal[requestId]) {\n this.snippetsInternal[requestId] = { reading: false }\n }\n const info = this.snippetsInternal[requestId]\n if (info.reading) {\n return\n }\n try {\n info.reading = true\n const request = await panel.serialize()\n if (request.authorization && request.authorization.length) {\n SecurityProcessor.applyAuthorization(request.expects, request.authorization)\n }\n info.value = request\n this.requestUpdate()\n } catch {\n // what can go wrong it that the request is not yet set on the editor\n // due to the debouncer and we are trying to serialize a request\n // that is not yet ready. This will redo the operation when the request panel\n // render the HTTP editor.\n // ...\n } finally {\n info.reading = false\n }\n }\n\n override render(): TemplateResult {\n const { endpoint } = this\n if (!endpoint) {\n return html``\n }\n return html`\n ${this.renderTitle(endpoint)} ${this.renderUrl()} ${this.renderExtensions(endpoint)}\n ${this.descriptionTemplate(endpoint.description)}\n ${this.customDomainPropertiesTemplate(endpoint.customDomainProperties)} ${this.renderOperations(endpoint)}\n `\n }\n\n /**\n * @returns The template for the Operation title.\n */\n protected renderTitle(endpoint: IApiEndPoint): TemplateResult | string {\n const { name, path } = endpoint\n const label = name || path\n if (!label) {\n return ''\n }\n const subLabel = this.asyncApi ? 'API channel' : 'API endpoint'\n return html`\n <div class=\"endpoint-header\">\n <div class=\"endpoint-title\">\n <span class=\"label text-selectable\">${label}</span>\n </div>\n <p class=\"sub-header\">${subLabel}</p>\n </div>\n `\n }\n\n /**\n * @returns The template for the operation's URL.\n */\n protected renderUrl(): TemplateResult {\n const url = this.urlValue\n return html`\n <div class=\"endpoint-url\">\n <div class=\"url-value text-selectable\">${url}</div>\n </div>\n `\n }\n\n /**\n * @returns The template for the list of operations.\n */\n protected renderOperations(endpoint: IApiEndPoint): TemplateResult | string {\n const { operations } = endpoint\n if (!operations.length) {\n return ''\n }\n return html`\n <div class=\"operations\">${operations.map((operation) => this.renderOperation(endpoint, operation))}</div>\n `\n }\n\n /**\n * @param operation The operation to render.\n * @returns The template for the API operation.\n */\n protected renderOperation(endpoint: IApiEndPoint, operation: IApiOperation): TemplateResult {\n const { serverId, baseUri, tryItPanel, tryItButton, asyncApi } = this\n const renderTryIt = !tryItPanel && !asyncApi && !!tryItButton\n const classes = {\n 'operation-container': true,\n 'surface1': true,\n 'tryit': !!tryItPanel,\n }\n return html`\n <div class=\"${classMap(classes)}\">\n <api-operation-document\n .domainId=\"${operation.id}\"\n .operation=\"${operation}\"\n .endpoint=\"${endpoint}\"\n .endpointId=\"${endpoint.id}\"\n .serverId=\"${serverId}\"\n .baseUri=\"${baseUri}\"\n data-domain-id=\"${operation.id}\"\n ?tryItButton=\"${renderTryIt}\"\n showSecurity\n ?renderCodeSnippets=\"${!tryItPanel}\"\n ?asyncApi=\"${this.asyncApi}\"\n class=\"operation\"\n ></api-operation-document>\n ${tryItPanel ? this.renderTryItColumn(operation) : ''}\n </div>\n `\n }\n\n /**\n * @param operation The operation to render.\n * @returns The template for the try it column panel rendered next to the operation documentation/\n */\n protected renderTryItColumn(operation: IApiOperation): TemplateResult | string {\n if (this.asyncApi) {\n return ''\n }\n return html`\n <div class=\"try-it-column\">\n <!-- <div class=\"sticky-content\"> -->\n ${this.renderHttpRequest(operation)} ${this.renderCodeSnippetsPanel(operation)}\n <!-- </div> -->\n </div>\n `\n }\n\n /**\n * @param operation The operation to render.\n * @returns The template for the request editor.\n */\n protected renderHttpRequest(operation: IApiOperation): TemplateResult {\n const content = html`\n <api-request\n .domainId=\"${operation.id}\"\n .serverValue=\"${this.serverValue}\"\n .serverType=\"${this.serverType}\"\n .baseUri=\"${this.baseUri}\"\n .redirectUri=\"${this.redirectUri}\"\n .credentialsSource=\"${this.httpCredentialsSource}\"\n ?urlEditor=\"${this.httpUrlEditor}\"\n ?urlLabel=\"${!this.httpUrlEditor}\"\n ?noServerSelector=\"${this.httpNoServerSelector}\"\n ?allowCustomBaseUri=\"${this.httpAllowCustomBaseUri}\"\n ?allowCustom=\"${this.httpAllowCustom}\"\n allowHideOptional\n data-request-id=\"${operation.id}\"\n @change=\"${this.requestChangeHandler}\"\n ></api-request>\n `\n\n return content\n }\n\n /**\n * @param operation The operation to render.\n * @returns The template for the request's code snippets.\n */\n protected renderCodeSnippetsPanel(operation: IApiOperation): TemplateResult | typeof nothing {\n const values = this.snippetsInternal[operation.id]\n if (!values || !values.value) {\n return nothing\n }\n const { expects } = values.value\n let { payload } = expects\n if (payload && typeof payload !== 'string') {\n payload = ''\n }\n const request: IHttpRequest = {\n url: expects.url,\n headers: expects.headers,\n method: expects.method,\n payload: payload as string,\n }\n return html`\n <section class=\"snippets text-selectable\">\n <http-snippets .request=\"${request}\"></http-snippets>\n </section>\n `\n }\n\n /**\n * @return The template for the endpoint's extensions.\n */\n protected renderExtensions(endpoint: IApiEndPoint): TemplateResult | typeof nothing {\n const { extends: extensions } = endpoint\n if (!extensions || !extensions.length) {\n return nothing\n }\n const type = extensions.find((e) =>\n e.types.includes(AmfNamespace.aml.vocabularies.apiContract.ParametrizedResourceType)\n )\n const traits = extensions.filter((e) =>\n e.types.includes(AmfNamespace.aml.vocabularies.apiContract.ParametrizedTrait)\n )\n const traitsLabel = joinTraitNames(traits)\n const typeLabel = type && type.name\n if (!traitsLabel && !typeLabel) {\n return nothing\n }\n return html`\n <section class=\"extensions\">${this.renderExtends(typeLabel)} ${this.renderTraits(traitsLabel)}</section>\n `\n }\n\n /**\n * @returns The template for the parent resource type.\n */\n protected renderExtends(label?: string): TemplateResult | typeof nothing {\n if (!label) {\n return nothing\n }\n return html`<span>Implements </span\n ><span class=\"resource-type-name text-selectable\" title=\"Resource type applied to this endpoint\">${label}</span>.`\n }\n\n /**\n * @returns The template for the traits applied to the resource.\n */\n protected renderTraits(label?: string): TemplateResult | typeof nothing {\n if (!label) {\n return nothing\n }\n return html`<span>Mixes in </span><span class=\"trait-name text-selectable\">${label}</span>.`\n }\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  import { TemplateResult } from 'lit';
2
- import { ApiDefinitions } from '@api-client/core/browser.js';
2
+ import type { IApiIriTemplateMapping, IApiPayload, IApiResponse, IApiTemplatedLink } from '@api-client/core/amf/definitions/Api.js';
3
3
  import { ApiDocumentationBase } from './ApiDocumentationBase.js';
4
4
  import '../../define/amf/api-payload-document.js';
5
5
  import '../../define/amf/api-parameter-document.js';
@@ -8,15 +8,15 @@ import '../../md/radio/ui-radio.js';
8
8
  * A web component that renders the documentation page for an API response object.
9
9
  */
10
10
  export default class ApiResponseDocument extends ApiDocumentationBase {
11
- protected responseValue?: ApiDefinitions.IApiResponse;
12
- protected payloadsValue?: ApiDefinitions.IApiPayload[];
11
+ protected responseValue?: IApiResponse;
12
+ protected payloadsValue?: IApiPayload[];
13
13
  /**
14
14
  * @returns true when has headers parameters definition
15
15
  */
16
16
  get hasHeaders(): boolean;
17
- get payloadValue(): ApiDefinitions.IApiPayload | undefined;
18
- get response(): ApiDefinitions.IApiResponse | undefined;
19
- set response(value: ApiDefinitions.IApiResponse | undefined);
17
+ get payloadValue(): IApiPayload | undefined;
18
+ get response(): IApiResponse | undefined;
19
+ set response(value: IApiResponse | undefined);
20
20
  /**
21
21
  * When set it opens the headers section
22
22
  * @attribute
@@ -62,7 +62,7 @@ export default class ApiResponseDocument extends ApiDocumentationBase {
62
62
  /**
63
63
  * @returns A template for the link
64
64
  */
65
- protected renderLink(link: ApiDefinitions.IApiTemplatedLink): TemplateResult;
65
+ protected renderLink(link: IApiTemplatedLink): TemplateResult;
66
66
  /**
67
67
  * @returns The template for the link's operation
68
68
  */
@@ -70,10 +70,10 @@ export default class ApiResponseDocument extends ApiDocumentationBase {
70
70
  /**
71
71
  * @returns The template for the link's operation
72
72
  */
73
- protected renderLinkMappings(mappings?: ApiDefinitions.IApiIriTemplateMapping[]): TemplateResult | string;
73
+ protected renderLinkMappings(mappings?: IApiIriTemplateMapping[]): TemplateResult | string;
74
74
  /**
75
75
  * @returns The template for the link's operation
76
76
  */
77
- protected renderLinkMapping(mapping: ApiDefinitions.IApiIriTemplateMapping): TemplateResult;
77
+ protected renderLinkMapping(mapping: IApiIriTemplateMapping): TemplateResult;
78
78
  }
79
79
  //# sourceMappingURL=ApiResponseDocument.element.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ApiResponseDocument.element.d.ts","sourceRoot":"","sources":["../../../../src/elements/amf/ApiResponseDocument.element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,cAAc,EAAE,MAAM,KAAK,CAAA;AAE1C,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAA;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAGhE,OAAO,0CAA0C,CAAA;AACjD,OAAO,4CAA4C,CAAA;AACnD,OAAO,4BAA4B,CAAA;AAEnC;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,mBAAoB,SAAQ,oBAAoB;IACnE,SAAS,CAAC,aAAa,CAAC,EAAE,cAAc,CAAC,YAAY,CAAA;IAErD,SAAS,CAAC,aAAa,CAAC,EAAE,cAAc,CAAC,WAAW,EAAE,CAAA;IAEtD;;OAEG;IACH,IAAI,UAAU,IAAI,OAAO,CAMxB;IAED,IAAI,YAAY,IAAI,cAAc,CAAC,WAAW,GAAG,SAAS,CAUzD;IAED,IAAI,QAAQ,IAA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;KAE7D,CAAA;QACH,CAAC;QAED;;WAEG;QACO,kBAAkB,CAAC,QAAkD;YAC7E,IAAI,CAAC,QAAQ,EAAE,CAAC;gBACd,OAAO,EAAE,CAAA;YACX,CAAC;YACD,OAAO,IAAI,CAAA;;;;;;UAML,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;;KAEzD,CAAA;QACH,CAAC;QAED;;WAEG;QACO,iBAAiB,CAAC,OAA8C;YACxE,MAAM,EAAE,cAAc,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAA;YACpD,OAAO,IAAI,CAAA;;cAED,gBAAgB;cAChB,cAAc;;KAEvB,CAAA;QACH,CAAC;;;;;;;AAjRH;;GAEG;AACH,mCA+QC","sourcesContent":["import { html, TemplateResult } from 'lit'\nimport { property } from 'lit/decorators.js'\nimport { ApiDefinitions } from '@api-client/core/browser.js'\nimport { ApiDocumentationBase } from './ApiDocumentationBase.js'\nimport { Events } from '../../events/amf/Events.js'\nimport RadioElement from '../../md/radio/internals/RadioElement.js'\nimport '../../define/amf/api-payload-document.js'\nimport '../../define/amf/api-parameter-document.js'\nimport '../../md/radio/ui-radio.js'\n\n/**\n * A web component that renders the documentation page for an API response object.\n */\nexport default class ApiResponseDocument extends ApiDocumentationBase {\n protected responseValue?: ApiDefinitions.IApiResponse\n\n protected payloadsValue?: ApiDefinitions.IApiPayload[]\n\n /**\n * @returns true when has headers parameters definition\n */\n get hasHeaders(): boolean {\n const response = this.responseValue\n if (!response) {\n return false\n }\n return Array.isArray(response.headers) && !!response.headers.length\n }\n\n get payloadValue(): ApiDefinitions.IApiPayload | undefined {\n const { mimeType } = this\n const payloads = this.payloadsValue\n if (!Array.isArray(payloads) || !payloads.length) {\n return undefined\n }\n if (!mimeType) {\n return payloads[0]\n }\n return payloads.find((item) => item.mediaType === mimeType)\n }\n\n get response(): ApiDefinitions.IApiResponse | undefined {\n return this.responseValue\n }\n\n @property({ type: Object })\n set response(value: ApiDefinitions.IApiResponse | undefined) {\n const old = this.responseValue\n if (old === value) {\n return\n }\n this.responseValue = value\n this.processGraph()\n }\n\n /**\n * When set it opens the headers section\n * @attribute\n */\n @property({ type: Boolean, reflect: true }) accessor headersOpened: boolean | undefined\n\n /**\n * When set it opens the payload section\n * @attribute\n */\n @property({ type: Boolean, reflect: true }) accessor payloadOpened: boolean | undefined\n\n /**\n * The currently selected media type for the payloads.\n * @attribute\n */\n @property({ type: String, reflect: true }) accessor mimeType: string | undefined\n\n /**\n * Queries the graph store for the API Response data.\n */\n override async processGraph(): Promise<void> {\n await this.queryResponse()\n await this.queryPayloads()\n this.requestUpdate()\n await this.updateComplete\n }\n\n /**\n * Queries the store for the response data, when needed.\n */\n async queryResponse(): Promise<void> {\n const { domainId } = this\n if (!domainId) {\n // this.responseValue = undefined;\n return\n }\n if (this.responseValue && this.responseValue.id === domainId) {\n // in case the response model was provided via the property setter.\n return\n }\n try {\n const info = await Events.Response.get(this, domainId)\n this.responseValue = info\n } catch (e) {\n this.responseValue = undefined\n const ex = e as Error\n Events.Telemetry.exception(this, ex.message, false)\n Events.Reporting.error(this, ex, `Unable to query for API response data: ${ex.message}`, this.localName)\n }\n }\n\n async queryPayloads(): Promise<void> {\n const { response } = this\n if (!response || !Array.isArray(response.payloads) || !response.payloads.length) {\n this.payloadsValue = undefined\n return\n }\n this.payloadsValue = response.payloads\n }\n\n protected handleMediaTypeSelect(e: Event): void {\n const button = e.target as RadioElement\n if (!button.checked) {\n return\n }\n const mime = button.value as string\n this.mimeType = mime\n }\n\n override render(): TemplateResult {\n if (!this.responseValue) {\n return html``\n }\n return html`\n ${this.customDomainPropertiesTemplate(this.responseValue.customDomainProperties)}\n ${this.descriptionTemplate(this.responseValue.description)} ${this.renderHeaders()} ${this.renderLinks()}\n ${this.renderPayload()}\n `\n }\n\n /**\n * @returns The template for the headers\n */\n protected renderHeaders(): TemplateResult | string {\n const { response } = this\n if (!this.hasHeaders || !response) {\n return ''\n }\n const content = response.headers.map((id) => this.schemaItemTemplate(id))\n return this.paramsSectionTemplate('Headers', 'headersOpened', content, { innerSection: true })\n }\n\n /**\n * @returns The template for the payload section\n */\n protected renderPayload(): TemplateResult | string {\n const payload = this.payloadValue\n if (!payload) {\n return ''\n }\n const content = html`\n ${this.renderPayloadSelector()}\n <api-payload-document .domainId=\"${payload.id}\" .payload=\"${payload}\"></api-payload-document>\n `\n // return this.paramsSectionTemplate('Response body', 'payloadOpened', content);\n return html`\n <div class=\"inner-section\">\n <div class=\"params-title\"><span class=\"label\">Response body</span></div>\n ${content}\n </div>\n `\n }\n\n /**\n * @returns The template for the payload media type selector.\n */\n protected renderPayloadSelector(): TemplateResult | string {\n const payloads = this.payloadsValue\n if (!Array.isArray(payloads) || payloads.length < 2) {\n return ''\n }\n const mime: string[] = []\n payloads.forEach((item) => {\n if (item.mediaType) {\n mime.push(item.mediaType)\n }\n })\n if (!mime.length) {\n return ''\n }\n const mimeType = this.mimeType || mime[0]\n return html`\n <div class=\"media-type-selector\">\n <span id=\"mimeLabel\" class=\"label-large\">Body content type</span>\n ${mime.map(\n (item) => html`\n <label class=\"label-large\">\n <ui-radio\n class=\"response-toggle\"\n name=\"responseMime\"\n value=\"${item}\"\n .checked=\"${mimeType === item}\"\n @change=\"${this.handleMediaTypeSelect}\"\n aria-describedby=\"mimeLabel\"\n ></ui-radio>\n ${item}\n </label>\n `\n )}\n </div>\n `\n }\n\n /**\n * @returns The template for the response links\n */\n protected renderLinks(): TemplateResult | string {\n const { response } = this\n if (!response) {\n return ''\n }\n const { links = [] } = response\n if (!Array.isArray(links) || !links.length) {\n return ''\n }\n return html`\n <div class=\"links-header\">Links</div>\n ${links.map((link) => this.renderLink(link))}\n `\n }\n\n /**\n * @returns A template for the link\n */\n protected renderLink(link: ApiDefinitions.IApiTemplatedLink): TemplateResult {\n const { name, mapping, operationId } = link\n return html`\n <div class=\"link-header text-selectable\">${name}</div>\n ${this.renderLinkOperation(operationId)}\n <div slot=\"markdown-html\" class=\"link-table text-selectable\">${this.renderLinkMappings(mapping)}</div>\n `\n }\n\n /**\n * @returns The template for the link's operation\n */\n protected renderLinkOperation(operationId?: string): TemplateResult | string {\n if (!operationId) {\n return ''\n }\n return html`\n <div class=\"operation-id\">\n <span class=\"label\">Operation ID:</span>\n <span class=\"operation-name text-selectable\">${operationId}</span>\n </div>\n `\n }\n\n /**\n * @returns The template for the link's operation\n */\n protected renderLinkMappings(mappings?: ApiDefinitions.IApiIriTemplateMapping[]): TemplateResult | string {\n if (!mappings) {\n return ''\n }\n return html`\n <table class=\"mapping-table text-selectable\">\n <tr>\n <th>Variable</th>\n <th>Expression</th>\n </tr>\n ${mappings.map((item) => this.renderLinkMapping(item))}\n </table>\n `\n }\n\n /**\n * @returns The template for the link's operation\n */\n protected renderLinkMapping(mapping: ApiDefinitions.IApiIriTemplateMapping): TemplateResult {\n const { linkExpression, templateVariable } = mapping\n return html`\n <tr>\n <td>${templateVariable}</td>\n <td>${linkExpression}</td>\n </tr>\n `\n }\n}\n"]}
1
+ {"version":3,"file":"ApiResponseDocument.element.js","sourceRoot":"","sources":["../../../../src/elements/amf/ApiResponseDocument.element.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAkB,MAAM,KAAK,CAAA;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAO5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAChE,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAEnD,OAAO,0CAA0C,CAAA;AACjD,OAAO,4CAA4C,CAAA;AACnD,OAAO,4BAA4B,CAAA;;sBAKc,oBAAoB;;;;;;;;;;;;iBAAhD,mBAAoB,SAAQ,WAAoB;;;wCAgClE,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;yCAc1B,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI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CAAC;gBACjB,OAAO,EAAE,CAAA;YACX,CAAC;YACD,OAAO,IAAI,CAAA;;;uDAGwC,WAAW;;KAE7D,CAAA;QACH,CAAC;QAED;;WAEG;QACO,kBAAkB,CAAC,QAAmC;YAC9D,IAAI,CAAC,QAAQ,EAAE,CAAC;gBACd,OAAO,EAAE,CAAA;YACX,CAAC;YACD,OAAO,IAAI,CAAA;;;;;;UAML,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;;KAEzD,CAAA;QACH,CAAC;QAED;;WAEG;QACO,iBAAiB,CAAC,OAA+B;YACzD,MAAM,EAAE,cAAc,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAA;YACpD,OAAO,IAAI,CAAA;;cAED,gBAAgB;cAChB,cAAc;;KAEvB,CAAA;QACH,CAAC;;;;;;;AAjRH;;GAEG;AACH,mCA+QC","sourcesContent":["import { html, TemplateResult } from 'lit'\nimport { property } from 'lit/decorators.js'\nimport type {\n IApiIriTemplateMapping,\n IApiPayload,\n IApiResponse,\n IApiTemplatedLink,\n} from '@api-client/core/amf/definitions/Api.js'\nimport { ApiDocumentationBase } from './ApiDocumentationBase.js'\nimport { Events } from '../../events/amf/Events.js'\nimport RadioElement from '../../md/radio/internals/RadioElement.js'\nimport '../../define/amf/api-payload-document.js'\nimport '../../define/amf/api-parameter-document.js'\nimport '../../md/radio/ui-radio.js'\n\n/**\n * A web component that renders the documentation page for an API response object.\n */\nexport default class ApiResponseDocument extends ApiDocumentationBase {\n protected responseValue?: IApiResponse\n\n protected payloadsValue?: IApiPayload[]\n\n /**\n * @returns true when has headers parameters definition\n */\n get hasHeaders(): boolean {\n const response = this.responseValue\n if (!response) {\n return false\n }\n return Array.isArray(response.headers) && !!response.headers.length\n }\n\n get payloadValue(): IApiPayload | undefined {\n const { mimeType } = this\n const payloads = this.payloadsValue\n if (!Array.isArray(payloads) || !payloads.length) {\n return undefined\n }\n if (!mimeType) {\n return payloads[0]\n }\n return payloads.find((item) => item.mediaType === mimeType)\n }\n\n get response(): IApiResponse | undefined {\n return this.responseValue\n }\n\n @property({ type: Object })\n set response(value: IApiResponse | undefined) {\n const old = this.responseValue\n if (old === value) {\n return\n }\n this.responseValue = value\n this.processGraph()\n }\n\n /**\n * When set it opens the headers section\n * @attribute\n */\n @property({ type: Boolean, reflect: true }) accessor headersOpened: boolean | undefined\n\n /**\n * When set it opens the payload section\n * @attribute\n */\n @property({ type: Boolean, reflect: true }) accessor payloadOpened: boolean | undefined\n\n /**\n * The currently selected media type for the payloads.\n * @attribute\n */\n @property({ type: String, reflect: true }) accessor mimeType: string | undefined\n\n /**\n * Queries the graph store for the API Response data.\n */\n override async processGraph(): Promise<void> {\n await this.queryResponse()\n await this.queryPayloads()\n this.requestUpdate()\n await this.updateComplete\n }\n\n /**\n * Queries the store for the response data, when needed.\n */\n async queryResponse(): Promise<void> {\n const { domainId } = this\n if (!domainId) {\n // this.responseValue = undefined;\n return\n }\n if (this.responseValue && this.responseValue.id === domainId) {\n // in case the response model was provided via the property setter.\n return\n }\n try {\n const info = await Events.Response.get(this, domainId)\n this.responseValue = info\n } catch (e) {\n this.responseValue = undefined\n const ex = e as Error\n Events.Telemetry.exception(this, ex.message, false)\n Events.Reporting.error(this, ex, `Unable to query for API response data: ${ex.message}`, this.localName)\n }\n }\n\n async queryPayloads(): Promise<void> {\n const { response } = this\n if (!response || !Array.isArray(response.payloads) || !response.payloads.length) {\n this.payloadsValue = undefined\n return\n }\n this.payloadsValue = response.payloads\n }\n\n protected handleMediaTypeSelect(e: Event): void {\n const button = e.target as RadioElement\n if (!button.checked) {\n return\n }\n const mime = button.value as string\n this.mimeType = mime\n }\n\n override render(): TemplateResult {\n if (!this.responseValue) {\n return html``\n }\n return html`\n ${this.customDomainPropertiesTemplate(this.responseValue.customDomainProperties)}\n ${this.descriptionTemplate(this.responseValue.description)} ${this.renderHeaders()} ${this.renderLinks()}\n ${this.renderPayload()}\n `\n }\n\n /**\n * @returns The template for the headers\n */\n protected renderHeaders(): TemplateResult | string {\n const { response } = this\n if (!this.hasHeaders || !response) {\n return ''\n }\n const content = response.headers.map((id) => this.schemaItemTemplate(id))\n return this.paramsSectionTemplate('Headers', 'headersOpened', content, { innerSection: true })\n }\n\n /**\n * @returns The template for the payload section\n */\n protected renderPayload(): TemplateResult | string {\n const payload = this.payloadValue\n if (!payload) {\n return ''\n }\n const content = html`\n ${this.renderPayloadSelector()}\n <api-payload-document .domainId=\"${payload.id}\" .payload=\"${payload}\"></api-payload-document>\n `\n // return this.paramsSectionTemplate('Response body', 'payloadOpened', content);\n return html`\n <div class=\"inner-section\">\n <div class=\"params-title\"><span class=\"label\">Response body</span></div>\n ${content}\n </div>\n `\n }\n\n /**\n * @returns The template for the payload media type selector.\n */\n protected renderPayloadSelector(): TemplateResult | string {\n const payloads = this.payloadsValue\n if (!Array.isArray(payloads) || payloads.length < 2) {\n return ''\n }\n const mime: string[] = []\n payloads.forEach((item) => {\n if (item.mediaType) {\n mime.push(item.mediaType)\n }\n })\n if (!mime.length) {\n return ''\n }\n const mimeType = this.mimeType || mime[0]\n return html`\n <div class=\"media-type-selector\">\n <span id=\"mimeLabel\" class=\"label-large\">Body content type</span>\n ${mime.map(\n (item) => html`\n <label class=\"label-large\">\n <ui-radio\n class=\"response-toggle\"\n name=\"responseMime\"\n value=\"${item}\"\n .checked=\"${mimeType === item}\"\n @change=\"${this.handleMediaTypeSelect}\"\n aria-describedby=\"mimeLabel\"\n ></ui-radio>\n ${item}\n </label>\n `\n )}\n </div>\n `\n }\n\n /**\n * @returns The template for the response links\n */\n protected renderLinks(): TemplateResult | string {\n const { response } = this\n if (!response) {\n return ''\n }\n const { links = [] } = response\n if (!Array.isArray(links) || !links.length) {\n return ''\n }\n return html`\n <div class=\"links-header\">Links</div>\n ${links.map((link) => this.renderLink(link))}\n `\n }\n\n /**\n * @returns A template for the link\n */\n protected renderLink(link: IApiTemplatedLink): TemplateResult {\n const { name, mapping, operationId } = link\n return html`\n <div class=\"link-header text-selectable\">${name}</div>\n ${this.renderLinkOperation(operationId)}\n <div slot=\"markdown-html\" class=\"link-table text-selectable\">${this.renderLinkMappings(mapping)}</div>\n `\n }\n\n /**\n * @returns The template for the link's operation\n */\n protected renderLinkOperation(operationId?: string): TemplateResult | string {\n if (!operationId) {\n return ''\n }\n return html`\n <div class=\"operation-id\">\n <span class=\"label\">Operation ID:</span>\n <span class=\"operation-name text-selectable\">${operationId}</span>\n </div>\n `\n }\n\n /**\n * @returns The template for the link's operation\n */\n protected renderLinkMappings(mappings?: IApiIriTemplateMapping[]): TemplateResult | string {\n if (!mappings) {\n return ''\n }\n return html`\n <table class=\"mapping-table text-selectable\">\n <tr>\n <th>Variable</th>\n <th>Expression</th>\n </tr>\n ${mappings.map((item) => this.renderLinkMapping(item))}\n </table>\n `\n }\n\n /**\n * @returns The template for the link's operation\n */\n protected renderLinkMapping(mapping: IApiIriTemplateMapping): TemplateResult {\n const { linkExpression, templateVariable } = mapping\n return html`\n <tr>\n <td>${templateVariable}</td>\n <td>${linkExpression}</td>\n </tr>\n `\n }\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  import { PropertyValues, TemplateResult } from 'lit';
2
- import { AmfShapes } from '@api-client/core/browser.js';
2
+ import type { IApiAnyShape, IApiArrayShape, IApiFileShape, IApiNodeShape, IApiPropertyShape, IApiScalarShape, IApiSchemaShape, IApiShape, IApiTupleShape, IApiUnionShape, IShapeUnion } from '@api-client/core/amf/definitions/Shapes.js';
3
3
  import { ApiDocumentationBase } from './ApiDocumentationBase.js';
4
4
  import '../../md/radio/ui-radio.js';
5
5
  export default class ApiSchemaDocument extends ApiDocumentationBase {
@@ -8,9 +8,9 @@ export default class ApiSchemaDocument extends ApiDocumentationBase {
8
8
  * @attribute
9
9
  */
10
10
  accessor mimeType: string | undefined;
11
- schemaValue?: AmfShapes.IShapeUnion;
12
- get schema(): AmfShapes.IShapeUnion | undefined;
13
- set schema(value: AmfShapes.IShapeUnion | undefined);
11
+ schemaValue?: IShapeUnion;
12
+ get schema(): IShapeUnion | undefined;
13
+ set schema(value: IShapeUnion | undefined);
14
14
  /**
15
15
  * Generates examples from the schema properties for the given mime type
16
16
  * when examples are not defined in the schema.
@@ -62,38 +62,38 @@ export default class ApiSchemaDocument extends ApiDocumentationBase {
62
62
  /**
63
63
  * Orders union items so the first is the one that has properties defined inline.
64
64
  */
65
- orderUnion(shapes: AmfShapes.IShapeUnion[]): AmfShapes.IShapeUnion[];
65
+ orderUnion(shapes: IShapeUnion[]): IShapeUnion[];
66
66
  render(): TemplateResult;
67
67
  /**
68
68
  * @returns The template for the schema title.
69
69
  */
70
- titleTemplate(schema: AmfShapes.IShapeUnion): TemplateResult | string;
70
+ titleTemplate(schema: IShapeUnion): TemplateResult | string;
71
71
  /**
72
72
  * @param schema The shape to render.
73
73
  * @returns The template for the schema properties depending on the type
74
74
  */
75
- schemaContentTemplate(schema: AmfShapes.IShapeUnion): TemplateResult | string;
75
+ schemaContentTemplate(schema: IShapeUnion): TemplateResult | string;
76
76
  /**
77
77
  * @returns The template for the scalar shape.
78
78
  */
79
- scalarShapeTemplate(schema: AmfShapes.IApiScalarShape): TemplateResult | string;
79
+ scalarShapeTemplate(schema: IApiScalarShape): TemplateResult | string;
80
80
  /**
81
81
  * @returns The template for the node shape.
82
82
  */
83
- nodeShapeTemplate(schema: AmfShapes.IApiNodeShape): TemplateResult | string;
83
+ nodeShapeTemplate(schema: IApiNodeShape): TemplateResult | string;
84
84
  /**
85
85
  * @returns The template for the union shape.
86
86
  */
87
- unionShapeTemplate(schema: AmfShapes.IApiUnionShape): TemplateResult | string;
88
- andUnionItemTemplate(shape: AmfShapes.IShapeUnion): TemplateResult;
87
+ unionShapeTemplate(schema: IApiUnionShape): TemplateResult | string;
88
+ andUnionItemTemplate(shape: IShapeUnion): TemplateResult;
89
89
  /**
90
90
  * @returns The template for the "and" union item's title, if inherited from another type.
91
91
  */
92
- inheritanceNameTemplate(shape: AmfShapes.IShapeUnion): TemplateResult | string;
92
+ inheritanceNameTemplate(shape: IShapeUnion): TemplateResult | string;
93
93
  /**
94
94
  * @returns The template for the `any of` union.
95
95
  */
96
- anyOfUnionTemplate(schemaId: string, items: AmfShapes.IShapeUnion[]): TemplateResult | string;
96
+ anyOfUnionTemplate(schemaId: string, items: IShapeUnion[]): TemplateResult | string;
97
97
  /**
98
98
  * @param schemaId The parent schema id value
99
99
  * @param options The options to render.
@@ -106,31 +106,31 @@ export default class ApiSchemaDocument extends ApiDocumentationBase {
106
106
  /**
107
107
  * @returns The template for the file shape.
108
108
  */
109
- fileShapeTemplate(schema: AmfShapes.IApiFileShape): TemplateResult | string;
109
+ fileShapeTemplate(schema: IApiFileShape): TemplateResult | string;
110
110
  /**
111
111
  * @returns The template for the schema shape.
112
112
  */
113
- schemaShapeTemplate(schema: AmfShapes.IApiSchemaShape): TemplateResult | string;
113
+ schemaShapeTemplate(schema: IApiSchemaShape): TemplateResult | string;
114
114
  /**
115
115
  * @returns The template for the array shape.
116
116
  */
117
- arrayShapeTemplate(schema: AmfShapes.IApiArrayShape): TemplateResult | string;
117
+ arrayShapeTemplate(schema: IApiArrayShape): TemplateResult | string;
118
118
  /**
119
119
  * @returns The template for the tuple shape.
120
120
  */
121
- tupleShapeTemplate(schema: AmfShapes.IApiTupleShape): TemplateResult | string;
121
+ tupleShapeTemplate(schema: IApiTupleShape): TemplateResult | string;
122
122
  /**
123
123
  * @returns The template for the Any shape.
124
124
  */
125
- anyShapeTemplate(schema: AmfShapes.IApiAnyShape): TemplateResult | string;
125
+ anyShapeTemplate(schema: IApiAnyShape): TemplateResult | string;
126
126
  /**
127
127
  * @returns The template for the Any shape.
128
128
  */
129
- nilShapeTemplate(schema: AmfShapes.IApiShape): TemplateResult | string;
129
+ nilShapeTemplate(schema: IApiShape): TemplateResult | string;
130
130
  /**
131
131
  * @returns The template for the schema property item.
132
132
  */
133
- shapePropertyTemplate(schema: AmfShapes.IApiPropertyShape): TemplateResult | string;
133
+ shapePropertyTemplate(schema: IApiPropertyShape): TemplateResult | string;
134
134
  /**
135
135
  * @returns THe template for the line decorator in front of the property name.
136
136
  */
@@ -138,7 +138,7 @@ export default class ApiSchemaDocument extends ApiDocumentationBase {
138
138
  /**
139
139
  * @returns The template for the schema property item that has no range information.
140
140
  */
141
- shapePropertyWithoutRangeTemplate(schema: AmfShapes.IApiPropertyShape): TemplateResult;
142
- propertyDescriptionTemplate(schema: AmfShapes.IApiPropertyShape): TemplateResult | string;
141
+ shapePropertyWithoutRangeTemplate(schema: IApiPropertyShape): TemplateResult;
142
+ propertyDescriptionTemplate(schema: IApiPropertyShape): TemplateResult | string;
143
143
  }
144
144
  //# sourceMappingURL=ApiSchemaDocument.element.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ApiSchemaDocument.element.d.ts","sourceRoot":"","sources":["../../../../src/elements/amf/ApiSchemaDocument.element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AAE1D,OAAO,EAAoC,SAAS,EAAE,MAAM,6BAA6B,CAAA;AAYzF,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAKhE,OAAO,4BAA4B,CAAA;AAUnC,MAAM,CAAC,OAAO,OAAO,iBAAkB,SAAQ,oBAAoB;IACjE;;;OAGG;IACwC,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IAEhF,WAAW,CAAC,EAAE,SAAS,CAAC,WAAW,CAAA;IAEnC,IAAI,MAAM,IAAI,SAAS,CAAC,WAAW,GAAG,SAAS,CAE9C;IAED,IAAI,MAAM,CAAC,KAAK,EAAE,SAAS,CAAC,WAAW,GAAG,SAAS,EAOlD;IAED;;;;OAIG;IACyC,QAAQ,CAAC,aAAa,EAAE,OAAO,GAAG,SAAS,CAAA;IAEvF;;;;OAIG;IACyC,QAAQ,CAAC,cAAc,EAAE,OAAO,GAAG,SAAS,CAAA;I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'lit/decorators.js';
4
- import { AmfNamespace, ApiSchemaGenerator } from '@api-client/core/browser.js';
5
4
  import { classMap } from 'lit/directives/class-map.js';
5
+ import { AmfNamespace } from '@api-client/core/amf/definitions/Namespace.js';
6
+ import { ApiSchemaGenerator } from '@api-client/core/amf/ApiSchemaGenerator.js';
6
7
  import { readPropertyTypeLabel, isScalarUnion, isScalarType } from '../../amf/lib/Utils.js';
7
8
  import { detailsTemplate, paramNameTemplate, typeValueTemplate, fileDetailsTemplate, scalarDetailsTemplate, unionDetailsTemplate, pillTemplate, } from './SchemaCommonTemplates.js';
8
9
  import { ApiDocumentationBase } from './ApiDocumentationBase.js';
@@ -211,7 +212,7 @@ let ApiSchemaDocument = (() => {
211
212
  // * @param {string} id
212
213
  // * @param {any} updated
213
214
  // */
214
- // [checkSchemaPropertyUpdate](schema: AmfShapes.IShapeUnion, id: string, updated): void {
215
+ // [checkSchemaPropertyUpdate](schema: IShapeUnion, id: string, updated): void {
215
216
  // if (!schema) {
216
217
  // return;
217
218
  // }
@@ -416,7 +417,7 @@ let ApiSchemaDocument = (() => {
416
417
  return html ` <div class="children-section">${items.map((item) => this.shapePropertyTemplate(item))}</div> `;
417
418
  }
418
419
  // /**
419
- // * @param {AmfShapes.IShapeUnion[]} parents
420
+ // * @param {IShapeUnion[]} parents
420
421
  // * @returns {TemplateResult[]|undefined}
421
422
  // */
422
423
  // [inheritedTemplate](parents) {