@amsom-habitat/amsom-table 4.3.2 → 4.3.4
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/amsom-table.js +87 -83
- package/dist/amsom-table.umd.cjs +4 -4
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/amsom-table.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as oz, computed as W1, watch as Jn, h as Ub, resolveComponent as Wp, createElementBlock as V, openBlock as H, Fragment as s1, createCommentVNode as F0, createElementVNode as p0, createVNode as q2, normalizeClass as
|
|
1
|
+
import { defineComponent as oz, computed as W1, watch as Jn, h as Ub, resolveComponent as Wp, createElementBlock as V, openBlock as H, Fragment as s1, createCommentVNode as F0, createElementVNode as p0, createVNode as q2, normalizeClass as w0, toDisplayString as yM, withCtx as hO, renderList as y2, withDirectives as Nb, vModelSelect as Zn, normalizeStyle as jz, createBlock as Gz, withModifiers as Q2, vModelCheckbox as Vz, renderSlot as Kz } from "vue";
|
|
2
2
|
/*!
|
|
3
3
|
* Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
|
|
4
4
|
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
|
@@ -3154,21 +3154,21 @@ const lr = {
|
|
|
3154
3154
|
iconName: "trash",
|
|
3155
3155
|
icon: [448, 512, [], "f1f8", "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"]
|
|
3156
3156
|
}, Lr = {
|
|
3157
|
+
prefix: "fas",
|
|
3158
|
+
iconName: "arrow-down-short-wide",
|
|
3159
|
+
icon: [576, 512, ["sort-amount-desc", "sort-amount-down-alt"], "f884", "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"]
|
|
3160
|
+
}, mr = {
|
|
3157
3161
|
prefix: "fas",
|
|
3158
3162
|
iconName: "greater-than",
|
|
3159
3163
|
icon: [384, 512, [62769], "3e", "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"]
|
|
3160
|
-
},
|
|
3164
|
+
}, Nr = {
|
|
3161
3165
|
prefix: "fas",
|
|
3162
3166
|
iconName: "plus",
|
|
3163
3167
|
icon: [448, 512, [10133, 61543, "add"], "2b", "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"]
|
|
3164
|
-
},
|
|
3168
|
+
}, Br = {
|
|
3165
3169
|
prefix: "fas",
|
|
3166
3170
|
iconName: "xmark",
|
|
3167
3171
|
icon: [384, 512, [128473, 10005, 10006, 10060, 215, "close", "multiply", "remove", "times"], "f00d", "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"]
|
|
3168
|
-
}, Br = {
|
|
3169
|
-
prefix: "fas",
|
|
3170
|
-
iconName: "arrow-up-short-wide",
|
|
3171
|
-
icon: [576, 512, ["sort-amount-up-alt"], "f885", "M151.6 42.4C145.5 35.8 137 32 128 32s-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 146.3 96 448c0 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 32c-17.7 0-32 14.3-32 32s14.3 32 32 32l32 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-32 0zm0 128c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0zm0 128c-17.7 0-32 14.3-32 32s14.3 32 32 32l160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-160 0zm0 128c-17.7 0-32 14.3-32 32s14.3 32 32 32l224 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-224 0z"]
|
|
3172
3172
|
};
|
|
3173
3173
|
/*!
|
|
3174
3174
|
* vue-draggable-next v2.2.0
|
|
@@ -4292,7 +4292,7 @@ I.create = function(M, b) {
|
|
|
4292
4292
|
return new I(M, b);
|
|
4293
4293
|
};
|
|
4294
4294
|
I.version = Tr;
|
|
4295
|
-
var
|
|
4295
|
+
var k0 = [], wM, Ep, Pp = !1, ep, tp, $b, kM;
|
|
4296
4296
|
function $r() {
|
|
4297
4297
|
function M() {
|
|
4298
4298
|
this.defaults = {
|
|
@@ -4318,7 +4318,7 @@ function $r() {
|
|
|
4318
4318
|
this.sortable.nativeDraggable ? O0(document, "dragover", this._handleAutoScroll) : (O0(document, "pointermove", this._handleFallbackAutoScroll), O0(document, "touchmove", this._handleFallbackAutoScroll), O0(document, "mousemove", this._handleFallbackAutoScroll)), co(), xb(), kr();
|
|
4319
4319
|
},
|
|
4320
4320
|
nulling: function() {
|
|
4321
|
-
$b = Ep = wM = Pp = kM = ep = tp = null,
|
|
4321
|
+
$b = Ep = wM = Pp = kM = ep = tp = null, k0.length = 0;
|
|
4322
4322
|
},
|
|
4323
4323
|
_handleFallbackAutoScroll: function(z) {
|
|
4324
4324
|
this._handleAutoScroll(z, !0);
|
|
@@ -4346,9 +4346,9 @@ function $r() {
|
|
|
4346
4346
|
});
|
|
4347
4347
|
}
|
|
4348
4348
|
function xb() {
|
|
4349
|
-
|
|
4349
|
+
k0.forEach(function(M) {
|
|
4350
4350
|
clearInterval(M.pid);
|
|
4351
|
-
}),
|
|
4351
|
+
}), k0 = [];
|
|
4352
4352
|
}
|
|
4353
4353
|
function co() {
|
|
4354
4354
|
clearInterval(kM);
|
|
@@ -4362,13 +4362,13 @@ var Ap = tc(function(M, b, z, p) {
|
|
|
4362
4362
|
var E = N, k = C0(E), U = k.top, T = k.bottom, v = k.left, X = k.right, j = k.width, o0 = k.height, n0 = void 0, N0 = void 0, L0 = E.scrollWidth, T0 = E.scrollHeight, P0 = x(E), _0 = E.scrollLeft, $0 = E.scrollTop;
|
|
4363
4363
|
E === q ? (n0 = j < L0 && (P0.overflowX === "auto" || P0.overflowX === "scroll" || P0.overflowX === "visible"), N0 = o0 < T0 && (P0.overflowY === "auto" || P0.overflowY === "scroll" || P0.overflowY === "visible")) : (n0 = j < L0 && (P0.overflowX === "auto" || P0.overflowX === "scroll"), N0 = o0 < T0 && (P0.overflowY === "auto" || P0.overflowY === "scroll"));
|
|
4364
4364
|
var L1 = n0 && (Math.abs(X - o) <= n && _0 + j < L0) - (Math.abs(v - o) <= n && !!_0), B0 = N0 && (Math.abs(T - e) <= n && $0 + o0 < T0) - (Math.abs(U - e) <= n && !!$0);
|
|
4365
|
-
if (!
|
|
4365
|
+
if (!k0[W])
|
|
4366
4366
|
for (var G0 = 0; G0 <= W; G0++)
|
|
4367
|
-
|
|
4368
|
-
(
|
|
4367
|
+
k0[G0] || (k0[G0] = {});
|
|
4368
|
+
(k0[W].vx != L1 || k0[W].vy != B0 || k0[W].el !== E) && (k0[W].el = E, k0[W].vx = L1, k0[W].vy = B0, clearInterval(k0[W].pid), (L1 != 0 || B0 != 0) && (i = !0, k0[W].pid = setInterval((function() {
|
|
4369
4369
|
p && this.layer === 0 && I.active._onTouchMove($b);
|
|
4370
|
-
var e1 =
|
|
4371
|
-
typeof l == "function" && l.call(I.dragged.parentNode[O1], m0, e1, M, $b,
|
|
4370
|
+
var e1 = k0[this.layer].vy ? k0[this.layer].vy * r : 0, m0 = k0[this.layer].vx ? k0[this.layer].vx * r : 0;
|
|
4371
|
+
typeof l == "function" && l.call(I.dragged.parentNode[O1], m0, e1, M, $b, k0[this.layer].el) !== "continue" || Ac(k0[this.layer].el, m0, e1);
|
|
4372
4372
|
}).bind({
|
|
4373
4373
|
layer: W
|
|
4374
4374
|
}), 24))), W++;
|
|
@@ -8863,7 +8863,7 @@ Arguments: ` + Array.prototype.slice.call(A).join("") + `
|
|
|
8863
8863
|
function ib(O) {
|
|
8864
8864
|
return O % 4 === 0 && O % 100 !== 0 || O % 400 === 0;
|
|
8865
8865
|
}
|
|
8866
|
-
var Y0 = 0, P1 = 1, B1 = 2,
|
|
8866
|
+
var Y0 = 0, P1 = 1, B1 = 2, D0 = 3, i1 = 4, x1 = 5, B2 = 6, ue = 7, Re = 8;
|
|
8867
8867
|
D("Y", 0, 0, function() {
|
|
8868
8868
|
var O = this.year();
|
|
8869
8869
|
return O <= 9999 ? M1(O, 4) : "+" + O;
|
|
@@ -9271,25 +9271,25 @@ Arguments: ` + Array.prototype.slice.call(A).join("") + `
|
|
|
9271
9271
|
function G3(O, c) {
|
|
9272
9272
|
return c._meridiemParse;
|
|
9273
9273
|
}
|
|
9274
|
-
_("a", G3), _("A", G3), _("H", s0, Bz), _("h", s0, F2), _("k", s0, F2), _("HH", s0, b1), _("hh", s0, b1), _("kk", s0, b1), _("hmm", k3), _("hmmss", D3), _("Hmm", k3), _("Hmmss", D3), r0(["H", "HH"],
|
|
9274
|
+
_("a", G3), _("A", G3), _("H", s0, Bz), _("h", s0, F2), _("k", s0, F2), _("HH", s0, b1), _("hh", s0, b1), _("kk", s0, b1), _("hmm", k3), _("hmmss", D3), _("Hmm", k3), _("Hmmss", D3), r0(["H", "HH"], D0), r0(["k", "kk"], function(O, c, t) {
|
|
9275
9275
|
var A = Q(O);
|
|
9276
|
-
c[
|
|
9276
|
+
c[D0] = A === 24 ? 0 : A;
|
|
9277
9277
|
}), r0(["a", "A"], function(O, c, t) {
|
|
9278
9278
|
t._isPm = t._locale.isPM(O), t._meridiem = O;
|
|
9279
9279
|
}), r0(["h", "hh"], function(O, c, t) {
|
|
9280
|
-
c[
|
|
9280
|
+
c[D0] = Q(O), T(t).bigHour = !0;
|
|
9281
9281
|
}), r0("hmm", function(O, c, t) {
|
|
9282
9282
|
var A = O.length - 2;
|
|
9283
|
-
c[
|
|
9283
|
+
c[D0] = Q(O.substr(0, A)), c[i1] = Q(O.substr(A)), T(t).bigHour = !0;
|
|
9284
9284
|
}), r0("hmmss", function(O, c, t) {
|
|
9285
9285
|
var A = O.length - 4, a = O.length - 2;
|
|
9286
|
-
c[
|
|
9286
|
+
c[D0] = Q(O.substr(0, A)), c[i1] = Q(O.substr(A, 2)), c[x1] = Q(O.substr(a)), T(t).bigHour = !0;
|
|
9287
9287
|
}), r0("Hmm", function(O, c, t) {
|
|
9288
9288
|
var A = O.length - 2;
|
|
9289
|
-
c[
|
|
9289
|
+
c[D0] = Q(O.substr(0, A)), c[i1] = Q(O.substr(A));
|
|
9290
9290
|
}), r0("Hmmss", function(O, c, t) {
|
|
9291
9291
|
var A = O.length - 4, a = O.length - 2;
|
|
9292
|
-
c[
|
|
9292
|
+
c[D0] = Q(O.substr(0, A)), c[i1] = Q(O.substr(A, 2)), c[x1] = Q(O.substr(a));
|
|
9293
9293
|
});
|
|
9294
9294
|
function tt(O) {
|
|
9295
9295
|
return (O + "").toLowerCase().charAt(0) === "p";
|
|
@@ -9403,7 +9403,7 @@ Arguments: ` + Array.prototype.slice.call(A).join("") + `
|
|
|
9403
9403
|
}
|
|
9404
9404
|
function _z(O) {
|
|
9405
9405
|
var c, t = O._a;
|
|
9406
|
-
return t && T(O).overflow === -2 && (c = t[P1] < 0 || t[P1] > 11 ? P1 : t[B1] < 1 || t[B1] > Xz(t[Y0], t[P1]) ? B1 : t[
|
|
9406
|
+
return t && T(O).overflow === -2 && (c = t[P1] < 0 || t[P1] > 11 ? P1 : t[B1] < 1 || t[B1] > Xz(t[Y0], t[P1]) ? B1 : t[D0] < 0 || t[D0] > 24 || t[D0] === 24 && (t[i1] !== 0 || t[x1] !== 0 || t[B2] !== 0) ? D0 : t[i1] < 0 || t[i1] > 59 ? i1 : t[x1] < 0 || t[x1] > 59 ? x1 : t[B2] < 0 || t[B2] > 999 ? B2 : -1, T(O)._overflowDayOfYear && (c < Y0 || c > B1) && (c = B1), T(O)._overflowWeeks && c === -1 && (c = ue), T(O)._overflowWeekday && c === -1 && (c = Re), T(O).overflow = c), O;
|
|
9407
9407
|
}
|
|
9408
9408
|
var Wt = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, lt = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, ft = /Z|[+-]\d\d(?::?\d\d)?/, db = [
|
|
9409
9409
|
["YYYYYY-MM-DD", /[+-]\d{6}-\d\d-\d\d/],
|
|
@@ -9572,10 +9572,10 @@ Arguments: ` + Array.prototype.slice.call(A).join("") + `
|
|
|
9572
9572
|
O._a[c] = A[c] = a[c];
|
|
9573
9573
|
for (; c < 7; c++)
|
|
9574
9574
|
O._a[c] = A[c] = O._a[c] == null ? c === 2 ? 1 : 0 : O._a[c];
|
|
9575
|
-
O._a[
|
|
9575
|
+
O._a[D0] === 24 && O._a[i1] === 0 && O._a[x1] === 0 && O._a[B2] === 0 && (O._nextDay = !0, O._a[D0] = 0), O._d = (O._useUTC ? mM : De).apply(
|
|
9576
9576
|
null,
|
|
9577
9577
|
A
|
|
9578
|
-
), s = O._useUTC ? O._d.getUTCDay() : O._d.getDay(), O._tzm != null && O._d.setUTCMinutes(O._d.getUTCMinutes() - O._tzm), O._nextDay && (O._a[
|
|
9578
|
+
), s = O._useUTC ? O._d.getUTCDay() : O._d.getDay(), O._tzm != null && O._d.setUTCMinutes(O._d.getUTCMinutes() - O._tzm), O._nextDay && (O._a[D0] = 24), O._w && typeof O._w.d < "u" && O._w.d !== s && (T(O).weekdayMismatch = !0);
|
|
9579
9579
|
}
|
|
9580
9580
|
}
|
|
9581
9581
|
function Tt(O) {
|
|
@@ -9604,9 +9604,9 @@ Arguments: ` + Array.prototype.slice.call(A).join("") + `
|
|
|
9604
9604
|
s = a[t], A = (c.match(We(s, O)) || [])[0], A && (f = c.substr(0, c.indexOf(A)), f.length > 0 && T(O).unusedInput.push(f), c = c.slice(
|
|
9605
9605
|
c.indexOf(A) + A.length
|
|
9606
9606
|
), F += A.length), N1[s] ? (A ? T(O).empty = !1 : T(O).unusedTokens.push(s), fe(s, A, O)) : O._strict && !A && T(O).unusedTokens.push(s);
|
|
9607
|
-
T(O).charsLeftOver = S - F, c.length > 0 && T(O).unusedInput.push(c), O._a[
|
|
9607
|
+
T(O).charsLeftOver = S - F, c.length > 0 && T(O).unusedInput.push(c), O._a[D0] <= 12 && T(O).bigHour === !0 && O._a[D0] > 0 && (T(O).bigHour = void 0), T(O).parsedDateParts = O._a.slice(0), T(O).meridiem = O._meridiem, O._a[D0] = vt(
|
|
9608
9608
|
O._locale,
|
|
9609
|
-
O._a[
|
|
9609
|
+
O._a[D0],
|
|
9610
9610
|
O._meridiem
|
|
9611
9611
|
), $ = T(O).era, $ !== null && (O._a[Y0] = O._locale.erasConvertYear($, O._a[Y0])), kz(O), _z(O);
|
|
9612
9612
|
}
|
|
@@ -9825,7 +9825,7 @@ Arguments: ` + Array.prototype.slice.call(A).join("") + `
|
|
|
9825
9825
|
} : l(O) || !isNaN(+O) ? (t = {}, c ? t[c] = +O : t.milliseconds = +O) : (A = zA.exec(O)) ? (a = A[1] === "-" ? -1 : 1, t = {
|
|
9826
9826
|
y: 0,
|
|
9827
9827
|
d: Q(A[B1]) * a,
|
|
9828
|
-
h: Q(A[
|
|
9828
|
+
h: Q(A[D0]) * a,
|
|
9829
9829
|
m: Q(A[i1]) * a,
|
|
9830
9830
|
s: Q(A[x1]) * a,
|
|
9831
9831
|
ms: Q(Cz(A[B2] * 1e3)) * a
|
|
@@ -10929,11 +10929,11 @@ $4.add(
|
|
|
10929
10929
|
Rr,
|
|
10930
10930
|
lr,
|
|
10931
10931
|
fr,
|
|
10932
|
-
|
|
10932
|
+
Lr,
|
|
10933
10933
|
hr,
|
|
10934
|
-
mr,
|
|
10935
10934
|
Nr,
|
|
10936
|
-
|
|
10935
|
+
Br,
|
|
10936
|
+
mr,
|
|
10937
10937
|
ur
|
|
10938
10938
|
);
|
|
10939
10939
|
const kd = {
|
|
@@ -11000,6 +11000,10 @@ const kd = {
|
|
|
11000
11000
|
{ value: -1, text: "Tous" }
|
|
11001
11001
|
]
|
|
11002
11002
|
},
|
|
11003
|
+
tdClass: {
|
|
11004
|
+
type: String,
|
|
11005
|
+
default: ""
|
|
11006
|
+
},
|
|
11003
11007
|
showMaxItemPerPageBtn: {
|
|
11004
11008
|
type: Boolean,
|
|
11005
11009
|
default: !1
|
|
@@ -11549,13 +11553,10 @@ const kd = {
|
|
|
11549
11553
|
key: 1,
|
|
11550
11554
|
class: "ms-2"
|
|
11551
11555
|
}, $d = { key: 1 }, MW = ["id"], bW = ["id"], zW = { class: "d-inline-flex text-nowrap" }, pW = {
|
|
11552
|
-
key: 0,
|
|
11553
|
-
class: "ms-2 float-end hoverable"
|
|
11554
|
-
}, OW = {
|
|
11555
11556
|
key: 1,
|
|
11556
11557
|
class: "ms-2 hoverable"
|
|
11557
|
-
},
|
|
11558
|
-
function
|
|
11558
|
+
}, OW = { key: 0 }, oW = ["colspan"], cW = { class: "text-danger fs-5" }, eW = ["onClick", "onContextmenu"], tW = ["data-column-id", "onClick"], AW = ["id", "value"], nW = ["data-column-id"], aW = { class: "row ms-auto mb-2" }, rW = { class: "m-0 pagination pagination-sm" }, iW = { class: "page-item hoverable" }, qW = { class: "page-item hoverable" }, sW = ["onClick"], dW = { class: "page-item hoverable" }, WW = { class: "page-item hoverable" };
|
|
11559
|
+
function lW(M, b, z, p, o, e) {
|
|
11559
11560
|
var q;
|
|
11560
11561
|
const n = Wp("font-awesome-icon"), r = Wp("vue-draggable-next");
|
|
11561
11562
|
return H(), V(s1, null, [
|
|
@@ -11574,7 +11575,7 @@ function fW(M, b, z, p, o, e) {
|
|
|
11574
11575
|
])) : F0("", !0),
|
|
11575
11576
|
z.showLineNumber || z.showModifyColumnsBtn || z.showMaxItemPerPageBtn || z.deepSorts ? (H(), V("div", Cd, [
|
|
11576
11577
|
p0("div", {
|
|
11577
|
-
class:
|
|
11578
|
+
class: w0([
|
|
11578
11579
|
"d-flex justify-content-start p-0",
|
|
11579
11580
|
z.deepSorts && o.deepSortsList.length > 0 && z.showModifyColumnsBtn ? "col-12 col-sm-8 col-lg-9 col-xl-10" : "col"
|
|
11580
11581
|
])
|
|
@@ -11585,7 +11586,7 @@ function fW(M, b, z, p, o, e) {
|
|
|
11585
11586
|
])) : F0("", !0),
|
|
11586
11587
|
z.deepSorts && o.deepSortsList.length > 0 ? (H(), V("div", {
|
|
11587
11588
|
key: 1,
|
|
11588
|
-
class:
|
|
11589
|
+
class: w0(["d-flex align-items-center flex-wrap", { "ms-4": z.showLineNumber }])
|
|
11589
11590
|
}, [
|
|
11590
11591
|
b[21] || (b[21] = p0("span", { class: "me-1 text-secondary h-auto fs-7 mb-1 mb-lg-0" }, "Tri :", -1)),
|
|
11591
11592
|
q2(r, {
|
|
@@ -11612,7 +11613,7 @@ function fW(M, b, z, p, o, e) {
|
|
|
11612
11613
|
]),
|
|
11613
11614
|
q2(n, {
|
|
11614
11615
|
class: "hoverable",
|
|
11615
|
-
icon: i.asc ? "fa-solid fa-arrow-
|
|
11616
|
+
icon: i.asc ? "fa-solid fa-arrow-down-short-wide" : "fa-solid fa-arrow-down-wide-short",
|
|
11616
11617
|
onClick: (W) => i.asc = !i.asc
|
|
11617
11618
|
}, null, 8, ["icon", "onClick"])
|
|
11618
11619
|
]))), 128))
|
|
@@ -11623,7 +11624,7 @@ function fW(M, b, z, p, o, e) {
|
|
|
11623
11624
|
], 2),
|
|
11624
11625
|
z.showMaxItemPerPageBtn || z.showModifyColumnsBtn ? (H(), V("div", {
|
|
11625
11626
|
key: 0,
|
|
11626
|
-
class:
|
|
11627
|
+
class: w0([
|
|
11627
11628
|
"d-flex align-items-center justify-content-end p-0",
|
|
11628
11629
|
z.deepSorts && o.deepSortsList.length > 0 ? "col-12 col-sm-4 col-lg-3 col-xl-2 mt-1 mt-sm-0" : "col"
|
|
11629
11630
|
])
|
|
@@ -11670,7 +11671,7 @@ function fW(M, b, z, p, o, e) {
|
|
|
11670
11671
|
p0("div", Hd, [
|
|
11671
11672
|
p0("div", {
|
|
11672
11673
|
ref: "scrollContainer",
|
|
11673
|
-
class:
|
|
11674
|
+
class: w0(["col-12 p-0 overflow-x-auto mb-2", {
|
|
11674
11675
|
border: z.infiniteScroll,
|
|
11675
11676
|
"infinite-scroll-container": z.infiniteScroll
|
|
11676
11677
|
}]),
|
|
@@ -11687,7 +11688,7 @@ function fW(M, b, z, p, o, e) {
|
|
|
11687
11688
|
id: "table-draggable",
|
|
11688
11689
|
ref: "table",
|
|
11689
11690
|
key: o.forceTableUpdateIndex,
|
|
11690
|
-
class:
|
|
11691
|
+
class: w0(["table table-striped table-hover table-responsive align-middle border-1 border-top border-bottom position-relative m-0", [z.border ? "table-bordered" : "table-borderless", z.tableSm ? "table-sm" : ""]]),
|
|
11691
11692
|
style: jz([{ "border-collapse": "separate", "border-spacing": "0" }, {
|
|
11692
11693
|
borderLeft: z.border ? "" : "1px solid #ddd",
|
|
11693
11694
|
borderRight: z.border ? "" : "1px solid #ddd"
|
|
@@ -11711,7 +11712,7 @@ function fW(M, b, z, p, o, e) {
|
|
|
11711
11712
|
i.id === "checkBox" ? (H(), V("th", {
|
|
11712
11713
|
key: 0,
|
|
11713
11714
|
id: i.id + "-th-" + l,
|
|
11714
|
-
class:
|
|
11715
|
+
class: w0(["text-center", [
|
|
11715
11716
|
z.headerBgColor,
|
|
11716
11717
|
i.stickyLeft ? "sticky-column-left" : "",
|
|
11717
11718
|
i.stickyRight ? "sticky-column-right" : "",
|
|
@@ -11733,7 +11734,7 @@ function fW(M, b, z, p, o, e) {
|
|
|
11733
11734
|
key: 1,
|
|
11734
11735
|
id: i.id + "-th-" + l,
|
|
11735
11736
|
scope: "col",
|
|
11736
|
-
class:
|
|
11737
|
+
class: w0(["text-center", [
|
|
11737
11738
|
i.isDragging ? "hoverable-grabbing" : z.headerBgColor + " hoverable-grab",
|
|
11738
11739
|
i.stickyLeft ? "sticky-column-left" : "",
|
|
11739
11740
|
i.stickyRight ? "sticky-column-right" : "",
|
|
@@ -11764,7 +11765,7 @@ function fW(M, b, z, p, o, e) {
|
|
|
11764
11765
|
Kz(M.$slots, "tableHeaderTh", { header: i }, void 0, !0),
|
|
11765
11766
|
i.isSortable && !z.deepSorts ? (H(), V("div", Jd, [
|
|
11766
11767
|
q2(n, {
|
|
11767
|
-
icon: o.sortKey !== i.id || o.sortKey === i.id && !o.sortAsc ? "fa-solid fa-arrow-down-wide-short" : "fa-solid fa-arrow-
|
|
11768
|
+
icon: o.sortKey !== i.id || o.sortKey === i.id && !o.sortAsc ? "fa-solid fa-arrow-down-wide-short" : "fa-solid fa-arrow-down-short-wide",
|
|
11768
11769
|
class: "hoverable",
|
|
11769
11770
|
onClick: (W) => e.updateCurrentSort(i)
|
|
11770
11771
|
}, null, 8, ["icon", "onClick"])
|
|
@@ -11787,7 +11788,7 @@ function fW(M, b, z, p, o, e) {
|
|
|
11787
11788
|
i.id === "checkBox" ? (H(), V("th", {
|
|
11788
11789
|
key: 0,
|
|
11789
11790
|
id: i.id + "-th-" + l,
|
|
11790
|
-
class:
|
|
11791
|
+
class: w0(["text-center", [
|
|
11791
11792
|
z.headerBgColor,
|
|
11792
11793
|
i.stickyLeft ? "sticky-column-left" : "",
|
|
11793
11794
|
i.stickyRight ? "sticky-column-right" : "",
|
|
@@ -11809,7 +11810,7 @@ function fW(M, b, z, p, o, e) {
|
|
|
11809
11810
|
key: 1,
|
|
11810
11811
|
id: i.id + "-th-" + l,
|
|
11811
11812
|
scope: "col",
|
|
11812
|
-
class:
|
|
11813
|
+
class: w0(["text-center", [
|
|
11813
11814
|
i.isDragging ? "" : z.headerBgColor,
|
|
11814
11815
|
i.stickyLeft ? "sticky-column-left" : "",
|
|
11815
11816
|
i.stickyRight ? "sticky-column-right" : "",
|
|
@@ -11819,12 +11820,15 @@ function fW(M, b, z, p, o, e) {
|
|
|
11819
11820
|
}, [
|
|
11820
11821
|
p0("div", zW, [
|
|
11821
11822
|
Kz(M.$slots, "tableHeaderTh", { header: i }, void 0, !0),
|
|
11822
|
-
i.isSortable && !z.deepSorts ? (H(), V("div",
|
|
11823
|
+
i.isSortable && !z.deepSorts ? (H(), V("div", {
|
|
11824
|
+
key: 0,
|
|
11825
|
+
class: w0(["ms-2 float-end hoverable", { "opacity-50": o.sortKey !== i.id }])
|
|
11826
|
+
}, [
|
|
11823
11827
|
q2(n, {
|
|
11824
|
-
icon: o.sortKey !== i.id || o.sortKey === i.id && !o.sortAsc ? "fa-solid fa-arrow-down-wide-short" : "fa-solid fa-arrow-
|
|
11828
|
+
icon: o.sortKey !== i.id || o.sortKey === i.id && !o.sortAsc ? "fa-solid fa-arrow-down-wide-short" : "fa-solid fa-arrow-down-short-wide",
|
|
11825
11829
|
onClick: (W) => e.updateCurrentSort(i)
|
|
11826
11830
|
}, null, 8, ["icon", "onClick"])
|
|
11827
|
-
])) : z.deepSorts && !o.deepSortsList.some((W) => W.id === i.id) && i.isSortable ? (H(), V("div",
|
|
11831
|
+
], 2)) : z.deepSorts && !o.deepSortsList.some((W) => W.id === i.id) && i.isSortable ? (H(), V("div", pW, [
|
|
11828
11832
|
q2(n, {
|
|
11829
11833
|
icon: "fa-solid fa-filter",
|
|
11830
11834
|
onClick: (W) => e.addDeepSort(i)
|
|
@@ -11836,16 +11840,16 @@ function fW(M, b, z, p, o, e) {
|
|
|
11836
11840
|
]))
|
|
11837
11841
|
]),
|
|
11838
11842
|
p0("tbody", null, [
|
|
11839
|
-
((q = e.showeditems) == null ? void 0 : q.length) === 0 ? (H(), V("tr",
|
|
11843
|
+
((q = e.showeditems) == null ? void 0 : q.length) === 0 ? (H(), V("tr", OW, [
|
|
11840
11844
|
p0("th", {
|
|
11841
11845
|
colspan: o.columns.length,
|
|
11842
11846
|
class: "text-center"
|
|
11843
11847
|
}, [
|
|
11844
|
-
p0("span",
|
|
11845
|
-
], 8,
|
|
11848
|
+
p0("span", cW, yM(z.noValueText), 1)
|
|
11849
|
+
], 8, oW)
|
|
11846
11850
|
])) : (H(!0), V(s1, { key: 1 }, y2(e.showeditems, (i, l) => (H(), V("tr", {
|
|
11847
11851
|
key: i.id,
|
|
11848
|
-
class:
|
|
11852
|
+
class: w0([
|
|
11849
11853
|
{
|
|
11850
11854
|
hoverable: z.clickable && !o.headerEditMode,
|
|
11851
11855
|
"hoverable-no-drop": z.clickable && o.headerEditMode
|
|
@@ -11864,11 +11868,11 @@ function fW(M, b, z, p, o, e) {
|
|
|
11864
11868
|
W.id === "checkBox" ? (H(), V("td", {
|
|
11865
11869
|
key: 0,
|
|
11866
11870
|
"data-column-id": W.id,
|
|
11867
|
-
class:
|
|
11871
|
+
class: w0(["text-center", [
|
|
11872
|
+
z.tdClass,
|
|
11868
11873
|
i.lineState ? e.lineStateClass(i.lineState) : "",
|
|
11869
11874
|
W.stickyLeft ? "sticky-column-left" : "",
|
|
11870
|
-
W.stickyRight ? "sticky-column-right" : ""
|
|
11871
|
-
M.tdClass
|
|
11875
|
+
W.stickyRight ? "sticky-column-right" : ""
|
|
11872
11876
|
]]),
|
|
11873
11877
|
onClick: Q2((N) => e.checkItem(i.id), ["stop"])
|
|
11874
11878
|
}, [
|
|
@@ -11880,72 +11884,72 @@ function fW(M, b, z, p, o, e) {
|
|
|
11880
11884
|
value: i.id,
|
|
11881
11885
|
onClick: b[14] || (b[14] = Q2(() => {
|
|
11882
11886
|
}, ["stop"]))
|
|
11883
|
-
}, null, 8,
|
|
11887
|
+
}, null, 8, AW), [
|
|
11884
11888
|
[Vz, o.selectedItems]
|
|
11885
11889
|
])
|
|
11886
|
-
], 10,
|
|
11890
|
+
], 10, tW)) : (W.show || o.headerEditMode) && (!W.onlyOnEditMode || z.lineEditMode) ? (H(), V("td", {
|
|
11887
11891
|
key: 1,
|
|
11888
11892
|
"data-column-id": W.id,
|
|
11889
|
-
class:
|
|
11893
|
+
class: w0([[
|
|
11894
|
+
z.tdClass,
|
|
11890
11895
|
W.show ? "" : "table-danger",
|
|
11891
11896
|
W.isSorted ? "bg-gray-200" : "",
|
|
11892
11897
|
i.lineState ? e.lineStateClass(i.lineState) : "",
|
|
11893
11898
|
W.stickyLeft ? "sticky-column-left" : "",
|
|
11894
|
-
W.stickyRight ? "sticky-column-right" : ""
|
|
11895
|
-
M.tdClass
|
|
11899
|
+
W.stickyRight ? "sticky-column-right" : ""
|
|
11896
11900
|
], "text-center text-nowrap"])
|
|
11897
11901
|
}, [
|
|
11898
11902
|
Kz(M.$slots, "tableBodyTd", {
|
|
11899
11903
|
header: W,
|
|
11900
11904
|
item: i
|
|
11901
11905
|
}, void 0, !0)
|
|
11902
|
-
], 10,
|
|
11906
|
+
], 10, nW)) : F0("", !0)
|
|
11903
11907
|
], 64))), 128))
|
|
11904
|
-
], 46,
|
|
11908
|
+
], 46, eW))), 128))
|
|
11905
11909
|
])
|
|
11906
11910
|
], 6))
|
|
11907
11911
|
], 38)
|
|
11908
11912
|
]),
|
|
11909
|
-
p0("div",
|
|
11913
|
+
p0("div", aW, [
|
|
11910
11914
|
!z.infiniteScroll && o.totalPages && o.totalPages > 1 ? (H(), V("div", {
|
|
11911
11915
|
key: 0,
|
|
11912
|
-
class:
|
|
11916
|
+
class: w0(["col p-0 me-3 d-flex", {
|
|
11913
11917
|
"justify-content-center": z.paginationPosition === "center",
|
|
11914
11918
|
"justify-content-end": z.paginationPosition === "right",
|
|
11915
11919
|
"justify-content-start": z.paginationPosition === "left"
|
|
11916
11920
|
}])
|
|
11917
11921
|
}, [
|
|
11918
|
-
p0("ul",
|
|
11919
|
-
p0("li",
|
|
11922
|
+
p0("ul", rW, [
|
|
11923
|
+
p0("li", iW, [
|
|
11920
11924
|
p0("a", {
|
|
11921
|
-
class:
|
|
11925
|
+
class: w0(["page-link", { disabled: o.currentPage === 1 }]),
|
|
11922
11926
|
onClick: b[16] || (b[16] = (i) => o.currentPage = 1)
|
|
11923
11927
|
}, " « ", 2)
|
|
11924
11928
|
]),
|
|
11925
|
-
p0("li",
|
|
11929
|
+
p0("li", qW, [
|
|
11926
11930
|
p0("a", {
|
|
11927
|
-
class:
|
|
11931
|
+
class: w0(["page-link", { disabled: o.currentPage === 1 }]),
|
|
11928
11932
|
onClick: b[17] || (b[17] = (i) => o.currentPage -= 1)
|
|
11929
11933
|
}, " < ", 2)
|
|
11930
11934
|
]),
|
|
11931
11935
|
(H(!0), V(s1, null, y2(e.currentDisplayPagination, (i) => (H(), V("li", {
|
|
11932
11936
|
key: i,
|
|
11933
|
-
class:
|
|
11937
|
+
class: w0(["page-item hoverable", { active: o.currentPage === i }])
|
|
11934
11938
|
}, [
|
|
11935
11939
|
p0("a", {
|
|
11936
11940
|
class: "page-link",
|
|
11937
11941
|
onClick: (l) => o.currentPage = i
|
|
11938
|
-
}, yM(i), 9,
|
|
11942
|
+
}, yM(i), 9, sW)
|
|
11939
11943
|
], 2))), 128)),
|
|
11940
|
-
p0("li",
|
|
11944
|
+
p0("li", dW, [
|
|
11941
11945
|
p0("a", {
|
|
11942
|
-
class:
|
|
11946
|
+
class: w0(["page-link", { disabled: o.currentPage === o.totalPages }]),
|
|
11943
11947
|
onClick: b[18] || (b[18] = (i) => o.currentPage += 1)
|
|
11944
11948
|
}, " > ", 2)
|
|
11945
11949
|
]),
|
|
11946
|
-
p0("li",
|
|
11950
|
+
p0("li", WW, [
|
|
11947
11951
|
p0("a", {
|
|
11948
|
-
class:
|
|
11952
|
+
class: w0(["page-link", { disabled: o.currentPage === o.totalPages }]),
|
|
11949
11953
|
onClick: b[19] || (b[19] = (i) => o.currentPage = o.totalPages)
|
|
11950
11954
|
}, " » ", 2)
|
|
11951
11955
|
])
|
|
@@ -11953,15 +11957,15 @@ function fW(M, b, z, p, o, e) {
|
|
|
11953
11957
|
], 2)) : F0("", !0),
|
|
11954
11958
|
z.stickyScrollbarHorizontal ? (H(), V("div", {
|
|
11955
11959
|
key: 1,
|
|
11956
|
-
class:
|
|
11960
|
+
class: w0(["bottom-scrollbar", { visible: o.showScrollbar }])
|
|
11957
11961
|
}, b[22] || (b[22] = [
|
|
11958
11962
|
p0("div", { class: "scrollbar-content" }, null, -1)
|
|
11959
11963
|
]), 2)) : F0("", !0)
|
|
11960
11964
|
])
|
|
11961
11965
|
], 64);
|
|
11962
11966
|
}
|
|
11963
|
-
const
|
|
11967
|
+
const uW = /* @__PURE__ */ wd(kd, [["render", lW], ["__scopeId", "data-v-972cc595"]]);
|
|
11964
11968
|
export {
|
|
11965
|
-
|
|
11966
|
-
|
|
11969
|
+
uW as AmsomTableDraggable,
|
|
11970
|
+
uW as default
|
|
11967
11971
|
};
|