@ai-matrx/records-ui 0.116.46 → 0.116.48
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 +37 -1
- package/dist/{SaveToTable-SWB2ZN5X.js → SaveToTable-HG3HQMAQ.js} +5 -5
- package/dist/{chunk-KQR2RA4V.js → chunk-ABIUJCNS.js} +3 -3
- package/dist/chunk-ABIUJCNS.js.map +1 -0
- package/dist/{chunk-Y5QOV3XA.js → chunk-K3B5IRXY.js} +3 -3
- package/dist/{chunk-OV6QBL5R.js → chunk-LBZZDHV6.js} +8 -8
- package/dist/chunk-LBZZDHV6.js.map +1 -0
- package/dist/{chunk-ZUQUZOL5.js → chunk-MDXDJVDB.js} +3 -3
- package/dist/chunk-MDXDJVDB.js.map +1 -0
- package/dist/{chunk-UTMV5ES2.js → chunk-VJDJQDDI.js} +7 -7
- package/dist/{chunk-UTMV5ES2.js.map → chunk-VJDJQDDI.js.map} +1 -1
- package/dist/helpers.cjs +9 -9
- package/dist/helpers.cjs.map +1 -1
- package/dist/helpers.js +9 -9
- package/dist/helpers.js.map +1 -1
- package/dist/index.cjs +76 -36
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +70 -29
- package/dist/index.js.map +1 -1
- package/dist/object-actions.cjs +8 -8
- package/dist/object-actions.cjs.map +1 -1
- package/dist/object-actions.d.cts +1 -1
- package/dist/object-actions.d.ts +1 -1
- package/dist/object-actions.js +2 -2
- package/dist/{objectActions-Be9sBGvW.d.cts → objectActions-DK-qa5zC.d.cts} +1 -1
- package/dist/{objectActions-Be9sBGvW.d.ts → objectActions-DK-qa5zC.d.ts} +1 -1
- package/dist/pickers.cjs +8 -8
- package/dist/pickers.cjs.map +1 -1
- package/dist/pickers.js +3 -3
- package/package.json +5 -5
- package/dist/chunk-KQR2RA4V.js.map +0 -1
- package/dist/chunk-OV6QBL5R.js.map +0 -1
- package/dist/chunk-ZUQUZOL5.js.map +0 -1
- /package/dist/{SaveToTable-SWB2ZN5X.js.map → SaveToTable-HG3HQMAQ.js.map} +0 -0
- /package/dist/{chunk-Y5QOV3XA.js.map → chunk-K3B5IRXY.js.map} +0 -0
package/dist/index.d.cts
CHANGED
|
@@ -3,8 +3,8 @@ import { ReactNode, ComponentType, KeyboardEvent, ReactElement, RefObject, SVGAt
|
|
|
3
3
|
import * as _ai_matrx_records from '@ai-matrx/records';
|
|
4
4
|
import { Field, ReadRow, Uuid, RowAction, RowActionStep, RecordScopeContext, EnrichCell, RecordsError, RecordDocument, Table, PermissionLevel, RecordRead, RowAgentTarget, AggregateFilter, RelationDisplay, WriteConflict, TableDecorations, StoreFilter as StoreFilter$1, ImportRun, NewFieldDeclaration, RuleExpression, ChoiceRehome, FieldOptionEdit, StoredRecord, ChoiceNudge, HiddenFieldNotice, ValueEnvelope, ChecklistRequirementKind, ContextPolicy, WorkDueState, FieldSensitivity, StageRuleOnFail, SubscriptionCadence, WorkApprovalState, WorkInboxKind, ArchiveLane, ArchivedRow, WorkInboxView, WorkInboxItem, MigrationEntry, PortalCard, PortalPrincipal, PortalPreviewRow, PortalAccent, PublicPicture, PortalStyle, RecordFilter, MySubscription, DashboardBlockKind, AggregateBucket, AggregateMeasure, AggregateCompare, DashboardTarget, DashboardBlock, DashboardSummary, AggregateGroupValue, DocTemplateRow, DocRenderRow, QuietHours, DashboardBlockResult, CoercibleField, AggregateRow, DashboardRunResult, ChecklistRunStep, BookingSummary, CaptureSheetFace, CaptureField, AnonTokenBinding, RecordsActor, RecordsDataSource, RecordsConfig, TableDuplicated, HistoryActor, FieldHistoryEntry, DrillDefinition, DrillSource, DrillLane, DrillQuestion, TableDuplicateProgress, TableArchiveProgress } from '@ai-matrx/records';
|
|
5
5
|
import { ReversibleAnnouncement } from '@ai-matrx/kit/reversible';
|
|
6
|
-
import { O as ObjectAction, W as WhatYouMayDo, T as TableActionHost, a as ObjectActionIcon } from './objectActions-
|
|
7
|
-
export { A as ACTION_CHECKING_ACCESS_REASON, b as ACTION_NOT_HERE_REASON, c as ACTION_NO_ACCESS_REASON, d as ACTION_PLATFORM_TABLE_REASON, B as BuiltOnDestination, C as Capability, D as DEFAULT_ACTION_ORIGIN, K as KERNEL_REASON, L as LEVEL_WORD, N as NOT_ANSWERED_YET, e as OBJECT_ACTION_GROUPS, f as ObjectActionDropdownEntry, g as ObjectActionGroup, h as ObjectActionGroupDef, i as ObjectActionSection, S as STANDARD_VERBS, j as STRIP_FEATURE_ROWS, k as StandardVerbId, l as StripAndRows, m as TableActionSubject, n as TableActionsInput, o as dropdownActionIds, p as dropdownActions, q as groupObjectActions, r as levelNeededFor, s as rightsReason, t as tableActions, u as tableLink, v as toDropdownEntries, w as toStripAndRows, x as whatYouMayDo, y as whatYouMayDoWithTable, z as withExtensions } from './objectActions-
|
|
6
|
+
import { O as ObjectAction, W as WhatYouMayDo, T as TableActionHost, a as ObjectActionIcon } from './objectActions-DK-qa5zC.cjs';
|
|
7
|
+
export { A as ACTION_CHECKING_ACCESS_REASON, b as ACTION_NOT_HERE_REASON, c as ACTION_NO_ACCESS_REASON, d as ACTION_PLATFORM_TABLE_REASON, B as BuiltOnDestination, C as Capability, D as DEFAULT_ACTION_ORIGIN, K as KERNEL_REASON, L as LEVEL_WORD, N as NOT_ANSWERED_YET, e as OBJECT_ACTION_GROUPS, f as ObjectActionDropdownEntry, g as ObjectActionGroup, h as ObjectActionGroupDef, i as ObjectActionSection, S as STANDARD_VERBS, j as STRIP_FEATURE_ROWS, k as StandardVerbId, l as StripAndRows, m as TableActionSubject, n as TableActionsInput, o as dropdownActionIds, p as dropdownActions, q as groupObjectActions, r as levelNeededFor, s as rightsReason, t as tableActions, u as tableLink, v as toDropdownEntries, w as toStripAndRows, x as whatYouMayDo, y as whatYouMayDoWithTable, z as withExtensions } from './objectActions-DK-qa5zC.cjs';
|
|
8
8
|
import { Uuid as Uuid$1, Table as Table$1, Field as Field$1, ReadRow as ReadRow$1, StoreFilter, useRecordsClient } from '@ai-matrx/records/react';
|
|
9
9
|
import * as _ai_matrx_records_core from '@ai-matrx/records/core';
|
|
10
10
|
import { RecordsClient, ParsedImport } from '@ai-matrx/records/core';
|
package/dist/index.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ import { ReactNode, ComponentType, KeyboardEvent, ReactElement, RefObject, SVGAt
|
|
|
3
3
|
import * as _ai_matrx_records from '@ai-matrx/records';
|
|
4
4
|
import { Field, ReadRow, Uuid, RowAction, RowActionStep, RecordScopeContext, EnrichCell, RecordsError, RecordDocument, Table, PermissionLevel, RecordRead, RowAgentTarget, AggregateFilter, RelationDisplay, WriteConflict, TableDecorations, StoreFilter as StoreFilter$1, ImportRun, NewFieldDeclaration, RuleExpression, ChoiceRehome, FieldOptionEdit, StoredRecord, ChoiceNudge, HiddenFieldNotice, ValueEnvelope, ChecklistRequirementKind, ContextPolicy, WorkDueState, FieldSensitivity, StageRuleOnFail, SubscriptionCadence, WorkApprovalState, WorkInboxKind, ArchiveLane, ArchivedRow, WorkInboxView, WorkInboxItem, MigrationEntry, PortalCard, PortalPrincipal, PortalPreviewRow, PortalAccent, PublicPicture, PortalStyle, RecordFilter, MySubscription, DashboardBlockKind, AggregateBucket, AggregateMeasure, AggregateCompare, DashboardTarget, DashboardBlock, DashboardSummary, AggregateGroupValue, DocTemplateRow, DocRenderRow, QuietHours, DashboardBlockResult, CoercibleField, AggregateRow, DashboardRunResult, ChecklistRunStep, BookingSummary, CaptureSheetFace, CaptureField, AnonTokenBinding, RecordsActor, RecordsDataSource, RecordsConfig, TableDuplicated, HistoryActor, FieldHistoryEntry, DrillDefinition, DrillSource, DrillLane, DrillQuestion, TableDuplicateProgress, TableArchiveProgress } from '@ai-matrx/records';
|
|
5
5
|
import { ReversibleAnnouncement } from '@ai-matrx/kit/reversible';
|
|
6
|
-
import { O as ObjectAction, W as WhatYouMayDo, T as TableActionHost, a as ObjectActionIcon } from './objectActions-
|
|
7
|
-
export { A as ACTION_CHECKING_ACCESS_REASON, b as ACTION_NOT_HERE_REASON, c as ACTION_NO_ACCESS_REASON, d as ACTION_PLATFORM_TABLE_REASON, B as BuiltOnDestination, C as Capability, D as DEFAULT_ACTION_ORIGIN, K as KERNEL_REASON, L as LEVEL_WORD, N as NOT_ANSWERED_YET, e as OBJECT_ACTION_GROUPS, f as ObjectActionDropdownEntry, g as ObjectActionGroup, h as ObjectActionGroupDef, i as ObjectActionSection, S as STANDARD_VERBS, j as STRIP_FEATURE_ROWS, k as StandardVerbId, l as StripAndRows, m as TableActionSubject, n as TableActionsInput, o as dropdownActionIds, p as dropdownActions, q as groupObjectActions, r as levelNeededFor, s as rightsReason, t as tableActions, u as tableLink, v as toDropdownEntries, w as toStripAndRows, x as whatYouMayDo, y as whatYouMayDoWithTable, z as withExtensions } from './objectActions-
|
|
6
|
+
import { O as ObjectAction, W as WhatYouMayDo, T as TableActionHost, a as ObjectActionIcon } from './objectActions-DK-qa5zC.js';
|
|
7
|
+
export { A as ACTION_CHECKING_ACCESS_REASON, b as ACTION_NOT_HERE_REASON, c as ACTION_NO_ACCESS_REASON, d as ACTION_PLATFORM_TABLE_REASON, B as BuiltOnDestination, C as Capability, D as DEFAULT_ACTION_ORIGIN, K as KERNEL_REASON, L as LEVEL_WORD, N as NOT_ANSWERED_YET, e as OBJECT_ACTION_GROUPS, f as ObjectActionDropdownEntry, g as ObjectActionGroup, h as ObjectActionGroupDef, i as ObjectActionSection, S as STANDARD_VERBS, j as STRIP_FEATURE_ROWS, k as StandardVerbId, l as StripAndRows, m as TableActionSubject, n as TableActionsInput, o as dropdownActionIds, p as dropdownActions, q as groupObjectActions, r as levelNeededFor, s as rightsReason, t as tableActions, u as tableLink, v as toDropdownEntries, w as toStripAndRows, x as whatYouMayDo, y as whatYouMayDoWithTable, z as withExtensions } from './objectActions-DK-qa5zC.js';
|
|
8
8
|
import { Uuid as Uuid$1, Table as Table$1, Field as Field$1, ReadRow as ReadRow$1, StoreFilter, useRecordsClient } from '@ai-matrx/records/react';
|
|
9
9
|
import * as _ai_matrx_records_core from '@ai-matrx/records/core';
|
|
10
10
|
import { RecordsClient, ParsedImport } from '@ai-matrx/records/core';
|
package/dist/index.js
CHANGED
|
@@ -182,7 +182,7 @@ import {
|
|
|
182
182
|
withoutAddition,
|
|
183
183
|
withoutLeadingBlank,
|
|
184
184
|
workedOutErrorFor
|
|
185
|
-
} from "./chunk-
|
|
185
|
+
} from "./chunk-K3B5IRXY.js";
|
|
186
186
|
import {
|
|
187
187
|
CHART_PLOT_PX,
|
|
188
188
|
EMBEDDED_ROW_PX,
|
|
@@ -293,7 +293,7 @@ import {
|
|
|
293
293
|
visibilityLaneFor,
|
|
294
294
|
whyNotAskable,
|
|
295
295
|
writeOnTheWinningVersion_exports
|
|
296
|
-
} from "./chunk-
|
|
296
|
+
} from "./chunk-VJDJQDDI.js";
|
|
297
297
|
import {
|
|
298
298
|
ACTION_CHECKING_ACCESS_REASON,
|
|
299
299
|
ACTION_NOT_HERE_REASON,
|
|
@@ -313,7 +313,7 @@ import {
|
|
|
313
313
|
toDropdownEntries,
|
|
314
314
|
toStripAndRows,
|
|
315
315
|
withExtensions
|
|
316
|
-
} from "./chunk-
|
|
316
|
+
} from "./chunk-ABIUJCNS.js";
|
|
317
317
|
import {
|
|
318
318
|
ABSENCE_WORD_LABEL,
|
|
319
319
|
ABSENCE_WORD_VALUES,
|
|
@@ -402,7 +402,7 @@ import {
|
|
|
402
402
|
useRowRights,
|
|
403
403
|
useTableRights,
|
|
404
404
|
withoutInternalCodes
|
|
405
|
-
} from "./chunk-
|
|
405
|
+
} from "./chunk-MDXDJVDB.js";
|
|
406
406
|
import {
|
|
407
407
|
FEWEST_KEY_VALUE_PAIRS,
|
|
408
408
|
FEWEST_LIST_ITEMS,
|
|
@@ -425,7 +425,7 @@ import {
|
|
|
425
425
|
tableIsLocked,
|
|
426
426
|
whatYouMayDo,
|
|
427
427
|
whatYouMayDoWithTable
|
|
428
|
-
} from "./chunk-
|
|
428
|
+
} from "./chunk-LBZZDHV6.js";
|
|
429
429
|
import {
|
|
430
430
|
PARITY_LABEL,
|
|
431
431
|
PARITY_MADE_OF,
|
|
@@ -8913,7 +8913,7 @@ function EnrichPanel({ tableId, fieldId, className }) {
|
|
|
8913
8913
|
target?.name ?? "this column",
|
|
8914
8914
|
" in automatically."
|
|
8915
8915
|
] }),
|
|
8916
|
-
/* @__PURE__ */ jsx26("p", { className: "text-muted-foreground", children: "
|
|
8916
|
+
/* @__PURE__ */ jsx26("p", { className: "text-muted-foreground", children: "Someone with Full access on this table sets that up." })
|
|
8917
8917
|
] });
|
|
8918
8918
|
}
|
|
8919
8919
|
return /* @__PURE__ */ jsxs25("div", { className: cn10("space-y-3 p-4 text-sm", className), children: [
|
|
@@ -8994,7 +8994,7 @@ function EnrichPanel({ tableId, fieldId, className }) {
|
|
|
8994
8994
|
if (shown4.length === 0) {
|
|
8995
8995
|
return /* @__PURE__ */ jsxs25("div", { className: cn10("space-y-2 p-4 text-sm", className), children: [
|
|
8996
8996
|
/* @__PURE__ */ jsx26("p", { className: "font-medium", children: "No column here is filled in by a model." }),
|
|
8997
|
-
/* @__PURE__ */ jsx26("p", { className: "text-muted-foreground", children: rights.admin ? "Open a column's menu and choose \u201CLet AI fill\u201D to set one up \u2014 or just ask for it in plain words and the agent will." : "
|
|
8997
|
+
/* @__PURE__ */ jsx26("p", { className: "text-muted-foreground", children: rights.admin ? "Open a column's menu and choose \u201CLet AI fill\u201D to set one up \u2014 or just ask for it in plain words and the agent will." : "Someone with Full access on this table sets that up." })
|
|
8998
8998
|
] });
|
|
8999
8999
|
}
|
|
9000
9000
|
return /* @__PURE__ */ jsx26("div", { className: cn10("space-y-6 p-4", className), children: shown4.map((row) => {
|
|
@@ -15090,7 +15090,8 @@ import { useCallback as useCallback23, useEffect as useEffect38, useState as use
|
|
|
15090
15090
|
import {
|
|
15091
15091
|
isShownTo,
|
|
15092
15092
|
levelHasShownTo,
|
|
15093
|
-
SHOWN_TO_LABEL
|
|
15093
|
+
SHOWN_TO_LABEL,
|
|
15094
|
+
SHOWN_TO_WHO_MAY_CHANGE
|
|
15094
15095
|
} from "@ai-matrx/records";
|
|
15095
15096
|
import { useRecordsClient as useRecordsClient38, useTable as useTable10 } from "@ai-matrx/records/react";
|
|
15096
15097
|
import {
|
|
@@ -15114,7 +15115,7 @@ var ROW_CONTROL_WORDS = {
|
|
|
15114
15115
|
applying: "Applying\u2026",
|
|
15115
15116
|
whoMayChangeTable: "Only the table's maker or an admin can change these.",
|
|
15116
15117
|
shownTo: "Shown to",
|
|
15117
|
-
whoMayChangeRow:
|
|
15118
|
+
whoMayChangeRow: SHOWN_TO_WHO_MAY_CHANGE
|
|
15118
15119
|
};
|
|
15119
15120
|
function appliedLine(done) {
|
|
15120
15121
|
const rows = `${done.changed} ${done.changed === 1 ? "row" : "rows"} changed`;
|
|
@@ -17646,7 +17647,7 @@ function CommentThread({ tableId, recordId, fieldKey, className }) {
|
|
|
17646
17647
|
}
|
|
17647
17648
|
) : (
|
|
17648
17649
|
// No dead composer. The store's own rung, in a person's words.
|
|
17649
|
-
/* @__PURE__ */ jsx58("p", { className: "text-xs text-muted-foreground", children: "You can read this conversation and not join it. Commenting needs
|
|
17650
|
+
/* @__PURE__ */ jsx58("p", { className: "text-xs text-muted-foreground", children: "You can read this conversation and not join it. Commenting needs Comment access on this record \u2014 ask whoever shared it with you to raise it." })
|
|
17650
17651
|
)
|
|
17651
17652
|
] });
|
|
17652
17653
|
}
|
|
@@ -26643,7 +26644,7 @@ function Board({
|
|
|
26643
26644
|
...addCard ? { onNew: () => void addCard() } : {},
|
|
26644
26645
|
...newRowLabel ? { newLabel: newRowLabel } : {},
|
|
26645
26646
|
tableId: view.subject,
|
|
26646
|
-
titleKey,
|
|
26647
|
+
titleKey: titleField?.key ?? titleKey,
|
|
26647
26648
|
onChanged: () => {
|
|
26648
26649
|
records.reload();
|
|
26649
26650
|
onMoved?.();
|
|
@@ -36286,6 +36287,24 @@ function doorField(f) {
|
|
|
36286
36287
|
config: f.system ? { system: f.system } : {}
|
|
36287
36288
|
};
|
|
36288
36289
|
}
|
|
36290
|
+
function choiceKey(value) {
|
|
36291
|
+
return value.replace(/[^A-Za-z0-9]+/g, "").toLowerCase();
|
|
36292
|
+
}
|
|
36293
|
+
function withChoiceWords(document2, labels) {
|
|
36294
|
+
if (!labels) return document2;
|
|
36295
|
+
let out = null;
|
|
36296
|
+
for (const [key, words2] of Object.entries(labels)) {
|
|
36297
|
+
const value = document2[key];
|
|
36298
|
+
const word = (v) => typeof v === "string" ? words2[choiceKey(v)] ?? v : v;
|
|
36299
|
+
const next = Array.isArray(value) ? value.map(word) : word(value);
|
|
36300
|
+
const changed2 = Array.isArray(next) ? next.some((n, i) => n !== value[i]) : next !== value;
|
|
36301
|
+
if (changed2) {
|
|
36302
|
+
out ??= { ...document2 };
|
|
36303
|
+
out[key] = next;
|
|
36304
|
+
}
|
|
36305
|
+
}
|
|
36306
|
+
return out ?? document2;
|
|
36307
|
+
}
|
|
36289
36308
|
function useDoorRows(door, elementId, recordId) {
|
|
36290
36309
|
const client = useRecordsClient82();
|
|
36291
36310
|
const [state, setState] = useState103({
|
|
@@ -36309,7 +36328,7 @@ function useDoorRows(door, elementId, recordId) {
|
|
|
36309
36328
|
}, [client, door, elementId, recordId, tick]);
|
|
36310
36329
|
return useMemo64(
|
|
36311
36330
|
() => ({
|
|
36312
|
-
rows: (state.data?.rows ?? []).map((r) => ({ id: r.id, document: r.document })),
|
|
36331
|
+
rows: (state.data?.rows ?? []).map((r) => ({ id: r.id, document: withChoiceWords(r.document, state.data?.labels) })),
|
|
36313
36332
|
fields: (state.data?.fields ?? []).map(doorField),
|
|
36314
36333
|
total: state.data ? state.data.count : null,
|
|
36315
36334
|
loading: state.loading,
|
|
@@ -36518,8 +36537,8 @@ function BlockBody(inner) {
|
|
|
36518
36537
|
case "applet":
|
|
36519
36538
|
return /* @__PURE__ */ jsx114(AppletBlockView, { block });
|
|
36520
36539
|
case "chart": {
|
|
36540
|
+
if (props.through) return /* @__PURE__ */ jsx114(ChartThroughNote, { title: block.title ?? props.chart?.title ?? null });
|
|
36521
36541
|
if (!props.chart) return null;
|
|
36522
|
-
if (props.through) return null;
|
|
36523
36542
|
const index = props.run?.blocks.findIndex((b) => b.id === props.chart?.id) ?? -1;
|
|
36524
36543
|
const result = index >= 0 ? props.run.blocks[index] : null;
|
|
36525
36544
|
return result ? /* @__PURE__ */ jsx114(ChartBlock, { block: result, subject: props.subject }) : /* @__PURE__ */ jsx114(RecordsSkeleton, { layout: "chart" });
|
|
@@ -36764,8 +36783,30 @@ function ReviewBlockView({ block, viewerUserId, extra }) {
|
|
|
36764
36783
|
function NumberBlockView({ block, viewerUserId, extra }) {
|
|
36765
36784
|
const read = useElementRows(block, viewerUserId, extra, false);
|
|
36766
36785
|
if (read.error) return /* @__PURE__ */ jsx114(RefusalLine, { error: read.error });
|
|
36767
|
-
|
|
36768
|
-
|
|
36786
|
+
const title = block.title ? /* @__PURE__ */ jsx114("p", { className: "truncate text-xs text-muted-foreground", "data-records-page-number-title": block.id, children: block.title }) : null;
|
|
36787
|
+
if (read.waiting || read.total === null) {
|
|
36788
|
+
return /* @__PURE__ */ jsxs107(Fragment50, { children: [
|
|
36789
|
+
title,
|
|
36790
|
+
/* @__PURE__ */ jsx114(Skeleton36, { className: "h-12 w-24" })
|
|
36791
|
+
] });
|
|
36792
|
+
}
|
|
36793
|
+
return /* @__PURE__ */ jsxs107(Fragment50, { children: [
|
|
36794
|
+
title,
|
|
36795
|
+
/* @__PURE__ */ jsx114("p", { className: "text-3xl font-semibold tabular-nums", "data-records-page-number": block.id, children: formatCount6(read.total) })
|
|
36796
|
+
] });
|
|
36797
|
+
}
|
|
36798
|
+
function ChartThroughNote({ title }) {
|
|
36799
|
+
return /* @__PURE__ */ jsxs107("div", { className: "flex flex-col gap-2", "data-records-page-chart-note": "through", children: [
|
|
36800
|
+
title ? /* @__PURE__ */ jsx114("p", { className: "truncate text-xs text-muted-foreground", children: title }) : null,
|
|
36801
|
+
/* @__PURE__ */ jsx114(
|
|
36802
|
+
"p",
|
|
36803
|
+
{
|
|
36804
|
+
className: "flex items-center justify-center rounded-md border border-dashed p-3 text-center text-xs text-muted-foreground",
|
|
36805
|
+
style: { height: CHART_PLOT_PX },
|
|
36806
|
+
children: "Charts draw for members of this organization."
|
|
36807
|
+
}
|
|
36808
|
+
)
|
|
36809
|
+
] });
|
|
36769
36810
|
}
|
|
36770
36811
|
function LayoutBlockView({ block, viewerUserId, extra }) {
|
|
36771
36812
|
const door = useInterfaceDoor();
|
|
@@ -37907,7 +37948,7 @@ import { FORM_STATE_WORDS as FORM_STATE_WORDS2 } from "@ai-matrx/records/forms";
|
|
|
37907
37948
|
import { Fragment as Fragment53, jsx as jsx117, jsxs as jsxs110 } from "react/jsx-runtime";
|
|
37908
37949
|
var FORM_NOT_HERE_LINE = "The link named a form this table does not have \u2014 it may have been removed, or it belongs to another table. The forms this table does have are listed here.";
|
|
37909
37950
|
var WHAT_A_FORM_IS = "A form uses this table's own fields, and its answers land here as ordinary records stamped with the form they came through.";
|
|
37910
|
-
var NO_ADMIN = "This table has no forms. Making one needs
|
|
37951
|
+
var NO_ADMIN = "This table has no forms. Making one needs Full access on it, because a form decides what people with no account may add here.";
|
|
37911
37952
|
function formSuggestion(tableName2) {
|
|
37912
37953
|
const subject = tableName2?.trim() ? tableName2.trim() : "this table";
|
|
37913
37954
|
return `Make me a form that collects new ${subject} entries and tells me when somebody answers.`;
|
|
@@ -38987,7 +39028,7 @@ function EmbedFrame({
|
|
|
38987
39028
|
if (!rights.admin) {
|
|
38988
39029
|
return /* @__PURE__ */ jsxs115("p", { className: cn70("rounded border border-dashed px-2 py-1 text-xs text-muted-foreground", className), children: [
|
|
38989
39030
|
rights.why("structure"),
|
|
38990
|
-
" Issuing an embed opens a way in from somebody else's website, so it needs
|
|
39031
|
+
" Issuing an embed opens a way in from somebody else's website, so it needs Full access on this table."
|
|
38991
39032
|
] });
|
|
38992
39033
|
}
|
|
38993
39034
|
const snippet = secret ? `<iframe src="${embedUrl}#t=${secret}" style="width:100%;height:640px;border:0" loading="lazy"></iframe>` : null;
|
|
@@ -40401,7 +40442,7 @@ function railFromParam(raw) {
|
|
|
40401
40442
|
function unknownRailLine(raw) {
|
|
40402
40443
|
return `The link asked to open \u201C${raw}\u201D on this table, which is not something a table has, so you are looking at its records. A table opens Forms, Bookings, Checklists, Notifications, Portals, Settings, Import, Inbox and Share \u2014 each is in the table's menu.`;
|
|
40403
40444
|
}
|
|
40404
|
-
var SHARE_NOT_YOURS_LINE = "The link asked to open this table's sharing, and only someone with
|
|
40445
|
+
var SHARE_NOT_YOURS_LINE = "The link asked to open this table's sharing, and only someone with Full access on this table can share it, so it did not open. Ask someone with Full access on this table to share it or to give you Full access.";
|
|
40405
40446
|
function openingView(activeView, activeDashboardId) {
|
|
40406
40447
|
const named = pageViewFromParam(activeView);
|
|
40407
40448
|
if (named === null) {
|
|
@@ -40966,7 +41007,7 @@ function TablePage({
|
|
|
40966
41007
|
label: "Questions",
|
|
40967
41008
|
icon: "layout-dashboard",
|
|
40968
41009
|
group: "built-on",
|
|
40969
|
-
...mayDo.known && !mayDo.read ? { disabledReason: "Needs
|
|
41010
|
+
...mayDo.known && !mayDo.read ? { disabledReason: "Needs View access" } : {},
|
|
40970
41011
|
run: () => go({ main: "questions" })
|
|
40971
41012
|
},
|
|
40972
41013
|
...canGetReference ? [
|
|
@@ -40975,7 +41016,7 @@ function TablePage({
|
|
|
40975
41016
|
label: "Get reference\u2026",
|
|
40976
41017
|
icon: "link-2",
|
|
40977
41018
|
group: "share",
|
|
40978
|
-
...mayDo.known && !mayDo.read ? { disabledReason: "Needs
|
|
41019
|
+
...mayDo.known && !mayDo.read ? { disabledReason: "Needs View access" } : {},
|
|
40979
41020
|
run: () => void window.setTimeout(() => setReferenceOpen(true), 0)
|
|
40980
41021
|
}
|
|
40981
41022
|
] : [],
|
|
@@ -40986,7 +41027,7 @@ function TablePage({
|
|
|
40986
41027
|
label: subItemsOn ? "Turn off sub-items" : "Turn on sub-items",
|
|
40987
41028
|
icon: "list-checks",
|
|
40988
41029
|
group: "manage",
|
|
40989
|
-
...mayDo.known && !mayDo.structure ? { disabledReason: "Needs
|
|
41030
|
+
...mayDo.known && !mayDo.structure ? { disabledReason: "Needs Full access" } : {},
|
|
40990
41031
|
run: () => void toggleSubItems()
|
|
40991
41032
|
},
|
|
40992
41033
|
// CLEAN THE WHOLE TABLE (the Sheet's toolbar cleanup): the grid's one review, from the ⋯ too.
|
|
@@ -40996,13 +41037,13 @@ function TablePage({
|
|
|
40996
41037
|
label: CLEAN_TABLE_LABEL,
|
|
40997
41038
|
icon: "eraser",
|
|
40998
41039
|
group: "manage",
|
|
40999
|
-
...mayDo.known && !mayDo.write ? { disabledReason: "Needs
|
|
41040
|
+
...mayDo.known && !mayDo.write ? { disabledReason: "Needs Edit access" } : {},
|
|
41000
41041
|
run: () => void window.setTimeout(() => askToCleanTable(tableId), 0)
|
|
41001
41042
|
}
|
|
41002
41043
|
] : [],
|
|
41003
41044
|
// BREAK DOWN: the grid grouped by one column, through the drill's own question.
|
|
41004
41045
|
breakDownAction({
|
|
41005
|
-
...mayDo.known && !mayDo.read ? { disabledReason: "Needs
|
|
41046
|
+
...mayDo.known && !mayDo.read ? { disabledReason: "Needs View access" } : !view ? { disabledReason: NO_VIEW_REASON } : allFields.data && allFields.data.length === 0 ? { disabledReason: NO_DIMENSION_REASON } : {},
|
|
41006
41047
|
run: () => void window.setTimeout(() => setBreakDownOpen(true), 0)
|
|
41007
41048
|
}),
|
|
41008
41049
|
// THE VIEW'S TWO ONE-PRESS WAYS OUT (TABLE-EXPERIENCE item 4).
|
|
@@ -41017,10 +41058,10 @@ function TablePage({
|
|
|
41017
41058
|
recordsUi.notify?.error("Couldn\u2019t copy the link");
|
|
41018
41059
|
}
|
|
41019
41060
|
},
|
|
41020
|
-
...mayDo.known && !mayDo.read ? { disabledReason: "Needs
|
|
41061
|
+
...mayDo.known && !mayDo.read ? { disabledReason: "Needs View access" } : {}
|
|
41021
41062
|
}),
|
|
41022
41063
|
downloadCsvAction({
|
|
41023
|
-
...mayDo.known && !mayDo.read ? { disabledReason: "Needs
|
|
41064
|
+
...mayDo.known && !mayDo.read ? { disabledReason: "Needs View access" } : !allFields.data ? { disabledReason: "Reading this table\u2026" } : {},
|
|
41024
41065
|
run: () => downloadViewCsv({
|
|
41025
41066
|
client,
|
|
41026
41067
|
host: recordsUi,
|
|
@@ -41032,7 +41073,7 @@ function TablePage({
|
|
|
41032
41073
|
})
|
|
41033
41074
|
}),
|
|
41034
41075
|
downloadMarkdownAction({
|
|
41035
|
-
...mayDo.known && !mayDo.read ? { disabledReason: "Needs
|
|
41076
|
+
...mayDo.known && !mayDo.read ? { disabledReason: "Needs View access" } : !allFields.data ? { disabledReason: "Reading this table\u2026" } : {},
|
|
41036
41077
|
run: () => downloadViewMarkdown({
|
|
41037
41078
|
client,
|
|
41038
41079
|
host: recordsUi,
|
|
@@ -41044,7 +41085,7 @@ function TablePage({
|
|
|
41044
41085
|
})
|
|
41045
41086
|
}),
|
|
41046
41087
|
copyMarkdownAction({
|
|
41047
|
-
...mayDo.known && !mayDo.read ? { disabledReason: "Needs
|
|
41088
|
+
...mayDo.known && !mayDo.read ? { disabledReason: "Needs View access" } : !allFields.data ? { disabledReason: "Reading this table\u2026" } : {},
|
|
41048
41089
|
run: () => copyViewMarkdown({
|
|
41049
41090
|
client,
|
|
41050
41091
|
host: recordsUi,
|
|
@@ -41058,7 +41099,7 @@ function TablePage({
|
|
|
41058
41099
|
// PRINT, FULL PRINT, HTML PREVIEW, COPY THE HTML PAGE, SAVE AS FILE (TABLE-PARITY item 3): the platform print system's.
|
|
41059
41100
|
...["print", "full-print", "html-preview", "copy-html-page", "save-as-file"].map(
|
|
41060
41101
|
(kind2) => tablePageAction(kind2, {
|
|
41061
|
-
...mayDo.known && !mayDo.read ? { disabledReason: "Needs
|
|
41102
|
+
...mayDo.known && !mayDo.read ? { disabledReason: "Needs View access" } : !allFields.data ? { disabledReason: "Reading this table\u2026" } : {},
|
|
41062
41103
|
run: () => runTablePageAction(kind2, {
|
|
41063
41104
|
client,
|
|
41064
41105
|
host: recordsUi,
|
|
@@ -41073,7 +41114,7 @@ function TablePage({
|
|
|
41073
41114
|
// THE PRIVATE CALENDAR LINK (CAL-FEED-UI): only where the host bound the doors.
|
|
41074
41115
|
...recordsUi.calendarFeed && organizationId ? [
|
|
41075
41116
|
subscribeCalendarAction({
|
|
41076
|
-
...mayDo.known && !mayDo.read ? { disabledReason: "Needs
|
|
41117
|
+
...mayDo.known && !mayDo.read ? { disabledReason: "Needs View access" } : !view ? { disabledReason: NO_VIEW_REASON } : !subscribeDateKey ? { disabledReason: shown4?.layout === "calendar" ? "This table has no date column" : "Switch this view to Calendar to subscribe" } : {},
|
|
41077
41118
|
run: () => void window.setTimeout(() => void subscribeInCalendar(), 0)
|
|
41078
41119
|
})
|
|
41079
41120
|
] : [],
|