@tsiky/components-r19 1.3.1 → 1.3.3
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 +256 -0
- package/dist/PeriodRange-Bk2LtI3D.cjs +26 -0
- package/dist/PeriodRange-CIQYAHih.js +256 -0
- package/dist/PeriodRange-DNoIikIk.cjs +26 -0
- package/dist/PeriodRange-Dn1GYZPh.cjs +26 -0
- package/dist/PeriodRange-sBKBJi5M.js +256 -0
- package/dist/PeriodRange.css +1 -0
- package/dist/apexsankey.es.min-D4KjE2OR.cjs +41 -0
- package/dist/apexsankey.es.min-ZIADo5C-.js +12850 -0
- package/dist/assets/PeriodRange-IuGitmJ8.css +1 -0
- package/dist/assets/index-5EGrYcvi.css +1 -0
- package/dist/chart.cjs.js +44 -32
- package/dist/chart.d.ts +10 -1
- package/dist/chart.d.ts.map +1 -1
- package/dist/chart.js +3585 -3000
- package/dist/components-r19.css +1 -1
- package/dist/index.cjs.js +1633 -1658
- package/dist/index.css +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4490 -4591
- package/dist/src/components/Confirmationpopup/ConfirmationPopup.d.ts +2 -1
- package/dist/src/components/Confirmationpopup/ConfirmationPopup.d.ts.map +1 -1
- package/dist/src/components/Confirmationpopup/index.d.ts +2 -14
- package/dist/src/components/Confirmationpopup/index.d.ts.map +1 -1
- package/package.json +4 -3
- package/dist/_commonjsHelpers-BH3jXuIh.cjs +0 -1
- package/dist/_commonjsHelpers-ByX85dGu.js +0 -33
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
import { forwardRef as C, createElement as _, useState as w, useRef as W, useEffect as m } from "react";
|
|
2
|
+
import { jsxs as c, jsx as o } from "react/jsx-runtime";
|
|
3
|
+
/**
|
|
4
|
+
* @license lucide-react v0.540.0 - ISC
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the ISC license.
|
|
7
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
const j = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), P = (e) => e.replace(
|
|
10
|
+
/^([A-Z])|[\s-_]+(\w)/g,
|
|
11
|
+
(a, t, r) => r ? r.toUpperCase() : t.toLowerCase()
|
|
12
|
+
), y = (e) => {
|
|
13
|
+
const a = P(e);
|
|
14
|
+
return a.charAt(0).toUpperCase() + a.slice(1);
|
|
15
|
+
}, N = (...e) => e.filter((a, t, r) => !!a && a.trim() !== "" && r.indexOf(a) === t).join(" ").trim(), I = (e) => {
|
|
16
|
+
for (const a in e)
|
|
17
|
+
if (a.startsWith("aria-") || a === "role" || a === "title")
|
|
18
|
+
return !0;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* @license lucide-react v0.540.0 - ISC
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the ISC license.
|
|
24
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/
|
|
26
|
+
var k = {
|
|
27
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
28
|
+
width: 24,
|
|
29
|
+
height: 24,
|
|
30
|
+
viewBox: "0 0 24 24",
|
|
31
|
+
fill: "none",
|
|
32
|
+
stroke: "currentColor",
|
|
33
|
+
strokeWidth: 2,
|
|
34
|
+
strokeLinecap: "round",
|
|
35
|
+
strokeLinejoin: "round"
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* @license lucide-react v0.540.0 - ISC
|
|
39
|
+
*
|
|
40
|
+
* This source code is licensed under the ISC license.
|
|
41
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
42
|
+
*/
|
|
43
|
+
const O = C(
|
|
44
|
+
({
|
|
45
|
+
color: e = "currentColor",
|
|
46
|
+
size: a = 24,
|
|
47
|
+
strokeWidth: t = 2,
|
|
48
|
+
absoluteStrokeWidth: r,
|
|
49
|
+
className: l = "",
|
|
50
|
+
children: i,
|
|
51
|
+
iconNode: p,
|
|
52
|
+
...d
|
|
53
|
+
}, u) => _(
|
|
54
|
+
"svg",
|
|
55
|
+
{
|
|
56
|
+
ref: u,
|
|
57
|
+
...k,
|
|
58
|
+
width: a,
|
|
59
|
+
height: a,
|
|
60
|
+
stroke: e,
|
|
61
|
+
strokeWidth: r ? Number(t) * 24 / Number(a) : t,
|
|
62
|
+
className: N("lucide", l),
|
|
63
|
+
...!i && !I(d) && { "aria-hidden": "true" },
|
|
64
|
+
...d
|
|
65
|
+
},
|
|
66
|
+
[
|
|
67
|
+
...p.map(([h, f]) => _(h, f)),
|
|
68
|
+
...Array.isArray(i) ? i : [i]
|
|
69
|
+
]
|
|
70
|
+
)
|
|
71
|
+
);
|
|
72
|
+
/**
|
|
73
|
+
* @license lucide-react v0.540.0 - ISC
|
|
74
|
+
*
|
|
75
|
+
* This source code is licensed under the ISC license.
|
|
76
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
77
|
+
*/
|
|
78
|
+
const M = (e, a) => {
|
|
79
|
+
const t = C(
|
|
80
|
+
({ className: r, ...l }, i) => _(O, {
|
|
81
|
+
ref: i,
|
|
82
|
+
iconNode: a,
|
|
83
|
+
className: N(
|
|
84
|
+
`lucide-${j(y(e))}`,
|
|
85
|
+
`lucide-${e}`,
|
|
86
|
+
r
|
|
87
|
+
),
|
|
88
|
+
...l
|
|
89
|
+
})
|
|
90
|
+
);
|
|
91
|
+
return t.displayName = y(e), t;
|
|
92
|
+
};
|
|
93
|
+
/**
|
|
94
|
+
* @license lucide-react v0.540.0 - ISC
|
|
95
|
+
*
|
|
96
|
+
* This source code is licensed under the ISC license.
|
|
97
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
98
|
+
*/
|
|
99
|
+
const x = [
|
|
100
|
+
["path", { d: "M12 2v20", key: "t6zp3m" }],
|
|
101
|
+
["path", { d: "m15 19-3 3-3-3", key: "11eu04" }],
|
|
102
|
+
["path", { d: "m19 9 3 3-3 3", key: "1mg7y2" }],
|
|
103
|
+
["path", { d: "M2 12h20", key: "9i4pu4" }],
|
|
104
|
+
["path", { d: "m5 9-3 3 3 3", key: "j64kie" }],
|
|
105
|
+
["path", { d: "m9 5 3-3 3 3", key: "l8vdw6" }]
|
|
106
|
+
], q = M("move", x);
|
|
107
|
+
var J = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
108
|
+
function Q(e) {
|
|
109
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
110
|
+
}
|
|
111
|
+
function X(e) {
|
|
112
|
+
if (Object.prototype.hasOwnProperty.call(e, "__esModule")) return e;
|
|
113
|
+
var a = e.default;
|
|
114
|
+
if (typeof a == "function") {
|
|
115
|
+
var t = function r() {
|
|
116
|
+
var l = !1;
|
|
117
|
+
try {
|
|
118
|
+
l = this instanceof r;
|
|
119
|
+
} catch {
|
|
120
|
+
}
|
|
121
|
+
return l ? Reflect.construct(a, arguments, this.constructor) : a.apply(this, arguments);
|
|
122
|
+
};
|
|
123
|
+
t.prototype = a.prototype;
|
|
124
|
+
} else t = {};
|
|
125
|
+
return Object.defineProperty(t, "__esModule", { value: !0 }), Object.keys(e).forEach(function(r) {
|
|
126
|
+
var l = Object.getOwnPropertyDescriptor(e, r);
|
|
127
|
+
Object.defineProperty(t, r, l.get ? l : {
|
|
128
|
+
enumerable: !0,
|
|
129
|
+
get: function() {
|
|
130
|
+
return e[r];
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
}), t;
|
|
134
|
+
}
|
|
135
|
+
const R = "_wrapper_urwzi_1", A = "_label_urwzi_27", S = "_labelText_urwzi_45", T = "_calendarIcon_urwzi_55", E = "_rangeRow_urwzi_65", F = "_dateWrap_urwzi_81", $ = "_innerLabel_urwzi_97", D = "_dateInput_urwzi_109", H = "_sepWrap_urwzi_137", V = "_separator_urwzi_151", B = "_samplingWrap_urwzi_163", U = "_samplingLabel_urwzi_181", Z = "_samplingSelect_urwzi_191", n = {
|
|
136
|
+
wrapper: R,
|
|
137
|
+
label: A,
|
|
138
|
+
labelText: S,
|
|
139
|
+
calendarIcon: T,
|
|
140
|
+
rangeRow: E,
|
|
141
|
+
dateWrap: F,
|
|
142
|
+
innerLabel: $,
|
|
143
|
+
dateInput: D,
|
|
144
|
+
sepWrap: H,
|
|
145
|
+
separator: V,
|
|
146
|
+
samplingWrap: B,
|
|
147
|
+
samplingLabel: U,
|
|
148
|
+
samplingSelect: Z
|
|
149
|
+
};
|
|
150
|
+
function Y({
|
|
151
|
+
start: e = "",
|
|
152
|
+
end: a = "",
|
|
153
|
+
onChange: t,
|
|
154
|
+
sampling: r = "Par jour",
|
|
155
|
+
onSamplingChange: l,
|
|
156
|
+
className: i = ""
|
|
157
|
+
}) {
|
|
158
|
+
const [p, d] = w(e), [u, h] = w(a), [f, b] = w(r), g = W(null);
|
|
159
|
+
m(() => d(e), [e]), m(() => h(a), [a]), m(() => b(r), [r]), m(() => {
|
|
160
|
+
function s(z) {
|
|
161
|
+
const v = z.target;
|
|
162
|
+
g.current && v && g.current.contains(v);
|
|
163
|
+
}
|
|
164
|
+
return document.addEventListener("mousedown", s), () => document.removeEventListener("mousedown", s);
|
|
165
|
+
}, []), m(() => {
|
|
166
|
+
t?.({ start: p, end: u });
|
|
167
|
+
}, [p, u, t]);
|
|
168
|
+
const L = (s) => {
|
|
169
|
+
b(s), l?.(s);
|
|
170
|
+
};
|
|
171
|
+
return /* @__PURE__ */ c("div", { className: `${n.wrapper} ${i}`, ref: g, children: [
|
|
172
|
+
/* @__PURE__ */ c("label", { className: n.label, "aria-hidden": !0, children: [
|
|
173
|
+
/* @__PURE__ */ c(
|
|
174
|
+
"svg",
|
|
175
|
+
{
|
|
176
|
+
className: n.calendarIcon,
|
|
177
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
178
|
+
viewBox: "0 0 24 24",
|
|
179
|
+
width: "18",
|
|
180
|
+
height: "18",
|
|
181
|
+
"aria-hidden": !0,
|
|
182
|
+
children: [
|
|
183
|
+
/* @__PURE__ */ o("path", { fill: "currentColor", d: "M7 10h5v5H7z", opacity: "0" }),
|
|
184
|
+
/* @__PURE__ */ o(
|
|
185
|
+
"path",
|
|
186
|
+
{
|
|
187
|
+
fill: "currentColor",
|
|
188
|
+
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"
|
|
189
|
+
}
|
|
190
|
+
)
|
|
191
|
+
]
|
|
192
|
+
}
|
|
193
|
+
),
|
|
194
|
+
/* @__PURE__ */ o("span", { className: n.labelText, children: "Période" })
|
|
195
|
+
] }),
|
|
196
|
+
/* @__PURE__ */ c("div", { className: n.rangeRow, children: [
|
|
197
|
+
/* @__PURE__ */ c("div", { className: n.dateWrap, children: [
|
|
198
|
+
/* @__PURE__ */ o("label", { className: n.innerLabel, htmlFor: "period-from", children: "Début" }),
|
|
199
|
+
/* @__PURE__ */ o(
|
|
200
|
+
"input",
|
|
201
|
+
{
|
|
202
|
+
id: "period-from",
|
|
203
|
+
className: n.dateInput,
|
|
204
|
+
type: "date",
|
|
205
|
+
value: p,
|
|
206
|
+
onChange: (s) => d(s.target.value),
|
|
207
|
+
"aria-label": "Date de début"
|
|
208
|
+
}
|
|
209
|
+
)
|
|
210
|
+
] }),
|
|
211
|
+
/* @__PURE__ */ o("div", { className: n.sepWrap, "aria-hidden": !0, children: /* @__PURE__ */ o("span", { className: n.separator, children: "—" }) }),
|
|
212
|
+
/* @__PURE__ */ c("div", { className: n.dateWrap, children: [
|
|
213
|
+
/* @__PURE__ */ o("label", { className: n.innerLabel, htmlFor: "period-to", children: "Fin" }),
|
|
214
|
+
/* @__PURE__ */ o("div", { className: n.inputWithIcon, children: /* @__PURE__ */ o(
|
|
215
|
+
"input",
|
|
216
|
+
{
|
|
217
|
+
id: "period-to",
|
|
218
|
+
className: n.dateInput,
|
|
219
|
+
type: "date",
|
|
220
|
+
value: u,
|
|
221
|
+
onChange: (s) => h(s.target.value),
|
|
222
|
+
"aria-label": "Date de fin"
|
|
223
|
+
}
|
|
224
|
+
) })
|
|
225
|
+
] }),
|
|
226
|
+
/* @__PURE__ */ c("div", { className: n.samplingWrap, children: [
|
|
227
|
+
/* @__PURE__ */ o("label", { className: n.samplingLabel, htmlFor: "period-sampling", children: "Échantillonnage" }),
|
|
228
|
+
/* @__PURE__ */ c(
|
|
229
|
+
"select",
|
|
230
|
+
{
|
|
231
|
+
id: "period-sampling",
|
|
232
|
+
className: n.samplingSelect,
|
|
233
|
+
value: f,
|
|
234
|
+
onChange: (s) => L(s.target.value),
|
|
235
|
+
"aria-label": "Échantillonnage",
|
|
236
|
+
children: [
|
|
237
|
+
/* @__PURE__ */ o("option", { children: "Par jour" }),
|
|
238
|
+
/* @__PURE__ */ o("option", { children: "Par semaine" }),
|
|
239
|
+
/* @__PURE__ */ o("option", { children: "Par mois" }),
|
|
240
|
+
/* @__PURE__ */ o("option", { children: "Par heure" })
|
|
241
|
+
]
|
|
242
|
+
}
|
|
243
|
+
)
|
|
244
|
+
] })
|
|
245
|
+
] })
|
|
246
|
+
] });
|
|
247
|
+
}
|
|
248
|
+
export {
|
|
249
|
+
O as I,
|
|
250
|
+
q as M,
|
|
251
|
+
Y as P,
|
|
252
|
+
J as a,
|
|
253
|
+
X as b,
|
|
254
|
+
M as c,
|
|
255
|
+
Q as g
|
|
256
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._wrapper_urwzi_1{box-sizing:border-box;display:flex;align-items:center;gap:12px;padding:10px 16px;background:var(--color-card-background);border-radius:10px;border:1px solid rgba(16,24,40,.06);box-shadow:0 1px #10182808;width:100%}._label_urwzi_27{display:inline-flex;align-items:center;gap:8px;color:var(--color-text);font-size:14px;flex:0 0 auto}._labelText_urwzi_45{display:inline-block;color:var(--color-text)}._calendarIcon_urwzi_55{opacity:.75;display:block}._rangeRow_urwzi_65{display:flex;align-items:center;gap:10px;width:100%;flex-wrap:nowrap}._dateWrap_urwzi_81{display:flex;flex-direction:column;gap:6px;min-width:0;flex:1 1 0}._innerLabel_urwzi_97{font-size:12px;color:#6b7280;display:block}._dateInput_urwzi_109{-webkit-appearance:none;appearance:none;border:1px solid;padding:8px 10px;border-radius:8px;border-color:var(--color-border);font-size:14px;background:transparent;width:100%;box-sizing:border-box;color:var(--color-text)}._sepWrap_urwzi_137{display:flex;align-items:center;justify-content:center;padding:0 6px}._separator_urwzi_151{color:#9ca3af;font-weight:600;-webkit-user-select:none;user-select:none}._samplingWrap_urwzi_163{display:flex;flex-direction:column;gap:6px;min-width:160px;flex:0 0 auto}._samplingLabel_urwzi_181{font-size:12px;color:#374151}._samplingSelect_urwzi_191{padding:8px 10px;border-radius:8px;border:1px solid rgba(16,24,40,.06);background:var(--color-background);font-size:14px;box-sizing:border-box;width:100%;border-color:var(--color-border);color:var(--color-text);cursor:pointer}@media (max-width: 720px){._wrapper_urwzi_1{padding:10px}._rangeRow_urwzi_65{gap:8px}._label_urwzi_27{font-size:13px}._samplingWrap_urwzi_163{min-width:140px}}@media (max-width: 520px){._wrapper_urwzi_1{flex-direction:column;align-items:stretch;gap:10px}._label_urwzi_27{order:0}._rangeRow_urwzi_65{flex-direction:row;flex-wrap:wrap;align-items:flex-start}._dateWrap_urwzi_81{flex:1 1 48%}._sepWrap_urwzi_137{display:none}._samplingWrap_urwzi_163{flex:1 1 100%;min-width:0}}@media (max-width: 360px){._dateWrap_urwzi_81{flex:1 1 100%}}
|