@ouestfrance/sipa-bms-ui 8.9.3 → 8.10.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.
- package/dist/sipa-bms-ui.css +27 -25
- package/dist/sipa-bms-ui.es.js +17 -14
- package/dist/sipa-bms-ui.es.js.map +1 -1
- package/dist/sipa-bms-ui.umd.js +17 -14
- package/dist/sipa-bms-ui.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/layout/BmsModal.stories.js +9 -0
- package/src/components/layout/BmsModal.vue +2 -0
- package/src/components/table/BmsPagination.spec.ts +114 -18
- package/src/components/table/BmsServerTable.vue +12 -9
package/dist/sipa-bms-ui.umd.js
CHANGED
|
@@ -89566,7 +89566,7 @@
|
|
|
89566
89566
|
}
|
|
89567
89567
|
});
|
|
89568
89568
|
|
|
89569
|
-
const BmsModal = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-
|
|
89569
|
+
const BmsModal = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-c222186a"]]);
|
|
89570
89570
|
|
|
89571
89571
|
const _hoisted_1$u = { class: "header" };
|
|
89572
89572
|
const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -101440,13 +101440,19 @@
|
|
|
101440
101440
|
},
|
|
101441
101441
|
{ deep: true }
|
|
101442
101442
|
);
|
|
101443
|
+
const debouncedHandler = _debounce((callBack) => {
|
|
101444
|
+
callBack();
|
|
101445
|
+
}, props.debounceTime);
|
|
101443
101446
|
vue.watch(
|
|
101444
101447
|
[() => filters.value, () => sort.value, size, search],
|
|
101445
101448
|
() => {
|
|
101446
101449
|
if (!isMounting.value) {
|
|
101447
|
-
|
|
101448
|
-
|
|
101449
|
-
|
|
101450
|
+
const callBack = () => {
|
|
101451
|
+
currentPage.value = props.initialPage;
|
|
101452
|
+
emits("update:selectMode", SelectMode.DEFAULT);
|
|
101453
|
+
fetchData();
|
|
101454
|
+
};
|
|
101455
|
+
debouncedHandler(callBack);
|
|
101450
101456
|
}
|
|
101451
101457
|
},
|
|
101452
101458
|
{ deep: true }
|
|
@@ -101488,9 +101494,6 @@
|
|
|
101488
101494
|
}
|
|
101489
101495
|
}
|
|
101490
101496
|
}
|
|
101491
|
-
const debouncedSearch = _debounce((value) => {
|
|
101492
|
-
search.value = value;
|
|
101493
|
-
}, props.debounceTime);
|
|
101494
101497
|
const onPrevClick = () => {
|
|
101495
101498
|
goToPage(currentPage.value - 1, total.value);
|
|
101496
101499
|
};
|
|
@@ -101520,9 +101523,9 @@
|
|
|
101520
101523
|
return (_ctx, _cache) => {
|
|
101521
101524
|
return vue.openBlock(), vue.createBlock(UiBmsTable, {
|
|
101522
101525
|
selectedItems: selectedItems.value,
|
|
101523
|
-
"onUpdate:selectedItems": _cache[
|
|
101526
|
+
"onUpdate:selectedItems": _cache[6] || (_cache[6] = ($event) => selectedItems.value = $event),
|
|
101524
101527
|
selectMode: localSelectMode.value,
|
|
101525
|
-
"onUpdate:selectMode": _cache[
|
|
101528
|
+
"onUpdate:selectMode": _cache[7] || (_cache[7] = ($event) => localSelectMode.value = $event),
|
|
101526
101529
|
loading: loading.value,
|
|
101527
101530
|
items: vue.unref(items),
|
|
101528
101531
|
headers: _ctx.headers,
|
|
@@ -101586,8 +101589,8 @@
|
|
|
101586
101589
|
vue.createVNode(BmsSearch, {
|
|
101587
101590
|
modelValue: vue.unref(search),
|
|
101588
101591
|
class: "table-search",
|
|
101589
|
-
"onUpdate:modelValue":
|
|
101590
|
-
}, null, 8, ["modelValue"
|
|
101592
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => search.value = $event)
|
|
101593
|
+
}, null, 8, ["modelValue"])
|
|
101591
101594
|
], true) : vue.createCommentVNode("", true)
|
|
101592
101595
|
]),
|
|
101593
101596
|
empty: vue.withCtx(() => [
|
|
@@ -101602,14 +101605,14 @@
|
|
|
101602
101605
|
props.size ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$6, [
|
|
101603
101606
|
vue.createVNode(BmsPagination, {
|
|
101604
101607
|
currentSize: vue.unref(size),
|
|
101605
|
-
"onUpdate:currentSize": _cache[
|
|
101608
|
+
"onUpdate:currentSize": _cache[4] || (_cache[4] = ($event) => vue.isRef(size) ? size.value = $event : null),
|
|
101606
101609
|
total: total.value,
|
|
101607
101610
|
currentPage: props.initialPage === 1 ? vue.unref(currentPage) - 1 : vue.unref(currentPage),
|
|
101608
101611
|
sizes: vue.unref(paginationsOptions),
|
|
101609
101612
|
pages: totalPages.value,
|
|
101610
101613
|
onPrev: onPrevClick,
|
|
101611
101614
|
onNext: onNextClick,
|
|
101612
|
-
onGo: _cache[
|
|
101615
|
+
onGo: _cache[5] || (_cache[5] = ($event) => go($event))
|
|
101613
101616
|
}, null, 8, ["currentSize", "total", "currentPage", "sizes", "pages"])
|
|
101614
101617
|
])) : vue.createCommentVNode("", true)
|
|
101615
101618
|
]),
|
|
@@ -101628,7 +101631,7 @@
|
|
|
101628
101631
|
}
|
|
101629
101632
|
});
|
|
101630
101633
|
|
|
101631
|
-
const BmsServerTable = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-
|
|
101634
|
+
const BmsServerTable = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-df695c8a"]]);
|
|
101632
101635
|
|
|
101633
101636
|
const _hoisted_1$6 = { class: "filters-container" };
|
|
101634
101637
|
const _hoisted_2$5 = {
|