@cagatayfdn/flora-components 0.0.115 → 0.0.116
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/Accordion.css +1 -1
- package/dist/ActionButton.css +1 -1
- package/dist/AlertCard.css +1 -1
- package/dist/Autocomplete.css +1 -1
- package/dist/Button.css +1 -1
- package/dist/Card.css +1 -1
- package/dist/Checkbox.css +1 -1
- package/dist/Config.css +1 -1
- package/dist/Confirm.css +1 -1
- package/dist/ContentHeader.css +1 -1
- package/dist/Divider.css +1 -1
- package/dist/DropdownList.css +1 -1
- package/dist/ErrorLogModal.css +1 -1
- package/dist/FileUpload.css +1 -1
- package/dist/FileUpload.module-BxCEtOHx.js +32 -0
- package/dist/Heading.css +1 -1
- package/dist/IconBox.css +1 -1
- package/dist/InfoBoxList.css +1 -1
- package/dist/InfoBoxList.module-CmdO3WXi.js +8 -0
- package/dist/InfoDate.css +1 -1
- package/dist/InfoText.css +1 -1
- package/dist/Input.css +1 -1
- package/dist/Label.css +1 -1
- package/dist/Legends.css +1 -1
- package/dist/Loading.css +1 -1
- package/dist/MenuItem-Df6Zsa7E.js +53 -0
- package/dist/MenuItem.css +1 -1
- package/dist/Modal.css +1 -1
- package/dist/NoResult.css +1 -1
- package/dist/PageWrap.css +1 -1
- package/dist/Pager.css +1 -1
- package/dist/Panel.css +1 -1
- package/dist/Radio.css +1 -1
- package/dist/ResultError.css +1 -1
- package/dist/ScrollContainer.css +1 -1
- package/dist/{Select-DcLZCXNo.js → Select-BGHusr4q.js} +1 -1
- package/dist/Select.css +1 -1
- package/dist/Select.module-gwwx8i1I.js +20 -0
- package/dist/StatusTag.css +1 -1
- package/dist/StatusTypography.css +1 -1
- package/dist/Stepper.css +1 -1
- package/dist/Switch.css +1 -1
- package/dist/Tab.css +1 -1
- package/dist/Table.css +1 -1
- package/dist/Table.module-vUNIKXwV.js +29 -0
- package/dist/Textarea.css +1 -1
- package/dist/Tooltip.css +1 -1
- package/dist/TypographyText.css +1 -1
- package/dist/ValidationError.css +1 -1
- package/dist/components/Accordion/Accordion.js +22 -22
- package/dist/components/ActionButton/ActionButton.js +25 -25
- package/dist/components/AlertCard/AlertCard.js +9 -9
- package/dist/components/Autocomplete/Autocomplete.js +25 -25
- package/dist/components/Button/Button.js +43 -43
- package/dist/components/Card/Card.js +12 -12
- package/dist/components/Charts/Legends.js +8 -8
- package/dist/components/Checkbox/Checkbox.js +46 -109
- package/dist/components/Config/Config.js +14 -14
- package/dist/components/Confirm/Confirm.js +20 -20
- package/dist/components/ContentHeader/ContentHeader.js +31 -31
- package/dist/components/Datepicker/Datepicker.js +18 -18
- package/dist/components/Divider/Divider.js +19 -19
- package/dist/components/Drawer/index.js +4 -4
- package/dist/components/Dropdown/DropdownList.js +23 -23
- package/dist/components/ErrorLogModal/ErrorLogModal.js +36 -31
- package/dist/components/FileUpload/FileUpload.js +1 -1
- package/dist/components/FileUpload/ImagePreview.js +1 -1
- package/dist/components/FileUpload/LengthCard.js +1 -1
- package/dist/components/FileUpload/PreviewModal.js +1 -1
- package/dist/components/Heading/Heading.js +14 -14
- package/dist/components/IconBox/IconBox.js +4 -4
- package/dist/components/InfoBoxList/InfoBoxList.js +1 -1
- package/dist/components/InfoBoxList/helper.js +1 -1
- package/dist/components/InfoDate/InfoDate.js +5 -5
- package/dist/components/InfoText/InfoText.js +1 -1
- package/dist/components/Input/Input.js +38 -38
- package/dist/components/Label/Label.js +8 -8
- package/dist/components/Loading/Loading.js +25 -25
- package/dist/components/Modal/Modal.js +22 -22
- package/dist/components/NavigatorCard/index.js +27 -27
- package/dist/components/NoResult/NoResult.js +5 -5
- package/dist/components/PageWrapper/PageWrap.js +7 -7
- package/dist/components/Pager/Pager.js +23 -23
- package/dist/components/Panel/Panel.js +23 -23
- package/dist/components/Radio/Radio.js +32 -32
- package/dist/components/ResultError/ResultError.js +1 -1
- package/dist/components/ScrollContainer/ScrollContainer.js +7 -7
- package/dist/components/Select/NoData.js +1 -1
- package/dist/components/Select/OptionItem.js +1 -1
- package/dist/components/Select/Select.js +2 -2
- package/dist/components/Sidebar/MenuItem.js +1 -1
- package/dist/components/Sidebar/index.js +1 -1
- package/dist/components/StatusTag/StatusTag.js +10 -10
- package/dist/components/StatusTypography/StatusTypography.js +20 -20
- package/dist/components/Stepper/Stepper.js +18 -18
- package/dist/components/Switch/Switch.js +24 -24
- package/dist/components/Tab/Tab.js +7 -7
- package/dist/components/Table/Table.js +2 -2
- package/dist/components/Table/TableHeader.js +2 -2
- package/dist/components/Table/TableSort.js +1 -1
- package/dist/components/Textarea/Textarea.js +51 -51
- package/dist/components/Tooltip/Tooltip.js +19 -19
- package/dist/components/TypographyText/TypographyText.js +29 -29
- package/dist/components/ValidationError/ValidationError.js +1 -1
- package/dist/components/index.js +2 -2
- package/dist/index.css +1 -1
- package/dist/index.js +2 -2
- package/dist/index2.css +1 -1
- package/dist/main.css +1 -0
- package/dist/main.js +55 -0
- package/dist/prodivers.css +2 -2
- package/package.json +5 -2
- package/dist/FileUpload.module-bCNvwTRa.js +0 -32
- package/dist/InfoBoxList.module-C6t2KDOB.js +0 -8
- package/dist/MenuItem-DAf7NU3h.js +0 -53
- package/dist/Select.module-BVWgPUEN.js +0 -20
- package/dist/Table.module-DeJB9uZC.js +0 -29
|
@@ -5,7 +5,7 @@ import z, { SERVER_DATE_FORMAT as ce, SERVER_DATE_AND_TIME_FORMAT as St, friendl
|
|
|
5
5
|
import Nt from "../Icon/index.js";
|
|
6
6
|
import Pt from "../Input/Input.js";
|
|
7
7
|
import { c as Ue } from "../../_commonjsHelpers-CT_km90n.js";
|
|
8
|
-
import '../../Datepicker.css';const
|
|
8
|
+
import '../../Datepicker.css';const Ee = [
|
|
9
9
|
"onChange",
|
|
10
10
|
"onClose",
|
|
11
11
|
"onDayCreate",
|
|
@@ -190,7 +190,7 @@ function k(a) {
|
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
192
|
const Te = () => {
|
|
193
|
-
}, ue = (a, o, e) => e.months[o ? "shorthand" : "longhand"][a],
|
|
193
|
+
}, ue = (a, o, e) => e.months[o ? "shorthand" : "longhand"][a], Yt = {
|
|
194
194
|
D: Te,
|
|
195
195
|
F: function(a, o, e) {
|
|
196
196
|
a.setMonth(e.months.longhand.indexOf(o));
|
|
@@ -341,7 +341,7 @@ const Te = () => {
|
|
|
341
341
|
j += Ie[H];
|
|
342
342
|
const W = new RegExp(j).exec(e);
|
|
343
343
|
W && (Y = !0) && R[H !== "Y" ? "push" : "unshift"]({
|
|
344
|
-
fn:
|
|
344
|
+
fn: Yt[H],
|
|
345
345
|
val: W[++p]
|
|
346
346
|
});
|
|
347
347
|
} else
|
|
@@ -360,7 +360,7 @@ const Te = () => {
|
|
|
360
360
|
function I(a, o, e = !0) {
|
|
361
361
|
return e !== !1 ? new Date(a.getTime()).setHours(0, 0, 0, 0) - new Date(o.getTime()).setHours(0, 0, 0, 0) : a.getTime() - o.getTime();
|
|
362
362
|
}
|
|
363
|
-
const
|
|
363
|
+
const jt = (a, o, e) => a > Math.min(o, e) && a < Math.max(o, e), Ht = {
|
|
364
364
|
DAY: 864e5
|
|
365
365
|
};
|
|
366
366
|
function ke(a) {
|
|
@@ -382,8 +382,8 @@ typeof Object.assign != "function" && (Object.assign = function(a, ...o) {
|
|
|
382
382
|
e && Object.keys(e).forEach((f) => a[f] = e[f]);
|
|
383
383
|
return a;
|
|
384
384
|
});
|
|
385
|
-
const
|
|
386
|
-
function
|
|
385
|
+
const Lt = 300;
|
|
386
|
+
function Rt(a, o) {
|
|
387
387
|
const e = {
|
|
388
388
|
config: Object.assign(Object.assign({}, V), y.defaultConfig),
|
|
389
389
|
l10n: ee
|
|
@@ -481,7 +481,7 @@ function Wt(a, o) {
|
|
|
481
481
|
return;
|
|
482
482
|
}
|
|
483
483
|
const t = ze(lt, 50);
|
|
484
|
-
if (e._debouncedChange = ze(j,
|
|
484
|
+
if (e._debouncedChange = ze(j, Lt), e.daysContainer && !/iPhone|iPad|iPod/i.test(navigator.userAgent) && p(e.daysContainer, "mouseover", (n) => {
|
|
485
485
|
e.config.mode === "range" && be(k(n));
|
|
486
486
|
}), p(window.document.body, "keydown", st), !e.config.inline && !e.config.static && p(window, "resize", t), window.ontouchstart !== void 0 ? p(window.document, "touchstart", De) : p(window.document, "mousedown", De), p(window.document, "focus", De, { capture: !0 }), e.config.clickOpens === !0 && (p(e._input, "focus", e.open), p(e._input, "click", e.open)), e.daysContainer !== void 0 && (p(e.monthNav, "click", wt), p(e.monthNav, ["keyup", "increment"], F), p(e.daysContainer, "click", Le)), e.timeContainer !== void 0 && e.minuteElement !== void 0 && e.hourElement !== void 0) {
|
|
487
487
|
const n = (i) => k(i).select();
|
|
@@ -866,7 +866,7 @@ function Wt(a, o) {
|
|
|
866
866
|
return;
|
|
867
867
|
const n = t ? t.dateObj.getTime() : e.days.firstElementChild.dateObj.getTime(), i = e.parseDate(e.selectedDates[0], void 0, !0).getTime(), r = Math.min(n, e.selectedDates[0].getTime()), l = Math.max(n, e.selectedDates[0].getTime());
|
|
868
868
|
let s = !1, d = 0, c = 0;
|
|
869
|
-
for (let u = r; u < l; u +=
|
|
869
|
+
for (let u = r; u < l; u += Ht.DAY)
|
|
870
870
|
B(new Date(u), !0) || (s = s || u > r && u < l, u < i && (!d || u > d) ? d = u : u > i && (!c || u < c) && (c = u));
|
|
871
871
|
for (let u = 0; u < e.config.showMonths; u++) {
|
|
872
872
|
const g = e.daysContainer.children[u];
|
|
@@ -881,7 +881,7 @@ function Wt(a, o) {
|
|
|
881
881
|
continue;
|
|
882
882
|
["startRange", "inRange", "endRange", "notAllowed"].forEach((Z) => {
|
|
883
883
|
E.classList.remove(Z);
|
|
884
|
-
}), t !== void 0 && (t.classList.add(n <= e.selectedDates[0].getTime() ? "startRange" : "endRange"), i < n && P === i ? E.classList.add("startRange") : i > n && P === i && E.classList.add("endRange"), P >= d && (c === 0 || P <= c) &&
|
|
884
|
+
}), t !== void 0 && (t.classList.add(n <= e.selectedDates[0].getTime() ? "startRange" : "endRange"), i < n && P === i ? E.classList.add("startRange") : i > n && P === i && E.classList.add("endRange"), P >= d && (c === 0 || P <= c) && jt(P, i, n) && E.classList.add("inRange"));
|
|
885
885
|
}
|
|
886
886
|
}
|
|
887
887
|
}
|
|
@@ -1192,7 +1192,7 @@ function U(a, o) {
|
|
|
1192
1192
|
try {
|
|
1193
1193
|
if (h.getAttribute("data-fp-omit") !== null)
|
|
1194
1194
|
continue;
|
|
1195
|
-
h._flatpickr !== void 0 && (h._flatpickr.destroy(), h._flatpickr = void 0), h._flatpickr =
|
|
1195
|
+
h._flatpickr !== void 0 && (h._flatpickr.destroy(), h._flatpickr = void 0), h._flatpickr = Rt(h, o || {}), f.push(h._flatpickr);
|
|
1196
1196
|
} catch (C) {
|
|
1197
1197
|
console.error(C);
|
|
1198
1198
|
}
|
|
@@ -1294,7 +1294,7 @@ var Oe = { exports: {} };
|
|
|
1294
1294
|
e.Turkish = m, e.default = h, Object.defineProperty(e, "__esModule", { value: !0 });
|
|
1295
1295
|
});
|
|
1296
1296
|
})(Oe, Oe.exports);
|
|
1297
|
-
var
|
|
1297
|
+
var Wt = Oe.exports, _e = { exports: {} };
|
|
1298
1298
|
(function(a, o) {
|
|
1299
1299
|
(function(e, f) {
|
|
1300
1300
|
f(o);
|
|
@@ -1373,7 +1373,7 @@ var $t = Oe.exports, _e = { exports: {} };
|
|
|
1373
1373
|
e.default = f, e.english = f, Object.defineProperty(e, "__esModule", { value: !0 });
|
|
1374
1374
|
});
|
|
1375
1375
|
})(_e, _e.exports);
|
|
1376
|
-
var
|
|
1376
|
+
var $t = _e.exports;
|
|
1377
1377
|
const Ve = (a, o, e) => {
|
|
1378
1378
|
if (a)
|
|
1379
1379
|
return a;
|
|
@@ -1387,7 +1387,7 @@ const Ve = (a, o, e) => {
|
|
|
1387
1387
|
default:
|
|
1388
1388
|
return Je;
|
|
1389
1389
|
}
|
|
1390
|
-
},
|
|
1390
|
+
}, Bt = (a) => {
|
|
1391
1391
|
switch (a) {
|
|
1392
1392
|
case "time":
|
|
1393
1393
|
return {
|
|
@@ -1402,7 +1402,7 @@ const Ve = (a, o, e) => {
|
|
|
1402
1402
|
default:
|
|
1403
1403
|
return { mode: a, enableTime: !1 };
|
|
1404
1404
|
}
|
|
1405
|
-
},
|
|
1405
|
+
}, Zt = kt.forwardRef(
|
|
1406
1406
|
({
|
|
1407
1407
|
value: a,
|
|
1408
1408
|
format: o,
|
|
@@ -1418,7 +1418,7 @@ const Ve = (a, o, e) => {
|
|
|
1418
1418
|
...Y
|
|
1419
1419
|
}, R) => {
|
|
1420
1420
|
var N;
|
|
1421
|
-
const F = Be(null), p = Be(), j =
|
|
1421
|
+
const F = Be(null), p = Be(), j = Bt(e);
|
|
1422
1422
|
Ke(() => (p.current = y(F.current, {
|
|
1423
1423
|
...j,
|
|
1424
1424
|
dateFormat: Ve(o, e, f),
|
|
@@ -1429,7 +1429,7 @@ const Ve = (a, o, e) => {
|
|
|
1429
1429
|
hourIncrement: 1,
|
|
1430
1430
|
minuteIncrement: 1,
|
|
1431
1431
|
maxDate: C,
|
|
1432
|
-
locale: It() === "tr" ?
|
|
1432
|
+
locale: It() === "tr" ? Wt.Turkish : $t.english,
|
|
1433
1433
|
time_24hr: !0,
|
|
1434
1434
|
parseDate: (v) => z(v, ce).toDate(),
|
|
1435
1435
|
formatDate: (v) => z(v).format(Ve(void 0, e)),
|
|
@@ -1462,7 +1462,7 @@ const Ve = (a, o, e) => {
|
|
|
1462
1462
|
p && p.current && p.current.set("maxDate", C);
|
|
1463
1463
|
}, [C]);
|
|
1464
1464
|
const H = a && ((N = JSON.stringify(a)) == null ? void 0 : N.length) > 0 ? Ot(a, e, f) : "";
|
|
1465
|
-
return /* @__PURE__ */ ve.jsx("div", { "data-testid": "datepicker",
|
|
1465
|
+
return /* @__PURE__ */ ve.jsx("div", { "data-testid": "datepicker", ref: R, children: /* @__PURE__ */ ve.jsx(
|
|
1466
1466
|
Pt,
|
|
1467
1467
|
{
|
|
1468
1468
|
...Y,
|
|
@@ -1474,5 +1474,5 @@ const Ve = (a, o, e) => {
|
|
|
1474
1474
|
}
|
|
1475
1475
|
);
|
|
1476
1476
|
export {
|
|
1477
|
-
|
|
1477
|
+
Zt as default
|
|
1478
1478
|
};
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { DividerAppearance as
|
|
3
|
-
import { c as
|
|
4
|
-
import '../../Divider.css';const
|
|
5
|
-
divider:
|
|
6
|
-
grey:
|
|
7
|
-
light:
|
|
8
|
-
dark_grey:
|
|
9
|
-
"margin-15": "_margin-
|
|
10
|
-
"margin-30": "_margin-
|
|
11
|
-
},
|
|
12
|
-
appearance:
|
|
13
|
-
className:
|
|
14
|
-
margin:
|
|
15
|
-
}) => /* @__PURE__ */
|
|
1
|
+
import { j as t } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
+
import { DividerAppearance as _ } from "../../enums/appearance.js";
|
|
3
|
+
import { c as s } from "../../index-BHf7G3IG.js";
|
|
4
|
+
import '../../Divider.css';const a = "_divider_i35dl_2", o = "_grey_i35dl_2", g = "_light_i35dl_2", l = "_dark_grey_i35dl_2", i = {
|
|
5
|
+
divider: a,
|
|
6
|
+
grey: o,
|
|
7
|
+
light: g,
|
|
8
|
+
dark_grey: l,
|
|
9
|
+
"margin-15": "_margin-15_i35dl_2",
|
|
10
|
+
"margin-30": "_margin-30_i35dl_2"
|
|
11
|
+
}, v = ({
|
|
12
|
+
appearance: r = _.GREY,
|
|
13
|
+
className: e,
|
|
14
|
+
margin: d = "15"
|
|
15
|
+
}) => /* @__PURE__ */ t.jsx(
|
|
16
16
|
"hr",
|
|
17
17
|
{
|
|
18
18
|
"data-testid": "divider",
|
|
19
|
-
className:
|
|
20
|
-
[
|
|
21
|
-
[
|
|
19
|
+
className: s(i.divider, e, {
|
|
20
|
+
[i[`${r}`]]: r,
|
|
21
|
+
[i[`margin-${d}`]]: d
|
|
22
22
|
})
|
|
23
23
|
}
|
|
24
24
|
);
|
|
25
25
|
export {
|
|
26
|
-
|
|
26
|
+
v as default
|
|
27
27
|
};
|
|
@@ -3,10 +3,10 @@ import { c as w } from "../../index-BHf7G3IG.js";
|
|
|
3
3
|
import { useDrawerContext as f } from "./Provider.js";
|
|
4
4
|
import h from "../Icon/index.js";
|
|
5
5
|
import { useEffect as x } from "react";
|
|
6
|
-
import '../../index.css';const
|
|
7
|
-
drawer:
|
|
8
|
-
header:
|
|
9
|
-
body:
|
|
6
|
+
import '../../index.css';const j = "_drawer_ltlqj_2", u = "_header_ltlqj_2", y = "_body_ltlqj_2", a = {
|
|
7
|
+
drawer: j,
|
|
8
|
+
header: u,
|
|
9
|
+
body: y
|
|
10
10
|
};
|
|
11
11
|
function D({ id: t, children: n, title: i, onClose: d }) {
|
|
12
12
|
const { state: c, closeDrawer: l } = f(), s = c[t] || !1;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { j as o } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
-
import { useState as
|
|
2
|
+
import { useState as x, useRef as j, useEffect as k } from "react";
|
|
3
3
|
import { c as d } from "../../index-BHf7G3IG.js";
|
|
4
4
|
import N from "../Icon/index.js";
|
|
5
5
|
import g from "../PermaLink/PermaLink.js";
|
|
6
|
-
import '../../DropdownList.css';const E = "
|
|
6
|
+
import '../../DropdownList.css';const E = "_dropdownMenu_1n5ha_2", b = "_dropdownMenu__lg_1n5ha_2", C = "_dropdownMenu__md_1n5ha_2", L = "_dropdownMenu__sm_1n5ha_2", R = "_active_1n5ha_2", $ = "_icon_1n5ha_2", y = "_title_1n5ha_2", H = "_disabled_1n5ha_2", e = {
|
|
7
7
|
dropdownMenu: E,
|
|
8
8
|
dropdownMenu__lg: b,
|
|
9
9
|
dropdownMenu__md: C,
|
|
@@ -13,25 +13,25 @@ import '../../DropdownList.css';const E = "_dropdownMenu_1unwt_1", b = "_dropdow
|
|
|
13
13
|
title: y,
|
|
14
14
|
disabled: H
|
|
15
15
|
}, B = ({
|
|
16
|
-
buttonChild:
|
|
17
|
-
items:
|
|
18
|
-
footerItem:
|
|
19
|
-
className:
|
|
20
|
-
title:
|
|
21
|
-
titleClass:
|
|
16
|
+
buttonChild: m,
|
|
17
|
+
items: h,
|
|
18
|
+
footerItem: a,
|
|
19
|
+
className: w,
|
|
20
|
+
title: i,
|
|
21
|
+
titleClass: M,
|
|
22
22
|
event: r = "hover",
|
|
23
|
-
size:
|
|
23
|
+
size: l = "lg",
|
|
24
24
|
isDisabled: c
|
|
25
25
|
}) => {
|
|
26
|
-
const [
|
|
26
|
+
const [_, t] = x(!1), u = j(null), p = (n) => {
|
|
27
27
|
const s = u.current;
|
|
28
28
|
s != null && s.contains(n.target) || t(!1);
|
|
29
29
|
};
|
|
30
|
-
k(() => (document.addEventListener("mousedown",
|
|
31
|
-
document.removeEventListener("mousedown",
|
|
30
|
+
k(() => (document.addEventListener("mousedown", p), () => {
|
|
31
|
+
document.removeEventListener("mousedown", p);
|
|
32
32
|
}), []);
|
|
33
|
-
const
|
|
34
|
-
c || n === "click" && t(!
|
|
33
|
+
const f = (n) => {
|
|
34
|
+
c || n === "click" && t(!_);
|
|
35
35
|
};
|
|
36
36
|
return /* @__PURE__ */ o.jsx(
|
|
37
37
|
"div",
|
|
@@ -44,24 +44,24 @@ import '../../DropdownList.css';const E = "_dropdownMenu_1unwt_1", b = "_dropdow
|
|
|
44
44
|
children: /* @__PURE__ */ o.jsxs(
|
|
45
45
|
"div",
|
|
46
46
|
{
|
|
47
|
-
className: d(
|
|
47
|
+
className: d(w, e.dropdownMenu, {
|
|
48
48
|
[e.disabled]: c
|
|
49
49
|
}),
|
|
50
50
|
onMouseLeave: () => r === "hover" && t(!1),
|
|
51
51
|
onMouseEnter: () => r === "hover" && t(!0),
|
|
52
|
-
onClick: () =>
|
|
52
|
+
onClick: () => f(r),
|
|
53
53
|
children: [
|
|
54
|
-
|
|
54
|
+
m,
|
|
55
55
|
/* @__PURE__ */ o.jsx(
|
|
56
56
|
"div",
|
|
57
57
|
{
|
|
58
58
|
className: d(e.dropdownMenu, {
|
|
59
|
-
[e.active]:
|
|
60
|
-
[e[`dropdownMenu__${
|
|
59
|
+
[e.active]: _,
|
|
60
|
+
[e[`dropdownMenu__${l}`]]: l
|
|
61
61
|
}),
|
|
62
62
|
children: /* @__PURE__ */ o.jsxs("ul", { children: [
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
i && /* @__PURE__ */ o.jsx("li", { className: d(e.title, M), children: i }),
|
|
64
|
+
h.map((n, s) => /* @__PURE__ */ o.jsxs(
|
|
65
65
|
"li",
|
|
66
66
|
{
|
|
67
67
|
"data-testid": `dropdown-item-${s}`,
|
|
@@ -70,12 +70,12 @@ import '../../DropdownList.css';const E = "_dropdownMenu_1unwt_1", b = "_dropdow
|
|
|
70
70
|
}),
|
|
71
71
|
children: [
|
|
72
72
|
n.icon && /* @__PURE__ */ o.jsx(N, { name: n.icon }),
|
|
73
|
-
n.to ? /* @__PURE__ */ o.jsx(g, { to: n.to, children: n.text }) : /* @__PURE__ */ o.jsx("a", { onClick: (
|
|
73
|
+
n.to ? /* @__PURE__ */ o.jsx(g, { to: n.to, children: n.text }) : /* @__PURE__ */ o.jsx("a", { onClick: (v) => n.onClick && n.onClick(v), children: n.text })
|
|
74
74
|
]
|
|
75
75
|
},
|
|
76
76
|
s
|
|
77
77
|
)),
|
|
78
|
-
|
|
78
|
+
a && a
|
|
79
79
|
] })
|
|
80
80
|
}
|
|
81
81
|
)
|
|
@@ -9,7 +9,7 @@ import "../Tooltip/Tooltip.js";
|
|
|
9
9
|
import "../../react-toastify.esm-BUWNP7Nm.js";
|
|
10
10
|
import "../../utils/date.js";
|
|
11
11
|
import "../Input/Input.js";
|
|
12
|
-
import
|
|
12
|
+
import m from "../ScrollContainer/ScrollContainer.js";
|
|
13
13
|
import "../Charts/index.js";
|
|
14
14
|
import "../Checkbox/Checkbox.js";
|
|
15
15
|
import "../Confirm/Confirm.js";
|
|
@@ -17,48 +17,53 @@ import "../Datepicker/Datepicker.js";
|
|
|
17
17
|
import t from "../Divider/Divider.js";
|
|
18
18
|
import "../Drawer/Provider.js";
|
|
19
19
|
import "../FileUpload/FileUpload.js";
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import "../../Select-
|
|
20
|
+
import x from "../Modal/Modal.js";
|
|
21
|
+
import e from "../Grid/Column.js";
|
|
22
|
+
import u from "../Grid/Row.js";
|
|
23
|
+
import a from "../InfoDate/InfoDate.js";
|
|
24
|
+
import "../../Select-BGHusr4q.js";
|
|
25
25
|
import "../Switch/Switch.js";
|
|
26
26
|
import "../Textarea/Textarea.js";
|
|
27
|
-
import
|
|
28
|
-
import { u } from "../../useTranslation-CnCPcxVj.js";
|
|
29
|
-
import { T as
|
|
30
|
-
import '../../ErrorLogModal.css';const
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
27
|
+
import w from "../../hooks/useNiceModal.js";
|
|
28
|
+
import { u as h } from "../../useTranslation-CnCPcxVj.js";
|
|
29
|
+
import { T as M } from "../../Trans-B4ILpbwK.js";
|
|
30
|
+
import '../../ErrorLogModal.css';const g = "_dropdownMenu_8gwxh_2", j = "_dropdownMenu__lg_8gwxh_2", f = "_dropdownMenu__md_8gwxh_2", b = "_dropdownMenu__sm_8gwxh_2", N = "_active_8gwxh_2", v = "_icon_8gwxh_2", L = "_title_8gwxh_2", T = "_disabled_8gwxh_2", l = {
|
|
31
|
+
dropdownMenu: g,
|
|
32
|
+
dropdownMenu__lg: j,
|
|
33
|
+
dropdownMenu__md: f,
|
|
34
|
+
dropdownMenu__sm: b,
|
|
35
|
+
active: N,
|
|
36
|
+
icon: v,
|
|
37
|
+
title: L,
|
|
38
|
+
disabled: T
|
|
39
|
+
}, y = ({ id: i, onClose: n, errors: s }) => {
|
|
40
|
+
const { t: d } = h(), [, _] = w(i), p = () => {
|
|
41
|
+
_(), n && n();
|
|
37
42
|
};
|
|
38
43
|
return /* @__PURE__ */ o.jsx(
|
|
39
|
-
|
|
44
|
+
x,
|
|
40
45
|
{
|
|
41
|
-
onClose:
|
|
42
|
-
className:
|
|
43
|
-
header: /* @__PURE__ */ o.jsx("div", { className:
|
|
44
|
-
children: /* @__PURE__ */ o.jsx(
|
|
45
|
-
/* @__PURE__ */ o.jsxs(
|
|
46
|
-
/* @__PURE__ */ o.jsxs(
|
|
47
|
-
/* @__PURE__ */ o.jsx("b", { children: `${
|
|
48
|
-
/* @__PURE__ */ o.jsx(
|
|
46
|
+
onClose: p,
|
|
47
|
+
className: l.realTimeLogModalStyle,
|
|
48
|
+
header: /* @__PURE__ */ o.jsx("div", { className: l.modalHeader, children: d("title.error_log") }),
|
|
49
|
+
children: /* @__PURE__ */ o.jsx(m, { children: s ? s.map((r) => /* @__PURE__ */ o.jsxs("div", { className: "container-fluid", children: [
|
|
50
|
+
/* @__PURE__ */ o.jsxs(u, { children: [
|
|
51
|
+
/* @__PURE__ */ o.jsxs(e, { children: [
|
|
52
|
+
/* @__PURE__ */ o.jsx("b", { children: `${d("label.created_date")}:` }),
|
|
53
|
+
/* @__PURE__ */ o.jsx(a, { date: r == null ? void 0 : r.created_date })
|
|
49
54
|
] }),
|
|
50
|
-
/* @__PURE__ */ o.jsxs(
|
|
51
|
-
/* @__PURE__ */ o.jsx("b", { children: `${
|
|
52
|
-
/* @__PURE__ */ o.jsx(
|
|
55
|
+
/* @__PURE__ */ o.jsxs(e, { children: [
|
|
56
|
+
/* @__PURE__ */ o.jsx("b", { children: `${d("label.date_updated")}:` }),
|
|
57
|
+
/* @__PURE__ */ o.jsx(a, { date: r == null ? void 0 : r.update_date })
|
|
53
58
|
] })
|
|
54
59
|
] }),
|
|
55
60
|
/* @__PURE__ */ o.jsx(t, { className: "mt-4 mb-4" }),
|
|
56
61
|
/* @__PURE__ */ o.jsx("p", { className: "pre-line", children: r == null ? void 0 : r.log_data }),
|
|
57
62
|
/* @__PURE__ */ o.jsx(t, { className: "mt-4 mb-4" })
|
|
58
|
-
] }, r == null ? void 0 : r.id)) : /* @__PURE__ */ o.jsx(
|
|
63
|
+
] }, r == null ? void 0 : r.id)) : /* @__PURE__ */ o.jsx(M, { i18nKey: "text.not_found", values: { dataname: "Log" } }) })
|
|
59
64
|
}
|
|
60
65
|
);
|
|
61
|
-
},
|
|
66
|
+
}, so = c.create(y);
|
|
62
67
|
export {
|
|
63
|
-
|
|
68
|
+
so as default
|
|
64
69
|
};
|
|
@@ -5,7 +5,7 @@ import { Notification as se } from "../Notification/Notification.js";
|
|
|
5
5
|
import { convertToBase64 as ae } from "../../utils/helper.js";
|
|
6
6
|
import { c as p } from "../../index-BHf7G3IG.js";
|
|
7
7
|
import { Icons as re } from "../../assets/icons/icons.js";
|
|
8
|
-
import { s as t } from "../../FileUpload.module-
|
|
8
|
+
import { s as t } from "../../FileUpload.module-BxCEtOHx.js";
|
|
9
9
|
import ie from "../../assets/images/oms.png";
|
|
10
10
|
import { AppearanceDirection as le, NotificationAppearanceType as ne } from "../../enums/appearance.js";
|
|
11
11
|
import { imageFormatValidation as oe } from "../../utils/validation.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as e } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
2
|
import o from "../Modal/Modal.js";
|
|
3
|
-
import { s as i } from "../../FileUpload.module-
|
|
3
|
+
import { s as i } from "../../FileUpload.module-BxCEtOHx.js";
|
|
4
4
|
import { u as a } from "../../useTranslation-CnCPcxVj.js";
|
|
5
5
|
const f = ({ onClose: t, src: r }) => {
|
|
6
6
|
const { t: s } = a();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { j as s } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
-
import { s as e } from "../../FileUpload.module-
|
|
2
|
+
import { s as e } from "../../FileUpload.module-BxCEtOHx.js";
|
|
3
3
|
const l = ({ count: t, onCardClick: a }) => /* @__PURE__ */ s.jsx("div", { "data-testid": "fileupload-lengthcard", className: e.lengthCard, onClick: a, children: /* @__PURE__ */ s.jsx("span", { children: `+ ${t}` }) });
|
|
4
4
|
export {
|
|
5
5
|
l as default
|
|
@@ -3,7 +3,7 @@ import { useState as a } from "react";
|
|
|
3
3
|
import n from "../Icon/index.js";
|
|
4
4
|
import j from "../Modal/Modal.js";
|
|
5
5
|
import { Icons as m } from "../../assets/icons/icons.js";
|
|
6
|
-
import { s as r } from "../../FileUpload.module-
|
|
6
|
+
import { s as r } from "../../FileUpload.module-BxCEtOHx.js";
|
|
7
7
|
import u from "./ImagePreview.js";
|
|
8
8
|
import { u as w } from "../../useTranslation-CnCPcxVj.js";
|
|
9
9
|
const O = ({ imagePaths: i, onClose: l, onDelete: c }) => {
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { c } from "../../index-BHf7G3IG.js";
|
|
3
|
-
import '../../Heading.css';const
|
|
4
|
-
h2:
|
|
5
|
-
h1:
|
|
6
|
-
},
|
|
7
|
-
children:
|
|
8
|
-
level:
|
|
9
|
-
className:
|
|
1
|
+
import c from "react";
|
|
2
|
+
import { c as o } from "../../index-BHf7G3IG.js";
|
|
3
|
+
import '../../Heading.css';const m = "_h2_dcf3m_2", n = "_h1_dcf3m_2", r = {
|
|
4
|
+
h2: m,
|
|
5
|
+
h1: n
|
|
6
|
+
}, f = ({
|
|
7
|
+
children: s,
|
|
8
|
+
level: e = 2,
|
|
9
|
+
className: a
|
|
10
10
|
}) => {
|
|
11
|
-
const t = `h${
|
|
12
|
-
return
|
|
11
|
+
const t = `h${e}`;
|
|
12
|
+
return c.createElement(
|
|
13
13
|
t,
|
|
14
14
|
{
|
|
15
|
-
className:
|
|
15
|
+
className: o(r[t], a)
|
|
16
16
|
},
|
|
17
|
-
|
|
17
|
+
s
|
|
18
18
|
);
|
|
19
19
|
};
|
|
20
20
|
export {
|
|
21
|
-
|
|
21
|
+
f as default
|
|
22
22
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { j as n } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
2
|
import { c as r } from "../../index-BHf7G3IG.js";
|
|
3
3
|
import i from "../Icon/index.js";
|
|
4
|
-
import '../../IconBox.css';const x = "
|
|
4
|
+
import '../../IconBox.css';const x = "_iconBox_jz84k_2", a = "_iconBox__primary_jz84k_2", t = "_iconBox__secondary_jz84k_2", c = {
|
|
5
5
|
iconBox: x,
|
|
6
6
|
iconBox__primary: a,
|
|
7
|
-
iconBox__secondary:
|
|
8
|
-
},
|
|
7
|
+
iconBox__secondary: t
|
|
8
|
+
}, j = ({ icon: s, onClick: _, type: o = "secondary" }) => /* @__PURE__ */ n.jsx("button", { className: r(c.iconBox, {
|
|
9
9
|
[c[`iconBox__${o}`]]: o
|
|
10
10
|
}), onClick: _, children: /* @__PURE__ */ n.jsx(i, { name: s }) });
|
|
11
11
|
export {
|
|
12
|
-
|
|
12
|
+
j as default
|
|
13
13
|
};
|
|
@@ -2,7 +2,7 @@ import { j as t } from "../../jsx-runtime-BcAkpsdy.js";
|
|
|
2
2
|
import m from "../ContentLoader/ContentLoader.js";
|
|
3
3
|
import x from "../NoResult/NoResult.js";
|
|
4
4
|
import p from "../TypographyText/TypographyText.js";
|
|
5
|
-
import { s as f } from "../../InfoBoxList.module-
|
|
5
|
+
import { s as f } from "../../InfoBoxList.module-CmdO3WXi.js";
|
|
6
6
|
const y = ({
|
|
7
7
|
items: r,
|
|
8
8
|
isLoading: e,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as c } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
2
|
import d from "../TypographyText/TypographyText.js";
|
|
3
3
|
import { c as p } from "../../index-BHf7G3IG.js";
|
|
4
|
-
import { s as l } from "../../InfoBoxList.module-
|
|
4
|
+
import { s as l } from "../../InfoBoxList.module-CmdO3WXi.js";
|
|
5
5
|
import { a as m, _ as o, b as x, k as _ } from "../../keys-B0bo5Q7o.js";
|
|
6
6
|
import { c as f, _ as h, a as b, b as v } from "../../_reduce-DsUCMz4O.js";
|
|
7
7
|
function y(a, t, r) {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { j as t } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
2
|
import e, { CLIENT_TIME_FORMAT as l, CLIENT_DATE_SHORT_FORMAT as _ } from "../../utils/date.js";
|
|
3
|
-
import '../../InfoDate.css';const D = "
|
|
3
|
+
import '../../InfoDate.css';const D = "_infoDateWrapper_bn5u6_2", u = "_time_bn5u6_2", a = {
|
|
4
4
|
infoDateWrapper: D,
|
|
5
5
|
time: u
|
|
6
6
|
}, x = (m) => {
|
|
7
|
-
const { date: r, time: f = !1, fromNow: i = !1 } = m,
|
|
7
|
+
const { date: r, time: f = !1, fromNow: i = !1 } = m, p = ((o, d) => {
|
|
8
8
|
var n;
|
|
9
9
|
let s = "";
|
|
10
10
|
return i ? (s = (n = e(o)) == null ? void 0 : n.fromNow(!0), s) : e(o).format(d);
|
|
11
|
-
})(r, _),
|
|
11
|
+
})(r, _), c = e(r).format(l);
|
|
12
12
|
return /* @__PURE__ */ t.jsxs("span", { className: a.infoDateWrapper, "data-testid": "infodate", children: [
|
|
13
|
-
/* @__PURE__ */ t.jsx("span", { className: a.date, children:
|
|
14
|
-
f && /* @__PURE__ */ t.jsx("span", { className: a.time, children:
|
|
13
|
+
/* @__PURE__ */ t.jsx("span", { className: a.date, children: p }),
|
|
14
|
+
f && /* @__PURE__ */ t.jsx("span", { className: a.time, children: c })
|
|
15
15
|
] });
|
|
16
16
|
};
|
|
17
17
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as o } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
2
|
import i from "../Icon/index.js";
|
|
3
3
|
import { Icons as e } from "../../assets/icons/icons.js";
|
|
4
|
-
import '../../InfoText.css';const c = "
|
|
4
|
+
import '../../InfoText.css';const c = "_infoText_1gwgd_2", f = "_infoIcon_1gwgd_2", n = {
|
|
5
5
|
infoText: c,
|
|
6
6
|
infoIcon: f
|
|
7
7
|
}, a = ({ text: t, className: s }) => /* @__PURE__ */ o.jsxs("div", { className: `${n.infoText} ${s}`, "data-testid": "infotext", children: [
|