@api-client/ui 0.0.17 → 0.1.0
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 +3 -1
- package/README.md +74 -11
- package/bin/dev.ts +1 -0
- package/build/src/amf/lib/AmfInputParser.d.ts +7 -6
- package/build/src/amf/lib/AmfInputParser.d.ts.map +1 -1
- package/build/src/amf/lib/AmfInputParser.js +2 -1
- package/build/src/amf/lib/AmfInputParser.js.map +1 -1
- package/build/src/amf/lib/AmfParameters.d.ts +16 -15
- package/build/src/amf/lib/AmfParameters.d.ts.map +1 -1
- package/build/src/amf/lib/AmfParameters.js +5 -3
- package/build/src/amf/lib/AmfParameters.js.map +1 -1
- package/build/src/amf/lib/AmfSecurity.d.ts +3 -3
- package/build/src/amf/lib/AmfSecurity.d.ts.map +1 -1
- package/build/src/amf/lib/AmfSecurity.js +1 -0
- package/build/src/amf/lib/AmfSecurity.js.map +1 -1
- package/build/src/amf/lib/Oauth2RamlCustomData.d.ts +13 -12
- package/build/src/amf/lib/Oauth2RamlCustomData.d.ts.map +1 -1
- package/build/src/amf/lib/Oauth2RamlCustomData.js +3 -3
- package/build/src/amf/lib/Oauth2RamlCustomData.js.map +1 -1
- package/build/src/amf/lib/PayloadUtils.d.ts +3 -2
- package/build/src/amf/lib/PayloadUtils.d.ts.map +1 -1
- package/build/src/amf/lib/PayloadUtils.js +3 -1
- package/build/src/amf/lib/PayloadUtils.js.map +1 -1
- package/build/src/amf/lib/QueryParameterProcessor.d.ts +7 -7
- package/build/src/amf/lib/QueryParameterProcessor.d.ts.map +1 -1
- package/build/src/amf/lib/QueryParameterProcessor.js +1 -1
- package/build/src/amf/lib/QueryParameterProcessor.js.map +1 -1
- package/build/src/amf/lib/Utils.d.ts +6 -5
- package/build/src/amf/lib/Utils.d.ts.map +1 -1
- package/build/src/amf/lib/Utils.js +2 -1
- package/build/src/amf/lib/Utils.js.map +1 -1
- package/build/src/amf/store/AmfGraphStore.d.ts +2 -2
- package/build/src/amf/store/AmfGraphStore.d.ts.map +1 -1
- package/build/src/amf/store/AmfGraphStore.js +2 -2
- package/build/src/amf/store/AmfGraphStore.js.map +1 -1
- package/build/src/amf/store/AmfStore.d.ts +21 -17
- package/build/src/amf/store/AmfStore.d.ts.map +1 -1
- package/build/src/amf/store/AmfStore.js +1 -2
- package/build/src/amf/store/AmfStore.js.map +1 -1
- package/build/src/amf/store/InMemAmfGraphStore.d.ts +24 -21
- package/build/src/amf/store/InMemAmfGraphStore.d.ts.map +1 -1
- package/build/src/amf/store/InMemAmfGraphStore.js +2 -1
- package/build/src/amf/store/InMemAmfGraphStore.js.map +1 -1
- package/build/src/amf/types.d.ts +9 -8
- package/build/src/amf/types.d.ts.map +1 -1
- package/build/src/amf/types.js.map +1 -1
- package/build/src/bindings/base/ConfigurationBindings.d.ts +1 -1
- package/build/src/bindings/base/ConfigurationBindings.d.ts.map +1 -1
- package/build/src/bindings/base/ConfigurationBindings.js.map +1 -1
- package/build/src/bindings/base/IoThread.d.ts +1 -1
- package/build/src/bindings/base/IoThread.d.ts.map +1 -1
- package/build/src/bindings/base/IoThread.js +1 -1
- package/build/src/bindings/base/IoThread.js.map +1 -1
- package/build/src/bindings/base/PlatformBindings.js +1 -1
- package/build/src/bindings/base/PlatformBindings.js.map +1 -1
- package/build/src/bindings/web/WebConfigurationBindings.d.ts.map +1 -1
- package/build/src/bindings/web/WebConfigurationBindings.js.map +1 -1
- package/build/src/code-snippets/Bash/CurlSnippet.d.ts +2 -1
- package/build/src/code-snippets/Bash/CurlSnippet.d.ts.map +1 -1
- package/build/src/code-snippets/Bash/CurlSnippet.js.map +1 -1
- package/build/src/code-snippets/C/CcurlSnippet.d.ts +2 -1
- package/build/src/code-snippets/C/CcurlSnippet.d.ts.map +1 -1
- package/build/src/code-snippets/C/CcurlSnippet.js.map +1 -1
- package/build/src/code-snippets/CodeSnippet.d.ts +3 -1
- package/build/src/code-snippets/CodeSnippet.d.ts.map +1 -1
- package/build/src/code-snippets/CodeSnippet.js +1 -1
- package/build/src/code-snippets/CodeSnippet.js.map +1 -1
- package/build/src/code-snippets/Dart/DartSnippet.d.ts +2 -1
- package/build/src/code-snippets/Dart/DartSnippet.d.ts.map +1 -1
- package/build/src/code-snippets/Dart/DartSnippet.js.map +1 -1
- package/build/src/code-snippets/HTTP/RawSnippet.d.ts +2 -1
- package/build/src/code-snippets/HTTP/RawSnippet.d.ts.map +1 -1
- package/build/src/code-snippets/HTTP/RawSnippet.js.map +1 -1
- package/build/src/code-snippets/Java/PlatformSnippet.d.ts +2 -1
- package/build/src/code-snippets/Java/PlatformSnippet.d.ts.map +1 -1
- package/build/src/code-snippets/Java/PlatformSnippet.js.map +1 -1
- package/build/src/code-snippets/Java/SpringSnippet.d.ts +2 -1
- package/build/src/code-snippets/Java/SpringSnippet.d.ts.map +1 -1
- package/build/src/code-snippets/Java/SpringSnippet.js.map +1 -1
- package/build/src/code-snippets/JavaScript/AsyncFetchSnippet.d.ts +2 -1
- package/build/src/code-snippets/JavaScript/AsyncFetchSnippet.d.ts.map +1 -1
- package/build/src/code-snippets/JavaScript/AsyncFetchSnippet.js.map +1 -1
- package/build/src/code-snippets/JavaScript/AxiosSnippet.d.ts +2 -1
- package/build/src/code-snippets/JavaScript/AxiosSnippet.d.ts.map +1 -1
- package/build/src/code-snippets/JavaScript/AxiosSnippet.js.map +1 -1
- package/build/src/code-snippets/JavaScript/FetchSnippet.d.ts +2 -1
- package/build/src/code-snippets/JavaScript/FetchSnippet.d.ts.map +1 -1
- package/build/src/code-snippets/JavaScript/FetchSnippet.js.map +1 -1
- package/build/src/code-snippets/JavaScript/NodeSnippet.d.ts +2 -1
- package/build/src/code-snippets/JavaScript/NodeSnippet.d.ts.map +1 -1
- package/build/src/code-snippets/JavaScript/NodeSnippet.js.map +1 -1
- package/build/src/code-snippets/JavaScript/XhrSnippet.d.ts +2 -1
- package/build/src/code-snippets/JavaScript/XhrSnippet.d.ts.map +1 -1
- package/build/src/code-snippets/JavaScript/XhrSnippet.js.map +1 -1
- package/build/src/code-snippets/JavaScript/jQuerySnippet.d.ts +2 -1
- package/build/src/code-snippets/JavaScript/jQuerySnippet.d.ts.map +1 -1
- package/build/src/code-snippets/JavaScript/jQuerySnippet.js.map +1 -1
- package/build/src/code-snippets/Python/Python27Snippet.d.ts +2 -1
- package/build/src/code-snippets/Python/Python27Snippet.d.ts.map +1 -1
- package/build/src/code-snippets/Python/Python27Snippet.js.map +1 -1
- package/build/src/code-snippets/Python/Python31Snippet.d.ts +2 -1
- package/build/src/code-snippets/Python/Python31Snippet.d.ts.map +1 -1
- package/build/src/code-snippets/Python/Python31Snippet.js.map +1 -1
- package/build/src/code-snippets/Python/RequestsSnippet.d.ts +2 -1
- package/build/src/code-snippets/Python/RequestsSnippet.d.ts.map +1 -1
- package/build/src/code-snippets/Python/RequestsSnippet.js.map +1 -1
- package/build/src/controllers/LiveDataController.d.ts +1 -1
- package/build/src/controllers/LiveDataController.d.ts.map +1 -1
- package/build/src/controllers/LiveDataController.js.map +1 -1
- package/build/src/core/Activity.d.ts +19 -1
- package/build/src/core/Activity.d.ts.map +1 -1
- package/build/src/core/Activity.js +286 -238
- package/build/src/core/Activity.js.map +1 -1
- package/build/src/core/ActivityManager.d.ts +8 -1
- package/build/src/core/ActivityManager.d.ts.map +1 -1
- package/build/src/core/ActivityManager.js +22 -1
- package/build/src/core/ActivityManager.js.map +1 -1
- package/build/src/core/Fragment.d.ts +5 -0
- package/build/src/core/Fragment.d.ts.map +1 -1
- package/build/src/core/Fragment.js +11 -0
- package/build/src/core/Fragment.js.map +1 -1
- package/build/src/core/FragmentManager.d.ts +1 -1
- package/build/src/core/FragmentManager.d.ts.map +1 -1
- package/build/src/core/FragmentManager.js.map +1 -1
- package/build/src/core/ModalActivity.d.ts +1 -1
- package/build/src/core/ModalActivity.js +1 -1
- package/build/src/core/ModalActivity.js.map +1 -1
- package/build/src/directives/live.d.ts +1 -1
- package/build/src/directives/live.d.ts.map +1 -1
- package/build/src/directives/live.js.map +1 -1
- package/build/src/elements/amf/ApiAnnotationDocument.element.d.ts +6 -5
- package/build/src/elements/amf/ApiAnnotationDocument.element.d.ts.map +1 -1
- package/build/src/elements/amf/ApiAnnotationDocument.element.js +1 -1
- package/build/src/elements/amf/ApiAnnotationDocument.element.js.map +1 -1
- package/build/src/elements/amf/ApiAuthorizationEditor.element.d.ts +16 -15
- package/build/src/elements/amf/ApiAuthorizationEditor.element.d.ts.map +1 -1
- package/build/src/elements/amf/ApiAuthorizationEditor.element.js.map +1 -1
- package/build/src/elements/amf/ApiChannelDocument.element.d.ts +2 -2
- package/build/src/elements/amf/ApiChannelDocument.element.d.ts.map +1 -1
- package/build/src/elements/amf/ApiChannelDocument.element.js.map +1 -1
- package/build/src/elements/amf/ApiDocumentation.element.d.ts +2 -2
- package/build/src/elements/amf/ApiDocumentation.element.d.ts.map +1 -1
- package/build/src/elements/amf/ApiDocumentation.element.js +1 -1
- package/build/src/elements/amf/ApiDocumentation.element.js.map +1 -1
- package/build/src/elements/amf/ApiDocumentationBase.d.ts +6 -4
- package/build/src/elements/amf/ApiDocumentationBase.d.ts.map +1 -1
- package/build/src/elements/amf/ApiDocumentationBase.js +1 -1
- package/build/src/elements/amf/ApiDocumentationBase.js.map +1 -1
- package/build/src/elements/amf/ApiDocumentationDocument.element.d.ts +5 -5
- package/build/src/elements/amf/ApiDocumentationDocument.element.d.ts.map +1 -1
- package/build/src/elements/amf/ApiDocumentationDocument.element.js.map +1 -1
- package/build/src/elements/amf/ApiNavigation.element.d.ts +12 -12
- package/build/src/elements/amf/ApiNavigation.element.d.ts.map +1 -1
- package/build/src/elements/amf/ApiNavigation.element.js.map +1 -1
- package/build/src/elements/amf/ApiOperationDocument.element.d.ts +27 -27
- package/build/src/elements/amf/ApiOperationDocument.element.d.ts.map +1 -1
- package/build/src/elements/amf/ApiOperationDocument.element.js +3 -1
- package/build/src/elements/amf/ApiOperationDocument.element.js.map +1 -1
- package/build/src/elements/amf/ApiParameterDocument.element.d.ts +6 -5
- package/build/src/elements/amf/ApiParameterDocument.element.d.ts.map +1 -1
- package/build/src/elements/amf/ApiParameterDocument.element.js.map +1 -1
- package/build/src/elements/amf/ApiParametrizedSecurityScheme.element.d.ts +6 -6
- package/build/src/elements/amf/ApiParametrizedSecurityScheme.element.d.ts.map +1 -1
- package/build/src/elements/amf/ApiParametrizedSecurityScheme.element.js +1 -1
- package/build/src/elements/amf/ApiParametrizedSecurityScheme.element.js.map +1 -1
- package/build/src/elements/amf/ApiPayloadDocument.element.d.ts +7 -7
- package/build/src/elements/amf/ApiPayloadDocument.element.d.ts.map +1 -1
- package/build/src/elements/amf/ApiPayloadDocument.element.js.map +1 -1
- package/build/src/elements/amf/ApiRequest.element.d.ts +2 -1
- package/build/src/elements/amf/ApiRequest.element.d.ts.map +1 -1
- package/build/src/elements/amf/ApiRequest.element.js.map +1 -1
- package/build/src/elements/amf/ApiRequestDocument.element.d.ts +9 -9
- package/build/src/elements/amf/ApiRequestDocument.element.d.ts.map +1 -1
- package/build/src/elements/amf/ApiRequestDocument.element.js.map +1 -1
- package/build/src/elements/amf/ApiRequestEditor.element.d.ts +16 -12
- package/build/src/elements/amf/ApiRequestEditor.element.d.ts.map +1 -1
- package/build/src/elements/amf/ApiRequestEditor.element.js +8 -3
- package/build/src/elements/amf/ApiRequestEditor.element.js.map +1 -1
- package/build/src/elements/amf/ApiResourceDocument.element.d.ts +17 -16
- package/build/src/elements/amf/ApiResourceDocument.element.d.ts.map +1 -1
- package/build/src/elements/amf/ApiResourceDocument.element.js +2 -1
- package/build/src/elements/amf/ApiResourceDocument.element.js.map +1 -1
- package/build/src/elements/amf/ApiResponseDocument.element.d.ts +9 -9
- package/build/src/elements/amf/ApiResponseDocument.element.d.ts.map +1 -1
- package/build/src/elements/amf/ApiResponseDocument.element.js.map +1 -1
- package/build/src/elements/amf/ApiSchemaDocument.element.d.ts +22 -22
- package/build/src/elements/amf/ApiSchemaDocument.element.d.ts.map +1 -1
- package/build/src/elements/amf/ApiSchemaDocument.element.js +4 -3
- package/build/src/elements/amf/ApiSchemaDocument.element.js.map +1 -1
- package/build/src/elements/amf/ApiSecurityDocument.element.d.ts +19 -19
- package/build/src/elements/amf/ApiSecurityDocument.element.d.ts.map +1 -1
- package/build/src/elements/amf/ApiSecurityDocument.element.js +1 -1
- package/build/src/elements/amf/ApiSecurityDocument.element.js.map +1 -1
- package/build/src/elements/amf/ApiSecurityRequirementDocument.element.d.ts +4 -4
- package/build/src/elements/amf/ApiSecurityRequirementDocument.element.d.ts.map +1 -1
- package/build/src/elements/amf/ApiSecurityRequirementDocument.element.js.map +1 -1
- package/build/src/elements/amf/ApiServerPicker.element.d.ts +3 -3
- package/build/src/elements/amf/ApiServerPicker.element.d.ts.map +1 -1
- package/build/src/elements/amf/ApiServerPicker.element.js +3 -3
- package/build/src/elements/amf/ApiServerPicker.element.js.map +1 -1
- package/build/src/elements/amf/ApiSummary.element.d.ts +13 -13
- package/build/src/elements/amf/ApiSummary.element.d.ts.map +1 -1
- package/build/src/elements/amf/ApiSummary.element.js +1 -1
- package/build/src/elements/amf/ApiSummary.element.js.map +1 -1
- package/build/src/elements/amf/SchemaCommonTemplates.d.ts +5 -5
- package/build/src/elements/amf/SchemaCommonTemplates.d.ts.map +1 -1
- package/build/src/elements/amf/SchemaCommonTemplates.js +1 -1
- package/build/src/elements/amf/SchemaCommonTemplates.js.map +1 -1
- package/build/src/elements/amf/authorization/AmfApiKey.d.ts +4 -2
- package/build/src/elements/amf/authorization/AmfApiKey.d.ts.map +1 -1
- package/build/src/elements/amf/authorization/AmfApiKey.js +2 -1
- package/build/src/elements/amf/authorization/AmfApiKey.js.map +1 -1
- package/build/src/elements/amf/authorization/AmfBasic.d.ts +3 -2
- package/build/src/elements/amf/authorization/AmfBasic.d.ts.map +1 -1
- package/build/src/elements/amf/authorization/AmfBasic.js +1 -1
- package/build/src/elements/amf/authorization/AmfBasic.js.map +1 -1
- package/build/src/elements/amf/authorization/AmfBearer.d.ts +3 -2
- package/build/src/elements/amf/authorization/AmfBearer.d.ts.map +1 -1
- package/build/src/elements/amf/authorization/AmfBearer.js +1 -1
- package/build/src/elements/amf/authorization/AmfBearer.js.map +1 -1
- package/build/src/elements/amf/authorization/AmfOauth2.d.ts +22 -18
- package/build/src/elements/amf/authorization/AmfOauth2.d.ts.map +1 -1
- package/build/src/elements/amf/authorization/AmfOauth2.js +2 -1
- package/build/src/elements/amf/authorization/AmfOauth2.js.map +1 -1
- package/build/src/elements/amf/authorization/AmfOidc.d.ts +3 -2
- package/build/src/elements/amf/authorization/AmfOidc.d.ts.map +1 -1
- package/build/src/elements/amf/authorization/AmfOidc.js +1 -1
- package/build/src/elements/amf/authorization/AmfOidc.js.map +1 -1
- package/build/src/elements/amf/authorization/AmfPassThrough.d.ts +7 -4
- package/build/src/elements/amf/authorization/AmfPassThrough.d.ts.map +1 -1
- package/build/src/elements/amf/authorization/AmfPassThrough.js +2 -1
- package/build/src/elements/amf/authorization/AmfPassThrough.js.map +1 -1
- package/build/src/elements/amf/authorization/AmfRamlCustom.d.ts +7 -4
- package/build/src/elements/amf/authorization/AmfRamlCustom.d.ts.map +1 -1
- package/build/src/elements/amf/authorization/AmfRamlCustom.js +2 -1
- package/build/src/elements/amf/authorization/AmfRamlCustom.js.map +1 -1
- package/build/src/elements/authorization/OAuth2Authorize.d.ts +1 -1
- package/build/src/elements/authorization/OAuth2Authorize.d.ts.map +1 -1
- package/build/src/elements/authorization/OAuth2Authorize.js +2 -1
- package/build/src/elements/authorization/OAuth2Authorize.js.map +1 -1
- package/build/src/elements/authorization/OidcAuthorize.d.ts +1 -1
- package/build/src/elements/authorization/OidcAuthorize.d.ts.map +1 -1
- package/build/src/elements/authorization/OidcAuthorize.js +2 -1
- package/build/src/elements/authorization/OidcAuthorize.js.map +1 -1
- package/build/src/elements/authorization/ui/ApiKeyAuthorization.d.ts +1 -1
- package/build/src/elements/authorization/ui/ApiKeyAuthorization.d.ts.map +1 -1
- package/build/src/elements/authorization/ui/ApiKeyAuthorization.js.map +1 -1
- package/build/src/elements/authorization/ui/Authorization.d.ts +1 -1
- package/build/src/elements/authorization/ui/Authorization.d.ts.map +1 -1
- package/build/src/elements/authorization/ui/Authorization.js.map +1 -1
- package/build/src/elements/authorization/ui/BasicAuthorization.d.ts +1 -1
- package/build/src/elements/authorization/ui/BasicAuthorization.d.ts.map +1 -1
- package/build/src/elements/authorization/ui/BasicAuthorization.js.map +1 -1
- package/build/src/elements/authorization/ui/BearerAuthorization.d.ts +1 -1
- package/build/src/elements/authorization/ui/BearerAuthorization.d.ts.map +1 -1
- package/build/src/elements/authorization/ui/BearerAuthorization.js.map +1 -1
- package/build/src/elements/authorization/ui/CcAuthorization.d.ts +3 -1
- package/build/src/elements/authorization/ui/CcAuthorization.d.ts.map +1 -1
- package/build/src/elements/authorization/ui/CcAuthorization.js +2 -1
- package/build/src/elements/authorization/ui/CcAuthorization.js.map +1 -1
- package/build/src/elements/authorization/ui/NtlmAuthorization.d.ts +1 -1
- package/build/src/elements/authorization/ui/NtlmAuthorization.d.ts.map +1 -1
- package/build/src/elements/authorization/ui/NtlmAuthorization.js.map +1 -1
- package/build/src/elements/authorization/ui/OAuth2Authorization.d.ts +2 -1
- package/build/src/elements/authorization/ui/OAuth2Authorization.d.ts.map +1 -1
- package/build/src/elements/authorization/ui/OAuth2Authorization.js +3 -2
- package/build/src/elements/authorization/ui/OAuth2Authorization.js.map +1 -1
- package/build/src/elements/authorization/ui/OidcAuthorization.d.ts +2 -1
- package/build/src/elements/authorization/ui/OidcAuthorization.d.ts.map +1 -1
- package/build/src/elements/authorization/ui/OidcAuthorization.js +4 -2
- package/build/src/elements/authorization/ui/OidcAuthorization.js.map +1 -1
- package/build/src/elements/code/HttpSnippets.d.ts +1 -1
- package/build/src/elements/code/HttpSnippets.d.ts.map +1 -1
- package/build/src/elements/code/HttpSnippets.js.map +1 -1
- package/build/src/elements/data-table/{internals/DataTable.d.ts → DataTable.d.ts} +1 -1
- package/build/src/elements/data-table/DataTable.d.ts.map +1 -0
- package/build/src/elements/data-table/{internals/DataTable.js → DataTable.js} +1 -1
- package/build/src/elements/data-table/DataTable.js.map +1 -0
- package/build/src/elements/data-table/DataTable.styles.d.ts.map +1 -0
- package/build/src/elements/data-table/DataTable.styles.js.map +1 -0
- package/build/src/elements/dialog/internals/DeleteCookieAction.element.d.ts +1 -1
- package/build/src/elements/dialog/internals/DeleteCookieAction.element.d.ts.map +1 -1
- package/build/src/elements/dialog/internals/DeleteCookieAction.element.js +1 -1
- package/build/src/elements/dialog/internals/DeleteCookieAction.element.js.map +1 -1
- package/build/src/elements/dialog/internals/SetCookieAction.element.d.ts +1 -1
- package/build/src/elements/dialog/internals/SetCookieAction.element.d.ts.map +1 -1
- package/build/src/elements/dialog/internals/SetCookieAction.element.js +1 -1
- package/build/src/elements/dialog/internals/SetCookieAction.element.js.map +1 -1
- package/build/src/elements/environment/EnvironmentEditor.d.ts +5 -1
- package/build/src/elements/environment/EnvironmentEditor.d.ts.map +1 -1
- package/build/src/elements/environment/EnvironmentEditor.js +3 -1
- package/build/src/elements/environment/EnvironmentEditor.js.map +1 -1
- package/build/src/elements/environment/ServerEditor.d.ts +2 -1
- package/build/src/elements/environment/ServerEditor.d.ts.map +1 -1
- package/build/src/elements/environment/ServerEditor.js +1 -1
- package/build/src/elements/environment/ServerEditor.js.map +1 -1
- package/build/src/elements/environment/VariablesEditor.d.ts +1 -1
- package/build/src/elements/environment/VariablesEditor.d.ts.map +1 -1
- package/build/src/elements/environment/VariablesEditor.js +1 -1
- package/build/src/elements/environment/VariablesEditor.js.map +1 -1
- package/build/src/elements/file-system/internals/Breadcrumbs.d.ts +2 -2
- package/build/src/elements/file-system/internals/Breadcrumbs.d.ts.map +1 -1
- package/build/src/elements/file-system/internals/Breadcrumbs.js +1 -1
- package/build/src/elements/file-system/internals/Breadcrumbs.js.map +1 -1
- package/build/src/elements/har/HarViewer.js +1 -1
- package/build/src/elements/har/HarViewer.js.map +1 -1
- package/build/src/elements/http/BodyEditor.d.ts +3 -1
- package/build/src/elements/http/BodyEditor.d.ts.map +1 -1
- package/build/src/elements/http/BodyEditor.js +1 -1
- package/build/src/elements/http/BodyEditor.js.map +1 -1
- package/build/src/elements/http/BodyMultipartEditor.d.ts +1 -1
- package/build/src/elements/http/BodyMultipartEditor.d.ts.map +1 -1
- package/build/src/elements/http/BodyMultipartEditor.js +3 -2
- package/build/src/elements/http/BodyMultipartEditor.js.map +1 -1
- package/build/src/elements/http/BodyUrlEncodedEditor.d.ts +1 -1
- package/build/src/elements/http/BodyUrlEncodedEditor.d.ts.map +1 -1
- package/build/src/elements/http/BodyUrlEncodedEditor.js +1 -1
- package/build/src/elements/http/BodyUrlEncodedEditor.js.map +1 -1
- package/build/src/elements/http/CertificateAdd.element.d.ts +1 -1
- package/build/src/elements/http/CertificateAdd.element.d.ts.map +1 -1
- package/build/src/elements/http/CertificateAdd.element.js +2 -1
- package/build/src/elements/http/CertificateAdd.element.js.map +1 -1
- package/build/src/elements/http/HeadersForm.d.ts +2 -1
- package/build/src/elements/http/HeadersForm.d.ts.map +1 -1
- package/build/src/elements/http/HeadersForm.js +6 -3
- package/build/src/elements/http/HeadersForm.js.map +1 -1
- package/build/src/elements/http/HttpAssertions.element.d.ts +2 -1
- package/build/src/elements/http/HttpAssertions.element.d.ts.map +1 -1
- package/build/src/elements/http/HttpAssertions.element.js.map +1 -1
- package/build/src/elements/http/HttpFlows.element.d.ts +2 -1
- package/build/src/elements/http/HttpFlows.element.d.ts.map +1 -1
- package/build/src/elements/http/HttpFlows.element.js.map +1 -1
- package/build/src/elements/http/HttpFlowsUi.d.ts +5 -1
- package/build/src/elements/http/HttpFlowsUi.d.ts.map +1 -1
- package/build/src/elements/http/HttpFlowsUi.js +5 -1
- package/build/src/elements/http/HttpFlowsUi.js.map +1 -1
- package/build/src/elements/http/LogBody.d.ts +1 -1
- package/build/src/elements/http/LogBody.d.ts.map +1 -1
- package/build/src/elements/http/LogBody.js +1 -1
- package/build/src/elements/http/LogBody.js.map +1 -1
- package/build/src/elements/http/LogHeaders.d.ts +5 -1
- package/build/src/elements/http/LogHeaders.d.ts.map +1 -1
- package/build/src/elements/http/LogHeaders.js +3 -1
- package/build/src/elements/http/LogHeaders.js.map +1 -1
- package/build/src/elements/http/LogTimings.d.ts +1 -1
- package/build/src/elements/http/LogTimings.d.ts.map +1 -1
- package/build/src/elements/http/LogTimings.js.map +1 -1
- package/build/src/elements/http/RequestConfigElement.d.ts +1 -1
- package/build/src/elements/http/RequestConfigElement.d.ts.map +1 -1
- package/build/src/elements/http/RequestConfigElement.js +1 -1
- package/build/src/elements/http/RequestConfigElement.js.map +1 -1
- package/build/src/elements/http/RequestEditor.d.ts +9 -1
- package/build/src/elements/http/RequestEditor.d.ts.map +1 -1
- package/build/src/elements/http/RequestEditor.js +6 -1
- package/build/src/elements/http/RequestEditor.js.map +1 -1
- package/build/src/elements/http/RequestLog.d.ts +6 -1
- package/build/src/elements/http/RequestLog.d.ts.map +1 -1
- package/build/src/elements/http/RequestLog.js +3 -1
- package/build/src/elements/http/RequestLog.js.map +1 -1
- package/build/src/elements/http/UrlEncodeUtils.d.ts +1 -1
- package/build/src/elements/http/UrlEncodeUtils.d.ts.map +1 -1
- package/build/src/elements/http/UrlEncodeUtils.js +1 -1
- package/build/src/elements/http/UrlEncodeUtils.js.map +1 -1
- package/build/src/elements/http/UrlInput.d.ts +1 -1
- package/build/src/elements/http/UrlInput.d.ts.map +1 -1
- package/build/src/elements/http/UrlInput.js.map +1 -1
- package/build/src/elements/http/UrlParamsForm.d.ts +1 -1
- package/build/src/elements/http/UrlParamsForm.d.ts.map +1 -1
- package/build/src/elements/http/UrlParamsForm.js +2 -1
- package/build/src/elements/http/UrlParamsForm.js.map +1 -1
- package/build/src/elements/layout/SplitPanel.js +3 -3
- package/build/src/elements/layout/SplitPanel.js.map +1 -1
- package/build/src/elements/navigation/internals/AppNavigation.styles.d.ts.map +1 -1
- package/build/src/elements/navigation/internals/AppNavigation.styles.js +1 -0
- package/build/src/elements/navigation/internals/AppNavigation.styles.js.map +1 -1
- package/build/src/elements/navigation/internals/AppNavigationElement.d.ts.map +1 -1
- package/build/src/elements/navigation/internals/AppNavigationElement.js +2 -7
- package/build/src/elements/navigation/internals/AppNavigationElement.js.map +1 -1
- package/build/src/elements/project/HttpHistoryChart.d.ts +1 -1
- package/build/src/elements/project/HttpHistoryChart.d.ts.map +1 -1
- package/build/src/elements/project/HttpHistoryChart.js +1 -1
- package/build/src/elements/project/HttpHistoryChart.js.map +1 -1
- package/build/src/elements/project/HttpProjectRequest.d.ts +17 -3
- package/build/src/elements/project/HttpProjectRequest.d.ts.map +1 -1
- package/build/src/elements/project/HttpProjectRequest.js +6 -1
- package/build/src/elements/project/HttpProjectRequest.js.map +1 -1
- package/build/src/elements/project/HttpProjectRequestHistory.d.ts +2 -1
- package/build/src/elements/project/HttpProjectRequestHistory.d.ts.map +1 -1
- package/build/src/elements/project/HttpProjectRequestHistory.js +1 -1
- package/build/src/elements/project/HttpProjectRequestHistory.js.map +1 -1
- package/build/src/elements/project/ProjectNavigation.d.ts +4 -1
- package/build/src/elements/project/ProjectNavigation.d.ts.map +1 -1
- package/build/src/elements/project/ProjectNavigation.js +3 -1
- package/build/src/elements/project/ProjectNavigation.js.map +1 -1
- package/build/src/elements/project/ProjectRunReport.d.ts +2 -1
- package/build/src/elements/project/ProjectRunReport.d.ts.map +1 -1
- package/build/src/elements/project/ProjectRunReport.js +1 -1
- package/build/src/elements/project/ProjectRunReport.js.map +1 -1
- package/build/src/elements/project/ProjectRunner.d.ts +5 -1
- package/build/src/elements/project/ProjectRunner.d.ts.map +1 -1
- package/build/src/elements/project/ProjectRunner.js +2 -1
- package/build/src/elements/project/ProjectRunner.js.map +1 -1
- package/build/src/elements/project/ProjectRunnerNavigationElement.d.ts +3 -1
- package/build/src/elements/project/ProjectRunnerNavigationElement.d.ts.map +1 -1
- package/build/src/elements/project/ProjectRunnerNavigationElement.js +1 -1
- package/build/src/elements/project/ProjectRunnerNavigationElement.js.map +1 -1
- package/build/src/elements/user/internals/UserAvatar.d.ts +1 -1
- package/build/src/elements/user/internals/UserAvatar.d.ts.map +1 -1
- package/build/src/elements/user/internals/UserAvatar.js.map +1 -1
- package/build/src/events/BroadcastUiEvents.d.ts +2 -1
- package/build/src/events/BroadcastUiEvents.d.ts.map +1 -1
- package/build/src/events/BroadcastUiEvents.js.map +1 -1
- package/build/src/events/ConfigEvents.d.ts +1 -1
- package/build/src/events/ConfigEvents.d.ts.map +1 -1
- package/build/src/events/ConfigEvents.js.map +1 -1
- package/build/src/events/Events.d.ts +2 -2
- package/build/src/events/HttpClientEvents.d.ts +3 -1
- package/build/src/events/HttpClientEvents.d.ts.map +1 -1
- package/build/src/events/HttpClientEvents.js +1 -1
- package/build/src/events/HttpClientEvents.js.map +1 -1
- package/build/src/events/HttpProjectEvents.d.ts +2 -1
- package/build/src/events/HttpProjectEvents.d.ts.map +1 -1
- package/build/src/events/HttpProjectEvents.js +1 -1
- package/build/src/events/HttpProjectEvents.js.map +1 -1
- package/build/src/events/IntentEvents.d.ts +1 -1
- package/build/src/events/IntentEvents.js +1 -1
- package/build/src/events/IntentEvents.js.map +1 -1
- package/build/src/events/StoreEvents.d.ts +9 -4
- package/build/src/events/StoreEvents.d.ts.map +1 -1
- package/build/src/events/StoreEvents.js.map +1 -1
- package/build/src/events/amf/ApiEvents.d.ts +2 -2
- package/build/src/events/amf/ApiEvents.d.ts.map +1 -1
- package/build/src/events/amf/ApiEvents.js.map +1 -1
- package/build/src/events/amf/DocumentationEvents.d.ts +3 -3
- package/build/src/events/amf/DocumentationEvents.d.ts.map +1 -1
- package/build/src/events/amf/DocumentationEvents.js.map +1 -1
- package/build/src/events/amf/EndpointEvents.d.ts +4 -4
- package/build/src/events/amf/EndpointEvents.d.ts.map +1 -1
- package/build/src/events/amf/EndpointEvents.js.map +1 -1
- package/build/src/events/amf/Events.d.ts +17 -17
- package/build/src/events/amf/OperationEvents.d.ts +3 -3
- package/build/src/events/amf/OperationEvents.d.ts.map +1 -1
- package/build/src/events/amf/OperationEvents.js.map +1 -1
- package/build/src/events/amf/PayloadEvents.d.ts +2 -2
- package/build/src/events/amf/PayloadEvents.d.ts.map +1 -1
- package/build/src/events/amf/PayloadEvents.js.map +1 -1
- package/build/src/events/amf/RequestEvents.d.ts +2 -2
- package/build/src/events/amf/RequestEvents.d.ts.map +1 -1
- package/build/src/events/amf/RequestEvents.js.map +1 -1
- package/build/src/events/amf/ResponseEvents.d.ts +2 -2
- package/build/src/events/amf/ResponseEvents.d.ts.map +1 -1
- package/build/src/events/amf/ResponseEvents.js.map +1 -1
- package/build/src/events/amf/SecurityEvents.d.ts +4 -4
- package/build/src/events/amf/SecurityEvents.d.ts.map +1 -1
- package/build/src/events/amf/SecurityEvents.js.map +1 -1
- package/build/src/events/amf/ServerEvents.d.ts +4 -3
- package/build/src/events/amf/ServerEvents.d.ts.map +1 -1
- package/build/src/events/amf/ServerEvents.js.map +1 -1
- package/build/src/events/amf/TypeEvents.d.ts +4 -3
- package/build/src/events/amf/TypeEvents.d.ts.map +1 -1
- package/build/src/events/amf/TypeEvents.js.map +1 -1
- package/build/src/index.d.ts +1 -1
- package/build/src/index.d.ts.map +1 -1
- package/build/src/index.js +1 -1
- package/build/src/index.js.map +1 -1
- package/build/src/lib/UserCache.d.ts +1 -1
- package/build/src/lib/UserCache.d.ts.map +1 -1
- package/build/src/lib/UserCache.js.map +1 -1
- package/build/src/lib/http/Har.d.ts +1 -1
- package/build/src/lib/http/Har.d.ts.map +1 -1
- package/build/src/lib/http/Har.js.map +1 -1
- package/build/src/lib/http/HeadersArray.js +1 -1
- package/build/src/lib/http/HeadersArray.js.map +1 -1
- package/build/src/lib/http/Payload.d.ts +1 -1
- package/build/src/lib/http/Payload.d.ts.map +1 -1
- package/build/src/lib/http/Payload.js.map +1 -1
- package/build/src/lib/http/Url.d.ts +1 -1
- package/build/src/lib/http/Url.d.ts.map +1 -1
- package/build/src/lib/http/Url.js.map +1 -1
- package/build/src/md/chip/internals/Chip.d.ts.map +1 -1
- package/build/src/md/chip/internals/Chip.js +3 -3
- package/build/src/md/chip/internals/Chip.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 +5 -0
- package/build/src/md/dialog/internals/Dialog.styles.js.map +1 -1
- package/build/src/md/dropdown-list/internals/UiDropdownList.d.ts.map +1 -1
- package/build/src/md/dropdown-list/internals/UiDropdownList.js +3 -3
- package/build/src/md/dropdown-list/internals/UiDropdownList.js.map +1 -1
- package/build/src/md/listbox/internals/Listbox.js +2 -2
- package/build/src/md/listbox/internals/Listbox.js.map +1 -1
- package/build/src/md/snackbar/internals/Snackbar.d.ts.map +1 -1
- package/build/src/md/snackbar/internals/Snackbar.js +3 -5
- package/build/src/md/snackbar/internals/Snackbar.js.map +1 -1
- package/build/src/mixins/FileDropMixin.d.ts +1 -0
- package/build/src/mixins/FileDropMixin.d.ts.map +1 -1
- package/build/src/mixins/FileDropMixin.js +24 -12
- package/build/src/mixins/FileDropMixin.js.map +1 -1
- package/build/src/{core → reactive}/LiveData.d.ts +1 -1
- package/build/src/reactive/LiveData.d.ts.map +1 -0
- package/build/src/{core → reactive}/LiveData.js +1 -1
- package/build/src/reactive/LiveData.js.map +1 -0
- package/build/src/reactive/reactive.d.ts.map +1 -0
- package/build/src/reactive/reactive.js.map +1 -0
- package/build/src/visualization/plugin/positioning/DataModelLayout.d.ts +2 -2
- package/build/src/visualization/plugin/positioning/DataModelLayout.d.ts.map +1 -1
- package/build/src/visualization/plugin/positioning/DataModelLayout.js +1 -2
- package/build/src/visualization/plugin/positioning/DataModelLayout.js.map +1 -1
- package/build/src/visualization/plugin/positioning/WorkspaceLayout.d.ts +2 -2
- package/build/src/visualization/plugin/positioning/WorkspaceLayout.d.ts.map +1 -1
- package/build/src/visualization/plugin/positioning/WorkspaceLayout.js +1 -1
- package/build/src/visualization/plugin/positioning/WorkspaceLayout.js.map +1 -1
- package/demo/amf/api-annotation.ts +4 -3
- package/demo/amf/api-channel.ts +1 -1
- package/demo/amf/api-console.ts +21 -22
- package/demo/amf/api-documentation-document.ts +1 -1
- package/demo/amf/api-documentation.ts +3 -2
- package/demo/amf/api-navigation.ts +5 -3
- package/demo/amf/api-operation.ts +3 -2
- package/demo/amf/api-payload.ts +13 -11
- package/demo/amf/api-request.ts +4 -3
- package/demo/amf/api-resource.ts +3 -2
- package/demo/amf/api-schema-documentation.ts +13 -10
- package/demo/amf/api-security-documentation.ts +3 -2
- package/demo/amf/api-server-picker.ts +4 -2
- package/demo/amf/api-summary.ts +1 -1
- package/demo/amf/bare-components.ts +3 -3
- package/demo/amf/lib/AmfDemoPage.ts +15 -10
- package/demo/amf/oauth-authorize.ts +3 -3
- package/demo/amf/request-editor.ts +3 -3
- package/demo/elements/authorization/api-key.ts +1 -1
- package/demo/elements/authorization/basic.ts +1 -1
- package/demo/elements/authorization/bearer.ts +1 -1
- package/demo/elements/authorization/ntlm.ts +1 -1
- package/demo/elements/authorization/oauth-authorize.ts +3 -3
- package/demo/elements/authorization/oauth2.ts +2 -1
- package/demo/elements/authorization/oidc.ts +2 -1
- package/demo/elements/environment/environment-editor.ts +1 -1
- package/demo/elements/environment/server-editor.ts +1 -1
- package/demo/elements/environment/variables-editor.ts +1 -1
- package/demo/elements/har/har-viewer.ts +1 -1
- package/demo/elements/highlight/marked-highlight.ts +1 -1
- package/demo/elements/http/body-editor.ts +1 -1
- package/demo/elements/http/headers.ts +1 -1
- package/demo/elements/http/http-assertions.ts +2 -2
- package/demo/elements/http/http-flows.ts +2 -2
- package/demo/elements/http/request-editor.ts +4 -10
- package/demo/elements/http/request-log.ts +4 -1
- package/demo/elements/http/url-editing.ts +1 -1
- package/demo/elements/md/list/list.ts +1 -1
- package/demo/elements/project/project-run-report.ts +3 -7
- package/demo/elements/project/request-editor.ts +8 -11
- package/demo/index.html +0 -3
- package/demo/layout/index.ts +2 -2
- package/demo/lib/DemoBindings.ts +1 -1
- package/demo/lib/amf/AmfPartialGraphStore.ts +39 -35
- package/demo/lib/amf/AmfPartialModel.ts +52 -52
- package/dev/amf-server/AmfService.js +2 -2
- package/license.md +15 -0
- package/package.json +48 -42
- package/src/amf/lib/AmfInputParser.ts +19 -11
- package/src/amf/lib/AmfParameters.ts +42 -45
- package/src/amf/lib/AmfSecurity.ts +3 -3
- package/src/amf/lib/Oauth2RamlCustomData.ts +44 -40
- package/src/amf/lib/PayloadUtils.ts +8 -10
- package/src/amf/lib/QueryParameterProcessor.ts +24 -23
- package/src/amf/lib/Utils.ts +23 -13
- package/src/amf/store/AmfGraphStore.ts +4 -3
- package/src/amf/store/AmfStore.ts +32 -24
- package/src/amf/store/InMemAmfGraphStore.ts +40 -36
- package/src/amf/types.ts +16 -12
- package/src/bindings/base/ConfigurationBindings.ts +1 -1
- package/src/bindings/base/IoThread.ts +1 -1
- package/src/bindings/base/PlatformBindings.ts +1 -1
- package/src/bindings/web/WebConfigurationBindings.ts +1 -1
- package/src/code-snippets/Bash/CurlSnippet.ts +2 -1
- package/src/code-snippets/C/CcurlSnippet.ts +2 -1
- package/src/code-snippets/CodeSnippet.ts +3 -1
- package/src/code-snippets/Dart/DartSnippet.ts +2 -1
- package/src/code-snippets/HTTP/RawSnippet.ts +2 -1
- package/src/code-snippets/Java/PlatformSnippet.ts +2 -1
- package/src/code-snippets/Java/SpringSnippet.ts +2 -1
- package/src/code-snippets/JavaScript/AsyncFetchSnippet.ts +2 -1
- package/src/code-snippets/JavaScript/AxiosSnippet.ts +2 -1
- package/src/code-snippets/JavaScript/FetchSnippet.ts +2 -1
- package/src/code-snippets/JavaScript/NodeSnippet.ts +2 -1
- package/src/code-snippets/JavaScript/XhrSnippet.ts +2 -1
- package/src/code-snippets/JavaScript/jQuerySnippet.ts +2 -1
- package/src/code-snippets/Python/Python27Snippet.ts +2 -1
- package/src/code-snippets/Python/Python31Snippet.ts +2 -1
- package/src/code-snippets/Python/RequestsSnippet.ts +2 -1
- package/src/controllers/LiveDataController.ts +1 -1
- package/src/core/Activity.ts +38 -1
- package/src/core/ActivityManager.ts +24 -1
- package/src/core/Fragment.ts +12 -0
- package/src/core/FragmentManager.ts +1 -1
- package/src/core/ModalActivity.ts +1 -1
- package/src/directives/live.ts +1 -1
- package/src/elements/amf/ApiAnnotationDocument.element.ts +9 -7
- package/src/elements/amf/ApiAuthorizationEditor.element.ts +21 -19
- package/src/elements/amf/ApiChannelDocument.element.ts +2 -5
- package/src/elements/amf/ApiDocumentation.element.ts +4 -3
- package/src/elements/amf/ApiDocumentationBase.ts +7 -4
- package/src/elements/amf/ApiDocumentationDocument.element.ts +4 -4
- package/src/elements/amf/ApiNavigation.element.ts +18 -12
- package/src/elements/amf/ApiOperationDocument.element.ts +45 -39
- package/src/elements/amf/ApiParameterDocument.element.ts +5 -4
- package/src/elements/amf/ApiParametrizedSecurityScheme.element.ts +15 -10
- package/src/elements/amf/ApiPayloadDocument.element.ts +6 -6
- package/src/elements/amf/ApiRequest.element.ts +2 -1
- package/src/elements/amf/ApiRequestDocument.element.ts +22 -19
- package/src/elements/amf/ApiRequestEditor.element.ts +34 -32
- package/src/elements/amf/ApiResourceDocument.element.ts +18 -17
- package/src/elements/amf/ApiResponseDocument.element.ts +14 -9
- package/src/elements/amf/ApiSchemaDocument.element.ts +55 -41
- package/src/elements/amf/ApiSecurityDocument.element.ts +35 -25
- package/src/elements/amf/ApiSecurityRequirementDocument.element.ts +4 -4
- package/src/elements/amf/ApiServerPicker.element.ts +6 -5
- package/src/elements/amf/ApiSummary.element.ts +21 -17
- package/src/elements/amf/SchemaCommonTemplates.ts +28 -17
- package/src/elements/amf/authorization/AmfApiKey.ts +15 -11
- package/src/elements/amf/authorization/AmfBasic.ts +6 -6
- package/src/elements/amf/authorization/AmfBearer.ts +6 -6
- package/src/elements/amf/authorization/AmfOauth2.ts +57 -47
- package/src/elements/amf/authorization/AmfOidc.ts +10 -7
- package/src/elements/amf/authorization/AmfPassThrough.ts +12 -12
- package/src/elements/amf/authorization/AmfRamlCustom.ts +14 -14
- package/src/elements/authorization/OAuth2Authorize.ts +5 -8
- package/src/elements/authorization/OidcAuthorize.ts +5 -9
- package/src/elements/authorization/ui/ApiKeyAuthorization.ts +1 -1
- package/src/elements/authorization/ui/Authorization.ts +1 -1
- package/src/elements/authorization/ui/BasicAuthorization.ts +1 -1
- package/src/elements/authorization/ui/BearerAuthorization.ts +1 -1
- package/src/elements/authorization/ui/CcAuthorization.ts +5 -8
- package/src/elements/authorization/ui/NtlmAuthorization.ts +1 -1
- package/src/elements/authorization/ui/OAuth2Authorization.ts +9 -10
- package/src/elements/authorization/ui/OidcAuthorization.ts +7 -7
- package/src/elements/code/HttpSnippets.ts +1 -1
- package/src/elements/data-table/{internals/DataTable.ts → DataTable.ts} +2 -2
- package/src/elements/dialog/internals/DeleteCookieAction.element.ts +4 -1
- package/src/elements/dialog/internals/SetCookieAction.element.ts +2 -1
- package/src/elements/environment/EnvironmentEditor.ts +5 -10
- package/src/elements/environment/ServerEditor.ts +2 -1
- package/src/elements/environment/VariablesEditor.ts +1 -1
- package/src/elements/file-system/internals/Breadcrumbs.ts +3 -2
- package/src/elements/har/HarViewer.ts +1 -1
- package/src/elements/http/BodyEditor.ts +5 -7
- package/src/elements/http/BodyMultipartEditor.ts +7 -7
- package/src/elements/http/BodyUrlEncodedEditor.ts +1 -1
- package/src/elements/http/CertificateAdd.element.ts +2 -1
- package/src/elements/http/HeadersForm.ts +6 -3
- package/src/elements/http/HttpAssertions.element.ts +2 -1
- package/src/elements/http/HttpFlows.element.ts +2 -1
- package/src/elements/http/HttpFlowsUi.ts +8 -8
- package/src/elements/http/LogBody.ts +6 -1
- package/src/elements/http/LogHeaders.ts +6 -9
- package/src/elements/http/LogTimings.ts +1 -1
- package/src/elements/http/RequestConfigElement.ts +1 -1
- package/src/elements/http/RequestEditor.ts +11 -18
- package/src/elements/http/RequestLog.ts +8 -11
- package/src/elements/http/UrlEncodeUtils.ts +1 -1
- package/src/elements/http/UrlInput.ts +1 -1
- package/src/elements/http/UrlParamsForm.ts +2 -1
- package/src/elements/layout/SplitPanel.ts +3 -3
- package/src/elements/navigation/internals/AppNavigation.styles.ts +1 -0
- package/src/elements/navigation/internals/AppNavigationElement.ts +2 -7
- package/src/elements/project/HttpHistoryChart.ts +3 -1
- package/src/elements/project/HttpProjectRequest.ts +21 -28
- package/src/elements/project/HttpProjectRequestHistory.ts +5 -8
- package/src/elements/project/ProjectNavigation.ts +5 -9
- package/src/elements/project/ProjectRunReport.ts +5 -7
- package/src/elements/project/ProjectRunner.ts +9 -12
- package/src/elements/project/ProjectRunnerNavigationElement.ts +3 -1
- package/src/elements/user/internals/UserAvatar.ts +1 -1
- package/src/events/BroadcastUiEvents.ts +2 -6
- package/src/events/ConfigEvents.ts +1 -1
- package/src/events/HttpClientEvents.ts +3 -7
- package/src/events/HttpProjectEvents.ts +5 -5
- package/src/events/IntentEvents.ts +1 -1
- package/src/events/StoreEvents.ts +10 -16
- package/src/events/amf/ApiEvents.ts +3 -3
- package/src/events/amf/DocumentationEvents.ts +5 -5
- package/src/events/amf/EndpointEvents.ts +7 -7
- package/src/events/amf/OperationEvents.ts +5 -5
- package/src/events/amf/PayloadEvents.ts +3 -3
- package/src/events/amf/RequestEvents.ts +3 -3
- package/src/events/amf/ResponseEvents.ts +3 -3
- package/src/events/amf/SecurityEvents.ts +11 -7
- package/src/events/amf/ServerEvents.ts +5 -4
- package/src/events/amf/TypeEvents.ts +6 -5
- package/src/index.ts +1 -1
- package/src/lib/UserCache.ts +1 -1
- package/src/lib/http/Har.ts +1 -1
- package/src/lib/http/HeadersArray.ts +1 -1
- package/src/lib/http/Payload.ts +1 -1
- package/src/lib/http/Url.ts +1 -1
- package/src/md/chip/internals/Chip.ts +3 -3
- package/src/md/dialog/internals/Dialog.styles.ts +5 -0
- package/src/md/dropdown-list/internals/UiDropdownList.ts +3 -3
- package/src/md/listbox/internals/Listbox.ts +2 -2
- package/src/md/snackbar/internals/Snackbar.ts +3 -5
- package/src/mixins/FileDropMixin.ts +28 -11
- package/src/{core → reactive}/LiveData.ts +1 -1
- package/src/visualization/plugin/positioning/DataModelLayout.ts +3 -2
- package/src/visualization/plugin/positioning/WorkspaceLayout.ts +3 -3
- package/test/core/live_data.spec.ts +1 -1
- package/test/elements/data-table/DataTable.browser.test.ts +2 -2
- package/test/elements/http/CertificateAdd.test.ts +5 -1
- package/test/elements/layout/SplitPanel.test.ts +1 -1
- package/web-test-runner.config.js +1 -1
- package/build/src/apps/activities/ApiActivity.d.ts +0 -21
- package/build/src/apps/activities/ApiActivity.d.ts.map +0 -1
- package/build/src/apps/activities/ApiActivity.js +0 -23
- package/build/src/apps/activities/ApiActivity.js.map +0 -1
- package/build/src/apps/activities/AppStartActivity.d.ts +0 -61
- package/build/src/apps/activities/AppStartActivity.d.ts.map +0 -1
- package/build/src/apps/activities/AppStartActivity.js +0 -100
- package/build/src/apps/activities/AppStartActivity.js.map +0 -1
- package/build/src/apps/activities/BrowseDataDomainActivity.d.ts +0 -375
- package/build/src/apps/activities/BrowseDataDomainActivity.d.ts.map +0 -1
- package/build/src/apps/activities/BrowseDataDomainActivity.js +0 -943
- package/build/src/apps/activities/BrowseDataDomainActivity.js.map +0 -1
- package/build/src/apps/activities/CreateFolderDialogActivity.d.ts +0 -30
- package/build/src/apps/activities/CreateFolderDialogActivity.d.ts.map +0 -1
- package/build/src/apps/activities/CreateFolderDialogActivity.js +0 -135
- package/build/src/apps/activities/CreateFolderDialogActivity.js.map +0 -1
- package/build/src/apps/activities/DeleteDataDomainActivity.d.ts +0 -47
- package/build/src/apps/activities/DeleteDataDomainActivity.d.ts.map +0 -1
- package/build/src/apps/activities/DeleteDataDomainActivity.js +0 -162
- package/build/src/apps/activities/DeleteDataDomainActivity.js.map +0 -1
- package/build/src/apps/activities/LoadingActivity.d.ts +0 -26
- package/build/src/apps/activities/LoadingActivity.d.ts.map +0 -1
- package/build/src/apps/activities/LoadingActivity.js +0 -67
- package/build/src/apps/activities/LoadingActivity.js.map +0 -1
- package/build/src/apps/activities/LoginActivity.d.ts +0 -26
- package/build/src/apps/activities/LoginActivity.d.ts.map +0 -1
- package/build/src/apps/activities/LoginActivity.js +0 -186
- package/build/src/apps/activities/LoginActivity.js.map +0 -1
- package/build/src/apps/activities/OrganizationSelectionActivity.d.ts +0 -35
- package/build/src/apps/activities/OrganizationSelectionActivity.d.ts.map +0 -1
- package/build/src/apps/activities/OrganizationSelectionActivity.js +0 -107
- package/build/src/apps/activities/OrganizationSelectionActivity.js.map +0 -1
- package/build/src/apps/activities/OrganizationSetupActivity.d.ts +0 -40
- package/build/src/apps/activities/OrganizationSetupActivity.d.ts.map +0 -1
- package/build/src/apps/activities/OrganizationSetupActivity.js +0 -171
- package/build/src/apps/activities/OrganizationSetupActivity.js.map +0 -1
- package/build/src/apps/activities/RenameFileDialogActivity.d.ts +0 -32
- package/build/src/apps/activities/RenameFileDialogActivity.d.ts.map +0 -1
- package/build/src/apps/activities/RenameFileDialogActivity.js +0 -168
- package/build/src/apps/activities/RenameFileDialogActivity.js.map +0 -1
- package/build/src/apps/activities/styles/BrowseDataDomain.styles.d.ts +0 -3
- package/build/src/apps/activities/styles/BrowseDataDomain.styles.d.ts.map +0 -1
- package/build/src/apps/activities/styles/BrowseDataDomain.styles.js +0 -28
- package/build/src/apps/activities/styles/BrowseDataDomain.styles.js.map +0 -1
- package/build/src/apps/activities/styles/DeleteDataDomain.styles.d.ts +0 -3
- package/build/src/apps/activities/styles/DeleteDataDomain.styles.d.ts.map +0 -1
- package/build/src/apps/activities/styles/DeleteDataDomain.styles.js +0 -26
- package/build/src/apps/activities/styles/DeleteDataDomain.styles.js.map +0 -1
- package/build/src/apps/activities/styles/login.d.ts +0 -3
- package/build/src/apps/activities/styles/login.d.ts.map +0 -1
- package/build/src/apps/activities/styles/login.js +0 -66
- package/build/src/apps/activities/styles/login.js.map +0 -1
- package/build/src/apps/api_service.d.ts +0 -18
- package/build/src/apps/api_service.d.ts.map +0 -1
- package/build/src/apps/api_service.js +0 -4
- package/build/src/apps/api_service.js.map +0 -1
- package/build/src/apps/fragments/loading.d.ts +0 -21
- package/build/src/apps/fragments/loading.d.ts.map +0 -1
- package/build/src/apps/fragments/loading.js +0 -63
- package/build/src/apps/fragments/loading.js.map +0 -1
- package/build/src/apps/quick-api/Intents.d.ts +0 -12
- package/build/src/apps/quick-api/Intents.d.ts.map +0 -1
- package/build/src/apps/quick-api/Intents.js +0 -12
- package/build/src/apps/quick-api/Intents.js.map +0 -1
- package/build/src/apps/quick-api/QuickApiApp.d.ts +0 -10
- package/build/src/apps/quick-api/QuickApiApp.d.ts.map +0 -1
- package/build/src/apps/quick-api/QuickApiApp.js +0 -61
- package/build/src/apps/quick-api/QuickApiApp.js.map +0 -1
- package/build/src/apps/quick-api/Schema.styles.d.ts +0 -3
- package/build/src/apps/quick-api/Schema.styles.d.ts.map +0 -1
- package/build/src/apps/quick-api/Schema.styles.js +0 -95
- package/build/src/apps/quick-api/Schema.styles.js.map +0 -1
- package/build/src/apps/quick-api/SchemaEditorApp.d.ts +0 -9
- package/build/src/apps/quick-api/SchemaEditorApp.d.ts.map +0 -1
- package/build/src/apps/quick-api/SchemaEditorApp.js +0 -60
- package/build/src/apps/quick-api/SchemaEditorApp.js.map +0 -1
- package/build/src/apps/quick-api/SchemaScreenActivity.d.ts +0 -49
- package/build/src/apps/quick-api/SchemaScreenActivity.d.ts.map +0 -1
- package/build/src/apps/quick-api/SchemaScreenActivity.js +0 -285
- package/build/src/apps/quick-api/SchemaScreenActivity.js.map +0 -1
- package/build/src/apps/quick-api/SchemaScreenViewModel.d.ts +0 -43
- package/build/src/apps/quick-api/SchemaScreenViewModel.d.ts.map +0 -1
- package/build/src/apps/quick-api/SchemaScreenViewModel.js +0 -40
- package/build/src/apps/quick-api/SchemaScreenViewModel.js.map +0 -1
- package/build/src/apps/quick-api/Start.styles.d.ts +0 -3
- package/build/src/apps/quick-api/Start.styles.d.ts.map +0 -1
- package/build/src/apps/quick-api/Start.styles.js +0 -125
- package/build/src/apps/quick-api/Start.styles.js.map +0 -1
- package/build/src/apps/quick-api/StartScreenActivity.d.ts +0 -46
- package/build/src/apps/quick-api/StartScreenActivity.d.ts.map +0 -1
- package/build/src/apps/quick-api/StartScreenActivity.js +0 -70
- package/build/src/apps/quick-api/StartScreenActivity.js.map +0 -1
- package/build/src/apps/quick-api/filesystem/Files.styles.d.ts +0 -3
- package/build/src/apps/quick-api/filesystem/Files.styles.d.ts.map +0 -1
- package/build/src/apps/quick-api/filesystem/Files.styles.js +0 -72
- package/build/src/apps/quick-api/filesystem/Files.styles.js.map +0 -1
- package/build/src/apps/quick-api/filesystem/FilesLib.d.ts +0 -10
- package/build/src/apps/quick-api/filesystem/FilesLib.d.ts.map +0 -1
- package/build/src/apps/quick-api/filesystem/FilesLib.js +0 -41
- package/build/src/apps/quick-api/filesystem/FilesLib.js.map +0 -1
- package/build/src/apps/quick-api/fragments/FilesystemFragment.d.ts +0 -92
- package/build/src/apps/quick-api/fragments/FilesystemFragment.d.ts.map +0 -1
- package/build/src/apps/quick-api/fragments/FilesystemFragment.js +0 -400
- package/build/src/apps/quick-api/fragments/FilesystemFragment.js.map +0 -1
- package/build/src/apps/quick-api/fragments/HeaderFragment.d.ts +0 -23
- package/build/src/apps/quick-api/fragments/HeaderFragment.d.ts.map +0 -1
- package/build/src/apps/quick-api/fragments/HeaderFragment.js +0 -64
- package/build/src/apps/quick-api/fragments/HeaderFragment.js.map +0 -1
- package/build/src/apps/quick-api/fragments/MainFragment.d.ts +0 -17
- package/build/src/apps/quick-api/fragments/MainFragment.d.ts.map +0 -1
- package/build/src/apps/quick-api/fragments/MainFragment.js +0 -39
- package/build/src/apps/quick-api/fragments/MainFragment.js.map +0 -1
- package/build/src/apps/quick-api/fragments/NavigationFragment.d.ts +0 -19
- package/build/src/apps/quick-api/fragments/NavigationFragment.d.ts.map +0 -1
- package/build/src/apps/quick-api/fragments/NavigationFragment.js +0 -158
- package/build/src/apps/quick-api/fragments/NavigationFragment.js.map +0 -1
- package/build/src/apps/quick-api/fragments/SchemaEditorEmptyState.fragment.d.ts +0 -9
- package/build/src/apps/quick-api/fragments/SchemaEditorEmptyState.fragment.d.ts.map +0 -1
- package/build/src/apps/quick-api/fragments/SchemaEditorEmptyState.fragment.js +0 -11
- package/build/src/apps/quick-api/fragments/SchemaEditorEmptyState.fragment.js.map +0 -1
- package/build/src/apps/quick-api/fragments/SchemaEditorHost.d.ts +0 -56
- package/build/src/apps/quick-api/fragments/SchemaEditorHost.d.ts.map +0 -1
- package/build/src/apps/quick-api/fragments/SchemaEditorHost.js +0 -241
- package/build/src/apps/quick-api/fragments/SchemaEditorHost.js.map +0 -1
- package/build/src/apps/quick-api/fragments/SchemaEditorHost.styles.d.ts +0 -3
- package/build/src/apps/quick-api/fragments/SchemaEditorHost.styles.d.ts.map +0 -1
- package/build/src/apps/quick-api/fragments/SchemaEditorHost.styles.js +0 -22
- package/build/src/apps/quick-api/fragments/SchemaEditorHost.styles.js.map +0 -1
- package/build/src/apps/quick-api/fragments/SchemaHeaderFragment.d.ts +0 -20
- package/build/src/apps/quick-api/fragments/SchemaHeaderFragment.d.ts.map +0 -1
- package/build/src/apps/quick-api/fragments/SchemaHeaderFragment.js +0 -106
- package/build/src/apps/quick-api/fragments/SchemaHeaderFragment.js.map +0 -1
- package/build/src/apps/quick-api/fragments/SchemaNavigation.styles.d.ts +0 -3
- package/build/src/apps/quick-api/fragments/SchemaNavigation.styles.d.ts.map +0 -1
- package/build/src/apps/quick-api/fragments/SchemaNavigation.styles.js +0 -16
- package/build/src/apps/quick-api/fragments/SchemaNavigation.styles.js.map +0 -1
- package/build/src/apps/quick-api/fragments/SchemaNavigationFragment.d.ts +0 -45
- package/build/src/apps/quick-api/fragments/SchemaNavigationFragment.d.ts.map +0 -1
- package/build/src/apps/quick-api/fragments/SchemaNavigationFragment.js +0 -282
- package/build/src/apps/quick-api/fragments/SchemaNavigationFragment.js.map +0 -1
- package/build/src/apps/quick-api/fragments/TrashFragment.d.ts +0 -40
- package/build/src/apps/quick-api/fragments/TrashFragment.d.ts.map +0 -1
- package/build/src/apps/quick-api/fragments/TrashFragment.js +0 -179
- package/build/src/apps/quick-api/fragments/TrashFragment.js.map +0 -1
- package/build/src/apps/quick-api/lib/SchemaContextualMenu.d.ts +0 -6
- package/build/src/apps/quick-api/lib/SchemaContextualMenu.d.ts.map +0 -1
- package/build/src/apps/quick-api/lib/SchemaContextualMenu.js +0 -61
- package/build/src/apps/quick-api/lib/SchemaContextualMenu.js.map +0 -1
- package/build/src/apps/quick-api/lib/UiLib.d.ts +0 -8
- package/build/src/apps/quick-api/lib/UiLib.d.ts.map +0 -1
- package/build/src/apps/quick-api/lib/UiLib.js +0 -16
- package/build/src/apps/quick-api/lib/UiLib.js.map +0 -1
- package/build/src/apps/services/ConfigurationService.d.ts +0 -12
- package/build/src/apps/services/ConfigurationService.d.ts.map +0 -1
- package/build/src/apps/services/ConfigurationService.js +0 -23
- package/build/src/apps/services/ConfigurationService.js.map +0 -1
- package/build/src/apps/services/LoggingService.d.ts +0 -17
- package/build/src/apps/services/LoggingService.d.ts.map +0 -1
- package/build/src/apps/services/LoggingService.js +0 -37
- package/build/src/apps/services/LoggingService.js.map +0 -1
- package/build/src/apps/services/OrganizationService.d.ts +0 -54
- package/build/src/apps/services/OrganizationService.d.ts.map +0 -1
- package/build/src/apps/services/OrganizationService.js +0 -133
- package/build/src/apps/services/OrganizationService.js.map +0 -1
- package/build/src/apps/services/SdkService.d.ts +0 -17
- package/build/src/apps/services/SdkService.d.ts.map +0 -1
- package/build/src/apps/services/SdkService.js +0 -36
- package/build/src/apps/services/SdkService.js.map +0 -1
- package/build/src/apps/services/TransmitService.d.ts +0 -10
- package/build/src/apps/services/TransmitService.d.ts.map +0 -1
- package/build/src/apps/services/TransmitService.js +0 -17
- package/build/src/apps/services/TransmitService.js.map +0 -1
- package/build/src/apps/services/UserService.d.ts +0 -23
- package/build/src/apps/services/UserService.d.ts.map +0 -1
- package/build/src/apps/services/UserService.js +0 -62
- package/build/src/apps/services/UserService.js.map +0 -1
- package/build/src/apps/transmit_client.d.ts +0 -3
- package/build/src/apps/transmit_client.d.ts.map +0 -1
- package/build/src/apps/transmit_client.js +0 -5
- package/build/src/apps/transmit_client.js.map +0 -1
- package/build/src/apps/types.d.ts +0 -11
- package/build/src/apps/types.d.ts.map +0 -1
- package/build/src/apps/types.js +0 -2
- package/build/src/apps/types.js.map +0 -1
- package/build/src/boot.d.ts +0 -3
- package/build/src/boot.d.ts.map +0 -1
- package/build/src/boot.js +0 -17
- package/build/src/boot.js.map +0 -1
- package/build/src/builders/DialogBuilder.d.ts +0 -131
- package/build/src/builders/DialogBuilder.d.ts.map +0 -1
- package/build/src/builders/DialogBuilder.js +0 -227
- package/build/src/builders/DialogBuilder.js.map +0 -1
- package/build/src/core/LiveData.d.ts.map +0 -1
- package/build/src/core/LiveData.js.map +0 -1
- package/build/src/core/container.d.ts +0 -14
- package/build/src/core/container.d.ts.map +0 -1
- package/build/src/core/container.js +0 -4
- package/build/src/core/container.js.map +0 -1
- package/build/src/core/reactive/reactive.d.ts.map +0 -1
- package/build/src/core/reactive/reactive.js.map +0 -1
- package/build/src/data/BreadcrumbsModel.d.ts +0 -36
- package/build/src/data/BreadcrumbsModel.d.ts.map +0 -1
- package/build/src/data/BreadcrumbsModel.js +0 -65
- package/build/src/data/BreadcrumbsModel.js.map +0 -1
- package/build/src/data/FileModel.d.ts +0 -35
- package/build/src/data/FileModel.d.ts.map +0 -1
- package/build/src/data/FileModel.js +0 -54
- package/build/src/data/FileModel.js.map +0 -1
- package/build/src/data/FilesModel.d.ts +0 -71
- package/build/src/data/FilesModel.d.ts.map +0 -1
- package/build/src/data/FilesModel.js +0 -166
- package/build/src/data/FilesModel.js.map +0 -1
- package/build/src/data/PatchableFileModel.d.ts +0 -141
- package/build/src/data/PatchableFileModel.d.ts.map +0 -1
- package/build/src/data/PatchableFileModel.js +0 -212
- package/build/src/data/PatchableFileModel.js.map +0 -1
- package/build/src/data/PatchableLiveDataContentModel.d.ts +0 -13
- package/build/src/data/PatchableLiveDataContentModel.d.ts.map +0 -1
- package/build/src/data/PatchableLiveDataContentModel.js +0 -18
- package/build/src/data/PatchableLiveDataContentModel.js.map +0 -1
- package/build/src/data/PatchableRawContentModel.d.ts +0 -14
- package/build/src/data/PatchableRawContentModel.d.ts.map +0 -1
- package/build/src/data/PatchableRawContentModel.js +0 -32
- package/build/src/data/PatchableRawContentModel.js.map +0 -1
- package/build/src/data/TrashModel.d.ts +0 -50
- package/build/src/data/TrashModel.d.ts.map +0 -1
- package/build/src/data/TrashModel.js +0 -102
- package/build/src/data/TrashModel.js.map +0 -1
- package/build/src/elements/data-table/filesystem-table.d.ts +0 -11
- package/build/src/elements/data-table/filesystem-table.d.ts.map +0 -1
- package/build/src/elements/data-table/filesystem-table.js +0 -28
- package/build/src/elements/data-table/filesystem-table.js.map +0 -1
- package/build/src/elements/data-table/internals/DataTable.d.ts.map +0 -1
- package/build/src/elements/data-table/internals/DataTable.js.map +0 -1
- package/build/src/elements/data-table/internals/DataTable.styles.d.ts.map +0 -1
- package/build/src/elements/data-table/internals/DataTable.styles.js.map +0 -1
- package/build/src/elements/data-table/internals/Filesystem.styles.d.ts +0 -3
- package/build/src/elements/data-table/internals/Filesystem.styles.d.ts.map +0 -1
- package/build/src/elements/data-table/internals/Filesystem.styles.js +0 -17
- package/build/src/elements/data-table/internals/Filesystem.styles.js.map +0 -1
- package/build/src/elements/data-table/internals/FilesystemDataTable.d.ts +0 -35
- package/build/src/elements/data-table/internals/FilesystemDataTable.d.ts.map +0 -1
- package/build/src/elements/data-table/internals/FilesystemDataTable.js +0 -237
- package/build/src/elements/data-table/internals/FilesystemDataTable.js.map +0 -1
- package/build/src/elements/data-table/internals/TrashDataTable.d.ts +0 -34
- package/build/src/elements/data-table/internals/TrashDataTable.d.ts.map +0 -1
- package/build/src/elements/data-table/internals/TrashDataTable.js +0 -173
- package/build/src/elements/data-table/internals/TrashDataTable.js.map +0 -1
- package/build/src/elements/data-table/trash-table.d.ts +0 -11
- package/build/src/elements/data-table/trash-table.d.ts.map +0 -1
- package/build/src/elements/data-table/trash-table.js +0 -28
- package/build/src/elements/data-table/trash-table.js.map +0 -1
- package/build/src/elements/modeling/domain-association-editor.d.ts +0 -10
- package/build/src/elements/modeling/domain-association-editor.d.ts.map +0 -1
- package/build/src/elements/modeling/domain-association-editor.js +0 -28
- package/build/src/elements/modeling/domain-association-editor.js.map +0 -1
- package/build/src/elements/modeling/domain-entity-editor.d.ts +0 -10
- package/build/src/elements/modeling/domain-entity-editor.d.ts.map +0 -1
- package/build/src/elements/modeling/domain-entity-editor.js +0 -30
- package/build/src/elements/modeling/domain-entity-editor.js.map +0 -1
- package/build/src/elements/modeling/domain-model-editor.d.ts +0 -10
- package/build/src/elements/modeling/domain-model-editor.d.ts.map +0 -1
- package/build/src/elements/modeling/domain-model-editor.js +0 -30
- package/build/src/elements/modeling/domain-model-editor.js.map +0 -1
- package/build/src/elements/modeling/domain-namespace-editor.d.ts +0 -10
- package/build/src/elements/modeling/domain-namespace-editor.d.ts.map +0 -1
- package/build/src/elements/modeling/domain-namespace-editor.js +0 -30
- package/build/src/elements/modeling/domain-namespace-editor.js.map +0 -1
- package/build/src/elements/modeling/domain-navigation.d.ts +0 -10
- package/build/src/elements/modeling/domain-navigation.d.ts.map +0 -1
- package/build/src/elements/modeling/domain-navigation.js +0 -28
- package/build/src/elements/modeling/domain-navigation.js.map +0 -1
- package/build/src/elements/modeling/domain-property-editor.d.ts +0 -10
- package/build/src/elements/modeling/domain-property-editor.d.ts.map +0 -1
- package/build/src/elements/modeling/domain-property-editor.js +0 -29
- package/build/src/elements/modeling/domain-property-editor.js.map +0 -1
- package/build/src/elements/modeling/internals/DomainAssociationEditor.d.ts +0 -100
- package/build/src/elements/modeling/internals/DomainAssociationEditor.d.ts.map +0 -1
- package/build/src/elements/modeling/internals/DomainAssociationEditor.js +0 -535
- package/build/src/elements/modeling/internals/DomainAssociationEditor.js.map +0 -1
- package/build/src/elements/modeling/internals/DomainEntityEditor.d.ts +0 -130
- package/build/src/elements/modeling/internals/DomainEntityEditor.d.ts.map +0 -1
- package/build/src/elements/modeling/internals/DomainEntityEditor.js +0 -809
- package/build/src/elements/modeling/internals/DomainEntityEditor.js.map +0 -1
- package/build/src/elements/modeling/internals/DomainModelEditor.d.ts +0 -19
- package/build/src/elements/modeling/internals/DomainModelEditor.d.ts.map +0 -1
- package/build/src/elements/modeling/internals/DomainModelEditor.js +0 -235
- package/build/src/elements/modeling/internals/DomainModelEditor.js.map +0 -1
- package/build/src/elements/modeling/internals/DomainNamespaceEditor.d.ts +0 -20
- package/build/src/elements/modeling/internals/DomainNamespaceEditor.d.ts.map +0 -1
- package/build/src/elements/modeling/internals/DomainNamespaceEditor.js +0 -200
- package/build/src/elements/modeling/internals/DomainNamespaceEditor.js.map +0 -1
- package/build/src/elements/modeling/internals/DomainNavigation.d.ts +0 -33
- package/build/src/elements/modeling/internals/DomainNavigation.d.ts.map +0 -1
- package/build/src/elements/modeling/internals/DomainNavigation.js +0 -286
- package/build/src/elements/modeling/internals/DomainNavigation.js.map +0 -1
- package/build/src/elements/modeling/internals/DomainPropertyEditor.d.ts +0 -271
- package/build/src/elements/modeling/internals/DomainPropertyEditor.d.ts.map +0 -1
- package/build/src/elements/modeling/internals/DomainPropertyEditor.js +0 -1096
- package/build/src/elements/modeling/internals/DomainPropertyEditor.js.map +0 -1
- package/build/src/elements/modeling/internals/ModelingElement.d.ts +0 -26
- package/build/src/elements/modeling/internals/ModelingElement.d.ts.map +0 -1
- package/build/src/elements/modeling/internals/ModelingElement.js +0 -66
- package/build/src/elements/modeling/internals/ModelingElement.js.map +0 -1
- package/build/src/elements/modeling/internals/lib/UiMapping.d.ts +0 -37
- package/build/src/elements/modeling/internals/lib/UiMapping.d.ts.map +0 -1
- package/build/src/elements/modeling/internals/lib/UiMapping.js +0 -208
- package/build/src/elements/modeling/internals/lib/UiMapping.js.map +0 -1
- package/build/src/elements/modeling/internals/styles/DomainEntityEditor.styles.d.ts +0 -3
- package/build/src/elements/modeling/internals/styles/DomainEntityEditor.styles.d.ts.map +0 -1
- package/build/src/elements/modeling/internals/styles/DomainEntityEditor.styles.js +0 -83
- package/build/src/elements/modeling/internals/styles/DomainEntityEditor.styles.js.map +0 -1
- package/build/src/elements/modeling/internals/styles/DomainModelEditor.styles.d.ts +0 -3
- package/build/src/elements/modeling/internals/styles/DomainModelEditor.styles.d.ts.map +0 -1
- package/build/src/elements/modeling/internals/styles/DomainModelEditor.styles.js +0 -7
- package/build/src/elements/modeling/internals/styles/DomainModelEditor.styles.js.map +0 -1
- package/build/src/elements/modeling/internals/styles/DomainNamespaceEditor.styles.d.ts +0 -3
- package/build/src/elements/modeling/internals/styles/DomainNamespaceEditor.styles.d.ts.map +0 -1
- package/build/src/elements/modeling/internals/styles/DomainNamespaceEditor.styles.js +0 -7
- package/build/src/elements/modeling/internals/styles/DomainNamespaceEditor.styles.js.map +0 -1
- package/build/src/elements/modeling/internals/styles/DomainNavigation.styles.d.ts +0 -3
- package/build/src/elements/modeling/internals/styles/DomainNavigation.styles.d.ts.map +0 -1
- package/build/src/elements/modeling/internals/styles/DomainNavigation.styles.js +0 -27
- package/build/src/elements/modeling/internals/styles/DomainNavigation.styles.js.map +0 -1
- package/build/src/elements/modeling/internals/styles/DomainPropertyEditor.styles.d.ts +0 -3
- package/build/src/elements/modeling/internals/styles/DomainPropertyEditor.styles.d.ts.map +0 -1
- package/build/src/elements/modeling/internals/styles/DomainPropertyEditor.styles.js +0 -18
- package/build/src/elements/modeling/internals/styles/DomainPropertyEditor.styles.js.map +0 -1
- package/build/src/elements/modeling/internals/styles/form_styles.d.ts +0 -3
- package/build/src/elements/modeling/internals/styles/form_styles.d.ts.map +0 -1
- package/build/src/elements/modeling/internals/styles/form_styles.js +0 -63
- package/build/src/elements/modeling/internals/styles/form_styles.js.map +0 -1
- package/build/src/elements/modeling/internals/styles/learning.styles.d.ts +0 -3
- package/build/src/elements/modeling/internals/styles/learning.styles.d.ts.map +0 -1
- package/build/src/elements/modeling/internals/styles/learning.styles.js +0 -40
- package/build/src/elements/modeling/internals/styles/learning.styles.js.map +0 -1
- package/build/src/elements/modeling/types.d.ts +0 -32
- package/build/src/elements/modeling/types.d.ts.map +0 -1
- package/build/src/elements/modeling/types.js +0 -2
- package/build/src/elements/modeling/types.js.map +0 -1
- package/build/src/elements/schema-design/AssociationFormElement.d.ts +0 -34
- package/build/src/elements/schema-design/AssociationFormElement.d.ts.map +0 -1
- package/build/src/elements/schema-design/AssociationFormElement.js +0 -178
- package/build/src/elements/schema-design/AssociationFormElement.js.map +0 -1
- package/build/src/elements/schema-design/CommonStyles.d.ts +0 -3
- package/build/src/elements/schema-design/CommonStyles.d.ts.map +0 -1
- package/build/src/elements/schema-design/CommonStyles.js +0 -62
- package/build/src/elements/schema-design/CommonStyles.js.map +0 -1
- package/build/src/elements/schema-design/DataEntityEditorElement.d.ts +0 -69
- package/build/src/elements/schema-design/DataEntityEditorElement.d.ts.map +0 -1
- package/build/src/elements/schema-design/DataEntityEditorElement.js +0 -415
- package/build/src/elements/schema-design/DataEntityEditorElement.js.map +0 -1
- package/build/src/elements/schema-design/DataModelVisualizationElement.d.ts +0 -62
- package/build/src/elements/schema-design/DataModelVisualizationElement.d.ts.map +0 -1
- package/build/src/elements/schema-design/DataModelVisualizationElement.js +0 -417
- package/build/src/elements/schema-design/DataModelVisualizationElement.js.map +0 -1
- package/build/src/elements/schema-design/DataSchemaDocument.d.ts +0 -176
- package/build/src/elements/schema-design/DataSchemaDocument.d.ts.map +0 -1
- package/build/src/elements/schema-design/DataSchemaDocument.js +0 -949
- package/build/src/elements/schema-design/DataSchemaDocument.js.map +0 -1
- package/build/src/elements/schema-design/EntityFormElement.d.ts +0 -64
- package/build/src/elements/schema-design/EntityFormElement.d.ts.map +0 -1
- package/build/src/elements/schema-design/EntityFormElement.js +0 -331
- package/build/src/elements/schema-design/EntityFormElement.js.map +0 -1
- package/build/src/elements/schema-design/PropertyFormElement.d.ts +0 -96
- package/build/src/elements/schema-design/PropertyFormElement.d.ts.map +0 -1
- package/build/src/elements/schema-design/PropertyFormElement.js +0 -647
- package/build/src/elements/schema-design/PropertyFormElement.js.map +0 -1
- package/build/src/elements/schema-design/SchemaNamespaceSelector.d.ts +0 -27
- package/build/src/elements/schema-design/SchemaNamespaceSelector.d.ts.map +0 -1
- package/build/src/elements/schema-design/SchemaNamespaceSelector.js +0 -97
- package/build/src/elements/schema-design/SchemaNamespaceSelector.js.map +0 -1
- package/build/src/elements/schema-design/SchemaNamespaceSelector.styles.d.ts +0 -3
- package/build/src/elements/schema-design/SchemaNamespaceSelector.styles.d.ts.map +0 -1
- package/build/src/elements/schema-design/SchemaNamespaceSelector.styles.js +0 -28
- package/build/src/elements/schema-design/SchemaNamespaceSelector.styles.js.map +0 -1
- package/build/src/elements/schema-design/data-association-form.d.ts +0 -7
- package/build/src/elements/schema-design/data-association-form.d.ts.map +0 -1
- package/build/src/elements/schema-design/data-association-form.js +0 -3
- package/build/src/elements/schema-design/data-association-form.js.map +0 -1
- package/build/src/elements/schema-design/data-entity-editor.d.ts +0 -7
- package/build/src/elements/schema-design/data-entity-editor.d.ts.map +0 -1
- package/build/src/elements/schema-design/data-entity-editor.js +0 -3
- package/build/src/elements/schema-design/data-entity-editor.js.map +0 -1
- package/build/src/elements/schema-design/data-entity-form.d.ts +0 -7
- package/build/src/elements/schema-design/data-entity-form.d.ts.map +0 -1
- package/build/src/elements/schema-design/data-entity-form.js +0 -3
- package/build/src/elements/schema-design/data-entity-form.js.map +0 -1
- package/build/src/elements/schema-design/data-model-visualization.d.ts +0 -7
- package/build/src/elements/schema-design/data-model-visualization.d.ts.map +0 -1
- package/build/src/elements/schema-design/data-model-visualization.js +0 -3
- package/build/src/elements/schema-design/data-model-visualization.js.map +0 -1
- package/build/src/elements/schema-design/data-property-form.d.ts +0 -7
- package/build/src/elements/schema-design/data-property-form.d.ts.map +0 -1
- package/build/src/elements/schema-design/data-property-form.js +0 -3
- package/build/src/elements/schema-design/data-property-form.js.map +0 -1
- package/build/src/elements/schema-design/data-schema-document.d.ts +0 -7
- package/build/src/elements/schema-design/data-schema-document.d.ts.map +0 -1
- package/build/src/elements/schema-design/data-schema-document.js +0 -3
- package/build/src/elements/schema-design/data-schema-document.js.map +0 -1
- package/build/src/elements/schema-design/schemaCommon.d.ts +0 -3
- package/build/src/elements/schema-design/schemaCommon.d.ts.map +0 -1
- package/build/src/elements/schema-design/schemaCommon.js +0 -375
- package/build/src/elements/schema-design/schemaCommon.js.map +0 -1
- package/build/src/exceptions/FileLoadException.d.ts +0 -8
- package/build/src/exceptions/FileLoadException.d.ts.map +0 -1
- package/build/src/exceptions/FileLoadException.js +0 -8
- package/build/src/exceptions/FileLoadException.js.map +0 -1
- package/build/src/exceptions/MisconfigurationException.d.ts +0 -8
- package/build/src/exceptions/MisconfigurationException.d.ts.map +0 -1
- package/build/src/exceptions/MisconfigurationException.js +0 -8
- package/build/src/exceptions/MisconfigurationException.js.map +0 -1
- package/build/src/sdk/UiSdk.d.ts +0 -17
- package/build/src/sdk/UiSdk.d.ts.map +0 -1
- package/build/src/sdk/UiSdk.js +0 -41
- package/build/src/sdk/UiSdk.js.map +0 -1
- package/demo/apps/auth-callback.html +0 -37
- package/demo/apps/main.html +0 -23
- package/demo/apps/main.ts +0 -5
- package/demo/apps/schema.html +0 -22
- package/demo/apps/schema.ts +0 -5
- package/src/apps/activities/ApiActivity.ts +0 -40
- package/src/apps/activities/AppStartActivity.ts +0 -123
- package/src/apps/activities/BrowseDataDomainActivity.ts +0 -1073
- package/src/apps/activities/CreateFolderDialogActivity.ts +0 -128
- package/src/apps/activities/DeleteDataDomainActivity.ts +0 -150
- package/src/apps/activities/LoadingActivity.ts +0 -90
- package/src/apps/activities/LoginActivity.ts +0 -193
- package/src/apps/activities/OrganizationSelectionActivity.ts +0 -102
- package/src/apps/activities/OrganizationSetupActivity.ts +0 -146
- package/src/apps/activities/RenameFileDialogActivity.ts +0 -156
- package/src/apps/activities/styles/BrowseDataDomain.styles.ts +0 -28
- package/src/apps/activities/styles/DeleteDataDomain.styles.ts +0 -26
- package/src/apps/activities/styles/login.ts +0 -66
- package/src/apps/api_service.ts +0 -20
- package/src/apps/fragments/loading.ts +0 -84
- package/src/apps/quick-api/Intents.ts +0 -14
- package/src/apps/quick-api/QuickApiApp.ts +0 -55
- package/src/apps/quick-api/Schema.styles.ts +0 -95
- package/src/apps/quick-api/SchemaEditorApp.ts +0 -60
- package/src/apps/quick-api/SchemaScreenActivity.ts +0 -319
- package/src/apps/quick-api/SchemaScreenViewModel.ts +0 -74
- package/src/apps/quick-api/Start.styles.ts +0 -125
- package/src/apps/quick-api/StartScreenActivity.ts +0 -102
- package/src/apps/quick-api/filesystem/Files.styles.ts +0 -72
- package/src/apps/quick-api/filesystem/FilesLib.ts +0 -43
- package/src/apps/quick-api/fragments/FilesystemFragment.ts +0 -417
- package/src/apps/quick-api/fragments/HeaderFragment.ts +0 -72
- package/src/apps/quick-api/fragments/MainFragment.ts +0 -47
- package/src/apps/quick-api/fragments/NavigationFragment.ts +0 -165
- package/src/apps/quick-api/fragments/SchemaEditorEmptyState.fragment.ts +0 -11
- package/src/apps/quick-api/fragments/SchemaEditorHost.styles.ts +0 -22
- package/src/apps/quick-api/fragments/SchemaEditorHost.ts +0 -239
- package/src/apps/quick-api/fragments/SchemaHeaderFragment.ts +0 -117
- package/src/apps/quick-api/fragments/SchemaNavigation.styles.ts +0 -16
- package/src/apps/quick-api/fragments/SchemaNavigationFragment.ts +0 -292
- package/src/apps/quick-api/fragments/TrashFragment.ts +0 -174
- package/src/apps/quick-api/lib/SchemaContextualMenu.ts +0 -63
- package/src/apps/quick-api/lib/UiLib.ts +0 -17
- package/src/apps/services/ConfigurationService.ts +0 -28
- package/src/apps/services/LoggingService.ts +0 -48
- package/src/apps/services/OrganizationService.ts +0 -138
- package/src/apps/services/SdkService.ts +0 -45
- package/src/apps/services/TransmitService.ts +0 -21
- package/src/apps/services/UserService.ts +0 -69
- package/src/apps/transmit_client.ts +0 -5
- package/src/apps/types.ts +0 -10
- package/src/boot.ts +0 -18
- package/src/builders/DialogBuilder.ts +0 -248
- package/src/core/container.ts +0 -15
- package/src/data/BreadcrumbsModel.ts +0 -69
- package/src/data/FileModel.ts +0 -58
- package/src/data/FilesModel.ts +0 -186
- package/src/data/PatchableFileModel.ts +0 -266
- package/src/data/PatchableLiveDataContentModel.ts +0 -26
- package/src/data/PatchableRawContentModel.ts +0 -42
- package/src/data/TrashModel.ts +0 -114
- package/src/elements/data-table/filesystem-table.ts +0 -16
- package/src/elements/data-table/internals/Filesystem.styles.ts +0 -17
- package/src/elements/data-table/internals/FilesystemDataTable.ts +0 -230
- package/src/elements/data-table/internals/TrashDataTable.ts +0 -165
- package/src/elements/data-table/trash-table.ts +0 -16
- package/src/elements/modeling/domain-association-editor.ts +0 -15
- package/src/elements/modeling/domain-entity-editor.ts +0 -17
- package/src/elements/modeling/domain-model-editor.ts +0 -17
- package/src/elements/modeling/domain-namespace-editor.ts +0 -17
- package/src/elements/modeling/domain-navigation.ts +0 -15
- package/src/elements/modeling/domain-property-editor.ts +0 -16
- package/src/elements/modeling/internals/DomainAssociationEditor.ts +0 -550
- package/src/elements/modeling/internals/DomainEntityEditor.ts +0 -813
- package/src/elements/modeling/internals/DomainModelEditor.ts +0 -241
- package/src/elements/modeling/internals/DomainNamespaceEditor.ts +0 -207
- package/src/elements/modeling/internals/DomainNavigation.ts +0 -285
- package/src/elements/modeling/internals/DomainPropertyEditor.ts +0 -1112
- package/src/elements/modeling/internals/ModelingElement.ts +0 -48
- package/src/elements/modeling/internals/lib/UiMapping.ts +0 -218
- package/src/elements/modeling/internals/styles/DomainEntityEditor.styles.ts +0 -83
- package/src/elements/modeling/internals/styles/DomainModelEditor.styles.ts +0 -7
- package/src/elements/modeling/internals/styles/DomainNamespaceEditor.styles.ts +0 -7
- package/src/elements/modeling/internals/styles/DomainNavigation.styles.ts +0 -27
- package/src/elements/modeling/internals/styles/DomainPropertyEditor.styles.ts +0 -18
- package/src/elements/modeling/internals/styles/form_styles.ts +0 -63
- package/src/elements/modeling/internals/styles/learning.styles.ts +0 -40
- package/src/elements/modeling/types.ts +0 -33
- package/src/elements/schema-design/AssociationFormElement.ts +0 -155
- package/src/elements/schema-design/CommonStyles.ts +0 -62
- package/src/elements/schema-design/DataEntityEditorElement.ts +0 -376
- package/src/elements/schema-design/DataModelVisualizationElement.ts +0 -417
- package/src/elements/schema-design/DataSchemaDocument.ts +0 -959
- package/src/elements/schema-design/EntityFormElement.ts +0 -315
- package/src/elements/schema-design/PropertyFormElement.ts +0 -672
- package/src/elements/schema-design/SchemaNamespaceSelector.styles.ts +0 -28
- package/src/elements/schema-design/SchemaNamespaceSelector.ts +0 -78
- package/src/elements/schema-design/data-association-form.ts +0 -9
- package/src/elements/schema-design/data-entity-editor.ts +0 -9
- package/src/elements/schema-design/data-entity-form.ts +0 -9
- package/src/elements/schema-design/data-model-visualization.ts +0 -9
- package/src/elements/schema-design/data-property-form.ts +0 -9
- package/src/elements/schema-design/data-schema-document.ts +0 -9
- package/src/elements/schema-design/schemaCommon.ts +0 -375
- package/src/exceptions/FileLoadException.ts +0 -8
- package/src/exceptions/MisconfigurationException.ts +0 -8
- package/src/sdk/UiSdk.ts +0 -47
- package/test/elements/modeling/domain-entity-editor.spec.ts +0 -1377
- package/test/elements/modeling/domain-property-editor.spec.ts +0 -1551
- /package/build/src/elements/data-table/{internals/DataTable.styles.d.ts → DataTable.styles.d.ts} +0 -0
- /package/build/src/elements/data-table/{internals/DataTable.styles.js → DataTable.styles.js} +0 -0
- /package/build/src/{core/reactive → reactive}/reactive.d.ts +0 -0
- /package/build/src/{core/reactive → reactive}/reactive.js +0 -0
- /package/src/elements/data-table/{internals/DataTable.styles.ts → DataTable.styles.ts} +0 -0
- /package/src/{core/reactive → reactive}/reactive.ts +0 -0
- /package/{web-dev-server.config.js → wds-demo.config.js} +0 -0
|
@@ -2,7 +2,8 @@ import { __esDecorate, __runInitializers } from "tslib";
|
|
|
2
2
|
import { html, nothing } from 'lit';
|
|
3
3
|
import { property } from 'lit/decorators.js';
|
|
4
4
|
import { classMap } from 'lit/directives/class-map.js';
|
|
5
|
-
import {
|
|
5
|
+
import { SecurityProcessor } from '@api-client/core/authorization/lib/SecurityProcessor.js';
|
|
6
|
+
import { AmfNamespace } from '@api-client/core/amf/definitions/Namespace.js';
|
|
6
7
|
import { ApiDocumentationBase } from './ApiDocumentationBase.js';
|
|
7
8
|
import { joinTraitNames } from '../../amf/lib/Utils.js';
|
|
8
9
|
import * as UrlLib from '../../amf/lib/UrlUtils.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiResourceDocument.element.js","sourceRoot":"","sources":["../../../../src/elements/amf/ApiResourceDocument.element.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAkB,MAAM,KAAK,CAAA;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAA;AACtD,OAAO,EAAE,YAAY,EAA0C,iBAAiB,EAAE,MAAM,6BAA6B,CAAA;AACrH,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AACvD,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAA;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAA;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAA;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAA;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAA;AAGzD,OAAO,iCAAiC,CAAA;AACxC,OAAO,4CAA4C,CAAA;AACnD,OAAO,4CAA4C,CAAA;AACnD,OAAO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AM,WAAW,GAAG,cAAc,CAAC,MAAM,CAAC,CAAA;YAC1C,MAAM,SAAS,GAAG,IAAI,IAAI,IAAI,CAAC,IAAI,CAAA;YACnC,IAAI,CAAC,WAAW,IAAI,CAAC,SAAS,EAAE,CAAC;gBAC/B,OAAO,OAAO,CAAA;YAChB,CAAC;YACD,OAAO,IAAI,CAAA;oCACqB,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,IAAI,IAAI,CAAC,YAAY,CAAC,WAAW,CAAC;KAC9F,CAAA;QACH,CAAC;QAED;;WAEG;QACO,aAAa,CAAC,KAAc;YACpC,IAAI,CAAC,KAAK,EAAE,CAAC;gBACX,OAAO,OAAO,CAAA;YAChB,CAAC;YACD,OAAO,IAAI,CAAA;yGAC0F,KAAK,UAAU,CAAA;QACtH,CAAC;QAED;;WAEG;QACO,YAAY,CAAC,KAAc;YACnC,IAAI,CAAC,KAAK,EAAE,CAAC;gBACX,OAAO,OAAO,CAAA;YAChB,CAAC;YACD,OAAO,IAAI,CAAA,kEAAkE,KAAK,UAAU,CAAA;QAC9F,CAAC;;;AA/oBH;;;;;GAKG;AACH,mCA0oBC","sourcesContent":["import { html, nothing, TemplateResult } from 'lit'\nimport { property } from 'lit/decorators.js'\nimport { classMap } from 'lit/directives/class-map.js'\nimport { AmfNamespace, ApiDefinitions, IHttpRequest, IRequest, SecurityProcessor } from '@api-client/core/browser.js'\nimport { ApiDocumentationBase } from './ApiDocumentationBase.js'\nimport { joinTraitNames } from '../../amf/lib/Utils.js'\nimport * as UrlLib from '../../amf/lib/UrlUtils.js'\nimport { ReportingEvents } from '../../events/amf/ReportingEvents.js'\nimport { TelemetryEvents } from '../../events/amf/TelemetryEvents.js'\nimport { EndpointEvents } from '../../events/amf/EndpointEvents.js'\nimport { ServerEvents } from '../../events/amf/ServerEvents.js'\nimport { ApiEvents } from '../../events/amf/ApiEvents.js'\nimport ApiRequestElement from './ApiRequest.element.js'\nimport { Oauth2Credentials } from '../authorization/types.js'\nimport '../../define/amf/api-request.js'\nimport '../../define/amf/api-operation-document.js'\nimport '../../define/amf/api-parameter-document.js'\nimport '../../define/http/http-snippets.js'\n\ninterface SnippetInfo {\n value?: IRequest\n reading: boolean\n}\n\n/**\n * A web component that renders the resource documentation page for an API resource built from\n * the AMF graph model.\n *\n * @fires tryit\n */\nexport default class ApiResourceDocument extends ApiDocumentationBase {\n protected endpointValue?: ApiDefinitions.IApiEndPoint\n\n protected serverInternal?: ApiDefinitions.IApiServer\n\n protected serversValue?: ApiDefinitions.IApiServer[]\n\n protected operationIdValue?: string\n\n protected serverIdValue?: string\n\n protected baseUriValue?: string\n\n protected urlValue?: string\n\n protected protocolsValue?: string[]\n\n protected snippetsInternal: Record<string, SnippetInfo>\n\n get snippets(): Record<string, SnippetInfo> {\n return { ...this.snippetsInternal }\n }\n\n protected processSelectionTimeout?: number\n\n get endpoint(): ApiDefinitions.IApiEndPoint | undefined {\n return this.endpointValue\n }\n\n set endpoint(value) {\n const old = this.endpointValue\n if (old === value) {\n return\n }\n this.endpointValue = value\n this.processGraph()\n }\n\n get operationId(): string | undefined {\n return this.operationIdValue\n }\n\n /**\n * When set it scrolls to the operation with the given id, if exists.\n * The operation is performed after render.\n * @attribute\n */\n @property({ type: String, reflect: true })\n set operationId(value) {\n const old = this.operationIdValue\n if (old === value) {\n return\n }\n this.operationIdValue = value\n this.requestUpdate('operationId', old)\n this.operationIdChanged()\n }\n\n get serverId(): string | undefined {\n return this.serverIdValue\n }\n\n /**\n * The id of the currently selected server to use to construct the URL.\n * If not set a first server in the API servers array is used.\n * @attribute\n */\n @property({ type: String, reflect: true })\n set serverId(value) {\n const old = this.serverIdValue\n if (old === value) {\n return\n }\n this.serverIdValue = value\n this.selectServer()\n this.processServerSelection()\n this.requestUpdate()\n }\n\n get server(): ApiDefinitions.IApiServer | undefined {\n if (this.serverInternal) {\n return this.serverInternal\n }\n const servers = this.serversValue\n if (Array.isArray(servers) && servers.length) {\n const [server] = servers\n if (server) {\n this.serverInternal = server\n }\n }\n return this.serverInternal\n }\n\n set server(value) {\n const old = this.serverInternal\n if (old === value) {\n return\n }\n this.serverInternal = value\n this.processServerSelection()\n this.requestUpdate('server', old)\n }\n\n /**\n * The list of the servers read from the API and the endpoint.\n */\n get servers(): ApiDefinitions.IApiServer[] | undefined {\n return this.serversValue\n }\n\n /**\n * The list of protocols to render.\n */\n get protocol(): string | undefined {\n const { server } = this\n if (!server) {\n return undefined\n }\n const { protocol } = server\n return protocol\n }\n\n /**\n * A property to set to override AMF's model base URI information.\n * When this property is set, the `endpointUri` property is recalculated.\n * @attribute\n */\n get baseUri(): string | undefined {\n return this.baseUriValue\n }\n\n @property({ type: String })\n set baseUri(value) {\n const old = this.baseUriValue\n if (old === value) {\n return\n }\n this.baseUriValue = value\n this.computeUrlValue()\n this.requestUpdate()\n }\n\n /**\n * The computed URI for the endpoint.\n */\n get endpointUri(): string | undefined {\n return this.urlValue\n }\n\n /**\n * The API's protocols.\n */\n get protocols(): string[] | undefined {\n return this.protocolsValue\n }\n\n /**\n * When set it renders the \"try it\" button that dispatches the `tryit` event.\n * @attribute\n */\n @property({ type: Boolean, reflect: true }) accessor tryItButton: boolean | undefined\n\n /**\n * When set it renders the \"try it\" panel next to the operation documentation.\n * Setting this automatically disables the `tryItButton` property.\n *\n * Note, use this only when there's enough space on the screen to render 2 panels side-by-side.\n * @attribute\n */\n @property({ type: Boolean, reflect: true }) accessor tryItPanel: boolean | undefined\n\n /**\n * When set it renders the URL input above the URL parameters in the HTTP editor.\n * @attribute\n */\n @property({ type: Boolean, reflect: true }) accessor httpUrlEditor: boolean | undefined\n\n /**\n * List of credentials source passed to the HTTP editor\n */\n @property({ type: Array }) accessor httpCredentialsSource: Oauth2Credentials[] | undefined\n\n /**\n * OAuth2 redirect URI.\n * This value **must** be set in order for OAuth 1/2 to work properly.\n * This is only required in inline mode (`inlineMethods`).\n * @attribute\n */\n @property({ type: String }) accessor redirectUri: string | undefined\n\n /**\n * Optional property to set on the request editor.\n * When true, the server selector is not rendered\n * @attribute\n */\n @property({ type: Boolean, reflect: true }) accessor httpNoServerSelector: boolean | undefined\n\n /**\n * When set it renders \"add custom\" item button in the HTTP request editor.\n * If the element is to be used without AMF model this should always\n * be enabled. Otherwise users won't be able to add a parameter.\n * @attribute\n */\n @property({ type: Boolean, reflect: true }) accessor httpAllowCustom: boolean | undefined\n\n /**\n * Optional property to set on the request editor.\n * If true, the server selector custom base URI option is rendered\n * @attribute\n */\n @property({ type: Boolean, reflect: true }) accessor httpAllowCustomBaseUri: boolean | undefined\n\n /**\n * When set it renders the view optimised for asynchronous API operation.\n * @attribute\n */\n @property({ type: Boolean, reflect: true }) accessor asyncApi: boolean | undefined\n\n /**\n * Holds the value of the currently selected server\n * Data type: URI\n * @attribute\n */\n @property({ type: String }) accessor serverValue: string | undefined\n\n /**\n * Holds the type of the currently selected server\n * Values: `server` | `uri` | `custom`\n * @attribute\n */\n @property({ type: String }) accessor serverType: string | undefined\n\n constructor() {\n super()\n\n this.snippetsInternal = {}\n }\n\n override disconnectedCallback(): void {\n if (this.processSelectionTimeout) {\n clearTimeout(this.processSelectionTimeout)\n this.processSelectionTimeout = undefined\n }\n super.disconnectedCallback()\n }\n\n /**\n * Scrolls the view to the operation, when present in the DOM.\n * @param id The operation domain id to scroll into.\n */\n scrollToOperation(id: string): void {\n const { shadowRoot } = this\n if (!shadowRoot) {\n return\n }\n const elm = shadowRoot.querySelector(`api-operation-document[data-domain-id=\"${id}\"]`)\n if (!elm) {\n return\n }\n elm.scrollIntoView({ block: 'start', inline: 'nearest', behavior: 'smooth' })\n }\n\n override async processGraph(): Promise<void> {\n await this.queryEndpoint()\n await this.queryServers()\n await this.queryProtocols()\n this.computeUrlValue()\n this.requestUpdate()\n await this.updateComplete\n if (this.processSelectionTimeout) {\n clearTimeout(this.processSelectionTimeout)\n this.processSelectionTimeout = undefined\n }\n // this timeout gives few milliseconds for operations to render.\n this.processSelectionTimeout = setTimeout(() => {\n this.processSelectionTimeout = undefined\n this.collectCodeSnippets()\n if (this.operationId) {\n this.scrollToOperation(this.operationId)\n }\n }, 200) as unknown as number\n }\n\n /**\n * Queries the API store for the API summary object.\n */\n async queryProtocols(): Promise<void> {\n this.protocolsValue = undefined\n try {\n const info = await ApiEvents.protocols(this)\n this.protocolsValue = info\n } catch (e) {\n const ex = e as Error\n TelemetryEvents.exception(this, ex.message, false)\n ReportingEvents.error(this, ex, `Unable to query for API protocols list: ${ex.message}`, this.localName)\n }\n }\n\n /**\n * Queries the store for the endpoint data.\n * @returns {Promise<void>}\n */\n async queryEndpoint(): Promise<void> {\n const { domainId } = this\n if (!domainId) {\n // this.endpointValue = undefined;\n return\n }\n if (this.endpointValue && this.endpointValue.id === domainId) {\n // in case the endpoint model was provided via property setter.\n return\n }\n try {\n const info = await EndpointEvents.get(this, domainId)\n this.endpointValue = info\n } catch (e) {\n const ex = e as Error\n TelemetryEvents.exception(this, ex.message, false)\n ReportingEvents.error(this, ex, `Unable to query for API endpoint data: ${ex.message}`, this.localName)\n }\n }\n\n /**\n * Scrolls to the selected operation after view update.\n */\n protected async operationIdChanged(): Promise<void> {\n await this.updateComplete\n const { operationId } = this\n if (operationId) {\n this.scrollToOperation(operationId)\n } else {\n this.scrollIntoView({ block: 'start', inline: 'nearest', behavior: 'smooth' })\n }\n }\n\n /**\n * Queries the store for the current servers value.\n */\n async queryServers(): Promise<void> {\n this.serversValue = undefined\n const { domainId } = this\n const endpointId = this.endpointValue && this.endpointValue.id\n try {\n const info = await ServerEvents.query(this, {\n endpointId,\n methodId: domainId,\n })\n this.serversValue = info\n } catch (e) {\n const ex = e as Error\n TelemetryEvents.exception(this, ex.message, false)\n ReportingEvents.error(this, ex, `Unable to query for API servers: ${ex.message}`, this.localName)\n }\n }\n\n /**\n * Sets the private server value for the current server defined by `serverId`.\n * Calls the `.processServerSelection()` function to set server related values.\n */\n protected selectServer(): void {\n this.serverInternal = undefined\n const { serverId } = this\n const servers = this.serversValue\n if (!serverId || !Array.isArray(servers)) {\n return\n }\n this.serverInternal = servers.find((s) => s.id === serverId)\n }\n\n /**\n * Performs actions after a server is selected.\n */\n protected processServerSelection(): void {\n this.computeUrlValue()\n }\n\n /**\n * Computes the URL value for the current serves, selected server, and endpoint's path.\n */\n protected computeUrlValue(): void {\n const endpoint = this.endpointValue\n const { baseUri, server, protocols } = this\n const url = UrlLib.computeEndpointUri({ baseUri, server, endpoint, protocols })\n this.urlValue = url\n }\n\n /**\n * Runs over each request editor and collects request values for code snippets generators.\n */\n protected collectCodeSnippets(): void {\n const { shadowRoot } = this\n if (!shadowRoot) {\n return\n }\n const panels = shadowRoot.querySelectorAll('api-request')\n if (!panels.length) {\n return\n }\n Array.from(panels).forEach((panel) => this.readCodeSnippets(panel))\n this.requestUpdate()\n }\n\n protected requestChangeHandler(e: Event): void {\n const panel = e.target as ApiRequestElement\n this.readCodeSnippets(panel)\n this.requestUpdate()\n }\n\n /**\n * Reads the request data from the request panel for the code snippets.\n */\n protected async readCodeSnippets(panel: ApiRequestElement): Promise<void> {\n const { requestId } = panel.dataset\n if (!requestId) {\n return\n }\n if (!this.snippetsInternal[requestId]) {\n this.snippetsInternal[requestId] = { reading: false }\n }\n const info = this.snippetsInternal[requestId]\n if (info.reading) {\n return\n }\n try {\n info.reading = true\n const request = await panel.serialize()\n if (request.authorization && request.authorization.length) {\n SecurityProcessor.applyAuthorization(request.expects, request.authorization)\n }\n info.value = request\n this.requestUpdate()\n } catch {\n // what can go wrong it that the request is not yet set on the editor\n // due to the debouncer and we are trying to serialize a request\n // that is not yet ready. This will redo the operation when the request panel\n // render the HTTP editor.\n // ...\n } finally {\n info.reading = false\n }\n }\n\n override render(): TemplateResult {\n const { endpoint } = this\n if (!endpoint) {\n return html``\n }\n return html`\n ${this.renderTitle(endpoint)} ${this.renderUrl()} ${this.renderExtensions(endpoint)}\n ${this.descriptionTemplate(endpoint.description)}\n ${this.customDomainPropertiesTemplate(endpoint.customDomainProperties)} ${this.renderOperations(endpoint)}\n `\n }\n\n /**\n * @returns The template for the Operation title.\n */\n protected renderTitle(endpoint: ApiDefinitions.IApiEndPoint): TemplateResult | string {\n const { name, path } = endpoint\n const label = name || path\n if (!label) {\n return ''\n }\n const subLabel = this.asyncApi ? 'API channel' : 'API endpoint'\n return html`\n <div class=\"endpoint-header\">\n <div class=\"endpoint-title\">\n <span class=\"label text-selectable\">${label}</span>\n </div>\n <p class=\"sub-header\">${subLabel}</p>\n </div>\n `\n }\n\n /**\n * @returns The template for the operation's URL.\n */\n protected renderUrl(): TemplateResult {\n const url = this.urlValue\n return html`\n <div class=\"endpoint-url\">\n <div class=\"url-value text-selectable\">${url}</div>\n </div>\n `\n }\n\n /**\n * @returns The template for the list of operations.\n */\n protected renderOperations(endpoint: ApiDefinitions.IApiEndPoint): TemplateResult | string {\n const { operations } = endpoint\n if (!operations.length) {\n return ''\n }\n return html`\n <div class=\"operations\">${operations.map((operation) => this.renderOperation(endpoint, operation))}</div>\n `\n }\n\n /**\n * @param operation The operation to render.\n * @returns The template for the API operation.\n */\n protected renderOperation(\n endpoint: ApiDefinitions.IApiEndPoint,\n operation: ApiDefinitions.IApiOperation\n ): TemplateResult {\n const { serverId, baseUri, tryItPanel, tryItButton, asyncApi } = this\n const renderTryIt = !tryItPanel && !asyncApi && !!tryItButton\n const classes = {\n 'operation-container': true,\n 'surface1': true,\n 'tryit': !!tryItPanel,\n }\n return html`\n <div class=\"${classMap(classes)}\">\n <api-operation-document\n .domainId=\"${operation.id}\"\n .operation=\"${operation}\"\n .endpoint=\"${endpoint}\"\n .endpointId=\"${endpoint.id}\"\n .serverId=\"${serverId}\"\n .baseUri=\"${baseUri}\"\n data-domain-id=\"${operation.id}\"\n ?tryItButton=\"${renderTryIt}\"\n showSecurity\n ?renderCodeSnippets=\"${!tryItPanel}\"\n ?asyncApi=\"${this.asyncApi}\"\n class=\"operation\"\n ></api-operation-document>\n ${tryItPanel ? this.renderTryItColumn(operation) : ''}\n </div>\n `\n }\n\n /**\n * @param operation The operation to render.\n * @returns The template for the try it column panel rendered next to the operation documentation/\n */\n protected renderTryItColumn(operation: ApiDefinitions.IApiOperation): TemplateResult | string {\n if (this.asyncApi) {\n return ''\n }\n return html`\n <div class=\"try-it-column\">\n <!-- <div class=\"sticky-content\"> -->\n ${this.renderHttpRequest(operation)} ${this.renderCodeSnippetsPanel(operation)}\n <!-- </div> -->\n </div>\n `\n }\n\n /**\n * @param operation The operation to render.\n * @returns The template for the request editor.\n */\n protected renderHttpRequest(operation: ApiDefinitions.IApiOperation): TemplateResult {\n const content = html`\n <api-request\n .domainId=\"${operation.id}\"\n .serverValue=\"${this.serverValue}\"\n .serverType=\"${this.serverType}\"\n .baseUri=\"${this.baseUri}\"\n .redirectUri=\"${this.redirectUri}\"\n .credentialsSource=\"${this.httpCredentialsSource}\"\n ?urlEditor=\"${this.httpUrlEditor}\"\n ?urlLabel=\"${!this.httpUrlEditor}\"\n ?noServerSelector=\"${this.httpNoServerSelector}\"\n ?allowCustomBaseUri=\"${this.httpAllowCustomBaseUri}\"\n ?allowCustom=\"${this.httpAllowCustom}\"\n allowHideOptional\n data-request-id=\"${operation.id}\"\n @change=\"${this.requestChangeHandler}\"\n ></api-request>\n `\n\n return content\n }\n\n /**\n * @param operation The operation to render.\n * @returns The template for the request's code snippets.\n */\n protected renderCodeSnippetsPanel(operation: ApiDefinitions.IApiOperation): TemplateResult | typeof nothing {\n const values = this.snippetsInternal[operation.id]\n if (!values || !values.value) {\n return nothing\n }\n const { expects } = values.value\n let { payload } = expects\n if (payload && typeof payload !== 'string') {\n payload = ''\n }\n const request: IHttpRequest = {\n url: expects.url,\n headers: expects.headers,\n method: expects.method,\n payload: payload as string,\n }\n return html`\n <section class=\"snippets text-selectable\">\n <http-snippets .request=\"${request}\"></http-snippets>\n </section>\n `\n }\n\n /**\n * @return The template for the endpoint's extensions.\n */\n protected renderExtensions(endpoint: ApiDefinitions.IApiEndPoint): TemplateResult | typeof nothing {\n const { extends: extensions } = endpoint\n if (!extensions || !extensions.length) {\n return nothing\n }\n const type = extensions.find((e) =>\n e.types.includes(AmfNamespace.aml.vocabularies.apiContract.ParametrizedResourceType)\n )\n const traits = extensions.filter((e) =>\n e.types.includes(AmfNamespace.aml.vocabularies.apiContract.ParametrizedTrait)\n )\n const traitsLabel = joinTraitNames(traits)\n const typeLabel = type && type.name\n if (!traitsLabel && !typeLabel) {\n return nothing\n }\n return html`\n <section class=\"extensions\">${this.renderExtends(typeLabel)} ${this.renderTraits(traitsLabel)}</section>\n `\n }\n\n /**\n * @returns The template for the parent resource type.\n */\n protected renderExtends(label?: string): TemplateResult | typeof nothing {\n if (!label) {\n return nothing\n }\n return html`<span>Implements </span\n ><span class=\"resource-type-name text-selectable\" title=\"Resource type applied to this endpoint\">${label}</span>.`\n }\n\n /**\n * @returns The template for the traits applied to the resource.\n */\n protected renderTraits(label?: string): TemplateResult | typeof nothing {\n if (!label) {\n return nothing\n }\n return html`<span>Mixes in </span><span class=\"trait-name text-selectable\">${label}</span>.`\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"ApiResourceDocument.element.js","sourceRoot":"","sources":["../../../../src/elements/amf/ApiResourceDocument.element.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAkB,MAAM,KAAK,CAAA;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAA;AAGtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,yDAAyD,CAAA;AAE3F,OAAO,EAAE,YAAY,EAAE,MAAM,+CAA+C,CAAA;AAC5E,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AACvD,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAA;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAA;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAA;AACr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C,WAAW,CAAC,wBAAwB,CAAC,CACrF,CAAA;YACD,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CACrC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,YAAY,CAAC,GAAG,CAAC,YAAY,CAAC,WAAW,CAAC,iBAAiB,CAAC,CAC9E,CAAA;YACD,MAAM,WAAW,GAAG,cAAc,CAAC,MAAM,CAAC,CAAA;YAC1C,MAAM,SAAS,GAAG,IAAI,IAAI,IAAI,CAAC,IAAI,CAAA;YACnC,IAAI,CAAC,WAAW,IAAI,CAAC,SAAS,EAAE,CAAC;gBAC/B,OAAO,OAAO,CAAA;YAChB,CAAC;YACD,OAAO,IAAI,CAAA;oCACqB,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,IAAI,IAAI,CAAC,YAAY,CAAC,WAAW,CAAC;KAC9F,CAAA;QACH,CAAC;QAED;;WAEG;QACO,aAAa,CAAC,KAAc;YACpC,IAAI,CAAC,KAAK,EAAE,CAAC;gBACX,OAAO,OAAO,CAAA;YAChB,CAAC;YACD,OAAO,IAAI,CAAA;yGAC0F,KAAK,UAAU,CAAA;QACtH,CAAC;QAED;;WAEG;QACO,YAAY,CAAC,KAAc;YACnC,IAAI,CAAC,KAAK,EAAE,CAAC;gBACX,OAAO,OAAO,CAAA;YAChB,CAAC;YACD,OAAO,IAAI,CAAA,kEAAkE,KAAK,UAAU,CAAA;QAC9F,CAAC;;;AA5oBH;;;;;GAKG;AACH,mCAuoBC","sourcesContent":["import { html, nothing, TemplateResult } from 'lit'\nimport { property } from 'lit/decorators.js'\nimport { classMap } from 'lit/directives/class-map.js'\nimport type { IRequest } from '@api-client/core/models/Request.js'\nimport type { IApiEndPoint, IApiOperation, IApiServer } from '@api-client/core/amf/definitions/Api.js'\nimport { SecurityProcessor } from '@api-client/core/authorization/lib/SecurityProcessor.js'\nimport { IHttpRequest } from '@api-client/core/models/HttpRequest.js'\nimport { AmfNamespace } from '@api-client/core/amf/definitions/Namespace.js'\nimport { ApiDocumentationBase } from './ApiDocumentationBase.js'\nimport { joinTraitNames } from '../../amf/lib/Utils.js'\nimport * as UrlLib from '../../amf/lib/UrlUtils.js'\nimport { ReportingEvents } from '../../events/amf/ReportingEvents.js'\nimport { TelemetryEvents } from '../../events/amf/TelemetryEvents.js'\nimport { EndpointEvents } from '../../events/amf/EndpointEvents.js'\nimport { ServerEvents } from '../../events/amf/ServerEvents.js'\nimport { ApiEvents } from '../../events/amf/ApiEvents.js'\nimport ApiRequestElement from './ApiRequest.element.js'\nimport { Oauth2Credentials } from '../authorization/types.js'\nimport '../../define/amf/api-request.js'\nimport '../../define/amf/api-operation-document.js'\nimport '../../define/amf/api-parameter-document.js'\nimport '../../define/http/http-snippets.js'\n\ninterface SnippetInfo {\n value?: IRequest\n reading: boolean\n}\n\n/**\n * A web component that renders the resource documentation page for an API resource built from\n * the AMF graph model.\n *\n * @fires tryit\n */\nexport default class ApiResourceDocument extends ApiDocumentationBase {\n protected endpointValue?: IApiEndPoint\n\n protected serverInternal?: IApiServer\n\n protected serversValue?: IApiServer[]\n\n protected operationIdValue?: string\n\n protected serverIdValue?: string\n\n protected baseUriValue?: string\n\n protected urlValue?: string\n\n protected protocolsValue?: string[]\n\n protected snippetsInternal: Record<string, SnippetInfo>\n\n get snippets(): Record<string, SnippetInfo> {\n return { ...this.snippetsInternal }\n }\n\n protected processSelectionTimeout?: number\n\n get endpoint(): IApiEndPoint | undefined {\n return this.endpointValue\n }\n\n set endpoint(value) {\n const old = this.endpointValue\n if (old === value) {\n return\n }\n this.endpointValue = value\n this.processGraph()\n }\n\n get operationId(): string | undefined {\n return this.operationIdValue\n }\n\n /**\n * When set it scrolls to the operation with the given id, if exists.\n * The operation is performed after render.\n * @attribute\n */\n @property({ type: String, reflect: true })\n set operationId(value) {\n const old = this.operationIdValue\n if (old === value) {\n return\n }\n this.operationIdValue = value\n this.requestUpdate('operationId', old)\n this.operationIdChanged()\n }\n\n get serverId(): string | undefined {\n return this.serverIdValue\n }\n\n /**\n * The id of the currently selected server to use to construct the URL.\n * If not set a first server in the API servers array is used.\n * @attribute\n */\n @property({ type: String, reflect: true })\n set serverId(value) {\n const old = this.serverIdValue\n if (old === value) {\n return\n }\n this.serverIdValue = value\n this.selectServer()\n this.processServerSelection()\n this.requestUpdate()\n }\n\n get server(): IApiServer | undefined {\n if (this.serverInternal) {\n return this.serverInternal\n }\n const servers = this.serversValue\n if (Array.isArray(servers) && servers.length) {\n const [server] = servers\n if (server) {\n this.serverInternal = server\n }\n }\n return this.serverInternal\n }\n\n set server(value) {\n const old = this.serverInternal\n if (old === value) {\n return\n }\n this.serverInternal = value\n this.processServerSelection()\n this.requestUpdate('server', old)\n }\n\n /**\n * The list of the servers read from the API and the endpoint.\n */\n get servers(): IApiServer[] | undefined {\n return this.serversValue\n }\n\n /**\n * The list of protocols to render.\n */\n get protocol(): string | undefined {\n const { server } = this\n if (!server) {\n return undefined\n }\n const { protocol } = server\n return protocol\n }\n\n /**\n * A property to set to override AMF's model base URI information.\n * When this property is set, the `endpointUri` property is recalculated.\n * @attribute\n */\n get baseUri(): string | undefined {\n return this.baseUriValue\n }\n\n @property({ type: String })\n set baseUri(value) {\n const old = this.baseUriValue\n if (old === value) {\n return\n }\n this.baseUriValue = value\n this.computeUrlValue()\n this.requestUpdate()\n }\n\n /**\n * The computed URI for the endpoint.\n */\n get endpointUri(): string | undefined {\n return this.urlValue\n }\n\n /**\n * The API's protocols.\n */\n get protocols(): string[] | undefined {\n return this.protocolsValue\n }\n\n /**\n * When set it renders the \"try it\" button that dispatches the `tryit` event.\n * @attribute\n */\n @property({ type: Boolean, reflect: true }) accessor tryItButton: boolean | undefined\n\n /**\n * When set it renders the \"try it\" panel next to the operation documentation.\n * Setting this automatically disables the `tryItButton` property.\n *\n * Note, use this only when there's enough space on the screen to render 2 panels side-by-side.\n * @attribute\n */\n @property({ type: Boolean, reflect: true }) accessor tryItPanel: boolean | undefined\n\n /**\n * When set it renders the URL input above the URL parameters in the HTTP editor.\n * @attribute\n */\n @property({ type: Boolean, reflect: true }) accessor httpUrlEditor: boolean | undefined\n\n /**\n * List of credentials source passed to the HTTP editor\n */\n @property({ type: Array }) accessor httpCredentialsSource: Oauth2Credentials[] | undefined\n\n /**\n * OAuth2 redirect URI.\n * This value **must** be set in order for OAuth 1/2 to work properly.\n * This is only required in inline mode (`inlineMethods`).\n * @attribute\n */\n @property({ type: String }) accessor redirectUri: string | undefined\n\n /**\n * Optional property to set on the request editor.\n * When true, the server selector is not rendered\n * @attribute\n */\n @property({ type: Boolean, reflect: true }) accessor httpNoServerSelector: boolean | undefined\n\n /**\n * When set it renders \"add custom\" item button in the HTTP request editor.\n * If the element is to be used without AMF model this should always\n * be enabled. Otherwise users won't be able to add a parameter.\n * @attribute\n */\n @property({ type: Boolean, reflect: true }) accessor httpAllowCustom: boolean | undefined\n\n /**\n * Optional property to set on the request editor.\n * If true, the server selector custom base URI option is rendered\n * @attribute\n */\n @property({ type: Boolean, reflect: true }) accessor httpAllowCustomBaseUri: boolean | undefined\n\n /**\n * When set it renders the view optimised for asynchronous API operation.\n * @attribute\n */\n @property({ type: Boolean, reflect: true }) accessor asyncApi: boolean | undefined\n\n /**\n * Holds the value of the currently selected server\n * Data type: URI\n * @attribute\n */\n @property({ type: String }) accessor serverValue: string | undefined\n\n /**\n * Holds the type of the currently selected server\n * Values: `server` | `uri` | `custom`\n * @attribute\n */\n @property({ type: String }) accessor serverType: string | undefined\n\n constructor() {\n super()\n\n this.snippetsInternal = {}\n }\n\n override disconnectedCallback(): void {\n if (this.processSelectionTimeout) {\n clearTimeout(this.processSelectionTimeout)\n this.processSelectionTimeout = undefined\n }\n super.disconnectedCallback()\n }\n\n /**\n * Scrolls the view to the operation, when present in the DOM.\n * @param id The operation domain id to scroll into.\n */\n scrollToOperation(id: string): void {\n const { shadowRoot } = this\n if (!shadowRoot) {\n return\n }\n const elm = shadowRoot.querySelector(`api-operation-document[data-domain-id=\"${id}\"]`)\n if (!elm) {\n return\n }\n elm.scrollIntoView({ block: 'start', inline: 'nearest', behavior: 'smooth' })\n }\n\n override async processGraph(): Promise<void> {\n await this.queryEndpoint()\n await this.queryServers()\n await this.queryProtocols()\n this.computeUrlValue()\n this.requestUpdate()\n await this.updateComplete\n if (this.processSelectionTimeout) {\n clearTimeout(this.processSelectionTimeout)\n this.processSelectionTimeout = undefined\n }\n // this timeout gives few milliseconds for operations to render.\n this.processSelectionTimeout = setTimeout(() => {\n this.processSelectionTimeout = undefined\n this.collectCodeSnippets()\n if (this.operationId) {\n this.scrollToOperation(this.operationId)\n }\n }, 200) as unknown as number\n }\n\n /**\n * Queries the API store for the API summary object.\n */\n async queryProtocols(): Promise<void> {\n this.protocolsValue = undefined\n try {\n const info = await ApiEvents.protocols(this)\n this.protocolsValue = info\n } catch (e) {\n const ex = e as Error\n TelemetryEvents.exception(this, ex.message, false)\n ReportingEvents.error(this, ex, `Unable to query for API protocols list: ${ex.message}`, this.localName)\n }\n }\n\n /**\n * Queries the store for the endpoint data.\n * @returns {Promise<void>}\n */\n async queryEndpoint(): Promise<void> {\n const { domainId } = this\n if (!domainId) {\n // this.endpointValue = undefined;\n return\n }\n if (this.endpointValue && this.endpointValue.id === domainId) {\n // in case the endpoint model was provided via property setter.\n return\n }\n try {\n const info = await EndpointEvents.get(this, domainId)\n this.endpointValue = info\n } catch (e) {\n const ex = e as Error\n TelemetryEvents.exception(this, ex.message, false)\n ReportingEvents.error(this, ex, `Unable to query for API endpoint data: ${ex.message}`, this.localName)\n }\n }\n\n /**\n * Scrolls to the selected operation after view update.\n */\n protected async operationIdChanged(): Promise<void> {\n await this.updateComplete\n const { operationId } = this\n if (operationId) {\n this.scrollToOperation(operationId)\n } else {\n this.scrollIntoView({ block: 'start', inline: 'nearest', behavior: 'smooth' })\n }\n }\n\n /**\n * Queries the store for the current servers value.\n */\n async queryServers(): Promise<void> {\n this.serversValue = undefined\n const { domainId } = this\n const endpointId = this.endpointValue && this.endpointValue.id\n try {\n const info = await ServerEvents.query(this, {\n endpointId,\n methodId: domainId,\n })\n this.serversValue = info\n } catch (e) {\n const ex = e as Error\n TelemetryEvents.exception(this, ex.message, false)\n ReportingEvents.error(this, ex, `Unable to query for API servers: ${ex.message}`, this.localName)\n }\n }\n\n /**\n * Sets the private server value for the current server defined by `serverId`.\n * Calls the `.processServerSelection()` function to set server related values.\n */\n protected selectServer(): void {\n this.serverInternal = undefined\n const { serverId } = this\n const servers = this.serversValue\n if (!serverId || !Array.isArray(servers)) {\n return\n }\n this.serverInternal = servers.find((s) => s.id === serverId)\n }\n\n /**\n * Performs actions after a server is selected.\n */\n protected processServerSelection(): void {\n this.computeUrlValue()\n }\n\n /**\n * Computes the URL value for the current serves, selected server, and endpoint's path.\n */\n protected computeUrlValue(): void {\n const endpoint = this.endpointValue\n const { baseUri, server, protocols } = this\n const url = UrlLib.computeEndpointUri({ baseUri, server, endpoint, protocols })\n this.urlValue = url\n }\n\n /**\n * Runs over each request editor and collects request values for code snippets generators.\n */\n protected collectCodeSnippets(): void {\n const { shadowRoot } = this\n if (!shadowRoot) {\n return\n }\n const panels = shadowRoot.querySelectorAll('api-request')\n if (!panels.length) {\n return\n }\n Array.from(panels).forEach((panel) => this.readCodeSnippets(panel))\n this.requestUpdate()\n }\n\n protected requestChangeHandler(e: Event): void {\n const panel = e.target as ApiRequestElement\n this.readCodeSnippets(panel)\n this.requestUpdate()\n }\n\n /**\n * Reads the request data from the request panel for the code snippets.\n */\n protected async readCodeSnippets(panel: ApiRequestElement): Promise<void> {\n const { requestId } = panel.dataset\n if (!requestId) {\n return\n }\n if (!this.snippetsInternal[requestId]) {\n this.snippetsInternal[requestId] = { reading: false }\n }\n const info = this.snippetsInternal[requestId]\n if (info.reading) {\n return\n }\n try {\n info.reading = true\n const request = await panel.serialize()\n if (request.authorization && request.authorization.length) {\n SecurityProcessor.applyAuthorization(request.expects, request.authorization)\n }\n info.value = request\n this.requestUpdate()\n } catch {\n // what can go wrong it that the request is not yet set on the editor\n // due to the debouncer and we are trying to serialize a request\n // that is not yet ready. This will redo the operation when the request panel\n // render the HTTP editor.\n // ...\n } finally {\n info.reading = false\n }\n }\n\n override render(): TemplateResult {\n const { endpoint } = this\n if (!endpoint) {\n return html``\n }\n return html`\n ${this.renderTitle(endpoint)} ${this.renderUrl()} ${this.renderExtensions(endpoint)}\n ${this.descriptionTemplate(endpoint.description)}\n ${this.customDomainPropertiesTemplate(endpoint.customDomainProperties)} ${this.renderOperations(endpoint)}\n `\n }\n\n /**\n * @returns The template for the Operation title.\n */\n protected renderTitle(endpoint: IApiEndPoint): TemplateResult | string {\n const { name, path } = endpoint\n const label = name || path\n if (!label) {\n return ''\n }\n const subLabel = this.asyncApi ? 'API channel' : 'API endpoint'\n return html`\n <div class=\"endpoint-header\">\n <div class=\"endpoint-title\">\n <span class=\"label text-selectable\">${label}</span>\n </div>\n <p class=\"sub-header\">${subLabel}</p>\n </div>\n `\n }\n\n /**\n * @returns The template for the operation's URL.\n */\n protected renderUrl(): TemplateResult {\n const url = this.urlValue\n return html`\n <div class=\"endpoint-url\">\n <div class=\"url-value text-selectable\">${url}</div>\n </div>\n `\n }\n\n /**\n * @returns The template for the list of operations.\n */\n protected renderOperations(endpoint: IApiEndPoint): TemplateResult | string {\n const { operations } = endpoint\n if (!operations.length) {\n return ''\n }\n return html`\n <div class=\"operations\">${operations.map((operation) => this.renderOperation(endpoint, operation))}</div>\n `\n }\n\n /**\n * @param operation The operation to render.\n * @returns The template for the API operation.\n */\n protected renderOperation(endpoint: IApiEndPoint, operation: IApiOperation): TemplateResult {\n const { serverId, baseUri, tryItPanel, tryItButton, asyncApi } = this\n const renderTryIt = !tryItPanel && !asyncApi && !!tryItButton\n const classes = {\n 'operation-container': true,\n 'surface1': true,\n 'tryit': !!tryItPanel,\n }\n return html`\n <div class=\"${classMap(classes)}\">\n <api-operation-document\n .domainId=\"${operation.id}\"\n .operation=\"${operation}\"\n .endpoint=\"${endpoint}\"\n .endpointId=\"${endpoint.id}\"\n .serverId=\"${serverId}\"\n .baseUri=\"${baseUri}\"\n data-domain-id=\"${operation.id}\"\n ?tryItButton=\"${renderTryIt}\"\n showSecurity\n ?renderCodeSnippets=\"${!tryItPanel}\"\n ?asyncApi=\"${this.asyncApi}\"\n class=\"operation\"\n ></api-operation-document>\n ${tryItPanel ? this.renderTryItColumn(operation) : ''}\n </div>\n `\n }\n\n /**\n * @param operation The operation to render.\n * @returns The template for the try it column panel rendered next to the operation documentation/\n */\n protected renderTryItColumn(operation: IApiOperation): TemplateResult | string {\n if (this.asyncApi) {\n return ''\n }\n return html`\n <div class=\"try-it-column\">\n <!-- <div class=\"sticky-content\"> -->\n ${this.renderHttpRequest(operation)} ${this.renderCodeSnippetsPanel(operation)}\n <!-- </div> -->\n </div>\n `\n }\n\n /**\n * @param operation The operation to render.\n * @returns The template for the request editor.\n */\n protected renderHttpRequest(operation: IApiOperation): TemplateResult {\n const content = html`\n <api-request\n .domainId=\"${operation.id}\"\n .serverValue=\"${this.serverValue}\"\n .serverType=\"${this.serverType}\"\n .baseUri=\"${this.baseUri}\"\n .redirectUri=\"${this.redirectUri}\"\n .credentialsSource=\"${this.httpCredentialsSource}\"\n ?urlEditor=\"${this.httpUrlEditor}\"\n ?urlLabel=\"${!this.httpUrlEditor}\"\n ?noServerSelector=\"${this.httpNoServerSelector}\"\n ?allowCustomBaseUri=\"${this.httpAllowCustomBaseUri}\"\n ?allowCustom=\"${this.httpAllowCustom}\"\n allowHideOptional\n data-request-id=\"${operation.id}\"\n @change=\"${this.requestChangeHandler}\"\n ></api-request>\n `\n\n return content\n }\n\n /**\n * @param operation The operation to render.\n * @returns The template for the request's code snippets.\n */\n protected renderCodeSnippetsPanel(operation: IApiOperation): TemplateResult | typeof nothing {\n const values = this.snippetsInternal[operation.id]\n if (!values || !values.value) {\n return nothing\n }\n const { expects } = values.value\n let { payload } = expects\n if (payload && typeof payload !== 'string') {\n payload = ''\n }\n const request: IHttpRequest = {\n url: expects.url,\n headers: expects.headers,\n method: expects.method,\n payload: payload as string,\n }\n return html`\n <section class=\"snippets text-selectable\">\n <http-snippets .request=\"${request}\"></http-snippets>\n </section>\n `\n }\n\n /**\n * @return The template for the endpoint's extensions.\n */\n protected renderExtensions(endpoint: IApiEndPoint): TemplateResult | typeof nothing {\n const { extends: extensions } = endpoint\n if (!extensions || !extensions.length) {\n return nothing\n }\n const type = extensions.find((e) =>\n e.types.includes(AmfNamespace.aml.vocabularies.apiContract.ParametrizedResourceType)\n )\n const traits = extensions.filter((e) =>\n e.types.includes(AmfNamespace.aml.vocabularies.apiContract.ParametrizedTrait)\n )\n const traitsLabel = joinTraitNames(traits)\n const typeLabel = type && type.name\n if (!traitsLabel && !typeLabel) {\n return nothing\n }\n return html`\n <section class=\"extensions\">${this.renderExtends(typeLabel)} ${this.renderTraits(traitsLabel)}</section>\n `\n }\n\n /**\n * @returns The template for the parent resource type.\n */\n protected renderExtends(label?: string): TemplateResult | typeof nothing {\n if (!label) {\n return nothing\n }\n return html`<span>Implements </span\n ><span class=\"resource-type-name text-selectable\" title=\"Resource type applied to this endpoint\">${label}</span>.`\n }\n\n /**\n * @returns The template for the traits applied to the resource.\n */\n protected renderTraits(label?: string): TemplateResult | typeof nothing {\n if (!label) {\n return nothing\n }\n return html`<span>Mixes in </span><span class=\"trait-name text-selectable\">${label}</span>.`\n }\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TemplateResult } from 'lit';
|
|
2
|
-
import {
|
|
2
|
+
import type { IApiIriTemplateMapping, IApiPayload, IApiResponse, IApiTemplatedLink } from '@api-client/core/amf/definitions/Api.js';
|
|
3
3
|
import { ApiDocumentationBase } from './ApiDocumentationBase.js';
|
|
4
4
|
import '../../define/amf/api-payload-document.js';
|
|
5
5
|
import '../../define/amf/api-parameter-document.js';
|
|
@@ -8,15 +8,15 @@ import '../../md/radio/ui-radio.js';
|
|
|
8
8
|
* A web component that renders the documentation page for an API response object.
|
|
9
9
|
*/
|
|
10
10
|
export default class ApiResponseDocument extends ApiDocumentationBase {
|
|
11
|
-
protected responseValue?:
|
|
12
|
-
protected payloadsValue?:
|
|
11
|
+
protected responseValue?: IApiResponse;
|
|
12
|
+
protected payloadsValue?: IApiPayload[];
|
|
13
13
|
/**
|
|
14
14
|
* @returns true when has headers parameters definition
|
|
15
15
|
*/
|
|
16
16
|
get hasHeaders(): boolean;
|
|
17
|
-
get payloadValue():
|
|
18
|
-
get response():
|
|
19
|
-
set response(value:
|
|
17
|
+
get payloadValue(): IApiPayload | undefined;
|
|
18
|
+
get response(): IApiResponse | undefined;
|
|
19
|
+
set response(value: IApiResponse | undefined);
|
|
20
20
|
/**
|
|
21
21
|
* When set it opens the headers section
|
|
22
22
|
* @attribute
|
|
@@ -62,7 +62,7 @@ export default class ApiResponseDocument extends ApiDocumentationBase {
|
|
|
62
62
|
/**
|
|
63
63
|
* @returns A template for the link
|
|
64
64
|
*/
|
|
65
|
-
protected renderLink(link:
|
|
65
|
+
protected renderLink(link: IApiTemplatedLink): TemplateResult;
|
|
66
66
|
/**
|
|
67
67
|
* @returns The template for the link's operation
|
|
68
68
|
*/
|
|
@@ -70,10 +70,10 @@ export default class ApiResponseDocument extends ApiDocumentationBase {
|
|
|
70
70
|
/**
|
|
71
71
|
* @returns The template for the link's operation
|
|
72
72
|
*/
|
|
73
|
-
protected renderLinkMappings(mappings?:
|
|
73
|
+
protected renderLinkMappings(mappings?: IApiIriTemplateMapping[]): TemplateResult | string;
|
|
74
74
|
/**
|
|
75
75
|
* @returns The template for the link's operation
|
|
76
76
|
*/
|
|
77
|
-
protected renderLinkMapping(mapping:
|
|
77
|
+
protected renderLinkMapping(mapping: IApiIriTemplateMapping): TemplateResult;
|
|
78
78
|
}
|
|
79
79
|
//# sourceMappingURL=ApiResponseDocument.element.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiResponseDocument.element.d.ts","sourceRoot":"","sources":["../../../../src/elements/amf/ApiResponseDocument.element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,cAAc,EAAE,MAAM,KAAK,CAAA;AAE1C,OAAO,
|
|
1
|
+
{"version":3,"file":"ApiResponseDocument.element.d.ts","sourceRoot":"","sources":["../../../../src/elements/amf/ApiResponseDocument.element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,cAAc,EAAE,MAAM,KAAK,CAAA;AAE1C,OAAO,KAAK,EACV,sBAAsB,EACtB,WAAW,EACX,YAAY,EACZ,iBAAiB,EAClB,MAAM,yCAAyC,CAAA;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAGhE,OAAO,0CAA0C,CAAA;AACjD,OAAO,4CAA4C,CAAA;AACnD,OAAO,4BAA4B,CAAA;AAEnC;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,mBAAoB,SAAQ,oBAAoB;IACnE,SAAS,CAAC,aAAa,CAAC,EAAE,YAAY,CAAA;IAEtC,SAAS,CAAC,aAAa,CAAC,EAAE,WAAW,EAAE,CAAA;IAEvC;;OAEG;IACH,IAAI,UAAU,IAAI,OAAO,CAMxB;IAED,IAAI,YAAY,IAAI,WAAW,GAAG,SAAS,CAU1C;IAED,IAAI,QAAQ,IAAI,YAAY,GAAG,SAAS,CAEvC;IAED,IACI,QAAQ,CAAC,KAAK,EAAE,YAAY,GAAG,SAAS,EAO3C;IAED;;;OAGG;IACyC,QAAQ,CAAC,aAAa,EAAE,OAAO,GAAG,SAAS,CAAA;IAEvF;;;OAGG;IACyC,QAAQ,CAAC,aAAa,EAAE,OAAO,GAAG,SAAS,CAAA;IAEvF;;;OAGG;IACwC,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IAEhF;;OAEG;IACY,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;IAO5C;;OAEG;IACG,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC;IAqB9B,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC;IASpC,SAAS,CAAC,qBAAqB,CAAC,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;YAChD,IAAI,CAAC,WAAW,EAAE,CAAC;gBACjB,OAAO,EAAE,CAAA;YACX,CAAC;YACD,OAAO,IAAI,CAAA;;;uDAGwC,WAAW;;KAE7D,CAAA;QACH,CAAC;QAED;;WAEG;QACO,kBAAkB,CAAC,QAAkD;YAC7E,IAAI,CAAC,QAAQ,EAAE,CAAC;gBACd,OAAO,EAAE,CAAA;YACX,CAAC;YACD,OAAO,IAAI,CAAA;;;;;;UAML,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;;KAEzD,CAAA;QACH,CAAC;QAED;;WAEG;QACO,iBAAiB,CAAC,OAA8C;YACxE,MAAM,EAAE,cAAc,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAA;YACpD,OAAO,IAAI,CAAA;;cAED,gBAAgB;cAChB,cAAc;;KAEvB,CAAA;QACH,CAAC;;;;;;;AAjRH;;GAEG;AACH,mCA+QC","sourcesContent":["import { html, TemplateResult } from 'lit'\nimport { property } from 'lit/decorators.js'\nimport { ApiDefinitions } from '@api-client/core/browser.js'\nimport { ApiDocumentationBase } from './ApiDocumentationBase.js'\nimport { Events } from '../../events/amf/Events.js'\nimport RadioElement from '../../md/radio/internals/RadioElement.js'\nimport '../../define/amf/api-payload-document.js'\nimport '../../define/amf/api-parameter-document.js'\nimport '../../md/radio/ui-radio.js'\n\n/**\n * A web component that renders the documentation page for an API response object.\n */\nexport default class ApiResponseDocument extends ApiDocumentationBase {\n protected responseValue?: ApiDefinitions.IApiResponse\n\n protected payloadsValue?: ApiDefinitions.IApiPayload[]\n\n /**\n * @returns true when has headers parameters definition\n */\n get hasHeaders(): boolean {\n const response = this.responseValue\n if (!response) {\n return false\n }\n return Array.isArray(response.headers) && !!response.headers.length\n }\n\n get payloadValue(): ApiDefinitions.IApiPayload | undefined {\n const { mimeType } = this\n const payloads = this.payloadsValue\n if (!Array.isArray(payloads) || !payloads.length) {\n return undefined\n }\n if (!mimeType) {\n return payloads[0]\n }\n return payloads.find((item) => item.mediaType === mimeType)\n }\n\n get response(): ApiDefinitions.IApiResponse | undefined {\n return this.responseValue\n }\n\n @property({ type: Object })\n set response(value: ApiDefinitions.IApiResponse | undefined) {\n const old = this.responseValue\n if (old === value) {\n return\n }\n this.responseValue = value\n this.processGraph()\n }\n\n /**\n * When set it opens the headers section\n * @attribute\n */\n @property({ type: Boolean, reflect: true }) accessor headersOpened: boolean | undefined\n\n /**\n * When set it opens the payload section\n * @attribute\n */\n @property({ type: Boolean, reflect: true }) accessor payloadOpened: boolean | undefined\n\n /**\n * The currently selected media type for the payloads.\n * @attribute\n */\n @property({ type: String, reflect: true }) accessor mimeType: string | undefined\n\n /**\n * Queries the graph store for the API Response data.\n */\n override async processGraph(): Promise<void> {\n await this.queryResponse()\n await this.queryPayloads()\n this.requestUpdate()\n await this.updateComplete\n }\n\n /**\n * Queries the store for the response data, when needed.\n */\n async queryResponse(): Promise<void> {\n const { domainId } = this\n if (!domainId) {\n // this.responseValue = undefined;\n return\n }\n if (this.responseValue && this.responseValue.id === domainId) {\n // in case the response model was provided via the property setter.\n return\n }\n try {\n const info = await Events.Response.get(this, domainId)\n this.responseValue = info\n } catch (e) {\n this.responseValue = undefined\n const ex = e as Error\n Events.Telemetry.exception(this, ex.message, false)\n Events.Reporting.error(this, ex, `Unable to query for API response data: ${ex.message}`, this.localName)\n }\n }\n\n async queryPayloads(): Promise<void> {\n const { response } = this\n if (!response || !Array.isArray(response.payloads) || !response.payloads.length) {\n this.payloadsValue = undefined\n return\n }\n this.payloadsValue = response.payloads\n }\n\n protected handleMediaTypeSelect(e: Event): void {\n const button = e.target as RadioElement\n if (!button.checked) {\n return\n }\n const mime = button.value as string\n this.mimeType = mime\n }\n\n override render(): TemplateResult {\n if (!this.responseValue) {\n return html``\n }\n return html`\n ${this.customDomainPropertiesTemplate(this.responseValue.customDomainProperties)}\n ${this.descriptionTemplate(this.responseValue.description)} ${this.renderHeaders()} ${this.renderLinks()}\n ${this.renderPayload()}\n `\n }\n\n /**\n * @returns The template for the headers\n */\n protected renderHeaders(): TemplateResult | string {\n const { response } = this\n if (!this.hasHeaders || !response) {\n return ''\n }\n const content = response.headers.map((id) => this.schemaItemTemplate(id))\n return this.paramsSectionTemplate('Headers', 'headersOpened', content, { innerSection: true })\n }\n\n /**\n * @returns The template for the payload section\n */\n protected renderPayload(): TemplateResult | string {\n const payload = this.payloadValue\n if (!payload) {\n return ''\n }\n const content = html`\n ${this.renderPayloadSelector()}\n <api-payload-document .domainId=\"${payload.id}\" .payload=\"${payload}\"></api-payload-document>\n `\n // return this.paramsSectionTemplate('Response body', 'payloadOpened', content);\n return html`\n <div class=\"inner-section\">\n <div class=\"params-title\"><span class=\"label\">Response body</span></div>\n ${content}\n </div>\n `\n }\n\n /**\n * @returns The template for the payload media type selector.\n */\n protected renderPayloadSelector(): TemplateResult | string {\n const payloads = this.payloadsValue\n if (!Array.isArray(payloads) || payloads.length < 2) {\n return ''\n }\n const mime: string[] = []\n payloads.forEach((item) => {\n if (item.mediaType) {\n mime.push(item.mediaType)\n }\n })\n if (!mime.length) {\n return ''\n }\n const mimeType = this.mimeType || mime[0]\n return html`\n <div class=\"media-type-selector\">\n <span id=\"mimeLabel\" class=\"label-large\">Body content type</span>\n ${mime.map(\n (item) => html`\n <label class=\"label-large\">\n <ui-radio\n class=\"response-toggle\"\n name=\"responseMime\"\n value=\"${item}\"\n .checked=\"${mimeType === item}\"\n @change=\"${this.handleMediaTypeSelect}\"\n aria-describedby=\"mimeLabel\"\n ></ui-radio>\n ${item}\n </label>\n `\n )}\n </div>\n `\n }\n\n /**\n * @returns The template for the response links\n */\n protected renderLinks(): TemplateResult | string {\n const { response } = this\n if (!response) {\n return ''\n }\n const { links = [] } = response\n if (!Array.isArray(links) || !links.length) {\n return ''\n }\n return html`\n <div class=\"links-header\">Links</div>\n ${links.map((link) => this.renderLink(link))}\n `\n }\n\n /**\n * @returns A template for the link\n */\n protected renderLink(link: ApiDefinitions.IApiTemplatedLink): TemplateResult {\n const { name, mapping, operationId } = link\n return html`\n <div class=\"link-header text-selectable\">${name}</div>\n ${this.renderLinkOperation(operationId)}\n <div slot=\"markdown-html\" class=\"link-table text-selectable\">${this.renderLinkMappings(mapping)}</div>\n `\n }\n\n /**\n * @returns The template for the link's operation\n */\n protected renderLinkOperation(operationId?: string): TemplateResult | string {\n if (!operationId) {\n return ''\n }\n return html`\n <div class=\"operation-id\">\n <span class=\"label\">Operation ID:</span>\n <span class=\"operation-name text-selectable\">${operationId}</span>\n </div>\n `\n }\n\n /**\n * @returns The template for the link's operation\n */\n protected renderLinkMappings(mappings?: ApiDefinitions.IApiIriTemplateMapping[]): TemplateResult | string {\n if (!mappings) {\n return ''\n }\n return html`\n <table class=\"mapping-table text-selectable\">\n <tr>\n <th>Variable</th>\n <th>Expression</th>\n </tr>\n ${mappings.map((item) => this.renderLinkMapping(item))}\n </table>\n `\n }\n\n /**\n * @returns The template for the link's operation\n */\n protected renderLinkMapping(mapping: ApiDefinitions.IApiIriTemplateMapping): TemplateResult {\n const { linkExpression, templateVariable } = mapping\n return html`\n <tr>\n <td>${templateVariable}</td>\n <td>${linkExpression}</td>\n </tr>\n `\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"ApiResponseDocument.element.js","sourceRoot":"","sources":["../../../../src/elements/amf/ApiResponseDocument.element.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAkB,MAAM,KAAK,CAAA;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAO5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAChE,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAEnD,OAAO,0CAA0C,CAAA;AACjD,OAAO,4CAA4C,CAAA;AACnD,OAAO,4BAA4B,CAAA;;sBAKc,oBAAoB;;;;;;;;;;;;iBAAhD,mBAAoB,SAAQ,WAAoB;;;wCAgCl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C,kBAAkB,CAAC,OAAO,CAAC;KAChG,CAAA;QACH,CAAC;QAED;;WAEG;QACO,mBAAmB,CAAC,WAAoB;YAChD,IAAI,CAAC,WAAW,EAAE,CAAC;gBACjB,OAAO,EAAE,CAAA;YACX,CAAC;YACD,OAAO,IAAI,CAAA;;;uDAGwC,WAAW;;KAE7D,CAAA;QACH,CAAC;QAED;;WAEG;QACO,kBAAkB,CAAC,QAAmC;YAC9D,IAAI,CAAC,QAAQ,EAAE,CAAC;gBACd,OAAO,EAAE,CAAA;YACX,CAAC;YACD,OAAO,IAAI,CAAA;;;;;;UAML,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;;KAEzD,CAAA;QACH,CAAC;QAED;;WAEG;QACO,iBAAiB,CAAC,OAA+B;YACzD,MAAM,EAAE,cAAc,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAA;YACpD,OAAO,IAAI,CAAA;;cAED,gBAAgB;cAChB,cAAc;;KAEvB,CAAA;QACH,CAAC;;;;;;;AAjRH;;GAEG;AACH,mCA+QC","sourcesContent":["import { html, TemplateResult } from 'lit'\nimport { property } from 'lit/decorators.js'\nimport type {\n IApiIriTemplateMapping,\n IApiPayload,\n IApiResponse,\n IApiTemplatedLink,\n} from '@api-client/core/amf/definitions/Api.js'\nimport { ApiDocumentationBase } from './ApiDocumentationBase.js'\nimport { Events } from '../../events/amf/Events.js'\nimport RadioElement from '../../md/radio/internals/RadioElement.js'\nimport '../../define/amf/api-payload-document.js'\nimport '../../define/amf/api-parameter-document.js'\nimport '../../md/radio/ui-radio.js'\n\n/**\n * A web component that renders the documentation page for an API response object.\n */\nexport default class ApiResponseDocument extends ApiDocumentationBase {\n protected responseValue?: IApiResponse\n\n protected payloadsValue?: IApiPayload[]\n\n /**\n * @returns true when has headers parameters definition\n */\n get hasHeaders(): boolean {\n const response = this.responseValue\n if (!response) {\n return false\n }\n return Array.isArray(response.headers) && !!response.headers.length\n }\n\n get payloadValue(): IApiPayload | undefined {\n const { mimeType } = this\n const payloads = this.payloadsValue\n if (!Array.isArray(payloads) || !payloads.length) {\n return undefined\n }\n if (!mimeType) {\n return payloads[0]\n }\n return payloads.find((item) => item.mediaType === mimeType)\n }\n\n get response(): IApiResponse | undefined {\n return this.responseValue\n }\n\n @property({ type: Object })\n set response(value: IApiResponse | undefined) {\n const old = this.responseValue\n if (old === value) {\n return\n }\n this.responseValue = value\n this.processGraph()\n }\n\n /**\n * When set it opens the headers section\n * @attribute\n */\n @property({ type: Boolean, reflect: true }) accessor headersOpened: boolean | undefined\n\n /**\n * When set it opens the payload section\n * @attribute\n */\n @property({ type: Boolean, reflect: true }) accessor payloadOpened: boolean | undefined\n\n /**\n * The currently selected media type for the payloads.\n * @attribute\n */\n @property({ type: String, reflect: true }) accessor mimeType: string | undefined\n\n /**\n * Queries the graph store for the API Response data.\n */\n override async processGraph(): Promise<void> {\n await this.queryResponse()\n await this.queryPayloads()\n this.requestUpdate()\n await this.updateComplete\n }\n\n /**\n * Queries the store for the response data, when needed.\n */\n async queryResponse(): Promise<void> {\n const { domainId } = this\n if (!domainId) {\n // this.responseValue = undefined;\n return\n }\n if (this.responseValue && this.responseValue.id === domainId) {\n // in case the response model was provided via the property setter.\n return\n }\n try {\n const info = await Events.Response.get(this, domainId)\n this.responseValue = info\n } catch (e) {\n this.responseValue = undefined\n const ex = e as Error\n Events.Telemetry.exception(this, ex.message, false)\n Events.Reporting.error(this, ex, `Unable to query for API response data: ${ex.message}`, this.localName)\n }\n }\n\n async queryPayloads(): Promise<void> {\n const { response } = this\n if (!response || !Array.isArray(response.payloads) || !response.payloads.length) {\n this.payloadsValue = undefined\n return\n }\n this.payloadsValue = response.payloads\n }\n\n protected handleMediaTypeSelect(e: Event): void {\n const button = e.target as RadioElement\n if (!button.checked) {\n return\n }\n const mime = button.value as string\n this.mimeType = mime\n }\n\n override render(): TemplateResult {\n if (!this.responseValue) {\n return html``\n }\n return html`\n ${this.customDomainPropertiesTemplate(this.responseValue.customDomainProperties)}\n ${this.descriptionTemplate(this.responseValue.description)} ${this.renderHeaders()} ${this.renderLinks()}\n ${this.renderPayload()}\n `\n }\n\n /**\n * @returns The template for the headers\n */\n protected renderHeaders(): TemplateResult | string {\n const { response } = this\n if (!this.hasHeaders || !response) {\n return ''\n }\n const content = response.headers.map((id) => this.schemaItemTemplate(id))\n return this.paramsSectionTemplate('Headers', 'headersOpened', content, { innerSection: true })\n }\n\n /**\n * @returns The template for the payload section\n */\n protected renderPayload(): TemplateResult | string {\n const payload = this.payloadValue\n if (!payload) {\n return ''\n }\n const content = html`\n ${this.renderPayloadSelector()}\n <api-payload-document .domainId=\"${payload.id}\" .payload=\"${payload}\"></api-payload-document>\n `\n // return this.paramsSectionTemplate('Response body', 'payloadOpened', content);\n return html`\n <div class=\"inner-section\">\n <div class=\"params-title\"><span class=\"label\">Response body</span></div>\n ${content}\n </div>\n `\n }\n\n /**\n * @returns The template for the payload media type selector.\n */\n protected renderPayloadSelector(): TemplateResult | string {\n const payloads = this.payloadsValue\n if (!Array.isArray(payloads) || payloads.length < 2) {\n return ''\n }\n const mime: string[] = []\n payloads.forEach((item) => {\n if (item.mediaType) {\n mime.push(item.mediaType)\n }\n })\n if (!mime.length) {\n return ''\n }\n const mimeType = this.mimeType || mime[0]\n return html`\n <div class=\"media-type-selector\">\n <span id=\"mimeLabel\" class=\"label-large\">Body content type</span>\n ${mime.map(\n (item) => html`\n <label class=\"label-large\">\n <ui-radio\n class=\"response-toggle\"\n name=\"responseMime\"\n value=\"${item}\"\n .checked=\"${mimeType === item}\"\n @change=\"${this.handleMediaTypeSelect}\"\n aria-describedby=\"mimeLabel\"\n ></ui-radio>\n ${item}\n </label>\n `\n )}\n </div>\n `\n }\n\n /**\n * @returns The template for the response links\n */\n protected renderLinks(): TemplateResult | string {\n const { response } = this\n if (!response) {\n return ''\n }\n const { links = [] } = response\n if (!Array.isArray(links) || !links.length) {\n return ''\n }\n return html`\n <div class=\"links-header\">Links</div>\n ${links.map((link) => this.renderLink(link))}\n `\n }\n\n /**\n * @returns A template for the link\n */\n protected renderLink(link: IApiTemplatedLink): TemplateResult {\n const { name, mapping, operationId } = link\n return html`\n <div class=\"link-header text-selectable\">${name}</div>\n ${this.renderLinkOperation(operationId)}\n <div slot=\"markdown-html\" class=\"link-table text-selectable\">${this.renderLinkMappings(mapping)}</div>\n `\n }\n\n /**\n * @returns The template for the link's operation\n */\n protected renderLinkOperation(operationId?: string): TemplateResult | string {\n if (!operationId) {\n return ''\n }\n return html`\n <div class=\"operation-id\">\n <span class=\"label\">Operation ID:</span>\n <span class=\"operation-name text-selectable\">${operationId}</span>\n </div>\n `\n }\n\n /**\n * @returns The template for the link's operation\n */\n protected renderLinkMappings(mappings?: IApiIriTemplateMapping[]): TemplateResult | string {\n if (!mappings) {\n return ''\n }\n return html`\n <table class=\"mapping-table text-selectable\">\n <tr>\n <th>Variable</th>\n <th>Expression</th>\n </tr>\n ${mappings.map((item) => this.renderLinkMapping(item))}\n </table>\n `\n }\n\n /**\n * @returns The template for the link's operation\n */\n protected renderLinkMapping(mapping: IApiIriTemplateMapping): TemplateResult {\n const { linkExpression, templateVariable } = mapping\n return html`\n <tr>\n <td>${templateVariable}</td>\n <td>${linkExpression}</td>\n </tr>\n `\n }\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropertyValues, TemplateResult } from 'lit';
|
|
2
|
-
import {
|
|
2
|
+
import type { IApiAnyShape, IApiArrayShape, IApiFileShape, IApiNodeShape, IApiPropertyShape, IApiScalarShape, IApiSchemaShape, IApiShape, IApiTupleShape, IApiUnionShape, IShapeUnion } from '@api-client/core/amf/definitions/Shapes.js';
|
|
3
3
|
import { ApiDocumentationBase } from './ApiDocumentationBase.js';
|
|
4
4
|
import '../../md/radio/ui-radio.js';
|
|
5
5
|
export default class ApiSchemaDocument extends ApiDocumentationBase {
|
|
@@ -8,9 +8,9 @@ export default class ApiSchemaDocument extends ApiDocumentationBase {
|
|
|
8
8
|
* @attribute
|
|
9
9
|
*/
|
|
10
10
|
accessor mimeType: string | undefined;
|
|
11
|
-
schemaValue?:
|
|
12
|
-
get schema():
|
|
13
|
-
set schema(value:
|
|
11
|
+
schemaValue?: IShapeUnion;
|
|
12
|
+
get schema(): IShapeUnion | undefined;
|
|
13
|
+
set schema(value: IShapeUnion | undefined);
|
|
14
14
|
/**
|
|
15
15
|
* Generates examples from the schema properties for the given mime type
|
|
16
16
|
* when examples are not defined in the schema.
|
|
@@ -62,38 +62,38 @@ export default class ApiSchemaDocument extends ApiDocumentationBase {
|
|
|
62
62
|
/**
|
|
63
63
|
* Orders union items so the first is the one that has properties defined inline.
|
|
64
64
|
*/
|
|
65
|
-
orderUnion(shapes:
|
|
65
|
+
orderUnion(shapes: IShapeUnion[]): IShapeUnion[];
|
|
66
66
|
render(): TemplateResult;
|
|
67
67
|
/**
|
|
68
68
|
* @returns The template for the schema title.
|
|
69
69
|
*/
|
|
70
|
-
titleTemplate(schema:
|
|
70
|
+
titleTemplate(schema: IShapeUnion): TemplateResult | string;
|
|
71
71
|
/**
|
|
72
72
|
* @param schema The shape to render.
|
|
73
73
|
* @returns The template for the schema properties depending on the type
|
|
74
74
|
*/
|
|
75
|
-
schemaContentTemplate(schema:
|
|
75
|
+
schemaContentTemplate(schema: IShapeUnion): TemplateResult | string;
|
|
76
76
|
/**
|
|
77
77
|
* @returns The template for the scalar shape.
|
|
78
78
|
*/
|
|
79
|
-
scalarShapeTemplate(schema:
|
|
79
|
+
scalarShapeTemplate(schema: IApiScalarShape): TemplateResult | string;
|
|
80
80
|
/**
|
|
81
81
|
* @returns The template for the node shape.
|
|
82
82
|
*/
|
|
83
|
-
nodeShapeTemplate(schema:
|
|
83
|
+
nodeShapeTemplate(schema: IApiNodeShape): TemplateResult | string;
|
|
84
84
|
/**
|
|
85
85
|
* @returns The template for the union shape.
|
|
86
86
|
*/
|
|
87
|
-
unionShapeTemplate(schema:
|
|
88
|
-
andUnionItemTemplate(shape:
|
|
87
|
+
unionShapeTemplate(schema: IApiUnionShape): TemplateResult | string;
|
|
88
|
+
andUnionItemTemplate(shape: IShapeUnion): TemplateResult;
|
|
89
89
|
/**
|
|
90
90
|
* @returns The template for the "and" union item's title, if inherited from another type.
|
|
91
91
|
*/
|
|
92
|
-
inheritanceNameTemplate(shape:
|
|
92
|
+
inheritanceNameTemplate(shape: IShapeUnion): TemplateResult | string;
|
|
93
93
|
/**
|
|
94
94
|
* @returns The template for the `any of` union.
|
|
95
95
|
*/
|
|
96
|
-
anyOfUnionTemplate(schemaId: string, items:
|
|
96
|
+
anyOfUnionTemplate(schemaId: string, items: IShapeUnion[]): TemplateResult | string;
|
|
97
97
|
/**
|
|
98
98
|
* @param schemaId The parent schema id value
|
|
99
99
|
* @param options The options to render.
|
|
@@ -106,31 +106,31 @@ export default class ApiSchemaDocument extends ApiDocumentationBase {
|
|
|
106
106
|
/**
|
|
107
107
|
* @returns The template for the file shape.
|
|
108
108
|
*/
|
|
109
|
-
fileShapeTemplate(schema:
|
|
109
|
+
fileShapeTemplate(schema: IApiFileShape): TemplateResult | string;
|
|
110
110
|
/**
|
|
111
111
|
* @returns The template for the schema shape.
|
|
112
112
|
*/
|
|
113
|
-
schemaShapeTemplate(schema:
|
|
113
|
+
schemaShapeTemplate(schema: IApiSchemaShape): TemplateResult | string;
|
|
114
114
|
/**
|
|
115
115
|
* @returns The template for the array shape.
|
|
116
116
|
*/
|
|
117
|
-
arrayShapeTemplate(schema:
|
|
117
|
+
arrayShapeTemplate(schema: IApiArrayShape): TemplateResult | string;
|
|
118
118
|
/**
|
|
119
119
|
* @returns The template for the tuple shape.
|
|
120
120
|
*/
|
|
121
|
-
tupleShapeTemplate(schema:
|
|
121
|
+
tupleShapeTemplate(schema: IApiTupleShape): TemplateResult | string;
|
|
122
122
|
/**
|
|
123
123
|
* @returns The template for the Any shape.
|
|
124
124
|
*/
|
|
125
|
-
anyShapeTemplate(schema:
|
|
125
|
+
anyShapeTemplate(schema: IApiAnyShape): TemplateResult | string;
|
|
126
126
|
/**
|
|
127
127
|
* @returns The template for the Any shape.
|
|
128
128
|
*/
|
|
129
|
-
nilShapeTemplate(schema:
|
|
129
|
+
nilShapeTemplate(schema: IApiShape): TemplateResult | string;
|
|
130
130
|
/**
|
|
131
131
|
* @returns The template for the schema property item.
|
|
132
132
|
*/
|
|
133
|
-
shapePropertyTemplate(schema:
|
|
133
|
+
shapePropertyTemplate(schema: IApiPropertyShape): TemplateResult | string;
|
|
134
134
|
/**
|
|
135
135
|
* @returns THe template for the line decorator in front of the property name.
|
|
136
136
|
*/
|
|
@@ -138,7 +138,7 @@ export default class ApiSchemaDocument extends ApiDocumentationBase {
|
|
|
138
138
|
/**
|
|
139
139
|
* @returns The template for the schema property item that has no range information.
|
|
140
140
|
*/
|
|
141
|
-
shapePropertyWithoutRangeTemplate(schema:
|
|
142
|
-
propertyDescriptionTemplate(schema:
|
|
141
|
+
shapePropertyWithoutRangeTemplate(schema: IApiPropertyShape): TemplateResult;
|
|
142
|
+
propertyDescriptionTemplate(schema: IApiPropertyShape): TemplateResult | string;
|
|
143
143
|
}
|
|
144
144
|
//# sourceMappingURL=ApiSchemaDocument.element.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiSchemaDocument.element.d.ts","sourceRoot":"","sources":["../../../../src/elements/amf/ApiSchemaDocument.element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"ApiSchemaDocument.element.d.ts","sourceRoot":"","sources":["../../../../src/elements/amf/ApiSchemaDocument.element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AAI1D,OAAO,KAAK,EACV,YAAY,EACZ,cAAc,EACd,aAAa,EACb,aAAa,EACb,iBAAiB,EACjB,eAAe,EACf,eAAe,EAC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,MAAM,EAAE,cAAc,GAAG,cAAc,GAAG,MAAM;IAuBnE;;OAEG;IACH,kBAAkB,CAAC,MAAM,EAAE,cAAc,GAAG,cAAc,GAAG,MAAM;IAWnE;;OAEG;IACH,gBAAgB,CAAC,MAAM,EAAE,YAAY,GAAG,cAAc,GAAG,MAAM;IAW/D;;OAEG;IACH,gBAAgB,CAAC,MAAM,EAAE,SAAS,GAAG,cAAc,GAAG,MAAM;IAO5D;;OAEG;IACH,qBAAqB,CAAC,MAAM,EAAE,iBAAiB,GAAG,cAAc,GAAG,MAAM;IAkEzE;;OAEG;IACH,yBAAyB,CAAC,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,GAAG,cAAc;IA0BlG;;OAEG;IACH,iCAAiC,CAAC,MAAM,EAAE,iBAAiB,GAAG,cAAc;IAe5E,2BAA2B,CAAC,MAAM,EAAE,iBAAiB,GAAG,cAAc,GAAG,MAAM;CAOhF"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { __esDecorate, __runInitializers } from "tslib";
|
|
2
2
|
import { html } from 'lit';
|
|
3
3
|
import { property } from 'lit/decorators.js';
|
|
4
|
-
import { AmfNamespace, ApiSchemaGenerator } from '@api-client/core/browser.js';
|
|
5
4
|
import { classMap } from 'lit/directives/class-map.js';
|
|
5
|
+
import { AmfNamespace } from '@api-client/core/amf/definitions/Namespace.js';
|
|
6
|
+
import { ApiSchemaGenerator } from '@api-client/core/amf/ApiSchemaGenerator.js';
|
|
6
7
|
import { readPropertyTypeLabel, isScalarUnion, isScalarType } from '../../amf/lib/Utils.js';
|
|
7
8
|
import { detailsTemplate, paramNameTemplate, typeValueTemplate, fileDetailsTemplate, scalarDetailsTemplate, unionDetailsTemplate, pillTemplate, } from './SchemaCommonTemplates.js';
|
|
8
9
|
import { ApiDocumentationBase } from './ApiDocumentationBase.js';
|
|
@@ -211,7 +212,7 @@ let ApiSchemaDocument = (() => {
|
|
|
211
212
|
// * @param {string} id
|
|
212
213
|
// * @param {any} updated
|
|
213
214
|
// */
|
|
214
|
-
// [checkSchemaPropertyUpdate](schema:
|
|
215
|
+
// [checkSchemaPropertyUpdate](schema: IShapeUnion, id: string, updated): void {
|
|
215
216
|
// if (!schema) {
|
|
216
217
|
// return;
|
|
217
218
|
// }
|
|
@@ -416,7 +417,7 @@ let ApiSchemaDocument = (() => {
|
|
|
416
417
|
return html ` <div class="children-section">${items.map((item) => this.shapePropertyTemplate(item))}</div> `;
|
|
417
418
|
}
|
|
418
419
|
// /**
|
|
419
|
-
// * @param {
|
|
420
|
+
// * @param {IShapeUnion[]} parents
|
|
420
421
|
// * @returns {TemplateResult[]|undefined}
|
|
421
422
|
// */
|
|
422
423
|
// [inheritedTemplate](parents) {
|