@tsiky/components-r19 1.3.4 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{PeriodRange-BXSfe73g.js → PeriodRange-BpxD5xRJ.js} +103 -89
- package/dist/PeriodRange-NiT-19Z4.cjs +26 -0
- package/dist/chart.cjs.js +1 -1
- package/dist/chart.js +2 -2
- package/dist/components-r19.css +1 -1
- package/dist/index.cjs.js +1633 -1633
- package/dist/index.d.ts +4 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12846 -12535
- package/dist/src/components/BadgeList/BadgeList.d.ts +19 -0
- package/dist/src/components/BadgeList/BadgeList.d.ts.map +1 -0
- package/dist/src/components/BadgeList/index.d.ts +2 -0
- package/dist/src/components/BadgeList/index.d.ts.map +1 -0
- package/dist/src/components/CircularProgress/CircularProgress.d.ts +2 -0
- package/dist/src/components/CircularProgress/CircularProgress.d.ts.map +1 -1
- package/dist/src/components/Confirmationpopup/ConfirmationPopup.d.ts.map +1 -1
- package/dist/src/components/DashboardSummary/DashboardSummary.d.ts +25 -0
- package/dist/src/components/DashboardSummary/DashboardSummary.d.ts.map +1 -0
- package/dist/src/components/DashboardSummary/index.d.ts +2 -0
- package/dist/src/components/DashboardSummary/index.d.ts.map +1 -0
- package/dist/src/components/DayStatCard/DayStatCard.d.ts +2 -1
- package/dist/src/components/DayStatCard/DayStatCard.d.ts.map +1 -1
- package/dist/src/components/DropdownMenu/DropdownMenu.d.ts +19 -0
- package/dist/src/components/DropdownMenu/DropdownMenu.d.ts.map +1 -1
- package/dist/src/components/DynamicInput/input/DateInput.d.ts +2 -0
- package/dist/src/components/DynamicInput/input/DateInput.d.ts.map +1 -1
- package/dist/src/components/DynamicTable/ColumnSorter.d.ts +1 -1
- package/dist/src/components/DynamicTable/ColumnSorter.d.ts.map +1 -1
- package/dist/src/components/DynamicTable/TableauDynamique.d.ts +3 -2
- package/dist/src/components/DynamicTable/TableauDynamique.d.ts.map +1 -1
- package/dist/src/components/Encours/Encours.d.ts +35 -0
- package/dist/src/components/Encours/Encours.d.ts.map +1 -0
- package/dist/src/components/Encours/index.d.ts +2 -0
- package/dist/src/components/Encours/index.d.ts.map +1 -0
- package/dist/src/components/ModuleSideBar/ModuleSideBar.d.ts.map +1 -1
- package/dist/src/components/PeriodRange/PeriodRange.d.ts +14 -2
- package/dist/src/components/PeriodRange/PeriodRange.d.ts.map +1 -1
- package/dist/src/components/PeriodRange/index.d.ts +3 -0
- package/dist/src/components/PeriodRange/index.d.ts.map +1 -0
- package/dist/src/components/TranslationKey/TranslationKey.d.ts.map +1 -1
- package/package.json +88 -88
- package/dist/PeriodRange-B53IzsZ7.cjs +0 -26
- package/dist/PeriodRange-B7crP6r3.js +0 -256
- package/dist/PeriodRange-Bk2LtI3D.cjs +0 -26
- package/dist/assets/index-C-LOvVBi.js +0 -986
- package/dist/assets/index-D8b4DHJx.css +0 -1
- package/dist/index.html +0 -14
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { forwardRef as
|
|
2
|
-
import { jsxs as
|
|
1
|
+
import { forwardRef as W, createElement as v, useState as b, useRef as O, useEffect as m } from "react";
|
|
2
|
+
import { jsxs as d, jsx as o } from "react/jsx-runtime";
|
|
3
3
|
/**
|
|
4
4
|
* @license lucide-react v0.540.0 - ISC
|
|
5
5
|
*
|
|
6
6
|
* This source code is licensed under the ISC license.
|
|
7
7
|
* See the LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
|
-
const
|
|
9
|
+
const M = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), x = (e) => e.replace(
|
|
10
10
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
11
11
|
(a, t, r) => r ? r.toUpperCase() : t.toLowerCase()
|
|
12
|
-
),
|
|
13
|
-
const a =
|
|
12
|
+
), L = (e) => {
|
|
13
|
+
const a = x(e);
|
|
14
14
|
return a.charAt(0).toUpperCase() + a.slice(1);
|
|
15
|
-
},
|
|
15
|
+
}, k = (...e) => e.filter((a, t, r) => !!a && a.trim() !== "" && r.indexOf(a) === t).join(" ").trim(), R = (e) => {
|
|
16
16
|
for (const a in e)
|
|
17
17
|
if (a.startsWith("aria-") || a === "role" || a === "title")
|
|
18
18
|
return !0;
|
|
@@ -23,7 +23,7 @@ const j = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), P = (e)
|
|
|
23
23
|
* This source code is licensed under the ISC license.
|
|
24
24
|
* See the LICENSE file in the root directory of this source tree.
|
|
25
25
|
*/
|
|
26
|
-
var
|
|
26
|
+
var S = {
|
|
27
27
|
xmlns: "http://www.w3.org/2000/svg",
|
|
28
28
|
width: 24,
|
|
29
29
|
height: 24,
|
|
@@ -40,32 +40,32 @@ var k = {
|
|
|
40
40
|
* This source code is licensed under the ISC license.
|
|
41
41
|
* See the LICENSE file in the root directory of this source tree.
|
|
42
42
|
*/
|
|
43
|
-
const
|
|
43
|
+
const A = W(
|
|
44
44
|
({
|
|
45
45
|
color: e = "currentColor",
|
|
46
46
|
size: a = 24,
|
|
47
47
|
strokeWidth: t = 2,
|
|
48
48
|
absoluteStrokeWidth: r,
|
|
49
49
|
className: l = "",
|
|
50
|
-
children:
|
|
51
|
-
iconNode:
|
|
52
|
-
...
|
|
53
|
-
},
|
|
50
|
+
children: c,
|
|
51
|
+
iconNode: g,
|
|
52
|
+
...h
|
|
53
|
+
}, i) => v(
|
|
54
54
|
"svg",
|
|
55
55
|
{
|
|
56
|
-
ref:
|
|
57
|
-
...
|
|
56
|
+
ref: i,
|
|
57
|
+
...S,
|
|
58
58
|
width: a,
|
|
59
59
|
height: a,
|
|
60
60
|
stroke: e,
|
|
61
61
|
strokeWidth: r ? Number(t) * 24 / Number(a) : t,
|
|
62
|
-
className:
|
|
63
|
-
...!
|
|
64
|
-
...
|
|
62
|
+
className: k("lucide", l),
|
|
63
|
+
...!c && !R(h) && { "aria-hidden": "true" },
|
|
64
|
+
...h
|
|
65
65
|
},
|
|
66
66
|
[
|
|
67
|
-
...
|
|
68
|
-
...Array.isArray(
|
|
67
|
+
...g.map(([p, u]) => v(p, u)),
|
|
68
|
+
...Array.isArray(c) ? c : [c]
|
|
69
69
|
]
|
|
70
70
|
)
|
|
71
71
|
);
|
|
@@ -75,20 +75,20 @@ const O = C(
|
|
|
75
75
|
* This source code is licensed under the ISC license.
|
|
76
76
|
* See the LICENSE file in the root directory of this source tree.
|
|
77
77
|
*/
|
|
78
|
-
const
|
|
79
|
-
const t =
|
|
80
|
-
({ className: r, ...l },
|
|
81
|
-
ref:
|
|
78
|
+
const T = (e, a) => {
|
|
79
|
+
const t = W(
|
|
80
|
+
({ className: r, ...l }, c) => v(A, {
|
|
81
|
+
ref: c,
|
|
82
82
|
iconNode: a,
|
|
83
|
-
className:
|
|
84
|
-
`lucide-${
|
|
83
|
+
className: k(
|
|
84
|
+
`lucide-${M(L(e))}`,
|
|
85
85
|
`lucide-${e}`,
|
|
86
86
|
r
|
|
87
87
|
),
|
|
88
88
|
...l
|
|
89
89
|
})
|
|
90
90
|
);
|
|
91
|
-
return t.displayName =
|
|
91
|
+
return t.displayName = L(e), t;
|
|
92
92
|
};
|
|
93
93
|
/**
|
|
94
94
|
* @license lucide-react v0.540.0 - ISC
|
|
@@ -96,19 +96,19 @@ const M = (e, a) => {
|
|
|
96
96
|
* This source code is licensed under the ISC license.
|
|
97
97
|
* See the LICENSE file in the root directory of this source tree.
|
|
98
98
|
*/
|
|
99
|
-
const
|
|
99
|
+
const E = [
|
|
100
100
|
["path", { d: "M12 2v20", key: "t6zp3m" }],
|
|
101
101
|
["path", { d: "m15 19-3 3-3-3", key: "11eu04" }],
|
|
102
102
|
["path", { d: "m19 9 3 3-3 3", key: "1mg7y2" }],
|
|
103
103
|
["path", { d: "M2 12h20", key: "9i4pu4" }],
|
|
104
104
|
["path", { d: "m5 9-3 3 3 3", key: "j64kie" }],
|
|
105
105
|
["path", { d: "m9 5 3-3 3 3", key: "l8vdw6" }]
|
|
106
|
-
],
|
|
107
|
-
var
|
|
108
|
-
function
|
|
106
|
+
], Y = T("move", E);
|
|
107
|
+
var ee = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
108
|
+
function ae(e) {
|
|
109
109
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function te(e) {
|
|
112
112
|
if (Object.prototype.hasOwnProperty.call(e, "__esModule")) return e;
|
|
113
113
|
var a = e.default;
|
|
114
114
|
if (typeof a == "function") {
|
|
@@ -132,45 +132,59 @@ function X(e) {
|
|
|
132
132
|
});
|
|
133
133
|
}), t;
|
|
134
134
|
}
|
|
135
|
-
const
|
|
136
|
-
wrapper:
|
|
137
|
-
label:
|
|
138
|
-
labelText:
|
|
139
|
-
calendarIcon:
|
|
140
|
-
rangeRow:
|
|
141
|
-
dateWrap:
|
|
142
|
-
innerLabel:
|
|
143
|
-
dateInput:
|
|
144
|
-
sepWrap:
|
|
145
|
-
separator:
|
|
146
|
-
samplingWrap:
|
|
147
|
-
samplingLabel:
|
|
148
|
-
samplingSelect:
|
|
135
|
+
const F = "_wrapper_1ogd3_1", $ = "_label_1ogd3_14", H = "_labelText_1ogd3_22", V = "_calendarIcon_1ogd3_26", z = "_rangeRow_1ogd3_31", B = "_dateWrap_1ogd3_39", D = "_innerLabel_1ogd3_47", U = "_dateInput_1ogd3_52", Z = "_sepWrap_1ogd3_65", G = "_separator_1ogd3_72", K = "_samplingWrap_1ogd3_77", q = "_samplingLabel_1ogd3_86", J = "_samplingSelect_1ogd3_90", n = {
|
|
136
|
+
wrapper: F,
|
|
137
|
+
label: $,
|
|
138
|
+
labelText: H,
|
|
139
|
+
calendarIcon: V,
|
|
140
|
+
rangeRow: z,
|
|
141
|
+
dateWrap: B,
|
|
142
|
+
innerLabel: D,
|
|
143
|
+
dateInput: U,
|
|
144
|
+
sepWrap: Z,
|
|
145
|
+
separator: G,
|
|
146
|
+
samplingWrap: K,
|
|
147
|
+
samplingLabel: q,
|
|
148
|
+
samplingSelect: J
|
|
149
149
|
};
|
|
150
|
-
function
|
|
150
|
+
function re({
|
|
151
151
|
start: e = "",
|
|
152
152
|
end: a = "",
|
|
153
153
|
onChange: t,
|
|
154
|
-
sampling: r = "
|
|
154
|
+
sampling: r = "day",
|
|
155
155
|
onSamplingChange: l,
|
|
156
|
-
|
|
156
|
+
labels: c = {},
|
|
157
|
+
samplingOptions: g = {},
|
|
158
|
+
className: h = ""
|
|
157
159
|
}) {
|
|
158
|
-
const
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
160
|
+
const i = {
|
|
161
|
+
period: "Période",
|
|
162
|
+
start: "Début",
|
|
163
|
+
end: "Fin",
|
|
164
|
+
sampling: "Échantillonnage",
|
|
165
|
+
...c
|
|
166
|
+
}, p = {
|
|
167
|
+
hour: "Par heure",
|
|
168
|
+
day: "Par jour",
|
|
169
|
+
week: "Par semaine",
|
|
170
|
+
month: "Par mois",
|
|
171
|
+
...g
|
|
172
|
+
}, [u, w] = b(e), [f, y] = b(a), [j, C] = b(r), _ = O(null);
|
|
173
|
+
m(() => w(e), [e]), m(() => y(a), [a]), m(() => C(r), [r]), m(() => {
|
|
174
|
+
function s(P) {
|
|
175
|
+
const N = P.target;
|
|
176
|
+
_.current && N && _.current.contains(N);
|
|
163
177
|
}
|
|
164
178
|
return document.addEventListener("mousedown", s), () => document.removeEventListener("mousedown", s);
|
|
165
179
|
}, []), m(() => {
|
|
166
|
-
t?.({ start:
|
|
167
|
-
}, [
|
|
168
|
-
const
|
|
169
|
-
|
|
180
|
+
t?.({ start: u, end: f });
|
|
181
|
+
}, [u, f, t]);
|
|
182
|
+
const I = (s) => {
|
|
183
|
+
C(s), l?.(s);
|
|
170
184
|
};
|
|
171
|
-
return /* @__PURE__ */
|
|
172
|
-
/* @__PURE__ */
|
|
173
|
-
/* @__PURE__ */
|
|
185
|
+
return /* @__PURE__ */ d("div", { className: `${n.wrapper} ${h}`, ref: _, children: [
|
|
186
|
+
/* @__PURE__ */ d("label", { className: n.label, "aria-hidden": !0, children: [
|
|
187
|
+
/* @__PURE__ */ d(
|
|
174
188
|
"svg",
|
|
175
189
|
{
|
|
176
190
|
className: n.calendarIcon,
|
|
@@ -191,53 +205,53 @@ function Y({
|
|
|
191
205
|
]
|
|
192
206
|
}
|
|
193
207
|
),
|
|
194
|
-
/* @__PURE__ */ o("span", { className: n.labelText, children:
|
|
208
|
+
/* @__PURE__ */ o("span", { className: n.labelText, children: i.period })
|
|
195
209
|
] }),
|
|
196
|
-
/* @__PURE__ */
|
|
197
|
-
/* @__PURE__ */
|
|
198
|
-
/* @__PURE__ */ o("label", { className: n.innerLabel, htmlFor: "period-from", children:
|
|
210
|
+
/* @__PURE__ */ d("div", { className: n.rangeRow, children: [
|
|
211
|
+
/* @__PURE__ */ d("div", { className: n.dateWrap, children: [
|
|
212
|
+
/* @__PURE__ */ o("label", { className: n.innerLabel, htmlFor: "period-from", children: i.start }),
|
|
199
213
|
/* @__PURE__ */ o(
|
|
200
214
|
"input",
|
|
201
215
|
{
|
|
202
216
|
id: "period-from",
|
|
203
217
|
className: n.dateInput,
|
|
204
218
|
type: "date",
|
|
205
|
-
value:
|
|
206
|
-
onChange: (s) =>
|
|
207
|
-
"aria-label":
|
|
219
|
+
value: u,
|
|
220
|
+
onChange: (s) => w(s.target.value),
|
|
221
|
+
"aria-label": i.start
|
|
208
222
|
}
|
|
209
223
|
)
|
|
210
224
|
] }),
|
|
211
225
|
/* @__PURE__ */ o("div", { className: n.sepWrap, "aria-hidden": !0, children: /* @__PURE__ */ o("span", { className: n.separator, children: "—" }) }),
|
|
212
|
-
/* @__PURE__ */
|
|
213
|
-
/* @__PURE__ */ o("label", { className: n.innerLabel, htmlFor: "period-to", children:
|
|
226
|
+
/* @__PURE__ */ d("div", { className: n.dateWrap, children: [
|
|
227
|
+
/* @__PURE__ */ o("label", { className: n.innerLabel, htmlFor: "period-to", children: i.end }),
|
|
214
228
|
/* @__PURE__ */ o("div", { className: n.inputWithIcon, children: /* @__PURE__ */ o(
|
|
215
229
|
"input",
|
|
216
230
|
{
|
|
217
231
|
id: "period-to",
|
|
218
232
|
className: n.dateInput,
|
|
219
233
|
type: "date",
|
|
220
|
-
value:
|
|
221
|
-
onChange: (s) =>
|
|
222
|
-
"aria-label":
|
|
234
|
+
value: f,
|
|
235
|
+
onChange: (s) => y(s.target.value),
|
|
236
|
+
"aria-label": i.end
|
|
223
237
|
}
|
|
224
238
|
) })
|
|
225
239
|
] }),
|
|
226
|
-
/* @__PURE__ */
|
|
227
|
-
/* @__PURE__ */ o("label", { className: n.samplingLabel, htmlFor: "period-sampling", children:
|
|
228
|
-
/* @__PURE__ */
|
|
240
|
+
/* @__PURE__ */ d("div", { className: n.samplingWrap, children: [
|
|
241
|
+
/* @__PURE__ */ o("label", { className: n.samplingLabel, htmlFor: "period-sampling", children: i.sampling }),
|
|
242
|
+
/* @__PURE__ */ d(
|
|
229
243
|
"select",
|
|
230
244
|
{
|
|
231
245
|
id: "period-sampling",
|
|
232
246
|
className: n.samplingSelect,
|
|
233
|
-
value:
|
|
234
|
-
onChange: (s) =>
|
|
235
|
-
"aria-label":
|
|
247
|
+
value: j,
|
|
248
|
+
onChange: (s) => I(s.target.value),
|
|
249
|
+
"aria-label": i.sampling,
|
|
236
250
|
children: [
|
|
237
|
-
/* @__PURE__ */ o("option", {
|
|
238
|
-
/* @__PURE__ */ o("option", {
|
|
239
|
-
/* @__PURE__ */ o("option", {
|
|
240
|
-
/* @__PURE__ */ o("option", {
|
|
251
|
+
/* @__PURE__ */ o("option", { value: "hour", children: p.hour }),
|
|
252
|
+
/* @__PURE__ */ o("option", { value: "day", children: p.day }),
|
|
253
|
+
/* @__PURE__ */ o("option", { value: "week", children: p.week }),
|
|
254
|
+
/* @__PURE__ */ o("option", { value: "month", children: p.month })
|
|
241
255
|
]
|
|
242
256
|
}
|
|
243
257
|
)
|
|
@@ -246,11 +260,11 @@ function Y({
|
|
|
246
260
|
] });
|
|
247
261
|
}
|
|
248
262
|
export {
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
263
|
+
A as I,
|
|
264
|
+
Y as M,
|
|
265
|
+
re as P,
|
|
266
|
+
ee as a,
|
|
267
|
+
te as b,
|
|
268
|
+
T as c,
|
|
269
|
+
ae as g
|
|
256
270
|
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";const s=require("react"),a=require("react/jsx-runtime");/**
|
|
2
|
+
* @license lucide-react v0.540.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const k=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),I=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),j=e=>{const t=I(e);return t.charAt(0).toUpperCase()+t.slice(1)},y=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),P=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
|
|
7
|
+
* @license lucide-react v0.540.0 - ISC
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the ISC license.
|
|
10
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/var E={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
12
|
+
* @license lucide-react v0.540.0 - ISC
|
|
13
|
+
*
|
|
14
|
+
* This source code is licensed under the ISC license.
|
|
15
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
16
|
+
*/const x=s.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:l="",children:d,iconNode:h,...m},i)=>s.createElement("svg",{ref:i,...E,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:y("lucide",l),...!d&&!P(m)&&{"aria-hidden":"true"},...m},[...h.map(([p,u])=>s.createElement(p,u)),...Array.isArray(d)?d:[d]]));/**
|
|
17
|
+
* @license lucide-react v0.540.0 - ISC
|
|
18
|
+
*
|
|
19
|
+
* This source code is licensed under the ISC license.
|
|
20
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
21
|
+
*/const C=(e,t)=>{const r=s.forwardRef(({className:n,...l},d)=>s.createElement(x,{ref:d,iconNode:t,className:y(`lucide-${k(j(e))}`,`lucide-${e}`,n),...l}));return r.displayName=j(e),r};/**
|
|
22
|
+
* @license lucide-react v0.540.0 - ISC
|
|
23
|
+
*
|
|
24
|
+
* This source code is licensed under the ISC license.
|
|
25
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
26
|
+
*/const R=[["path",{d:"M12 2v20",key:"t6zp3m"}],["path",{d:"m15 19-3 3-3-3",key:"11eu04"}],["path",{d:"m19 9 3 3-3 3",key:"1mg7y2"}],["path",{d:"M2 12h20",key:"9i4pu4"}],["path",{d:"m5 9-3 3 3 3",key:"j64kie"}],["path",{d:"m9 5 3-3 3 3",key:"l8vdw6"}]],O=C("move",R);var S=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function M(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function A(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function n(){var l=!1;try{l=this instanceof n}catch{}return l?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var l=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,l.get?l:{enumerable:!0,get:function(){return e[n]}})}),r}const F="_wrapper_1ogd3_1",T="_label_1ogd3_14",$="_labelText_1ogd3_22",H="_calendarIcon_1ogd3_26",D="_rangeRow_1ogd3_31",V="_dateWrap_1ogd3_39",z="_innerLabel_1ogd3_47",B="_dateInput_1ogd3_52",q="_sepWrap_1ogd3_65",G="_separator_1ogd3_72",U="_samplingWrap_1ogd3_77",Z="_samplingLabel_1ogd3_86",K="_samplingSelect_1ogd3_90",o={wrapper:F,label:T,labelText:$,calendarIcon:H,rangeRow:D,dateWrap:V,innerLabel:z,dateInput:B,sepWrap:q,separator:G,samplingWrap:U,samplingLabel:Z,samplingSelect:K};function J({start:e="",end:t="",onChange:r,sampling:n="day",onSamplingChange:l,labels:d={},samplingOptions:h={},className:m=""}){const i={period:"Période",start:"Début",end:"Fin",sampling:"Échantillonnage",...d},p={hour:"Par heure",day:"Par jour",week:"Par semaine",month:"Par mois",...h},[u,_]=s.useState(e),[g,b]=s.useState(t),[N,v]=s.useState(n),f=s.useRef(null);s.useEffect(()=>_(e),[e]),s.useEffect(()=>b(t),[t]),s.useEffect(()=>v(n),[n]),s.useEffect(()=>{function c(W){const w=W.target;f.current&&w&&f.current.contains(w)}return document.addEventListener("mousedown",c),()=>document.removeEventListener("mousedown",c)},[]),s.useEffect(()=>{r?.({start:u,end:g})},[u,g,r]);const L=c=>{v(c),l?.(c)};return a.jsxs("div",{className:`${o.wrapper} ${m}`,ref:f,children:[a.jsxs("label",{className:o.label,"aria-hidden":!0,children:[a.jsxs("svg",{className:o.calendarIcon,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"18",height:"18","aria-hidden":!0,children:[a.jsx("path",{fill:"currentColor",d:"M7 10h5v5H7z",opacity:"0"}),a.jsx("path",{fill:"currentColor",d:"M19 4h-1V2h-2v2H8V2H6v2H5a2 2 0 00-2 2v12a2 2 0 002 2h14a2 2 0 002-2V6a2 2 0 00-2-2zM5 20V9h14l.002 11H5z"})]}),a.jsx("span",{className:o.labelText,children:i.period})]}),a.jsxs("div",{className:o.rangeRow,children:[a.jsxs("div",{className:o.dateWrap,children:[a.jsx("label",{className:o.innerLabel,htmlFor:"period-from",children:i.start}),a.jsx("input",{id:"period-from",className:o.dateInput,type:"date",value:u,onChange:c=>_(c.target.value),"aria-label":i.start})]}),a.jsx("div",{className:o.sepWrap,"aria-hidden":!0,children:a.jsx("span",{className:o.separator,children:"—"})}),a.jsxs("div",{className:o.dateWrap,children:[a.jsx("label",{className:o.innerLabel,htmlFor:"period-to",children:i.end}),a.jsx("div",{className:o.inputWithIcon,children:a.jsx("input",{id:"period-to",className:o.dateInput,type:"date",value:g,onChange:c=>b(c.target.value),"aria-label":i.end})})]}),a.jsxs("div",{className:o.samplingWrap,children:[a.jsx("label",{className:o.samplingLabel,htmlFor:"period-sampling",children:i.sampling}),a.jsxs("select",{id:"period-sampling",className:o.samplingSelect,value:N,onChange:c=>L(c.target.value),"aria-label":i.sampling,children:[a.jsx("option",{value:"hour",children:p.hour}),a.jsx("option",{value:"day",children:p.day}),a.jsx("option",{value:"week",children:p.week}),a.jsx("option",{value:"month",children:p.month})]})]})]})]})}exports.Icon=x;exports.Move=O;exports.PeriodRange=J;exports.commonjsGlobal=S;exports.createLucideIcon=C;exports.getAugmentedNamespace=A;exports.getDefaultExportFromCjs=M;
|
package/dist/chart.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ve=require("react/jsx-runtime"),nt=require("react"),tt=require("./PeriodRange-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ve=require("react/jsx-runtime"),nt=require("react"),tt=require("./PeriodRange-NiT-19Z4.cjs");var Jt={};/*!
|
|
2
2
|
* ApexCharts v5.3.5
|
|
3
3
|
* (c) 2018-2025 ApexCharts
|
|
4
4
|
*/function Ai(o,e){(e==null||e>o.length)&&(e=o.length);for(var t=0,i=Array(e);t<e;t++)i[t]=o[t];return i}function Wa(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function q(o,e){if(!(o instanceof e))throw new TypeError("Cannot call a class as a function")}function ra(o,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(o,ja(i.key),i)}}function Z(o,e,t){return e&&ra(o.prototype,e),t&&ra(o,t),Object.defineProperty(o,"prototype",{writable:!1}),o}function vt(o,e){var t=typeof Symbol<"u"&&o[Symbol.iterator]||o["@@iterator"];if(!t){if(Array.isArray(o)||(t=Ni(o))||e){t&&(o=t);var i=0,a=function(){};return{s:a,n:function(){return i>=o.length?{done:!0}:{done:!1,value:o[i++]}},e:function(l){throw l},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
package/dist/chart.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as ye, jsxs as Wi } from "react/jsx-runtime";
|
|
2
2
|
import Fs, { useState as ra, useEffect as Na, useRef as Ds } from "react";
|
|
3
|
-
import { b as _s, g as Ws, M as Vt } from "./PeriodRange-
|
|
4
|
-
import { P as Pn } from "./PeriodRange-
|
|
3
|
+
import { b as _s, g as Ws, M as Vt } from "./PeriodRange-BpxD5xRJ.js";
|
|
4
|
+
import { P as Pn } from "./PeriodRange-BpxD5xRJ.js";
|
|
5
5
|
var Kt = {};
|
|
6
6
|
/*!
|
|
7
7
|
* ApexCharts v5.3.5
|