@imj_media/ui 1.2.73 → 1.2.74
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 +2 -1
- package/dist/index.esm.js +5137 -5128
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +9 -9
- package/dist/index.js.map +1 -1
- package/dist/modules/Table/components/atoms/ButtonCell.d.ts.map +1 -1
- package/dist/modules/Table/components/atoms/DateCell.d.ts.map +1 -1
- package/dist/modules/Table/components/atoms/DropdownCell.d.ts.map +1 -1
- package/dist/modules/Table/components/atoms/IconCell.d.ts.map +1 -1
- package/dist/modules/Table/components/atoms/LinkCell.d.ts.map +1 -1
- package/dist/modules/Table/components/atoms/PrimaryCell.d.ts.map +1 -1
- package/dist/modules/Table/components/atoms/ProgressBarCell.d.ts.map +1 -1
- package/dist/modules/Table/components/atoms/SkeletonCell.d.ts.map +1 -1
- package/dist/modules/Table/components/atoms/StatusCell.d.ts.map +1 -1
- package/dist/modules/Table/components/atoms/TableCell.d.ts.map +1 -1
- package/dist/modules/Table/components/atoms/TagsCell.d.ts.map +1 -1
- package/dist/modules/Table/components/atoms/TextFieldCell.d.ts.map +1 -1
- package/dist/modules/Table/components/molecules/HeaderCell.d.ts.map +1 -1
- package/dist/modules/Table/components/organisms/TableContent.d.ts.map +1 -1
- package/dist/modules/Table/utils/cellStyles.d.ts +12 -0
- package/dist/modules/Table/utils/cellStyles.d.ts.map +1 -1
- package/package.json +2 -1
|
@@ -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;
|
|
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;AAoB/D,eAAO,MAAM,UAAU,GAAI,uHAWxB,uBAAuB,4CAgCzB,CAAC"}
|
|
@@ -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":"AAUA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGtD,eAAO,MAAM,QAAQ,uLAchB,aAAa,6CA6CjB,CAAC"}
|
|
@@ -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;
|
|
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;AAW/D,eAAO,MAAM,YAAY,GAAI,4HAW1B,uBAAuB,4CAiDzB,CAAA"}
|
|
@@ -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;
|
|
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;AAsB/D,eAAO,MAAM,QAAQ,GAAI,uHAWtB,uBAAuB,4CAwHzB,CAAC"}
|
|
@@ -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;AAW9E,eAAO,MAAM,QAAQ,GAAI,uHAWtB,uBAAuB,4CAgCzB,CAAC"}
|
|
@@ -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;AAajF,eAAO,MAAM,WAAW,8JAYnB,uBAAuB,6CA4D3B,CAAC"}
|
|
@@ -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;
|
|
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;AAgB/D;;;GAGG;AACH,eAAO,MAAM,eAAe,GAAI,kHAU7B,uBAAuB,4CA6CzB,CAAC"}
|
|
@@ -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;
|
|
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;AAU/D,eAAO,MAAM,YAAY,GAAI,2GAS1B,uBAAuB,4CAmBzB,CAAC"}
|
|
@@ -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;AAiB7F,eAAO,MAAM,UAAU,yJAWlB,uBAAuB,6CAyJ3B,CAAC"}
|
|
@@ -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;AAY/D,eAAO,MAAM,SAAS,wKAajB,uBAAuB,6CAoC3B,CAAC"}
|
|
@@ -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;
|
|
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;AAuC/D,eAAO,MAAM,QAAQ,yJAWhB,uBAAuB,6CA0F3B,CAAC"}
|
|
@@ -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;
|
|
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;AAY/D,eAAO,MAAM,aAAa,GAAI,4HAW3B,uBAAuB,4CAmJzB,CAAC"}
|
|
@@ -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;AA0BvD,eAAO,MAAM,UAAU,GAAI,0RAuBxB,eAAe,
|
|
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,4CA0bjB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableContent.d.ts","sourceRoot":"","sources":["../../../../../src/modules/Table/components/organisms/TableContent.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"TableContent.d.ts","sourceRoot":"","sources":["../../../../../src/modules/Table/components/organisms/TableContent.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAO7D,UAAU,iBAAiB,CAAC,CAAC,GAAG,OAAO,CACrC,SAAQ,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,SAAS,GAAG,YAAY,GAAG,QAAQ,GAAG,UAAU,CAAC;IAC7E,WAAW,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;IAClC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,WAAW,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IAC1C,WAAW,CAAC,EAAE,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC,CAAC,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,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,4CA0HtB,CAAC"}
|
|
@@ -16,6 +16,10 @@ import { CellState, ColumnConfig } from '../../../shared/types/table';
|
|
|
16
16
|
export declare const getTableCellClasses: (state?: CellState, additionalClasses?: string, locked?: boolean, isLastLocked?: boolean, isEditing?: boolean, isRowEditing?: boolean, isActionsColumn?: boolean, hasFixedWidth?: boolean) => string;
|
|
17
17
|
/** Ancho por defecto de la columna de acciones cuando no tiene width definido (evita que se colapse). */
|
|
18
18
|
export declare const DEFAULT_ACTIONS_COLUMN_WIDTH = 120;
|
|
19
|
+
/** Ancho mínimo por defecto para columnas sin width definido (ancho automático). Evita que se compriman y que se superpongan a la columna de acciones; fuerza scroll horizontal cuando el viewport es pequeño. */
|
|
20
|
+
export declare const DEFAULT_MIN_COLUMN_WIDTH = 80;
|
|
21
|
+
/** Ancho mínimo de la columna flex (maxWidth: 'auto' sin width). Es la que toma el espacio restante y puede truncar; con este mínimo se evita que quede demasiado estrecha. */
|
|
22
|
+
export declare const DEFAULT_FLEX_COLUMN_MIN_WIDTH = 300;
|
|
19
23
|
/**
|
|
20
24
|
* Genera las propiedades comunes para una celda (data-attributes y estilos)
|
|
21
25
|
* Mantiene consistencia en anchos y identificadores
|
|
@@ -34,6 +38,14 @@ export declare const getTableCellProps: (column: ColumnConfig, stickyLeft?: numb
|
|
|
34
38
|
maxWidth: number | undefined;
|
|
35
39
|
};
|
|
36
40
|
};
|
|
41
|
+
/**
|
|
42
|
+
* Indica si la columna es la "flex" (maxWidth: 'auto' sin width): toma el espacio restante y debe poder truncar con ellipsis.
|
|
43
|
+
*/
|
|
44
|
+
export declare const isFlexColumn: (column: ColumnConfig, hasColumnMaxWidthAuto?: boolean) => boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Devuelve el ancho mínimo efectivo en píxeles de una columna (para calcular el minWidth total de la tabla).
|
|
47
|
+
*/
|
|
48
|
+
export declare const getColumnMinWidthPx: (column: ColumnConfig, isActionsColumn?: boolean, hasColumnMaxWidthAuto?: boolean) => number;
|
|
37
49
|
/**
|
|
38
50
|
* Genera las clases de alineamiento del contenido de una celda
|
|
39
51
|
*
|
|
@@ -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,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;;;;;;;;;
|
|
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,kNAAkN;AAClN,eAAO,MAAM,wBAAwB,KAAK,CAAC;AAE3C,+KAA+K;AAC/K,eAAO,MAAM,6BAA6B,MAAM,CAAC;AAEjD;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB,GAC5B,QAAQ,YAAY,EACpB,aAAY,MAAU,EACtB,cAAc,MAAM,EACpB,kBAAkB,OAAO,EACzB,wBAAwB,OAAO;;;;;;;;;CA2DhC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY,GACvB,QAAQ,YAAY,EACpB,wBAAwB,OAAO,KAC9B,OAKA,CAAC;AAEJ;;GAEG;AACH,eAAO,MAAM,mBAAmB,GAC9B,QAAQ,YAAY,EACpB,kBAAkB,OAAO,EACzB,wBAAwB,OAAO,KAC9B,MAiBF,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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@imj_media/ui",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.74",
|
|
4
4
|
"description": "Componentes UI",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Oscar Rubio - IMJ",
|
|
@@ -102,6 +102,7 @@
|
|
|
102
102
|
},
|
|
103
103
|
"dependencies": {
|
|
104
104
|
"@bitux/review-layer-react": "0.1.11",
|
|
105
|
+
"@imj_media/orbit-tokens": "^1.0.0",
|
|
105
106
|
"classnames": "^2.3.2",
|
|
106
107
|
"dayjs": "^1.11.13",
|
|
107
108
|
"element-resize-detector": "^1.2.4",
|