@dnax/ui 0.0.49 → 0.0.51

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.
@@ -100,6 +100,7 @@ const loadECharts = () => {
100
100
  components.GridComponent,
101
101
  components.TooltipComponent,
102
102
  components.LegendComponent,
103
+ components.TitleComponent, // titre (`title` prop)
103
104
  components.MarkLineComponent,
104
105
  components.VisualMapComponent, // échelle de couleurs des cartes de chaleur
105
106
  renderers.CanvasRenderer,
@@ -268,7 +268,7 @@ onBeforeUnmount(() => {
268
268
  >
269
269
  <Icon :icon="icons.x" aria-hidden="true" />
270
270
  </button>
271
- <ChevronDown class="q-select__arrow" :class="{ 'q-select__arrow--rotated': open }" aria-hidden="true" />
271
+ <Icon :icon="icons.chevronDown" class="q-select__arrow" :class="{ 'q-select__arrow--rotated': open }" aria-hidden="true" />
272
272
  </div>
273
273
  <div class="q-field__bottom">
274
274
  <div v-if="error" class="q-field__error">{{ errorMessage }}</div>
@@ -397,6 +397,12 @@ const select = (opt: any) => {
397
397
  else {
398
398
  if (!isSelected(opt)) emit("update:modelValue", value)
399
399
  closePopup()
400
+ // Après une sélection (simple), on efface la recherche pour laisser place à
401
+ // l'élément choisi : le champ d'affichage reprend le label, plus le filtre.
402
+ if (query.value !== "") {
403
+ query.value = ""
404
+ emit("update:inputValue", "")
405
+ }
400
406
  }
401
407
  }
402
408
 
@@ -520,6 +526,12 @@ const openPopup = () => {
520
526
 
521
527
  const closePopup = () => {
522
528
  open.value = false
529
+ // Fermeture sans sélection (clic extérieur, backdrop, Échap, ×) : on abandonne la
530
+ // recherche saisie pour ne pas laisser un filtre fantôme au prochain affichage.
531
+ if (query.value !== "" && !hasValue.value) {
532
+ query.value = ""
533
+ emit("update:inputValue", "")
534
+ }
523
535
  }
524
536
 
525
537
  const togglePopup = () => (open.value ? closePopup() : openPopup())
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dnax/ui",
3
- "version": "0.0.49",
3
+ "version": "0.0.51",
4
4
  "module": "index.ts",
5
5
  "description": "UI design System",
6
6
  "type": "module",