@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,148 @@
|
|
|
1
|
+
import { _ as y } from "./_isArray-CBUZFxFA.js";
|
|
2
|
+
import { b as h, _ as g } from "./keys-B0bo5Q7o.js";
|
|
3
|
+
import { _ as m } from "./_isString-BUpNGP_8.js";
|
|
4
|
+
function _(t, r) {
|
|
5
|
+
switch (t) {
|
|
6
|
+
case 0:
|
|
7
|
+
return function() {
|
|
8
|
+
return r.apply(this, arguments);
|
|
9
|
+
};
|
|
10
|
+
case 1:
|
|
11
|
+
return function(e) {
|
|
12
|
+
return r.apply(this, arguments);
|
|
13
|
+
};
|
|
14
|
+
case 2:
|
|
15
|
+
return function(e, n) {
|
|
16
|
+
return r.apply(this, arguments);
|
|
17
|
+
};
|
|
18
|
+
case 3:
|
|
19
|
+
return function(e, n, a) {
|
|
20
|
+
return r.apply(this, arguments);
|
|
21
|
+
};
|
|
22
|
+
case 4:
|
|
23
|
+
return function(e, n, a, u) {
|
|
24
|
+
return r.apply(this, arguments);
|
|
25
|
+
};
|
|
26
|
+
case 5:
|
|
27
|
+
return function(e, n, a, u, i) {
|
|
28
|
+
return r.apply(this, arguments);
|
|
29
|
+
};
|
|
30
|
+
case 6:
|
|
31
|
+
return function(e, n, a, u, i, s) {
|
|
32
|
+
return r.apply(this, arguments);
|
|
33
|
+
};
|
|
34
|
+
case 7:
|
|
35
|
+
return function(e, n, a, u, i, s, o) {
|
|
36
|
+
return r.apply(this, arguments);
|
|
37
|
+
};
|
|
38
|
+
case 8:
|
|
39
|
+
return function(e, n, a, u, i, s, o, p) {
|
|
40
|
+
return r.apply(this, arguments);
|
|
41
|
+
};
|
|
42
|
+
case 9:
|
|
43
|
+
return function(e, n, a, u, i, s, o, p, d) {
|
|
44
|
+
return r.apply(this, arguments);
|
|
45
|
+
};
|
|
46
|
+
case 10:
|
|
47
|
+
return function(e, n, a, u, i, s, o, p, d, R) {
|
|
48
|
+
return r.apply(this, arguments);
|
|
49
|
+
};
|
|
50
|
+
default:
|
|
51
|
+
throw new Error("First argument to _arity must be a non-negative integer no greater than ten");
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
function v(t) {
|
|
55
|
+
return t != null && typeof t["@@transducer/step"] == "function";
|
|
56
|
+
}
|
|
57
|
+
function X(t, r, e) {
|
|
58
|
+
return function() {
|
|
59
|
+
if (arguments.length === 0)
|
|
60
|
+
return e();
|
|
61
|
+
var n = Array.prototype.slice.call(arguments, 0), a = n.pop();
|
|
62
|
+
if (!y(a)) {
|
|
63
|
+
for (var u = 0; u < t.length; ) {
|
|
64
|
+
if (typeof a[t[u]] == "function")
|
|
65
|
+
return a[t[u]].apply(a, n);
|
|
66
|
+
u += 1;
|
|
67
|
+
}
|
|
68
|
+
if (v(a)) {
|
|
69
|
+
var i = r.apply(null, n);
|
|
70
|
+
return i(a);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
return e.apply(this, arguments);
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
const L = {
|
|
77
|
+
init: function() {
|
|
78
|
+
return this.xf["@@transducer/init"]();
|
|
79
|
+
},
|
|
80
|
+
result: function(t) {
|
|
81
|
+
return this.xf["@@transducer/result"](t);
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
var b = /* @__PURE__ */ h(function(r) {
|
|
85
|
+
return y(r) ? !0 : !r || typeof r != "object" || m(r) ? !1 : r.nodeType === 1 ? !!r.length : r.length === 0 ? !0 : r.length > 0 ? r.hasOwnProperty(0) && r.hasOwnProperty(r.length - 1) : !1;
|
|
86
|
+
}), w = /* @__PURE__ */ function() {
|
|
87
|
+
function t(r) {
|
|
88
|
+
this.f = r;
|
|
89
|
+
}
|
|
90
|
+
return t.prototype["@@transducer/init"] = function() {
|
|
91
|
+
throw new Error("init not implemented on XWrap");
|
|
92
|
+
}, t.prototype["@@transducer/result"] = function(r) {
|
|
93
|
+
return r;
|
|
94
|
+
}, t.prototype["@@transducer/step"] = function(r, e) {
|
|
95
|
+
return this.f(r, e);
|
|
96
|
+
}, t;
|
|
97
|
+
}();
|
|
98
|
+
function k(t) {
|
|
99
|
+
return new w(t);
|
|
100
|
+
}
|
|
101
|
+
var A = /* @__PURE__ */ g(function(r, e) {
|
|
102
|
+
return _(r.length, function() {
|
|
103
|
+
return r.apply(e, arguments);
|
|
104
|
+
});
|
|
105
|
+
});
|
|
106
|
+
function E(t, r, e) {
|
|
107
|
+
for (var n = 0, a = e.length; n < a; ) {
|
|
108
|
+
if (r = t["@@transducer/step"](r, e[n]), r && r["@@transducer/reduced"]) {
|
|
109
|
+
r = r["@@transducer/value"];
|
|
110
|
+
break;
|
|
111
|
+
}
|
|
112
|
+
n += 1;
|
|
113
|
+
}
|
|
114
|
+
return t["@@transducer/result"](r);
|
|
115
|
+
}
|
|
116
|
+
function f(t, r, e) {
|
|
117
|
+
for (var n = e.next(); !n.done; ) {
|
|
118
|
+
if (r = t["@@transducer/step"](r, n.value), r && r["@@transducer/reduced"]) {
|
|
119
|
+
r = r["@@transducer/value"];
|
|
120
|
+
break;
|
|
121
|
+
}
|
|
122
|
+
n = e.next();
|
|
123
|
+
}
|
|
124
|
+
return t["@@transducer/result"](r);
|
|
125
|
+
}
|
|
126
|
+
function c(t, r, e, n) {
|
|
127
|
+
return t["@@transducer/result"](e[n](A(t["@@transducer/step"], t), r));
|
|
128
|
+
}
|
|
129
|
+
var l = typeof Symbol < "u" ? Symbol.iterator : "@@iterator";
|
|
130
|
+
function O(t, r, e) {
|
|
131
|
+
if (typeof t == "function" && (t = k(t)), b(e))
|
|
132
|
+
return E(t, r, e);
|
|
133
|
+
if (typeof e["fantasy-land/reduce"] == "function")
|
|
134
|
+
return c(t, r, e, "fantasy-land/reduce");
|
|
135
|
+
if (e[l] != null)
|
|
136
|
+
return f(t, r, e[l]());
|
|
137
|
+
if (typeof e.next == "function")
|
|
138
|
+
return f(t, r, e);
|
|
139
|
+
if (typeof e.reduce == "function")
|
|
140
|
+
return c(t, r, e, "reduce");
|
|
141
|
+
throw new TypeError("reduce: list must be array or iterable");
|
|
142
|
+
}
|
|
143
|
+
export {
|
|
144
|
+
L as _,
|
|
145
|
+
X as a,
|
|
146
|
+
O as b,
|
|
147
|
+
_ as c
|
|
148
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
var r = /* @__PURE__ */ ((e) => (e.Applications = "applications", e.Attach = "attach", e.Attachment = "attachment", e.Billing = "billing", e.Box = "box", e.Calendar = "calendar", e.Cart = "cart", e.Certificate = "certificate", e.Check = "check", e.ChevronLeft = "chevron-left", e.ChevronRight = "chevron-right", e.CircleMinus = "circle-minus", e.CirclePlus = "circle-plus", e.Clock = "clock", e.Close = "close", e.Copy = "copy", e.CreditCard = "credit-card", e.Document = "document", e.DomainRegistration = "domain-registration", e.Domains = "domains", e.DownArrow = "down-arrow", e.DownSquare = "down-square", e.Down = "down", e.Download = "download", e.EditOutline = "edit-outline", e.Edit = "edit", e.Email = "email", e.Environment = "environment", e.ErrorFill = "error-fill", e.Error = "error", e.FileTextOutlined = "fileTextOutlined", e.Info = "info", e.Install = "install", e.Link = "link", e.Log = "log", e.MenuClose = "menu-close", e.MenuOpen = "menu-open", e.Monitoring = "monitoring", e.Network = "network", e.NoResults = "no-results", e.NotEdit = "not-edit", e.Path = "path", e.Plus = "plus", e.Preview = "preview", e.Profile = "profile", e.ProjectList = "project-list", e.Projects = "projects", e.Reload = "reload", e.Retry = "retry", e.Search = "search", e.Settings = "settings", e.Support = "support", e.Trash = "trash", e.Users = "users", e.Warning = "warning", e))(r || {});
|
|
2
|
+
const t = {
|
|
3
|
+
applications: "61697",
|
|
4
|
+
attach: "61698",
|
|
5
|
+
attachment: "61699",
|
|
6
|
+
billing: "61700",
|
|
7
|
+
box: "61701",
|
|
8
|
+
calendar: "61702",
|
|
9
|
+
cart: "61703",
|
|
10
|
+
certificate: "61704",
|
|
11
|
+
check: "61705",
|
|
12
|
+
"chevron-left": "61706",
|
|
13
|
+
"chevron-right": "61707",
|
|
14
|
+
"circle-minus": "61708",
|
|
15
|
+
"circle-plus": "61709",
|
|
16
|
+
clock: "61710",
|
|
17
|
+
close: "61711",
|
|
18
|
+
copy: "61712",
|
|
19
|
+
"credit-card": "61713",
|
|
20
|
+
document: "61714",
|
|
21
|
+
"domain-registration": "61715",
|
|
22
|
+
domains: "61716",
|
|
23
|
+
"down-arrow": "61717",
|
|
24
|
+
"down-square": "61718",
|
|
25
|
+
down: "61719",
|
|
26
|
+
download: "61720",
|
|
27
|
+
"edit-outline": "61721",
|
|
28
|
+
edit: "61722",
|
|
29
|
+
email: "61723",
|
|
30
|
+
environment: "61724",
|
|
31
|
+
"error-fill": "61725",
|
|
32
|
+
error: "61726",
|
|
33
|
+
fileTextOutlined: "61727",
|
|
34
|
+
info: "61728",
|
|
35
|
+
install: "61729",
|
|
36
|
+
link: "61730",
|
|
37
|
+
log: "61731",
|
|
38
|
+
"menu-close": "61732",
|
|
39
|
+
"menu-open": "61733",
|
|
40
|
+
monitoring: "61734",
|
|
41
|
+
network: "61735",
|
|
42
|
+
"no-results": "61736",
|
|
43
|
+
"not-edit": "61737",
|
|
44
|
+
path: "61738",
|
|
45
|
+
plus: "61739",
|
|
46
|
+
preview: "61740",
|
|
47
|
+
profile: "61741",
|
|
48
|
+
"project-list": "61742",
|
|
49
|
+
projects: "61743",
|
|
50
|
+
reload: "61744",
|
|
51
|
+
retry: "61745",
|
|
52
|
+
search: "61746",
|
|
53
|
+
settings: "61747",
|
|
54
|
+
support: "61748",
|
|
55
|
+
trash: "61749",
|
|
56
|
+
users: "61750",
|
|
57
|
+
warning: "61751"
|
|
58
|
+
};
|
|
59
|
+
export {
|
|
60
|
+
t as ICONS_CODEPOINTS,
|
|
61
|
+
r as Icons
|
|
62
|
+
};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { j as s } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
+
import { useState as h } from "react";
|
|
3
|
+
import { c as i } from "../../index-BHf7G3IG.js";
|
|
4
|
+
import { Icons as n } from "../../assets/icons/icons.js";
|
|
5
|
+
import p from "../Icon/index.js";
|
|
6
|
+
import '../../Accordion.css';const x = "_container_1sqyh_1", _ = "_header_1sqyh_8", j = "_arrow_1sqyh_21", o = {
|
|
7
|
+
container: x,
|
|
8
|
+
header: _,
|
|
9
|
+
arrow: j
|
|
10
|
+
}, y = ({
|
|
11
|
+
children: a,
|
|
12
|
+
title: e,
|
|
13
|
+
isVisible: d,
|
|
14
|
+
className: m,
|
|
15
|
+
onClick: c,
|
|
16
|
+
customItemRenderer: t
|
|
17
|
+
}) => {
|
|
18
|
+
const [r, l] = h(d);
|
|
19
|
+
return /* @__PURE__ */ s.jsxs(
|
|
20
|
+
"div",
|
|
21
|
+
{
|
|
22
|
+
className: i(o.container, m, {
|
|
23
|
+
[o.active]: r
|
|
24
|
+
}),
|
|
25
|
+
"data-testid": "accordion-item",
|
|
26
|
+
children: [
|
|
27
|
+
/* @__PURE__ */ s.jsx(
|
|
28
|
+
"div",
|
|
29
|
+
{
|
|
30
|
+
className: o.header,
|
|
31
|
+
onClick: () => {
|
|
32
|
+
c && c(!r), l(!r);
|
|
33
|
+
},
|
|
34
|
+
children: t ? t(r) : /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
35
|
+
/* @__PURE__ */ s.jsx(
|
|
36
|
+
p,
|
|
37
|
+
{
|
|
38
|
+
name: r ? n.CircleMinus : n.CirclePlus,
|
|
39
|
+
className: o.arrow
|
|
40
|
+
}
|
|
41
|
+
),
|
|
42
|
+
e
|
|
43
|
+
] })
|
|
44
|
+
}
|
|
45
|
+
),
|
|
46
|
+
r && /* @__PURE__ */ s.jsx("div", { className: o.content, children: a })
|
|
47
|
+
]
|
|
48
|
+
}
|
|
49
|
+
);
|
|
50
|
+
}, q = ({
|
|
51
|
+
children: a,
|
|
52
|
+
className: e
|
|
53
|
+
}) => /* @__PURE__ */ s.jsx("div", { "data-testid": "accordion", className: i(o.accordionWrap, e), children: a });
|
|
54
|
+
export {
|
|
55
|
+
q as Accordion,
|
|
56
|
+
y as AccordionItem
|
|
57
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { j as o } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
+
import a from "../Button/Button.js";
|
|
3
|
+
import r from "../Icon/index.js";
|
|
4
|
+
import { AppearanceButton as _ } from "../../enums/appearance.js";
|
|
5
|
+
import { c as d } from "../../index-BHf7G3IG.js";
|
|
6
|
+
import { Icons as u } from "../../assets/icons/icons.js";
|
|
7
|
+
import '../../ActionButton.css';const p = "_dropdownMenuWrapper_97ot4_1", l = "_buttonChild_97ot4_4", m = "_dropdownMenu_97ot4_1", w = "_dropdownMenu__lg_97ot4_21", M = "_dropdownMenu__md_97ot4_24", x = "_dropdownMenu__sm_97ot4_27", h = "_icon_97ot4_61", j = "_title_97ot4_79", f = "_active_97ot4_85", t = {
|
|
8
|
+
dropdownMenuWrapper: p,
|
|
9
|
+
buttonChild: l,
|
|
10
|
+
dropdownMenu: m,
|
|
11
|
+
dropdownMenu__lg: w,
|
|
12
|
+
dropdownMenu__md: M,
|
|
13
|
+
dropdownMenu__sm: x,
|
|
14
|
+
icon: h,
|
|
15
|
+
title: j,
|
|
16
|
+
active: f
|
|
17
|
+
};
|
|
18
|
+
function k({ items: s, isDisabled: e }) {
|
|
19
|
+
return /* @__PURE__ */ o.jsx("div", { className: "h-100 d-flex align-items-center", "data-testid": "actionbutton-container", children: /* @__PURE__ */ o.jsxs("div", { className: d(t.dropdownMenuWrapper, {
|
|
20
|
+
[t["not-allowed"]]: e
|
|
21
|
+
}), children: [
|
|
22
|
+
/* @__PURE__ */ o.jsx(
|
|
23
|
+
a,
|
|
24
|
+
{
|
|
25
|
+
isSolid: !0,
|
|
26
|
+
noBackground: !0,
|
|
27
|
+
noBorder: !0,
|
|
28
|
+
round: !0,
|
|
29
|
+
appearance: _.DEFAULT,
|
|
30
|
+
className: t.buttonChild,
|
|
31
|
+
children: /* @__PURE__ */ o.jsx(r, { name: u.Plus })
|
|
32
|
+
}
|
|
33
|
+
),
|
|
34
|
+
/* @__PURE__ */ o.jsx("div", { className: d(t.dropdownMenu, {
|
|
35
|
+
[t.disabled]: e
|
|
36
|
+
}), children: /* @__PURE__ */ o.jsx("ul", { "data-testid": "actionbutton-list", children: s.map((n, c) => /* @__PURE__ */ o.jsxs(
|
|
37
|
+
"li",
|
|
38
|
+
{
|
|
39
|
+
"data-testid": "actionbutton-item",
|
|
40
|
+
className: d({
|
|
41
|
+
[t.icon]: n.icon
|
|
42
|
+
}),
|
|
43
|
+
children: [
|
|
44
|
+
n.icon && /* @__PURE__ */ o.jsx(r, { name: n.icon }),
|
|
45
|
+
/* @__PURE__ */ o.jsx("a", { onClick: (i) => n.onClick && n.onClick(i), children: n.text })
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
c
|
|
49
|
+
)) }) })
|
|
50
|
+
] }) });
|
|
51
|
+
}
|
|
52
|
+
export {
|
|
53
|
+
k as default
|
|
54
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { j as r } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
+
import n from "../Icon/index.js";
|
|
3
|
+
import { AppearanceAlertCard as l } from "../../enums/appearance.js";
|
|
4
|
+
import { c as _ } from "../../index-BHf7G3IG.js";
|
|
5
|
+
import { Icons as o } from "../../assets/icons/icons.js";
|
|
6
|
+
import '../../AlertCard.css';const c = "_alert_t5c9m_1", m = "_alert__warning_t5c9m_19", i = "_alert__danger_t5c9m_25", a = {
|
|
7
|
+
alert: c,
|
|
8
|
+
alert__warning: m,
|
|
9
|
+
alert__danger: i
|
|
10
|
+
}, j = ({
|
|
11
|
+
description: e,
|
|
12
|
+
onClose: s,
|
|
13
|
+
appearence: t = l.WARNING
|
|
14
|
+
}) => /* @__PURE__ */ r.jsxs(
|
|
15
|
+
"div",
|
|
16
|
+
{
|
|
17
|
+
"data-testid": "alert-card",
|
|
18
|
+
className: _(a.alert, {
|
|
19
|
+
[a[`alert__${t}`]]: t
|
|
20
|
+
}),
|
|
21
|
+
children: [
|
|
22
|
+
/* @__PURE__ */ r.jsx("span", { children: e }),
|
|
23
|
+
/* @__PURE__ */ r.jsx("div", { onClick: s, children: /* @__PURE__ */ r.jsx(n, { name: o.Close }) })
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
);
|
|
27
|
+
export {
|
|
28
|
+
j as default
|
|
29
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { j as t } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
+
import d from "react";
|
|
3
|
+
import x from "../Tooltip/Tooltip.js";
|
|
4
|
+
import { useAuth as h } from "../../hooks/useAauth.js";
|
|
5
|
+
import { getAuth as j } from "./index.js";
|
|
6
|
+
import { u as T } from "../../useTranslation-CnCPcxVj.js";
|
|
7
|
+
function E(n) {
|
|
8
|
+
const { t: s } = T(), { permItem: i, permType: m, children: o, pk: p, byPass: c, tooltipText: l, id: a } = n, [{ user: u }] = h(), f = l || s("text.no_permission"), e = j({ permItem: i, permType: m, pk: p, user: u });
|
|
9
|
+
if (c)
|
|
10
|
+
return /* @__PURE__ */ t.jsx(t.Fragment, { children: o });
|
|
11
|
+
const r = d.cloneElement(o, {
|
|
12
|
+
isDisabled: !e
|
|
13
|
+
});
|
|
14
|
+
return e ? r : /* @__PURE__ */ t.jsx(x, { id: a, tooltipContent: f, children: r });
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
E as default
|
|
18
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { j as e } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
+
import l from "../ResultError/ResultError.js";
|
|
3
|
+
import { useAuth as u } from "../../hooks/useAauth.js";
|
|
4
|
+
import f from "../../assets/images/500_error_2x.gif";
|
|
5
|
+
import { t as m } from "../../locales/i18n.js";
|
|
6
|
+
const P = () => /* @__PURE__ */ e.jsx(
|
|
7
|
+
l,
|
|
8
|
+
{
|
|
9
|
+
title: m("title.no_authorization"),
|
|
10
|
+
text: m("text.perm_result"),
|
|
11
|
+
image: f
|
|
12
|
+
}
|
|
13
|
+
), x = ({ permType: o, user: t, permItem: s }) => Array(o).flat().map((r) => `${s}::${r}`).every(
|
|
14
|
+
(r) => t == null ? void 0 : t.permissions.includes(r)
|
|
15
|
+
), k = (o) => {
|
|
16
|
+
const { permItem: t, permType: s, fallback: i, children: n, pk: r, byPass: a } = o, [{ user: p }] = u(), c = x({ permItem: t, permType: s, pk: r, user: p });
|
|
17
|
+
return a ? /* @__PURE__ */ e.jsx(e.Fragment, { children: n }) : /* @__PURE__ */ e.jsx(e.Fragment, { children: t && s ? c ? n : i : n });
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
P as PermFallBack,
|
|
21
|
+
k as default,
|
|
22
|
+
x as getAuth
|
|
23
|
+
};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { j as e } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
+
import { useState as r } from "react";
|
|
3
|
+
import { c as u } from "../../index-BHf7G3IG.js";
|
|
4
|
+
import N from "../Input/Input.js";
|
|
5
|
+
import k from "../ScrollContainer/ScrollContainer.js";
|
|
6
|
+
import { u as y } from "../../useTranslation-CnCPcxVj.js";
|
|
7
|
+
import '../../Autocomplete.css';const A = "_wrap_14jjo_1", I = "_input_14jjo_4", b = "_list_14jjo_7", L = "_isActive_14jjo_19", W = "_scrollWrap_14jjo_22", T = "_selected_14jjo_44", n = {
|
|
8
|
+
wrap: A,
|
|
9
|
+
input: I,
|
|
10
|
+
list: b,
|
|
11
|
+
isActive: L,
|
|
12
|
+
scrollWrap: W,
|
|
13
|
+
selected: T
|
|
14
|
+
}, O = (d) => {
|
|
15
|
+
const { t: p } = y(), { items: j, className: _ } = d, [i, m] = r(
|
|
16
|
+
[]
|
|
17
|
+
), [o, l] = r(0), [f, a] = r(!1), [g, c] = r(""), x = (s) => {
|
|
18
|
+
const t = s.currentTarget.value, C = j.filter(
|
|
19
|
+
(S) => S.label.toLowerCase().indexOf(t.toLowerCase()) > -1
|
|
20
|
+
);
|
|
21
|
+
c(t), m(C), l(0), a(!0);
|
|
22
|
+
}, h = (s) => {
|
|
23
|
+
m([]), c(s), l(0), a(!1);
|
|
24
|
+
}, v = (s) => {
|
|
25
|
+
if (s.keyCode === 13) {
|
|
26
|
+
const t = i[o];
|
|
27
|
+
c(t.label), l(0), a(!1);
|
|
28
|
+
} else if (s.keyCode === 38) {
|
|
29
|
+
if (o === 0)
|
|
30
|
+
return;
|
|
31
|
+
l(o - 1);
|
|
32
|
+
} else if (s.keyCode === 40) {
|
|
33
|
+
if (o - 1 === i.length)
|
|
34
|
+
return;
|
|
35
|
+
l(o + 1);
|
|
36
|
+
}
|
|
37
|
+
}, w = () => i.length ? /* @__PURE__ */ e.jsx(
|
|
38
|
+
"div",
|
|
39
|
+
{
|
|
40
|
+
"data-testid": "suggestions-list-container",
|
|
41
|
+
className: u(n.list, {
|
|
42
|
+
[n.isActive]: i.length
|
|
43
|
+
}),
|
|
44
|
+
children: /* @__PURE__ */ e.jsx(k, { className: n.scrollWrap, children: /* @__PURE__ */ e.jsx("ul", { className: "suggestions", "data-testid": "suggestions-list", children: i.map(
|
|
45
|
+
(s, t) => /* @__PURE__ */ e.jsx(
|
|
46
|
+
"li",
|
|
47
|
+
{
|
|
48
|
+
"data-testid": "suggestions-item",
|
|
49
|
+
className: u({
|
|
50
|
+
[n.selected]: t === o
|
|
51
|
+
}),
|
|
52
|
+
onClick: () => h(s.label),
|
|
53
|
+
children: s.label
|
|
54
|
+
},
|
|
55
|
+
`${s.value}-${t}`
|
|
56
|
+
)
|
|
57
|
+
) }) })
|
|
58
|
+
}
|
|
59
|
+
) : /* @__PURE__ */ e.jsxs("div", { className: "no-suggestions", children: [
|
|
60
|
+
/* @__PURE__ */ e.jsx("span", { role: "img", "aria-label": "tear emoji", children: "😪" }),
|
|
61
|
+
/* @__PURE__ */ e.jsx("em", { children: p("text.sorry_no_suggestions") })
|
|
62
|
+
] });
|
|
63
|
+
return /* @__PURE__ */ e.jsxs(
|
|
64
|
+
"div",
|
|
65
|
+
{
|
|
66
|
+
className: u(_, n.wrap),
|
|
67
|
+
onBlur: () => a(!1),
|
|
68
|
+
"data-testid": "autocomplete",
|
|
69
|
+
children: [
|
|
70
|
+
/* @__PURE__ */ e.jsx(
|
|
71
|
+
N,
|
|
72
|
+
{
|
|
73
|
+
...d,
|
|
74
|
+
wrapperClassName: n.input,
|
|
75
|
+
onChange: x,
|
|
76
|
+
onKeyDown: v,
|
|
77
|
+
value: g
|
|
78
|
+
}
|
|
79
|
+
),
|
|
80
|
+
f && g && /* @__PURE__ */ e.jsx(w, {})
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
);
|
|
84
|
+
};
|
|
85
|
+
export {
|
|
86
|
+
O as default
|
|
87
|
+
};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { j as t } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
+
import { c as w } from "../../index-BHf7G3IG.js";
|
|
3
|
+
import { AppearanceButton as I } from "../../enums/appearance.js";
|
|
4
|
+
import N from "../Icon/index.js";
|
|
5
|
+
import y from "../Loading/Loading.js";
|
|
6
|
+
import '../../Button.css';const $ = "_btn_1ofjd_1", R = "_btn__round_1ofjd_15", A = "_solid__success_1ofjd_18", B = "_solid__danger_1ofjd_23", h = "_solid__warning_1ofjd_28", C = "_solid__default_1ofjd_33", E = "_btn__pill_1ofjd_38", H = "_prefixIcon_1ofjd_44", M = "_btn__block_1ofjd_53", P = "_btn__loading_1ofjd_57", Y = "_loading_1ofjd_61", q = "_disabled_1ofjd_72", v = "_btn__default_1ofjd_81", F = "_btn__link_1ofjd_93", G = "_btn__primary_1ofjd_103", J = "_btn__success_1ofjd_119", K = "_btn__warning_1ofjd_126", O = "_btn__danger_1ofjd_133", Q = "_btn__dark_1ofjd_140", T = "_btn__xsmall_1ofjd_143", U = "_btn__small_1ofjd_148", V = "_btn__focus_1ofjd_153", _ = {
|
|
7
|
+
btn: $,
|
|
8
|
+
btn__round: R,
|
|
9
|
+
solid__success: A,
|
|
10
|
+
solid__danger: B,
|
|
11
|
+
solid__warning: h,
|
|
12
|
+
solid__default: C,
|
|
13
|
+
btn__pill: E,
|
|
14
|
+
prefixIcon: H,
|
|
15
|
+
btn__block: M,
|
|
16
|
+
btn__loading: P,
|
|
17
|
+
loading: Y,
|
|
18
|
+
disabled: q,
|
|
19
|
+
btn__default: v,
|
|
20
|
+
btn__link: F,
|
|
21
|
+
btn__primary: G,
|
|
22
|
+
btn__success: J,
|
|
23
|
+
btn__warning: K,
|
|
24
|
+
btn__danger: O,
|
|
25
|
+
btn__dark: Q,
|
|
26
|
+
btn__xsmall: T,
|
|
27
|
+
btn__small: U,
|
|
28
|
+
btn__focus: V,
|
|
29
|
+
"no-border": "_no-border_1ofjd_161",
|
|
30
|
+
"no-background": "_no-background_1ofjd_165"
|
|
31
|
+
}, L = ({
|
|
32
|
+
children: r,
|
|
33
|
+
size: s,
|
|
34
|
+
isLoading: n,
|
|
35
|
+
isDisabled: d,
|
|
36
|
+
isBlock: i,
|
|
37
|
+
noBorder: f,
|
|
38
|
+
noBackground: e,
|
|
39
|
+
round: u,
|
|
40
|
+
isSolid: b,
|
|
41
|
+
isPill: j,
|
|
42
|
+
type: l = "button",
|
|
43
|
+
focus: m,
|
|
44
|
+
className: g,
|
|
45
|
+
prefixIcon: a,
|
|
46
|
+
appearance: o = I.PRIMARY,
|
|
47
|
+
onClick: c
|
|
48
|
+
}) => {
|
|
49
|
+
const k = w(
|
|
50
|
+
"btn",
|
|
51
|
+
_.btn,
|
|
52
|
+
{
|
|
53
|
+
[_.btn__block]: i,
|
|
54
|
+
[_[`btn__${o}`]]: o && !b,
|
|
55
|
+
[_[`solid__${o}`]]: b,
|
|
56
|
+
[_[`btn__${s}`]]: s,
|
|
57
|
+
[_["no-border"]]: f,
|
|
58
|
+
[_["no-background"]]: e,
|
|
59
|
+
[_.btn__round]: u,
|
|
60
|
+
[_.btn__loading]: n,
|
|
61
|
+
[_.disabled]: d,
|
|
62
|
+
[_.btn__pill]: j,
|
|
63
|
+
[_.btn__focus]: m
|
|
64
|
+
},
|
|
65
|
+
g
|
|
66
|
+
), p = (x) => {
|
|
67
|
+
!n && c && c(x);
|
|
68
|
+
};
|
|
69
|
+
return /* @__PURE__ */ t.jsxs(
|
|
70
|
+
"button",
|
|
71
|
+
{
|
|
72
|
+
type: l,
|
|
73
|
+
className: k,
|
|
74
|
+
onClick: p,
|
|
75
|
+
"data-testid": `button-${l}`,
|
|
76
|
+
disabled: d,
|
|
77
|
+
children: [
|
|
78
|
+
a && /* @__PURE__ */ t.jsx(N, { name: a, className: _.prefixIcon }),
|
|
79
|
+
r,
|
|
80
|
+
n && /* @__PURE__ */ t.jsx(y, { className: _.loading, layer: !1 })
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
);
|
|
84
|
+
};
|
|
85
|
+
export {
|
|
86
|
+
L as default
|
|
87
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { j as o } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
+
import i from "../Heading/Heading.js";
|
|
3
|
+
import d from "../Icon/index.js";
|
|
4
|
+
import '../../Card.css';const l = "_wrap_96sol_1", p = "_iconWrap_96sol_8", m = "_content_96sol_23", _ = "_body_96sol_36", s = {
|
|
5
|
+
wrap: l,
|
|
6
|
+
iconWrap: p,
|
|
7
|
+
content: m,
|
|
8
|
+
body: _
|
|
9
|
+
}, b = (t) => {
|
|
10
|
+
const { children: c, icon: n, bgColor: r, title: e, description: a } = t;
|
|
11
|
+
return /* @__PURE__ */ o.jsxs("div", { className: s.wrap, "data-testid": "card", children: [
|
|
12
|
+
/* @__PURE__ */ o.jsx("div", { className: s.iconWrap, style: { background: r }, children: n && /* @__PURE__ */ o.jsx(d, { name: n }) }),
|
|
13
|
+
/* @__PURE__ */ o.jsx("div", { className: s.content, children: c || /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
14
|
+
/* @__PURE__ */ o.jsx(i, { level: 3, children: e }),
|
|
15
|
+
/* @__PURE__ */ o.jsx("div", { className: s.body, children: a })
|
|
16
|
+
] }) })
|
|
17
|
+
] });
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
b as default
|
|
21
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { j as s } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
+
import { B as e } from "../../index-BJU1K2Aw.js";
|
|
3
|
+
function u({ data: r, options: t }) {
|
|
4
|
+
return /* @__PURE__ */ s.jsx(
|
|
5
|
+
e,
|
|
6
|
+
{
|
|
7
|
+
options: {
|
|
8
|
+
responsive: !0,
|
|
9
|
+
scales: { x: { stacked: !0 }, y: { stacked: !0 } },
|
|
10
|
+
...t
|
|
11
|
+
},
|
|
12
|
+
data: r
|
|
13
|
+
}
|
|
14
|
+
);
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
u as default
|
|
18
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { j as s } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
+
import '../../Legends.css';const a = "_legends_yisya_1", c = "_dot_yisya_15", t = {
|
|
3
|
+
legends: a,
|
|
4
|
+
dot: c
|
|
5
|
+
};
|
|
6
|
+
function u({ items: r, colorMap: d }) {
|
|
7
|
+
const o = (e) => e == null ? void 0 : e.map((n, l) => /* @__PURE__ */ s.jsxs("li", { children: [
|
|
8
|
+
/* @__PURE__ */ s.jsx(
|
|
9
|
+
"span",
|
|
10
|
+
{
|
|
11
|
+
className: t.dot,
|
|
12
|
+
style: { backgroundColor: d[n.text] || "#037cf9" }
|
|
13
|
+
}
|
|
14
|
+
),
|
|
15
|
+
/* @__PURE__ */ s.jsx("span", { children: n.text })
|
|
16
|
+
] }, l));
|
|
17
|
+
return /* @__PURE__ */ s.jsx("ul", { className: t.legends, children: o(r) });
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
u as default
|
|
21
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { j as t } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
+
import { f as n } from "../../index-BJU1K2Aw.js";
|
|
3
|
+
function f({ data: r, options: e, lineRef: o = null }) {
|
|
4
|
+
return /* @__PURE__ */ t.jsx(
|
|
5
|
+
n,
|
|
6
|
+
{
|
|
7
|
+
options: {
|
|
8
|
+
responsive: !0,
|
|
9
|
+
...e
|
|
10
|
+
},
|
|
11
|
+
ref: o,
|
|
12
|
+
data: r
|
|
13
|
+
}
|
|
14
|
+
);
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
f as default
|
|
18
|
+
};
|