@ouestfrance/sipa-bms-ui 8.21.0 → 8.22.1

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.
@@ -1,4 +1,4 @@
1
- import { defineComponent, computed, resolveComponent, createElementBlock, createBlock, unref, openBlock, mergeProps, renderSlot, withCtx, createElementVNode, useAttrs, normalizeClass, normalizeProps, guardReactiveProps, createVNode, h as h$1, createCommentVNode, resolveDynamicComponent, toDisplayString, useCssVars, createStaticVNode, onMounted, nextTick, watch, getCurrentInstance, getCurrentScope, onScopeDispose, hasInjectionContext, inject, toValue, onUnmounted, shallowRef, watchEffect, ref, Transition, withDirectives, normalizeStyle, vShow, Fragment, Teleport, createTextVNode, renderList, withModifiers, mergeModels, useModel, withKeys, createSlots, useSlots, vModelCheckbox, toRaw, onBeforeUnmount, vModelRadio, vModelText, reactive, useTemplateRef, isVNode, isRef, TransitionGroup, createApp } from 'vue';
1
+ import { defineComponent, computed, resolveComponent, createElementBlock, createBlock, unref, openBlock, mergeProps, renderSlot, withCtx, createElementVNode, useAttrs, normalizeClass, normalizeProps, guardReactiveProps, createVNode, h as h$1, createCommentVNode, resolveDynamicComponent, toDisplayString, mergeModels, useModel, ref, onBeforeMount, onBeforeUnmount, normalizeStyle, useCssVars, createStaticVNode, onMounted, nextTick, watch, getCurrentInstance, getCurrentScope, onScopeDispose, hasInjectionContext, inject, toValue, onUnmounted, shallowRef, watchEffect, Transition, withDirectives, vShow, Fragment, Teleport, createTextVNode, renderList, withModifiers, withKeys, createSlots, useSlots, vModelCheckbox, toRaw, vModelRadio, vModelText, reactive, useTemplateRef, isVNode, isRef, TransitionGroup, createApp } from 'vue';
2
2
  import { useRouter, useRoute } from 'vue-router';
3
3
 
