@libxai/board 1.9.7 → 1.9.8
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/dist/index.cjs +22 -22
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +33 -1
- package/dist/index.d.ts +33 -1
- package/dist/index.js +22 -22
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -2228,11 +2228,43 @@ interface SwimlaneBoardViewProps {
|
|
|
2228
2228
|
};
|
|
2229
2229
|
/** Custom className */
|
|
2230
2230
|
className?: string;
|
|
2231
|
+
/**
|
|
2232
|
+
* Swimlanes PRE-CONSTRUIDOS por el consumidor. Si se proveen, se usan tal
|
|
2233
|
+
* cual y se ignora `swimlaneConfig.groupBy` / generateSwimlanes. Permite
|
|
2234
|
+
* agrupar por cualquier criterio externo (p.ej. jerarquía WBS padre→hojas)
|
|
2235
|
+
* que la librería no modela internamente.
|
|
2236
|
+
*/
|
|
2237
|
+
swimlanes?: Swimlane[];
|
|
2238
|
+
/**
|
|
2239
|
+
* Render custom de la cabecera de cada lane. Si se omite, se usa el header
|
|
2240
|
+
* por defecto (icono + título + conteo). Recibe la lane y si está colapsada;
|
|
2241
|
+
* el click de colapso lo gestiona el contenedor — envolver el contenido en
|
|
2242
|
+
* el área clickeable es responsabilidad del header default, así que cuando
|
|
2243
|
+
* se provee este render, el toggle se expone vía `onToggleCollapse`.
|
|
2244
|
+
*/
|
|
2245
|
+
renderSwimlaneHeader?: (args: {
|
|
2246
|
+
lane: Swimlane;
|
|
2247
|
+
isCollapsed: boolean;
|
|
2248
|
+
cardCount: number;
|
|
2249
|
+
onToggleCollapse: () => void;
|
|
2250
|
+
}) => ReactNode;
|
|
2251
|
+
/**
|
|
2252
|
+
* renderProps/config/onCardClick que se reenvían al KanbanBoard de CADA
|
|
2253
|
+
* lane (antes se perdían: las tarjetas dentro de swimlanes no podían usar
|
|
2254
|
+
* renderers custom). Opcionales y retrocompatibles.
|
|
2255
|
+
*/
|
|
2256
|
+
renderProps?: KanbanBoardProps['renderProps'];
|
|
2257
|
+
config?: KanbanBoardProps['config'];
|
|
2258
|
+
onCardClick?: KanbanBoardProps['onCardClick'];
|
|
2259
|
+
suppressDetailModal?: boolean;
|
|
2260
|
+
availableTags?: KanbanBoardProps['availableTags'];
|
|
2261
|
+
attachmentsByCard?: KanbanBoardProps['attachmentsByCard'];
|
|
2262
|
+
renderColumnMetrics?: KanbanBoardProps['renderColumnMetrics'];
|
|
2231
2263
|
}
|
|
2232
2264
|
/**
|
|
2233
2265
|
* SwimlaneBoardView Component
|
|
2234
2266
|
*/
|
|
2235
|
-
declare function SwimlaneBoardView({ board, swimlaneConfig, availableUsers, callbacks, className, }: SwimlaneBoardViewProps): react_jsx_runtime.JSX.Element;
|
|
2267
|
+
declare function SwimlaneBoardView({ board, swimlaneConfig, availableUsers, callbacks, className, swimlanes: providedSwimlanes, renderSwimlaneHeader, renderProps, config, onCardClick, suppressDetailModal, availableTags, attachmentsByCard, renderColumnMetrics, }: SwimlaneBoardViewProps): react_jsx_runtime.JSX.Element;
|
|
2236
2268
|
|
|
2237
2269
|
interface GroupBySelectorProps {
|
|
2238
2270
|
/** Current groupBy value */
|
package/dist/index.d.ts
CHANGED
|
@@ -2228,11 +2228,43 @@ interface SwimlaneBoardViewProps {
|
|
|
2228
2228
|
};
|
|
2229
2229
|
/** Custom className */
|
|
2230
2230
|
className?: string;
|
|
2231
|
+
/**
|
|
2232
|
+
* Swimlanes PRE-CONSTRUIDOS por el consumidor. Si se proveen, se usan tal
|
|
2233
|
+
* cual y se ignora `swimlaneConfig.groupBy` / generateSwimlanes. Permite
|
|
2234
|
+
* agrupar por cualquier criterio externo (p.ej. jerarquía WBS padre→hojas)
|
|
2235
|
+
* que la librería no modela internamente.
|
|
2236
|
+
*/
|
|
2237
|
+
swimlanes?: Swimlane[];
|
|
2238
|
+
/**
|
|
2239
|
+
* Render custom de la cabecera de cada lane. Si se omite, se usa el header
|
|
2240
|
+
* por defecto (icono + título + conteo). Recibe la lane y si está colapsada;
|
|
2241
|
+
* el click de colapso lo gestiona el contenedor — envolver el contenido en
|
|
2242
|
+
* el área clickeable es responsabilidad del header default, así que cuando
|
|
2243
|
+
* se provee este render, el toggle se expone vía `onToggleCollapse`.
|
|
2244
|
+
*/
|
|
2245
|
+
renderSwimlaneHeader?: (args: {
|
|
2246
|
+
lane: Swimlane;
|
|
2247
|
+
isCollapsed: boolean;
|
|
2248
|
+
cardCount: number;
|
|
2249
|
+
onToggleCollapse: () => void;
|
|
2250
|
+
}) => ReactNode;
|
|
2251
|
+
/**
|
|
2252
|
+
* renderProps/config/onCardClick que se reenvían al KanbanBoard de CADA
|
|
2253
|
+
* lane (antes se perdían: las tarjetas dentro de swimlanes no podían usar
|
|
2254
|
+
* renderers custom). Opcionales y retrocompatibles.
|
|
2255
|
+
*/
|
|
2256
|
+
renderProps?: KanbanBoardProps['renderProps'];
|
|
2257
|
+
config?: KanbanBoardProps['config'];
|
|
2258
|
+
onCardClick?: KanbanBoardProps['onCardClick'];
|
|
2259
|
+
suppressDetailModal?: boolean;
|
|
2260
|
+
availableTags?: KanbanBoardProps['availableTags'];
|
|
2261
|
+
attachmentsByCard?: KanbanBoardProps['attachmentsByCard'];
|
|
2262
|
+
renderColumnMetrics?: KanbanBoardProps['renderColumnMetrics'];
|
|
2231
2263
|
}
|
|
2232
2264
|
/**
|
|
2233
2265
|
* SwimlaneBoardView Component
|
|
2234
2266
|
*/
|
|
2235
|
-
declare function SwimlaneBoardView({ board, swimlaneConfig, availableUsers, callbacks, className, }: SwimlaneBoardViewProps): react_jsx_runtime.JSX.Element;
|
|
2267
|
+
declare function SwimlaneBoardView({ board, swimlaneConfig, availableUsers, callbacks, className, swimlanes: providedSwimlanes, renderSwimlaneHeader, renderProps, config, onCardClick, suppressDetailModal, availableTags, attachmentsByCard, renderColumnMetrics, }: SwimlaneBoardViewProps): react_jsx_runtime.JSX.Element;
|
|
2236
2268
|
|
|
2237
2269
|
interface GroupBySelectorProps {
|
|
2238
2270
|
/** Current groupBy value */
|