@ouestfrance/sipa-bms-ui 8.9.3 → 8.10.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.
@@ -68428,7 +68428,7 @@
68428
68428
  }
68429
68429
  });
68430
68430
 
68431
- const UiBmsSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-19745934"]]);
68431
+ const UiBmsSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-6de1a5c6"]]);
68432
68432
 
68433
68433
  const _hoisted_1$G = { class: "input-switch-info" };
68434
68434
  const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
@@ -86099,7 +86099,7 @@
86099
86099
 
86100
86100
  const BmsSelect = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-21c618e0"]]);
86101
86101
 
86102
- const _hoisted_1$C = ["value", "required", "placeholder"];
86102
+ const _hoisted_1$C = ["value", "required", "placeholder", "disabled"];
86103
86103
  const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
86104
86104
  __name: "BmsTextArea",
86105
86105
  props: {
@@ -86150,6 +86150,7 @@
86150
86150
  class: vue.normalizeClass(classes.value),
86151
86151
  required: _ctx.required,
86152
86152
  placeholder: _ctx.placeholder,
86153
+ disabled: _ctx.disabled,
86153
86154
  onInput,
86154
86155
  onKeydown: _cache[0] || (_cache[0] = vue.withKeys(vue.withModifiers(() => {
86155
86156
  }, ["stop"]), ["enter"])),
@@ -86162,7 +86163,7 @@
86162
86163
  }
86163
86164
  });
86164
86165
 
86165
- const BmsTextArea = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-14d354f8"]]);
86166
+ const BmsTextArea = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-b7e10b40"]]);
86166
86167
 
86167
86168
  const _hoisted_1$B = { class: "page__breadcrumb" };
86168
86169
  const _hoisted_2$o = { class: "page__header" };
@@ -89566,7 +89567,7 @@
89566
89567
  }
89567
89568
  });
89568
89569
 
89569
- const BmsModal = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-96b6d748"]]);
89570
+ const BmsModal = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-c222186a"]]);
89570
89571
 
89571
89572
  const _hoisted_1$u = { class: "header" };
89572
89573
  const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
@@ -101440,13 +101441,19 @@
101440
101441
  },
101441
101442
  { deep: true }
101442
101443
  );
101444
+ const debouncedHandler = _debounce((callBack) => {
101445
+ callBack();
101446
+ }, props.debounceTime);
101443
101447
  vue.watch(
101444
101448
  [() => filters.value, () => sort.value, size, search],
101445
101449
  () => {
101446
101450
  if (!isMounting.value) {
101447
- currentPage.value = props.initialPage;
101448
- emits("update:selectMode", SelectMode.DEFAULT);
101449
- fetchData();
101451
+ const callBack = () => {
101452
+ currentPage.value = props.initialPage;
101453
+ emits("update:selectMode", SelectMode.DEFAULT);
101454
+ fetchData();
101455
+ };
101456
+ debouncedHandler(callBack);
101450
101457
  }
101451
101458
  },
101452
101459
  { deep: true }
@@ -101488,9 +101495,6 @@
101488
101495
  }
101489
101496
  }
101490
101497
  }
101491
- const debouncedSearch = _debounce((value) => {
101492
- search.value = value;
101493
- }, props.debounceTime);
101494
101498
  const onPrevClick = () => {
101495
101499
  goToPage(currentPage.value - 1, total.value);
101496
101500
  };
@@ -101520,9 +101524,9 @@
101520
101524
  return (_ctx, _cache) => {
101521
101525
  return vue.openBlock(), vue.createBlock(UiBmsTable, {
101522
101526
  selectedItems: selectedItems.value,
101523
- "onUpdate:selectedItems": _cache[5] || (_cache[5] = ($event) => selectedItems.value = $event),
101527
+ "onUpdate:selectedItems": _cache[6] || (_cache[6] = ($event) => selectedItems.value = $event),
101524
101528
  selectMode: localSelectMode.value,
101525
- "onUpdate:selectMode": _cache[6] || (_cache[6] = ($event) => localSelectMode.value = $event),
101529
+ "onUpdate:selectMode": _cache[7] || (_cache[7] = ($event) => localSelectMode.value = $event),
101526
101530
  loading: loading.value,
101527
101531
  items: vue.unref(items),
101528
101532
  headers: _ctx.headers,
@@ -101586,8 +101590,8 @@
101586
101590
  vue.createVNode(BmsSearch, {
101587
101591
  modelValue: vue.unref(search),
101588
101592
  class: "table-search",
101589
- "onUpdate:modelValue": vue.unref(debouncedSearch)
101590
- }, null, 8, ["modelValue", "onUpdate:modelValue"])
101593
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => search.value = $event)
101594
+ }, null, 8, ["modelValue"])
101591
101595
  ], true) : vue.createCommentVNode("", true)
101592
101596
  ]),
101593
101597
  empty: vue.withCtx(() => [
@@ -101602,14 +101606,14 @@
101602
101606
  props.size ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$6, [
101603
101607
  vue.createVNode(BmsPagination, {
101604
101608
  currentSize: vue.unref(size),
101605
- "onUpdate:currentSize": _cache[3] || (_cache[3] = ($event) => vue.isRef(size) ? size.value = $event : null),
101609
+ "onUpdate:currentSize": _cache[4] || (_cache[4] = ($event) => vue.isRef(size) ? size.value = $event : null),
101606
101610
  total: total.value,
101607
101611
  currentPage: props.initialPage === 1 ? vue.unref(currentPage) - 1 : vue.unref(currentPage),
101608
101612
  sizes: vue.unref(paginationsOptions),
101609
101613
  pages: totalPages.value,
101610
101614
  onPrev: onPrevClick,
101611
101615
  onNext: onNextClick,
101612
- onGo: _cache[4] || (_cache[4] = ($event) => go($event))
101616
+ onGo: _cache[5] || (_cache[5] = ($event) => go($event))
101613
101617
  }, null, 8, ["currentSize", "total", "currentPage", "sizes", "pages"])
101614
101618
  ])) : vue.createCommentVNode("", true)
101615
101619
  ]),
@@ -101628,7 +101632,7 @@
101628
101632
  }
101629
101633
  });
101630
101634
 
101631
- const BmsServerTable = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-bb2d9aca"]]);
101635
+ const BmsServerTable = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-df695c8a"]]);
101632
101636
 
101633
101637
  const _hoisted_1$6 = { class: "filters-container" };
101634
101638
  const _hoisted_2$5 = {