@m4l/components 9.1.120 → 9.1.121

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.
Files changed (68) hide show
  1. package/.storybook/decorators/WithAppearanceContext/index.d.ts +0 -0
  2. package/.storybook/utils/getStylesColorsByMode.d.ts +4 -4
  3. package/components/DataGrid/contexts/DataGridContext/index.js +3 -5
  4. package/components/DataGrid/contexts/DataGridContext/types.d.ts +1 -3
  5. package/components/DataGrid/contexts/FilterContext/index.d.ts +1 -1
  6. package/components/DataGrid/dictionary.d.ts +18 -0
  7. package/components/DataGrid/dictionary.js +19 -1
  8. package/components/DataGrid/formatters/ColumnBooleanFormatter/index.d.ts +1 -1
  9. package/components/DataGrid/formatters/ColumnConcatenatedValueFormatter/index.js +1 -1
  10. package/components/DataGrid/formatters/ColumnDateFormatter/index.d.ts +1 -1
  11. package/components/DataGrid/formatters/ColumnIconFormatter/index.d.ts +1 -1
  12. package/components/DataGrid/formatters/ColumnIconFormatter/index.js +1 -2
  13. package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/index.js +1 -3
  14. package/components/DataGrid/formatters/ColumnSetCheckFormatter/index.d.ts +0 -3
  15. package/components/DataGrid/hooks/useDataGrid.d.ts +2 -1
  16. package/components/DataGrid/icons.d.ts +15 -0
  17. package/components/DataGrid/icons.js +18 -0
  18. package/components/DataGrid/index.d.ts +5 -1
  19. package/components/DataGrid/index.js +5 -10
  20. package/components/DataGrid/slots/DataGridEnum.d.ts +30 -0
  21. package/components/DataGrid/slots/DataGridEnum.js +44 -0
  22. package/components/DataGrid/slots/DataGridSlot.d.ts +48 -0
  23. package/components/DataGrid/slots/DataGridSlot.js +97 -0
  24. package/components/DataGrid/styles.d.ts +2 -1
  25. package/components/DataGrid/styles.js +479 -12
  26. package/components/DataGrid/subcomponents/Actions/index.d.ts +1 -1
  27. package/components/DataGrid/subcomponents/Actions/index.js +7 -7
  28. package/components/DataGrid/subcomponents/Actions/subcomponents/Density/index.d.ts +1 -1
  29. package/components/DataGrid/subcomponents/Actions/subcomponents/Density/index.js +13 -12
  30. package/components/DataGrid/subcomponents/Actions/subcomponents/Filter/index.d.ts +1 -1
  31. package/components/DataGrid/subcomponents/Actions/subcomponents/Filter/index.js +5 -6
  32. package/components/DataGrid/subcomponents/Actions/subcomponents/MobileMenuActions/index.d.ts +1 -1
  33. package/components/DataGrid/subcomponents/Actions/subcomponents/MobileMenuActions/index.js +14 -13
  34. package/components/DataGrid/subcomponents/Actions/subcomponents/RowsCount/index.js +7 -6
  35. package/components/DataGrid/subcomponents/Actions/subcomponents/Settings/index.d.ts +1 -1
  36. package/components/DataGrid/subcomponents/Actions/subcomponents/Settings/index.js +2 -4
  37. package/components/DataGrid/subcomponents/Actions/subcomponents/Settings/subcomponents/ColumnsConfig/index.js +28 -27
  38. package/components/DataGrid/subcomponents/Actions/subcomponents/Settings/subcomponents/ColumnsConfig/types.d.ts +1 -2
  39. package/components/DataGrid/subcomponents/Actions/subcomponents/hooks/useModalSettings/index.js +11 -11
  40. package/components/DataGrid/subcomponents/Actions/types.d.ts +1 -1
  41. package/components/DataGrid/subcomponents/Table/hooks/useSortColumnsRows.js +1 -1
  42. package/components/DataGrid/subcomponents/Table/index.d.ts +1 -1
  43. package/components/DataGrid/subcomponents/Table/index.js +5 -4
  44. package/components/DataGrid/subcomponents/Table/subcomponents/ActionsColumn.js +1 -2
  45. package/components/DataGrid/subcomponents/Table/subcomponents/DraggableHeaderRenderer.js +12 -43
  46. package/components/DataGrid/subcomponents/Table/subcomponents/SelectColumn.js +2 -2
  47. package/components/DataGrid/subcomponents/Table/subcomponents/SkeletonFormatter/index.d.ts +1 -1
  48. package/components/DataGrid/subcomponents/Table/subcomponents/SkeletonFormatter/index.js +2 -4
  49. package/components/DataGrid/subcomponents/editors/TextEditor/index.d.ts +0 -1
  50. package/components/DataGrid/subcomponents/editors/TextEditor/index.js +3 -28
  51. package/components/DataGrid/tests/DataGrid.test.d.ts +1 -0
  52. package/components/DataGrid/types.d.ts +6 -0
  53. package/components/gclick/MyDevice/MyDevice.js +1 -1
  54. package/package.json +1 -1
  55. package/components/DataGrid/classes/constants.d.ts +0 -1
  56. package/components/DataGrid/classes/constants.js +0 -4
  57. package/components/DataGrid/classes/index.d.ts +0 -33
  58. package/components/DataGrid/classes/index.js +0 -71
  59. package/components/DataGrid/classes/types.d.ts +0 -30
  60. package/components/DataGrid/formatters/ColumnDateFormatter/styles.d.ts +0 -1
  61. package/components/DataGrid/subcomponents/Actions/styles.d.ts +0 -1
  62. package/components/DataGrid/subcomponents/Actions/subcomponents/Filter/types.d.ts +0 -2
  63. package/components/DataGrid/subcomponents/Actions/subcomponents/RowsCount/types.d.ts +0 -2
  64. package/components/DataGrid/subcomponents/Actions/subcomponents/Settings/subcomponents/ColumnsConfig/styles.d.ts +0 -7
  65. package/components/DataGrid/subcomponents/Actions/subcomponents/Settings/subcomponents/ColumnsConfig/styles.js +0 -50
  66. package/components/DataGrid/subcomponents/Table/subcomponents/SkeletonFormatter/styles.d.ts +0 -1
  67. package/components/DataGrid/subcomponents/Table/subcomponents/SkeletonFormatter/styles.js +0 -10
  68. /package/components/DataGrid/subcomponents/Actions/subcomponents/{Settings/types.d.ts → types.d.ts} +0 -0
