@ouestfrance/sipa-bms-ui 8.38.0 → 8.38.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.
@@ -7,7 +7,7 @@
7
7
  * - Please do NOT modify this file.
8
8
  */
9
9
 
10
- const PACKAGE_VERSION = '2.13.2'
10
+ const PACKAGE_VERSION = '2.13.4'
11
11
  const INTEGRITY_CHECKSUM = '4db4a41e972cec1b64cc569c66952d82'
12
12
  const IS_MOCKED_RESPONSE = Symbol('isMockedResponse')
13
13
  const activeClientIds = new Set()
@@ -2617,38 +2617,38 @@ nav .additional[data-v-8b4752b4] {
2617
2617
  .bms-pagination__select[data-v-86561b3b] .field__wrapper {
2618
2618
  min-width: 10em;
2619
2619
  width: 10em;
2620
- }.bms-table__row[data-v-c01ccc48] {
2620
+ }.bms-table__row[data-v-a290e24c] {
2621
2621
  --table-cell-padding: 1em;
2622
2622
  background-color: var(--bms-white);
2623
2623
  }
2624
- .bms-table__row td[data-v-c01ccc48] {
2624
+ .bms-table__row td[data-v-a290e24c] {
2625
2625
  padding: var(--table-cell-padding);
2626
2626
  background-color: var(--bms-white);
2627
2627
  }
2628
- .bms-table__row--dense[data-v-c01ccc48] {
2628
+ .bms-table__row--dense[data-v-a290e24c] {
2629
2629
  --table-cell-padding: 0.5em 1em;
2630
2630
  }
2631
- .bms-table__row--selected[data-v-c01ccc48] td {
2632
- background-color: light-dark(var(--bms-main-10), var(--bms-grey-25));
2631
+ .bms-table__row--selected[data-v-a290e24c] td {
2632
+ background-color: light-dark(var(--bms-main-10), color-mix(in srgb, var(--bms-main-100) 32%, var(--bms-white)));
2633
2633
  }
2634
- .bms-table__row--disabled td[data-v-c01ccc48] {
2634
+ .bms-table__row--disabled td[data-v-a290e24c] {
2635
2635
  color: var(--bms-grey-50);
2636
2636
  }
2637
- .bms-table__row__cell__checkbox[data-v-c01ccc48] {
2637
+ .bms-table__row__cell__checkbox[data-v-a290e24c] {
2638
2638
  width: 4em;
2639
2639
  }
2640
- .bms-table__row__cell--action[data-v-c01ccc48] {
2640
+ .bms-table__row__cell--action[data-v-a290e24c] {
2641
2641
  display: flex;
2642
2642
  justify-content: end;
2643
2643
  }
2644
- .bms-table__row__cell--empty[data-v-c01ccc48] {
2644
+ .bms-table__row__cell--empty[data-v-a290e24c] {
2645
2645
  height: 360px;
2646
2646
  }
2647
- .bms-table__row__cell--child-element[data-v-c01ccc48] {
2647
+ .bms-table__row__cell--child-element[data-v-a290e24c] {
2648
2648
  display: inline-flex;
2649
2649
  align-items: flex-end;
2650
2650
  }
2651
- .bms-table__row__cell--child-element__icon[data-v-c01ccc48] {
2651
+ .bms-table__row__cell--child-element__icon[data-v-a290e24c] {
2652
2652
  display: flex;
2653
2653
  margin-right: 1em;
2654
2654
  }.bms-table[data-v-2b029949] {
@@ -3314,6 +3314,7 @@ section {
3314
3314
  --field-padding: 1em;
3315
3315
  --field-margin: 0.5em 0;
3316
3316
  --field-label-font-weight: bold;
3317
+ --field-datalist-bottom: calc(var(--field-height) + 1em);
3317
3318
  }
3318
3319
  .field__errors {
3319
3320
  font-size: 14px;
@@ -3391,7 +3392,7 @@ section {
3391
3392
  overflow-y: auto;
3392
3393
  }
3393
3394
  .field__datalist.top {
3394
- bottom: 60px;
3395
+ bottom: var(--field-datalist-bottom);
3395
3396
  }
3396
3397
  .field__input {
3397
3398
  display: flex;
@@ -98305,7 +98305,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
98305
98305
  }
98306
98306
  });
98307
98307
 
98308
- const UiBmsTableRow = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-c01ccc48"]]);
98308
+ const UiBmsTableRow = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-a290e24c"]]);
98309
98309
 
98310
98310
  const _hoisted_1$b = { class: "bms-table" };
98311
98311
  const _hoisted_2$9 = { class: "bms-table__actions__saved-filters" };
@@ -106597,7 +106597,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
106597
106597
  const datalist = ref(null);
106598
106598
  const { y } = useElementBounding(datalist);
106599
106599
  const parentElement = ref(null);
106600
- const { height: windowHeight } = useWindowSize();
106600
+ function getScrollParentBottom(element) {
106601
+ if (!element || element === document.documentElement || element === document.body) {
106602
+ return window.innerHeight;
106603
+ }
106604
+ const { overflow, overflowY } = window.getComputedStyle(element);
106605
+ if (/(auto|scroll|hidden)/.test(overflow + overflowY)) {
106606
+ return element.getBoundingClientRect().bottom;
106607
+ }
106608
+ return getScrollParentBottom(element.parentElement);
106609
+ }
106601
106610
  const classes = computed(() => {
106602
106611
  return {
106603
106612
  field: true,
@@ -106630,7 +106639,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
106630
106639
  if (!datalist.value) {
106631
106640
  return false;
106632
106641
  }
106633
- return y.value + (datalistHeight.value ?? 0) > windowHeight.value;
106642
+ const containerBottom = getScrollParentBottom(datalist.value.parentElement);
106643
+ return y.value + (datalistHeight.value ?? 0) > containerBottom;
106634
106644
  });
106635
106645
  const getCaptionIdentifier = (caption) => {
106636
106646
  return convertStringToCaption(caption).label;