@m4l/components 9.2.60-J24062025.beta.1 → 9.2.60-J25062025.beta.1
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/DataGrid/Datagrid.styles.js +18 -0
- package/components/DataGrid/slots/DataGridEnum.d.ts +3 -1
- package/components/DataGrid/slots/DataGridEnum.js +2 -0
- package/components/DataGrid/slots/DataGridSlot.d.ts +2 -0
- package/components/DataGrid/slots/DataGridSlot.js +15 -5
- package/components/DataGrid/subcomponents/Table/subcomponents/DraggableHeaderRenderer.js +3 -3
- package/components/DataGrid/subcomponents/Table/subcomponents/HeaderRenderClick/HeaderRenderClick.js +2 -2
- package/components/DataGrid/subcomponents/editors/TextEditor/index.js +1 -1
- package/package.json +1 -1
|
@@ -626,6 +626,24 @@ const dataGridStyles = {
|
|
|
626
626
|
* Estilos para el contenedor del nombre de la columna y el icono de sort
|
|
627
627
|
*/
|
|
628
628
|
nameColumnIcon: ({ theme }) => ({
|
|
629
|
+
display: "flex",
|
|
630
|
+
alignItems: "center",
|
|
631
|
+
gap: theme.vars.size.baseSpacings.sp1,
|
|
632
|
+
position: "relative",
|
|
633
|
+
overflow: "visible"
|
|
634
|
+
}),
|
|
635
|
+
/**
|
|
636
|
+
* Estilos para el contenedor del nombre de la columna
|
|
637
|
+
*/
|
|
638
|
+
nameColumn: () => ({
|
|
639
|
+
textOverflow: "ellipsis",
|
|
640
|
+
overflow: "hidden",
|
|
641
|
+
whiteSpace: "nowrap"
|
|
642
|
+
}),
|
|
643
|
+
/**
|
|
644
|
+
* Estilos para el contenedor del icono de la columna
|
|
645
|
+
*/
|
|
646
|
+
iconColumn: ({ theme }) => ({
|
|
629
647
|
display: "flex",
|
|
630
648
|
alignItems: "center",
|
|
631
649
|
gap: theme.vars.size.baseSpacings.sp1
|
|
@@ -25,7 +25,9 @@ export declare enum TableSlots {
|
|
|
25
25
|
headerRenderClick = "headerRenderClick",
|
|
26
26
|
menuList = "menuList",
|
|
27
27
|
buttonHeaderActions = "buttonHeaderActions",
|
|
28
|
-
nameColumnIcon = "nameColumnIcon"
|
|
28
|
+
nameColumnIcon = "nameColumnIcon",
|
|
29
|
+
iconColumn = "iconColumn",
|
|
30
|
+
nameColumn = "nameColumn"
|
|
29
31
|
}
|
|
30
32
|
export declare enum TextEditorSlots {
|
|
31
33
|
inputTexEditor = "inputTexEditor"
|
|
@@ -29,6 +29,8 @@ var TableSlots = /* @__PURE__ */ ((TableSlots2) => {
|
|
|
29
29
|
TableSlots2["menuList"] = "menuList";
|
|
30
30
|
TableSlots2["buttonHeaderActions"] = "buttonHeaderActions";
|
|
31
31
|
TableSlots2["nameColumnIcon"] = "nameColumnIcon";
|
|
32
|
+
TableSlots2["iconColumn"] = "iconColumn";
|
|
33
|
+
TableSlots2["nameColumn"] = "nameColumn";
|
|
32
34
|
return TableSlots2;
|
|
33
35
|
})(TableSlots || {});
|
|
34
36
|
var TextEditorSlots = /* @__PURE__ */ ((TextEditorSlots2) => {
|
|
@@ -48,6 +48,8 @@ export declare const HeaderRenderClickStyled: import('@emotion/styled').StyledCo
|
|
|
48
48
|
export declare const MenuListStyled: import('@emotion/styled').StyledComponent<any, {}, {}>;
|
|
49
49
|
export declare const ButtonHeaderActionsStyled: import('@emotion/styled').StyledComponent<any, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
50
50
|
export declare const NameColumnIconStyled: import('@emotion/styled').StyledComponent<any, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
51
|
+
export declare const IconColumnStyled: import('@emotion/styled').StyledComponent<any, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
52
|
+
export declare const NameColumnStyled: import('@emotion/styled').StyledComponent<any, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
51
53
|
/**
|
|
52
54
|
* ****************
|
|
53
55
|
* Slots TextEditor
|
|
@@ -104,6 +104,14 @@ const NameColumnIconStyled = styled("div", {
|
|
|
104
104
|
name: DATAGRID_PREFIX_NAME,
|
|
105
105
|
slot: TableSlots.nameColumnIcon
|
|
106
106
|
})(dataGridStyles.nameColumnIcon);
|
|
107
|
+
const IconColumnStyled = styled("div", {
|
|
108
|
+
name: DATAGRID_PREFIX_NAME,
|
|
109
|
+
slot: TableSlots.iconColumn
|
|
110
|
+
})(dataGridStyles.iconColumn);
|
|
111
|
+
const NameColumnStyled = styled("div", {
|
|
112
|
+
name: DATAGRID_PREFIX_NAME,
|
|
113
|
+
slot: TableSlots.nameColumn
|
|
114
|
+
})(dataGridStyles.nameColumn);
|
|
107
115
|
const InputTextEditorStyled = styled("input", {
|
|
108
116
|
name: DATAGRID_PREFIX_NAME,
|
|
109
117
|
slot: TextEditorSlots.inputTexEditor
|
|
@@ -118,7 +126,7 @@ export {
|
|
|
118
126
|
CustomHeaderStyled as C,
|
|
119
127
|
DataGridRootStyled as D,
|
|
120
128
|
HeaderInputBaseStyled as H,
|
|
121
|
-
|
|
129
|
+
IconColumnStyled as I,
|
|
122
130
|
MenuListStyled as M,
|
|
123
131
|
NameColumnIconStyled as N,
|
|
124
132
|
RowsCountRootStyled as R,
|
|
@@ -136,8 +144,10 @@ export {
|
|
|
136
144
|
ColumnsConfigActiosStyled as j,
|
|
137
145
|
ContentModalSettingStyled as k,
|
|
138
146
|
TableContainerStyled as l,
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
147
|
+
NameColumnStyled as m,
|
|
148
|
+
DraggableHeaderRootStyled as n,
|
|
149
|
+
DraggableWrapperInputBaseStyled as o,
|
|
150
|
+
IconSearchStyled as p,
|
|
151
|
+
HeaderRenderClickStyled as q,
|
|
152
|
+
InputTextEditorStyled as r
|
|
143
153
|
};
|
|
@@ -5,7 +5,7 @@ import { useDrag, useDrop } from "react-dnd";
|
|
|
5
5
|
import { HeaderRenderer } from "react-data-grid";
|
|
6
6
|
import { u as useFocusRef } from "../hooks/useFocusRef.js";
|
|
7
7
|
import { u as useFilters } from "../../../hooks/useFilters.js";
|
|
8
|
-
import { N as NameColumnIconStyled, m as DraggableHeaderRootStyled, B as ButtonHeaderActionsStyled,
|
|
8
|
+
import { N as NameColumnIconStyled, m as NameColumnStyled, I as IconColumnStyled, n as DraggableHeaderRootStyled, B as ButtonHeaderActionsStyled, o as DraggableWrapperInputBaseStyled, p as IconSearchStyled, H as HeaderInputBaseStyled } from "../../../slots/DataGridSlot.js";
|
|
9
9
|
import { p as pathIcons } from "../../../icons.js";
|
|
10
10
|
import { u as useDataGrid } from "../../../hooks/useDataGrid.js";
|
|
11
11
|
import { I as Icon } from "../../../../Icon/Icon.js";
|
|
@@ -104,8 +104,8 @@ function DraggableHeaderRenderer(props) {
|
|
|
104
104
|
const columnIcons = getColumnIcons();
|
|
105
105
|
if (columnIcons) {
|
|
106
106
|
newColumn.name = /* @__PURE__ */ jsxs(NameColumnIconStyled, { children: [
|
|
107
|
-
newColumn.name,
|
|
108
|
-
columnIcons
|
|
107
|
+
/* @__PURE__ */ jsx(NameColumnStyled, { children: newColumn.name }),
|
|
108
|
+
/* @__PURE__ */ jsx(IconColumnStyled, { children: columnIcons })
|
|
109
109
|
] });
|
|
110
110
|
}
|
|
111
111
|
}
|
package/components/DataGrid/subcomponents/Table/subcomponents/HeaderRenderClick/HeaderRenderClick.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState, useMemo, useEffect, useCallback } from "react";
|
|
3
3
|
import { useModuleDictionary } from "@m4l/core";
|
|
4
4
|
import { M as MenuItem } from "../../../../../mui_extended/MenuItem/MenuItem.js";
|
|
5
|
-
import { M as MenuListStyled,
|
|
5
|
+
import { M as MenuListStyled, q as HeaderRenderClickStyled } from "../../../../slots/DataGridSlot.js";
|
|
6
6
|
import { M as MenuDivider } from "../../../../../mui_extended/MenuDivider/MenuDivider.js";
|
|
7
7
|
import { P as Popover } from "../../../../../mui_extended/Popover/Popover.js";
|
|
8
8
|
import { D as DICTIONARY } from "../../../../dictionary.js";
|
|
@@ -128,7 +128,7 @@ function HeaderRenderClick(props) {
|
|
|
128
128
|
paper: {
|
|
129
129
|
...paperProps,
|
|
130
130
|
sx: {
|
|
131
|
-
mt: !activeFilters ? 0 : 6.5,
|
|
131
|
+
mt: !activeFilters ? 0.3 : 6.5,
|
|
132
132
|
...paperProps?.sx
|
|
133
133
|
}
|
|
134
134
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { r as InputTextEditorStyled } from "../../../slots/DataGridSlot.js";
|
|
3
3
|
function autoFocusAndSelect(input) {
|
|
4
4
|
input?.focus();
|
|
5
5
|
input?.select();
|