dev-ui.qwc-cxf-clients.js Maven / Gradle / Ivy
import { LitElement, html, css} from 'lit';
import 'qui-card';
import '@vaadin/progress-bar';
import '@vaadin/grid';
import { columnBodyRenderer } from '@vaadin/grid/lit.js';
import { JsonRpc } from 'jsonrpc';
import 'qui-ide-link';
/**
* This component shows the list of clients
*/
export class QwcCxfClients extends LitElement {
jsonRpc = new JsonRpc(this);
static styles = css`
.cxf-table {
height: 100%;
padding-bottom: 10px;
}
code {
font-size: 85%;
}
.annotation {
color: var(--lumo-contrast-50pct);
}
:host {
display: flex;
flex-direction:column;
gap: 20px;
padding-left: 10px;
padding-right: 10px;
}
.nothing-found {
padding: 5px;
}`;
static properties = {
_clients: {state: true}
};
constructor() {
super();
this._clients = null;
}
connectedCallback() {
super.connectedCallback();
this.jsonRpc.getClients().then(jsonRpcResponse => {
this._clients = jsonRpcResponse.result;
});
}
render() {
if (this._clients) {
if (this._clients.length > 0) {
return this._renderClientList();
} else {
return html`No clients found`;
}
} else {
return html` `;
}
}
_renderClientList(){
return html`
`;
}
_classNameRenderer(client){
return html`
@CXFClient("${client.configKey}")
${client.sei}
`;
}
_addressRenderer(client) {
return html`
${client.address}
`;
}
_wsdlRenderer(client) {
return html`
${client.wsdl}
`;
}
}
customElements.define('qwc-cxf-clients', QwcCxfClients);
© 2015 - 2025 Weber Informatics LLC | Privacy Policy