sixseconds-modules 1.6.95 → 1.6.97
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/index.es.js
CHANGED
|
@@ -14,8 +14,8 @@ import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
|
14
14
|
import { Box, Typography, Dialog, Stack as Stack$1, Button as Button$1, styled, IconButton, Grid, Avatar, Chip, Link, Divider, ClickAwayListener, useMediaQuery, MenuItem, AppBar, Container, Badge, FormLabel, TextField, InputAdornment } from "@mui/material";
|
|
15
15
|
import * as React from "react";
|
|
16
16
|
import React__default, { useRef, useEffect, useState, useCallback, useMemo, useLayoutEffect, createContext, forwardRef, createElement, useContext, Component } from "react";
|
|
17
|
-
import Cookies from "js-cookie";
|
|
18
17
|
import axios from "axios";
|
|
18
|
+
import Cookies from "js-cookie";
|
|
19
19
|
import MenuIcon from "@mui/icons-material/Menu";
|
|
20
20
|
import toast from "react-hot-toast";
|
|
21
21
|
import VisibilityOffIcon from "@mui/icons-material/VisibilityOff";
|
|
@@ -2641,7 +2641,7 @@ function createEnv(opts) {
|
|
|
2641
2641
|
}
|
|
2642
2642
|
return runtimeEnv;
|
|
2643
2643
|
}
|
|
2644
|
-
const __vite_import_meta_env__ = { "BASE_URL": "/", "DEV": false, "MODE": "
|
|
2644
|
+
const __vite_import_meta_env__ = { "BASE_URL": "/", "DEV": false, "MODE": "qa", "PROD": true, "SSR": false, "VITE_MODULES_CARDS_ADMIN_FRONTEND_BASE_URL": "https://qa-sso.6seconds.org", "VITE_MODULES_CARDS_HOME_FRONTEND_BASE_URL": "https://qa-sso.6seconds.org", "VITE_MODULES_CERT_FRONTEND_BASE_URL": "https://qa-sso.6seconds.org", "VITE_MODULES_EVENTS_FRONTEND_BASE_URL": "https://qa-sso.6seconds.org", "VITE_MODULES_SSO_BACKEND_BASE_URL": "https://qa-ssoapi.6seconds.org", "VITE_MODULES_SSO_FRONTEND_BASE_URL": "https://qa-sso.6seconds.org", "VITE_MODULES_TOOLS_FRONTEND_BASE_URL": "https://qa-sso.6seconds.org" };
|
|
2645
2645
|
const env = createEnv({
|
|
2646
2646
|
runtimeEnv: __vite_import_meta_env__
|
|
2647
2647
|
});
|
|
@@ -9180,11 +9180,11 @@ const DangerDialog = ({
|
|
|
9180
9180
|
Dialog,
|
|
9181
9181
|
{
|
|
9182
9182
|
fullWidth: false,
|
|
9183
|
-
sx: { "& .MuiPaper-root": { maxWidth: "
|
|
9183
|
+
sx: { "& .MuiPaper-root": { maxWidth: "450px", borderRadius: "12px", width: "450px" } },
|
|
9184
9184
|
onClose: () => handleCloseUtil(setInitialState),
|
|
9185
9185
|
open,
|
|
9186
9186
|
"aria-labelledby": "draggable-dialog-title",
|
|
9187
|
-
children: /* @__PURE__ */ jsxs(Box, { sx: { p: 2 }, children: [
|
|
9187
|
+
children: /* @__PURE__ */ jsxs(Box, { sx: { p: 2, width: "270px" }, children: [
|
|
9188
9188
|
/* @__PURE__ */ jsxs(Stack$1, { direction: "column", spacing: 2, alignItems: "self-start", children: [
|
|
9189
9189
|
/* @__PURE__ */ jsx(ExitToAppTwoToneIcon, { fontSize: "large", sx: { color: "#EC5962" } }),
|
|
9190
9190
|
/* @__PURE__ */ jsx("h5", { children: title }),
|
|
@@ -9894,7 +9894,7 @@ const AppMenus = ({ menuItems, setInitialState, t: t2, appName, router }) => {
|
|
|
9894
9894
|
}
|
|
9895
9895
|
}
|
|
9896
9896
|
};
|
|
9897
|
-
return /* @__PURE__ */ jsx(ClickAwayListener, { onClickAway: () => handleCloseUtil(setInitialState), children: /* @__PURE__ */ jsx(Box, { sx: { p: 2 }, children: /* @__PURE__ */ jsx(Grid, { container: true, rowGap: 3, children: menuItems?.length > 0 && menuItems?.map((item, index) => /* @__PURE__ */ jsx(
|
|
9897
|
+
return /* @__PURE__ */ jsx(ClickAwayListener, { touchEvent: "onTouchStart", onClickAway: () => handleCloseUtil(setInitialState), children: /* @__PURE__ */ jsx(Box, { sx: { p: 2 }, children: /* @__PURE__ */ jsx(Grid, { container: true, rowGap: 3, children: menuItems?.length > 0 && menuItems?.map((item, index) => /* @__PURE__ */ jsx(
|
|
9898
9898
|
Grid,
|
|
9899
9899
|
{
|
|
9900
9900
|
onClick: () => handleRedirection2(appName, item.link, item.type),
|
|
@@ -10817,6 +10817,8 @@ const Header = ({
|
|
|
10817
10817
|
isAccessAppMenu,
|
|
10818
10818
|
notificationAccessApps,
|
|
10819
10819
|
sx,
|
|
10820
|
+
isMainLogo = true,
|
|
10821
|
+
handleSideToggle,
|
|
10820
10822
|
t
|
|
10821
10823
|
}) => {
|
|
10822
10824
|
const isMobile = useMediaQuery("(max-width: 1324px)");
|
|
@@ -10865,6 +10867,8 @@ const Header = ({
|
|
|
10865
10867
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
10866
10868
|
/* @__PURE__ */ jsx(SubHeaderStyled, { sx, children: /* @__PURE__ */ jsxs(Container, { maxWidth: false, sx: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
|
|
10867
10869
|
/* @__PURE__ */ jsxs(Box, { sx: { display: "flex !important", alignItems: "center !important" }, children: [
|
|
10870
|
+
handleSideToggle && /* @__PURE__ */ jsx(Box, { sx: { display: { md: "none", lg: "none", xs: "block" } }, children: /* @__PURE__ */ jsx(IconButton, { onClick: handleSideToggle, children: /* @__PURE__ */ jsx(MenuIcon, {}) }) }),
|
|
10871
|
+
isMainLogo && /* @__PURE__ */ jsx(Logo, {}),
|
|
10868
10872
|
logo,
|
|
10869
10873
|
frontCustomComponent
|
|
10870
10874
|
] }),
|
|
@@ -11383,6 +11387,8 @@ const App = () => {
|
|
|
11383
11387
|
{
|
|
11384
11388
|
isAccessAppMenu: true,
|
|
11385
11389
|
isMenu: true,
|
|
11390
|
+
handleSideToggle: () => {
|
|
11391
|
+
},
|
|
11386
11392
|
updateInterfaceLang: () => {
|
|
11387
11393
|
},
|
|
11388
11394
|
notificationAccessApps: [
|
|
@@ -11465,7 +11471,7 @@ const App = () => {
|
|
|
11465
11471
|
value: "zh",
|
|
11466
11472
|
flag: ""
|
|
11467
11473
|
},
|
|
11468
|
-
|
|
11474
|
+
isMainLogo: true,
|
|
11469
11475
|
isNotification: true,
|
|
11470
11476
|
totallyEndCustomComponent: "asdfsdf",
|
|
11471
11477
|
extraMenuOptions: {
|