@api-client/ui 0.0.17 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":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CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAA;QACzC,IAAI,CAAC,IAAI,EAAE,CAAC;YACV,OAAO,SAAS,CAAA;QAClB,CAAC;QACD,OAAO,IAAI,CAAC,0BAA0B,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,CAAC,CAAA;IAC/D,CAAC;CACF","sourcesContent":["import { AmfNamespace, type ApiDefinitions, type AmfShapes } from '@api-client/core/browser.js'\nimport type { OperationParameter } from '../types.js'\n\n/**\n * A library to create a list of ApiParameters from a query string value.\n */\nexport class QueryParameterProcessor {\n /**\n * @param schema\n * @param binding The parameter binding.\n * @param source Optional parameter source.\n */\n collectOperationParameters(schema: AmfShapes.IShapeUnion, binding: string, source?: string): OperationParameter[] {\n let result: OperationParameter[] = []\n if (!schema) {\n return result\n }\n const { types } = schema\n if (types.includes(AmfNamespace.aml.vocabularies.shapes.ScalarShape)) {\n result.push(this.scalarShapeOperationParameter(schema as AmfShapes.IApiScalarShape, binding, source))\n } else if (types.includes(AmfNamespace.w3.shacl.NodeShape)) {\n const params = this.nodeShapeOperationParameter(schema as AmfShapes.IApiNodeShape, binding, source)\n result = result.concat(params)\n } else if (types.includes(AmfNamespace.aml.vocabularies.shapes.ArrayShape)) {\n const arrResult = this.arrayShapeOperationParameter(schema as AmfShapes.IApiArrayShape, binding, source)\n if (Array.isArray(arrResult)) {\n result = result.concat(arrResult)\n } else if (arrResult) {\n result.push(arrResult)\n }\n } else if (types.includes(AmfNamespace.aml.vocabularies.shapes.UnionShape)) {\n const params = this.unionShapeOperationParameter(schema as AmfShapes.IApiUnionShape, binding, source)\n if (params) {\n result = result.concat(params)\n }\n }\n return result\n }\n\n /**\n * @param shape\n * @param binding The parameter binding.\n * @param source Optional parameter source.\n */\n scalarShapeOperationParameter(\n shape: AmfShapes.IApiScalarShape,\n binding: string,\n source?: string\n ): OperationParameter {\n const { id, name } = shape\n const constructed: ApiDefinitions.IApiParameter = {\n id,\n binding,\n schema: shape,\n name,\n examples: [],\n payloads: [],\n types: [AmfNamespace.aml.vocabularies.apiContract.Parameter],\n required: false,\n customDomainProperties: [],\n }\n return {\n binding,\n paramId: id,\n parameter: constructed,\n source: source || '',\n schemaId: id,\n schema: shape,\n }\n }\n\n /**\n * @param shape\n * @param binding The parameter binding.\n * @param source Optional parameter source.\n */\n nodeShapeOperationParameter(shape: AmfShapes.IApiNodeShape, binding: string, source?: string): OperationParameter[] {\n const result: OperationParameter[] = []\n const { properties = [] } = shape\n if (!properties.length) {\n return result\n }\n properties.forEach((prop) => {\n result.push(this.parameterOperationParameter(prop, binding, source))\n })\n return result\n }\n\n /**\n * @param property The property to build the parameter for.\n * @param binding The parameter binding.\n * @param source Optional parameter source.\n */\n parameterOperationParameter(\n property: AmfShapes.IApiPropertyShape,\n binding: string,\n source?: string\n ): OperationParameter {\n const { id, range, name, minCount = 0 } = property\n const constructed: ApiDefinitions.IApiParameter = {\n id,\n binding,\n schema: range,\n name,\n examples: [],\n payloads: [],\n types: [AmfNamespace.aml.vocabularies.apiContract.Parameter],\n required: minCount > 0,\n customDomainProperties: [],\n }\n return {\n binding,\n paramId: id,\n parameter: constructed,\n source: source || '',\n schemaId: property.id,\n schema: range,\n }\n }\n\n /**\n * @param shape\n * @param binding The parameter binding.\n * @param source Optional parameter source.\n */\n arrayShapeOperationParameter(\n shape: AmfShapes.IApiArrayShape,\n binding: string,\n source?: string\n ): OperationParameter | OperationParameter[] {\n const target = shape.items || shape\n if (target.types.includes(AmfNamespace.w3.shacl.NodeShape)) {\n const typed = shape.items as AmfShapes.IApiNodeShape\n return this.collectOperationParameters(typed, binding, source)\n }\n const { id, name } = target\n const constructed: ApiDefinitions.IApiParameter = {\n id,\n binding,\n schema: shape,\n name,\n examples: [],\n payloads: [],\n types: [AmfNamespace.aml.vocabularies.apiContract.Parameter],\n required: false,\n customDomainProperties: [],\n }\n return {\n binding,\n paramId: id,\n parameter: constructed,\n source: source || '',\n schemaId: id,\n schema: shape,\n }\n }\n\n /**\n * @param shape\n * @param binding The parameter binding.\n * @param source Optional parameter source.\n */\n unionShapeOperationParameter(\n shape: AmfShapes.IApiUnionShape,\n binding: string,\n source?: string\n ): OperationParameter[] | undefined {\n const { anyOf = [], or = [], and = [], xone = [] } = shape\n if (and.length) {\n let result: OperationParameter[] = []\n and.forEach((item) => {\n const itemResult = this.collectOperationParameters(item, binding, source)\n if (itemResult) {\n result = result.concat(itemResult)\n }\n })\n return result\n }\n const info = anyOf[0] || or[0] || xone[0]\n if (!info) {\n return undefined\n }\n return this.collectOperationParameters(info, binding, source)\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"QueryParameterProcessor.js","sourceRoot":"","sources":["../../../../src/amf/lib/QueryParameterProcessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,+CAA+C,CAAA;AAY5E;;GAEG;AACH,MAAM,OAAO,uBAAuB;IAClC;;;;OAIG;IACH,0BAA0B,CAAC,MAAmB,EAAE,OAAe,EAAE,MAAe;QAC9E,IAAI,MAAM,GAAyB,EAAE,CAAA;QACrC,IAAI,CAAC,MAAM,EAAE,CAAC;YACZ,OAAO,MAAM,CAAA;QACf,CAAC;QACD,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,CAAA;QACxB,IAAI,KAAK,CAAC,QAAQ,CAAC,YAAY,CAAC,GAAG,CAAC,YAAY,CAAC,MAAM,CAAC,WAAW,CAAC,EAAE,CAAC;YACrE,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,6BAA6B,CAAC,MAAyB,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC,CAAA;QAC7F,CAAC;aAAM,IAAI,KAAK,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE,CAAC;YAC3D,MAAM,MAAM,GAAG,IAAI,CAAC,2BAA2B,CAAC,MAAuB,EAAE,OAAO,EAAE,MAAM,CAAC,CAAA;YACzF,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,MAA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G,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;gBACnB,MAAM,UAAU,GAAG,IAAI,CAAC,0BAA0B,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,CAAC,CAAA;gBACzE,IAAI,UAAU,EAAE,CAAC;oBACf,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAA;gBACpC,CAAC;YACH,CAAC,CAAC,CAAA;YACF,OAAO,MAAM,CAAA;QACf,CAAC;QACD,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAA;QACzC,IAAI,CAAC,IAAI,EAAE,CAAC;YACV,OAAO,SAAS,CAAA;QAClB,CAAC;QACD,OAAO,IAAI,CAAC,0BAA0B,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,CAAC,CAAA;IAC/D,CAAC;CACF","sourcesContent":["import { AmfNamespace } from '@api-client/core/amf/definitions/Namespace.js'\nimport type { IApiParameter } from '@api-client/core/amf/definitions/Api.js'\nimport type {\n IShapeUnion,\n IApiScalarShape,\n IApiNodeShape,\n IApiArrayShape,\n IApiUnionShape,\n IApiPropertyShape,\n} from '@api-client/core/amf/definitions/Shapes.js'\nimport type { OperationParameter } from '../types.js'\n\n/**\n * A library to create a list of ApiParameters from a query string value.\n */\nexport class QueryParameterProcessor {\n /**\n * @param schema\n * @param binding The parameter binding.\n * @param source Optional parameter source.\n */\n collectOperationParameters(schema: IShapeUnion, binding: string, source?: string): OperationParameter[] {\n let result: OperationParameter[] = []\n if (!schema) {\n return result\n }\n const { types } = schema\n if (types.includes(AmfNamespace.aml.vocabularies.shapes.ScalarShape)) {\n result.push(this.scalarShapeOperationParameter(schema as IApiScalarShape, binding, source))\n } else if (types.includes(AmfNamespace.w3.shacl.NodeShape)) {\n const params = this.nodeShapeOperationParameter(schema as IApiNodeShape, binding, source)\n result = result.concat(params)\n } else if (types.includes(AmfNamespace.aml.vocabularies.shapes.ArrayShape)) {\n const arrResult = this.arrayShapeOperationParameter(schema as IApiArrayShape, binding, source)\n if (Array.isArray(arrResult)) {\n result = result.concat(arrResult)\n } else if (arrResult) {\n result.push(arrResult)\n }\n } else if (types.includes(AmfNamespace.aml.vocabularies.shapes.UnionShape)) {\n const params = this.unionShapeOperationParameter(schema as IApiUnionShape, binding, source)\n if (params) {\n result = result.concat(params)\n }\n }\n return result\n }\n\n /**\n * @param shape\n * @param binding The parameter binding.\n * @param source Optional parameter source.\n */\n scalarShapeOperationParameter(shape: IApiScalarShape, binding: string, source?: string): OperationParameter {\n const { id, name } = shape\n const constructed: IApiParameter = {\n id,\n binding,\n schema: shape,\n name,\n examples: [],\n payloads: [],\n types: [AmfNamespace.aml.vocabularies.apiContract.Parameter],\n required: false,\n customDomainProperties: [],\n }\n return {\n binding,\n paramId: id,\n parameter: constructed,\n source: source || '',\n schemaId: id,\n schema: shape,\n }\n }\n\n /**\n * @param shape\n * @param binding The parameter binding.\n * @param source Optional parameter source.\n */\n nodeShapeOperationParameter(shape: IApiNodeShape, binding: string, source?: string): OperationParameter[] {\n const result: OperationParameter[] = []\n const { properties = [] } = shape\n if (!properties.length) {\n return result\n }\n properties.forEach((prop) => {\n result.push(this.parameterOperationParameter(prop, binding, source))\n })\n return result\n }\n\n /**\n * @param property The property to build the parameter for.\n * @param binding The parameter binding.\n * @param source Optional parameter source.\n */\n parameterOperationParameter(property: IApiPropertyShape, binding: string, source?: string): OperationParameter {\n const { id, range, name, minCount = 0 } = property\n const constructed: IApiParameter = {\n id,\n binding,\n schema: range,\n name,\n examples: [],\n payloads: [],\n types: [AmfNamespace.aml.vocabularies.apiContract.Parameter],\n required: minCount > 0,\n customDomainProperties: [],\n }\n return {\n binding,\n paramId: id,\n parameter: constructed,\n source: source || '',\n schemaId: property.id,\n schema: range,\n }\n }\n\n /**\n * @param shape\n * @param binding The parameter binding.\n * @param source Optional parameter source.\n */\n arrayShapeOperationParameter(\n shape: IApiArrayShape,\n binding: string,\n source?: string\n ): OperationParameter | OperationParameter[] {\n const target = shape.items || shape\n if (target.types.includes(AmfNamespace.w3.shacl.NodeShape)) {\n const typed = shape.items as IApiNodeShape\n return this.collectOperationParameters(typed, binding, source)\n }\n const { id, name } = target\n const constructed: IApiParameter = {\n id,\n binding,\n schema: shape,\n name,\n examples: [],\n payloads: [],\n types: [AmfNamespace.aml.vocabularies.apiContract.Parameter],\n required: false,\n customDomainProperties: [],\n }\n return {\n binding,\n paramId: id,\n parameter: constructed,\n source: source || '',\n schemaId: id,\n schema: shape,\n }\n }\n\n /**\n * @param shape\n * @param binding The parameter binding.\n * @param source Optional parameter source.\n */\n unionShapeOperationParameter(\n shape: IApiUnionShape,\n binding: string,\n source?: string\n ): OperationParameter[] | undefined {\n const { anyOf = [], or = [], and = [], xone = [] } = shape\n if (and.length) {\n let result: OperationParameter[] = []\n and.forEach((item) => {\n const itemResult = this.collectOperationParameters(item, binding, source)\n if (itemResult) {\n result = result.concat(itemResult)\n }\n })\n return result\n }\n const info = anyOf[0] || or[0] || xone[0]\n if (!info) {\n return undefined\n }\n return this.collectOperationParameters(info, binding, source)\n }\n}\n"]}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { IShapeUnion, IApiUnionShape } from '@api-client/core/amf/definitions/Shapes.js';
|
|
2
|
+
import type { IApiParameter, IApiParametrizedDeclaration } from '@api-client/core/amf/definitions/Api.js';
|
|
2
3
|
/**
|
|
3
4
|
* Stops an event and cancels it.
|
|
4
5
|
* @param e The event to stop
|
|
@@ -18,14 +19,14 @@ export declare function schemaToType(value: string): string;
|
|
|
18
19
|
* @param isArray Used internally
|
|
19
20
|
* @returns Computed label for a shape.
|
|
20
21
|
*/
|
|
21
|
-
export declare function readPropertyTypeLabel(schema:
|
|
22
|
+
export declare function readPropertyTypeLabel(schema: IShapeUnion, isArray?: boolean): string | undefined;
|
|
22
23
|
/**
|
|
23
24
|
* @param shape
|
|
24
25
|
* @returns true when the passed union type consists of scalar values only. Nil counts as scalar.
|
|
25
26
|
*/
|
|
26
|
-
export declare function isScalarUnion(shape:
|
|
27
|
+
export declare function isScalarUnion(shape: IApiUnionShape): boolean;
|
|
27
28
|
export declare function sanitizeHTML(HTML: string): string;
|
|
28
|
-
export declare function joinTraitNames(traits:
|
|
29
|
+
export declare function joinTraitNames(traits: IApiParametrizedDeclaration[]): string;
|
|
29
30
|
export declare function generateHeaders(params: Record<string, unknown>): string;
|
|
30
31
|
/**
|
|
31
32
|
* Ensures the headers have content type header.
|
|
@@ -38,5 +39,5 @@ export declare function ensureContentType(headers: string, mime?: string): strin
|
|
|
38
39
|
* @param schema
|
|
39
40
|
* @returns The name to use in the input.
|
|
40
41
|
*/
|
|
41
|
-
export declare function readLabelValue(parameter:
|
|
42
|
+
export declare function readLabelValue(parameter: IApiParameter, schema: IShapeUnion): string;
|
|
42
43
|
//# sourceMappingURL=Utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Utils.d.ts","sourceRoot":"","sources":["../../../../src/amf/lib/Utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Utils.d.ts","sourceRoot":"","sources":["../../../../src/amf/lib/Utils.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,WAAW,EAKX,cAAc,EACf,MAAM,4CAA4C,CAAA;AACnD,OAAO,KAAK,EAAE,aAAa,EAAE,2BAA2B,EAAE,MAAM,yCAAyC,CAAA;AACzG;;;GAGG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI,CAI1C;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,KAAK,GAAE,MAAM,EAAO,GAAG,OAAO,CAG1D;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAWlD;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,WAAW,EAAE,OAAO,UAAQ,GAAG,MAAM,GAAG,SAAS,CAuD9F;AAUD;;;GAGG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,cAAc,GAAG,OAAO,CAe5D;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAcjD;AAED,wBAAgB,cAAc,CAAC,MAAM,EAAE,2BAA2B,EAAE,GAAG,MAAM,CAa5E;AAED,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAmBvE;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAUxE;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,SAAS,EAAE,aAAa,EAAE,MAAM,EAAE,WAAW,GAAG,MAAM,CAOpF"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Headers } from '@api-client/core/lib/headers/Headers.js';
|
|
2
|
+
import { AmfNamespace } from '@api-client/core/amf/definitions/Namespace.js';
|
|
2
3
|
import sanitizer from 'dompurify';
|
|
3
4
|
/**
|
|
4
5
|
* Stops an event and cancels it.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Utils.js","sourceRoot":"","sources":["../../../../src/amf/lib/Utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAuC,OAAO,EAAE,MAAM,6BAA6B,CAAA;AACxG,OAAO,SAAS,MAAM,WAAW,CAAA;AACjC;;;GAGG;AACH,MAAM,UAAU,WAAW,CAAC,CAAQ;IAClC,CAAC,CAAC,cAAc,EAAE,CAAA;IAClB,CAAC,CAAC,eAAe,EAAE,CAAA;IACnB,CAAC,CAAC,wBAAwB,EAAE,CAAA;AAC9B,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,YAAY,CAAC,QAAkB,EAAE;IAC/C,MAAM,EAAE,MAAM,EAAE,GAA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;QAC/C,MAAM,IAAI,KAAK,CAAA;QACf,OAAO,MAAM,CAAA;IACf,CAAC,CAAC,CAAA;IACF,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;AACzB,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,iBAAiB,CAAC,OAAe,EAAE,IAAa;IAC9D,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,OAAO,OAAO,CAAA;IAChB,CAAC;IACD,MAAM,MAAM,GAAG,IAAI,OAAO,CAAC,OAAO,CAAC,CAAA;IACnC,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CAAC,cAAc,CAAC,CAAA;IAC1C,IAAI,CAAC,OAAO,IAAI,IAAI,EAAE,CAAC;QACrB,MAAM,CAAC,GAAG,CAAC,cAAc,EAAE,IAAI,CAAC,CAAA;IAClC,CAAC;IACD,OAAO,MAAM,CAAC,QAAQ,EAAE,CAAA;AAC1B,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,cAAc,CAAC,SAAuC,EAAE,MAA6B;IACnG,IAAI,KAAK,GAAG,SAAS,CAAC,SAAS,IAAI,MAAM,CAAC,WAAW,IAAI,SAAS,CAAC,IAAI,IAAI,MAAM,CAAC,IAAI,IAAI,EAAE,CAAA;IAC5F,MAAM,EAAE,QAAQ,EAAE,GAAG,SAAS,CAAA;IAC9B,IAAI,QAAQ,EAAE,CAAC;QACb,KAAK,IAAI,GAAG,CAAA;IACd,CAAC;IACD,OAAO,KAAK,CAAA;AACd,CAAC","sourcesContent":["import { AmfNamespace, type ApiDefinitions, type AmfShapes, Headers } from '@api-client/core/browser.js'\nimport sanitizer from 'dompurify'\n/**\n * Stops an event and cancels it.\n * @param e The event to stop\n */\nexport function cancelEvent(e: Event): void {\n e.preventDefault()\n e.stopPropagation()\n e.stopImmediatePropagation()\n}\n\n/**\n * @param types Shape's types\n */\nexport function isScalarType(types: string[] = []): boolean {\n const { shapes } = AmfNamespace.aml.vocabularies\n return types.includes(shapes.ScalarShape) || types.includes(shapes.NilShape) || types.includes(shapes.FileShape)\n}\n\n/**\n * @param value The value from the graph model to use to read the value from\n */\nexport function schemaToType(value: string): string {\n const typed = String(value)\n let index = typed.lastIndexOf('#')\n if (index === -1) {\n index = typed.lastIndexOf('/')\n }\n let v = typed.substr(index + 1)\n if (v) {\n v = `${v[0].toUpperCase()}${v.substr(1)}`\n }\n return v\n}\n\n/**\n * Reads the label for a data type for a shape union.\n * @param schema\n * @param isArray Used internally\n * @returns Computed label for a shape.\n */\nexport function readPropertyTypeLabel(schema: AmfShapes.IShapeUnion, isArray = false): string | undefined {\n if (!schema) {\n return undefined\n }\n const { types } = schema\n if (types.includes(AmfNamespace.aml.vocabularies.shapes.NilShape)) {\n return 'Nil'\n }\n if (types.includes(AmfNamespace.aml.vocabularies.shapes.ScalarShape)) {\n const scalar = schema as AmfShapes.IApiScalarShape\n return schemaToType(scalar.dataType || '')\n }\n if (types.includes(AmfNamespace.aml.vocabularies.shapes.TupleShape)) {\n const array = schema as AmfShapes.IApiTupleShape\n if (!array.items || !array.items.length) {\n return undefined\n }\n const label = readPropertyTypeLabel(array.items[0], true)\n return `List of ${label}`\n }\n if (types.includes(AmfNamespace.aml.vocabularies.shapes.ArrayShape)) {\n const array = schema as AmfShapes.IApiArrayShape\n if (!array.items) {\n return undefined\n }\n let label = readPropertyTypeLabel(array.items, true)\n if (label === 'items' && !isScalarType(array.items.types)) {\n label = 'objects'\n }\n return `List of ${label}`\n }\n if (types.includes(AmfNamespace.w3.shacl.NodeShape)) {\n let { name } = schema as AmfShapes.IApiNodeShape\n const { properties } = schema as AmfShapes.IApiNodeShape\n if (isArray && properties && properties.length === 1) {\n const potentialScalar = properties[0].range as AmfShapes.IApiScalarShape\n if (potentialScalar.types.includes(AmfNamespace.aml.vocabularies.shapes.ScalarShape)) {\n return schemaToType(potentialScalar.dataType || '')\n }\n }\n if (name === 'type') {\n // AMF seems to put `type` value into a property that is declared inline (?).\n name = undefined\n }\n return name || 'Object'\n }\n if (types.includes(AmfNamespace.aml.vocabularies.shapes.UnionShape)) {\n const union = schema as AmfShapes.IApiUnionShape\n const items = union.anyOf.map((i) => readPropertyTypeLabel(i))\n return items.join(' or ')\n }\n if (types.includes(AmfNamespace.aml.vocabularies.shapes.FileShape)) {\n return 'File'\n }\n return schema.name || 'Unknown'\n}\n\n/**\n * @param shapes\n * @returns true when all of passed shapes are scalar.\n */\nfunction isAllScalar(shapes: AmfShapes.IShapeUnion[] = []): boolean {\n return !shapes.some((i) => !isScalarType(i.types))\n}\n\n/**\n * @param shape\n * @returns true when the passed union type consists of scalar values only. Nil counts as scalar.\n */\nexport function isScalarUnion(shape: AmfShapes.IApiUnionShape): boolean {\n const { anyOf = [], or = [], and = [], xone = [] } = shape\n if (anyOf.length) {\n return isAllScalar(anyOf)\n }\n if (or.length) {\n return isAllScalar(or)\n }\n if (and.length) {\n return isAllScalar(and)\n }\n if (xone.length) {\n return isAllScalar(xone)\n }\n return true\n}\n\nexport function sanitizeHTML(HTML: string): string {\n const result = sanitizer.sanitize(HTML, {\n ADD_ATTR: ['target', 'href'],\n ALLOWED_TAGS: ['a'],\n USE_PROFILES: { html: true },\n })\n\n if (typeof result === 'string') {\n return result\n }\n\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n return result.toString()\n}\n\nexport function joinTraitNames(traits: ApiDefinitions.IApiParametrizedDeclaration[]): string {\n const names = traits.map((trait) => trait.name).filter((i) => !!i)\n let value = ''\n if (names.length === 2) {\n value = names.join(' and ')\n } else if (value.length > 2) {\n const last = names.pop()\n value = names.join(', ')\n value += `, and ${last}`\n } else {\n value = names.join(', ')\n }\n return value\n}\n\nexport function generateHeaders(params: Record<string, unknown>): string {\n if (typeof params !== 'object') {\n return ''\n }\n const lines = Object.keys(params).map((name) => {\n let value = params[name]\n if (value === undefined) {\n value = ''\n } else if (Array.isArray(value)) {\n value = value.join(',')\n } else {\n value = String(value)\n }\n let result = `${name}: `\n value = (value as string).split('\\n').join(' ')\n result += value\n return result\n })\n return lines.join('\\n')\n}\n\n/**\n * Ensures the headers have content type header.\n * @param headers The generated headers string\n * @param mime The expected by the selected payload media type. If not set then it does nothing.\n */\nexport function ensureContentType(headers: string, mime?: string): string {\n if (!mime) {\n return headers\n }\n const parsed = new Headers(headers)\n const current = parsed.get('content-type')\n if (!current && mime) {\n parsed.set('content-type', mime)\n }\n return parsed.toString()\n}\n\n/**\n * @param parameter\n * @param schema\n * @returns The name to use in the input.\n */\nexport function readLabelValue(parameter: ApiDefinitions.IApiParameter, schema: AmfShapes.IShapeUnion): string {\n let label = parameter.paramName || schema.displayName || parameter.name || schema.name || ''\n const { required } = parameter\n if (required) {\n label += '*'\n }\n return label\n}\n"]}
|
|
1
|
+
{"version":3,"file":"Utils.js","sourceRoot":"","sources":["../../../../src/amf/lib/Utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yCAAyC,CAAA;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,+CAA+C,CAAA;AAC5E,OAAO,SAAS,MAAM,WAAW,CAAA;AAUjC;;;GAGG;AACH,MAAM,UAAU,WAAW,CAAC,CAAQ;IAClC,CAAC,CAAC,cAAc,EAAE,CAAA;IAClB,CAAC,CAAC,eAAe,EAAE,CAAA;IACnB,CAAC,CAAC,wBAAwB,EAAE,CAAA;AAC9B,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,YAAY,CAAC,QAAkB,EAAE;IAC/C,MAAM,EAAE,MAAM,EAAE,GAAG,YAAY,CAAC,GAAG,CAAC,YAAY,CAAA;IAChD,OAAO,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,SAAS,CAAC,CAAA;AAClH,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,YAAY,CAAC,KAAa;IACxC,MAAM,KAAK,GAAG,MAA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IAAI,OAAO,CAAC,OAAO,CAAC,CAAA;IACnC,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CAAC,cAAc,CAAC,CAAA;IAC1C,IAAI,CAAC,OAAO,IAAI,IAAI,EAAE,CAAC;QACrB,MAAM,CAAC,GAAG,CAAC,cAAc,EAAE,IAAI,CAAC,CAAA;IAClC,CAAC;IACD,OAAO,MAAM,CAAC,QAAQ,EAAE,CAAA;AAC1B,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,cAAc,CAAC,SAAwB,EAAE,MAAmB;IAC1E,IAAI,KAAK,GAAG,SAAS,CAAC,SAAS,IAAI,MAAM,CAAC,WAAW,IAAI,SAAS,CAAC,IAAI,IAAI,MAAM,CAAC,IAAI,IAAI,EAAE,CAAA;IAC5F,MAAM,EAAE,QAAQ,EAAE,GAAG,SAAS,CAAA;IAC9B,IAAI,QAAQ,EAAE,CAAC;QACb,KAAK,IAAI,GAAG,CAAA;IACd,CAAC;IACD,OAAO,KAAK,CAAA;AACd,CAAC","sourcesContent":["import { Headers } from '@api-client/core/lib/headers/Headers.js'\nimport { AmfNamespace } from '@api-client/core/amf/definitions/Namespace.js'\nimport sanitizer from 'dompurify'\nimport type {\n IShapeUnion,\n IApiScalarShape,\n IApiTupleShape,\n IApiArrayShape,\n IApiNodeShape,\n IApiUnionShape,\n} from '@api-client/core/amf/definitions/Shapes.js'\nimport type { IApiParameter, IApiParametrizedDeclaration } from '@api-client/core/amf/definitions/Api.js'\n/**\n * Stops an event and cancels it.\n * @param e The event to stop\n */\nexport function cancelEvent(e: Event): void {\n e.preventDefault()\n e.stopPropagation()\n e.stopImmediatePropagation()\n}\n\n/**\n * @param types Shape's types\n */\nexport function isScalarType(types: string[] = []): boolean {\n const { shapes } = AmfNamespace.aml.vocabularies\n return types.includes(shapes.ScalarShape) || types.includes(shapes.NilShape) || types.includes(shapes.FileShape)\n}\n\n/**\n * @param value The value from the graph model to use to read the value from\n */\nexport function schemaToType(value: string): string {\n const typed = String(value)\n let index = typed.lastIndexOf('#')\n if (index === -1) {\n index = typed.lastIndexOf('/')\n }\n let v = typed.substr(index + 1)\n if (v) {\n v = `${v[0].toUpperCase()}${v.substr(1)}`\n }\n return v\n}\n\n/**\n * Reads the label for a data type for a shape union.\n * @param schema\n * @param isArray Used internally\n * @returns Computed label for a shape.\n */\nexport function readPropertyTypeLabel(schema: IShapeUnion, isArray = false): string | undefined {\n if (!schema) {\n return undefined\n }\n const { types } = schema\n if (types.includes(AmfNamespace.aml.vocabularies.shapes.NilShape)) {\n return 'Nil'\n }\n if (types.includes(AmfNamespace.aml.vocabularies.shapes.ScalarShape)) {\n const scalar = schema as IApiScalarShape\n return schemaToType(scalar.dataType || '')\n }\n if (types.includes(AmfNamespace.aml.vocabularies.shapes.TupleShape)) {\n const array = schema as IApiTupleShape\n if (!array.items || !array.items.length) {\n return undefined\n }\n const label = readPropertyTypeLabel(array.items[0], true)\n return `List of ${label}`\n }\n if (types.includes(AmfNamespace.aml.vocabularies.shapes.ArrayShape)) {\n const array = schema as IApiArrayShape\n if (!array.items) {\n return undefined\n }\n let label = readPropertyTypeLabel(array.items, true)\n if (label === 'items' && !isScalarType(array.items.types)) {\n label = 'objects'\n }\n return `List of ${label}`\n }\n if (types.includes(AmfNamespace.w3.shacl.NodeShape)) {\n let { name } = schema as IApiNodeShape\n const { properties } = schema as IApiNodeShape\n if (isArray && properties && properties.length === 1) {\n const potentialScalar = properties[0].range as IApiScalarShape\n if (potentialScalar.types.includes(AmfNamespace.aml.vocabularies.shapes.ScalarShape)) {\n return schemaToType(potentialScalar.dataType || '')\n }\n }\n if (name === 'type') {\n // AMF seems to put `type` value into a property that is declared inline (?).\n name = undefined\n }\n return name || 'Object'\n }\n if (types.includes(AmfNamespace.aml.vocabularies.shapes.UnionShape)) {\n const union = schema as IApiUnionShape\n const items = union.anyOf.map((i) => readPropertyTypeLabel(i))\n return items.join(' or ')\n }\n if (types.includes(AmfNamespace.aml.vocabularies.shapes.FileShape)) {\n return 'File'\n }\n return schema.name || 'Unknown'\n}\n\n/**\n * @param shapes\n * @returns true when all of passed shapes are scalar.\n */\nfunction isAllScalar(shapes: IShapeUnion[] = []): boolean {\n return !shapes.some((i) => !isScalarType(i.types))\n}\n\n/**\n * @param shape\n * @returns true when the passed union type consists of scalar values only. Nil counts as scalar.\n */\nexport function isScalarUnion(shape: IApiUnionShape): boolean {\n const { anyOf = [], or = [], and = [], xone = [] } = shape\n if (anyOf.length) {\n return isAllScalar(anyOf)\n }\n if (or.length) {\n return isAllScalar(or)\n }\n if (and.length) {\n return isAllScalar(and)\n }\n if (xone.length) {\n return isAllScalar(xone)\n }\n return true\n}\n\nexport function sanitizeHTML(HTML: string): string {\n const result = sanitizer.sanitize(HTML, {\n ADD_ATTR: ['target', 'href'],\n ALLOWED_TAGS: ['a'],\n USE_PROFILES: { html: true },\n })\n\n if (typeof result === 'string') {\n return result\n }\n\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n return result.toString()\n}\n\nexport function joinTraitNames(traits: IApiParametrizedDeclaration[]): string {\n const names = traits.map((trait) => trait.name).filter((i) => !!i)\n let value = ''\n if (names.length === 2) {\n value = names.join(' and ')\n } else if (value.length > 2) {\n const last = names.pop()\n value = names.join(', ')\n value += `, and ${last}`\n } else {\n value = names.join(', ')\n }\n return value\n}\n\nexport function generateHeaders(params: Record<string, unknown>): string {\n if (typeof params !== 'object') {\n return ''\n }\n const lines = Object.keys(params).map((name) => {\n let value = params[name]\n if (value === undefined) {\n value = ''\n } else if (Array.isArray(value)) {\n value = value.join(',')\n } else {\n value = String(value)\n }\n let result = `${name}: `\n value = (value as string).split('\\n').join(' ')\n result += value\n return result\n })\n return lines.join('\\n')\n}\n\n/**\n * Ensures the headers have content type header.\n * @param headers The generated headers string\n * @param mime The expected by the selected payload media type. If not set then it does nothing.\n */\nexport function ensureContentType(headers: string, mime?: string): string {\n if (!mime) {\n return headers\n }\n const parsed = new Headers(headers)\n const current = parsed.get('content-type')\n if (!current && mime) {\n parsed.set('content-type', mime)\n }\n return parsed.toString()\n}\n\n/**\n * @param parameter\n * @param schema\n * @returns The name to use in the input.\n */\nexport function readLabelValue(parameter: IApiParameter, schema: IShapeUnion): string {\n let label = parameter.paramName || schema.displayName || parameter.name || schema.name || ''\n const { required } = parameter\n if (required) {\n label += '*'\n }\n return label\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { IAmfDomainElement } from '@api-client/core/amf/definitions/Amf.js';
|
|
2
2
|
import { AmfStore } from './AmfStore.js';
|
|
3
3
|
/**
|
|
4
4
|
* The AMF graph store that hosts multiple instances of the AMF graph model.
|
|
@@ -18,7 +18,7 @@ export declare class AmfGraphStore {
|
|
|
18
18
|
* @param graph The graph model to use to initialize the store.
|
|
19
19
|
* @returns The store id to be used to reference when querying the store.
|
|
20
20
|
*/
|
|
21
|
-
add(graph:
|
|
21
|
+
add(graph: IAmfDomainElement): Promise<string>;
|
|
22
22
|
/**
|
|
23
23
|
* Removes all APIs from the store.
|
|
24
24
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AmfGraphStore.d.ts","sourceRoot":"","sources":["../../../../src/amf/store/AmfGraphStore.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AmfGraphStore.d.ts","sourceRoot":"","sources":["../../../../src/amf/store/AmfGraphStore.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAA;AAChF,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAExC;;;;;GAKG;AACH,qBAAa,aAAa;IACxB,IAAI,EAAE,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAA;IAE3B,MAAM,EAAE,WAAW,CAAA;IAEnB;;OAEG;gBACS,MAAM,GAAE,WAAoB;IAKxC;;;;OAIG;IACG,GAAG,CAAC,KAAK,EAAE,iBAAiB,GAAG,OAAO,CAAC,MAAM,CAAC;IAOpD;;OAEG;IACG,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAI5B;;;OAGG;IACG,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIvC;;;;;OAKG;IACG,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC;CAWtE"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
-
import {
|
|
2
|
+
import { nanoid } from 'nanoid';
|
|
3
3
|
import { AmfStore } from './AmfStore.js';
|
|
4
4
|
/**
|
|
5
5
|
* The AMF graph store that hosts multiple instances of the AMF graph model.
|
|
@@ -23,7 +23,7 @@ export class AmfGraphStore {
|
|
|
23
23
|
* @returns The store id to be used to reference when querying the store.
|
|
24
24
|
*/
|
|
25
25
|
async add(graph) {
|
|
26
|
-
const id =
|
|
26
|
+
const id = nanoid();
|
|
27
27
|
const instance = new AmfStore(this.target, graph);
|
|
28
28
|
this.apis.set(id, instance);
|
|
29
29
|
return id;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AmfGraphStore.js","sourceRoot":"","sources":["../../../../src/amf/store/AmfGraphStore.ts"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,OAAO,
|
|
1
|
+
{"version":3,"file":"AmfGraphStore.js","sourceRoot":"","sources":["../../../../src/amf/store/AmfGraphStore.ts"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAE/B,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAExC;;;;;GAKG;AACH,MAAM,OAAO,aAAa;IACxB,IAAI,CAAuB;IAE3B,MAAM,CAAa;IAEnB;;OAEG;IACH,YAAY,SAAsB,MAAM;QACtC,IAAI,CAAC,I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 'nanoid'\nimport type { IAmfDomainElement } from '@api-client/core/amf/definitions/Amf.js'\nimport { AmfStore } from './AmfStore.js'\n\n/**\n * The AMF graph store that hosts multiple instances of the AMF graph model.\n *\n * Note, all methods are asynchronous so this class can be extended to support async communication\n * with the store (like HTTP or WS).\n */\nexport class AmfGraphStore {\n apis: Map<string, AmfStore>\n\n target: EventTarget\n\n /**\n * @param target The event target to dispatch the events on.\n */\n constructor(target: EventTarget = window) {\n this.apis = new Map()\n this.target = target\n }\n\n /**\n * Creates a new store object.\n * @param graph The graph model to use to initialize the store.\n * @returns The store id to be used to reference when querying the store.\n */\n async add(graph: IAmfDomainElement): Promise<string> {\n const id = nanoid()\n const instance = new AmfStore(this.target, graph)\n this.apis.set(id, instance)\n return id\n }\n\n /**\n * Removes all APIs from the store.\n */\n async clear(): Promise<void> {\n this.apis.clear()\n }\n\n /**\n * Removes a specific API from the store.\n * @param id The graph store identifier generated when calling `add()`.\n */\n async delete(id: string): Promise<void> {\n this.apis.delete(id)\n }\n\n /**\n * Proxies a read command to the store.\n * @param id The graph store identifier generated when calling `add()`.\n * @param command The command (method name) to call on the store.\n * @param args The list of command arguments.\n */\n async read(id: string, command: string, ...args: any[]): Promise<any> {\n if (!this.apis.has(id)) {\n throw new Error(`No graph defined for ${id}`)\n }\n const instance = this.apis.get(id) as AmfStore\n const typedCmd = command as keyof AmfStore\n if (typeof instance[typedCmd] !== 'function') {\n throw new Error(`The command ${command} is not callable on the graph store.`)\n }\n return (instance[typedCmd] as (...opts: any[]) => Promise<any>)(...args)\n }\n}\n"]}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { DocumentMeta, ApiEndPointWithOperationsListItem, ApiSecuritySchemeListItem, ApiNodeShapeListItem } from '../types.js';
|
|
1
|
+
import type { IAmfDocument } from '@api-client/core/amf/definitions/Amf.js';
|
|
2
|
+
import type { DocumentMeta, ApiEndPointWithOperationsListItem, ApiSecuritySchemeListItem, ApiNodeShapeListItem } from '../types.js';
|
|
3
|
+
import { AmfSerializer } from '@api-client/core/amf/AmfSerializer.js';
|
|
4
|
+
import type { IApiSummary, IApiEndPoint, IApiServer, IApiOperation, IApiDocumentation, IApiSecurityScheme, IApiSecurityRequirement, IApiRequest, IApiResponse, IApiPayload } from '@api-client/core/amf/definitions/Api.js';
|
|
5
|
+
import type { ServersQueryOptions } from '@api-client/core/amf/AmfMixin.js';
|
|
6
|
+
import type { IShapeUnion } from '@api-client/core/amf/definitions/Shapes.js';
|
|
3
7
|
/**
|
|
4
8
|
* An abstract base class for the store implementation that works with API Components.
|
|
5
9
|
*/
|
|
@@ -14,7 +18,7 @@ export declare class AmfStore {
|
|
|
14
18
|
/**
|
|
15
19
|
* @param target The event target to dispatch the events on.
|
|
16
20
|
*/
|
|
17
|
-
constructor(target?: EventTarget, graph?:
|
|
21
|
+
constructor(target?: EventTarget, graph?: IAmfDocument);
|
|
18
22
|
/**
|
|
19
23
|
* @returns The list of domain types for the currently loaded document.
|
|
20
24
|
*/
|
|
@@ -27,7 +31,7 @@ export declare class AmfStore {
|
|
|
27
31
|
/**
|
|
28
32
|
* @returns API summary for the summary view.
|
|
29
33
|
*/
|
|
30
|
-
apiSummary(): Promise<
|
|
34
|
+
apiSummary(): Promise<IApiSummary | undefined>;
|
|
31
35
|
/**
|
|
32
36
|
* @returns Currently loaded API's protocols
|
|
33
37
|
*/
|
|
@@ -40,12 +44,12 @@ export declare class AmfStore {
|
|
|
40
44
|
* Reads an endpoint by its id.
|
|
41
45
|
* @param id The domain id of the endpoint.
|
|
42
46
|
*/
|
|
43
|
-
getEndpoint(id: string): Promise<
|
|
47
|
+
getEndpoint(id: string): Promise<IApiEndPoint | undefined>;
|
|
44
48
|
/**
|
|
45
49
|
* Reads an endpoint by its path.
|
|
46
50
|
* @param path The path value of the endpoint or channel name.
|
|
47
51
|
*/
|
|
48
|
-
getEndpointByPath(path: string): Promise<
|
|
52
|
+
getEndpointByPath(path: string): Promise<IApiEndPoint | undefined>;
|
|
49
53
|
/**
|
|
50
54
|
* Lists all endpoints with operations included into the result.
|
|
51
55
|
*/
|
|
@@ -55,38 +59,38 @@ export declare class AmfStore {
|
|
|
55
59
|
* @param query Server query options
|
|
56
60
|
* @returns The list of servers for given query.
|
|
57
61
|
*/
|
|
58
|
-
queryServers(query?: ServersQueryOptions): Promise<
|
|
62
|
+
queryServers(query?: ServersQueryOptions): Promise<IApiServer[]>;
|
|
59
63
|
/**
|
|
60
64
|
* Reads the operation model.
|
|
61
65
|
* @param operationId The domain id of the operation to read.
|
|
62
66
|
* @param endpointId Optional endpoint id. When not set it searches through all endpoints.
|
|
63
67
|
*/
|
|
64
|
-
getOperation(operationId: string, endpointId?: string): Promise<
|
|
68
|
+
getOperation(operationId: string, endpointId?: string): Promise<IApiOperation | undefined>;
|
|
65
69
|
/**
|
|
66
70
|
* Finds an endpoint that has the operation.
|
|
67
71
|
* @param id Method name or the domain id of the operation to find
|
|
68
72
|
*/
|
|
69
|
-
getOperationParent(id: string): Promise<
|
|
73
|
+
getOperationParent(id: string): Promise<IApiEndPoint | undefined>;
|
|
70
74
|
/**
|
|
71
75
|
* Lists the documentation definitions for the API.
|
|
72
76
|
*/
|
|
73
|
-
listDocumentations(): Promise<
|
|
77
|
+
listDocumentations(): Promise<IApiDocumentation[] | undefined>;
|
|
74
78
|
/**
|
|
75
79
|
* Reads the documentation object from the store.
|
|
76
80
|
* @param id The domain id of the documentation object
|
|
77
81
|
* @returns The read documentation.
|
|
78
82
|
*/
|
|
79
|
-
getDocumentation(id: string): Promise<
|
|
83
|
+
getDocumentation(id: string): Promise<IApiDocumentation | undefined>;
|
|
80
84
|
/**
|
|
81
85
|
* Reads the SecurityScheme object from the graph.
|
|
82
86
|
* @param id The domain id of the SecurityScheme
|
|
83
87
|
*/
|
|
84
|
-
getSecurityScheme(id: string): Promise<
|
|
88
|
+
getSecurityScheme(id: string): Promise<IApiSecurityScheme | undefined>;
|
|
85
89
|
/**
|
|
86
90
|
* Reads the SecurityRequirement object from the graph.
|
|
87
91
|
* @param id The domain id of the SecurityRequirement
|
|
88
92
|
*/
|
|
89
|
-
getSecurityRequirement(id: string): Promise<
|
|
93
|
+
getSecurityRequirement(id: string): Promise<IApiSecurityRequirement | undefined>;
|
|
90
94
|
/**
|
|
91
95
|
* Lists the security definitions for the API.
|
|
92
96
|
*/
|
|
@@ -95,17 +99,17 @@ export declare class AmfStore {
|
|
|
95
99
|
* Reads the Request object from the graph.
|
|
96
100
|
* @param id The domain id of the Request
|
|
97
101
|
*/
|
|
98
|
-
getRequest(id: string): Promise<
|
|
102
|
+
getRequest(id: string): Promise<IApiRequest | undefined>;
|
|
99
103
|
/**
|
|
100
104
|
* Reads the response data from the graph.
|
|
101
105
|
* @param id The domain id of the response.
|
|
102
106
|
*/
|
|
103
|
-
getResponse(id: string): Promise<
|
|
107
|
+
getResponse(id: string): Promise<IApiResponse | undefined>;
|
|
104
108
|
/**
|
|
105
109
|
* Reads Payload data from the graph
|
|
106
110
|
* @param id The domain id of the payload
|
|
107
111
|
*/
|
|
108
|
-
getPayload(id: string): Promise<
|
|
112
|
+
getPayload(id: string): Promise<IApiPayload | undefined>;
|
|
109
113
|
/**
|
|
110
114
|
* Lists the type (schema) definitions for the API.
|
|
111
115
|
*/
|
|
@@ -113,6 +117,6 @@ export declare class AmfStore {
|
|
|
113
117
|
/**
|
|
114
118
|
* @param id The domain id of the API type (schema).
|
|
115
119
|
*/
|
|
116
|
-
getType(id: string): Promise<
|
|
120
|
+
getType(id: string): Promise<IShapeUnion | undefined>;
|
|
117
121
|
}
|
|
118
122
|
//# sourceMappingURL=AmfStore.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AmfStore.d.ts","sourceRoot":"","sources":["../../../../src/amf/store/AmfStore.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AmfStore.d.ts","sourceRoot":"","sources":["../../../../src/amf/store/AmfStore.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,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-
|
|
2
|
-
import { AmfSerializer, } from '@api-client/core/browser.js';
|
|
1
|
+
import { AmfSerializer } from '@api-client/core/amf/AmfSerializer.js';
|
|
3
2
|
/**
|
|
4
3
|
* An abstract base class for the store implementation that works with API Components.
|
|
5
4
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AmfStore.js","sourceRoot":"","sources":["../../../../src/amf/store/AmfStore.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AmfStore.js","sourceRoot":"","sources":["../../../../src/amf/store/AmfStore.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAA;AAgBrE;;GAEG;AACH,MAAM,OAAO,QAAQ;IACnB;;;OAGG;IACH,QAAQ,CAAS;IAEjB,MAAM,CAAa;IAEnB,UAAU,CAAe;IAEzB;;OAEG;IACH,YAAY,SAAsB,MAAM,EAAE,KAAoB;QAC5D,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAA;QACpB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;QACpB,IAAI,GAAG,GAAG,KAAK,CAAA;QACf,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;YACzB,CAAC;YAAA,CAAC,GAAG,CAAC,GAAG,KAAK,CAAA;QAChB,CAAC;QACD;;WAEG;QACH,IAAI,CAAC,UAAU,GAAG,IAAI,aAAa,CAAC,GAAG,CAAC,CAAA;IAC1C,CAAC;IAED;;OAEG;IACH,gBAAgB;QACd,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAA;IACpC,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,YAAY;QAChB,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAA;IACpC,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,UAAU;QACd,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAA;IACpC,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,YAAY;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AI,KAAK,CAAC,iBAAiB,CAAC,CAAA;IACpC,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,YAAY;QAChB,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAA;IACpC,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,UAAU,CAAC,EAAU;QACzB,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAA;IACpC,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,WAAW,CAAC,EAAU;QAC1B,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAA;IACpC,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,UAAU,CAAC,EAAU;QACzB,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAA;IACpC,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,SAAS;QACb,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAA;IACpC,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,OAAO,CAAC,EAAU;QACtB,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAA;IACpC,CAAC;CACF","sourcesContent":["/* eslint-disable @typescript-eslint/no-unused-vars */\nimport type { IAmfDocument } from '@api-client/core/amf/definitions/Amf.js'\nimport type {\n DocumentMeta,\n ApiEndPointWithOperationsListItem,\n ApiSecuritySchemeListItem,\n ApiNodeShapeListItem,\n} from '../types.js'\nimport { AmfSerializer } from '@api-client/core/amf/AmfSerializer.js'\nimport type {\n IApiSummary,\n IApiEndPoint,\n IApiServer,\n IApiOperation,\n IApiDocumentation,\n IApiSecurityScheme,\n IApiSecurityRequirement,\n IApiRequest,\n IApiResponse,\n IApiPayload,\n} from '@api-client/core/amf/definitions/Api.js'\nimport type { ServersQueryOptions } from '@api-client/core/amf/AmfMixin.js'\nimport type { IShapeUnion } from '@api-client/core/amf/definitions/Shapes.js'\n\n/**\n * An abstract base class for the store implementation that works with API Components.\n */\nexport class AmfStore {\n /**\n * For future use.\n * Indicates that the store is read only.\n */\n readonly: boolean\n\n target: EventTarget\n\n serializer: AmfSerializer\n\n /**\n * @param target The event target to dispatch the events on.\n */\n constructor(target: EventTarget = window, graph?: IAmfDocument) {\n this.readonly = true\n this.target = target\n let amf = graph\n if (Array.isArray(graph)) {\n ;[amf] = graph\n }\n /**\n * The API serializer\n */\n this.serializer = new AmfSerializer(amf)\n }\n\n /**\n * @returns The list of domain types for the currently loaded document.\n */\n getDocumentTypes(): string[] {\n throw new Error('Not implemented')\n }\n\n /**\n * Gathers information about the loaded document.\n * This is mainly used by the `api-documentation` element to decide which documentation to render.\n */\n async documentMeta(): Promise<DocumentMeta> {\n throw new Error('Not implemented')\n }\n\n /**\n * @returns API summary for the summary view.\n */\n async apiSummary(): Promise<IApiSummary | undefined> {\n throw new Error('Not implemented')\n }\n\n /**\n * @returns Currently loaded API's protocols\n */\n async apiProtocols(): Promise<string[] | undefined> {\n throw new Error('Not implemented')\n }\n\n /**\n * @returns Currently loaded API's version\n */\n async apiVersion(): Promise<string | undefined> {\n throw new Error('Not implemented')\n }\n\n /**\n * Reads an endpoint by its id.\n * @param id The domain id of the endpoint.\n */\n async getEndpoint(id: string): Promise<IApiEndPoint | undefined> {\n throw new Error('Not implemented')\n }\n\n /**\n * Reads an endpoint by its path.\n * @param path The path value of the endpoint or channel name.\n */\n async getEndpointByPath(path: string): Promise<IApiEndPoint | undefined> {\n throw new Error('Not implemented')\n }\n\n /**\n * Lists all endpoints with operations included into the result.\n */\n async listEndpointsWithOperations(): Promise<ApiEndPointWithOperationsListItem[]> {\n throw new Error('Not implemented')\n }\n\n /**\n * Queries for the list of servers for method, if defined, or endpoint, if defined, or root level\n * @param query Server query options\n * @returns The list of servers for given query.\n */\n async queryServers(query?: ServersQueryOptions): Promise<IApiServer[]> {\n throw new Error('Not implemented')\n }\n\n /**\n * Reads the operation model.\n * @param operationId The domain id of the operation to read.\n * @param endpointId Optional endpoint id. When not set it searches through all endpoints.\n */\n async getOperation(operationId: string, endpointId?: string): Promise<IApiOperation | undefined> {\n throw new Error('Not implemented')\n }\n\n /**\n * Finds an endpoint that has the operation.\n * @param id Method name or the domain id of the operation to find\n */\n async getOperationParent(id: string): Promise<IApiEndPoint | undefined> {\n throw new Error('Not implemented')\n }\n\n /**\n * Lists the documentation definitions for the API.\n */\n async listDocumentations(): Promise<IApiDocumentation[] | undefined> {\n throw new Error('Not implemented')\n }\n\n /**\n * Reads the documentation object from the store.\n * @param id The domain id of the documentation object\n * @returns The read documentation.\n */\n async getDocumentation(id: string): Promise<IApiDocumentation | undefined> {\n throw new Error('Not implemented')\n }\n\n /**\n * Reads the SecurityScheme object from the graph.\n * @param id The domain id of the SecurityScheme\n */\n async getSecurityScheme(id: string): Promise<IApiSecurityScheme | undefined> {\n throw new Error('Not implemented')\n }\n\n /**\n * Reads the SecurityRequirement object from the graph.\n * @param id The domain id of the SecurityRequirement\n */\n async getSecurityRequirement(id: string): Promise<IApiSecurityRequirement | undefined> {\n throw new Error('Not implemented')\n }\n\n /**\n * Lists the security definitions for the API.\n */\n async listSecurity(): Promise<ApiSecuritySchemeListItem[]> {\n throw new Error('Not implemented')\n }\n\n /**\n * Reads the Request object from the graph.\n * @param id The domain id of the Request\n */\n async getRequest(id: string): Promise<IApiRequest | undefined> {\n throw new Error('Not implemented')\n }\n\n /**\n * Reads the response data from the graph.\n * @param id The domain id of the response.\n */\n async getResponse(id: string): Promise<IApiResponse | undefined> {\n throw new Error('Not implemented')\n }\n\n /**\n * Reads Payload data from the graph\n * @param id The domain id of the payload\n */\n async getPayload(id: string): Promise<IApiPayload | undefined> {\n throw new Error('Not implemented')\n }\n\n /**\n * Lists the type (schema) definitions for the API.\n */\n async listTypes(): Promise<ApiNodeShapeListItem[]> {\n throw new Error(`Not implemented`)\n }\n\n /**\n * @param id The domain id of the API type (schema).\n */\n async getType(id: string): Promise<IShapeUnion | undefined> {\n throw new Error('Not implemented')\n }\n}\n"]}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import { type AmfDefinitions, type ApiDefinitions, type AmfShapes, type ServersQueryOptions } from '@api-client/core/browser.js';
|
|
2
1
|
import { AmfStore } from './AmfStore.js';
|
|
3
2
|
import { type DocumentMeta, type ApiEndPointWithOperationsListItem, type ApiSecuritySchemeListItem, type ApiNodeShapeListItem } from '../types.js';
|
|
4
|
-
|
|
3
|
+
import { ServersQueryOptions } from '@api-client/core/amf/AmfMixin.js';
|
|
4
|
+
import { IAmfDocument, IAmfDomainElement } from '@api-client/core/amf/definitions/Amf.js';
|
|
5
|
+
import { IApiSummary, IApiEndPoint, IApiServer, IApiOperation, IApiDocumentation, IApiSecurityScheme, IApiSecurityRequirement, IApiRequest, IApiResponse, IApiPayload } from '@api-client/core/amf/definitions/Api.js';
|
|
6
|
+
import type { IShapeUnion } from '@api-client/core/amf/definitions/Shapes.js';
|
|
7
|
+
declare const InMemAmfGraphStore_base: (new (...args: any[]) => import("@api-client/core/amf/AmfMixin.js").AmfMixinInterface) & typeof AmfStore;
|
|
5
8
|
/**
|
|
6
9
|
* The store that provides an API to read data from the AMF graph model.
|
|
7
10
|
* The graph model is kept in memory in a form of a Raw ld+json graph representation of the
|
|
@@ -12,8 +15,8 @@ export declare class InMemAmfGraphStore extends InMemAmfGraphStore_base {
|
|
|
12
15
|
* @param target The event target to dispatch the events on.
|
|
13
16
|
* @param graph The full API model.
|
|
14
17
|
*/
|
|
15
|
-
constructor(target?: EventTarget, graph?:
|
|
16
|
-
_amfChanged(amf:
|
|
18
|
+
constructor(target?: EventTarget, graph?: IAmfDocument);
|
|
19
|
+
_amfChanged(amf: IAmfDocument): void;
|
|
17
20
|
/**
|
|
18
21
|
* @returns The list of domain types for the currently loaded document.
|
|
19
22
|
*/
|
|
@@ -26,7 +29,7 @@ export declare class InMemAmfGraphStore extends InMemAmfGraphStore_base {
|
|
|
26
29
|
/**
|
|
27
30
|
* @returns API summary for the summary view.
|
|
28
31
|
*/
|
|
29
|
-
apiSummary(): Promise<
|
|
32
|
+
apiSummary(): Promise<IApiSummary | undefined>;
|
|
30
33
|
/**
|
|
31
34
|
* @returns Currently loaded API's protocols
|
|
32
35
|
*/
|
|
@@ -40,17 +43,17 @@ export declare class InMemAmfGraphStore extends InMemAmfGraphStore_base {
|
|
|
40
43
|
* @param id The domain id of the endpoint.
|
|
41
44
|
* @private
|
|
42
45
|
*/
|
|
43
|
-
findEndpoint(id: string):
|
|
46
|
+
findEndpoint(id: string): IApiEndPoint | undefined;
|
|
44
47
|
/**
|
|
45
48
|
* Reads an endpoint by its id.
|
|
46
49
|
* @param id The domain id of the endpoint.
|
|
47
50
|
*/
|
|
48
|
-
getEndpoint(id: string): Promise<
|
|
51
|
+
getEndpoint(id: string): Promise<IApiEndPoint | undefined>;
|
|
49
52
|
/**
|
|
50
53
|
* Reads an endpoint by its path.
|
|
51
54
|
* @param path The path value of the endpoint or channel name.
|
|
52
55
|
*/
|
|
53
|
-
getEndpointByPath(path: string): Promise<
|
|
56
|
+
getEndpointByPath(path: string): Promise<IApiEndPoint | undefined>;
|
|
54
57
|
/**
|
|
55
58
|
* Lists all endpoints with operations included into the result.
|
|
56
59
|
*/
|
|
@@ -60,44 +63,44 @@ export declare class InMemAmfGraphStore extends InMemAmfGraphStore_base {
|
|
|
60
63
|
* @param query Server query options
|
|
61
64
|
* @returns The list of servers for given query.
|
|
62
65
|
*/
|
|
63
|
-
queryServers(query?: ServersQueryOptions): Promise<
|
|
66
|
+
queryServers(query?: ServersQueryOptions): Promise<IApiServer[]>;
|
|
64
67
|
/**
|
|
65
68
|
* Searches for an operation in the API.
|
|
66
69
|
* @param operationId The domain id of the operation to read.
|
|
67
70
|
* @param endpointId Optional endpoint id. When not set it searches through all endpoints.
|
|
68
71
|
*/
|
|
69
|
-
findOperation(operationId: string, endpointId?: string):
|
|
72
|
+
findOperation(operationId: string, endpointId?: string): IApiOperation | undefined;
|
|
70
73
|
/**
|
|
71
74
|
* Reads the operation model.
|
|
72
75
|
* @param operationId The domain id of the operation to read.
|
|
73
76
|
* @param endpointId Optional endpoint id. When not set it searches through all endpoints.
|
|
74
77
|
*/
|
|
75
|
-
getOperation(operationId: string, endpointId?: string): Promise<
|
|
78
|
+
getOperation(operationId: string, endpointId?: string): Promise<IApiOperation>;
|
|
76
79
|
/**
|
|
77
80
|
* Finds an endpoint that has the operation.
|
|
78
81
|
* @param id Method name or the domain id of the operation to find
|
|
79
82
|
*/
|
|
80
|
-
getOperationParent(id: string): Promise<
|
|
83
|
+
getOperationParent(id: string): Promise<IApiEndPoint | undefined>;
|
|
81
84
|
/**
|
|
82
85
|
* Lists the documentation definitions for the API.
|
|
83
86
|
*/
|
|
84
|
-
listDocumentations(): Promise<
|
|
87
|
+
listDocumentations(): Promise<IApiDocumentation[] | undefined>;
|
|
85
88
|
/**
|
|
86
89
|
* Reads the documentation object from the store.
|
|
87
90
|
* @param id The domain id of the documentation object
|
|
88
91
|
* @returns The read documentation.
|
|
89
92
|
*/
|
|
90
|
-
getDocumentation(id: string): Promise<
|
|
93
|
+
getDocumentation(id: string): Promise<IApiDocumentation | undefined>;
|
|
91
94
|
/**
|
|
92
95
|
* Reads the SecurityScheme object from the graph.
|
|
93
96
|
* @param id The domain id of the SecurityScheme
|
|
94
97
|
*/
|
|
95
|
-
getSecurityScheme(id: string): Promise<
|
|
98
|
+
getSecurityScheme(id: string): Promise<IApiSecurityScheme | undefined>;
|
|
96
99
|
/**
|
|
97
100
|
* Reads the SecurityRequirement object from the graph.
|
|
98
101
|
* @param id The domain id of the SecurityRequirement
|
|
99
102
|
*/
|
|
100
|
-
getSecurityRequirement(id: string): Promise<
|
|
103
|
+
getSecurityRequirement(id: string): Promise<IApiSecurityRequirement | undefined>;
|
|
101
104
|
/**
|
|
102
105
|
* Lists the security definitions for the API.
|
|
103
106
|
*/
|
|
@@ -106,21 +109,21 @@ export declare class InMemAmfGraphStore extends InMemAmfGraphStore_base {
|
|
|
106
109
|
* Reads the Request object from the graph.
|
|
107
110
|
* @param id The domain id of the Request
|
|
108
111
|
*/
|
|
109
|
-
getRequest(id: string): Promise<
|
|
112
|
+
getRequest(id: string): Promise<IApiRequest | undefined>;
|
|
110
113
|
/**
|
|
111
114
|
* Reads the response data from the graph.
|
|
112
115
|
* @param id The domain id of the response.
|
|
113
116
|
*/
|
|
114
|
-
getResponse(id: string): Promise<
|
|
117
|
+
getResponse(id: string): Promise<IApiResponse | undefined>;
|
|
115
118
|
/**
|
|
116
119
|
* Finds a payload in a request or a response object.
|
|
117
120
|
*/
|
|
118
|
-
findPayload(object:
|
|
121
|
+
findPayload(object: IAmfDomainElement, domainId: string): IApiPayload | undefined;
|
|
119
122
|
/**
|
|
120
123
|
* Reads Payload data from the graph
|
|
121
124
|
* @param id The domain id of the payload
|
|
122
125
|
*/
|
|
123
|
-
getPayload(id: string): Promise<
|
|
126
|
+
getPayload(id: string): Promise<IApiPayload | undefined>;
|
|
124
127
|
/**
|
|
125
128
|
* Lists the type (schema) definitions for the API.
|
|
126
129
|
*/
|
|
@@ -128,7 +131,7 @@ export declare class InMemAmfGraphStore extends InMemAmfGraphStore_base {
|
|
|
128
131
|
/**
|
|
129
132
|
* @param id The domain id of the API type (schema).
|
|
130
133
|
*/
|
|
131
|
-
getType(id: string): Promise<
|
|
134
|
+
getType(id: string): Promise<IShapeUnion | undefined>;
|
|
132
135
|
}
|
|
133
136
|
export {};
|
|
134
137
|
//# sourceMappingURL=InMemAmfGraphStore.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InMemAmfGraphStore.d.ts","sourceRoot":"","sources":["../../../../src/amf/store/InMemAmfGraphStore.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"InMemAmfGraphStore.d.ts","sourceRoot":"","sources":["../../../../src/amf/store/InMemAmfGraphStore.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACxC,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,iCAAiC,EACtC,KAAK,yBAAyB,EAC9B,KAAK,oBAAoB,EAC1B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E,CAAC;IAgB3D;;OAEG;IACY,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,GAAG,SAAS,CAAC;CAmBrE"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
-
import { AmfMixin, AmfNamespace, } from '@api-client/core/browser.js';
|
|
3
2
|
import { StoreEvents } from '../../events/amf/StoreEvents.js';
|
|
4
3
|
import { AmfStore } from './AmfStore.js';
|
|
4
|
+
import { AmfMixin } from '@api-client/core/amf/AmfMixin.js';
|
|
5
|
+
import { AmfNamespace } from '@api-client/core/amf/definitions/Namespace.js';
|
|
5
6
|
/**
|
|
6
7
|
* The store that provides an API to read data from the AMF graph model.
|
|
7
8
|
* The graph model is kept in memory in a form of a Raw ld+json graph representation of the
|