@imj_media/ui 1.2.71 → 1.2.73
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/CHANGELOG.md +11 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +6880 -6743
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +9 -9
- package/dist/index.js.map +1 -1
- package/dist/modules/Badge/index.d.ts +1 -1
- package/dist/modules/Badge/index.d.ts.map +1 -1
- package/dist/modules/Table/Table.d.ts +1 -1
- package/dist/modules/Table/Table.d.ts.map +1 -1
- package/dist/modules/Table/components/atoms/ActionsCell.d.ts +1 -1
- package/dist/modules/Table/components/atoms/ActionsCell.d.ts.map +1 -1
- package/dist/modules/Table/components/atoms/AvatarsCell.d.ts +1 -1
- package/dist/modules/Table/components/atoms/AvatarsCell.d.ts.map +1 -1
- package/dist/modules/Table/components/atoms/ButtonCell.d.ts +1 -1
- package/dist/modules/Table/components/atoms/ButtonCell.d.ts.map +1 -1
- package/dist/modules/Table/components/atoms/CheckboxCell.d.ts +1 -1
- package/dist/modules/Table/components/atoms/CheckboxCell.d.ts.map +1 -1
- package/dist/modules/Table/components/atoms/DateCell.d.ts +1 -1
- package/dist/modules/Table/components/atoms/DateCell.d.ts.map +1 -1
- package/dist/modules/Table/components/atoms/DropdownCell.d.ts +1 -1
- package/dist/modules/Table/components/atoms/DropdownCell.d.ts.map +1 -1
- package/dist/modules/Table/components/atoms/IconCell.d.ts +1 -1
- package/dist/modules/Table/components/atoms/IconCell.d.ts.map +1 -1
- package/dist/modules/Table/components/atoms/LinkCell.d.ts +1 -1
- package/dist/modules/Table/components/atoms/LinkCell.d.ts.map +1 -1
- package/dist/modules/Table/components/atoms/PrimaryCell.d.ts +1 -1
- package/dist/modules/Table/components/atoms/PrimaryCell.d.ts.map +1 -1
- package/dist/modules/Table/components/atoms/ProgressBarCell.d.ts +1 -1
- package/dist/modules/Table/components/atoms/ProgressBarCell.d.ts.map +1 -1
- package/dist/modules/Table/components/atoms/SkeletonCell.d.ts +1 -1
- package/dist/modules/Table/components/atoms/SkeletonCell.d.ts.map +1 -1
- package/dist/modules/Table/components/atoms/StarsCell.d.ts +1 -1
- package/dist/modules/Table/components/atoms/StarsCell.d.ts.map +1 -1
- package/dist/modules/Table/components/atoms/StatusCell.d.ts +1 -1
- package/dist/modules/Table/components/atoms/StatusCell.d.ts.map +1 -1
- package/dist/modules/Table/components/atoms/TableCell.d.ts +1 -1
- package/dist/modules/Table/components/atoms/TableCell.d.ts.map +1 -1
- package/dist/modules/Table/components/atoms/TagsCell.d.ts +1 -1
- package/dist/modules/Table/components/atoms/TagsCell.d.ts.map +1 -1
- package/dist/modules/Table/components/atoms/TextFieldCell.d.ts +1 -1
- package/dist/modules/Table/components/atoms/TextFieldCell.d.ts.map +1 -1
- package/dist/modules/Table/components/molecules/CellRenderer.d.ts +2 -1
- package/dist/modules/Table/components/molecules/CellRenderer.d.ts.map +1 -1
- package/dist/modules/Table/components/molecules/HeaderCell.d.ts +1 -1
- package/dist/modules/Table/components/molecules/HeaderCell.d.ts.map +1 -1
- package/dist/modules/Table/components/molecules/TableRow.d.ts +2 -1
- package/dist/modules/Table/components/molecules/TableRow.d.ts.map +1 -1
- package/dist/modules/Table/components/organisms/TableBody.d.ts +2 -1
- package/dist/modules/Table/components/organisms/TableBody.d.ts.map +1 -1
- package/dist/modules/Table/components/organisms/TableContent.d.ts.map +1 -1
- package/dist/modules/Table/components/organisms/TableHeader.d.ts +2 -1
- package/dist/modules/Table/components/organisms/TableHeader.d.ts.map +1 -1
- package/dist/modules/Table/components/organisms/TableToolbar.d.ts +3 -1
- package/dist/modules/Table/components/organisms/TableToolbar.d.ts.map +1 -1
- package/dist/modules/Table/hooks/useTableConfig.d.ts +7 -1
- package/dist/modules/Table/hooks/useTableConfig.d.ts.map +1 -1
- package/dist/modules/Table/stories/TableQueryPersist.stories.d.ts +7 -0
- package/dist/modules/Table/stories/TableQueryPersist.stories.d.ts.map +1 -0
- package/dist/modules/Table/stories/TableSimple.stories.d.ts +15 -0
- package/dist/modules/Table/stories/TableSimple.stories.d.ts.map +1 -0
- package/dist/modules/Table/stories/TableSwitchWithSearch.stories.d.ts +7 -0
- package/dist/modules/Table/stories/TableSwitchWithSearch.stories.d.ts.map +1 -0
- package/dist/modules/Table/stories/TableWithQuery.stories.d.ts.map +1 -1
- package/dist/modules/Table/utils/cellStyles.d.ts +3 -1
- package/dist/modules/Table/utils/cellStyles.d.ts.map +1 -1
- package/dist/modules/Tag/index.d.ts +1 -1
- package/dist/modules/Tag/index.d.ts.map +1 -1
- package/dist/modules/Tooltip/components/atoms/TruncatedWithTooltip.d.ts +22 -0
- package/dist/modules/Tooltip/components/atoms/TruncatedWithTooltip.d.ts.map +1 -0
- package/dist/modules/Tooltip/index.d.ts +2 -0
- package/dist/modules/Tooltip/index.d.ts.map +1 -1
- package/dist/shared/types/badge.d.ts +4 -0
- package/dist/shared/types/badge.d.ts.map +1 -1
- package/dist/shared/types/table.d.ts +15 -2
- package/dist/shared/types/table.d.ts.map +1 -1
- package/dist/shared/types/tag.d.ts +2 -0
- package/dist/shared/types/tag.d.ts.map +1 -1
- package/package.json +2 -1
|
@@ -22,5 +22,5 @@ import { BadgeProps } from '../../shared/types/badge';
|
|
|
22
22
|
*
|
|
23
23
|
* @see {@link BadgeProps} para la lista completa de props
|
|
24
24
|
*/
|
|
25
|
-
export declare const Badge: ({ label, color, theme, size, stroke, disabled, className, icon, iconDuotonePrimary, iconDuotoneSecondary, iconDuotoneOpacityPrimary, iconDuotoneOpacitySecondary, customColor, loading, ...props }: BadgeProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
25
|
+
export declare const Badge: ({ label, color, theme, size, stroke, disabled, className, icon, iconDuotonePrimary, iconDuotoneSecondary, iconDuotoneOpacityPrimary, iconDuotoneOpacitySecondary, customColor, loading, truncateLabel, truncateTooltip, ...props }: BadgeProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
26
26
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/Badge/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/Badge/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAOlD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,KAAK,GAAI,oOAkBnB,UAAU,mDAsRZ,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TableProps } from '../../shared/types/table';
|
|
2
|
-
export declare const Table: <T>({ columns: initialColumns, rows: initialRows, loading, empty, selection, pagination: paginationConfig, toolbar: toolbarConfig, sort: initialSort, filters: initialFilters, expandable, resizable, striped, bordered, borderable, hoverable, dense, stickyHeader, stickyCheckbox, stickyActions, showEditActions, configKey, persistConfig, onConfigChange, className, onSort, onFilter, onColumnResize, onColumnReorder, onColumnVisibilityChange, onRowClick, onRowExpand, onHandleChange, editingRowIds, onEditingRowIdsChange, onEditModeChange, onSuccessComplete, }: TableProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const Table: <T>({ columns: initialColumns, rows: initialRows, loading, empty, selection, pagination: paginationConfig, toolbar: toolbarConfig, sort: initialSort, filters: initialFilters, expandable, resizable, striped, bordered, borderable, hoverable, dense, stickyHeader, stickyCheckbox, stickyActions, showEditActions, configKey, persistConfig, queryPersist, onConfigChange, className, onSort, onFilter, onColumnResize, onColumnReorder, onColumnVisibilityChange, onRowClick, onRowExpand, onHandleChange, editingRowIds, onEditingRowIdsChange, onEditModeChange, onSuccessComplete, }: TableProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=Table.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../src/modules/Table/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAoE,MAAM,sBAAsB,CAAC;AAoBpH,eAAO,MAAM,KAAK,GAAI,CAAC,EAAI,
|
|
1
|
+
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../src/modules/Table/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAoE,MAAM,sBAAsB,CAAC;AAoBpH,eAAO,MAAM,KAAK,GAAI,CAAC,EAAI,wjBAyCxB,UAAU,CAAC,CAAC,CAAC,4CAsrBf,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TableCellComponentProps } from '../../../../shared/types/table';
|
|
2
|
-
export declare const ActionsCell: import('react').MemoExoticComponent<({ value, row, column, state, className, onCellFocus, stickyLeft, stickyRight, isLastLocked, isActionsColumn, isRowEditing, }: TableCellComponentProps) => import("react/jsx-runtime").JSX.Element>;
|
|
2
|
+
export declare const ActionsCell: import('react').MemoExoticComponent<({ value, row, column, state, className, onCellFocus, stickyLeft, stickyRight, isLastLocked, isActionsColumn, isRowEditing, hasColumnMaxWidthAuto, }: TableCellComponentProps) => import("react/jsx-runtime").JSX.Element>;
|
|
3
3
|
//# sourceMappingURL=ActionsCell.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionsCell.d.ts","sourceRoot":"","sources":["../../../../../src/modules/Table/components/atoms/ActionsCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAqB,MAAM,sBAAsB,CAAC;AA4DlF,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"ActionsCell.d.ts","sourceRoot":"","sources":["../../../../../src/modules/Table/components/atoms/ActionsCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAqB,MAAM,sBAAsB,CAAC;AA4DlF,eAAO,MAAM,WAAW,4LAcnB,uBAAuB,6CA4D3B,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TableCellComponentProps } from '../../../../shared/types/table';
|
|
2
|
-
export declare const AvatarsCell: ({ value, column, state, className, onCellFocus, stickyLeft, isLastLocked, isRowEditing, }: TableCellComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const AvatarsCell: ({ value, column, state, className, onCellFocus, stickyLeft, isLastLocked, isRowEditing, hasColumnMaxWidthAuto, }: TableCellComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=AvatarsCell.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AvatarsCell.d.ts","sourceRoot":"","sources":["../../../../../src/modules/Table/components/atoms/AvatarsCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAyB/D,eAAO,MAAM,WAAW,GAAI,
|
|
1
|
+
{"version":3,"file":"AvatarsCell.d.ts","sourceRoot":"","sources":["../../../../../src/modules/Table/components/atoms/AvatarsCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAyB/D,eAAO,MAAM,WAAW,GAAI,kHAUzB,uBAAuB,4CAiDzB,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TableCellComponentProps } from '../../../../shared/types/table';
|
|
2
|
-
export declare const ButtonCell: ({ value, row, column, state, className, onCellFocus, stickyLeft, isLastLocked, isRowEditing, }: TableCellComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const ButtonCell: ({ value, row, column, state, className, onCellFocus, stickyLeft, isLastLocked, isRowEditing, hasColumnMaxWidthAuto, }: TableCellComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=ButtonCell.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonCell.d.ts","sourceRoot":"","sources":["../../../../../src/modules/Table/components/atoms/ButtonCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAmB/D,eAAO,MAAM,UAAU,GAAI,
|
|
1
|
+
{"version":3,"file":"ButtonCell.d.ts","sourceRoot":"","sources":["../../../../../src/modules/Table/components/atoms/ButtonCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAmB/D,eAAO,MAAM,UAAU,GAAI,uHAWxB,uBAAuB,4CAgCzB,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TableCellComponentProps } from '../../../../shared/types/table';
|
|
2
|
-
export declare const CheckboxCell: ({ value, column, state, onChange, className, onCellFocus, stickyLeft, isLastLocked, isRowEditing, }: TableCellComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const CheckboxCell: ({ value, column, state, onChange, className, onCellFocus, stickyLeft, isLastLocked, isRowEditing, hasColumnMaxWidthAuto, }: TableCellComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=CheckboxCell.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckboxCell.d.ts","sourceRoot":"","sources":["../../../../../src/modules/Table/components/atoms/CheckboxCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAK/D,eAAO,MAAM,YAAY,GAAI,
|
|
1
|
+
{"version":3,"file":"CheckboxCell.d.ts","sourceRoot":"","sources":["../../../../../src/modules/Table/components/atoms/CheckboxCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAK/D,eAAO,MAAM,YAAY,GAAI,4HAW1B,uBAAuB,4CAgBzB,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { DateCellProps } from './DateCell.types';
|
|
2
|
-
export declare const DateCell: import('react').MemoExoticComponent<({ value, column, state, className, onCellFocus, stickyLeft, isLastLocked, dateFormat, locale, fallback, isRowEditing, }: DateCellProps) => import("react/jsx-runtime").JSX.Element>;
|
|
2
|
+
export declare const DateCell: import('react').MemoExoticComponent<({ value, column, state, className, onCellFocus, stickyLeft, isLastLocked, dateFormat, locale, fallback, isRowEditing, hasColumnMaxWidthAuto, }: DateCellProps) => import("react/jsx-runtime").JSX.Element>;
|
|
3
3
|
//# sourceMappingURL=DateCell.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateCell.d.ts","sourceRoot":"","sources":["../../../../../src/modules/Table/components/atoms/DateCell.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DateCell.d.ts","sourceRoot":"","sources":["../../../../../src/modules/Table/components/atoms/DateCell.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGtD,eAAO,MAAM,QAAQ,uLAchB,aAAa,6CA6CjB,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TableCellComponentProps } from '../../../../shared/types/table';
|
|
2
|
-
export declare const DropdownCell: ({ value, state, onChange, className, column, onCellFocus, stickyLeft, isLastLocked, isRowEditing, }: TableCellComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const DropdownCell: ({ value, state, onChange, className, column, onCellFocus, stickyLeft, isLastLocked, isRowEditing, hasColumnMaxWidthAuto, }: TableCellComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=DropdownCell.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DropdownCell.d.ts","sourceRoot":"","sources":["../../../../../src/modules/Table/components/atoms/DropdownCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAU/D,eAAO,MAAM,YAAY,GAAI,
|
|
1
|
+
{"version":3,"file":"DropdownCell.d.ts","sourceRoot":"","sources":["../../../../../src/modules/Table/components/atoms/DropdownCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAU/D,eAAO,MAAM,YAAY,GAAI,4HAW1B,uBAAuB,4CAiDzB,CAAA"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TableCellComponentProps } from '../../../../shared/types/table';
|
|
2
|
-
export declare const IconCell: ({ value, row, column, state, className, onCellFocus, stickyLeft, isLastLocked, isRowEditing, }: TableCellComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const IconCell: ({ value, row, column, state, className, onCellFocus, stickyLeft, isLastLocked, isRowEditing, hasColumnMaxWidthAuto, }: TableCellComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=IconCell.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconCell.d.ts","sourceRoot":"","sources":["../../../../../src/modules/Table/components/atoms/IconCell.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAqB/D,eAAO,MAAM,QAAQ,GAAI,
|
|
1
|
+
{"version":3,"file":"IconCell.d.ts","sourceRoot":"","sources":["../../../../../src/modules/Table/components/atoms/IconCell.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAqB/D,eAAO,MAAM,QAAQ,GAAI,uHAWtB,uBAAuB,4CAwHzB,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TableCellComponentProps } from '../../../../shared/types/table';
|
|
2
|
-
export declare const LinkCell: ({ value, row, column, state, className, onCellFocus, stickyLeft, isLastLocked, isRowEditing, }: TableCellComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const LinkCell: ({ value, row, column, state, className, onCellFocus, stickyLeft, isLastLocked, isRowEditing, hasColumnMaxWidthAuto, }: TableCellComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=LinkCell.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LinkCell.d.ts","sourceRoot":"","sources":["../../../../../src/modules/Table/components/atoms/LinkCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAiB,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"LinkCell.d.ts","sourceRoot":"","sources":["../../../../../src/modules/Table/components/atoms/LinkCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAiB,MAAM,sBAAsB,CAAC;AAU9E,eAAO,MAAM,QAAQ,GAAI,uHAWtB,uBAAuB,4CAgCzB,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TableCellComponentProps } from '../../../../shared/types/table';
|
|
2
|
-
export declare const PrimaryCell: import('react').MemoExoticComponent<({ value, row, column, state, className, onCellFocus, stickyLeft, isLastLocked, isRowEditing, }: TableCellComponentProps) => import("react/jsx-runtime").JSX.Element>;
|
|
2
|
+
export declare const PrimaryCell: import('react').MemoExoticComponent<({ value, row, column, state, className, onCellFocus, stickyLeft, isLastLocked, isRowEditing, hasColumnMaxWidthAuto, }: TableCellComponentProps) => import("react/jsx-runtime").JSX.Element>;
|
|
3
3
|
//# sourceMappingURL=PrimaryCell.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PrimaryCell.d.ts","sourceRoot":"","sources":["../../../../../src/modules/Table/components/atoms/PrimaryCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAoB,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"PrimaryCell.d.ts","sourceRoot":"","sources":["../../../../../src/modules/Table/components/atoms/PrimaryCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAoB,MAAM,sBAAsB,CAAC;AAYjF,eAAO,MAAM,WAAW,8JAYnB,uBAAuB,6CA4D3B,CAAC"}
|
|
@@ -3,5 +3,5 @@ import { TableCellComponentProps } from '../../../../shared/types/table';
|
|
|
3
3
|
* Celda de tabla con barra de progreso
|
|
4
4
|
* Reutiliza el componente BarProgress atómico
|
|
5
5
|
*/
|
|
6
|
-
export declare const ProgressBarCell: ({ value, column, state, className, onCellFocus, stickyLeft, isLastLocked, isRowEditing, }: TableCellComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare const ProgressBarCell: ({ value, column, state, className, onCellFocus, stickyLeft, isLastLocked, isRowEditing, hasColumnMaxWidthAuto, }: TableCellComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
//# sourceMappingURL=ProgressBarCell.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProgressBarCell.d.ts","sourceRoot":"","sources":["../../../../../src/modules/Table/components/atoms/ProgressBarCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAe/D;;;GAGG;AACH,eAAO,MAAM,eAAe,GAAI,
|
|
1
|
+
{"version":3,"file":"ProgressBarCell.d.ts","sourceRoot":"","sources":["../../../../../src/modules/Table/components/atoms/ProgressBarCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAe/D;;;GAGG;AACH,eAAO,MAAM,eAAe,GAAI,kHAU7B,uBAAuB,4CA6CzB,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TableCellComponentProps } from '../../../../shared/types/table';
|
|
2
|
-
export declare const SkeletonCell: ({ column, className, state, onCellFocus, stickyLeft, isLastLocked, isRowEditing, }: TableCellComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const SkeletonCell: ({ column, className, state, onCellFocus, stickyLeft, isLastLocked, isRowEditing, hasColumnMaxWidthAuto, }: TableCellComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=SkeletonCell.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SkeletonCell.d.ts","sourceRoot":"","sources":["../../../../../src/modules/Table/components/atoms/SkeletonCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAS/D,eAAO,MAAM,YAAY,GAAI,
|
|
1
|
+
{"version":3,"file":"SkeletonCell.d.ts","sourceRoot":"","sources":["../../../../../src/modules/Table/components/atoms/SkeletonCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAS/D,eAAO,MAAM,YAAY,GAAI,2GAS1B,uBAAuB,4CAmBzB,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TableCellComponentProps } from '../../../../shared/types/table';
|
|
2
|
-
export declare const StarsCell: ({ value, column, state, className, onCellFocus, stickyLeft, isLastLocked, isRowEditing, }: TableCellComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const StarsCell: ({ value, column, state, className, onCellFocus, stickyLeft, isLastLocked, isRowEditing, hasColumnMaxWidthAuto, }: TableCellComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=StarsCell.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StarsCell.d.ts","sourceRoot":"","sources":["../../../../../src/modules/Table/components/atoms/StarsCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"StarsCell.d.ts","sourceRoot":"","sources":["../../../../../src/modules/Table/components/atoms/StarsCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAO/D,eAAO,MAAM,SAAS,GAAI,kHAUvB,uBAAuB,4CA+BzB,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TableCellComponentProps } from '../../../../shared/types/table';
|
|
2
|
-
export declare const StatusCell: import('react').MemoExoticComponent<({ value, column, state, className, onCellFocus, stickyLeft, isLastLocked, isRowEditing, }: TableCellComponentProps) => import("react/jsx-runtime").JSX.Element>;
|
|
2
|
+
export declare const StatusCell: import('react').MemoExoticComponent<({ value, column, state, className, onCellFocus, stickyLeft, isLastLocked, isRowEditing, hasColumnMaxWidthAuto, }: TableCellComponentProps) => import("react/jsx-runtime").JSX.Element>;
|
|
3
3
|
//# sourceMappingURL=StatusCell.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StatusCell.d.ts","sourceRoot":"","sources":["../../../../../src/modules/Table/components/atoms/StatusCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAgC,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"StatusCell.d.ts","sourceRoot":"","sources":["../../../../../src/modules/Table/components/atoms/StatusCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAgC,MAAM,sBAAsB,CAAC;AAgB7F,eAAO,MAAM,UAAU,yJAWlB,uBAAuB,6CAyJ3B,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TableCellComponentProps } from '../../../../shared/types/table';
|
|
2
|
-
export declare const TableCell: import('react').MemoExoticComponent<({ value, row, column, state, onChange, className, onCellFocus, stickyLeft, isLastLocked, isRowEditing, }: TableCellComponentProps) => import("react/jsx-runtime").JSX.Element>;
|
|
2
|
+
export declare const TableCell: import('react').MemoExoticComponent<({ value, row, column, state, onChange, className, onCellFocus, stickyLeft, isLastLocked, isRowEditing, hasColumnMaxWidthAuto, }: TableCellComponentProps) => import("react/jsx-runtime").JSX.Element>;
|
|
3
3
|
//# sourceMappingURL=TableCell.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableCell.d.ts","sourceRoot":"","sources":["../../../../../src/modules/Table/components/atoms/TableCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"TableCell.d.ts","sourceRoot":"","sources":["../../../../../src/modules/Table/components/atoms/TableCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAW/D,eAAO,MAAM,SAAS,wKAajB,uBAAuB,6CAoC3B,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TableCellComponentProps } from '../../../../shared/types/table';
|
|
2
|
-
export declare const TagsCell: import('react').MemoExoticComponent<({ value, column, state, className, onCellFocus, stickyLeft, isLastLocked, isRowEditing, }: TableCellComponentProps) => import("react/jsx-runtime").JSX.Element>;
|
|
2
|
+
export declare const TagsCell: import('react').MemoExoticComponent<({ value, column, state, className, onCellFocus, stickyLeft, isLastLocked, isRowEditing, hasColumnMaxWidthAuto, }: TableCellComponentProps) => import("react/jsx-runtime").JSX.Element>;
|
|
3
3
|
//# sourceMappingURL=TagsCell.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TagsCell.d.ts","sourceRoot":"","sources":["../../../../../src/modules/Table/components/atoms/TagsCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAsC/D,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"TagsCell.d.ts","sourceRoot":"","sources":["../../../../../src/modules/Table/components/atoms/TagsCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAsC/D,eAAO,MAAM,QAAQ,yJAWhB,uBAAuB,6CA0F3B,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TableCellComponentProps } from '../../../../shared/types/table';
|
|
2
|
-
export declare const TextFieldCell: ({ value, column, state, onChange, className, onCellFocus, stickyLeft, isLastLocked, isRowEditing, }: TableCellComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const TextFieldCell: ({ value, column, state, onChange, className, onCellFocus, stickyLeft, isLastLocked, isRowEditing, hasColumnMaxWidthAuto, }: TableCellComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=TextFieldCell.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextFieldCell.d.ts","sourceRoot":"","sources":["../../../../../src/modules/Table/components/atoms/TextFieldCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAW/D,eAAO,MAAM,aAAa,GAAI,
|
|
1
|
+
{"version":3,"file":"TextFieldCell.d.ts","sourceRoot":"","sources":["../../../../../src/modules/Table/components/atoms/TextFieldCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAW/D,eAAO,MAAM,aAAa,GAAI,4HAW3B,uBAAuB,4CAmJzB,CAAC"}
|
|
@@ -17,7 +17,8 @@ interface CellRendererProps<T = unknown> {
|
|
|
17
17
|
isLastLocked?: boolean;
|
|
18
18
|
/** Si es una columna de acciones */
|
|
19
19
|
isActionsColumn?: boolean;
|
|
20
|
+
hasColumnMaxWidthAuto?: boolean;
|
|
20
21
|
}
|
|
21
|
-
export declare const CellRenderer: <T>({ column, row, value, rawValue, selected, onCellFocus, isCellFocused, onCellChange, stickyLeft, stickyRight, isLastLocked, isActionsColumn, }: CellRendererProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export declare const CellRenderer: <T>({ column, row, value, rawValue, selected, onCellFocus, isCellFocused, onCellChange, stickyLeft, stickyRight, isLastLocked, isActionsColumn, hasColumnMaxWidthAuto, }: CellRendererProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
22
23
|
export {};
|
|
23
24
|
//# sourceMappingURL=CellRenderer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CellRenderer.d.ts","sourceRoot":"","sources":["../../../../../src/modules/Table/components/molecules/CellRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAwC,MAAM,sBAAsB,CAAC;AAoBrG,UAAU,iBAAiB,CAAC,CAAC,GAAG,OAAO;IACrC,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC;IACxB,GAAG,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC;IAClB,KAAK,EAAE,OAAO,CAAC;IACf,8EAA8E;IAC9E,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACjE,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC;IACtE,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAClF,sDAAsD;IACtD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,mEAAmE;IACnE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oEAAoE;IACpE,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,oCAAoC;IACpC,eAAe,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"CellRenderer.d.ts","sourceRoot":"","sources":["../../../../../src/modules/Table/components/molecules/CellRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAwC,MAAM,sBAAsB,CAAC;AAoBrG,UAAU,iBAAiB,CAAC,CAAC,GAAG,OAAO;IACrC,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC;IACxB,GAAG,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC;IAClB,KAAK,EAAE,OAAO,CAAC;IACf,8EAA8E;IAC9E,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACjE,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC;IACtE,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAClF,sDAAsD;IACtD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,mEAAmE;IACnE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oEAAoE;IACpE,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,oCAAoC;IACpC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC;AAED,eAAO,MAAM,YAAY,GAAI,CAAC,EAAI,sKAc/B,iBAAiB,CAAC,CAAC,CAAC,4CAuGtB,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { HeaderCellProps } from '../../../../shared/types/table';
|
|
2
|
-
export declare const HeaderCell: ({ column, sortable, filterable, lockable, resizable, sortDirection, filterActive, locked, isLastLocked, stickyLeft, stickyRight, stickyHeader, isActionsColumn, onSort, onFilter, onLock, onResize, onResizeDoubleClick, onResizeHover, rowsDataKey, className, }: HeaderCellProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const HeaderCell: ({ column, sortable, filterable, lockable, resizable, sortDirection, filterActive, locked, isLastLocked, stickyLeft, stickyRight, stickyHeader, isActionsColumn, onSort, onFilter, onLock, onResize, onResizeDoubleClick, onResizeHover, rowsDataKey, className, hasColumnMaxWidthAuto, }: HeaderCellProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=HeaderCell.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderCell.d.ts","sourceRoot":"","sources":["../../../../../src/modules/Table/components/molecules/HeaderCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"HeaderCell.d.ts","sourceRoot":"","sources":["../../../../../src/modules/Table/components/molecules/HeaderCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AA0BvD,eAAO,MAAM,UAAU,GAAI,0RAuBxB,eAAe,4CAubjB,CAAC"}
|
|
@@ -15,7 +15,8 @@ interface TableRowProps<T = unknown> {
|
|
|
15
15
|
onCellFocus?: (rowId: string | number, columnId: string) => void;
|
|
16
16
|
isCellFocused?: (rowId: string | number, columnId: string) => boolean;
|
|
17
17
|
onCellChange?: (rowId: string | number, columnId: string, value: unknown) => void;
|
|
18
|
+
hasColumnMaxWidthAuto?: boolean;
|
|
18
19
|
}
|
|
19
|
-
export declare const TableRow: <T>({ row, columns, selected, selectedIds, expandable, onSelect, onExpand, onClick, showSelection, showExpand, stickyCheckbox, stickyActions, onCellFocus, isCellFocused, onCellChange, }: TableRowProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export declare const TableRow: <T>({ row, columns, selected, selectedIds, expandable, onSelect, onExpand, onClick, showSelection, showExpand, stickyCheckbox, stickyActions, onCellFocus, isCellFocused, onCellChange, hasColumnMaxWidthAuto, }: TableRowProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
20
21
|
export {};
|
|
21
22
|
//# sourceMappingURL=TableRow.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableRow.d.ts","sourceRoot":"","sources":["../../../../../src/modules/Table/components/molecules/TableRow.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAO/D,UAAU,aAAa,CAAC,CAAC,GAAG,OAAO;IACjC,GAAG,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC;IAClB,OAAO,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;IAClC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;IACvC,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;IACvC,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;IACtC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACjE,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,QAAQ,EAAE,MAA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C,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAClF,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC;AAED,eAAO,MAAM,QAAQ,GAAI,CAAC,EAAI,8MAiB3B,aAAa,CAAC,CAAC,CAAC,4CAwOlB,CAAC"}
|
|
@@ -16,7 +16,8 @@ interface TableBodyProps<T = unknown> {
|
|
|
16
16
|
onCellFocus?: (rowId: string | number, columnId: string) => void;
|
|
17
17
|
isCellFocused?: (rowId: string | number, columnId: string) => boolean;
|
|
18
18
|
onCellChange?: (rowId: string | number, columnId: string, value: unknown) => void;
|
|
19
|
+
hasColumnMaxWidthAuto?: boolean;
|
|
19
20
|
}
|
|
20
|
-
export declare const TableBody: <T>({ rows, columns, loading, empty, selectedIds, expandable, showSelection, showExpand, stickyCheckbox, stickyActions, onRowClick, onRowExpand, onRowSelect, onCellFocus, isCellFocused, onCellChange, }: TableBodyProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export declare const TableBody: <T>({ rows, columns, loading, empty, selectedIds, expandable, showSelection, showExpand, stickyCheckbox, stickyActions, onRowClick, onRowExpand, onRowSelect, onCellFocus, isCellFocused, onCellChange, hasColumnMaxWidthAuto, }: TableBodyProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
21
22
|
export {};
|
|
22
23
|
//# sourceMappingURL=TableBody.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableBody.d.ts","sourceRoot":"","sources":["../../../../../src/modules/Table/components/organisms/TableBody.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAK3E,UAAU,cAAc,CAAC,CAAC,GAAG,OAAO;IAClC,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;IACrB,OAAO,EAAE,YAAY,CAAC,CAAC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ACnF,mBAAmB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACjD,aAAa,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,KAAK,IAAI,CAAC;IAChE,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACjE,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC;IACtE,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAClF,8GAA8G;IAC9G,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,YAAY,GAAI,CAAC,EAAI,uZAmC/B,iBAAiB,CAAC,CAAC,CAAC,4CAqHtB,CAAC"}
|
|
@@ -20,7 +20,8 @@ interface TableHeaderProps<T = unknown> {
|
|
|
20
20
|
onResizeHover?: (columnId: string, isHovering: boolean) => void;
|
|
21
21
|
/** Clave que cambia cuando cambian las filas (p. ej. paginación); fuerza recalcular anchos auto. */
|
|
22
22
|
rowsDataKey?: string;
|
|
23
|
+
hasColumnMaxWidthAuto?: boolean;
|
|
23
24
|
}
|
|
24
|
-
export declare const TableHeader: <T>({ columns, sortConfig, filters, showSelection, showExpand, allSelected, someSelected, resizable, stickyHeader, stickyCheckbox, stickyActions, onSelectAll, onSort, onFilter, onLock, onResize, onResizeDoubleClick, onResizeHover, rowsDataKey, }: TableHeaderProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export declare const TableHeader: <T>({ columns, sortConfig, filters, showSelection, showExpand, allSelected, someSelected, resizable, stickyHeader, stickyCheckbox, stickyActions, onSelectAll, onSort, onFilter, onLock, onResize, onResizeDoubleClick, onResizeHover, rowsDataKey, hasColumnMaxWidthAuto, }: TableHeaderProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
25
26
|
export {};
|
|
26
27
|
//# sourceMappingURL=TableHeader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableHeader.d.ts","sourceRoot":"","sources":["../../../../../src/modules/Table/components/organisms/TableHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAM9E,UAAU,gBAAgB,CAAC,CAAC,GAAG,OAAO;IACpC,OAAO,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC;IAC3B,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,OAAO,CAAC,EAAE,YAAY,EAAE,CAAC;IACzB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,WAAW,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IAC1C,MAAM,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,MAAM,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,mBAAmB,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACnF,mBAAmB,CAAC,EAAE,CAAC,QA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B,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACjD,aAAa,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,KAAK,IAAI,CAAC;IAChE,oGAAoG;IACpG,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC;AAED,eAAO,MAAM,WAAW,GAAI,CAAC,EAAI,0QAqB9B,gBAAgB,CAAC,CAAC,CAAC,4CAgMrB,CAAC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { TableToolbarConfig, ColumnConfig, RowConfig } from '../../../../shared/types/table';
|
|
2
2
|
import { AdvancedFilterConfig } from '../../types/filter';
|
|
3
3
|
interface TableToolbarProps<T = unknown> extends TableToolbarConfig {
|
|
4
|
+
/** Valor actual de búsqueda (controlado). Cuando se pasa, el input y los chips reflejan este valor (p. ej. restaurado desde persistencia). */
|
|
5
|
+
searchValue?: string;
|
|
4
6
|
selectedCount?: number;
|
|
5
7
|
/** IDs de filas seleccionadas; se usa para construir el contexto pasado a los callbacks del toolbar. */
|
|
6
8
|
selectedIds?: (string | number)[];
|
|
@@ -17,6 +19,6 @@ interface TableToolbarProps<T = unknown> extends TableToolbarConfig {
|
|
|
17
19
|
onFiltersApply?: (filters: AdvancedFilterConfig[]) => void;
|
|
18
20
|
className?: string;
|
|
19
21
|
}
|
|
20
|
-
export declare const TableToolbar: <T = unknown>({ showSearch, searchPlaceholder, showColumnConfig, showCustomAction, customActionLabel, customActionIcon, showSecondCustomAction, secondCustomActionLabel, secondCustomActionIcon, showFilters, onSearch, onFilter, onCustomAction, onSecondCustomAction, primaryCustomAction, secondaryCustomAction, customActions, selectedCount, selectedIds, columns, rows, filters, onColumnConfig, onColumnVisibilityChange, onMultipleColumnVisibilityChange, onColumnReorder, onFiltersApply, className, }: TableToolbarProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export declare const TableToolbar: <T = unknown>({ showSearch, searchPlaceholder, searchValue: controlledSearchValue, showColumnConfig, showCustomAction, customActionLabel, customActionIcon, showSecondCustomAction, secondCustomActionLabel, secondCustomActionIcon, showFilters, onSearch, onFilter, onCustomAction, onSecondCustomAction, primaryCustomAction, secondaryCustomAction, customActions, selectedCount, selectedIds, columns, rows, filters, onColumnConfig, onColumnVisibilityChange, onMultipleColumnVisibilityChange, onColumnReorder, onFiltersApply, className, }: TableToolbarProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
21
23
|
export {};
|
|
22
24
|
//# sourceMappingURL=TableToolbar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableToolbar.d.ts","sourceRoot":"","sources":["../../../../../src/modules/Table/components/organisms/TableToolbar.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,YAAY,EACZ,SAAS,EAEV,MAAM,sBAAsB,CAAC;AAW9B,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAI1D,UAAU,iBAAiB,CAAC,CAAC,GAAG,OAAO,CAAE,SAAQ,kBAAkB;IACjE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,wGAAwG;IACxG,WAAW,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;IAClC,OAAO,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC;IAC5B,IAAI,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;IACtB,OAAO,CAAC,EAAE,oBAAoB,EAAE,CAAC;IACjC,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,wBAAwB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACxE,gCAAgC,CAAC,EAAE,CACjC,OAAO,EAAE,KAAK,CAAC;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,OAAO,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,gBAAgB,EAAE,YAAY,EAAE,KAAK,IAAI,CAAC;IAC7D,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,oBAAoB,EAAE,KAAK,IAAI,CAAC;IAC3D,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,YAAY,GAAI,CAAC,GAAG,OAAO,EAAE,wgBA8BvC,iBAAiB,CAAC,CAAC,CAAC,4CA4dtB,CAAC"}
|
|
@@ -4,6 +4,8 @@ interface UseTableConfigOptions {
|
|
|
4
4
|
configKey?: string;
|
|
5
5
|
/** Habilitar persistencia en localStorage */
|
|
6
6
|
persistConfig?: boolean;
|
|
7
|
+
/** Persistir filtros y búsqueda en la misma configKey (por defecto true) */
|
|
8
|
+
queryPersist?: boolean;
|
|
7
9
|
/** Columnas iniciales de la tabla */
|
|
8
10
|
initialColumns: ColumnConfig[];
|
|
9
11
|
/** Ordenamiento inicial */
|
|
@@ -20,6 +22,8 @@ interface UseTableConfigReturn {
|
|
|
20
22
|
sort?: SortConfig;
|
|
21
23
|
/** Filtros actuales */
|
|
22
24
|
filters: FilterConfig[];
|
|
25
|
+
/** Texto de búsqueda persistido */
|
|
26
|
+
searchQuery: string;
|
|
23
27
|
/** Actualizar orden de columnas */
|
|
24
28
|
updateColumnOrder: (newColumns: ColumnConfig[]) => void;
|
|
25
29
|
/** Actualizar visibilidad de columna */
|
|
@@ -37,6 +41,8 @@ interface UseTableConfigReturn {
|
|
|
37
41
|
updateSort: (newSort: SortConfig) => void;
|
|
38
42
|
/** Actualizar filtros */
|
|
39
43
|
updateFilters: (newFilters: FilterConfig[]) => void;
|
|
44
|
+
/** Actualizar texto de búsqueda */
|
|
45
|
+
setSearchQuery: (query: string) => void;
|
|
40
46
|
/** Resetear configuración a valores iniciales */
|
|
41
47
|
resetConfig: () => void;
|
|
42
48
|
/** Configuración actual completa */
|
|
@@ -54,6 +60,6 @@ interface UseTableConfigReturn {
|
|
|
54
60
|
* })
|
|
55
61
|
* ```
|
|
56
62
|
*/
|
|
57
|
-
export declare const useTableConfig: ({ configKey, persistConfig, initialColumns, initialSort, initialFilters, onConfigChange, }: UseTableConfigOptions) => UseTableConfigReturn;
|
|
63
|
+
export declare const useTableConfig: ({ configKey, persistConfig, queryPersist, initialColumns, initialSort, initialFilters, onConfigChange, }: UseTableConfigOptions) => UseTableConfigReturn;
|
|
58
64
|
export {};
|
|
59
65
|
//# sourceMappingURL=useTableConfig.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTableConfig.d.ts","sourceRoot":"","sources":["../../../../src/modules/Table/hooks/useTableConfig.ts"],"names":[],"mappings":"AACA,OAAO,EACL,YAAY,EACZ,gBAAgB,EAEhB,UAAU,EACV,YAAY,EACb,MAAM,sBAAsB,CAAC;AAK9B,UAAU,qBAAqB;IAC7B,8DAA8D;IAC9D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6CAA6C;IAC7C,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,qCAAqC;IACrC,cAAc,EAAE,YAAY,EAAE,CAAC;IAC/B,2BAA2B;IAC3B,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB,wBAAwB;IACxB,cAAc,CAAC,EAAE,YAAY,EAAE,CAAC;IAChC,8CAA8C;IAC9C,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;CACzE;AAED,UAAU,oBAAoB;IAC5B,6CAA6C;IAC7C,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,0BAA0B;IAC1B,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,uBAAuB;IACvB,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,mCAAmC;IACnC,iBAAiB,EAAE,CAAC,UAAU,EAAE,YAAY,EAAE,KAAK,IAAI,CAAC;IACxD,wCAAwC;IACxC,sBAAsB,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,KAAK,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C;IACxB,oCAAoC;IACpC,aAAa,EAAE,gBAAgB,CAAC;CACjC;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,cAAc,GAAI,0GAQ5B,qBAAqB,KAAG,oBAoS1B,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
declare function TableQueryPersistDemo(): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare const meta: Meta<typeof TableQueryPersistDemo>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof TableQueryPersistDemo>;
|
|
6
|
+
export declare const BusquedaYFiltrosPersistidos: Story;
|
|
7
|
+
//# sourceMappingURL=TableQueryPersist.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableQueryPersist.stories.d.ts","sourceRoot":"","sources":["../../../../src/modules/Table/stories/TableQueryPersist.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAqCvD,iBAAS,qBAAqB,4CAmG7B;AAED,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,qBAAqB,CAqB5C,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpD,eAAO,MAAM,2BAA2B,EAAE,KAyCzC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
/** Props del wrapper para poder usar el arg emailColumnMaxWidth en la historia */
|
|
3
|
+
interface TableSimpleDemoProps {
|
|
4
|
+
emailColumnMaxWidth?: number | 'auto';
|
|
5
|
+
}
|
|
6
|
+
declare function TableSimpleDemo({ emailColumnMaxWidth }: TableSimpleDemoProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
/**
|
|
8
|
+
* Tabla sencilla con 4 columnas y contenido típico.
|
|
9
|
+
* Pocas filas, sin paginación ni características avanzadas.
|
|
10
|
+
*/
|
|
11
|
+
declare const meta: Meta<typeof TableSimpleDemo>;
|
|
12
|
+
export default meta;
|
|
13
|
+
type Story = StoryObj<typeof TableSimpleDemo>;
|
|
14
|
+
export declare const CincoColumnasContenidoNormal: Story;
|
|
15
|
+
//# sourceMappingURL=TableSimple.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableSimple.stories.d.ts","sourceRoot":"","sources":["../../../../src/modules/Table/stories/TableSimple.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAMvD,kFAAkF;AAClF,UAAU,oBAAoB;IAC5B,mBAAmB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACvC;AAED,iBAAS,eAAe,CAAC,EAAE,mBAAyB,EAAE,EAAE,oBAAoB,2CAG3E;AAED;;;GAGG;AACH,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,eAAe,CA+BtC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,eAAe,CAAC,CAAC;AAoF9C,eAAO,MAAM,4BAA4B,EAAE,KAM1C,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
declare function TableSwitchWithSearchDemo(): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare const meta: Meta<typeof TableSwitchWithSearchDemo>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof TableSwitchWithSearchDemo>;
|
|
6
|
+
export declare const SwitchYDosTablasConBusqueda: Story;
|
|
7
|
+
//# sourceMappingURL=TableSwitchWithSearch.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableSwitchWithSearch.stories.d.ts","sourceRoot":"","sources":["../../../../src/modules/Table/stories/TableSwitchWithSearch.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAkEvD,iBAAS,yBAAyB,4CAoDjC;AAED,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,yBAAyB,CAqBhD,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAExD,eAAO,MAAM,2BAA2B,EAAE,KAczC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableWithQuery.stories.d.ts","sourceRoot":"","sources":["../../../../src/modules/Table/stories/TableWithQuery.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGvD,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAgBjC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,KAAK,CA+D5B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,KAAK,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"TableWithQuery.stories.d.ts","sourceRoot":"","sources":["../../../../src/modules/Table/stories/TableWithQuery.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGvD,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAgBjC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,KAAK,CA+D5B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,KAAK,CAAC,CAAC;AA0SpC;;;;;GAKG;AACH,eAAO,MAAM,UAAU,EAAE,KAMxB,CAAC;AAqJF;;;;;GAKG;AACH,eAAO,MAAM,eAAe,EAAE,KAE7B,CAAC"}
|
|
@@ -14,6 +14,8 @@ import { CellState, ColumnConfig } from '../../../shared/types/table';
|
|
|
14
14
|
* @returns String con todas las clases CSS combinadas
|
|
15
15
|
*/
|
|
16
16
|
export declare const getTableCellClasses: (state?: CellState, additionalClasses?: string, locked?: boolean, isLastLocked?: boolean, isEditing?: boolean, isRowEditing?: boolean, isActionsColumn?: boolean, hasFixedWidth?: boolean) => string;
|
|
17
|
+
/** Ancho por defecto de la columna de acciones cuando no tiene width definido (evita que se colapse). */
|
|
18
|
+
export declare const DEFAULT_ACTIONS_COLUMN_WIDTH = 120;
|
|
17
19
|
/**
|
|
18
20
|
* Genera las propiedades comunes para una celda (data-attributes y estilos)
|
|
19
21
|
* Mantiene consistencia en anchos y identificadores
|
|
@@ -22,7 +24,7 @@ export declare const getTableCellClasses: (state?: CellState, additionalClasses?
|
|
|
22
24
|
* @param stickyLeftOffset - Offset izquierdo para columnas bloqueadas (default: 0)
|
|
23
25
|
* @returns Objeto con data-attributes y estilos para la celda
|
|
24
26
|
*/
|
|
25
|
-
export declare const getTableCellProps: (column: ColumnConfig, stickyLeft?: number, stickyRight?: number, isActionsColumn?: boolean) => {
|
|
27
|
+
export declare const getTableCellProps: (column: ColumnConfig, stickyLeft?: number, stickyRight?: number, isActionsColumn?: boolean, hasColumnMaxWidthAuto?: boolean) => {
|
|
26
28
|
'data-column-id': string;
|
|
27
29
|
style: {
|
|
28
30
|
right?: number | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cellStyles.d.ts","sourceRoot":"","sources":["../../../../src/modules/Table/utils/cellStyles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAE/D;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,mBAAmB,GAC9B,QAAO,SAAqB,EAC5B,oBAAoB,MAAM,EAC1B,SAAS,OAAO,EAChB,eAAe,OAAO,EACtB,YAAY,OAAO,EACnB,eAAe,OAAO,EACtB,kBAAkB,OAAO,EACzB,gBAAgB,OAAO,KACtB,MAwCF,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB,GAC5B,QAAQ,YAAY,EACpB,aAAY,MAAU,EACtB,cAAc,MAAM,EACpB,kBAAkB,OAAO;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"cellStyles.d.ts","sourceRoot":"","sources":["../../../../src/modules/Table/utils/cellStyles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAE/D;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,mBAAmB,GAC9B,QAAO,SAAqB,EAC5B,oBAAoB,MAAM,EAC1B,SAAS,OAAO,EAChB,eAAe,OAAO,EACtB,YAAY,OAAO,EACnB,eAAe,OAAO,EACtB,kBAAkB,OAAO,EACzB,gBAAgB,OAAO,KACtB,MAwCF,CAAC;AAEF,yGAAyG;AACzG,eAAO,MAAM,4BAA4B,MAAM,CAAC;AAEhD;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB,GAC5B,QAAQ,YAAY,EACpB,aAAY,MAAU,EACtB,cAAc,MAAM,EACpB,kBAAkB,OAAO,EACzB,wBAAwB,OAAO;;;;;;;;;CAwChC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,GAC/B,eAAc,MAAM,GAAG,OAAO,GAAG,QAAiB,KACjD,MAUF,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAAI,IAAI,KAAK,CAAC,UAAU,EAAE,cAAc,MAAM,IAAI,SAE7E,CAAC"}
|
|
@@ -34,5 +34,5 @@ import { ITagProps } from '../../shared/types/tag';
|
|
|
34
34
|
*
|
|
35
35
|
* @see {@link ITagProps} para la lista completa de props
|
|
36
36
|
*/
|
|
37
|
-
export declare const Tag: ({ label, avatar, color, onClose, className, stroke, onClick, disabled, selected, infoIcon, truncateLabel, ...props }: ITagProps) => import("react/jsx-runtime").JSX.Element;
|
|
37
|
+
export declare const Tag: ({ label, avatar, color, onClose, className, stroke, onClick, disabled, selected, infoIcon, truncateLabel, truncateTooltip, ...props }: ITagProps) => import("react/jsx-runtime").JSX.Element;
|
|
38
38
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/Tag/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/Tag/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAU/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,eAAO,MAAM,GAAG,GAAI,uIAcjB,SAAS,4CAwQX,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface TruncatedWithTooltipProps {
|
|
3
|
+
/** Contenido a mostrar (se trunca con ellipsis si no cabe). */
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
/** Texto completo para el tooltip. Si no se pasa, se usa `children` solo cuando es string. */
|
|
6
|
+
title?: React.ReactNode;
|
|
7
|
+
/** Clases CSS del span que contiene el texto truncado. */
|
|
8
|
+
className?: string;
|
|
9
|
+
/** Posición del tooltip (por defecto `top`). */
|
|
10
|
+
position?: 'top' | 'bottom' | 'left' | 'right';
|
|
11
|
+
/** Si es false, no se aplica truncado ni tooltip (solo se renderiza children con className). */
|
|
12
|
+
truncate?: boolean;
|
|
13
|
+
/** Si es false, no se muestra tooltip al truncar (solo truncado). Por defecto true. */
|
|
14
|
+
showTooltipWhenTruncated?: boolean;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Envuelve texto en un span con truncado (ellipsis). Si el texto se recorta por espacio,
|
|
18
|
+
* muestra un tooltip al hacer hover con el contenido completo. Solo muestra el tooltip
|
|
19
|
+
* cuando el texto está efectivamente truncado.
|
|
20
|
+
*/
|
|
21
|
+
export declare const TruncatedWithTooltip: ({ children, title, className, position, truncate, showTooltipWhenTruncated, }: TruncatedWithTooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
//# sourceMappingURL=TruncatedWithTooltip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TruncatedWithTooltip.d.ts","sourceRoot":"","sources":["../../../../../src/modules/Tooltip/components/atoms/TruncatedWithTooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4C,MAAM,OAAO,CAAC;AAIjE,MAAM,WAAW,yBAAyB;IACxC,+DAA+D;IAC/D,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,8FAA8F;IAC9F,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,0DAA0D;IAC1D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gDAAgD;IAChD,QAAQ,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;IAC/C,gGAAgG;IAChG,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,uFAAuF;IACvF,wBAAwB,CAAC,EAAE,OAAO,CAAC;CACpC;AAED;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,GAAI,+EAOlC,yBAAyB,4CAiD3B,CAAC"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export { Tooltip } from './components/organisms';
|
|
2
2
|
export { InlineTooltip } from './components/atoms/InlineTooltip';
|
|
3
|
+
export { TruncatedWithTooltip } from './components/atoms/TruncatedWithTooltip';
|
|
3
4
|
export type { InlineTooltipProps, InlineTooltipPosition } from './components/atoms/InlineTooltip';
|
|
5
|
+
export type { TruncatedWithTooltipProps } from './components/atoms/TruncatedWithTooltip';
|
|
4
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/Tooltip/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACjE,YAAY,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/Tooltip/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAC/E,YAAY,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAClG,YAAY,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC"}
|
|
@@ -18,6 +18,10 @@ export interface BadgeProps {
|
|
|
18
18
|
iconDuotoneOpacitySecondary?: number;
|
|
19
19
|
/** Si es true, muestra un spinner de carga en lugar del contenido del badge */
|
|
20
20
|
loading?: boolean;
|
|
21
|
+
/** Si true, el label se trunca con "..." si no cabe en el espacio disponible */
|
|
22
|
+
truncateLabel?: boolean;
|
|
23
|
+
/** Si true y truncateLabel es true, muestra tooltip con el texto completo al hacer hover cuando está truncado. Por defecto false. */
|
|
24
|
+
truncateTooltip?: boolean;
|
|
21
25
|
}
|
|
22
26
|
/** @deprecated Usa BadgeProps en su lugar */
|
|
23
27
|
export type IBadgeProps = BadgeProps;
|