Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix filter per extension in dev ui #37102

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export class QwcConfiguration extends observeState(LitElement) {
flex-direction: column;
overflow: hidden;
}

.confTopBar {
display: flex;
justify-content: space-between;
Expand All @@ -50,7 +50,7 @@ export class QwcConfiguration extends observeState(LitElement) {
vertical-align: top;
width: 100%;
}

.description {
padding: 1em;
}
Expand All @@ -70,7 +70,7 @@ export class QwcConfiguration extends observeState(LitElement) {
cursor: pointer;
color: var(--lumo-primary-color);
}

.lock-icon {
color: var(--lumo-contrast-60pct);
font-size: small;
Expand Down Expand Up @@ -100,6 +100,15 @@ export class QwcConfiguration extends observeState(LitElement) {
constructor() {
super();

this._detailsOpenedItem = [];
this._busy = null;

this._showOnlyOwnProperties = false;
this._searchTerm = '';
}

connectedCallback() {
super.connectedCallback();
this._filteredValue = this.routerController.getQueryParameter("filter");

if(this._filteredValue){
Expand All @@ -109,15 +118,10 @@ export class QwcConfiguration extends observeState(LitElement) {
this._allConfiguration = e.result;
this._visibleConfiguration = e.result;
this._filtered = e.result;
})
});
this.jsonRpc.getAllValues().then(e => {
this._values = e.result;
});
this._detailsOpenedItem = [];
this._busy = null;

this._showOnlyOwnProperties = false;
this._searchTerm = '';
}

render() {
Expand Down Expand Up @@ -219,7 +223,7 @@ export class QwcConfiguration extends observeState(LitElement) {
</vaadin-grid-sort-column>

<vaadin-grid-sort-column width="45%" resizable flex-grow="0"
header="Name"
header="Name"
path="name"
class="cell"
${columnBodyRenderer(this._nameRenderer, [])}>
Expand Down Expand Up @@ -306,11 +310,11 @@ export class QwcConfiguration extends observeState(LitElement) {
</vaadin-integer-field>`;
} else if (prop.typeName === "java.lang.Float" || prop.typeName === "java.lang.Double") {
return html`
<vaadin-number-field class="input-column"
theme="small"
id="input-${prop.name}"
placeholder="${prop.defaultValue}"
value="${actualValue}"
<vaadin-number-field class="input-column"
theme="small"
id="input-${prop.name}"
placeholder="${prop.defaultValue}"
value="${actualValue}"
@keydown="${this._keydown}">
<vaadin-tooltip slot="tooltip" text="${def}"></vaadin-tooltip>
<vaadin-icon slot="suffix" icon="font-awesome-solid:floppy-disk" class="save-button"
Expand All @@ -332,26 +336,26 @@ export class QwcConfiguration extends observeState(LitElement) {
defaultValue = prop.defaultValue;
}
return html`
<vaadin-select class="input-column"
id="select-${prop.name}"
theme="small"
.items="${items}"
<vaadin-select class="input-column"
id="select-${prop.name}"
theme="small"
.items="${items}"
.value="${defaultValue}"
@change="${this._selectChanged}">
<vaadin-tooltip slot="tooltip" text="${def}"></vaadin-tooltip>

</vaadin-select>
`;
} else {
return html`
<vaadin-text-field class="input-column"
theme="small"
<vaadin-text-field class="input-column"
theme="small"
value="${actualValue}"
placeholder="${prop.defaultValue}"
id="input-${prop.name}"
placeholder="${prop.defaultValue}"
id="input-${prop.name}"
@keydown="${this._keydown}">
<vaadin-tooltip slot="tooltip" text="${def}"></vaadin-tooltip>
<vaadin-icon slot="suffix" icon="font-awesome-solid:floppy-disk" class="save-button"
<vaadin-icon slot="suffix" icon="font-awesome-solid:floppy-disk" class="save-button"
id="save-button-${prop.name}" @click="${this._saveClicked}"></vaadin-icon>
</vaadin-button>
</vaadin-text-field>
Expand All @@ -374,7 +378,7 @@ export class QwcConfiguration extends observeState(LitElement) {
}
}
res = res.toUpperCase();

let def = "<strong>Default value: </strong> None";
if (prop.defaultValue) {
def = "<strong>Default value: </strong>" + prop.defaultValue;
Expand Down
Loading