@aquera/nile-elements 0.0.6-3 → 0.0.6-4

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/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Webcomponent nile-elements following open-wc recommendations",
4
4
  "license": "MIT",
5
5
  "author": "nile-elements",
6
- "version": "0.0.6-3",
6
+ "version": "0.0.6-4",
7
7
  "main": "dist/src/index.js",
8
8
  "type": "module",
9
9
  "module": "dist/src/index.js",
@@ -1068,7 +1068,6 @@ export class NileSelect extends NileElement implements NileFormControl {
1068
1068
  @mouseup=${this.handleOptionClick}
1069
1069
  @slotchange=${this.handleDefaultSlotChange}
1070
1070
  >
1071
-
1072
1071
  ${this.optionsLoading
1073
1072
  ? html`
1074
1073
  <span class="select__loader">
@@ -1079,7 +1078,6 @@ export class NileSelect extends NileElement implements NileFormControl {
1079
1078
  </span>
1080
1079
  `
1081
1080
  : ''}
1082
-
1083
1081
  ${this.searchEnabled
1084
1082
  ? html` <div class="select__search">
1085
1083
  <nile-input
@@ -1122,9 +1120,13 @@ export class NileSelect extends NileElement implements NileFormControl {
1122
1120
  &nbsp; Show Selected</nile-checkbox
1123
1121
  >
1124
1122
  </span>
1125
- <span class="select__clear" @click="${this.unSlectAll}"
1126
- >clear all</span
1127
- >
1123
+ ${this.selectedOptions.length !== 0
1124
+ ? html` <span
1125
+ class="select__clear"
1126
+ @click="${this.unSlectAll}"
1127
+ >clear all</span
1128
+ >`
1129
+ : ``}
1128
1130
  </div>`
1129
1131
  : ``}
1130
1132
  </div>