@cagatayfdn/flora-components 0.0.72 → 0.0.75
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-bCNvwTRa.js +32 -0
- package/dist/Heading.css +1 -0
- package/dist/InfoBoxList.css +1 -0
- package/dist/InfoBoxList.module-C6t2KDOB.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-BGZHvTKI.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-DcLZCXNo.js +1831 -0
- package/dist/Select.css +1 -0
- package/dist/Select.module-BVWgPUEN.js +20 -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/TableHeader-B91BXue0.js +159 -0
- package/dist/TableHeader.css +1 -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 +62 -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 +57 -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 +119 -0
- package/dist/components/Config/Config.js +32 -0
- package/dist/components/Confirm/Confirm.js +52 -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 +26 -0
- package/dist/components/Dropdown/DropdownList.js +90 -0
- package/dist/components/ErrorLogModal/ErrorLogModal.js +63 -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/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 +57 -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 +69 -0
- package/dist/components/PermaLink/PermaLink.js +34 -0
- package/dist/components/Radio/Radio.js +96 -0
- package/dist/components/ResultError/ResultError.js +20 -0
- package/dist/components/ScrollContainer/ScrollContainer.js +21 -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/StatusTypography/StatusTypography.js +51 -0
- package/dist/components/Stepper/Stepper.js +72 -0
- package/dist/components/Switch/Switch.js +79 -0
- package/dist/components/Tab/Tab.js +28 -0
- package/dist/components/Table/Table.js +201 -0
- package/dist/components/Table/TableHeader.js +14 -0
- package/dist/components/Textarea/Textarea.js +95 -0
- package/dist/components/Tooltip/Tooltip.js +1548 -0
- package/dist/components/TypographyText/TypographyText.js +87 -0
- package/dist/components/ValidationError/ValidationError.js +7 -0
- package/dist/components/index.js +125 -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 +27 -0
- package/dist/enums/isActiveColor.js +4 -0
- package/dist/enums/size.js +4 -0
- package/dist/enums/status.js +9 -0
- package/dist/equals-PL9KqVQf.js +119 -0
- package/dist/flatpickr-CRz1AV0e.js +59 -0
- package/dist/hooks/index.js +9 -0
- package/dist/hooks/useAauth.js +40 -0
- package/dist/hooks/useDisclosure.js +14 -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-BHf7G3IG.js +35 -0
- package/dist/index-BJU1K2Aw.js +8003 -0
- package/dist/index-C9yacAGx.js +359 -0
- package/dist/index-CB61CB0b.js +669 -0
- package/dist/index-H7XbDVmH.js +320 -0
- package/dist/index-a0GSBrWt.js +364 -0
- package/dist/index.css +1 -0
- package/dist/index.d.mts +1351 -0
- package/dist/index.js +181 -0
- package/dist/jsx-runtime-BcAkpsdy.js +631 -0
- package/dist/keys-B0bo5Q7o.js +67 -0
- package/dist/locales/en/index.js +613 -0
- package/dist/locales/i18n.js +1417 -0
- package/dist/locales/index.js +5 -0
- package/dist/locales/tr/index.js +613 -0
- package/dist/prodivers.css +6 -0
- package/dist/prodivers.js +12 -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 +1463 -0
- package/dist/utils/index.js +21 -0
- package/dist/utils/language.js +46 -0
- package/dist/utils/validation.js +27 -0
- package/dist/utils/yup.js +2921 -0
- package/package.json +11 -8
- package/dist/index.cjs.js +0 -295
- package/dist/index.cjs.js.map +0 -1
- package/dist/index.es.js +0 -25081
- package/dist/index.es.js.map +0 -1
- package/dist/index.umd.js +0 -295
- package/dist/index.umd.js.map +0 -1
- package/dist/style.css +0 -1
|
@@ -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-C6t2KDOB.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_19cyh_1", u = "_time_19cyh_13", a = {
|
|
4
|
+
infoDateWrapper: D,
|
|
5
|
+
time: u
|
|
6
|
+
}, x = (m) => {
|
|
7
|
+
const { date: r, time: f = !1, fromNow: i = !1 } = m, c = ((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, _), p = 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: c }),
|
|
14
|
+
f && /* @__PURE__ */ t.jsx("span", { className: a.time, children: p })
|
|
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_1y9iv_1", f = "_infoIcon_1y9iv_11", 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 t } 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_12ffn_1", B = "_container_12ffn_10", H = "_fieldWrap_12ffn_10", J = "_control_12ffn_16", K = "_light_12ffn_37", M = "_disabled_12ffn_46", O = "_more_dark_12ffn_49", Q = "_radius_12ffn_52", U = "_suffix_12ffn_60", X = "_error_12ffn_63", Y = "_suffixWrap_12ffn_70", Z = "_prefixWrap_12ffn_70", ee = "_prefix_12ffn_70", re = "_suffixClickable_12ffn_87", se = "_inputGroup_12ffn_104", ae = "_addonAfter_12ffn_115", 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
|
+
}, ne = N.forwardRef(
|
|
24
|
+
(g, j) => {
|
|
25
|
+
const {
|
|
26
|
+
name: b,
|
|
27
|
+
label: h,
|
|
28
|
+
id: k,
|
|
29
|
+
type: a = "text",
|
|
30
|
+
prefix: f,
|
|
31
|
+
suffix: l,
|
|
32
|
+
size: C,
|
|
33
|
+
maxLength: i,
|
|
34
|
+
isDisabled: c,
|
|
35
|
+
error: d,
|
|
36
|
+
appearance: u,
|
|
37
|
+
className: v,
|
|
38
|
+
wrapperClassName: y,
|
|
39
|
+
fieldWrapClassName: A,
|
|
40
|
+
addonAfter: p,
|
|
41
|
+
value: n = "",
|
|
42
|
+
onChange: W,
|
|
43
|
+
required: G,
|
|
44
|
+
isRadius: $,
|
|
45
|
+
textFillColor: F,
|
|
46
|
+
suffixClickable: R,
|
|
47
|
+
isFormGroup: S = !0,
|
|
48
|
+
...T
|
|
49
|
+
} = g, [_, x] = L(n), m = (r) => {
|
|
50
|
+
var o;
|
|
51
|
+
return (o = r == null ? void 0 : r.toString()) == null ? void 0 : o.slice(0, i);
|
|
52
|
+
}, w = N.useCallback(
|
|
53
|
+
(r) => {
|
|
54
|
+
x(m(r.currentTarget.value)), W && W(r, m(r.currentTarget.value));
|
|
55
|
+
},
|
|
56
|
+
[i, x]
|
|
57
|
+
), E = (r, o) => {
|
|
58
|
+
o == "number" && r.currentTarget.blur();
|
|
59
|
+
};
|
|
60
|
+
V(() => {
|
|
61
|
+
n != null && x(m(n));
|
|
62
|
+
}, [n]);
|
|
63
|
+
const z = {
|
|
64
|
+
[e[`type__${a}`]]: a !== "text"
|
|
65
|
+
}, I = t(
|
|
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: t(e.container, {
|
|
79
|
+
[e[`${u}`]]: u,
|
|
80
|
+
[e.radius]: $,
|
|
81
|
+
[e.inputGroup]: p,
|
|
82
|
+
[e.error]: d,
|
|
83
|
+
[e.disabled]: c,
|
|
84
|
+
[e.suffixWrap]: l,
|
|
85
|
+
[e.prefixWrap]: f
|
|
86
|
+
}),
|
|
87
|
+
children: [
|
|
88
|
+
/* @__PURE__ */ s.jsxs("div", { className: e.counter, children: [
|
|
89
|
+
h && /* @__PURE__ */ s.jsxs(q, { appearance: u, name: b, children: [
|
|
90
|
+
h,
|
|
91
|
+
" ",
|
|
92
|
+
G && "*"
|
|
93
|
+
] }),
|
|
94
|
+
i && /* @__PURE__ */ s.jsxs("span", { children: [
|
|
95
|
+
_ ? _.toString().length : 0,
|
|
96
|
+
"/",
|
|
97
|
+
i
|
|
98
|
+
] })
|
|
99
|
+
] }),
|
|
100
|
+
/* @__PURE__ */ s.jsxs("div", { className: t(e.fieldWrap, A), children: [
|
|
101
|
+
f && /* @__PURE__ */ s.jsx("span", { className: e.prefix, children: f }),
|
|
102
|
+
/* @__PURE__ */ s.jsx(
|
|
103
|
+
"input",
|
|
104
|
+
{
|
|
105
|
+
type: a,
|
|
106
|
+
name: b,
|
|
107
|
+
id: k,
|
|
108
|
+
value: _,
|
|
109
|
+
"data-testid": `input-${a}`,
|
|
110
|
+
className: t(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
|
+
p && /* @__PURE__ */ s.jsx("span", { className: e.addonAfter, children: p }),
|
|
120
|
+
l && /* @__PURE__ */ s.jsx(
|
|
121
|
+
"span",
|
|
122
|
+
{
|
|
123
|
+
className: t(e.suffix, {
|
|
124
|
+
[e.suffixClickable]: R
|
|
125
|
+
}),
|
|
126
|
+
children: l
|
|
127
|
+
}
|
|
128
|
+
)
|
|
129
|
+
] })
|
|
130
|
+
]
|
|
131
|
+
}
|
|
132
|
+
),
|
|
133
|
+
d && /* @__PURE__ */ s.jsx(D, { ...d })
|
|
134
|
+
] });
|
|
135
|
+
}
|
|
136
|
+
);
|
|
137
|
+
ne.displayName = "Input";
|
|
138
|
+
export {
|
|
139
|
+
ne as default
|
|
140
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { j as c } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
+
import { c as r } from "../../index-BHf7G3IG.js";
|
|
3
|
+
import '../../Label.css';const m = "_label_vjkb7_1", n = "_light_vjkb7_8", l = {
|
|
4
|
+
label: m,
|
|
5
|
+
light: n
|
|
6
|
+
}, p = (s) => {
|
|
7
|
+
const { name: e, children: t, className: o, appearance: a } = s;
|
|
8
|
+
return /* @__PURE__ */ c.jsx(
|
|
9
|
+
"label",
|
|
10
|
+
{
|
|
11
|
+
"data-testid": "label",
|
|
12
|
+
htmlFor: e,
|
|
13
|
+
className: r(l.label, o, {
|
|
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 i } from "../../index-BHf7G3IG.js";
|
|
3
|
+
import '../../Loading.css';const t = "_layer_118em_1", o = "_light_118em_12", n = "_skChild_118em_16", m = "_dark_118em_23", d = "_darkFull_118em_23", a = "_skCircle_118em_38", u = "_skcircleBounceDelay_118em_1", h = "_skCircle2_118em_61", y = "_skCircle3_118em_70", x = "_skCircle4_118em_79", g = "_skCircle5_118em_88", j = "_skCircle6_118em_97", f = "_skCircle7_118em_106", N = "_skCircle8_118em_115", $ = "_skCircle9_118em_124", v = "_skCircle10_118em_133", B = "_skCircle11_118em_142", D = "_skCircle12_118em_151", s = {
|
|
4
|
+
layer: t,
|
|
5
|
+
light: o,
|
|
6
|
+
skChild: n,
|
|
7
|
+
dark: m,
|
|
8
|
+
darkFull: d,
|
|
9
|
+
skCircle: a,
|
|
10
|
+
skcircleBounceDelay: u,
|
|
11
|
+
skCircle2: h,
|
|
12
|
+
skCircle3: y,
|
|
13
|
+
skCircle4: x,
|
|
14
|
+
skCircle5: g,
|
|
15
|
+
skCircle6: j,
|
|
16
|
+
skCircle7: f,
|
|
17
|
+
skCircle8: N,
|
|
18
|
+
skCircle9: $,
|
|
19
|
+
skCircle10: v,
|
|
20
|
+
skCircle11: B,
|
|
21
|
+
skCircle12: D
|
|
22
|
+
}, E = ({
|
|
23
|
+
className: _,
|
|
24
|
+
appearance: e,
|
|
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: i(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: i(C, {
|
|
44
|
+
"d-inline-block": !e,
|
|
45
|
+
[s.layer]: k,
|
|
46
|
+
[s[`${e}`]]: e
|
|
47
|
+
}),
|
|
48
|
+
children: /* @__PURE__ */ c.jsx(
|
|
49
|
+
"div",
|
|
50
|
+
{
|
|
51
|
+
className: i(_, s.skCircle, {
|
|
52
|
+
[s[`${e}`]]: e
|
|
53
|
+
}),
|
|
54
|
+
children: r
|
|
55
|
+
}
|
|
56
|
+
)
|
|
57
|
+
}
|
|
58
|
+
);
|
|
59
|
+
};
|
|
60
|
+
export {
|
|
61
|
+
E as default
|
|
62
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { j as e } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
+
import { useEffect as x } from "react";
|
|
3
|
+
import { c as s } from "../../index-BHf7G3IG.js";
|
|
4
|
+
import { Icons as u } from "../../assets/icons/icons.js";
|
|
5
|
+
import N from "../Icon/index.js";
|
|
6
|
+
import '../../Modal.css';const b = "_modal_1jora_1", f = "_content_1jora_16", v = "_header_1jora_26", g = "_close_1jora_46", C = "_body_1jora_53", S = "_desc_1jora_57", w = "_modal__light_1jora_61", o = {
|
|
7
|
+
modal: b,
|
|
8
|
+
content: f,
|
|
9
|
+
header: v,
|
|
10
|
+
close: g,
|
|
11
|
+
body: C,
|
|
12
|
+
desc: S,
|
|
13
|
+
modal__light: w
|
|
14
|
+
}, A = (n) => {
|
|
15
|
+
const {
|
|
16
|
+
children: r,
|
|
17
|
+
header: a,
|
|
18
|
+
title: c,
|
|
19
|
+
description: l,
|
|
20
|
+
className: m,
|
|
21
|
+
onClose: i,
|
|
22
|
+
visible: t = !0,
|
|
23
|
+
appearance: d,
|
|
24
|
+
headerClass: _,
|
|
25
|
+
descriptionClass: h
|
|
26
|
+
} = n, j = () => {
|
|
27
|
+
document.body.style.width = "calc(100% - 15px)", document.body.className = "overflow-hidden";
|
|
28
|
+
}, y = () => {
|
|
29
|
+
document.body.className = "", document.body.removeAttribute("style");
|
|
30
|
+
}, p = () => {
|
|
31
|
+
i();
|
|
32
|
+
};
|
|
33
|
+
return x(() => (t && j(), () => {
|
|
34
|
+
y();
|
|
35
|
+
}), [t]), /* @__PURE__ */ e.jsx(e.Fragment, { children: t && /* @__PURE__ */ e.jsx(
|
|
36
|
+
"div",
|
|
37
|
+
{
|
|
38
|
+
className: s(o.modal, {
|
|
39
|
+
[o[`modal__${d}`]]: d
|
|
40
|
+
}),
|
|
41
|
+
"data-testid": "modal-container",
|
|
42
|
+
children: /* @__PURE__ */ e.jsxs("div", { className: s(m, o.content), children: [
|
|
43
|
+
c || a ? /* @__PURE__ */ e.jsxs("div", { className: s(o.header, _), children: [
|
|
44
|
+
c ? /* @__PURE__ */ e.jsx("h2", { children: c }) : a,
|
|
45
|
+
/* @__PURE__ */ e.jsx("span", { className: o.close, onClick: p, children: /* @__PURE__ */ e.jsx(N, { name: u.Close }) })
|
|
46
|
+
] }) : /* @__PURE__ */ e.jsx(e.Fragment, {}),
|
|
47
|
+
/* @__PURE__ */ e.jsxs("div", { className: o.body, children: [
|
|
48
|
+
l && /* @__PURE__ */ e.jsx("p", { className: s(o.desc, h), children: l }),
|
|
49
|
+
r
|
|
50
|
+
] })
|
|
51
|
+
] })
|
|
52
|
+
}
|
|
53
|
+
) });
|
|
54
|
+
};
|
|
55
|
+
export {
|
|
56
|
+
A as default
|
|
57
|
+
};
|
|
@@ -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 _ from "../PermaLink/PermaLink.js";
|
|
5
|
+
import h from "../Tooltip/Tooltip.js";
|
|
6
|
+
import { Icons as j } from "../../assets/icons/icons.js";
|
|
7
|
+
import { c as v } from "../../index-BHf7G3IG.js";
|
|
8
|
+
import { u } from "../../useTranslation-CnCPcxVj.js";
|
|
9
|
+
import '../../index.css';const f = "_wrapper_14erv_1", N = "_content_14erv_11", G = "_iconWrapper_14erv_19", w = "_titleGroup_14erv_30", C = "_title_14erv_30", W = "_textGroup_14erv_46", I = "_footer_14erv_51", e = {
|
|
10
|
+
wrapper: f,
|
|
11
|
+
content: N,
|
|
12
|
+
iconWrapper: G,
|
|
13
|
+
titleGroup: w,
|
|
14
|
+
title: C,
|
|
15
|
+
textGroup: W,
|
|
16
|
+
footer: I
|
|
17
|
+
}, E = (c) => {
|
|
18
|
+
const { t: r } = u(), {
|
|
19
|
+
id: s,
|
|
20
|
+
to: l,
|
|
21
|
+
title: o,
|
|
22
|
+
content: i,
|
|
23
|
+
icon: p,
|
|
24
|
+
iconClassName: d,
|
|
25
|
+
serviceCount: n = 0,
|
|
26
|
+
appCount: a = 0
|
|
27
|
+
} = c;
|
|
28
|
+
return /* @__PURE__ */ t.jsx(_, { to: l, children: /* @__PURE__ */ t.jsxs("div", { className: e.wrapper, "data-testid": "navigatorcard", children: [
|
|
29
|
+
/* @__PURE__ */ t.jsx("div", { className: v(e.iconWrapper, d), children: p || /* @__PURE__ */ t.jsx(m, { name: j.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
|
+
h,
|
|
34
|
+
{
|
|
35
|
+
id: `title-${s}`,
|
|
36
|
+
className: "width90",
|
|
37
|
+
tooltipContent: o,
|
|
38
|
+
ellipsis: !0,
|
|
39
|
+
children: /* @__PURE__ */ t.jsxs("h2", { className: e.title, children: [
|
|
40
|
+
" ",
|
|
41
|
+
o
|
|
42
|
+
] })
|
|
43
|
+
}
|
|
44
|
+
) }),
|
|
45
|
+
/* @__PURE__ */ t.jsxs("div", { className: e.textGroup, hidden: !i, children: [
|
|
46
|
+
/* @__PURE__ */ t.jsx("span", { children: r("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: r("title.services") + " (" + n + ")" }),
|
|
52
|
+
/* @__PURE__ */ t.jsx("span", { hidden: !a, children: r("title.applications") + " (" + a + ")" })
|
|
53
|
+
] })
|
|
54
|
+
] })
|
|
55
|
+
] }) }, `link-${s}`);
|
|
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 o } from "../../useTranslation-CnCPcxVj.js";
|
|
3
|
+
import '../../NoResult.css';const l = "_noResult_19yve_1", r = {
|
|
4
|
+
noResult: l
|
|
5
|
+
};
|
|
6
|
+
function i({ text: s }) {
|
|
7
|
+
const { t: e } = o(), n = s || e("text.no_results");
|
|
8
|
+
return /* @__PURE__ */ t.jsx("div", { "data-testid": "noresult", className: r.noResult, children: /* @__PURE__ */ t.jsx("span", { children: n }) });
|
|
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 s 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_rb55l_1", h = "_breadcrumbItem_rb55l_9", j = "_pageContent_rb55l_29", r = {
|
|
6
|
+
breadcrumb: x,
|
|
7
|
+
breadcrumbItem: h,
|
|
8
|
+
pageContent: j
|
|
9
|
+
}, v = (m) => {
|
|
10
|
+
const { children: c, breadcrumbs: d, className: b, defaultRoute: i = "/" } = m, { t: n } = 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(s, { to: i, children: n("title.home") })
|
|
24
|
+
},
|
|
25
|
+
"breadcrumb-item-home"
|
|
26
|
+
),
|
|
27
|
+
d.map(
|
|
28
|
+
({ name: a, route: t, state: o }, l) => /* @__PURE__ */ e.jsx(
|
|
29
|
+
"div",
|
|
30
|
+
{
|
|
31
|
+
"data-testid": "breadcrumb-item",
|
|
32
|
+
className: r.breadcrumbItem,
|
|
33
|
+
children: t ? /* @__PURE__ */ e.jsx(s, { to: t, state: o, 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
|
+
};
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { j as a } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
+
import { useState as F, useEffect as m } from "react";
|
|
3
|
+
import { c as l } from "../../index-BHf7G3IG.js";
|
|
4
|
+
import { Icons as _ } from "../../assets/icons/icons.js";
|
|
5
|
+
import { ThemeAppearance as I } from "../../enums/appearance.js";
|
|
6
|
+
import f from "../Icon/index.js";
|
|
7
|
+
import '../../Pager.css';const D = "_wrap_necrs_1", H = "_pager_necrs_1", L = "_disabled_necrs_20", R = "_inputField_necrs_36", S = "_totalPage_necrs_58", E = "_currentPage_necrs_66", V = "_dark_necrs_74", t = {
|
|
8
|
+
wrap: D,
|
|
9
|
+
pager: H,
|
|
10
|
+
disabled: L,
|
|
11
|
+
inputField: R,
|
|
12
|
+
totalPage: S,
|
|
13
|
+
currentPage: E,
|
|
14
|
+
dark: V
|
|
15
|
+
}, B = (x) => {
|
|
16
|
+
const {
|
|
17
|
+
currentPage: n = 1,
|
|
18
|
+
reset: h,
|
|
19
|
+
totalCount: N,
|
|
20
|
+
onChange: p,
|
|
21
|
+
className: P,
|
|
22
|
+
showInput: d = !0,
|
|
23
|
+
pageSize: v = 10,
|
|
24
|
+
appearance: g = I.LIGHT
|
|
25
|
+
} = x, [s, u] = F(n), r = Math.ceil(N / v), c = r >= 10, b = s === r, j = s === 1, o = (e) => {
|
|
26
|
+
u(e), p && p(e);
|
|
27
|
+
}, C = () => {
|
|
28
|
+
s > 1 && o(s - 1);
|
|
29
|
+
}, k = () => {
|
|
30
|
+
r > s && o(s + 1);
|
|
31
|
+
}, T = (e) => {
|
|
32
|
+
const w = e.target.value.slice(0, 1), i = Number(c ? e.target.value : w);
|
|
33
|
+
setTimeout(() => {
|
|
34
|
+
r >= i && i > 0 ? o(i) : i <= 0 ? o(1) : o(r), c || e.target.select();
|
|
35
|
+
}, 300);
|
|
36
|
+
};
|
|
37
|
+
return m(() => {
|
|
38
|
+
u(n);
|
|
39
|
+
}, [n]), m(() => {
|
|
40
|
+
u(1);
|
|
41
|
+
}, [h]), /* @__PURE__ */ a.jsx(
|
|
42
|
+
"div",
|
|
43
|
+
{
|
|
44
|
+
"data-testid": "pager-container",
|
|
45
|
+
className: l(t.wrap, P, {
|
|
46
|
+
[t[g]]: g
|
|
47
|
+
}),
|
|
48
|
+
children: /* @__PURE__ */ a.jsxs("div", { className: t.pager, children: [
|
|
49
|
+
/* @__PURE__ */ a.jsx(
|
|
50
|
+
"a",
|
|
51
|
+
{
|
|
52
|
+
"data-testid": "pager-prev",
|
|
53
|
+
className: l(t.prev, {
|
|
54
|
+
[t.disabled]: j
|
|
55
|
+
}),
|
|
56
|
+
onClick: C,
|
|
57
|
+
children: /* @__PURE__ */ a.jsx(f, { name: _.ChevronLeft })
|
|
58
|
+
}
|
|
59
|
+
),
|
|
60
|
+
d && /* @__PURE__ */ a.jsx(
|
|
61
|
+
"input",
|
|
62
|
+
{
|
|
63
|
+
name: "pageNumber",
|
|
64
|
+
"data-testid": "pager-input",
|
|
65
|
+
className: t.inputField,
|
|
66
|
+
maxLength: r <= 9 ? 1 : void 0,
|
|
67
|
+
value: s,
|
|
68
|
+
onFocus: (e) => {
|
|
69
|
+
c || e.currentTarget.select();
|
|
70
|
+
},
|
|
71
|
+
onClick: (e) => {
|
|
72
|
+
c || (e.currentTarget.setSelectionRange(0, 0), e.currentTarget.select());
|
|
73
|
+
},
|
|
74
|
+
onChange: (e) => {
|
|
75
|
+
c || (e.target.autofocus = !0), T(e);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
),
|
|
79
|
+
/* @__PURE__ */ a.jsxs("span", { className: l(t.totalPage, {
|
|
80
|
+
[t.currentPage]: !d
|
|
81
|
+
}), children: [
|
|
82
|
+
!d && /* @__PURE__ */ a.jsx("span", { className: t.currentPage, children: n > 1 ? n : s }),
|
|
83
|
+
"/",
|
|
84
|
+
r === 0 ? 1 : r
|
|
85
|
+
] }),
|
|
86
|
+
/* @__PURE__ */ a.jsx(
|
|
87
|
+
"a",
|
|
88
|
+
{
|
|
89
|
+
className: l(t.next, {
|
|
90
|
+
[t.disabled]: b
|
|
91
|
+
}),
|
|
92
|
+
onClick: k,
|
|
93
|
+
"data-testid": "pager-next",
|
|
94
|
+
children: /* @__PURE__ */ a.jsx(f, { name: _.ChevronRight })
|
|
95
|
+
}
|
|
96
|
+
)
|
|
97
|
+
] })
|
|
98
|
+
}
|
|
99
|
+
);
|
|
100
|
+
};
|
|
101
|
+
export {
|
|
102
|
+
B as default
|
|
103
|
+
};
|