@arbidocs/blocks 0.4.32 → 0.4.37
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/dist/agents/index.cjs +258 -216
- package/dist/agents/index.js +9 -7
- package/dist/agents/tasks/ConversationListView.d.ts +58 -0
- package/dist/agents/tasks/ConversationTurnSpeaker.d.ts +16 -0
- package/dist/agents/tasks/NewThreadDialog.d.ts +1 -1
- package/dist/agents/tasks/TaskActivityTimeline.d.ts +1 -1
- package/dist/agents/tasks/TaskFlow.d.ts +22 -0
- package/dist/agents/tasks/TaskInbox.d.ts +26 -0
- package/dist/agents/tasks/TaskReviewDialog.d.ts +22 -0
- package/dist/agents/tasks/TaskRowMenu.d.ts +10 -2
- package/dist/agents/tasks/TaskRunsDialog.d.ts +8 -3
- package/dist/agents/tasks/TaskStartDialog.d.ts +24 -0
- package/dist/agents/tasks/TaskTable.d.ts +1 -1
- package/dist/agents/tasks/ThreadNotifyDialog.d.ts +11 -0
- package/dist/agents/tasks/WorkflowComposer.d.ts +1 -1
- package/dist/agents/tasks/WorkflowsTable.d.ts +7 -0
- package/dist/agents/tasks/compact-thread-activity.d.ts +8 -0
- package/dist/agents/tasks/index.d.ts +10 -0
- package/dist/agents/tasks/taskComposerTypes.d.ts +16 -1
- package/dist/agents/tasks/taskRequest.d.ts +1 -0
- package/dist/agents/tasks/testGrid.d.ts +24 -0
- package/dist/agents/tasks/workflowColumns.d.ts +2 -1
- package/dist/agents/tasks/workflowRows.d.ts +6 -0
- package/dist/agents/workflows/types.d.ts +2 -0
- package/dist/auth/index.cjs +27 -27
- package/dist/auth/index.js +1 -1
- package/dist/chat/Message.d.ts +8 -2
- package/dist/chat/index.cjs +132 -120
- package/dist/chat/index.d.ts +2 -0
- package/dist/chat/index.js +2 -2
- package/dist/chat/participant-tints.d.ts +1 -0
- package/dist/chat/useRecipientDraft.d.ts +14 -0
- package/dist/{chunk-KF4EC5XU.js → chunk-24KQJYSB.js} +3 -3
- package/dist/{chunk-KF4EC5XU.js.map → chunk-24KQJYSB.js.map} +1 -1
- package/dist/{chunk-GVQOBJKR.cjs → chunk-2EAE5JP6.cjs} +7 -4
- package/dist/chunk-2EAE5JP6.cjs.map +1 -0
- package/dist/chunk-3AFWGEDJ.cjs +53 -0
- package/dist/chunk-3AFWGEDJ.cjs.map +1 -0
- package/dist/{chunk-UBNVIIBT.js → chunk-4WWM3GQ5.js} +23 -8
- package/dist/chunk-4WWM3GQ5.js.map +1 -0
- package/dist/{chunk-56BUD74K.cjs → chunk-65THHQVB.cjs} +27 -27
- package/dist/{chunk-56BUD74K.cjs.map → chunk-65THHQVB.cjs.map} +1 -1
- package/dist/{chunk-UTYQPVIW.cjs → chunk-7QDX2CO4.cjs} +6 -6
- package/dist/{chunk-UTYQPVIW.cjs.map → chunk-7QDX2CO4.cjs.map} +1 -1
- package/dist/{chunk-5B4PXAKI.cjs → chunk-7RGLTF76.cjs} +23 -8
- package/dist/chunk-7RGLTF76.cjs.map +1 -0
- package/dist/{chunk-PLGVMLBD.cjs → chunk-AMXQQCCB.cjs} +1975 -610
- package/dist/chunk-AMXQQCCB.cjs.map +1 -0
- package/dist/{chunk-NUPVHEJW.js → chunk-BUHKUKKB.js} +7 -4
- package/dist/chunk-BUHKUKKB.js.map +1 -0
- package/dist/{chunk-4XJZ6AAY.js → chunk-CKB64Z4R.js} +245 -6
- package/dist/chunk-CKB64Z4R.js.map +1 -0
- package/dist/chunk-DDW3M22Z.js +126 -0
- package/dist/chunk-DDW3M22Z.js.map +1 -0
- package/dist/{chunk-KXMDOTGW.js → chunk-DLBUFHLY.js} +10 -2
- package/dist/chunk-DLBUFHLY.js.map +1 -0
- package/dist/{chunk-ZHLMDJCO.cjs → chunk-DLVX6R6B.cjs} +62 -26
- package/dist/chunk-DLVX6R6B.cjs.map +1 -0
- package/dist/{chunk-JGZTRLKL.cjs → chunk-IA7RTPT3.cjs} +7 -4
- package/dist/chunk-IA7RTPT3.cjs.map +1 -0
- package/dist/{chunk-6YVI74BC.js → chunk-JH25QIZW.js} +439 -12
- package/dist/chunk-JH25QIZW.js.map +1 -0
- package/dist/{chunk-FRRDPYBR.cjs → chunk-L7B4W4LA.cjs} +74 -5
- package/dist/chunk-L7B4W4LA.cjs.map +1 -0
- package/dist/{chunk-NJL4LIXX.js → chunk-LFGJAZ5H.js} +11 -8
- package/dist/chunk-LFGJAZ5H.js.map +1 -0
- package/dist/{chunk-IAKUTBPX.js → chunk-LYUO3E6V.js} +3 -3
- package/dist/{chunk-IAKUTBPX.js.map → chunk-LYUO3E6V.js.map} +1 -1
- package/dist/{chunk-EYPPB5CY.cjs → chunk-M2YGPC5N.cjs} +4 -4
- package/dist/{chunk-EYPPB5CY.cjs.map → chunk-M2YGPC5N.cjs.map} +1 -1
- package/dist/{chunk-5ZBP7TCD.cjs → chunk-MJCCBMM5.cjs} +10 -2
- package/dist/chunk-MJCCBMM5.cjs.map +1 -0
- package/dist/{chunk-VMCOH3AY.cjs → chunk-NUF2WGGF.cjs} +527 -96
- package/dist/chunk-NUF2WGGF.cjs.map +1 -0
- package/dist/{chunk-OJSWQM4G.js → chunk-OZJ5PXA6.js} +29 -4
- package/dist/chunk-OZJ5PXA6.js.map +1 -0
- package/dist/{chunk-3NZR6PAG.js → chunk-PE7Z53RB.js} +70 -4
- package/dist/chunk-PE7Z53RB.js.map +1 -0
- package/dist/chunk-Q6LF7N3A.cjs +130 -0
- package/dist/chunk-Q6LF7N3A.cjs.map +1 -0
- package/dist/{chunk-RGHQFJOL.cjs → chunk-QFUF4A4J.cjs} +28 -2
- package/dist/chunk-QFUF4A4J.cjs.map +1 -0
- package/dist/chunk-RFXJYIDV.js +50 -0
- package/dist/chunk-RFXJYIDV.js.map +1 -0
- package/dist/{chunk-QN42OA5J.js → chunk-SFXVNFES.js} +4 -4
- package/dist/chunk-SFXVNFES.js.map +1 -0
- package/dist/{chunk-YVIOCITQ.cjs → chunk-VUEZARW5.cjs} +3 -3
- package/dist/chunk-VUEZARW5.cjs.map +1 -0
- package/dist/{chunk-JLOYWXRB.js → chunk-VZGBCBYB.js} +3 -3
- package/dist/chunk-VZGBCBYB.js.map +1 -0
- package/dist/{chunk-ZVPTFTGV.cjs → chunk-WBDK4PIA.cjs} +11 -8
- package/dist/chunk-WBDK4PIA.cjs.map +1 -0
- package/dist/{chunk-ZORQ5M3W.cjs → chunk-WQFGG2BV.cjs} +4 -4
- package/dist/chunk-WQFGG2BV.cjs.map +1 -0
- package/dist/{chunk-C75S6USL.js → chunk-WYVCXY7R.js} +7 -4
- package/dist/chunk-WYVCXY7R.js.map +1 -0
- package/dist/{chunk-WSJVHSGN.js → chunk-XWEJ5LV2.js} +63 -27
- package/dist/chunk-XWEJ5LV2.js.map +1 -0
- package/dist/{chunk-S5HZBXZA.cjs → chunk-YJQVLVBJ.cjs} +243 -2
- package/dist/chunk-YJQVLVBJ.cjs.map +1 -0
- package/dist/{chunk-YMHGF6R5.js → chunk-ZCF2JJFA.js} +3 -3
- package/dist/{chunk-YMHGF6R5.js.map → chunk-ZCF2JJFA.js.map} +1 -1
- package/dist/{chunk-TZ4QF7EP.js → chunk-ZDA5CZPS.js} +1948 -594
- package/dist/chunk-ZDA5CZPS.js.map +1 -0
- package/dist/collaboration/index.cjs +45 -41
- package/dist/collaboration/index.js +1 -1
- package/dist/collaboration/mail/MailMessagePreview.d.ts +11 -0
- package/dist/collaboration/mail/index.d.ts +1 -0
- package/dist/connect/docx.cjs +4 -4
- package/dist/connect/docx.js +1 -1
- package/dist/connect/index.cjs +32 -32
- package/dist/connect/index.js +3 -3
- package/dist/docx/NativeDocxEditor.d.ts +2 -2
- package/dist/docx/index.cjs +33 -30
- package/dist/docx/index.cjs.map +1 -1
- package/dist/docx/index.d.ts +2 -2
- package/dist/docx/index.js +3 -4
- package/dist/docx/index.js.map +1 -1
- package/dist/docx/review/DocxEditorReview.d.ts +16 -0
- package/dist/docx/review/index.d.ts +3 -0
- package/dist/docx/review/reviewModule.d.ts +6 -0
- package/dist/docx/review/useReview.d.ts +29 -0
- package/dist/facts/FactsFilterInput.d.ts +2 -46
- package/dist/facts/FactsToolbar.d.ts +5 -5
- package/dist/facts/index.cjs +27 -124
- package/dist/facts/index.cjs.map +1 -1
- package/dist/facts/index.js +13 -118
- package/dist/facts/index.js.map +1 -1
- package/dist/files/FilesPage.d.ts +1 -1
- package/dist/files/FilesToolbar.d.ts +1 -1
- package/dist/files/FolderPicker.d.ts +2 -1
- package/dist/files/ViewerChrome.d.ts +1 -1
- package/dist/files/bulk/FolderFilterButton.d.ts +3 -2
- package/dist/files/cells/BulkLabelSelect.d.ts +11 -0
- package/dist/files/cells/LabelMultiSelect.d.ts +2 -1
- package/dist/files/cells/index.d.ts +1 -0
- package/dist/files/index.cjs +110 -167
- package/dist/files/index.cjs.map +1 -1
- package/dist/files/index.js +96 -159
- package/dist/files/index.js.map +1 -1
- package/dist/home/index.cjs +20 -20
- package/dist/home/index.cjs.map +1 -1
- package/dist/home/index.js +5 -5
- package/dist/home/index.js.map +1 -1
- package/dist/index.cjs +646 -623
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +20 -68
- package/dist/index.js.map +1 -1
- package/dist/settings/SettingsPanel.d.ts +1 -1
- package/dist/settings/TriStateFilterMenu.d.ts +3 -1
- package/dist/settings/index.cjs +55 -280
- package/dist/settings/index.cjs.map +1 -1
- package/dist/settings/index.js +17 -248
- package/dist/settings/index.js.map +1 -1
- package/dist/shell/FilterInput.d.ts +48 -0
- package/dist/shell/TabHeader.d.ts +7 -1
- package/dist/shell/index.cjs +62 -49
- package/dist/shell/index.d.ts +1 -0
- package/dist/shell/index.js +4 -3
- package/dist/site/index.cjs +62 -62
- package/dist/site/index.js +2 -2
- package/dist/studio/index.cjs +75 -75
- package/dist/studio/index.js +6 -6
- package/dist/workspaces/WorkspaceCard.d.ts +2 -2
- package/dist/workspaces/index.cjs +9 -2
- package/dist/workspaces/index.cjs.map +1 -1
- package/dist/workspaces/index.js +9 -2
- package/dist/workspaces/index.js.map +1 -1
- package/package.json +9 -13
- package/src/blocks.css +4 -0
- package/src/components/grid.css +10 -0
- package/src/docx/styles.css +488 -43
- package/dist/chunk-3NZR6PAG.js.map +0 -1
- package/dist/chunk-4XJZ6AAY.js.map +0 -1
- package/dist/chunk-5B4PXAKI.cjs.map +0 -1
- package/dist/chunk-5ZBP7TCD.cjs.map +0 -1
- package/dist/chunk-6YVI74BC.js.map +0 -1
- package/dist/chunk-C75S6USL.js.map +0 -1
- package/dist/chunk-FRRDPYBR.cjs.map +0 -1
- package/dist/chunk-GVQOBJKR.cjs.map +0 -1
- package/dist/chunk-JGZTRLKL.cjs.map +0 -1
- package/dist/chunk-JLOYWXRB.js.map +0 -1
- package/dist/chunk-KXMDOTGW.js.map +0 -1
- package/dist/chunk-NJL4LIXX.js.map +0 -1
- package/dist/chunk-NUPVHEJW.js.map +0 -1
- package/dist/chunk-OJSWQM4G.js.map +0 -1
- package/dist/chunk-PLGVMLBD.cjs.map +0 -1
- package/dist/chunk-QN42OA5J.js.map +0 -1
- package/dist/chunk-RGHQFJOL.cjs.map +0 -1
- package/dist/chunk-S5HZBXZA.cjs.map +0 -1
- package/dist/chunk-TZ4QF7EP.js.map +0 -1
- package/dist/chunk-UBNVIIBT.js.map +0 -1
- package/dist/chunk-VMCOH3AY.cjs.map +0 -1
- package/dist/chunk-WSJVHSGN.js.map +0 -1
- package/dist/chunk-YVIOCITQ.cjs.map +0 -1
- package/dist/chunk-ZHLMDJCO.cjs.map +0 -1
- package/dist/chunk-ZORQ5M3W.cjs.map +0 -1
- package/dist/chunk-ZVPTFTGV.cjs.map +0 -1
package/dist/facts/index.js
CHANGED
|
@@ -2,14 +2,16 @@
|
|
|
2
2
|
import { ViewToggle } from '../chunk-IC2VHFWR.js';
|
|
3
3
|
import { formatSpan, TimelineCalendar, TimelineGantt } from '../chunk-4EZVCGRL.js';
|
|
4
4
|
import { SearchHit } from '../chunk-A2YAC22G.js';
|
|
5
|
-
import { GridView, SelectionBar, SelectionBarAction } from '../chunk-
|
|
6
|
-
import {
|
|
5
|
+
import { GridView, SelectionBar, SelectionBarAction } from '../chunk-BUHKUKKB.js';
|
|
6
|
+
import { FilterInput } from '../chunk-DDW3M22Z.js';
|
|
7
|
+
export { DEFAULT_FILTER_INPUT_LABELS as DEFAULT_FACTS_FILTER_INPUT_LABELS, DEFAULT_FILTER_FIELDS as FACTS_SEARCH_FIELD_OPTIONS, FilterInput as FactsFilterInput } from '../chunk-DDW3M22Z.js';
|
|
8
|
+
import { TabHeader } from '../chunk-4WWM3GQ5.js';
|
|
9
|
+
import '../chunk-76JDDMSP.js';
|
|
7
10
|
import '../chunk-SLSBJRWW.js';
|
|
8
11
|
import { observeResize } from '../chunk-NPLYHR2E.js';
|
|
9
|
-
import '../chunk-76JDDMSP.js';
|
|
10
12
|
import { initials } from '../chunk-OXF2IFXG.js';
|
|
11
13
|
import { testIdOr } from '../chunk-7F6CBP3Z.js';
|
|
12
|
-
import { PencilLine, Check, MoreVertical, Pencil, Trash2, CalendarDays, X,
|
|
14
|
+
import { PencilLine, Check, MoreVertical, Pencil, Trash2, CalendarDays, X, Columns3, ChevronDown, RotateCcw, Milestone, CalendarClock, Scale, Lightbulb, ArrowRight, Loader2, Info, PinOff, Pin, Tags, MoreHorizontal, FolderUp, BookMarked, Plus, Search, CheckCircle2, CornerDownLeft, Quote, ChevronLeft, ChevronRight, Table2, CalendarRange, GanttChartSquare } from 'lucide-react';
|
|
13
15
|
import { Popover, PopoverTrigger, PopoverContent, Command, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, cn, Input, Button, CommandSeparator, Tooltip, TooltipTrigger, TooltipContent } from '@arbidocs/react/ui';
|
|
14
16
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
15
17
|
import { memo, useState, useMemo, useRef, useEffect } from 'react';
|
|
@@ -1320,111 +1322,6 @@ function FactsViewToggle({
|
|
|
1320
1322
|
}
|
|
1321
1323
|
);
|
|
1322
1324
|
}
|
|
1323
|
-
var FACTS_SEARCH_FIELD_OPTIONS = [
|
|
1324
|
-
{ value: "text", label: "Fact" },
|
|
1325
|
-
{ value: "labels", label: "Labels" }
|
|
1326
|
-
];
|
|
1327
|
-
var DEFAULT_FACTS_FILTER_INPUT_LABELS = {
|
|
1328
|
-
placeholder: "Filter...",
|
|
1329
|
-
clear: "Clear filter",
|
|
1330
|
-
chooseFields: "Choose fields to filter",
|
|
1331
|
-
fieldsHeading: "Filter fields",
|
|
1332
|
-
fieldNames: { text: "Fact", labels: "Labels" }
|
|
1333
|
-
};
|
|
1334
|
-
function FactsFilterInput({
|
|
1335
|
-
value,
|
|
1336
|
-
onChange,
|
|
1337
|
-
fields,
|
|
1338
|
-
onFieldsChange,
|
|
1339
|
-
filter,
|
|
1340
|
-
className,
|
|
1341
|
-
labels,
|
|
1342
|
-
testIds
|
|
1343
|
-
}) {
|
|
1344
|
-
const l = { ...DEFAULT_FACTS_FILTER_INPUT_LABELS, ...labels };
|
|
1345
|
-
const toggleField = (field) => onFieldsChange(fields.includes(field) ? fields.filter((f) => f !== field) : [...fields, field]);
|
|
1346
|
-
return /* @__PURE__ */ jsx(
|
|
1347
|
-
"div",
|
|
1348
|
-
{
|
|
1349
|
-
className: cn("flex min-w-0 items-center", className ?? "w-44 pointer-coarse:w-56"),
|
|
1350
|
-
"data-testid": testIdOr(testIds?.root, { testId: "facts-filter" }),
|
|
1351
|
-
children: /* @__PURE__ */ jsxs("div", { className: "relative flex-1 min-w-0", children: [
|
|
1352
|
-
filter ? /* @__PURE__ */ jsx(
|
|
1353
|
-
"div",
|
|
1354
|
-
{
|
|
1355
|
-
className: "absolute left-1 top-1/2 z-10 -translate-y-1/2",
|
|
1356
|
-
"data-testid": testIdOr(testIds?.quick, { testId: "facts-filter-quick" }),
|
|
1357
|
-
children: filter
|
|
1358
|
-
}
|
|
1359
|
-
) : /* @__PURE__ */ jsx(Filter, { className: "pointer-events-none absolute left-2 top-1/2 size-3.5 -translate-y-1/2 text-muted-foreground" }),
|
|
1360
|
-
/* @__PURE__ */ jsx(
|
|
1361
|
-
Input,
|
|
1362
|
-
{
|
|
1363
|
-
value,
|
|
1364
|
-
onChange: (e) => onChange(e.target.value),
|
|
1365
|
-
placeholder: l.placeholder,
|
|
1366
|
-
"data-testid": testIdOr(testIds?.input, { testId: "facts-filter-input" }),
|
|
1367
|
-
className: cn(
|
|
1368
|
-
"h-7 bg-muted pr-12 text-sm shadow-none focus-visible:bg-muted focus-visible:ring-0 pointer-coarse:h-11 pointer-coarse:pr-24",
|
|
1369
|
-
filter ? "pl-11" : "pl-7"
|
|
1370
|
-
)
|
|
1371
|
-
}
|
|
1372
|
-
),
|
|
1373
|
-
value && /* @__PURE__ */ jsx(
|
|
1374
|
-
"button",
|
|
1375
|
-
{
|
|
1376
|
-
type: "button",
|
|
1377
|
-
onClick: () => onChange(""),
|
|
1378
|
-
"aria-label": l.clear,
|
|
1379
|
-
className: "absolute right-7 top-1/2 z-10 -translate-y-1/2 text-muted-foreground hover:text-foreground pointer-coarse:right-11 pointer-coarse:flex pointer-coarse:size-11 pointer-coarse:items-center pointer-coarse:justify-center",
|
|
1380
|
-
children: /* @__PURE__ */ jsx(X, { className: "size-3" })
|
|
1381
|
-
}
|
|
1382
|
-
),
|
|
1383
|
-
/* @__PURE__ */ jsxs(Popover, { children: [
|
|
1384
|
-
/* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
1385
|
-
"button",
|
|
1386
|
-
{
|
|
1387
|
-
type: "button",
|
|
1388
|
-
"aria-label": l.chooseFields,
|
|
1389
|
-
"data-testid": testIdOr(testIds?.fieldsButton, {
|
|
1390
|
-
testId: "facts-filter-fields-button"
|
|
1391
|
-
}),
|
|
1392
|
-
className: "absolute right-1.5 top-1/2 z-10 -translate-y-1/2 !h-5 !w-5 !p-0 text-muted-foreground/60 transition-colors hover:text-foreground pointer-coarse:right-0 pointer-coarse:!flex pointer-coarse:!h-11 pointer-coarse:!w-11 pointer-coarse:items-center pointer-coarse:justify-center",
|
|
1393
|
-
children: /* @__PURE__ */ jsx(SlidersHorizontal, { className: "size-3.5" })
|
|
1394
|
-
}
|
|
1395
|
-
) }),
|
|
1396
|
-
/* @__PURE__ */ jsx(PopoverContent, { className: "w-44 p-0", align: "end", sideOffset: 4, children: /* @__PURE__ */ jsx(Command, { shouldFilter: false, children: /* @__PURE__ */ jsx(CommandList, { children: /* @__PURE__ */ jsx(CommandGroup, { heading: l.fieldsHeading, children: FACTS_SEARCH_FIELD_OPTIONS.map((option) => {
|
|
1397
|
-
const isSelected = fields.includes(option.value);
|
|
1398
|
-
return /* @__PURE__ */ jsxs(
|
|
1399
|
-
CommandItem,
|
|
1400
|
-
{
|
|
1401
|
-
onSelect: () => toggleField(option.value),
|
|
1402
|
-
className: "cursor-pointer text-sm",
|
|
1403
|
-
"data-testid": testIdOr(testIds?.field?.(option.value), {
|
|
1404
|
-
testId: `facts-filter-field-${option.value}`
|
|
1405
|
-
}),
|
|
1406
|
-
children: [
|
|
1407
|
-
/* @__PURE__ */ jsx(
|
|
1408
|
-
"div",
|
|
1409
|
-
{
|
|
1410
|
-
className: cn(
|
|
1411
|
-
"mr-2 flex size-3.5 items-center justify-center rounded-sm border border-primary",
|
|
1412
|
-
isSelected ? "bg-primary text-primary-foreground" : "opacity-50 [&_svg]:invisible"
|
|
1413
|
-
),
|
|
1414
|
-
children: /* @__PURE__ */ jsx(Check, { className: "size-3" })
|
|
1415
|
-
}
|
|
1416
|
-
),
|
|
1417
|
-
l.fieldNames[option.value]
|
|
1418
|
-
]
|
|
1419
|
-
},
|
|
1420
|
-
option.value
|
|
1421
|
-
);
|
|
1422
|
-
}) }) }) }) })
|
|
1423
|
-
] })
|
|
1424
|
-
] })
|
|
1425
|
-
}
|
|
1426
|
-
);
|
|
1427
|
-
}
|
|
1428
1325
|
var DEFAULT_FACTS_FIELDS_BUTTON_LABELS = {
|
|
1429
1326
|
fields: "Fields",
|
|
1430
1327
|
defaultView: "Default view",
|
|
@@ -1621,7 +1518,7 @@ function FactsEmptyState({ onUseExample, labels, testIds }) {
|
|
|
1621
1518
|
/* @__PURE__ */ jsx("p", { className: "mt-2 text-sm text-muted-foreground", children: l.intro }),
|
|
1622
1519
|
/* @__PURE__ */ jsx("div", { className: "mt-7 grid gap-3 text-left @xl:grid-cols-3", children: l.kinds.map(({ label, desc }, i) => {
|
|
1623
1520
|
const KindIcon = KIND_ICONS[i % KIND_ICONS.length];
|
|
1624
|
-
return /* @__PURE__ */ jsxs("div", { className: "rounded-lg bg-
|
|
1521
|
+
return /* @__PURE__ */ jsxs("div", { className: "rounded-lg border border-border bg-card p-3 shadow-xs", children: [
|
|
1625
1522
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5 text-sm font-medium text-foreground", children: [
|
|
1626
1523
|
/* @__PURE__ */ jsx(KindIcon, { className: "size-4 text-primary" }),
|
|
1627
1524
|
label
|
|
@@ -1629,13 +1526,13 @@ function FactsEmptyState({ onUseExample, labels, testIds }) {
|
|
|
1629
1526
|
/* @__PURE__ */ jsx("p", { className: "mt-1 text-xs leading-snug text-muted-foreground", children: desc })
|
|
1630
1527
|
] }, label);
|
|
1631
1528
|
}) }),
|
|
1632
|
-
/* @__PURE__ */ jsx("p", { className: "mt-10 text-
|
|
1529
|
+
/* @__PURE__ */ jsx("p", { className: "mt-10 text-sm font-medium text-muted-foreground", children: l.tryAdding }),
|
|
1633
1530
|
/* @__PURE__ */ jsx("div", { className: "mt-4 flex flex-wrap justify-center gap-2.5", children: l.examples.map((fact) => /* @__PURE__ */ jsxs(
|
|
1634
1531
|
"button",
|
|
1635
1532
|
{
|
|
1636
1533
|
type: "button",
|
|
1637
1534
|
onClick: () => onUseExample(fact),
|
|
1638
|
-
className: "group inline-flex items-center gap-1.5 rounded-
|
|
1535
|
+
className: "group inline-flex items-center gap-1.5 rounded-md border border-border bg-card px-3.5 py-2 text-sm text-foreground transition-colors hover:border-ring/50 hover:bg-accent/40 pointer-coarse:min-h-11",
|
|
1639
1536
|
"data-testid": testIdOr(testIds?.example, { testId: "facts-page-example" }),
|
|
1640
1537
|
children: [
|
|
1641
1538
|
fact,
|
|
@@ -2015,13 +1912,12 @@ function FactsToolbar({
|
|
|
2015
1912
|
countPlacement: "leading",
|
|
2016
1913
|
hasActiveFilters,
|
|
2017
1914
|
testId: testIdOr(testIds?.tab, { testId: "facts-tab" }),
|
|
2018
|
-
|
|
2019
|
-
tabClassName: "!bg-transparent hover:!bg-transparent !border-transparent !rounded-none !mb-0 !pl-0 before:!hidden after:!hidden shadow-none!"
|
|
1915
|
+
presentation: "count"
|
|
2020
1916
|
}
|
|
2021
1917
|
];
|
|
2022
1918
|
const filterControls = /* @__PURE__ */ jsxs("div", { className: isNarrow ? "flex w-full items-center gap-1.5" : "flex items-center gap-1.5", children: [
|
|
2023
1919
|
/* @__PURE__ */ jsx(
|
|
2024
|
-
|
|
1920
|
+
FilterInput,
|
|
2025
1921
|
{
|
|
2026
1922
|
value: filterText,
|
|
2027
1923
|
onChange: onFilterTextChange,
|
|
@@ -2053,11 +1949,10 @@ function FactsToolbar({
|
|
|
2053
1949
|
TabHeader,
|
|
2054
1950
|
{
|
|
2055
1951
|
tabs,
|
|
2056
|
-
className: "pr-3",
|
|
2057
1952
|
activeTabId: "notes",
|
|
2058
1953
|
onTabChange: () => {
|
|
2059
1954
|
},
|
|
2060
|
-
|
|
1955
|
+
firstTabContent: isNarrow ? null : filterControls,
|
|
2061
1956
|
centerContent: isNarrow ? null : /* @__PURE__ */ jsx("div", { className: "flex w-full items-center justify-center", children: /* @__PURE__ */ jsx(
|
|
2062
1957
|
FactsViewToggle,
|
|
2063
1958
|
{
|
|
@@ -2348,6 +2243,6 @@ function FactSearchResult({
|
|
|
2348
2243
|
] });
|
|
2349
2244
|
}
|
|
2350
2245
|
|
|
2351
|
-
export { DEFAULT_FACTS_BULK_BAR_LABELS, DEFAULT_FACTS_EMPTY_STATE_LABELS, DEFAULT_FACTS_FIELDS_BUTTON_LABELS,
|
|
2246
|
+
export { DEFAULT_FACTS_BULK_BAR_LABELS, DEFAULT_FACTS_EMPTY_STATE_LABELS, DEFAULT_FACTS_FIELDS_BUTTON_LABELS, DEFAULT_FACTS_TOOLBAR_LABELS, DEFAULT_FACTS_VIEW_TOGGLE_LABELS, DEFAULT_FACT_COLUMN_LABELS, DEFAULT_FACT_COLUMN_ORDER, DEFAULT_FACT_COMPOSER_LABELS, DEFAULT_FACT_DATE_INPUT_LABELS, DEFAULT_FACT_LABELS_CELL_LABELS, DEFAULT_FACT_PASSAGES_LABELS, DEFAULT_FACT_ROW_ACTIONS_LABELS, DEFAULT_FACT_SEARCH_BAR_LABELS, DEFAULT_FACT_SEARCH_RESULT_LABELS, DEFAULT_FACT_SOURCES_ROW_LABELS, DEFAULT_FACT_SOURCE_GROUP_LABELS, DEFAULT_FACT_TIMELINE_LABELS, EMPTY_FACT_DATE_FIELDS, FactComposer, FactDateInput, FactFieldRow, FactLabelsCell, FactPassageItem, FactRowActions, FactSearchBar, FactSearchNoMatches, FactSearchPending, FactSearchResult, FactSearchTotals, FactSourceGroup, FactSourcesPanel, FactSourcesRow, FactsBulkBar, FactsCalendar, FactsEmptyState, FactsFieldsButton, FactsGanttPane, FactsLoadError, FactsLoading, FactsTable, FactsToolbar, FactsViewToggle, ISO_DATE_FILTER_PARAMS, createFactColumns, decodeWhitespaceEntities, detectTimezone, factDateFieldsToSpan, factDateSpanToFields, renderPreviewInline, sourceDocCount, supportedTimezones, toFactRow, toFactRows, toPreviewLine };
|
|
2352
2247
|
//# sourceMappingURL=index.js.map
|
|
2353
2248
|
//# sourceMappingURL=index.js.map
|