beca-ui 2.1.0-beta.87 → 2.1.0-beta.89

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.
Files changed (2) hide show
  1. package/dist/beca-ui.js +16 -19
  2. package/package.json +1 -1
package/dist/beca-ui.js CHANGED
@@ -95858,7 +95858,7 @@ const Ant = "https://share.becawork.vn/files/theme/web/sidebar-bg-img.png", rk =
95858
95858
  customSideBar: g,
95859
95859
  isShowCollapseButton: v,
95860
95860
  logoUrl: C
95861
- } = e, b = cT(), { mainLayoutConfig: S, userConfig: E, mainTheme: O, isHomeApp: N, appTheme: $ } = fr(T7), [T, R] = ht([]), [I, P] = ht([]), [k, D] = ht(), [F, B] = ht(!1), [A, H] = ht(""), j = BF(A), [W, K] = ht([]), [X, q] = ht([]), Y = wn(() => {
95861
+ } = e, b = cT(), { mainLayoutConfig: S, userConfig: E, mainTheme: O, isHomeApp: N, appTheme: $ } = fr(T7), [T, R] = ht([]), [I, P] = ht([]), [k, D] = ht(), [F, B] = ht(!1), [A, H] = ht(""), [j, W] = ht([]), [K, X] = ht([]), q = BF(A), Y = wn(() => {
95862
95862
  var ce;
95863
95863
  return !(((ce = S == null ? void 0 : S.layout) == null ? void 0 : ce.showEventTheme) === !1 || (E == null ? void 0 : E.showEventTheme) === !1);
95864
95864
  }, [S, E]), Z = () => {
@@ -95906,7 +95906,7 @@ const Ant = "https://share.becawork.vn/files/theme/web/sidebar-bg-img.png", rk =
95906
95906
  ae.push(ge);
95907
95907
  }
95908
95908
  }
95909
- }) : ae = W, ae;
95909
+ }) : ae = j, ae;
95910
95910
  };
95911
95911
  Zt(() => {
95912
95912
  var ce;
@@ -95931,11 +95931,11 @@ const Ant = "https://share.becawork.vn/files/theme/web/sidebar-bg-img.png", rk =
95931
95931
  a && P(["0"]);
95932
95932
  }, [a]), Zt(() => {
95933
95933
  const ce = ie(
95934
- ip.removeVietnameseTones(j.toLowerCase()),
95935
- W
95934
+ ip.removeVietnameseTones(q.toLowerCase()),
95935
+ j
95936
95936
  );
95937
- q(ce);
95938
- }, [j]), Zt(() => {
95937
+ X(ce);
95938
+ }, [q]), Zt(() => {
95939
95939
  if (r.length > 0 && k) {
95940
95940
  const ce = r.find((de) => de.name === k);
95941
95941
  if (ce) {
@@ -95978,7 +95978,7 @@ const Ant = "https://share.becawork.vn/files/theme/web/sidebar-bg-img.png", rk =
95978
95978
  }
95979
95979
  })
95980
95980
  );
95981
- }), K(de), q(de);
95981
+ }), W(de), X(de);
95982
95982
  }
95983
95983
  }
95984
95984
  }, [r, k, a]);
@@ -96035,7 +96035,7 @@ const Ant = "https://share.becawork.vn/files/theme/web/sidebar-bg-img.png", rk =
96035
96035
  ),
96036
96036
  children: /* @__PURE__ */ z("div", { className: "sidebar-menu-wrap", children: /* @__PURE__ */ z(hT, { children: /* @__PURE__ */ Gt("div", { className: "sidebar-menu-wrap-content", children: [
96037
96037
  g,
96038
- !g && r.length > 0 && /* @__PURE__ */ z("div", { children: T !== void 0 && I !== void 0 && /* @__PURE__ */ z(
96038
+ !g && r.length > 0 && /* @__PURE__ */ z("div", { children: T !== void 0 && I !== void 0 && k !== void 0 && /* @__PURE__ */ z(
96039
96039
  Tl,
96040
96040
  {
96041
96041
  theme: "dark",
@@ -96043,7 +96043,7 @@ const Ant = "https://share.becawork.vn/files/theme/web/sidebar-bg-img.png", rk =
96043
96043
  inlineCollapsed: a,
96044
96044
  selectedKeys: T,
96045
96045
  defaultOpenKeys: o && o.length > 0 ? o : I,
96046
- items: W
96046
+ items: j
96047
96047
  }
96048
96048
  ) })
96049
96049
  ] }) }) })
@@ -96076,7 +96076,7 @@ const Ant = "https://share.becawork.vn/files/theme/web/sidebar-bg-img.png", rk =
96076
96076
  allowClear: !0
96077
96077
  }
96078
96078
  ),
96079
- children: /* @__PURE__ */ z("div", { className: "drawer-menu-items", children: te(X, 1) })
96079
+ children: /* @__PURE__ */ z("div", { className: "drawer-menu-items", children: te(K, 1) })
96080
96080
  },
96081
96081
  "drawer-menu"
96082
96082
  )
@@ -99870,15 +99870,12 @@ const ait = 52, lit = 68, sit = (e) => {
99870
99870
  const $ = [...n].sort(
99871
99871
  (R, I) => (R.order ?? 0) - (I.order ?? 0)
99872
99872
  );
99873
- if (console.log("userThemeData", S), S != null && S.appMenu) {
99873
+ if (S != null && S.appMenu) {
99874
99874
  if (((T = S.appMenu.items) == null ? void 0 : T.length) > 0) {
99875
- const I = [...S.appMenu.items.map((P) => {
99876
- const k = n.find(
99877
- (D) => D.id === P.id || D.Id === P.Id
99878
- );
99879
- return console.log("item", P), console.log("appItem", k), k ?? P;
99880
- })];
99881
- console.log("mergedItems", I), console.log("applicationsCardData", n), n.forEach((P) => {
99875
+ const I = [...S.appMenu.items.map((P) => n.find(
99876
+ (D) => D.id !== void 0 ? D.id === P.id : D.Id === P.Id
99877
+ ) ?? P)];
99878
+ n.forEach((P) => {
99882
99879
  I.some((k) => k.id === P.id) || I.push(P);
99883
99880
  }), m(I);
99884
99881
  } else
@@ -99886,7 +99883,7 @@ const ait = 52, lit = 68, sit = (e) => {
99886
99883
  S.appMenu.totalDisplay !== void 0 ? v(S.appMenu.totalDisplay) : v(o);
99887
99884
  } else
99888
99885
  m($);
99889
- }, [S == null ? void 0 : S.appMenu, JSON.stringify(n)]), console.log("userTheme", i), console.log("displayApplications", C), console.log("hiddenApplications", b), /* @__PURE__ */ Gt("div", { className: "app-menu", children: [
99886
+ }, [S == null ? void 0 : S.appMenu, JSON.stringify(n)]), /* @__PURE__ */ Gt("div", { className: "app-menu", children: [
99890
99887
  /* @__PURE__ */ z("div", { className: "app-main-logo-wrap", children: /* @__PURE__ */ z("a", { href: "/", children: /* @__PURE__ */ z("img", { src: t, className: "app-main-logo" }) }) }),
99891
99888
  /* @__PURE__ */ Gt("div", { className: "app-menu-items-wrap", children: [
99892
99889
  /* @__PURE__ */ z(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "beca-ui",
3
- "version": "2.1.0-beta.87",
3
+ "version": "2.1.0-beta.89",
4
4
  "description": "Becawork UI",
5
5
  "license": "MIT",
6
6
  "author": {