beca-ui 2.0.8-beta.3 → 2.0.8-beta.4
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/beca-ui.js
CHANGED
|
@@ -85824,34 +85824,34 @@ oa.getAdapter = nfe.getAdapter;
|
|
|
85824
85824
|
oa.HttpStatusCode = hXe;
|
|
85825
85825
|
oa.default = oa;
|
|
85826
85826
|
const DX = oa, mXe = (e) => {
|
|
85827
|
-
const { applicationsCardData: t, onClickItem: n, currentApp: r } = e,
|
|
85828
|
-
() => t.sort((
|
|
85829
|
-
const
|
|
85830
|
-
return
|
|
85827
|
+
const { applicationsCardData: t, onClickItem: n, currentApp: r, lang: o } = e, i = er(
|
|
85828
|
+
() => t.sort((a, l) => {
|
|
85829
|
+
const s = a.order ?? 0, c = l.order ?? 0;
|
|
85830
|
+
return s - c;
|
|
85831
85831
|
}),
|
|
85832
85832
|
[t]
|
|
85833
85833
|
);
|
|
85834
|
-
return /* @__PURE__ */ z("div", { className: "applications-card", children: /* @__PURE__ */ z("div", { className: "app-row", children:
|
|
85834
|
+
return /* @__PURE__ */ z("div", { className: "applications-card", children: /* @__PURE__ */ z("div", { className: "app-row", children: i.map((a, l) => /* @__PURE__ */ z("a", { href: a.href, children: /* @__PURE__ */ vn(
|
|
85835
85835
|
"div",
|
|
85836
85836
|
{
|
|
85837
|
-
className: `app-item${r ===
|
|
85838
|
-
title:
|
|
85839
|
-
onClick: () => n && n(
|
|
85837
|
+
className: `app-item${r === a.appId ? " active" : ""}`,
|
|
85838
|
+
title: a.name,
|
|
85839
|
+
onClick: () => n && n(a),
|
|
85840
85840
|
children: [
|
|
85841
|
-
|
|
85841
|
+
a.image && (typeof a.image == "string" ? /* @__PURE__ */ z(
|
|
85842
85842
|
"div",
|
|
85843
85843
|
{
|
|
85844
85844
|
className: "app-logo",
|
|
85845
85845
|
style: {
|
|
85846
|
-
backgroundColor:
|
|
85846
|
+
backgroundColor: a.iconBackgroundColor ?? "var(--primary-color-2)"
|
|
85847
85847
|
},
|
|
85848
|
-
children: /* @__PURE__ */ z("img", { src:
|
|
85848
|
+
children: /* @__PURE__ */ z("img", { src: a.image })
|
|
85849
85849
|
}
|
|
85850
|
-
) :
|
|
85851
|
-
/* @__PURE__ */ z("div", { className: "app-name", children:
|
|
85850
|
+
) : a.image),
|
|
85851
|
+
/* @__PURE__ */ z("div", { className: "app-name", children: o === "en" && a.nameEng ? a.nameEng : a.name })
|
|
85852
85852
|
]
|
|
85853
85853
|
}
|
|
85854
|
-
) }, `app-card-${
|
|
85854
|
+
) }, `app-card-${l}`)) }) });
|
|
85855
85855
|
}, gXe = (e) => {
|
|
85856
85856
|
const { className: t } = e;
|
|
85857
85857
|
let n = "beca-dropdown";
|
|
@@ -87562,7 +87562,8 @@ const jX = '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Ar
|
|
|
87562
87562
|
mXe,
|
|
87563
87563
|
{
|
|
87564
87564
|
applicationsCardData: a,
|
|
87565
|
-
currentApp: l
|
|
87565
|
+
currentApp: l,
|
|
87566
|
+
lang: O
|
|
87566
87567
|
}
|
|
87567
87568
|
),
|
|
87568
87569
|
trigger: ["click"],
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import { LANGUAGE } from "..";
|
|
2
3
|
export interface ApplicationsCardProps {
|
|
3
4
|
applicationsCardData: ApplicationsCardItem[];
|
|
4
5
|
onClickItem?: (item?: ApplicationsCardItem) => void;
|
|
5
6
|
currentApp: string;
|
|
7
|
+
lang: LANGUAGE;
|
|
6
8
|
}
|
|
7
9
|
export interface ApplicationsCardItem {
|
|
8
10
|
appId?: string;
|
|
@@ -12,4 +14,5 @@ export interface ApplicationsCardItem {
|
|
|
12
14
|
href?: string;
|
|
13
15
|
iconBackgroundColor?: string;
|
|
14
16
|
order?: number;
|
|
17
|
+
nameEng?: string;
|
|
15
18
|
}
|