@ordinatio/ui 1.11.0 → 1.12.0
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
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Entries start at 1.9.0 (older history is in git).
|
|
4
4
|
|
|
5
|
+
## 1.12.0
|
|
6
|
+
|
|
7
|
+
- `BoardCard.tags[].chipClassName` (optional): classes the app computes for one tag's chip on the card (for example the tag's own color). They are added after the injected `tagChip` class; giving one also switches the default look off, as an injected class does. A card whose tags have none renders exactly as in 1.11.0.
|
|
8
|
+
|
|
5
9
|
## 1.11.0
|
|
6
10
|
|
|
7
11
|
Board refinements found in the first real browser passes. Every new prop is optional and an app that passes none behaves as in 1.10.0, except `stretchColumns` (columns now share the tallest column's height by default; pass `false` for the old look).
|
package/dist/board-dnd.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { c as BoardCard, b as BoardColumnData, D as DropRule, e as BoardDnd } from './board-types-
|
|
2
|
+
import { c as BoardCard, b as BoardColumnData, D as DropRule, e as BoardDnd } from './board-types-CMDkTs9V.mjs';
|
|
3
3
|
|
|
4
4
|
/** How a drag starts. A mouse needs a small move; a finger needs a long press (so scrolling the row still works) with a small allowed wobble. The keyboard uses Space to pick up and drop and Escape to cancel. */
|
|
5
5
|
declare const BOARD_DND_SENSORS: {
|
|
@@ -14,9 +14,11 @@ interface BoardCard {
|
|
|
14
14
|
overdue?: boolean;
|
|
15
15
|
ownerInitials?: string | null;
|
|
16
16
|
/** At most two are drawn. */
|
|
17
|
+
/** `chipClassName` (optional): classes the APP computes for this tag's chip (for example its own color). They are added after the injected `tagChip` class; giving one also switches the default look off, as an injected class does. */
|
|
17
18
|
tags?: ReadonlyArray<{
|
|
18
19
|
id: string;
|
|
19
20
|
label: string;
|
|
21
|
+
chipClassName?: string;
|
|
20
22
|
}>;
|
|
21
23
|
/** A closed card shows its badge. */
|
|
22
24
|
badge?: 'won' | 'lost' | null;
|
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as react from 'react';
|
|
3
3
|
import { Component, ReactNode, ErrorInfo, ComponentType, CSSProperties, ElementType, RefObject, FormEvent, KeyboardEvent as KeyboardEvent$1 } from 'react';
|
|
4
|
-
import { B as BoardTexts, a as BoardClassNames, b as BoardColumnData, M as MoveHandler, c as BoardCard, d as MoveTarget, A as AddCardHandler, R as RenderCardTitle, e as BoardDnd, C as CardShellProps, f as AddCardInput, g as BoardResult } from './board-types-
|
|
5
|
-
export { h as BoardColumnKind, i as ColumnShellProps, D as DropRule, j as MoveRequest } from './board-types-
|
|
4
|
+
import { B as BoardTexts, a as BoardClassNames, b as BoardColumnData, M as MoveHandler, c as BoardCard, d as MoveTarget, A as AddCardHandler, R as RenderCardTitle, e as BoardDnd, C as CardShellProps, f as AddCardInput, g as BoardResult } from './board-types-CMDkTs9V.mjs';
|
|
5
|
+
export { h as BoardColumnKind, i as ColumnShellProps, D as DropRule, j as MoveRequest } from './board-types-CMDkTs9V.mjs';
|
|
6
6
|
|
|
7
7
|
interface ErrorBoundaryProps {
|
|
8
8
|
children: ReactNode;
|
package/dist/index.mjs
CHANGED
|
@@ -3277,7 +3277,7 @@ function DealCard({ card, texts, classNames, pending = false, dragging = false,
|
|
|
3277
3277
|
] }) : null,
|
|
3278
3278
|
card.ownerInitials || tags.length > 0 || badge ? /* @__PURE__ */ jsxs17("p", { ...boardPart(classNames, "cardMeta"), style: { ...boardPart(classNames, "cardMeta").style, display: "flex", flexWrap: "wrap", alignItems: "center", gap: "6px" }, children: [
|
|
3279
3279
|
card.ownerInitials ? /* @__PURE__ */ jsx18("span", { ...boardPart(classNames, "ownerMark"), "aria-label": card.ownerFormer && texts.ownerFormer ? `${texts.owner} ${card.ownerInitials} (${texts.ownerFormer})` : `${texts.owner} ${card.ownerInitials}`, role: "img", children: card.ownerInitials }) : null,
|
|
3280
|
-
tags.map((tag) => /* @__PURE__ */ jsx18("span", { ...boardPart(classNames, "tagChip"), children: tag.label }, tag.id)),
|
|
3280
|
+
tags.map((tag) => /* @__PURE__ */ jsx18("span", { ...boardPart(tag.chipClassName ? { ...classNames, tagChip: [classNames?.tagChip, tag.chipClassName].filter(Boolean).join(" ") } : classNames, "tagChip"), children: tag.label }, tag.id)),
|
|
3281
3281
|
hiddenTags > 0 ? /* @__PURE__ */ jsx18("span", { ...boardPart(classNames, "tagChip"), children: texts.moreTags ? texts.moreTags(hiddenTags) : `+${hiddenTags}` }) : null,
|
|
3282
3282
|
badge ? /* @__PURE__ */ jsx18("span", { ...boardPart(classNames, card.badge === "won" ? "badgeWon" : "badgeLost"), children: badge }) : null
|
|
3283
3283
|
] }) : null,
|