@quandis/qbo4.ui 4.0.1-CI-20240425-194927 → 4.0.1-CI-20240426-215901

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.
@@ -30,12 +30,6 @@ export class QboSelect extends QboFetch
30
30
  @property({ type: String })
31
31
  emptyOptionValue: String | null = '';
32
32
 
33
- @property({ type: String, attribute: 'qbo-class' })
34
- qboClass = null;
35
-
36
- @property({ type: Boolean, attribute: 'qbo-disabled' })
37
- qboDisabled = false;
38
-
39
33
  @property({ type: Array })
40
34
  options: Array<{ [key: string]: string }> | null = [];
41
35
 
@@ -66,10 +60,9 @@ export class QboSelect extends QboFetch
66
60
  this.optionValue ??= Object.keys(this.options[0])[0];
67
61
  this.optionText ??= Object.keys(this.options[0])[1] ?? this.optionValue;
68
62
 
69
- return html`
70
- <select ?disabled=${this.qboDisabled} class=${this.qboClass}>
71
- <option value="${this.emptyOptionValue}">${this.emptyOptionText}</option>
72
- ${this.options.map(option => html`<option value="${option[this.optionValue!]}" ?selected="${option[this.optionValue!] === this.defaultValue}">${option[this.optionText!]}</option>`)}
73
- </select>`;
63
+ return html`<select ?disabled=${this.hasAttribute('disabled')} class=${this.getAttribute('class')}>
64
+ <option value="${this.emptyOptionValue}">${this.emptyOptionText}</option>
65
+ ${this.options.map(option => html`<option value="${option[this.optionValue!]}" ?selected="${option[this.optionValue!] == this.defaultValue}">${option[this.optionText!]}</option>`)}
66
+ </select>`;
74
67
  }
75
68
  }