@ai-matrx/records-ui 0.116.12 → 0.116.13
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 +21 -1
- package/dist/{chunk-HL7ZIVVJ.js → chunk-NE72B4OK.js} +163 -139
- package/dist/{chunk-HL7ZIVVJ.js.map → chunk-NE72B4OK.js.map} +1 -1
- package/dist/index.cjs +2454 -2425
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -4
- package/dist/index.js.map +1 -1
- package/dist/pickers.cjs +212 -188
- package/dist/pickers.cjs.map +1 -1
- package/dist/pickers.js +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -172,7 +172,7 @@ import {
|
|
|
172
172
|
withoutAddition,
|
|
173
173
|
withoutLeadingBlank,
|
|
174
174
|
workedOutErrorFor
|
|
175
|
-
} from "./chunk-
|
|
175
|
+
} from "./chunk-NE72B4OK.js";
|
|
176
176
|
import {
|
|
177
177
|
CHART_PLOT_PX,
|
|
178
178
|
RECORDS_GRID_ROW_PX,
|
|
@@ -23735,6 +23735,11 @@ function StuckList({ rows }) {
|
|
|
23735
23735
|
] });
|
|
23736
23736
|
}
|
|
23737
23737
|
var HEIGHT = CHART_PLOT_PX;
|
|
23738
|
+
var MANY_SLICES = 24;
|
|
23739
|
+
function donutGap(slices) {
|
|
23740
|
+
if (slices <= 1) return 0;
|
|
23741
|
+
return slices > MANY_SLICES ? 180 / slices : 1;
|
|
23742
|
+
}
|
|
23738
23743
|
var DONUT_LEGEND_MAX_PX = 264;
|
|
23739
23744
|
function compactTick(value) {
|
|
23740
23745
|
if (typeof value !== "number" || !Number.isFinite(value)) return String(value ?? "");
|
|
@@ -23847,10 +23852,10 @@ function Drawing({
|
|
|
23847
23852
|
nameKey: "label",
|
|
23848
23853
|
innerRadius: 44,
|
|
23849
23854
|
outerRadius: 66,
|
|
23850
|
-
paddingAngle: points.length
|
|
23855
|
+
paddingAngle: donutGap(points.length),
|
|
23851
23856
|
isAnimationActive: false,
|
|
23852
23857
|
...click ? { onClick: click, className: "cursor-pointer" } : {},
|
|
23853
|
-
children: points.map((point, at) => /* @__PURE__ */ jsx79(Cell, { fill: String(config[point.label]?.color ?? SERIES_COLORS[at % SERIES_COLORS.length]) }, `${at}:${point.label}`))
|
|
23858
|
+
children: points.map((point, at) => /* @__PURE__ */ jsx79(Cell, { fill: String(config[point.label]?.color ?? SERIES_COLORS[at % SERIES_COLORS.length]), ...points.length > MANY_SLICES ? { stroke: "none" } : {} }, `${at}:${point.label}`))
|
|
23854
23859
|
}
|
|
23855
23860
|
)
|
|
23856
23861
|
] }) });
|
|
@@ -23876,7 +23881,7 @@ function Drawing({
|
|
|
23876
23881
|
/* @__PURE__ */ jsx79("span", { className: "h-2.5 w-2.5 shrink-0 rounded-[2px]", style: { background: String(config[point.label]?.color ?? SERIES_COLORS[at % SERIES_COLORS.length]) } }),
|
|
23877
23882
|
/* @__PURE__ */ jsx79("span", { className: "min-w-0 flex-1 truncate", title: point.label, children: point.label }),
|
|
23878
23883
|
/* @__PURE__ */ jsx79("span", { className: "tabular-nums", "data-records-donut-value": "", children: pretty(value) }),
|
|
23879
|
-
/* @__PURE__ */ jsx79("span", { className: "w-10 shrink-0 text-right tabular-nums text-muted-foreground", "data-records-donut-share": "", children: `${share}%` })
|
|
23884
|
+
/* @__PURE__ */ jsx79("span", { className: "min-w-10 shrink-0 whitespace-nowrap text-right tabular-nums text-muted-foreground", "data-records-donut-share": "", children: `${share}%` })
|
|
23880
23885
|
] });
|
|
23881
23886
|
return /* @__PURE__ */ jsx79("li", { className: "min-w-0 text-xs", children: onDrill ? /* @__PURE__ */ jsx79("button", { type: "button", className: "flex w-full min-w-0 items-center gap-2 rounded px-1 py-0.5 text-left hover:bg-muted focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring", onClick: () => onDrill(point), children: row }) : /* @__PURE__ */ jsx79("span", { className: "flex w-full min-w-0 items-center gap-2 px-1 py-0.5", children: row }) }, `${at}:${point.label}`);
|
|
23882
23887
|
}) }) : null
|