@cagatayfdn/flora-components 0.0.71 → 0.0.73
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.ts +2 -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 +8 -2
- package/dist/index.cjs.js +0 -295
- package/dist/index.cjs.js.map +0 -1
- package/dist/index.es.js +0 -25008
- 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,69 @@
|
|
|
1
|
+
import { j as e } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
+
import { c as a } from "../../index-BHf7G3IG.js";
|
|
3
|
+
import { ThemeAppearance as f } from "../../enums/appearance.js";
|
|
4
|
+
import '../../Panel.css';const p = "_box_us2fa_1", u = "_header_us2fa_8", h = "_hasBorder_us2fa_28", j = "_body_us2fa_31", b = "_noHeaders_us2fa_35", N = "_description_us2fa_39", y = "_dark_us2fa_43", v = "_line_us2fa_55", s = {
|
|
5
|
+
box: p,
|
|
6
|
+
header: u,
|
|
7
|
+
hasBorder: h,
|
|
8
|
+
body: j,
|
|
9
|
+
noHeaders: b,
|
|
10
|
+
description: N,
|
|
11
|
+
dark: y,
|
|
12
|
+
line: v
|
|
13
|
+
}, A = ({
|
|
14
|
+
title: n,
|
|
15
|
+
children: i,
|
|
16
|
+
description: r,
|
|
17
|
+
className: _,
|
|
18
|
+
type: d = "box",
|
|
19
|
+
appearance: c = f.DARK,
|
|
20
|
+
headerDescription: t,
|
|
21
|
+
headerRightChild: o,
|
|
22
|
+
headerClass: l,
|
|
23
|
+
hasBorder: m,
|
|
24
|
+
bodyClass: x
|
|
25
|
+
}) => /* @__PURE__ */ e.jsxs(
|
|
26
|
+
"div",
|
|
27
|
+
{
|
|
28
|
+
"data-testid": "panel-container",
|
|
29
|
+
className: a(_, s.container, {
|
|
30
|
+
[s[`${c}`]]: c,
|
|
31
|
+
[s[`${d}`]]: d
|
|
32
|
+
}),
|
|
33
|
+
children: [
|
|
34
|
+
n && /* @__PURE__ */ e.jsxs(
|
|
35
|
+
"div",
|
|
36
|
+
{
|
|
37
|
+
"data-testid": "panel-header",
|
|
38
|
+
className: a(s.header, l, {
|
|
39
|
+
"d-flex": o,
|
|
40
|
+
"justify-content-between": o,
|
|
41
|
+
[s.hasBorder]: m
|
|
42
|
+
}),
|
|
43
|
+
children: [
|
|
44
|
+
/* @__PURE__ */ e.jsxs("div", { children: [
|
|
45
|
+
/* @__PURE__ */ e.jsx("h1", { children: n }),
|
|
46
|
+
t && /* @__PURE__ */ e.jsx("p", { className: a("m-0", s.description), children: t })
|
|
47
|
+
] }),
|
|
48
|
+
o
|
|
49
|
+
]
|
|
50
|
+
}
|
|
51
|
+
),
|
|
52
|
+
/* @__PURE__ */ e.jsxs(
|
|
53
|
+
"div",
|
|
54
|
+
{
|
|
55
|
+
className: a(x, s.body, {
|
|
56
|
+
[s.noHeaders]: !n
|
|
57
|
+
}),
|
|
58
|
+
children: [
|
|
59
|
+
r && /* @__PURE__ */ e.jsx("p", { "data-testid": "panel-description", className: s.description, children: r }),
|
|
60
|
+
i
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
)
|
|
64
|
+
]
|
|
65
|
+
}
|
|
66
|
+
);
|
|
67
|
+
export {
|
|
68
|
+
A as default
|
|
69
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { j as l } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
+
import { N as x } from "../../index-C9yacAGx.js";
|
|
3
|
+
import { g as c } from "../../index-a0GSBrWt.js";
|
|
4
|
+
const v = ({
|
|
5
|
+
to: o,
|
|
6
|
+
params: i,
|
|
7
|
+
children: m,
|
|
8
|
+
className: r,
|
|
9
|
+
activeClassName: s,
|
|
10
|
+
style: p,
|
|
11
|
+
onClick: a,
|
|
12
|
+
state: e,
|
|
13
|
+
isDisabled: f
|
|
14
|
+
}) => {
|
|
15
|
+
const n = c(o, i), u = (t) => {
|
|
16
|
+
if (f)
|
|
17
|
+
return t.preventDefault();
|
|
18
|
+
a && a();
|
|
19
|
+
};
|
|
20
|
+
return /* @__PURE__ */ l.jsx(
|
|
21
|
+
x,
|
|
22
|
+
{
|
|
23
|
+
to: e ? { pathname: n } : n,
|
|
24
|
+
style: p,
|
|
25
|
+
state: e,
|
|
26
|
+
className: ({ isActive: t }) => t ? `${r} ${s}` : r,
|
|
27
|
+
onClick: u,
|
|
28
|
+
children: m
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
};
|
|
32
|
+
export {
|
|
33
|
+
v as default
|
|
34
|
+
};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { j as a } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
+
import { c as k } from "../../index-BHf7G3IG.js";
|
|
3
|
+
import x from "../Label/Label.js";
|
|
4
|
+
import u from "../ValidationError/ValidationError.js";
|
|
5
|
+
import '../../Radio.css';const f = "_container_16kjn_1", N = "_checkmark_16kjn_9", b = "_inline_16kjn_12", v = "_disabled_16kjn_20", g = "_text_16kjn_44", e = {
|
|
6
|
+
container: f,
|
|
7
|
+
checkmark: N,
|
|
8
|
+
inline: b,
|
|
9
|
+
disabled: v,
|
|
10
|
+
text: g
|
|
11
|
+
}, R = ({
|
|
12
|
+
name: n,
|
|
13
|
+
label: i,
|
|
14
|
+
isDisabled: t,
|
|
15
|
+
checked: c,
|
|
16
|
+
isInline: l,
|
|
17
|
+
onChange: r,
|
|
18
|
+
setContext: s,
|
|
19
|
+
suffixBtn: m,
|
|
20
|
+
...j
|
|
21
|
+
}) => {
|
|
22
|
+
const d = (o) => {
|
|
23
|
+
s && s({ label: `${i}`, value: o.currentTarget.value }), r && r(o);
|
|
24
|
+
};
|
|
25
|
+
return /* @__PURE__ */ a.jsxs("div", { className: k("d-flex", e.container), "data-testid": "radio-container", children: [
|
|
26
|
+
/* @__PURE__ */ a.jsxs(
|
|
27
|
+
x,
|
|
28
|
+
{
|
|
29
|
+
className: k({
|
|
30
|
+
[e.inline]: l,
|
|
31
|
+
[e.disabled]: t
|
|
32
|
+
}),
|
|
33
|
+
name: n,
|
|
34
|
+
children: [
|
|
35
|
+
/* @__PURE__ */ a.jsx("span", { className: e.text, children: i }),
|
|
36
|
+
/* @__PURE__ */ a.jsx(
|
|
37
|
+
"input",
|
|
38
|
+
{
|
|
39
|
+
type: "radio",
|
|
40
|
+
"data-testid": "radio-input",
|
|
41
|
+
name: n,
|
|
42
|
+
disabled: t,
|
|
43
|
+
defaultChecked: c,
|
|
44
|
+
...j,
|
|
45
|
+
onChange: d
|
|
46
|
+
}
|
|
47
|
+
),
|
|
48
|
+
/* @__PURE__ */ a.jsx("span", { className: e.checkmark, "data-testid": "radio-checkmark" })
|
|
49
|
+
]
|
|
50
|
+
}
|
|
51
|
+
),
|
|
52
|
+
m
|
|
53
|
+
] });
|
|
54
|
+
}, C = ({
|
|
55
|
+
name: n,
|
|
56
|
+
items: i,
|
|
57
|
+
value: t,
|
|
58
|
+
label: c,
|
|
59
|
+
isInline: l = !0,
|
|
60
|
+
setContext: r,
|
|
61
|
+
error: s,
|
|
62
|
+
className: m,
|
|
63
|
+
...j
|
|
64
|
+
}) => /* @__PURE__ */ a.jsxs("div", { className: "form-group", "data-testid": "radiolist", children: [
|
|
65
|
+
c && /* @__PURE__ */ a.jsx(x, { children: c }),
|
|
66
|
+
/* @__PURE__ */ a.jsx(
|
|
67
|
+
"div",
|
|
68
|
+
{
|
|
69
|
+
className: k(e.container, m, {
|
|
70
|
+
[e.error]: s
|
|
71
|
+
}),
|
|
72
|
+
children: i.map(
|
|
73
|
+
({ value: d, label: o, isDisabled: _, suffixBtn: h }, p) => /* @__PURE__ */ a.jsx(
|
|
74
|
+
R,
|
|
75
|
+
{
|
|
76
|
+
label: o,
|
|
77
|
+
name: n,
|
|
78
|
+
checked: t === d,
|
|
79
|
+
value: d,
|
|
80
|
+
isDisabled: _,
|
|
81
|
+
isInline: l,
|
|
82
|
+
setContext: r,
|
|
83
|
+
suffixBtn: h,
|
|
84
|
+
...j
|
|
85
|
+
},
|
|
86
|
+
`${t}-${p}`
|
|
87
|
+
)
|
|
88
|
+
)
|
|
89
|
+
}
|
|
90
|
+
),
|
|
91
|
+
s && /* @__PURE__ */ a.jsx(u, { ...s })
|
|
92
|
+
] });
|
|
93
|
+
export {
|
|
94
|
+
C as RadioList,
|
|
95
|
+
R as default
|
|
96
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { j as r } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
+
import p from "../Button/Button.js";
|
|
3
|
+
import { AppearanceButton as i } from "../../enums/appearance.js";
|
|
4
|
+
import '../../ResultError.css';const n = "_wrap_df415_1", c = {
|
|
5
|
+
wrap: n
|
|
6
|
+
}, j = ({
|
|
7
|
+
title: t,
|
|
8
|
+
text: e,
|
|
9
|
+
image: a,
|
|
10
|
+
buttonText: s,
|
|
11
|
+
onClick: o
|
|
12
|
+
}) => /* @__PURE__ */ r.jsx("div", { className: c.wrap, "data-testid": "resulterror", children: /* @__PURE__ */ r.jsxs("div", { children: [
|
|
13
|
+
/* @__PURE__ */ r.jsx("h1", { children: t }),
|
|
14
|
+
/* @__PURE__ */ r.jsx("p", { children: e }),
|
|
15
|
+
/* @__PURE__ */ r.jsx("img", { src: a, alt: "Error" }),
|
|
16
|
+
s && /* @__PURE__ */ r.jsx(p, { onClick: o, appearance: i.DEFAULT, children: s })
|
|
17
|
+
] }) });
|
|
18
|
+
export {
|
|
19
|
+
j as default
|
|
20
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { j as o } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
+
import { c as e } from "../../index-BHf7G3IG.js";
|
|
3
|
+
import '../../ScrollContainer.css';const r = "_container_hnayg_1", c = {
|
|
4
|
+
container: r
|
|
5
|
+
}, m = ({
|
|
6
|
+
children: t,
|
|
7
|
+
maxHeight: s,
|
|
8
|
+
height: a,
|
|
9
|
+
className: n
|
|
10
|
+
}) => /* @__PURE__ */ o.jsx(
|
|
11
|
+
"div",
|
|
12
|
+
{
|
|
13
|
+
"data-testid": "scroll-container",
|
|
14
|
+
className: e(n, c.container),
|
|
15
|
+
style: { maxHeight: s, height: a },
|
|
16
|
+
children: t
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
export {
|
|
20
|
+
m as default
|
|
21
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { j as t } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
+
import { s as n } from "../../Select.module-BVWgPUEN.js";
|
|
3
|
+
import { u as r } from "../../useTranslation-CnCPcxVj.js";
|
|
4
|
+
function d({ text: s }) {
|
|
5
|
+
const { t: a } = r(), o = s || a("text.no_results");
|
|
6
|
+
return /* @__PURE__ */ t.jsx("div", { className: n.noData, "data-testid": "nodata", children: /* @__PURE__ */ t.jsx("span", { children: o }) });
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
d as default
|
|
10
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { j as e } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
+
import { s as t } from "../../Select.module-BVWgPUEN.js";
|
|
3
|
+
function m({
|
|
4
|
+
props: l,
|
|
5
|
+
item: s,
|
|
6
|
+
methods: a,
|
|
7
|
+
onRemoveItem: o
|
|
8
|
+
}) {
|
|
9
|
+
const n = l.labelField || "label", r = (c) => {
|
|
10
|
+
a.removeItem(c, s, !0), o && o(s);
|
|
11
|
+
};
|
|
12
|
+
return /* @__PURE__ */ e.jsxs("span", { role: "listitem", className: t.customOptionItem, "data-testid": "option-item", children: [
|
|
13
|
+
/* @__PURE__ */ e.jsx("span", { children: s == null ? void 0 : s[n] }),
|
|
14
|
+
/* @__PURE__ */ e.jsx("span", { onClick: r, className: t.remove, children: "x" })
|
|
15
|
+
] });
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
m as default
|
|
19
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
+
import { S as s } from "../../Select-DcLZCXNo.js";
|
|
3
|
+
import "../../index-BHf7G3IG.js";
|
|
4
|
+
import "../../Select.module-BVWgPUEN.js";
|
|
5
|
+
import "../Label/Label.js";
|
|
6
|
+
import "../ValidationError/ValidationError.js";
|
|
7
|
+
import "./NoData.js";
|
|
8
|
+
import "./OptionItem.js";
|
|
9
|
+
import "../InfiniteScroll/InfiniteScroll.js";
|
|
10
|
+
import "../../useTranslation-CnCPcxVj.js";
|
|
11
|
+
export {
|
|
12
|
+
s as default
|
|
13
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
+
import "../Icon/index.js";
|
|
3
|
+
import "../PermaLink/PermaLink.js";
|
|
4
|
+
import "../Tooltip/Tooltip.js";
|
|
5
|
+
import { M as e } from "../../MenuItem-BGZHvTKI.js";
|
|
6
|
+
import "../../enums/appearance.js";
|
|
7
|
+
export {
|
|
8
|
+
e as default
|
|
9
|
+
};
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { j as e } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
+
import { useState as T, useEffect as k } from "react";
|
|
3
|
+
import x from "../AuthUserCan/index.js";
|
|
4
|
+
import w from "../Icon/index.js";
|
|
5
|
+
import { Icons as h } from "../../assets/icons/icons.js";
|
|
6
|
+
import { c as n } from "../../index-BHf7G3IG.js";
|
|
7
|
+
import { s as a, M as d } from "../../MenuItem-BGZHvTKI.js";
|
|
8
|
+
import { a as y } from "../../index-a0GSBrWt.js";
|
|
9
|
+
const g = ({
|
|
10
|
+
collapsed: r = !1,
|
|
11
|
+
items: j,
|
|
12
|
+
className: v,
|
|
13
|
+
isActiveSubMenu: M
|
|
14
|
+
}) => {
|
|
15
|
+
const { pathname: o } = y(), [I, t] = T(M);
|
|
16
|
+
return k(() => {
|
|
17
|
+
r && t(void 0);
|
|
18
|
+
}, [r]), /* @__PURE__ */ e.jsx("div", { className: n(a.wrap, v), "data-testid": "sidebar-container", children: /* @__PURE__ */ e.jsx(
|
|
19
|
+
"ul",
|
|
20
|
+
{
|
|
21
|
+
className: n(a.menu, {
|
|
22
|
+
[a.closeMenu]: r
|
|
23
|
+
}),
|
|
24
|
+
"data-testid": "sidebar-list",
|
|
25
|
+
children: j.map(({ to: l, icon: m, title: u, permItem: N, permType: C, children: i }) => {
|
|
26
|
+
var p;
|
|
27
|
+
const S = l && ((p = o == null ? void 0 : o.replaceAll("/", "")) == null ? void 0 : p.includes(l == null ? void 0 : l.replaceAll("/", ""))), c = I === u;
|
|
28
|
+
return /* @__PURE__ */ e.jsx(x, { permType: C, permItem: N, children: /* @__PURE__ */ e.jsx(
|
|
29
|
+
"li",
|
|
30
|
+
{
|
|
31
|
+
"data-testid": "sidebar-list-item",
|
|
32
|
+
className: n(a.menuItem, {
|
|
33
|
+
[a.selected]: S,
|
|
34
|
+
[a.subMenuWrap]: i
|
|
35
|
+
}),
|
|
36
|
+
onMouseEnter: () => {
|
|
37
|
+
i && r && t(u);
|
|
38
|
+
},
|
|
39
|
+
onMouseLeave: () => {
|
|
40
|
+
i && r && t(void 0);
|
|
41
|
+
},
|
|
42
|
+
children: i ? /* @__PURE__ */ e.jsxs(
|
|
43
|
+
"div",
|
|
44
|
+
{
|
|
45
|
+
className: n({
|
|
46
|
+
[a.opened]: c
|
|
47
|
+
}),
|
|
48
|
+
children: [
|
|
49
|
+
/* @__PURE__ */ e.jsxs(
|
|
50
|
+
"span",
|
|
51
|
+
{
|
|
52
|
+
onClick: () => {
|
|
53
|
+
r || t(c ? void 0 : u);
|
|
54
|
+
},
|
|
55
|
+
children: [
|
|
56
|
+
/* @__PURE__ */ e.jsx(
|
|
57
|
+
d,
|
|
58
|
+
{
|
|
59
|
+
to: l,
|
|
60
|
+
title: u,
|
|
61
|
+
icon: m,
|
|
62
|
+
visibleTooltip: !1
|
|
63
|
+
}
|
|
64
|
+
),
|
|
65
|
+
!r && /* @__PURE__ */ e.jsx(
|
|
66
|
+
"span",
|
|
67
|
+
{
|
|
68
|
+
className: n(a.arrow, {
|
|
69
|
+
[a.up]: c
|
|
70
|
+
}),
|
|
71
|
+
children: /* @__PURE__ */ e.jsx(w, { name: h.DownArrow })
|
|
72
|
+
}
|
|
73
|
+
)
|
|
74
|
+
]
|
|
75
|
+
}
|
|
76
|
+
),
|
|
77
|
+
c && /* @__PURE__ */ e.jsx(
|
|
78
|
+
"ul",
|
|
79
|
+
{
|
|
80
|
+
className: n(a.subMenu, {
|
|
81
|
+
[a.hover]: r
|
|
82
|
+
}),
|
|
83
|
+
"data-testid": "sidebar-submenu-list",
|
|
84
|
+
children: i == null ? void 0 : i.map((s) => {
|
|
85
|
+
var b, f;
|
|
86
|
+
const A = s.to && ((f = o == null ? void 0 : o.replaceAll("/", "")) == null ? void 0 : f.includes((b = s == null ? void 0 : s.to) == null ? void 0 : b.replaceAll("/", "")));
|
|
87
|
+
return /* @__PURE__ */ e.jsx(
|
|
88
|
+
x,
|
|
89
|
+
{
|
|
90
|
+
permType: s.permType,
|
|
91
|
+
permItem: s.permItem,
|
|
92
|
+
children: /* @__PURE__ */ e.jsx(
|
|
93
|
+
"li",
|
|
94
|
+
{
|
|
95
|
+
"data-testid": "sidebar-submenu-list-item",
|
|
96
|
+
onClick: () => {
|
|
97
|
+
s.onClick && s.onClick(), r && t(void 0);
|
|
98
|
+
},
|
|
99
|
+
className: n(a.menuItem, {
|
|
100
|
+
[a.selected]: A || (s == null ? void 0 : s.isItemSelected)
|
|
101
|
+
}),
|
|
102
|
+
children: /* @__PURE__ */ e.jsx(
|
|
103
|
+
d,
|
|
104
|
+
{
|
|
105
|
+
to: s.to,
|
|
106
|
+
title: s.title,
|
|
107
|
+
visibleTooltip: !1
|
|
108
|
+
}
|
|
109
|
+
)
|
|
110
|
+
}
|
|
111
|
+
)
|
|
112
|
+
},
|
|
113
|
+
s.to
|
|
114
|
+
);
|
|
115
|
+
})
|
|
116
|
+
}
|
|
117
|
+
)
|
|
118
|
+
]
|
|
119
|
+
}
|
|
120
|
+
) : /* @__PURE__ */ e.jsx(
|
|
121
|
+
d,
|
|
122
|
+
{
|
|
123
|
+
to: l,
|
|
124
|
+
title: u,
|
|
125
|
+
icon: m,
|
|
126
|
+
visibleTooltip: r
|
|
127
|
+
}
|
|
128
|
+
)
|
|
129
|
+
}
|
|
130
|
+
) }, u);
|
|
131
|
+
})
|
|
132
|
+
}
|
|
133
|
+
) });
|
|
134
|
+
};
|
|
135
|
+
export {
|
|
136
|
+
g as default
|
|
137
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { j as n } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
+
import r from "../Loading/Loading.js";
|
|
3
|
+
import { c as p } from "../../index-BHf7G3IG.js";
|
|
4
|
+
import { AppAndServicesStatusApperenceType as g } from "../../enums/appearance.js";
|
|
5
|
+
import '../../StatusTypography.css';const j = "_wrapper_1aejq_1", x = "_statusSubText_1aejq_7", f = "_spinContainer_1aejq_15", q = "_postfixSpinner_1aejq_15", y = "_spinner_1aejq_20", N = "_warning_1aejq_27", u = "_danger_1aejq_31", w = "_success_1aejq_35", m = "_initializing_1aejq_39", z = "_pending_1aejq_43", h = "_failed_1aejq_47", T = "_queued_1aejq_51", b = "_passed_1aejq_55", i = {
|
|
6
|
+
wrapper: j,
|
|
7
|
+
statusSubText: x,
|
|
8
|
+
spinContainer: f,
|
|
9
|
+
postfixSpinner: q,
|
|
10
|
+
spinner: y,
|
|
11
|
+
warning: N,
|
|
12
|
+
danger: u,
|
|
13
|
+
success: w,
|
|
14
|
+
initializing: m,
|
|
15
|
+
pending: z,
|
|
16
|
+
failed: h,
|
|
17
|
+
queued: T,
|
|
18
|
+
passed: b
|
|
19
|
+
};
|
|
20
|
+
var t = /* @__PURE__ */ ((e) => (e.addons_initializing = "initializing", e.addons_initialization_failed = "failed", e.deploying = "warning", e.failed = "failed", e.deployed = "success", e.completed = "success", e.initializing = "initializing", e.initialization_failed = "failed", e.queueing = "warning", e.queued = "queued", e.pending = "pending", e.passed = "passed", e))(t || {});
|
|
21
|
+
const k = (e) => {
|
|
22
|
+
const {
|
|
23
|
+
text: o,
|
|
24
|
+
type: c = g.ADDONS_INITIALIZING,
|
|
25
|
+
extra: l,
|
|
26
|
+
spin: s,
|
|
27
|
+
condition: _,
|
|
28
|
+
spinnerLocation: d = "back"
|
|
29
|
+
} = e, a = o && o.replace(/\_/g, " ");
|
|
30
|
+
return /* @__PURE__ */ n.jsx("p", { "data-testid": "statustypography", className: p(i.wrapper, [i[t[c]]]), children: _ ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
31
|
+
/* @__PURE__ */ n.jsxs("span", { className: i.spinContainer, children: [
|
|
32
|
+
s && d === "front" && /* @__PURE__ */ n.jsx(r, { className: p(i.spinner), layer: !1 }),
|
|
33
|
+
a,
|
|
34
|
+
s && d === "back" && /* @__PURE__ */ n.jsx(
|
|
35
|
+
r,
|
|
36
|
+
{
|
|
37
|
+
className: p(i.spinner, i.postfixSpinner),
|
|
38
|
+
layer: !1
|
|
39
|
+
}
|
|
40
|
+
)
|
|
41
|
+
] }),
|
|
42
|
+
/* @__PURE__ */ n.jsx("p", { className: i.statusSubText, children: l })
|
|
43
|
+
] }) : t[c] === "warning" && s ? /* @__PURE__ */ n.jsxs("span", { className: i.spinContainer, children: [
|
|
44
|
+
/* @__PURE__ */ n.jsx(r, { className: i.spinner, layer: !1 }),
|
|
45
|
+
a
|
|
46
|
+
] }) : /* @__PURE__ */ n.jsx("span", { className: i.spinContainer, children: a }) });
|
|
47
|
+
};
|
|
48
|
+
export {
|
|
49
|
+
t as StatusEnum,
|
|
50
|
+
k as default
|
|
51
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { j as r } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
+
import { L as w } from "../../index-C9yacAGx.js";
|
|
3
|
+
import { c as f } from "../../index-BHf7G3IG.js";
|
|
4
|
+
import { Icons as h } from "../../assets/icons/icons.js";
|
|
5
|
+
import _ from "../Icon/index.js";
|
|
6
|
+
import '../../Stepper.css';const L = "_container_12lwx_1", N = "_complete_12lwx_16", C = "_active_12lwx_39", m = {
|
|
7
|
+
container: L,
|
|
8
|
+
complete: N,
|
|
9
|
+
active: C
|
|
10
|
+
}, T = ({
|
|
11
|
+
items: d,
|
|
12
|
+
selected: o = 0,
|
|
13
|
+
selectAll: j,
|
|
14
|
+
renderAnchor: u = !0,
|
|
15
|
+
onChange: a,
|
|
16
|
+
wrapperClass: k
|
|
17
|
+
}) => {
|
|
18
|
+
let i = !0;
|
|
19
|
+
const x = ({ index: t, title: e, customIndexItem: s }) => /* @__PURE__ */ r.jsxs(
|
|
20
|
+
"a",
|
|
21
|
+
{
|
|
22
|
+
href: `#step-${t}`,
|
|
23
|
+
onClick: (c) => a && a(t, c),
|
|
24
|
+
children: [
|
|
25
|
+
s || (o > t ? /* @__PURE__ */ r.jsx("span", { children: /* @__PURE__ */ r.jsx(_, { name: h.Check }) }) : /* @__PURE__ */ r.jsx("span", { children: t + 1 })),
|
|
26
|
+
e
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
), v = ({
|
|
30
|
+
index: t,
|
|
31
|
+
title: e,
|
|
32
|
+
customIndexItem: s,
|
|
33
|
+
to: c
|
|
34
|
+
}) => /* @__PURE__ */ r.jsxs(w, { to: c, onClick: (p) => a && a(t, p), children: [
|
|
35
|
+
s || (o > t ? /* @__PURE__ */ r.jsx("span", { children: /* @__PURE__ */ r.jsx(_, { name: h.Check }) }) : /* @__PURE__ */ r.jsx("span", { children: t + 1 })),
|
|
36
|
+
e
|
|
37
|
+
] });
|
|
38
|
+
return /* @__PURE__ */ r.jsx("div", { className: f(m.container, k), "data-testid": "stepper-container", children: /* @__PURE__ */ r.jsx("ul", { "data-testid": "stepper-list", children: d.map(
|
|
39
|
+
({
|
|
40
|
+
title: t,
|
|
41
|
+
customIndexItem: e,
|
|
42
|
+
activeClass: s,
|
|
43
|
+
completeClass: c,
|
|
44
|
+
to: p
|
|
45
|
+
}, n) => {
|
|
46
|
+
j && (i = !0);
|
|
47
|
+
const l = n === o;
|
|
48
|
+
return !j && l && (i = !1), /* @__PURE__ */ r.jsx(
|
|
49
|
+
"li",
|
|
50
|
+
{
|
|
51
|
+
"data-testid": "stepper-list-item",
|
|
52
|
+
className: f({
|
|
53
|
+
[m.active]: l,
|
|
54
|
+
[m.complete]: i,
|
|
55
|
+
[s]: l,
|
|
56
|
+
[c]: i
|
|
57
|
+
}),
|
|
58
|
+
children: u ? x({ index: n, title: t, customIndexItem: e }) : v({
|
|
59
|
+
index: n,
|
|
60
|
+
title: t,
|
|
61
|
+
customIndexItem: e,
|
|
62
|
+
to: p
|
|
63
|
+
})
|
|
64
|
+
},
|
|
65
|
+
`stepper-item-${n}`
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
) }) });
|
|
69
|
+
};
|
|
70
|
+
export {
|
|
71
|
+
T as default
|
|
72
|
+
};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { j as c } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
+
import u, { useState as v, useEffect as h } from "react";
|
|
3
|
+
import { c as a } from "../../index-BHf7G3IG.js";
|
|
4
|
+
import w from "../Label/Label.js";
|
|
5
|
+
import { u as g } from "../../useTranslation-CnCPcxVj.js";
|
|
6
|
+
import '../../Switch.css';const N = "_checked_ptgnt_14", y = "_disabled_ptgnt_17", b = "_slider_ptgnt_21", O = "_round_ptgnt_75", R = "_active_ptgnt_83", C = "_passive_ptgnt_87", s = {
|
|
7
|
+
switch: "_switch_ptgnt_1",
|
|
8
|
+
checked: N,
|
|
9
|
+
disabled: y,
|
|
10
|
+
slider: b,
|
|
11
|
+
round: O,
|
|
12
|
+
active: R,
|
|
13
|
+
passive: C
|
|
14
|
+
}, q = u.forwardRef(
|
|
15
|
+
({
|
|
16
|
+
name: d,
|
|
17
|
+
label: r,
|
|
18
|
+
className: m,
|
|
19
|
+
isDisabled: i,
|
|
20
|
+
value: e,
|
|
21
|
+
onChange: o,
|
|
22
|
+
onLabelClick: _,
|
|
23
|
+
checkedChildren: f,
|
|
24
|
+
unCheckedChildren: x,
|
|
25
|
+
...n
|
|
26
|
+
}, k) => {
|
|
27
|
+
const [t, l] = v(e), { t: p } = g();
|
|
28
|
+
h(() => {
|
|
29
|
+
!n.readOnly && !i && e !== void 0 && o && o(t);
|
|
30
|
+
}, [t, e]), h(() => {
|
|
31
|
+
e && l(e);
|
|
32
|
+
}, [e]);
|
|
33
|
+
const j = () => {
|
|
34
|
+
!i && !n.readOnly && l(!t), !i && _ && _(!t);
|
|
35
|
+
};
|
|
36
|
+
return /* @__PURE__ */ c.jsxs("div", { className: a(s.container, m), "data-testid": "switch-container", children: [
|
|
37
|
+
r && /* @__PURE__ */ c.jsx(w, { name: d, children: r }),
|
|
38
|
+
/* @__PURE__ */ c.jsx("div", { className: s.block, children: /* @__PURE__ */ c.jsxs(
|
|
39
|
+
"label",
|
|
40
|
+
{
|
|
41
|
+
className: a(s.switch, {
|
|
42
|
+
[s.checked]: t,
|
|
43
|
+
[s.disabled]: i
|
|
44
|
+
}),
|
|
45
|
+
htmlFor: d,
|
|
46
|
+
onClick: () => j(),
|
|
47
|
+
children: [
|
|
48
|
+
/* @__PURE__ */ c.jsx(
|
|
49
|
+
"input",
|
|
50
|
+
{
|
|
51
|
+
type: "checkbox",
|
|
52
|
+
name: d,
|
|
53
|
+
value: e,
|
|
54
|
+
"data-testid": "switch-input",
|
|
55
|
+
ref: k,
|
|
56
|
+
checked: t,
|
|
57
|
+
readOnly: !0,
|
|
58
|
+
...n
|
|
59
|
+
}
|
|
60
|
+
),
|
|
61
|
+
/* @__PURE__ */ c.jsx("span", { className: s.slider, children: /* @__PURE__ */ c.jsx(
|
|
62
|
+
"span",
|
|
63
|
+
{
|
|
64
|
+
className: a({
|
|
65
|
+
[s.active]: t,
|
|
66
|
+
[s.passive]: !t
|
|
67
|
+
}),
|
|
68
|
+
children: t ? f || p("text.active") : x || p("text.passive")
|
|
69
|
+
}
|
|
70
|
+
) })
|
|
71
|
+
]
|
|
72
|
+
}
|
|
73
|
+
) })
|
|
74
|
+
] });
|
|
75
|
+
}
|
|
76
|
+
);
|
|
77
|
+
export {
|
|
78
|
+
q as default
|
|
79
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { j as t } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
+
import { c as l } from "../../index-BHf7G3IG.js";
|
|
3
|
+
import '../../Tab.css';const o = "_tabContainer_1tklp_1", p = "_titleWrapper_1tklp_4", d = "_isActive_1tklp_11", _ = "_title_1tklp_4", e = {
|
|
4
|
+
tabContainer: o,
|
|
5
|
+
titleWrapper: p,
|
|
6
|
+
isActive: d,
|
|
7
|
+
title: _
|
|
8
|
+
};
|
|
9
|
+
function v({ items: r, selected: c, onChange: a }) {
|
|
10
|
+
return /* @__PURE__ */ t.jsx("div", { className: e.tabContainer, "data-testid": "tab-container", children: r.map((s, i) => {
|
|
11
|
+
const n = c == i;
|
|
12
|
+
return /* @__PURE__ */ t.jsx(t.Fragment, { children: /* @__PURE__ */ t.jsx(
|
|
13
|
+
"div",
|
|
14
|
+
{
|
|
15
|
+
"data-testid": "tab-item",
|
|
16
|
+
onClick: () => a && a(i),
|
|
17
|
+
className: l(e.titleWrapper, {
|
|
18
|
+
[e.isActive]: n
|
|
19
|
+
}),
|
|
20
|
+
children: /* @__PURE__ */ t.jsx("div", { title: s.title, className: l(e.title), "data-testid": "tab-title", children: s.title })
|
|
21
|
+
},
|
|
22
|
+
i
|
|
23
|
+
) });
|
|
24
|
+
}) });
|
|
25
|
+
}
|
|
26
|
+
export {
|
|
27
|
+
v as default
|
|
28
|
+
};
|