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