@arbidocs/blocks 0.4.129 → 0.4.131
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 +303 -303
- package/dist/agents/index.js +11 -11
- package/dist/calendar/CalendarPrint.d.ts +25 -0
- package/dist/calendar/booking-slots.d.ts +21 -0
- package/dist/calendar/index.cjs +381 -97
- package/dist/calendar/index.cjs.map +1 -1
- package/dist/calendar/index.d.ts +4 -0
- package/dist/calendar/index.js +277 -3
- package/dist/calendar/index.js.map +1 -1
- package/dist/calendar/print-layout.d.ts +16 -0
- package/dist/calendar/printCalendar.d.ts +6 -0
- package/dist/calls/composite-canvas.d.ts +52 -0
- package/dist/calls/index.cjs +374 -1
- package/dist/calls/index.cjs.map +1 -1
- package/dist/calls/index.d.ts +3 -0
- package/dist/calls/index.js +359 -4
- package/dist/calls/index.js.map +1 -1
- package/dist/calls/ringtone.d.ts +16 -0
- package/dist/calls/voice-levels.d.ts +32 -0
- package/dist/chat/ThreadVisualizer.d.ts +28 -0
- package/dist/chat/index.cjs +151 -135
- package/dist/chat/index.d.ts +2 -0
- package/dist/chat/index.js +4 -4
- package/dist/chat/thread-diagram.d.ts +26 -0
- package/dist/{chunk-H2KQ6OSU.js → chunk-26E6PHD2.js} +231 -6
- package/dist/chunk-26E6PHD2.js.map +1 -0
- package/dist/{chunk-2PNNCEPH.js → chunk-54ANPPMV.js} +4 -4
- package/dist/{chunk-2PNNCEPH.js.map → chunk-54ANPPMV.js.map} +1 -1
- package/dist/{chunk-IBZJYCYM.js → chunk-66TA5IBN.js} +17 -25
- package/dist/chunk-66TA5IBN.js.map +1 -0
- package/dist/{chunk-OYMWV45N.js → chunk-7D4W3SAH.js} +51 -4
- package/dist/chunk-7D4W3SAH.js.map +1 -0
- package/dist/{chunk-2DFDFOM7.js → chunk-7HAM7Y5U.js} +3 -3
- package/dist/{chunk-2DFDFOM7.js.map → chunk-7HAM7Y5U.js.map} +1 -1
- package/dist/{chunk-7423V6RM.cjs → chunk-7KH4M3KY.cjs} +8 -8
- package/dist/{chunk-7423V6RM.cjs.map → chunk-7KH4M3KY.cjs.map} +1 -1
- package/dist/{chunk-TGWTLNXW.cjs → chunk-BIXHB4LV.cjs} +3 -2
- package/dist/{chunk-TGWTLNXW.cjs.map → chunk-BIXHB4LV.cjs.map} +1 -1
- package/dist/{chunk-DZYAAL4H.cjs → chunk-BZF55UCE.cjs} +234 -5
- package/dist/chunk-BZF55UCE.cjs.map +1 -0
- package/dist/{chunk-3BJLNKOB.cjs → chunk-CDZVC32G.cjs} +5 -5
- package/dist/{chunk-3BJLNKOB.cjs.map → chunk-CDZVC32G.cjs.map} +1 -1
- package/dist/{chunk-PUCY3UXN.js → chunk-CXLVI3SB.js} +3 -3
- package/dist/{chunk-PUCY3UXN.js.map → chunk-CXLVI3SB.js.map} +1 -1
- package/dist/{chunk-KYDRUFWT.cjs → chunk-D4YR56FV.cjs} +5 -5
- package/dist/{chunk-KYDRUFWT.cjs.map → chunk-D4YR56FV.cjs.map} +1 -1
- package/dist/{chunk-6BTCDKCK.js → chunk-DI35D756.js} +4 -4
- package/dist/{chunk-6BTCDKCK.js.map → chunk-DI35D756.js.map} +1 -1
- package/dist/{chunk-TGJNPKST.js → chunk-GTCC2VAR.js} +3 -3
- package/dist/{chunk-TGJNPKST.js.map → chunk-GTCC2VAR.js.map} +1 -1
- package/dist/{chunk-6AALMYPS.cjs → chunk-HM23LXUP.cjs} +3 -3
- package/dist/{chunk-6AALMYPS.cjs.map → chunk-HM23LXUP.cjs.map} +1 -1
- package/dist/{chunk-HSFLEVZY.js → chunk-KLOSOT26.js} +10 -10
- package/dist/{chunk-HSFLEVZY.js.map → chunk-KLOSOT26.js.map} +1 -1
- package/dist/{chunk-SARREDFP.cjs → chunk-LC2KJSUS.cjs} +46 -46
- package/dist/{chunk-SARREDFP.cjs.map → chunk-LC2KJSUS.cjs.map} +1 -1
- package/dist/{chunk-MUMH3Z6K.cjs → chunk-LRD7BHAT.cjs} +50 -3
- package/dist/chunk-LRD7BHAT.cjs.map +1 -0
- package/dist/{chunk-CJBN5HIS.js → chunk-P5HOXWYL.js} +3 -3
- package/dist/{chunk-CJBN5HIS.js.map → chunk-P5HOXWYL.js.map} +1 -1
- package/dist/{chunk-5Y7JRY7Y.js → chunk-P5ST47VY.js} +3 -3
- package/dist/{chunk-5Y7JRY7Y.js.map → chunk-P5ST47VY.js.map} +1 -1
- package/dist/{chunk-A7NCSZAP.cjs → chunk-QZTNTP75.cjs} +17 -25
- package/dist/chunk-QZTNTP75.cjs.map +1 -0
- package/dist/{chunk-ENDP7JER.js → chunk-VW2C2AZL.js} +3 -3
- package/dist/{chunk-ENDP7JER.js.map → chunk-VW2C2AZL.js.map} +1 -1
- package/dist/{chunk-JLTXVW25.cjs → chunk-W27VK32R.cjs} +78 -78
- package/dist/{chunk-JLTXVW25.cjs.map → chunk-W27VK32R.cjs.map} +1 -1
- package/dist/{chunk-PJJY6CYL.cjs → chunk-WV4IDVDQ.cjs} +11 -11
- package/dist/{chunk-PJJY6CYL.cjs.map → chunk-WV4IDVDQ.cjs.map} +1 -1
- package/dist/{chunk-NYHGG2IA.cjs → chunk-ZV3BKLFY.cjs} +3 -3
- package/dist/{chunk-NYHGG2IA.cjs.map → chunk-ZV3BKLFY.cjs.map} +1 -1
- package/dist/collaboration/index.cjs +9 -9
- package/dist/collaboration/index.js +1 -1
- package/dist/connect/docx.cjs +4 -4
- package/dist/connect/docx.js +3 -3
- package/dist/connect/index.cjs +183 -146
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.d.ts +1 -1
- package/dist/connect/index.js +134 -98
- package/dist/connect/index.js.map +1 -1
- package/dist/connection/ConnectedSettings.d.ts +42 -7
- package/dist/document-tools/index.cjs +1 -1
- package/dist/document-tools/index.js +1 -1
- package/dist/facts/fact-citations.d.ts +56 -0
- package/dist/facts/fact-table-column-resize.d.ts +18 -0
- package/dist/facts/index.cjs +194 -8
- package/dist/facts/index.cjs.map +1 -1
- package/dist/facts/index.d.ts +2 -0
- package/dist/facts/index.js +180 -5
- package/dist/facts/index.js.map +1 -1
- package/dist/files/index.cjs +1 -1
- package/dist/files/index.js +1 -1
- package/dist/home/index.cjs +17 -17
- package/dist/home/index.js +3 -3
- package/dist/index.cjs +517 -501
- package/dist/index.js +18 -18
- package/dist/settings/MoreInfo.d.ts +25 -0
- package/dist/settings/PlanCard.d.ts +1 -1
- package/dist/settings/index.cjs +79 -225
- package/dist/settings/index.cjs.map +1 -1
- package/dist/settings/index.d.ts +1 -1
- package/dist/settings/index.js +70 -215
- package/dist/settings/index.js.map +1 -1
- package/dist/shell/index.cjs +1 -1
- package/dist/shell/index.js +1 -1
- package/dist/site/index.cjs +5 -5
- package/dist/site/index.js +1 -1
- package/dist/studio/index.cjs +8 -8
- package/dist/studio/index.js +6 -6
- package/dist/workflow-canvas/index.cjs +64 -64
- package/dist/workflow-canvas/index.js +12 -12
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +9 -4
- package/dist/chunk-A7NCSZAP.cjs.map +0 -1
- package/dist/chunk-DZYAAL4H.cjs.map +0 -1
- package/dist/chunk-H2KQ6OSU.js.map +0 -1
- package/dist/chunk-IBZJYCYM.js.map +0 -1
- package/dist/chunk-MUMH3Z6K.cjs.map +0 -1
- package/dist/chunk-OYMWV45N.js.map +0 -1
- package/dist/settings/FirmPool.d.ts +0 -82
package/dist/facts/index.d.ts
CHANGED
|
@@ -32,3 +32,5 @@ export { DEFAULT_FACT_PASSAGES_LABELS, type FactPassagesLabels, type FactSources
|
|
|
32
32
|
export { DEFAULT_FACT_LABELS_CELL_LABELS, type FactLabelsCellLabels, type FactLabelsCellTestIds, } from './FactLabelsCell';
|
|
33
33
|
export { DEFAULT_FACT_COLUMN_LABELS, type FactColumnLabels, type FactColumnTestIds, } from './factColumns';
|
|
34
34
|
export { DEFAULT_FACT_DATE_INPUT_LABELS, type FactDateInputLabels, type FactDateInputTestIds, } from './FactDateInput';
|
|
35
|
+
export { toFactCitations, isWholeDoc, docIdsOf, chunkIdsOf, hasChunk, withDoc, withoutDoc, withChunk, withoutChunk, buildFactCitations, type FactCitedChunk, type FactCitedDoc, type FactCitations, } from './fact-citations';
|
|
36
|
+
export { enableFactTableColumnResize } from './fact-table-column-resize';
|
package/dist/facts/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { ViewToggle } from '../chunk-JJA6GQKH.js';
|
|
3
2
|
export { DEFAULT_FACT_PASSAGES_LABELS, FactPassageItem, FactSourcesPanel, renderPreviewInline, toPreviewLine } from '../chunk-HFZ45FD3.js';
|
|
3
|
+
import { ViewToggle } from '../chunk-JJA6GQKH.js';
|
|
4
4
|
import { SearchHit } from '../chunk-A2YAC22G.js';
|
|
5
5
|
import { formatSpan, TimelineCalendar, TimelineGantt } from '../chunk-4EZVCGRL.js';
|
|
6
6
|
import { decodeWhitespaceEntities } from '../chunk-AF6RDAJF.js';
|
|
@@ -9,7 +9,7 @@ import { SelectionBar, SelectionBarAction } from '../chunk-NUNKSZKU.js';
|
|
|
9
9
|
import { FilterInput } from '../chunk-YU2KUMGE.js';
|
|
10
10
|
export { DEFAULT_FILTER_INPUT_LABELS as DEFAULT_FACTS_FILTER_INPUT_LABELS, DEFAULT_FILTER_FIELDS as FACTS_SEARCH_FIELD_OPTIONS, FilterInput as FactsFilterInput } from '../chunk-YU2KUMGE.js';
|
|
11
11
|
import { GridView } from '../chunk-N5YEF3LC.js';
|
|
12
|
-
import { detectTimeZone, listTimeZones } from '../chunk-
|
|
12
|
+
import { detectTimeZone, listTimeZones } from '../chunk-GTCC2VAR.js';
|
|
13
13
|
import { TabHeader } from '../chunk-4WWM3GQ5.js';
|
|
14
14
|
import '../chunk-SLSBJRWW.js';
|
|
15
15
|
import { observeResize } from '../chunk-NPLYHR2E.js';
|
|
@@ -21,6 +21,7 @@ import { PencilLine, Check, MoreVertical, Pencil, Trash2, CalendarDays, X, Colum
|
|
|
21
21
|
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';
|
|
22
22
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
23
23
|
import { memo, useState, useMemo, useRef, useEffect } from 'react';
|
|
24
|
+
import { unwrapCitationLinks } from '@arbidocs/react/artifacts';
|
|
24
25
|
|
|
25
26
|
var DEFAULT_FACT_COLUMN_LABELS = {
|
|
26
27
|
inChatHeaderTooltip: "Facts added to this chat are always in context for this chat",
|
|
@@ -1109,7 +1110,7 @@ var DEFAULT_FACT_SOURCE_GROUP_LABELS = {
|
|
|
1109
1110
|
};
|
|
1110
1111
|
function FactSourceGroup({
|
|
1111
1112
|
docId,
|
|
1112
|
-
document,
|
|
1113
|
+
document: document2,
|
|
1113
1114
|
isViewing,
|
|
1114
1115
|
onRemove,
|
|
1115
1116
|
children,
|
|
@@ -1127,7 +1128,7 @@ function FactSourceGroup({
|
|
|
1127
1128
|
"data-slot": "fact-source-group",
|
|
1128
1129
|
children: [
|
|
1129
1130
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5 px-1 text-sm", children: [
|
|
1130
|
-
|
|
1131
|
+
document2,
|
|
1131
1132
|
/* @__PURE__ */ jsx("span", { className: "flex-1" }),
|
|
1132
1133
|
onRemove && /* @__PURE__ */ jsx(
|
|
1133
1134
|
"button",
|
|
@@ -2113,7 +2114,181 @@ function FactSearchResult({
|
|
|
2113
2114
|
)
|
|
2114
2115
|
] });
|
|
2115
2116
|
}
|
|
2117
|
+
function toFactCitations(citations) {
|
|
2118
|
+
if (!citations) return null;
|
|
2119
|
+
return citations.map((d) => ({
|
|
2120
|
+
doc_ext_id: d.doc_ext_id,
|
|
2121
|
+
...d.version ? { version: d.version } : {},
|
|
2122
|
+
chunks: d.chunks ?? []
|
|
2123
|
+
}));
|
|
2124
|
+
}
|
|
2125
|
+
function isWholeDoc(doc) {
|
|
2126
|
+
return doc.chunks.length === 0;
|
|
2127
|
+
}
|
|
2128
|
+
function docIdsOf(citations) {
|
|
2129
|
+
return (citations ?? []).map((d) => d.doc_ext_id);
|
|
2130
|
+
}
|
|
2131
|
+
function chunkIdsOf(citations) {
|
|
2132
|
+
return (citations ?? []).flatMap((d) => d.chunks.map((c) => c.chunk_id));
|
|
2133
|
+
}
|
|
2134
|
+
function hasChunk(citations, chunkId) {
|
|
2135
|
+
return (citations ?? []).some((d) => d.chunks.some((c) => c.chunk_id === chunkId));
|
|
2136
|
+
}
|
|
2137
|
+
function withDoc(citations, docExtId) {
|
|
2138
|
+
const list = citations ?? [];
|
|
2139
|
+
if (list.some((d) => d.doc_ext_id === docExtId)) return list;
|
|
2140
|
+
return [...list, { doc_ext_id: docExtId, chunks: [] }];
|
|
2141
|
+
}
|
|
2142
|
+
function withoutDoc(citations, docExtId) {
|
|
2143
|
+
const remaining = (citations ?? []).filter((d) => d.doc_ext_id !== docExtId);
|
|
2144
|
+
return remaining.length ? remaining : null;
|
|
2145
|
+
}
|
|
2146
|
+
function withChunk(citations, docExtId, chunk) {
|
|
2147
|
+
const list = citations ?? [];
|
|
2148
|
+
const idx = list.findIndex((d) => d.doc_ext_id === docExtId);
|
|
2149
|
+
if (idx === -1) return [...list, { doc_ext_id: docExtId, chunks: [chunk] }];
|
|
2150
|
+
const doc = list[idx];
|
|
2151
|
+
if (doc.chunks.some((c) => c.chunk_id === chunk.chunk_id)) return list;
|
|
2152
|
+
const next = [...list];
|
|
2153
|
+
next[idx] = { ...doc, chunks: [...doc.chunks, chunk] };
|
|
2154
|
+
return next;
|
|
2155
|
+
}
|
|
2156
|
+
function withoutChunk(citations, chunkId, opts = {}) {
|
|
2157
|
+
const keepDoc = opts.keepDoc ?? true;
|
|
2158
|
+
const list = citations ?? [];
|
|
2159
|
+
if (!hasChunk(list, chunkId)) return citations ?? null;
|
|
2160
|
+
const next = [];
|
|
2161
|
+
for (const doc of list) {
|
|
2162
|
+
if (!doc.chunks.some((c) => c.chunk_id === chunkId)) {
|
|
2163
|
+
next.push(doc);
|
|
2164
|
+
continue;
|
|
2165
|
+
}
|
|
2166
|
+
const chunks = doc.chunks.filter((c) => c.chunk_id !== chunkId);
|
|
2167
|
+
if (chunks.length || keepDoc) next.push({ ...doc, chunks });
|
|
2168
|
+
}
|
|
2169
|
+
return next.length ? next : null;
|
|
2170
|
+
}
|
|
2171
|
+
function repairBoldFlanking(md) {
|
|
2172
|
+
return md.replace(/([.,;:!?"'’”)\]])(\*\*|__)(?=[A-Za-z0-9])/g, "$1$2 ");
|
|
2173
|
+
}
|
|
2174
|
+
var CHAT_LEAD_IN = /^(?:here(?:'s| is| are)|below (?:is|are)|sure|certainly)\b[^\n]*:[ \t]*(?:\n+|$)/i;
|
|
2175
|
+
function dropChatLeadIn(md) {
|
|
2176
|
+
const body = md.replace(CHAT_LEAD_IN, "");
|
|
2177
|
+
return body.trim() ? body : md;
|
|
2178
|
+
}
|
|
2179
|
+
function buildFactCitations(content, activeCitations, citationData) {
|
|
2180
|
+
const text = dropChatLeadIn(repairBoldFlanking(unwrapCitationLinks(content)).trim()).trim();
|
|
2181
|
+
if (!activeCitations) return { text, citations: null };
|
|
2182
|
+
const chunkMeta = /* @__PURE__ */ new Map();
|
|
2183
|
+
for (const chunks of Object.values(citationData)) {
|
|
2184
|
+
if (!Array.isArray(chunks)) continue;
|
|
2185
|
+
for (const chunk of chunks) {
|
|
2186
|
+
const meta = {
|
|
2187
|
+
doc_ext_id: chunk.metadata?.doc_ext_id ?? null,
|
|
2188
|
+
page: chunk.metadata?.page_number ?? null
|
|
2189
|
+
};
|
|
2190
|
+
for (const key of [chunk.metadata?.chunk_ext_id, chunk.chunk_id]) {
|
|
2191
|
+
if (key && !chunkMeta.has(key)) chunkMeta.set(key, meta);
|
|
2192
|
+
}
|
|
2193
|
+
}
|
|
2194
|
+
}
|
|
2195
|
+
let citations = null;
|
|
2196
|
+
for (const chunkIds of Object.values(activeCitations)) {
|
|
2197
|
+
for (const chunkId of chunkIds) {
|
|
2198
|
+
const meta = chunkMeta.get(chunkId);
|
|
2199
|
+
if (!meta?.doc_ext_id) continue;
|
|
2200
|
+
citations = withChunk(citations, meta.doc_ext_id, { chunk_id: chunkId, page: meta.page });
|
|
2201
|
+
}
|
|
2202
|
+
}
|
|
2203
|
+
return { text, citations };
|
|
2204
|
+
}
|
|
2205
|
+
|
|
2206
|
+
// src/facts/fact-table-column-resize.ts
|
|
2207
|
+
var EDGE = 6;
|
|
2208
|
+
var MIN_WIDTH = 48;
|
|
2209
|
+
function enableFactTableColumnResize(container) {
|
|
2210
|
+
let drag = null;
|
|
2211
|
+
const cellFromEvent = (e) => {
|
|
2212
|
+
const el = e.target;
|
|
2213
|
+
const cell = el?.closest?.("td, th");
|
|
2214
|
+
if (!cell || cell.hasAttribute("data-tool-cell")) return null;
|
|
2215
|
+
if (!container.contains(cell)) return null;
|
|
2216
|
+
return cell;
|
|
2217
|
+
};
|
|
2218
|
+
const nearRightEdge = (cell, clientX) => {
|
|
2219
|
+
const rect = cell.getBoundingClientRect();
|
|
2220
|
+
return clientX >= rect.right - EDGE && clientX <= rect.right + 2;
|
|
2221
|
+
};
|
|
2222
|
+
const colForCell = (cell) => {
|
|
2223
|
+
const row = cell.parentElement;
|
|
2224
|
+
const table = cell.closest("table");
|
|
2225
|
+
const colgroup = table?.querySelector("colgroup");
|
|
2226
|
+
if (!row || !table || !colgroup) return null;
|
|
2227
|
+
const index = Array.prototype.indexOf.call(row.children, cell);
|
|
2228
|
+
return colgroup.children[index] ?? null;
|
|
2229
|
+
};
|
|
2230
|
+
const freezeWidths = (table) => {
|
|
2231
|
+
const colgroup = table.querySelector("colgroup");
|
|
2232
|
+
if (!colgroup) return;
|
|
2233
|
+
const ruler = table.querySelector("thead tr") ?? table.querySelector("tbody tr");
|
|
2234
|
+
const cells = ruler ? Array.from(ruler.children) : [];
|
|
2235
|
+
Array.from(colgroup.children).forEach((node, i) => {
|
|
2236
|
+
const col = node;
|
|
2237
|
+
const cell = cells[i];
|
|
2238
|
+
if (!col.style.width && cell) col.style.width = `${cell.getBoundingClientRect().width}px`;
|
|
2239
|
+
});
|
|
2240
|
+
table.style.tableLayout = "fixed";
|
|
2241
|
+
};
|
|
2242
|
+
const onPointerMove = (e) => {
|
|
2243
|
+
if (drag) {
|
|
2244
|
+
const next = Math.max(MIN_WIDTH, drag.startWidth + (e.clientX - drag.startX));
|
|
2245
|
+
drag.col.style.width = `${next}px`;
|
|
2246
|
+
e.preventDefault();
|
|
2247
|
+
return;
|
|
2248
|
+
}
|
|
2249
|
+
const cell = cellFromEvent(e);
|
|
2250
|
+
if (cell && nearRightEdge(cell, e.clientX)) {
|
|
2251
|
+
cell.style.cursor = "col-resize";
|
|
2252
|
+
} else if (cell) {
|
|
2253
|
+
cell.style.cursor = "";
|
|
2254
|
+
}
|
|
2255
|
+
};
|
|
2256
|
+
const endDrag = () => {
|
|
2257
|
+
if (!drag) return;
|
|
2258
|
+
drag = null;
|
|
2259
|
+
document.documentElement.classList.remove("fact-col-resizing");
|
|
2260
|
+
document.removeEventListener("pointermove", onPointerMove, true);
|
|
2261
|
+
document.removeEventListener("pointerup", endDrag, true);
|
|
2262
|
+
};
|
|
2263
|
+
const onPointerDown = (e) => {
|
|
2264
|
+
if (e.button !== 0) return;
|
|
2265
|
+
const cell = cellFromEvent(e);
|
|
2266
|
+
if (!cell || !nearRightEdge(cell, e.clientX)) return;
|
|
2267
|
+
const table = cell.closest("table");
|
|
2268
|
+
if (!table) return;
|
|
2269
|
+
freezeWidths(table);
|
|
2270
|
+
const col = colForCell(cell);
|
|
2271
|
+
if (!col) return;
|
|
2272
|
+
drag = {
|
|
2273
|
+
col,
|
|
2274
|
+
table,
|
|
2275
|
+
startX: e.clientX,
|
|
2276
|
+
startWidth: parseFloat(col.style.width) || cell.getBoundingClientRect().width
|
|
2277
|
+
};
|
|
2278
|
+
e.preventDefault();
|
|
2279
|
+
document.documentElement.classList.add("fact-col-resizing");
|
|
2280
|
+
document.addEventListener("pointermove", onPointerMove, true);
|
|
2281
|
+
document.addEventListener("pointerup", endDrag, true);
|
|
2282
|
+
};
|
|
2283
|
+
container.addEventListener("pointerdown", onPointerDown);
|
|
2284
|
+
container.addEventListener("pointermove", onPointerMove);
|
|
2285
|
+
return () => {
|
|
2286
|
+
endDrag();
|
|
2287
|
+
container.removeEventListener("pointerdown", onPointerDown);
|
|
2288
|
+
container.removeEventListener("pointermove", onPointerMove);
|
|
2289
|
+
};
|
|
2290
|
+
}
|
|
2116
2291
|
|
|
2117
|
-
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_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, FactRowActions, FactSearchBar, FactSearchNoMatches, FactSearchPending, FactSearchResult, FactSearchTotals, FactSourceGroup, FactSourcesRow, FactsBulkBar, FactsCalendar, FactsEmptyState, FactsFieldsButton, FactsGanttPane, FactsLoadError, FactsLoading, FactsTable, FactsToolbar, FactsViewToggle, ISO_DATE_FILTER_PARAMS, createFactColumns, factDateFieldsToSpan, factDateSpanToFields, sourceDocCount, toFactRow, toFactRows };
|
|
2292
|
+
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_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, FactRowActions, FactSearchBar, FactSearchNoMatches, FactSearchPending, FactSearchResult, FactSearchTotals, FactSourceGroup, FactSourcesRow, FactsBulkBar, FactsCalendar, FactsEmptyState, FactsFieldsButton, FactsGanttPane, FactsLoadError, FactsLoading, FactsTable, FactsToolbar, FactsViewToggle, ISO_DATE_FILTER_PARAMS, buildFactCitations, chunkIdsOf, createFactColumns, docIdsOf, enableFactTableColumnResize, factDateFieldsToSpan, factDateSpanToFields, hasChunk, isWholeDoc, sourceDocCount, toFactCitations, toFactRow, toFactRows, withChunk, withDoc, withoutChunk, withoutDoc };
|
|
2118
2293
|
//# sourceMappingURL=index.js.map
|
|
2119
2294
|
//# sourceMappingURL=index.js.map
|