@ai-matrx/records-ui 0.113.38 → 0.113.39
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 +12 -0
- package/dist/index.cjs +20 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +27 -9
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -48840,7 +48840,7 @@ function subscribeCalendarAction(args) {
|
|
|
48840
48840
|
// src/CalendarSubscribe.tsx
|
|
48841
48841
|
import { copyText as copyText11 } from "@ai-matrx/kit/clipboard";
|
|
48842
48842
|
import { useState as useState133 } from "react";
|
|
48843
|
-
import { Button as Button105, Dialog as Dialog15, DialogContent as DialogContent15, DialogHeader as DialogHeader15, DialogTitle as DialogTitle15 } from "@ai-matrx/design-system";
|
|
48843
|
+
import { Button as Button105, Dialog as Dialog15, DialogContent as DialogContent15, DialogHeader as DialogHeader15, DialogTitle as DialogTitle15, ErrorBox as ErrorBox8 } from "@ai-matrx/design-system";
|
|
48844
48844
|
import { jsx as jsx159, jsxs as jsxs148 } from "react/jsx-runtime";
|
|
48845
48845
|
function CalendarLinkOnce({ url }) {
|
|
48846
48846
|
const notify = useRecordsUi().notify;
|
|
@@ -48908,7 +48908,16 @@ function CalendarSubscribeDialog({
|
|
|
48908
48908
|
/* @__PURE__ */ jsx159("p", { className: "text-sm text-muted-foreground", children: "Shows the rows this view shows, read as you." }),
|
|
48909
48909
|
url ? /* @__PURE__ */ jsx159(CalendarLinkOnce, { url }) : /* @__PURE__ */ jsxs148("div", { className: "flex flex-col gap-2", children: [
|
|
48910
48910
|
/* @__PURE__ */ jsx159(Button105, { size: "sm", onClick: () => void make(), disabled: busy, "data-calendar-make": "", children: busy ? "Making\u2026" : "Make link" }),
|
|
48911
|
-
error ? /* @__PURE__ */ jsx159(
|
|
48911
|
+
error ? /* @__PURE__ */ jsx159(
|
|
48912
|
+
ErrorBox8,
|
|
48913
|
+
{
|
|
48914
|
+
className: "text-sm text-destructive",
|
|
48915
|
+
"data-calendar-error": "",
|
|
48916
|
+
message: error,
|
|
48917
|
+
operation: "Create a calendar link",
|
|
48918
|
+
origin: "records-ui/CalendarSubscribe"
|
|
48919
|
+
}
|
|
48920
|
+
) : null
|
|
48912
48921
|
] })
|
|
48913
48922
|
] }) });
|
|
48914
48923
|
}
|
|
@@ -49174,7 +49183,7 @@ function TableReferenceDialog({
|
|
|
49174
49183
|
import { formatCount as formatCount7 } from "@ai-matrx/kit/format";
|
|
49175
49184
|
import { useState as useState137 } from "react";
|
|
49176
49185
|
import { tableShapeChanged as tableShapeChanged13, useRecordsClient as useRecordsClient98 } from "@ai-matrx/records/react";
|
|
49177
|
-
import { Button as Button109, Dialog as Dialog18, DialogContent as DialogContent18, DialogFooter as DialogFooter11, DialogHeader as DialogHeader18, DialogTitle as DialogTitle18, ErrorBox as
|
|
49186
|
+
import { Button as Button109, Dialog as Dialog18, DialogContent as DialogContent18, DialogFooter as DialogFooter11, DialogHeader as DialogHeader18, DialogTitle as DialogTitle18, ErrorBox as ErrorBox9, Input as Input10, Switch as Switch5 } from "@ai-matrx/design-system";
|
|
49178
49187
|
import { Fragment as Fragment67, jsx as jsx163, jsxs as jsxs152 } from "react/jsx-runtime";
|
|
49179
49188
|
function copyNameFor(name) {
|
|
49180
49189
|
return `${name.trim() || "Table"} (copy)`;
|
|
@@ -49263,7 +49272,7 @@ function TableDuplicateDialog({ tableId, name, open, onOpenChange, onDuplicated
|
|
|
49263
49272
|
/* @__PURE__ */ jsx163(Switch5, { checked: withRecords, disabled: copying, onCheckedChange: setWithRecords, "aria-label": "Copy its records" })
|
|
49264
49273
|
] }),
|
|
49265
49274
|
phase.kind === "copying" ? /* @__PURE__ */ jsx163("p", { className: "text-xs text-muted-foreground", "data-table-duplicate-progress": "", children: phase.progress ? duplicateProgressWords(phase.progress) : "Starting the copy\u2026" }) : null,
|
|
49266
|
-
phase.kind === "refused" ? /* @__PURE__ */ jsx163(
|
|
49275
|
+
phase.kind === "refused" ? /* @__PURE__ */ jsx163(ErrorBox9, { children: phase.sentence }) : null,
|
|
49267
49276
|
problem && typed2 !== "" ? /* @__PURE__ */ jsx163("p", { className: "text-xs text-muted-foreground", children: problem }) : null
|
|
49268
49277
|
] }),
|
|
49269
49278
|
/* @__PURE__ */ jsx163(DialogFooter11, { children: phase.kind === "done" ? /* @__PURE__ */ jsx163(Button109, { onClick: () => openCopy(phase.copy), "data-table-duplicate-open": "", children: "Open the copy" }) : /* @__PURE__ */ jsxs152(Fragment67, { children: [
|
|
@@ -51027,7 +51036,7 @@ import { formatCount as formatCount8 } from "@ai-matrx/kit/format";
|
|
|
51027
51036
|
import { TapTargetSearchGroup as TapTargetSearchGroup2, TooltipProvider } from "@ai-matrx/design-system";
|
|
51028
51037
|
import { MatrxTableCardShowMore as MatrxTableCardShowMore3 } from "@ai-matrx/design-system/data-table";
|
|
51029
51038
|
import { useEffect as useEffect119, useMemo as useMemo79, useRef as useRef63, useState as useState141 } from "react";
|
|
51030
|
-
import { Button as Button112, ErrorBox as
|
|
51039
|
+
import { Button as Button112, ErrorBox as ErrorBox10, Input as Input12, cn as cn98 } from "@ai-matrx/design-system";
|
|
51031
51040
|
import { SEED_FRESH_MS, useRecordsClient as useRecordsClient100, useSeededAnswerAt } from "@ai-matrx/records/react";
|
|
51032
51041
|
import { Fragment as Fragment69, jsx as jsx167, jsxs as jsxs156 } from "react/jsx-runtime";
|
|
51033
51042
|
var entityTitleColumn = entityNameColumn;
|
|
@@ -51084,7 +51093,7 @@ function EntityBoard({ entity, groupBy, cardFields, onOpenRecord, className }) {
|
|
|
51084
51093
|
/* @__PURE__ */ jsx167("span", { className: "truncate font-medium", children: lane.label }),
|
|
51085
51094
|
/* @__PURE__ */ jsx167("span", { className: "tabular-nums text-muted-foreground", children: cards.length })
|
|
51086
51095
|
] }),
|
|
51087
|
-
refused && refused.to === lane.key ? /* @__PURE__ */ jsx167(
|
|
51096
|
+
refused && refused.to === lane.key ? /* @__PURE__ */ jsx167(ErrorBox10, { className: "rounded border border-destructive/40 px-1.5 py-1 text-xs text-destructive", message: refused.says, operation: "Move a card", origin: "records-ui/entityViews" }) : null,
|
|
51088
51097
|
cards.map((row) => /* @__PURE__ */ jsxs156(
|
|
51089
51098
|
"article",
|
|
51090
51099
|
{
|
|
@@ -51256,7 +51265,7 @@ function EntityTablePageBody({
|
|
|
51256
51265
|
actions
|
|
51257
51266
|
] })
|
|
51258
51267
|
] }) : null,
|
|
51259
|
-
addRefused ? /* @__PURE__ */ jsx167(
|
|
51268
|
+
addRefused ? /* @__PURE__ */ jsx167(ErrorBox10, { className: "rounded border border-destructive/40 px-1.5 py-1 text-xs text-destructive", message: addRefused, operation: "Add a row", origin: "records-ui/entityViews" }) : null,
|
|
51260
51269
|
entity.error ? /* @__PURE__ */ jsx167("p", { className: "px-1 py-3 text-xs text-muted-foreground", children: `This table could not be read: ${entity.error}` }) : layout === "board" && boardable ? /* @__PURE__ */ jsx167(EntityBoard, { entity, groupBy, onOpenRecord }) : /* @__PURE__ */ jsxs156(Fragment69, { children: [
|
|
51261
51270
|
presentation === "embedded" && searchBox ? /* @__PURE__ */ jsx167("div", { className: "flex min-w-0 items-center justify-end", "data-records-entity-search": "", children: /* @__PURE__ */ jsx167(TooltipProvider, { children: /* @__PURE__ */ jsx167(
|
|
51262
51271
|
TapTargetSearchGroup2,
|
|
@@ -51677,7 +51686,7 @@ function Decision({
|
|
|
51677
51686
|
|
|
51678
51687
|
// src/CalendarLinks.tsx
|
|
51679
51688
|
import { useCallback as useCallback70, useEffect as useEffect122, useState as useState143 } from "react";
|
|
51680
|
-
import { Button as Button115 } from "@ai-matrx/design-system";
|
|
51689
|
+
import { Button as Button115, ErrorBox as ErrorBox11 } from "@ai-matrx/design-system";
|
|
51681
51690
|
import { jsx as jsx172, jsxs as jsxs160 } from "react/jsx-runtime";
|
|
51682
51691
|
var day = (iso) => iso ? new Date(iso).toLocaleDateString(void 0, { year: "numeric", month: "short", day: "numeric" }) : null;
|
|
51683
51692
|
function CalendarLinks({ port }) {
|
|
@@ -51705,7 +51714,16 @@ function CalendarLinks({ port }) {
|
|
|
51705
51714
|
};
|
|
51706
51715
|
if (rows === null && !error) return /* @__PURE__ */ jsx172("p", { className: "text-sm text-muted-foreground", "data-calendar-links-loading": "", children: "Reading your links\u2026" });
|
|
51707
51716
|
return /* @__PURE__ */ jsxs160("div", { className: "flex flex-col gap-2", "data-calendar-links": "", children: [
|
|
51708
|
-
error ? /* @__PURE__ */ jsx172(
|
|
51717
|
+
error ? /* @__PURE__ */ jsx172(
|
|
51718
|
+
ErrorBox11,
|
|
51719
|
+
{
|
|
51720
|
+
className: "text-sm text-destructive",
|
|
51721
|
+
"data-calendar-error": "",
|
|
51722
|
+
message: error,
|
|
51723
|
+
operation: "Manage calendar links",
|
|
51724
|
+
origin: "records-ui/CalendarLinks"
|
|
51725
|
+
}
|
|
51726
|
+
) : null,
|
|
51709
51727
|
rows && rows.length === 0 ? /* @__PURE__ */ jsx172("p", { className: "text-sm text-muted-foreground", children: "No calendar links yet." }) : null,
|
|
51710
51728
|
rows?.map((row) => /* @__PURE__ */ jsxs160("div", { className: "flex flex-col gap-2 rounded-md border px-3 py-2", "data-calendar-link-row": row.id, children: [
|
|
51711
51729
|
/* @__PURE__ */ jsxs160("div", { className: "flex flex-wrap items-center justify-between gap-2", children: [
|