@wakastellar/ui 0.1.10 → 0.1.11
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/components/waka-charts/types.d.ts +2 -2
- package/dist/index.cjs.js +10 -10
- package/dist/index.es.js +380 -389
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -755,7 +755,7 @@ function De(e) {
|
|
|
755
755
|
return e.formats[a] || e.formats[e.defaultWidth];
|
|
756
756
|
};
|
|
757
757
|
}
|
|
758
|
-
function
|
|
758
|
+
function de(e) {
|
|
759
759
|
return (t, a) => {
|
|
760
760
|
const n = a?.context ? String(a.context) : "standalone";
|
|
761
761
|
let s;
|
|
@@ -770,7 +770,7 @@ function ue(e) {
|
|
|
770
770
|
return s[i];
|
|
771
771
|
};
|
|
772
772
|
}
|
|
773
|
-
function
|
|
773
|
+
function ue(e) {
|
|
774
774
|
return (t, a = {}) => {
|
|
775
775
|
const n = a.width, s = n && e.matchPatterns[n] || e.matchPatterns[e.defaultMatchWidth], i = t.match(s);
|
|
776
776
|
if (!i)
|
|
@@ -1170,25 +1170,25 @@ const cs = {
|
|
|
1170
1170
|
}
|
|
1171
1171
|
}, Oc = (e) => Number(e) + ".", _c = {
|
|
1172
1172
|
ordinalNumber: Oc,
|
|
1173
|
-
era:
|
|
1173
|
+
era: de({
|
|
1174
1174
|
values: Rc,
|
|
1175
1175
|
defaultWidth: "wide"
|
|
1176
1176
|
}),
|
|
1177
|
-
quarter:
|
|
1177
|
+
quarter: de({
|
|
1178
1178
|
values: $c,
|
|
1179
1179
|
defaultWidth: "wide",
|
|
1180
1180
|
argumentCallback: (e) => e - 1
|
|
1181
1181
|
}),
|
|
1182
|
-
month:
|
|
1182
|
+
month: de({
|
|
1183
1183
|
values: pn,
|
|
1184
1184
|
formattingValues: Fc,
|
|
1185
1185
|
defaultWidth: "wide"
|
|
1186
1186
|
}),
|
|
1187
|
-
day:
|
|
1187
|
+
day: de({
|
|
1188
1188
|
values: Mc,
|
|
1189
1189
|
defaultWidth: "wide"
|
|
1190
1190
|
}),
|
|
1191
|
-
dayPeriod:
|
|
1191
|
+
dayPeriod: de({
|
|
1192
1192
|
values: Ic,
|
|
1193
1193
|
defaultWidth: "wide",
|
|
1194
1194
|
formattingValues: Lc,
|
|
@@ -1269,32 +1269,32 @@ const cs = {
|
|
|
1269
1269
|
parsePattern: jc,
|
|
1270
1270
|
valueCallback: (e) => parseInt(e)
|
|
1271
1271
|
}),
|
|
1272
|
-
era:
|
|
1272
|
+
era: ue({
|
|
1273
1273
|
matchPatterns: Vc,
|
|
1274
1274
|
defaultMatchWidth: "wide",
|
|
1275
1275
|
parsePatterns: Wc,
|
|
1276
1276
|
defaultParseWidth: "any"
|
|
1277
1277
|
}),
|
|
1278
|
-
quarter:
|
|
1278
|
+
quarter: ue({
|
|
1279
1279
|
matchPatterns: Uc,
|
|
1280
1280
|
defaultMatchWidth: "wide",
|
|
1281
1281
|
parsePatterns: Hc,
|
|
1282
1282
|
defaultParseWidth: "any",
|
|
1283
1283
|
valueCallback: (e) => e + 1
|
|
1284
1284
|
}),
|
|
1285
|
-
month:
|
|
1285
|
+
month: ue({
|
|
1286
1286
|
matchPatterns: Bc,
|
|
1287
1287
|
defaultMatchWidth: "wide",
|
|
1288
1288
|
parsePatterns: qc,
|
|
1289
1289
|
defaultParseWidth: "any"
|
|
1290
1290
|
}),
|
|
1291
|
-
day:
|
|
1291
|
+
day: ue({
|
|
1292
1292
|
matchPatterns: Gc,
|
|
1293
1293
|
defaultMatchWidth: "wide",
|
|
1294
1294
|
parsePatterns: Xc,
|
|
1295
1295
|
defaultParseWidth: "any"
|
|
1296
1296
|
}),
|
|
1297
|
-
dayPeriod:
|
|
1297
|
+
dayPeriod: ue({
|
|
1298
1298
|
matchPatterns: Yc,
|
|
1299
1299
|
defaultMatchWidth: "wide",
|
|
1300
1300
|
parsePatterns: Kc,
|
|
@@ -1511,24 +1511,24 @@ const cs = {
|
|
|
1511
1511
|
return a + "th";
|
|
1512
1512
|
}, cd = {
|
|
1513
1513
|
ordinalNumber: ld,
|
|
1514
|
-
era:
|
|
1514
|
+
era: de({
|
|
1515
1515
|
values: ad,
|
|
1516
1516
|
defaultWidth: "wide"
|
|
1517
1517
|
}),
|
|
1518
|
-
quarter:
|
|
1518
|
+
quarter: de({
|
|
1519
1519
|
values: rd,
|
|
1520
1520
|
defaultWidth: "wide",
|
|
1521
1521
|
argumentCallback: (e) => e - 1
|
|
1522
1522
|
}),
|
|
1523
|
-
month:
|
|
1523
|
+
month: de({
|
|
1524
1524
|
values: nd,
|
|
1525
1525
|
defaultWidth: "wide"
|
|
1526
1526
|
}),
|
|
1527
|
-
day:
|
|
1527
|
+
day: de({
|
|
1528
1528
|
values: sd,
|
|
1529
1529
|
defaultWidth: "wide"
|
|
1530
1530
|
}),
|
|
1531
|
-
dayPeriod:
|
|
1531
|
+
dayPeriod: de({
|
|
1532
1532
|
values: od,
|
|
1533
1533
|
defaultWidth: "wide",
|
|
1534
1534
|
formattingValues: id,
|
|
@@ -1607,32 +1607,32 @@ const cs = {
|
|
|
1607
1607
|
parsePattern: ud,
|
|
1608
1608
|
valueCallback: (e) => parseInt(e, 10)
|
|
1609
1609
|
}),
|
|
1610
|
-
era:
|
|
1610
|
+
era: ue({
|
|
1611
1611
|
matchPatterns: md,
|
|
1612
1612
|
defaultMatchWidth: "wide",
|
|
1613
1613
|
parsePatterns: fd,
|
|
1614
1614
|
defaultParseWidth: "any"
|
|
1615
1615
|
}),
|
|
1616
|
-
quarter:
|
|
1616
|
+
quarter: ue({
|
|
1617
1617
|
matchPatterns: hd,
|
|
1618
1618
|
defaultMatchWidth: "wide",
|
|
1619
1619
|
parsePatterns: pd,
|
|
1620
1620
|
defaultParseWidth: "any",
|
|
1621
1621
|
valueCallback: (e) => e + 1
|
|
1622
1622
|
}),
|
|
1623
|
-
month:
|
|
1623
|
+
month: ue({
|
|
1624
1624
|
matchPatterns: gd,
|
|
1625
1625
|
defaultMatchWidth: "wide",
|
|
1626
1626
|
parsePatterns: bd,
|
|
1627
1627
|
defaultParseWidth: "any"
|
|
1628
1628
|
}),
|
|
1629
|
-
day:
|
|
1629
|
+
day: ue({
|
|
1630
1630
|
matchPatterns: yd,
|
|
1631
1631
|
defaultMatchWidth: "wide",
|
|
1632
1632
|
parsePatterns: vd,
|
|
1633
1633
|
defaultParseWidth: "any"
|
|
1634
1634
|
}),
|
|
1635
|
-
dayPeriod:
|
|
1635
|
+
dayPeriod: ue({
|
|
1636
1636
|
matchPatterns: wd,
|
|
1637
1637
|
defaultMatchWidth: "any",
|
|
1638
1638
|
parsePatterns: xd,
|
|
@@ -1900,24 +1900,24 @@ const cs = {
|
|
|
1900
1900
|
}
|
|
1901
1901
|
}, Wd = (e, t) => Number(e) + "º", Ud = {
|
|
1902
1902
|
ordinalNumber: Wd,
|
|
1903
|
-
era:
|
|
1903
|
+
era: de({
|
|
1904
1904
|
values: Ld,
|
|
1905
1905
|
defaultWidth: "wide"
|
|
1906
1906
|
}),
|
|
1907
|
-
quarter:
|
|
1907
|
+
quarter: de({
|
|
1908
1908
|
values: Od,
|
|
1909
1909
|
defaultWidth: "wide",
|
|
1910
1910
|
argumentCallback: (e) => Number(e) - 1
|
|
1911
1911
|
}),
|
|
1912
|
-
month:
|
|
1912
|
+
month: de({
|
|
1913
1913
|
values: _d,
|
|
1914
1914
|
defaultWidth: "wide"
|
|
1915
1915
|
}),
|
|
1916
|
-
day:
|
|
1916
|
+
day: de({
|
|
1917
1917
|
values: zd,
|
|
1918
1918
|
defaultWidth: "wide"
|
|
1919
1919
|
}),
|
|
1920
|
-
dayPeriod:
|
|
1920
|
+
dayPeriod: de({
|
|
1921
1921
|
values: jd,
|
|
1922
1922
|
defaultWidth: "wide",
|
|
1923
1923
|
formattingValues: Vd,
|
|
@@ -2002,32 +2002,32 @@ const cs = {
|
|
|
2002
2002
|
return parseInt(e, 10);
|
|
2003
2003
|
}
|
|
2004
2004
|
}),
|
|
2005
|
-
era:
|
|
2005
|
+
era: ue({
|
|
2006
2006
|
matchPatterns: qd,
|
|
2007
2007
|
defaultMatchWidth: "wide",
|
|
2008
2008
|
parsePatterns: Gd,
|
|
2009
2009
|
defaultParseWidth: "any"
|
|
2010
2010
|
}),
|
|
2011
|
-
quarter:
|
|
2011
|
+
quarter: ue({
|
|
2012
2012
|
matchPatterns: Xd,
|
|
2013
2013
|
defaultMatchWidth: "wide",
|
|
2014
2014
|
parsePatterns: Yd,
|
|
2015
2015
|
defaultParseWidth: "any",
|
|
2016
2016
|
valueCallback: (e) => e + 1
|
|
2017
2017
|
}),
|
|
2018
|
-
month:
|
|
2018
|
+
month: ue({
|
|
2019
2019
|
matchPatterns: Kd,
|
|
2020
2020
|
defaultMatchWidth: "wide",
|
|
2021
2021
|
parsePatterns: Jd,
|
|
2022
2022
|
defaultParseWidth: "any"
|
|
2023
2023
|
}),
|
|
2024
|
-
day:
|
|
2024
|
+
day: ue({
|
|
2025
2025
|
matchPatterns: Qd,
|
|
2026
2026
|
defaultMatchWidth: "wide",
|
|
2027
2027
|
parsePatterns: Zd,
|
|
2028
2028
|
defaultParseWidth: "any"
|
|
2029
2029
|
}),
|
|
2030
|
-
dayPeriod:
|
|
2030
|
+
dayPeriod: ue({
|
|
2031
2031
|
matchPatterns: eu,
|
|
2032
2032
|
defaultMatchWidth: "any",
|
|
2033
2033
|
parsePatterns: tu,
|
|
@@ -2240,24 +2240,24 @@ const cs = {
|
|
|
2240
2240
|
(n) => n.isToken && n.value === "do" ? { isToken: !0, value: "d" } : n
|
|
2241
2241
|
),
|
|
2242
2242
|
ordinalNumber: gu,
|
|
2243
|
-
era:
|
|
2243
|
+
era: de({
|
|
2244
2244
|
values: uu,
|
|
2245
2245
|
defaultWidth: "wide"
|
|
2246
2246
|
}),
|
|
2247
|
-
quarter:
|
|
2247
|
+
quarter: de({
|
|
2248
2248
|
values: mu,
|
|
2249
2249
|
defaultWidth: "wide",
|
|
2250
2250
|
argumentCallback: (e) => e - 1
|
|
2251
2251
|
}),
|
|
2252
|
-
month:
|
|
2252
|
+
month: de({
|
|
2253
2253
|
values: fu,
|
|
2254
2254
|
defaultWidth: "wide"
|
|
2255
2255
|
}),
|
|
2256
|
-
day:
|
|
2256
|
+
day: de({
|
|
2257
2257
|
values: hu,
|
|
2258
2258
|
defaultWidth: "wide"
|
|
2259
2259
|
}),
|
|
2260
|
-
dayPeriod:
|
|
2260
|
+
dayPeriod: de({
|
|
2261
2261
|
values: pu,
|
|
2262
2262
|
defaultWidth: "wide"
|
|
2263
2263
|
})
|
|
@@ -2334,32 +2334,32 @@ const cs = {
|
|
|
2334
2334
|
parsePattern: wu,
|
|
2335
2335
|
valueCallback: (e) => parseInt(e)
|
|
2336
2336
|
}),
|
|
2337
|
-
era:
|
|
2337
|
+
era: ue({
|
|
2338
2338
|
matchPatterns: xu,
|
|
2339
2339
|
defaultMatchWidth: "wide",
|
|
2340
2340
|
parsePatterns: Nu,
|
|
2341
2341
|
defaultParseWidth: "any"
|
|
2342
2342
|
}),
|
|
2343
|
-
quarter:
|
|
2343
|
+
quarter: ue({
|
|
2344
2344
|
matchPatterns: Cu,
|
|
2345
2345
|
defaultMatchWidth: "wide",
|
|
2346
2346
|
parsePatterns: Su,
|
|
2347
2347
|
defaultParseWidth: "any",
|
|
2348
2348
|
valueCallback: (e) => e + 1
|
|
2349
2349
|
}),
|
|
2350
|
-
month:
|
|
2350
|
+
month: ue({
|
|
2351
2351
|
matchPatterns: ku,
|
|
2352
2352
|
defaultMatchWidth: "wide",
|
|
2353
2353
|
parsePatterns: Eu,
|
|
2354
2354
|
defaultParseWidth: "any"
|
|
2355
2355
|
}),
|
|
2356
|
-
day:
|
|
2356
|
+
day: ue({
|
|
2357
2357
|
matchPatterns: Tu,
|
|
2358
2358
|
defaultMatchWidth: "wide",
|
|
2359
2359
|
parsePatterns: Au,
|
|
2360
2360
|
defaultParseWidth: "any"
|
|
2361
2361
|
}),
|
|
2362
|
-
dayPeriod:
|
|
2362
|
+
dayPeriod: ue({
|
|
2363
2363
|
matchPatterns: Du,
|
|
2364
2364
|
defaultMatchWidth: "any",
|
|
2365
2365
|
parsePatterns: Pu,
|
|
@@ -2632,24 +2632,24 @@ const ju = {
|
|
|
2632
2632
|
return String(a);
|
|
2633
2633
|
}, Yu = {
|
|
2634
2634
|
ordinalNumber: Xu,
|
|
2635
|
-
era:
|
|
2635
|
+
era: de({
|
|
2636
2636
|
values: Wu,
|
|
2637
2637
|
defaultWidth: "wide"
|
|
2638
2638
|
}),
|
|
2639
|
-
quarter:
|
|
2639
|
+
quarter: de({
|
|
2640
2640
|
values: Uu,
|
|
2641
2641
|
defaultWidth: "wide",
|
|
2642
2642
|
argumentCallback: (e) => e - 1
|
|
2643
2643
|
}),
|
|
2644
|
-
month:
|
|
2644
|
+
month: de({
|
|
2645
2645
|
values: Hu,
|
|
2646
2646
|
defaultWidth: "wide"
|
|
2647
2647
|
}),
|
|
2648
|
-
day:
|
|
2648
|
+
day: de({
|
|
2649
2649
|
values: Bu,
|
|
2650
2650
|
defaultWidth: "wide"
|
|
2651
2651
|
}),
|
|
2652
|
-
dayPeriod:
|
|
2652
|
+
dayPeriod: de({
|
|
2653
2653
|
values: qu,
|
|
2654
2654
|
defaultWidth: "wide",
|
|
2655
2655
|
formattingValues: Gu,
|
|
@@ -2728,32 +2728,32 @@ const ju = {
|
|
|
2728
2728
|
parsePattern: Ju,
|
|
2729
2729
|
valueCallback: (e) => parseInt(e, 10)
|
|
2730
2730
|
}),
|
|
2731
|
-
era:
|
|
2731
|
+
era: ue({
|
|
2732
2732
|
matchPatterns: Qu,
|
|
2733
2733
|
defaultMatchWidth: "wide",
|
|
2734
2734
|
parsePatterns: Zu,
|
|
2735
2735
|
defaultParseWidth: "any"
|
|
2736
2736
|
}),
|
|
2737
|
-
quarter:
|
|
2737
|
+
quarter: ue({
|
|
2738
2738
|
matchPatterns: em,
|
|
2739
2739
|
defaultMatchWidth: "wide",
|
|
2740
2740
|
parsePatterns: tm,
|
|
2741
2741
|
defaultParseWidth: "any",
|
|
2742
2742
|
valueCallback: (e) => e + 1
|
|
2743
2743
|
}),
|
|
2744
|
-
month:
|
|
2744
|
+
month: ue({
|
|
2745
2745
|
matchPatterns: am,
|
|
2746
2746
|
defaultMatchWidth: "wide",
|
|
2747
2747
|
parsePatterns: rm,
|
|
2748
2748
|
defaultParseWidth: "any"
|
|
2749
2749
|
}),
|
|
2750
|
-
day:
|
|
2750
|
+
day: ue({
|
|
2751
2751
|
matchPatterns: nm,
|
|
2752
2752
|
defaultMatchWidth: "wide",
|
|
2753
2753
|
parsePatterns: sm,
|
|
2754
2754
|
defaultParseWidth: "any"
|
|
2755
2755
|
}),
|
|
2756
|
-
dayPeriod:
|
|
2756
|
+
dayPeriod: ue({
|
|
2757
2757
|
matchPatterns: om,
|
|
2758
2758
|
defaultMatchWidth: "any",
|
|
2759
2759
|
parsePatterns: im,
|
|
@@ -3005,24 +3005,24 @@ const ju = {
|
|
|
3005
3005
|
}
|
|
3006
3006
|
}, Sm = {
|
|
3007
3007
|
ordinalNumber: Cm,
|
|
3008
|
-
era:
|
|
3008
|
+
era: de({
|
|
3009
3009
|
values: bm,
|
|
3010
3010
|
defaultWidth: "wide"
|
|
3011
3011
|
}),
|
|
3012
|
-
quarter:
|
|
3012
|
+
quarter: de({
|
|
3013
3013
|
values: ym,
|
|
3014
3014
|
defaultWidth: "wide",
|
|
3015
3015
|
argumentCallback: (e) => Number(e) - 1
|
|
3016
3016
|
}),
|
|
3017
|
-
month:
|
|
3017
|
+
month: de({
|
|
3018
3018
|
values: vm,
|
|
3019
3019
|
defaultWidth: "wide"
|
|
3020
3020
|
}),
|
|
3021
|
-
day:
|
|
3021
|
+
day: de({
|
|
3022
3022
|
values: wm,
|
|
3023
3023
|
defaultWidth: "wide"
|
|
3024
3024
|
}),
|
|
3025
|
-
dayPeriod:
|
|
3025
|
+
dayPeriod: de({
|
|
3026
3026
|
values: xm,
|
|
3027
3027
|
defaultWidth: "wide",
|
|
3028
3028
|
formattingValues: Nm,
|
|
@@ -3088,32 +3088,32 @@ const ju = {
|
|
|
3088
3088
|
return parseInt(e, 10);
|
|
3089
3089
|
}
|
|
3090
3090
|
}),
|
|
3091
|
-
era:
|
|
3091
|
+
era: ue({
|
|
3092
3092
|
matchPatterns: Tm,
|
|
3093
3093
|
defaultMatchWidth: "wide",
|
|
3094
3094
|
parsePatterns: Am,
|
|
3095
3095
|
defaultParseWidth: "any"
|
|
3096
3096
|
}),
|
|
3097
|
-
quarter:
|
|
3097
|
+
quarter: ue({
|
|
3098
3098
|
matchPatterns: Dm,
|
|
3099
3099
|
defaultMatchWidth: "wide",
|
|
3100
3100
|
parsePatterns: Pm,
|
|
3101
3101
|
defaultParseWidth: "any",
|
|
3102
3102
|
valueCallback: (e) => e + 1
|
|
3103
3103
|
}),
|
|
3104
|
-
month:
|
|
3104
|
+
month: ue({
|
|
3105
3105
|
matchPatterns: Rm,
|
|
3106
3106
|
defaultMatchWidth: "wide",
|
|
3107
3107
|
parsePatterns: $m,
|
|
3108
3108
|
defaultParseWidth: "any"
|
|
3109
3109
|
}),
|
|
3110
|
-
day:
|
|
3110
|
+
day: ue({
|
|
3111
3111
|
matchPatterns: Fm,
|
|
3112
3112
|
defaultMatchWidth: "wide",
|
|
3113
3113
|
parsePatterns: Mm,
|
|
3114
3114
|
defaultParseWidth: "any"
|
|
3115
3115
|
}),
|
|
3116
|
-
dayPeriod:
|
|
3116
|
+
dayPeriod: ue({
|
|
3117
3117
|
matchPatterns: Im,
|
|
3118
3118
|
defaultMatchWidth: "any",
|
|
3119
3119
|
parsePatterns: Lm,
|
|
@@ -3352,24 +3352,24 @@ const ju = {
|
|
|
3352
3352
|
}
|
|
3353
3353
|
}, Qm = (e, t) => Number(e) + "º", Zm = {
|
|
3354
3354
|
ordinalNumber: Qm,
|
|
3355
|
-
era:
|
|
3355
|
+
era: de({
|
|
3356
3356
|
values: qm,
|
|
3357
3357
|
defaultWidth: "wide"
|
|
3358
3358
|
}),
|
|
3359
|
-
quarter:
|
|
3359
|
+
quarter: de({
|
|
3360
3360
|
values: Gm,
|
|
3361
3361
|
defaultWidth: "wide",
|
|
3362
3362
|
argumentCallback: (e) => e - 1
|
|
3363
3363
|
}),
|
|
3364
|
-
month:
|
|
3364
|
+
month: de({
|
|
3365
3365
|
values: Xm,
|
|
3366
3366
|
defaultWidth: "wide"
|
|
3367
3367
|
}),
|
|
3368
|
-
day:
|
|
3368
|
+
day: de({
|
|
3369
3369
|
values: Ym,
|
|
3370
3370
|
defaultWidth: "wide"
|
|
3371
3371
|
}),
|
|
3372
|
-
dayPeriod:
|
|
3372
|
+
dayPeriod: de({
|
|
3373
3373
|
values: Km,
|
|
3374
3374
|
defaultWidth: "wide",
|
|
3375
3375
|
formattingValues: Jm,
|
|
@@ -3452,32 +3452,32 @@ const ju = {
|
|
|
3452
3452
|
parsePattern: tf,
|
|
3453
3453
|
valueCallback: (e) => parseInt(e, 10)
|
|
3454
3454
|
}),
|
|
3455
|
-
era:
|
|
3455
|
+
era: ue({
|
|
3456
3456
|
matchPatterns: af,
|
|
3457
3457
|
defaultMatchWidth: "wide",
|
|
3458
3458
|
parsePatterns: rf,
|
|
3459
3459
|
defaultParseWidth: "any"
|
|
3460
3460
|
}),
|
|
3461
|
-
quarter:
|
|
3461
|
+
quarter: ue({
|
|
3462
3462
|
matchPatterns: nf,
|
|
3463
3463
|
defaultMatchWidth: "wide",
|
|
3464
3464
|
parsePatterns: sf,
|
|
3465
3465
|
defaultParseWidth: "any",
|
|
3466
3466
|
valueCallback: (e) => e + 1
|
|
3467
3467
|
}),
|
|
3468
|
-
month:
|
|
3468
|
+
month: ue({
|
|
3469
3469
|
matchPatterns: of,
|
|
3470
3470
|
defaultMatchWidth: "wide",
|
|
3471
3471
|
parsePatterns: lf,
|
|
3472
3472
|
defaultParseWidth: "any"
|
|
3473
3473
|
}),
|
|
3474
|
-
day:
|
|
3474
|
+
day: ue({
|
|
3475
3475
|
matchPatterns: cf,
|
|
3476
3476
|
defaultMatchWidth: "wide",
|
|
3477
3477
|
parsePatterns: df,
|
|
3478
3478
|
defaultParseWidth: "any"
|
|
3479
3479
|
}),
|
|
3480
|
-
dayPeriod:
|
|
3480
|
+
dayPeriod: ue({
|
|
3481
3481
|
matchPatterns: uf,
|
|
3482
3482
|
defaultMatchWidth: "any",
|
|
3483
3483
|
parsePatterns: mf,
|
|
@@ -3739,24 +3739,24 @@ const wf = {
|
|
|
3739
3739
|
}
|
|
3740
3740
|
}, Df = {
|
|
3741
3741
|
ordinalNumber: Af,
|
|
3742
|
-
era:
|
|
3742
|
+
era: de({
|
|
3743
3743
|
values: Nf,
|
|
3744
3744
|
defaultWidth: "wide"
|
|
3745
3745
|
}),
|
|
3746
|
-
quarter:
|
|
3746
|
+
quarter: de({
|
|
3747
3747
|
values: Cf,
|
|
3748
3748
|
defaultWidth: "wide",
|
|
3749
3749
|
argumentCallback: (e) => e - 1
|
|
3750
3750
|
}),
|
|
3751
|
-
month:
|
|
3751
|
+
month: de({
|
|
3752
3752
|
values: Sf,
|
|
3753
3753
|
defaultWidth: "wide"
|
|
3754
3754
|
}),
|
|
3755
|
-
day:
|
|
3755
|
+
day: de({
|
|
3756
3756
|
values: kf,
|
|
3757
3757
|
defaultWidth: "wide"
|
|
3758
3758
|
}),
|
|
3759
|
-
dayPeriod:
|
|
3759
|
+
dayPeriod: de({
|
|
3760
3760
|
values: Ef,
|
|
3761
3761
|
defaultWidth: "wide",
|
|
3762
3762
|
formattingValues: Tf,
|
|
@@ -3833,32 +3833,32 @@ const wf = {
|
|
|
3833
3833
|
parsePattern: Rf,
|
|
3834
3834
|
valueCallback: (e) => parseInt(e, 10)
|
|
3835
3835
|
}),
|
|
3836
|
-
era:
|
|
3836
|
+
era: ue({
|
|
3837
3837
|
matchPatterns: $f,
|
|
3838
3838
|
defaultMatchWidth: "wide",
|
|
3839
3839
|
parsePatterns: Ff,
|
|
3840
3840
|
defaultParseWidth: "any"
|
|
3841
3841
|
}),
|
|
3842
|
-
quarter:
|
|
3842
|
+
quarter: ue({
|
|
3843
3843
|
matchPatterns: Mf,
|
|
3844
3844
|
defaultMatchWidth: "wide",
|
|
3845
3845
|
parsePatterns: If,
|
|
3846
3846
|
defaultParseWidth: "any",
|
|
3847
3847
|
valueCallback: (e) => e + 1
|
|
3848
3848
|
}),
|
|
3849
|
-
month:
|
|
3849
|
+
month: ue({
|
|
3850
3850
|
matchPatterns: Lf,
|
|
3851
3851
|
defaultMatchWidth: "wide",
|
|
3852
3852
|
parsePatterns: Of,
|
|
3853
3853
|
defaultParseWidth: "any"
|
|
3854
3854
|
}),
|
|
3855
|
-
day:
|
|
3855
|
+
day: ue({
|
|
3856
3856
|
matchPatterns: _f,
|
|
3857
3857
|
defaultMatchWidth: "wide",
|
|
3858
3858
|
parsePatterns: zf,
|
|
3859
3859
|
defaultParseWidth: "any"
|
|
3860
3860
|
}),
|
|
3861
|
-
dayPeriod:
|
|
3861
|
+
dayPeriod: ue({
|
|
3862
3862
|
matchPatterns: jf,
|
|
3863
3863
|
defaultMatchWidth: "any",
|
|
3864
3864
|
parsePatterns: Vf,
|
|
@@ -4879,25 +4879,25 @@ function Gf() {
|
|
|
4879
4879
|
if (j) {
|
|
4880
4880
|
if (F = u(L, O, p, T), !F || F.index >= p.length)
|
|
4881
4881
|
break;
|
|
4882
|
-
var
|
|
4883
|
-
for (
|
|
4884
|
-
M = M.next,
|
|
4885
|
-
if (
|
|
4882
|
+
var J = F.index, G = F.index + F[0].length, Q = O;
|
|
4883
|
+
for (Q += M.value.length; J >= Q; )
|
|
4884
|
+
M = M.next, Q += M.value.length;
|
|
4885
|
+
if (Q -= M.value.length, O = Q, M.value instanceof l)
|
|
4886
4886
|
continue;
|
|
4887
|
-
for (var H = M; H !== v.tail && (
|
|
4888
|
-
I++,
|
|
4889
|
-
I--, R = p.slice(O,
|
|
4887
|
+
for (var H = M; H !== v.tail && (Q < G || typeof H.value == "string"); H = H.next)
|
|
4888
|
+
I++, Q += H.value.length;
|
|
4889
|
+
I--, R = p.slice(O, Q), F.index -= O;
|
|
4890
4890
|
} else if (F = u(L, 0, R, T), !F)
|
|
4891
4891
|
continue;
|
|
4892
|
-
var
|
|
4893
|
-
D &&
|
|
4892
|
+
var J = F.index, Y = F[0], K = R.slice(0, J), ee = R.slice(J + Y.length), me = O + R.length;
|
|
4893
|
+
D && me > D.reach && (D.reach = me);
|
|
4894
4894
|
var q = M.prev;
|
|
4895
|
-
|
|
4896
|
-
var B = new l(P, W ? c.tokenize(
|
|
4897
|
-
if (M = b(v, q, B),
|
|
4895
|
+
K && (q = b(v, q, K), O += K.length), y(v, q, I);
|
|
4896
|
+
var B = new l(P, W ? c.tokenize(Y, W) : Y, z, Y);
|
|
4897
|
+
if (M = b(v, q, B), ee && b(v, M, ee), I > 1) {
|
|
4898
4898
|
var re = {
|
|
4899
4899
|
cause: P + "," + $,
|
|
4900
|
-
reach:
|
|
4900
|
+
reach: me
|
|
4901
4901
|
};
|
|
4902
4902
|
m(p, v, w, M.prev, O, re), D && re.reach > D.reach && (D.reach = re.reach);
|
|
4903
4903
|
}
|
|
@@ -10485,14 +10485,14 @@ const Ev = ({
|
|
|
10485
10485
|
onSwipeRight: I,
|
|
10486
10486
|
onSwipeUp: F,
|
|
10487
10487
|
onSwipeDown: G,
|
|
10488
|
-
onLoadStart:
|
|
10488
|
+
onLoadStart: Q,
|
|
10489
10489
|
onLoadEnd: H,
|
|
10490
|
-
onError:
|
|
10491
|
-
onReady:
|
|
10492
|
-
onDestroy:
|
|
10490
|
+
onError: J,
|
|
10491
|
+
onReady: Y,
|
|
10492
|
+
onDestroy: K,
|
|
10493
10493
|
// Options avancées
|
|
10494
|
-
loop:
|
|
10495
|
-
pauseOnHover:
|
|
10494
|
+
loop: ee = !0,
|
|
10495
|
+
pauseOnHover: me = !0,
|
|
10496
10496
|
pauseOnFocus: q = !0,
|
|
10497
10497
|
pauseOnTouch: B = !0,
|
|
10498
10498
|
keyboardNavigation: re = !0,
|
|
@@ -10509,7 +10509,7 @@ const Ev = ({
|
|
|
10509
10509
|
customControls: Ca,
|
|
10510
10510
|
customOverlay: Sa,
|
|
10511
10511
|
customThumbnails: ua,
|
|
10512
|
-
customIndicators:
|
|
10512
|
+
customIndicators: Z,
|
|
10513
10513
|
customNavigation: le,
|
|
10514
10514
|
// Accessibilité
|
|
10515
10515
|
ariaLabel: _e = "Carrousel d'images",
|
|
@@ -10548,9 +10548,9 @@ const Ev = ({
|
|
|
10548
10548
|
}
|
|
10549
10549
|
}, [C]), St = Ae(() => y === "auto" ? "" : y === "dark" ? "dark" : "light", [y]), _t = X(() => {
|
|
10550
10550
|
ie.current && clearInterval(ie.current), mt && Ue && e.length > 1 && (ie.current = setInterval(() => {
|
|
10551
|
-
ka((ae) =>
|
|
10551
|
+
ka((ae) => ee ? (ae + 1) % e.length : Math.min(ae + 1, e.length - 1));
|
|
10552
10552
|
}, a));
|
|
10553
|
-
}, [mt, Ue, e.length, a,
|
|
10553
|
+
}, [mt, Ue, e.length, a, ee]), Qt = X(() => {
|
|
10554
10554
|
ie.current && (clearInterval(ie.current), ie.current = null);
|
|
10555
10555
|
}, []), ts = X(() => {
|
|
10556
10556
|
if (!mt || !t) return;
|
|
@@ -10563,13 +10563,13 @@ const Ev = ({
|
|
|
10563
10563
|
Ne(() => (mt ? (_t(), ts()) : (Qt(), ir(0)), () => Qt()), [mt, _t, Qt, ts]);
|
|
10564
10564
|
const Aa = X(() => {
|
|
10565
10565
|
if (!Ue) return;
|
|
10566
|
-
const ae =
|
|
10566
|
+
const ae = ee ? (ut - 1 + e.length) % e.length : Math.max(ut - 1, 0);
|
|
10567
10567
|
Ct && !Ct(ut, ae) || (ka(ae), V?.("prev"));
|
|
10568
|
-
}, [Ue, ut, e.length,
|
|
10568
|
+
}, [Ue, ut, e.length, ee, Ct, V]), Da = X(() => {
|
|
10569
10569
|
if (!Ue) return;
|
|
10570
|
-
const ae =
|
|
10570
|
+
const ae = ee ? (ut + 1) % e.length : Math.min(ut + 1, e.length - 1);
|
|
10571
10571
|
Ct && !Ct(ut, ae) || (ka(ae), V?.("next"));
|
|
10572
|
-
}, [Ue, ut, e.length,
|
|
10572
|
+
}, [Ue, ut, e.length, ee, Ct, V]), as = X((ae) => {
|
|
10573
10573
|
!Ue || ae < 0 || ae >= e.length || Ct && !Ct(ut, ae) || (ka(ae), z?.(ae));
|
|
10574
10574
|
}, [Ue, ut, e.length, Ct, z]), Si = X((ae) => {
|
|
10575
10575
|
if (!re) return;
|
|
@@ -10611,8 +10611,8 @@ const Ev = ({
|
|
|
10611
10611
|
}, [ye, Ea, O, ge, I, R, G, F, Aa, Da]), Ti = X((ae) => {
|
|
10612
10612
|
sr((ve) => /* @__PURE__ */ new Set([...ve, ae])), Hr(!1), H?.(ae);
|
|
10613
10613
|
}, [H]), Ai = X((ae, ve) => {
|
|
10614
|
-
es(!0), Hr(!1),
|
|
10615
|
-
}, [
|
|
10614
|
+
es(!0), Hr(!1), J?.(ae, ve);
|
|
10615
|
+
}, [J]);
|
|
10616
10616
|
Ne(() => {
|
|
10617
10617
|
pe && (P?.($e, pe), Ur?.($e));
|
|
10618
10618
|
}, [$e, pe, P, Ur]);
|
|
@@ -10627,17 +10627,17 @@ const Ev = ({
|
|
|
10627
10627
|
}, [pe, $e, _]), $i = X(() => {
|
|
10628
10628
|
pe && W?.(pe, $e);
|
|
10629
10629
|
}, [pe, $e, W]), Fi = X(() => {
|
|
10630
|
-
|
|
10631
|
-
}, [
|
|
10632
|
-
|
|
10633
|
-
}, [
|
|
10630
|
+
me && $t(!1);
|
|
10631
|
+
}, [me]), Mi = X(() => {
|
|
10632
|
+
me && t && $t(!0);
|
|
10633
|
+
}, [me, t]), Ii = X(() => {
|
|
10634
10634
|
q && $t(!1);
|
|
10635
10635
|
}, [q]), Li = X(() => {
|
|
10636
10636
|
q && t && $t(!0);
|
|
10637
10637
|
}, [q, t]);
|
|
10638
|
-
if (Ne(() => (Vr?.(),
|
|
10639
|
-
Wr?.(),
|
|
10640
|
-
}), [Vr,
|
|
10638
|
+
if (Ne(() => (Vr?.(), Y?.(), () => {
|
|
10639
|
+
Wr?.(), K?.(), Qt();
|
|
10640
|
+
}), [Vr, Y, Wr, K, Qt]), Ne(() => () => Qt(), [Qt]), !Ue)
|
|
10641
10641
|
return /* @__PURE__ */ r("div", { className: k("flex items-center justify-center h-64 bg-gray-100 rounded-lg", N), children: Xt || /* @__PURE__ */ o("div", { className: "text-center", children: [
|
|
10642
10642
|
/* @__PURE__ */ r("p", { className: "text-gray-500 mb-2", children: "Aucune image à afficher" }),
|
|
10643
10643
|
/* @__PURE__ */ r("p", { className: "text-sm text-gray-400", children: "Ajoutez des images pour commencer" })
|
|
@@ -10840,7 +10840,7 @@ const Ev = ({
|
|
|
10840
10840
|
}
|
|
10841
10841
|
) })
|
|
10842
10842
|
] }),
|
|
10843
|
-
n && e.length > 1 && /* @__PURE__ */ r("div", { className: "absolute bottom-4 left-1/2 -translate-x-1/2 flex space-x-2", children:
|
|
10843
|
+
n && e.length > 1 && /* @__PURE__ */ r("div", { className: "absolute bottom-4 left-1/2 -translate-x-1/2 flex space-x-2", children: Z ? /* @__PURE__ */ r("div", { className: "flex space-x-2", children: Z }) : e.map((ae, ve) => /* @__PURE__ */ r(
|
|
10844
10844
|
"button",
|
|
10845
10845
|
{
|
|
10846
10846
|
onClick: (tt) => {
|
|
@@ -11019,11 +11019,11 @@ const Zo = f.forwardRef(
|
|
|
11019
11019
|
name: O,
|
|
11020
11020
|
autoFocus: R = !1
|
|
11021
11021
|
}, I) => {
|
|
11022
|
-
const { t: F } = Xp(), [G,
|
|
11022
|
+
const { t: F } = Xp(), [G, Q] = f.useState(!1), [H, J] = f.useState(
|
|
11023
11023
|
i === "range" && e && !("from" in e) ? { from: e, to: void 0 } : e
|
|
11024
|
-
), [
|
|
11024
|
+
), [Y, K] = f.useState(null), [ee, me] = f.useState(null);
|
|
11025
11025
|
f.useEffect(() => {
|
|
11026
|
-
|
|
11026
|
+
J(
|
|
11027
11027
|
i === "range" && e && !("from" in e) ? { from: e, to: void 0 } : e
|
|
11028
11028
|
);
|
|
11029
11029
|
}, [e, i]);
|
|
@@ -11111,82 +11111,82 @@ const Zo = f.forwardRef(
|
|
|
11111
11111
|
default:
|
|
11112
11112
|
return "PPP";
|
|
11113
11113
|
}
|
|
11114
|
-
})(), Oe = (
|
|
11114
|
+
})(), Oe = (Z) => {
|
|
11115
11115
|
if (!E) return null;
|
|
11116
|
-
if (c && Tt(
|
|
11116
|
+
if (c && Tt(Z, Fe(c)))
|
|
11117
11117
|
return F?.("dateBeforeMin") || `Date antérieure au ${Ye(c, Pe, { locale: B })}`;
|
|
11118
|
-
if (l && ja(
|
|
11118
|
+
if (l && ja(Z, cn(l)))
|
|
11119
11119
|
return F?.("dateAfterMax") || `Date postérieure au ${Ye(l, Pe, { locale: B })}`;
|
|
11120
|
-
if (E.disabledDates?.some((le) => kt(Fe(le), Fe(
|
|
11120
|
+
if (E.disabledDates?.some((le) => kt(Fe(le), Fe(Z))) || E.disabledDatesFn?.(Z))
|
|
11121
11121
|
return E.message || F?.("dateDisabled") || "Date désactivée";
|
|
11122
|
-
if (E.disabledDaysOfWeek?.includes(
|
|
11122
|
+
if (E.disabledDaysOfWeek?.includes(Z.getDay()))
|
|
11123
11123
|
return E.message || F?.("dayOfWeekDisabled") || "Jour de la semaine désactivé";
|
|
11124
11124
|
if (E.validate) {
|
|
11125
|
-
const le = E.validate(
|
|
11125
|
+
const le = E.validate(Z);
|
|
11126
11126
|
if (le === !1)
|
|
11127
11127
|
return E.message || F?.("invalidDate") || "Date invalide";
|
|
11128
11128
|
if (typeof le == "string")
|
|
11129
11129
|
return le;
|
|
11130
11130
|
}
|
|
11131
11131
|
return null;
|
|
11132
|
-
}, Ze = (
|
|
11132
|
+
}, Ze = (Z) => {
|
|
11133
11133
|
if (L) return;
|
|
11134
11134
|
let le = null;
|
|
11135
11135
|
if (i === "range") {
|
|
11136
|
-
if (Array.isArray(
|
|
11137
|
-
le = { from:
|
|
11138
|
-
else if (
|
|
11136
|
+
if (Array.isArray(Z) && Z[0] && Z[1])
|
|
11137
|
+
le = { from: Z[0], to: Z[1] };
|
|
11138
|
+
else if (Z) {
|
|
11139
11139
|
const _e = H;
|
|
11140
|
-
_e?.from && !_e.to ? le = { from: _e.from, to:
|
|
11140
|
+
_e?.from && !_e.to ? le = { from: _e.from, to: Z } : le = { from: Z, to: void 0 };
|
|
11141
11141
|
}
|
|
11142
11142
|
} else if (i === "multiple")
|
|
11143
11143
|
if (Array.isArray(H)) {
|
|
11144
|
-
const _e = [...H], dt = _e.findIndex((er) => kt(Fe(er), Fe(
|
|
11145
|
-
dt >= 0 ? _e.splice(dt, 1) : _e.push(
|
|
11144
|
+
const _e = [...H], dt = _e.findIndex((er) => kt(Fe(er), Fe(Z)));
|
|
11145
|
+
dt >= 0 ? _e.splice(dt, 1) : _e.push(Z), le = _e;
|
|
11146
11146
|
} else
|
|
11147
|
-
le =
|
|
11147
|
+
le = Z ? [Z] : [];
|
|
11148
11148
|
else
|
|
11149
|
-
le =
|
|
11149
|
+
le = Z;
|
|
11150
11150
|
if (!(W && !W(le))) {
|
|
11151
11151
|
if (le && !le.from && !Array.isArray(le)) {
|
|
11152
11152
|
const _e = Oe(le);
|
|
11153
11153
|
if (_e) {
|
|
11154
|
-
|
|
11154
|
+
K(_e);
|
|
11155
11155
|
return;
|
|
11156
11156
|
}
|
|
11157
11157
|
}
|
|
11158
|
-
|
|
11158
|
+
K(null), J(le), t?.(le), T?.(le), i !== "range" && i !== "multiple" && !v && Q(!1);
|
|
11159
11159
|
}
|
|
11160
|
-
}, Lt = (
|
|
11161
|
-
if (
|
|
11162
|
-
const le = typeof
|
|
11160
|
+
}, Lt = (Z) => {
|
|
11161
|
+
if (Z.range) {
|
|
11162
|
+
const le = typeof Z.range == "function" ? Z.range() : Z.range;
|
|
11163
11163
|
Ze([le.from, le.to]);
|
|
11164
|
-
} else if (
|
|
11165
|
-
const le = typeof
|
|
11164
|
+
} else if (Z.value) {
|
|
11165
|
+
const le = typeof Z.value == "function" ? Z.value() : Z.value;
|
|
11166
11166
|
Ze(le);
|
|
11167
11167
|
}
|
|
11168
|
-
v ||
|
|
11169
|
-
}, lt = (
|
|
11170
|
-
|
|
11168
|
+
v || Q(!1);
|
|
11169
|
+
}, lt = (Z) => {
|
|
11170
|
+
Z && Z.stopPropagation(), !L && (J(null), K(null), t?.(null), T?.(null));
|
|
11171
11171
|
}, ct = () => {
|
|
11172
11172
|
Ze(/* @__PURE__ */ new Date());
|
|
11173
11173
|
}, Xt = () => {
|
|
11174
11174
|
if (!H) return a || F?.("selectDate") || "Sélectionner une date";
|
|
11175
11175
|
try {
|
|
11176
11176
|
if (i === "range") {
|
|
11177
|
-
const
|
|
11178
|
-
return
|
|
11177
|
+
const Z = H;
|
|
11178
|
+
return Z.from && Z.to ? `${Ye(Z.from, Pe, { locale: B })} - ${Ye(Z.to, Pe, { locale: B })}` : Z.from ? `${Ye(Z.from, Pe, { locale: B })} - ...` : a || F?.("selectDateRange") || "Sélectionner une période";
|
|
11179
11179
|
}
|
|
11180
11180
|
if (i === "multiple") {
|
|
11181
|
-
const
|
|
11182
|
-
return
|
|
11181
|
+
const Z = H;
|
|
11182
|
+
return Z.length === 0 ? a || F?.("selectDates") || "Sélectionner des dates" : Z.length === 1 ? Ye(Z[0], Pe, { locale: B }) : `${Z.length} ${F?.("datesSelected") || "dates sélectionnées"}`;
|
|
11183
11183
|
}
|
|
11184
11184
|
return Ye(H, Pe, { locale: B });
|
|
11185
|
-
} catch (
|
|
11186
|
-
return console.error("Error formatting date:",
|
|
11185
|
+
} catch (Z) {
|
|
11186
|
+
return console.error("Error formatting date:", Z), a || F?.("selectDate") || "Sélectionner une date";
|
|
11187
11187
|
}
|
|
11188
|
-
}, Ca = (
|
|
11189
|
-
const
|
|
11188
|
+
}, Ca = (Z) => !!(c && Tt(Z, Fe(c)) || l && ja(Z, cn(l)) || E?.disabledDates?.some((le) => kt(Fe(le), Fe(Z))) || E?.disabledDatesFn?.(Z) || E?.disabledDaysOfWeek?.includes(Z.getDay())), Sa = (Z) => !!(E?.highlightedDates?.some((le) => kt(Fe(le), Fe(Z))) || E?.highlightedDatesFn?.(Z)), ua = () => {
|
|
11189
|
+
const Z = {
|
|
11190
11190
|
selected: i === "range" ? H?.from : i === "multiple" ? void 0 : H,
|
|
11191
11191
|
onChange: Ze,
|
|
11192
11192
|
startDate: i === "range" ? H?.from : void 0,
|
|
@@ -11211,16 +11211,16 @@ const Zo = f.forwardRef(
|
|
|
11211
11211
|
filterDate: (le) => !Ca(le),
|
|
11212
11212
|
dayClassName: (le) => {
|
|
11213
11213
|
const _e = [];
|
|
11214
|
-
if (Sa(le) && _e.push("highlighted-date"),
|
|
11214
|
+
if (Sa(le) && _e.push("highlighted-date"), ee && i === "range") {
|
|
11215
11215
|
const dt = H;
|
|
11216
11216
|
dt?.from && !dt.to && eo(le, {
|
|
11217
|
-
start: dt.from <
|
|
11218
|
-
end: dt.from >
|
|
11217
|
+
start: dt.from < ee ? dt.from : ee,
|
|
11218
|
+
end: dt.from > ee ? dt.from : ee
|
|
11219
11219
|
}) && _e.push("in-selecting-range");
|
|
11220
11220
|
}
|
|
11221
11221
|
return _e.join(" ");
|
|
11222
11222
|
},
|
|
11223
|
-
onDayMouseEnter: (le) =>
|
|
11223
|
+
onDayMouseEnter: (le) => me(le),
|
|
11224
11224
|
calendarClassName: k(
|
|
11225
11225
|
"waka-datepicker",
|
|
11226
11226
|
V && "no-animations"
|
|
@@ -11244,7 +11244,7 @@ const Zo = f.forwardRef(
|
|
|
11244
11244
|
)) }) })
|
|
11245
11245
|
] }),
|
|
11246
11246
|
/* @__PURE__ */ o("div", { className: "flex-1", children: [
|
|
11247
|
-
/* @__PURE__ */ r(Ql, { ...
|
|
11247
|
+
/* @__PURE__ */ r(Ql, { ...Z }),
|
|
11248
11248
|
A && H && /* @__PURE__ */ o("div", { className: "mt-3 p-2 bg-muted rounded-md text-xs space-y-1", children: [
|
|
11249
11249
|
/* @__PURE__ */ o("div", { className: "flex items-center gap-2", children: [
|
|
11250
11250
|
/* @__PURE__ */ r(Ki, { className: "h-3 w-3 text-muted-foreground" }),
|
|
@@ -11264,16 +11264,16 @@ const Zo = f.forwardRef(
|
|
|
11264
11264
|
p && /* @__PURE__ */ r("span", { className: "text-destructive ml-1", children: "*" })
|
|
11265
11265
|
] }),
|
|
11266
11266
|
/* @__PURE__ */ r("div", { className: "border border-border rounded-lg p-4 bg-card", children: ua() }),
|
|
11267
|
-
(N ||
|
|
11267
|
+
(N || Y) && /* @__PURE__ */ o("div", { className: "flex items-center gap-1.5 text-sm text-destructive", children: [
|
|
11268
11268
|
/* @__PURE__ */ r(Et, { className: "h-3.5 w-3.5" }),
|
|
11269
|
-
/* @__PURE__ */ r("span", { children: N ||
|
|
11269
|
+
/* @__PURE__ */ r("span", { children: N || Y })
|
|
11270
11270
|
] })
|
|
11271
11271
|
] }) : /* @__PURE__ */ o("div", { ref: I, className: k("space-y-2", s), id: M, children: [
|
|
11272
11272
|
g && /* @__PURE__ */ o(xe, { htmlFor: `${M}-input`, className: "text-sm font-medium text-foreground", children: [
|
|
11273
11273
|
g,
|
|
11274
11274
|
p && /* @__PURE__ */ r("span", { className: "text-destructive ml-1", children: "*" })
|
|
11275
11275
|
] }),
|
|
11276
|
-
/* @__PURE__ */ o(vt, { open: G, onOpenChange:
|
|
11276
|
+
/* @__PURE__ */ o(vt, { open: G, onOpenChange: Q, children: [
|
|
11277
11277
|
/* @__PURE__ */ r(wt, { asChild: !0, children: /* @__PURE__ */ o(
|
|
11278
11278
|
U,
|
|
11279
11279
|
{
|
|
@@ -11285,11 +11285,11 @@ const Zo = f.forwardRef(
|
|
|
11285
11285
|
"w-full justify-between text-left font-normal",
|
|
11286
11286
|
!H && "text-muted-foreground",
|
|
11287
11287
|
ge[S],
|
|
11288
|
-
(N ||
|
|
11288
|
+
(N || Y) && "border-destructive focus-visible:ring-destructive",
|
|
11289
11289
|
L && "cursor-default opacity-70"
|
|
11290
11290
|
),
|
|
11291
11291
|
"aria-label": g || a,
|
|
11292
|
-
"aria-invalid": !!(N ||
|
|
11292
|
+
"aria-invalid": !!(N || Y),
|
|
11293
11293
|
"aria-required": p,
|
|
11294
11294
|
children: [
|
|
11295
11295
|
/* @__PURE__ */ o("span", { className: "flex items-center gap-2 flex-1 truncate", children: [
|
|
@@ -11310,9 +11310,9 @@ const Zo = f.forwardRef(
|
|
|
11310
11310
|
) }),
|
|
11311
11311
|
/* @__PURE__ */ r(Tr, { children: /* @__PURE__ */ r("p", { children: F?.("clear") || "Effacer" }) })
|
|
11312
11312
|
] }) }),
|
|
11313
|
-
|
|
11313
|
+
Y && /* @__PURE__ */ r(bn, { children: /* @__PURE__ */ o(yn, { children: [
|
|
11314
11314
|
/* @__PURE__ */ r(vn, { asChild: !0, children: /* @__PURE__ */ r(Et, { className: "h-4 w-4 text-destructive" }) }),
|
|
11315
|
-
/* @__PURE__ */ r(Tr, { children: /* @__PURE__ */ r("p", { children:
|
|
11315
|
+
/* @__PURE__ */ r(Tr, { children: /* @__PURE__ */ r("p", { children: Y }) })
|
|
11316
11316
|
] }) })
|
|
11317
11317
|
] })
|
|
11318
11318
|
]
|
|
@@ -11362,9 +11362,9 @@ const Zo = f.forwardRef(
|
|
|
11362
11362
|
}
|
|
11363
11363
|
)
|
|
11364
11364
|
] }),
|
|
11365
|
-
(N ||
|
|
11365
|
+
(N || Y) && /* @__PURE__ */ o("div", { className: "flex items-center gap-1.5 text-sm text-destructive", children: [
|
|
11366
11366
|
/* @__PURE__ */ r(Et, { className: "h-3.5 w-3.5" }),
|
|
11367
|
-
/* @__PURE__ */ r("span", { children: N ||
|
|
11367
|
+
/* @__PURE__ */ r("span", { children: N || Y })
|
|
11368
11368
|
] })
|
|
11369
11369
|
] });
|
|
11370
11370
|
}
|
|
@@ -11955,7 +11955,7 @@ function Zp({
|
|
|
11955
11955
|
title: "Prévisualisation activée",
|
|
11956
11956
|
description: `Le thème "${u}" est maintenant actif`
|
|
11957
11957
|
});
|
|
11958
|
-
}, [g, c, u, F, d]),
|
|
11958
|
+
}, [g, c, u, F, d]), Q = f.useCallback(() => {
|
|
11959
11959
|
I.current && I.current.parentNode && I.current.parentNode.removeChild(I.current), document.documentElement.removeAttribute("data-theme"), P(!1), d({
|
|
11960
11960
|
title: "Prévisualisation arrêtée",
|
|
11961
11961
|
description: "Thème par défaut restauré"
|
|
@@ -12029,7 +12029,7 @@ function Zp({
|
|
|
12029
12029
|
} finally {
|
|
12030
12030
|
E(!1);
|
|
12031
12031
|
}
|
|
12032
|
-
}, [g, c, u, h, y, S, O, v, L, e, F, d, t]),
|
|
12032
|
+
}, [g, c, u, h, y, S, O, v, L, e, F, d, t]), J = f.useCallback(async () => {
|
|
12033
12033
|
try {
|
|
12034
12034
|
await navigator.clipboard.writeText(g), $(!0), setTimeout(() => $(!1), 2e3), d({
|
|
12035
12035
|
title: "CSS copié !",
|
|
@@ -12042,7 +12042,7 @@ function Zp({
|
|
|
12042
12042
|
variant: "destructive"
|
|
12043
12043
|
});
|
|
12044
12044
|
}
|
|
12045
|
-
}, [g, d]),
|
|
12045
|
+
}, [g, d]), Y = f.useCallback(async (q) => {
|
|
12046
12046
|
j(!0);
|
|
12047
12047
|
try {
|
|
12048
12048
|
let B = q;
|
|
@@ -12074,9 +12074,9 @@ function Zp({
|
|
|
12074
12074
|
} finally {
|
|
12075
12075
|
j(!1);
|
|
12076
12076
|
}
|
|
12077
|
-
}, [n, d]),
|
|
12078
|
-
l(""), m(""), b(""), C("#3b82f6"), N(""), p(""), w(""), M([]), R("1.0.0"), V(null), D &&
|
|
12079
|
-
}, [D,
|
|
12077
|
+
}, [n, d]), K = f.useCallback(() => {
|
|
12078
|
+
l(""), m(""), b(""), C("#3b82f6"), N(""), p(""), w(""), M([]), R("1.0.0"), V(null), D && Q();
|
|
12079
|
+
}, [D, Q]), ee = f.useCallback(() => {
|
|
12080
12080
|
const q = new Blob([g], { type: "text/css" }), B = URL.createObjectURL(q), re = document.createElement("a");
|
|
12081
12081
|
re.href = B, re.download = `${c || "theme"}.css`, document.body.appendChild(re), re.click(), document.body.removeChild(re), URL.revokeObjectURL(B), d({
|
|
12082
12082
|
title: "CSS téléchargé",
|
|
@@ -12090,11 +12090,11 @@ function Zp({
|
|
|
12090
12090
|
/* @__PURE__ */ r("p", { className: "text-muted-foreground", children: "Créez et publiez des thèmes TweakCN sur S3" })
|
|
12091
12091
|
] }),
|
|
12092
12092
|
/* @__PURE__ */ o("div", { className: "flex gap-2", children: [
|
|
12093
|
-
/* @__PURE__ */ o(U, { variant: "outline", onClick:
|
|
12093
|
+
/* @__PURE__ */ o(U, { variant: "outline", onClick: K, children: [
|
|
12094
12094
|
/* @__PURE__ */ r(za, { className: "mr-2 h-4 w-4" }),
|
|
12095
12095
|
"Nouveau thème"
|
|
12096
12096
|
] }),
|
|
12097
|
-
D && /* @__PURE__ */ r(U, { variant: "destructive", onClick:
|
|
12097
|
+
D && /* @__PURE__ */ r(U, { variant: "destructive", onClick: Q, children: "Arrêter la prévisualisation" })
|
|
12098
12098
|
] })
|
|
12099
12099
|
] }),
|
|
12100
12100
|
/* @__PURE__ */ o("div", { className: "grid grid-cols-1 lg:grid-cols-3 gap-6", children: [
|
|
@@ -12106,7 +12106,7 @@ function Zp({
|
|
|
12106
12106
|
/* @__PURE__ */ r(pt, { className: "space-y-2", children: s.length === 0 ? /* @__PURE__ */ r("p", { className: "text-sm text-muted-foreground text-center py-4", children: "Aucun thème existant" }) : s.map((q) => /* @__PURE__ */ o(
|
|
12107
12107
|
"button",
|
|
12108
12108
|
{
|
|
12109
|
-
onClick: () =>
|
|
12109
|
+
onClick: () => Y(q),
|
|
12110
12110
|
disabled: T,
|
|
12111
12111
|
className: k(
|
|
12112
12112
|
"w-full flex items-center gap-3 p-3 rounded-lg border-2 transition-all text-left",
|
|
@@ -12303,14 +12303,14 @@ function Zp({
|
|
|
12303
12303
|
/* @__PURE__ */ r(wr, { className: "mr-2 h-4 w-4" }),
|
|
12304
12304
|
"Prévisualiser"
|
|
12305
12305
|
] }),
|
|
12306
|
-
/* @__PURE__ */ r(U, { variant: "outline", onClick:
|
|
12306
|
+
/* @__PURE__ */ r(U, { variant: "outline", onClick: J, children: A ? /* @__PURE__ */ o(ce, { children: [
|
|
12307
12307
|
/* @__PURE__ */ r(Ie, { className: "mr-2 h-4 w-4" }),
|
|
12308
12308
|
"Copié !"
|
|
12309
12309
|
] }) : /* @__PURE__ */ o(ce, { children: [
|
|
12310
12310
|
/* @__PURE__ */ r(Ga, { className: "mr-2 h-4 w-4" }),
|
|
12311
12311
|
"Copier CSS"
|
|
12312
12312
|
] }) }),
|
|
12313
|
-
/* @__PURE__ */ o(U, { variant: "outline", onClick:
|
|
12313
|
+
/* @__PURE__ */ o(U, { variant: "outline", onClick: ee, children: [
|
|
12314
12314
|
/* @__PURE__ */ r(sa, { className: "mr-2 h-4 w-4" }),
|
|
12315
12315
|
"Télécharger"
|
|
12316
12316
|
] }),
|
|
@@ -12374,7 +12374,7 @@ function Zp({
|
|
|
12374
12374
|
$n,
|
|
12375
12375
|
{
|
|
12376
12376
|
onClick: () => {
|
|
12377
|
-
z && (a?.(z.id),
|
|
12377
|
+
z && (a?.(z.id), K()), W(!1);
|
|
12378
12378
|
},
|
|
12379
12379
|
className: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
|
|
12380
12380
|
children: "Supprimer"
|
|
@@ -12444,7 +12444,7 @@ ${L.join(`
|
|
|
12444
12444
|
let F;
|
|
12445
12445
|
R ? F = `${O}/${R}/${T}.${V}?${I}` : F = `${O}/${T}.${V}?${I}`, oe.debug(`Loading theme "${T}" from URL: ${F}`);
|
|
12446
12446
|
try {
|
|
12447
|
-
const G = new AbortController(),
|
|
12447
|
+
const G = new AbortController(), Q = setTimeout(() => G.abort(), M), H = await fetch(F, {
|
|
12448
12448
|
signal: G.signal,
|
|
12449
12449
|
headers: {
|
|
12450
12450
|
Accept: V === "json" ? "application/json" : "text/css",
|
|
@@ -12453,33 +12453,33 @@ ${L.join(`
|
|
|
12453
12453
|
...L
|
|
12454
12454
|
}
|
|
12455
12455
|
});
|
|
12456
|
-
if (clearTimeout(
|
|
12457
|
-
const
|
|
12458
|
-
throw console.error(`[ThemeProvider] Failed to load theme "${T}" from ${F}:`,
|
|
12456
|
+
if (clearTimeout(Q), !H.ok) {
|
|
12457
|
+
const Y = `HTTP ${H.status}: ${H.statusText}`;
|
|
12458
|
+
throw console.error(`[ThemeProvider] Failed to load theme "${T}" from ${F}:`, Y), new Error(Y);
|
|
12459
12459
|
}
|
|
12460
12460
|
if (oe.debug(`✅ Successfully loaded theme "${T}" from ${F}`), V === "json") {
|
|
12461
|
-
let
|
|
12461
|
+
let Y;
|
|
12462
12462
|
try {
|
|
12463
|
-
const
|
|
12464
|
-
if (oe.debug(`Raw JSON response for theme "${T}" (${
|
|
12463
|
+
const K = await H.text();
|
|
12464
|
+
if (oe.debug(`Raw JSON response for theme "${T}" (${K.length} chars)`), !K || K.trim().length === 0)
|
|
12465
12465
|
throw new Error(`Empty JSON response for theme "${T}"`);
|
|
12466
|
-
|
|
12467
|
-
} catch (
|
|
12468
|
-
throw console.error(`[ThemeProvider] Failed to parse JSON for theme "${T}":`,
|
|
12466
|
+
Y = JSON.parse(K), oe.debug(`Parsed JSON for theme "${T}":`, Object.keys(Y));
|
|
12467
|
+
} catch (K) {
|
|
12468
|
+
throw console.error(`[ThemeProvider] Failed to parse JSON for theme "${T}":`, K), new Error(`Invalid JSON format for theme "${T}": ${K instanceof Error ? K.message : "Unknown error"}`);
|
|
12469
12469
|
}
|
|
12470
12470
|
try {
|
|
12471
|
-
const
|
|
12472
|
-
if (!
|
|
12473
|
-
throw console.error(`[ThemeProvider] ❌ Generated CSS missing [data-theme="${T}"] selector for theme "${T}"`), console.error("[ThemeProvider] Generated CSS:",
|
|
12474
|
-
return oe.debug(`✅ Converted JSON to CSS for theme "${T}" (${
|
|
12475
|
-
} catch (
|
|
12476
|
-
throw console.error(`[ThemeProvider] Failed to convert JSON to CSS for theme "${T}":`,
|
|
12471
|
+
const K = tg(T, Y);
|
|
12472
|
+
if (!K.includes(`[data-theme="${T}"]`))
|
|
12473
|
+
throw console.error(`[ThemeProvider] ❌ Generated CSS missing [data-theme="${T}"] selector for theme "${T}"`), console.error("[ThemeProvider] Generated CSS:", K.substring(0, 500)), new Error(`Generated CSS is missing the required selector [data-theme="${T}"]`);
|
|
12474
|
+
return oe.debug(`✅ Converted JSON to CSS for theme "${T}" (${K.length} chars)`), K;
|
|
12475
|
+
} catch (K) {
|
|
12476
|
+
throw console.error(`[ThemeProvider] Failed to convert JSON to CSS for theme "${T}":`, K), K;
|
|
12477
12477
|
}
|
|
12478
12478
|
}
|
|
12479
|
-
const
|
|
12480
|
-
if (!
|
|
12479
|
+
const J = await H.text();
|
|
12480
|
+
if (!J || J.trim().length === 0)
|
|
12481
12481
|
throw new Error(`Empty CSS response for theme "${T}"`);
|
|
12482
|
-
return !
|
|
12482
|
+
return !J.includes(`[data-theme="${T}"]`) && !J.includes(":root") && !J.includes("html") ? (console.warn(`[ThemeProvider] Theme CSS might be missing [data-theme="${T}"] selector`), console.warn("[ThemeProvider] CSS content preview:", J.substring(0, 200))) : oe.debug(`✅ CSS file loaded for theme "${T}" (${J.length} chars)`), J;
|
|
12483
12483
|
} catch (G) {
|
|
12484
12484
|
throw xt(G, {
|
|
12485
12485
|
code: Ke.THEME_LOAD_FAILED,
|
|
@@ -12772,8 +12772,8 @@ const rg = je(
|
|
|
12772
12772
|
), [p, v] = te(!1), [w, x] = te(null), [E, D] = te(null), [P, A] = te(""), [$, _] = te(!1), [W, T] = te("auto"), j = X((R) => {
|
|
12773
12773
|
const I = document.documentElement;
|
|
12774
12774
|
if (Object.entries(R.colors).forEach(([F, G]) => {
|
|
12775
|
-
const
|
|
12776
|
-
I.style.setProperty(
|
|
12775
|
+
const Q = `--${F.replace(/([A-Z])/g, "-$1").toLowerCase()}`;
|
|
12776
|
+
I.style.setProperty(Q, G);
|
|
12777
12777
|
}), S) {
|
|
12778
12778
|
const F = {
|
|
12779
12779
|
id: R.name.toLowerCase().replace(/\s+/g, "-"),
|
|
@@ -14380,10 +14380,10 @@ function Rv({
|
|
|
14380
14380
|
}, [t, u, j, z]), {
|
|
14381
14381
|
table: F,
|
|
14382
14382
|
globalFilter: G,
|
|
14383
|
-
setGlobalFilter:
|
|
14383
|
+
setGlobalFilter: Q,
|
|
14384
14384
|
selectedRows: H,
|
|
14385
|
-
resetFilters:
|
|
14386
|
-
exportData:
|
|
14385
|
+
resetFilters: J,
|
|
14386
|
+
exportData: Y
|
|
14387
14387
|
} = ug({
|
|
14388
14388
|
data: e,
|
|
14389
14389
|
columns: I,
|
|
@@ -14392,7 +14392,7 @@ function Rv({
|
|
|
14392
14392
|
onSortingChange: P,
|
|
14393
14393
|
onFiltersChange: A,
|
|
14394
14394
|
onSelectionChange: $
|
|
14395
|
-
}), [
|
|
14395
|
+
}), [K, ee] = ai(F, {
|
|
14396
14396
|
onSave: j?.onSave,
|
|
14397
14397
|
onCancel: j?.onCancel,
|
|
14398
14398
|
autoSave: j?.autoSave,
|
|
@@ -14402,14 +14402,14 @@ function Rv({
|
|
|
14402
14402
|
const ye = {
|
|
14403
14403
|
id: "edit-actions",
|
|
14404
14404
|
header: () => z("datatable.actions", { defaultValue: "Actions" }),
|
|
14405
|
-
cell: ({ row: ge }) =>
|
|
14405
|
+
cell: ({ row: ge }) => K.editingRowId === ge.id ? /* @__PURE__ */ o("div", { className: "flex gap-1", children: [
|
|
14406
14406
|
/* @__PURE__ */ r(
|
|
14407
14407
|
U,
|
|
14408
14408
|
{
|
|
14409
14409
|
size: "sm",
|
|
14410
14410
|
variant: "ghost",
|
|
14411
|
-
onClick: () =>
|
|
14412
|
-
disabled: !
|
|
14411
|
+
onClick: () => ee.saveEdit(),
|
|
14412
|
+
disabled: !K.hasChanges,
|
|
14413
14413
|
children: z("datatable.save", { defaultValue: "Save" })
|
|
14414
14414
|
}
|
|
14415
14415
|
),
|
|
@@ -14418,7 +14418,7 @@ function Rv({
|
|
|
14418
14418
|
{
|
|
14419
14419
|
size: "sm",
|
|
14420
14420
|
variant: "ghost",
|
|
14421
|
-
onClick: () =>
|
|
14421
|
+
onClick: () => ee.cancelEdit(),
|
|
14422
14422
|
children: z("datatable.cancel", { defaultValue: "Cancel" })
|
|
14423
14423
|
}
|
|
14424
14424
|
)
|
|
@@ -14428,7 +14428,7 @@ function Rv({
|
|
|
14428
14428
|
size: "sm",
|
|
14429
14429
|
variant: "ghost",
|
|
14430
14430
|
onClick: () => {
|
|
14431
|
-
oe.debug("🔧 Starting edit for row:", ge.id, ge.original),
|
|
14431
|
+
oe.debug("🔧 Starting edit for row:", ge.id, ge.original), ee.startEdit(ge.id, ge.original);
|
|
14432
14432
|
},
|
|
14433
14433
|
children: z("datatable.edit", { defaultValue: "Edit" })
|
|
14434
14434
|
}
|
|
@@ -14438,10 +14438,10 @@ function Rv({
|
|
|
14438
14438
|
};
|
|
14439
14439
|
I.push(ye);
|
|
14440
14440
|
}
|
|
14441
|
-
const
|
|
14442
|
-
const ge =
|
|
14441
|
+
const me = f.useCallback((ye) => {
|
|
14442
|
+
const ge = Y();
|
|
14443
14443
|
oe.debug("Export", ye, ge);
|
|
14444
|
-
}, [
|
|
14444
|
+
}, [Y]), q = f.useCallback((ye) => {
|
|
14445
14445
|
oe.debug("Import", ye);
|
|
14446
14446
|
}, []), B = {
|
|
14447
14447
|
bordered: "border rounded-lg",
|
|
@@ -14467,10 +14467,10 @@ function Rv({
|
|
|
14467
14467
|
table: F,
|
|
14468
14468
|
config: c,
|
|
14469
14469
|
globalFilter: G,
|
|
14470
|
-
onGlobalFilterChange:
|
|
14470
|
+
onGlobalFilterChange: Q,
|
|
14471
14471
|
density: M,
|
|
14472
14472
|
onDensityChange: O,
|
|
14473
|
-
onExport: p ?
|
|
14473
|
+
onExport: p ? me : void 0,
|
|
14474
14474
|
onImport: v ? q : void 0
|
|
14475
14475
|
}
|
|
14476
14476
|
),
|
|
@@ -14488,10 +14488,10 @@ function Rv({
|
|
|
14488
14488
|
table: F,
|
|
14489
14489
|
config: c,
|
|
14490
14490
|
globalFilter: G,
|
|
14491
|
-
onGlobalFilterChange:
|
|
14491
|
+
onGlobalFilterChange: Q,
|
|
14492
14492
|
density: M,
|
|
14493
14493
|
onDensityChange: O,
|
|
14494
|
-
onExport: p ?
|
|
14494
|
+
onExport: p ? me : void 0,
|
|
14495
14495
|
onImport: v ? q : void 0
|
|
14496
14496
|
}
|
|
14497
14497
|
) }),
|
|
@@ -14536,7 +14536,7 @@ function Rv({
|
|
|
14536
14536
|
onClick: () => E?.(ge.original),
|
|
14537
14537
|
onDoubleClick: () => D?.(ge.original),
|
|
14538
14538
|
children: ge.getVisibleCells().map((we) => {
|
|
14539
|
-
const Pe = we.getValue(), Oe = we.column.id, Ze = ge.id, Lt =
|
|
14539
|
+
const Pe = we.getValue(), Oe = we.column.id, Ze = ge.id, Lt = K.editingRowId === Ze, lt = j?.editableColumns?.find(
|
|
14540
14540
|
(ct) => ct.field === Oe
|
|
14541
14541
|
);
|
|
14542
14542
|
return lt && Lt ? /* @__PURE__ */ r(
|
|
@@ -14550,10 +14550,10 @@ function Rv({
|
|
|
14550
14550
|
field: Oe,
|
|
14551
14551
|
config: lt.config,
|
|
14552
14552
|
isEditing: Lt,
|
|
14553
|
-
onChange: (ct) =>
|
|
14554
|
-
onStartEdit: () =>
|
|
14555
|
-
onSave: () =>
|
|
14556
|
-
onCancel: () =>
|
|
14553
|
+
onChange: (ct) => ee.updateField(Oe, ct),
|
|
14554
|
+
onStartEdit: () => ee.startEdit(Ze, ge.original),
|
|
14555
|
+
onSave: () => ee.saveEdit(),
|
|
14556
|
+
onCancel: () => ee.cancelEdit()
|
|
14557
14557
|
}
|
|
14558
14558
|
)
|
|
14559
14559
|
},
|
|
@@ -14706,16 +14706,16 @@ function hg({
|
|
|
14706
14706
|
W({});
|
|
14707
14707
|
}, []), G = X(() => {
|
|
14708
14708
|
N([]), p([]), w({}), E([]), P({}), $([]), W({}), j(""), V({ pageIndex: 0, pageSize: a?.pageSize || 10 });
|
|
14709
|
-
}, [a?.pageSize]),
|
|
14709
|
+
}, [a?.pageSize]), Q = X(() => O.getFilteredRowModel().rows.map((B) => B.original), [O]), H = X(() => m?.columns?.length ? O.getGroupedRowModel().rows.map((B) => B.original) : e, [O, m, e]), J = X(() => O.getExpandedRowModel().rows.map((B) => B.original), [O]), Y = X((B) => {
|
|
14710
14710
|
$((re) => re.includes(B) ? re.filter((ge) => ge !== B) : [...re, B]);
|
|
14711
|
-
}, []),
|
|
14711
|
+
}, []), K = X(() => {
|
|
14712
14712
|
$([]);
|
|
14713
|
-
}, []),
|
|
14713
|
+
}, []), ee = X((B) => {
|
|
14714
14714
|
P((re) => ({
|
|
14715
14715
|
...re,
|
|
14716
14716
|
[B]: !re[B]
|
|
14717
14717
|
}));
|
|
14718
|
-
}, []),
|
|
14718
|
+
}, []), me = X(() => {
|
|
14719
14719
|
const B = O.getRowModel().rows.map((ye) => ye.id), re = {};
|
|
14720
14720
|
B.forEach((ye) => {
|
|
14721
14721
|
re[ye] = !0;
|
|
@@ -14747,13 +14747,13 @@ function hg({
|
|
|
14747
14747
|
resetFilters: I,
|
|
14748
14748
|
resetSelection: F,
|
|
14749
14749
|
resetAll: G,
|
|
14750
|
-
exportData:
|
|
14750
|
+
exportData: Q,
|
|
14751
14751
|
getGroupedData: H,
|
|
14752
|
-
getExpandedData:
|
|
14753
|
-
toggleGrouping:
|
|
14754
|
-
clearGrouping:
|
|
14755
|
-
toggleRowExpansion:
|
|
14756
|
-
expandAll:
|
|
14752
|
+
getExpandedData: J,
|
|
14753
|
+
toggleGrouping: Y,
|
|
14754
|
+
clearGrouping: K,
|
|
14755
|
+
toggleRowExpansion: ee,
|
|
14756
|
+
expandAll: me,
|
|
14757
14757
|
collapseAll: q
|
|
14758
14758
|
};
|
|
14759
14759
|
}
|
|
@@ -15277,12 +15277,12 @@ function $v({
|
|
|
15277
15277
|
theme: F,
|
|
15278
15278
|
performance: G
|
|
15279
15279
|
}) {
|
|
15280
|
-
const { t:
|
|
15281
|
-
layout:
|
|
15282
|
-
setLayout:
|
|
15283
|
-
density:
|
|
15284
|
-
setDensity:
|
|
15285
|
-
densityClasses:
|
|
15280
|
+
const { t: Q } = qt(h), H = f.useRef(null), {
|
|
15281
|
+
layout: J,
|
|
15282
|
+
setLayout: Y,
|
|
15283
|
+
density: K,
|
|
15284
|
+
setDensity: ee,
|
|
15285
|
+
densityClasses: me
|
|
15286
15286
|
} = ti(a, s), {
|
|
15287
15287
|
theme: q,
|
|
15288
15288
|
variantClasses: B,
|
|
@@ -15290,7 +15290,7 @@ function $v({
|
|
|
15290
15290
|
customStyles: ye,
|
|
15291
15291
|
getThemedClass: ge,
|
|
15292
15292
|
getThemedStyles: we
|
|
15293
|
-
} = xg({ theme: F, variant: n, density:
|
|
15293
|
+
} = xg({ theme: F, variant: n, density: K }), Pe = f.useMemo(() => {
|
|
15294
15294
|
const ie = [...t];
|
|
15295
15295
|
if (u) {
|
|
15296
15296
|
const ne = {
|
|
@@ -15300,7 +15300,7 @@ function $v({
|
|
|
15300
15300
|
{
|
|
15301
15301
|
checked: We.getIsAllPageRowsSelected(),
|
|
15302
15302
|
onCheckedChange: (Re) => We.toggleAllPageRowsSelected(!!Re),
|
|
15303
|
-
"aria-label":
|
|
15303
|
+
"aria-label": Q("datatable.selectAll", { defaultValue: "Select all" })
|
|
15304
15304
|
}
|
|
15305
15305
|
),
|
|
15306
15306
|
cell: ({ row: We }) => /* @__PURE__ */ r(
|
|
@@ -15308,7 +15308,7 @@ function $v({
|
|
|
15308
15308
|
{
|
|
15309
15309
|
checked: We.getIsSelected(),
|
|
15310
15310
|
onCheckedChange: (Re) => We.toggleSelected(!!Re),
|
|
15311
|
-
"aria-label":
|
|
15311
|
+
"aria-label": Q("datatable.selectRow", { defaultValue: "Select row" })
|
|
15312
15312
|
}
|
|
15313
15313
|
),
|
|
15314
15314
|
enableSorting: !1,
|
|
@@ -15349,7 +15349,7 @@ function $v({
|
|
|
15349
15349
|
ie.unshift(ne);
|
|
15350
15350
|
}
|
|
15351
15351
|
return ie;
|
|
15352
|
-
}, [t, u, w, A,
|
|
15352
|
+
}, [t, u, w, A, Q]);
|
|
15353
15353
|
oe.debug("DataTableAdvanced - props:", {
|
|
15354
15354
|
grouping: v,
|
|
15355
15355
|
rowExpansion: w,
|
|
@@ -15365,7 +15365,7 @@ function $v({
|
|
|
15365
15365
|
setColumnVisibility: Ca,
|
|
15366
15366
|
columnOrder: Sa,
|
|
15367
15367
|
setColumnOrder: ua,
|
|
15368
|
-
expanded:
|
|
15368
|
+
expanded: Z,
|
|
15369
15369
|
setExpanded: le,
|
|
15370
15370
|
grouping: _e,
|
|
15371
15371
|
setGrouping: dt,
|
|
@@ -15429,7 +15429,7 @@ function $v({
|
|
|
15429
15429
|
return Pe;
|
|
15430
15430
|
const ie = {
|
|
15431
15431
|
id: "edit-actions",
|
|
15432
|
-
header: () =>
|
|
15432
|
+
header: () => Q("datatable.actions", { defaultValue: "Actions" }),
|
|
15433
15433
|
cell: ({ row: ne }) => Ft.editingRowId === ne.id ? /* @__PURE__ */ o("div", { className: "flex gap-1", children: [
|
|
15434
15434
|
/* @__PURE__ */ r(
|
|
15435
15435
|
U,
|
|
@@ -15438,7 +15438,7 @@ function $v({
|
|
|
15438
15438
|
variant: "ghost",
|
|
15439
15439
|
onClick: () => et.saveEdit(),
|
|
15440
15440
|
disabled: !Ft.hasChanges,
|
|
15441
|
-
children:
|
|
15441
|
+
children: Q("datatable.save", { defaultValue: "Save" })
|
|
15442
15442
|
}
|
|
15443
15443
|
),
|
|
15444
15444
|
/* @__PURE__ */ r(
|
|
@@ -15447,7 +15447,7 @@ function $v({
|
|
|
15447
15447
|
size: "sm",
|
|
15448
15448
|
variant: "ghost",
|
|
15449
15449
|
onClick: () => et.cancelEdit(),
|
|
15450
|
-
children:
|
|
15450
|
+
children: Q("datatable.cancel", { defaultValue: "Cancel" })
|
|
15451
15451
|
}
|
|
15452
15452
|
)
|
|
15453
15453
|
] }) : /* @__PURE__ */ r(
|
|
@@ -15456,14 +15456,14 @@ function $v({
|
|
|
15456
15456
|
size: "sm",
|
|
15457
15457
|
variant: "ghost",
|
|
15458
15458
|
onClick: () => et.startEdit(ne.id, ne.original),
|
|
15459
|
-
children:
|
|
15459
|
+
children: Q("datatable.edit", { defaultValue: "Edit" })
|
|
15460
15460
|
}
|
|
15461
15461
|
),
|
|
15462
15462
|
enableSorting: !1,
|
|
15463
15463
|
enableHiding: !1
|
|
15464
15464
|
};
|
|
15465
15465
|
return [...Pe, ie];
|
|
15466
|
-
}, [Pe, I?.editableColumns, Ft.editingRowId, Ft.hasChanges, et,
|
|
15466
|
+
}, [Pe, I?.editableColumns, Ft.editingRowId, Ft.hasChanges, et, Q]);
|
|
15467
15467
|
const sr = f.useCallback(async (ie) => {
|
|
15468
15468
|
try {
|
|
15469
15469
|
await nr(ie);
|
|
@@ -15481,7 +15481,7 @@ function $v({
|
|
|
15481
15481
|
if (b)
|
|
15482
15482
|
return /* @__PURE__ */ r("div", { className: "flex items-center justify-center h-64 border rounded-lg", children: /* @__PURE__ */ o("div", { className: "flex flex-col items-center gap-2", children: [
|
|
15483
15483
|
/* @__PURE__ */ r(ft, { className: "h-8 w-8 animate-spin text-muted-foreground" }),
|
|
15484
|
-
/* @__PURE__ */ r("p", { className: "text-sm text-muted-foreground", children:
|
|
15484
|
+
/* @__PURE__ */ r("p", { className: "text-sm text-muted-foreground", children: Q("datatable.loading", { defaultValue: "Loading..." }) })
|
|
15485
15485
|
] }) });
|
|
15486
15486
|
if (y)
|
|
15487
15487
|
return /* @__PURE__ */ r("div", { className: "flex items-center justify-center h-64 border rounded-lg bg-destructive/10", children: /* @__PURE__ */ o("div", { className: "flex flex-col items-center gap-2 text-destructive", children: [
|
|
@@ -15497,15 +15497,15 @@ function $v({
|
|
|
15497
15497
|
config: c,
|
|
15498
15498
|
globalFilter: zr,
|
|
15499
15499
|
onGlobalFilterChange: jr,
|
|
15500
|
-
density:
|
|
15501
|
-
onDensityChange:
|
|
15500
|
+
density: K,
|
|
15501
|
+
onDensityChange: ee,
|
|
15502
15502
|
onExport: D ? sr : void 0,
|
|
15503
15503
|
onImport: P ? or : void 0
|
|
15504
15504
|
}
|
|
15505
15505
|
),
|
|
15506
15506
|
/* @__PURE__ */ r("div", { className: "flex items-center justify-center h-64 border rounded-lg", children: C || /* @__PURE__ */ o("div", { className: "flex flex-col items-center gap-2 text-muted-foreground", children: [
|
|
15507
|
-
/* @__PURE__ */ r("p", { className: "text-lg font-medium", children:
|
|
15508
|
-
/* @__PURE__ */ r("p", { className: "text-sm", children:
|
|
15507
|
+
/* @__PURE__ */ r("p", { className: "text-lg font-medium", children: Q("datatable.noData", { defaultValue: "No data" }) }),
|
|
15508
|
+
/* @__PURE__ */ r("p", { className: "text-sm", children: Q("datatable.noDataDescription", { defaultValue: "There are no results to display" }) })
|
|
15509
15509
|
] }) })
|
|
15510
15510
|
] });
|
|
15511
15511
|
const ir = () => $t ? /* @__PURE__ */ r(
|
|
@@ -15724,8 +15724,8 @@ function $v({
|
|
|
15724
15724
|
config: c,
|
|
15725
15725
|
globalFilter: zr,
|
|
15726
15726
|
onGlobalFilterChange: jr,
|
|
15727
|
-
density:
|
|
15728
|
-
onDensityChange:
|
|
15727
|
+
density: K,
|
|
15728
|
+
onDensityChange: ee,
|
|
15729
15729
|
onExport: D ? sr : void 0,
|
|
15730
15730
|
onImport: P ? or : void 0
|
|
15731
15731
|
}
|
|
@@ -17777,11 +17777,11 @@ function Xv(e) {
|
|
|
17777
17777
|
if (typeof window > "u") return;
|
|
17778
17778
|
const H = () => {
|
|
17779
17779
|
h(!0), c?.(!0);
|
|
17780
|
-
},
|
|
17780
|
+
}, J = () => {
|
|
17781
17781
|
h(!1), c?.(!1);
|
|
17782
17782
|
};
|
|
17783
|
-
return window.addEventListener("online", H), window.addEventListener("offline",
|
|
17784
|
-
window.removeEventListener("online", H), window.removeEventListener("offline",
|
|
17783
|
+
return window.addEventListener("online", H), window.addEventListener("offline", J), () => {
|
|
17784
|
+
window.removeEventListener("online", H), window.removeEventListener("offline", J);
|
|
17785
17785
|
};
|
|
17786
17786
|
}, [c]);
|
|
17787
17787
|
const j = X(async () => {
|
|
@@ -17790,10 +17790,10 @@ function Xv(e) {
|
|
|
17790
17790
|
await T.init(), d && await T.cleanExpiredCache(d);
|
|
17791
17791
|
const H = await T.getCachedData(t);
|
|
17792
17792
|
H && (g(H.data), v(new Date(H.timestamp)));
|
|
17793
|
-
const
|
|
17794
|
-
S(
|
|
17795
|
-
const
|
|
17796
|
-
x(
|
|
17793
|
+
const J = await T.countPendingChanges(t);
|
|
17794
|
+
S(J);
|
|
17795
|
+
const Y = await T.getConflicts(t);
|
|
17796
|
+
x(Y);
|
|
17797
17797
|
} catch (H) {
|
|
17798
17798
|
console.error("[WakaUI] Error loading offline state:", H);
|
|
17799
17799
|
}
|
|
@@ -17816,8 +17816,8 @@ function Xv(e) {
|
|
|
17816
17816
|
if (!(!a || !T || !$))
|
|
17817
17817
|
try {
|
|
17818
17818
|
await T.cacheData(t, H), g(H), v(/* @__PURE__ */ new Date());
|
|
17819
|
-
} catch (
|
|
17820
|
-
console.error("[WakaUI] Error caching data:",
|
|
17819
|
+
} catch (J) {
|
|
17820
|
+
console.error("[WakaUI] Error caching data:", J);
|
|
17821
17821
|
}
|
|
17822
17822
|
},
|
|
17823
17823
|
[a, T, t, $]
|
|
@@ -17825,9 +17825,9 @@ function Xv(e) {
|
|
|
17825
17825
|
async (H) => {
|
|
17826
17826
|
if (!(!a || !T || !$))
|
|
17827
17827
|
try {
|
|
17828
|
-
await T.queueChange(t, H.rowId, H.type, H.data), S((
|
|
17829
|
-
} catch (
|
|
17830
|
-
console.error("[WakaUI] Error queueing change:",
|
|
17828
|
+
await T.queueChange(t, H.rowId, H.type, H.data), S((J) => J + 1);
|
|
17829
|
+
} catch (J) {
|
|
17830
|
+
console.error("[WakaUI] Error queueing change:", J);
|
|
17831
17831
|
}
|
|
17832
17832
|
},
|
|
17833
17833
|
[a, T, t, $]
|
|
@@ -17840,47 +17840,47 @@ function Xv(e) {
|
|
|
17840
17840
|
y(!1);
|
|
17841
17841
|
return;
|
|
17842
17842
|
}
|
|
17843
|
-
const
|
|
17844
|
-
for (const
|
|
17845
|
-
const
|
|
17846
|
-
if (
|
|
17847
|
-
if (
|
|
17848
|
-
await T.removeFromQueue(
|
|
17849
|
-
else if (
|
|
17850
|
-
const
|
|
17843
|
+
const J = await s(H);
|
|
17844
|
+
for (const Y of J) {
|
|
17845
|
+
const K = H.find((ee) => ee.id === Y.id);
|
|
17846
|
+
if (K)
|
|
17847
|
+
if (Y.success)
|
|
17848
|
+
await T.removeFromQueue(Y.id), S((ee) => Math.max(0, ee - 1));
|
|
17849
|
+
else if (Y.serverData) {
|
|
17850
|
+
const ee = {
|
|
17851
17851
|
tableId: t,
|
|
17852
|
-
rowId:
|
|
17853
|
-
localData:
|
|
17854
|
-
serverData:
|
|
17855
|
-
localTimestamp: new Date(
|
|
17856
|
-
serverTimestamp:
|
|
17857
|
-
type:
|
|
17852
|
+
rowId: K.rowId,
|
|
17853
|
+
localData: K.data,
|
|
17854
|
+
serverData: Y.serverData,
|
|
17855
|
+
localTimestamp: new Date(K.timestamp),
|
|
17856
|
+
serverTimestamp: Y.serverTimestamp || /* @__PURE__ */ new Date(),
|
|
17857
|
+
type: K.type
|
|
17858
17858
|
};
|
|
17859
17859
|
if (n === "manual") {
|
|
17860
|
-
const q = { id: await T.addConflict(
|
|
17860
|
+
const q = { id: await T.addConflict(ee), ...ee };
|
|
17861
17861
|
x((B) => [...B, q]), u?.(q);
|
|
17862
17862
|
} else {
|
|
17863
|
-
let
|
|
17863
|
+
let me = null;
|
|
17864
17864
|
if (n === "client-wins")
|
|
17865
|
-
|
|
17865
|
+
me = K.data;
|
|
17866
17866
|
else if (n === "server-wins")
|
|
17867
|
-
|
|
17867
|
+
me = Y.serverData;
|
|
17868
17868
|
else if (n === "latest-wins") {
|
|
17869
|
-
const q = new Date(
|
|
17870
|
-
|
|
17869
|
+
const q = new Date(K.timestamp).getTime(), B = (Y.serverTimestamp || /* @__PURE__ */ new Date()).getTime();
|
|
17870
|
+
me = q > B ? K.data : Y.serverData;
|
|
17871
17871
|
}
|
|
17872
|
-
if (await T.removeFromQueue(
|
|
17873
|
-
const q = N.map((B) => B.id ===
|
|
17872
|
+
if (await T.removeFromQueue(Y.id), S((q) => Math.max(0, q - 1)), me && N) {
|
|
17873
|
+
const q = N.map((B) => B.id === K.rowId ? { ...B, ...me } : B);
|
|
17874
17874
|
await z(q);
|
|
17875
17875
|
}
|
|
17876
17876
|
}
|
|
17877
17877
|
} else
|
|
17878
|
-
await T.updateAttempts(
|
|
17878
|
+
await T.updateAttempts(Y.id, Y.error);
|
|
17879
17879
|
}
|
|
17880
|
-
A(/* @__PURE__ */ new Date()), l?.(
|
|
17880
|
+
A(/* @__PURE__ */ new Date()), l?.(J);
|
|
17881
17881
|
} catch (H) {
|
|
17882
|
-
const
|
|
17883
|
-
D(
|
|
17882
|
+
const J = H instanceof Error ? H.message : "Sync failed";
|
|
17883
|
+
D(J), console.error("[WakaUI] Sync error:", H);
|
|
17884
17884
|
} finally {
|
|
17885
17885
|
y(!1);
|
|
17886
17886
|
}
|
|
@@ -17899,21 +17899,21 @@ function Xv(e) {
|
|
|
17899
17899
|
u,
|
|
17900
17900
|
l
|
|
17901
17901
|
]), M = X(
|
|
17902
|
-
async (H,
|
|
17902
|
+
async (H, J, Y) => {
|
|
17903
17903
|
if (!(!a || !T || !$))
|
|
17904
17904
|
try {
|
|
17905
|
-
const
|
|
17906
|
-
if (!
|
|
17907
|
-
let
|
|
17908
|
-
if (
|
|
17909
|
-
const B = N.map((re) => re.id ===
|
|
17905
|
+
const K = w.find((B) => B.id === H);
|
|
17906
|
+
if (!K) return;
|
|
17907
|
+
let ee = null;
|
|
17908
|
+
if (J === "local" ? ee = K.localData : J === "server" ? ee = K.serverData : J === "merge" && Y && (ee = Y), ee && N) {
|
|
17909
|
+
const B = N.map((re) => re.id === K.rowId ? { ...re, ...ee } : re);
|
|
17910
17910
|
await z(B);
|
|
17911
17911
|
}
|
|
17912
17912
|
await T.resolveConflict(H), x((B) => B.filter((re) => re.id !== H));
|
|
17913
|
-
const q = (await T.getPendingChanges(t)).find((B) => B.rowId ===
|
|
17913
|
+
const q = (await T.getPendingChanges(t)).find((B) => B.rowId === K.rowId);
|
|
17914
17914
|
q && (await T.removeFromQueue(q.id), S((B) => Math.max(0, B - 1)));
|
|
17915
|
-
} catch (
|
|
17916
|
-
console.error("[WakaUI] Error resolving conflict:",
|
|
17915
|
+
} catch (K) {
|
|
17916
|
+
console.error("[WakaUI] Error resolving conflict:", K);
|
|
17917
17917
|
}
|
|
17918
17918
|
},
|
|
17919
17919
|
[a, T, t, $, w, N, z]
|
|
@@ -19107,48 +19107,48 @@ const Cb = f.forwardRef(
|
|
|
19107
19107
|
description: S
|
|
19108
19108
|
}, N) => {
|
|
19109
19109
|
const [g, p] = f.useState([]), [v, w] = f.useState(!1), x = f.useRef(null), E = () => `${Date.now()}-${Math.random().toString(36).slice(2, 11)}`, D = (L) => a && L.size > a ? `Le fichier dépasse la taille maximale de ${rn(a)}` : t && !t.split(",").map((R) => R.trim()).some((R) => R.startsWith(".") ? L.name.toLowerCase().endsWith(R.toLowerCase()) : R.endsWith("/*") ? L.type.startsWith(R.replace("/*", "/")) : L.type === R) ? `Type de fichier non accepté. Types acceptés: ${t}` : null, P = async (L) => {
|
|
19110
|
-
const M = Array.from(L), O = g.filter((
|
|
19110
|
+
const M = Array.from(L), O = g.filter((Q) => Q.status !== "error").length, R = n - O, I = M.slice(0, R);
|
|
19111
19111
|
M.length > R && l?.(`Nombre maximum de fichiers atteint (${n})`);
|
|
19112
|
-
const F = I.map((
|
|
19112
|
+
const F = I.map((Q) => ({
|
|
19113
19113
|
id: E(),
|
|
19114
|
-
file:
|
|
19114
|
+
file: Q,
|
|
19115
19115
|
progress: 0,
|
|
19116
19116
|
status: "pending"
|
|
19117
19117
|
})), G = [];
|
|
19118
|
-
for (const
|
|
19119
|
-
const H = D(
|
|
19120
|
-
H && (
|
|
19118
|
+
for (const Q of F) {
|
|
19119
|
+
const H = D(Q.file);
|
|
19120
|
+
H && (Q.status = "error", Q.error = H, l?.(H, Q.file)), G.push(Q);
|
|
19121
19121
|
}
|
|
19122
|
-
if (p((
|
|
19123
|
-
for (const
|
|
19122
|
+
if (p((Q) => [...Q, ...G]), i)
|
|
19123
|
+
for (const Q of G.filter((H) => H.status === "pending"))
|
|
19124
19124
|
try {
|
|
19125
19125
|
p(
|
|
19126
|
-
(
|
|
19127
|
-
(
|
|
19126
|
+
(J) => J.map(
|
|
19127
|
+
(Y) => Y.id === Q.id ? { ...Y, status: "uploading" } : Y
|
|
19128
19128
|
)
|
|
19129
19129
|
);
|
|
19130
|
-
const H = await i(
|
|
19130
|
+
const H = await i(Q.file, (J) => {
|
|
19131
19131
|
p(
|
|
19132
|
-
(
|
|
19132
|
+
(Y) => Y.map((K) => K.id === Q.id ? { ...K, progress: J } : K)
|
|
19133
19133
|
);
|
|
19134
19134
|
});
|
|
19135
19135
|
p(
|
|
19136
|
-
(
|
|
19137
|
-
(
|
|
19136
|
+
(J) => J.map(
|
|
19137
|
+
(Y) => Y.id === Q.id ? { ...Y, status: "success", progress: 100, url: H } : Y
|
|
19138
19138
|
)
|
|
19139
19139
|
);
|
|
19140
19140
|
} catch (H) {
|
|
19141
|
-
const
|
|
19141
|
+
const J = H instanceof Error ? H.message : "Erreur d'upload";
|
|
19142
19142
|
p(
|
|
19143
|
-
(
|
|
19144
|
-
(
|
|
19143
|
+
(Y) => Y.map(
|
|
19144
|
+
(K) => K.id === Q.id ? { ...K, status: "error", error: J } : K
|
|
19145
19145
|
)
|
|
19146
|
-
), l?.(
|
|
19146
|
+
), l?.(J, Q.file);
|
|
19147
19147
|
}
|
|
19148
19148
|
else
|
|
19149
19149
|
p(
|
|
19150
|
-
(
|
|
19151
|
-
(H) => G.some((
|
|
19150
|
+
(Q) => Q.map(
|
|
19151
|
+
(H) => G.some((J) => J.id === H.id) && H.status === "pending" ? { ...H, status: "success", progress: 100 } : H
|
|
19152
19152
|
)
|
|
19153
19153
|
);
|
|
19154
19154
|
};
|
|
@@ -19370,7 +19370,7 @@ const ui = f.forwardRef(
|
|
|
19370
19370
|
P((F) => [...F, I]), V(I.value), d?.(I.value);
|
|
19371
19371
|
}, M = (I, F) => {
|
|
19372
19372
|
F.stopPropagation();
|
|
19373
|
-
const G = W.filter((
|
|
19373
|
+
const G = W.filter((Q) => Q !== I);
|
|
19374
19374
|
a?.(G.length > 0 ? G : null);
|
|
19375
19375
|
}, O = (I) => D.find((G) => G.value === I)?.label || I, R = A || u;
|
|
19376
19376
|
return /* @__PURE__ */ o("div", { className: k("space-y-1.5", b), children: [
|
|
@@ -20039,10 +20039,9 @@ const Pb = f.forwardRef(
|
|
|
20039
20039
|
Bar: I,
|
|
20040
20040
|
XAxis: F,
|
|
20041
20041
|
YAxis: G,
|
|
20042
|
-
CartesianGrid:
|
|
20042
|
+
CartesianGrid: Q,
|
|
20043
20043
|
Tooltip: H,
|
|
20044
|
-
Legend:
|
|
20045
|
-
Cell: Q
|
|
20044
|
+
Legend: J
|
|
20046
20045
|
} = O;
|
|
20047
20046
|
return /* @__PURE__ */ o(
|
|
20048
20047
|
R,
|
|
@@ -20053,7 +20052,7 @@ const Pb = f.forwardRef(
|
|
|
20053
20052
|
barCategoryGap: _,
|
|
20054
20053
|
children: [
|
|
20055
20054
|
u && /* @__PURE__ */ r(
|
|
20056
|
-
|
|
20055
|
+
Q,
|
|
20057
20056
|
{
|
|
20058
20057
|
strokeDasharray: "3 3",
|
|
20059
20058
|
stroke: T.gridColor,
|
|
@@ -20086,43 +20085,35 @@ const Pb = f.forwardRef(
|
|
|
20086
20085
|
H,
|
|
20087
20086
|
{
|
|
20088
20087
|
...z,
|
|
20089
|
-
formatter: M && typeof M != "boolean" && M.formatter ? (Y,
|
|
20088
|
+
formatter: M && typeof M != "boolean" && M.formatter ? (Y, K) => M.formatter(
|
|
20090
20089
|
Y,
|
|
20091
|
-
|
|
20090
|
+
K,
|
|
20092
20091
|
e[0]
|
|
20093
20092
|
) : (Y) => {
|
|
20094
|
-
const
|
|
20095
|
-
return `${
|
|
20093
|
+
const K = M && typeof M != "boolean" && M.valuePrefix || "", ee = M && typeof M != "boolean" && M.valueSuffix || "";
|
|
20094
|
+
return `${K}${Y}${ee}`;
|
|
20096
20095
|
}
|
|
20097
20096
|
}
|
|
20098
20097
|
),
|
|
20099
20098
|
L?.enabled && /* @__PURE__ */ r(
|
|
20100
|
-
|
|
20099
|
+
J,
|
|
20101
20100
|
{
|
|
20102
20101
|
align: L.align,
|
|
20103
20102
|
verticalAlign: L.position === "top" ? "top" : "bottom",
|
|
20104
20103
|
wrapperStyle: { paddingTop: L.position === "bottom" ? 16 : 0 }
|
|
20105
20104
|
}
|
|
20106
20105
|
),
|
|
20107
|
-
V.map((Y,
|
|
20106
|
+
V.map((Y, K) => /* @__PURE__ */ r(
|
|
20108
20107
|
I,
|
|
20109
20108
|
{
|
|
20110
20109
|
dataKey: Y.dataKey,
|
|
20111
20110
|
name: Y.label,
|
|
20112
|
-
fill: Y.color || j(
|
|
20111
|
+
fill: Y.color || j(K),
|
|
20113
20112
|
radius: P,
|
|
20114
20113
|
stackId: D ? "stack" : void 0,
|
|
20115
20114
|
barSize: A,
|
|
20116
20115
|
animationDuration: l,
|
|
20117
|
-
isAnimationActive: c
|
|
20118
|
-
children: w && e.map((de, q) => /* @__PURE__ */ r(
|
|
20119
|
-
Q,
|
|
20120
|
-
{
|
|
20121
|
-
onClick: () => w(de, q),
|
|
20122
|
-
style: { cursor: "pointer" }
|
|
20123
|
-
},
|
|
20124
|
-
`cell-${q}`
|
|
20125
|
-
))
|
|
20116
|
+
isAnimationActive: c
|
|
20126
20117
|
},
|
|
20127
20118
|
Y.dataKey
|
|
20128
20119
|
))
|
|
@@ -20209,7 +20200,7 @@ const Rb = f.forwardRef(
|
|
|
20209
20200
|
XAxis: I,
|
|
20210
20201
|
YAxis: F,
|
|
20211
20202
|
CartesianGrid: G,
|
|
20212
|
-
Tooltip:
|
|
20203
|
+
Tooltip: Q,
|
|
20213
20204
|
Legend: H
|
|
20214
20205
|
} = M;
|
|
20215
20206
|
return /* @__PURE__ */ o(O, { data: e, children: [
|
|
@@ -20244,16 +20235,16 @@ const Rb = f.forwardRef(
|
|
|
20244
20235
|
}
|
|
20245
20236
|
),
|
|
20246
20237
|
L?.enabled !== !1 && m && /* @__PURE__ */ r(
|
|
20247
|
-
|
|
20238
|
+
Q,
|
|
20248
20239
|
{
|
|
20249
20240
|
...j,
|
|
20250
|
-
formatter: L && typeof L != "boolean" && L.formatter ? (
|
|
20251
|
-
|
|
20252
|
-
|
|
20241
|
+
formatter: L && typeof L != "boolean" && L.formatter ? (J, Y) => L.formatter(
|
|
20242
|
+
J,
|
|
20243
|
+
Y,
|
|
20253
20244
|
e[0]
|
|
20254
|
-
) : (
|
|
20255
|
-
const
|
|
20256
|
-
return `${
|
|
20245
|
+
) : (J) => {
|
|
20246
|
+
const Y = L && typeof L != "boolean" && L.valuePrefix || "", K = L && typeof L != "boolean" && L.valueSuffix || "";
|
|
20247
|
+
return `${Y}${J}${K}`;
|
|
20257
20248
|
}
|
|
20258
20249
|
}
|
|
20259
20250
|
),
|
|
@@ -20265,21 +20256,21 @@ const Rb = f.forwardRef(
|
|
|
20265
20256
|
wrapperStyle: { paddingTop: V.position === "bottom" ? 16 : 0 }
|
|
20266
20257
|
}
|
|
20267
20258
|
),
|
|
20268
|
-
z.map((
|
|
20259
|
+
z.map((J, Y) => /* @__PURE__ */ r(
|
|
20269
20260
|
R,
|
|
20270
20261
|
{
|
|
20271
|
-
dataKey:
|
|
20272
|
-
name:
|
|
20273
|
-
stroke:
|
|
20274
|
-
strokeWidth:
|
|
20275
|
-
strokeDasharray:
|
|
20262
|
+
dataKey: J.dataKey,
|
|
20263
|
+
name: J.label,
|
|
20264
|
+
stroke: J.color || T(Y),
|
|
20265
|
+
strokeWidth: J.strokeWidth || $,
|
|
20266
|
+
strokeDasharray: J.strokeDasharray,
|
|
20276
20267
|
type: E,
|
|
20277
|
-
dot: D ? { r: P, fill:
|
|
20268
|
+
dot: D ? { r: P, fill: J.color || T(Y) } : !1,
|
|
20278
20269
|
activeDot: A ? { r: P + 2 } : !1,
|
|
20279
20270
|
animationDuration: l,
|
|
20280
20271
|
isAnimationActive: c
|
|
20281
20272
|
},
|
|
20282
|
-
|
|
20273
|
+
J.dataKey
|
|
20283
20274
|
))
|
|
20284
20275
|
] });
|
|
20285
20276
|
}
|
|
@@ -20365,15 +20356,15 @@ const $b = f.forwardRef(
|
|
|
20365
20356
|
const {
|
|
20366
20357
|
AreaChart: F,
|
|
20367
20358
|
Area: G,
|
|
20368
|
-
XAxis:
|
|
20359
|
+
XAxis: Q,
|
|
20369
20360
|
YAxis: H,
|
|
20370
|
-
CartesianGrid:
|
|
20371
|
-
Tooltip:
|
|
20372
|
-
Legend:
|
|
20361
|
+
CartesianGrid: J,
|
|
20362
|
+
Tooltip: Y,
|
|
20363
|
+
Legend: K
|
|
20373
20364
|
} = I;
|
|
20374
20365
|
return /* @__PURE__ */ o(F, { data: e, children: [
|
|
20375
|
-
/* @__PURE__ */ r("defs", { children: M.map((
|
|
20376
|
-
const q =
|
|
20366
|
+
/* @__PURE__ */ r("defs", { children: M.map((ee, me) => {
|
|
20367
|
+
const q = ee.color || V(me), B = `gradient-${ee.dataKey}-${me}`;
|
|
20377
20368
|
return /* @__PURE__ */ o(
|
|
20378
20369
|
"linearGradient",
|
|
20379
20370
|
{
|
|
@@ -20391,7 +20382,7 @@ const $b = f.forwardRef(
|
|
|
20391
20382
|
);
|
|
20392
20383
|
}) }),
|
|
20393
20384
|
u && /* @__PURE__ */ r(
|
|
20394
|
-
|
|
20385
|
+
J,
|
|
20395
20386
|
{
|
|
20396
20387
|
strokeDasharray: "3 3",
|
|
20397
20388
|
stroke: z.gridColor,
|
|
@@ -20400,7 +20391,7 @@ const $b = f.forwardRef(
|
|
|
20400
20391
|
}
|
|
20401
20392
|
),
|
|
20402
20393
|
b?.showXAxis !== !1 && /* @__PURE__ */ r(
|
|
20403
|
-
|
|
20394
|
+
Q,
|
|
20404
20395
|
{
|
|
20405
20396
|
dataKey: "name",
|
|
20406
20397
|
axisLine: { stroke: z.axisColor },
|
|
@@ -20421,45 +20412,45 @@ const $b = f.forwardRef(
|
|
|
20421
20412
|
}
|
|
20422
20413
|
),
|
|
20423
20414
|
R?.enabled !== !1 && m && /* @__PURE__ */ r(
|
|
20424
|
-
|
|
20415
|
+
Y,
|
|
20425
20416
|
{
|
|
20426
20417
|
...L,
|
|
20427
|
-
formatter: R && typeof R != "boolean" && R.formatter ? (
|
|
20428
|
-
|
|
20429
|
-
|
|
20418
|
+
formatter: R && typeof R != "boolean" && R.formatter ? (ee, me) => R.formatter(
|
|
20419
|
+
ee,
|
|
20420
|
+
me,
|
|
20430
20421
|
e[0]
|
|
20431
|
-
) : (
|
|
20432
|
-
const
|
|
20433
|
-
return `${
|
|
20422
|
+
) : (ee) => {
|
|
20423
|
+
const me = R && typeof R != "boolean" && R.valuePrefix || "", q = R && typeof R != "boolean" && R.valueSuffix || "";
|
|
20424
|
+
return `${me}${ee}${q}`;
|
|
20434
20425
|
}
|
|
20435
20426
|
}
|
|
20436
20427
|
),
|
|
20437
20428
|
O?.enabled && /* @__PURE__ */ r(
|
|
20438
|
-
|
|
20429
|
+
K,
|
|
20439
20430
|
{
|
|
20440
20431
|
align: O.align,
|
|
20441
20432
|
verticalAlign: O.position === "top" ? "top" : "bottom",
|
|
20442
20433
|
wrapperStyle: { paddingTop: O.position === "bottom" ? 16 : 0 }
|
|
20443
20434
|
}
|
|
20444
20435
|
),
|
|
20445
|
-
M.map((
|
|
20446
|
-
const q =
|
|
20436
|
+
M.map((ee, me) => {
|
|
20437
|
+
const q = ee.color || V(me), B = `gradient-${ee.dataKey}-${me}`;
|
|
20447
20438
|
return /* @__PURE__ */ r(
|
|
20448
20439
|
G,
|
|
20449
20440
|
{
|
|
20450
|
-
dataKey:
|
|
20451
|
-
name:
|
|
20441
|
+
dataKey: ee.dataKey,
|
|
20442
|
+
name: ee.label,
|
|
20452
20443
|
stroke: q,
|
|
20453
|
-
strokeWidth:
|
|
20444
|
+
strokeWidth: ee.strokeWidth || $,
|
|
20454
20445
|
fill: `url(#${B})`,
|
|
20455
|
-
fillOpacity:
|
|
20446
|
+
fillOpacity: ee.fillOpacity ?? W,
|
|
20456
20447
|
type: E,
|
|
20457
20448
|
dot: D ? { r: P, fill: q } : !1,
|
|
20458
20449
|
stackId: _ ? "stack" : void 0,
|
|
20459
20450
|
animationDuration: l,
|
|
20460
20451
|
isAnimationActive: c
|
|
20461
20452
|
},
|
|
20462
|
-
|
|
20453
|
+
ee.dataKey
|
|
20463
20454
|
);
|
|
20464
20455
|
})
|
|
20465
20456
|
] });
|
|
@@ -20550,13 +20541,13 @@ const Fb = f.forwardRef(
|
|
|
20550
20541
|
F,
|
|
20551
20542
|
{
|
|
20552
20543
|
...j,
|
|
20553
|
-
formatter: V && typeof V != "boolean" && V.formatter ? (
|
|
20554
|
-
|
|
20544
|
+
formatter: V && typeof V != "boolean" && V.formatter ? (Q, H) => V.formatter(
|
|
20545
|
+
Q,
|
|
20555
20546
|
H,
|
|
20556
20547
|
e[0]
|
|
20557
|
-
) : (
|
|
20558
|
-
const H = V && typeof V != "boolean" && V.valuePrefix || "",
|
|
20559
|
-
return `${H}${
|
|
20548
|
+
) : (Q) => {
|
|
20549
|
+
const H = V && typeof V != "boolean" && V.valuePrefix || "", J = V && typeof V != "boolean" && V.valueSuffix || "";
|
|
20550
|
+
return `${H}${Q}${J}`;
|
|
20560
20551
|
}
|
|
20561
20552
|
}
|
|
20562
20553
|
),
|
|
@@ -20586,7 +20577,7 @@ const Fb = f.forwardRef(
|
|
|
20586
20577
|
isAnimationActive: i,
|
|
20587
20578
|
label: A ? L : !1,
|
|
20588
20579
|
labelLine: A && $ === "outside",
|
|
20589
|
-
children: e.map((
|
|
20580
|
+
children: e.map((Q, H) => /* @__PURE__ */ r(
|
|
20590
20581
|
I,
|
|
20591
20582
|
{
|
|
20592
20583
|
fill: T(H),
|
|
@@ -21775,7 +21766,7 @@ function Vs({ config: e }) {
|
|
|
21775
21766
|
{ id: "profile", label: "Profil", icon: /* @__PURE__ */ r(Hl, { className: "h-4 w-4" }) },
|
|
21776
21767
|
{ id: "settings", label: "Paramètres", icon: /* @__PURE__ */ r(kn, { className: "h-4 w-4" }) },
|
|
21777
21768
|
{ id: "logout", label: "Déconnexion", icon: /* @__PURE__ */ r(Bl, { className: "h-4 w-4" }), variant: "destructive" }
|
|
21778
|
-
], n = e.actions
|
|
21769
|
+
], n = e.actions ?? a;
|
|
21779
21770
|
return /* @__PURE__ */ o(pa, { children: [
|
|
21780
21771
|
/* @__PURE__ */ r(ga, { asChild: !0, children: /* @__PURE__ */ o(
|
|
21781
21772
|
"button",
|