@cagatayfdn/flora-components 0.0.138 → 0.0.140
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 -0
- package/dist/ActionButton.css +1 -0
- package/dist/AlertCard.css +1 -0
- package/dist/Autocomplete.css +1 -0
- package/dist/Button.css +1 -0
- package/dist/Card.css +1 -0
- package/dist/Checkbox.css +1 -0
- package/dist/Config.css +1 -0
- package/dist/Confirm.css +1 -0
- package/dist/ContentHeader.css +1 -0
- package/dist/Datepicker.css +1 -0
- package/dist/Divider.css +1 -0
- package/dist/DropdownList.css +1 -0
- package/dist/ErrorLogModal.css +1 -0
- package/dist/FileUpload.css +1 -0
- package/dist/FileUpload.module-BxCEtOHx.js +32 -0
- package/dist/Heading.css +1 -0
- package/dist/IconBox.css +1 -0
- package/dist/InfoBoxList.css +1 -0
- package/dist/InfoBoxList.module-BHkAHgos.js +8 -0
- package/dist/InfoDate.css +1 -0
- package/dist/InfoText.css +1 -0
- package/dist/Input.css +1 -0
- package/dist/Label.css +1 -0
- package/dist/Legends.css +1 -0
- package/dist/Loading.css +1 -0
- package/dist/MenuItem-Df6Zsa7E.js +53 -0
- package/dist/MenuItem.css +1 -0
- package/dist/Modal.css +1 -0
- package/dist/NoResult.css +1 -0
- package/dist/PageWrap.css +1 -0
- package/dist/Pager.css +1 -0
- package/dist/Panel.css +1 -0
- package/dist/Radio.css +1 -0
- package/dist/ResultError.css +1 -0
- package/dist/ScrollContainer.css +1 -0
- package/dist/Select-BE_y91ZN.js +1831 -0
- package/dist/Select.css +1 -0
- package/dist/Select.module-ByPQ6qr4.js +21 -0
- package/dist/StatusTag.css +1 -0
- package/dist/StatusTypography.css +1 -0
- package/dist/Stepper.css +1 -0
- package/dist/Switch.css +1 -0
- package/dist/Tab.css +1 -0
- package/dist/Table.css +1 -0
- package/dist/Table.module-DUqpZOLt.js +29 -0
- package/dist/Textarea.css +1 -0
- package/dist/Tooltip.css +1 -0
- package/dist/Trans-B4ILpbwK.js +343 -0
- package/dist/TypographyText.css +1 -0
- package/dist/ValidationError.css +1 -0
- package/dist/_commonjsHelpers-CT_km90n.js +30 -0
- package/dist/_isArray-CBUZFxFA.js +6 -0
- package/dist/_isString-BUpNGP_8.js +6 -0
- package/dist/_reduce-DsUCMz4O.js +148 -0
- package/dist/assets/icons/icons.js +70 -0
- package/dist/assets/images/500_error_2x.gif +0 -0
- package/dist/assets/images/oms.png +0 -0
- package/dist/components/Accordion/Accordion.js +60 -0
- package/dist/components/ActionButton/ActionButton.js +54 -0
- package/dist/components/AlertCard/AlertCard.js +29 -0
- package/dist/components/AuthUserCan/Permission.js +18 -0
- package/dist/components/AuthUserCan/index.js +23 -0
- package/dist/components/Autocomplete/Autocomplete.js +87 -0
- package/dist/components/Button/Button.js +87 -0
- package/dist/components/Card/Card.js +21 -0
- package/dist/components/Charts/Bar.js +18 -0
- package/dist/components/Charts/Legends.js +21 -0
- package/dist/components/Charts/Line.js +18 -0
- package/dist/components/Charts/Pie.js +43 -0
- package/dist/components/Charts/index.js +31 -0
- package/dist/components/Charts/types.js +1 -0
- package/dist/components/Charts/utils.js +12 -0
- package/dist/components/Checkbox/Checkbox.js +68 -0
- package/dist/components/Config/Config.js +32 -0
- package/dist/components/Confirm/Confirm.js +60 -0
- package/dist/components/ContentHeader/ContentHeader.js +75 -0
- package/dist/components/ContentLoader/ContentLoader.js +16 -0
- package/dist/components/Countdown/Countdown.js +20 -0
- package/dist/components/Datepicker/Datepicker.js +1478 -0
- package/dist/components/Divider/Divider.js +27 -0
- package/dist/components/Drawer/Provider.js +24 -0
- package/dist/components/Drawer/index.js +55 -0
- package/dist/components/Dropdown/DropdownList.js +90 -0
- package/dist/components/ErrorLogModal/ErrorLogModal.js +69 -0
- package/dist/components/FileUpload/FileUpload.js +237 -0
- package/dist/components/FileUpload/ImagePreview.js +19 -0
- package/dist/components/FileUpload/LengthCard.js +6 -0
- package/dist/components/FileUpload/PreviewModal.js +53 -0
- package/dist/components/Grid/Column.js +29 -0
- package/dist/components/Grid/Row.js +6 -0
- package/dist/components/Heading/Heading.js +22 -0
- package/dist/components/Icon/index.js +24 -0
- package/dist/components/IconBox/IconBox.js +13 -0
- package/dist/components/InfiniteScroll/InfiniteScroll.js +41 -0
- package/dist/components/InfoBoxList/InfoBoxList.js +30 -0
- package/dist/components/InfoBoxList/helper.js +83 -0
- package/dist/components/InfoDate/InfoDate.js +19 -0
- package/dist/components/InfoText/InfoText.js +13 -0
- package/dist/components/Input/Input.js +140 -0
- package/dist/components/Label/Label.js +22 -0
- package/dist/components/Loading/Loading.js +62 -0
- package/dist/components/Modal/Modal.js +74 -0
- package/dist/components/NavigatorCard/index.js +59 -0
- package/dist/components/NoResult/NoResult.js +12 -0
- package/dist/components/Notification/Notification.js +26 -0
- package/dist/components/PageWrapper/PageWrap.js +46 -0
- package/dist/components/Pager/Pager.js +103 -0
- package/dist/components/Panel/Panel.js +71 -0
- package/dist/components/PermaLink/PermaLink.js +387 -0
- package/dist/components/Radio/Radio.js +96 -0
- package/dist/components/ResultError/ResultError.js +20 -0
- package/dist/components/ScrollContainer/ScrollContainer.js +23 -0
- package/dist/components/Select/NoData.js +10 -0
- package/dist/components/Select/OptionItem.js +19 -0
- package/dist/components/Select/Select.js +13 -0
- package/dist/components/Sidebar/MenuItem.js +9 -0
- package/dist/components/Sidebar/index.js +137 -0
- package/dist/components/StatusTag/StatusTag.js +24 -0
- package/dist/components/StatusTypography/StatusTypography.js +51 -0
- package/dist/components/Stepper/Stepper.js +75 -0
- package/dist/components/Switch/Switch.js +84 -0
- package/dist/components/Tab/Tab.js +28 -0
- package/dist/components/Table/Table.js +271 -0
- package/dist/components/Table/TableHeader.js +137 -0
- package/dist/components/Table/TableSort.js +25 -0
- package/dist/components/Textarea/Textarea.js +95 -0
- package/dist/components/Tooltip/Tooltip.js +1548 -0
- package/dist/components/TypographyText/TypographyText.js +91 -0
- package/dist/components/ValidationError/ValidationError.js +7 -0
- package/dist/components/index.js +133 -0
- package/dist/defineProperty-DeKy1XT0.js +37 -0
- package/dist/enums/appearance.js +14 -0
- package/dist/enums/applicationTypeSlug.js +4 -0
- package/dist/enums/index.js +29 -0
- package/dist/enums/isActiveColor.js +4 -0
- package/dist/enums/size.js +4 -0
- package/dist/enums/status.js +11 -0
- package/dist/equals-PL9KqVQf.js +119 -0
- package/dist/flatpickr-CRz1AV0e.js +59 -0
- package/dist/helper-lFjvXQpv.js +1465 -0
- package/dist/hooks/index.js +15 -0
- package/dist/hooks/useAauth.js +40 -0
- package/dist/hooks/useDisclosure.js +14 -0
- package/dist/hooks/useDrawer.js +9 -0
- package/dist/hooks/useMediaQuery.js +21 -0
- package/dist/hooks/useNiceModal.js +13 -0
- package/dist/i18nInstance-CiCZbaCK.js +55 -0
- package/dist/includes-8YTFrx85.js +46 -0
- package/dist/index-9ZLCCecr.js +364 -0
- package/dist/index-BHf7G3IG.js +35 -0
- package/dist/index-BJU1K2Aw.js +8003 -0
- package/dist/index-CB61CB0b.js +669 -0
- package/dist/index-H7XbDVmH.js +320 -0
- package/dist/index.css +1 -0
- package/dist/index.d.mts +1478 -0
- package/dist/index.d.ts +1478 -0
- package/dist/index.js +203 -0
- package/dist/index2.css +1 -0
- package/dist/jsx-runtime-BcAkpsdy.js +631 -0
- package/dist/keys-B0bo5Q7o.js +67 -0
- package/dist/locales/en/index.js +615 -0
- package/dist/locales/i18n.js +1417 -0
- package/dist/locales/index.js +5 -0
- package/dist/locales/tr/index.js +615 -0
- package/dist/main.css +1 -0
- package/dist/main.js +57 -0
- package/dist/prodivers.css +6 -0
- package/dist/prodivers.js +13 -0
- package/dist/react-content-loader.es-CswLCxkm.js +90 -0
- package/dist/react-toastify.esm-BUWNP7Nm.js +808 -0
- package/dist/types/common/date.js +1 -0
- package/dist/types/common/events.js +1 -0
- package/dist/types/common/forms.js +1 -0
- package/dist/types/common/option.js +1 -0
- package/dist/types/index.js +1 -0
- package/dist/useTranslation-CnCPcxVj.js +142 -0
- package/dist/utils/date.js +413 -0
- package/dist/utils/flatpickr.js +4 -0
- package/dist/utils/helper.js +18 -0
- package/dist/utils/index.js +27 -0
- package/dist/utils/language.js +46 -0
- package/dist/utils/table.js +62 -0
- package/dist/utils/validation.js +27 -0
- package/dist/utils/yup.js +2921 -0
- package/package.json +1 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { j as n } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
+
import { c as r } from "../../index-BHf7G3IG.js";
|
|
3
|
+
import i from "../Icon/index.js";
|
|
4
|
+
import '../../IconBox.css';const x = "_iconBox_jz84k_2", a = "_iconBox__primary_jz84k_2", t = "_iconBox__secondary_jz84k_2", c = {
|
|
5
|
+
iconBox: x,
|
|
6
|
+
iconBox__primary: a,
|
|
7
|
+
iconBox__secondary: t
|
|
8
|
+
}, j = ({ icon: s, onClick: _, type: o = "secondary" }) => /* @__PURE__ */ n.jsx("button", { className: r(c.iconBox, {
|
|
9
|
+
[c[`iconBox__${o}`]]: o
|
|
10
|
+
}), onClick: _, children: /* @__PURE__ */ n.jsx(i, { name: s }) });
|
|
11
|
+
export {
|
|
12
|
+
j as default
|
|
13
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { j as g } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
+
import { useRef as h, useState as p, useEffect as l } from "react";
|
|
3
|
+
function E({
|
|
4
|
+
children: i,
|
|
5
|
+
hasMore: c,
|
|
6
|
+
height: f = 400,
|
|
7
|
+
loadMore: d,
|
|
8
|
+
treshold: m = 100
|
|
9
|
+
}) {
|
|
10
|
+
const t = h(null), [n, o] = p(!1), s = () => {
|
|
11
|
+
var e, r, u;
|
|
12
|
+
t.current && ((e = t == null ? void 0 : t.current) == null ? void 0 : e.scrollTop) + ((r = t == null ? void 0 : t.current) == null ? void 0 : r.clientHeight) >= ((u = t == null ? void 0 : t.current) == null ? void 0 : u.scrollHeight) - m && o(!0);
|
|
13
|
+
}, a = () => {
|
|
14
|
+
var e;
|
|
15
|
+
d(), o(!1), (e = t.current) == null || e.scroll(
|
|
16
|
+
0,
|
|
17
|
+
t.current.scrollHeight / 2
|
|
18
|
+
);
|
|
19
|
+
};
|
|
20
|
+
return l(() => {
|
|
21
|
+
n && c && setTimeout(() => a(), 300);
|
|
22
|
+
}, [n, c]), l(() => {
|
|
23
|
+
var e;
|
|
24
|
+
return (e = t.current) == null || e.addEventListener("scroll", s), () => {
|
|
25
|
+
var r;
|
|
26
|
+
return (r = t.current) == null ? void 0 : r.removeEventListener("scroll", s);
|
|
27
|
+
};
|
|
28
|
+
}, []), /* @__PURE__ */ g.jsx(
|
|
29
|
+
"div",
|
|
30
|
+
{
|
|
31
|
+
"data-testid": "infinitescroll",
|
|
32
|
+
ref: t,
|
|
33
|
+
style: { overflow: "auto", height: f },
|
|
34
|
+
onScroll: s,
|
|
35
|
+
children: i
|
|
36
|
+
}
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
export {
|
|
40
|
+
E as default
|
|
41
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { j as t } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
+
import m from "../ContentLoader/ContentLoader.js";
|
|
3
|
+
import x from "../NoResult/NoResult.js";
|
|
4
|
+
import p from "../TypographyText/TypographyText.js";
|
|
5
|
+
import { s as f } from "../../InfoBoxList.module-BHkAHgos.js";
|
|
6
|
+
const y = ({
|
|
7
|
+
items: r,
|
|
8
|
+
isLoading: e,
|
|
9
|
+
className: s
|
|
10
|
+
}) => {
|
|
11
|
+
const d = r.every(({ value: o }) => o === void 0);
|
|
12
|
+
return /* @__PURE__ */ t.jsx("div", { className: s, "data-testid": "infoboxlist-container", children: d ? /* @__PURE__ */ t.jsx(x, {}) : r.map(
|
|
13
|
+
({ label: o, value: i, copy: n }) => i !== void 0 && /* @__PURE__ */ t.jsxs("div", { className: f.item, "data-testid": "infoboxlist-item", children: [
|
|
14
|
+
/* @__PURE__ */ t.jsx("div", { children: o }),
|
|
15
|
+
/* @__PURE__ */ t.jsx("div", { children: e ? /* @__PURE__ */ t.jsx(m, {}) : n ? /* @__PURE__ */ t.jsx(
|
|
16
|
+
p,
|
|
17
|
+
{
|
|
18
|
+
className: s,
|
|
19
|
+
ellipsis: !0,
|
|
20
|
+
href: `${i}`,
|
|
21
|
+
copyable: !0,
|
|
22
|
+
children: i
|
|
23
|
+
}
|
|
24
|
+
) : i })
|
|
25
|
+
] }, o + i)
|
|
26
|
+
) });
|
|
27
|
+
};
|
|
28
|
+
export {
|
|
29
|
+
y as default
|
|
30
|
+
};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { j as c } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
+
import d from "../TypographyText/TypographyText.js";
|
|
3
|
+
import { c as p } from "../../index-BHf7G3IG.js";
|
|
4
|
+
import { s as l } from "../../InfoBoxList.module-BHkAHgos.js";
|
|
5
|
+
import { a as m, _ as o, b as x, k as _ } from "../../keys-B0bo5Q7o.js";
|
|
6
|
+
import { c as f, _ as h, a as b, b as v } from "../../_reduce-DsUCMz4O.js";
|
|
7
|
+
function y(a, t, r) {
|
|
8
|
+
return function() {
|
|
9
|
+
for (var n = [], e = 0, u = a, s = 0; s < t.length || e < arguments.length; ) {
|
|
10
|
+
var i;
|
|
11
|
+
s < t.length && (!m(t[s]) || e >= arguments.length) ? i = t[s] : (i = arguments[e], e += 1), n[s] = i, m(i) || (u -= 1), s += 1;
|
|
12
|
+
}
|
|
13
|
+
return u <= 0 ? r.apply(this, n) : f(u, y(a, n, r));
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
var g = /* @__PURE__ */ o(function(t, r) {
|
|
17
|
+
return t === 1 ? x(r) : f(t, y(t, [], r));
|
|
18
|
+
});
|
|
19
|
+
function j(a, t) {
|
|
20
|
+
for (var r = 0, n = t.length, e = Array(n); r < n; )
|
|
21
|
+
e[r] = a(t[r]), r += 1;
|
|
22
|
+
return e;
|
|
23
|
+
}
|
|
24
|
+
var N = /* @__PURE__ */ function() {
|
|
25
|
+
function a(t, r) {
|
|
26
|
+
this.xf = r, this.f = t;
|
|
27
|
+
}
|
|
28
|
+
return a.prototype["@@transducer/init"] = h.init, a.prototype["@@transducer/result"] = h.result, a.prototype["@@transducer/step"] = function(t, r) {
|
|
29
|
+
return this.xf["@@transducer/step"](t, this.f(r));
|
|
30
|
+
}, a;
|
|
31
|
+
}(), w = /* @__PURE__ */ o(function(t, r) {
|
|
32
|
+
return new N(t, r);
|
|
33
|
+
});
|
|
34
|
+
const S = w;
|
|
35
|
+
var $ = /* @__PURE__ */ o(
|
|
36
|
+
/* @__PURE__ */ b(["fantasy-land/map", "map"], S, function(t, r) {
|
|
37
|
+
switch (Object.prototype.toString.call(r)) {
|
|
38
|
+
case "[object Function]":
|
|
39
|
+
return g(r.length, function() {
|
|
40
|
+
return t.call(this, r.apply(this, arguments));
|
|
41
|
+
});
|
|
42
|
+
case "[object Object]":
|
|
43
|
+
return v(function(n, e) {
|
|
44
|
+
return n[e] = t(r[e]), n;
|
|
45
|
+
}, {}, _(r));
|
|
46
|
+
default:
|
|
47
|
+
return j(t, r);
|
|
48
|
+
}
|
|
49
|
+
})
|
|
50
|
+
);
|
|
51
|
+
const A = (a, t = !0) => {
|
|
52
|
+
if (a && a[0])
|
|
53
|
+
return $(
|
|
54
|
+
(r) => /* @__PURE__ */ c.jsxs(
|
|
55
|
+
"span",
|
|
56
|
+
{
|
|
57
|
+
className: p(
|
|
58
|
+
{},
|
|
59
|
+
{
|
|
60
|
+
[l.connectedService]: t
|
|
61
|
+
}
|
|
62
|
+
),
|
|
63
|
+
children: [
|
|
64
|
+
/* @__PURE__ */ c.jsx("span", { children: r.name }),
|
|
65
|
+
r.url ? /* @__PURE__ */ c.jsx(
|
|
66
|
+
d,
|
|
67
|
+
{
|
|
68
|
+
ellipsis: !0,
|
|
69
|
+
href: `//${r.url}`,
|
|
70
|
+
copyable: !0,
|
|
71
|
+
className: p(l.subUrl, "cursor-pointer"),
|
|
72
|
+
children: `https://${r.url}`
|
|
73
|
+
}
|
|
74
|
+
) : "-"
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
),
|
|
78
|
+
a
|
|
79
|
+
);
|
|
80
|
+
};
|
|
81
|
+
export {
|
|
82
|
+
A as createConnectedService
|
|
83
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { j as t } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
+
import e, { CLIENT_TIME_FORMAT as l, CLIENT_DATE_SHORT_FORMAT as _ } from "../../utils/date.js";
|
|
3
|
+
import '../../InfoDate.css';const D = "_infoDateWrapper_bn5u6_2", u = "_time_bn5u6_2", a = {
|
|
4
|
+
infoDateWrapper: D,
|
|
5
|
+
time: u
|
|
6
|
+
}, x = (m) => {
|
|
7
|
+
const { date: r, time: f = !1, fromNow: i = !1 } = m, p = ((o, d) => {
|
|
8
|
+
var n;
|
|
9
|
+
let s = "";
|
|
10
|
+
return i ? (s = (n = e(o)) == null ? void 0 : n.fromNow(!0), s) : e(o).format(d);
|
|
11
|
+
})(r, _), c = e(r).format(l);
|
|
12
|
+
return /* @__PURE__ */ t.jsxs("span", { className: a.infoDateWrapper, "data-testid": "infodate", children: [
|
|
13
|
+
/* @__PURE__ */ t.jsx("span", { className: a.date, children: p }),
|
|
14
|
+
f && /* @__PURE__ */ t.jsx("span", { className: a.time, children: c })
|
|
15
|
+
] });
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
x as default
|
|
19
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { j as o } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
+
import i from "../Icon/index.js";
|
|
3
|
+
import { Icons as e } from "../../assets/icons/icons.js";
|
|
4
|
+
import '../../InfoText.css';const c = "_infoText_1gwgd_2", f = "_infoIcon_1gwgd_2", n = {
|
|
5
|
+
infoText: c,
|
|
6
|
+
infoIcon: f
|
|
7
|
+
}, a = ({ text: t, className: s }) => /* @__PURE__ */ o.jsxs("div", { className: `${n.infoText} ${s}`, "data-testid": "infotext", children: [
|
|
8
|
+
/* @__PURE__ */ o.jsx(i, { name: e.Info, className: n.infoIcon }),
|
|
9
|
+
/* @__PURE__ */ o.jsx("span", { children: t })
|
|
10
|
+
] });
|
|
11
|
+
export {
|
|
12
|
+
a as InfoText
|
|
13
|
+
};
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { j as s } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
+
import N, { useState as L, useEffect as V } from "react";
|
|
3
|
+
import { c as i } from "../../index-BHf7G3IG.js";
|
|
4
|
+
import q from "../Label/Label.js";
|
|
5
|
+
import D from "../ValidationError/ValidationError.js";
|
|
6
|
+
import '../../Input.css';const P = "_counter_1xdx7_2", B = "_container_1xdx7_2", H = "_fieldWrap_1xdx7_2", J = "_control_1xdx7_2", K = "_light_1xdx7_2", M = "_disabled_1xdx7_2", O = "_more_dark_1xdx7_2", Q = "_radius_1xdx7_2", U = "_suffix_1xdx7_2", X = "_error_1xdx7_2", Y = "_suffixWrap_1xdx7_2", Z = "_prefixWrap_1xdx7_2", ee = "_prefix_1xdx7_2", re = "_suffixClickable_1xdx7_2", se = "_inputGroup_1xdx7_2", ae = "_addonAfter_1xdx7_2", e = {
|
|
7
|
+
counter: P,
|
|
8
|
+
container: B,
|
|
9
|
+
fieldWrap: H,
|
|
10
|
+
control: J,
|
|
11
|
+
light: K,
|
|
12
|
+
disabled: M,
|
|
13
|
+
more_dark: O,
|
|
14
|
+
radius: Q,
|
|
15
|
+
suffix: U,
|
|
16
|
+
error: X,
|
|
17
|
+
suffixWrap: Y,
|
|
18
|
+
prefixWrap: Z,
|
|
19
|
+
prefix: ee,
|
|
20
|
+
suffixClickable: re,
|
|
21
|
+
inputGroup: se,
|
|
22
|
+
addonAfter: ae
|
|
23
|
+
}, te = N.forwardRef(
|
|
24
|
+
(g, j) => {
|
|
25
|
+
const {
|
|
26
|
+
name: b,
|
|
27
|
+
label: h,
|
|
28
|
+
id: k,
|
|
29
|
+
type: a = "text",
|
|
30
|
+
prefix: l,
|
|
31
|
+
suffix: d,
|
|
32
|
+
size: C,
|
|
33
|
+
maxLength: n,
|
|
34
|
+
isDisabled: c,
|
|
35
|
+
error: x,
|
|
36
|
+
appearance: f,
|
|
37
|
+
className: v,
|
|
38
|
+
wrapperClassName: y,
|
|
39
|
+
fieldWrapClassName: A,
|
|
40
|
+
addonAfter: u,
|
|
41
|
+
value: t = "",
|
|
42
|
+
onChange: W,
|
|
43
|
+
required: G,
|
|
44
|
+
isRadius: $,
|
|
45
|
+
textFillColor: F,
|
|
46
|
+
suffixClickable: R,
|
|
47
|
+
isFormGroup: S = !0,
|
|
48
|
+
...T
|
|
49
|
+
} = g, [p, _] = L(t), m = (r) => {
|
|
50
|
+
var o;
|
|
51
|
+
return (o = r == null ? void 0 : r.toString()) == null ? void 0 : o.slice(0, n);
|
|
52
|
+
}, w = N.useCallback(
|
|
53
|
+
(r) => {
|
|
54
|
+
_(m(r.currentTarget.value)), W && W(r, m(r.currentTarget.value));
|
|
55
|
+
},
|
|
56
|
+
[n, _]
|
|
57
|
+
), E = (r, o) => {
|
|
58
|
+
o == "number" && r.currentTarget.blur();
|
|
59
|
+
};
|
|
60
|
+
V(() => {
|
|
61
|
+
t != null && _(m(t));
|
|
62
|
+
}, [t]);
|
|
63
|
+
const z = {
|
|
64
|
+
[e[`type__${a}`]]: a !== "text"
|
|
65
|
+
}, I = i(
|
|
66
|
+
{
|
|
67
|
+
"form-group": S,
|
|
68
|
+
[e[`size__${C}`]]: C,
|
|
69
|
+
[e.disabled]: c,
|
|
70
|
+
[e.hidden]: a === "hidden"
|
|
71
|
+
},
|
|
72
|
+
y
|
|
73
|
+
);
|
|
74
|
+
return /* @__PURE__ */ s.jsxs("div", { className: I, "data-testid": `input-container-${a}`, children: [
|
|
75
|
+
/* @__PURE__ */ s.jsxs(
|
|
76
|
+
"div",
|
|
77
|
+
{
|
|
78
|
+
className: i(e.container, {
|
|
79
|
+
[e[`${f}`]]: f,
|
|
80
|
+
[e.radius]: $,
|
|
81
|
+
[e.inputGroup]: u,
|
|
82
|
+
[e.error]: x,
|
|
83
|
+
[e.disabled]: c,
|
|
84
|
+
[e.suffixWrap]: d,
|
|
85
|
+
[e.prefixWrap]: l
|
|
86
|
+
}),
|
|
87
|
+
children: [
|
|
88
|
+
/* @__PURE__ */ s.jsxs("div", { className: e.counter, children: [
|
|
89
|
+
h && /* @__PURE__ */ s.jsxs(q, { appearance: f, name: b, children: [
|
|
90
|
+
h,
|
|
91
|
+
" ",
|
|
92
|
+
G && "*"
|
|
93
|
+
] }),
|
|
94
|
+
n && /* @__PURE__ */ s.jsxs("span", { children: [
|
|
95
|
+
p ? p.toString().length : 0,
|
|
96
|
+
"/",
|
|
97
|
+
n
|
|
98
|
+
] })
|
|
99
|
+
] }),
|
|
100
|
+
/* @__PURE__ */ s.jsxs("div", { className: i(e.fieldWrap, A), children: [
|
|
101
|
+
l && /* @__PURE__ */ s.jsx("span", { className: e.prefix, children: l }),
|
|
102
|
+
/* @__PURE__ */ s.jsx(
|
|
103
|
+
"input",
|
|
104
|
+
{
|
|
105
|
+
type: a,
|
|
106
|
+
name: b,
|
|
107
|
+
id: k,
|
|
108
|
+
value: p,
|
|
109
|
+
"data-testid": `input-${a}`,
|
|
110
|
+
className: i(e.control, z, v),
|
|
111
|
+
disabled: c,
|
|
112
|
+
ref: j,
|
|
113
|
+
onWheel: (r) => E(r, a),
|
|
114
|
+
onChange: w,
|
|
115
|
+
...T,
|
|
116
|
+
style: { WebkitTextFillColor: F }
|
|
117
|
+
}
|
|
118
|
+
),
|
|
119
|
+
u && /* @__PURE__ */ s.jsx("span", { className: e.addonAfter, children: u }),
|
|
120
|
+
d && /* @__PURE__ */ s.jsx(
|
|
121
|
+
"span",
|
|
122
|
+
{
|
|
123
|
+
className: i(e.suffix, {
|
|
124
|
+
[e.suffixClickable]: R
|
|
125
|
+
}),
|
|
126
|
+
children: d
|
|
127
|
+
}
|
|
128
|
+
)
|
|
129
|
+
] })
|
|
130
|
+
]
|
|
131
|
+
}
|
|
132
|
+
),
|
|
133
|
+
x && /* @__PURE__ */ s.jsx(D, { ...x })
|
|
134
|
+
] });
|
|
135
|
+
}
|
|
136
|
+
);
|
|
137
|
+
te.displayName = "Input";
|
|
138
|
+
export {
|
|
139
|
+
te as default
|
|
140
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { j as o } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
+
import { c } from "../../index-BHf7G3IG.js";
|
|
3
|
+
import '../../Label.css';const r = "_label_4ixkm_2", i = "_light_4ixkm_2", l = {
|
|
4
|
+
label: r,
|
|
5
|
+
light: i
|
|
6
|
+
}, p = (s) => {
|
|
7
|
+
const { name: e, children: t, className: m, appearance: a } = s;
|
|
8
|
+
return /* @__PURE__ */ o.jsx(
|
|
9
|
+
"label",
|
|
10
|
+
{
|
|
11
|
+
"data-testid": "label",
|
|
12
|
+
htmlFor: e,
|
|
13
|
+
className: c(l.label, m, {
|
|
14
|
+
[l[`${a}`]]: a
|
|
15
|
+
}),
|
|
16
|
+
children: t
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
p as default
|
|
22
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { j as c } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
+
import { c as e } from "../../index-BHf7G3IG.js";
|
|
3
|
+
import '../../Loading.css';const t = "_layer_uipj5_2", o = "_light_uipj5_2", n = "_skChild_uipj5_2", u = "_dark_uipj5_2", j = "_darkFull_uipj5_2", d = "_skCircle_uipj5_2", a = "_skcircleBounceDelay_uipj5_1", p = "_skCircle2_uipj5_2", h = "_skCircle3_uipj5_2", m = "_skCircle4_uipj5_2", y = "_skCircle5_uipj5_2", x = "_skCircle6_uipj5_2", g = "_skCircle7_uipj5_2", f = "_skCircle8_uipj5_2", N = "_skCircle9_uipj5_2", $ = "_skCircle10_uipj5_2", v = "_skCircle11_uipj5_2", B = "_skCircle12_uipj5_2", s = {
|
|
4
|
+
layer: t,
|
|
5
|
+
light: o,
|
|
6
|
+
skChild: n,
|
|
7
|
+
dark: u,
|
|
8
|
+
darkFull: j,
|
|
9
|
+
skCircle: d,
|
|
10
|
+
skcircleBounceDelay: a,
|
|
11
|
+
skCircle2: p,
|
|
12
|
+
skCircle3: h,
|
|
13
|
+
skCircle4: m,
|
|
14
|
+
skCircle5: y,
|
|
15
|
+
skCircle6: x,
|
|
16
|
+
skCircle7: g,
|
|
17
|
+
skCircle8: f,
|
|
18
|
+
skCircle9: N,
|
|
19
|
+
skCircle10: $,
|
|
20
|
+
skCircle11: v,
|
|
21
|
+
skCircle12: B
|
|
22
|
+
}, b = ({
|
|
23
|
+
className: _,
|
|
24
|
+
appearance: i,
|
|
25
|
+
layer: k = !0,
|
|
26
|
+
wrapperClass: C
|
|
27
|
+
}) => {
|
|
28
|
+
const r = [];
|
|
29
|
+
for (let l = 1; l <= 12; l++)
|
|
30
|
+
r.push(
|
|
31
|
+
/* @__PURE__ */ c.jsx(
|
|
32
|
+
"div",
|
|
33
|
+
{
|
|
34
|
+
className: e(s.skChild, s[`skCircle${l}`])
|
|
35
|
+
},
|
|
36
|
+
`loading-${l}`
|
|
37
|
+
)
|
|
38
|
+
);
|
|
39
|
+
return /* @__PURE__ */ c.jsx(
|
|
40
|
+
"div",
|
|
41
|
+
{
|
|
42
|
+
"data-testid": "loading",
|
|
43
|
+
className: e(C, {
|
|
44
|
+
"block!": !i,
|
|
45
|
+
[s.layer]: k,
|
|
46
|
+
[s[`${i}`]]: i
|
|
47
|
+
}),
|
|
48
|
+
children: /* @__PURE__ */ c.jsx(
|
|
49
|
+
"div",
|
|
50
|
+
{
|
|
51
|
+
className: e(_, s.skCircle, {
|
|
52
|
+
[s[`${i}`]]: i
|
|
53
|
+
}),
|
|
54
|
+
children: r
|
|
55
|
+
}
|
|
56
|
+
)
|
|
57
|
+
}
|
|
58
|
+
);
|
|
59
|
+
};
|
|
60
|
+
export {
|
|
61
|
+
b as default
|
|
62
|
+
};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { j as e } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
+
import { useEffect as N } from "react";
|
|
3
|
+
import { c as s } from "../../index-BHf7G3IG.js";
|
|
4
|
+
import { Icons as b } from "../../assets/icons/icons.js";
|
|
5
|
+
import f from "../Icon/index.js";
|
|
6
|
+
import '../../Modal.css';const g = "_overlay_6ze30_2", z = "_modal_6ze30_2", C = "_content_6ze30_2", w = "_header_6ze30_2", k = "_close_6ze30_2", E = "_body_6ze30_2", S = "_desc_6ze30_2", F = "_modal__light_6ze30_2", o = {
|
|
7
|
+
overlay: g,
|
|
8
|
+
modal: z,
|
|
9
|
+
content: C,
|
|
10
|
+
header: w,
|
|
11
|
+
close: k,
|
|
12
|
+
body: E,
|
|
13
|
+
desc: S,
|
|
14
|
+
modal__light: F
|
|
15
|
+
}, H = (m) => {
|
|
16
|
+
const {
|
|
17
|
+
children: i,
|
|
18
|
+
header: a,
|
|
19
|
+
title: t,
|
|
20
|
+
description: d,
|
|
21
|
+
className: _,
|
|
22
|
+
onClose: h,
|
|
23
|
+
showClose: y = !0,
|
|
24
|
+
visible: c = !0,
|
|
25
|
+
appearance: l,
|
|
26
|
+
headerClass: v,
|
|
27
|
+
descriptionClass: x
|
|
28
|
+
} = m, p = () => {
|
|
29
|
+
document.body.style.width = "calc(100% - 15px)", document.body.className = "overflow-hidden";
|
|
30
|
+
}, j = () => {
|
|
31
|
+
document.body.className = "", document.body.removeAttribute("style");
|
|
32
|
+
}, n = () => {
|
|
33
|
+
h();
|
|
34
|
+
};
|
|
35
|
+
return N(() => {
|
|
36
|
+
const r = (u) => {
|
|
37
|
+
u.key === "Escape" && n();
|
|
38
|
+
};
|
|
39
|
+
return document.addEventListener("keydown", r), c && p(), () => {
|
|
40
|
+
j(), document.removeEventListener("keydown", r);
|
|
41
|
+
};
|
|
42
|
+
}, [c]), /* @__PURE__ */ e.jsx(e.Fragment, { children: c && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
43
|
+
/* @__PURE__ */ e.jsx(
|
|
44
|
+
"div",
|
|
45
|
+
{
|
|
46
|
+
"data-testid": "modal-overlay",
|
|
47
|
+
onClick: n,
|
|
48
|
+
className: o.overlay
|
|
49
|
+
}
|
|
50
|
+
),
|
|
51
|
+
/* @__PURE__ */ e.jsx(
|
|
52
|
+
"div",
|
|
53
|
+
{
|
|
54
|
+
className: s(o.modal, {
|
|
55
|
+
[o[`modal__${l}`]]: l
|
|
56
|
+
}),
|
|
57
|
+
"data-testid": "modal-container",
|
|
58
|
+
children: /* @__PURE__ */ e.jsxs("div", { className: s(_, o.content), children: [
|
|
59
|
+
t || a ? /* @__PURE__ */ e.jsxs("div", { className: s(o.header, v), children: [
|
|
60
|
+
t ? /* @__PURE__ */ e.jsx("h2", { children: t }) : a,
|
|
61
|
+
y && /* @__PURE__ */ e.jsx("span", { className: o.close, onClick: n, children: /* @__PURE__ */ e.jsx(f, { name: b.Close }) })
|
|
62
|
+
] }) : /* @__PURE__ */ e.jsx(e.Fragment, {}),
|
|
63
|
+
/* @__PURE__ */ e.jsxs("div", { className: o.body, children: [
|
|
64
|
+
d && /* @__PURE__ */ e.jsx("p", { className: s(o.desc, x), children: d }),
|
|
65
|
+
i
|
|
66
|
+
] })
|
|
67
|
+
] })
|
|
68
|
+
}
|
|
69
|
+
)
|
|
70
|
+
] }) });
|
|
71
|
+
};
|
|
72
|
+
export {
|
|
73
|
+
H as default
|
|
74
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { j as t } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
+
import m from "../Icon/index.js";
|
|
3
|
+
import x from "../InfoDate/InfoDate.js";
|
|
4
|
+
import u from "../PermaLink/PermaLink.js";
|
|
5
|
+
import _ from "../Tooltip/Tooltip.js";
|
|
6
|
+
import { Icons as h } from "../../assets/icons/icons.js";
|
|
7
|
+
import { c as j } from "../../index-BHf7G3IG.js";
|
|
8
|
+
import { u as f } from "../../useTranslation-CnCPcxVj.js";
|
|
9
|
+
import '../../index2.css';const v = "_wrapper_1bxdu_2", N = "_content_1bxdu_2", b = "_iconWrapper_1bxdu_2", G = "_titleGroup_1bxdu_2", w = "_title_1bxdu_2", C = "_textGroup_1bxdu_2", W = "_footer_1bxdu_2", e = {
|
|
10
|
+
wrapper: v,
|
|
11
|
+
content: N,
|
|
12
|
+
iconWrapper: b,
|
|
13
|
+
titleGroup: G,
|
|
14
|
+
title: w,
|
|
15
|
+
textGroup: C,
|
|
16
|
+
footer: W
|
|
17
|
+
}, E = (c) => {
|
|
18
|
+
const { t: s } = f(), {
|
|
19
|
+
id: o,
|
|
20
|
+
to: l,
|
|
21
|
+
title: r,
|
|
22
|
+
content: i,
|
|
23
|
+
icon: d,
|
|
24
|
+
iconClassName: p,
|
|
25
|
+
serviceCount: n = 0,
|
|
26
|
+
appCount: a = 0
|
|
27
|
+
} = c;
|
|
28
|
+
return /* @__PURE__ */ t.jsx(u, { to: l, children: /* @__PURE__ */ t.jsxs("div", { className: e.wrapper, "data-testid": "navigatorcard", children: [
|
|
29
|
+
/* @__PURE__ */ t.jsx("div", { className: j(e.iconWrapper, p), children: d || /* @__PURE__ */ t.jsx(m, { name: h.Projects }) }),
|
|
30
|
+
/* @__PURE__ */ t.jsxs("div", { className: e.content, children: [
|
|
31
|
+
/* @__PURE__ */ t.jsxs("div", { children: [
|
|
32
|
+
/* @__PURE__ */ t.jsx("div", { className: e.titleGroup, children: /* @__PURE__ */ t.jsx(
|
|
33
|
+
_,
|
|
34
|
+
{
|
|
35
|
+
id: `title-${o}`,
|
|
36
|
+
className: "width90",
|
|
37
|
+
tooltipContent: r,
|
|
38
|
+
ellipsis: !0,
|
|
39
|
+
children: /* @__PURE__ */ t.jsxs("h2", { className: e.title, children: [
|
|
40
|
+
" ",
|
|
41
|
+
r
|
|
42
|
+
] })
|
|
43
|
+
}
|
|
44
|
+
) }),
|
|
45
|
+
/* @__PURE__ */ t.jsxs("div", { className: e.textGroup, hidden: !i, children: [
|
|
46
|
+
/* @__PURE__ */ t.jsx("span", { children: s("label.date_created") }),
|
|
47
|
+
/* @__PURE__ */ t.jsx(x, { date: i })
|
|
48
|
+
] })
|
|
49
|
+
] }),
|
|
50
|
+
/* @__PURE__ */ t.jsxs("div", { className: e.footer, children: [
|
|
51
|
+
/* @__PURE__ */ t.jsx("span", { hidden: !n, children: s("title.services") + " (" + n + ")" }),
|
|
52
|
+
/* @__PURE__ */ t.jsx("span", { hidden: !a, children: s("title.applications") + " (" + a + ")" })
|
|
53
|
+
] })
|
|
54
|
+
] })
|
|
55
|
+
] }) }, `link-${o}`);
|
|
56
|
+
};
|
|
57
|
+
export {
|
|
58
|
+
E as default
|
|
59
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { j as t } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
+
import { u as e } from "../../useTranslation-CnCPcxVj.js";
|
|
3
|
+
import '../../NoResult.css';const r = "_noResult_udr5k_2", u = {
|
|
4
|
+
noResult: r
|
|
5
|
+
};
|
|
6
|
+
function i({ text: s }) {
|
|
7
|
+
const { t: n } = e(), o = s || n("text.no_results");
|
|
8
|
+
return /* @__PURE__ */ t.jsx("div", { "data-testid": "noresult", className: u.noResult, children: /* @__PURE__ */ t.jsx("span", { children: o }) });
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
i as default
|
|
12
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { j as a } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
+
import { t as c } from "../../react-toastify.esm-BUWNP7Nm.js";
|
|
3
|
+
import i from "../Icon/index.js";
|
|
4
|
+
import { Icons as o } from "../../assets/icons/icons.js";
|
|
5
|
+
const u = (t) => {
|
|
6
|
+
const { message: e, type: s, closeTime: r = 5e3 } = t, n = {
|
|
7
|
+
success: o.Check,
|
|
8
|
+
warning: o.Warning,
|
|
9
|
+
error: o.Close
|
|
10
|
+
};
|
|
11
|
+
c[s](e, {
|
|
12
|
+
toastId: e,
|
|
13
|
+
position: "top-center",
|
|
14
|
+
autoClose: r,
|
|
15
|
+
theme: "dark",
|
|
16
|
+
closeButton: !1,
|
|
17
|
+
hideProgressBar: !0,
|
|
18
|
+
closeOnClick: !0,
|
|
19
|
+
pauseOnHover: !1,
|
|
20
|
+
draggable: !1,
|
|
21
|
+
icon: /* @__PURE__ */ a.jsx(i, { name: n[s] })
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
export {
|
|
25
|
+
u as Notification
|
|
26
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { j as e } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
+
import m from "../PermaLink/PermaLink.js";
|
|
3
|
+
import { c as u } from "../../index-BHf7G3IG.js";
|
|
4
|
+
import { u as p } from "../../useTranslation-CnCPcxVj.js";
|
|
5
|
+
import '../../PageWrap.css';const x = "_breadcrumb_mkbfo_2", h = "_breadcrumbItem_mkbfo_2", j = "_pageContent_mkbfo_2", r = {
|
|
6
|
+
breadcrumb: x,
|
|
7
|
+
breadcrumbItem: h,
|
|
8
|
+
pageContent: j
|
|
9
|
+
}, v = (s) => {
|
|
10
|
+
const { children: c, breadcrumbs: d, className: b, defaultRoute: o = "/" } = s, { t: i } = p();
|
|
11
|
+
return /* @__PURE__ */ e.jsxs(
|
|
12
|
+
"div",
|
|
13
|
+
{
|
|
14
|
+
className: u(r.pageWrapper, b),
|
|
15
|
+
"data-testid": "pagewrapper-container",
|
|
16
|
+
children: [
|
|
17
|
+
/* @__PURE__ */ e.jsxs("div", { className: r.breadcrumb, children: [
|
|
18
|
+
/* @__PURE__ */ e.jsx(
|
|
19
|
+
"div",
|
|
20
|
+
{
|
|
21
|
+
"data-testid": "breadcrumb-item",
|
|
22
|
+
className: r.breadcrumbItem,
|
|
23
|
+
children: /* @__PURE__ */ e.jsx(m, { to: o, children: i("title.home") })
|
|
24
|
+
},
|
|
25
|
+
"breadcrumb-item-home"
|
|
26
|
+
),
|
|
27
|
+
d.map(
|
|
28
|
+
({ name: a, route: t, state: n }, l) => /* @__PURE__ */ e.jsx(
|
|
29
|
+
"div",
|
|
30
|
+
{
|
|
31
|
+
"data-testid": "breadcrumb-item",
|
|
32
|
+
className: r.breadcrumbItem,
|
|
33
|
+
children: t ? /* @__PURE__ */ e.jsx(m, { to: t, state: n, children: a }) : /* @__PURE__ */ e.jsx("a", { children: a })
|
|
34
|
+
},
|
|
35
|
+
`breadcrumb-item-${l}`
|
|
36
|
+
)
|
|
37
|
+
)
|
|
38
|
+
] }),
|
|
39
|
+
/* @__PURE__ */ e.jsx("div", { className: r.pageContent, children: c })
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
};
|
|
44
|
+
export {
|
|
45
|
+
v as default
|
|
46
|
+
};
|