@astral/ui 4.68.1 → 4.70.0
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/components/ActionGroup/MainActions/hooks/useMainActions/useMainActions.d.ts +3 -2
- package/components/ActionGroup/MainActions/styles.d.ts +2 -1
- package/components/ActionGroup/SecondaryVisibleActions/styles.d.ts +2 -1
- package/components/Alert/styles.d.ts +2 -1
- package/components/AutoSaveIndicator/ErrorState/styles.d.ts +2 -1
- package/components/AutoSaveIndicator/styles.d.ts +2 -1
- package/components/Button/Button.d.ts +2 -1
- package/components/Button/types.d.ts +4 -3
- package/components/CardGridInfinite/Card/SecondaryActionButton/styles.d.ts +2 -1
- package/components/CheckableTag/CheckableTag.d.ts +0 -1
- package/components/CheckableTag/CheckableTag.js +0 -1
- package/components/CollapsibleTypography/styles.d.ts +2 -1
- package/components/ConfirmDialog/styles.d.ts +2 -1
- package/components/DashboardAlert/styles.d.ts +2 -1
- package/components/DashboardLayout/Container/styles.js +1 -1
- package/components/DashboardLayout/DashboardLayout.d.ts +1 -1
- package/components/DashboardLayout/DashboardLayout.js +1 -1
- package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/DashboardSidebar.js +5 -5
- package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/SidebarNav/constants.js +1 -1
- package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/constants.js +1 -1
- package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/styles.d.ts +6 -6
- package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/styles.js +8 -8
- package/{node/components → components/DashboardLayout}/DashboardSidebar/types.d.ts +1 -1
- package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/useLogic/hooks/useCloseSidebarOnMobile/useCloseSidebarOnMobile.js +3 -3
- package/{node/components → components/DashboardLayout}/DashboardSidebar/useLogic/useLogic.d.ts +2 -2
- package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/useLogic/useLogic.js +7 -7
- package/components/DashboardLayout/Header/styles.d.ts +2 -1
- package/components/DashboardLayout/Header/styles.js +1 -1
- package/components/DashboardLayout/index.d.ts +1 -0
- package/components/DashboardLayout/public.d.ts +1 -1
- package/components/DashboardSidebarButton/styles.d.ts +2 -1
- package/components/DashboardSidebarSkeleton/DashboardSidebarSkeleton.js +1 -1
- package/components/DataGrid/DataGrid.js +1 -2
- package/components/DataGrid/Row/NestedChildren/styles.d.ts +2 -1
- package/components/DataGrid/Row/Row.js +5 -2
- package/components/DataGrid/Row/constants.d.ts +1 -0
- package/components/DataGrid/Row/constants.js +1 -0
- package/components/DataGrid/Row/styles.d.ts +2 -1
- package/components/DataGrid/Row/styles.js +23 -11
- package/components/DataGrid/Row/useLogic/useLogic.d.ts +2 -1
- package/components/DataGrid/Row/useLogic/useLogic.js +3 -1
- package/components/DataGrid/types.d.ts +0 -3
- package/components/DataGridActionCell/DataGridMainActions/Action/MainIconButton/styles.d.ts +2 -1
- package/components/DataGridActionCell/DataGridMainActions/Action/MobileMainButton/styles.d.ts +2 -1
- package/components/DataGridActionCell/SecondaryActionsButton/styles.d.ts +2 -1
- package/components/DataGridInfinite/DataGridInfinite.js +2 -2
- package/components/DatePicker/styles.d.ts +2 -1
- package/components/FlowButton/styles.d.ts +2 -1
- package/components/IconButton/IconButton.d.ts +2 -1
- package/components/IconButton/styles.d.ts +2 -1
- package/components/LegacyNotification/NotificationTemplate/styles.d.ts +2 -1
- package/components/MenuOrganization/OrganizationButton/styles.d.ts +2 -1
- package/components/MenuOrganization/OrganizationItem/styles.d.ts +2 -1
- package/components/NewStepper/Step/styles.d.ts +2 -1
- package/components/Notification/NotificationStackContainer/NotificationStackContainer.js +1 -1
- package/components/Notification/NotificationStackContainer/styles.d.ts +2 -1
- package/components/Notification/NotificationTemplate/styles.d.ts +2 -1
- package/components/NotificationList/ListItem/ListItem.js +1 -1
- package/components/PageHeader/MobilePageActions/styles.d.ts +1 -1
- package/components/PageHeader/PageActions/PageActions.d.ts +1 -1
- package/components/PageHeader/PageActions/SecondaryActions/styles.d.ts +2 -1
- package/components/PageHeader/PageActions/SecondaryVisibleActions/styles.d.ts +2 -1
- package/components/PageHeader/PageActions/styles.d.ts +2 -1
- package/components/PageHeader/Title/styles.d.ts +2 -1
- package/components/Pagination/PaginationItem/PaginationItem.js +1 -1
- package/components/Pagination/PaginationItem/styles.d.ts +2 -1
- package/components/PinButton/styles.d.ts +2 -1
- package/components/Product/styles.d.ts +2 -1
- package/components/Profile/styles.d.ts +2 -1
- package/components/SearchField/styles.d.ts +2 -1
- package/components/StaticCalendar/StaticCalendarButton/styles.d.ts +2 -1
- package/components/Tag/styles.d.ts +2 -1
- package/components/Tree/TreeItem/styles.d.ts +2 -1
- package/components/index.d.ts +1 -1
- package/hook-form/EditableText/EditingForm/styles.d.ts +2 -1
- package/hook-form/FormFilters/FormFiltersDialog/ResetButton/styles.d.ts +2 -1
- package/hook-form/FormPageLayout/FormPageFooter/SecondaryActions/styles.d.ts +4 -2
- package/hook-form/FormPageLayout/FormPageFooter/styles.d.ts +2 -1
- package/hook-form/FormPageLayoutBase/FormMobileActions/styles.d.ts +2 -1
- package/hook-form/FormWizard/Footer/styles.d.ts +2 -1
- package/hook-form/FormWizardPageLayout/FormWizardFooter/styles.d.ts +2 -1
- package/node/components/ActionGroup/MainActions/hooks/useMainActions/useMainActions.d.ts +3 -2
- package/node/components/ActionGroup/MainActions/styles.d.ts +2 -1
- package/node/components/ActionGroup/SecondaryVisibleActions/styles.d.ts +2 -1
- package/node/components/Alert/styles.d.ts +2 -1
- package/node/components/AutoSaveIndicator/ErrorState/styles.d.ts +2 -1
- package/node/components/AutoSaveIndicator/styles.d.ts +2 -1
- package/node/components/Button/Button.d.ts +2 -1
- package/node/components/Button/types.d.ts +4 -3
- package/node/components/CardGridInfinite/Card/SecondaryActionButton/styles.d.ts +2 -1
- package/node/components/CheckableTag/CheckableTag.d.ts +0 -1
- package/node/components/CheckableTag/CheckableTag.js +0 -1
- package/node/components/CollapsibleTypography/styles.d.ts +2 -1
- package/node/components/ConfirmDialog/styles.d.ts +2 -1
- package/node/components/DashboardAlert/styles.d.ts +2 -1
- package/node/components/DashboardLayout/Container/styles.js +6 -6
- package/node/components/DashboardLayout/DashboardLayout.d.ts +1 -1
- package/node/components/DashboardLayout/DashboardLayout.js +1 -1
- package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/DashboardSidebar.js +5 -5
- package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/SidebarNav/constants.js +1 -1
- package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/constants.js +1 -1
- package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/styles.d.ts +1 -1
- package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/styles.js +12 -12
- package/{components → node/components/DashboardLayout}/DashboardSidebar/types.d.ts +1 -1
- package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/useLogic/hooks/useCloseSidebarOnMobile/useCloseSidebarOnMobile.js +3 -3
- package/{components → node/components/DashboardLayout}/DashboardSidebar/useLogic/useLogic.d.ts +2 -2
- package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/useLogic/useLogic.js +7 -7
- package/node/components/DashboardLayout/Header/styles.d.ts +2 -1
- package/node/components/DashboardLayout/Header/styles.js +20 -20
- package/node/components/DashboardLayout/index.d.ts +1 -0
- package/node/components/DashboardLayout/public.d.ts +1 -1
- package/node/components/DashboardSidebarButton/styles.d.ts +2 -1
- package/node/components/DashboardSidebarSkeleton/DashboardSidebarSkeleton.js +1 -1
- package/node/components/DataGrid/DataGrid.js +1 -2
- package/node/components/DataGrid/Row/NestedChildren/styles.d.ts +2 -1
- package/node/components/DataGrid/Row/Row.js +5 -2
- package/node/components/DataGrid/Row/constants.d.ts +1 -0
- package/node/components/DataGrid/Row/constants.js +1 -0
- package/node/components/DataGrid/Row/styles.d.ts +2 -1
- package/node/components/DataGrid/Row/styles.js +23 -11
- package/node/components/DataGrid/Row/useLogic/useLogic.d.ts +2 -1
- package/node/components/DataGrid/Row/useLogic/useLogic.js +3 -1
- package/node/components/DataGrid/types.d.ts +0 -3
- package/node/components/DataGridActionCell/DataGridMainActions/Action/MainIconButton/styles.d.ts +2 -1
- package/node/components/DataGridActionCell/DataGridMainActions/Action/MobileMainButton/styles.d.ts +2 -1
- package/node/components/DataGridActionCell/SecondaryActionsButton/styles.d.ts +2 -1
- package/node/components/DataGridInfinite/DataGridInfinite.js +2 -2
- package/node/components/DatePicker/styles.d.ts +2 -1
- package/node/components/FlowButton/styles.d.ts +2 -1
- package/node/components/IconButton/IconButton.d.ts +2 -1
- package/node/components/IconButton/styles.d.ts +2 -1
- package/node/components/LegacyNotification/NotificationTemplate/styles.d.ts +2 -1
- package/node/components/MenuOrganization/OrganizationButton/styles.d.ts +2 -1
- package/node/components/MenuOrganization/OrganizationItem/styles.d.ts +2 -1
- package/node/components/NewStepper/Step/styles.d.ts +2 -1
- package/node/components/Notification/NotificationStackContainer/NotificationStackContainer.js +1 -1
- package/node/components/Notification/NotificationStackContainer/styles.d.ts +2 -1
- package/node/components/Notification/NotificationTemplate/styles.d.ts +2 -1
- package/node/components/NotificationList/ListItem/ListItem.js +1 -1
- package/node/components/PageHeader/MobilePageActions/styles.d.ts +1 -1
- package/node/components/PageHeader/PageActions/PageActions.d.ts +1 -1
- package/node/components/PageHeader/PageActions/SecondaryActions/styles.d.ts +2 -1
- package/node/components/PageHeader/PageActions/SecondaryVisibleActions/styles.d.ts +2 -1
- package/node/components/PageHeader/PageActions/styles.d.ts +2 -1
- package/node/components/PageHeader/Title/styles.d.ts +2 -1
- package/node/components/Pagination/PaginationItem/PaginationItem.js +1 -1
- package/node/components/Pagination/PaginationItem/styles.d.ts +2 -1
- package/node/components/PinButton/styles.d.ts +2 -1
- package/node/components/Product/styles.d.ts +2 -1
- package/node/components/Profile/styles.d.ts +2 -1
- package/node/components/SearchField/styles.d.ts +2 -1
- package/node/components/StaticCalendar/StaticCalendarButton/styles.d.ts +2 -1
- package/node/components/Tag/styles.d.ts +2 -1
- package/node/components/Tree/TreeItem/styles.d.ts +2 -1
- package/node/components/index.d.ts +1 -1
- package/node/hook-form/EditableText/EditingForm/styles.d.ts +2 -1
- package/node/hook-form/FormFilters/FormFiltersDialog/ResetButton/styles.d.ts +2 -1
- package/node/hook-form/FormPageLayout/FormPageFooter/SecondaryActions/styles.d.ts +4 -2
- package/node/hook-form/FormPageLayout/FormPageFooter/styles.d.ts +2 -1
- package/node/hook-form/FormPageLayoutBase/FormMobileActions/styles.d.ts +2 -1
- package/node/hook-form/FormWizard/Footer/styles.d.ts +2 -1
- package/node/hook-form/FormWizardPageLayout/FormWizardFooter/styles.d.ts +2 -1
- package/package.json +1 -1
- /package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/DashboardSidebar.d.ts +0 -0
- /package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/SidebarNav/SidebarNav.d.ts +0 -0
- /package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/SidebarNav/SidebarNav.js +0 -0
- /package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/SidebarNav/constants.d.ts +0 -0
- /package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/SidebarNav/index.d.ts +0 -0
- /package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/SidebarNav/index.js +0 -0
- /package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/constants.d.ts +0 -0
- /package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/index.d.ts +0 -0
- /package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/index.js +0 -0
- /package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/types.js +0 -0
- /package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/useLogic/hooks/index.d.ts +0 -0
- /package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/useLogic/hooks/index.js +0 -0
- /package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/useLogic/hooks/useCloseSidebarOnMobile/index.d.ts +0 -0
- /package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/useLogic/hooks/useCloseSidebarOnMobile/index.js +0 -0
- /package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/useLogic/hooks/useCloseSidebarOnMobile/useCloseSidebarOnMobile.d.ts +0 -0
- /package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/useLogic/index.d.ts +0 -0
- /package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/useLogic/index.js +0 -0
- /package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/DashboardSidebar.d.ts +0 -0
- /package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/SidebarNav/SidebarNav.d.ts +0 -0
- /package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/SidebarNav/SidebarNav.js +0 -0
- /package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/SidebarNav/constants.d.ts +0 -0
- /package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/SidebarNav/index.d.ts +0 -0
- /package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/SidebarNav/index.js +0 -0
- /package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/constants.d.ts +0 -0
- /package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/index.d.ts +0 -0
- /package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/index.js +0 -0
- /package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/types.js +0 -0
- /package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/useLogic/hooks/index.d.ts +0 -0
- /package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/useLogic/hooks/index.js +0 -0
- /package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/useLogic/hooks/useCloseSidebarOnMobile/index.d.ts +0 -0
- /package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/useLogic/hooks/useCloseSidebarOnMobile/index.js +0 -0
- /package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/useLogic/hooks/useCloseSidebarOnMobile/useCloseSidebarOnMobile.d.ts +0 -0
- /package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/useLogic/index.d.ts +0 -0
- /package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/useLogic/index.js +0 -0
package/{components → node/components/DashboardLayout}/DashboardSidebar/useLogic/useLogic.d.ts
RENAMED
|
@@ -12,13 +12,13 @@ export declare const useLogic: (props: DashboardSidebarProps) => {
|
|
|
12
12
|
items: [key: string, value: {
|
|
13
13
|
icon: import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
14
14
|
text: import("react").ReactNode;
|
|
15
|
-
counter?: import("
|
|
15
|
+
counter?: import("../../../NavMenu/Item").CounterProps | undefined;
|
|
16
16
|
active?: boolean | undefined;
|
|
17
17
|
items?: [key: string, value: {
|
|
18
18
|
text: import("react").ReactNode;
|
|
19
19
|
active: boolean;
|
|
20
20
|
component: import("react").ElementType;
|
|
21
|
-
counter?: import("
|
|
21
|
+
counter?: import("../../../NavMenu/Item").CounterProps | undefined;
|
|
22
22
|
}][] | undefined;
|
|
23
23
|
component?: import("react").ElementType | undefined;
|
|
24
24
|
} & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, ""> & {
|
package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/useLogic/useLogic.js
RENAMED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.useLogic = void 0;
|
|
4
4
|
const react_1 = require("react");
|
|
5
|
-
const DashboardContext_1 = require("
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
5
|
+
const DashboardContext_1 = require("../../../DashboardContext");
|
|
6
|
+
const DashboardSidebarProvider_1 = require("../../../DashboardSidebarProvider");
|
|
7
|
+
const useTheme_1 = require("../../../theme/hooks/useTheme");
|
|
8
|
+
const useViewportType_1 = require("../../../useViewportType");
|
|
9
|
+
const classNames_1 = require("../../../utils/classNames");
|
|
10
|
+
const Header_1 = require("../../Header");
|
|
11
|
+
const Main_1 = require("../../Main");
|
|
12
12
|
const constants_1 = require("../constants");
|
|
13
13
|
const hooks_1 = require("./hooks");
|
|
14
14
|
const useLogic = (props) => {
|
|
@@ -29,12 +29,13 @@ export declare const ProfileWrapper: import("@emotion/styled/dist/declarations/s
|
|
|
29
29
|
} & {
|
|
30
30
|
$isShow: boolean;
|
|
31
31
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
32
|
-
export declare const ExitButton: import("@emotion/styled/dist/declarations/src/types").StyledComponent<Omit<import("../..").WithoutEmotionSpecific<import("@mui/material/Button").ButtonProps>, "color" | "component" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
|
|
32
|
+
export declare const ExitButton: import("@emotion/styled/dist/declarations/src/types").StyledComponent<Omit<import("../..").WithoutEmotionSpecific<import("@mui/material/Button").ButtonProps>, "color" | "component" | "size" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
|
|
33
33
|
variant?: "light" | "link" | "text" | "contained" | "outlined" | undefined;
|
|
34
34
|
loading?: boolean | undefined;
|
|
35
35
|
color?: "primary" | "success" | "warning" | "error" | "grey" | undefined;
|
|
36
36
|
component?: import("react").ElementType | undefined;
|
|
37
37
|
selected?: boolean | undefined;
|
|
38
|
+
size?: "large" | "medium" | undefined;
|
|
38
39
|
} & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, ""> & import("react").RefAttributes<HTMLButtonElement> & {
|
|
39
40
|
theme?: import("@emotion/react").Theme | undefined;
|
|
40
41
|
} & {
|
|
@@ -3,13 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.MobileNotificationListWrapper = exports.PriorityFeatureWrapper = exports.HeaderContent = exports.ExitButton = exports.ProfileWrapper = exports.ProductSwitcherWrapper = exports.HeaderContentSection = exports.HeaderSection = exports.MobileSidebarTogglerWrapper = exports.HeaderRoot = void 0;
|
|
4
4
|
const Button_1 = require("@mui/material/Button");
|
|
5
5
|
const DashboardLayoutNotificationList_1 = require("../../DashboardLayoutNotificationList");
|
|
6
|
-
const constants_1 = require("../../DashboardSidebar/constants");
|
|
7
6
|
const IconButton_1 = require("../../IconButton");
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
7
|
+
const constants_1 = require("../../MenuOrganization/constants");
|
|
8
|
+
const constants_2 = require("../../MenuOrganization/OrganizationButton/constants");
|
|
9
|
+
const constants_3 = require("../../Profile/constants");
|
|
11
10
|
const styled_1 = require("../../styled");
|
|
12
|
-
const
|
|
11
|
+
const constants_4 = require("../constants");
|
|
12
|
+
const constants_5 = require("../DashboardSidebar/constants");
|
|
13
13
|
const constants_6 = require("./constants");
|
|
14
14
|
exports.HeaderRoot = (0, styled_1.styled)('header', {
|
|
15
15
|
shouldForwardProp: (prop) => !['$isFocusedMode'].includes(prop),
|
|
@@ -23,8 +23,8 @@ exports.HeaderRoot = (0, styled_1.styled)('header', {
|
|
|
23
23
|
justify-content: space-between;
|
|
24
24
|
|
|
25
25
|
width: 100%;
|
|
26
|
-
height: ${
|
|
27
|
-
margin-top: ${({ $isFocusedMode }) => $isFocusedMode ? `-${
|
|
26
|
+
height: ${constants_4.HEADER_HEIGHT_DESKTOP};
|
|
27
|
+
margin-top: ${({ $isFocusedMode }) => $isFocusedMode ? `-${constants_4.HEADER_HEIGHT_DESKTOP}` : 0};
|
|
28
28
|
margin-bottom: ${({ theme }) => theme.spacing(4)};
|
|
29
29
|
|
|
30
30
|
transition: ${({ theme }) => {
|
|
@@ -34,14 +34,14 @@ exports.HeaderRoot = (0, styled_1.styled)('header', {
|
|
|
34
34
|
}};
|
|
35
35
|
|
|
36
36
|
${({ theme }) => theme.breakpoints.down('laptop')} {
|
|
37
|
-
height: ${
|
|
37
|
+
height: ${constants_4.HEADER_HEIGHT_LAPTOP};
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
${({ theme }) => theme.breakpoints.down('sm')} {
|
|
41
41
|
grid-row: 2;
|
|
42
42
|
justify-content: flex-start;
|
|
43
43
|
|
|
44
|
-
height: ${
|
|
44
|
+
height: ${constants_4.HEADER_HEIGHT_MOBILE};
|
|
45
45
|
margin-bottom: 0;
|
|
46
46
|
padding: ${({ theme }) => theme.spacing(0, 2, 0, 1)};
|
|
47
47
|
|
|
@@ -62,7 +62,7 @@ exports.MobileSidebarTogglerWrapper = styled_1.styled.div `
|
|
|
62
62
|
|
|
63
63
|
/* Причина игнора: Не критично для отображения */
|
|
64
64
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
65
|
-
.${
|
|
65
|
+
.${constants_4.dashboardLayoutClassnames.root}:not(:has(.${constants_5.dashboardSidebarClassnames.root}))
|
|
66
66
|
& {
|
|
67
67
|
display: none;
|
|
68
68
|
}
|
|
@@ -84,10 +84,10 @@ exports.HeaderContentSection = (0, styled_1.styled)(exports.HeaderSection) `
|
|
|
84
84
|
gap: ${({ theme }) => theme.spacing(2)};
|
|
85
85
|
|
|
86
86
|
&.${constants_6.dashboardLayoutHeaderClassnames.priorityFeatureMenuOrg} {
|
|
87
|
-
& .${
|
|
87
|
+
& .${constants_1.menuOrganizationClassnames.organizationData} {
|
|
88
88
|
display: none;
|
|
89
89
|
}
|
|
90
|
-
& .${
|
|
90
|
+
& .${constants_1.menuOrganizationClassnames.button} {
|
|
91
91
|
border-radius: ${({ theme }) => theme.shape.medium};
|
|
92
92
|
}
|
|
93
93
|
}
|
|
@@ -133,7 +133,7 @@ exports.PriorityFeatureWrapper = styled_1.styled.div `
|
|
|
133
133
|
&.${constants_6.dashboardLayoutHeaderClassnames.featureInSidebar} {
|
|
134
134
|
position: absolute;
|
|
135
135
|
z-index: ${({ theme }) => theme.zIndex.appBar - 1};
|
|
136
|
-
top: calc(var(--alert-height, 0px) + ${
|
|
136
|
+
top: calc(var(--alert-height, 0px) + ${constants_4.HEADER_HEIGHT_MOBILE});
|
|
137
137
|
left: 0;
|
|
138
138
|
|
|
139
139
|
/* Необходимо для анимации компонента вместе с sidebar */
|
|
@@ -157,8 +157,8 @@ exports.PriorityFeatureWrapper = styled_1.styled.div `
|
|
|
157
157
|
transform: translateX(0);
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
-
& .${
|
|
161
|
-
height: ${
|
|
160
|
+
& .${constants_1.menuOrganizationClassnames.button}, & .${constants_3.profileClassnames.button} {
|
|
161
|
+
height: ${constants_2.MOBILE_BUTTON_HEIGHT};
|
|
162
162
|
padding: ${({ theme }) => theme.spacing(3, 4)};
|
|
163
163
|
|
|
164
164
|
border-bottom: 1px solid ${({ theme }) => theme.palette.components.border.default};
|
|
@@ -175,12 +175,12 @@ exports.PriorityFeatureWrapper = styled_1.styled.div `
|
|
|
175
175
|
&.${constants_6.dashboardLayoutHeaderClassnames.hasNotificationList} {
|
|
176
176
|
gap: ${({ theme }) => theme.spacing(4)};
|
|
177
177
|
|
|
178
|
-
height: ${
|
|
178
|
+
height: ${constants_2.MOBILE_BUTTON_HEIGHT};
|
|
179
179
|
padding: ${({ theme }) => theme.spacing(2, 3)};
|
|
180
180
|
|
|
181
181
|
border-bottom: 1px solid ${({ theme }) => theme.palette.components.border.default};
|
|
182
182
|
|
|
183
|
-
& .${
|
|
183
|
+
& .${constants_1.menuOrganizationClassnames.button}, & .${constants_3.profileClassnames.button} {
|
|
184
184
|
flex-grow: 1;
|
|
185
185
|
|
|
186
186
|
height: unset;
|
|
@@ -197,18 +197,18 @@ exports.PriorityFeatureWrapper = styled_1.styled.div `
|
|
|
197
197
|
}
|
|
198
198
|
|
|
199
199
|
|
|
200
|
-
& .${
|
|
200
|
+
& .${constants_3.profileClassnames.button} {
|
|
201
201
|
width: 100%;
|
|
202
202
|
max-width: unset;
|
|
203
203
|
|
|
204
204
|
border-radius: 0;
|
|
205
205
|
}
|
|
206
206
|
|
|
207
|
-
& .${
|
|
207
|
+
& .${constants_3.profileClassnames.avatar} {
|
|
208
208
|
display: none;
|
|
209
209
|
}
|
|
210
210
|
|
|
211
|
-
& .${
|
|
211
|
+
& .${constants_3.profileClassnames.user} {
|
|
212
212
|
display: flex;
|
|
213
213
|
align-items: center;
|
|
214
214
|
justify-content: space-between;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { DashboardLayout } from './DashboardLayout';
|
|
2
2
|
export type { DashboardLayoutProps } from './types';
|
|
3
|
+
export type { DashboardSidebarProps } from './DashboardSidebar';
|
|
3
4
|
export { dashboardLayoutHeaderClassnames } from './Header';
|
|
4
5
|
export { dashboardLayoutMainClassnames } from './Main';
|
|
5
6
|
export { dashboardLayoutClassnames } from './constants';
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const SidebarButton: import("@emotion/styled/dist/declarations/src/types").StyledComponent<Omit<import("..").WithoutEmotionSpecific<import("@mui/material").ButtonProps>, "color" | "component" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
|
|
2
|
+
export declare const SidebarButton: import("@emotion/styled/dist/declarations/src/types").StyledComponent<Omit<import("..").WithoutEmotionSpecific<import("@mui/material").ButtonProps>, "color" | "component" | "size" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
|
|
3
3
|
variant?: "light" | "link" | "text" | "contained" | "outlined" | undefined;
|
|
4
4
|
loading?: boolean | undefined;
|
|
5
5
|
color?: "primary" | "success" | "warning" | "error" | "grey" | undefined;
|
|
6
6
|
component?: import("react").ElementType | undefined;
|
|
7
7
|
selected?: boolean | undefined;
|
|
8
|
+
size?: "large" | "medium" | undefined;
|
|
8
9
|
} & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, ""> & import("react").RefAttributes<HTMLButtonElement> & {
|
|
9
10
|
theme?: import("@emotion/react").Theme | undefined;
|
|
10
11
|
} & {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DashboardSidebarSkeleton = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const constants_1 = require("../DashboardSidebar/constants");
|
|
5
|
+
const constants_1 = require("../DashboardLayout/DashboardSidebar/constants");
|
|
6
6
|
const Skeleton_1 = require("../Skeleton");
|
|
7
7
|
const classNames_1 = require("../utils/classNames");
|
|
8
8
|
const styles_1 = require("./styles");
|
|
@@ -67,7 +67,6 @@ const DataGrid = (props) => {
|
|
|
67
67
|
}, [noDataPlaceholder, noDataOptions, isLoading]);
|
|
68
68
|
const commonBodyProps = {
|
|
69
69
|
...bodyProps,
|
|
70
|
-
activeRowId,
|
|
71
70
|
keyId,
|
|
72
71
|
selectedRows,
|
|
73
72
|
minDisplayRows,
|
|
@@ -85,7 +84,7 @@ const DataGrid = (props) => {
|
|
|
85
84
|
};
|
|
86
85
|
const renderTableContent = () => {
|
|
87
86
|
if (!hasPinnedColumns || isMobile) {
|
|
88
|
-
return ((0, jsx_runtime_1.jsxs)(Wrapper, { ...(0, getInertProps_1.getInertProps)(isDataGridDisabled), className: constants_1.dataGridClassnames.wrapper, children: [headPreAddon, !isHideHead && ((0, jsx_runtime_1.jsx)(Head_1.Head, { ...headProps, columns: headColumns, gridColumns: gridColumns })), (0, jsx_runtime_1.jsx)(ContentState_1.ContentState, { ...contentStateProps, loadingContent: isMobile && (0, jsx_runtime_1.jsx)(MobileSkeleton_1.MobileSkeleton, { ...mobileSkeletonProps }), children: (0, jsx_runtime_1.jsx)(Body_1.Body, { ...commonBodyProps, columns: columns, gridColumns: gridColumns, className: bodyCva({
|
|
87
|
+
return ((0, jsx_runtime_1.jsxs)(Wrapper, { ...(0, getInertProps_1.getInertProps)(isDataGridDisabled), className: constants_1.dataGridClassnames.wrapper, children: [headPreAddon, !isHideHead && ((0, jsx_runtime_1.jsx)(Head_1.Head, { ...headProps, columns: headColumns, gridColumns: gridColumns })), (0, jsx_runtime_1.jsx)(ContentState_1.ContentState, { ...contentStateProps, loadingContent: isMobile && (0, jsx_runtime_1.jsx)(MobileSkeleton_1.MobileSkeleton, { ...mobileSkeletonProps }), children: (0, jsx_runtime_1.jsx)(Body_1.Body, { ...commonBodyProps, activeRowId: activeRowId, columns: columns, gridColumns: gridColumns, className: bodyCva({
|
|
89
88
|
isNoData,
|
|
90
89
|
}) }) })] }));
|
|
91
90
|
}
|
|
@@ -14,12 +14,13 @@ export declare const MoreButtonRow: import("@emotion/styled/dist/declarations/sr
|
|
|
14
14
|
$isShowConnector: boolean;
|
|
15
15
|
$gridColumns: string;
|
|
16
16
|
}, import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, {}>;
|
|
17
|
-
export declare const MoreButton: import("@emotion/styled/dist/declarations/src/types").StyledComponent<Omit<import("../../..").WithoutEmotionSpecific<import("@mui/material").ButtonProps>, "color" | "component" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
|
|
17
|
+
export declare const MoreButton: import("@emotion/styled/dist/declarations/src/types").StyledComponent<Omit<import("../../..").WithoutEmotionSpecific<import("@mui/material").ButtonProps>, "color" | "component" | "size" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
|
|
18
18
|
variant?: "light" | "link" | "text" | "contained" | "outlined" | undefined;
|
|
19
19
|
loading?: boolean | undefined;
|
|
20
20
|
color?: "primary" | "success" | "warning" | "error" | "grey" | undefined;
|
|
21
21
|
component?: import("react").ElementType | undefined;
|
|
22
22
|
selected?: boolean | undefined;
|
|
23
|
+
size?: "large" | "medium" | undefined;
|
|
23
24
|
} & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, ""> & import("react").RefAttributes<HTMLButtonElement> & {
|
|
24
25
|
theme?: import("@emotion/react").Theme | undefined;
|
|
25
26
|
} & {
|
|
@@ -29,6 +29,9 @@ const rowContentCva = (0, cva_1.cva)(constants_1.dataGridRowContentClassnames.ro
|
|
|
29
29
|
isHovered: {
|
|
30
30
|
true: constants_1.dataGridRowContentClassnames.hovered,
|
|
31
31
|
},
|
|
32
|
+
isActive: {
|
|
33
|
+
true: constants_1.dataGridRowContentClassnames.active,
|
|
34
|
+
},
|
|
32
35
|
},
|
|
33
36
|
});
|
|
34
37
|
const groupedColumnLabelCva = (0, cva_1.cva)(constants_1.dataGridGroupedColumnLabelClassnames.root, {
|
|
@@ -39,7 +42,7 @@ const groupedColumnLabelCva = (0, cva_1.cva)(constants_1.dataGridGroupedColumnLa
|
|
|
39
42
|
},
|
|
40
43
|
});
|
|
41
44
|
const RowComponent = (props) => {
|
|
42
|
-
const { isOpen, isShowConnector, childrenColumns, rowId, handleToggle, checkboxProps, rowProps, isHovered, tooltipProps, nestedChildrenProps, disabled, isRenderCollapseButton, rowRef, rowStyles, drawerProps, disabledReasonText, } = (0, useLogic_1.useLogic)(props);
|
|
45
|
+
const { isOpen, isShowConnector, childrenColumns, rowId, handleToggle, checkboxProps, rowProps, isHovered, tooltipProps, nestedChildrenProps, disabled, isRenderCollapseButton, rowRef, rowStyles, drawerProps, disabledReasonText, isActive, } = (0, useLogic_1.useLogic)(props);
|
|
43
46
|
const { className, row, options, variant, isSelectable, gridColumns, isInitialExpanded, expandedLevel, level, nestedChildren, initialVisibleChildrenCount, moreButtonColumnPosition, isVisibleCollapseButton, columns, emptyCellValue, selectedRows, activeRowId, keyId, onSelectRow, onRowClick, sectionOffset, totalColumnsCount, registerRowElement, unregisterRowElement, onRowEnter, onRowLeave, style,
|
|
44
47
|
// В этот rest-оператор попадают специфичные пропсы (атрибуты) virtuoso
|
|
45
48
|
// Необходимы для DataGridInfinite
|
|
@@ -102,7 +105,7 @@ const RowComponent = (props) => {
|
|
|
102
105
|
onRowEnter,
|
|
103
106
|
onRowLeave,
|
|
104
107
|
]);
|
|
105
|
-
return ((0, jsx_runtime_1.jsxs)(styles_1.Wrapper, { className: (0, classNames_1.classNames)(className, rootCva({ isShowConnector })), style: rowStyles, ...selfProps, children: [(0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { followCursor: true, arrow: false, ...tooltipProps, children: (0, jsx_runtime_1.jsx)(styles_1.ContentWrapper, { "data-row-id": rowId, ref: rowRef, onPointerEnter: () => onRowEnter?.(rowId), onPointerLeave: (event) => onRowLeave?.(rowId, event.nativeEvent), className: rowContentCva({ isHovered }), "$gridColumns": gridColumns, [constants_1.DISABLE_ROW_ATTR]: disabled, ...rowProps, children: renderCells() }) }), (0, jsx_runtime_1.jsx)(NestedChildren_1.NestedChildren, { ...nestedChildrenProps, data: nestedChildren, keyId: keyId, level: level, variant: variant, gridColumns: gridColumns, initialVisibleChildrenCount: initialVisibleChildrenCount, moreButtonColumnPosition: moreButtonColumnPosition,
|
|
108
|
+
return ((0, jsx_runtime_1.jsxs)(styles_1.Wrapper, { className: (0, classNames_1.classNames)(className, rootCva({ isShowConnector })), style: rowStyles, ...selfProps, children: [(0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { followCursor: true, arrow: false, ...tooltipProps, children: (0, jsx_runtime_1.jsx)(styles_1.ContentWrapper, { "data-row-id": rowId, ref: rowRef, onPointerEnter: () => onRowEnter?.(rowId), onPointerLeave: (event) => onRowLeave?.(rowId, event.nativeEvent), className: rowContentCva({ isHovered, isActive }), "$gridColumns": gridColumns, [constants_1.DISABLE_ROW_ATTR]: disabled, ...rowProps, children: renderCells() }) }), (0, jsx_runtime_1.jsx)(NestedChildren_1.NestedChildren, { ...nestedChildrenProps, data: nestedChildren, keyId: keyId, level: level, variant: variant, gridColumns: gridColumns, initialVisibleChildrenCount: initialVisibleChildrenCount, moreButtonColumnPosition: moreButtonColumnPosition,
|
|
106
109
|
// biome-ignore lint/suspicious/noTsIgnore: <>
|
|
107
110
|
// @ts-ignore
|
|
108
111
|
renderRow: renderRow }), (0, jsx_runtime_1.jsx)(BottomDrawer_1.BottomDrawer, { ...drawerProps, children: (0, jsx_runtime_1.jsx)(styles_1.BottomDrawerContent, { children: disabledReasonText }) })] }));
|
|
@@ -15,6 +15,7 @@ exports.dataGridRowClassnames = {
|
|
|
15
15
|
exports.dataGridRowContentClassnames = {
|
|
16
16
|
root: (0, createUIKitClassname_1.createUIKitClassname)('data-grid__row-content'),
|
|
17
17
|
hovered: (0, createUIKitClassname_1.createUIKitClassname)('data-grid__row-content_hovered'),
|
|
18
|
+
active: (0, createUIKitClassname_1.createUIKitClassname)('data-grid__row-content_active'),
|
|
18
19
|
};
|
|
19
20
|
exports.dataGridRowCellClassnames = {
|
|
20
21
|
single: (0, createUIKitClassname_1.createUIKitClassname)('data-grid__row-cell_single'),
|
|
@@ -20,12 +20,13 @@ export declare const CollapseCell: import("@emotion/styled/dist/declarations/src
|
|
|
20
20
|
theme?: import("@emotion/react").Theme | undefined;
|
|
21
21
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
22
22
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
23
|
-
export declare const CollapseButton: import("@emotion/styled/dist/declarations/src/types").StyledComponent<Omit<import("../..").WithoutEmotionSpecific<import("@mui/material").ButtonProps>, "color" | "component" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
|
|
23
|
+
export declare const CollapseButton: import("@emotion/styled/dist/declarations/src/types").StyledComponent<Omit<import("../..").WithoutEmotionSpecific<import("@mui/material").ButtonProps>, "color" | "component" | "size" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
|
|
24
24
|
variant?: "light" | "link" | "text" | "contained" | "outlined" | undefined;
|
|
25
25
|
loading?: boolean | undefined;
|
|
26
26
|
color?: "primary" | "success" | "warning" | "error" | "grey" | undefined;
|
|
27
27
|
component?: import("react").ElementType | undefined;
|
|
28
28
|
selected?: boolean | undefined;
|
|
29
|
+
size?: "large" | "medium" | undefined;
|
|
29
30
|
} & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, ""> & import("react").RefAttributes<HTMLButtonElement> & {
|
|
30
31
|
theme?: import("@emotion/react").Theme | undefined;
|
|
31
32
|
}, {}, {}>;
|
|
@@ -77,35 +77,47 @@ exports.ContentWrapper = styled_1.styled.div `
|
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
+
&.${constants_2.dataGridRowContentClassnames.active} {
|
|
81
|
+
background-color: ${({ theme }) => theme.palette.primary[100]};
|
|
82
|
+
}
|
|
83
|
+
|
|
80
84
|
&:hover {
|
|
81
85
|
background-color: ${({ theme }) => theme.palette.background.elementHover};
|
|
82
|
-
&.${constants_2.dataGridRowContentClassnames.hovered} {
|
|
83
|
-
cursor: pointer;
|
|
84
|
-
}
|
|
85
86
|
|
|
86
|
-
|
|
87
|
-
|
|
87
|
+
&.${constants_2.dataGridRowContentClassnames.active} {
|
|
88
|
+
background-color: ${({ theme }) => theme.palette.primary[100]};
|
|
89
|
+
}
|
|
88
90
|
|
|
89
|
-
|
|
91
|
+
&.${constants_2.dataGridRowContentClassnames.hovered} {
|
|
92
|
+
cursor: pointer;
|
|
90
93
|
}
|
|
91
94
|
}
|
|
92
95
|
|
|
93
96
|
|
|
94
97
|
&.${constants_2.dataGridRowClassnames.hover} {
|
|
95
98
|
background-color: ${({ theme }) => theme.palette.background.elementHover};
|
|
99
|
+
|
|
96
100
|
&.${constants_2.dataGridRowContentClassnames.hovered} {
|
|
97
101
|
cursor: pointer;
|
|
98
102
|
}
|
|
103
|
+
}
|
|
99
104
|
|
|
100
|
-
|
|
101
|
-
|
|
105
|
+
${({ theme }) => theme.breakpoints.down('sm')} {
|
|
106
|
+
grid-template-columns: 1fr;
|
|
102
107
|
|
|
108
|
+
&.${constants_2.dataGridRowContentClassnames.active} {
|
|
103
109
|
background-color: transparent;
|
|
104
110
|
}
|
|
105
|
-
}
|
|
106
111
|
|
|
107
|
-
|
|
108
|
-
|
|
112
|
+
&:hover, &.${constants_2.dataGridRowClassnames.hover} {
|
|
113
|
+
cursor: initial;
|
|
114
|
+
|
|
115
|
+
background-color: transparent;
|
|
116
|
+
|
|
117
|
+
&.${constants_2.dataGridRowContentClassnames.active} {
|
|
118
|
+
background-color: transparent;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
109
121
|
}
|
|
110
122
|
`;
|
|
111
123
|
exports.CellStyled = (0, styled_1.styled)(Cell_1.Cell) `
|
|
@@ -2,7 +2,7 @@ import { type MouseEvent, type SyntheticEvent } from 'react';
|
|
|
2
2
|
import type { CellValue } from '../../types';
|
|
3
3
|
import type { RowProps } from '../types';
|
|
4
4
|
type UseLogicParams<TData extends Record<string, CellValue>> = RowProps<TData>;
|
|
5
|
-
export declare const useLogic: <TData extends Record<string, unknown>>({ keyId, columns, row, nestedChildren, level, variant, options, isInitialExpanded, expandedLevel, isSelectable, selectedRows, onSelectRow, onRowClick, isVisibleCollapseButton, registerRowElement, unregisterRowElement, style, }: UseLogicParams<TData>) => {
|
|
5
|
+
export declare const useLogic: <TData extends Record<string, unknown>>({ keyId, columns, row, nestedChildren, level, variant, options, isInitialExpanded, expandedLevel, isSelectable, selectedRows, onSelectRow, onRowClick, isVisibleCollapseButton, registerRowElement, unregisterRowElement, style, activeRowId, }: UseLogicParams<TData>) => {
|
|
6
6
|
disabledReasonText: string | undefined;
|
|
7
7
|
rowStyles: {
|
|
8
8
|
accentColor?: import("csstype").Property.AccentColor | undefined;
|
|
@@ -873,6 +873,7 @@ export declare const useLogic: <TData extends Record<string, unknown>>({ keyId,
|
|
|
873
873
|
isRenderCollapseButton: boolean;
|
|
874
874
|
handleToggle: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
875
875
|
isHovered: boolean;
|
|
876
|
+
isActive: boolean;
|
|
876
877
|
rowProps: {
|
|
877
878
|
onClick: () => void;
|
|
878
879
|
onMouseMove: (event: MouseEvent<HTMLElement>) => void;
|
|
@@ -9,7 +9,7 @@ const constants_1 = require("../constants");
|
|
|
9
9
|
const RowContext_1 = require("../RowContext");
|
|
10
10
|
const hooks_1 = require("./hooks");
|
|
11
11
|
const utils_1 = require("./utils");
|
|
12
|
-
const useLogic = ({ keyId, columns, row, nestedChildren, level, variant, options, isInitialExpanded = false, expandedLevel, isSelectable, selectedRows, onSelectRow, onRowClick, isVisibleCollapseButton, registerRowElement, unregisterRowElement, style, }) => {
|
|
12
|
+
const useLogic = ({ keyId, columns, row, nestedChildren, level, variant, options, isInitialExpanded = false, expandedLevel, isSelectable, selectedRows, onSelectRow, onRowClick, isVisibleCollapseButton, registerRowElement, unregisterRowElement, style, activeRowId, }) => {
|
|
13
13
|
const { isDrawerOpen, handleOpenDrawer, handleCloseDrawer } = (0, hooks_1.useMobileLogic)();
|
|
14
14
|
const isDefaultExpanded = isInitialExpanded && level <= expandedLevel - 1 && nestedChildren?.length;
|
|
15
15
|
const { checkIsOpened, toggleOpenItems } = (0, react_1.useContext)(DataGridContext_1.DataGridContext);
|
|
@@ -78,6 +78,7 @@ const useLogic = ({ keyId, columns, row, nestedChildren, level, variant, options
|
|
|
78
78
|
...style,
|
|
79
79
|
}), [level, style]);
|
|
80
80
|
const isHovered = Boolean(!disabled && (onRowClick || href));
|
|
81
|
+
const isActive = activeRowId === rowId;
|
|
81
82
|
const disabledReasonText = externalDisabledReason || disabledReason;
|
|
82
83
|
return {
|
|
83
84
|
disabledReasonText,
|
|
@@ -91,6 +92,7 @@ const useLogic = ({ keyId, columns, row, nestedChildren, level, variant, options
|
|
|
91
92
|
isRenderCollapseButton,
|
|
92
93
|
handleToggle,
|
|
93
94
|
isHovered,
|
|
95
|
+
isActive,
|
|
94
96
|
rowProps: {
|
|
95
97
|
onClick: handleRowClick,
|
|
96
98
|
onMouseMove: handleMouseMove,
|
|
@@ -27,9 +27,6 @@ export type DataGridProps<TData extends Record<string, CellValue> = DataGridRow,
|
|
|
27
27
|
columns: DataGridColumns<TData>[];
|
|
28
28
|
/**
|
|
29
29
|
* Идентификатор активного элемента массива rows. Выделяет активную строку в таблице
|
|
30
|
-
*
|
|
31
|
-
* @deprecated Не поддерживается, параметр будет удален в следующей major версии пакета.
|
|
32
|
-
* Мотивация: Использование активного элемента не является типичным сценарием использования таблицы.
|
|
33
30
|
*/
|
|
34
31
|
activeRowId?: string;
|
|
35
32
|
/**
|
package/node/components/DataGridActionCell/DataGridMainActions/Action/MainIconButton/styles.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const StyledIconButton: import("@emotion/styled/dist/declarations/src/types").StyledComponent<Omit<import("../../../..").WithoutEmotionSpecific<import("@mui/material").ButtonProps>, "color" | "component" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
|
|
2
|
+
export declare const StyledIconButton: import("@emotion/styled/dist/declarations/src/types").StyledComponent<Omit<import("../../../..").WithoutEmotionSpecific<import("@mui/material").ButtonProps>, "color" | "component" | "size" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
|
|
3
3
|
variant?: "light" | "link" | "text" | "contained" | "outlined" | undefined;
|
|
4
4
|
loading?: boolean | undefined;
|
|
5
5
|
color?: "primary" | "success" | "warning" | "error" | "grey" | undefined;
|
|
6
6
|
component?: import("react").ElementType | undefined;
|
|
7
7
|
selected?: boolean | undefined;
|
|
8
|
+
size?: "large" | "medium" | undefined;
|
|
8
9
|
} & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, ""> & import("react").RefAttributes<HTMLButtonElement> & {
|
|
9
10
|
theme?: import("@emotion/react").Theme | undefined;
|
|
10
11
|
}, {}, {}>;
|
package/node/components/DataGridActionCell/DataGridMainActions/Action/MobileMainButton/styles.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const StyledButton: import("@emotion/styled/dist/declarations/src/types").StyledComponent<Omit<import("../../../..").WithoutEmotionSpecific<import("@mui/material").ButtonProps>, "color" | "component" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
|
|
2
|
+
export declare const StyledButton: import("@emotion/styled/dist/declarations/src/types").StyledComponent<Omit<import("../../../..").WithoutEmotionSpecific<import("@mui/material").ButtonProps>, "color" | "component" | "size" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
|
|
3
3
|
variant?: "light" | "link" | "text" | "contained" | "outlined" | undefined;
|
|
4
4
|
loading?: boolean | undefined;
|
|
5
5
|
color?: "primary" | "success" | "warning" | "error" | "grey" | undefined;
|
|
6
6
|
component?: import("react").ElementType | undefined;
|
|
7
7
|
selected?: boolean | undefined;
|
|
8
|
+
size?: "large" | "medium" | undefined;
|
|
8
9
|
} & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, ""> & import("react").RefAttributes<HTMLButtonElement> & {
|
|
9
10
|
theme?: import("@emotion/react").Theme | undefined;
|
|
10
11
|
}, {}, {}>;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const StyledIconButton: import("@emotion/styled/dist/declarations/src/types").StyledComponent<Omit<import("../..").WithoutEmotionSpecific<import("@mui/material").ButtonProps>, "color" | "component" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
|
|
2
|
+
export declare const StyledIconButton: import("@emotion/styled/dist/declarations/src/types").StyledComponent<Omit<import("../..").WithoutEmotionSpecific<import("@mui/material").ButtonProps>, "color" | "component" | "size" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
|
|
3
3
|
variant?: "light" | "link" | "text" | "contained" | "outlined" | undefined;
|
|
4
4
|
loading?: boolean | undefined;
|
|
5
5
|
color?: "primary" | "success" | "warning" | "error" | "grey" | undefined;
|
|
6
6
|
component?: import("react").ElementType | undefined;
|
|
7
7
|
selected?: boolean | undefined;
|
|
8
|
+
size?: "large" | "medium" | undefined;
|
|
8
9
|
} & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, ""> & import("react").RefAttributes<HTMLButtonElement> & {
|
|
9
10
|
theme?: import("@emotion/react").Theme | undefined;
|
|
10
11
|
}, {}, {}>;
|
|
@@ -39,7 +39,7 @@ const dataGridInfiniteCva = (0, cva_1.cva)(constants_1.dataGridClassnames.root,
|
|
|
39
39
|
const DataGridInfinite = (props) => {
|
|
40
40
|
const { imagesMap, emptySymbol } = (0, react_1.useContext)(ConfigProvider_1.ConfigContext);
|
|
41
41
|
const { isNoData, isDataGridDisabled, treeRenderConfig, virtuosoProps, headProps, rowProps, scrollToTopButtonProps, isEndReached, isHideHead, containerCssVars, isMobile, mobileSkeletonProps, flattenColumns, hasGroupedColumns, gridViewMode, } = (0, useLogic_1.useLogic)(props);
|
|
42
|
-
const { columns, rows = [], selectedRows = [], sorting, isLoading, isDisabled, keyId, emptyCellValue = emptySymbol, variant = enums_1.Variant.Tree, subrows, className, isError, endOfScrollMsg, errorMsg, noDataPlaceholder, onRowClick, onSort, onRetry, headPreAddon, } = props;
|
|
42
|
+
const { columns, rows = [], selectedRows = [], sorting, isLoading, isDisabled, keyId, emptyCellValue = emptySymbol, variant = enums_1.Variant.Tree, subrows, className, isError, endOfScrollMsg, errorMsg, noDataPlaceholder, onRowClick, onSort, onRetry, headPreAddon, activeRowId, } = props;
|
|
43
43
|
const { moreButtonColumnPosition = 1, isVisibleCollapseButton = true } = subrows || {};
|
|
44
44
|
const { isInitialExpanded = false, expandedLevel = constants_1.EXPANDED_LEVEL_BY_DEFAULT, initialVisibleChildrenCount = constants_1.INITIAL_OPENED_NESTED_CHILDREN_COUNT_BY_DEFAULT, } = treeRenderConfig || {};
|
|
45
45
|
const TableContainer = isDisabled ? styles_2.DisabledDataGridWrapper : styles_2.DataGridWrapper;
|
|
@@ -54,7 +54,7 @@ const DataGridInfinite = (props) => {
|
|
|
54
54
|
List: List_1.List,
|
|
55
55
|
Item: ({ children, item, ...itemProps }) => {
|
|
56
56
|
const { children: nestedChildren, options, ...row } = item;
|
|
57
|
-
return ((0, jsx_runtime_1.jsx)(Row_1.RowContextProvider, { children: (0, jsx_runtime_1.jsx)(Row_1.Row, { ...rowProps, ...itemProps, row: row, columns: flattenColumns, selectedRows: selectedRows, options: options, keyId: keyId, variant: variant, level: INITIAL_LEVEL, nestedChildren: nestedChildren, isInitialExpanded: isInitialExpanded, expandedLevel: expandedLevel, initialVisibleChildrenCount: initialVisibleChildrenCount, moreButtonColumnPosition: moreButtonColumnPosition, isVisibleCollapseButton: isVisibleCollapseButton, emptyCellValue: emptyCellValue, onRowClick: onRowClick }) }));
|
|
57
|
+
return ((0, jsx_runtime_1.jsx)(Row_1.RowContextProvider, { children: (0, jsx_runtime_1.jsx)(Row_1.Row, { ...rowProps, ...itemProps, row: row, columns: flattenColumns, selectedRows: selectedRows, options: options, keyId: keyId, variant: variant, level: INITIAL_LEVEL, nestedChildren: nestedChildren, isInitialExpanded: isInitialExpanded, expandedLevel: expandedLevel, initialVisibleChildrenCount: initialVisibleChildrenCount, activeRowId: activeRowId, moreButtonColumnPosition: moreButtonColumnPosition, isVisibleCollapseButton: isVisibleCollapseButton, emptyCellValue: emptyCellValue, onRowClick: onRowClick }) }));
|
|
58
58
|
},
|
|
59
59
|
EmptyPlaceholder: () => (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: noDataPlaceholder || (0, jsx_runtime_1.jsx)(NoData_1.NoData, {}) }),
|
|
60
60
|
Footer: () => {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const ConfirmButton: import("@emotion/styled/dist/declarations/src/types").StyledComponent<Omit<import("..").WithoutEmotionSpecific<import("@mui/material").ButtonProps>, "color" | "component" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
|
|
2
|
+
export declare const ConfirmButton: import("@emotion/styled/dist/declarations/src/types").StyledComponent<Omit<import("..").WithoutEmotionSpecific<import("@mui/material").ButtonProps>, "color" | "component" | "size" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
|
|
3
3
|
variant?: "light" | "link" | "text" | "contained" | "outlined" | undefined;
|
|
4
4
|
loading?: boolean | undefined;
|
|
5
5
|
color?: "primary" | "success" | "warning" | "error" | "grey" | undefined;
|
|
6
6
|
component?: import("react").ElementType | undefined;
|
|
7
7
|
selected?: boolean | undefined;
|
|
8
|
+
size?: "large" | "medium" | undefined;
|
|
8
9
|
} & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, ""> & import("react").RefAttributes<HTMLButtonElement> & {
|
|
9
10
|
theme?: import("@emotion/react").Theme | undefined;
|
|
10
11
|
}, {}, {}>;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const StyledButton: import("@emotion/styled/dist/declarations/src/types").StyledComponent<Omit<import("..").WithoutEmotionSpecific<import("@mui/material").ButtonProps>, "color" | "component" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
|
|
2
|
+
export declare const StyledButton: import("@emotion/styled/dist/declarations/src/types").StyledComponent<Omit<import("..").WithoutEmotionSpecific<import("@mui/material").ButtonProps>, "color" | "component" | "size" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
|
|
3
3
|
variant?: "light" | "link" | "text" | "contained" | "outlined" | undefined;
|
|
4
4
|
loading?: boolean | undefined;
|
|
5
5
|
color?: "primary" | "success" | "warning" | "error" | "grey" | undefined;
|
|
6
6
|
component?: import("react").ElementType | undefined;
|
|
7
7
|
selected?: boolean | undefined;
|
|
8
|
+
size?: "large" | "medium" | undefined;
|
|
8
9
|
} & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, ""> & import("react").RefAttributes<HTMLButtonElement> & {
|
|
9
10
|
theme?: import("@emotion/react").Theme | undefined;
|
|
10
11
|
}, {}, {}>;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { type ElementType } from 'react';
|
|
2
2
|
import { type ButtonProps } from '../Button';
|
|
3
3
|
export type IconButtonProps<TComponent extends ElementType = ElementType> = ButtonProps<TComponent>;
|
|
4
|
-
export declare const IconButton: <TComponent extends ElementType>(props: Omit<import("..").WithoutEmotionSpecific<import("@mui/material").ButtonProps>, "color" | "component" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
|
|
4
|
+
export declare const IconButton: <TComponent extends ElementType>(props: Omit<import("..").WithoutEmotionSpecific<import("@mui/material").ButtonProps>, "color" | "component" | "size" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
|
|
5
5
|
variant?: "light" | "link" | "text" | "contained" | "outlined" | undefined;
|
|
6
6
|
loading?: boolean | undefined;
|
|
7
7
|
color?: "primary" | "success" | "warning" | "error" | "grey" | undefined;
|
|
8
8
|
component?: TComponent | undefined;
|
|
9
9
|
selected?: boolean | undefined;
|
|
10
|
+
size?: "large" | "medium" | undefined;
|
|
10
11
|
} & Omit<import("react").ComponentPropsWithRef<ElementType extends TComponent ? "button" : TComponent>, ""> & import("react").RefAttributes<HTMLButtonElement>) => import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | null;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const StyledButton: import("@emotion/styled/dist/declarations/src/types").StyledComponent<Omit<import("..").WithoutEmotionSpecific<import("@mui/material").ButtonProps>, "color" | "component" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
|
|
2
|
+
export declare const StyledButton: import("@emotion/styled/dist/declarations/src/types").StyledComponent<Omit<import("..").WithoutEmotionSpecific<import("@mui/material").ButtonProps>, "color" | "component" | "size" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
|
|
3
3
|
variant?: "light" | "link" | "text" | "contained" | "outlined" | undefined;
|
|
4
4
|
loading?: boolean | undefined;
|
|
5
5
|
color?: "primary" | "success" | "warning" | "error" | "grey" | undefined;
|
|
6
6
|
component?: import("react").ElementType | undefined;
|
|
7
7
|
selected?: boolean | undefined;
|
|
8
|
+
size?: "large" | "medium" | undefined;
|
|
8
9
|
} & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, ""> & import("react").RefAttributes<HTMLButtonElement> & {
|
|
9
10
|
theme?: import("@emotion/react").Theme | undefined;
|
|
10
11
|
}, {}, {}>;
|
|
@@ -36,12 +36,13 @@ export declare const Header: import("@emotion/styled/dist/declarations/src/types
|
|
|
36
36
|
theme?: import("@emotion/react").Theme | undefined;
|
|
37
37
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
38
38
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
|
|
39
|
-
export declare const CloseButton: import("@emotion/styled/dist/declarations/src/types").StyledComponent<Omit<import("../..").WithoutEmotionSpecific<import("@mui/material").ButtonProps>, "color" | "component" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
|
|
39
|
+
export declare const CloseButton: import("@emotion/styled/dist/declarations/src/types").StyledComponent<Omit<import("../..").WithoutEmotionSpecific<import("@mui/material").ButtonProps>, "color" | "component" | "size" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
|
|
40
40
|
variant?: "light" | "link" | "text" | "contained" | "outlined" | undefined;
|
|
41
41
|
loading?: boolean | undefined;
|
|
42
42
|
color?: "primary" | "success" | "warning" | "error" | "grey" | undefined;
|
|
43
43
|
component?: import("react").ElementType | undefined;
|
|
44
44
|
selected?: boolean | undefined;
|
|
45
|
+
size?: "large" | "medium" | undefined;
|
|
45
46
|
} & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, ""> & import("react").RefAttributes<HTMLButtonElement> & {
|
|
46
47
|
theme?: import("@emotion/react").Theme | undefined;
|
|
47
48
|
}, {}, {}>;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const StyledButton: import("@emotion/styled/dist/declarations/src/types").StyledComponent<Omit<import("../..").WithoutEmotionSpecific<import("@mui/material").ButtonProps>, "color" | "component" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
|
|
2
|
+
export declare const StyledButton: import("@emotion/styled/dist/declarations/src/types").StyledComponent<Omit<import("../..").WithoutEmotionSpecific<import("@mui/material").ButtonProps>, "color" | "component" | "size" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
|
|
3
3
|
variant?: "light" | "link" | "text" | "contained" | "outlined" | undefined;
|
|
4
4
|
loading?: boolean | undefined;
|
|
5
5
|
color?: "primary" | "success" | "warning" | "error" | "grey" | undefined;
|
|
6
6
|
component?: import("react").ElementType | undefined;
|
|
7
7
|
selected?: boolean | undefined;
|
|
8
|
+
size?: "large" | "medium" | undefined;
|
|
8
9
|
} & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, ""> & import("react").RefAttributes<HTMLButtonElement> & {
|
|
9
10
|
theme?: import("@emotion/react").Theme | undefined;
|
|
10
11
|
}, {}, {}>;
|