@ai-matrx/records-ui 0.95.2 → 0.95.3
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 +9 -0
- package/dist/index.cjs +7 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -29101,7 +29101,7 @@ function ViewBar({ tableId, activeViewId, onActiveView, seed, settings, onViews,
|
|
|
29101
29101
|
/* @__PURE__ */ jsx94(Button62, { size: "sm", type: "submit", className: "h-7", children: "Save" })
|
|
29102
29102
|
]
|
|
29103
29103
|
}
|
|
29104
|
-
) : viewActions(rights.admin ? null : rights
|
|
29104
|
+
) : viewActions(rights.admin ? null : rightsReason(rights, "structure") ?? ACTION_NO_ACCESS_REASON, {
|
|
29105
29105
|
rename: () => setRenaming(current.name),
|
|
29106
29106
|
duplicate: () => duplicate(current),
|
|
29107
29107
|
archive: () => archive(current)
|
|
@@ -38549,7 +38549,7 @@ function QuestionPanel({ tableId, activeQuestionId, className }) {
|
|
|
38549
38549
|
] }),
|
|
38550
38550
|
spec.group ? /* @__PURE__ */ jsxs113(Fragment50, { children: [
|
|
38551
38551
|
/* @__PURE__ */ jsx123(Label21, { className: "pt-1.5 text-xs text-muted-foreground", children: "Sort" }),
|
|
38552
|
-
/* @__PURE__ */ jsxs113("div", { className: "flex items-center gap-1.5", children: [
|
|
38552
|
+
/* @__PURE__ */ jsxs113("div", { className: "flex flex-wrap items-center gap-1.5", children: [
|
|
38553
38553
|
/* @__PURE__ */ jsx123(
|
|
38554
38554
|
PickOne,
|
|
38555
38555
|
{
|
|
@@ -38564,7 +38564,7 @@ function QuestionPanel({ tableId, activeQuestionId, className }) {
|
|
|
38564
38564
|
attrs: { "data-testid": "question-sort" }
|
|
38565
38565
|
}
|
|
38566
38566
|
),
|
|
38567
|
-
/* @__PURE__ */ jsx123("span", { className: "text-muted-foreground", children: "Show" }),
|
|
38567
|
+
/* @__PURE__ */ jsx123("span", { className: "whitespace-nowrap text-muted-foreground", children: "Show" }),
|
|
38568
38568
|
/* @__PURE__ */ jsx123(
|
|
38569
38569
|
BasicInput30,
|
|
38570
38570
|
{
|
|
@@ -38767,6 +38767,10 @@ function Answer({ tableId, spec, answer, fields, related }) {
|
|
|
38767
38767
|
const label = (value) => {
|
|
38768
38768
|
if (value === null || value === "") return "No value";
|
|
38769
38769
|
if (spec.group?.kind === "bucket") return bucketName(value, spec.group.by);
|
|
38770
|
+
if (groupField && isDateField(groupField)) {
|
|
38771
|
+
const asDate = dateText(groupField, value);
|
|
38772
|
+
if (asDate) return asDate;
|
|
38773
|
+
}
|
|
38770
38774
|
if (answer.groupKey) {
|
|
38771
38775
|
const named = namer?.(answer.groupKey, value);
|
|
38772
38776
|
if (named !== void 0) return named ?? "\u2014";
|