@ouestfrance/sipa-bms-ui 8.48.0 → 8.48.2

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ouestfrance/sipa-bms-ui",
3
- "version": "8.48.0",
3
+ "version": "8.48.2",
4
4
  "author": "Ouest-France BMS",
5
5
  "license": "ISC",
6
6
  "scripts": {
@@ -48,7 +48,7 @@
48
48
  "@vueuse/motion": "^3.0.0",
49
49
  "axios": "1.16.1",
50
50
  "blob-util": "^2.0.2",
51
- "chromatic": "16.10.1",
51
+ "chromatic": "17.4.1",
52
52
  "codemirror": "6.0.2",
53
53
  "cors": "^2.8.5",
54
54
  "cross-env": "^10.0.0",
@@ -220,6 +220,7 @@ const canClear = computed(() => {
220
220
  const classes = computed(() => ({
221
221
  'is-error': props.errors?.length,
222
222
  'is-disabled': props.disabled,
223
+ 'has-icon': !props.multiple && !!singleSelectedItem.value?.icon,
223
224
  }));
224
225
 
225
226
  watch(searching, (newSearch) => {
@@ -537,6 +538,10 @@ defineExpose({
537
538
  align-items: center;
538
539
  justify-content: space-between;
539
540
 
541
+ &.has-icon {
542
+ gap: 5px;
543
+ }
544
+
540
545
  .field__input-icon {
541
546
  display: flex;
542
547
  &--start {
@@ -30,10 +30,8 @@
30
30
  >
31
31
  <template #default>
32
32
  <BmsProblem
33
- v-if="isProblem(openNotification?.details)"
34
33
  :problem="openNotification?.details as Problem"
35
34
  />
36
- <template v-else>{{ openNotification?.details }}</template>
37
35
  </template>
38
36
  </BmsModal>
39
37
  </template>