4
4
  var CocardeBorder = /* @__PURE__ */ ((CocardeBorder2) => {
@@ -329,7 +329,7 @@ const getHeaderClasses = (header, sort) => {
329
329
 
330
330
  const _hoisted_1$$ = ["href", "target"];
331
331
  const _hoisted_2$G = ["href", "onClick", "target"];
332
- const _sfc_main$1r = /* @__PURE__ */ defineComponent({
332
+ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
333
333
  __name: "BmsLink",
334
334
  props: {
335
335
  to: {},
@@ -379,7 +379,7 @@ const _sfc_main$1r = /* @__PURE__ */ defineComponent({
379
379
  });
380
380
 
381
381
  const _hoisted_1$_ = ["type"];
382
- const _sfc_main$1q = /* @__PURE__ */ defineComponent({
382
+ const _sfc_main$1r = /* @__PURE__ */ defineComponent({
383
383
  __name: "UiButtonLink",
384
384
  props: {
385
385
  type: {},
@@ -404,7 +404,7 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
404
404
  type: __props.type
405
405
  }, [
406
406
  renderSlot(_ctx.$slots, "default")
407
- ], 10, _hoisted_1$_)) : (openBlock(), createBlock(_sfc_main$1r, {
407
+ ], 10, _hoisted_1$_)) : (openBlock(), createBlock(_sfc_main$1s, {
408
408
  key: 1,
409
409
  to: __props.to,
410
410
  target: __props.target,
@@ -422,7 +422,7 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
422
422
  const _hoisted_1$Z = { class: "start" };
423
423
  const _hoisted_2$F = { class: "content" };
424
424
  const _hoisted_3$m = { class: "end" };
425
- const _sfc_main$1p = /* @__PURE__ */ defineComponent({
425
+ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
426
426
  __name: "UiButton",
427
427
  props: {
428
428
  type: { default: "button" },
@@ -435,7 +435,7 @@ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
435
435
  setup(__props) {
436
436
  const props = __props;
437
437
  return (_ctx, _cache) => {
438
- return openBlock(), createBlock(_sfc_main$1q, normalizeProps(guardReactiveProps(props)), {
438
+ return openBlock(), createBlock(_sfc_main$1r, normalizeProps(guardReactiveProps(props)), {
439
439
  default: withCtx(() => [
440
440
  createElementVNode("span", _hoisted_1$Z, [
441
441
  renderSlot(_ctx.$slots, "start")
@@ -453,7 +453,7 @@ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
453
453
  }
454
454
  });
455
455
 
456
- const _sfc_main$1o = /* @__PURE__ */ defineComponent({
456
+ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
457
457
  __name: "BmsButton",
458
458
  props: {
459
459
  type: { default: "primary" },
@@ -477,7 +477,7 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
477
477
  }
478
478
  });
479
479
  return (_ctx, _cache) => {
480
- return openBlock(), createBlock(_sfc_main$1p, {
480
+ return openBlock(), createBlock(_sfc_main$1q, {
481
481
  mode: uiMode.value,
482
482
  color: __props.mode,
483
483
  to: __props.to,
@@ -499,7 +499,7 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
499
499
  }
500
500
  });
501
501
 
502
- const _sfc_main$1n = /* @__PURE__ */ defineComponent({
502
+ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
503
503
  __name: "BmsIconButton",
504
504
  props: {
505
505
  to: { default: null },
@@ -519,7 +519,7 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
519
519
  direction: __props.tooltipDirection
520
520
  }, {
521
521
  default: withCtx(() => [
522
- createVNode(_sfc_main$1p, mergeProps(_ctx.$attrs, {
522
+ createVNode(_sfc_main$1q, mergeProps(_ctx.$attrs, {
523
523
  icon: "",
524
524
  to: __props.to,
525
525
  target: __props.target,
@@ -37445,7 +37445,7 @@ const lucideIcons = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.definePropert
37445
37445
  const _hoisted_1$Y = { class: "info-line" };
37446
37446
  const _hoisted_2$E = { class: "icon" };
37447
37447
  const _hoisted_3$l = { class: "message" };
37448
- const _sfc_main$1m = /* @__PURE__ */ defineComponent({
37448
+ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
37449
37449
  __name: "BmsAlert",
37450
37450
  props: {
37451
37451
  message: {},
@@ -37480,7 +37480,7 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
37480
37480
  ], true)
37481
37481
  ]),
37482
37482
  renderSlot(_ctx.$slots, "action", {}, void 0, true),
37483
- __props.dismissable ? (openBlock(), createBlock(_sfc_main$1n, {
37483
+ __props.dismissable ? (openBlock(), createBlock(_sfc_main$1o, {
37484
37484
  key: 0,
37485
37485
  onClick: _cache[0] || (_cache[0] = ($event) => emits("dismiss"))
37486
37486
  }, {
@@ -37504,13 +37504,13 @@ const _export_sfc = (sfc, props) => {
37504
37504
  return target;
37505
37505
  };
37506
37506
 
37507
- const BmsAlert = /* @__PURE__ */ _export_sfc(_sfc_main$1m, [["__scopeId", "data-v-26caccdd"]]);
37507
+ const BmsAlert = /* @__PURE__ */ _export_sfc(_sfc_main$1n, [["__scopeId", "data-v-26caccdd"]]);
37508
37508
 
37509
37509
  const _hoisted_1$X = {
37510
37510
  key: 0,
37511
37511
  class: "ui-badge__container"
37512
37512
  };
37513
- const _sfc_main$1l = /* @__PURE__ */ defineComponent({
37513
+ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
37514
37514
  __name: "BmsBadge",
37515
37515
  props: {
37516
37516
  pending: { default: 0 },
@@ -37536,14 +37536,14 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
37536
37536
  }
37537
37537
  });
37538
37538
 
37539
- const BmsBadge = /* @__PURE__ */ _export_sfc(_sfc_main$1l, [["__scopeId", "data-v-8a6297ca"]]);
37539
+ const BmsBadge = /* @__PURE__ */ _export_sfc(_sfc_main$1m, [["__scopeId", "data-v-8a6297ca"]]);
37540
37540
 
37541
37541
  const _hoisted_1$W = {
37542
37542
  key: 0,
37543
37543
  class: "icon"
37544
37544
  };
37545
37545
  const _hoisted_2$D = ["innerHTML"];
37546
- const _sfc_main$1k = /* @__PURE__ */ defineComponent({
37546
+ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
37547
37547
  __name: "BmsCaption",
37548
37548
  props: {
37549
37549
  caption: {}
@@ -37586,7 +37586,7 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
37586
37586
  }
37587
37587
  });
37588
37588
 
37589
- const BmsCaption = /* @__PURE__ */ _export_sfc(_sfc_main$1k, [["__scopeId", "data-v-b08dd4e0"]]);
37589
+ const BmsCaption = /* @__PURE__ */ _export_sfc(_sfc_main$1l, [["__scopeId", "data-v-b08dd4e0"]]);
37590
37590
 
37591
37591
  const _hoisted_1$V = { class: "circular-progress" };
37592
37592
  const _hoisted_2$C = {
@@ -37594,9 +37594,9 @@ const _hoisted_2$C = {
37594
37594
  viewBox: "0 0 100 100"
37595
37595
  };
37596
37596
  const _hoisted_3$k = { transform: "rotate(-90, 50, 50)" };
37597
- const _hoisted_4$d = ["stroke-dashoffset"];
37598
- const _hoisted_5$9 = { class: "percent" };
37599
- const _sfc_main$1j = /* @__PURE__ */ defineComponent({
37597
+ const _hoisted_4$c = ["stroke-dashoffset"];
37598
+ const _hoisted_5$8 = { class: "percent" };
37599
+ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
37600
37600
  __name: "BmsCircularProgress",
37601
37601
  props: ["progress"],
37602
37602
  setup(__props) {
@@ -37622,16 +37622,79 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
37622
37622
  "stroke-linecap": "round",
37623
37623
  "stroke-dashoffset": 283 - __props.progress * 283 / 100,
37624
37624
  "stroke-dasharray": "283"
37625
- }, null, 8, _hoisted_4$d)
37625
+ }, null, 8, _hoisted_4$c)
37626
37626
  ])
37627
37627
  ])) : createCommentVNode("", true),
37628
- createElementVNode("div", _hoisted_5$9, toDisplayString(__props.progress) + "%", 1)
37628
+ createElementVNode("div", _hoisted_5$8, toDisplayString(__props.progress) + "%", 1)
37629
37629
  ]);
37630
37630
  };
37631
37631
  }
37632
37632
  });
37633
37633
 
37634
- const BmsCircularProgress = /* @__PURE__ */ _export_sfc(_sfc_main$1j, [["__scopeId", "data-v-7869acfb"]]);
37634
+ const BmsCircularProgress = /* @__PURE__ */ _export_sfc(_sfc_main$1k, [["__scopeId", "data-v-7869acfb"]]);
37635
+
37636
+ const SCREEN_MARGIN = 10;
37637
+ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
37638
+ __name: "BmsGhost",
37639
+ props: /* @__PURE__ */ mergeModels({
37640
+ opacityWhenVisible: { default: 0.8 }
37641
+ }, {
37642
+ "modelValue": { type: Boolean, ...{
37643
+ default: false
37644
+ } },
37645
+ "modelModifiers": {}
37646
+ }),
37647
+ emits: ["update:modelValue"],
37648
+ setup(__props) {
37649
+ const visible = useModel(__props, "modelValue");
37650
+ const props = __props;
37651
+ const ghost = ref(null);
37652
+ const x = ref(0);
37653
+ const y = ref(0);
37654
+ onBeforeMount(() => {
37655
+ document.addEventListener("pointermove", onPointerMove);
37656
+ });
37657
+ onBeforeUnmount(() => {
37658
+ document.removeEventListener("pointermove", onPointerMove);
37659
+ });
37660
+ const onPointerMove = (e) => {
37661
+ e.preventDefault();
37662
+ e.stopPropagation();
37663
+ updateGhost(e.clientX, e.clientY);
37664
+ };
37665
+ const updateGhost = (posX, posY) => {
37666
+ if (!ghost.value) return;
37667
+ const rect = ghost.value.getBoundingClientRect();
37668
+ const screenWidth = window.innerWidth;
37669
+ const screenHeight = window.innerHeight;
37670
+ x.value = Math.max(
37671
+ Math.min(posX, screenWidth - rect.width - SCREEN_MARGIN),
37672
+ SCREEN_MARGIN
37673
+ );
37674
+ y.value = Math.max(
37675
+ Math.min(posY, screenHeight - rect.height - SCREEN_MARGIN),
37676
+ SCREEN_MARGIN
37677
+ );
37678
+ };
37679
+ return (_ctx, _cache) => {
37680
+ return openBlock(), createElementBlock("div", {
37681
+ ref_key: "ghost",
37682
+ ref: ghost,
37683
+ "aria-hidden": "true",
37684
+ class: "bms-ghost",
37685
+ style: normalizeStyle({
37686
+ "--ghost-x": `${x.value}px`,
37687
+ "--ghost-y": `${y.value}px`,
37688
+ opacity: visible.value ? props.opacityWhenVisible : 0
37689
+ })
37690
+ }, [
37691
+ renderSlot(_ctx.$slots, "default", {}, void 0, true)
37692
+ ], 4);
37693
+ };
37694
+ }
37695
+ });
37696
+
37697
+ const BmsGhost = /* @__PURE__ */ _export_sfc(_sfc_main$1j, [["__scopeId", "data-v-205789ac"]]);
37635
37698
 
37636
37699
  const _hoisted_1$U = { class: "bms-loader" };
37637
37700
  function transformIntoPx(totransform) {
@@ -38619,10 +38682,11 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
38619
38682
  const calculatedTooltipTransform = ref("none");
38620
38683
  const windowSize = useWindowSize();
38621
38684
  const { getTooltipTranslatePosition } = useTooltipHelper();
38685
+ const attrs = useAttrs();
38622
38686
  const props = __props;
38623
38687
  const anchorElement = ref(void 0);
38624
38688
  const classes = computed(
38625
- () => `bms-tooltip__text bms-tooltip__text--${props.direction}`
38689
+ () => `bms-tooltip__text bms-tooltip__text--${props.direction} ${attrs.class ? attrs.class : ""}`
38626
38690
  );
38627
38691
  const setTooltipPosition = async () => {
38628
38692
  if (props.visible && JSON.stringify(anchorElement.value) !== JSON.stringify(props.getAnchorElementValues())) {
@@ -38680,7 +38744,7 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
38680
38744
  }
38681
38745
  });
38682
38746
 
38683
- const UiTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$1h, [["__scopeId", "data-v-bf923418"]]);
38747
+ const UiTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$1h, [["__scopeId", "data-v-4ae8c6bb"]]);
38684
38748
 
38685
38749
  const _sfc_main$1g = /* @__PURE__ */ defineComponent({
38686
38750
  __name: "BmsTooltip",
@@ -38691,11 +38755,16 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
38691
38755
  activated: { type: Boolean, default: true }
38692
38756
  },
38693
38757
  setup(__props, { expose: __expose }) {
38758
+ const attrs = useAttrs();
38694
38759
  const tooltip = ref(null);
38695
38760
  const tooltipAnchor = ref();
38696
38761
  const showToolTip = ref(true);
38697
38762
  const { isOutside } = useMouseInElement(tooltipAnchor);
38698
38763
  const anchorVisibility = useElementVisibility(tooltipAnchor);
38764
+ const classes = computed(() => {
38765
+ const parentClasses = attrs.class;
38766
+ return parentClasses?.split(" ").map((cls) => `${cls}__bms-tooltip`).join(" ") ?? "";
38767
+ });
38699
38768
  const isUnderOverlay = () => {
38700
38769
  const overlays = Array.from(document.getElementsByClassName("overlay"));
38701
38770
  if (overlays.length === 0) {
@@ -38737,7 +38806,8 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
38737
38806
  key: 0,
38738
38807
  visible: showToolTip.value && __props.activated,
38739
38808
  direction: __props.direction,
38740
- getAnchorElementValues
38809
+ getAnchorElementValues,
38810
+ class: normalizeClass(classes.value)
38741
38811
  }, {
38742
38812
  default: withCtx(() => [
38743
38813
  renderSlot(_ctx.$slots, "tooltipText", {}, () => [
@@ -38745,7 +38815,7 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
38745
38815
  ], true)
38746
38816
  ]),
38747
38817
  _: 3
38748
- }, 8, ["visible", "direction"])) : createCommentVNode("", true)
38818
+ }, 8, ["visible", "direction", "class"])) : createCommentVNode("", true)
38749
38819
  ])),
38750
38820
  __props.activated ? (openBlock(), createElementBlock("div", {
38751
38821
  key: 0,
@@ -38761,7 +38831,7 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
38761
38831
  }
38762
38832
  });
38763
38833
 
38764
- const BmsTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$1g, [["__scopeId", "data-v-b033f8af"]]);
38834
+ const BmsTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$1g, [["__scopeId", "data-v-5c0e03ac"]]);
38765
38835
 
38766
38836
  const _hoisted_1$T = {
38767
38837
  class: "options-list",
@@ -38870,7 +38940,7 @@ const FieldDatalist = /* @__PURE__ */ _export_sfc(_sfc_main$1f, [["__scopeId", "
38870
38940
  const _hoisted_1$S = { class: "field__input-label" };
38871
38941
  const _hoisted_2$A = { class: "field__input-icon field__input-icon--start" };
38872
38942
  const _hoisted_3$j = ["type", "value", "placeholder", "required", "disabled", "max", "min", "minlength", "maxlength"];
38873
- const _hoisted_4$c = { class: "field__input-icon field__input-icon--end" };
38943
+ const _hoisted_4$b = { class: "field__input-icon field__input-icon--end" };
38874
38944
  const _sfc_main$1e = /* @__PURE__ */ defineComponent({
38875
38945
  __name: "RawInputText",
38876
38946
  props: {
@@ -38945,7 +39015,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
38945
39015
  onFocus: _cache[1] || (_cache[1] = ($event) => $emits("focus")),
38946
39016
  onClick: _cache[2] || (_cache[2] = ($event) => $emits("click"))
38947
39017
  }, null, 40, _hoisted_3$j),
38948
- createElementVNode("span", _hoisted_4$c, [
39018
+ createElementVNode("span", _hoisted_4$b, [
38949
39019
  renderSlot(_ctx.$slots, "icon-end", {}, void 0, true)
38950
39020
  ])
38951
39021
  ], 2);
@@ -39494,7 +39564,7 @@ const BmsChip = /* @__PURE__ */ _export_sfc(_sfc_main$19, [["__scopeId", "data-v
39494
39564
  const _hoisted_1$P = { class: "file-upload" };
39495
39565
  const _hoisted_2$x = { class: "file-upload__label" };
39496
39566
  const _hoisted_3$i = { key: 1 };
39497
- const _hoisted_4$b = { class: "file-upload__file-name" };
39567
+ const _hoisted_4$a = { class: "file-upload__file-name" };
39498
39568
  const _sfc_main$18 = /* @__PURE__ */ defineComponent({
39499
39569
  __name: "BmsFilePicker",
39500
39570
  props: {
@@ -39595,8 +39665,8 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
39595
39665
  key: file.name,
39596
39666
  class: "file-upload__file"
39597
39667
  }, [
39598
- createElementVNode("span", _hoisted_4$b, toDisplayString(file.name), 1),
39599
- createVNode(unref(_sfc_main$1n), {
39668
+ createElementVNode("span", _hoisted_4$a, toDisplayString(file.name), 1),
39669
+ createVNode(unref(_sfc_main$1o), {
39600
39670
  onClick: ($event) => onDeleteFile(file)
39601
39671
  }, {
39602
39672
  default: withCtx(() => [
@@ -68899,7 +68969,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
68899
68969
  src: getImageSrc(file),
68900
68970
  class: "file-upload__file-img"
68901
68971
  }, null, 8, _hoisted_2$v)) : (openBlock(), createElementBlock("span", _hoisted_3$h, toDisplayString(file.name), 1)),
68902
- createVNode(_sfc_main$1n, {
68972
+ createVNode(_sfc_main$1o, {
68903
68973
  mode: unref(StatusType).Danger,
68904
68974
  onClick: withModifiers(($event) => onDeleteFile(file), ["prevent"]),
68905
68975
  class: "close-button"
@@ -69365,7 +69435,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
69365
69435
  }, [
69366
69436
  renderSlot(_ctx.$slots, "default", {}, void 0, true),
69367
69437
  createElementVNode("span", _hoisted_1$I, [
69368
- __props.canBeDismissed ? (openBlock(), createBlock(unref(_sfc_main$1n), {
69438
+ __props.canBeDismissed ? (openBlock(), createBlock(unref(_sfc_main$1o), {
69369
69439
  key: 0,
69370
69440
  onClick: _cache[0] || (_cache[0] = withModifiers(($event) => emits("dismiss"), ["stop"]))
69371
69441
  }, {
@@ -87138,7 +87208,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
87138
87208
  class: normalizeClass(["card__body", { animated: __props.animated, hasAction: !!_ctx.$slots.action }])
87139
87209
  }, [
87140
87210
  createElementVNode("div", _hoisted_1$D, [
87141
- __props.to ? (openBlock(), createBlock(_sfc_main$1r, {
87211
+ __props.to ? (openBlock(), createBlock(_sfc_main$1s, {
87142
87212
  key: 0,
87143
87213
  class: "card__body__content__link",
87144
87214
  to: __props.to
@@ -87160,15 +87230,20 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
87160
87230
 
87161
87231
  const BmsCard = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-cff3f84d"]]);
87162
87232
 
87163
- const _hoisted_1$C = { class: "floating-window-wrapper" };
87164
- const _hoisted_2$o = { class: "floating-window" };
87165
- const _hoisted_3$f = { class: "floating-window__header" };
87166
- const _hoisted_4$a = { class: "floating-window__header__buttons" };
87167
- const _hoisted_5$8 = { class: "floating-window__content" };
87233
+ const _hoisted_1$C = { class: "floating-window__header__title" };
87234
+ const _hoisted_2$o = { class: "floating-window__header__buttons" };
87235
+ const _hoisted_3$f = { class: "floating-window__content" };
87168
87236
  const _sfc_main$L = /* @__PURE__ */ defineComponent({
87169
87237
  __name: "BmsFloatingWindow",
87170
87238
  props: /* @__PURE__ */ mergeModels({
87171
- title: {}
87239
+ title: {},
87240
+ defaultPlacement: { default: "center" },
87241
+ expandable: { type: Boolean, default: false },
87242
+ expandedWidth: { default: "100%" },
87243
+ expandedHeight: { default: "100%" },
87244
+ expandTarget: { default: void 0 },
87245
+ width: { default: "50%" },
87246
+ height: { default: "40%" }
87172
87247
  }, {
87173
87248
  "modelValue": { type: Boolean, ...{
87174
87249
  default: false
@@ -87177,23 +87252,196 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
87177
87252
  }),
87178
87253
  emits: ["update:modelValue"],
87179
87254
  setup(__props) {
87255
+ const props = __props;
87180
87256
  const open = useModel(__props, "modelValue");
87257
+ const wrapperRef = ref(null);
87258
+ const windowRef = ref(null);
87259
+ const position = ref(null);
87260
+ const computedSize = ref(null);
87261
+ const isDragging = ref(false);
87262
+ const dragOffset = ref({ x: 0, y: 0 });
87263
+ const isExpanded = ref(false);
87264
+ const positionBeforeExpand = ref(null);
87265
+ const expandedStyle = ref(null);
87266
+ function computeInitialPosition() {
87267
+ if (!wrapperRef.value || !windowRef.value) return null;
87268
+ const wrapperRect = wrapperRef.value.getBoundingClientRect();
87269
+ const windowRect = windowRef.value.getBoundingClientRect();
87270
+ const padding = 16;
87271
+ switch (props.defaultPlacement) {
87272
+ case "top-left":
87273
+ return { x: wrapperRect.left + padding, y: wrapperRect.top + padding };
87274
+ case "top-right":
87275
+ return {
87276
+ x: wrapperRect.right - windowRect.width - padding,
87277
+ y: wrapperRect.top + padding
87278
+ };
87279
+ case "bottom-left":
87280
+ return {
87281
+ x: wrapperRect.left + padding,
87282
+ y: wrapperRect.bottom - windowRect.height - padding
87283
+ };
87284
+ case "bottom-right":
87285
+ return {
87286
+ x: wrapperRect.right - windowRect.width - padding,
87287
+ y: wrapperRect.bottom - windowRect.height - padding
87288
+ };
87289
+ case "center":
87290
+ default:
87291
+ return null;
87292
+ }
87293
+ }
87294
+ function initPosition() {
87295
+ if (props.defaultPlacement !== "center" && !position.value) {
87296
+ position.value = computeInitialPosition();
87297
+ }
87298
+ }
87299
+ onMounted(() => {
87300
+ if (open.value) {
87301
+ initPosition();
87302
+ }
87303
+ });
87304
+ watch(open, (newVal) => {
87305
+ if (newVal) {
87306
+ requestAnimationFrame(initPosition);
87307
+ }
87308
+ });
87309
+ const windowStyle = computed(() => {
87310
+ if (isExpanded.value && expandedStyle.value) {
87311
+ return expandedStyle.value;
87312
+ }
87313
+ const sizeStyle = {};
87314
+ if (computedSize.value) {
87315
+ sizeStyle.width = `${computedSize.value.width}px`;
87316
+ sizeStyle.height = `${computedSize.value.height}px`;
87317
+ } else {
87318
+ if (props.width) {
87319
+ sizeStyle.width = props.width;
87320
+ }
87321
+ if (props.height) {
87322
+ sizeStyle.height = props.height;
87323
+ }
87324
+ }
87325
+ if (!position.value) {
87326
+ return sizeStyle;
87327
+ }
87328
+ return {
87329
+ position: "absolute",
87330
+ left: `${position.value.x}px`,
87331
+ top: `${position.value.y}px`,
87332
+ ...sizeStyle
87333
+ };
87334
+ });
87335
+ function computeExpandedStyle() {
87336
+ if (props.expandTarget) {
87337
+ const targetEl = document.querySelector(props.expandTarget);
87338
+ if (targetEl) {
87339
+ const targetRect = targetEl.getBoundingClientRect();
87340
+ return {
87341
+ position: "fixed",
87342
+ left: `${targetRect.left}px`,
87343
+ top: `${targetRect.top}px`,
87344
+ width: props.expandedWidth === "100%" ? `${targetRect.width}px` : props.expandedWidth,
87345
+ height: props.expandedHeight === "100%" ? `${targetRect.height}px` : props.expandedHeight,
87346
+ maxWidth: "none",
87347
+ maxHeight: "none"
87348
+ };
87349
+ }
87350
+ }
87351
+ return {
87352
+ position: "absolute",
87353
+ width: props.expandedWidth,
87354
+ height: props.expandedHeight,
87355
+ maxWidth: "none",
87356
+ maxHeight: "none"
87357
+ };
87358
+ }
87359
+ function toggleExpand() {
87360
+ if (isExpanded.value) {
87361
+ expandedStyle.value = null;
87362
+ position.value = positionBeforeExpand.value;
87363
+ isExpanded.value = false;
87364
+ } else {
87365
+ positionBeforeExpand.value = position.value;
87366
+ expandedStyle.value = computeExpandedStyle();
87367
+ isExpanded.value = true;
87368
+ }
87369
+ }
87370
+ function onDragStart(event) {
87371
+ if (event.target.closest(".floating-window__header__buttons")) {
87372
+ return;
87373
+ }
87374
+ if (isExpanded.value) {
87375
+ return;
87376
+ }
87377
+ isDragging.value = true;
87378
+ if (windowRef.value) {
87379
+ const rect = windowRef.value.getBoundingClientRect();
87380
+ dragOffset.value = {
87381
+ x: event.clientX - rect.left,
87382
+ y: event.clientY - rect.top
87383
+ };
87384
+ if (!computedSize.value) {
87385
+ computedSize.value = { width: rect.width, height: rect.height };
87386
+ }
87387
+ if (!position.value) {
87388
+ position.value = { x: rect.left, y: rect.top };
87389
+ }
87390
+ }
87391
+ document.addEventListener("mousemove", onDrag);
87392
+ document.addEventListener("mouseup", onDragEnd);
87393
+ }
87394
+ function onDrag(event) {
87395
+ if (!isDragging.value) return;
87396
+ position.value = {
87397
+ x: event.clientX - dragOffset.value.x,
87398
+ y: event.clientY - dragOffset.value.y
87399
+ };
87400
+ }
87401
+ function onDragEnd() {
87402
+ isDragging.value = false;
87403
+ document.removeEventListener("mousemove", onDrag);
87404
+ document.removeEventListener("mouseup", onDragEnd);
87405
+ }
87181
87406
  return (_ctx, _cache) => {
87182
- return openBlock(), createElementBlock("div", _hoisted_1$C, [
87183
- withDirectives(createElementVNode("div", _hoisted_2$o, [
87184
- createElementVNode("div", _hoisted_3$f, [
87185
- createElementVNode("h2", null, toDisplayString(__props.title), 1),
87186
- createElementVNode("div", _hoisted_4$a, [
87187
- createVNode(_sfc_main$1n, {
87188
- "tooltip-text": "Maximiser la fenêtre",
87189
- disabled: ""
87407
+ return openBlock(), createElementBlock("div", {
87408
+ ref_key: "wrapperRef",
87409
+ ref: wrapperRef,
87410
+ class: "floating-window-wrapper"
87411
+ }, [
87412
+ isDragging.value ? (openBlock(), createElementBlock("div", {
87413
+ key: 0,
87414
+ class: "floating-window__drag-overlay",
87415
+ onMousemove: onDrag,
87416
+ onMouseup: onDragEnd
87417
+ }, null, 32)) : createCommentVNode("", true),
87418
+ withDirectives(createElementVNode("div", {
87419
+ ref_key: "windowRef",
87420
+ ref: windowRef,
87421
+ class: normalizeClass(["floating-window", {
87422
+ "floating-window--expanded": isExpanded.value,
87423
+ "floating-window--dragging": isDragging.value
87424
+ }]),
87425
+ style: normalizeStyle(windowStyle.value)
87426
+ }, [
87427
+ createElementVNode("div", {
87428
+ class: "floating-window__header",
87429
+ onMousedown: onDragStart
87430
+ }, [
87431
+ createElementVNode("h3", _hoisted_1$C, toDisplayString(__props.title), 1),
87432
+ createElementVNode("div", _hoisted_2$o, [
87433
+ __props.expandable ? (openBlock(), createBlock(_sfc_main$1o, {
87434
+ key: 0,
87435
+ class: normalizeClass(["floating-window__expand-btn", { "floating-window__expand-btn--expanded": isExpanded.value }]),
87436
+ "tooltip-text": isExpanded.value ? "Réduire la fenêtre" : "Maximiser la fenêtre",
87437
+ onClick: withModifiers(toggleExpand, ["prevent", "stop"])
87190
87438
  }, {
87191
87439
  default: withCtx(() => [
87192
- createVNode(unref(Maximize2))
87440
+ isExpanded.value ? (openBlock(), createBlock(unref(Minimize2), { key: 0 })) : (openBlock(), createBlock(unref(Maximize2), { key: 1 }))
87193
87441
  ]),
87194
87442
  _: 1
87195
- }),
87196
- createVNode(_sfc_main$1n, {
87443
+ }, 8, ["class", "tooltip-text"])) : createCommentVNode("", true),
87444
+ createVNode(_sfc_main$1o, {
87197
87445
  onClick: _cache[0] || (_cache[0] = withModifiers(($event) => open.value = false, ["prevent", "stop"]))
87198
87446
  }, {
87199
87447
  default: withCtx(() => [
@@ -87202,19 +87450,19 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
87202
87450
  _: 1
87203
87451
  })
87204
87452
  ])
87205
- ]),
87206
- createElementVNode("div", _hoisted_5$8, [
87453
+ ], 32),
87454
+ createElementVNode("div", _hoisted_3$f, [
87207
87455
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
87208
87456
  ])
87209
- ], 512), [
87457
+ ], 6), [
87210
87458
  [vShow, open.value]
87211
87459
  ])
87212
- ]);
87460
+ ], 512);
87213
87461
  };
87214
87462
  }
87215
87463
  });
87216
87464
 
87217
- const BmsFloatingWindow = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-fdb4e567"]]);
87465
+ const BmsFloatingWindow = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-3023af4c"]]);
87218
87466
 
87219
87467
  const _hoisted_1$B = { class: "form-section" };
87220
87468
  const _hoisted_2$n = {
@@ -90189,7 +90437,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
90189
90437
  key: 0,
90190
90438
  class: normalizeClass(["bms-short-link-menu", { "bms-short-link-menu__outline": __props.outline }])
90191
90439
  }, [
90192
- !!__props.helpLink ? (openBlock(), createBlock(_sfc_main$1n, {
90440
+ !!__props.helpLink ? (openBlock(), createBlock(_sfc_main$1o, {
90193
90441
  key: 0,
90194
90442
  "tooltip-text": "Voir la documentation",
90195
90443
  to: __props.helpLink,
@@ -90202,7 +90450,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
90202
90450
  ]),
90203
90451
  _: 3
90204
90452
  }, 8, ["to"])) : createCommentVNode("", true),
90205
- !!__props.activityLink ? (openBlock(), createBlock(_sfc_main$1n, {
90453
+ !!__props.activityLink ? (openBlock(), createBlock(_sfc_main$1o, {
90206
90454
  key: 1,
90207
90455
  "tooltip-text": "Voir l'activité",
90208
90456
  to: __props.activityLink,
@@ -90454,7 +90702,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
90454
90702
  ])
90455
90703
  ], true)
90456
90704
  ]),
90457
- createVNode(_sfc_main$1n, {
90705
+ createVNode(_sfc_main$1o, {
90458
90706
  disabled: !isModalClosable.value,
90459
90707
  onClick: dismissModal,
90460
90708
  "data-testid": "close-modal"
@@ -90480,7 +90728,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
90480
90728
  modalData: props.modelValue
90481
90729
  }, () => [
90482
90730
  (openBlock(true), createElementBlock(Fragment, null, renderList(buttons.value, (button) => {
90483
- return openBlock(), createBlock(_sfc_main$1o, {
90731
+ return openBlock(), createBlock(_sfc_main$1p, {
90484
90732
  key: button.label + button.role,
90485
90733
  type: button.role === "cancel" ? "secondary" : "primary",
90486
90734
  disabled: !isModalClosable.value || button.disabled,
@@ -90756,7 +91004,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
90756
91004
  renderSlot(_ctx.$slots, "default", {}, void 0, true),
90757
91005
  renderSlot(_ctx.$slots, "actions", {}, () => [
90758
91006
  createElementVNode("div", _hoisted_2$j, [
90759
- __props.previousLabel ? (openBlock(), createBlock(_sfc_main$1o, {
91007
+ __props.previousLabel ? (openBlock(), createBlock(_sfc_main$1p, {
90760
91008
  key: 0,
90761
91009
  "data-test": "previous-button",
90762
91010
  name: "previous",
@@ -90768,7 +91016,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
90768
91016
  ]),
90769
91017
  _: 1
90770
91018
  })) : createCommentVNode("", true),
90771
- __props.nextLabel ? (openBlock(), createBlock(_sfc_main$1o, {
91019
+ __props.nextLabel ? (openBlock(), createBlock(_sfc_main$1p, {
90772
91020
  key: 1,
90773
91021
  "data-test": "next-button",
90774
91022
  class: "",
@@ -91063,7 +91311,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
91063
91311
  return classes2;
91064
91312
  });
91065
91313
  return (_ctx, _cache) => {
91066
- return openBlock(), createBlock(_sfc_main$1r, {
91314
+ return openBlock(), createBlock(_sfc_main$1s, {
91067
91315
  to: __props.item.link,
91068
91316
  target: __props.target,
91069
91317
  classes: classes.value
@@ -91157,7 +91405,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
91157
91405
  key: item.label
91158
91406
  }, [
91159
91407
  hasSubItems(item) ? (openBlock(), createElementBlock("div", _hoisted_1$p, [
91160
- item.link ? (openBlock(), createBlock(_sfc_main$1r, {
91408
+ item.link ? (openBlock(), createBlock(_sfc_main$1s, {
91161
91409
  key: 0,
91162
91410
  to: item.link,
91163
91411
  class: normalizeClass(`parent-item ${isItemActive(item) ? "active" : ""}`)
@@ -91285,7 +91533,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
91285
91533
  const toggleMenu = (newMenuState = true) => isMenuOpen.value = newMenuState;
91286
91534
  return (_ctx, _cache) => {
91287
91535
  return openBlock(), createElementBlock("div", _hoisted_1$n, [
91288
- createVNode(unref(_sfc_main$1n), {
91536
+ createVNode(unref(_sfc_main$1o), {
91289
91537
  onClick: _cache[0] || (_cache[0] = ($event) => toggleMenu(!isMenuOpen.value)),
91290
91538
  "data-testid": "openMenu",
91291
91539
  "aria-label": "Ouvrir le menu"
@@ -91309,7 +91557,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
91309
91557
  ref: menu,
91310
91558
  class: normalizeClass(["menu__container", { "is-show": isMenuOpen.value }])
91311
91559
  }, [
91312
- createVNode(unref(_sfc_main$1n), {
91560
+ createVNode(unref(_sfc_main$1o), {
91313
91561
  class: "menu__close",
91314
91562
  onClick: _cache[1] || (_cache[1] = ($event) => toggleMenu(false)),
91315
91563
  "data-testid": "closeMenu",
@@ -91643,7 +91891,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
91643
91891
  createTextVNode(" " + toDisplayString(__props.tenant.label), 1),
91644
91892
  createElementVNode("em", null, "- " + toDisplayString(__props.tenant.information), 1)
91645
91893
  ], 8, _hoisted_1$k),
91646
- __props.tenant.isFavorite ? (openBlock(), createBlock(_sfc_main$1n, {
91894
+ __props.tenant.isFavorite ? (openBlock(), createBlock(_sfc_main$1o, {
91647
91895
  key: 0,
91648
91896
  class: "remove-tenant-button",
91649
91897
  onClick: _cache[0] || (_cache[0] = withModifiers(($event) => emits("removeFavorite"), ["stop"]))
@@ -91839,7 +92087,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
91839
92087
  __props.currentTenant && __props.tenants.length === 1 ? (openBlock(), createElementBlock("div", _hoisted_1$i, [
91840
92088
  createVNode(_sfc_main$n, { tenant: __props.currentTenant }, null, 8, ["tenant"]),
91841
92089
  createElementVNode("span", null, toDisplayString(__props.currentTenant.label), 1)
91842
- ])) : __props.tenants.length > 0 ? (openBlock(), createBlock(unref(_sfc_main$1o), {
92090
+ ])) : __props.tenants.length > 0 ? (openBlock(), createBlock(unref(_sfc_main$1p), {
91843
92091
  key: 1,
91844
92092
  type: "tertiary",
91845
92093
  onClick: _cache[0] || (_cache[0] = ($event) => showTenantSwitcher.value = !showTenantSwitcher.value)
@@ -91982,7 +92230,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
91982
92230
  onMouseup: _cache[1] || (_cache[1] = () => gripped.value = false)
91983
92231
  }),
91984
92232
  renderSlot(_ctx.$slots, "default", { row: item }, void 0, true),
91985
- createVNode(unref(_sfc_main$1n), {
92233
+ createVNode(unref(_sfc_main$1o), {
91986
92234
  mode: unref(StatusType).Danger,
91987
92235
  onClick: ($event) => onRemove(item)
91988
92236
  }, {
@@ -92130,7 +92378,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
92130
92378
  ], true)
92131
92379
  ]),
92132
92380
  createElementVNode("div", _hoisted_3$6, [
92133
- createVNode(_sfc_main$1n, {
92381
+ createVNode(_sfc_main$1o, {
92134
92382
  color: "neutral",
92135
92383
  onClick: goToFirst,
92136
92384
  disabled: __props.currentPage === 0
@@ -92140,7 +92388,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
92140
92388
  ]),
92141
92389
  _: 1
92142
92390
  }, 8, ["disabled"]),
92143
- createVNode(_sfc_main$1n, {
92391
+ createVNode(_sfc_main$1o, {
92144
92392
  onClick: goToPrevious,
92145
92393
  disabled: __props.currentPage === 0
92146
92394
  }, {
@@ -92149,7 +92397,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
92149
92397
  ]),
92150
92398
  _: 1
92151
92399
  }, 8, ["disabled"]),
92152
- createVNode(_sfc_main$1n, {
92400
+ createVNode(_sfc_main$1o, {
92153
92401
  onClick: goToNext,
92154
92402
  disabled: __props.currentPage === __props.pages - 1 || __props.pages === 0
92155
92403
  }, {
@@ -92158,7 +92406,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
92158
92406
  ]),
92159
92407
  _: 1
92160
92408
  }, 8, ["disabled"]),
92161
- createVNode(_sfc_main$1n, {
92409
+ createVNode(_sfc_main$1o, {
92162
92410
  onClick: goToLast,
92163
92411
  disabled: __props.currentPage === __props.pages - 1 || __props.pages === 0 || __props.total === Infinity
92164
92412
  }, {
@@ -96181,7 +96429,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
96181
96429
  __props.hasFilters ? (openBlock(), createElementBlock("div", _hoisted_6$2, [
96182
96430
  renderSlot(_ctx.$slots, "filters", {}, void 0, true)
96183
96431
  ])) : createCommentVNode("", true),
96184
- __props.selectMode === unref(SelectMode).ALL || selectedItems.value.length > 0 ? (openBlock(), createBlock(BmsAlert, {
96432
+ __props.selectMode === unref(SelectMode).ALL || selectedItems.value.length > 0 && __props.selectMode !== unref(SelectMode).SINGLE ? (openBlock(), createBlock(BmsAlert, {
96185
96433
  key: 1,
96186
96434
  type: unref(StatusType).Information,
96187
96435
  dismissable: false,
@@ -96195,7 +96443,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
96195
96443
  _cache[1] || (_cache[1] = createElementVNode("strong", null, "1", -1)),
96196
96444
  _cache[2] || (_cache[2] = createTextVNode(" élément du tableau est sélectionné. ", -1))
96197
96445
  ], 64)) : (openBlock(), createElementBlock("strong", _hoisted_8$2, toDisplayString(selectedItems.value.length) + " éléments du tableau sont sélectionnés. ", 1)),
96198
- __props.totalSize < __props.maxSelectedSize && __props.selectMode !== unref(SelectMode).SINGLE ? (openBlock(), createElementBlock("span", {
96446
+ __props.totalSize < __props.maxSelectedSize ? (openBlock(), createElementBlock("span", {
96199
96447
  key: 2,
96200
96448
  class: "select-mode-all",
96201
96449
  onClick: selectAll
@@ -96339,7 +96587,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
96339
96587
  }
96340
96588
  });
96341
96589
 
96342
- const UiBmsTable = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-45f34152"]]);
96590
+ const UiBmsTable = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-c7d4abaf"]]);
96343
96591
 
96344
96592
  const _hoisted_1$a = { class: "filter-button-container" };
96345
96593
  const _hoisted_2$8 = {
@@ -96361,7 +96609,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
96361
96609
  );
96362
96610
  return (_ctx, _cache) => {
96363
96611
  return openBlock(), createElementBlock("span", _hoisted_1$a, [
96364
- createVNode(_sfc_main$1p, {
96612
+ createVNode(_sfc_main$1q, {
96365
96613
  class: "filter-button",
96366
96614
  color: __props.isFilterVisible ? unref(StatusType).Default : unref(StatusType).Information,
96367
96615
  mode: __props.isFilterVisible ? "fill" : "ghost",
@@ -98606,7 +98854,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
98606
98854
  _cache[2] || (_cache[2] = createTextVNode(" Recherche avancée ", -1))
98607
98855
  ]),
98608
98856
  createElementVNode("span", _hoisted_4$3, [
98609
- __props.canSaveFilters ? (openBlock(), createBlock(_sfc_main$1n, {
98857
+ __props.canSaveFilters ? (openBlock(), createBlock(_sfc_main$1o, {
98610
98858
  key: 0,
98611
98859
  class: "save",
98612
98860
  tooltipText: "Sauvegarder le filtre",
@@ -98617,7 +98865,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
98617
98865
  ]),
98618
98866
  _: 1
98619
98867
  })) : createCommentVNode("", true),
98620
- createVNode(_sfc_main$1n, {
98868
+ createVNode(_sfc_main$1o, {
98621
98869
  class: "reset",
98622
98870
  tooltipText: "Vider les champs",
98623
98871
  onClick: reset
@@ -103270,7 +103518,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
103270
103518
  class: "bms-notification__icon"
103271
103519
  })),
103272
103520
  createElementVNode("div", _hoisted_2$4, toDisplayString(__props.notification.text), 1),
103273
- createVNode(_sfc_main$1n, {
103521
+ createVNode(_sfc_main$1o, {
103274
103522
  class: "bms-notification__close-button",
103275
103523
  onClick: closeNotification
103276
103524
  }, {
@@ -103511,7 +103759,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
103511
103759
  createElementVNode("div", null, [
103512
103760
  createElementVNode("div", _hoisted_5$1, [
103513
103761
  createElementVNode("span", _hoisted_6$1, toDisplayString(__props.problem.detail), 1),
103514
- createVNode(unref(_sfc_main$1n), {
103762
+ createVNode(unref(_sfc_main$1o), {
103515
103763
  class: "copyToClipboardButton",
103516
103764
  onClick: _cache[1] || (_cache[1] = ($event) => onCopyToClipboard(__props.problem.detail))
103517
103765
  }, {
@@ -103546,7 +103794,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
103546
103794
  createElementVNode("div", null, [
103547
103795
  createElementVNode("div", _hoisted_8$1, [
103548
103796
  createElementVNode("span", _hoisted_9, toDisplayString(__props.problem.correlationId), 1),
103549
- createVNode(unref(_sfc_main$1n), {
103797
+ createVNode(unref(_sfc_main$1o), {
103550
103798
  class: "copyToClipboardButton",
103551
103799
  onClick: _cache[3] || (_cache[3] = ($event) => onCopyToClipboard(__props.problem.detail))
103552
103800
  }, {
@@ -103756,7 +104004,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
103756
104004
  );
103757
104005
  return (_ctx, _cache) => {
103758
104006
  return isFeatureFlippingOn.value ? (openBlock(), createElementBlock("div", _hoisted_1$2, [
103759
- createVNode(_sfc_main$1o, {
104007
+ createVNode(_sfc_main$1p, {
103760
104008
  onClick: _cache[0] || (_cache[0] = ($event) => emit("click")),
103761
104009
  mode: unref(StatusType).Danger
103762
104010
  }, {
@@ -106053,12 +106301,13 @@ const routerHistoryPlugin = {
106053
106301
 
106054
106302
  const createBmsUi = () => ({
106055
106303
  install: (app) => {
106056
- app.component("BmsButton", _sfc_main$1o);
106057
- app.component("BmsIconButton", _sfc_main$1n);
106304
+ app.component("BmsButton", _sfc_main$1p);
106305
+ app.component("BmsIconButton", _sfc_main$1o);
106058
106306
  app.component("BmsAlert", BmsAlert);
106059
106307
  app.component("BmsBadge", BmsBadge);
106060
106308
  app.component("BmsCaption", BmsCaption);
106061
106309
  app.component("BmsCircularProgress", BmsCircularProgress);
106310
+ app.component("BmsGhost", BmsGhost);
106062
106311
  app.component("BmsLoader", BmsLoader);
106063
106312
  app.component("BmsTooltip", BmsTooltip);
106064
106313
  app.component("BmsAutocomplete", BmsAutocomplete);
@@ -106100,7 +106349,7 @@ const createBmsUi = () => ({
106100
106349
  app.component("BmsBackButton", BmsBackButton);
106101
106350
  app.component("BmsBreadcrumb", BmsBreadcrumb);
106102
106351
  app.component("BmsFixedMenu", BmsFixedMenu);
106103
- app.component("BmsLink", _sfc_main$1r);
106352
+ app.component("BmsLink", _sfc_main$1s);
106104
106353
  app.component("BmsMenu", BmsMenu);
106105
106354
  app.component("BmsMenuNav", BmsMenuNav);
106106
106355
  app.component("BmsShortLinkMenu", BmsShortLinkMenu);
@@ -106117,5 +106366,5 @@ const createBmsUi = () => ({
106117
106366
  }
106118
106367
  });
106119
106368
 
106120
- export { BMS_FORM_VALID_URL_REGEX, BmsAlert, BmsAutocomplete, BmsBackButton, BmsBadge, BmsBetweenInput, BmsBreadcrumb, _sfc_main$1o as BmsButton, BmsCaption, BmsCard, BmsChip, BmsCircularProgress, BmsCocarde, BmsContentPageLayout, BmsDraggableList, BmsEmptyScreen, BmsFilePicker, BmsFixedMenu, BmsFloatingWindow, BmsForm, BmsHeader, BmsHeaderTitle, _sfc_main$1n as BmsIconButton, _sfc_main$16 as BmsInputBooleanCheckbox, BmsInputCheckboxCaption, BmsInputCheckboxCaptionGroup, BmsInputCheckboxGroup, BmsInputCode, _sfc_main$10 as BmsInputDateTime, BmsInputFile, _sfc_main$_ as BmsInputNumber, BmsInputRadio, BmsInputRadioCaption, BmsInputRadioCaptionGroup, BmsInputRadioGroup, _sfc_main$11 as BmsInputText, BmsInputToggle, _sfc_main$1r as BmsLink, BmsLoader, BmsMenu, BmsMenuNav, BmsModal, BmsMultiSelect, BmsNotificationsInstance, BmsOverlay, BmsPagination, BmsProblem, _sfc_main$g as BmsRelativeTime, BmsSearch, BmsSection, BmsSelect, BmsServerAutocomplete, BmsServerTable, BmsShortLinkMenu, BmsSplitWindow, BmsStep, BmsStepper, BmsTable, _sfc_main$p as BmsTabs, BmsTag, BmsTenantSwitcher, BmsTextArea, BmsTooltip, ChipColor, CocardeBorder, ColumnType, ConfirmInstance, InputType, KeycloakAuthAdapterInstance, RuntimeEnv, SelectMode, SortValue, StatusType, TooltipDirection, confirmPlugin, convertStringToCaption, createBmsUi, createRuntimeEnv, defaultSortFunction, enforceActionsColumnHeader, featureFlipperPlugin, fetchRuntimeEnv, field, getCurrentHistory, getCurrentLocation, getFiltersAsQueryParams, getHeaderClasses, getImageFromFile, getNumberFromPathQuery, getStringFromPathQuery, getUserPrefFromLocalStorage, getValueByPath, handleValueInSearchParams, isEmptyStringOrNotDefined, isExternalLink, isFileImage, isProblem, keycloakAuthAdapter, keycloakAuthAdapterInit, notifications, readableDate, reflectFiltersToPath, reflectSearchToPath, relativeDate, relativeDateDefaultFormatFunction, routerHistoryPlugin, sanitizeHtml, sanitizeString, saveValuesToPathQuery, searchString, setUserPrefFromLocalStorage, useClipboard, useConfirm, useFeatureFlipper, useKeycloakAuthAdapter, useNotifications, usePagination, useRouterHistory, useRuntimeEnv, useSearch, useSort, useUserPref, writeLocation };
106369
+ export { BMS_FORM_VALID_URL_REGEX, BmsAlert, BmsAutocomplete, BmsBackButton, BmsBadge, BmsBetweenInput, BmsBreadcrumb, _sfc_main$1p as BmsButton, BmsCaption, BmsCard, BmsChip, BmsCircularProgress, BmsCocarde, BmsContentPageLayout, BmsDraggableList, BmsEmptyScreen, BmsFilePicker, BmsFixedMenu, BmsFloatingWindow, BmsForm, BmsGhost, BmsHeader, BmsHeaderTitle, _sfc_main$1o as BmsIconButton, _sfc_main$16 as BmsInputBooleanCheckbox, BmsInputCheckboxCaption, BmsInputCheckboxCaptionGroup, BmsInputCheckboxGroup, BmsInputCode, _sfc_main$10 as BmsInputDateTime, BmsInputFile, _sfc_main$_ as BmsInputNumber, BmsInputRadio, BmsInputRadioCaption, BmsInputRadioCaptionGroup, BmsInputRadioGroup, _sfc_main$11 as BmsInputText, BmsInputToggle, _sfc_main$1s as BmsLink, BmsLoader, BmsMenu, BmsMenuNav, BmsModal, BmsMultiSelect, BmsNotificationsInstance, BmsOverlay, BmsPagination, BmsProblem, _sfc_main$g as BmsRelativeTime, BmsSearch, BmsSection, BmsSelect, BmsServerAutocomplete, BmsServerTable, BmsShortLinkMenu, BmsSplitWindow, BmsStep, BmsStepper, BmsTable, _sfc_main$p as BmsTabs, BmsTag, BmsTenantSwitcher, BmsTextArea, BmsTooltip, ChipColor, CocardeBorder, ColumnType, ConfirmInstance, InputType, KeycloakAuthAdapterInstance, RuntimeEnv, SelectMode, SortValue, StatusType, TooltipDirection, confirmPlugin, convertStringToCaption, createBmsUi, createRuntimeEnv, defaultSortFunction, enforceActionsColumnHeader, featureFlipperPlugin, fetchRuntimeEnv, field, getCurrentHistory, getCurrentLocation, getFiltersAsQueryParams, getHeaderClasses, getImageFromFile, getNumberFromPathQuery, getStringFromPathQuery, getUserPrefFromLocalStorage, getValueByPath, handleValueInSearchParams, isEmptyStringOrNotDefined, isExternalLink, isFileImage, isProblem, keycloakAuthAdapter, keycloakAuthAdapterInit, notifications, readableDate, reflectFiltersToPath, reflectSearchToPath, relativeDate, relativeDateDefaultFormatFunction, routerHistoryPlugin, sanitizeHtml, sanitizeString, saveValuesToPathQuery, searchString, setUserPrefFromLocalStorage, useClipboard, useConfirm, useFeatureFlipper, useKeycloakAuthAdapter, useNotifications, usePagination, useRouterHistory, useRuntimeEnv, useSearch, useSort, useUserPref, writeLocation };
106121
106370
  //# sourceMappingURL=sipa-bms-ui.es.js.map