@tsiky/components-r19 1.6.18 → 1.6.20
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/SimpleBarChart-BzHNNwd6.cjs +134 -0
- package/dist/SimpleBarChart-CCePRx-C.js +18730 -0
- package/dist/chart.cjs.js +13 -13
- package/dist/chart.js +304 -303
- package/dist/index.cjs.js +5 -5
- package/dist/index.js +166 -158
- package/dist/src/components/AreaChartV2/AreaChartV2.d.ts.map +1 -1
- package/dist/src/components/ChartV2/ChartV2.d.ts.map +1 -1
- package/dist/src/components/SimpleBarChart/SimpleBarChart.d.ts +1 -0
- package/dist/src/components/SimpleBarChart/SimpleBarChart.d.ts.map +1 -1
- package/dist/src/components/TableauxComponent/TableHeader.d.ts +2 -1
- package/dist/src/components/TableauxComponent/TableHeader.d.ts.map +1 -1
- package/dist/src/components/TableauxComponent/TableLayout.d.ts +1 -1
- package/dist/src/components/TableauxComponent/TableLayout.d.ts.map +1 -1
- package/dist/src/components/TableauxComponent/types.d.ts +1 -0
- package/dist/src/components/TableauxComponent/types.d.ts.map +1 -1
- package/package.json +99 -99
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as s, jsxs as g, Fragment as Oe } from "react/jsx-runtime";
|
|
2
2
|
import * as J from "react";
|
|
3
3
|
import ee, { useState as V, useRef as U, useEffect as R, createContext as Ge, useContext as le, useCallback as Re, memo as je, useLayoutEffect as HA, useId as aC, useInsertionEffect as d$, useMemo as ve, Children as DA, isValidElement as BA, Fragment as l$, createElement as RA, forwardRef as Ti, Component as FA, useImperativeHandle as OA } from "react";
|
|
4
|
-
import { c as a, M as $o, I as EA, a as Ui, g as UA, R as WA, B as GA, C as ZA, X as KA, Y as XA, T as YA, b as JA } from "./SimpleBarChart-
|
|
5
|
-
import { P as Sve, S as $ve } from "./SimpleBarChart-
|
|
4
|
+
import { c as a, M as $o, I as EA, a as Ui, g as UA, R as WA, B as GA, C as ZA, X as KA, Y as XA, T as YA, b as JA } from "./SimpleBarChart-CCePRx-C.js";
|
|
5
|
+
import { P as Sve, S as $ve } from "./SimpleBarChart-CCePRx-C.js";
|
|
6
6
|
import { createPortal as h$ } from "react-dom";
|
|
7
7
|
const QA = "_button_1kuwt_2", ez = "_primary_1kuwt_21", tz = "_secondary_1kuwt_26", az = "_accent_1kuwt_31", nz = "_outline_1kuwt_36", oz = "_success_1kuwt_41", iz = "_danger_1kuwt_46", cz = "_warning_1kuwt_51", rz = "_info_1kuwt_56", sz = "_sm_1kuwt_62", dz = "_md_1kuwt_67", lz = "_lg_1kuwt_72", Ze = {
|
|
8
8
|
button: QA,
|
|
@@ -31422,9 +31422,9 @@ const Mt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
31422
31422
|
className: "language-select",
|
|
31423
31423
|
value: w.value ?? "",
|
|
31424
31424
|
onChange: ($) => {
|
|
31425
|
-
const
|
|
31425
|
+
const H = $.target.value;
|
|
31426
31426
|
try {
|
|
31427
|
-
w.onChange(
|
|
31427
|
+
w.onChange(H);
|
|
31428
31428
|
} catch (B) {
|
|
31429
31429
|
console.error("select onChange error", B);
|
|
31430
31430
|
}
|
|
@@ -31468,26 +31468,26 @@ const Mt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
31468
31468
|
const [v, x] = V([]);
|
|
31469
31469
|
R(() => {
|
|
31470
31470
|
const b = ($) => {
|
|
31471
|
-
const
|
|
31471
|
+
const H = [];
|
|
31472
31472
|
return ee.Children.forEach($, (B) => {
|
|
31473
|
-
Array.isArray(B) ?
|
|
31474
|
-
}),
|
|
31473
|
+
Array.isArray(B) ? H.push(...b(B)) : ee.isValidElement(B) && H.push(B);
|
|
31474
|
+
}), H;
|
|
31475
31475
|
}, A = b(e).filter(($) => ee.isValidElement($)).map(($) => {
|
|
31476
|
-
let
|
|
31476
|
+
let H = "";
|
|
31477
31477
|
const B = $.props;
|
|
31478
|
-
return
|
|
31478
|
+
return H = [
|
|
31479
31479
|
B.xs ? `grid-xs-${B.xs}` : "",
|
|
31480
31480
|
B.sm ? `grid-sm-${B.sm}` : "",
|
|
31481
31481
|
B.md ? `grid-md-${B.md}` : "",
|
|
31482
31482
|
B.lg ? `grid-lg-${B.lg}` : "",
|
|
31483
31483
|
B.xl ? `grid-xl-${B.xl}` : "",
|
|
31484
31484
|
B.className ? B.className : ""
|
|
31485
|
-
].join(" ").trim(), { node: $, classes:
|
|
31485
|
+
].join(" ").trim(), { node: $, classes: H };
|
|
31486
31486
|
});
|
|
31487
31487
|
let N = A;
|
|
31488
|
-
f && f.length > 0 && (N = A.map(($,
|
|
31488
|
+
f && f.length > 0 && (N = A.map(($, H) => ({
|
|
31489
31489
|
...$,
|
|
31490
|
-
node: A[f[
|
|
31490
|
+
node: A[f[H]]?.node ?? $.node
|
|
31491
31491
|
}))), x(N);
|
|
31492
31492
|
}, [e]);
|
|
31493
31493
|
const I = (b, S) => {
|
|
@@ -31500,22 +31500,22 @@ const Mt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
31500
31500
|
if (t && N !== u)
|
|
31501
31501
|
return;
|
|
31502
31502
|
const $ = [...v];
|
|
31503
|
-
let
|
|
31503
|
+
let H = -1, B = -1;
|
|
31504
31504
|
if ($.forEach((q, j) => {
|
|
31505
31505
|
if (ee.isValidElement(q.node)) {
|
|
31506
31506
|
const F = q.node.props;
|
|
31507
|
-
F.uniqueKey === S && (
|
|
31507
|
+
F.uniqueKey === S && (H = j), F.uniqueKey === A && (B = j);
|
|
31508
31508
|
}
|
|
31509
|
-
}),
|
|
31509
|
+
}), H === -1 || B === -1)
|
|
31510
31510
|
return;
|
|
31511
31511
|
const P = $[B].node;
|
|
31512
31512
|
$[B] = {
|
|
31513
31513
|
...$[B],
|
|
31514
|
-
node: $[
|
|
31515
|
-
}, $[
|
|
31516
|
-
...$[
|
|
31514
|
+
node: $[H].node
|
|
31515
|
+
}, $[H] = {
|
|
31516
|
+
...$[H],
|
|
31517
31517
|
node: P
|
|
31518
|
-
}, x($), typeof k == "function" && k(B,
|
|
31518
|
+
}, x($), typeof k == "function" && k(B, H);
|
|
31519
31519
|
}, w = o ? [
|
|
31520
31520
|
i ? `grid-xs-${i}` : "",
|
|
31521
31521
|
c ? `grid-sm-${c}` : "",
|
|
@@ -35384,7 +35384,7 @@ function ale(e) {
|
|
|
35384
35384
|
const A = Array.isArray(x) ? x : [x];
|
|
35385
35385
|
let N = A.reduce(i(M), {});
|
|
35386
35386
|
L === !1 && (N = {});
|
|
35387
|
-
const { prevResolvedValues: $ = {} } = v,
|
|
35387
|
+
const { prevResolvedValues: $ = {} } = v, H = {
|
|
35388
35388
|
...$,
|
|
35389
35389
|
...N
|
|
35390
35390
|
}, B = (j) => {
|
|
@@ -35392,21 +35392,21 @@ function ale(e) {
|
|
|
35392
35392
|
const F = e.getValue(j);
|
|
35393
35393
|
F && (F.liveStyle = !1);
|
|
35394
35394
|
};
|
|
35395
|
-
for (const j in
|
|
35395
|
+
for (const j in H) {
|
|
35396
35396
|
const F = N[j], K = $[j];
|
|
35397
35397
|
if (m.hasOwnProperty(j))
|
|
35398
35398
|
continue;
|
|
35399
|
-
let
|
|
35400
|
-
KL(F) && KL(K) ?
|
|
35399
|
+
let D = !1;
|
|
35400
|
+
KL(F) && KL(K) ? D = !jq(F, K) : D = F !== K, D ? F != null ? B(j) : y.add(j) : F !== void 0 && y.has(j) ? B(j) : v.protectedKeys[j] = !0;
|
|
35401
35401
|
}
|
|
35402
35402
|
v.prevProp = x, v.prevResolvedValues = N, v.isActive && (m = { ...m, ...N }), o && e.blockInitialAnimation && (b = !1);
|
|
35403
35403
|
const P = C && w;
|
|
35404
35404
|
b && (!P || S) && u.push(...A.map((j) => {
|
|
35405
35405
|
const F = { type: M };
|
|
35406
35406
|
if (typeof j == "string" && o && !P && e.manuallyAnimateOnMount && e.parent) {
|
|
35407
|
-
const { parent: K } = e,
|
|
35408
|
-
if (K.enteringChildren &&
|
|
35409
|
-
const { delayChildren: O } =
|
|
35407
|
+
const { parent: K } = e, D = Xo(K, j);
|
|
35408
|
+
if (K.enteringChildren && D) {
|
|
35409
|
+
const { delayChildren: O } = D.transition || {};
|
|
35410
35410
|
F.delay = Pq(K.enteringChildren, e, O);
|
|
35411
35411
|
}
|
|
35412
35412
|
}
|
|
@@ -38603,16 +38603,16 @@ function eye() {
|
|
|
38603
38603
|
case k:
|
|
38604
38604
|
return C == w + "";
|
|
38605
38605
|
case u:
|
|
38606
|
-
var
|
|
38606
|
+
var H = i;
|
|
38607
38607
|
case f:
|
|
38608
38608
|
var B = S & r;
|
|
38609
|
-
if (
|
|
38609
|
+
if (H || (H = c), C.size != w.size && !B)
|
|
38610
38610
|
return !1;
|
|
38611
38611
|
var P = $.get(C);
|
|
38612
38612
|
if (P)
|
|
38613
38613
|
return P == w;
|
|
38614
38614
|
S |= d, $.set(C, w);
|
|
38615
|
-
var q = o(
|
|
38615
|
+
var q = o(H(C), H(w), S, A, N, $);
|
|
38616
38616
|
return $.delete(C), q;
|
|
38617
38617
|
case _:
|
|
38618
38618
|
if (I)
|
|
@@ -38769,8 +38769,8 @@ function hye() {
|
|
|
38769
38769
|
SS = 1;
|
|
38770
38770
|
var e = kw(), t = lA(), n = gw(), o = "[object Arguments]", i = "[object Array]", c = "[object Boolean]", r = "[object Date]", d = "[object Error]", l = "[object Function]", h = "[object Map]", p = "[object Number]", u = "[object Object]", y = "[object RegExp]", m = "[object Set]", f = "[object String]", k = "[object WeakMap]", _ = "[object ArrayBuffer]", M = "[object DataView]", v = "[object Float32Array]", x = "[object Float64Array]", I = "[object Int8Array]", L = "[object Int16Array]", C = "[object Int32Array]", w = "[object Uint8Array]", b = "[object Uint8ClampedArray]", S = "[object Uint16Array]", A = "[object Uint32Array]", N = {};
|
|
38771
38771
|
N[v] = N[x] = N[I] = N[L] = N[C] = N[w] = N[b] = N[S] = N[A] = !0, N[o] = N[i] = N[_] = N[c] = N[M] = N[r] = N[d] = N[l] = N[h] = N[p] = N[u] = N[y] = N[m] = N[f] = N[k] = !1;
|
|
38772
|
-
function $(
|
|
38773
|
-
return n(
|
|
38772
|
+
function $(H) {
|
|
38773
|
+
return n(H) && t(H.length) && !!N[e(H)];
|
|
38774
38774
|
}
|
|
38775
38775
|
return iL = $, iL;
|
|
38776
38776
|
}
|
|
@@ -39004,9 +39004,9 @@ function Nye() {
|
|
|
39004
39004
|
if (N && !S)
|
|
39005
39005
|
return I || (I = new e()), L || d(k) ? t(k, _, M, v, x, I) : n(k, _, w, M, v, x, I);
|
|
39006
39006
|
if (!(M & l)) {
|
|
39007
|
-
var $ = S && m.call(k, "__wrapped__"),
|
|
39008
|
-
if ($ ||
|
|
39009
|
-
var B = $ ? k.value() : k, P =
|
|
39007
|
+
var $ = S && m.call(k, "__wrapped__"), H = A && m.call(_, "__wrapped__");
|
|
39008
|
+
if ($ || H) {
|
|
39009
|
+
var B = $ ? k.value() : k, P = H ? _.value() : _;
|
|
39010
39010
|
return I || (I = new e()), x(B, P, M, v, I);
|
|
39011
39011
|
}
|
|
39012
39012
|
}
|
|
@@ -39056,8 +39056,8 @@ const Aye = /* @__PURE__ */ UA(qye), Vge = ({
|
|
|
39056
39056
|
const N = e.fields.find(($) => $.name === b);
|
|
39057
39057
|
if (N) {
|
|
39058
39058
|
const $ = eC(S, N);
|
|
39059
|
-
y((
|
|
39060
|
-
...
|
|
39059
|
+
y((H) => ({
|
|
39060
|
+
...H,
|
|
39061
39061
|
[b]: $.isValid ? "" : $.error
|
|
39062
39062
|
}));
|
|
39063
39063
|
}
|
|
@@ -39839,7 +39839,7 @@ const l5e = ({ value: e }) => e, h5e = ({ value: e }) => ee.createElement(
|
|
|
39839
39839
|
}
|
|
39840
39840
|
let q = [];
|
|
39841
39841
|
P && Array.isArray(P) && P.length > 0 ? q = P : x && x.length > 0 ? q = x : q = N(), n?.(q), o?.(q);
|
|
39842
|
-
},
|
|
39842
|
+
}, H = () => {
|
|
39843
39843
|
d?.(!1), typeof r != "boolean" && M(!1);
|
|
39844
39844
|
}, B = () => {
|
|
39845
39845
|
w(), n?.([]), o?.([]);
|
|
@@ -39922,7 +39922,7 @@ const l5e = ({ value: e }) => e, h5e = ({ value: e }) => ee.createElement(
|
|
|
39922
39922
|
"button",
|
|
39923
39923
|
{
|
|
39924
39924
|
className: z.cancelButton,
|
|
39925
|
-
onClick:
|
|
39925
|
+
onClick: H,
|
|
39926
39926
|
type: "button",
|
|
39927
39927
|
disabled: k,
|
|
39928
39928
|
children: y
|
|
@@ -40269,7 +40269,7 @@ const l5e = ({ value: e }) => e, h5e = ({ value: e }) => ee.createElement(
|
|
|
40269
40269
|
sortLoading: N = !1,
|
|
40270
40270
|
totalCount: $ = null
|
|
40271
40271
|
}) => {
|
|
40272
|
-
const [
|
|
40272
|
+
const [H, B] = V({ key: null, direction: "asc" }), [P, q] = V(n.currentPage ?? 1), [j, F] = V(n.pageSize ?? 10), [K, D] = V(!1), O = U(null), [te, ce] = V([]), xe = u ? d : te, mt = u ? [] : te;
|
|
40273
40273
|
R(() => {
|
|
40274
40274
|
const X = n.currentPage ?? 1, Fi = n.pageSize ?? 10;
|
|
40275
40275
|
X !== P && q(X), Fi !== j && F(Fi);
|
|
@@ -40278,7 +40278,7 @@ const l5e = ({ value: e }) => e, h5e = ({ value: e }) => ee.createElement(
|
|
|
40278
40278
|
t,
|
|
40279
40279
|
e,
|
|
40280
40280
|
i,
|
|
40281
|
-
|
|
40281
|
+
H,
|
|
40282
40282
|
P,
|
|
40283
40283
|
j,
|
|
40284
40284
|
mt
|
|
@@ -40303,12 +40303,12 @@ const l5e = ({ value: e }) => e, h5e = ({ value: e }) => ee.createElement(
|
|
|
40303
40303
|
}, Ae = (X) => {
|
|
40304
40304
|
B(X), p?.(X);
|
|
40305
40305
|
}, He = (X) => {
|
|
40306
|
-
|
|
40306
|
+
D(X), !X && O.current && O.current.style.setProperty("--filters-panel-height", "0px");
|
|
40307
40307
|
};
|
|
40308
40308
|
R(() => {
|
|
40309
|
-
(xe?.length ?? 0) > 0 &&
|
|
40309
|
+
(xe?.length ?? 0) > 0 && D(!0);
|
|
40310
40310
|
}, [xe]), R(() => {
|
|
40311
|
-
r.length > 0 && xe.length > 0 &&
|
|
40311
|
+
r.length > 0 && xe.length > 0 && D(!0);
|
|
40312
40312
|
}, [r.length, xe.length]);
|
|
40313
40313
|
const ne = (xe?.length ?? 0) > 0 && x ? x : v;
|
|
40314
40314
|
return /* @__PURE__ */ g(
|
|
@@ -40329,7 +40329,7 @@ const l5e = ({ value: e }) => e, h5e = ({ value: e }) => ee.createElement(
|
|
|
40329
40329
|
columns: e,
|
|
40330
40330
|
onSort: Ae,
|
|
40331
40331
|
label: I,
|
|
40332
|
-
sortConfig:
|
|
40332
|
+
sortConfig: H,
|
|
40333
40333
|
loading: N
|
|
40334
40334
|
}
|
|
40335
40335
|
),
|
|
@@ -40873,7 +40873,7 @@ const N5e = "_mpRoot_31595_1", S5e = "_mpHeader_31595_22", $5e = "_mpTitle_31595
|
|
|
40873
40873
|
summaryCardWidth: S,
|
|
40874
40874
|
summaryCardHeight: A,
|
|
40875
40875
|
summaryCardStyle: N
|
|
40876
|
-
} = e, $ = n === "vertical",
|
|
40876
|
+
} = e, $ = n === "vertical", H = {
|
|
40877
40877
|
"--mp-accent": c,
|
|
40878
40878
|
"--mp-accent-soft": _ke(c, 0.08),
|
|
40879
40879
|
"--mp-bg-primary": v
|
|
@@ -40893,15 +40893,15 @@ const N5e = "_mpRoot_31595_1", S5e = "_mpHeader_31595_22", $5e = "_mpTitle_31595
|
|
|
40893
40893
|
alignItems: "stretch",
|
|
40894
40894
|
width: "100%"
|
|
40895
40895
|
} : void 0) ?? {}, ...x ?? {} };
|
|
40896
|
-
return /* @__PURE__ */ g("div", { className: B, style:
|
|
40896
|
+
return /* @__PURE__ */ g("div", { className: B, style: H, "aria-busy": p, children: [
|
|
40897
40897
|
d && /* @__PURE__ */ s(QS, { title: d }),
|
|
40898
40898
|
/* @__PURE__ */ s("div", { className: G.mpSummaryInner, children: /* @__PURE__ */ s(
|
|
40899
40899
|
"div",
|
|
40900
40900
|
{
|
|
40901
40901
|
className: `${q} ${I ?? ""}`,
|
|
40902
40902
|
style: F,
|
|
40903
|
-
children: t.length === 0 ? /* @__PURE__ */ s("div", { className: G.mpEmpty, children: u }) : t.map((K,
|
|
40904
|
-
const O = K.bgColor ?? f[
|
|
40903
|
+
children: t.length === 0 ? /* @__PURE__ */ s("div", { className: G.mpEmpty, children: u }) : t.map((K, D) => {
|
|
40904
|
+
const O = K.bgColor ?? f[D % f.length], te = K.borderColor ?? k[D % k.length], ce = K.valueColor ?? _[D % _.length];
|
|
40905
40905
|
return P ? /* @__PURE__ */ s(
|
|
40906
40906
|
"div",
|
|
40907
40907
|
{
|
|
@@ -40911,7 +40911,7 @@ const N5e = "_mpRoot_31595_1", S5e = "_mpHeader_31595_22", $5e = "_mpTitle_31595
|
|
|
40911
40911
|
height: A ?? void 0,
|
|
40912
40912
|
...N ?? {}
|
|
40913
40913
|
},
|
|
40914
|
-
children: P(K,
|
|
40914
|
+
children: P(K, D)
|
|
40915
40915
|
},
|
|
40916
40916
|
K.id
|
|
40917
40917
|
) : /* @__PURE__ */ s(
|
|
@@ -40934,7 +40934,7 @@ const N5e = "_mpRoot_31595_1", S5e = "_mpHeader_31595_22", $5e = "_mpTitle_31595
|
|
|
40934
40934
|
) })
|
|
40935
40935
|
] });
|
|
40936
40936
|
}
|
|
40937
|
-
return /* @__PURE__ */ g("div", { className: B, style:
|
|
40937
|
+
return /* @__PURE__ */ g("div", { className: B, style: H, "aria-busy": p, children: [
|
|
40938
40938
|
d && /* @__PURE__ */ s(QS, { title: d }),
|
|
40939
40939
|
/* @__PURE__ */ s("div", { className: G.mpList, style: x, children: p ? /* @__PURE__ */ s("div", { className: G.mpEmpty, children: "Chargement…" }) : t.length === 0 ? /* @__PURE__ */ s("div", { className: G.mpEmpty, children: u }) : t.map((q) => {
|
|
40940
40940
|
const j = r ? {
|
|
@@ -41706,16 +41706,16 @@ const Nke = "_container_1pfsp_1", Ske = "_title_1pfsp_8", o$ = {
|
|
|
41706
41706
|
draggable: l = !1,
|
|
41707
41707
|
checkDuplicateLocal: h
|
|
41708
41708
|
}) => {
|
|
41709
|
-
const [p, u] = V(!1), [y, m] = V(""), [f, k] = V(null), [_, M] = V(""), [v, x] = V(""), [I, L] = V(!1), [C, w] = V(!1), [b, S] = V(null), [A, N] = V(!1), $ = t.map((
|
|
41709
|
+
const [p, u] = V(!1), [y, m] = V(""), [f, k] = V(null), [_, M] = V(""), [v, x] = V(""), [I, L] = V(!1), [C, w] = V(!1), [b, S] = V(null), [A, N] = V(!1), $ = t.map((D) => D.language), H = n.filter((D) => !$.includes(D.code)), B = () => {
|
|
41710
41710
|
y && v.trim() && (d?.(e, y, v.trim()), m(""), x(""), u(!1));
|
|
41711
|
-
}, P = (
|
|
41712
|
-
k(
|
|
41713
|
-
}, q = (
|
|
41714
|
-
c?.(e,
|
|
41711
|
+
}, P = (D, O) => {
|
|
41712
|
+
k(D), M(O);
|
|
41713
|
+
}, q = (D) => {
|
|
41714
|
+
c?.(e, D, _), k(null), M("");
|
|
41715
41715
|
}, j = () => {
|
|
41716
41716
|
k(null), M("");
|
|
41717
|
-
}, F = async (
|
|
41718
|
-
const O =
|
|
41717
|
+
}, F = async (D) => {
|
|
41718
|
+
const O = D.name?.trim();
|
|
41719
41719
|
if (O) {
|
|
41720
41720
|
if (S(null), N(!1), O === e || !i)
|
|
41721
41721
|
return L(!1), "ok";
|
|
@@ -41734,8 +41734,8 @@ const Nke = "_container_1pfsp_1", Ske = "_title_1pfsp_8", o$ = {
|
|
|
41734
41734
|
console.error("Erreur handleRenameSave:", te), S("Erreur lors du renommage.");
|
|
41735
41735
|
}
|
|
41736
41736
|
}
|
|
41737
|
-
}, K = (
|
|
41738
|
-
if (
|
|
41737
|
+
}, K = (D, O) => {
|
|
41738
|
+
if (D !== "name") return;
|
|
41739
41739
|
const te = O.trim();
|
|
41740
41740
|
S(null), N(!1), te && typeof h == "function" && (h(te, e) ? (S("Une clé existe déjà dans ce module."), N(!0)) : (S(null), N(!1)));
|
|
41741
41741
|
};
|
|
@@ -41762,8 +41762,8 @@ const Nke = "_container_1pfsp_1", Ske = "_title_1pfsp_8", o$ = {
|
|
|
41762
41762
|
"button",
|
|
41763
41763
|
{
|
|
41764
41764
|
className: "action-button",
|
|
41765
|
-
onClick: (
|
|
41766
|
-
|
|
41765
|
+
onClick: (D) => {
|
|
41766
|
+
D.stopPropagation(), L(!0);
|
|
41767
41767
|
},
|
|
41768
41768
|
title: "Renommer la clé",
|
|
41769
41769
|
children: /* @__PURE__ */ s(gt, { className: "action-icon" })
|
|
@@ -41772,8 +41772,8 @@ const Nke = "_container_1pfsp_1", Ske = "_title_1pfsp_8", o$ = {
|
|
|
41772
41772
|
/* @__PURE__ */ s(
|
|
41773
41773
|
"button",
|
|
41774
41774
|
{
|
|
41775
|
-
onClick: (
|
|
41776
|
-
|
|
41775
|
+
onClick: (D) => {
|
|
41776
|
+
D.stopPropagation(), o?.(e);
|
|
41777
41777
|
},
|
|
41778
41778
|
className: "action-button delete",
|
|
41779
41779
|
title: "Supprimer la clé",
|
|
@@ -41783,9 +41783,9 @@ const Nke = "_container_1pfsp_1", Ske = "_title_1pfsp_8", o$ = {
|
|
|
41783
41783
|
] })
|
|
41784
41784
|
] }),
|
|
41785
41785
|
/* @__PURE__ */ s("div", { className: `translations-container ${C ? "" : "expanded"}`, children: !l && /* @__PURE__ */ g(Oe, { children: [
|
|
41786
|
-
t.map((
|
|
41787
|
-
/* @__PURE__ */ s("div", { className: "language-code", children:
|
|
41788
|
-
/* @__PURE__ */ s("div", { className: "translation-content", children: f ===
|
|
41786
|
+
t.map((D) => /* @__PURE__ */ g("div", { className: "translation-row", children: [
|
|
41787
|
+
/* @__PURE__ */ s("div", { className: "language-code", children: D.language }),
|
|
41788
|
+
/* @__PURE__ */ s("div", { className: "translation-content", children: f === D.language ? /* @__PURE__ */ g(Oe, { children: [
|
|
41789
41789
|
/* @__PURE__ */ s(
|
|
41790
41790
|
"input",
|
|
41791
41791
|
{
|
|
@@ -41795,14 +41795,14 @@ const Nke = "_container_1pfsp_1", Ske = "_title_1pfsp_8", o$ = {
|
|
|
41795
41795
|
className: "edit-input",
|
|
41796
41796
|
autoFocus: !0,
|
|
41797
41797
|
onKeyDown: (O) => {
|
|
41798
|
-
O.key === "Enter" && q(
|
|
41798
|
+
O.key === "Enter" && q(D.language), O.key === "Escape" && j();
|
|
41799
41799
|
}
|
|
41800
41800
|
}
|
|
41801
41801
|
),
|
|
41802
41802
|
/* @__PURE__ */ s(
|
|
41803
41803
|
"button",
|
|
41804
41804
|
{
|
|
41805
|
-
onClick: () => q(
|
|
41805
|
+
onClick: () => q(D.language),
|
|
41806
41806
|
className: "save-button",
|
|
41807
41807
|
disabled: !_.trim(),
|
|
41808
41808
|
children: "Enregistrer"
|
|
@@ -41810,11 +41810,11 @@ const Nke = "_container_1pfsp_1", Ske = "_title_1pfsp_8", o$ = {
|
|
|
41810
41810
|
),
|
|
41811
41811
|
/* @__PURE__ */ s("button", { onClick: j, className: "cancel-button", children: /* @__PURE__ */ s(it, { className: "action-icon" }) })
|
|
41812
41812
|
] }) : /* @__PURE__ */ g(Oe, { children: [
|
|
41813
|
-
/* @__PURE__ */ s("span", { className: "translation-text", title:
|
|
41813
|
+
/* @__PURE__ */ s("span", { className: "translation-text", title: D.value, children: D.value }),
|
|
41814
41814
|
/* @__PURE__ */ s(
|
|
41815
41815
|
"button",
|
|
41816
41816
|
{
|
|
41817
|
-
onClick: () => P(
|
|
41817
|
+
onClick: () => P(D.language, D.value),
|
|
41818
41818
|
className: "edit-button",
|
|
41819
41819
|
title: "Éditer la traduction",
|
|
41820
41820
|
children: /* @__PURE__ */ s(gt, { className: "action-icon" })
|
|
@@ -41823,14 +41823,14 @@ const Nke = "_container_1pfsp_1", Ske = "_title_1pfsp_8", o$ = {
|
|
|
41823
41823
|
/* @__PURE__ */ s(
|
|
41824
41824
|
"button",
|
|
41825
41825
|
{
|
|
41826
|
-
onClick: () => r?.(e,
|
|
41826
|
+
onClick: () => r?.(e, D.language),
|
|
41827
41827
|
className: "delete-translation-button",
|
|
41828
41828
|
title: "Supprimer la traduction",
|
|
41829
41829
|
children: /* @__PURE__ */ s(it, { className: "action-icon" })
|
|
41830
41830
|
}
|
|
41831
41831
|
)
|
|
41832
41832
|
] }) })
|
|
41833
|
-
] },
|
|
41833
|
+
] }, D.language)),
|
|
41834
41834
|
p ? /* @__PURE__ */ g("div", { className: "add-language-row", children: [
|
|
41835
41835
|
/* @__PURE__ */ s("div", { className: "language-code", children: "+" }),
|
|
41836
41836
|
/* @__PURE__ */ g("div", { className: "add-language-content", children: [
|
|
@@ -41838,16 +41838,16 @@ const Nke = "_container_1pfsp_1", Ske = "_title_1pfsp_8", o$ = {
|
|
|
41838
41838
|
"select",
|
|
41839
41839
|
{
|
|
41840
41840
|
value: y,
|
|
41841
|
-
onChange: (
|
|
41841
|
+
onChange: (D) => m(D.target.value),
|
|
41842
41842
|
className: "language-select",
|
|
41843
41843
|
children: [
|
|
41844
41844
|
/* @__PURE__ */ s("option", { value: "", children: "Sélectionnez la langue" }),
|
|
41845
|
-
|
|
41846
|
-
|
|
41845
|
+
H.map((D) => /* @__PURE__ */ g("option", { value: D.code, children: [
|
|
41846
|
+
D.name,
|
|
41847
41847
|
" (",
|
|
41848
|
-
|
|
41848
|
+
D.code,
|
|
41849
41849
|
")"
|
|
41850
|
-
] },
|
|
41850
|
+
] }, D.code))
|
|
41851
41851
|
]
|
|
41852
41852
|
}
|
|
41853
41853
|
) }),
|
|
@@ -41856,11 +41856,11 @@ const Nke = "_container_1pfsp_1", Ske = "_title_1pfsp_8", o$ = {
|
|
|
41856
41856
|
{
|
|
41857
41857
|
type: "text",
|
|
41858
41858
|
value: v,
|
|
41859
|
-
onChange: (
|
|
41859
|
+
onChange: (D) => x(D.target.value),
|
|
41860
41860
|
placeholder: "Entrez la traduction...",
|
|
41861
41861
|
className: "translation-input",
|
|
41862
|
-
onKeyDown: (
|
|
41863
|
-
|
|
41862
|
+
onKeyDown: (D) => {
|
|
41863
|
+
D.key === "Enter" && B(), D.key === "Escape" && (u(!1), m(""), x(""));
|
|
41864
41864
|
}
|
|
41865
41865
|
}
|
|
41866
41866
|
),
|
|
@@ -41889,7 +41889,7 @@ const Nke = "_container_1pfsp_1", Ske = "_title_1pfsp_8", o$ = {
|
|
|
41889
41889
|
{
|
|
41890
41890
|
onClick: () => u(!0),
|
|
41891
41891
|
className: "show-add-button",
|
|
41892
|
-
disabled:
|
|
41892
|
+
disabled: H.length === 0,
|
|
41893
41893
|
children: [
|
|
41894
41894
|
/* @__PURE__ */ s("span", { className: "plus-icon", children: "+" }),
|
|
41895
41895
|
"Ajouter une langue"
|
|
@@ -42935,11 +42935,11 @@ const l6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
42935
42935
|
...h !== void 0 ? { height: h } : {},
|
|
42936
42936
|
...o !== void 0 ? { backgroundColor: o } : {},
|
|
42937
42937
|
...N
|
|
42938
|
-
},
|
|
42938
|
+
}, H = `${Qe.board} ${Qe[r]} ${p}`;
|
|
42939
42939
|
return /* @__PURE__ */ g(
|
|
42940
42940
|
"div",
|
|
42941
42941
|
{
|
|
42942
|
-
className:
|
|
42942
|
+
className: H,
|
|
42943
42943
|
onClick: C,
|
|
42944
42944
|
style: d !== void 0 ? { ...$, "--ds-value-scale": d } : $,
|
|
42945
42945
|
children: [
|
|
@@ -43342,7 +43342,7 @@ const l6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
43342
43342
|
style: C,
|
|
43343
43343
|
className: w = ""
|
|
43344
43344
|
}) => {
|
|
43345
|
-
const { user: b } = bt(), S = e || b, { currentTheme: A, switchTheme: N } = nC(), $ = U(null),
|
|
43345
|
+
const { user: b } = bt(), S = e || b, { currentTheme: A, switchTheme: N } = nC(), $ = U(null), H = U(null), [B, P] = V(!1), [q, j] = V({}), F = ve(() => {
|
|
43346
43346
|
const Y = [], Q = ({ variant: Ie }) => Ie === "sun" ? /* @__PURE__ */ s(
|
|
43347
43347
|
"svg",
|
|
43348
43348
|
{
|
|
@@ -43405,7 +43405,7 @@ const l6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
43405
43405
|
i,
|
|
43406
43406
|
c,
|
|
43407
43407
|
N
|
|
43408
|
-
]), K = v ?? F,
|
|
43408
|
+
]), K = v ?? F, D = () => {
|
|
43409
43409
|
if (!$.current) {
|
|
43410
43410
|
P((Y) => !Y);
|
|
43411
43411
|
return;
|
|
@@ -43438,9 +43438,9 @@ const l6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
43438
43438
|
window.removeEventListener("resize", Y), window.removeEventListener("orientationchange", Y);
|
|
43439
43439
|
};
|
|
43440
43440
|
}, [B, I]), R(() => {
|
|
43441
|
-
if (!B || !$.current || !
|
|
43441
|
+
if (!B || !$.current || !H.current) return;
|
|
43442
43442
|
const Y = () => {
|
|
43443
|
-
const pe = $.current.getBoundingClientRect(), Ie =
|
|
43443
|
+
const pe = $.current.getBoundingClientRect(), Ie = H.current.getBoundingClientRect(), fe = I?.x ?? 0, qe = I?.y ?? 0;
|
|
43444
43444
|
j((ue) => ue.left !== void 0 && ue.top !== void 0 && ue.left >= pe.right - 1 ? {
|
|
43445
43445
|
top: pe.bottom - Ie.height + qe,
|
|
43446
43446
|
left: ue.left + fe
|
|
@@ -43587,7 +43587,7 @@ const l6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
43587
43587
|
userSelect: "none",
|
|
43588
43588
|
...C
|
|
43589
43589
|
},
|
|
43590
|
-
onClick:
|
|
43590
|
+
onClick: D,
|
|
43591
43591
|
role: "button",
|
|
43592
43592
|
tabIndex: 0,
|
|
43593
43593
|
children: /* @__PURE__ */ s("div", { style: { display: "flex", alignItems: "center", gap: u, flex: 1, minWidth: 0 }, children: /* @__PURE__ */ s($e, {}) })
|
|
@@ -43596,7 +43596,7 @@ const l6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
43596
43596
|
/* @__PURE__ */ s(
|
|
43597
43597
|
mme,
|
|
43598
43598
|
{
|
|
43599
|
-
ref:
|
|
43599
|
+
ref: H,
|
|
43600
43600
|
isVisible: B,
|
|
43601
43601
|
onClose: () => P(!1),
|
|
43602
43602
|
items: K,
|
|
@@ -43720,7 +43720,7 @@ const l6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
43720
43720
|
className: N = "",
|
|
43721
43721
|
width: $ = "280px"
|
|
43722
43722
|
}) => {
|
|
43723
|
-
const
|
|
43723
|
+
const H = bt(), B = H.activeNav, P = H.setActiveNav, q = H.user, j = S.user || q;
|
|
43724
43724
|
return /* @__PURE__ */ g(
|
|
43725
43725
|
"div",
|
|
43726
43726
|
{
|
|
@@ -43750,13 +43750,13 @@ const l6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
43750
43750
|
children: F.title
|
|
43751
43751
|
}
|
|
43752
43752
|
),
|
|
43753
|
-
/* @__PURE__ */ s("div", { className: ft.sectionItems, style: { gap: c }, children: F.items.map((
|
|
43753
|
+
/* @__PURE__ */ s("div", { className: ft.sectionItems, style: { gap: c }, children: F.items.map((D) => /* @__PURE__ */ s(
|
|
43754
43754
|
yA,
|
|
43755
43755
|
{
|
|
43756
|
-
...
|
|
43757
|
-
isActive:
|
|
43756
|
+
...D,
|
|
43757
|
+
isActive: D.isActive === null ? D.isActive : B === D.id,
|
|
43758
43758
|
onClick: () => {
|
|
43759
|
-
|
|
43759
|
+
D.onClick && D.onClick(), D.isActive == null && P(D.id);
|
|
43760
43760
|
},
|
|
43761
43761
|
highlightColor: d,
|
|
43762
43762
|
activeColor: d,
|
|
@@ -43769,7 +43769,7 @@ const l6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
43769
43769
|
color: M,
|
|
43770
43770
|
style: u
|
|
43771
43771
|
},
|
|
43772
|
-
|
|
43772
|
+
D.id
|
|
43773
43773
|
)) })
|
|
43774
43774
|
] }, K)) })
|
|
43775
43775
|
] }),
|
|
@@ -43967,13 +43967,13 @@ const l6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
43967
43967
|
countFontWeight: A,
|
|
43968
43968
|
navContainerClassName: N,
|
|
43969
43969
|
navContainerStyle: $,
|
|
43970
|
-
rightContentClassName:
|
|
43970
|
+
rightContentClassName: H,
|
|
43971
43971
|
rightContentStyle: B,
|
|
43972
43972
|
rightActions: P,
|
|
43973
43973
|
activeSwitcherColor: q,
|
|
43974
43974
|
inactiveSwitcherColor: j
|
|
43975
43975
|
}) => {
|
|
43976
|
-
const { activeSubNav: F, setActiveSubNav: K, navCounts:
|
|
43976
|
+
const { activeSubNav: F, setActiveSubNav: K, navCounts: D } = bt();
|
|
43977
43977
|
return /* @__PURE__ */ g(
|
|
43978
43978
|
"div",
|
|
43979
43979
|
{
|
|
@@ -43995,7 +43995,7 @@ const l6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
43995
43995
|
className: `${CL.navContainer} ${N || ""}`,
|
|
43996
43996
|
style: { gap: l, ...$ },
|
|
43997
43997
|
children: e.map((O) => {
|
|
43998
|
-
const te = O.count !== void 0 ? O.count :
|
|
43998
|
+
const te = O.count !== void 0 ? O.count : D[O.id], ce = F === O.id || O.isActive;
|
|
43999
43999
|
return /* @__PURE__ */ s(
|
|
44000
44000
|
Tme,
|
|
44001
44001
|
{
|
|
@@ -44029,7 +44029,7 @@ const l6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
44029
44029
|
/* @__PURE__ */ g(
|
|
44030
44030
|
"div",
|
|
44031
44031
|
{
|
|
44032
|
-
className: `${CL.rightContent} ${
|
|
44032
|
+
className: `${CL.rightContent} ${H || ""}`,
|
|
44033
44033
|
style: { gap: h, ...B },
|
|
44034
44034
|
children: [
|
|
44035
44035
|
_ && /* @__PURE__ */ s(
|
|
@@ -44178,17 +44178,23 @@ const l6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
44178
44178
|
tableState: o,
|
|
44179
44179
|
handleSort: c
|
|
44180
44180
|
};
|
|
44181
|
-
}, Fme = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "#FFF", viewBox: "0 -960 960 960", ...e }, /* @__PURE__ */ J.createElement("path", { d: "M440-800v487L216-537l-56 57 320 320 320-320-56-57-224 224v-487z" })), Ome = je(Fme), Eme = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "#FFF", viewBox: "0 -960 960 960", ...e }, /* @__PURE__ */ J.createElement("path", { d: "M440-160v-487L216-423l-56-57 320-320 320 320-56 57-224-224v487z" })), Ume = je(Eme), Wme = ({
|
|
44182
|
-
|
|
44181
|
+
}, Fme = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "#FFF", viewBox: "0 -960 960 960", ...e }, /* @__PURE__ */ J.createElement("path", { d: "M440-800v487L216-537l-56 57 320 320 320-320-56-57-224 224v-487z" })), Ome = je(Fme), Eme = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "#FFF", viewBox: "0 -960 960 960", ...e }, /* @__PURE__ */ J.createElement("path", { d: "M440-160v-487L216-423l-56-57 320-320 320 320-56 57-224-224v487z" })), Ume = je(Eme), Wme = ({
|
|
44182
|
+
columns: e,
|
|
44183
|
+
sortBy: t,
|
|
44184
|
+
sortOrder: n,
|
|
44185
|
+
onSort: o,
|
|
44186
|
+
removeLabelSpan: i = !1
|
|
44187
|
+
}) => /* @__PURE__ */ s("thead", { children: /* @__PURE__ */ s("tr", { children: e.map((c, r) => {
|
|
44188
|
+
const d = t === c.key, l = !!c.sortable;
|
|
44183
44189
|
return /* @__PURE__ */ s(
|
|
44184
44190
|
"th",
|
|
44185
44191
|
{
|
|
44186
|
-
className: `${
|
|
44187
|
-
style: { width:
|
|
44188
|
-
onClick: () =>
|
|
44189
|
-
children: /* @__PURE__ */ g("div", { className: `th-content ${
|
|
44190
|
-
/* @__PURE__ */ s("span", { children:
|
|
44191
|
-
|
|
44192
|
+
className: `${c.className || ""}${l ? " sortable" : ""}`,
|
|
44193
|
+
style: { width: c.width, textAlign: c.align || "left" },
|
|
44194
|
+
onClick: () => l && o(String(c.key)),
|
|
44195
|
+
children: /* @__PURE__ */ g("div", { className: `th-content ${c.align ? `align-${c.align}` : ""}`, children: [
|
|
44196
|
+
i ? c.label : /* @__PURE__ */ s("span", { children: c.label }),
|
|
44197
|
+
l && /* @__PURE__ */ s(
|
|
44192
44198
|
"span",
|
|
44193
44199
|
{
|
|
44194
44200
|
className: "sort-icon-container",
|
|
@@ -44196,7 +44202,7 @@ const l6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
44196
44202
|
display: "inline-flex",
|
|
44197
44203
|
alignItems: "center"
|
|
44198
44204
|
},
|
|
44199
|
-
children:
|
|
44205
|
+
children: d && n === "asc" ? /* @__PURE__ */ s(
|
|
44200
44206
|
Ume,
|
|
44201
44207
|
{
|
|
44202
44208
|
width: 16,
|
|
@@ -44215,7 +44221,7 @@ const l6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
44215
44221
|
style: {
|
|
44216
44222
|
// matches header text (primary)
|
|
44217
44223
|
fill: "currentColor",
|
|
44218
|
-
opacity:
|
|
44224
|
+
opacity: d ? 1 : 0.5,
|
|
44219
44225
|
// slightly more visible than before against color?
|
|
44220
44226
|
transition: "all 0.2s ease"
|
|
44221
44227
|
}
|
|
@@ -44225,7 +44231,7 @@ const l6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
44225
44231
|
)
|
|
44226
44232
|
] })
|
|
44227
44233
|
},
|
|
44228
|
-
String(
|
|
44234
|
+
String(c.key) || r
|
|
44229
44235
|
);
|
|
44230
44236
|
}) }) }), Gme = ({
|
|
44231
44237
|
data: e,
|
|
@@ -44396,31 +44402,32 @@ const l6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
44396
44402
|
style: M,
|
|
44397
44403
|
rowStyle: v,
|
|
44398
44404
|
onRowClick: x,
|
|
44399
|
-
rowClassName: I
|
|
44405
|
+
rowClassName: I,
|
|
44406
|
+
removeLabelSpan: L = !1
|
|
44400
44407
|
}) => {
|
|
44401
|
-
const
|
|
44408
|
+
const C = ee.useMemo(
|
|
44402
44409
|
() => ({
|
|
44403
44410
|
...u
|
|
44404
44411
|
}),
|
|
44405
44412
|
[u]
|
|
44406
|
-
),
|
|
44413
|
+
), w = ee.useRef(null);
|
|
44407
44414
|
ee.useEffect(() => {
|
|
44408
44415
|
if (!m || !y || !f || n) return;
|
|
44409
|
-
const
|
|
44410
|
-
(
|
|
44411
|
-
|
|
44416
|
+
const H = new IntersectionObserver(
|
|
44417
|
+
(B) => {
|
|
44418
|
+
B[0].isIntersecting && y();
|
|
44412
44419
|
},
|
|
44413
44420
|
{ threshold: 0.1 }
|
|
44414
44421
|
);
|
|
44415
|
-
return
|
|
44422
|
+
return w.current && H.observe(w.current), () => H.disconnect();
|
|
44416
44423
|
}, [m, y, f, n]);
|
|
44417
|
-
const { tableState:
|
|
44424
|
+
const { tableState: b, handleSort: S } = Rme({
|
|
44418
44425
|
initialSortBy: null,
|
|
44419
44426
|
onSortChange: c
|
|
44420
|
-
}),
|
|
44421
|
-
const
|
|
44422
|
-
let
|
|
44423
|
-
|
|
44427
|
+
}), A = (k?.sortBy !== void 0 ? k.sortBy : b.sortBy) ?? void 0, N = k?.sortOrder !== void 0 ? k.sortOrder : b.sortOrder, $ = (H) => {
|
|
44428
|
+
const B = A, P = N;
|
|
44429
|
+
let q = "asc";
|
|
44430
|
+
B === H && (q = P === "asc" ? "desc" : "asc"), k?.sortBy !== void 0 ? c(H, q) : S(H);
|
|
44424
44431
|
};
|
|
44425
44432
|
return /* @__PURE__ */ g("div", { className: `table-container ${_ || ""}`, style: M, children: [
|
|
44426
44433
|
/* @__PURE__ */ g(
|
|
@@ -44450,29 +44457,30 @@ const l6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
44450
44457
|
Wme,
|
|
44451
44458
|
{
|
|
44452
44459
|
columns: t,
|
|
44453
|
-
sortBy:
|
|
44454
|
-
sortOrder:
|
|
44455
|
-
onSort:
|
|
44460
|
+
sortBy: A,
|
|
44461
|
+
sortOrder: N,
|
|
44462
|
+
onSort: $,
|
|
44463
|
+
removeLabelSpan: L
|
|
44456
44464
|
}
|
|
44457
44465
|
),
|
|
44458
44466
|
/* @__PURE__ */ s(
|
|
44459
44467
|
Gme,
|
|
44460
44468
|
{
|
|
44461
44469
|
data: e,
|
|
44462
|
-
columns: t.map((
|
|
44463
|
-
|
|
44464
|
-
render:
|
|
44470
|
+
columns: t.map((H) => ({
|
|
44471
|
+
...H,
|
|
44472
|
+
render: H.render ? (B) => H.render(B, {}) : void 0
|
|
44465
44473
|
})),
|
|
44466
44474
|
rowKey: r,
|
|
44467
44475
|
onRowClick: x,
|
|
44468
44476
|
isLoading: n,
|
|
44469
|
-
text:
|
|
44477
|
+
text: C,
|
|
44470
44478
|
rowStyle: typeof v == "function" ? v : v ? () => v : void 0,
|
|
44471
44479
|
rowClassName: I
|
|
44472
44480
|
}
|
|
44473
44481
|
)
|
|
44474
44482
|
] }),
|
|
44475
|
-
m && /* @__PURE__ */ s("div", { ref:
|
|
44483
|
+
m && /* @__PURE__ */ s("div", { ref: w, style: { height: 20, margin: 10 } })
|
|
44476
44484
|
] })
|
|
44477
44485
|
]
|
|
44478
44486
|
}
|
|
@@ -44482,7 +44490,7 @@ const l6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
44482
44490
|
{
|
|
44483
44491
|
state: o,
|
|
44484
44492
|
onPaginationChange: i,
|
|
44485
|
-
text:
|
|
44493
|
+
text: C,
|
|
44486
44494
|
onLoadMore: y,
|
|
44487
44495
|
infiniteScroll: m,
|
|
44488
44496
|
hasMore: f,
|
|
@@ -44575,14 +44583,14 @@ const l6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
44575
44583
|
labelColor: A,
|
|
44576
44584
|
placeholderColor: N,
|
|
44577
44585
|
borderRadius: $ = "var(--radius-content)",
|
|
44578
|
-
borderWidth:
|
|
44586
|
+
borderWidth: H = "0.0625rem",
|
|
44579
44587
|
boxShadow: B = "0 0.25rem 0.75rem rgba(0, 0, 0, 0.1)",
|
|
44580
44588
|
transitionDuration: P = "0.2s",
|
|
44581
44589
|
transitionTiming: q = "ease",
|
|
44582
44590
|
dateCellSize: j = "2.5rem",
|
|
44583
44591
|
headerTextColor: F = "#6c757d",
|
|
44584
44592
|
weekdayTextColor: K = "#6c757d",
|
|
44585
|
-
currentMonthDateColor:
|
|
44593
|
+
currentMonthDateColor: D = "#212529",
|
|
44586
44594
|
otherMonthDateColor: O = "#adb5bd",
|
|
44587
44595
|
selectedDateBgColor: te = "#00A6D9",
|
|
44588
44596
|
selectedDateTextColor: ce = "#ffffff",
|
|
@@ -44707,14 +44715,14 @@ const l6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
44707
44715
|
borderColor: d ? S || "#dc3545" : x || "#dee2e6",
|
|
44708
44716
|
color: I || "#212529",
|
|
44709
44717
|
borderRadius: $,
|
|
44710
|
-
borderWidth:
|
|
44718
|
+
borderWidth: H,
|
|
44711
44719
|
fontWeight: M,
|
|
44712
44720
|
transition: `all ${P} ${q}`
|
|
44713
44721
|
}, $A = {
|
|
44714
44722
|
backgroundColor: L || "#ffffff",
|
|
44715
44723
|
maxHeight: p,
|
|
44716
44724
|
borderRadius: $,
|
|
44717
|
-
borderWidth:
|
|
44725
|
+
borderWidth: H,
|
|
44718
44726
|
boxShadow: B,
|
|
44719
44727
|
transition: `opacity ${P} ${q}, transform ${P} ${q}`,
|
|
44720
44728
|
position: "fixed",
|
|
@@ -44926,7 +44934,7 @@ const l6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
44926
44934
|
style: {
|
|
44927
44935
|
width: j,
|
|
44928
44936
|
height: j,
|
|
44929
|
-
color: Me ? ce : Ei ?
|
|
44937
|
+
color: Me ? ce : Ei ? D : O,
|
|
44930
44938
|
backgroundColor: Me ? te : "transparent"
|
|
44931
44939
|
},
|
|
44932
44940
|
onMouseEnter: (ii) => {
|
|
@@ -45070,7 +45078,7 @@ const l6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
45070
45078
|
labelColor: N,
|
|
45071
45079
|
placeholderColor: $,
|
|
45072
45080
|
// Bordures et ombres
|
|
45073
|
-
border:
|
|
45081
|
+
border: H,
|
|
45074
45082
|
borderRadius: B = "var(--select-border-radius, 0.5rem)",
|
|
45075
45083
|
borderWidth: P = "var(--select-border-width, 0.0625rem)",
|
|
45076
45084
|
boxShadow: q = "var(--select-box-shadow, 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1))",
|
|
@@ -45079,7 +45087,7 @@ const l6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
45079
45087
|
transitionTiming: F = "var(--select-transition-timing, ease)",
|
|
45080
45088
|
// Scrollbars
|
|
45081
45089
|
scrollbarWidth: K = "var(--select-scrollbar-width, 0.375rem)",
|
|
45082
|
-
scrollbarTrackColor:
|
|
45090
|
+
scrollbarTrackColor: D = "var(--select-scrollbar-track-color, #f1f1f1)",
|
|
45083
45091
|
scrollbarThumbColor: O = "var(--select-scrollbar-thumb-color, #c1c1c1)",
|
|
45084
45092
|
width: te,
|
|
45085
45093
|
dropdownPosition: ce = "bottom",
|
|
@@ -45116,7 +45124,7 @@ const l6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
45116
45124
|
height: h,
|
|
45117
45125
|
padding: p,
|
|
45118
45126
|
backgroundColor: x || "var(--select-button-bg-color, #ffffff)",
|
|
45119
|
-
border:
|
|
45127
|
+
border: H,
|
|
45120
45128
|
borderColor: l ? A || "var(--select-error-color, #dc3545)" : I || "var(--select-button-border-color, #dee2e6)",
|
|
45121
45129
|
color: L || "var(--select-button-text-color, #212529)",
|
|
45122
45130
|
borderRadius: B,
|
|
@@ -45158,7 +45166,7 @@ const l6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
45158
45166
|
gap: v
|
|
45159
45167
|
}, Ue = {
|
|
45160
45168
|
"--scrollbar-width": K,
|
|
45161
|
-
"--scrollbar-track-color":
|
|
45169
|
+
"--scrollbar-track-color": D,
|
|
45162
45170
|
"--scrollbar-thumb-color": O
|
|
45163
45171
|
};
|
|
45164
45172
|
return /* @__PURE__ */ g(
|
|
@@ -45404,16 +45412,16 @@ const l6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
45404
45412
|
justifyContent: A = "",
|
|
45405
45413
|
headerLineHeight: N = "",
|
|
45406
45414
|
headerMinHeight: $ = "",
|
|
45407
|
-
contentSpace:
|
|
45415
|
+
contentSpace: H = ""
|
|
45408
45416
|
}) => {
|
|
45409
|
-
const B = o !== void 0 ? o : !!n, P = `${re.container} ${re[r]} ${re[u]} ${b ? re.disabled : ""}`, q = l === "white" ? re.valuePrimaryWhite : re.valuePrimaryBlack, j = l === "blue" ? re.valueSecondaryBlue : l === "white" ? re.valueSecondaryWhite : re.valueSecondaryBlack, F = (ce) => ce === void 0 ? void 0 : typeof ce == "number" ? `${ce}px` : ce, K = (ce) => ce === void 0 ? void 0 : ce,
|
|
45417
|
+
const B = o !== void 0 ? o : !!n, P = `${re.container} ${re[r]} ${re[u]} ${b ? re.disabled : ""}`, q = l === "white" ? re.valuePrimaryWhite : re.valuePrimaryBlack, j = l === "blue" ? re.valueSecondaryBlue : l === "white" ? re.valueSecondaryWhite : re.valueSecondaryBlack, F = (ce) => ce === void 0 ? void 0 : typeof ce == "number" ? `${ce}px` : ce, K = (ce) => ce === void 0 ? void 0 : ce, D = y === "vertical", O = c != null && c !== "" && c !== "-" && c !== "—", te = D ? re.valueRowVertical : re.valueRowHorizontal;
|
|
45410
45418
|
return /* @__PURE__ */ g("div", { className: `${P} ${p}`, style: { backgroundColor: C }, children: [
|
|
45411
45419
|
e && /* @__PURE__ */ s("div", { className: `${re.iconWrapper} ${re[S]}`, children: e }),
|
|
45412
45420
|
/* @__PURE__ */ g(
|
|
45413
45421
|
"div",
|
|
45414
45422
|
{
|
|
45415
45423
|
className: `${re.content} ${re[w]} ${O ? "" : re.singleValue} content-indicator-v2`,
|
|
45416
|
-
style: { justifyContent:
|
|
45424
|
+
style: { justifyContent: H },
|
|
45417
45425
|
children: [
|
|
45418
45426
|
/* @__PURE__ */ s(
|
|
45419
45427
|
"div",
|
|
@@ -45454,7 +45462,7 @@ const l6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
45454
45462
|
className: `${re.valuePrimary} ${q}`,
|
|
45455
45463
|
style: {
|
|
45456
45464
|
fontSize: F(
|
|
45457
|
-
v || (!O &&
|
|
45465
|
+
v || (!O && D ? "1.75rem" : void 0)
|
|
45458
45466
|
),
|
|
45459
45467
|
fontWeight: K(x),
|
|
45460
45468
|
color: h || void 0
|
|
@@ -45464,7 +45472,7 @@ const l6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
45464
45472
|
)
|
|
45465
45473
|
] }),
|
|
45466
45474
|
O && /* @__PURE__ */ g(Oe, { children: [
|
|
45467
|
-
!
|
|
45475
|
+
!D && /* @__PURE__ */ s(
|
|
45468
45476
|
"span",
|
|
45469
45477
|
{
|
|
45470
45478
|
className: re.valueSlash,
|
|
@@ -45546,12 +45554,12 @@ const l6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
45546
45554
|
/* @__PURE__ */ s(
|
|
45547
45555
|
"span",
|
|
45548
45556
|
{
|
|
45549
|
-
className: Be.genre
|
|
45557
|
+
className: `${Be.genre} genre-info-banner`,
|
|
45550
45558
|
style: { color: "#ffffff", background: m, fontSize: f },
|
|
45551
45559
|
children: t ?? "--"
|
|
45552
45560
|
}
|
|
45553
45561
|
),
|
|
45554
|
-
/* @__PURE__ */ s("span", { className: Be.gravite
|
|
45562
|
+
/* @__PURE__ */ s("span", { className: `${Be.gravite} gravite-info-banner`, children: n ?? "--" })
|
|
45555
45563
|
] }),
|
|
45556
45564
|
/* @__PURE__ */ s("div", { className: Be.orientationContainer, children: /* @__PURE__ */ s("div", { className: Be.service, style: { color: h }, children: r ?? "--" }) }),
|
|
45557
45565
|
/* @__PURE__ */ g("div", { className: Be.roomBedContainer, children: [
|
|
@@ -45563,7 +45571,7 @@ const l6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
45563
45571
|
d ? /* @__PURE__ */ s(
|
|
45564
45572
|
"div",
|
|
45565
45573
|
{
|
|
45566
|
-
className: Be.status
|
|
45574
|
+
className: `${Be.status} status-info-banner`,
|
|
45567
45575
|
style: {
|
|
45568
45576
|
color: u,
|
|
45569
45577
|
backgroundColor: y
|
|
@@ -45889,10 +45897,10 @@ const l6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
45889
45897
|
k(!0), L.length > 0 && M(L[0].toUpperCase()), x("");
|
|
45890
45898
|
}, $ = () => {
|
|
45891
45899
|
_ && v.trim() && (o(_, v.trim()), k(!1), M(""), x(""));
|
|
45892
|
-
},
|
|
45900
|
+
}, H = () => {
|
|
45893
45901
|
k(!1), M(""), x("");
|
|
45894
45902
|
}, B = (P) => {
|
|
45895
|
-
P.key === "Enter" ? $() : P.key === "Escape" &&
|
|
45903
|
+
P.key === "Enter" ? $() : P.key === "Escape" && H();
|
|
45896
45904
|
};
|
|
45897
45905
|
return /* @__PURE__ */ g("div", { className: "translation-key-v2", children: [
|
|
45898
45906
|
/* @__PURE__ */ g("div", { className: "header", children: [
|
|
@@ -45962,7 +45970,7 @@ const l6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
45962
45970
|
),
|
|
45963
45971
|
/* @__PURE__ */ g("div", { className: "add-actions", children: [
|
|
45964
45972
|
/* @__PURE__ */ s(mi, { size: 18, className: "action-icon confirm", onClick: $ }),
|
|
45965
|
-
/* @__PURE__ */ s(it, { size: 18, className: "action-icon cancel", onClick:
|
|
45973
|
+
/* @__PURE__ */ s(it, { size: 18, className: "action-icon cancel", onClick: H })
|
|
45966
45974
|
] })
|
|
45967
45975
|
] }) : L.length > 0 && /* @__PURE__ */ g("button", { className: "add-translation-btn", onClick: N, children: [
|
|
45968
45976
|
/* @__PURE__ */ s(Ko, { size: 16 }),
|
|
@@ -46215,9 +46223,9 @@ const l6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
46215
46223
|
}
|
|
46216
46224
|
C.length > I.current.length && M(null);
|
|
46217
46225
|
const q = () => {
|
|
46218
|
-
const
|
|
46219
|
-
if (!
|
|
46220
|
-
const te = O.getBoundingClientRect().width, ce = O.querySelector(`.${ae.actions}`), xe = ce ? ce.getBoundingClientRect().width : 80, mt = 56, we = c ? 80 : 0, $e = 16, Y = Array.from(
|
|
46226
|
+
const D = f.current, O = k.current;
|
|
46227
|
+
if (!D || !O) return;
|
|
46228
|
+
const te = O.getBoundingClientRect().width, ce = O.querySelector(`.${ae.actions}`), xe = ce ? ce.getBoundingClientRect().width : 80, mt = 56, we = c ? 80 : 0, $e = 16, Y = Array.from(D.querySelectorAll(`.${ae.tag}`));
|
|
46221
46229
|
Y.length === C.length && (I.current = Y.map((ke) => {
|
|
46222
46230
|
const Ae = ke.getBoundingClientRect(), He = ke.scrollWidth;
|
|
46223
46231
|
return Math.max(Ae.width, He, ke.offsetWidth || 0);
|
|
@@ -46268,7 +46276,7 @@ const l6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
46268
46276
|
o(j), u(""), M(null), h(!1);
|
|
46269
46277
|
}, N = (q) => {
|
|
46270
46278
|
q.preventDefault(), q.stopPropagation(), x((j) => !j);
|
|
46271
|
-
}, $ = _ != null && _ < C.length ? C.slice(_) : [],
|
|
46279
|
+
}, $ = _ != null && _ < C.length ? C.slice(_) : [], H = (q, j) => {
|
|
46272
46280
|
j.stopPropagation();
|
|
46273
46281
|
const F = C.filter((K) => K.value !== q);
|
|
46274
46282
|
o(F);
|
|
@@ -46301,7 +46309,7 @@ const l6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
46301
46309
|
{
|
|
46302
46310
|
type: "button",
|
|
46303
46311
|
className: ae.removeBtn,
|
|
46304
|
-
onClick: (F) =>
|
|
46312
|
+
onClick: (F) => H(q.value, F),
|
|
46305
46313
|
"aria-label": `Supprimer ${q.label}`,
|
|
46306
46314
|
children: /* @__PURE__ */ s("svg", { width: "10", height: "10", viewBox: "0 0 10 10", fill: "currentColor", children: /* @__PURE__ */ s(
|
|
46307
46315
|
"path",
|
|
@@ -46321,7 +46329,7 @@ const l6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
46321
46329
|
{
|
|
46322
46330
|
type: "button",
|
|
46323
46331
|
className: ae.removeBtn,
|
|
46324
|
-
onClick: (F) =>
|
|
46332
|
+
onClick: (F) => H(q.value, F),
|
|
46325
46333
|
"aria-label": `Supprimer ${q.label}`,
|
|
46326
46334
|
children: /* @__PURE__ */ s("svg", { width: "10", height: "10", viewBox: "0 0 10 10", fill: "currentColor", children: /* @__PURE__ */ s(
|
|
46327
46335
|
"path",
|
|
@@ -46373,7 +46381,7 @@ const l6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
46373
46381
|
type: "button",
|
|
46374
46382
|
className: ae.overflowDropdownItemRemove,
|
|
46375
46383
|
onClick: (F) => {
|
|
46376
|
-
F.stopPropagation(),
|
|
46384
|
+
F.stopPropagation(), H(q.value, F);
|
|
46377
46385
|
},
|
|
46378
46386
|
"aria-label": `Supprimer ${q.label}`,
|
|
46379
46387
|
children: /* @__PURE__ */ s("svg", { width: "10", height: "10", viewBox: "0 0 10 10", fill: "currentColor", children: /* @__PURE__ */ s(
|