@amsom-habitat/amsom-table 4.5.13 → 4.6.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.
@@ -1,4 +1,4 @@
1
- (function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.select-max-item-per-page[data-v-f3f9f7af]{height:100%;color:var(--bs-secondary);border:1px solid var(--bs-secondary);background-color:#0000;font-size:12px}.select-max-item-per-page[data-v-f3f9f7af]:hover{color:var(--bs-white);cursor:pointer;background-color:var(--bs-secondary)}.select-max-item-per-page[data-v-f3f9f7af]:focus{box-shadow:none}input[type=checkbox][data-v-f3f9f7af]{pointer-events:none}.cursor-default[data-v-f3f9f7af]{cursor:default!important}.hoverable[data-v-f3f9f7af]:hover{cursor:pointer!important}.hoverable-grab[data-v-f3f9f7af]:hover{cursor:grab!important}.hoverable-grabbing[data-v-f3f9f7af]:hover{cursor:grabbing!important}.hoverable-no-drop[data-v-f3f9f7af]:hover{cursor:no-drop!important}.addLineState[data-v-f3f9f7af]{background-color:#edecd4!important}.deleteLineState[data-v-f3f9f7af]{background-color:#f8d6da!important}.updateLineState[data-v-f3f9f7af]{background-color:#c4e8ff!important}.sticky-column-left[data-v-f3f9f7af]{background-color:#fff;border-left:1px solid #ddd;position:sticky;left:0}.sticky-column-right[data-v-f3f9f7af]{background-color:#fff;border-left:1px solid #ddd;position:sticky;right:0}table[data-v-f3f9f7af]{border-radius:10px!important}table tr:first-child th[data-v-f3f9f7af]:first-child{border-top-left-radius:10px!important}table tr:first-child th[data-v-f3f9f7af]:last-child{border-top-right-radius:10px!important}table tr:last-child td[data-v-f3f9f7af]:first-child{border-bottom-left-radius:10px!important}table tr:last-child td[data-v-f3f9f7af]:last-child{border-bottom-right-radius:10px!important}.deep-filter-ghost-class[data-v-f3f9f7af]{background-color:var(--bs-secondary)!important;color:rgba(var(--bs-white-rgb), 1)!important}.col-12.p-0.overflow-x-auto[data-v-f3f9f7af],.table-container[data-v-f3f9f7af]{max-width:100%;overflow-x:auto}.bottom-scrollbar[data-v-f3f9f7af]{white-space:nowrap;z-index:100;scrollbar-width:auto;width:100%;height:15px;transition:opacity .3s ease-in-out;display:none;position:fixed;bottom:0;left:0;overflow:auto hidden}.bottom-scrollbar.visible[data-v-f3f9f7af]{display:block}.scrollbar-content[data-v-f3f9f7af]{width:2000px;height:1px}.infinite-scroll-container[data-v-f3f9f7af]{border:1px solid #ddd;border-radius:10px}.infinite-scroll-container .sticky-column-left[data-v-f3f9f7af],.infinite-scroll-container .sticky-column-right[data-v-f3f9f7af]{z-index:10}.infinite-scroll-container thead th.sticky-top[data-v-f3f9f7af]{z-index:20!important}.infinite-scroll-container thead th.sticky-top.sticky-column-left[data-v-f3f9f7af],.infinite-scroll-container thead th.sticky-top.sticky-column-right[data-v-f3f9f7af]{z-index:30!important}.infinite-scroll-container[data-v-f3f9f7af]::-webkit-scrollbar{height:8px}.infinite-scroll-container[data-v-f3f9f7af]::-webkit-scrollbar-thumb{background-color:#ddd;border-radius:4px}.infinite-scroll-container[data-v-f3f9f7af]::-webkit-scrollbar-thumb:hover{background-color:#ccc}.infinite-scroll-container[data-v-f3f9f7af]::-webkit-scrollbar-track{background-color:#0000}/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
1
+ (function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.select-max-item-per-page[data-v-41854020]{height:100%;color:var(--bs-secondary);border:1px solid var(--bs-secondary);background-color:#0000;font-size:12px}.select-max-item-per-page[data-v-41854020]:hover{color:var(--bs-white);cursor:pointer;background-color:var(--bs-secondary)}.select-max-item-per-page[data-v-41854020]:focus{box-shadow:none}input[type=checkbox][data-v-41854020]{pointer-events:none}.cursor-default[data-v-41854020]{cursor:default!important}.hoverable[data-v-41854020]:hover{cursor:pointer!important}.hoverable-grab[data-v-41854020]:hover{cursor:grab!important}.hoverable-grabbing[data-v-41854020]:hover{cursor:grabbing!important}.hoverable-no-drop[data-v-41854020]:hover{cursor:no-drop!important}.addLineState[data-v-41854020]{background-color:#edecd4!important}.deleteLineState[data-v-41854020]{background-color:#f8d6da!important}.updateLineState[data-v-41854020]{background-color:#c4e8ff!important}.sticky-column-left[data-v-41854020]{background-color:#fff;border-left:1px solid #ddd;position:sticky;left:0}.sticky-column-right[data-v-41854020]{background-color:#fff;border-left:1px solid #ddd;position:sticky;right:0}table[data-v-41854020]{border-radius:10px!important}table tr:first-child th[data-v-41854020]:first-child{border-top-left-radius:10px!important}table tr:first-child th[data-v-41854020]:last-child{border-top-right-radius:10px!important}table tr:last-child td[data-v-41854020]:first-child{border-bottom-left-radius:10px!important}table tr:last-child td[data-v-41854020]:last-child{border-bottom-right-radius:10px!important}.deep-filter-ghost-class[data-v-41854020]{background-color:var(--bs-secondary)!important;color:rgba(var(--bs-white-rgb), 1)!important}.col-12.p-0.overflow-x-auto[data-v-41854020],.table-container[data-v-41854020]{max-width:100%;overflow-x:auto}.bottom-scrollbar[data-v-41854020]{white-space:nowrap;z-index:100;scrollbar-width:auto;width:100%;height:15px;transition:opacity .3s ease-in-out;display:none;position:fixed;bottom:0;left:0;overflow:auto hidden}.bottom-scrollbar.visible[data-v-41854020]{display:block}.scrollbar-content[data-v-41854020]{width:2000px;height:1px}.infinite-scroll-container[data-v-41854020]{border:1px solid #ddd;border-radius:10px}.infinite-scroll-container .sticky-column-left[data-v-41854020],.infinite-scroll-container .sticky-column-right[data-v-41854020]{z-index:10}.infinite-scroll-container thead th.sticky-top[data-v-41854020]{z-index:20!important}.infinite-scroll-container thead th.sticky-top.sticky-column-left[data-v-41854020],.infinite-scroll-container thead th.sticky-top.sticky-column-right[data-v-41854020]{z-index:30!important}.infinite-scroll-container[data-v-41854020]::-webkit-scrollbar{height:8px}.infinite-scroll-container[data-v-41854020]::-webkit-scrollbar-thumb{background-color:#ddd;border-radius:4px}.infinite-scroll-container[data-v-41854020]::-webkit-scrollbar-thumb:hover{background-color:#ccc}.infinite-scroll-container[data-v-41854020]::-webkit-scrollbar-track{background-color:#0000}@keyframes scrollHighlightFade-41854020{0%{box-shadow:inset 0 0 0 3px #0d6efde6}60%{box-shadow:inset 0 0 0 3px #0d6efd80}to{box-shadow:inset 0 0 0 3px #0d6efd00}}.scroll-to-highlight[data-v-41854020]{animation:1.8s ease-out forwards scrollHighlightFade-41854020}/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
2
2
  import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createTextVNode as o, createVNode as s, defineComponent as c, h as l, normalizeClass as u, normalizeStyle as d, openBlock as f, renderList as p, renderSlot as ee, resolveComponent as m, toDisplayString as h, vModelCheckbox as te, vModelSelect as g, watch as ne, withCtx as re, withDirectives as ie, withModifiers as ae } from "vue";
3
3
  import { VueDraggableNext as _ } from "vue-draggable-next";
4
4
  import v from "moment-timezone";
@@ -2440,6 +2440,16 @@ var Di = {
2440
2440
  "M135.2 17.7L128 32 32 32C14.3 32 0 46.3 0 64S14.3 96 32 96l384 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0-7.2-14.3C307.4 6.8 296.3 0 284.2 0L163.8 0c-12.1 0-23.2 6.8-28.6 17.7zM416 128L32 128 53.2 467c1.6 25.3 22.6 45 47.9 45l245.8 0c25.3 0 46.3-19.7 47.9-45L416 128z"
2441
2441
  ]
2442
2442
  }, Mi = {
2443
+ prefix: "fas",
2444
+ iconName: "circle-info",
2445
+ icon: [
2446
+ 512,
2447
+ 512,
2448
+ ["info-circle"],
2449
+ "f05a",
2450
+ "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"
2451
+ ]
2452
+ }, Ni = {
2443
2453
  prefix: "fas",
2444
2454
  iconName: "arrow-down-short-wide",
2445
2455
  icon: [
@@ -2449,7 +2459,7 @@ var Di = {
2449
2459
  "f884",
2450
2460
  "M151.6 469.6C145.5 476.2 137 480 128 480s-17.5-3.8-23.6-10.4l-88-96c-11.9-13-11.1-33.3 2-45.2s33.3-11.1 45.2 2L96 365.7 96 64c0-17.7 14.3-32 32-32s32 14.3 32 32l0 301.7 32.4-35.4c11.9-13 32.2-13.9 45.2-2s13.9 32.2 2 45.2l-88 96zM320 32l32 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-32 0c-17.7 0-32-14.3-32-32s14.3-32 32-32zm0 128l96 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-96 0c-17.7 0-32-14.3-32-32s14.3-32 32-32zm0 128l160 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-160 0c-17.7 0-32-14.3-32-32s14.3-32 32-32zm0 128l224 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-224 0c-17.7 0-32-14.3-32-32s14.3-32 32-32z"
2451
2461
  ]
2452
- }, Ni = {
2462
+ }, Pi = {
2453
2463
  prefix: "fas",
2454
2464
  iconName: "greater-than",
2455
2465
  icon: [
@@ -2459,7 +2469,7 @@ var Di = {
2459
2469
  "3e",
2460
2470
  "M3.4 81.7c-7.9 15.8-1.5 35 14.3 42.9L280.5 256 17.7 387.4C1.9 395.3-4.5 414.5 3.4 430.3s27.1 22.2 42.9 14.3l320-160c10.8-5.4 17.7-16.5 17.7-28.6s-6.8-23.2-17.7-28.6l-320-160c-15.8-7.9-35-1.5-42.9 14.3z"
2461
2471
  ]
2462
- }, Pi = {
2472
+ }, Fi = {
2463
2473
  prefix: "fas",
2464
2474
  iconName: "plus",
2465
2475
  icon: [
@@ -2473,7 +2483,7 @@ var Di = {
2473
2483
  "2b",
2474
2484
  "M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 144L48 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l144 0 0 144c0 17.7 14.3 32 32 32s32-14.3 32-32l0-144 144 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-144 0 0-144z"
2475
2485
  ]
2476
- }, Fi = {
2486
+ }, Ii = {
2477
2487
  prefix: "fas",
2478
2488
  iconName: "xmark",
2479
2489
  icon: [
@@ -2493,7 +2503,7 @@ var Di = {
2493
2503
  "f00d",
2494
2504
  "M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"
2495
2505
  ]
2496
- }, Ii = /* @__PURE__ */ y(((e, t) => {
2506
+ }, Li = /* @__PURE__ */ y(((e, t) => {
2497
2507
  (function(n, r) {
2498
2508
  typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : n.moment = r();
2499
2509
  })(e, (function() {
@@ -4429,7 +4439,7 @@ var Di = {
4429
4439
  }));
4430
4440
  (/* @__PURE__ */ y(((e, t) => {
4431
4441
  (function(n, r) {
4432
- typeof e == "object" && t !== void 0 && typeof oe == "function" ? r(Ii()) : typeof define == "function" && define.amd ? define(["../moment"], r) : r(n.moment);
4442
+ typeof e == "object" && t !== void 0 && typeof oe == "function" ? r(Li()) : typeof define == "function" && define.amd ? define(["../moment"], r) : r(n.moment);
4433
4443
  })(e, (function(e) {
4434
4444
  var t = /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i, n = /(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i, r = /(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i, i = [
4435
4445
  /^janv/i,
@@ -4513,52 +4523,52 @@ var Di = {
4513
4523
  });
4514
4524
  }));
4515
4525
  })))();
4516
- function Li(e, t = !0) {
4526
+ function Ri(e, t = !0) {
4517
4527
  if (!e) return null;
4518
4528
  let n = e.toString().normalize("NFD").replace(/[\u0300-\u036f]/g, "");
4519
4529
  return t ? n.toLowerCase() : n;
4520
4530
  }
4521
- function Ri(e) {
4531
+ function zi(e) {
4522
4532
  return e ? e?.toLocaleString("fr-FR", {
4523
4533
  style: "currency",
4524
4534
  currency: "EUR",
4525
4535
  minimumFractionDigits: 2
4526
4536
  }) : "0 €";
4527
4537
  }
4528
- function zi(e, t = "DD/MM/YYYY") {
4538
+ function Bi(e, t = "DD/MM/YYYY") {
4529
4539
  return !e || !v.unix(e).isValid() ? e : v.unix(e).format(t);
4530
4540
  }
4531
- function Bi(e, t = "DD/MM/YYYY à HH:mm") {
4532
- return zi(e, t);
4541
+ function Vi(e, t = "DD/MM/YYYY à HH:mm") {
4542
+ return Bi(e, t);
4533
4543
  }
4534
4544
  //#endregion
4535
4545
  //#region src/js/array.js
4536
- var Vi = /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)?$/;
4537
- function Hi(e, t) {
4546
+ var Hi = /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)?$/;
4547
+ function Ui(e, t) {
4538
4548
  let n = e.replace(/\d+/g, (e) => (+e + 1e5).toString()), r = t.replace(/\d+/g, (e) => (+e + 1e5).toString());
4539
4549
  return n.localeCompare(r);
4540
4550
  }
4541
- function Ui(e) {
4551
+ function Wi(e) {
4542
4552
  return e != null && e !== "" && !isNaN(e);
4543
4553
  }
4544
- function Wi(e) {
4554
+ function Gi(e) {
4545
4555
  return e && v(e, "DD/MM/YYYY", !0).isValid();
4546
4556
  }
4547
- function Gi(e) {
4557
+ function Ki(e) {
4548
4558
  return typeof e == "boolean";
4549
4559
  }
4550
- function Ki(e, t, n) {
4560
+ function qi(e, t, n) {
4551
4561
  let r = !!e - +!!t;
4552
4562
  return n ? -r : r;
4553
4563
  }
4554
- function qi(e, t) {
4564
+ function Ji(e, t) {
4555
4565
  let n = (e == null || e === "") && typeof e != "boolean", r = (t == null || t === "") && typeof t != "boolean";
4556
4566
  return n && r ? 0 : n ? 1 : r ? -1 : null;
4557
4567
  }
4558
- function Ji(e) {
4568
+ function Yi(e) {
4559
4569
  return typeof e == "string" && e.includes("€");
4560
4570
  }
4561
- function Yi(e, t, n) {
4571
+ function Xi(e, t, n) {
4562
4572
  let r = parseFloat(e.replace("€", "").replace(",", ".").replace(/\s/g, "").trim()), i = parseFloat(t.replace("€", "").replace(",", ".").replace(/\s/g, "").trim());
4563
4573
  if (isNaN(r) && isNaN(i)) return 0;
4564
4574
  if (isNaN(r)) return 1;
@@ -4566,42 +4576,42 @@ function Yi(e, t, n) {
4566
4576
  let a = r - i;
4567
4577
  return n ? a : -a;
4568
4578
  }
4569
- function Xi(e, t, n) {
4570
- let r = qi(e, t);
4579
+ function Zi(e, t, n) {
4580
+ let r = Ji(e, t);
4571
4581
  if (r !== null) return r;
4572
- if (Gi(e) && Gi(t)) return Ki(e, t, n);
4573
- if (Vi.test(e) && Vi.test(t)) {
4574
- let r = Hi(e, t);
4582
+ if (Ki(e) && Ki(t)) return qi(e, t, n);
4583
+ if (Hi.test(e) && Hi.test(t)) {
4584
+ let r = Ui(e, t);
4575
4585
  return n ? r : -r;
4576
4586
  }
4577
- if (Ui(e) && Ui(t)) {
4587
+ if (Wi(e) && Wi(t)) {
4578
4588
  let r = parseFloat(e), i = parseFloat(t);
4579
4589
  return n ? r - i : i - r;
4580
4590
  }
4581
- if (Wi(e) && Wi(t)) {
4591
+ if (Gi(e) && Gi(t)) {
4582
4592
  let r = v(e, "DD/MM/YYYY").unix(), i = v(t, "DD/MM/YYYY").unix();
4583
4593
  return n ? r - i : i - r;
4584
4594
  }
4585
- if (Ji(e) && Ji(t)) return Yi(e, t, n);
4586
- let i = typeof e == "string" ? Li(e)?.toLowerCase() : Li(String(e))?.toLowerCase(), a = typeof t == "string" ? Li(t)?.toLowerCase() : Li(String(t))?.toLowerCase(), o = i?.localeCompare(a, void 0, {
4595
+ if (Yi(e) && Yi(t)) return Xi(e, t, n);
4596
+ let i = typeof e == "string" ? Ri(e)?.toLowerCase() : Ri(String(e))?.toLowerCase(), a = typeof t == "string" ? Ri(t)?.toLowerCase() : Ri(String(t))?.toLowerCase(), o = i?.localeCompare(a, void 0, {
4587
4597
  numeric: !0,
4588
4598
  sensitivity: "base"
4589
4599
  });
4590
4600
  return n ? o : -o;
4591
4601
  }
4592
- function Zi(e, t, n = !1) {
4602
+ function Qi(e, t, n = !1) {
4593
4603
  return !e || !Array.isArray(e) ? e : e.sort((e, r) => {
4594
4604
  let i = e?.[t], a = r?.[t];
4595
- return Xi(i, a, n);
4605
+ return Zi(i, a, n);
4596
4606
  });
4597
4607
  }
4598
- function Qi(e, t = !1, n) {
4608
+ function $i(e, t = !1, n) {
4599
4609
  return !e || !Array.isArray(e) ? e : e.sort((e, r) => n(e, r, t));
4600
4610
  }
4601
4611
  //#endregion
4602
4612
  //#region src/js/preferences.js
4603
- function $i(e, t) {
4604
- let n = ta(e);
4613
+ function ea(e, t) {
4614
+ let n = na(e);
4605
4615
  if (!n) n = { columns: t };
4606
4616
  else if (!n.columns) n.columns = t;
4607
4617
  else {
@@ -4624,30 +4634,30 @@ function $i(e, t) {
4624
4634
  for (let n of t) n.id === e.id && n.libelle !== e.libelle && (e.libelle = n.libelle);
4625
4635
  });
4626
4636
  }
4627
- na(e, n);
4637
+ ra(e, n);
4628
4638
  }
4629
- function ea(e, t, n = null) {
4630
- let r = ta(e);
4631
- r ? n && !r[n] && (r[n] = t) : n ? (r = {}, r[n] = t) : r = t, na(e, r);
4639
+ function ta(e, t, n = null) {
4640
+ let r = na(e);
4641
+ r ? n && !r[n] && (r[n] = t) : n ? (r = {}, r[n] = t) : r = t, ra(e, r);
4632
4642
  }
4633
- function ta(e) {
4643
+ function na(e) {
4634
4644
  return JSON.parse(window.localStorage.getItem(e));
4635
4645
  }
4636
- function na(e, t, n = null) {
4637
- let r = ta(e);
4646
+ function ra(e, t, n = null) {
4647
+ let r = na(e);
4638
4648
  return n ? r[n] = t : r = t, window.localStorage.setItem(e, JSON.stringify(r));
4639
4649
  }
4640
4650
  //#endregion
4641
4651
  //#region \0plugin-vue:export-helper
4642
- var ra = (e, t) => {
4652
+ var ia = (e, t) => {
4643
4653
  let n = e.__vccOpts || e;
4644
4654
  for (let [e, r] of t) n[e] = r;
4645
4655
  return n;
4646
4656
  };
4647
4657
  //#endregion
4648
4658
  //#region src/AmsomTableDraggable.vue
4649
- Jr.add(Ai, Di, Oi, Mi, ji, Pi, Fi, Ni, ki);
4650
- var ia = {
4659
+ Jr.add(Ai, Di, Oi, Ni, ji, Fi, Ii, Pi, ki, Mi);
4660
+ var aa = {
4651
4661
  name: "AmsomTableDraggable",
4652
4662
  components: {
4653
4663
  VueDraggableNext: _,
@@ -4845,6 +4855,14 @@ var ia = {
4845
4855
  noValueText: {
4846
4856
  type: String,
4847
4857
  default: "Aucune valeur"
4858
+ },
4859
+ editModeMaxRows: {
4860
+ type: Number,
4861
+ default: 3
4862
+ },
4863
+ scrollToId: {
4864
+ type: [String, Number],
4865
+ default: null
4848
4866
  }
4849
4867
  },
4850
4868
  emits: [
@@ -4855,12 +4873,14 @@ var ia = {
4855
4873
  "update:deepSortsListPreset",
4856
4874
  "contextmenu",
4857
4875
  "postSaveColumns",
4858
- "postResetColumns"
4876
+ "postResetColumns",
4877
+ "scrolled"
4859
4878
  ],
4860
4879
  data() {
4861
4880
  return {
4862
4881
  checkAllCheckBox: !1,
4863
4882
  isDragging: !1,
4883
+ scrollHighlightId: null,
4864
4884
  sortKey: null,
4865
4885
  sortAsc: !1,
4866
4886
  currentPage: 1,
@@ -4922,7 +4942,7 @@ var ia = {
4922
4942
  };
4923
4943
  },
4924
4944
  normalizedSearch() {
4925
- return this.search ? Li(this.search) : "";
4945
+ return this.search ? Ri(this.search) : "";
4926
4946
  },
4927
4947
  hasDateFilter() {
4928
4948
  return this.dateFilterBounds && Array.isArray(this.columnNameDateFilter) && this.columnNameDateFilter.length > 0;
@@ -4951,7 +4971,7 @@ var ia = {
4951
4971
  if (!this.filtereditems) return [];
4952
4972
  if (!this.sortKey && (!this.deepSorts || this.deepSortsList.length === 0)) return this.filtereditems;
4953
4973
  let e = this.columns.find((e) => e.id === this.sortKey);
4954
- return this.deepSorts && this.deepSortsList.length > 0 ? this.deepSortsColumnList(this.deepSortsList, [...this.filtereditems]) : e?.customSort ? Qi([...this.filtereditems], this.sortAsc, e.customSort) : e?.formatter || e?.type ? Qi([...this.filtereditems], this.sortAsc, (t, n, r) => Xi(this.formatColumnValue(t, e), this.formatColumnValue(n, e), r)) : this.sortKey ? Zi([...this.filtereditems], this.sortKey, this.sortAsc) : this.filtereditems;
4974
+ return this.deepSorts && this.deepSortsList.length > 0 ? this.deepSortsColumnList(this.deepSortsList, [...this.filtereditems]) : e?.customSort ? $i([...this.filtereditems], this.sortAsc, e.customSort) : e?.formatter || e?.type ? $i([...this.filtereditems], this.sortAsc, (t, n, r) => Zi(this.formatColumnValue(t, e), this.formatColumnValue(n, e), r)) : this.sortKey ? Qi([...this.filtereditems], this.sortKey, this.sortAsc) : this.filtereditems;
4955
4975
  },
4956
4976
  showeditems() {
4957
4977
  let e = this.sortedItems;
@@ -4985,14 +5005,14 @@ var ia = {
4985
5005
  immediate: !0
4986
5006
  },
4987
5007
  columns: { handler(e) {
4988
- this.localStorageItemName !== null && na(this.localStorageItemName, this.getRefactoColumns(e), "columns"), this.dynamicColumns && !this.isInternalUpdate && (this.isInternalUpdate = !0, this.$emit("update:dynamicColumns", this.getRefactoColumns(e)), this.$nextTick(() => {
5008
+ this.localStorageItemName !== null && ra(this.localStorageItemName, this.getRefactoColumns(e), "columns"), this.dynamicColumns && !this.isInternalUpdate && (this.isInternalUpdate = !0, this.$emit("update:dynamicColumns", this.getRefactoColumns(e)), this.$nextTick(() => {
4989
5009
  this.isInternalUpdate = !1;
4990
5010
  })), this.forceTableUpdateIndex += 1;
4991
5011
  } },
4992
5012
  headerEditMode: { handler(e) {
4993
- if (e) this.maxItemsPerPage = 3;
5013
+ if (e) this.maxItemsPerPage = this.editModeMaxRows;
4994
5014
  else {
4995
- let e = this.localStorageMaxItemPerPageName === null ? this.localStorageItemName === null ? this.maxItemPerPage : ta(this.localStorageItemName)?.maxItemPerPage : ta(this.localStorageMaxItemPerPageName);
5015
+ let e = this.localStorageMaxItemPerPageName === null ? this.localStorageItemName === null ? this.maxItemPerPage : na(this.localStorageItemName)?.maxItemPerPage : na(this.localStorageMaxItemPerPageName);
4996
5016
  this.maxItemsPerPage = e ?? this.maxItemPerPage;
4997
5017
  }
4998
5018
  } },
@@ -5023,7 +5043,7 @@ var ia = {
5023
5043
  },
5024
5044
  maxItemsPerPage: { handler(e) {
5025
5045
  if (!this.headerEditMode) {
5026
- if (this.localStorageItemName !== null && na(this.localStorageItemName, e, "maxItemPerPage"), this.localStorageMaxItemPerPageName !== null && na(this.localStorageMaxItemPerPageName, e), this.infiniteScroll) {
5046
+ if (this.localStorageItemName !== null && ra(this.localStorageItemName, e, "maxItemPerPage"), this.localStorageMaxItemPerPageName !== null && ra(this.localStorageMaxItemPerPageName, e), this.infiniteScroll) {
5027
5047
  let t = this.infiniteScrollIncrement || e;
5028
5048
  this.currentVisibleItems = Math.min(e + t, this.sortedItems.length);
5029
5049
  }
@@ -5071,6 +5091,9 @@ var ia = {
5071
5091
  deep: !0,
5072
5092
  immediate: !0
5073
5093
  },
5094
+ scrollToId: { handler(e) {
5095
+ e != null && this.scrollToItem(e);
5096
+ } },
5074
5097
  tdItemsList: {
5075
5098
  handler(e, t) {
5076
5099
  e !== t && this.columns.some((e) => e.stickyLeft || e.stickyRight) && this.$nextTick(() => {
@@ -5083,12 +5106,12 @@ var ia = {
5083
5106
  },
5084
5107
  mounted() {
5085
5108
  if (this.localStorageItemName !== null) {
5086
- $i(this.localStorageItemName, this.getRefactoColumns(this.copyDefaultColumns())), ea(this.localStorageItemName, this.maxItemPerPage, "maxItemPerPage");
5087
- let e = ta(this.localStorageItemName);
5109
+ ea(this.localStorageItemName, this.getRefactoColumns(this.copyDefaultColumns())), ta(this.localStorageItemName, this.maxItemPerPage, "maxItemPerPage");
5110
+ let e = na(this.localStorageItemName);
5088
5111
  e && (this.columns = this.getColumnsById(e.columns, this.defaultColumns), this.maxItemsPerPage = e.maxItemPerPage);
5089
5112
  }
5090
5113
  if (this.localStorageMaxItemPerPageName !== null) {
5091
- let e = ta(this.localStorageMaxItemPerPageName);
5114
+ let e = na(this.localStorageMaxItemPerPageName);
5092
5115
  e && (this.maxItemsPerPage = e);
5093
5116
  }
5094
5117
  if (this.dynamicColumns && (this.columns = this.getColumnsById(this.dynamicColumns, this.defaultColumns)), this.ckSelectedItems && (this.selectedItems = this.ckSelectedItems), this.infiniteScroll) {
@@ -5114,16 +5137,16 @@ var ia = {
5114
5137
  },
5115
5138
  methods: {
5116
5139
  moment: v,
5117
- unixToDateString: zi,
5118
- unixToDateTimeString: Bi,
5119
- toCurrencyEUR: Ri,
5140
+ unixToDateString: Bi,
5141
+ unixToDateTimeString: Vi,
5142
+ toCurrencyEUR: zi,
5120
5143
  formatColumnValue(e, t) {
5121
5144
  let n = e[t.id];
5122
5145
  if (t.formatter && typeof t.formatter == "function") return t.formatter(n, e);
5123
5146
  if (t.type) switch (t.type) {
5124
- case "unixDate": return n ? zi(n) : "";
5125
- case "unixDateTime": return n ? Bi(n) : "";
5126
- case "currency": return n == null ? "" : Ri(n);
5147
+ case "unixDate": return n ? Bi(n) : "";
5148
+ case "unixDateTime": return n ? Vi(n) : "";
5149
+ case "currency": return n == null ? "" : zi(n);
5127
5150
  default: return n;
5128
5151
  }
5129
5152
  return n;
@@ -5250,14 +5273,14 @@ var ia = {
5250
5273
  if (!t) return !0;
5251
5274
  let n = `${e.id}_${t}`;
5252
5275
  if (this.normalizedItemsCache.has(n)) return this.normalizedItemsCache.get(n);
5253
- let r = this.visibleColumns.some((n) => {
5276
+ let r = this.visibleColumns.filter((e) => !e.noSearch).some((n) => {
5254
5277
  if (n.customSearch && typeof n.customSearch == "function") return n.customSearch(e, t);
5255
5278
  let r = e[n.id];
5256
5279
  if (n.type || n.formatter) {
5257
5280
  let r = this.formatColumnValue(e, n);
5258
- if (r && Li(r.toString()).includes(t)) return !0;
5281
+ if (r && Ri(r.toString()).includes(t)) return !0;
5259
5282
  }
5260
- return r && Li(r.toString()).includes(t);
5283
+ return r && Ri(r.toString()).includes(t);
5261
5284
  });
5262
5285
  return this.normalizedItemsCache.size > 1e3 && this.normalizedItemsCache.clear(), this.normalizedItemsCache.set(n, r), r;
5263
5286
  },
@@ -5290,10 +5313,10 @@ var ia = {
5290
5313
  this.$emit("changeSubject", e);
5291
5314
  },
5292
5315
  saveTablePreferences() {
5293
- this.localStorageItemName !== null && na(this.localStorageItemName, this.getRefactoColumns(this.columns), "columns"), this.dynamicColumns && this.$emit("update:dynamicColumns", this.getRefactoColumns(this.columns)), this.headerEditMode = !1, this.currentPage = this.previousCurrentPage, this.$emit("postSaveColumns");
5316
+ this.localStorageItemName !== null && ra(this.localStorageItemName, this.getRefactoColumns(this.columns), "columns"), this.dynamicColumns && this.$emit("update:dynamicColumns", this.getRefactoColumns(this.columns)), this.headerEditMode = !1, this.currentPage = this.previousCurrentPage, this.$emit("postSaveColumns");
5294
5317
  },
5295
5318
  resetTablePreferences() {
5296
- this.columns = this.copyDefaultColumns(), this.localStorageItemName !== null && $i(this.localStorageItemName, this.getRefactoColumns(this.columns)), this.dynamicColumns && this.$emit("update:dynamicColumns", this.getRefactoColumns(this.columns)), this.currentPage = this.previousCurrentPage, this.$emit("postResetColumns");
5319
+ this.columns = this.copyDefaultColumns(), this.localStorageItemName !== null && ea(this.localStorageItemName, this.getRefactoColumns(this.columns)), this.dynamicColumns && this.$emit("update:dynamicColumns", this.getRefactoColumns(this.columns)), this.currentPage = this.previousCurrentPage, this.$emit("postResetColumns");
5297
5320
  },
5298
5321
  editTablePreferences() {
5299
5322
  this.headerEditMode = !0, this.previousCurrentPage = this.currentPage, this.currentPage = 1;
@@ -5324,7 +5347,7 @@ var ia = {
5324
5347
  if (r.customSort) e = r.customSort(t, n, r.asc);
5325
5348
  else {
5326
5349
  let i = t[r.id], a = n[r.id];
5327
- e = Xi(i, a, r.asc);
5350
+ e = Zi(i, a, r.asc);
5328
5351
  }
5329
5352
  if (e !== 0) return e;
5330
5353
  }
@@ -5335,7 +5358,7 @@ var ia = {
5335
5358
  if (r.customSort) e = r.customSort(t, n, r.asc);
5336
5359
  else {
5337
5360
  let i = t[r.id], a = n[r.id];
5338
- e = Xi(i, a, r.asc);
5361
+ e = Zi(i, a, r.asc);
5339
5362
  }
5340
5363
  if (e !== 0) return e;
5341
5364
  }
@@ -5378,49 +5401,87 @@ var ia = {
5378
5401
  this.stickyColumnsUpdateTimeout && clearTimeout(this.stickyColumnsUpdateTimeout), this.stickyColumnsUpdateTimeout = setTimeout(() => {
5379
5402
  this.updateStickyColumns(), this.stickyColumnsUpdateTimeout = null;
5380
5403
  }, 50);
5404
+ },
5405
+ scrollToItem(e) {
5406
+ let t = this.sortedItems.findIndex((t) => t.id === e);
5407
+ if (t === -1) return;
5408
+ let n = this.sortedItems[t], r = `${this.tableId}-row-${n.id}`;
5409
+ this.$emit("scrolled", {
5410
+ value: e,
5411
+ index: t,
5412
+ id: n.id
5413
+ });
5414
+ let i = () => {
5415
+ this.scrollHighlightId = n.id, clearTimeout(this.$_highlightTimer), this.$_highlightTimer = setTimeout(() => {
5416
+ this.scrollHighlightId = null;
5417
+ }, 1800);
5418
+ }, a = () => {
5419
+ this.$nextTick(() => {
5420
+ let e = this.$refs.table?.querySelector(`[id="${r}"]`) || document.getElementById(r);
5421
+ if (e) if (i(), this.infiniteScroll && this.$refs.scrollContainer) {
5422
+ let t = this.$refs.scrollContainer, n = e.getBoundingClientRect(), r = t.getBoundingClientRect(), i = n.top - r.top - (r.height - n.height) / 2;
5423
+ t.scrollBy({
5424
+ top: i,
5425
+ behavior: "smooth"
5426
+ });
5427
+ } else e.scrollIntoView({
5428
+ behavior: "smooth",
5429
+ block: "center"
5430
+ });
5431
+ });
5432
+ };
5433
+ if (this.infiniteScroll) this.currentVisibleItems <= t && (this.currentVisibleItems = t + 1), a();
5434
+ else if (this.maxItemsPerPage !== -1) {
5435
+ let e = Math.ceil((t + 1) / this.maxItemsPerPage);
5436
+ this.currentPage !== e && (this.currentPage = e), a();
5437
+ } else a();
5381
5438
  }
5382
5439
  }
5383
- }, aa = {
5440
+ }, oa = {
5384
5441
  key: 0,
5385
5442
  class: "mb-3 text-center"
5386
- }, oa = {
5443
+ }, sa = {
5387
5444
  key: 1,
5388
5445
  class: "row mb-1 mx-auto"
5389
- }, sa = {
5446
+ }, ca = {
5390
5447
  key: 0,
5391
5448
  class: "btn btn-sm btn-outline-secondary cursor-default align-self-center bg-transparent text-secondary border-secondary d-flex justify-content-center align-items-center fs-7 px-2 py-0 rounded-1",
5392
5449
  style: { height: "20px" }
5393
- }, ca = { class: "text-nowrap" }, la = { class: "d-flex justify-content-center align-items-center fs-7 px-2 py-0 rounded-1 mx-2 user-select-none" }, ua = {
5450
+ }, la = { class: "text-nowrap" }, ua = { class: "d-flex justify-content-center align-items-center fs-7 px-2 py-0 rounded-1 mx-2 user-select-none" }, da = {
5394
5451
  key: 0,
5395
5452
  class: "text-nowrap",
5396
5453
  style: { height: "20px" }
5397
- }, da = ["value"], Z = {
5454
+ }, Z = ["value"], fa = {
5398
5455
  key: 1,
5399
5456
  class: "d-flex align-items-center text-nowrap"
5400
- }, fa = {
5457
+ }, pa = {
5401
5458
  key: 0,
5402
5459
  class: "d-flex ms-2"
5403
- }, pa = { class: "row mx-auto mb-3 rounded-0" }, ma = ["id"], Q = ["id"], ha = [
5460
+ }, ma = ["title"], Q = { class: "badge bg-info fs-6" }, ha = { class: "row mx-auto mb-3 rounded-0" }, ga = ["id"], _a = ["id"], va = [
5404
5461
  "id",
5405
5462
  "onDragstart",
5406
5463
  "onDragend"
5407
- ], ga = { class: "d-flex flex-column align-items-center" }, _a = {
5464
+ ], ya = { class: "d-flex flex-column align-items-center" }, ba = {
5408
5465
  key: 0,
5409
5466
  class: "mx-auto my-auto mb-2 mt-2 hoverable d-inline-block"
5410
- }, va = { class: "d-inline-flex text-nowrap" }, ya = {
5467
+ }, xa = { class: "d-inline-flex text-nowrap" }, Sa = {
5411
5468
  key: 0,
5412
5469
  class: "ms-2 float-end"
5413
- }, ba = {
5470
+ }, Ca = {
5414
5471
  key: 1,
5415
5472
  class: "ms-2"
5416
- }, xa = { key: 1 }, Sa = ["id"], Ca = ["id"], wa = { class: "d-inline-flex text-nowrap" }, Ta = {
5473
+ }, wa = { key: 1 }, Ta = ["id"], Ea = ["id"], Da = { class: "d-inline-flex text-nowrap" }, Oa = {
5417
5474
  key: 1,
5418
5475
  class: "ms-2 hoverable"
5419
- }, Ea = { key: 0 }, Da = ["colspan"], Oa = ["id"], ka = ["onClick", "onContextmenu"], Aa = ["data-column-id", "onClick"], ja = ["id", "value"], Ma = ["data-column-id"], Na = { class: "row ms-auto mb-2" }, Pa = { class: "m-0 pagination pagination-sm" }, Fa = { class: "page-item hoverable" }, Ia = { class: "page-item hoverable" }, La = ["onClick"], Ra = { class: "page-item hoverable" }, za = { class: "page-item hoverable" }, Ba = ["id"];
5420
- function Va(t, c, l, ne, _, v) {
5476
+ }, ka = { key: 0 }, Aa = ["colspan"], ja = ["id"], Ma = [
5477
+ "id",
5478
+ "onClick",
5479
+ "onContextmenu"
5480
+ ], Na = ["data-column-id", "onClick"], Pa = ["id", "value"], Fa = ["data-column-id"], Ia = { class: "row ms-auto mb-2" }, La = { class: "m-0 pagination pagination-sm" }, Ra = { class: "page-item hoverable" }, za = { class: "page-item hoverable" }, Ba = ["onClick"], Va = { class: "page-item hoverable" }, Ha = { class: "page-item hoverable" }, Ua = ["id"];
5481
+ function Wa(t, c, l, ne, _, v) {
5421
5482
  let y = m("font-awesome-icon"), oe = m("vue-draggable-next");
5422
5483
  return f(), i(e, null, [
5423
- l.lineEditMode ? (f(), i("div", aa, [a("button", {
5484
+ l.lineEditMode ? (f(), i("div", oa, [a("button", {
5424
5485
  type: "button",
5425
5486
  class: "btn btn-success rounded-5 m-0 p-0",
5426
5487
  style: {
@@ -5432,7 +5493,7 @@ function Va(t, c, l, ne, _, v) {
5432
5493
  icon: "fa-solid fa-plus",
5433
5494
  size: "xl"
5434
5495
  })])])) : r("", !0),
5435
- l.showLineNumber || l.showModifyColumnsBtn || l.showMaxItemPerPageBtn || l.deepSorts ? (f(), i("div", oa, [a("div", { class: u(["d-flex justify-content-start p-0", l.deepSorts && _.deepSortsList.length > 0 && l.showModifyColumnsBtn ? "col-12 col-sm-8 col-lg-9 col-xl-10" : "col"]) }, [l.showLineNumber ? (f(), i("div", sa, [a("b", ca, h(v.showItemsLinesNumber + " / " + v.filtereditems.length), 1), c[20] ||= a("span", { class: "ms-1" }, "lignes", -1)])) : r("", !0), l.deepSorts && _.deepSortsList.length > 0 ? (f(), i("div", {
5496
+ l.showLineNumber || l.showModifyColumnsBtn || l.showMaxItemPerPageBtn || l.deepSorts ? (f(), i("div", sa, [a("div", { class: u(["d-flex justify-content-start p-0", l.deepSorts && _.deepSortsList.length > 0 && l.showModifyColumnsBtn ? "col-12 col-sm-8 col-lg-9 col-xl-10" : "col"]) }, [l.showLineNumber ? (f(), i("div", ca, [a("b", la, h(v.showItemsLinesNumber + " / " + v.filtereditems.length), 1), c[20] ||= a("span", { class: "ms-1" }, "lignes", -1)])) : r("", !0), l.deepSorts && _.deepSortsList.length > 0 ? (f(), i("div", {
5436
5497
  key: 1,
5437
5498
  class: u(["d-flex align-items-center flex-wrap", { "ms-4": l.showLineNumber }])
5438
5499
  }, [c[21] ||= a("span", { class: "me-1 text-secondary h-auto fs-7 mb-1 mb-lg-0" }, "Tri :", -1), s(oe, {
@@ -5453,7 +5514,7 @@ function Va(t, c, l, ne, _, v) {
5453
5514
  icon: "fa-solid fa-xmark",
5454
5515
  onClick: (e) => _.deepSortsList.splice(t, 1)
5455
5516
  }, null, 8, ["onClick"]),
5456
- a("div", la, [a("span", null, h(e.libelle), 1)]),
5517
+ a("div", ua, [a("span", null, h(e.libelle), 1)]),
5457
5518
  s(y, {
5458
5519
  class: "hoverable",
5459
5520
  icon: e.asc ? "fa-solid fa-arrow-down-short-wide" : "fa-solid fa-arrow-down-wide-short",
@@ -5464,24 +5525,24 @@ function Va(t, c, l, ne, _, v) {
5464
5525
  }, 8, ["modelValue"])], 2)) : r("", !0)], 2), l.showMaxItemPerPageBtn || l.showModifyColumnsBtn ? (f(), i("div", {
5465
5526
  key: 0,
5466
5527
  class: u(["d-flex align-items-center justify-content-end p-0", l.deepSorts && _.deepSortsList.length > 0 ? "col-12 col-sm-4 col-lg-3 col-xl-2 mt-1 mt-sm-0" : "col"])
5467
- }, [l.showMaxItemPerPageBtn && !_.headerEditMode ? (f(), i("div", ua, [l.maxItemPerPageList.length > 0 ? ie((f(), i("select", {
5528
+ }, [l.showMaxItemPerPageBtn && !_.headerEditMode ? (f(), i("div", da, [l.maxItemPerPageList.length > 0 ? ie((f(), i("select", {
5468
5529
  key: 0,
5469
5530
  "onUpdate:modelValue": c[2] ||= (e) => _.maxItemsPerPage = e,
5470
5531
  class: "form-select d-flex justify-content-center align-items-center ms-auto py-0 rounded-3 select-max-item-per-page"
5471
5532
  }, [(f(!0), i(e, null, p(l.maxItemPerPageList, (e) => (f(), i("option", {
5472
5533
  key: e.value,
5473
5534
  value: e.value
5474
- }, h(e.text), 9, da))), 128))], 512)), [[g, _.maxItemsPerPage]]) : r("", !0)])) : r("", !0), l.showModifyColumnsBtn ? (f(), i("div", Z, [_.headerEditMode ? (f(), i("div", fa, [a("button", {
5475
- id: "btn-save-table",
5476
- class: "btn btn-sm btn-success d-flex justify-content-center align-items-center ms-auto me-2 px-2 py-0 rounded-3",
5477
- type: "button",
5478
- onClick: c[3] ||= (...e) => v.saveTablePreferences && v.saveTablePreferences(...e)
5479
- }, " Sauvegarder "), a("button", {
5535
+ }, h(e.text), 9, Z))), 128))], 512)), [[g, _.maxItemsPerPage]]) : r("", !0)])) : r("", !0), l.showModifyColumnsBtn ? (f(), i("div", fa, [_.headerEditMode ? (f(), i("div", pa, [a("button", {
5480
5536
  id: "btn-reset-table",
5481
- class: "btn btn-sm btn-outline-danger d-flex justify-content-center align-items-center px-2 py-0 rounded-3",
5537
+ class: "btn btn-sm btn-outline-danger d-flex justify-content-center align-items-center ms-auto me-2 px-2 py-0 rounded-3",
5538
+ type: "button",
5539
+ onClick: c[3] ||= (...e) => v.resetTablePreferences && v.resetTablePreferences(...e)
5540
+ }, " Réinitialiser le tableau "), a("button", {
5541
+ id: "btn-save-table",
5542
+ class: "btn btn-sm btn-success d-flex justify-content-center align-items-center px-2 py-0 rounded-3",
5482
5543
  type: "button",
5483
- onClick: c[4] ||= (...e) => v.resetTablePreferences && v.resetTablePreferences(...e)
5484
- }, " Réinitialiser le tableau ")])) : (f(), i("button", {
5544
+ onClick: c[4] ||= (...e) => v.saveTablePreferences && v.saveTablePreferences(...e)
5545
+ }, " Sauvegarder ")])) : (f(), i("button", {
5485
5546
  key: 1,
5486
5547
  id: "btn-edit-table",
5487
5548
  class: "btn btn-sm btn-outline-secondary d-flex justify-content-center align-items-center fs-7 px-2 py-0 rounded-3 ms-2",
@@ -5489,7 +5550,15 @@ function Va(t, c, l, ne, _, v) {
5489
5550
  type: "button",
5490
5551
  onClick: c[5] ||= (...e) => v.editTablePreferences && v.editTablePreferences(...e)
5491
5552
  }, " Modifier colonnes "))])) : r("", !0)], 2)) : r("", !0)])) : r("", !0),
5492
- a("div", pa, [a("div", {
5553
+ _.headerEditMode ? (f(), i("div", {
5554
+ key: 2,
5555
+ title: `Déplacez les colonnes pour les réorganiser et utilisez l'icône œil pour les afficher ou les masquer. Seules ${l.editModeMaxRows} lignes sont affichées pour faciliter les modifications.`,
5556
+ class: "d-flex justify-content-center align-items-center mb-3"
5557
+ }, [a("div", Q, [s(y, {
5558
+ icon: "fa-solid fa-circle-info",
5559
+ class: "me-2"
5560
+ }), c[22] ||= o(" Vous êtes entrain d'éditer l'affichage du tableau ", -1)])], 8, ma)) : r("", !0),
5561
+ a("div", ha, [a("div", {
5493
5562
  ref: "scrollContainer",
5494
5563
  class: u(["col-12 p-0 overflow-x-auto mb-2", {
5495
5564
  border: l.infiniteScroll,
@@ -5505,7 +5574,11 @@ function Va(t, c, l, ne, _, v) {
5505
5574
  id: l.tableId,
5506
5575
  ref: "table",
5507
5576
  key: _.forceTableUpdateIndex,
5508
- class: u(["table table-striped table-hover table-responsive align-middle border-1 border-top border-bottom position-relative m-0", [l.border ? "table-bordered" : "table-borderless", l.tableSm ? "table-sm" : ""]]),
5577
+ class: u(["table table-striped table-responsive align-middle border-1 border-top border-bottom position-relative m-0", [
5578
+ l.border ? "table-bordered" : "table-borderless",
5579
+ l.tableSm ? "table-sm" : "",
5580
+ l.clickable && !_.headerEditMode ? "table-hover cursor-pointer" : ""
5581
+ ]]),
5509
5582
  style: d([{
5510
5583
  "border-collapse": "separate",
5511
5584
  "border-spacing": "0"
@@ -5540,7 +5613,7 @@ function Va(t, c, l, ne, _, v) {
5540
5613
  class: "form-check-input",
5541
5614
  type: "checkbox",
5542
5615
  onClick: c[7] ||= ae((...e) => v.toggleAllCheckBox && v.toggleAllCheckBox(...e), ["stop"])
5543
- }, null, 512), [[te, _.checkAllCheckBox]])], 10, Q)) : (o.show || _.headerEditMode) && (!o.onlyOnEditMode || l.lineEditMode) ? (f(), i("th", {
5616
+ }, null, 512), [[te, _.checkAllCheckBox]])], 10, _a)) : (o.show || _.headerEditMode) && (!o.onlyOnEditMode || l.lineEditMode) ? (f(), i("th", {
5544
5617
  key: 1,
5545
5618
  id: `${l.tableId}-${o.id}-th-${d}`,
5546
5619
  scope: "col",
@@ -5554,7 +5627,7 @@ function Va(t, c, l, ne, _, v) {
5554
5627
  ]]),
5555
5628
  onDragstart: (e) => o.isDragging = !0,
5556
5629
  onDragend: (e) => o.isDragging = !1
5557
- }, [a("div", ga, [_.headerEditMode && !o.keepShow ? (f(), i("div", _a, [o.show ? (f(), n(y, {
5630
+ }, [a("div", ya, [_.headerEditMode && !o.keepShow ? (f(), i("div", ba, [o.show ? (f(), n(y, {
5558
5631
  key: 0,
5559
5632
  icon: "fa-solid fa-eye",
5560
5633
  class: "fa-lg",
@@ -5564,21 +5637,21 @@ function Va(t, c, l, ne, _, v) {
5564
5637
  icon: "fa-solid fa-eye-slash",
5565
5638
  class: "fa-lg",
5566
5639
  onClick: (e) => o.show = !0
5567
- }, null, 8, ["onClick"]))])) : r("", !0), a("div", va, [ee(t.$slots, "tableHeaderTh", { header: o }, void 0, !0), o.isSortable && !l.deepSorts ? (f(), i("div", ya, [s(y, {
5640
+ }, null, 8, ["onClick"]))])) : r("", !0), a("div", xa, [ee(t.$slots, "tableHeaderTh", { header: o }, void 0, !0), o.isSortable && !l.deepSorts ? (f(), i("div", Sa, [s(y, {
5568
5641
  icon: _.sortKey !== o.id || _.sortKey === o.id && !_.sortAsc ? "fa-solid fa-arrow-down-wide-short" : "fa-solid fa-arrow-down-short-wide",
5569
5642
  class: "hoverable",
5570
5643
  onClick: (e) => v.updateCurrentSort(o)
5571
- }, null, 8, ["icon", "onClick"])])) : l.deepSorts && !_.deepSortsList.some((e) => e.id === o.id) && o.isSortable ? (f(), i("div", ba, [s(y, {
5644
+ }, null, 8, ["icon", "onClick"])])) : l.deepSorts && !_.deepSortsList.some((e) => e.id === o.id) && o.isSortable ? (f(), i("div", Ca, [s(y, {
5572
5645
  icon: "fa-solid fa-filter",
5573
5646
  onClick: (e) => v.addDeepSort(o)
5574
- }, null, 8, ["onClick"])])) : r("", !0)])])], 42, ha)) : r("", !0)], 64))), 128))]),
5647
+ }, null, 8, ["onClick"])])) : r("", !0)])])], 42, va)) : r("", !0)], 64))), 128))]),
5575
5648
  _: 3
5576
5649
  }, 8, [
5577
5650
  "modelValue",
5578
5651
  "ghost-class",
5579
5652
  "drag-class",
5580
5653
  "move"
5581
- ])) : (f(), i("tr", xa, [(f(!0), i(e, null, p(_.columns, (n, o) => (f(), i(e, { key: n.id }, [n.id === "checkBox" ? (f(), i("th", {
5654
+ ])) : (f(), i("tr", wa, [(f(!0), i(e, null, p(_.columns, (n, o) => (f(), i(e, { key: n.id }, [n.id === "checkBox" ? (f(), i("th", {
5582
5655
  key: 0,
5583
5656
  id: `${l.tableId}-${n.id}-th-${o}`,
5584
5657
  class: u(["text-center", [
@@ -5595,7 +5668,7 @@ function Va(t, c, l, ne, _, v) {
5595
5668
  class: "form-check-input",
5596
5669
  type: "checkbox",
5597
5670
  onClick: c[11] ||= ae((...e) => v.toggleAllCheckBox && v.toggleAllCheckBox(...e), ["stop"])
5598
- }, null, 512), [[te, _.checkAllCheckBox]])], 10, Sa)) : n.show && (!n.onlyOnEditMode || l.lineEditMode) ? (f(), i("th", {
5671
+ }, null, 512), [[te, _.checkAllCheckBox]])], 10, Ta)) : n.show && (!n.onlyOnEditMode || l.lineEditMode) ? (f(), i("th", {
5599
5672
  key: 1,
5600
5673
  id: `${l.tableId}-${n.id}-th-${o}`,
5601
5674
  scope: "col",
@@ -5606,16 +5679,16 @@ function Va(t, c, l, ne, _, v) {
5606
5679
  l.headerTextColor,
5607
5680
  l.infiniteScroll ? "sticky-top" : ""
5608
5681
  ]])
5609
- }, [a("div", wa, [ee(t.$slots, "tableHeaderTh", { header: n }, void 0, !0), n.isSortable && !l.deepSorts ? (f(), i("div", {
5682
+ }, [a("div", Da, [ee(t.$slots, "tableHeaderTh", { header: n }, void 0, !0), n.isSortable && !l.deepSorts ? (f(), i("div", {
5610
5683
  key: 0,
5611
5684
  class: u(["ms-2 float-end hoverable", { "opacity-50": _.sortKey !== n.id }])
5612
5685
  }, [s(y, {
5613
5686
  icon: _.sortKey !== n.id || _.sortKey === n.id && !_.sortAsc ? "fa-solid fa-arrow-down-wide-short" : "fa-solid fa-arrow-down-short-wide",
5614
5687
  onClick: (e) => v.updateCurrentSort(n)
5615
- }, null, 8, ["icon", "onClick"])], 2)) : l.deepSorts && !_.deepSortsList.some((e) => e.id === n.id) && n.isSortable ? (f(), i("div", Ta, [s(y, {
5688
+ }, null, 8, ["icon", "onClick"])], 2)) : l.deepSorts && !_.deepSortsList.some((e) => e.id === n.id) && n.isSortable ? (f(), i("div", Oa, [s(y, {
5616
5689
  icon: "fa-solid fa-filter",
5617
5690
  onClick: (e) => v.addDeepSort(n)
5618
- }, null, 8, ["onClick"])])) : r("", !0)])], 10, Ca)) : r("", !0)], 64))), 128))]))]), a("tbody", null, [v.showeditems?.length === 0 ? (f(), i("tr", Ea, [a("th", {
5691
+ }, null, 8, ["onClick"])])) : r("", !0)])], 10, Ea)) : r("", !0)], 64))), 128))]))]), a("tbody", null, [v.showeditems?.length === 0 ? (f(), i("tr", ka, [a("th", {
5619
5692
  colspan: _.columns.length,
5620
5693
  class: "text-center",
5621
5694
  style: {
@@ -5625,11 +5698,13 @@ function Va(t, c, l, ne, _, v) {
5625
5698
  }, [a("span", {
5626
5699
  id: `${l.tableId}-no-value`,
5627
5700
  class: "text-danger fs-5"
5628
- }, h(l.noValueText), 9, Oa)], 8, Da)])) : (f(!0), i(e, { key: 1 }, p(v.showeditems, (n, s) => (f(), i("tr", {
5701
+ }, h(l.noValueText), 9, ja)], 8, Aa)])) : (f(!0), i(e, { key: 1 }, p(v.showeditems, (n, s) => (f(), i("tr", {
5702
+ id: `${l.tableId}-row-${n.id}`,
5629
5703
  key: n.id,
5630
5704
  class: u([{
5631
5705
  hoverable: l.clickable && !_.headerEditMode,
5632
- "hoverable-no-drop": l.clickable && _.headerEditMode
5706
+ "hoverable-no-drop": l.clickable && _.headerEditMode,
5707
+ "scroll-to-highlight": n.id === _.scrollHighlightId
5633
5708
  }, l.trFontSize]),
5634
5709
  style: d({ height: l.trHeightPx + "px" }),
5635
5710
  onClick: (e) => l.clickable && !_.headerEditMode ? v.selectSubject(n) : null,
@@ -5651,7 +5726,7 @@ function Va(t, c, l, ne, _, v) {
5651
5726
  class: "form-check-input hoverable",
5652
5727
  value: n.id,
5653
5728
  onClick: c[14] ||= ae(() => {}, ["stop"])
5654
- }, null, 8, ja), [[te, _.selectedItems]])], 10, Aa)) : (d.show || _.headerEditMode) && (!d.onlyOnEditMode || l.lineEditMode) ? (f(), i("td", {
5729
+ }, null, 8, Pa), [[te, _.selectedItems]])], 10, Na)) : (d.show || _.headerEditMode) && (!d.onlyOnEditMode || l.lineEditMode) ? (f(), i("td", {
5655
5730
  key: 1,
5656
5731
  "data-column-id": d.id,
5657
5732
  class: u([[
@@ -5666,20 +5741,20 @@ function Va(t, c, l, ne, _, v) {
5666
5741
  header: d,
5667
5742
  item: n,
5668
5743
  formattedValue: v.formatColumnValue(n, d)
5669
- }, () => [o(h(v.formatColumnValue(n, d)), 1)], !0)], 10, Ma)) : r("", !0)], 64))), 128))], 46, ka))), 128))])], 14, ma))], 38)]),
5670
- a("div", Na, [!l.infiniteScroll && _.totalPages && _.totalPages > 1 ? (f(), i("div", {
5744
+ }, () => [o(h(v.formatColumnValue(n, d)), 1)], !0)], 10, Fa)) : r("", !0)], 64))), 128))], 46, Ma))), 128))])], 14, ga))], 38)]),
5745
+ a("div", Ia, [!l.infiniteScroll && _.totalPages && _.totalPages > 1 ? (f(), i("div", {
5671
5746
  key: 0,
5672
5747
  class: u(["col p-0 me-3 d-flex", {
5673
5748
  "justify-content-center": l.paginationPosition === "center",
5674
5749
  "justify-content-end": l.paginationPosition === "right",
5675
5750
  "justify-content-start": l.paginationPosition === "left"
5676
5751
  }])
5677
- }, [a("ul", Pa, [
5678
- a("li", Fa, [a("a", {
5752
+ }, [a("ul", La, [
5753
+ a("li", Ra, [a("a", {
5679
5754
  class: u(["page-link", { disabled: _.currentPage === 1 }]),
5680
5755
  onClick: c[16] ||= (e) => _.currentPage = 1
5681
5756
  }, " « ", 2)]),
5682
- a("li", Ia, [a("a", {
5757
+ a("li", za, [a("a", {
5683
5758
  class: u(["page-link", { disabled: _.currentPage === 1 }]),
5684
5759
  onClick: c[17] ||= (e) => --_.currentPage
5685
5760
  }, " < ", 2)]),
@@ -5689,12 +5764,12 @@ function Va(t, c, l, ne, _, v) {
5689
5764
  }, [a("a", {
5690
5765
  class: "page-link",
5691
5766
  onClick: (t) => _.currentPage = e
5692
- }, h(e), 9, La)], 2))), 128)),
5693
- a("li", Ra, [a("a", {
5767
+ }, h(e), 9, Ba)], 2))), 128)),
5768
+ a("li", Va, [a("a", {
5694
5769
  class: u(["page-link", { disabled: _.currentPage === _.totalPages }]),
5695
5770
  onClick: c[18] ||= (e) => _.currentPage += 1
5696
5771
  }, " > ", 2)]),
5697
- a("li", za, [a("a", {
5772
+ a("li", Ha, [a("a", {
5698
5773
  class: u(["page-link", { disabled: _.currentPage === _.totalPages }]),
5699
5774
  onClick: c[19] ||= (e) => _.currentPage = _.totalPages
5700
5775
  }, " » ", 2)])
@@ -5702,9 +5777,9 @@ function Va(t, c, l, ne, _, v) {
5702
5777
  key: 1,
5703
5778
  id: `${l.tableId}-bottom-scrollbar`,
5704
5779
  class: u(["bottom-scrollbar", { visible: _.showScrollbar }])
5705
- }, [...c[22] ||= [a("div", { class: "scrollbar-content" }, null, -1)]], 10, Ba)) : r("", !0)])
5780
+ }, [...c[23] ||= [a("div", { class: "scrollbar-content" }, null, -1)]], 10, Ua)) : r("", !0)])
5706
5781
  ], 64);
5707
5782
  }
5708
- var Ha = /* @__PURE__ */ ra(ia, [["render", Va], ["__scopeId", "data-v-f3f9f7af"]]), Ua = Ha;
5783
+ var Ga = /* @__PURE__ */ ia(aa, [["render", Wa], ["__scopeId", "data-v-41854020"]]), Ka = Ga;
5709
5784
  //#endregion
5710
- export { Ha as AmsomTableDraggable, Ua as default };
5785
+ export { Ga as AmsomTableDraggable, Ka as default };