sixseconds-modules 1.6.178 → 1.6.180
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/components/header/type.d.ts +1 -0
- package/dist/index.cjs.js +170 -192
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +170 -192
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -13742,29 +13742,24 @@ const AppMenus = ({ menuItems, setInitialState, t: t2, appName, router }) => {
|
|
|
13742
13742
|
material.Box,
|
|
13743
13743
|
{
|
|
13744
13744
|
className: "sixseconds-header-dashboard-boxes",
|
|
13745
|
+
component: material.IconButton,
|
|
13745
13746
|
sx: {
|
|
13746
13747
|
display: "flex",
|
|
13747
13748
|
flexDirection: "column",
|
|
13748
13749
|
justifyContent: "flex-start",
|
|
13749
13750
|
alignItems: "center",
|
|
13750
13751
|
textAlign: "center",
|
|
13751
|
-
p: { xs: 1, md: 2 },
|
|
13752
13752
|
height: "100%",
|
|
13753
13753
|
borderRadius: "12px",
|
|
13754
13754
|
transition: "all 0.2s",
|
|
13755
|
-
"
|
|
13756
|
-
background: "#f8f9fa",
|
|
13757
|
-
"& .sixseconds-header-menu-text": {
|
|
13758
|
-
color: "#0073b1"
|
|
13759
|
-
}
|
|
13760
|
-
}
|
|
13755
|
+
width: "100%"
|
|
13761
13756
|
},
|
|
13762
13757
|
children: [
|
|
13763
13758
|
/* @__PURE__ */ jsxRuntime.jsx(material.Box, { sx: { mb: 1, display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
13764
13759
|
"img",
|
|
13765
13760
|
{
|
|
13766
|
-
width:
|
|
13767
|
-
height:
|
|
13761
|
+
width: 40,
|
|
13762
|
+
height: 40,
|
|
13768
13763
|
style: { margin: "0 auto", display: "block", objectFit: "contain" },
|
|
13769
13764
|
src: item.icon,
|
|
13770
13765
|
alt: item.name
|
|
@@ -13779,7 +13774,8 @@ const AppMenus = ({ menuItems, setInitialState, t: t2, appName, router }) => {
|
|
|
13779
13774
|
color: "#1a1c1e",
|
|
13780
13775
|
fontWeight: 500,
|
|
13781
13776
|
lineHeight: 1.2,
|
|
13782
|
-
|
|
13777
|
+
minWidth: "110px",
|
|
13778
|
+
wordBreak: "break-all"
|
|
13783
13779
|
},
|
|
13784
13780
|
children: t2(item.name)
|
|
13785
13781
|
}
|
|
@@ -13878,7 +13874,7 @@ function Language({
|
|
|
13878
13874
|
}
|
|
13879
13875
|
}
|
|
13880
13876
|
},
|
|
13881
|
-
children: interFaceLangList?.map((lang2, i) => {
|
|
13877
|
+
children: interFaceLangList?.length > 0 ? interFaceLangList?.map((lang2, i) => {
|
|
13882
13878
|
return /* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
13883
13879
|
material.Stack,
|
|
13884
13880
|
{
|
|
@@ -13898,11 +13894,11 @@ function Language({
|
|
|
13898
13894
|
src: lang2?.flag || IMAGES.DefaultLang,
|
|
13899
13895
|
alt: lang2?.label,
|
|
13900
13896
|
style: {
|
|
13901
|
-
width: "
|
|
13902
|
-
height: "
|
|
13897
|
+
width: "35px !important",
|
|
13898
|
+
height: "35px !important"
|
|
13903
13899
|
},
|
|
13904
|
-
width:
|
|
13905
|
-
height:
|
|
13900
|
+
width: 35,
|
|
13901
|
+
height: 35
|
|
13906
13902
|
}
|
|
13907
13903
|
),
|
|
13908
13904
|
/* @__PURE__ */ jsxRuntime.jsx(material.Typography, { variant: "h4", sx: { fontSize: "16px", fontWeight: "500", m: 0 }, children: t2(lang2?.label) }),
|
|
@@ -13910,7 +13906,7 @@ function Language({
|
|
|
13910
13906
|
] }) })
|
|
13911
13907
|
}
|
|
13912
13908
|
) }, i);
|
|
13913
|
-
})
|
|
13909
|
+
}) : /* @__PURE__ */ jsxRuntime.jsx(material.Typography, { variant: "h4", sx: { fontSize: "16px", fontWeight: "500", m: 0 }, children: t2(ALERT_MESSAGES.dataNoFount) })
|
|
13914
13910
|
}
|
|
13915
13911
|
)
|
|
13916
13912
|
}
|
|
@@ -14658,6 +14654,7 @@ const HeaderInner = ({
|
|
|
14658
14654
|
notificationAccessApps,
|
|
14659
14655
|
sx,
|
|
14660
14656
|
isMainLogo = true,
|
|
14657
|
+
isLang = true,
|
|
14661
14658
|
handleSideToggle,
|
|
14662
14659
|
t
|
|
14663
14660
|
}) => {
|
|
@@ -14734,168 +14731,175 @@ const HeaderInner = ({
|
|
|
14734
14731
|
margin: { md: "10px", lg: "10px", xs: "10px 0" },
|
|
14735
14732
|
position: "relative"
|
|
14736
14733
|
},
|
|
14737
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
14738
|
-
|
|
14739
|
-
|
|
14740
|
-
|
|
14741
|
-
|
|
14742
|
-
|
|
14743
|
-
|
|
14744
|
-
|
|
14745
|
-
alignItems: "center",
|
|
14746
|
-
cursor: "pointer",
|
|
14747
|
-
width: "auto",
|
|
14748
|
-
height: "auto",
|
|
14749
|
-
"& svg": {
|
|
14750
|
-
color: "#808080",
|
|
14751
|
-
width: { md: "40px", lg: "40px", xs: "30px" },
|
|
14752
|
-
height: { md: "40px", lg: "40px", xs: "30px" }
|
|
14753
|
-
}
|
|
14754
|
-
},
|
|
14755
|
-
"data-toggle-name": "appMenus",
|
|
14756
|
-
onClick: (e) => handleOpenUtil(e, setState),
|
|
14757
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(SVG.GridIcon, {})
|
|
14758
|
-
}
|
|
14759
|
-
),
|
|
14760
|
-
state.toggles.appMenus && Boolean(userData?.appAccess?.length) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
14761
|
-
material.Box,
|
|
14762
|
-
{
|
|
14763
|
-
className: "sixseconds-header-menu sixseconds-header-profile sixseconds-header-menu",
|
|
14764
|
-
sx: {
|
|
14765
|
-
width: "400px !important",
|
|
14766
|
-
p: 1,
|
|
14767
|
-
zIndex: "99999999 !important",
|
|
14768
|
-
"[dir='rtl'] &": { left: "0 !important", right: "unset" }
|
|
14769
|
-
},
|
|
14770
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
14771
|
-
AppMenus,
|
|
14772
|
-
{
|
|
14773
|
-
router,
|
|
14774
|
-
t,
|
|
14775
|
-
appName: userData?.appName,
|
|
14776
|
-
menuItems: userData?.appAccess,
|
|
14777
|
-
setInitialState: setState
|
|
14778
|
-
}
|
|
14779
|
-
)
|
|
14780
|
-
}
|
|
14781
|
-
)
|
|
14782
|
-
] }),
|
|
14783
|
-
isNotification && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
14784
|
-
material.Box,
|
|
14785
|
-
{
|
|
14786
|
-
sx: {
|
|
14787
|
-
position: "relative"
|
|
14788
|
-
},
|
|
14789
|
-
children: [
|
|
14734
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
14735
|
+
material.Box,
|
|
14736
|
+
{
|
|
14737
|
+
className: "sixseconds-header-notification",
|
|
14738
|
+
sx: { display: "flex", justifyContent: "center", alignItems: "center", gap: 1 },
|
|
14739
|
+
children: [
|
|
14740
|
+
endCustomComponents,
|
|
14741
|
+
isAccessAppMenu && Boolean(userData?.appAccess?.length) && /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { children: [
|
|
14790
14742
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
14791
14743
|
material.Box,
|
|
14792
14744
|
{
|
|
14793
|
-
component: "span",
|
|
14794
14745
|
sx: {
|
|
14795
|
-
|
|
14746
|
+
display: "flex",
|
|
14747
|
+
alignItems: "center",
|
|
14748
|
+
cursor: "pointer",
|
|
14749
|
+
width: "auto",
|
|
14750
|
+
height: "auto",
|
|
14751
|
+
"& svg": {
|
|
14752
|
+
color: "#808080",
|
|
14753
|
+
width: { md: "40px", lg: "40px", xs: "30px" },
|
|
14754
|
+
height: { md: "40px", lg: "40px", xs: "30px" }
|
|
14755
|
+
}
|
|
14796
14756
|
},
|
|
14797
|
-
"data-toggle-name": "
|
|
14757
|
+
"data-toggle-name": "appMenus",
|
|
14798
14758
|
onClick: (e) => handleOpenUtil(e, setState),
|
|
14799
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
14800
|
-
material.Badge,
|
|
14801
|
-
{
|
|
14802
|
-
badgeContent: userData?.notificationCount,
|
|
14803
|
-
color: "error",
|
|
14804
|
-
className: "sixseconds-header-notification-icon-error",
|
|
14805
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(SVG.Bell, {})
|
|
14806
|
-
}
|
|
14807
|
-
)
|
|
14759
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(SVG.GridIcon, {})
|
|
14808
14760
|
}
|
|
14809
14761
|
),
|
|
14810
|
-
state.toggles.
|
|
14811
|
-
Notification,
|
|
14812
|
-
{
|
|
14813
|
-
t,
|
|
14814
|
-
initialState: state,
|
|
14815
|
-
notificationAccessApps,
|
|
14816
|
-
setInitialState: setState
|
|
14817
|
-
}
|
|
14818
|
-
) })
|
|
14819
|
-
]
|
|
14820
|
-
}
|
|
14821
|
-
),
|
|
14822
|
-
Boolean(interFaceLangList?.length) && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
14823
|
-
material.Box,
|
|
14824
|
-
{
|
|
14825
|
-
sx: {
|
|
14826
|
-
position: "relative"
|
|
14827
|
-
},
|
|
14828
|
-
children: [
|
|
14829
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
14762
|
+
state.toggles.appMenus && Boolean(userData?.appAccess?.length) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
14830
14763
|
material.Box,
|
|
14831
14764
|
{
|
|
14832
|
-
|
|
14833
|
-
"data-toggle-name": "lang",
|
|
14834
|
-
onClick: (e) => handleOpenUtil(e, setState),
|
|
14765
|
+
className: "sixseconds-header-menu sixseconds-header-profile sixseconds-header-menu",
|
|
14835
14766
|
sx: {
|
|
14836
|
-
|
|
14837
|
-
|
|
14838
|
-
|
|
14839
|
-
|
|
14840
|
-
cursor: "pointer"
|
|
14767
|
+
minWidth: "400px !important",
|
|
14768
|
+
p: 2,
|
|
14769
|
+
zIndex: "99999999 !important",
|
|
14770
|
+
"[dir='rtl'] &": { left: "0 !important", right: "unset" }
|
|
14841
14771
|
},
|
|
14842
|
-
children:
|
|
14843
|
-
|
|
14844
|
-
|
|
14845
|
-
|
|
14846
|
-
|
|
14847
|
-
|
|
14848
|
-
|
|
14849
|
-
|
|
14850
|
-
|
|
14851
|
-
|
|
14852
|
-
alt: "lang",
|
|
14853
|
-
"data-cookiecategory": "essential",
|
|
14854
|
-
"data-src": selectedInterFaceLang?.flag || IMAGES.DefaultLang,
|
|
14855
|
-
src: selectedInterFaceLang?.flag || IMAGES.DefaultLang
|
|
14856
|
-
}
|
|
14857
|
-
),
|
|
14858
|
-
/* @__PURE__ */ jsxRuntime.jsx(material.Box, { sx: { margin: "2px 0px 0px 2px" }, children: /* @__PURE__ */ jsxRuntime.jsx(SVG.Dawn, {}) })
|
|
14859
|
-
]
|
|
14860
|
-
}
|
|
14861
|
-
),
|
|
14862
|
-
state.toggles.lang && /* @__PURE__ */ jsxRuntime.jsx(
|
|
14863
|
-
Language,
|
|
14864
|
-
{
|
|
14865
|
-
t,
|
|
14866
|
-
setInitialState: setState,
|
|
14867
|
-
interFaceLangList,
|
|
14868
|
-
userData,
|
|
14869
|
-
updateInterfaceLang,
|
|
14870
|
-
setState,
|
|
14871
|
-
selectedInterFaceLang
|
|
14772
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
14773
|
+
AppMenus,
|
|
14774
|
+
{
|
|
14775
|
+
router,
|
|
14776
|
+
t,
|
|
14777
|
+
appName: userData?.appName,
|
|
14778
|
+
menuItems: userData?.appAccess,
|
|
14779
|
+
setInitialState: setState
|
|
14780
|
+
}
|
|
14781
|
+
)
|
|
14872
14782
|
}
|
|
14873
14783
|
)
|
|
14874
|
-
]
|
|
14875
|
-
|
|
14876
|
-
|
|
14877
|
-
|
|
14878
|
-
|
|
14879
|
-
|
|
14880
|
-
|
|
14881
|
-
|
|
14882
|
-
|
|
14883
|
-
|
|
14884
|
-
|
|
14885
|
-
|
|
14886
|
-
|
|
14887
|
-
|
|
14888
|
-
|
|
14889
|
-
|
|
14890
|
-
|
|
14891
|
-
|
|
14892
|
-
|
|
14893
|
-
|
|
14894
|
-
|
|
14895
|
-
|
|
14896
|
-
|
|
14897
|
-
|
|
14898
|
-
|
|
14784
|
+
] }),
|
|
14785
|
+
isNotification && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
14786
|
+
material.Box,
|
|
14787
|
+
{
|
|
14788
|
+
sx: {
|
|
14789
|
+
position: "relative"
|
|
14790
|
+
},
|
|
14791
|
+
children: [
|
|
14792
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
14793
|
+
material.Box,
|
|
14794
|
+
{
|
|
14795
|
+
component: "span",
|
|
14796
|
+
sx: {
|
|
14797
|
+
cursor: "pointer"
|
|
14798
|
+
},
|
|
14799
|
+
"data-toggle-name": "notification",
|
|
14800
|
+
onClick: (e) => handleOpenUtil(e, setState),
|
|
14801
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
14802
|
+
material.Badge,
|
|
14803
|
+
{
|
|
14804
|
+
badgeContent: userData?.notificationCount,
|
|
14805
|
+
color: "error",
|
|
14806
|
+
className: "sixseconds-header-notification-icon-error",
|
|
14807
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(SVG.Bell, {})
|
|
14808
|
+
}
|
|
14809
|
+
)
|
|
14810
|
+
}
|
|
14811
|
+
),
|
|
14812
|
+
state.toggles.notification && /* @__PURE__ */ jsxRuntime.jsx(material.Box, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
14813
|
+
Notification,
|
|
14814
|
+
{
|
|
14815
|
+
t,
|
|
14816
|
+
initialState: state,
|
|
14817
|
+
notificationAccessApps,
|
|
14818
|
+
setInitialState: setState
|
|
14819
|
+
}
|
|
14820
|
+
) })
|
|
14821
|
+
]
|
|
14822
|
+
}
|
|
14823
|
+
),
|
|
14824
|
+
isLang && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
14825
|
+
material.Box,
|
|
14826
|
+
{
|
|
14827
|
+
sx: {
|
|
14828
|
+
position: "relative"
|
|
14829
|
+
},
|
|
14830
|
+
children: [
|
|
14831
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
14832
|
+
material.Box,
|
|
14833
|
+
{
|
|
14834
|
+
component: "span",
|
|
14835
|
+
"data-toggle-name": "lang",
|
|
14836
|
+
onClick: (e) => handleOpenUtil(e, setState),
|
|
14837
|
+
sx: {
|
|
14838
|
+
display: "inline-flex",
|
|
14839
|
+
gap: "5px",
|
|
14840
|
+
alignItems: "center",
|
|
14841
|
+
color: "#777777",
|
|
14842
|
+
cursor: "pointer"
|
|
14843
|
+
},
|
|
14844
|
+
children: [
|
|
14845
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
14846
|
+
"img",
|
|
14847
|
+
{
|
|
14848
|
+
style: {
|
|
14849
|
+
width: "35px !important",
|
|
14850
|
+
height: "35px !important"
|
|
14851
|
+
},
|
|
14852
|
+
width: 35,
|
|
14853
|
+
height: 35,
|
|
14854
|
+
alt: "lang",
|
|
14855
|
+
"data-cookiecategory": "essential",
|
|
14856
|
+
"data-src": selectedInterFaceLang?.flag || IMAGES.DefaultLang,
|
|
14857
|
+
src: selectedInterFaceLang?.flag || IMAGES.DefaultLang
|
|
14858
|
+
}
|
|
14859
|
+
),
|
|
14860
|
+
/* @__PURE__ */ jsxRuntime.jsx(material.Box, { sx: { margin: "2px 0px 0px 2px" }, children: /* @__PURE__ */ jsxRuntime.jsx(SVG.Dawn, {}) })
|
|
14861
|
+
]
|
|
14862
|
+
}
|
|
14863
|
+
),
|
|
14864
|
+
state.toggles.lang && /* @__PURE__ */ jsxRuntime.jsx(
|
|
14865
|
+
Language,
|
|
14866
|
+
{
|
|
14867
|
+
t,
|
|
14868
|
+
setInitialState: setState,
|
|
14869
|
+
interFaceLangList,
|
|
14870
|
+
userData,
|
|
14871
|
+
updateInterfaceLang,
|
|
14872
|
+
setState,
|
|
14873
|
+
selectedInterFaceLang
|
|
14874
|
+
}
|
|
14875
|
+
)
|
|
14876
|
+
]
|
|
14877
|
+
}
|
|
14878
|
+
),
|
|
14879
|
+
Boolean(userData?.fullName) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
14880
|
+
UserProfile,
|
|
14881
|
+
{
|
|
14882
|
+
router,
|
|
14883
|
+
t,
|
|
14884
|
+
userData,
|
|
14885
|
+
initialState: state,
|
|
14886
|
+
setInitialState: setState,
|
|
14887
|
+
extraMenuOptions
|
|
14888
|
+
}
|
|
14889
|
+
),
|
|
14890
|
+
Boolean(totallyEndCustomComponent) && totallyEndCustomComponent,
|
|
14891
|
+
isMobile && isMenu && state.isMenuIconsShow && /* @__PURE__ */ jsxRuntime.jsx(
|
|
14892
|
+
material.IconButton,
|
|
14893
|
+
{
|
|
14894
|
+
style: { paddingRight: 0 },
|
|
14895
|
+
className: "sixseconds-header-hamburger-icon-btn",
|
|
14896
|
+
onClick: () => setState((p) => ({ ...p, toggles: { ...p.toggles, dropDownMenu: !p.toggles.dropDownMenu } })),
|
|
14897
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(MenuIcon, { style: { width: "1em", height: "1em" } })
|
|
14898
|
+
}
|
|
14899
|
+
)
|
|
14900
|
+
]
|
|
14901
|
+
}
|
|
14902
|
+
)
|
|
14899
14903
|
}
|
|
14900
14904
|
)
|
|
14901
14905
|
] }) }),
|
|
@@ -15264,6 +15268,7 @@ const App = () => {
|
|
|
15264
15268
|
{
|
|
15265
15269
|
isAccessAppMenu: true,
|
|
15266
15270
|
isMenu: true,
|
|
15271
|
+
isLang: false,
|
|
15267
15272
|
handleSideToggle: () => {
|
|
15268
15273
|
},
|
|
15269
15274
|
updateInterfaceLang: () => {
|
|
@@ -15303,7 +15308,7 @@ const App = () => {
|
|
|
15303
15308
|
type: "app"
|
|
15304
15309
|
},
|
|
15305
15310
|
{
|
|
15306
|
-
name: "Cards
|
|
15311
|
+
name: "Cards Homeassdfasddf",
|
|
15307
15312
|
icon: "https://cert-6seconds.s3.us-west-2.amazonaws.com/uploads/dashboard/cardshome.svg",
|
|
15308
15313
|
link: "https://cards.6seconds.org",
|
|
15309
15314
|
type: "app"
|
|
@@ -15340,34 +15345,7 @@ const App = () => {
|
|
|
15340
15345
|
linkedInUrl: "",
|
|
15341
15346
|
notificationCount: 10
|
|
15342
15347
|
},
|
|
15343
|
-
interFaceLangList: [
|
|
15344
|
-
{
|
|
15345
|
-
id: 1,
|
|
15346
|
-
label: "Chinese",
|
|
15347
|
-
value: "zh",
|
|
15348
|
-
flag: "https://cert-6seconds.s3.us-west-2.amazonaws.com/uploads/flags/1736568764.png"
|
|
15349
|
-
},
|
|
15350
|
-
{
|
|
15351
|
-
id: 1,
|
|
15352
|
-
label: "English (US)",
|
|
15353
|
-
value: "en",
|
|
15354
|
-
flag: "https://cert-6seconds.s3.us-west-2.amazonaws.com/uploads/flags/1735277288.png"
|
|
15355
|
-
},
|
|
15356
|
-
{
|
|
15357
|
-
id: 1,
|
|
15358
|
-
label: "Spanish",
|
|
15359
|
-
value: 3,
|
|
15360
|
-
flag: "https://cert-6seconds.s3.us-west-2.amazonaws.com/uploads/flags/1735277337.png"
|
|
15361
|
-
}
|
|
15362
|
-
],
|
|
15363
|
-
selectedInterFaceLang: {
|
|
15364
|
-
id: 1,
|
|
15365
|
-
label: "Chinese",
|
|
15366
|
-
value: "zh",
|
|
15367
|
-
flag: "https://cert-6seconds.s3.us-west-2.amazonaws.com/uploads/flags/1736568764.png"
|
|
15368
|
-
},
|
|
15369
15348
|
isMainLogo: true,
|
|
15370
|
-
isNotification: true,
|
|
15371
15349
|
totallyEndCustomComponent: "asdfsdf",
|
|
15372
15350
|
extraMenuOptions: {
|
|
15373
15351
|
components: /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {}),
|