@ouestfrance/sipa-bms-ui 8.7.0 → 8.8.0

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.
@@ -7,8 +7,8 @@
7
7
  * - Please do NOT modify this file.
8
8
  */
9
9
 
10
- const PACKAGE_VERSION = '2.11.1'
11
- const INTEGRITY_CHECKSUM = 'f5825c521429caf22a4dd13b66e243af'
10
+ const PACKAGE_VERSION = '2.11.3'
11
+ const INTEGRITY_CHECKSUM = '4db4a41e972cec1b64cc569c66952d82'
12
12
  const IS_MOCKED_RESPONSE = Symbol('isMockedResponse')
13
13
  const activeClientIds = new Set()
14
14
 
@@ -71,11 +71,6 @@ addEventListener('message', async function (event) {
71
71
  break
72
72
  }
73
73
 
74
- case 'MOCK_DEACTIVATE': {
75
- activeClientIds.delete(clientId)
76
- break
77
- }
78
-
79
74
  case 'CLIENT_CLOSED': {
80
75
  activeClientIds.delete(clientId)
81
76
 
@@ -94,6 +89,8 @@ addEventListener('message', async function (event) {
94
89
  })
95
90
 
96
91
  addEventListener('fetch', function (event) {
92
+ const requestInterceptedAt = Date.now()
93
+
97
94
  // Bypass navigation requests.
98
95
  if (event.request.mode === 'navigate') {
99
96
  return
@@ -110,23 +107,29 @@ addEventListener('fetch', function (event) {
110
107
 
111
108
  // Bypass all requests when there are no active clients.
112
109
  // Prevents the self-unregistered worked from handling requests
113
- // after it's been deleted (still remains active until the next reload).
110
+ // after it's been terminated (still remains active until the next reload).
114
111
  if (activeClientIds.size === 0) {
115
112
  return
116
113
  }
117
114
 
118
115
  const requestId = crypto.randomUUID()
119
- event.respondWith(handleRequest(event, requestId))
116
+ event.respondWith(handleRequest(event, requestId, requestInterceptedAt))
120
117
  })
121
118
 
122
119
  /**
123
120
  * @param {FetchEvent} event
124
121
  * @param {string} requestId
122
+ * @param {number} requestInterceptedAt
125
123
  */
126
- async function handleRequest(event, requestId) {
124
+ async function handleRequest(event, requestId, requestInterceptedAt) {
127
125
  const client = await resolveMainClient(event)
128
126
  const requestCloneForEvents = event.request.clone()
129
- const response = await getResponse(event, client, requestId)
127
+ const response = await getResponse(
128
+ event,
129
+ client,
130
+ requestId,
131
+ requestInterceptedAt,
132
+ )
130
133
 
131
134
  // Send back the response clone for the "response:*" life-cycle events.
132
135
  // Ensure MSW is active and ready to handle the message, otherwise
@@ -204,7 +207,7 @@ async function resolveMainClient(event) {
204
207
  * @param {string} requestId
205
208
  * @returns {Promise<Response>}
206
209
  */
207
- async function getResponse(event, client, requestId) {
210
+ async function getResponse(event, client, requestId, requestInterceptedAt) {
208
211
  // Clone the request because it might've been already used
209
212
  // (i.e. its body has been read and sent to the client).
210
213
  const requestClone = event.request.clone()
@@ -255,6 +258,7 @@ async function getResponse(event, client, requestId) {
255
258
  type: 'REQUEST',
256
259
  payload: {
257
260
  id: requestId,
261
+ interceptedAt: requestInterceptedAt,
258
262
  ...serializedRequest,
259
263
  },
260
264
  },
@@ -402,7 +402,7 @@
402
402
  width: 1em;
403
403
  height: 1em;
404
404
  display: block;
405
- }.bms-tooltip__text[data-v-e8f6f5f1] {
405
+ }.bms-tooltip__text[data-v-44def116] {
406
406
  --bms-tooltip-background-color: white;
407
407
  --bms-tooltip-color: inherit;
408
408
  --bms-tooltip-margin: 4px;
@@ -415,12 +415,12 @@
415
415
  max-height: 30rem;
416
416
  position: absolute;
417
417
  overflow: hidden;
418
- z-index: 20;
418
+ z-index: var(--bms-z-index-tooltip);
419
419
  filter: drop-shadow(0 0 0.8rem var(--bms-shadow-color));
420
420
  color: var(--bms-font-color);
421
421
  transform: var(--bms-tooltip-transform);
422
422
  }
423
- .bms-tooltip__text[data-v-e8f6f5f1]::before {
423
+ .bms-tooltip__text[data-v-44def116]::before {
424
424
  content: "";
425
425
  position: absolute;
426
426
  right: var(--bms-tooltip-indicator-position-right);
@@ -432,54 +432,54 @@
432
432
  border-style: solid;
433
433
  border-color: var(--bms-tooltip-indicator-border);
434
434
  }
435
- .bms-tooltip__text--top[data-v-e8f6f5f1], .bms-tooltip__text--bottom[data-v-e8f6f5f1] {
435
+ .bms-tooltip__text--top[data-v-44def116], .bms-tooltip__text--bottom[data-v-44def116] {
436
436
  --bms-tooltip-indicator-position-left: 50%;
437
437
  --bms-tooltip-indicator-position-right: initial;
438
438
  }
439
- .bms-tooltip__text--bottom[data-v-e8f6f5f1] {
439
+ .bms-tooltip__text--bottom[data-v-44def116] {
440
440
  --bms-tooltip-indicator-position-top: initial;
441
441
  --bms-tooltip-indicator-position-bottom: 100%;
442
442
  --bms-tooltip-indicator-border: transparent transparent
443
443
  var(--bms-tooltip-background-color) transparent;
444
444
  }
445
- .bms-tooltip__text--top[data-v-e8f6f5f1] {
445
+ .bms-tooltip__text--top[data-v-44def116] {
446
446
  --bms-tooltip-indicator-position-top: 100%;
447
447
  --bms-tooltip-indicator-position-bottom: initial;
448
448
  --bms-tooltip-indicator-border: var(--bms-tooltip-background-color)
449
449
  transparent transparent transparent;
450
450
  }
451
- .bms-tooltip__text--left[data-v-e8f6f5f1], .bms-tooltip__text--right[data-v-e8f6f5f1] {
451
+ .bms-tooltip__text--left[data-v-44def116], .bms-tooltip__text--right[data-v-44def116] {
452
452
  --bms-tooltip-indicator-position-top: 50%;
453
453
  --bms-tooltip-indicator-position-bottom: initial;
454
454
  }
455
- .bms-tooltip__text--left[data-v-e8f6f5f1] {
455
+ .bms-tooltip__text--left[data-v-44def116] {
456
456
  --bms-tooltip-indicator-position-right: initial;
457
457
  --bms-tooltip-indicator-position-left: 100%;
458
458
  --bms-tooltip-indicator-border: transparent transparent transparent
459
459
  var(--bms-tooltip-background-color);
460
460
  }
461
- .bms-tooltip__text--right[data-v-e8f6f5f1] {
461
+ .bms-tooltip__text--right[data-v-44def116] {
462
462
  --bms-tooltip-indicator-position-right: 100%;
463
463
  --bms-tooltip-indicator-position-left: initial;
464
464
  --bms-tooltip-indicator-border: transparent
465
465
  var(--bms-tooltip-background-color) transparent transparent;
466
466
  }
467
- .tooltip-fade-enter-active[data-v-e8f6f5f1] {
467
+ .tooltip-fade-enter-active[data-v-44def116] {
468
468
  transition: opacity 0.2s ease;
469
469
  }
470
- .tooltip-fade-enter-from[data-v-e8f6f5f1] {
470
+ .tooltip-fade-enter-from[data-v-44def116] {
471
471
  opacity: 0;
472
472
  }
473
- .tooltip-fade-enter-to[data-v-e8f6f5f1] {
473
+ .tooltip-fade-enter-to[data-v-44def116] {
474
474
  opacity: 1;
475
475
  }
476
- .tooltip-fade-leave-active[data-v-e8f6f5f1] {
476
+ .tooltip-fade-leave-active[data-v-44def116] {
477
477
  transition: opacity 0.3s ease;
478
478
  }
479
- .tooltip-fade-leave-from[data-v-e8f6f5f1] {
479
+ .tooltip-fade-leave-from[data-v-44def116] {
480
480
  opacity: 1;
481
481
  }
482
- .tooltip-fade-leave-to[data-v-e8f6f5f1] {
482
+ .tooltip-fade-leave-to[data-v-44def116] {
483
483
  opacity: 0;
484
484
  }.bms-tooltip-anchor-wrapper[data-v-b033f8af] {
485
485
  position: relative;
@@ -1483,17 +1483,17 @@ input[type=radio][data-v-c0c9efa3]:checked::before {
1483
1483
  .bms-header__subtitle[data-v-1368f77d] {
1484
1484
  margin-top: 0.5em;
1485
1485
  display: inline-block;
1486
- }.overlay[data-v-5004909e] {
1486
+ }.overlay[data-v-383b958c] {
1487
1487
  position: fixed;
1488
1488
  top: 0;
1489
1489
  left: 0;
1490
1490
  width: 100vw;
1491
1491
  height: 100vh;
1492
- z-index: 10;
1492
+ z-index: var(--bms-z-index-modal);
1493
1493
  background: rgba(82, 100, 118, 0.3);
1494
1494
  }
1495
- .priority[data-v-5004909e] {
1496
- z-index: 20;
1495
+ .priority[data-v-383b958c] {
1496
+ z-index: calc(var(--bms-z-index-modal) + 10);
1497
1497
  }.ui-modal[data-v-96b6d748] {
1498
1498
  --modal-header-border-size: 1px;
1499
1499
  --modal-header-color: var(--bms-grey-10);
@@ -1883,7 +1883,7 @@ nav .additional[data-v-731a6d8c] {
1883
1883
  align-items: center;
1884
1884
  min-height: 80px;
1885
1885
  overflow-x: hidden;
1886
- }.menu__container[data-v-79a67d3d] {
1886
+ }.menu__container[data-v-02719cac] {
1887
1887
  --menu-margin: 1.5rem;
1888
1888
  position: fixed;
1889
1889
  display: flex;
@@ -1896,44 +1896,44 @@ nav .additional[data-v-731a6d8c] {
1896
1896
  margin: 1.5rem;
1897
1897
  padding: 0;
1898
1898
  border-radius: 0.5rem;
1899
- z-index: 10;
1899
+ z-index: var(--bms-z-index-fixed);
1900
1900
  }
1901
- .menu__copyright[data-v-79a67d3d] {
1901
+ .menu__copyright[data-v-02719cac] {
1902
1902
  position: sticky;
1903
1903
  padding: 1rem;
1904
1904
  text-align: center;
1905
1905
  }
1906
- .menu__copyright-madein[data-v-79a67d3d] {
1906
+ .menu__copyright-madein[data-v-02719cac] {
1907
1907
  font-size: 0.75em;
1908
1908
  margin: 0;
1909
1909
  opacity: 0.64;
1910
1910
  }
1911
- .menu__logo[data-v-79a67d3d] {
1911
+ .menu__logo[data-v-02719cac] {
1912
1912
  width: 100%;
1913
1913
  object-fit: contain;
1914
1914
  height: 4rem;
1915
1915
  display: block;
1916
1916
  }
1917
- [data-v-79a67d3d] .menu__close {
1917
+ [data-v-02719cac] .menu__close {
1918
1918
  position: absolute;
1919
1919
  top: 0;
1920
1920
  margin: 0.5rem;
1921
1921
  right: 0;
1922
1922
  }
1923
- .menu-slide-left-fade-enter-active[data-v-79a67d3d],
1924
- .menu-slide-left-fade-leave-active[data-v-79a67d3d] {
1923
+ .menu-slide-left-fade-enter-active[data-v-02719cac],
1924
+ .menu-slide-left-fade-leave-active[data-v-02719cac] {
1925
1925
  transition: opacity 0.2s linear;
1926
1926
  }
1927
- .menu-slide-left-fade-enter-from[data-v-79a67d3d],
1928
- .menu-slide-left-fade-leave-to[data-v-79a67d3d] {
1927
+ .menu-slide-left-fade-enter-from[data-v-02719cac],
1928
+ .menu-slide-left-fade-leave-to[data-v-02719cac] {
1929
1929
  opacity: 0;
1930
1930
  }
1931
- .menu-slide-left-fade-enter-active .menu__container[data-v-79a67d3d],
1932
- .menu-slide-left-fade-leave-active .menu__container[data-v-79a67d3d] {
1931
+ .menu-slide-left-fade-enter-active .menu__container[data-v-02719cac],
1932
+ .menu-slide-left-fade-leave-active .menu__container[data-v-02719cac] {
1933
1933
  transition: transform 0.2s ease-in-out;
1934
1934
  }
1935
- .menu-slide-left-fade-enter-from .menu__container[data-v-79a67d3d],
1936
- .menu-slide-left-fade-leave-to .menu__container[data-v-79a67d3d] {
1935
+ .menu-slide-left-fade-enter-from .menu__container[data-v-02719cac],
1936
+ .menu-slide-left-fade-leave-to .menu__container[data-v-02719cac] {
1937
1937
  transform: translate3d(-10%, 0, 0);
1938
1938
  }.tab[data-v-d2f6b84b] {
1939
1939
  --tab-border-color: transparent;
@@ -1973,36 +1973,36 @@ nav .additional[data-v-731a6d8c] {
1973
1973
  .tabs-header a[data-v-f862fbda] {
1974
1974
  position: relative;
1975
1975
  top: 1px;
1976
- }.ui-menu[data-v-9504df98] {
1976
+ }.ui-menu[data-v-a5b2b7f5] {
1977
1977
  --ui-menu-width: auto;
1978
1978
  min-width: 100px;
1979
1979
  max-height: 400px;
1980
1980
  width: var(--ui-menu-width, auto);
1981
1981
  width: 400px;
1982
1982
  position: fixed;
1983
- z-index: 10;
1983
+ z-index: var(--bms-z-index-fixed);
1984
1984
  display: block;
1985
1985
  pointer-events: none;
1986
1986
  opacity: 0;
1987
1987
  transition: opacity 0.1s linear;
1988
1988
  }
1989
- .ui-menu.is-matchwidth[data-v-9504df98] {
1989
+ .ui-menu.is-matchwidth[data-v-a5b2b7f5] {
1990
1990
  max-width: 100%;
1991
1991
  }
1992
- .ui-menu.is-visible[data-v-9504df98] {
1992
+ .ui-menu.is-visible[data-v-a5b2b7f5] {
1993
1993
  pointer-events: all;
1994
1994
  opacity: 1;
1995
1995
  }
1996
- .ui-menu.left[data-v-9504df98] {
1996
+ .ui-menu.left[data-v-a5b2b7f5] {
1997
1997
  left: var(--ui-menu-x-position, 0);
1998
1998
  }
1999
- .ui-menu.bottom[data-v-9504df98] {
1999
+ .ui-menu.bottom[data-v-a5b2b7f5] {
2000
2000
  top: var(--ui-menu-y-position, 0);
2001
2001
  }
2002
- .ui-menu.top[data-v-9504df98] {
2002
+ .ui-menu.top[data-v-a5b2b7f5] {
2003
2003
  bottom: var(--ui-menu-y-position, 0);
2004
2004
  }
2005
- .ui-menu.right[data-v-9504df98] {
2005
+ .ui-menu.right[data-v-a5b2b7f5] {
2006
2006
  right: calc(100% - var(--ui-menu-x-position, 0));
2007
2007
  }
2008
2008
  .site-logo {
@@ -2529,7 +2529,7 @@ nav .additional[data-v-731a6d8c] {
2529
2529
  }
2530
2530
  .bms-notification[data-v-2a9037b5] .bms-notification__close-button:hover {
2531
2531
  color: var(--notification-background-color);
2532
- }.bms-notifications[data-v-bbd8ca27] {
2532
+ }.bms-notifications[data-v-b20e6fa0] {
2533
2533
  --bms-notifications-width: 360px;
2534
2534
  --bms-notifications-margin: 1em 0 0;
2535
2535
  --bms-notifications-left: initial;
@@ -2546,24 +2546,24 @@ nav .additional[data-v-731a6d8c] {
2546
2546
  top: var(--bms-notifications-top);
2547
2547
  width: 100%;
2548
2548
  max-width: var(--bms-notifications-width);
2549
- z-index: 20;
2549
+ z-index: var(--bms-z-index-fixed);
2550
2550
  }
2551
- .bms-notifications__item[data-v-bbd8ca27]:not(:first-child) {
2551
+ .bms-notifications__item[data-v-b20e6fa0]:not(:first-child) {
2552
2552
  margin: var(--bms-notifications-margin);
2553
2553
  }
2554
- .bms-notifactions-transition-move[data-v-bbd8ca27],
2555
- .bms-notifactions-transition-enter-active[data-v-bbd8ca27],
2556
- .bms-notifactions-transition-leave-active[data-v-bbd8ca27] {
2554
+ .bms-notifactions-transition-move[data-v-b20e6fa0],
2555
+ .bms-notifactions-transition-enter-active[data-v-b20e6fa0],
2556
+ .bms-notifactions-transition-leave-active[data-v-b20e6fa0] {
2557
2557
  transition: all var(--bms-notifications-transition-duration) var(--bms-notifications-transition-timing-function);
2558
2558
  }
2559
- .bms-notifactions-transition-enter-from[data-v-bbd8ca27],
2560
- .bms-notifactions-transition-leave-to[data-v-bbd8ca27] {
2559
+ .bms-notifactions-transition-enter-from[data-v-b20e6fa0],
2560
+ .bms-notifactions-transition-leave-to[data-v-b20e6fa0] {
2561
2561
  opacity: 0;
2562
2562
  }
2563
- .bms-notifactions-transition-enter-from[data-v-bbd8ca27] {
2563
+ .bms-notifactions-transition-enter-from[data-v-b20e6fa0] {
2564
2564
  transform: translateX(var(--bms-notifications-enter-translate));
2565
2565
  }
2566
- .bms-notifactions-transition-leave-active[data-v-bbd8ca27] {
2566
+ .bms-notifactions-transition-leave-active[data-v-b20e6fa0] {
2567
2567
  position: absolute;
2568
2568
  }.ui-problem[data-v-411b2e2a] {
2569
2569
  position: relative;
@@ -3089,6 +3089,11 @@ section {
3089
3089
  --bms-information-color: var(--bms-grey-100);
3090
3090
  --bms-disabled-color: var(--bms-grey-50);
3091
3091
  --bms-font-color: var(--bms-grey-100);
3092
+ --bms-z-index-below: -10;
3093
+ --bms-z-index-base: 0;
3094
+ --bms-z-index-fixed: 10;
3095
+ --bms-z-index-tooltip: 20;
3096
+ --bms-z-index-modal: 30;
3092
3097
  }.content[data-v-12e40422] {
3093
3098
  display: flex;
3094
3099
  flex-direction: column;
@@ -3177,7 +3182,7 @@ section {
3177
3182
  margin: 0;
3178
3183
  background: var(--bms-white);
3179
3184
  width: 100%;
3180
- z-index: 100;
3185
+ z-index: var(--bms-z-index-tooltip);
3181
3186
  max-height: 300px;
3182
3187
  overflow-y: auto;
3183
3188
  }
@@ -37845,7 +37845,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
37845
37845
  }
37846
37846
  });
37847
37847
 
37848
- const UiTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$1c, [["__scopeId", "data-v-e8f6f5f1"]]);
37848
+ const UiTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$1c, [["__scopeId", "data-v-44def116"]]);
37849
37849
 
37850
37850
  const _sfc_main$1b = /* @__PURE__ */ defineComponent({
37851
37851
  __name: "BmsTooltip",
@@ -89204,7 +89204,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
89204
89204
  }
89205
89205
  });
89206
89206
 
89207
- const BmsOverlay = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-5004909e"]]);
89207
+ const BmsOverlay = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-383b958c"]]);
89208
89208
 
89209
89209
  const _hoisted_1$v = ["data-testid"];
89210
89210
  const _hoisted_2$k = { class: "ui-modal__header" };
@@ -90042,7 +90042,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
90042
90042
  }
90043
90043
  });
90044
90044
 
90045
- const BmsMenu = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-79a67d3d"]]);
90045
+ const BmsMenu = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-02719cac"]]);
90046
90046
 
90047
90047
  const _sfc_main$p = /* @__PURE__ */ defineComponent({
90048
90048
  __name: "UiTab",
@@ -90195,7 +90195,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
90195
90195
  }
90196
90196
  });
90197
90197
 
90198
- const UiPopoverMenu = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-9504df98"]]);
90198
+ const UiPopoverMenu = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-a5b2b7f5"]]);
90199
90199
 
90200
90200
  const getInitials = (name) => {
90201
90201
  if (name.length === 0) return "";
@@ -101912,7 +101912,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
101912
101912
  }
101913
101913
  });
101914
101914
 
101915
- const NotificationWidget = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-bbd8ca27"]]);
101915
+ const NotificationWidget = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-b20e6fa0"]]);
101916
101916
 
101917
101917
  const BmsNotificationsInstance = Symbol();
101918
101918
  const notifications = {
@@ -37848,7 +37848,7 @@
37848
37848
  }
37849
37849
  });
37850
37850
 
37851
- const UiTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$1c, [["__scopeId", "data-v-e8f6f5f1"]]);
37851
+ const UiTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$1c, [["__scopeId", "data-v-44def116"]]);
37852
37852
 
37853
37853
  const _sfc_main$1b = /* @__PURE__ */ vue.defineComponent({
37854
37854
  __name: "BmsTooltip",
@@ -89207,7 +89207,7 @@
89207
89207
  }
89208
89208
  });
89209
89209
 
89210
- const BmsOverlay = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-5004909e"]]);
89210
+ const BmsOverlay = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-383b958c"]]);
89211
89211
 
89212
89212
  const _hoisted_1$v = ["data-testid"];
89213
89213
  const _hoisted_2$k = { class: "ui-modal__header" };
@@ -90045,7 +90045,7 @@
90045
90045
  }
90046
90046
  });
90047
90047
 
90048
- const BmsMenu = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-79a67d3d"]]);
90048
+ const BmsMenu = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-02719cac"]]);
90049
90049
 
90050
90050
  const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
90051
90051
  __name: "UiTab",
@@ -90198,7 +90198,7 @@
90198
90198
  }
90199
90199
  });
90200
90200
 
90201
- const UiPopoverMenu = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-9504df98"]]);
90201
+ const UiPopoverMenu = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-a5b2b7f5"]]);
90202
90202
 
90203
90203
  const getInitials = (name) => {
90204
90204
  if (name.length === 0) return "";
@@ -101915,7 +101915,7 @@
101915
101915
  }
101916
101916
  });
101917
101917
 
101918
- const NotificationWidget = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-bbd8ca27"]]);
101918
+ const NotificationWidget = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-b20e6fa0"]]);
101919
101919
 
101920
101920
  const BmsNotificationsInstance = Symbol();
101921
101921
  const notifications = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ouestfrance/sipa-bms-ui",
3
- "version": "8.7.0",
3
+ "version": "8.8.0",
4
4
  "author": "Ouest-France BMS",
5
5
  "license": "ISC",
6
6
  "scripts": {
@@ -36,9 +36,9 @@
36
36
  "@commitlint/config-conventional": "19.8.1",
37
37
  "@formkit/vue": "1.6.9",
38
38
  "@mdx-js/react": "3.1.1",
39
- "@storybook/addon-docs": "9.1.5",
40
- "@storybook/addon-links": "9.1.5",
41
- "@storybook/vue3-vite": "9.1.5",
39
+ "@storybook/addon-docs": "9.1.7",
40
+ "@storybook/addon-links": "9.1.7",
41
+ "@storybook/vue3-vite": "9.1.7",
42
42
  "@types/lodash": "4.17.20",
43
43
  "@types/uuid": "11.0.0",
44
44
  "@vitejs/plugin-vue": "6.0.1",
@@ -47,7 +47,7 @@
47
47
  "@vueuse/motion": "^3.0.0",
48
48
  "axios": "1.12.2",
49
49
  "blob-util": "^2.0.2",
50
- "chromatic": "13.1.4",
50
+ "chromatic": "13.2.0",
51
51
  "codemirror": "6.0.2",
52
52
  "cors": "^2.8.5",
53
53
  "cross-env": "^10.0.0",
@@ -64,15 +64,15 @@
64
64
  "normalize.css": "8.0.1",
65
65
  "path": "0.12.7",
66
66
  "prettier": "3.6.2",
67
- "sass": "1.92.1",
68
- "semantic-release": "24.2.8",
69
- "start-server-and-test": "2.1.0",
70
- "storybook": "9.1.5",
71
- "storybook-addon-pseudo-states": "9.1.5",
67
+ "sass": "1.93.0",
68
+ "semantic-release": "24.2.9",
69
+ "start-server-and-test": "2.1.2",
70
+ "storybook": "9.1.7",
71
+ "storybook-addon-pseudo-states": "9.1.7",
72
72
  "storybook-vue3-router": "^6.0.2",
73
73
  "typescript": "5.2.2",
74
74
  "uuid": "13.0.0",
75
- "vite": "7.1.5",
75
+ "vite": "7.1.6",
76
76
  "vite-plugin-dts": "^4.1.0",
77
77
  "vite-plugin-mkcert": "1.17.8",
78
78
  "vite-plugin-pages": "0.33.1",
@@ -52,5 +52,11 @@
52
52
 
53
53
  --bms-disabled-color: var(--bms-grey-50);
54
54
  --bms-font-color: var(--bms-grey-100);
55
+
56
+ --bms-z-index-below: -10;
57
+ --bms-z-index-base: 0;
58
+ --bms-z-index-fixed: 10;
59
+ --bms-z-index-tooltip: 20;
60
+ --bms-z-index-modal: 30;
55
61
  }
56
62
  }
@@ -130,7 +130,7 @@ const style = computed(() => {
130
130
  max-height: 30rem;
131
131
  position: absolute;
132
132
  overflow: hidden;
133
- z-index: 20;
133
+ z-index: var(--bms-z-index-tooltip);
134
134
  filter: drop-shadow(0 0 0.8rem var(--bms-shadow-color));
135
135
  color: var(--bms-font-color);
136
136
  transform: var(--bms-tooltip-transform);
@@ -18,11 +18,11 @@ defineProps<{
18
18
  left: 0;
19
19
  width: 100vw;
20
20
  height: 100vh;
21
- z-index: 10;
21
+ z-index: var(--bms-z-index-modal);
22
22
  background: rgba(82, 100, 118, 0.3);
23
23
  }
24
24
 
25
25
  .priority {
26
- z-index: 20;
26
+ z-index: calc(var(--bms-z-index-modal) + 10);
27
27
  }
28
28
  </style>
@@ -133,7 +133,7 @@ const listener = () => {
133
133
  width: var(--ui-menu-width, auto);
134
134
  width: 400px;
135
135
  position: fixed;
136
- z-index: 10;
136
+ z-index: var(--bms-z-index-fixed);
137
137
  display: block;
138
138
  pointer-events: none;
139
139
  opacity: 0;
@@ -96,7 +96,7 @@ const toggleMenu = (newMenuState: boolean = true) =>
96
96
  margin: 1.5rem;
97
97
  padding: 0;
98
98
  border-radius: 0.5rem;
99
- z-index: 10;
99
+ z-index: var(--bms-z-index-fixed);
100
100
  }
101
101
 
102
102
  &__copyright {
@@ -206,7 +206,7 @@ const getCaptionIdentifier = (caption: string | Caption): string => {
206
206
  margin: 0;
207
207
  background: var(--bms-white);
208
208
  width: 100%;
209
- z-index: 100;
209
+ z-index: var(--bms-z-index-tooltip);
210
210
  max-height: 300px;
211
211
  overflow-y: auto;
212
212
 
@@ -100,7 +100,7 @@ const closeDetails = () => {
100
100
  top: var(--bms-notifications-top);
101
101
  width: 100%;
102
102
  max-width: var(--bms-notifications-width);
103
- z-index: 20;
103
+ z-index: var(--bms-z-index-fixed);
104
104
 
105
105
  &__item {
106
106
  &:not(:first-child) {
@@ -0,0 +1,39 @@
1
+ <script setup lang="ts">
2
+ import BmsButton from '@/components/button/BmsButton.vue';
3
+ import BmsTooltip from '@/components/feedback/BmsTooltip.vue';
4
+ import BmsHeader from '@/components/layout/BmsHeader.vue';
5
+ import BmsModal from '@/components/layout/BmsModal.vue';
6
+ import UiPopoverMenu from '@/components/layout/UiPopoverMenu.vue';
7
+ import BmsTenantSwitcher from '@/components/navigation/BmsTenantSwitcher.vue';
8
+ import { Tenant } from '@/models';
9
+ import { useNotifications } from '@/plugins/notifications';
10
+ import { ref } from 'vue';
11
+
12
+ const isModalOpen = ref(false);
13
+ const { success, error } = useNotifications();
14
+
15
+ const onClick = () => {
16
+ isModalOpen.value = true;
17
+ success('toto');
18
+ };
19
+
20
+ const tenants: Tenant[] = [{ id: '1', information: '1', label: 'Tenant 1' }];
21
+ </script>
22
+
23
+ <template>
24
+ <BmsTooltip
25
+ :tooltip-text="'hello hello hello hello hello hello hello hello hello hello hello hello hello hello'"
26
+ >
27
+ <BmsButton @click="onClick">Hello</BmsButton>
28
+ </BmsTooltip>
29
+ <BmsTenantSwitcher
30
+ :tenants="tenants"
31
+ :current-tenant="null"
32
+ select-tenant-label="Coucou"
33
+ select-tenant-placeholder="toto"
34
+ />
35
+
36
+ <BmsHeader> fixed header</BmsHeader>
37
+
38
+ <BmsModal v-model="isModalOpen"> Ouvrir la modale </BmsModal>
39
+ </template>