@ouestfrance/sipa-bms-ui 8.38.0 → 8.38.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.
package/dist/sipa-bms-ui.css
CHANGED
|
@@ -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:
|
|
3395
|
+
bottom: var(--field-datalist-bottom);
|
|
3395
3396
|
}
|
|
3396
3397
|
.field__input {
|
|
3397
3398
|
display: flex;
|
package/dist/sipa-bms-ui.es.js
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
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;
|