@api-client/ui 0.1.9 → 0.2.2

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 (1357) hide show
  1. package/.github/workflows/deployment.yml +0 -2
  2. package/build/src/decorators/reactive.d.ts.map +1 -1
  3. package/build/src/decorators/reactive.js +17 -8
  4. package/build/src/decorators/reactive.js.map +1 -1
  5. package/build/src/index.d.ts +0 -17
  6. package/build/src/index.d.ts.map +1 -1
  7. package/build/src/index.js +0 -18
  8. package/build/src/index.js.map +1 -1
  9. package/build/src/md/dialog/internals/Dialog.d.ts.map +1 -1
  10. package/build/src/md/dialog/internals/Dialog.js +6 -5
  11. package/build/src/md/dialog/internals/Dialog.js.map +1 -1
  12. package/build/src/md/dialog/internals/Dialog.styles.d.ts.map +1 -1
  13. package/build/src/md/dialog/internals/Dialog.styles.js +14 -10
  14. package/build/src/md/dialog/internals/Dialog.styles.js.map +1 -1
  15. package/demo/elements/authorization/api-key.html +1 -1
  16. package/demo/elements/authorization/basic.html +1 -1
  17. package/demo/elements/authorization/bearer.html +1 -1
  18. package/demo/elements/authorization/index.html +0 -3
  19. package/demo/elements/authorization/ntlm.html +1 -1
  20. package/demo/elements/authorization/oauth-authorize.html +1 -1
  21. package/demo/elements/authorization/oauth-error.html +1 -1
  22. package/demo/elements/authorization/oauth2.html +1 -1
  23. package/demo/elements/authorization/oidc.html +1 -1
  24. package/demo/elements/context-menu/basic.html +1 -1
  25. package/demo/elements/context-menu/custom-data.html +1 -1
  26. package/demo/elements/context-menu/enabled-state.html +1 -1
  27. package/demo/elements/context-menu/icons.html +1 -1
  28. package/demo/elements/context-menu/nested.html +1 -1
  29. package/demo/elements/context-menu/no-execute.html +1 -1
  30. package/demo/elements/context-menu/radio-menu.html +1 -1
  31. package/demo/elements/context-menu/separators.html +1 -1
  32. package/demo/elements/environment/environment-editor.html +1 -1
  33. package/demo/elements/environment/server-editor.html +1 -1
  34. package/demo/elements/environment/variables-editor.html +1 -1
  35. package/demo/elements/har/har-viewer.html +1 -1
  36. package/demo/elements/highlight/index.html +0 -4
  37. package/demo/elements/highlight/marked-highlight.html +1 -1
  38. package/demo/elements/highlight/prism-highlight.html +1 -1
  39. package/demo/elements/http/body-editor.html +1 -1
  40. package/demo/elements/http/headers.html +1 -1
  41. package/demo/elements/http/http-assertions.html +1 -1
  42. package/demo/elements/http/http-flows.html +1 -1
  43. package/demo/elements/http/request-editor.html +1 -1
  44. package/demo/elements/http/request-log.html +1 -1
  45. package/demo/elements/http/url-editing.html +1 -1
  46. package/demo/elements/icons/index.html +1 -1
  47. package/demo/elements/index.html +0 -3
  48. package/demo/elements/project/index.html +7 -0
  49. package/demo/elements/project/project-run-report.html +1 -1
  50. package/demo/elements/project/request-editor.html +1 -1
  51. package/demo/elements/user/user-avatar.html +1 -1
  52. package/demo/elements/user/user-avatar.ts +1 -1
  53. package/demo/index.html +3 -3
  54. package/demo/layout/index.html +1 -1
  55. package/demo/{elements/md → md}/UiDemoPage.ts +1 -1
  56. package/demo/{elements/md → md}/buttons/button.html +3 -3
  57. package/demo/{elements/md → md}/buttons/button.ts +10 -10
  58. package/demo/{elements/md → md}/buttons/icon-button.html +3 -3
  59. package/demo/{elements/md → md}/buttons/icon-button.ts +4 -4
  60. package/demo/{elements/md → md}/buttons/segmented-buttons.html +3 -3
  61. package/demo/{elements/md → md}/buttons/segmented-buttons.ts +4 -4
  62. package/demo/{elements/md → md}/chip/chip.html +3 -3
  63. package/demo/{elements/md → md}/chip/chip.ts +5 -5
  64. package/demo/{elements/md → md}/collapse/CustomDetail.ts +2 -2
  65. package/demo/{elements/md → md}/collapse/collapse.html +3 -3
  66. package/demo/{elements/md → md}/collapse/collapse.ts +1 -1
  67. package/demo/{elements/md → md}/dialog/dialog.html +7 -3
  68. package/demo/{elements/md → md}/dialog/dialog.ts +19 -12
  69. package/demo/{elements/md → md}/index.html +3 -3
  70. package/demo/{elements/md → md}/inputs/checkbox.html +3 -3
  71. package/demo/{elements/md → md}/inputs/checkbox.ts +4 -4
  72. package/demo/{elements/md → md}/inputs/input.html +3 -3
  73. package/demo/{elements/md → md}/inputs/input.ts +7 -7
  74. package/demo/{elements/md → md}/inputs/radio.html +3 -3
  75. package/demo/{elements/md → md}/inputs/radio.ts +4 -4
  76. package/demo/{elements/md → md}/inputs/switch.html +3 -3
  77. package/demo/{elements/md → md}/inputs/switch.ts +5 -5
  78. package/demo/{elements/md → md}/list/dropdown-list.html +3 -3
  79. package/demo/{elements/md → md}/list/dropdown-list.ts +9 -9
  80. package/demo/{elements/md → md}/list/list.html +3 -3
  81. package/demo/{elements/md → md}/list/list.ts +5 -5
  82. package/demo/{elements/md → md}/notification/snack.html +3 -3
  83. package/demo/{elements/md → md}/notification/snack.ts +2 -2
  84. package/demo/{elements/md → md}/progress/progress.html +3 -3
  85. package/demo/{elements/md → md}/progress/progress.ts +2 -2
  86. package/demo/{elements/md → md}/tabs/tabs.html +3 -3
  87. package/demo/{elements/md → md}/tabs/tabs.ts +7 -7
  88. package/demo/tsconfig.json +0 -3
  89. package/eslint.config.js +0 -3
  90. package/package.json +44 -71
  91. package/src/decorators/reactive.ts +18 -8
  92. package/src/index.ts +0 -19
  93. package/src/md/dialog/internals/Dialog.styles.ts +14 -10
  94. package/src/md/dialog/internals/Dialog.ts +6 -5
  95. package/test/core/activity.spec.ts +3 -3
  96. package/tsconfig.all.json +7 -0
  97. package/tsconfig.json +1 -0
  98. package/web-dev-server.config.js +21 -0
  99. package/web-test-runner.config.js +8 -28
  100. package/bin/dev.ts +0 -7
  101. package/bin/test.ts +0 -6
  102. package/build/src/amf/lib/AmfInputParser.d.ts +0 -69
  103. package/build/src/amf/lib/AmfInputParser.d.ts.map +0 -1
  104. package/build/src/amf/lib/AmfInputParser.js +0 -189
  105. package/build/src/amf/lib/AmfInputParser.js.map +0 -1
  106. package/build/src/amf/lib/AmfParameters.d.ts +0 -166
  107. package/build/src/amf/lib/AmfParameters.d.ts.map +0 -1
  108. package/build/src/amf/lib/AmfParameters.js +0 -720
  109. package/build/src/amf/lib/AmfParameters.js.map +0 -1
  110. package/build/src/amf/lib/AmfSecurity.d.ts +0 -7
  111. package/build/src/amf/lib/AmfSecurity.d.ts.map +0 -1
  112. package/build/src/amf/lib/AmfSecurity.js +0 -41
  113. package/build/src/amf/lib/AmfSecurity.js.map +0 -1
  114. package/build/src/amf/lib/InputCache.d.ts +0 -45
  115. package/build/src/amf/lib/InputCache.d.ts.map +0 -1
  116. package/build/src/amf/lib/InputCache.js +0 -92
  117. package/build/src/amf/lib/InputCache.js.map +0 -1
  118. package/build/src/amf/lib/Oauth2RamlCustomData.d.ts +0 -38
  119. package/build/src/amf/lib/Oauth2RamlCustomData.d.ts.map +0 -1
  120. package/build/src/amf/lib/Oauth2RamlCustomData.js +0 -248
  121. package/build/src/amf/lib/Oauth2RamlCustomData.js.map +0 -1
  122. package/build/src/amf/lib/PayloadUtils.d.ts +0 -19
  123. package/build/src/amf/lib/PayloadUtils.d.ts.map +0 -1
  124. package/build/src/amf/lib/PayloadUtils.js +0 -73
  125. package/build/src/amf/lib/PayloadUtils.js.map +0 -1
  126. package/build/src/amf/lib/QueryParameterProcessor.d.ts +0 -44
  127. package/build/src/amf/lib/QueryParameterProcessor.d.ts.map +0 -1
  128. package/build/src/amf/lib/QueryParameterProcessor.js +0 -167
  129. package/build/src/amf/lib/QueryParameterProcessor.js.map +0 -1
  130. package/build/src/amf/lib/UrlUtils.d.ts +0 -49
  131. package/build/src/amf/lib/UrlUtils.d.ts.map +0 -1
  132. package/build/src/amf/lib/UrlUtils.js +0 -209
  133. package/build/src/amf/lib/UrlUtils.js.map +0 -1
  134. package/build/src/amf/lib/Utils.d.ts +0 -43
  135. package/build/src/amf/lib/Utils.d.ts.map +0 -1
  136. package/build/src/amf/lib/Utils.js +0 -204
  137. package/build/src/amf/lib/Utils.js.map +0 -1
  138. package/build/src/amf/lib/navigation-layout/ApiSorting.d.ts +0 -8
  139. package/build/src/amf/lib/navigation-layout/ApiSorting.d.ts.map +0 -1
  140. package/build/src/amf/lib/navigation-layout/ApiSorting.js +0 -18
  141. package/build/src/amf/lib/navigation-layout/ApiSorting.js.map +0 -1
  142. package/build/src/amf/lib/navigation-layout/EndpointsTree.d.ts +0 -33
  143. package/build/src/amf/lib/navigation-layout/EndpointsTree.d.ts.map +0 -1
  144. package/build/src/amf/lib/navigation-layout/EndpointsTree.js +0 -178
  145. package/build/src/amf/lib/navigation-layout/EndpointsTree.js.map +0 -1
  146. package/build/src/amf/lib/navigation-layout/NaturalTree.d.ts +0 -25
  147. package/build/src/amf/lib/navigation-layout/NaturalTree.d.ts.map +0 -1
  148. package/build/src/amf/lib/navigation-layout/NaturalTree.js +0 -91
  149. package/build/src/amf/lib/navigation-layout/NaturalTree.js.map +0 -1
  150. package/build/src/amf/plugins/ApiNavigationCommands.d.ts +0 -4
  151. package/build/src/amf/plugins/ApiNavigationCommands.d.ts.map +0 -1
  152. package/build/src/amf/plugins/ApiNavigationCommands.js +0 -71
  153. package/build/src/amf/plugins/ApiNavigationCommands.js.map +0 -1
  154. package/build/src/amf/plugins/ApiNavigationContextMenu.d.ts +0 -16
  155. package/build/src/amf/plugins/ApiNavigationContextMenu.d.ts.map +0 -1
  156. package/build/src/amf/plugins/ApiNavigationContextMenu.js +0 -40
  157. package/build/src/amf/plugins/ApiNavigationContextMenu.js.map +0 -1
  158. package/build/src/amf/store/AmfGraphStore.d.ts +0 -39
  159. package/build/src/amf/store/AmfGraphStore.d.ts.map +0 -1
  160. package/build/src/amf/store/AmfGraphStore.js +0 -62
  161. package/build/src/amf/store/AmfGraphStore.js.map +0 -1
  162. package/build/src/amf/store/AmfStore.d.ts +0 -122
  163. package/build/src/amf/store/AmfStore.d.ts.map +0 -1
  164. package/build/src/amf/store/AmfStore.js +0 -171
  165. package/build/src/amf/store/AmfStore.js.map +0 -1
  166. package/build/src/amf/store/DomEventsAmfStore.d.ts +0 -6
  167. package/build/src/amf/store/DomEventsAmfStore.d.ts.map +0 -1
  168. package/build/src/amf/store/DomEventsAmfStore.js +0 -5
  169. package/build/src/amf/store/DomEventsAmfStore.js.map +0 -1
  170. package/build/src/amf/store/InMemAmfGraphStore.d.ts +0 -137
  171. package/build/src/amf/store/InMemAmfGraphStore.d.ts.map +0 -1
  172. package/build/src/amf/store/InMemAmfGraphStore.js +0 -586
  173. package/build/src/amf/store/InMemAmfGraphStore.js.map +0 -1
  174. package/build/src/amf/store/mixins/AmfStoreDomEventsMixin.d.ts +0 -38
  175. package/build/src/amf/store/mixins/AmfStoreDomEventsMixin.d.ts.map +0 -1
  176. package/build/src/amf/store/mixins/AmfStoreDomEventsMixin.js +0 -99
  177. package/build/src/amf/store/mixins/AmfStoreDomEventsMixin.js.map +0 -1
  178. package/build/src/amf/types.d.ts +0 -320
  179. package/build/src/amf/types.d.ts.map +0 -1
  180. package/build/src/amf/types.js +0 -2
  181. package/build/src/amf/types.js.map +0 -1
  182. package/build/src/define/amf/api-annotation-document.d.ts +0 -10
  183. package/build/src/define/amf/api-annotation-document.d.ts.map +0 -1
  184. package/build/src/define/amf/api-annotation-document.js +0 -27
  185. package/build/src/define/amf/api-annotation-document.js.map +0 -1
  186. package/build/src/define/amf/api-authorization-editor.d.ts +0 -10
  187. package/build/src/define/amf/api-authorization-editor.d.ts.map +0 -1
  188. package/build/src/define/amf/api-authorization-editor.js +0 -27
  189. package/build/src/define/amf/api-authorization-editor.js.map +0 -1
  190. package/build/src/define/amf/api-channel-document.d.ts +0 -10
  191. package/build/src/define/amf/api-channel-document.d.ts.map +0 -1
  192. package/build/src/define/amf/api-channel-document.js +0 -27
  193. package/build/src/define/amf/api-channel-document.js.map +0 -1
  194. package/build/src/define/amf/api-documentation-document.d.ts +0 -10
  195. package/build/src/define/amf/api-documentation-document.d.ts.map +0 -1
  196. package/build/src/define/amf/api-documentation-document.js +0 -27
  197. package/build/src/define/amf/api-documentation-document.js.map +0 -1
  198. package/build/src/define/amf/api-documentation.d.ts +0 -10
  199. package/build/src/define/amf/api-documentation.d.ts.map +0 -1
  200. package/build/src/define/amf/api-documentation.js +0 -27
  201. package/build/src/define/amf/api-documentation.js.map +0 -1
  202. package/build/src/define/amf/api-navigation.d.ts +0 -10
  203. package/build/src/define/amf/api-navigation.d.ts.map +0 -1
  204. package/build/src/define/amf/api-navigation.js +0 -27
  205. package/build/src/define/amf/api-navigation.js.map +0 -1
  206. package/build/src/define/amf/api-operation-document.d.ts +0 -10
  207. package/build/src/define/amf/api-operation-document.d.ts.map +0 -1
  208. package/build/src/define/amf/api-operation-document.js +0 -27
  209. package/build/src/define/amf/api-operation-document.js.map +0 -1
  210. package/build/src/define/amf/api-parameter-document.d.ts +0 -10
  211. package/build/src/define/amf/api-parameter-document.d.ts.map +0 -1
  212. package/build/src/define/amf/api-parameter-document.js +0 -27
  213. package/build/src/define/amf/api-parameter-document.js.map +0 -1
  214. package/build/src/define/amf/api-parametrized-security-scheme.d.ts +0 -10
  215. package/build/src/define/amf/api-parametrized-security-scheme.d.ts.map +0 -1
  216. package/build/src/define/amf/api-parametrized-security-scheme.js +0 -27
  217. package/build/src/define/amf/api-parametrized-security-scheme.js.map +0 -1
  218. package/build/src/define/amf/api-payload-document.d.ts +0 -10
  219. package/build/src/define/amf/api-payload-document.d.ts.map +0 -1
  220. package/build/src/define/amf/api-payload-document.js +0 -27
  221. package/build/src/define/amf/api-payload-document.js.map +0 -1
  222. package/build/src/define/amf/api-request-document.d.ts +0 -10
  223. package/build/src/define/amf/api-request-document.d.ts.map +0 -1
  224. package/build/src/define/amf/api-request-document.js +0 -27
  225. package/build/src/define/amf/api-request-document.js.map +0 -1
  226. package/build/src/define/amf/api-request-editor.d.ts +0 -10
  227. package/build/src/define/amf/api-request-editor.d.ts.map +0 -1
  228. package/build/src/define/amf/api-request-editor.js +0 -27
  229. package/build/src/define/amf/api-request-editor.js.map +0 -1
  230. package/build/src/define/amf/api-request.d.ts +0 -10
  231. package/build/src/define/amf/api-request.d.ts.map +0 -1
  232. package/build/src/define/amf/api-request.js +0 -27
  233. package/build/src/define/amf/api-request.js.map +0 -1
  234. package/build/src/define/amf/api-resource-document.d.ts +0 -10
  235. package/build/src/define/amf/api-resource-document.d.ts.map +0 -1
  236. package/build/src/define/amf/api-resource-document.js +0 -27
  237. package/build/src/define/amf/api-resource-document.js.map +0 -1
  238. package/build/src/define/amf/api-response-document.d.ts +0 -10
  239. package/build/src/define/amf/api-response-document.d.ts.map +0 -1
  240. package/build/src/define/amf/api-response-document.js +0 -27
  241. package/build/src/define/amf/api-response-document.js.map +0 -1
  242. package/build/src/define/amf/api-schema-document.d.ts +0 -10
  243. package/build/src/define/amf/api-schema-document.d.ts.map +0 -1
  244. package/build/src/define/amf/api-schema-document.js +0 -27
  245. package/build/src/define/amf/api-schema-document.js.map +0 -1
  246. package/build/src/define/amf/api-security-document.d.ts +0 -10
  247. package/build/src/define/amf/api-security-document.d.ts.map +0 -1
  248. package/build/src/define/amf/api-security-document.js +0 -27
  249. package/build/src/define/amf/api-security-document.js.map +0 -1
  250. package/build/src/define/amf/api-security-requirement-document.d.ts +0 -10
  251. package/build/src/define/amf/api-security-requirement-document.d.ts.map +0 -1
  252. package/build/src/define/amf/api-security-requirement-document.js +0 -27
  253. package/build/src/define/amf/api-security-requirement-document.js.map +0 -1
  254. package/build/src/define/amf/api-server-picker.d.ts +0 -10
  255. package/build/src/define/amf/api-server-picker.d.ts.map +0 -1
  256. package/build/src/define/amf/api-server-picker.js +0 -27
  257. package/build/src/define/amf/api-server-picker.js.map +0 -1
  258. package/build/src/define/amf/api-summary.d.ts +0 -10
  259. package/build/src/define/amf/api-summary.d.ts.map +0 -1
  260. package/build/src/define/amf/api-summary.js +0 -27
  261. package/build/src/define/amf/api-summary.js.map +0 -1
  262. package/build/src/define/amf/authorization/amf-apikey-authorization.d.ts +0 -10
  263. package/build/src/define/amf/authorization/amf-apikey-authorization.d.ts.map +0 -1
  264. package/build/src/define/amf/authorization/amf-apikey-authorization.js +0 -28
  265. package/build/src/define/amf/authorization/amf-apikey-authorization.js.map +0 -1
  266. package/build/src/define/amf/authorization/amf-basic-authorization.d.ts +0 -10
  267. package/build/src/define/amf/authorization/amf-basic-authorization.d.ts.map +0 -1
  268. package/build/src/define/amf/authorization/amf-basic-authorization.js +0 -28
  269. package/build/src/define/amf/authorization/amf-basic-authorization.js.map +0 -1
  270. package/build/src/define/amf/authorization/amf-bearer-authorization.d.ts +0 -10
  271. package/build/src/define/amf/authorization/amf-bearer-authorization.d.ts.map +0 -1
  272. package/build/src/define/amf/authorization/amf-bearer-authorization.js +0 -28
  273. package/build/src/define/amf/authorization/amf-bearer-authorization.js.map +0 -1
  274. package/build/src/define/amf/authorization/amf-oauth2-authorization.d.ts +0 -10
  275. package/build/src/define/amf/authorization/amf-oauth2-authorization.d.ts.map +0 -1
  276. package/build/src/define/amf/authorization/amf-oauth2-authorization.js +0 -31
  277. package/build/src/define/amf/authorization/amf-oauth2-authorization.js.map +0 -1
  278. package/build/src/define/amf/authorization/amf-oidc-authorization.d.ts +0 -10
  279. package/build/src/define/amf/authorization/amf-oidc-authorization.d.ts.map +0 -1
  280. package/build/src/define/amf/authorization/amf-oidc-authorization.js +0 -31
  281. package/build/src/define/amf/authorization/amf-oidc-authorization.js.map +0 -1
  282. package/build/src/define/amf/authorization/amf-passthrough-authorization.d.ts +0 -10
  283. package/build/src/define/amf/authorization/amf-passthrough-authorization.d.ts.map +0 -1
  284. package/build/src/define/amf/authorization/amf-passthrough-authorization.js +0 -28
  285. package/build/src/define/amf/authorization/amf-passthrough-authorization.js.map +0 -1
  286. package/build/src/define/amf/authorization/amf-ramlcustom-authorization.d.ts +0 -10
  287. package/build/src/define/amf/authorization/amf-ramlcustom-authorization.d.ts.map +0 -1
  288. package/build/src/define/amf/authorization/amf-ramlcustom-authorization.js +0 -28
  289. package/build/src/define/amf/authorization/amf-ramlcustom-authorization.js.map +0 -1
  290. package/build/src/elements/amf/ApiAnnotationDocument.element.d.ts +0 -61
  291. package/build/src/elements/amf/ApiAnnotationDocument.element.d.ts.map +0 -1
  292. package/build/src/elements/amf/ApiAnnotationDocument.element.js +0 -176
  293. package/build/src/elements/amf/ApiAnnotationDocument.element.js.map +0 -1
  294. package/build/src/elements/amf/ApiAnnotationDocument.styles.d.ts +0 -3
  295. package/build/src/elements/amf/ApiAnnotationDocument.styles.d.ts.map +0 -1
  296. package/build/src/elements/amf/ApiAnnotationDocument.styles.js +0 -46
  297. package/build/src/elements/amf/ApiAnnotationDocument.styles.js.map +0 -1
  298. package/build/src/elements/amf/ApiAuthorizationEditor.element.d.ts +0 -143
  299. package/build/src/elements/amf/ApiAuthorizationEditor.element.d.ts.map +0 -1
  300. package/build/src/elements/amf/ApiAuthorizationEditor.element.js +0 -379
  301. package/build/src/elements/amf/ApiAuthorizationEditor.element.js.map +0 -1
  302. package/build/src/elements/amf/ApiAuthorizationEditor.styles.d.ts +0 -3
  303. package/build/src/elements/amf/ApiAuthorizationEditor.styles.d.ts.map +0 -1
  304. package/build/src/elements/amf/ApiAuthorizationEditor.styles.js +0 -25
  305. package/build/src/elements/amf/ApiAuthorizationEditor.styles.js.map +0 -1
  306. package/build/src/elements/amf/ApiChannelDocument.element.d.ts +0 -28
  307. package/build/src/elements/amf/ApiChannelDocument.element.d.ts.map +0 -1
  308. package/build/src/elements/amf/ApiChannelDocument.element.js +0 -85
  309. package/build/src/elements/amf/ApiChannelDocument.element.js.map +0 -1
  310. package/build/src/elements/amf/ApiDocumentation.element.d.ts +0 -254
  311. package/build/src/elements/amf/ApiDocumentation.element.d.ts.map +0 -1
  312. package/build/src/elements/amf/ApiDocumentation.element.js +0 -686
  313. package/build/src/elements/amf/ApiDocumentation.element.js.map +0 -1
  314. package/build/src/elements/amf/ApiDocumentation.styles.d.ts +0 -3
  315. package/build/src/elements/amf/ApiDocumentation.styles.d.ts.map +0 -1
  316. package/build/src/elements/amf/ApiDocumentation.styles.js +0 -11
  317. package/build/src/elements/amf/ApiDocumentation.styles.js.map +0 -1
  318. package/build/src/elements/amf/ApiDocumentationBase.d.ts +0 -103
  319. package/build/src/elements/amf/ApiDocumentationBase.d.ts.map +0 -1
  320. package/build/src/elements/amf/ApiDocumentationBase.js +0 -291
  321. package/build/src/elements/amf/ApiDocumentationBase.js.map +0 -1
  322. package/build/src/elements/amf/ApiDocumentationDocument.element.d.ts +0 -29
  323. package/build/src/elements/amf/ApiDocumentationDocument.element.d.ts.map +0 -1
  324. package/build/src/elements/amf/ApiDocumentationDocument.element.js +0 -79
  325. package/build/src/elements/amf/ApiDocumentationDocument.element.js.map +0 -1
  326. package/build/src/elements/amf/ApiDocumentationDocument.styles.d.ts +0 -3
  327. package/build/src/elements/amf/ApiDocumentationDocument.styles.d.ts.map +0 -1
  328. package/build/src/elements/amf/ApiDocumentationDocument.styles.js +0 -32
  329. package/build/src/elements/amf/ApiDocumentationDocument.styles.js.map +0 -1
  330. package/build/src/elements/amf/ApiNavigation.element.d.ts +0 -579
  331. package/build/src/elements/amf/ApiNavigation.element.d.ts.map +0 -1
  332. package/build/src/elements/amf/ApiNavigation.element.js +0 -2244
  333. package/build/src/elements/amf/ApiNavigation.element.js.map +0 -1
  334. package/build/src/elements/amf/ApiNavigation.styles.d.ts +0 -3
  335. package/build/src/elements/amf/ApiNavigation.styles.d.ts.map +0 -1
  336. package/build/src/elements/amf/ApiNavigation.styles.js +0 -159
  337. package/build/src/elements/amf/ApiNavigation.styles.js.map +0 -1
  338. package/build/src/elements/amf/ApiOperationDocument.element.d.ts +0 -266
  339. package/build/src/elements/amf/ApiOperationDocument.element.d.ts.map +0 -1
  340. package/build/src/elements/amf/ApiOperationDocument.element.js +0 -1002
  341. package/build/src/elements/amf/ApiOperationDocument.element.js.map +0 -1
  342. package/build/src/elements/amf/ApiOperationDocument.styles.d.ts +0 -3
  343. package/build/src/elements/amf/ApiOperationDocument.styles.d.ts.map +0 -1
  344. package/build/src/elements/amf/ApiOperationDocument.styles.js +0 -67
  345. package/build/src/elements/amf/ApiOperationDocument.styles.js.map +0 -1
  346. package/build/src/elements/amf/ApiParameterDocument.element.d.ts +0 -32
  347. package/build/src/elements/amf/ApiParameterDocument.element.d.ts.map +0 -1
  348. package/build/src/elements/amf/ApiParameterDocument.element.js +0 -94
  349. package/build/src/elements/amf/ApiParameterDocument.element.js.map +0 -1
  350. package/build/src/elements/amf/ApiParameterDocument.styles.d.ts +0 -3
  351. package/build/src/elements/amf/ApiParameterDocument.styles.d.ts.map +0 -1
  352. package/build/src/elements/amf/ApiParameterDocument.styles.js +0 -15
  353. package/build/src/elements/amf/ApiParameterDocument.styles.js.map +0 -1
  354. package/build/src/elements/amf/ApiParametrizedSecurityScheme.element.d.ts +0 -19
  355. package/build/src/elements/amf/ApiParametrizedSecurityScheme.element.d.ts.map +0 -1
  356. package/build/src/elements/amf/ApiParametrizedSecurityScheme.element.js +0 -58
  357. package/build/src/elements/amf/ApiParametrizedSecurityScheme.element.js.map +0 -1
  358. package/build/src/elements/amf/ApiParametrizedSecurityScheme.styles.d.ts +0 -3
  359. package/build/src/elements/amf/ApiParametrizedSecurityScheme.styles.d.ts.map +0 -1
  360. package/build/src/elements/amf/ApiParametrizedSecurityScheme.styles.js +0 -4
  361. package/build/src/elements/amf/ApiParametrizedSecurityScheme.styles.js.map +0 -1
  362. package/build/src/elements/amf/ApiPayloadDocument.element.d.ts +0 -32
  363. package/build/src/elements/amf/ApiPayloadDocument.element.d.ts.map +0 -1
  364. package/build/src/elements/amf/ApiPayloadDocument.element.js +0 -131
  365. package/build/src/elements/amf/ApiPayloadDocument.element.js.map +0 -1
  366. package/build/src/elements/amf/ApiPayloadDocument.styles.d.ts +0 -3
  367. package/build/src/elements/amf/ApiPayloadDocument.styles.d.ts.map +0 -1
  368. package/build/src/elements/amf/ApiPayloadDocument.styles.js +0 -15
  369. package/build/src/elements/amf/ApiPayloadDocument.styles.js.map +0 -1
  370. package/build/src/elements/amf/ApiRequest.element.d.ts +0 -131
  371. package/build/src/elements/amf/ApiRequest.element.d.ts.map +0 -1
  372. package/build/src/elements/amf/ApiRequest.element.js +0 -318
  373. package/build/src/elements/amf/ApiRequest.element.js.map +0 -1
  374. package/build/src/elements/amf/ApiRequest.styles.d.ts +0 -3
  375. package/build/src/elements/amf/ApiRequest.styles.d.ts.map +0 -1
  376. package/build/src/elements/amf/ApiRequest.styles.js +0 -11
  377. package/build/src/elements/amf/ApiRequest.styles.js.map +0 -1
  378. package/build/src/elements/amf/ApiRequestDocument.element.d.ts +0 -115
  379. package/build/src/elements/amf/ApiRequestDocument.element.d.ts.map +0 -1
  380. package/build/src/elements/amf/ApiRequestDocument.element.js +0 -401
  381. package/build/src/elements/amf/ApiRequestDocument.element.js.map +0 -1
  382. package/build/src/elements/amf/ApiRequestDocument.styles.d.ts +0 -3
  383. package/build/src/elements/amf/ApiRequestDocument.styles.d.ts.map +0 -1
  384. package/build/src/elements/amf/ApiRequestDocument.styles.js +0 -13
  385. package/build/src/elements/amf/ApiRequestDocument.styles.js.map +0 -1
  386. package/build/src/elements/amf/ApiRequestEditor.element.d.ts +0 -485
  387. package/build/src/elements/amf/ApiRequestEditor.element.d.ts.map +0 -1
  388. package/build/src/elements/amf/ApiRequestEditor.element.js +0 -1735
  389. package/build/src/elements/amf/ApiRequestEditor.element.js.map +0 -1
  390. package/build/src/elements/amf/ApiRequestEditor.styles.d.ts +0 -3
  391. package/build/src/elements/amf/ApiRequestEditor.styles.d.ts.map +0 -1
  392. package/build/src/elements/amf/ApiRequestEditor.styles.js +0 -160
  393. package/build/src/elements/amf/ApiRequestEditor.styles.js.map +0 -1
  394. package/build/src/elements/amf/ApiResourceDocument.element.d.ts +0 -233
  395. package/build/src/elements/amf/ApiResourceDocument.element.d.ts.map +0 -1
  396. package/build/src/elements/amf/ApiResourceDocument.element.js +0 -706
  397. package/build/src/elements/amf/ApiResourceDocument.element.js.map +0 -1
  398. package/build/src/elements/amf/ApiResourceDocument.styles.d.ts +0 -3
  399. package/build/src/elements/amf/ApiResourceDocument.styles.d.ts.map +0 -1
  400. package/build/src/elements/amf/ApiResourceDocument.styles.js +0 -91
  401. package/build/src/elements/amf/ApiResourceDocument.styles.js.map +0 -1
  402. package/build/src/elements/amf/ApiResponseDocument.element.d.ts +0 -79
  403. package/build/src/elements/amf/ApiResponseDocument.element.d.ts.map +0 -1
  404. package/build/src/elements/amf/ApiResponseDocument.element.js +0 -298
  405. package/build/src/elements/amf/ApiResponseDocument.element.js.map +0 -1
  406. package/build/src/elements/amf/ApiResponseDocument.styles.d.ts +0 -3
  407. package/build/src/elements/amf/ApiResponseDocument.styles.d.ts.map +0 -1
  408. package/build/src/elements/amf/ApiResponseDocument.styles.js +0 -41
  409. package/build/src/elements/amf/ApiResponseDocument.styles.js.map +0 -1
  410. package/build/src/elements/amf/ApiSchemaDocument.element.d.ts +0 -144
  411. package/build/src/elements/amf/ApiSchemaDocument.element.d.ts.map +0 -1
  412. package/build/src/elements/amf/ApiSchemaDocument.element.js +0 -765
  413. package/build/src/elements/amf/ApiSchemaDocument.element.js.map +0 -1
  414. package/build/src/elements/amf/ApiSchemaDocument.styles.d.ts +0 -3
  415. package/build/src/elements/amf/ApiSchemaDocument.styles.d.ts.map +0 -1
  416. package/build/src/elements/amf/ApiSchemaDocument.styles.js +0 -41
  417. package/build/src/elements/amf/ApiSchemaDocument.styles.js.map +0 -1
  418. package/build/src/elements/amf/ApiSecurityDocument.element.d.ts +0 -180
  419. package/build/src/elements/amf/ApiSecurityDocument.element.d.ts.map +0 -1
  420. package/build/src/elements/amf/ApiSecurityDocument.element.js +0 -592
  421. package/build/src/elements/amf/ApiSecurityDocument.element.js.map +0 -1
  422. package/build/src/elements/amf/ApiSecurityDocument.styles.d.ts +0 -3
  423. package/build/src/elements/amf/ApiSecurityDocument.styles.d.ts.map +0 -1
  424. package/build/src/elements/amf/ApiSecurityDocument.styles.js +0 -89
  425. package/build/src/elements/amf/ApiSecurityDocument.styles.js.map +0 -1
  426. package/build/src/elements/amf/ApiSecurityRequirementDocument.element.d.ts +0 -16
  427. package/build/src/elements/amf/ApiSecurityRequirementDocument.element.d.ts.map +0 -1
  428. package/build/src/elements/amf/ApiSecurityRequirementDocument.element.js +0 -76
  429. package/build/src/elements/amf/ApiSecurityRequirementDocument.element.js.map +0 -1
  430. package/build/src/elements/amf/ApiSecurityRequirementDocument.styles.d.ts +0 -3
  431. package/build/src/elements/amf/ApiSecurityRequirementDocument.styles.d.ts.map +0 -1
  432. package/build/src/elements/amf/ApiSecurityRequirementDocument.styles.js +0 -7
  433. package/build/src/elements/amf/ApiSecurityRequirementDocument.styles.js.map +0 -1
  434. package/build/src/elements/amf/ApiServerPicker.element.d.ts +0 -256
  435. package/build/src/elements/amf/ApiServerPicker.element.d.ts.map +0 -1
  436. package/build/src/elements/amf/ApiServerPicker.element.js +0 -715
  437. package/build/src/elements/amf/ApiServerPicker.element.js.map +0 -1
  438. package/build/src/elements/amf/ApiServerPicker.styles.d.ts +0 -3
  439. package/build/src/elements/amf/ApiServerPicker.styles.d.ts.map +0 -1
  440. package/build/src/elements/amf/ApiServerPicker.styles.js +0 -25
  441. package/build/src/elements/amf/ApiServerPicker.styles.js.map +0 -1
  442. package/build/src/elements/amf/ApiSummary.element.d.ts +0 -90
  443. package/build/src/elements/amf/ApiSummary.element.d.ts.map +0 -1
  444. package/build/src/elements/amf/ApiSummary.element.js +0 -385
  445. package/build/src/elements/amf/ApiSummary.element.js.map +0 -1
  446. package/build/src/elements/amf/ApiSummary.styles.d.ts +0 -3
  447. package/build/src/elements/amf/ApiSummary.styles.d.ts.map +0 -1
  448. package/build/src/elements/amf/ApiSummary.styles.js +0 -192
  449. package/build/src/elements/amf/ApiSummary.styles.js.map +0 -1
  450. package/build/src/elements/amf/SchemaCommonTemplates.d.ts +0 -56
  451. package/build/src/elements/amf/SchemaCommonTemplates.d.ts.map +0 -1
  452. package/build/src/elements/amf/SchemaCommonTemplates.js +0 -499
  453. package/build/src/elements/amf/SchemaCommonTemplates.js.map +0 -1
  454. package/build/src/elements/amf/authorization/AmfApiKey.d.ts +0 -60
  455. package/build/src/elements/amf/authorization/AmfApiKey.d.ts.map +0 -1
  456. package/build/src/elements/amf/authorization/AmfApiKey.js +0 -237
  457. package/build/src/elements/amf/authorization/AmfApiKey.js.map +0 -1
  458. package/build/src/elements/amf/authorization/AmfBasic.d.ts +0 -16
  459. package/build/src/elements/amf/authorization/AmfBasic.d.ts.map +0 -1
  460. package/build/src/elements/amf/authorization/AmfBasic.js +0 -86
  461. package/build/src/elements/amf/authorization/AmfBasic.js.map +0 -1
  462. package/build/src/elements/amf/authorization/AmfBearer.d.ts +0 -15
  463. package/build/src/elements/amf/authorization/AmfBearer.d.ts.map +0 -1
  464. package/build/src/elements/amf/authorization/AmfBearer.js +0 -73
  465. package/build/src/elements/amf/authorization/AmfBearer.js.map +0 -1
  466. package/build/src/elements/amf/authorization/AmfOauth2.d.ts +0 -236
  467. package/build/src/elements/amf/authorization/AmfOauth2.d.ts.map +0 -1
  468. package/build/src/elements/amf/authorization/AmfOauth2.js +0 -795
  469. package/build/src/elements/amf/authorization/AmfOauth2.js.map +0 -1
  470. package/build/src/elements/amf/authorization/AmfOidc.d.ts +0 -14
  471. package/build/src/elements/amf/authorization/AmfOidc.d.ts.map +0 -1
  472. package/build/src/elements/amf/authorization/AmfOidc.js +0 -72
  473. package/build/src/elements/amf/authorization/AmfOidc.js.map +0 -1
  474. package/build/src/elements/amf/authorization/AmfPassThrough.d.ts +0 -58
  475. package/build/src/elements/amf/authorization/AmfPassThrough.d.ts.map +0 -1
  476. package/build/src/elements/amf/authorization/AmfPassThrough.js +0 -259
  477. package/build/src/elements/amf/authorization/AmfPassThrough.js.map +0 -1
  478. package/build/src/elements/amf/authorization/AmfRamlCustom.d.ts +0 -53
  479. package/build/src/elements/amf/authorization/AmfRamlCustom.d.ts.map +0 -1
  480. package/build/src/elements/amf/authorization/AmfRamlCustom.js +0 -291
  481. package/build/src/elements/amf/authorization/AmfRamlCustom.js.map +0 -1
  482. package/build/src/elements/amf/authorization/Authorization.styles.d.ts +0 -3
  483. package/build/src/elements/amf/authorization/Authorization.styles.d.ts.map +0 -1
  484. package/build/src/elements/amf/authorization/Authorization.styles.js +0 -40
  485. package/build/src/elements/amf/authorization/Authorization.styles.js.map +0 -1
  486. package/build/src/elements/amf/styles/AuthorizationMethod.d.ts +0 -3
  487. package/build/src/elements/amf/styles/AuthorizationMethod.d.ts.map +0 -1
  488. package/build/src/elements/amf/styles/AuthorizationMethod.js +0 -46
  489. package/build/src/elements/amf/styles/AuthorizationMethod.js.map +0 -1
  490. package/build/src/elements/amf/styles/Common.d.ts +0 -3
  491. package/build/src/elements/amf/styles/Common.d.ts.map +0 -1
  492. package/build/src/elements/amf/styles/Common.js +0 -150
  493. package/build/src/elements/amf/styles/Common.js.map +0 -1
  494. package/build/src/elements/amf/styles/SchemaCommon.d.ts +0 -3
  495. package/build/src/elements/amf/styles/SchemaCommon.d.ts.map +0 -1
  496. package/build/src/elements/amf/styles/SchemaCommon.js +0 -376
  497. package/build/src/elements/amf/styles/SchemaCommon.js.map +0 -1
  498. package/build/src/events/amf/ApiEvents.d.ts +0 -25
  499. package/build/src/events/amf/ApiEvents.d.ts.map +0 -1
  500. package/build/src/events/amf/ApiEvents.js +0 -42
  501. package/build/src/events/amf/ApiEvents.js.map +0 -1
  502. package/build/src/events/amf/BaseEvents.d.ts +0 -69
  503. package/build/src/events/amf/BaseEvents.d.ts.map +0 -1
  504. package/build/src/events/amf/BaseEvents.js +0 -64
  505. package/build/src/events/amf/BaseEvents.js.map +0 -1
  506. package/build/src/events/amf/DocumentationEvents.d.ts +0 -17
  507. package/build/src/events/amf/DocumentationEvents.d.ts.map +0 -1
  508. package/build/src/events/amf/DocumentationEvents.js +0 -27
  509. package/build/src/events/amf/DocumentationEvents.js.map +0 -1
  510. package/build/src/events/amf/EndpointEvents.d.ts +0 -21
  511. package/build/src/events/amf/EndpointEvents.d.ts.map +0 -1
  512. package/build/src/events/amf/EndpointEvents.js +0 -35
  513. package/build/src/events/amf/EndpointEvents.js.map +0 -1
  514. package/build/src/events/amf/EventTypes.d.ts +0 -65
  515. package/build/src/events/amf/EventTypes.d.ts.map +0 -1
  516. package/build/src/events/amf/EventTypes.js +0 -65
  517. package/build/src/events/amf/EventTypes.js.map +0 -1
  518. package/build/src/events/amf/Events.d.ts +0 -63
  519. package/build/src/events/amf/Events.d.ts.map +0 -1
  520. package/build/src/events/amf/Events.js +0 -38
  521. package/build/src/events/amf/Events.js.map +0 -1
  522. package/build/src/events/amf/NavigationEvents.d.ts +0 -50
  523. package/build/src/events/amf/NavigationEvents.d.ts.map +0 -1
  524. package/build/src/events/amf/NavigationEvents.js +0 -59
  525. package/build/src/events/amf/NavigationEvents.js.map +0 -1
  526. package/build/src/events/amf/OperationEvents.d.ts +0 -17
  527. package/build/src/events/amf/OperationEvents.d.ts.map +0 -1
  528. package/build/src/events/amf/OperationEvents.js +0 -27
  529. package/build/src/events/amf/OperationEvents.js.map +0 -1
  530. package/build/src/events/amf/PayloadEvents.d.ts +0 -10
  531. package/build/src/events/amf/PayloadEvents.d.ts.map +0 -1
  532. package/build/src/events/amf/PayloadEvents.js +0 -16
  533. package/build/src/events/amf/PayloadEvents.js.map +0 -1
  534. package/build/src/events/amf/ReportingEvents.d.ts +0 -16
  535. package/build/src/events/amf/ReportingEvents.d.ts.map +0 -1
  536. package/build/src/events/amf/ReportingEvents.js +0 -22
  537. package/build/src/events/amf/ReportingEvents.js.map +0 -1
  538. package/build/src/events/amf/RequestEvents.d.ts +0 -10
  539. package/build/src/events/amf/RequestEvents.d.ts.map +0 -1
  540. package/build/src/events/amf/RequestEvents.js +0 -15
  541. package/build/src/events/amf/RequestEvents.js.map +0 -1
  542. package/build/src/events/amf/ResponseEvents.d.ts +0 -10
  543. package/build/src/events/amf/ResponseEvents.d.ts.map +0 -1
  544. package/build/src/events/amf/ResponseEvents.js +0 -16
  545. package/build/src/events/amf/ResponseEvents.js.map +0 -1
  546. package/build/src/events/amf/SecurityEvents.d.ts +0 -31
  547. package/build/src/events/amf/SecurityEvents.d.ts.map +0 -1
  548. package/build/src/events/amf/SecurityEvents.js +0 -53
  549. package/build/src/events/amf/SecurityEvents.js.map +0 -1
  550. package/build/src/events/amf/ServerEvents.d.ts +0 -63
  551. package/build/src/events/amf/ServerEvents.d.ts.map +0 -1
  552. package/build/src/events/amf/ServerEvents.js +0 -70
  553. package/build/src/events/amf/ServerEvents.js.map +0 -1
  554. package/build/src/events/amf/StoreEvents.d.ts +0 -8
  555. package/build/src/events/amf/StoreEvents.d.ts.map +0 -1
  556. package/build/src/events/amf/StoreEvents.js +0 -16
  557. package/build/src/events/amf/StoreEvents.js.map +0 -1
  558. package/build/src/events/amf/TelemetryEvents.d.ts +0 -79
  559. package/build/src/events/amf/TelemetryEvents.d.ts.map +0 -1
  560. package/build/src/events/amf/TelemetryEvents.js +0 -65
  561. package/build/src/events/amf/TelemetryEvents.js.map +0 -1
  562. package/build/src/events/amf/TypeEvents.d.ts +0 -16
  563. package/build/src/events/amf/TypeEvents.d.ts.map +0 -1
  564. package/build/src/events/amf/TypeEvents.js +0 -25
  565. package/build/src/events/amf/TypeEvents.js.map +0 -1
  566. package/demo/amf/api-annotation.html +0 -21
  567. package/demo/amf/api-annotation.ts +0 -117
  568. package/demo/amf/api-channel.html +0 -25
  569. package/demo/amf/api-channel.ts +0 -76
  570. package/demo/amf/api-console.html +0 -23
  571. package/demo/amf/api-console.ts +0 -505
  572. package/demo/amf/api-documentation-document.html +0 -25
  573. package/demo/amf/api-documentation-document.ts +0 -79
  574. package/demo/amf/api-documentation.html +0 -25
  575. package/demo/amf/api-documentation.ts +0 -242
  576. package/demo/amf/api-navigation.html +0 -29
  577. package/demo/amf/api-navigation.ts +0 -278
  578. package/demo/amf/api-operation.html +0 -37
  579. package/demo/amf/api-operation.ts +0 -274
  580. package/demo/amf/api-payload.html +0 -25
  581. package/demo/amf/api-payload.ts +0 -176
  582. package/demo/amf/api-request.html +0 -24
  583. package/demo/amf/api-request.ts +0 -259
  584. package/demo/amf/api-resource.html +0 -31
  585. package/demo/amf/api-resource.ts +0 -264
  586. package/demo/amf/api-schema-documentation.html +0 -25
  587. package/demo/amf/api-schema-documentation.ts +0 -207
  588. package/demo/amf/api-security-documentation.html +0 -25
  589. package/demo/amf/api-security-documentation.ts +0 -94
  590. package/demo/amf/api-server-picker.html +0 -24
  591. package/demo/amf/api-server-picker.ts +0 -233
  592. package/demo/amf/api-summary.html +0 -25
  593. package/demo/amf/api-summary.ts +0 -84
  594. package/demo/amf/bare-components.css +0 -11
  595. package/demo/amf/bare-components.html +0 -38
  596. package/demo/amf/bare-components.ts +0 -18
  597. package/demo/amf/demo.css +0 -136
  598. package/demo/amf/index.html +0 -65
  599. package/demo/amf/lib/AmfDemoPage.ts +0 -285
  600. package/demo/amf/oauth-authorize.html +0 -74
  601. package/demo/amf/oauth-authorize.ts +0 -40
  602. package/demo/amf/request-editor.html +0 -24
  603. package/demo/amf/request-editor.ts +0 -267
  604. package/demo/amf/styles/api-console.css +0 -60
  605. package/demo/amf/styles/api-editor.css +0 -139
  606. package/demo/amf/styles/console-theme.css +0 -0
  607. package/demo/amf/styles/demo-grid.css +0 -26
  608. package/demo/apis/21143/21143.json +0 -638
  609. package/demo/apis/APIC-15/APIC-15.raml +0 -36
  610. package/demo/apis/APIC-15/data-types/organization-data-type.raml +0 -19
  611. package/demo/apis/APIC-15/examples/organization/organization-array-response.raml +0 -15
  612. package/demo/apis/APIC-15/examples/organization/organization-individual-response.raml +0 -8
  613. package/demo/apis/APIC-168/APIC-168.raml +0 -38
  614. package/demo/apis/APIC-282/APIC-282.raml +0 -57
  615. package/demo/apis/APIC-289/APIC-289.yaml +0 -21
  616. package/demo/apis/APIC-298/APIC-298.json +0 -588
  617. package/demo/apis/APIC-332/APIC-332.raml +0 -22
  618. package/demo/apis/APIC-349-cache-resolution/APIC-349-cache-resolution.raml +0 -141
  619. package/demo/apis/APIC-349-cache-resolution/docs/DocumentationItem-1.raml +0 -3
  620. package/demo/apis/APIC-349-cache-resolution/docs/api.md +0 -1
  621. package/demo/apis/APIC-349-cache-resolution/docs/documentationTitle.md +0 -1
  622. package/demo/apis/APIC-349-cache-resolution/examples/usingObj-example.json +0 -19
  623. package/demo/apis/APIC-349-cache-resolution/examples/usingObj-example2.json +0 -19
  624. package/demo/apis/APIC-349-cache-resolution/libraries/schema.json +0 -21
  625. package/demo/apis/APIC-349-cache-resolution/libraries/types.raml +0 -88
  626. package/demo/apis/APIC-390/APIC-390.raml +0 -13
  627. package/demo/apis/APIC-390/Types/ISO-standards.raml +0 -30
  628. package/demo/apis/APIC-429/APIC-429.yaml +0 -63
  629. package/demo/apis/APIC-435/APIC-435.yaml +0 -27
  630. package/demo/apis/APIC-449/APIC-449.yaml +0 -8
  631. package/demo/apis/APIC-463/APIC-463.raml +0 -13
  632. package/demo/apis/APIC-480/APIC-480.raml +0 -61
  633. package/demo/apis/APIC-480/examples/account-response.json +0 -5
  634. package/demo/apis/APIC-483/APIC-483.raml +0 -16
  635. package/demo/apis/APIC-483/example/list-of-bank-succ.json +0 -32
  636. package/demo/apis/APIC-483/schema/response-retrieve-list-bank.json +0 -68
  637. package/demo/apis/APIC-550/APIC-550.raml +0 -46
  638. package/demo/apis/APIC-553/APIC-553.raml +0 -59
  639. package/demo/apis/APIC-554/APIC-554.raml +0 -6
  640. package/demo/apis/APIC-554-ii/APIC-554-ii.raml +0 -5
  641. package/demo/apis/APIC-560/APIC-560.yaml +0 -209
  642. package/demo/apis/APIC-582/APIC-582.yaml +0 -23
  643. package/demo/apis/APIC-613/APIC-613.raml +0 -16
  644. package/demo/apis/APIC-631/APIC-631.raml +0 -20
  645. package/demo/apis/APIC-641/APIC-641.yaml +0 -29
  646. package/demo/apis/APIC-649/APIC-649.yaml +0 -118
  647. package/demo/apis/APIC-650/APIC-650.yaml +0 -24
  648. package/demo/apis/APIC-650/common-parameters.yaml +0 -23
  649. package/demo/apis/APIC-667/APIC-667.raml +0 -30
  650. package/demo/apis/APIC-671/APIC-671.yaml +0 -387
  651. package/demo/apis/APIC-689/APIC-689.raml +0 -20
  652. package/demo/apis/APIC-711/APIC-711.raml +0 -41
  653. package/demo/apis/SE-10469/Purchase-Order-oagis-id-dd32f9c6c01048a19e15c423c9c741ae.json +0 -1383
  654. package/demo/apis/SE-10469/SE-10469.raml +0 -11
  655. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-address.raml +0 -126
  656. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-base.raml +0 -31
  657. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-basic-questions-set.raml +0 -42
  658. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-code-description.raml +0 -36
  659. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-code-origin.raml +0 -24
  660. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-contact-information.raml +0 -69
  661. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-content-data.raml +0 -19
  662. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-content-metadata.raml +0 -243
  663. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-content.raml +0 -47
  664. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-contextual.raml +0 -18
  665. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-currency.raml +0 -22
  666. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-document-statistic.raml +0 -44
  667. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-email-address.raml +0 -19
  668. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-error.raml +0 -33
  669. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-habit.raml +0 -61
  670. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-language.raml +0 -32
  671. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-log-entry.raml +0 -92
  672. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-master-key.raml +0 -49
  673. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-organization.raml +0 -38
  674. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-party.raml +0 -37
  675. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-performance-node.raml +0 -43
  676. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-performance-report.raml +0 -22
  677. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-person-name.raml +0 -45
  678. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-person.raml +0 -103
  679. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-phone.raml +0 -32
  680. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-policyholder.raml +0 -1
  681. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-preferable.raml +0 -15
  682. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-property.raml +0 -61
  683. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-role.raml +0 -51
  684. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-social-media-account.raml +0 -28
  685. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-source.raml +0 -65
  686. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-version.raml +0 -36
  687. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/docs/Legal.raml +0 -3
  688. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/examples/example-error.raml +0 -7
  689. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/examples/example-get-health-check.raml +0 -16
  690. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/examples/example-performance-report.raml +0 -23
  691. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/exchange.json +0 -1
  692. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-address.raml +0 -7
  693. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-base.raml +0 -3
  694. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-basic-questions-set.raml +0 -7
  695. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-code-description.raml +0 -7
  696. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-contact-info.raml +0 -3
  697. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-content.raml +0 -5
  698. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-context-and-preference.raml +0 -4
  699. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-email.raml +0 -7
  700. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-entity.raml +0 -36
  701. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-error.raml +0 -3
  702. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-habit.raml +0 -7
  703. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-language.raml +0 -7
  704. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-master-key.raml +0 -3
  705. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-organization.raml +0 -4
  706. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-party.raml +0 -8
  707. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-performance.raml +0 -8
  708. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-person-name.raml +0 -3
  709. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-person.raml +0 -7
  710. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-phone.raml +0 -7
  711. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-property.raml +0 -7
  712. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-role.raml +0 -6
  713. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-social-media.raml +0 -7
  714. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-source.raml +0 -7
  715. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-traits.raml +0 -11
  716. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-version.raml +0 -7
  717. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/resource-types/resourceType-applicable-to-collection-actions.raml +0 -51
  718. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/resource-types/resourceType-applicable-to-collections.raml +0 -157
  719. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/resource-types/resourceType-applicable-to-item-actions.raml +0 -48
  720. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/resource-types/resourceType-applicable-to-items.raml +0 -154
  721. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/resource-types/resourceType-get-health-check.raml +0 -39
  722. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/security-schemes/securityScheme-basic.raml +0 -4
  723. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/traits/trait-asynchronously-callable.raml +0 -12
  724. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/traits/trait-filterable.raml +0 -19
  725. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/traits/trait-identifyable.raml +0 -50
  726. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/traits/trait-pageable.raml +0 -40
  727. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/traits/trait-performance-monitorable.raml +0 -31
  728. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/traits/trait-routable.raml +0 -22
  729. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/traits/trait-selectable.raml +0 -140
  730. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/traits/trait-sortable.raml +0 -20
  731. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/traits/trait-traceable.raml +0 -24
  732. package/demo/apis/SE-11155/SE-11155.raml +0 -43
  733. package/demo/apis/SE-11155/data-types/dataType-archive-users-request.raml +0 -19
  734. package/demo/apis/SE-11155/data-types/dataType-archive-users-response.raml +0 -20
  735. package/demo/apis/SE-11155/data-types/dataType-restore-user-request.raml +0 -1
  736. package/demo/apis/SE-11155/data-types/dataType-restore-user-response.raml +0 -1
  737. package/demo/apis/SE-11155/data-types/dataType-user.raml +0 -53
  738. package/demo/apis/SE-11155/examples/user-action-restore-user-200.raml +0 -3
  739. package/demo/apis/SE-11155/examples/user-action-restore-user-cds-202.raml +0 -7
  740. package/demo/apis/SE-11155/examples/user-action-restore-user.raml +0 -3
  741. package/demo/apis/SE-11155/examples/user-delete-cds-200.raml +0 -4
  742. package/demo/apis/SE-11155/examples/user-delete-cds-202.raml +0 -11
  743. package/demo/apis/SE-11155/examples/user-get-200.raml +0 -17
  744. package/demo/apis/SE-11155/examples/user-patch-200.raml +0 -14
  745. package/demo/apis/SE-11155/examples/user-patch-cds-200.raml +0 -4
  746. package/demo/apis/SE-11155/examples/user-patch-cds-202.raml +0 -7
  747. package/demo/apis/SE-11155/examples/user-patch.raml +0 -14
  748. package/demo/apis/SE-11155/examples/user-put-200.raml +0 -17
  749. package/demo/apis/SE-11155/examples/user-put-cds-200.raml +0 -4
  750. package/demo/apis/SE-11155/examples/user-put-cds-202.raml +0 -11
  751. package/demo/apis/SE-11155/examples/user-put.raml +0 -17
  752. package/demo/apis/SE-11155/examples/users-action-archive-users-200.raml +0 -5
  753. package/demo/apis/SE-11155/examples/users-action-archive-users-cds-200.raml +0 -5
  754. package/demo/apis/SE-11155/examples/users-action-archive-users.raml +0 -5
  755. package/demo/apis/SE-11155/examples/users-delete-cds-200.raml +0 -4
  756. package/demo/apis/SE-11155/examples/users-delete-cds-202.raml +0 -11
  757. package/demo/apis/SE-11155/examples/users-get-200.raml +0 -47
  758. package/demo/apis/SE-11155/examples/users-patch-200.raml +0 -32
  759. package/demo/apis/SE-11155/examples/users-patch-cds-200.raml +0 -4
  760. package/demo/apis/SE-11155/examples/users-patch-cds-202.raml +0 -11
  761. package/demo/apis/SE-11155/examples/users-patch.raml +0 -14
  762. package/demo/apis/SE-11155/examples/users-post-cds-200.raml +0 -4
  763. package/demo/apis/SE-11155/examples/users-post-cds-202.raml +0 -11
  764. package/demo/apis/SE-11155/examples/users-post-multi-200.raml +0 -47
  765. package/demo/apis/SE-11155/examples/users-post-multi.raml +0 -44
  766. package/demo/apis/SE-11155/examples/users-post-single-200.raml +0 -17
  767. package/demo/apis/SE-11155/examples/users-post-single.raml +0 -16
  768. package/demo/apis/SE-11155/libraries/library.raml +0 -16
  769. package/demo/apis/SE-11415/SE-11415.raml +0 -94
  770. package/demo/apis/SE-11415/canda-commons/canda-commons.raml +0 -50
  771. package/demo/apis/SE-11415/canda-commons/ref/log-levels-example.json +0 -3
  772. package/demo/apis/SE-11415/canda-commons/ref/log-levels-response-example.json +0 -3
  773. package/demo/apis/SE-11415/canda-commons/ref/log-levels-response-schema.json +0 -10
  774. package/demo/apis/SE-11415/canda-commons/ref/log-levels-schema.json +0 -30
  775. package/demo/apis/SE-11415/ref/additions-example.json +0 -12
  776. package/demo/apis/SE-11415/ref/additions-schema.json +0 -43
  777. package/demo/apis/SE-11415/ref/companies-example.json +0 -11
  778. package/demo/apis/SE-11415/ref/companies-schema.json +0 -36
  779. package/demo/apis/SE-11415/ref/greeting-example.json +0 -4
  780. package/demo/apis/SE-11415/ref/greeting-schema.json +0 -22
  781. package/demo/apis/SE-11415/ref/greetings-example.json +0 -15
  782. package/demo/apis/SE-11415/ref/greetings-schema.json +0 -34
  783. package/demo/apis/SE-11415/ref/jms-message-response-exmaple.json +0 -7
  784. package/demo/apis/SE-11415/ref/log-levels-example.json +0 -3
  785. package/demo/apis/SE-11415/ref/log-levels-response-example.json +0 -3
  786. package/demo/apis/SE-11415/ref/log-levels-response-schema.json +0 -10
  787. package/demo/apis/SE-11415/ref/log-levels-schema.json +0 -30
  788. package/demo/apis/SE-11508/SE-11508.raml +0 -257
  789. package/demo/apis/SE-11508/examples/change-credentials-post-201.raml +0 -9
  790. package/demo/apis/SE-11508/examples/convert-aggregator-quote-post-201.raml +0 -19
  791. package/demo/apis/SE-11508/examples/create-quote-post-200.raml +0 -12
  792. package/demo/apis/SE-11508/examples/create-quote-post-201.raml +0 -8
  793. package/demo/apis/SE-11508/examples/create-quote-post-request.raml +0 -19
  794. package/demo/apis/SE-11508/examples/customer-accounts-get-200.raml +0 -41
  795. package/demo/apis/SE-11508/examples/customer-accounts-patch-request.raml +0 -31
  796. package/demo/apis/SE-11508/examples/retrieve-quotes-post-200.raml +0 -17
  797. package/demo/apis/SE-11508/examples/send-correspondence-post-request.raml +0 -34
  798. package/demo/apis/SE-11508/examples/validate-credentials-post-200.raml +0 -30
  799. package/demo/apis/SE-11508/examples/validate-customer-account-hash-post-400.raml +0 -10
  800. package/demo/apis/SE-11508/examples/validate-customer-account-hash-post-request.raml +0 -7
  801. package/demo/apis/SE-11508/examples/validate-customer-account-post-200.raml +0 -76
  802. package/demo/apis/SE-11508/examples/validate-customer-account-post-400.raml +0 -10
  803. package/demo/apis/SE-11508/examples/validate-customer-account-post-request.raml +0 -8
  804. package/demo/apis/SE-11508/exchange_modules2/26d603ba-9696-4993-b97e-f568e49c27ac/securityscheme-system/0.0.4/auth.raml +0 -10
  805. package/demo/apis/SE-11508/exchange_modules2/26d603ba-9696-4993-b97e-f568e49c27ac/traits-system/0.0.19/api-headers-trait.raml +0 -20
  806. package/demo/apis/SE-11508/exchange_modules2/26d603ba-9696-4993-b97e-f568e49c27ac/traits-system/0.0.19/bad-responses.raml +0 -30
  807. package/demo/apis/SE-11508/exchange_modules2/26d603ba-9696-4993-b97e-f568e49c27ac/traits-system/0.0.19/create.raml +0 -30
  808. package/demo/apis/SE-11508/exchange_modules2/26d603ba-9696-4993-b97e-f568e49c27ac/traits-system/0.0.19/customer-account-filter-trait.raml +0 -8
  809. package/demo/apis/SE-11508/exchange_modules2/26d603ba-9696-4993-b97e-f568e49c27ac/traits-system/0.0.19/delete.raml +0 -48
  810. package/demo/apis/SE-11508/exchange_modules2/26d603ba-9696-4993-b97e-f568e49c27ac/traits-system/0.0.19/payment.raml +0 -10
  811. package/demo/apis/SE-11508/exchange_modules2/26d603ba-9696-4993-b97e-f568e49c27ac/traits-system/0.0.19/policy-filter-trait.raml +0 -8
  812. package/demo/apis/SE-11508/exchange_modules2/26d603ba-9696-4993-b97e-f568e49c27ac/traits-system/0.0.19/read.raml +0 -48
  813. package/demo/apis/SE-11508/exchange_modules2/26d603ba-9696-4993-b97e-f568e49c27ac/traits-system/0.0.19/types/common-responses.raml +0 -8
  814. package/demo/apis/SE-11508/exchange_modules2/26d603ba-9696-4993-b97e-f568e49c27ac/traits-system/0.0.19/types/error.raml +0 -12
  815. package/demo/apis/SE-11508/exchange_modules2/26d603ba-9696-4993-b97e-f568e49c27ac/traits-system/0.0.19/underwriting.raml +0 -11
  816. package/demo/apis/SE-11508/exchange_modules2/26d603ba-9696-4993-b97e-f568e49c27ac/traits-system/0.0.19/update.raml +0 -48
  817. package/demo/apis/SE-11508/model-system/api-headers.raml +0 -8
  818. package/demo/apis/SE-11508/model-system/api-strict-headers.raml +0 -25
  819. package/demo/apis/SE-11508/model-system/change-credentials-type.raml +0 -11
  820. package/demo/apis/SE-11508/model-system/convert-aggregator-quote-types.raml +0 -25
  821. package/demo/apis/SE-11508/model-system/create-quote-types.raml +0 -35
  822. package/demo/apis/SE-11508/model-system/customer-accounts-types.raml +0 -57
  823. package/demo/apis/SE-11508/model-system/ping-error-messages-types.raml +0 -17
  824. package/demo/apis/SE-11508/model-system/ping-validate-credentials.raml +0 -16
  825. package/demo/apis/SE-11508/model-system/retrieve-quotes-types.raml +0 -40
  826. package/demo/apis/SE-12042/SE-12042.raml +0 -52
  827. package/demo/apis/SE-12042/dataTypes/CheckAPIStatus.raml +0 -25
  828. package/demo/apis/SE-12042/examples/CheckAPIStatusExample1.raml +0 -7
  829. package/demo/apis/SE-12042/examples/CheckAPIStatusExample2.raml +0 -7
  830. package/demo/apis/SE-12042/securitySchemes/x-clientIdSecret.raml +0 -18
  831. package/demo/apis/SE-12224/SE-12224.raml +0 -89
  832. package/demo/apis/SE-12224/dataTypes/product.raml +0 -15
  833. package/demo/apis/SE-12224/dataTypes/products.raml +0 -5
  834. package/demo/apis/SE-12224/examples/product.json +0 -8
  835. package/demo/apis/SE-12224/examples/products.json +0 -8
  836. package/demo/apis/SE-12224/exchange_modules/ae8da8e3-99e3-4a45-acfa-86136e9d991f/ashley-base/1.0.2/error.raml +0 -14
  837. package/demo/apis/SE-12224/exchange_modules/ae8da8e3-99e3-4a45-acfa-86136e9d991f/ashley-base/1.0.2/examples/error.json +0 -13
  838. package/demo/apis/SE-12224/exchange_modules/ae8da8e3-99e3-4a45-acfa-86136e9d991f/ashley-base/1.0.2/examples/innerError.json +0 -7
  839. package/demo/apis/SE-12224/exchange_modules/ae8da8e3-99e3-4a45-acfa-86136e9d991f/ashley-base/1.0.2/exchange.json +0 -1
  840. package/demo/apis/SE-12224/exchange_modules/ae8da8e3-99e3-4a45-acfa-86136e9d991f/ashley-base/1.0.2/innerError.raml +0 -20
  841. package/demo/apis/SE-12224/exchange_modules/ae8da8e3-99e3-4a45-acfa-86136e9d991f/ashley-base/1.0.2/orderable.raml +0 -13
  842. package/demo/apis/SE-12224/exchange_modules/ae8da8e3-99e3-4a45-acfa-86136e9d991f/ashley-base/1.0.2/pageable.raml +0 -15
  843. package/demo/apis/SE-12224/exchange_modules/ae8da8e3-99e3-4a45-acfa-86136e9d991f/ashley-base/1.0.2/searchable.raml +0 -8
  844. package/demo/apis/SE-12224/exchange_modules/ae8da8e3-99e3-4a45-acfa-86136e9d991f/ashley-base/1.0.2/secured-by-aad-oauth2.raml +0 -15
  845. package/demo/apis/SE-12224/exchange_modules/ae8da8e3-99e3-4a45-acfa-86136e9d991f/ashley-base/1.0.2/secured-by-basic-authentication.raml +0 -10
  846. package/demo/apis/SE-12224/exchange_modules/ae8da8e3-99e3-4a45-acfa-86136e9d991f/ashley-base/1.0.2/secured-by-client-id-secret.raml +0 -15
  847. package/demo/apis/SE-12224/exchange_modules/ae8da8e3-99e3-4a45-acfa-86136e9d991f/ashley-base/1.0.2/secured-by-mule-oauth2.raml +0 -15
  848. package/demo/apis/SE-12291/SE-12291.json +0 -357
  849. package/demo/apis/SE-12752/SE-12752.raml +0 -36
  850. package/demo/apis/SE-12957/SE-12957.json +0 -741
  851. package/demo/apis/SE-12959/SE-12959.json +0 -741
  852. package/demo/apis/SE-17897/SE-17897.yaml +0 -21
  853. package/demo/apis/SE-19215/SE-19215.raml +0 -7
  854. package/demo/apis/SE-19500/SE-19500.raml +0 -95
  855. package/demo/apis/SE-19500/docs/home.md +0 -1
  856. package/demo/apis/SE-19500/modules/canada-commons/canda-commons.raml +0 -64
  857. package/demo/apis/SE-19500/modules/canada-commons/ref/log-levels-example.json +0 -3
  858. package/demo/apis/SE-19500/modules/canada-commons/ref/log-levels-response-example.json +0 -3
  859. package/demo/apis/SE-19500/modules/canada-commons/ref/log-levels-response-schema.json +0 -10
  860. package/demo/apis/SE-19500/modules/canada-commons/ref/log-levels-schema.json +0 -30
  861. package/demo/apis/SE-19500/modules/canada-commons/ref/ping-example.json +0 -7
  862. package/demo/apis/SE-19500/modules/canada-commons/ref/ping-schema.json +0 -49
  863. package/demo/apis/SE-19500/modules/canda-mule4-example-data-types/api.raml +0 -6
  864. package/demo/apis/SE-19500/modules/canda-mule4-example-data-types/examples/greeting-example.json +0 -4
  865. package/demo/apis/SE-19500/modules/canda-mule4-example-data-types/examples/greetings-example.json +0 -15
  866. package/demo/apis/SE-19500/modules/canda-mule4-example-data-types/types/greeting-schema.json +0 -22
  867. package/demo/apis/SE-19500/modules/canda-mule4-example-data-types/types/greetings-schema.json +0 -34
  868. package/demo/apis/SE-19500/ref/companies-example.json +0 -14
  869. package/demo/apis/SE-19500/ref/companies-schema.json +0 -70
  870. package/demo/apis/Streetlights/streetlights.yaml +0 -36
  871. package/demo/apis/aap-1698/aap-1698.raml +0 -26
  872. package/demo/apis/amf-helper-api/amf-helper-api.raml +0 -1024
  873. package/demo/apis/amf-helper-api/examples/comment-example.json +0 -42
  874. package/demo/apis/amf-helper-api/examples/commentCreateRequest-example.json +0 -7
  875. package/demo/apis/amf-helper-api/examples/commentList-example.json +0 -48
  876. package/demo/apis/amf-helper-api/examples/person.json +0 -14
  877. package/demo/apis/amf-helper-api/examples/person.raml +0 -13
  878. package/demo/apis/amf-helper-api/examples/person.xml +0 -14
  879. package/demo/apis/amf-helper-api/libraries/comment-lib.raml +0 -143
  880. package/demo/apis/amf-helper-api/library.raml +0 -7
  881. package/demo/apis/amf-helper-api/schemas/person.json +0 -104
  882. package/demo/apis/amf-helper-api/schemas/person.xsd +0 -26
  883. package/demo/apis/amf-helper-api/traits/file.raml +0 -33
  884. package/demo/apis/amf-helper-api/traits/pagination.raml +0 -80
  885. package/demo/apis/amf-helper-api/traits/results.raml +0 -19
  886. package/demo/apis/amf-helper-api/traits/visibility.raml +0 -14
  887. package/demo/apis/amf-helper-api/types/app-person.raml +0 -101
  888. package/demo/apis/amf-helper-api/types/dimensions.raml +0 -24
  889. package/demo/apis/amf-helper-api/types/external-type.raml +0 -7
  890. package/demo/apis/amf-helper-api/types/image.raml +0 -23
  891. package/demo/apis/amf-helper-api/types/product.raml +0 -52
  892. package/demo/apis/amf-helper-api/types/resource.raml +0 -11
  893. package/demo/apis/amf-helper-api/types/standard-request.raml +0 -50
  894. package/demo/apis/amf-helper-api/types/user.raml +0 -37
  895. package/demo/apis/annotated-api/annotated-api.raml +0 -82
  896. package/demo/apis/annotated-parameters/annotated-parameters.raml +0 -18
  897. package/demo/apis/anyOf/anyOf.yaml +0 -37
  898. package/demo/apis/api-keys/api-keys.yaml +0 -85
  899. package/demo/apis/apic-169/apic-169.raml +0 -28
  900. package/demo/apis/apic-83/apic-83.raml +0 -32
  901. package/demo/apis/appian-api/appian-api.raml +0 -184
  902. package/demo/apis/array-body/array-body.raml +0 -23
  903. package/demo/apis/async-api/async-api.yaml +0 -96
  904. package/demo/apis/demo-api/demo-api.raml +0 -1425
  905. package/demo/apis/demo-api/examples/e400.xml +0 -4
  906. package/demo/apis/demo-api/examples/e401.xml +0 -4
  907. package/demo/apis/demo-api/examples/e404.xml +0 -4
  908. package/demo/apis/demo-api/examples/image.xml +0 -5
  909. package/demo/apis/demo-api/examples/messages-example.json +0 -22
  910. package/demo/apis/demo-api/examples/messages-sent-example.json +0 -15
  911. package/demo/apis/demo-api/examples/person.json +0 -14
  912. package/demo/apis/demo-api/examples/person.raml +0 -14
  913. package/demo/apis/demo-api/examples/person.url.encoded +0 -1
  914. package/demo/apis/demo-api/examples/person.xml +0 -14
  915. package/demo/apis/demo-api/examples/product.xml +0 -9
  916. package/demo/apis/demo-api/library/demo-types.raml +0 -44
  917. package/demo/apis/demo-api/library.raml +0 -36
  918. package/demo/apis/demo-api/resourceTypes/app-person.raml +0 -111
  919. package/demo/apis/demo-api/resourceTypes/example-types.raml +0 -45
  920. package/demo/apis/demo-api/resourceTypes/image.raml +0 -23
  921. package/demo/apis/demo-api/resourceTypes/message-sent-type.raml +0 -23
  922. package/demo/apis/demo-api/resourceTypes/message-type.raml +0 -33
  923. package/demo/apis/demo-api/resourceTypes/product.raml +0 -52
  924. package/demo/apis/demo-api/resourceTypes/resource.raml +0 -11
  925. package/demo/apis/demo-api/schemas/error-response.xsd +0 -11
  926. package/demo/apis/demo-api/schemas/image.xsd +0 -11
  927. package/demo/apis/demo-api/schemas/person.json +0 -104
  928. package/demo/apis/demo-api/schemas/person.xsd +0 -26
  929. package/demo/apis/demo-api/schemas/product.xsd +0 -17
  930. package/demo/apis/demo-api/securitySchemes/basic.raml +0 -5
  931. package/demo/apis/demo-api/securitySchemes/oauth-2-custom-settings.raml +0 -143
  932. package/demo/apis/demo-api/securitySchemes/oauth2-header-delivery.raml +0 -13
  933. package/demo/apis/demo-api/securitySchemes/oauth2-no-delivery.raml +0 -8
  934. package/demo/apis/demo-api/securitySchemes/oauth2-no-grants.raml +0 -12
  935. package/demo/apis/demo-api/securitySchemes/oauth2-pkce.raml +0 -13
  936. package/demo/apis/demo-api/securitySchemes/oauth2-query-delivery.raml +0 -13
  937. package/demo/apis/demo-api/securitySchemes/oauth_1_0.raml +0 -8
  938. package/demo/apis/demo-api/securitySchemes/oauth_1_0_no-settings.raml +0 -3
  939. package/demo/apis/demo-api/securitySchemes/oauth_1_0_no-signature.raml +0 -7
  940. package/demo/apis/demo-api/securitySchemes/oauth_1_0_signature.raml +0 -8
  941. package/demo/apis/demo-api/securitySchemes/oauth_2_0.raml +0 -29
  942. package/demo/apis/demo-api/securitySchemes/passthrough-querystring.raml +0 -16
  943. package/demo/apis/demo-api/securitySchemes/passthrough.raml +0 -24
  944. package/demo/apis/demo-api/securitySchemes/x-custom.raml +0 -33
  945. package/demo/apis/demo-api/securitySchemes/x-other.raml +0 -29
  946. package/demo/apis/demo-api/securitySchemes/x-query-string.raml +0 -16
  947. package/demo/apis/demo-api/traits/adminable.raml +0 -23
  948. package/demo/apis/demo-api/traits/pagination.raml +0 -83
  949. package/demo/apis/demo-api/traits/rate-limited.raml +0 -9
  950. package/demo/apis/demo-api/types/DemoPerson.raml +0 -67
  951. package/demo/apis/demo-document/demo-document.raml +0 -21
  952. package/demo/apis/documentation-fragment/documentation-fragment.raml +0 -76
  953. package/demo/apis/documented-api/documented-api.raml +0 -29
  954. package/demo/apis/enum-test/enum-test.raml +0 -64
  955. package/demo/apis/example-fragment/example-fragment.raml +0 -8
  956. package/demo/apis/examples-api/Address-1.0.raml +0 -75
  957. package/demo/apis/examples-api/CompanyIdentification-1.0.raml +0 -48
  958. package/demo/apis/examples-api/CompanyProfile-1.0.raml +0 -14
  959. package/demo/apis/examples-api/CompanyProfileBase-1.0.raml +0 -48
  960. package/demo/apis/examples-api/contact-email-example.raml +0 -6
  961. package/demo/apis/examples-api/contact-example.raml +0 -7
  962. package/demo/apis/examples-api/contact-fax-example.raml +0 -7
  963. package/demo/apis/examples-api/contact-website-example.raml +0 -4
  964. package/demo/apis/examples-api/example-1.raml +0 -7
  965. package/demo/apis/examples-api/example-2.raml +0 -12
  966. package/demo/apis/examples-api/example-3.raml +0 -5
  967. package/demo/apis/examples-api/example-4.raml +0 -3
  968. package/demo/apis/examples-api/example-5.raml +0 -5
  969. package/demo/apis/examples-api/example-6.raml +0 -3
  970. package/demo/apis/examples-api/example-7.raml +0 -7
  971. package/demo/apis/examples-api/example.json +0 -14
  972. package/demo/apis/examples-api/example.xml +0 -15
  973. package/demo/apis/examples-api/example.xsd +0 -26
  974. package/demo/apis/examples-api/examples/Address_BE_Example-1.0.raml +0 -10
  975. package/demo/apis/examples-api/examples/Address_GB_Example-1.0.raml +0 -8
  976. package/demo/apis/examples-api/examples/Address_NL_Example-1.0.raml +0 -8
  977. package/demo/apis/examples-api/examples/Addresses_BE_Example-1.0.raml +0 -11
  978. package/demo/apis/examples-api/examples/Addresses_GB_Example-1.0.raml +0 -9
  979. package/demo/apis/examples-api/examples/Addresses_NL_Example-1.0.raml +0 -17
  980. package/demo/apis/examples-api/examples/CompanyIdentification_BE_Example-1.0.raml +0 -7
  981. package/demo/apis/examples-api/examples/CompanyIdentification_GB_Example-1.0.raml +0 -7
  982. package/demo/apis/examples-api/examples/CompanyIdentification_NL_BranchId_Example-1.0.raml +0 -7
  983. package/demo/apis/examples-api/examples/CompanyIdentification_NL_Example-1.0.raml +0 -7
  984. package/demo/apis/examples-api/examples/CompanyIdentification_NL_GY-Holding_Example-1.0.raml +0 -6
  985. package/demo/apis/examples-api/examples/CompanyLegalForm_BE_Example-1.0.raml +0 -3
  986. package/demo/apis/examples-api/examples/CompanyLegalForm_GB_Example-1.0.raml +0 -3
  987. package/demo/apis/examples-api/examples/CompanyLegalForm_NL_Example-1.0.raml +0 -3
  988. package/demo/apis/examples-api/examples/CompanyProfile_BE_Example-1.0.raml +0 -14
  989. package/demo/apis/examples-api/examples/CompanyProfile_GB_Example-1.0.raml +0 -11
  990. package/demo/apis/examples-api/examples/CompanyProfile_NL_Example-1.0.raml +0 -12
  991. package/demo/apis/examples-api/examples/Company_BE_Example-1.0.raml +0 -3
  992. package/demo/apis/examples-api/examples/Company_GB_Example-1.0.raml +0 -3
  993. package/demo/apis/examples-api/examples/Company_NL_Example-1.0.raml +0 -3
  994. package/demo/apis/examples-api/examples-api.raml +0 -313
  995. package/demo/apis/examples-api/linked-named-example.raml +0 -22
  996. package/demo/apis/examples-api/named-example-with-link.raml +0 -3
  997. package/demo/apis/examples-api/named-example.raml +0 -7
  998. package/demo/apis/examples-api/type-with-linked-examples.raml +0 -15
  999. package/demo/apis/examples-api/user-json-example.raml +0 -17
  1000. package/demo/apis/examples-api/user-raml-example.raml +0 -37
  1001. package/demo/apis/examples-api/user.json +0 -8
  1002. package/demo/apis/examples-api/user.raml +0 -18
  1003. package/demo/apis/examples-api/users-json-example.raml +0 -17
  1004. package/demo/apis/examples-api/users-raml-example.raml +0 -32
  1005. package/demo/apis/examples-api/users.json +0 -8
  1006. package/demo/apis/expanded-api/expanded-api.raml +0 -8
  1007. package/demo/apis/ext-docs/ext-docs.yaml +0 -15
  1008. package/demo/apis/flattened-api/flattened-api.raml +0 -8
  1009. package/demo/apis/google-drive-api/docs/api/headline.md +0 -1
  1010. package/demo/apis/google-drive-api/docs/search-for-file.md +0 -176
  1011. package/demo/apis/google-drive-api/docs/upload-files.md +0 -268
  1012. package/demo/apis/google-drive-api/docs/uploadApi/headline.md +0 -1
  1013. package/demo/apis/google-drive-api/docs/work-with-folders.md +0 -307
  1014. package/demo/apis/google-drive-api/examples/about-example.json +0 -470
  1015. package/demo/apis/google-drive-api/examples/app-example.json +0 -100
  1016. package/demo/apis/google-drive-api/examples/app-list-example.json +0 -108
  1017. package/demo/apis/google-drive-api/examples/change-example.json +0 -91
  1018. package/demo/apis/google-drive-api/examples/changeList-example.json +0 -351
  1019. package/demo/apis/google-drive-api/examples/channel-example.json +0 -8
  1020. package/demo/apis/google-drive-api/examples/childList-example.json +0 -15
  1021. package/demo/apis/google-drive-api/examples/childReference-example.json +0 -6
  1022. package/demo/apis/google-drive-api/examples/comment-example.json +0 -42
  1023. package/demo/apis/google-drive-api/examples/comment-reply-update-response.json +0 -18
  1024. package/demo/apis/google-drive-api/examples/commentCreateRequest-example.json +0 -7
  1025. package/demo/apis/google-drive-api/examples/commentList-example.json +0 -48
  1026. package/demo/apis/google-drive-api/examples/commentReply-example.json +0 -17
  1027. package/demo/apis/google-drive-api/examples/commentReplyList-example.json +0 -21
  1028. package/demo/apis/google-drive-api/examples/commentReplyRequest-example.json +0 -4
  1029. package/demo/apis/google-drive-api/examples/file-example.json +0 -92
  1030. package/demo/apis/google-drive-api/examples/fileList-example.json +0 -98
  1031. package/demo/apis/google-drive-api/examples/newFileRequest-example.json +0 -29
  1032. package/demo/apis/google-drive-api/examples/parentList-example.json +0 -14
  1033. package/demo/apis/google-drive-api/examples/parentReference-example.json +0 -7
  1034. package/demo/apis/google-drive-api/examples/permission-example.json +0 -18
  1035. package/demo/apis/google-drive-api/examples/permissionId-example.json +0 -4
  1036. package/demo/apis/google-drive-api/examples/permissionList-example.json +0 -17
  1037. package/demo/apis/google-drive-api/examples/permissionRequest-example.json +0 -9
  1038. package/demo/apis/google-drive-api/examples/permissionUpdateRequest-example.json +0 -9
  1039. package/demo/apis/google-drive-api/examples/property-example.json +0 -8
  1040. package/demo/apis/google-drive-api/examples/propertyList-example.json +0 -13
  1041. package/demo/apis/google-drive-api/examples/revision-example.json +0 -30
  1042. package/demo/apis/google-drive-api/examples/revisionList-example.json +0 -35
  1043. package/demo/apis/google-drive-api/examples/revisionUpdateRequest-example.json +0 -6
  1044. package/demo/apis/google-drive-api/examples/stopWatchingRequest-example.json +0 -4
  1045. package/demo/apis/google-drive-api/examples/watchRequest-example.json +0 -7
  1046. package/demo/apis/google-drive-api/google-drive-api.raml +0 -1118
  1047. package/demo/apis/google-drive-api/libraries/about-lib.raml +0 -121
  1048. package/demo/apis/google-drive-api/libraries/annotations.raml +0 -4
  1049. package/demo/apis/google-drive-api/libraries/app-lib.raml +0 -134
  1050. package/demo/apis/google-drive-api/libraries/child-lib.raml +0 -53
  1051. package/demo/apis/google-drive-api/libraries/comment-lib.raml +0 -145
  1052. package/demo/apis/google-drive-api/libraries/file-lib.raml +0 -517
  1053. package/demo/apis/google-drive-api/libraries/parent-lib.raml +0 -52
  1054. package/demo/apis/google-drive-api/libraries/permission-lib.raml +0 -146
  1055. package/demo/apis/google-drive-api/libraries/properties-lib.raml +0 -44
  1056. package/demo/apis/google-drive-api/libraries/revision-lib.raml +0 -116
  1057. package/demo/apis/google-drive-api/libraries/watch-lib.raml +0 -128
  1058. package/demo/apis/google-drive-api/securitySchemes/oauth_2_0.raml +0 -25
  1059. package/demo/apis/google-drive-api/traits/file.raml +0 -33
  1060. package/demo/apis/google-drive-api/traits/results.raml +0 -19
  1061. package/demo/apis/google-drive-api/traits/visibility.raml +0 -17
  1062. package/demo/apis/google-drive-api/types/additional-role-info.raml +0 -12
  1063. package/demo/apis/google-drive-api/types/channels-stop.raml +0 -11
  1064. package/demo/apis/google-drive-api/types/export-format.raml +0 -11
  1065. package/demo/apis/google-drive-api/types/feature.raml +0 -11
  1066. package/demo/apis/google-drive-api/types/file-capabilities.raml +0 -69
  1067. package/demo/apis/google-drive-api/types/file-labels.raml +0 -35
  1068. package/demo/apis/google-drive-api/types/icon.raml +0 -25
  1069. package/demo/apis/google-drive-api/types/import-format.raml +0 -11
  1070. package/demo/apis/google-drive-api/types/new-drive-file.raml +0 -48
  1071. package/demo/apis/google-drive-api/types/owners.raml +0 -32
  1072. package/demo/apis/google-drive-api/types/picture.raml +0 -9
  1073. package/demo/apis/google-drive-api/types/property.raml +0 -25
  1074. package/demo/apis/google-drive-api/types/resource.raml +0 -28
  1075. package/demo/apis/google-drive-api/types/role-set.raml +0 -11
  1076. package/demo/apis/google-drive-api/types/service-quota.raml +0 -10
  1077. package/demo/apis/google-drive-api/types/standard-request.raml +0 -51
  1078. package/demo/apis/google-drive-api/types/team-drive-list.raml +0 -18
  1079. package/demo/apis/google-drive-api/types/team-drive.raml +0 -59
  1080. package/demo/apis/google-drive-api/types/thumbnail.raml +0 -14
  1081. package/demo/apis/google-drive-api/types/upload-size.raml +0 -12
  1082. package/demo/apis/google-drive-api/types/user.raml +0 -37
  1083. package/demo/apis/httpbin/httpbin.json +0 -1836
  1084. package/demo/apis/lib-fragment/lib-fragment.raml +0 -55
  1085. package/demo/apis/loan-ms/loan-microservice.json +0 -699
  1086. package/demo/apis/missing-endpoints/missing-endpoints.raml +0 -34
  1087. package/demo/apis/mocking-service/mocking-service.raml +0 -149
  1088. package/demo/apis/modular-api/models/ecommerce-canonical.raml +0 -89
  1089. package/demo/apis/modular-api/models/ecommerce.raml +0 -36
  1090. package/demo/apis/modular-api/models/things.raml +0 -32
  1091. package/demo/apis/modular-api/modular-api.raml +0 -12
  1092. package/demo/apis/multi-server/multi-server.yaml +0 -128
  1093. package/demo/apis/multiple-servers/multiple-servers.yaml +0 -112
  1094. package/demo/apis/navigation-api/library.raml +0 -7
  1095. package/demo/apis/navigation-api/navigation-api.raml +0 -357
  1096. package/demo/apis/navigation-api/types/app-person.raml +0 -101
  1097. package/demo/apis/navigation-api/types/image.raml +0 -23
  1098. package/demo/apis/navigation-api/types/product.raml +0 -52
  1099. package/demo/apis/navigation-api/types/resource.raml +0 -11
  1100. package/demo/apis/new-oas3-types/new-oas3-types.yaml +0 -84
  1101. package/demo/apis/nexmo-sms-api/nexmo-sms-api.raml +0 -488
  1102. package/demo/apis/no-endpoints/no-endpoints.raml +0 -14
  1103. package/demo/apis/no-server/no-server.raml +0 -27
  1104. package/demo/apis/no-servers-api/no-servers-api.yaml +0 -31
  1105. package/demo/apis/not-schema/not-schema.yaml +0 -38
  1106. package/demo/apis/oas-3-api/oas-3-api.yaml +0 -356
  1107. package/demo/apis/oas-api/LoanMicrosrvice.yaml +0 -339
  1108. package/demo/apis/oas-api/Petstore-v2.yaml +0 -144
  1109. package/demo/apis/oas-api/Petstore.raml +0 -106
  1110. package/demo/apis/oas-api/UBER.raml +0 -274
  1111. package/demo/apis/oas-api/UBER.yaml +0 -272
  1112. package/demo/apis/oas-api/petstore-expanded.raml +0 -141
  1113. package/demo/apis/oas-api/petstore-expanded.yaml +0 -139
  1114. package/demo/apis/oas-api/read-only-properties.yaml +0 -42
  1115. package/demo/apis/oas-bearer/oas-bearer.yaml +0 -45
  1116. package/demo/apis/oas-callbacks/oas-callbacks.yaml +0 -150
  1117. package/demo/apis/oas-demo/oas-demo.yaml +0 -94
  1118. package/demo/apis/oauth-flows/oauth-flows.yaml +0 -61
  1119. package/demo/apis/oauth-pkce/oauth-2-pkce.raml +0 -33
  1120. package/demo/apis/oauth-pkce/oauth-pkce.raml +0 -22
  1121. package/demo/apis/oauth1-fragment/oauth1-fragment.raml +0 -7
  1122. package/demo/apis/oauth2-fragment/oauth2-fragment.raml +0 -30
  1123. package/demo/apis/petstore/petstore.yaml +0 -954
  1124. package/demo/apis/prevent-xss/prevent-xss.json +0 -20
  1125. package/demo/apis/rearrange-api/rearrange-api.raml +0 -32
  1126. package/demo/apis/secured-api/oauth-2-custom-settings.raml +0 -143
  1127. package/demo/apis/secured-api/oauth2-header-delivery.raml +0 -13
  1128. package/demo/apis/secured-api/oauth2-no-delivery.raml +0 -8
  1129. package/demo/apis/secured-api/oauth2-no-grants.raml +0 -12
  1130. package/demo/apis/secured-api/oauth2-pkce.raml +0 -13
  1131. package/demo/apis/secured-api/oauth2-query-delivery.raml +0 -13
  1132. package/demo/apis/secured-api/oauth_1_0.raml +0 -8
  1133. package/demo/apis/secured-api/oauth_1_0_no-settings.raml +0 -3
  1134. package/demo/apis/secured-api/oauth_1_0_no-signature.raml +0 -7
  1135. package/demo/apis/secured-api/oauth_1_0_signature.raml +0 -8
  1136. package/demo/apis/secured-api/passthrough-querystring.raml +0 -16
  1137. package/demo/apis/secured-api/passthrough.raml +0 -24
  1138. package/demo/apis/secured-api/secured-api.raml +0 -231
  1139. package/demo/apis/secured-api/x-custom.raml +0 -33
  1140. package/demo/apis/secured-api/x-other.raml +0 -29
  1141. package/demo/apis/secured-api/x-query-string.raml +0 -16
  1142. package/demo/apis/secured-unions/secured-unions.yaml +0 -95
  1143. package/demo/apis/security-api/oauth-2-custom-settings.raml +0 -154
  1144. package/demo/apis/security-api/readme.md +0 -1
  1145. package/demo/apis/security-api/security/basic.raml +0 -13
  1146. package/demo/apis/security-api/security/digest.raml +0 -5
  1147. package/demo/apis/security-api/security/oauth_1_0.raml +0 -27
  1148. package/demo/apis/security-api/security/oauth_2_0.raml +0 -30
  1149. package/demo/apis/security-api/security/oauth_2_0_no_scopes.raml +0 -29
  1150. package/demo/apis/security-api/security/other-oauth_1_0.raml +0 -29
  1151. package/demo/apis/security-api/security/passthrough.raml +0 -12
  1152. package/demo/apis/security-api/security/x-custom.raml +0 -26
  1153. package/demo/apis/security-api/security/x-other.raml +0 -29
  1154. package/demo/apis/security-api/security-api.raml +0 -89
  1155. package/demo/apis/servers-api/servers-api.yaml +0 -80
  1156. package/demo/apis/simple-api/simple-api.raml +0 -12
  1157. package/demo/apis/steveTest-1/exchange.json +0 -6
  1158. package/demo/apis/steveTest-1/schemas/schema-termsConditionsAccept.json +0 -43
  1159. package/demo/apis/steveTest-1/schemas_response/schema-termsConditionsAccept-Get.json +0 -24
  1160. package/demo/apis/steveTest-1/stevetest.json +0 -167
  1161. package/demo/apis/steveTest-1/traits/response-errors.json +0 -123
  1162. package/demo/apis/steveTest-1/traits/schema-response-errors.json +0 -35
  1163. package/demo/apis/streetlights2/streetlights2.yaml +0 -213
  1164. package/demo/apis/tracked-examples/datatypes/employee.raml +0 -5
  1165. package/demo/apis/tracked-examples/examples/employee.raml +0 -4
  1166. package/demo/apis/tracked-examples/examples/employees.raml +0 -8
  1167. package/demo/apis/tracked-examples/tracked-to-linked.raml +0 -28
  1168. package/demo/apis/type-fragment/type-fragment.raml +0 -96
  1169. package/demo/apis/types-list/exchange.json +0 -1
  1170. package/demo/apis/types-list/library.raml +0 -7
  1171. package/demo/apis/types-list/typeFromDataTypeFile.raml +0 -6
  1172. package/demo/apis/types-list/types-list.raml +0 -38
  1173. package/demo/apis/unordered-endpoints/unordered-endpoints.raml +0 -11
  1174. package/demo/lib/DemoBindings.ts +0 -38
  1175. package/demo/lib/amf/AmfPartialGraphStore.ts +0 -305
  1176. package/demo/lib/amf/AmfPartialModel.ts +0 -690
  1177. package/demo/lib/amf/ApiExamples.ts +0 -3270
  1178. package/demo/lib/io/ApiStore.ts +0 -16
  1179. package/demo/lib/io/SharedWorkerThread.ts +0 -31
  1180. package/demo/lib/io/main.ts +0 -23
  1181. package/demo/model.js +0 -203
  1182. package/demo/store/IpAddress.js +0 -15
  1183. package/demo/store/StorePlugin.js +0 -18
  1184. package/demo/stores.md +0 -5
  1185. package/dev/amf-server/AmfParser.js +0 -144
  1186. package/dev/amf-server/AmfService.js +0 -136
  1187. package/dev/amf-server/ApiError.js +0 -10
  1188. package/dev/amf-server/ParserProcess.js +0 -101
  1189. package/dev/amf-server/api.js +0 -146
  1190. package/dev/types.d.ts +0 -28
  1191. package/src/amf/lib/AmfInputParser.ts +0 -254
  1192. package/src/amf/lib/AmfParameters.ts +0 -814
  1193. package/src/amf/lib/AmfSecurity.ts +0 -45
  1194. package/src/amf/lib/InputCache.ts +0 -100
  1195. package/src/amf/lib/Oauth2RamlCustomData.ts +0 -265
  1196. package/src/amf/lib/PayloadUtils.ts +0 -87
  1197. package/src/amf/lib/QueryParameterProcessor.ts +0 -186
  1198. package/src/amf/lib/UrlUtils.ts +0 -213
  1199. package/src/amf/lib/Utils.ts +0 -220
  1200. package/src/amf/lib/navigation-layout/ApiSorting.ts +0 -20
  1201. package/src/amf/lib/navigation-layout/EndpointsTree.ts +0 -189
  1202. package/src/amf/lib/navigation-layout/NaturalTree.ts +0 -100
  1203. package/src/amf/plugins/ApiNavigationCommands.ts +0 -73
  1204. package/src/amf/plugins/ApiNavigationContextMenu.ts +0 -43
  1205. package/src/amf/store/AmfGraphStore.ts +0 -69
  1206. package/src/amf/store/AmfStore.ts +0 -216
  1207. package/src/amf/store/DomEventsAmfStore.ts +0 -4
  1208. package/src/amf/store/InMemAmfGraphStore.ts +0 -630
  1209. package/src/amf/store/Readme.md +0 -40
  1210. package/src/amf/store/mixins/AmfStoreDomEventsMixin.ts +0 -132
  1211. package/src/amf/types.ts +0 -359
  1212. package/src/define/amf/api-annotation-document.ts +0 -14
  1213. package/src/define/amf/api-authorization-editor.ts +0 -14
  1214. package/src/define/amf/api-channel-document.ts +0 -14
  1215. package/src/define/amf/api-documentation-document.ts +0 -14
  1216. package/src/define/amf/api-documentation.ts +0 -14
  1217. package/src/define/amf/api-navigation.ts +0 -14
  1218. package/src/define/amf/api-operation-document.ts +0 -14
  1219. package/src/define/amf/api-parameter-document.ts +0 -14
  1220. package/src/define/amf/api-parametrized-security-scheme.ts +0 -14
  1221. package/src/define/amf/api-payload-document.ts +0 -14
  1222. package/src/define/amf/api-request-document.ts +0 -14
  1223. package/src/define/amf/api-request-editor.ts +0 -14
  1224. package/src/define/amf/api-request.ts +0 -14
  1225. package/src/define/amf/api-resource-document.ts +0 -14
  1226. package/src/define/amf/api-response-document.ts +0 -14
  1227. package/src/define/amf/api-schema-document.ts +0 -14
  1228. package/src/define/amf/api-security-document.ts +0 -14
  1229. package/src/define/amf/api-security-requirement-document.ts +0 -14
  1230. package/src/define/amf/api-server-picker.ts +0 -14
  1231. package/src/define/amf/api-summary.ts +0 -14
  1232. package/src/define/amf/authorization/amf-apikey-authorization.ts +0 -15
  1233. package/src/define/amf/authorization/amf-basic-authorization.ts +0 -15
  1234. package/src/define/amf/authorization/amf-bearer-authorization.ts +0 -15
  1235. package/src/define/amf/authorization/amf-oauth2-authorization.ts +0 -18
  1236. package/src/define/amf/authorization/amf-oidc-authorization.ts +0 -18
  1237. package/src/define/amf/authorization/amf-passthrough-authorization.ts +0 -15
  1238. package/src/define/amf/authorization/amf-ramlcustom-authorization.ts +0 -15
  1239. package/src/elements/amf/ApiAnnotationDocument.element.ts +0 -181
  1240. package/src/elements/amf/ApiAnnotationDocument.styles.ts +0 -46
  1241. package/src/elements/amf/ApiAuthorizationEditor.element.ts +0 -364
  1242. package/src/elements/amf/ApiAuthorizationEditor.styles.ts +0 -25
  1243. package/src/elements/amf/ApiChannelDocument.element.ts +0 -89
  1244. package/src/elements/amf/ApiDocumentation.element.ts +0 -642
  1245. package/src/elements/amf/ApiDocumentation.styles.ts +0 -11
  1246. package/src/elements/amf/ApiDocumentationBase.ts +0 -296
  1247. package/src/elements/amf/ApiDocumentationDocument.element.ts +0 -85
  1248. package/src/elements/amf/ApiDocumentationDocument.styles.ts +0 -32
  1249. package/src/elements/amf/ApiNavigation.element.ts +0 -2285
  1250. package/src/elements/amf/ApiNavigation.styles.ts +0 -159
  1251. package/src/elements/amf/ApiOperationDocument.element.ts +0 -978
  1252. package/src/elements/amf/ApiOperationDocument.styles.ts +0 -67
  1253. package/src/elements/amf/ApiParameterDocument.element.ts +0 -105
  1254. package/src/elements/amf/ApiParameterDocument.styles.ts +0 -15
  1255. package/src/elements/amf/ApiParametrizedSecurityScheme.element.ts +0 -72
  1256. package/src/elements/amf/ApiParametrizedSecurityScheme.styles.ts +0 -4
  1257. package/src/elements/amf/ApiPayloadDocument.element.ts +0 -128
  1258. package/src/elements/amf/ApiPayloadDocument.styles.ts +0 -15
  1259. package/src/elements/amf/ApiRequest.element.ts +0 -260
  1260. package/src/elements/amf/ApiRequest.styles.ts +0 -11
  1261. package/src/elements/amf/ApiRequestDocument.element.ts +0 -388
  1262. package/src/elements/amf/ApiRequestDocument.styles.ts +0 -13
  1263. package/src/elements/amf/ApiRequestEditor.element.ts +0 -1773
  1264. package/src/elements/amf/ApiRequestEditor.styles.ts +0 -160
  1265. package/src/elements/amf/ApiResourceDocument.element.ts +0 -682
  1266. package/src/elements/amf/ApiResourceDocument.styles.ts +0 -91
  1267. package/src/elements/amf/ApiResponseDocument.element.ts +0 -290
  1268. package/src/elements/amf/ApiResponseDocument.styles.ts +0 -41
  1269. package/src/elements/amf/ApiSchemaDocument.element.ts +0 -786
  1270. package/src/elements/amf/ApiSchemaDocument.styles.ts +0 -41
  1271. package/src/elements/amf/ApiSecurityDocument.element.ts +0 -607
  1272. package/src/elements/amf/ApiSecurityDocument.styles.ts +0 -89
  1273. package/src/elements/amf/ApiSecurityRequirementDocument.element.ts +0 -72
  1274. package/src/elements/amf/ApiSecurityRequirementDocument.styles.ts +0 -7
  1275. package/src/elements/amf/ApiServerPicker.element.ts +0 -690
  1276. package/src/elements/amf/ApiServerPicker.styles.ts +0 -25
  1277. package/src/elements/amf/ApiSummary.element.ts +0 -387
  1278. package/src/elements/amf/ApiSummary.styles.ts +0 -192
  1279. package/src/elements/amf/SchemaCommonTemplates.ts +0 -563
  1280. package/src/elements/amf/authorization/AmfApiKey.ts +0 -250
  1281. package/src/elements/amf/authorization/AmfBasic.ts +0 -77
  1282. package/src/elements/amf/authorization/AmfBearer.ts +0 -63
  1283. package/src/elements/amf/authorization/AmfOauth2.ts +0 -830
  1284. package/src/elements/amf/authorization/AmfOidc.ts +0 -66
  1285. package/src/elements/amf/authorization/AmfPassThrough.ts +0 -261
  1286. package/src/elements/amf/authorization/AmfRamlCustom.ts +0 -291
  1287. package/src/elements/amf/authorization/Authorization.styles.ts +0 -40
  1288. package/src/elements/amf/styles/AuthorizationMethod.ts +0 -46
  1289. package/src/elements/amf/styles/Common.ts +0 -150
  1290. package/src/elements/amf/styles/SchemaCommon.ts +0 -376
  1291. package/src/events/amf/ApiEvents.ts +0 -47
  1292. package/src/events/amf/BaseEvents.ts +0 -96
  1293. package/src/events/amf/DocumentationEvents.ts +0 -29
  1294. package/src/events/amf/EndpointEvents.ts +0 -37
  1295. package/src/events/amf/EventTypes.ts +0 -64
  1296. package/src/events/amf/Events.ts +0 -39
  1297. package/src/events/amf/NavigationEvents.ts +0 -86
  1298. package/src/events/amf/OperationEvents.ts +0 -29
  1299. package/src/events/amf/PayloadEvents.ts +0 -18
  1300. package/src/events/amf/ReportingEvents.ts +0 -28
  1301. package/src/events/amf/RequestEvents.ts +0 -16
  1302. package/src/events/amf/ResponseEvents.ts +0 -18
  1303. package/src/events/amf/SecurityEvents.ts +0 -60
  1304. package/src/events/amf/ServerEvents.ts +0 -94
  1305. package/src/events/amf/StoreEvents.ts +0 -16
  1306. package/src/events/amf/TelemetryEvents.ts +0 -115
  1307. package/src/events/amf/TypeEvents.ts +0 -28
  1308. package/test/amf/AmfLoader.ts +0 -575
  1309. package/test/amf/MonacoSetup.ts +0 -63
  1310. package/test/amf/authorization/ApiAuthorizationEditorElement.oas.test.ts +0 -253
  1311. package/test/amf/authorization/ApiAuthorizationEditorElement.raml.test.ts +0 -477
  1312. package/test/amf/authorization/ApiKeyMethod.test.ts +0 -160
  1313. package/test/amf/authorization/CustomMethod.test.ts +0 -306
  1314. package/test/amf/authorization/OAuth2-21143.test.ts +0 -40
  1315. package/test/amf/authorization/OAuth2-flows.test.ts +0 -99
  1316. package/test/amf/authorization/OAuth2-pkce.test.ts +0 -39
  1317. package/test/amf/authorization/OAuth2Method.test.ts +0 -369
  1318. package/test/amf/authorization/PassThroughMethod.test.ts +0 -180
  1319. package/test/amf/elements/ApiAnnotationDocumentElement.test.ts +0 -123
  1320. package/test/amf/elements/ApiDocumentationDocumentElement.test.ts +0 -153
  1321. package/test/amf/elements/ApiDocumentationElement.test.ts +0 -680
  1322. package/test/amf/elements/ApiOperationDocumentElement.test.ts +0 -753
  1323. package/test/amf/elements/ApiRequestDocumentElement.test.ts +0 -165
  1324. package/test/amf/elements/ApiResourceDocumentElement.test.ts +0 -320
  1325. package/test/amf/elements/ApiResponseDocumentElement.test.ts +0 -288
  1326. package/test/amf/elements/ApiSchemaDocumentElement.test.ts +0 -934
  1327. package/test/amf/elements/ApiSecurityDocumentElement.test.ts +0 -667
  1328. package/test/amf/elements/ApiSecurityRequirementDocumentElement.test.ts +0 -58
  1329. package/test/amf/elements/ApiServerPickerElement.test.ts +0 -960
  1330. package/test/amf/elements/ApiSummaryElement.test.ts +0 -485
  1331. package/test/amf/elements/SE-12957.test.ts +0 -49
  1332. package/test/amf/events/ApiEvents.test.ts +0 -32
  1333. package/test/amf/events/EndpointEvents.test.ts +0 -94
  1334. package/test/amf/events/EventHelper.ts +0 -11
  1335. package/test/amf/events/EventTypes.test.ts +0 -241
  1336. package/test/amf/events/NavigationEvents.test.ts +0 -58
  1337. package/test/amf/events/ReportingEvents.test.ts +0 -53
  1338. package/test/amf/events/StoreEvents.test.ts +0 -21
  1339. package/test/amf/events/TelemetryEvents.test.ts +0 -202
  1340. package/test/amf/http-request/APIC-289.test.ts +0 -66
  1341. package/test/amf/http-request/APIC-298.test.ts +0 -49
  1342. package/test/amf/http-request/APIC-689.test.ts +0 -45
  1343. package/test/amf/http-request/ApiRequestEditorElement.test.ts +0 -1472
  1344. package/test/amf/http-request/ApiRequestElement.test.ts +0 -39
  1345. package/test/amf/http-request/SE-12042.test.ts +0 -56
  1346. package/test/amf/http-request/SE-12957.test.ts +0 -80
  1347. package/test/amf/http-request/server.ts +0 -154
  1348. package/test/amf/lib/UrlUtils.test.ts +0 -324
  1349. package/test/amf/navigation/ApiNavigationElement.test.ts +0 -1464
  1350. package/test/amf/navigation/documentation-fragment.test.ts +0 -77
  1351. package/test/amf/navigation/security-fragment.test.ts +0 -77
  1352. package/test/amf/navigation/type-fragment.test.ts +0 -77
  1353. package/tsconfig.browser.json +0 -40
  1354. package/tsconfig.testing.json +0 -39
  1355. package/wds-demo.config.js +0 -49
  1356. /package/demo/{elements/md → md}/DemoStyles.ts +0 -0
  1357. /package/demo/{elements/md → md}/chip/pawel6c9a.jpg +0 -0
