ba-js-common-header 0.0.57 → 0.0.58

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.
@@ -14751,31 +14751,73 @@ function HelpCenter() {
14751
14751
  const {
14752
14752
  i18n
14753
14753
  } = useI18n();
14754
+ const {
14755
+ subMenus
14756
+ } = useSelector((state) => state.headerInfo);
14754
14757
  const {
14755
14758
  help
14756
14759
  } = useSelector((state) => state.titleBar);
14760
+ const dispatch = useDispatch();
14757
14761
  if (!help)
14758
14762
  return null;
14759
14763
  const {
14760
14764
  label,
14761
- href
14765
+ children
14762
14766
  } = help;
14763
- return /* @__PURE__ */ jsx("li", {
14767
+ const subMenuOpen = subMenus.find((id2) => id2 === label);
14768
+ return /* @__PURE__ */ jsxs("li", {
14764
14769
  className: "col-lg-auto p-0",
14765
- children: /* @__PURE__ */ jsx("div", {
14770
+ onClick: () => {
14771
+ dispatch(addSubMenu(label));
14772
+ },
14773
+ children: [/* @__PURE__ */ jsxs("div", {
14766
14774
  className: "row m-0 py-lg-0 align-items-center",
14767
- children: /* @__PURE__ */ jsx("div", {
14775
+ children: [/* @__PURE__ */ jsxs("div", {
14768
14776
  className: "col py-2 py-lg-0 px-0",
14769
- children: /* @__PURE__ */ jsx("a", {
14777
+ children: [/* @__PURE__ */ jsx("small", {
14778
+ className: "pt-2 d-lg-none",
14779
+ children: label
14780
+ }), /* @__PURE__ */ jsxs("span", {
14770
14781
  className: "ps-lg-3 pe-3 py-2 d-block",
14771
- title: "Help",
14772
- href,
14773
- target: "_blank",
14774
- rel: "noreferrer",
14775
- children: i18n.translate(label).fetch()
14782
+ children: [/* @__PURE__ */ jsx("span", {
14783
+ className: "ps-lg-2",
14784
+ children: label
14785
+ }), /* @__PURE__ */ jsx("span", {
14786
+ className: "d-none d-lg-inline ms-2",
14787
+ children: /* @__PURE__ */ jsx(commonThin.ArrowAngleDown, {
14788
+ className: "hd-icon hd-icon-arrow-angle-down"
14789
+ })
14790
+ })]
14791
+ })]
14792
+ }), /* @__PURE__ */ jsx("div", {
14793
+ className: "col-auto p-2 d-block d-lg-none",
14794
+ children: /* @__PURE__ */ jsx(commonThin.ArrowAngleRight, {
14795
+ className: "hd-icon hd-icon-arrow-angle-right"
14776
14796
  })
14777
- })
14778
- })
14797
+ })]
14798
+ }), /* @__PURE__ */ jsx("ul", {
14799
+ className: cn("py-3", "list-unstyled", "hd-nav-second-level", {
14800
+ "hd-submenu-opened": subMenuOpen
14801
+ }),
14802
+ children: children.map(({
14803
+ href,
14804
+ label: lbl
14805
+ }) => /* @__PURE__ */ jsx("li", {
14806
+ children: /* @__PURE__ */ jsx("div", {
14807
+ className: "row m-0 py-lg-0 align-items-center",
14808
+ children: /* @__PURE__ */ jsx("div", {
14809
+ className: "col py-2 py-lg-0 px-0",
14810
+ children: /* @__PURE__ */ jsx("a", {
14811
+ className: "px-lg-4 py-2 d-block",
14812
+ href,
14813
+ target: "_blank",
14814
+ rel: "noreferrer",
14815
+ children: i18n.translate(lbl).fetch()
14816
+ })
14817
+ })
14818
+ })
14819
+ }, nanoid()))
14820
+ })]
14779
14821
  });
14780
14822
  }
14781
14823
  function UserManager() {