@@ -25,11 +25,11 @@ export declare const colorsLight: {
25
25
  readonly selected: string;
26
26
  readonly selectedOpacity: string;
27
27
  readonly focusVisible: string;
28
- readonly contrastText: string;
29
28
  readonly focus: string;
30
29
  readonly light: string;
31
30
  readonly dark: string;
32
31
  readonly main: string;
32
+ readonly contrastText: string;
33
33
  readonly enabled: string;
34
34
  readonly enabledOpacity: string;
35
35
  readonly hover: string;
@@ -180,11 +180,11 @@ export declare const colorsLight: {
180
180
  readonly selected: string;
181
181
  readonly selectedOpacity: string;
182
182
  readonly focusVisible: string;
183
- readonly contrastText: string;
184
183
  readonly focus: string;
185
184
  readonly light: string;
186
185
  readonly dark: string;
187
186
  readonly main: string;
187
+ readonly contrastText: string;
188
188
  readonly enabled: string;
189
189
  readonly enabledOpacity: string;
190
190
  readonly hover: string;
@@ -336,11 +336,11 @@ export declare const colorsDark: {
336
336
  readonly selected: string;
337
337
  readonly selectedOpacity: string;
338
338
  readonly focusVisible: string;
339
- readonly contrastText: string;
340
339
  readonly focus: string;
341
340
  readonly light: string;
342
341
  readonly dark: string;
343
342
  readonly main: string;
343
+ readonly contrastText: string;
344
344
  readonly enabled: string;
345
345
  readonly enabledOpacity: string;
346
346
  readonly hover: string;
@@ -491,11 +491,11 @@ export declare const colorsDark: {
491
491
  readonly selected: string;
492
492
  readonly selectedOpacity: string;
493
493
  readonly focusVisible: string;
494
- readonly contrastText: string;
495
494
  readonly focus: string;
496
495
  readonly light: string;
497
496
  readonly dark: string;
498
497
  readonly main: string;
498
+ readonly contrastText: string;
499
499
  readonly enabled: string;
500
500
  readonly enabledOpacity: string;
501
501
  readonly hover: string;
@@ -96,13 +96,12 @@ function DataGridProvider(props) {
96
96
  rows,
97
97
  rowsCount,
98
98
  rowActionsGetter,
99
- rowHeights = [28, 32, 36],
100
- rowHeaderHeights = [28, 32, 36],
99
+ rowHeights = [28, 32, 40],
100
+ rowHeaderHeights = [28, 32, 40],
101
101
  initialRowHeightVariant = "compact",
102
102
  checkedRows,
103
103
  onCheckedRowsChange,
104
- rowKeyGetter,
105
- classes
104
+ rowKeyGetter
106
105
  } = props;
107
106
  const [columnsWidths, setColumnsWidths] = useState(
108
107
  /* @__PURE__ */ new Map()
@@ -215,7 +214,6 @@ function DataGridProvider(props) {
215
214
  onChangeColumnWidth,
216
215
  setRowsCount: setRowFilterCountInternal,
217
216
  rowActionsGetter,
218
- classes,
219
217
  setRowHeightVariant: setCurrentRowHeightInternal,
220
218
  onCheckedRowsChange,
221
219
  rowKeyGetter
@@ -1,7 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { Maybe } from '@m4l/core';
3
3
  import { RowKey, RowHeightVariants, GridProps } from '../../types';
4
- import { Classes } from '../../classes/types';
5
4
  export interface IConfigColumn {
6
5
  key: string;
7
6
  visible: boolean;
@@ -22,14 +21,13 @@ export interface DataGridProviderProps<TRow, TSummaryRow, TKey extends RowKey =
22
21
  children: ReactNode;
23
22
  remoteConfig?: IGridConfig;
24
23
  rowsCount: number;
25
- classes: Classes;
26
24
  }
27
25
  export type RowHeightState = {
28
26
  rowHVariant: RowHeightVariants;
29
27
  rowHeight: number;
30
28
  rowHeaderHeight: number;
31
29
  };
32
- export interface DataGridContextProps<TRow, TSummaryRow, TKey extends RowKey = RowKey> extends IGridConfig, Pick<DataGridProviderProps<TRow, TSummaryRow, TKey>, 'rows' | 'checkedRows' | 'onCheckedRowsChange' | 'rowHeights' | 'rowsCount' | 'rowActionsGetter' | 'rowKeyGetter' | 'classes'> {
30
+ export interface DataGridContextProps<TRow, TSummaryRow, TKey extends RowKey = RowKey> extends IGridConfig, Pick<DataGridProviderProps<TRow, TSummaryRow, TKey>, 'rows' | 'checkedRows' | 'onCheckedRowsChange' | 'rowHeights' | 'rowsCount' | 'rowActionsGetter' | 'rowKeyGetter'> {
33
31
  setRowsCount: (newRowsCount: number) => void;
34
32
  currentRowHeaderHeight: number;
35
33
  currentRowHeight: number;
@@ -6,7 +6,7 @@ type FilterProviderProps = {
6
6
  initialActiveFilters: boolean;
7
7
  };
8
8
  /**
9
- * TODO: Documentar
9
+ * Proveedor de contexto para los filtros de la tabla
10
10
  */
11
11
  declare function FilterProvider({ children, initialActiveFilters }: FilterProviderProps): import("react/jsx-runtime").JSX.Element;
12
12
  export { FilterProvider, FilterContext };
@@ -6,4 +6,22 @@ export declare const dictionary: {
6
6
  LABEL_ACTIONS: string;
7
7
  LABEL_ROWS_PER_PAGE: string;
8
8
  LABEL_OF: string;
9
+ DENSITY_COMPACT: string;
10
+ DENSITY_STANDARD: string;
11
+ DENSITY_CONFORTABLE: string;
12
+ DENSITY_TOOLTIP: string;
13
+ TOOLTIP_FILTER_HIDE: string;
14
+ TOOLTIP_FILTER_SHOW: string;
15
+ SETTINGS_COLUMN_NAME: string;
16
+ SETTINGS_COLUMN_POSITION: string;
17
+ SETTINGS_COLUMN_VISIBLE: string;
18
+ SETTINGS_COLUMNS_FROZEN: string;
19
+ SETTINGS_SEL_COLUMNS: string;
20
+ SETTINGS_MOVE_FIRST: string;
21
+ SETTINGS_MOVE_UP: string;
22
+ SETTINGS_MOVE_LAST: string;
23
+ SETTINGS_MOVE_DOWN: string;
24
+ SETTINGS_VISIBLE_ALL: string;
25
+ SETTINGS_NO_VISIBLE_ALL: string;
26
+ SETTINGS_RESTORE: string;
9
27
  };
@@ -6,7 +6,25 @@ function getDataGridComponentsDictionary() {
6
6
  const dictionary = {
7
7
  LABEL_ACTIONS: "actions",
8
8
  LABEL_ROWS_PER_PAGE: "pager.rows_per_page",
9
- LABEL_OF: "pager.of"
9
+ LABEL_OF: "pager.of",
10
+ DENSITY_COMPACT: `${getDataGridComponentsDictionary()[0]}.density_compact`,
11
+ DENSITY_STANDARD: `${getDataGridComponentsDictionary()[0]}.density_standard`,
12
+ DENSITY_CONFORTABLE: `${getDataGridComponentsDictionary()[0]}.density_confortable`,
13
+ DENSITY_TOOLTIP: `${getDataGridComponentsDictionary()[0]}.tooltip_density`,
14
+ TOOLTIP_FILTER_HIDE: `${getDataGridComponentsDictionary()[0]}.tooltip_filter_hide`,
15
+ TOOLTIP_FILTER_SHOW: `${getDataGridComponentsDictionary()[0]}.tooltip_filter_show`,
16
+ SETTINGS_COLUMN_NAME: `${getDataGridComponentsDictionary()[0]}.settings_column_name`,
17
+ SETTINGS_COLUMN_POSITION: `${getDataGridComponentsDictionary()[0]}.settings_column_position`,
18
+ SETTINGS_COLUMN_VISIBLE: `${getDataGridComponentsDictionary()[0]}.settings_column_visible`,
19
+ SETTINGS_COLUMNS_FROZEN: `${getDataGridComponentsDictionary()[0]}.settings_column_frozen`,
20
+ SETTINGS_SEL_COLUMNS: `${getDataGridComponentsDictionary()[0]}.settings_sel_columns`,
21
+ SETTINGS_MOVE_FIRST: `${getDataGridComponentsDictionary()[0]}.settings_move_first`,
22
+ SETTINGS_MOVE_UP: `${getDataGridComponentsDictionary()[0]}.settings_move_up`,
23
+ SETTINGS_MOVE_LAST: `${getDataGridComponentsDictionary()[0]}.settings_move_last`,
24
+ SETTINGS_MOVE_DOWN: `${getDataGridComponentsDictionary()[0]}.settings_move_down`,
25
+ SETTINGS_VISIBLE_ALL: `${getDataGridComponentsDictionary()[0]}.settings_visible_all`,
26
+ SETTINGS_NO_VISIBLE_ALL: `${getDataGridComponentsDictionary()[0]}.settings_no_visible_all`,
27
+ SETTINGS_RESTORE: `${getDataGridComponentsDictionary()[0]}.settings_restore`
10
28
  };
11
29
  export {
12
30
  dictionary as d,
@@ -1,5 +1,5 @@
1
1
  import { ColumnBooleanFormatterProps } from './types';
2
2
  /**
3
- * TODO: Documentar
3
+ * Función para formatear un booleano en una columna de un DataGrid
4
4
  */
5
5
  export declare function ColumnBooleanFormatter(props: ColumnBooleanFormatterProps): (obProps: any) => import("react/jsx-runtime").JSX.Element;
@@ -8,7 +8,7 @@ function ColumnConcatenatedValueFormatter(props) {
8
8
  const valueMaybeString = getPropertyByString(obProps, element);
9
9
  let fixedValue;
10
10
  if (typeof valueMaybeString === "string" || typeof valueMaybeString === "number") {
11
- fixedValue = valueMaybeString;
11
+ fixedValue = valueMaybeString.toString();
12
12
  } else {
13
13
  fixedValue = "";
14
14
  }
@@ -1,5 +1,5 @@
1
1
  import { ColumnDateFormatterProps } from './types';
2
2
  /**
3
- * TODO: Documentar
3
+ * Función para formatear una fecha en una columna de un DataGrid
4
4
  */
5
5
  export declare function ColumnDateFormatter(props: ColumnDateFormatterProps): (obProps: any) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import { ColumnIconFormatterProps } from './types';
2
2
  /**
3
- * TODO: Documentar
3
+ * Función para formatear un icono en una columna de un DataGrid
4
4
  */
5
5
  export declare function ColumnIconFormatter(props: ColumnIconFormatterProps): (obProps: any) => import("react/jsx-runtime").JSX.Element;
@@ -1,11 +1,10 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { d as dataGridClasses } from "../../classes/index.js";
3
2
  import { I as Icon } from "../../../Icon/Icon.js";
4
3
  function ColumnIconFormatter(props) {
5
4
  const { getIconUrl } = props;
6
5
  return (obProps) => {
7
6
  const { iconUrl } = getIconUrl(obProps);
8
- return /* @__PURE__ */ jsx("div", { className: dataGridClasses.iconFormatter, children: /* @__PURE__ */ jsx(Icon, { src: iconUrl }) });
7
+ return /* @__PURE__ */ jsx(Icon, { src: iconUrl });
9
8
  };
10
9
  }
11
10
  export {
@@ -1,6 +1,5 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { Checkbox } from "@mui/material";
3
- import { d as dataGridClasses } from "../../classes/index.js";
4
3
  function ColumnInteractiveCheckFormatter(props) {
5
4
  const { row, onRowChange, column } = props;
6
5
  const handleChange = () => {
@@ -13,8 +12,7 @@ function ColumnInteractiveCheckFormatter(props) {
13
12
  {
14
13
  size: "small",
15
14
  checked: row[column.key] || false,
16
- onChange: handleChange,
17
- className: dataGridClasses.formatterColumn
15
+ onChange: handleChange
18
16
  }
19
17
  );
20
18
  }
@@ -6,7 +6,4 @@ import { RowKey } from '../../types';
6
6
  * acualizando un Set/Setter por medio de un hook generico el cual es invocado con el argumento field para ,
7
7
  * sin la necesidad de entrar en edición como lo hace un editor
8
8
  */
9
- /**
10
- * TODO: Documentar
11
- */
12
9
  export declare function ColumnSetCheckFormatter<Row, TKey extends RowKey = RowKey>(parameters: ColumnSetCheckFormatterProps<Row, TKey>): (props: FormatterProps<Row>) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,7 @@
1
1
  import { DataGridContextProps } from '../contexts/DataGridContext/types';
2
2
  /**
3
- * TODO: Documentar
3
+ * Hook para obtener el contexto de DataGrid
4
+ * @returns DataGridContextProps
4
5
  */
5
6
  export declare function useDataGrid<TRow, TSummaryRow>(): DataGridContextProps<TRow, TSummaryRow>;
6
7
  export default useDataGrid;
@@ -0,0 +1,15 @@
1
+ export declare const pathIcons: {
2
+ compact: string;
3
+ standard: string;
4
+ confortable: string;
5
+ filter: string;
6
+ configuration: string;
7
+ menu: string;
8
+ moveFirstPlace: string;
9
+ moveUpPlace: string;
10
+ moveLastPlace: string;
11
+ moveDownPlace: string;
12
+ checkAll: string;
13
+ uncheckAll: string;
14
+ restoreColumns: string;
15
+ };
@@ -0,0 +1,18 @@
1
+ const pathIcons = {
2
+ compact: "frontend/components/data_grid/assets/icons/compact.svg",
3
+ standard: "frontend/components/data_grid/assets/icons/standard.svg",
4
+ confortable: "frontend/components/data_grid/assets/icons/confortable.svg",
5
+ filter: "frontend/components/data_grid/assets/icons/filter.svg",
6
+ configuration: "frontend/components/data_grid/assets/icons/configuration.svg",
7
+ menu: "frontend/components/data_grid/assets/icons/menu.svg",
8
+ moveFirstPlace: "frontend/components/data_grid/assets/icons/move_first_place.svg",
9
+ moveUpPlace: "frontend/components/data_grid/assets/icons/move_up_place.svg",
10
+ moveLastPlace: "frontend/components/data_grid/assets/icons/move_last_place.svg",
11
+ moveDownPlace: "frontend/components/data_grid/assets/icons/move_down_place.svg",
12
+ checkAll: "frontend/components/data_grid/assets/icons/check_all.svg",
13
+ uncheckAll: "frontend/components/data_grid/assets/icons/uncheck_all.svg",
14
+ restoreColumns: "frontend/components/data_grid/assets/icons/restore_columns.svg"
15
+ };
16
+ export {
17
+ pathIcons as p
18
+ };
@@ -1,5 +1,9 @@
1
1
  import { DataGridProps, RowKey } from './types';
2
2
  /**
3
- * TODO: Documentar
3
+ * DataGrid es un componente encargado de mostrar información en una tabla
4
+ * con funcionalidades de paginación, filtros y acciones.
5
+ * ### Dependencies:
6
+ * - **`useResponsiveContainerStore:`** Hook que permite obtener el tamaño del contenedor.
7
+ * - **`useModuleDictionary:`** Hook que permite manejar la internacionalización de los textos.
4
8
  */
5
9
  export declare function DataGrid<TRow, TSummaryRow, TKey extends RowKey = RowKey>(props: DataGridProps<TRow, TSummaryRow, TKey>): import("react/jsx-runtime").JSX.Element;
@@ -1,14 +1,14 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
- import { D as DataGridRoot } from "./styles.js";
3
2
  import { T as Table } from "./subcomponents/Table/index.js";
4
3
  import { A as Actions } from "./subcomponents/Actions/index.js";
5
4
  import { a as FilterProvider } from "./contexts/FilterContext/index.js";
6
5
  import { a as DataGridProvider } from "./contexts/DataGridContext/index.js";
7
6
  import { T as TEST_PROP_COLUMNS } from "./types.js";
8
- import { a as dataGridUtilityClasses } from "./classes/index.js";
9
7
  import { T as TEST_PROP_ID } from "../../test/constants_no_mock.js";
10
8
  import { a as getNameDataTestId } from "../../test/getNameDataTestId.js";
11
9
  import { D as DATAGRID_PREFIX_NAME } from "./constants.js";
10
+ import { D as DataGridRootStyled } from "./slots/DataGridSlot.js";
11
+ import { a as getComponentSlotRoot } from "../../utils/getComponentSlotRoot.js";
12
12
  function DataGrid(props) {
13
13
  const {
14
14
  id,
@@ -28,15 +28,11 @@ function DataGrid(props) {
28
28
  onCheckedRowsChange,
29
29
  dataTestId = ""
30
30
  } = props;
31
- const ownerState = {
32
- actionsProps,
33
- withActions
34
- };
35
- const classes = dataGridUtilityClasses(ownerState);
31
+ const classRoot = getComponentSlotRoot(DATAGRID_PREFIX_NAME);
36
32
  return /* @__PURE__ */ jsx(
37
- DataGridRoot,
33
+ DataGridRootStyled,
38
34
  {
39
- className: classes.root,
35
+ className: classRoot,
40
36
  ...process.env.NODE_ENV !== "production" ? {
41
37
  [TEST_PROP_COLUMNS]: JSON.stringify(columns),
42
38
  [TEST_PROP_ID]: getNameDataTestId(DATAGRID_PREFIX_NAME, "root", dataTestId)
@@ -55,7 +51,6 @@ function DataGrid(props) {
55
51
  onCheckedRowsChange,
56
52
  rowKeyGetter,
57
53
  rows,
58
- classes,
59
54
  children: /* @__PURE__ */ jsxs(FilterProvider, { initialActiveFilters: false, children: [
60
55
  withActions && actionsProps && /* @__PURE__ */ jsx(
61
56
  Actions,
@@ -0,0 +1,30 @@
1
+ export declare enum DataGridSlots {
2
+ datagridRoot = "datagridRoot"
3
+ }
4
+ export declare enum ActionsSlots {
5
+ actionsRoot = "actionsRoot",
6
+ actionsConfigContainer = "actionsConfigContainer"
7
+ }
8
+ export declare enum RowsCountSlots {
9
+ rowsCountRoot = "rowsCountRoot",
10
+ rowsCountLabel = "rowsCountLabel",
11
+ rowsCountValue = "rowsCountValue"
12
+ }
13
+ export declare enum TableSlots {
14
+ tableContaniner = "tableContaniner",
15
+ tableWrapperDataGrid = "tableWrapperDataGrid",
16
+ draggableHeaderRoot = "draggableHeaderRoot",
17
+ draggableWrapperInputBase = "draggableWrapperInputBase",
18
+ headerInputBase = "headerInputBase",
19
+ wrapperSkeleton = "wrapperSkeleton",
20
+ contentModalSetting = "contentModalSetting"
21
+ }
22
+ export declare enum TextEditorSlots {
23
+ inputTexEditor = "inputTexEditor"
24
+ }
25
+ export declare enum ColumnsConfigSlots {
26
+ columnsConfigWrapper = "columnsConfigWrapper",
27
+ columnsConfigSelColumns = "columnsConfigSelColumns",
28
+ columnsConfigDataGrid = "columnsConfigDataGrid",
29
+ columnsConfigActios = "columnsConfigActios"
30
+ }
@@ -0,0 +1,44 @@
1
+ var DataGridSlots = /* @__PURE__ */ ((DataGridSlots2) => {
2
+ DataGridSlots2["datagridRoot"] = "datagridRoot";
3
+ return DataGridSlots2;
4
+ })(DataGridSlots || {});
5
+ var ActionsSlots = /* @__PURE__ */ ((ActionsSlots2) => {
6
+ ActionsSlots2["actionsRoot"] = "actionsRoot";
7
+ ActionsSlots2["actionsConfigContainer"] = "actionsConfigContainer";
8
+ return ActionsSlots2;
9
+ })(ActionsSlots || {});
10
+ var RowsCountSlots = /* @__PURE__ */ ((RowsCountSlots2) => {
11
+ RowsCountSlots2["rowsCountRoot"] = "rowsCountRoot";
12
+ RowsCountSlots2["rowsCountLabel"] = "rowsCountLabel";
13
+ RowsCountSlots2["rowsCountValue"] = "rowsCountValue";
14
+ return RowsCountSlots2;
15
+ })(RowsCountSlots || {});
16
+ var TableSlots = /* @__PURE__ */ ((TableSlots2) => {
17
+ TableSlots2["tableContaniner"] = "tableContaniner";
18
+ TableSlots2["tableWrapperDataGrid"] = "tableWrapperDataGrid";
19
+ TableSlots2["draggableHeaderRoot"] = "draggableHeaderRoot";
20
+ TableSlots2["draggableWrapperInputBase"] = "draggableWrapperInputBase";
21
+ TableSlots2["headerInputBase"] = "headerInputBase";
22
+ TableSlots2["wrapperSkeleton"] = "wrapperSkeleton";
23
+ TableSlots2["contentModalSetting"] = "contentModalSetting";
24
+ return TableSlots2;
25
+ })(TableSlots || {});
26
+ var TextEditorSlots = /* @__PURE__ */ ((TextEditorSlots2) => {
27
+ TextEditorSlots2["inputTexEditor"] = "inputTexEditor";
28
+ return TextEditorSlots2;
29
+ })(TextEditorSlots || {});
30
+ var ColumnsConfigSlots = /* @__PURE__ */ ((ColumnsConfigSlots2) => {
31
+ ColumnsConfigSlots2["columnsConfigWrapper"] = "columnsConfigWrapper";
32
+ ColumnsConfigSlots2["columnsConfigSelColumns"] = "columnsConfigSelColumns";
33
+ ColumnsConfigSlots2["columnsConfigDataGrid"] = "columnsConfigDataGrid";
34
+ ColumnsConfigSlots2["columnsConfigActios"] = "columnsConfigActios";
35
+ return ColumnsConfigSlots2;
36
+ })(ColumnsConfigSlots || {});
37
+ export {
38
+ ActionsSlots as A,
39
+ ColumnsConfigSlots as C,
40
+ DataGridSlots as D,
41
+ RowsCountSlots as R,
42
+ TableSlots as T,
43
+ TextEditorSlots as a
44
+ };
@@ -0,0 +1,48 @@
1
+ /**
2
+ * ****************
3
+ * Slots DataGrid
4
+ * ****************
5
+ */
6
+ export declare const DataGridRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown>, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').HTMLAttributes<HTMLDivElement> | keyof import('react').ClassAttributes<HTMLDivElement>>, {}>;
7
+ /**
8
+ * ****************
9
+ * Slots Actions
10
+ * ****************
11
+ */
12
+ export declare const ActionsRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown>, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').HTMLAttributes<HTMLDivElement> | keyof import('react').ClassAttributes<HTMLDivElement>>, {}>;
13
+ export declare const ActionsConfigContainerStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown>, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').HTMLAttributes<HTMLDivElement> | keyof import('react').ClassAttributes<HTMLDivElement>>, {}>;
14
+ /**
15
+ * ****************
16
+ * Slots RowsCount
17
+ * ****************
18
+ */
19
+ export declare const RowsCountRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown>, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').HTMLAttributes<HTMLDivElement> | keyof import('react').ClassAttributes<HTMLDivElement>>, {}>;
20
+ export declare const RowsCountLabelStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown>, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').HTMLAttributes<HTMLDivElement> | keyof import('react').ClassAttributes<HTMLDivElement>>, {}>;
21
+ export declare const RowsCountValueStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown>, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').HTMLAttributes<HTMLDivElement> | keyof import('react').ClassAttributes<HTMLDivElement>>, {}>;
22
+ /**
23
+ * ****************
24
+ * Slots ColumnsConfig
25
+ * ****************
26
+ */
27
+ export declare const ColumnsConfigWrapperStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown>, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').HTMLAttributes<HTMLDivElement> | keyof import('react').ClassAttributes<HTMLDivElement>>, {}>;
28
+ export declare const ColumnsConfigSelColumnsStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown>, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').HTMLAttributes<HTMLDivElement> | keyof import('react').ClassAttributes<HTMLDivElement>>, {}>;
29
+ export declare const ColumnsConfigDataGridStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown>, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').HTMLAttributes<HTMLDivElement> | keyof import('react').ClassAttributes<HTMLDivElement>>, {}>;
30
+ export declare const ColumnsConfigActiosStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown>, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').HTMLAttributes<HTMLDivElement> | keyof import('react').ClassAttributes<HTMLDivElement>>, {}>;
31
+ /**
32
+ * ****************
33
+ * Slots Table
34
+ * ****************
35
+ */
36
+ export declare const TableContainerStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown>, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').HTMLAttributes<HTMLDivElement> | keyof import('react').ClassAttributes<HTMLDivElement>>, {}>;
37
+ export declare const TableWrapperDataGridStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown>, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').HTMLAttributes<HTMLDivElement> | keyof import('react').ClassAttributes<HTMLDivElement>>, {}>;
38
+ export declare const DraggableHeaderRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown>, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').HTMLAttributes<HTMLDivElement> | keyof import('react').ClassAttributes<HTMLDivElement>>, {}>;
39
+ export declare const DraggableWrapperInputBaseStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown>, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').HTMLAttributes<HTMLDivElement> | keyof import('react').ClassAttributes<HTMLDivElement>>, {}>;
40
+ export declare const HeaderInputBaseStyled: import('@emotion/styled').StyledComponent<Pick<import('@mui/material').InputBaseProps, keyof import('@mui/material').InputBaseProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown>, {}, {}>;
41
+ export declare const WrapperSkeletonStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown>, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').HTMLAttributes<HTMLDivElement> | keyof import('react').ClassAttributes<HTMLDivElement>>, {}>;
42
+ export declare const ContentModalSettingStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown>, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').HTMLAttributes<HTMLDivElement> | keyof import('react').ClassAttributes<HTMLDivElement>>, {}>;
43
+ /**
44
+ * ****************
45
+ * Slots TextEditor
46
+ * ****************
47
+ */
48
+ export declare const InputTextEditorStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown>, Pick<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, keyof import('react').ClassAttributes<HTMLInputElement> | keyof import('react').InputHTMLAttributes<HTMLInputElement>>, {}>;
@@ -0,0 +1,97 @@
1
+ import { styled } from "@mui/material/styles";
2
+ import { InputBase } from "@mui/material";
3
+ import { D as DATAGRID_PREFIX_NAME } from "../constants.js";
4
+ import { D as DataGridSlots, A as ActionsSlots, R as RowsCountSlots, C as ColumnsConfigSlots, T as TableSlots, a as TextEditorSlots } from "./DataGridEnum.js";
5
+ import { d as dataGridStyles } from "../styles.js";
6
+ const DataGridRootStyled = styled("div", {
7
+ name: DATAGRID_PREFIX_NAME,
8
+ slot: DataGridSlots.datagridRoot
9
+ })(dataGridStyles.datagridRoot);
10
+ const ActionsRootStyled = styled("div", {
11
+ name: DATAGRID_PREFIX_NAME,
12
+ slot: ActionsSlots.actionsRoot
13
+ })(dataGridStyles.actionsRoot);
14
+ const ActionsConfigContainerStyled = styled("div", {
15
+ name: DATAGRID_PREFIX_NAME,
16
+ slot: ActionsSlots.actionsConfigContainer
17
+ })(dataGridStyles.actionsConfigContainer);
18
+ const RowsCountRootStyled = styled("div", {
19
+ name: DATAGRID_PREFIX_NAME,
20
+ slot: RowsCountSlots.rowsCountRoot
21
+ })(dataGridStyles.rowsCountRoot);
22
+ const RowsCountLabelStyled = styled("div", {
23
+ name: DATAGRID_PREFIX_NAME,
24
+ slot: RowsCountSlots.rowsCountLabel
25
+ })(dataGridStyles.rowsCountLabel);
26
+ const RowsCountValueStyled = styled("div", {
27
+ name: DATAGRID_PREFIX_NAME,
28
+ slot: RowsCountSlots.rowsCountValue
29
+ })(dataGridStyles.rowsCountValue);
30
+ const ColumnsConfigWrapperStyled = styled("div", {
31
+ name: DATAGRID_PREFIX_NAME,
32
+ slot: ColumnsConfigSlots.columnsConfigWrapper
33
+ })(dataGridStyles.columnsConfigWrapper);
34
+ const ColumnsConfigSelColumnsStyled = styled("div", {
35
+ name: DATAGRID_PREFIX_NAME,
36
+ slot: ColumnsConfigSlots.columnsConfigSelColumns
37
+ })(dataGridStyles.columnsConfigSelColumns);
38
+ const ColumnsConfigDataGridStyled = styled("div", {
39
+ name: DATAGRID_PREFIX_NAME,
40
+ slot: ColumnsConfigSlots.columnsConfigDataGrid
41
+ })(dataGridStyles.columnsConfigDataGrid);
42
+ const ColumnsConfigActiosStyled = styled("div", {
43
+ name: DATAGRID_PREFIX_NAME,
44
+ slot: ColumnsConfigSlots.columnsConfigActios
45
+ })(dataGridStyles.columnsConfigActios);
46
+ const TableContainerStyled = styled("div", {
47
+ name: DATAGRID_PREFIX_NAME,
48
+ slot: TableSlots.tableContaniner
49
+ })(dataGridStyles.tableContaniner);
50
+ const TableWrapperDataGridStyled = styled("div", {
51
+ name: DATAGRID_PREFIX_NAME,
52
+ slot: TableSlots.tableWrapperDataGrid
53
+ })(dataGridStyles.tableWrapperDataGrid);
54
+ const DraggableHeaderRootStyled = styled("div", {
55
+ name: DATAGRID_PREFIX_NAME,
56
+ slot: TableSlots.draggableHeaderRoot
57
+ })(dataGridStyles.draggableHeaderRoot);
58
+ const DraggableWrapperInputBaseStyled = styled("div", {
59
+ name: DATAGRID_PREFIX_NAME,
60
+ slot: TableSlots.draggableWrapperInputBase
61
+ })(dataGridStyles.draggableWrapperInputBase);
62
+ const HeaderInputBaseStyled = styled(InputBase, {
63
+ name: DATAGRID_PREFIX_NAME,
64
+ slot: TableSlots.headerInputBase
65
+ })(dataGridStyles.headerInputBase);
66
+ const WrapperSkeletonStyled = styled("div", {
67
+ name: DATAGRID_PREFIX_NAME,
68
+ slot: TableSlots.wrapperSkeleton
69
+ })(dataGridStyles.wrapperSkeleton);
70
+ const ContentModalSettingStyled = styled("div", {
71
+ name: DATAGRID_PREFIX_NAME,
72
+ slot: TableSlots.contentModalSetting
73
+ })(dataGridStyles.contentModalSetting);
74
+ const InputTextEditorStyled = styled("input", {
75
+ name: DATAGRID_PREFIX_NAME,
76
+ slot: TextEditorSlots.inputTexEditor
77
+ })(dataGridStyles.inputTexEditor);
78
+ export {
79
+ ActionsRootStyled as A,
80
+ ColumnsConfigWrapperStyled as C,
81
+ DataGridRootStyled as D,
82
+ HeaderInputBaseStyled as H,
83
+ InputTextEditorStyled as I,
84
+ RowsCountRootStyled as R,
85
+ TableWrapperDataGridStyled as T,
86
+ WrapperSkeletonStyled as W,
87
+ ActionsConfigContainerStyled as a,
88
+ RowsCountLabelStyled as b,
89
+ RowsCountValueStyled as c,
90
+ ColumnsConfigSelColumnsStyled as d,
91
+ ColumnsConfigDataGridStyled as e,
92
+ ColumnsConfigActiosStyled as f,
93
+ ContentModalSettingStyled as g,
94
+ TableContainerStyled as h,
95
+ DraggableHeaderRootStyled as i,
96
+ DraggableWrapperInputBaseStyled as j
97
+ };
@@ -1 +1,2 @@
1
- export declare const DataGridRoot: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
1
+ import { DataGridStyles } from './types';
2
+ export declare const dataGridStyles: DataGridStyles;