@@ -1,2244 +0,0 @@
1
- import { __esDecorate, __runInitializers } from "tslib";
2
- import { html } from 'lit';
3
- import { property, state } from 'lit/decorators.js';
4
- import { styleMap } from 'lit/directives/style-map.js';
5
- import { classMap } from 'lit/directives/class-map.js';
6
- import { ifDefined } from 'lit/directives/if-defined.js';
7
- import { ApiSorting } from '../../amf/lib/navigation-layout/ApiSorting.js';
8
- import { EndpointsTree } from '../../amf/lib/navigation-layout/EndpointsTree.js';
9
- import { NaturalTree } from '../../amf/lib/navigation-layout/NaturalTree.js';
10
- import { EventTypes } from '../../events/amf/EventTypes.js';
11
- import { Events } from '../../events/amf/Events.js';
12
- import { cancelEvent } from '../../amf/lib/Utils.js';
13
- import ApiElement from '../ApiElement.js';
14
- import { SnackNotifications } from '../../md/notification/SnackNotifications.js';
15
- import '../../md/icons/ui-icon.js';
16
- import '../../md/collapse/ui-collapse.js';
17
- import '../../md/icon-button/ui-icon-button.js';
18
- const defaultPadding = 40;
19
- let ApiNavigation = (() => {
20
- let _classSuper = ApiElement;
21
- let _instanceExtraInitializers = [];
22
- let _documentMeta_decorators;
23
- let _documentMeta_initializers = [];
24
- let _documentMeta_extraInitializers = [];
25
- let _sourceEndpoints_decorators;
26
- let _sourceEndpoints_initializers = [];
27
- let _sourceEndpoints_extraInitializers = [];
28
- let _set_domainId_decorators;
29
- let _set_query_decorators;
30
- let _set_layout_decorators;
31
- let _set_endpointsExpanded_decorators;
32
- let _apiId_decorators;
33
- let _apiId_initializers = [];
34
- let _apiId_extraInitializers = [];
35
- let _summary_decorators;
36
- let _summary_initializers = [];
37
- let _summary_extraInitializers = [];
38
- let _summaryLabel_decorators;
39
- let _summaryLabel_initializers = [];
40
- let _summaryLabel_extraInitializers = [];
41
- let _documentationsOpened_decorators;
42
- let _documentationsOpened_initializers = [];
43
- let _documentationsOpened_extraInitializers = [];
44
- let _schemasOpened_decorators;
45
- let _schemasOpened_initializers = [];
46
- let _schemasOpened_extraInitializers = [];
47
- let _securityOpened_decorators;
48
- let _securityOpened_initializers = [];
49
- let _securityOpened_extraInitializers = [];
50
- let _endpointsOpened_decorators;
51
- let _endpointsOpened_initializers = [];
52
- let _endpointsOpened_extraInitializers = [];
53
- let _indentSize_decorators;
54
- let _indentSize_initializers = [];
55
- let _indentSize_extraInitializers = [];
56
- let _filter_decorators;
57
- let _filter_initializers = [];
58
- let _filter_extraInitializers = [];
59
- let _manualQuery_decorators;
60
- let _manualQuery_initializers = [];
61
- let _manualQuery_extraInitializers = [];
62
- let _edit_decorators;
63
- let _edit_initializers = [];
64
- let _edit_extraInitializers = [];
65
- return class ApiNavigation extends _classSuper {
66
- static {
67
- const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
68
- _documentMeta_decorators = [state()];
69
- _sourceEndpoints_decorators = [state()];
70
- _set_domainId_decorators = [property({ type: String, reflect: true })];
71
- _set_query_decorators = [property({ type: String })];
72
- _set_layout_decorators = [property({ type: String, reflect: true })];
73
- _set_endpointsExpanded_decorators = [property({ type: Boolean, reflect: true })];
74
- _apiId_decorators = [property({ type: String, reflect: true })];
75
- _summary_decorators = [property({ type: Boolean, reflect: true })];
76
- _summaryLabel_decorators = [property({ type: String, reflect: true })];
77
- _documentationsOpened_decorators = [property({ type: Boolean, reflect: true })];
78
- _schemasOpened_decorators = [property({ type: Boolean, reflect: true })];
79
- _securityOpened_decorators = [property({ type: Boolean, reflect: true })];
80
- _endpointsOpened_decorators = [property({ type: Boolean, reflect: true })];
81
- _indentSize_decorators = [property({ type: Number, reflect: true })];
82
- _filter_decorators = [property({ type: Boolean, reflect: true })];
83
- _manualQuery_decorators = [property({ type: Boolean, reflect: true })];
84
- _edit_decorators = [property({ type: Boolean, reflect: true })];
85
- __esDecorate(this, null, _documentMeta_decorators, { kind: "accessor", name: "documentMeta", static: false, private: false, access: { has: obj => "documentMeta" in obj, get: obj => obj.documentMeta, set: (obj, value) => { obj.documentMeta = value; } }, metadata: _metadata }, _documentMeta_initializers, _documentMeta_extraInitializers);
86
- __esDecorate(this, null, _sourceEndpoints_decorators, { kind: "accessor", name: "sourceEndpoints", static: false, private: false, access: { has: obj => "sourceEndpoints" in obj, get: obj => obj.sourceEndpoints, set: (obj, value) => { obj.sourceEndpoints = value; } }, metadata: _metadata }, _sourceEndpoints_initializers, _sourceEndpoints_extraInitializers);
87
- __esDecorate(this, null, _set_domainId_decorators, { kind: "setter", name: "domainId", static: false, private: false, access: { has: obj => "domainId" in obj, set: (obj, value) => { obj.domainId = value; } }, metadata: _metadata }, null, _instanceExtraInitializers);
88
- __esDecorate(this, null, _set_query_decorators, { kind: "setter", name: "query", static: false, private: false, access: { has: obj => "query" in obj, set: (obj, value) => { obj.query = value; } }, metadata: _metadata }, null, _instanceExtraInitializers);
89
- __esDecorate(this, null, _set_layout_decorators, { kind: "setter", name: "layout", static: false, private: false, access: { has: obj => "layout" in obj, set: (obj, value) => { obj.layout = value; } }, metadata: _metadata }, null, _instanceExtraInitializers);
90
- __esDecorate(this, null, _set_endpointsExpanded_decorators, { kind: "setter", name: "endpointsExpanded", static: false, private: false, access: { has: obj => "endpointsExpanded" in obj, set: (obj, value) => { obj.endpointsExpanded = value; } }, metadata: _metadata }, null, _instanceExtraInitializers);
91
- __esDecorate(this, null, _apiId_decorators, { kind: "accessor", name: "apiId", static: false, private: false, access: { has: obj => "apiId" in obj, get: obj => obj.apiId, set: (obj, value) => { obj.apiId = value; } }, metadata: _metadata }, _apiId_initializers, _apiId_extraInitializers);
92
- __esDecorate(this, null, _summary_decorators, { kind: "accessor", name: "summary", static: false, private: false, access: { has: obj => "summary" in obj, get: obj => obj.summary, set: (obj, value) => { obj.summary = value; } }, metadata: _metadata }, _summary_initializers, _summary_extraInitializers);
93
- __esDecorate(this, null, _summaryLabel_decorators, { kind: "accessor", name: "summaryLabel", static: false, private: false, access: { has: obj => "summaryLabel" in obj, get: obj => obj.summaryLabel, set: (obj, value) => { obj.summaryLabel = value; } }, metadata: _metadata }, _summaryLabel_initializers, _summaryLabel_extraInitializers);
94
- __esDecorate(this, null, _documentationsOpened_decorators, { kind: "accessor", name: "documentationsOpened", static: false, private: false, access: { has: obj => "documentationsOpened" in obj, get: obj => obj.documentationsOpened, set: (obj, value) => { obj.documentationsOpened = value; } }, metadata: _metadata }, _documentationsOpened_initializers, _documentationsOpened_extraInitializers);
95
- __esDecorate(this, null, _schemasOpened_decorators, { kind: "accessor", name: "schemasOpened", static: false, private: false, access: { has: obj => "schemasOpened" in obj, get: obj => obj.schemasOpened, set: (obj, value) => { obj.schemasOpened = value; } }, metadata: _metadata }, _schemasOpened_initializers, _schemasOpened_extraInitializers);
96
- __esDecorate(this, null, _securityOpened_decorators, { kind: "accessor", name: "securityOpened", static: false, private: false, access: { has: obj => "securityOpened" in obj, get: obj => obj.securityOpened, set: (obj, value) => { obj.securityOpened = value; } }, metadata: _metadata }, _securityOpened_initializers, _securityOpened_extraInitializers);
97
- __esDecorate(this, null, _endpointsOpened_decorators, { kind: "accessor", name: "endpointsOpened", static: false, private: false, access: { has: obj => "endpointsOpened" in obj, get: obj => obj.endpointsOpened, set: (obj, value) => { obj.endpointsOpened = value; } }, metadata: _metadata }, _endpointsOpened_initializers, _endpointsOpened_extraInitializers);
98
- __esDecorate(this, null, _indentSize_decorators, { kind: "accessor", name: "indentSize", static: false, private: false, access: { has: obj => "indentSize" in obj, get: obj => obj.indentSize, set: (obj, value) => { obj.indentSize = value; } }, metadata: _metadata }, _indentSize_initializers, _indentSize_extraInitializers);
99
- __esDecorate(this, null, _filter_decorators, { kind: "accessor", name: "filter", static: false, private: false, access: { has: obj => "filter" in obj, get: obj => obj.filter, set: (obj, value) => { obj.filter = value; } }, metadata: _metadata }, _filter_initializers, _filter_extraInitializers);
100
- __esDecorate(this, null, _manualQuery_decorators, { kind: "accessor", name: "manualQuery", static: false, private: false, access: { has: obj => "manualQuery" in obj, get: obj => obj.manualQuery, set: (obj, value) => { obj.manualQuery = value; } }, metadata: _metadata }, _manualQuery_initializers, _manualQuery_extraInitializers);
101
- __esDecorate(this, null, _edit_decorators, { kind: "accessor", name: "edit", static: false, private: false, access: { has: obj => "edit" in obj, get: obj => obj.edit, set: (obj, value) => { obj.edit = value; } }, metadata: _metadata }, _edit_initializers, _edit_extraInitializers);
102
- if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
103
- }
104
- queryingInternal = __runInitializers(this, _instanceExtraInitializers);
105
- abortControllerInternal;
106
- domainIdInternal;
107
- domainTypeInternal;
108
- selectedItemInternal;
109
- focusedItemInternal;
110
- /**
111
- * The processed and final query term for the list items.
112
- */
113
- queryInternal;
114
- #documentMeta_accessor_storage = __runInitializers(this, _documentMeta_initializers, void 0);
115
- get documentMeta() { return this.#documentMeta_accessor_storage; }
116
- set documentMeta(value) { this.#documentMeta_accessor_storage = value; }
117
- layoutInternal = __runInitializers(this, _documentMeta_extraInitializers);
118
- endpointsExpandedInternal;
119
- endpointsInternal;
120
- get endpoints() {
121
- const { endpointsInternal } = this;
122
- if (!endpointsInternal) {
123
- return undefined;
124
- }
125
- return [...endpointsInternal];
126
- }
127
- documentationsInternal;
128
- get documentations() {
129
- const { documentationsInternal } = this;
130
- if (!documentationsInternal) {
131
- return undefined;
132
- }
133
- return [...documentationsInternal];
134
- }
135
- schemasInternal;
136
- get schemas() {
137
- const { schemasInternal } = this;
138
- if (!schemasInternal) {
139
- return undefined;
140
- }
141
- return [...schemasInternal];
142
- }
143
- securityInternal;
144
- get security() {
145
- const { securityInternal } = this;
146
- if (!securityInternal) {
147
- return undefined;
148
- }
149
- return [...securityInternal];
150
- }
151
- /**
152
- * Holds a list of ids of currently opened endpoints.
153
- */
154
- openedEndpoints;
155
- /**
156
- * Cached list of all list elements
157
- */
158
- itemsInternal;
159
- get items() {
160
- const { itemsInternal } = this;
161
- if (!itemsInternal) {
162
- return undefined;
163
- }
164
- return [...itemsInternal];
165
- }
166
- #sourceEndpoints_accessor_storage = __runInitializers(this, _sourceEndpoints_initializers, void 0);
167
- get sourceEndpoints() { return this.#sourceEndpoints_accessor_storage; }
168
- set sourceEndpoints(value) { this.#sourceEndpoints_accessor_storage = value; }
169
- shiftTabPressedInternal = __runInitializers(this, _sourceEndpoints_extraInitializers);
170
- get shiftTabPressed() {
171
- return this.shiftTabPressedInternal || false;
172
- }
173
- summarySelectedInternal;
174
- addingSchemaTypeInternal;
175
- addingSchemaInternal;
176
- addingDocumentationInternal;
177
- addingExternalInternal;
178
- addingEndpointInternal;
179
- /**
180
- * When true then the element is currently querying for the graph data.
181
- */
182
- get querying() {
183
- return this.queryingInternal || false;
184
- }
185
- /**
186
- * Set when `querying`. Use to abort the query operation.
187
- * When calling `abort` on the controller the element stops querying and processing the graph data.
188
- * All data that already has been processed are not cleared.
189
- */
190
- get abortController() {
191
- return this.abortControllerInternal;
192
- }
193
- /**
194
- * A model `@id` of selected documentation part.
195
- * Special case is for `summary` view. It's not part of an API
196
- * but most applications has some kins of summary view for the
197
- * API.
198
- * @attribute
199
- */
200
- get domainId() {
201
- return this.domainIdInternal;
202
- }
203
- set domainId(value) {
204
- const old = this.domainIdInternal;
205
- if (old === value) {
206
- return;
207
- }
208
- this.domainIdInternal = value;
209
- this.requestUpdate('domainId', old);
210
- this.select(value);
211
- }
212
- /**
213
- * Type of the selected domain item.
214
- */
215
- get domainType() {
216
- return this.domainTypeInternal;
217
- }
218
- /**
219
- * true when `_docs` property is set with values
220
- */
221
- get hasDocs() {
222
- const docs = this.documentationsInternal;
223
- return Array.isArray(docs) && !!docs.length;
224
- }
225
- /**
226
- * true when has schemas definitions
227
- */
228
- get hasSchemas() {
229
- const items = this.schemasInternal;
230
- return Array.isArray(items) && !!items.length;
231
- }
232
- /**
233
- * true when `_security` property is set with values
234
- */
235
- get hasSecurity() {
236
- const items = this.securityInternal;
237
- return Array.isArray(items) && !!items.length;
238
- }
239
- /**
240
- * true when `_endpoints` property is set with values
241
- */
242
- get hasEndpoints() {
243
- const items = this.endpointsInternal;
244
- return Array.isArray(items) && !!items.length;
245
- }
246
- /**
247
- * A reference to currently selected element.
248
- */
249
- get selectedItem() {
250
- return this.selectedItemInternal;
251
- }
252
- /**
253
- * The currently focused item.
254
- */
255
- get focusedItem() {
256
- return this.focusedItemInternal;
257
- }
258
- /**
259
- * Filters list elements by this value when set.
260
- * Clear the value to reset the search.
261
- *
262
- * This is not currently exposed in element's UI due
263
- * to complexity of search and performance.
264
- * @attribute
265
- */
266
- get query() {
267
- return this.queryInternal;
268
- }
269
- set query(value) {
270
- const old = this.queryInternal;
271
- if (old === value) {
272
- return;
273
- }
274
- this.queryInternal = value;
275
- this.processQuery(value);
276
- this.requestUpdate('query', old);
277
- }
278
- /**
279
- * By default the endpoints are rendered one-by-one as defined in the API spec file
280
- * without any tree structure. When this option is set it sorts the endpoints
281
- * alphabetically and creates a tree structure for the endpoints.
282
- *
283
- * - tree - creates a tree structure from the endpoints list
284
- * - natural - behavior consistent with the previous version of the navigation.
285
- * Creates a tree structure based on the previous endpoints.
286
- * - natural-sort - as `natural` but endpoints are sorted by name.
287
- * - off (or none) - just like in the API spec.
288
- *
289
- * Note, the resulted tree structure will likely be different to the one encoded
290
- * in the API spec file.
291
- * @attribute
292
- */
293
- get layout() {
294
- return this.layoutInternal;
295
- }
296
- set layout(value) {
297
- const old = this.layoutInternal;
298
- if (old === value) {
299
- return;
300
- }
301
- this.layoutInternal = value;
302
- this.layoutEndpoints();
303
- this.requestUpdate('layout', old);
304
- }
305
- /**
306
- * When set it expands or opens all endpoints and makes all operations visible.
307
- * Note, the user can toggle an endpoint anyway so this property does not mean
308
- * that all endpoints are expanded. When it's true then it means that all endpoints
309
- * was expanded at some point in time.
310
- * @attribute
311
- */
312
- get endpointsExpanded() {
313
- const value = this.endpointsExpandedInternal;
314
- if (typeof value !== 'boolean') {
315
- return false;
316
- }
317
- return value;
318
- }
319
- set endpointsExpanded(value) {
320
- const old = this.endpointsExpandedInternal;
321
- if (old === value) {
322
- return;
323
- }
324
- this.endpointsExpandedInternal = value;
325
- if (value) {
326
- this.expandAllEndpoints();
327
- }
328
- else {
329
- this.collapseAllEndpoints();
330
- }
331
- }
332
- /**
333
- * True when the summary entry is rendered.
334
- * Summary should be rendered only when `summary` is set and current model is not a RAML fragment.
335
- */
336
- get summaryRendered() {
337
- const { summary, documentMeta } = this;
338
- if (!summary || !documentMeta) {
339
- return false;
340
- }
341
- const { isFragment, isLibrary } = documentMeta;
342
- return !isFragment && !isLibrary;
343
- }
344
- #apiId_accessor_storage = __runInitializers(this, _apiId_initializers, void 0);
345
- /**
346
- * When this property change the element queries the graph store for the data model.
347
- * It can be skipped when the application calls the `queryGraph()` method imperatively.
348
- * @attribute
349
- */
350
- get apiId() { return this.#apiId_accessor_storage; }
351
- set apiId(value) { this.#apiId_accessor_storage = value; }
352
- #summary_accessor_storage = (__runInitializers(this, _apiId_extraInitializers), __runInitializers(this, _summary_initializers, void 0));
353
- /**
354
- * If set it renders `API summary` menu option.
355
- * It will allow to set `domainId` and `domainType` to `summary`
356
- * when this option is set.
357
- * @attribute
358
- */
359
- get summary() { return this.#summary_accessor_storage; }
360
- set summary(value) { this.#summary_accessor_storage = value; }
361
- #summaryLabel_accessor_storage = (__runInitializers(this, _summary_extraInitializers), __runInitializers(this, _summaryLabel_initializers, void 0));
362
- /**
363
- * A label for the `summary` section.
364
- * @attribute
365
- */
366
- get summaryLabel() { return this.#summaryLabel_accessor_storage; }
367
- set summaryLabel(value) { this.#summaryLabel_accessor_storage = value; }
368
- #documentationsOpened_accessor_storage = (__runInitializers(this, _summaryLabel_extraInitializers), __runInitializers(this, _documentationsOpened_initializers, void 0));
369
- /**
370
- * Determines and changes state of documentation panel.
371
- * @attribute
372
- */
373
- get documentationsOpened() { return this.#documentationsOpened_accessor_storage; }
374
- set documentationsOpened(value) { this.#documentationsOpened_accessor_storage = value; }
375
- #schemasOpened_accessor_storage = (__runInitializers(this, _documentationsOpened_extraInitializers), __runInitializers(this, _schemasOpened_initializers, void 0));
376
- /**
377
- * Determines and changes state of schemas (types) panel.
378
- * @attribute
379
- */
380
- get schemasOpened() { return this.#schemasOpened_accessor_storage; }
381
- set schemasOpened(value) { this.#schemasOpened_accessor_storage = value; }
382
- #securityOpened_accessor_storage = (__runInitializers(this, _schemasOpened_extraInitializers), __runInitializers(this, _securityOpened_initializers, void 0));
383
- /**
384
- * Determines and changes state of security panel.
385
- * @attribute
386
- */
387
- get securityOpened() { return this.#securityOpened_accessor_storage; }
388
- set securityOpened(value) { this.#securityOpened_accessor_storage = value; }
389
- #endpointsOpened_accessor_storage = (__runInitializers(this, _securityOpened_extraInitializers), __runInitializers(this, _endpointsOpened_initializers, void 0));
390
- /**
391
- * Determines and changes state of endpoints panel.
392
- * @attribute
393
- */
394
- get endpointsOpened() { return this.#endpointsOpened_accessor_storage; }
395
- set endpointsOpened(value) { this.#endpointsOpened_accessor_storage = value; }
396
- #indentSize_accessor_storage = (__runInitializers(this, _endpointsOpened_extraInitializers), __runInitializers(this, _indentSize_initializers, void 0));
397
- /**
398
- * Size of endpoint indentation for nested resources.
399
- * In pixels.
400
- *
401
- * The attribute name for this property is `indent-size`. Note, that this
402
- * will change to web consistent name `indentSize` in the future.
403
- * @attribute
404
- */
405
- get indentSize() { return this.#indentSize_accessor_storage; }
406
- set indentSize(value) { this.#indentSize_accessor_storage = value; }
407
- #filter_accessor_storage = (__runInitializers(this, _indentSize_extraInitializers), __runInitializers(this, _filter_initializers, void 0));
408
- /**
409
- * When set it renders an input to filter the menu items.
410
- * @attribute
411
- */
412
- get filter() { return this.#filter_accessor_storage; }
413
- set filter(value) { this.#filter_accessor_storage = value; }
414
- #manualQuery_accessor_storage = (__runInitializers(this, _filter_extraInitializers), __runInitializers(this, _manualQuery_initializers, void 0));
415
- /**
416
- * When set the element won't query the store when attached to the DOM.
417
- * Instead set the `apiId` property or directly call the `queryGraph()` function.
418
- * @attribute
419
- */
420
- get manualQuery() { return this.#manualQuery_accessor_storage; }
421
- set manualQuery(value) { this.#manualQuery_accessor_storage = value; }
422
- #edit_accessor_storage = (__runInitializers(this, _manualQuery_extraInitializers), __runInitializers(this, _edit_initializers, void 0));
423
- /**
424
- * When set it enables graph items editing functionality.
425
- * The user can double-click on a menu item and edit its name.
426
- * @attribute
427
- */
428
- get edit() { return this.#edit_accessor_storage; }
429
- set edit(value) { this.#edit_accessor_storage = value; }
430
- constructor() {
431
- super();
432
- __runInitializers(this, _edit_extraInitializers);
433
- this.summaryLabel = 'Summary';
434
- this.indentSize = defaultPadding;
435
- this.openedEndpoints = [];
436
- this.graphChangeHandler = this.graphChangeHandler.bind(this);
437
- this.addEventListener('focus', this.focusHandler.bind(this));
438
- this.addEventListener('keydown', this.keydownHandler.bind(this));
439
- }
440
- /**
441
- * Ensures aria role attribute is in place.
442
- * Attaches element's listeners.
443
- */
444
- connectedCallback() {
445
- super.connectedCallback();
446
- if (!this.getAttribute('aria-label')) {
447
- this.setAttribute('aria-label', 'API navigation');
448
- }
449
- if (!this.getAttribute('tabindex')) {
450
- this.setAttribute('tabindex', '0');
451
- }
452
- if (!this.getAttribute('role')) {
453
- this.setAttribute('role', 'navigation');
454
- }
455
- this.eventsTarget.addEventListener(EventTypes.Store.graphChange, this.graphChangeHandler);
456
- if (!this.manualQuery) {
457
- this.queryGraph();
458
- }
459
- }
460
- disconnectedCallback() {
461
- super.disconnectedCallback();
462
- this.eventsTarget.removeEventListener(EventTypes.Store.graphChange, this.graphChangeHandler);
463
- this.itemsInternal = undefined;
464
- }
465
- /**
466
- * Handler for the event dispatched by the store when the graph model change.
467
- */
468
- graphChangeHandler() {
469
- this.queryGraph();
470
- }
471
- /**
472
- * Queries for the API data from the graph store.
473
- */
474
- async queryGraph() {
475
- if (this.querying) {
476
- return;
477
- }
478
- this.queryingInternal = true;
479
- this.itemsInternal = undefined;
480
- const ctrl = new AbortController();
481
- this.abortControllerInternal = ctrl;
482
- await this.queryApi(ctrl.signal);
483
- await this.queryEndpoints(ctrl.signal);
484
- await this.queryDocumentations(ctrl.signal);
485
- await this.querySchemas(ctrl.signal);
486
- await this.querySecurity(ctrl.signal);
487
- if (!ctrl.signal.aborted) {
488
- this.layoutEndpoints();
489
- }
490
- this.queryingInternal = false;
491
- this.abortControllerInternal = undefined;
492
- this.openedEndpoints = [];
493
- this.requestUpdate();
494
- await this.updateComplete;
495
- this.resetTabindices();
496
- this.dispatchEvent(new Event('graphload'));
497
- }
498
- /**
499
- * Queries for the current API base info.
500
- */
501
- async queryApi(signal) {
502
- this.documentMeta = undefined;
503
- try {
504
- const info = await Events.Api.documentMeta(this);
505
- if (signal.aborted) {
506
- return;
507
- }
508
- this.documentMeta = info;
509
- }
510
- catch (e) {
511
- const ex = e;
512
- Events.Telemetry.exception(this, ex.message, false);
513
- Events.Reporting.error(this, ex, `Enable to query for API data: ${ex.message}`, this.localName);
514
- }
515
- }
516
- /**
517
- * Queries and sets endpoints data
518
- */
519
- async queryEndpoints(signal) {
520
- if (signal.aborted) {
521
- return;
522
- }
523
- try {
524
- const result = await Events.Endpoint.list(this);
525
- if (signal.aborted) {
526
- return;
527
- }
528
- if (!result) {
529
- return;
530
- }
531
- this.sourceEndpoints = result;
532
- }
533
- catch (e) {
534
- const ex = e;
535
- this.sourceEndpoints = undefined;
536
- Events.Telemetry.exception(this, ex.message, false);
537
- Events.Reporting.error(this, ex, `Enable to query for Endpoints data: ${ex.message}`, this.localName);
538
- }
539
- }
540
- /**
541
- * Queries and sets documentations data
542
- */
543
- async queryDocumentations(signal) {
544
- this.documentationsInternal = undefined;
545
- if (signal.aborted) {
546
- return;
547
- }
548
- try {
549
- const result = await Events.Documentation.list(this);
550
- if (signal.aborted) {
551
- return;
552
- }
553
- this.documentationsInternal = result;
554
- }
555
- catch (e) {
556
- const ex = e;
557
- Events.Telemetry.exception(this, ex.message, false);
558
- Events.Reporting.error(this, ex, `Enable to query for Documents data: ${ex.message}`, this.localName);
559
- }
560
- }
561
- /**
562
- * Queries and sets types (schemas) data
563
- */
564
- async querySchemas(signal) {
565
- this.schemasInternal = undefined;
566
- if (signal.aborted) {
567
- return;
568
- }
569
- try {
570
- const result = await Events.Type.list(this);
571
- if (signal.aborted) {
572
- return;
573
- }
574
- this.schemasInternal = result;
575
- }
576
- catch (e) {
577
- const ex = e;
578
- Events.Telemetry.exception(this, ex.message, false);
579
- Events.Reporting.error(this, ex, `Enable to query for Schemas data: ${ex.message}`, this.localName);
580
- }
581
- }
582
- /**
583
- * Queries and sets security data
584
- */
585
- async querySecurity(signal) {
586
- this.securityInternal = undefined;
587
- if (signal.aborted) {
588
- return;
589
- }
590
- try {
591
- const result = await Events.Security.list(this);
592
- if (signal.aborted) {
593
- return;
594
- }
595
- this.securityInternal = result;
596
- }
597
- catch (e) {
598
- const ex = e;
599
- Events.Telemetry.exception(this, ex.message, false);
600
- Events.Reporting.error(this, ex, `Enable to query for Security data: ${ex.message}`, this.localName);
601
- }
602
- }
603
- createFlatTreeItems(items) {
604
- if (!Array.isArray(items) || !items.length) {
605
- return [];
606
- }
607
- return items.map((endpoint) => ({
608
- ...endpoint,
609
- indent: 0,
610
- label: endpoint.name || endpoint.path,
611
- selected: false,
612
- secondarySelected: false,
613
- }));
614
- }
615
- /**
616
- * Processes endpoints layout for the given configuration.
617
- */
618
- layoutEndpoints() {
619
- const { layout } = this;
620
- this.itemsInternal = undefined;
621
- const endpoints = this.sourceEndpoints;
622
- if (!endpoints) {
623
- this.endpointsInternal = undefined;
624
- return;
625
- }
626
- if (layout === 'tree') {
627
- const sorted = ApiSorting.sortEndpointsByPath([...endpoints]);
628
- const items = new EndpointsTree().create(sorted);
629
- this.endpointsInternal = items;
630
- return;
631
- }
632
- if (layout === 'natural') {
633
- this.endpointsInternal = new NaturalTree().create(endpoints);
634
- return;
635
- }
636
- if (layout === 'natural-sort') {
637
- const sorted = ApiSorting.sortEndpointsByPath([...endpoints]);
638
- this.endpointsInternal = new NaturalTree().create(sorted);
639
- return;
640
- }
641
- //
642
- // Default layout
643
- //
644
- this.endpointsInternal = this.createFlatTreeItems(endpoints);
645
- }
646
- /**
647
- * Filters the current endpoints by the current query value.
648
- */
649
- getFilteredEndpoints() {
650
- const value = this.endpointsInternal;
651
- if (!value || !value.length) {
652
- return undefined;
653
- }
654
- const q = this.queryInternal;
655
- if (!q) {
656
- return value;
657
- }
658
- const result = [];
659
- value.forEach((endpoint) => {
660
- const { path, label = '', operations = [] } = endpoint;
661
- const lPath = path.toLowerCase();
662
- const lLabel = label.toLowerCase();
663
- // If the endpoint's path or label matches the query include whole item
664
- if (lPath.includes(q) || lLabel.includes(q)) {
665
- result[result.length] = endpoint;
666
- return;
667
- }
668
- // otherwise check all operations and only include matched operations. If none match
669
- // then do not include the endpoint.
670
- const ops = operations.filter((op) => op.method.toLowerCase().includes(q) || (op.name || '').toLowerCase().includes(q));
671
- if (ops.length) {
672
- const copy = { ...endpoint };
673
- copy.operations = ops;
674
- result[result.length] = copy;
675
- }
676
- });
677
- return result;
678
- }
679
- /**
680
- * Computes `style` attribute value for endpoint item.
681
- * It sets padding-left property to indent resources.
682
- * See https://github.com/mulesoft/api-console/issues/571.
683
- *
684
- * @param indent The computed indentation of the item.
685
- * @returns The value for the left padding of the endpoint menu item.
686
- */
687
- computeEndpointPaddingValue(indent = 0) {
688
- const padding = this.computeEndpointPaddingLeft();
689
- if (indent < 1) {
690
- return `${padding}px`;
691
- }
692
- const result = indent * (this.indentSize || 0) + padding;
693
- return `${result}px`;
694
- }
695
- /**
696
- * Computes endpoint list item left padding from CSS variables.
697
- */
698
- computeEndpointPaddingLeft() {
699
- const prop = '--api-navigation-list-item-padding';
700
- const padding = getComputedStyle(this).getPropertyValue(prop);
701
- if (!padding) {
702
- return defaultPadding;
703
- }
704
- const parts = padding.split(' ');
705
- let paddingLeftValue;
706
- switch (parts.length) {
707
- case 1:
708
- paddingLeftValue = parts[0];
709
- break;
710
- case 2:
711
- paddingLeftValue = parts[1];
712
- break;
713
- case 3:
714
- paddingLeftValue = parts[1];
715
- break;
716
- case 4:
717
- paddingLeftValue = parts[3];
718
- break;
719
- default:
720
- return defaultPadding;
721
- }
722
- if (!paddingLeftValue) {
723
- return defaultPadding;
724
- }
725
- paddingLeftValue = paddingLeftValue.replace('px', '').trim();
726
- const result = Number(paddingLeftValue);
727
- if (Number.isNaN(result)) {
728
- return defaultPadding;
729
- }
730
- return result;
731
- }
732
- /**
733
- * Computes `style` attribute value for an operation item.
734
- * It sets padding-left property to indent operations relative to a resource.
735
- *
736
- * @param indent The computed indentation of the parent resource.
737
- * @returns The value for the left padding of the endpoint menu item.
738
- */
739
- computeOperationPaddingValue(indent = 0) {
740
- const padding = this.computeOperationPaddingLeft() + defaultPadding;
741
- const { indentSize = 0 } = this;
742
- if (indentSize < 1) {
743
- return `${padding}px`;
744
- }
745
- const result = indent * indentSize + padding;
746
- return `${result}px`;
747
- }
748
- /**
749
- * Computes operation list item left padding from CSS variables.
750
- */
751
- computeOperationPaddingLeft() {
752
- const prop = '--api-navigation-operation-item-padding-left';
753
- let paddingLeft = getComputedStyle(this).getPropertyValue(prop);
754
- if (!paddingLeft) {
755
- return defaultPadding;
756
- }
757
- paddingLeft = paddingLeft.replace('px', '').trim();
758
- const result = Number(paddingLeft);
759
- if (Number.isNaN(result)) {
760
- return defaultPadding;
761
- }
762
- return result;
763
- }
764
- /**
765
- * A handler for the click event on a menu list item.
766
- * Makes a selection from the target.
767
- */
768
- itemClickHandler(e) {
769
- const node = e.currentTarget;
770
- const { graphId, graphShape } = node.dataset;
771
- if (graphId && graphShape) {
772
- this.makeSelection(graphId, graphShape);
773
- }
774
- else {
775
- // this is probably the abstract endpoint from the EndpointTree class.
776
- // We are preventing default so the element can ignore focusing on the item.
777
- e.preventDefault();
778
- e.stopPropagation();
779
- }
780
- }
781
- /**
782
- * A handler for the click event on endpoints toggle button.
783
- */
784
- endpointToggleClickHandler(e) {
785
- const node = e.currentTarget;
786
- const { graphId } = node.dataset;
787
- if (graphId) {
788
- this.toggleEndpoint(graphId);
789
- e.stopPropagation();
790
- e.preventDefault();
791
- Events.Telemetry.event(this, {
792
- category: 'API navigation',
793
- action: 'Toggle endpoint',
794
- });
795
- }
796
- }
797
- /**
798
- * Toggles operations visibility for an endpoint.
799
- * @param graphId The Endpoint graph id.
800
- */
801
- toggleEndpoint(graphId) {
802
- const index = this.openedEndpoints.indexOf(graphId);
803
- if (index === -1) {
804
- this.openedEndpoints.push(graphId);
805
- }
806
- else {
807
- this.openedEndpoints.splice(index, 1);
808
- }
809
- this.requestUpdate();
810
- }
811
- /**
812
- * A handler for the click event on a section item. Toggles the clicked section.
813
- */
814
- toggleSectionClickHandler(e) {
815
- const node = e.currentTarget;
816
- this.toggleSectionElement(node);
817
- Events.Telemetry.event(this, {
818
- category: 'API navigation',
819
- action: 'Toggle section',
820
- label: node.dataset.section,
821
- });
822
- }
823
- toggleSectionKeydownHandler() {
824
- // This is handled by the global key handler.
825
- // if (e.code !== 'Space') {
826
- // return;
827
- // }
828
- // const node = e.currentTarget as HTMLElement;
829
- // this[toggleSectionElement](node);
830
- // Events.Telemetry.event(this, {
831
- // category: 'API navigation',
832
- // action: 'Toggle section',
833
- // label: node.dataset.section,
834
- // });
835
- }
836
- /**
837
- * Toggles a section of the menu represented by the element (section list item).
838
- */
839
- toggleSectionElement(element) {
840
- const prop = element.dataset.property;
841
- if (!prop) {
842
- return;
843
- }
844
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
845
- ;
846
- this[prop] = !this[prop];
847
- }
848
- /**
849
- * @returns The list of documentation items filtered by the current query.
850
- */
851
- getFilteredDocumentations() {
852
- const items = this.documentationsInternal;
853
- if (!Array.isArray(items) || !items.length) {
854
- return [];
855
- }
856
- const q = this.queryInternal;
857
- if (!q) {
858
- return items;
859
- }
860
- return items.filter((doc) => (doc.title || '').toLocaleLowerCase().includes(q));
861
- }
862
- /**
863
- * @returns The list of schemas items filtered by the current query.
864
- */
865
- getFilteredSchemas() {
866
- const items = this.schemasInternal;
867
- if (!Array.isArray(items) || !items.length) {
868
- return [];
869
- }
870
- const q = this.queryInternal;
871
- if (!q) {
872
- return items;
873
- }
874
- return items.filter((doc) => (doc.name || '').toLocaleLowerCase().includes(q) || (doc.displayName || '').toLocaleLowerCase().includes(q));
875
- }
876
- /**
877
- * @returns The list of security items filtered by the current query.
878
- */
879
- getFilteredSecurity() {
880
- const items = this.securityInternal;
881
- if (!Array.isArray(items) || !items.length) {
882
- return [];
883
- }
884
- const q = this.queryInternal;
885
- if (!q) {
886
- return items;
887
- }
888
- return items.filter((doc) => (doc.name || '').toLocaleLowerCase().includes(q) ||
889
- (doc.displayName || '').toLocaleLowerCase().includes(q) ||
890
- (doc.type || '').toLocaleLowerCase().includes(q));
891
- }
892
- /**
893
- * A handler for the focus event on this element.
894
- */
895
- focusHandler(e) {
896
- if (this.shiftTabPressedInternal) {
897
- // do not focus the menu itself
898
- return;
899
- }
900
- const path = e.composedPath();
901
- const rootTarget = path[0];
902
- if (rootTarget !== this && typeof rootTarget.tabIndex !== 'undefined' && !this.contains(rootTarget)) {
903
- return;
904
- }
905
- this.focusedItemInternal = undefined;
906
- const { selectedItem } = this;
907
- if (selectedItem) {
908
- this.focusItem(selectedItem);
909
- }
910
- else {
911
- this.focusNext();
912
- }
913
- }
914
- /**
915
- * Sets a list item focused
916
- */
917
- focusItem(item) {
918
- const old = this.focusedItemInternal;
919
- this.focusedItemInternal = item;
920
- if (old) {
921
- old.setAttribute('tabindex', '-1');
922
- }
923
- if (item && !item.hasAttribute('disabled')) {
924
- item.setAttribute('tabindex', '0');
925
- item.focus();
926
- }
927
- }
928
- /**
929
- * Handler for the keydown event.
930
- */
931
- keydownHandler(e) {
932
- const path = e.composedPath();
933
- const target = path[0];
934
- if (target.localName === 'input') {
935
- return;
936
- }
937
- if (e.key === 'ArrowDown') {
938
- this.keyDownAction(e);
939
- }
940
- else if (e.key === 'ArrowUp') {
941
- this.keyUpAction(e);
942
- }
943
- else if (e.key === 'Tab' && e.shiftKey) {
944
- this.keyShiftTabAction();
945
- }
946
- else if (e.key === 'Escape') {
947
- this.keyEscAction();
948
- }
949
- else if (e.key === ' ' || e.code === 'Space') {
950
- this.keySpaceAction(e);
951
- }
952
- else if (e.key === 'Enter' || e.key === 'NumpadEnter') {
953
- this.keySpaceAction(e);
954
- }
955
- else if (e.key === 'ArrowRight') {
956
- this.keyArrowRightAction(e);
957
- }
958
- else if (e.key === 'ArrowLeft') {
959
- this.keyArrowLeftAction(e);
960
- }
961
- e.stopPropagation();
962
- }
963
- /**
964
- * Handler that is called when the down key is pressed.
965
- */
966
- keyDownAction(e) {
967
- e.preventDefault();
968
- e.stopPropagation();
969
- this.focusNext();
970
- }
971
- /**
972
- * Handler that is called when the up key is pressed.
973
- */
974
- keyUpAction(e) {
975
- e.preventDefault();
976
- this.focusPrevious();
977
- }
978
- /**
979
- * Handles shift+tab keypress on the menu.
980
- */
981
- keyShiftTabAction() {
982
- const oldTabIndex = this.getAttribute('tabindex');
983
- this.shiftTabPressedInternal = true;
984
- this.focusedItemInternal = undefined;
985
- this.setAttribute('tabindex', '-1');
986
- setTimeout(() => {
987
- if (oldTabIndex) {
988
- this.setAttribute('tabindex', oldTabIndex);
989
- }
990
- this.shiftTabPressedInternal = false;
991
- }, 1);
992
- }
993
- /**
994
- * Handler that is called when the esc key is pressed.
995
- */
996
- keyEscAction() {
997
- const { focusedItem } = this;
998
- if (focusedItem) {
999
- focusedItem.blur();
1000
- }
1001
- }
1002
- /**
1003
- * A handler for the space bar key down.
1004
- */
1005
- keySpaceAction(e) {
1006
- e.preventDefault();
1007
- e.stopPropagation();
1008
- const path = e.composedPath();
1009
- const target = path && path[0];
1010
- if (!target) {
1011
- return;
1012
- }
1013
- const { classList, dataset } = target;
1014
- if (classList.contains('section-title')) {
1015
- this.toggleSectionElement(target);
1016
- }
1017
- else if (classList.contains('list-item')) {
1018
- const { graphId, graphShape } = dataset;
1019
- if (graphId && graphShape) {
1020
- this.makeSelection(graphId, graphShape);
1021
- }
1022
- }
1023
- }
1024
- /**
1025
- * A handler for the key right down. Opens operations when needed.
1026
- */
1027
- keyArrowRightAction(e) {
1028
- const path = e.composedPath();
1029
- const target = path && path[0];
1030
- if (!target) {
1031
- return;
1032
- }
1033
- const { classList, dataset } = target;
1034
- if (dataset.graphId && classList.contains('endpoint') && classList.contains('list-item')) {
1035
- if (!this.openedEndpoints.includes(dataset.graphId)) {
1036
- this.openedEndpoints.push(dataset.graphId);
1037
- this.requestUpdate();
1038
- }
1039
- }
1040
- }
1041
- /**
1042
- * A handler for the key left down. Closes operations when needed.
1043
- */
1044
- keyArrowLeftAction(e) {
1045
- const path = e.composedPath();
1046
- const target = path && path[0];
1047
- if (!target) {
1048
- return;
1049
- }
1050
- const { classList, dataset } = target;
1051
- if (dataset.graphId && classList.contains('endpoint') && classList.contains('list-item')) {
1052
- const index = this.openedEndpoints.indexOf(dataset.graphId);
1053
- if (index !== -1) {
1054
- this.openedEndpoints.splice(index, 1);
1055
- this.requestUpdate();
1056
- }
1057
- }
1058
- }
1059
- /**
1060
- * Focuses on the previous item in the navigation.
1061
- */
1062
- focusPrevious() {
1063
- const items = this.listActiveItems();
1064
- const { length } = items;
1065
- const curFocusIndex = this.focusedItemInternal ? items.indexOf(this.focusedItemInternal) : -1;
1066
- for (let i = 1; i < length + 1; i++) {
1067
- const item = items[(curFocusIndex - i + length) % length];
1068
- if (item && !item.hasAttribute('disabled')) {
1069
- const owner = (item.getRootNode && item.getRootNode()) || document;
1070
- this.focusItem(item);
1071
- // Focus might not have worked, if the element was hidden or not
1072
- // focusable. In that case, try again.
1073
- if (owner.activeElement === item) {
1074
- return;
1075
- }
1076
- }
1077
- }
1078
- }
1079
- /**
1080
- * Focuses on the next item in the navigation.
1081
- */
1082
- focusNext() {
1083
- const items = this.listActiveItems();
1084
- const { length } = items;
1085
- const curFocusIndex = this.focusedItemInternal ? items.indexOf(this.focusedItemInternal) : -1;
1086
- for (let i = 1; i < length + 1; i++) {
1087
- const item = items[(curFocusIndex + i) % length];
1088
- if (!item.hasAttribute('disabled')) {
1089
- const owner = (item.getRootNode && item.getRootNode()) || document;
1090
- this.focusItem(item);
1091
- // Focus might not have worked, if the element was hidden or not
1092
- // focusable. In that case, try again.
1093
- if (owner.activeElement === item) {
1094
- return;
1095
- }
1096
- }
1097
- }
1098
- }
1099
- /**
1100
- * Selects an item in the navigation.
1101
- * Note, this dispatches the navigation action event.
1102
- */
1103
- select(id) {
1104
- const { shadowRoot } = this;
1105
- if (!id || !shadowRoot) {
1106
- return;
1107
- }
1108
- const element = shadowRoot.querySelector(`[data-graph-id="${id}"]`);
1109
- if (!element) {
1110
- return;
1111
- }
1112
- const { graphShape } = element.dataset;
1113
- this.makeSelection(id, graphShape);
1114
- }
1115
- /**
1116
- * Lists all HTML elements that are currently rendered in the view.
1117
- * @returns Currently rendered items.
1118
- */
1119
- listActiveItems() {
1120
- if (this.itemsInternal) {
1121
- return this.itemsInternal;
1122
- }
1123
- const { shadowRoot } = this;
1124
- if (!shadowRoot) {
1125
- return [];
1126
- }
1127
- let result = [];
1128
- if (this.summary) {
1129
- const node = shadowRoot.querySelector('.list-item.summary');
1130
- if (node) {
1131
- result[result.length] = node;
1132
- }
1133
- }
1134
- if (this.hasEndpoints) {
1135
- const node = shadowRoot.querySelector('.endpoints .section-title');
1136
- if (node) {
1137
- result[result.length] = node;
1138
- }
1139
- const nodes = Array.from(shadowRoot.querySelectorAll('.endpoints .list-item.endpoint'));
1140
- nodes.forEach((item) => {
1141
- result[result.length] = item;
1142
- const collapse = item.nextElementSibling;
1143
- if (!collapse || collapse.localName !== 'ui-collapse') {
1144
- return;
1145
- }
1146
- const children = Array.from(collapse.querySelectorAll('.list-item.operation'));
1147
- if (children.length) {
1148
- result = result.concat(children);
1149
- }
1150
- });
1151
- }
1152
- if (this.hasDocs) {
1153
- const children = this.listSectionActiveNodes('.documentation');
1154
- result = result.concat(children);
1155
- }
1156
- if (this.hasSchemas) {
1157
- const children = this.listSectionActiveNodes('.schemas');
1158
- result = result.concat(children);
1159
- }
1160
- if (this.hasSecurity) {
1161
- const children = this.listSectionActiveNodes('.security');
1162
- result = result.concat(children);
1163
- }
1164
- this.itemsInternal = result.length ? result : undefined;
1165
- return result;
1166
- }
1167
- /**
1168
- * @param selector The prefix for the query selector
1169
- * @returns Nodes returned from query function.
1170
- */
1171
- listSectionActiveNodes(selector) {
1172
- const { shadowRoot } = this;
1173
- let result = [];
1174
- if (!shadowRoot) {
1175
- return result;
1176
- }
1177
- const node = shadowRoot.querySelector(`${selector} .section-title`);
1178
- if (node) {
1179
- result[result.length] = node;
1180
- const collapse = node.nextElementSibling;
1181
- if (collapse) {
1182
- const children = Array.from(collapse.querySelectorAll('.list-item'));
1183
- if (children.length) {
1184
- result = result.concat(children);
1185
- }
1186
- }
1187
- }
1188
- return result;
1189
- }
1190
- /**
1191
- * Selects an item in the menu.
1192
- *
1193
- * @param id The domain id of the node to be selected
1194
- * @param type The selected type of the item.
1195
- */
1196
- makeSelection(id, type) {
1197
- const { shadowRoot } = this;
1198
- if (!shadowRoot) {
1199
- return;
1200
- }
1201
- const element = shadowRoot.querySelector(`[data-graph-id="${id}"]`);
1202
- if (!element) {
1203
- return;
1204
- }
1205
- this.selectedItemInternal = element;
1206
- this.deselectItem(this.domainId, this.domainType);
1207
- this.domainIdInternal = id;
1208
- this.domainTypeInternal = type;
1209
- if (id === 'summary') {
1210
- this.summarySelectedInternal = true;
1211
- }
1212
- else {
1213
- this.selectItem(id, type);
1214
- }
1215
- this.focusItem(this.selectedItemInternal);
1216
- this.requestUpdate();
1217
- this.notifyNavigation(id, type);
1218
- let parent = element.parentElement;
1219
- while (parent) {
1220
- if (parent === this || !parent) {
1221
- return;
1222
- }
1223
- if (parent.localName === 'ui-collapse') {
1224
- ;
1225
- parent.open = true;
1226
- }
1227
- parent = parent.parentElement;
1228
- }
1229
- }
1230
- /**
1231
- * Selects an item.
1232
- * @param id The domain id of the menu item.
1233
- * @param type The type of the data.
1234
- */
1235
- selectItem(id, type) {
1236
- const selectable = this.findSelectable(id, type);
1237
- if (selectable) {
1238
- selectable.selected = true;
1239
- this.requestUpdate();
1240
- }
1241
- }
1242
- /**
1243
- * Removes all selections from an item.
1244
- * @param id The domain id of the menu item.
1245
- * @param type The type of the data.
1246
- */
1247
- deselectItem(id, type) {
1248
- this.summarySelectedInternal = false;
1249
- const selectable = this.findSelectable(id, type);
1250
- if (selectable) {
1251
- selectable.selected = false;
1252
- selectable.secondarySelected = false;
1253
- this.requestUpdate();
1254
- }
1255
- }
1256
- /**
1257
- * Finds a selectable item by its id and type.
1258
- * @param id The domain id of the menu item.
1259
- * @param type The type of the data.
1260
- */
1261
- findSelectable(id, type) {
1262
- if (!id || !type) {
1263
- return undefined;
1264
- }
1265
- let selectable;
1266
- if (type === 'resource') {
1267
- selectable = (this.endpointsInternal || []).find((item) => item.id === id);
1268
- }
1269
- else if (type === 'operation') {
1270
- const endpoint = (this.endpointsInternal || []).find((item) => {
1271
- if (!Array.isArray(item.operations) || !item.operations.length) {
1272
- return false;
1273
- }
1274
- const op = item.operations.find((opItem) => opItem.id === id);
1275
- return !!op;
1276
- });
1277
- if (endpoint) {
1278
- selectable = endpoint.operations.find((item) => item.id === id);
1279
- }
1280
- }
1281
- else if (type === 'documentation') {
1282
- selectable = (this.documentationsInternal || []).find((item) => item.id === id);
1283
- }
1284
- else if (type === 'schema') {
1285
- selectable = (this.schemasInternal || []).find((item) => item.id === id);
1286
- }
1287
- else if (type === 'security') {
1288
- selectable = (this.securityInternal || []).find((item) => item.id === id);
1289
- }
1290
- return selectable;
1291
- }
1292
- /**
1293
- * @param value The new query. Empty or null to clear the query
1294
- */
1295
- processQuery(value) {
1296
- if (typeof value !== 'string' || value.trim() === '') {
1297
- this.queryInternal = undefined;
1298
- }
1299
- else {
1300
- this.queryInternal = value.toLowerCase();
1301
- }
1302
- this.requestUpdate();
1303
- }
1304
- /**
1305
- * A handler for the search event from the filter input.
1306
- */
1307
- searchHandler(e) {
1308
- const input = e.target;
1309
- this.query = input.value;
1310
- Events.Telemetry.event(this, {
1311
- category: 'API navigation',
1312
- action: 'Filter',
1313
- label: input.value ? 'Query' : 'Clear',
1314
- });
1315
- }
1316
- /**
1317
- * Opens all sections of the menu and all endpoints.
1318
- */
1319
- expandAll() {
1320
- this.endpointsOpened = true;
1321
- this.schemasOpened = true;
1322
- this.securityOpened = true;
1323
- this.documentationsOpened = true;
1324
- this.expandAllEndpoints();
1325
- }
1326
- /**
1327
- * Closes all sections of the menu and all endpoints.
1328
- */
1329
- collapseAll() {
1330
- this.endpointsOpened = false;
1331
- this.schemasOpened = false;
1332
- this.securityOpened = false;
1333
- this.documentationsOpened = false;
1334
- this.collapseAllEndpoints();
1335
- }
1336
- /**
1337
- * Opens all endpoints exposing all operations
1338
- */
1339
- expandAllEndpoints() {
1340
- const { shadowRoot } = this;
1341
- if (!shadowRoot) {
1342
- return;
1343
- }
1344
- this.endpointsOpened = true;
1345
- const items = Array.from(shadowRoot.querySelectorAll('div.endpoints .list-item.endpoint'));
1346
- this.openedEndpoints = [];
1347
- items.forEach((item) => {
1348
- const { graphId } = item.dataset;
1349
- if (graphId) {
1350
- this.openedEndpoints.push(graphId);
1351
- }
1352
- });
1353
- this.endpointsExpandedInternal = true;
1354
- this.requestUpdate();
1355
- }
1356
- /**
1357
- * Hides all operations and collapses all endpoints.
1358
- */
1359
- collapseAllEndpoints() {
1360
- this.openedEndpoints = [];
1361
- this.endpointsExpandedInternal = false;
1362
- this.requestUpdate();
1363
- }
1364
- /**
1365
- * Triggers a flow when the user can define a new endpoint in the navigation.
1366
- * This renders an input in the view (in the endpoints list) where the user can enter the path name.
1367
- */
1368
- async addEndpoint() {
1369
- if (!this.endpointsOpened) {
1370
- this.endpointsOpened = true;
1371
- await this.updateComplete;
1372
- }
1373
- this.addingEndpointInternal = true;
1374
- this.requestUpdate();
1375
- await this.updateComplete;
1376
- const wrap = this.shadowRoot?.querySelector('.add-endpoint-input');
1377
- if (wrap) {
1378
- wrap.scrollIntoView();
1379
- const input = wrap.querySelector('input');
1380
- input.focus();
1381
- input.select();
1382
- }
1383
- }
1384
- /**
1385
- * Triggers a flow when the user can define a new documentation document.
1386
- * This renders an input in the view (in the documentation list) where the user can enter the name.
1387
- * @param isExternal Whether the documentation is a link to a www document.
1388
- */
1389
- async addDocumentation(isExternal = false) {
1390
- if (!this.documentationsOpened) {
1391
- this.documentationsOpened = true;
1392
- }
1393
- this.addingDocumentationInternal = true;
1394
- this.addingExternalInternal = isExternal;
1395
- this.requestUpdate();
1396
- await this.updateComplete;
1397
- const selector = isExternal ? '.add-external-doc-input' : '.add-documentation-input';
1398
- const wrap = this.shadowRoot?.querySelector(selector);
1399
- if (wrap) {
1400
- wrap.scrollIntoView();
1401
- const input = wrap.querySelector('input');
1402
- input.focus();
1403
- input.select();
1404
- }
1405
- }
1406
- /**
1407
- * Triggers a flow when the user can define a new schema in the navigation.
1408
- * This renders an input in the view (in the schema list) where the user can enter the schema name.
1409
- * @param type The type of the schema to add. Default to `object`.
1410
- */
1411
- async addSchema(type = 'object') {
1412
- if (!this.schemasOpened) {
1413
- this.schemasOpened = true;
1414
- }
1415
- this.addingSchemaInternal = true;
1416
- this.addingSchemaTypeInternal = type;
1417
- this.requestUpdate();
1418
- await this.updateComplete;
1419
- const wrap = this.shadowRoot?.querySelector('.add-schema-input');
1420
- if (wrap) {
1421
- wrap.scrollIntoView();
1422
- const input = wrap.querySelector('input');
1423
- input.focus();
1424
- input.select();
1425
- }
1426
- }
1427
- /**
1428
- * Resets all tabindex attributes to the appropriate value based on the
1429
- * current selection state. The appropriate value is `0` (focusable) for
1430
- * the default selected item, and `-1` (not keyboard focusable) for all
1431
- * other items. Also sets the correct initial values for aria-selected
1432
- * attribute, true for default selected item and false for others.
1433
- */
1434
- resetTabindices() {
1435
- const { selectedItem } = this;
1436
- const items = this.listActiveItems();
1437
- items.forEach((item) => item.setAttribute('tabindex', item === selectedItem ? '0' : '-1'));
1438
- }
1439
- /**
1440
- * Dispatches the navigation event.
1441
- * @param id The domain id of the selected node
1442
- * @param type The domain type.
1443
- */
1444
- notifyNavigation(id, type) {
1445
- let parent;
1446
- if (type === 'operation' && id) {
1447
- const node = this.shadowRoot?.querySelector(`.operation[data-graph-id="${id}"]`);
1448
- if (node) {
1449
- parent = node.dataset.graphParent;
1450
- }
1451
- }
1452
- Events.Navigation.apiNavigate(this, id, type, parent);
1453
- Events.Telemetry.event(this, {
1454
- category: 'API navigation',
1455
- action: 'Navigate',
1456
- label: type,
1457
- });
1458
- }
1459
- /**
1460
- * Event handler for the keydown event of the add endpoint input.
1461
- */
1462
- addEndpointKeydownHandler(e) {
1463
- if (e.key === 'Enter' || e.key === 'NumpadEnter') {
1464
- e.preventDefault();
1465
- this.commitNewEndpoint();
1466
- }
1467
- else if (e.key === 'Escape') {
1468
- e.preventDefault();
1469
- this.cancelNewEndpoint();
1470
- }
1471
- }
1472
- /**
1473
- * Event handler for the keydown event of the add documentation input.
1474
- */
1475
- addDocumentationKeydownHandler(e) {
1476
- if (e.key === 'Enter' || e.key === 'NumpadEnter') {
1477
- e.preventDefault();
1478
- const input = e.target;
1479
- this.commitNewDocumentation(input.value);
1480
- }
1481
- else if (e.key === 'Escape') {
1482
- e.preventDefault();
1483
- this.addingDocumentationInternal = false;
1484
- this.addingExternalInternal = undefined;
1485
- this.requestUpdate();
1486
- }
1487
- }
1488
- /**
1489
- * Event handler for the keydown event of the add schema input.
1490
- */
1491
- addSchemaKeydownHandler(e) {
1492
- if (e.key === 'Enter' || e.key === 'NumpadEnter') {
1493
- e.preventDefault();
1494
- const input = e.target;
1495
- this.commitNewSchema(input.value);
1496
- }
1497
- else if (e.key === 'Escape') {
1498
- e.preventDefault();
1499
- this.addingSchemaInternal = false;
1500
- this.addingSchemaTypeInternal = undefined;
1501
- this.requestUpdate();
1502
- }
1503
- }
1504
- async commitNewEndpoint() {
1505
- const input = this.shadowRoot?.querySelector('.add-endpoint-input input');
1506
- if (!input) {
1507
- return;
1508
- }
1509
- const name = input.value.trim();
1510
- if (!name) {
1511
- return;
1512
- }
1513
- // await Events.Endpoint.add(this, { path: name });
1514
- await this.cancelNewEndpoint();
1515
- }
1516
- async cancelNewEndpoint() {
1517
- this.addingEndpointInternal = false;
1518
- this.requestUpdate();
1519
- await this.updateComplete;
1520
- }
1521
- /**
1522
- * @param value The title of the documentation.
1523
- */
1524
- async commitNewDocumentation(value = '') {
1525
- const name = value.trim();
1526
- if (!name) {
1527
- return;
1528
- }
1529
- // const opts = { title: name };
1530
- // const isExternal = this.addingExternalInternal;
1531
- // if (isExternal) {
1532
- // const input = (this.shadowRoot?.querySelector('.add-external-doc-input input'));
1533
- // if (input) {
1534
- // opts.url = (input as HTMLInputElement).value;
1535
- // }
1536
- // }
1537
- this.addingDocumentationInternal = false;
1538
- this.addingExternalInternal = undefined;
1539
- // await Events.Documentation.add(this, opts);
1540
- this.requestUpdate();
1541
- }
1542
- /**
1543
- * @param value The name of the schema.
1544
- */
1545
- async commitNewSchema(value = '') {
1546
- const name = value.trim();
1547
- if (!name) {
1548
- return;
1549
- }
1550
- // const type = this.addingSchemaTypeInternal;
1551
- // const opts = { name };
1552
- // switch (type) {
1553
- // case 'object': opts.type = AmfNamespace.w3.shacl.NodeShape; break;
1554
- // case 'scalar': opts.type = AmfNamespace.aml.vocabularies.shapes.ScalarShape; break;
1555
- // case 'array': opts.type = AmfNamespace.aml.vocabularies.shapes.ArrayShape; break;
1556
- // case 'file': opts.type = AmfNamespace.aml.vocabularies.shapes.FileShape; break;
1557
- // case 'union': opts.type = AmfNamespace.aml.vocabularies.shapes.UnionShape; break;
1558
- // default:
1559
- // }
1560
- this.addingSchemaInternal = false;
1561
- this.addingSchemaTypeInternal = undefined;
1562
- // await Events.Type.add(this, opts);
1563
- this.requestUpdate();
1564
- }
1565
- /**
1566
- * Triggers a rename action for the menu item identified by the `id`.
1567
- * @param id The domain id of the item to edit.
1568
- */
1569
- async renameAction(id) {
1570
- const { shadowRoot } = this;
1571
- if (!shadowRoot) {
1572
- throw new Error(`Invalid state. The DOM is not ready.`);
1573
- }
1574
- const item = this.findViewModelItem(id);
1575
- if (!item) {
1576
- return;
1577
- }
1578
- item.nameEditor = true;
1579
- this.requestUpdate();
1580
- await this.updateComplete;
1581
- const input = shadowRoot.querySelector(`input[data-id="${id}"]`);
1582
- input.select();
1583
- input.focus();
1584
- }
1585
- /**
1586
- * @param id The domain id of the item to find.
1587
- */
1588
- findViewModelItem(id) {
1589
- const endpoints = this.endpointsInternal;
1590
- if (endpoints && endpoints.length) {
1591
- for (let i = 0, len = endpoints.length; i < len; i++) {
1592
- const endpoint = endpoints[i];
1593
- if (endpoint.id === id) {
1594
- return endpoint;
1595
- }
1596
- const operation = endpoint.operations.find((op) => op.id === id);
1597
- if (operation) {
1598
- return operation;
1599
- }
1600
- }
1601
- }
1602
- const docs = this.documentationsInternal;
1603
- if (docs && docs.length) {
1604
- const doc = docs.find((item) => item.id === id);
1605
- if (doc) {
1606
- return doc;
1607
- }
1608
- }
1609
- const schemas = this.schemasInternal;
1610
- if (schemas && schemas.length) {
1611
- const schema = schemas.find((item) => item.id === id);
1612
- if (schema) {
1613
- return schema;
1614
- }
1615
- }
1616
- return null;
1617
- }
1618
- /**
1619
- * A key down event handler on the rename input
1620
- */
1621
- async renameKeydownHandler(e) {
1622
- // do not interfere with the navigation logic.
1623
- e.stopPropagation();
1624
- if (!['Enter', 'NumpadEnter', 'Escape'].includes(e.code)) {
1625
- return;
1626
- }
1627
- e.preventDefault();
1628
- const input = e.target;
1629
- const { value, dataset } = input;
1630
- const { id, type } = dataset;
1631
- const item = this.findViewModelItem(id);
1632
- if (!item) {
1633
- return;
1634
- }
1635
- item.nameEditor = false;
1636
- this.requestUpdate();
1637
- if (e.code === 'Escape') {
1638
- return;
1639
- }
1640
- await this.updateNameHandler(id, value, type);
1641
- }
1642
- /**
1643
- * A blur event handler on the rename input
1644
- */
1645
- async renameBlurHandler(e) {
1646
- const input = e.target;
1647
- const { value, dataset } = input;
1648
- const { id, type } = dataset;
1649
- const item = this.findViewModelItem(id);
1650
- if (!item) {
1651
- return;
1652
- }
1653
- item.nameEditor = false;
1654
- this.requestUpdate();
1655
- await this.updateNameHandler(id, value, type);
1656
- }
1657
- /**
1658
- * Updates the name or the display name of the menu object
1659
- * @param id The id of the domain object to update
1660
- * @param value The new value.
1661
- * @param type The object type
1662
- * @returns A promise when the update operation finish.
1663
- */
1664
- async updateNameHandler(id, value, type) {
1665
- const updateValue = value.trim();
1666
- if (!updateValue) {
1667
- return;
1668
- }
1669
- const promise = Promise.reject(new Error(`APi editing of ${type} ${id} is not yet supported`));
1670
- // let promise;
1671
- // if (type === 'SelectionType') {
1672
- // promise = Events.Endpoint.update(this, id, 'name', updateValue);
1673
- // } else if (type === 'operation') {
1674
- // promise = Events.Operation.update(this, id, 'name', updateValue);
1675
- // } else if (type === 'documentation') {
1676
- // const obj = await StoreEvents.Documentation.get(this, id);
1677
- // const prop = obj.title ? 'title' : 'description';
1678
- // promise = Events.Documentation.update(this, id, prop, updateValue);
1679
- // } else if (type === 'schema') {
1680
- // const obj = await StoreEvents.Type.get(this, id);
1681
- // const { displayName } = obj;
1682
- // const prop = displayName ? 'displayName' : 'name';
1683
- // promise = Events.Type.update(this, id, prop, updateValue);
1684
- // }
1685
- try {
1686
- await promise;
1687
- }
1688
- catch (e) {
1689
- const ex = e;
1690
- Events.Reporting.error(this, ex, `Unable rename object: ${ex.message}`, 'graph-api-navigation');
1691
- }
1692
- }
1693
- /**
1694
- * Click handler for the external navigation item.
1695
- * Dispatches the external navigation event. When this event is handled (cancelled)
1696
- * the original event is cancelled to prevent default behavior.
1697
- */
1698
- externalDocumentationHandler(e) {
1699
- const a = e.currentTarget;
1700
- if (a.href.startsWith('javascript')) {
1701
- cancelEvent(e);
1702
- SnackNotifications.notify(`Navigation blocked due to security concern. Javascript detected.`);
1703
- return;
1704
- }
1705
- const handled = Events.Navigation.navigateExternal(this, a.href);
1706
- if (handled) {
1707
- cancelEvent(e);
1708
- }
1709
- }
1710
- render() {
1711
- return html `
1712
- <div class="wrapper" role="menu" aria-label="Navigate the API">
1713
- ${this.filterTemplate()} ${this.renderSummary()} ${this.renderEndpoints()} ${this.renderDocumentations()}
1714
- ${this.renderSchemas()} ${this.renderSecurities()}
1715
- </div>
1716
- `;
1717
- }
1718
- /**
1719
- * @returns The template for the summary filed.
1720
- */
1721
- renderSummary() {
1722
- const { summaryRendered, summaryLabel } = this;
1723
- if (!summaryRendered || !summaryLabel) {
1724
- return '';
1725
- }
1726
- const selected = !!this.summarySelectedInternal;
1727
- const classes = {
1728
- 'list-item': true,
1729
- 'summary': true,
1730
- 'label': true,
1731
- selected,
1732
- };
1733
- return html `
1734
- <div class="summary">
1735
- <div
1736
- part="api-navigation-list-item label"
1737
- class="${classMap(classes)}"
1738
- role="menuitem"
1739
- tabindex="-1"
1740
- data-graph-id="summary"
1741
- data-graph-shape="summary"
1742
- @click="${this.itemClickHandler}"
1743
- >
1744
- ${summaryLabel}
1745
- </div>
1746
- </div>
1747
- `;
1748
- }
1749
- /**
1750
- * @returns The template for the list of endpoints.
1751
- */
1752
- renderEndpoints() {
1753
- const { edit } = this;
1754
- if (!this.hasEndpoints && !edit) {
1755
- return '';
1756
- }
1757
- const items = this.getFilteredEndpoints();
1758
- const hasItems = !!items && !!items.length;
1759
- if (!hasItems && !edit) {
1760
- return '';
1761
- }
1762
- const { endpointsOpened = false, documentMeta } = this;
1763
- const sectionLabel = documentMeta && documentMeta.isAsync ? 'Channels' : 'Endpoints';
1764
- const classes = {
1765
- endpoints: true,
1766
- opened: !!endpointsOpened,
1767
- };
1768
- const addingEndpoint = this.addingEndpointInternal;
1769
- const showEmpty = !hasItems && !addingEndpoint;
1770
- return html `
1771
- <div class="${classMap(classes)}">
1772
- <div
1773
- class="section-title"
1774
- data-property="endpointsOpened"
1775
- data-section="endpoints"
1776
- @click="${this.toggleSectionClickHandler}"
1777
- @keydown="${this.toggleSectionKeydownHandler}"
1778
- title="Toggle the list"
1779
- aria-haspopup="true"
1780
- role="menuitem"
1781
- >
1782
- <ui-icon-button part="toggle-button" class="toggle-button section" aria-label="Toggle the list" tabindex="-1">
1783
- <ui-icon role="presentation" icon="arrowDropDown"></ui-icon>
1784
- </ui-icon-button>
1785
- <div class="section-title-label label">${sectionLabel}</div>
1786
- </div>
1787
- <ui-collapse .open="${endpointsOpened}" aria-hidden="${endpointsOpened ? 'false' : 'true'}" role="menu">
1788
- <div class="children">
1789
- ${addingEndpoint ? this.addEndpointInputTemplate() : ''}
1790
- ${hasItems ? items.map((item) => this.renderEndpoint(item)) : ''}
1791
- ${showEmpty ? html `<p class="empty-section">No endpoints in this API</p>` : ''}
1792
- </div>
1793
- </ui-collapse>
1794
- </div>
1795
- `;
1796
- }
1797
- /**
1798
- * @returns The template for an endpoint.
1799
- */
1800
- renderEndpoint(item) {
1801
- const { indent, operations, label, path, id, selected, secondarySelected, nameEditor } = item;
1802
- const itemStyles = {
1803
- paddingLeft: this.computeEndpointPaddingValue(indent),
1804
- };
1805
- const renderChildren = Array.isArray(operations) && !!operations.length;
1806
- const opened = renderChildren && this.openedEndpoints.includes(id);
1807
- const classes = {
1808
- 'list-item': true,
1809
- 'endpoint': true,
1810
- opened,
1811
- 'selected': !!selected,
1812
- 'secondarySelected': !!secondarySelected,
1813
- };
1814
- return html `
1815
- <div
1816
- part="api-navigation-list-item"
1817
- class="${classMap(classes)}"
1818
- data-path="${path}"
1819
- data-graph-id="${ifDefined(id)}"
1820
- data-graph-shape="resource"
1821
- @click="${this.itemClickHandler}"
1822
- title="Open this endpoint"
1823
- style="${styleMap(itemStyles)}"
1824
- role="menuitem"
1825
- aria-haspopup="true"
1826
- >
1827
- ${nameEditor
1828
- ? this.renameInputTemplate(id, 'resource', label)
1829
- : html `
1830
- ${renderChildren
1831
- ? this.renderEndpointToggle(id)
1832
- : html `<div class="endpoint-toggle-mock"></div>`}
1833
- <div class="endpoint-name label">${label}</div>
1834
- `}
1835
- </div>
1836
- ${renderChildren
1837
- ? html `
1838
- <ui-collapse
1839
- part="api-navigation-operation-collapse"
1840
- class="operation-collapse"
1841
- data-graph-id="${id}"
1842
- role="menu"
1843
- .open="${opened}"
1844
- >
1845
- ${item.operations.map((op) => this.renderOperationItem(item, op))}
1846
- </ui-collapse>
1847
- `
1848
- : ''}
1849
- `;
1850
- }
1851
- /**
1852
- * @param id The domain id of the endpoint.
1853
- * @return The template for an endpoint toggle button.
1854
- */
1855
- renderEndpointToggle(id) {
1856
- return html ` <ui-icon-button
1857
- class="toggle-button endpoint"
1858
- aria-label="Toggle the list of operations"
1859
- tabindex="-1"
1860
- data-graph-id="${id}"
1861
- @click="${this.endpointToggleClickHandler}"
1862
- >
1863
- <ui-icon icon="arrowDropDown" role="presentation"></ui-icon>
1864
- </ui-icon-button>`;
1865
- }
1866
- /**
1867
- * @param item The endpoint definition
1868
- * @param op The operation definition.
1869
- * @return The template for an operation list item.
1870
- */
1871
- renderOperationItem(item, op) {
1872
- const { id, name, method, selected, secondarySelected, nameEditor } = op;
1873
- const itemStyles = {
1874
- paddingLeft: this.computeOperationPaddingValue(item.indent),
1875
- };
1876
- const classes = {
1877
- 'list-item': true,
1878
- 'label': true,
1879
- 'operation': true,
1880
- 'selected': !!selected,
1881
- 'secondarySelected': !!secondarySelected,
1882
- };
1883
- return html `
1884
- <div
1885
- part="api-navigation-list-item"
1886
- class="${classMap(classes)}"
1887
- role="menuitem"
1888
- tabindex="-1"
1889
- data-graph-parent="${item.id}"
1890
- data-graph-id="${id}"
1891
- data-graph-shape="operation"
1892
- data-operation="${method}"
1893
- @click="${this.itemClickHandler}"
1894
- style="${styleMap(itemStyles)}"
1895
- >
1896
- ${nameEditor
1897
- ? this.renameInputTemplate(id, 'operation', name)
1898
- : html `
1899
- <span class="http-label pill" data-method="${method}">${method}</span>
1900
- ${name}
1901
- `}
1902
- </div>
1903
- `;
1904
- }
1905
- /**
1906
- * @return The template for the documentations section.
1907
- */
1908
- renderDocumentations() {
1909
- const { edit } = this;
1910
- const items = this.getFilteredDocumentations();
1911
- if (!items.length && !edit) {
1912
- return '';
1913
- }
1914
- const { documentationsOpened = false } = this;
1915
- const classes = {
1916
- documentation: true,
1917
- opened: !!documentationsOpened,
1918
- };
1919
- const addingDocumentation = this.addingDocumentationInternal;
1920
- const showItems = !!items.length;
1921
- const showEmpty = !showItems && !addingDocumentation;
1922
- return html `
1923
- <div class="${classMap(classes)}">
1924
- <div
1925
- class="section-title"
1926
- data-property="documentationsOpened"
1927
- data-section="documentations"
1928
- @click="${this.toggleSectionClickHandler}"
1929
- @keydown="${this.toggleSectionKeydownHandler}"
1930
- title="Toggle the list"
1931
- aria-haspopup="true"
1932
- role="menuitem"
1933
- >
1934
- <ui-icon-button part="toggle-button" class="toggle-button section" aria-label="Toggle the list" tabindex="-1">
1935
- <ui-icon role="presentation" icon="arrowDropDown"></ui-icon>
1936
- </ui-icon-button>
1937
- <div class="section-title-label label">Documentation</div>
1938
- </div>
1939
- <ui-collapse .open="${documentationsOpened}">
1940
- <div class="children">
1941
- ${addingDocumentation ? this.addDocumentationInputTemplate() : ''}
1942
- ${showItems ? items.map((item) => this.documentationTemplate(item)) : ''}
1943
- ${showEmpty ? html `<p class="empty-section">No documentations in this API</p>` : ''}
1944
- </div>
1945
- </ui-collapse>
1946
- </div>
1947
- `;
1948
- }
1949
- /**
1950
- * @return The template for the documentation list item.
1951
- */
1952
- documentationTemplate(item) {
1953
- if (item.url) {
1954
- return this.renderExternalDocumentation(item);
1955
- }
1956
- const { title, id, selected, secondarySelected, nameEditor } = item;
1957
- const classes = {
1958
- 'list-item': true,
1959
- 'label': true,
1960
- 'documentation': true,
1961
- 'selected': !!selected,
1962
- 'secondarySelected': !!secondarySelected,
1963
- };
1964
- return html `<div
1965
- part="api-navigation-list-item"
1966
- class="${classMap(classes)}"
1967
- role="menuitem"
1968
- tabindex="-1"
1969
- data-graph-id="${id}"
1970
- data-graph-shape="documentation"
1971
- @click="${this.itemClickHandler}"
1972
- >
1973
- ${nameEditor ? this.renameInputTemplate(id, 'documentation', title) : title}
1974
- </div>`;
1975
- }
1976
- /**
1977
- * @return The template for the external documentation list item.
1978
- */
1979
- renderExternalDocumentation(item) {
1980
- const { title, description, url, id, selected, secondarySelected, nameEditor } = item;
1981
- const label = title || description;
1982
- const classes = {
1983
- 'list-item': true,
1984
- 'label': true,
1985
- 'documentation': true,
1986
- 'selected': !!selected,
1987
- 'secondarySelected': !!secondarySelected,
1988
- };
1989
- return html `<a
1990
- href="${url}"
1991
- target="_blank"
1992
- part="api-navigation-list-item"
1993
- class="${classMap(classes)}"
1994
- tabindex="-1"
1995
- data-graph-id="${id}"
1996
- data-graph-shape="documentation"
1997
- @click="${this.externalDocumentationHandler}"
1998
- >
1999
- ${nameEditor
2000
- ? this.renameInputTemplate(id, 'documentation', label)
2001
- : html `
2002
- ${label}
2003
- <ui-icon class="icon new-tab" title="Opens in a new tab" role="presentation" icon="openInNew"></ui-icon>
2004
- `}
2005
- </a>`;
2006
- }
2007
- /**
2008
- * @return The template for the types (schemas) section.
2009
- */
2010
- renderSchemas() {
2011
- const { edit } = this;
2012
- const items = this.getFilteredSchemas();
2013
- if (!items.length && !edit) {
2014
- return '';
2015
- }
2016
- const { schemasOpened = false } = this;
2017
- const classes = {
2018
- schemas: true,
2019
- opened: !!schemasOpened,
2020
- };
2021
- const addingSchema = this.addingSchemaInternal;
2022
- const showItems = !!items.length;
2023
- const showEmpty = !showItems && !addingSchema;
2024
- return html `
2025
- <div class="${classMap(classes)}">
2026
- <div
2027
- class="section-title"
2028
- data-property="schemasOpened"
2029
- data-section="schemas"
2030
- @click="${this.toggleSectionClickHandler}"
2031
- @keydown="${this.toggleSectionKeydownHandler}"
2032
- title="Toggle the list"
2033
- aria-haspopup="true"
2034
- role="menuitem"
2035
- >
2036
- <ui-icon-button part="toggle-button" class="toggle-button section" aria-label="Toggle the list" tabindex="-1">
2037
- <ui-icon role="presentation" icon="arrowDropDown"></ui-icon>
2038
- </ui-icon-button>
2039
- <div class="section-title-label label">Schemas</div>
2040
- </div>
2041
- <ui-collapse .open="${schemasOpened}">
2042
- <div class="children">
2043
- ${addingSchema ? this.addSchemaInputTemplate() : ''}
2044
- ${showItems ? items.map((item) => this.renderSchema(item)) : ''}
2045
- ${showEmpty ? html `<p class="empty-section">No schemas in this API</p>` : ''}
2046
- </div>
2047
- </ui-collapse>
2048
- </div>
2049
- `;
2050
- }
2051
- /**
2052
- * @return The template for the documentation list item.
2053
- */
2054
- renderSchema(item) {
2055
- const { id, displayName, name, selected, secondarySelected, nameEditor } = item;
2056
- const label = displayName || name || 'Unnamed schema';
2057
- const classes = {
2058
- 'list-item': true,
2059
- 'schema': true,
2060
- 'label': true,
2061
- 'selected': !!selected,
2062
- 'secondarySelected': !!secondarySelected,
2063
- };
2064
- return html ` <div
2065
- part="api-navigation-list-item label"
2066
- class="${classMap(classes)}"
2067
- role="menuitem"
2068
- tabindex="-1"
2069
- data-graph-id="${id}"
2070
- data-graph-shape="schema"
2071
- @click="${this.itemClickHandler}"
2072
- >
2073
- ${nameEditor ? this.renameInputTemplate(id, 'schema', label) : label}
2074
- </div>`;
2075
- }
2076
- /**
2077
- * @return The template for the security section.
2078
- */
2079
- renderSecurities() {
2080
- const items = this.getFilteredSecurity();
2081
- if (!items.length) {
2082
- return '';
2083
- }
2084
- const { securityOpened = false } = this;
2085
- const classes = {
2086
- security: true,
2087
- opened: !!securityOpened,
2088
- };
2089
- return html `
2090
- <div class="${classMap(classes)}">
2091
- <div
2092
- class="section-title"
2093
- data-property="securityOpened"
2094
- data-section="security"
2095
- @click="${this.toggleSectionClickHandler}"
2096
- @keydown="${this.toggleSectionKeydownHandler}"
2097
- title="Toggle the list"
2098
- aria-haspopup="true"
2099
- role="menuitem"
2100
- >
2101
- <ui-icon-button part="toggle-button" class="toggle-button section" aria-label="Toggle the list" tabindex="-1">
2102
- <ui-icon role="presentation" icon="arrowDropDown"></ui-icon>
2103
- </ui-icon-button>
2104
- <div class="section-title-label label">Security</div>
2105
- </div>
2106
- <ui-collapse .open="${securityOpened}">
2107
- <div class="children">${items.map((item) => this.securityTemplate(item))}</div>
2108
- </ui-collapse>
2109
- </div>
2110
- `;
2111
- }
2112
- /**
2113
- * @return The template for the security list item.
2114
- */
2115
- securityTemplate(item) {
2116
- const { id, displayName, name, selected, secondarySelected, type } = item;
2117
- const label = displayName || name || 'Unnamed security';
2118
- const classes = {
2119
- 'list-item': true,
2120
- 'label': true,
2121
- 'security': true,
2122
- 'selected': !!selected,
2123
- 'secondarySelected': !!secondarySelected,
2124
- };
2125
- return html ` <div
2126
- part="api-navigation-list-item"
2127
- class="${classMap(classes)}"
2128
- role="menuitem"
2129
- tabindex="-1"
2130
- data-graph-id="${id}"
2131
- data-graph-shape="security"
2132
- @click="${this.itemClickHandler}"
2133
- >
2134
- ${type}: ${label}
2135
- </div>`;
2136
- }
2137
- /**
2138
- * @return The template for the filter input.
2139
- */
2140
- filterTemplate() {
2141
- const { filter } = this;
2142
- if (!filter) {
2143
- return '';
2144
- }
2145
- return html `
2146
- <div class="filter-wrapper">
2147
- <input
2148
- type="search"
2149
- name="filter"
2150
- aria-label="Filter the menu"
2151
- placeholder="Filter"
2152
- @search="${this.searchHandler}"
2153
- @change="${this.searchHandler}"
2154
- />
2155
- <ui-icon icon="search"></ui-icon>
2156
- </div>
2157
- `;
2158
- }
2159
- /**
2160
- * @return The template for the new endpoint input.
2161
- */
2162
- addEndpointInputTemplate() {
2163
- return html `
2164
- <div part="api-navigation-input-item" class="input-item add-endpoint-input" data-graph-shape="resource">
2165
- <input
2166
- type="text"
2167
- class="add-endpoint-input"
2168
- @keydown="${this.addEndpointKeydownHandler}"
2169
- placeholder="Endpoint's path"
2170
- aria-label="Enter the path for the endpoint"
2171
- />
2172
- <ui-icon icon="add" title="Enter to save, ESC to cancel" role="presentation"></ui-icon>
2173
- </div>
2174
- `;
2175
- }
2176
- /**
2177
- * @return The template for the new documentation input.
2178
- */
2179
- addDocumentationInputTemplate() {
2180
- const isExternal = this.addingExternalInternal;
2181
- return html `
2182
- ${isExternal
2183
- ? html `
2184
- <div part="api-navigation-input-item" class="input-item add-external-doc-input">
2185
- <input
2186
- type="url"
2187
- class="add-external-doc-input"
2188
- aria-label="Enter the documentation URL"
2189
- placeholder="Documentation URL"
2190
- />
2191
- </div>
2192
- `
2193
- : ''}
2194
- <div part="api-navigation-input-item" class="input-item add-documentation-input" data-graph-shape="documentation">
2195
- <input
2196
- type="text"
2197
- class="add-documentation-input"
2198
- aria-label="Enter name for the documentation"
2199
- placeholder="Documentation title"
2200
- @keydown="${this.addDocumentationKeydownHandler}"
2201
- />
2202
- <ui-icon icon="add" title="Enter to save, ESC to cancel"></ui-icon>
2203
- </div>
2204
- `;
2205
- }
2206
- /**
2207
- * @return The template for the new schema input.
2208
- */
2209
- addSchemaInputTemplate() {
2210
- return html `
2211
- <div part="api-navigation-input-item" class="input-item add-schema-input" data-graph-shape="schema">
2212
- <input type="text" class="add-schema-input" @keydown="${this.addSchemaKeydownHandler}" />
2213
- <ui-icon icon="add" title="Enter to save, ESC to cancel"></ui-icon>
2214
- </div>
2215
- `;
2216
- }
2217
- /**
2218
- * @param id The domain id of the item being edited
2219
- * @param label The current name to render.
2220
- * @returns The template for the rename input.
2221
- */
2222
- renameInputTemplate(id, type, label = '') {
2223
- return html `
2224
- <input
2225
- type="text"
2226
- .value="${label}"
2227
- required
2228
- class="rename"
2229
- data-id="${id}"
2230
- data-type="${type}"
2231
- @click="${cancelEvent}"
2232
- @keydown="${this.renameKeydownHandler}"
2233
- @blur="${this.renameBlurHandler}"
2234
- />
2235
- `;
2236
- }
2237
- };
2238
- })();
2239
- /**
2240
- * @fires apinavigate - Dispatched when a selection change
2241
- * @fires graphload - When the graph was loaded
2242
- */
2243
- export default ApiNavigation;
2244
- //# sourceMappingURL=ApiNavigation.element.js.map