@ouestfrance/sipa-bms-ui 8.18.0 → 8.19.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.
@@ -1655,45 +1655,59 @@ input[type=radio][data-v-c0c9efa3]:checked::before {
1655
1655
  background-color: var(--bms-white);
1656
1656
  border-radius: var(--bms-border-radius-large);
1657
1657
  padding: 1em 2em 1em 2em;
1658
- }.split-window[data-v-61513081] {
1658
+ }.split-window[data-v-15128bb0] {
1659
1659
  display: grid;
1660
1660
  width: 100%;
1661
1661
  height: 100%;
1662
+ overflow: hidden;
1662
1663
  }
1663
- .split-window__separator[data-v-61513081] {
1664
+ .split-window__pane[data-v-15128bb0] {
1665
+ display: flex;
1666
+ max-height: 100%;
1667
+ overflow: hidden;
1668
+ }
1669
+ .split-window__separator[data-v-15128bb0] {
1664
1670
  position: relative;
1665
- z-index: 2;
1671
+ z-index: var(--bms-z-index-fixed);
1666
1672
  }
1667
- .split-window__separator[data-v-61513081]:before {
1673
+ .split-window__separator[data-v-15128bb0]:before {
1668
1674
  content: "";
1669
1675
  position: absolute;
1670
1676
  top: 0;
1671
1677
  left: 0;
1672
1678
  }
1673
- .split-window__separator[data-v-61513081]:focus-within:before {
1679
+ .split-window__separator[data-v-15128bb0]:focus-within:before {
1674
1680
  outline: 2px solid black;
1675
1681
  }
1676
- .split-window--vertical .split-window__separator[data-v-61513081] {
1682
+ .split-window--vertical .split-window__separator[data-v-15128bb0] {
1677
1683
  height: 100%;
1678
1684
  width: 0;
1679
1685
  }
1680
- .split-window--vertical .split-window__separator[data-v-61513081]:before {
1686
+ .split-window--vertical .split-window__separator[data-v-15128bb0]:before {
1681
1687
  content: "";
1682
1688
  width: 8px;
1683
1689
  height: 100%;
1684
1690
  transform: translate(-50%, 0);
1685
1691
  cursor: col-resize;
1686
1692
  }
1687
- .split-window--horizontal .split-window__separator[data-v-61513081] {
1693
+ .split-window--horizontal .split-window__separator[data-v-15128bb0] {
1688
1694
  height: 0;
1689
1695
  width: 100%;
1690
1696
  }
1691
- .split-window--horizontal .split-window__separator[data-v-61513081]:before {
1697
+ .split-window--horizontal .split-window__separator[data-v-15128bb0]:before {
1692
1698
  content: "";
1693
1699
  width: 100%;
1694
1700
  height: 8px;
1695
1701
  transform: translate(0, -50%);
1696
1702
  cursor: row-resize;
1703
+ }
1704
+ .split-window--dragging .split-window__separator[data-v-15128bb0]:before {
1705
+ position: fixed;
1706
+ top: 0;
1707
+ left: 0;
1708
+ width: 100%;
1709
+ height: 100%;
1710
+ transform: unset;
1697
1711
  }.step-buttons[data-v-fcce71d1] {
1698
1712
  padding-top: 2em;
1699
1713
  display: flex;
@@ -90514,6 +90514,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
90514
90514
  watch(
90515
90515
  () => props.collapsed,
90516
90516
  (val) => {
90517
+ console.log("watch:collapsed", val);
90517
90518
  collapsedLocal.value = val ?? false;
90518
90519
  }
90519
90520
  );
@@ -90559,7 +90560,9 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
90559
90560
  });
90560
90561
  function onPointerDown(evt) {
90561
90562
  isDragging.value = true;
90562
- setCollapsed(false);
90563
+ if (collapsedLocal.value) {
90564
+ setCollapsed(false);
90565
+ }
90563
90566
  startSplit.value = clampSplit.value;
90564
90567
  startPosition.value = props.splitOrientation === "vertical" ? evt.clientX : evt.clientY;
90565
90568
  }
@@ -90583,14 +90586,14 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
90583
90586
  switch (evt.key) {
90584
90587
  case "ArrowLeft":
90585
90588
  case "ArrowUp":
90586
- if (collapsedLocal.value === true) {
90589
+ if (collapsedLocal.value) {
90587
90590
  setCollapsed(false);
90588
90591
  }
90589
90592
  split.value = Math.max(min.value, clampSplit.value - 1);
90590
90593
  break;
90591
90594
  case "ArrowRight":
90592
90595
  case "ArrowDown":
90593
- if (collapsedLocal.value === true) {
90596
+ if (collapsedLocal.value) {
90594
90597
  setCollapsed(false);
90595
90598
  }
90596
90599
  split.value = Math.min(max.value, clampSplit.value + 1);
@@ -90599,13 +90602,13 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
90599
90602
  setCollapsed(!collapsedLocal.value);
90600
90603
  break;
90601
90604
  case "Home":
90602
- if (collapsedLocal.value === true) {
90605
+ if (collapsedLocal.value) {
90603
90606
  setCollapsed(false);
90604
90607
  }
90605
90608
  split.value = props.primary === "first" ? min.value : max.value;
90606
90609
  break;
90607
90610
  case "End":
90608
- if (collapsedLocal.value === true) {
90611
+ if (collapsedLocal.value) {
90609
90612
  setCollapsed(false);
90610
90613
  }
90611
90614
  split.value = props.primary === "first" ? max.value : min.value;
@@ -90626,17 +90629,20 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
90626
90629
  return (_ctx, _cache) => {
90627
90630
  return openBlock(), createElementBlock("div", {
90628
90631
  ref: "split-window",
90629
- class: normalizeClass(["split-window", `split-window--${__props.splitOrientation}`]),
90632
+ class: normalizeClass(["split-window", [
90633
+ `split-window--${__props.splitOrientation}`,
90634
+ { "split-window--dragging": isDragging.value }
90635
+ ]]),
90630
90636
  style: normalizeStyle(gridStyle.value)
90631
90637
  }, [
90632
90638
  createElementVNode("div", {
90633
- class: "split-window__first-pane",
90639
+ class: "split-window__pane split-window__first-pane",
90634
90640
  id: __props.primary === "first" ? primaryId.value : void 0
90635
90641
  }, [
90636
90642
  renderSlot(_ctx.$slots, "first", {}, void 0, true)
90637
90643
  ], 8, _hoisted_1$v),
90638
90644
  createElementVNode("div", {
90639
- class: "split-window__separator",
90645
+ class: "split-window__separator toto",
90640
90646
  role: "separator",
90641
90647
  tabindex: "0",
90642
90648
  "aria-label": props.ariaLabel || "Séparateur de volet",
@@ -90649,7 +90655,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
90649
90655
  onKeydown: onKeyDown
90650
90656
  }, null, 40, _hoisted_2$k),
90651
90657
  createElementVNode("div", {
90652
- class: "split-window__second-pane",
90658
+ class: "split-window__pane split-window__second-pane",
90653
90659
  id: __props.primary === "second" ? primaryId.value : void 0
90654
90660
  }, [
90655
90661
  renderSlot(_ctx.$slots, "second", {}, void 0, true)
@@ -90659,7 +90665,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
90659
90665
  }
90660
90666
  });
90661
90667
 
90662
- const BmsSplitWindow = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-61513081"]]);
90668
+ const BmsSplitWindow = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-15128bb0"]]);
90663
90669
 
90664
90670
  const _hoisted_1$u = { class: "step" };
90665
90671
  const _hoisted_2$j = { class: "step-buttons" };