@arbidocs/blocks 0.4.95 → 0.4.97
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 +283 -283
- package/dist/agents/index.js +7 -7
- package/dist/chat/index.cjs +127 -127
- package/dist/chat/index.js +4 -4
- package/dist/{chunk-DCZGYCN2.cjs → chunk-3US5OIDQ.cjs} +5 -5
- package/dist/{chunk-DCZGYCN2.cjs.map → chunk-3US5OIDQ.cjs.map} +1 -1
- package/dist/{chunk-QQH2NI5U.js → chunk-5NQIBJPP.js} +8 -8
- package/dist/{chunk-QQH2NI5U.js.map → chunk-5NQIBJPP.js.map} +1 -1
- package/dist/{chunk-KBPHLW2R.cjs → chunk-B4SRYJLM.cjs} +3 -3
- package/dist/{chunk-KBPHLW2R.cjs.map → chunk-B4SRYJLM.cjs.map} +1 -1
- package/dist/chunk-D54JXTPG.cjs +164 -0
- package/dist/chunk-D54JXTPG.cjs.map +1 -0
- package/dist/{chunk-VQ65UHTV.cjs → chunk-DDYXFALG.cjs} +47 -47
- package/dist/{chunk-VQ65UHTV.cjs.map → chunk-DDYXFALG.cjs.map} +1 -1
- package/dist/{chunk-RZGVMV6B.cjs → chunk-EHB7J6SR.cjs} +5 -5
- package/dist/{chunk-RZGVMV6B.cjs.map → chunk-EHB7J6SR.cjs.map} +1 -1
- package/dist/{chunk-EJAYB7PP.js → chunk-EWSEQEPL.js} +4 -4
- package/dist/{chunk-EJAYB7PP.js.map → chunk-EWSEQEPL.js.map} +1 -1
- package/dist/{chunk-3OXWJ3CZ.cjs → chunk-GVOTXXZG.cjs} +5 -5
- package/dist/{chunk-3OXWJ3CZ.cjs.map → chunk-GVOTXXZG.cjs.map} +1 -1
- package/dist/{chunk-CKYA2IG5.cjs → chunk-HBF4BDRU.cjs} +3 -3
- package/dist/{chunk-CKYA2IG5.cjs.map → chunk-HBF4BDRU.cjs.map} +1 -1
- package/dist/{chunk-E2AAIMXO.cjs → chunk-HGJGALLN.cjs} +832 -219
- package/dist/chunk-HGJGALLN.cjs.map +1 -0
- package/dist/{chunk-24CS7JWU.js → chunk-HOXKR26S.js} +3 -3
- package/dist/{chunk-24CS7JWU.js.map → chunk-HOXKR26S.js.map} +1 -1
- package/dist/{chunk-PDEHIGJ5.js → chunk-ICBAFX5B.js} +3 -3
- package/dist/{chunk-PDEHIGJ5.js.map → chunk-ICBAFX5B.js.map} +1 -1
- package/dist/{chunk-OYMYNYFV.cjs → chunk-IF6VAYIA.cjs} +5 -5
- package/dist/{chunk-OYMYNYFV.cjs.map → chunk-IF6VAYIA.cjs.map} +1 -1
- package/dist/{chunk-TOVSTC2M.cjs → chunk-LENXDIMY.cjs} +5 -5
- package/dist/{chunk-TOVSTC2M.cjs.map → chunk-LENXDIMY.cjs.map} +1 -1
- package/dist/{chunk-VYKMBLDX.cjs → chunk-MP6FK43E.cjs} +8 -8
- package/dist/{chunk-VYKMBLDX.cjs.map → chunk-MP6FK43E.cjs.map} +1 -1
- package/dist/{chunk-HUFLBZWI.js → chunk-PGDL26TQ.js} +4 -4
- package/dist/{chunk-HUFLBZWI.js.map → chunk-PGDL26TQ.js.map} +1 -1
- package/dist/{chunk-WXLKMEMB.js → chunk-QIEEFBZ5.js} +834 -221
- package/dist/chunk-QIEEFBZ5.js.map +1 -0
- package/dist/{chunk-YPKSLTL5.js → chunk-RSUOOMPT.js} +3 -3
- package/dist/{chunk-YPKSLTL5.js.map → chunk-RSUOOMPT.js.map} +1 -1
- package/dist/{chunk-UMY6Y6BM.js → chunk-VLOPZHFH.js} +3 -3
- package/dist/{chunk-UMY6Y6BM.js.map → chunk-VLOPZHFH.js.map} +1 -1
- package/dist/{chunk-GNHOB2ZB.cjs → chunk-XMBYDLZQ.cjs} +4 -4
- package/dist/{chunk-GNHOB2ZB.cjs.map → chunk-XMBYDLZQ.cjs.map} +1 -1
- package/dist/{chunk-YG7DGGCA.js → chunk-XQDM6T6C.js} +3 -3
- package/dist/{chunk-YG7DGGCA.js.map → chunk-XQDM6T6C.js.map} +1 -1
- package/dist/{chunk-ZNDAXSDP.js → chunk-YH6SSJDW.js} +3 -3
- package/dist/{chunk-ZNDAXSDP.js.map → chunk-YH6SSJDW.js.map} +1 -1
- package/dist/{chunk-EOEDGJ75.js → chunk-Z3G65XHZ.js} +3 -3
- package/dist/{chunk-EOEDGJ75.js.map → chunk-Z3G65XHZ.js.map} +1 -1
- package/dist/chunk-ZCOVDK2E.js +153 -0
- package/dist/chunk-ZCOVDK2E.js.map +1 -0
- package/dist/components/DetailPanel.d.ts +106 -0
- package/dist/connect/docx.cjs +6 -6
- package/dist/connect/docx.js +4 -4
- package/dist/connect/index.cjs +47 -47
- package/dist/connect/index.js +17 -17
- package/dist/databases/DatabaseRowDetail.d.ts +32 -0
- package/dist/databases/DatabaseTable.d.ts +3 -1
- package/dist/databases/DatabaseToolbar.d.ts +9 -1
- package/dist/databases/PickCellEditor.d.ts +8 -1
- package/dist/databases/SelectCellEditor.d.ts +6 -1
- package/dist/databases/column-types.d.ts +5 -0
- package/dist/databases/databaseColumns.d.ts +7 -0
- package/dist/databases/index.cjs +381 -11
- package/dist/databases/index.cjs.map +1 -1
- package/dist/databases/index.d.ts +7 -5
- package/dist/databases/index.js +379 -14
- package/dist/databases/index.js.map +1 -1
- package/dist/databases/linkCells.d.ts +4 -2
- package/dist/docx/NativeDocxEditor.d.ts +3 -1
- package/dist/docx/RibbonMenu.d.ts +15 -0
- package/dist/docx/StyleGallery.d.ts +9 -0
- package/dist/docx/WordReferences.d.ts +21 -0
- package/dist/docx/index.cjs +24 -24
- package/dist/docx/index.js +3 -3
- package/dist/docx/review/DocxEditorReview.d.ts +4 -2
- package/dist/docx/review/commentText.d.ts +7 -0
- package/dist/docx/wordStyles.d.ts +21 -0
- package/dist/facts/index.cjs +5 -5
- package/dist/facts/index.js +2 -2
- package/dist/files/index.cjs +308 -0
- package/dist/files/index.cjs.map +1 -1
- package/dist/files/index.js +298 -2
- package/dist/files/index.js.map +1 -1
- package/dist/files/views/gridViews.d.ts +80 -0
- package/dist/files/views/index.d.ts +2 -0
- package/dist/files/views/useGridViews.d.ts +38 -0
- package/dist/index.cjs +1237 -1237
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +100 -139
- package/dist/index.js.map +1 -1
- package/dist/settings/index.cjs +1 -1
- package/dist/settings/index.js +1 -1
- package/dist/shell/index.cjs +67 -67
- package/dist/shell/index.js +3 -3
- package/dist/studio/index.cjs +7 -7
- package/dist/studio/index.js +6 -6
- package/dist/tags/TagDetail.d.ts +1 -0
- package/dist/workflow-canvas/index.cjs +51 -51
- package/dist/workflow-canvas/index.js +8 -8
- package/package.json +4 -4
- package/src/docx/styles.css +564 -91
- package/dist/chunk-E2AAIMXO.cjs.map +0 -1
- package/dist/chunk-WXLKMEMB.js.map +0 -1
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Saved grid views: the model behind the views menu of an AG Grid table (the Files table, a
|
|
3
|
+
* database). A view is a named layout: which columns show and in what order, their widths, and, for
|
|
4
|
+
* a grid that has them, the row height and the Gallery zoom. Pure functions over the grid's column
|
|
5
|
+
* state, so a host persists views however it likes (user settings, …) and the same rules decide
|
|
6
|
+
* which view is on screen everywhere.
|
|
7
|
+
*/
|
|
8
|
+
import type { GridApi } from 'ag-grid-community';
|
|
9
|
+
/** AG Grid's own row-selection checkbox column: never part of a view. */
|
|
10
|
+
export declare const SELECTION_COL_ID = "ag-Grid-SelectionColumn";
|
|
11
|
+
/** A saved (or built-in) layout of a grid. Field names follow the API's `TableView`. */
|
|
12
|
+
export interface SavedGridView {
|
|
13
|
+
name: string;
|
|
14
|
+
/** Visible columns, in order. */
|
|
15
|
+
columns: string[];
|
|
16
|
+
/** colId → width (px) of the columns that have a fixed width (flex columns are never stored). */
|
|
17
|
+
column_widths?: Record<string, number> | null;
|
|
18
|
+
/** Gallery zoom (tile width), for a grid that has a Gallery. */
|
|
19
|
+
tile_size?: number | null;
|
|
20
|
+
/** Table row height (px). */
|
|
21
|
+
row_height?: number | null;
|
|
22
|
+
/**
|
|
23
|
+
* Built-ins only: the columns to pin left when the view loads (`[]` unpins everything). Saved
|
|
24
|
+
* views never carry it, so loading one leaves pins alone.
|
|
25
|
+
*/
|
|
26
|
+
pinned_left?: string[];
|
|
27
|
+
}
|
|
28
|
+
/** The live columns of a grid: visible ones (in order) and every column. */
|
|
29
|
+
export interface GridColumnsSnapshot {
|
|
30
|
+
visible: string[];
|
|
31
|
+
/** colId → header name, in the grid's current order (hidden columns too). */
|
|
32
|
+
all: Array<{
|
|
33
|
+
colId: string;
|
|
34
|
+
label: string;
|
|
35
|
+
}>;
|
|
36
|
+
widths: Map<string, number | undefined>;
|
|
37
|
+
pinnedLeft: Set<string>;
|
|
38
|
+
}
|
|
39
|
+
/** Visible columns of the grid, in order, without the ignored ones (the selection column, …). */
|
|
40
|
+
export declare function visibleColumns<T>(api: GridApi<T> | null, ignored: ReadonlySet<string>, fallback: string[]): string[];
|
|
41
|
+
/**
|
|
42
|
+
* Does `viewColumns` match the visible columns? Same set in the same order, ignoring columns of the
|
|
43
|
+
* view the grid no longer has (a deleted field).
|
|
44
|
+
*/
|
|
45
|
+
export declare function columnsMatch<T>(api: GridApi<T> | null, current: string[], viewColumns: string[]): boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Do the view's stored widths still match the grid? Only columns the view stored a width for count
|
|
48
|
+
* (flex columns are never stored), so a window resize re-flexing a column cannot flip the view.
|
|
49
|
+
*/
|
|
50
|
+
export declare function widthsMatch<T>(api: GridApi<T> | null, widths: SavedGridView['column_widths']): boolean;
|
|
51
|
+
/** Ids of the columns pinned left right now. */
|
|
52
|
+
export declare function pinnedLeftColumns<T>(api: GridApi<T> | null): Set<string>;
|
|
53
|
+
/** Widths of the visible fixed-width columns, to store with a view. */
|
|
54
|
+
export declare function captureColumnWidths<T>(api: GridApi<T> | null, ignored: ReadonlySet<string>): Record<string, number>;
|
|
55
|
+
/**
|
|
56
|
+
* Every column (but the ignored ones) for the menu's field list, in a stable order: `canonical`
|
|
57
|
+
* first (the default view's order), then the rest as the grid has them.
|
|
58
|
+
*/
|
|
59
|
+
export declare function columnItems<T>(api: GridApi<T> | null, visible: string[], canonical: string[], ignored: ReadonlySet<string>): Array<{
|
|
60
|
+
colId: string;
|
|
61
|
+
label: string;
|
|
62
|
+
hidden: boolean;
|
|
63
|
+
}>;
|
|
64
|
+
/**
|
|
65
|
+
* The visible columns after toggling `colId`: hidden, or shown again at its place in `canonical`
|
|
66
|
+
* (after the last visible column that comes before it). The last visible column stays.
|
|
67
|
+
*/
|
|
68
|
+
export declare function toggleColumn(current: string[], colId: string, canonical: string[]): string[];
|
|
69
|
+
/**
|
|
70
|
+
* Show exactly `columns`, in that order (the selection column stays first), and hide the rest.
|
|
71
|
+
* Columns not yet in the grid's state get their definition's width.
|
|
72
|
+
*/
|
|
73
|
+
export declare function applyColumnLayout<T>(api: GridApi<T>, columns: string[]): void;
|
|
74
|
+
/**
|
|
75
|
+
* Load a view's column layout: columns (`applyColumns`, default `applyColumnLayout`), then the
|
|
76
|
+
* stored widths, then the built-in's pins. Row height and zoom are the host's (it owns them).
|
|
77
|
+
*/
|
|
78
|
+
export declare function applyViewColumns<T>(api: GridApi<T>, view: SavedGridView, applyColumns?: (columns: string[], api: GridApi<T>) => void): void;
|
|
79
|
+
/** Replace the view named like `view` (or add it), keeping the others in order. */
|
|
80
|
+
export declare function upsertView<V extends SavedGridView>(views: V[], view: V): V[];
|
|
@@ -3,3 +3,5 @@ export { FieldRow, FieldsApplyBar, FieldsEditorList, FieldsEditorRoot, FieldsEdi
|
|
|
3
3
|
export { fieldsApplyBarCopy, fieldsEmptyText, filterFieldsByName, sortFields, type FieldsApplyBarCopy, type FieldsApplyBarCopyInput, type SortableField, } from './fieldsEditorModel';
|
|
4
4
|
export { FieldsManagerBody, FieldsManagerDefinition, FieldsManagerTitle, type FieldsManagerTitleProps, } from './FieldsManagerParts';
|
|
5
5
|
export { TagFormRoot, TagFormField, TagFormNameField, TagFormSelectField, TagFormNote, TagFormOptionsEditor, TagFormInstructionField, TagFormMeta, TagFormFooter, TagFormSharedToggle, type TagFormFieldProps, type TagFormNameFieldProps, type TagFormSelectOption, type TagFormSelectFieldProps, type TagFormOptionsEditorProps, type TagFormInstructionFieldProps, type TagFormMetaLine, type TagFormFooterProps, } from './TagFormParts';
|
|
6
|
+
export { SELECTION_COL_ID, applyColumnLayout, applyViewColumns, captureColumnWidths, columnItems, columnsMatch, pinnedLeftColumns, toggleColumn, upsertView, visibleColumns, widthsMatch, type SavedGridView, } from './gridViews';
|
|
7
|
+
export { useGridViews, type GridBuiltinView, type GridViewsMenuProps, type UseGridViewsOptions, } from './useGridViews';
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { GridApi } from 'ag-grid-community';
|
|
2
|
+
import type { ViewBuiltinItem, ViewSelectorMenuProps } from './ViewSelectorMenu';
|
|
3
|
+
import { type SavedGridView } from './gridViews';
|
|
4
|
+
/** A view that ships with the grid (keyed by a stable id, so renaming its label keeps it matching). */
|
|
5
|
+
export interface GridBuiltinView extends ViewBuiltinItem {
|
|
6
|
+
columns: string[];
|
|
7
|
+
/** The row height the view loads with (and must match to be active). */
|
|
8
|
+
rowHeight?: number;
|
|
9
|
+
/** Columns pinned left by this view (`[]`: none, the selection column unpinned). */
|
|
10
|
+
pinnedLeft?: string[];
|
|
11
|
+
}
|
|
12
|
+
export interface UseGridViewsOptions<T, V extends SavedGridView> {
|
|
13
|
+
getGridApi: () => GridApi<T> | null;
|
|
14
|
+
/** The default view's columns: also the stable order of the field list. */
|
|
15
|
+
defaultColumns: string[];
|
|
16
|
+
builtins: GridBuiltinView[];
|
|
17
|
+
savedViews: V[];
|
|
18
|
+
/** Changes whenever the grid's column state changes (recomputes the active view). */
|
|
19
|
+
stateVersion?: unknown;
|
|
20
|
+
/** Columns never part of a view besides the selection column (an "add a column" column…). */
|
|
21
|
+
ignoredColumns?: string[];
|
|
22
|
+
/** Current layout outside the grid; omitted, it never decides which view is active. */
|
|
23
|
+
currentRowHeight?: number;
|
|
24
|
+
currentTileSize?: number;
|
|
25
|
+
/** The Gallery zoom the built-ins load with. */
|
|
26
|
+
defaultTileSize?: number;
|
|
27
|
+
/** Show these columns in this order (a field toggled in the menu). */
|
|
28
|
+
onApplyColumns: (columns: string[], api: GridApi<T>) => void;
|
|
29
|
+
/** Restore a whole view (built-in or saved): columns, widths, pins, row height, zoom. */
|
|
30
|
+
onLoadView: (view: SavedGridView | V, api: GridApi<T>) => void;
|
|
31
|
+
/** Store a view (replacing one of the same name); resolve once stored. */
|
|
32
|
+
onSaveView: (view: SavedGridView) => Promise<unknown> | void;
|
|
33
|
+
/** Delete a saved view; resolve `false` if it was not deleted (e.g. not confirmed). */
|
|
34
|
+
onDeleteView: (name: string) => Promise<boolean | void> | boolean | void;
|
|
35
|
+
isSaving?: boolean;
|
|
36
|
+
}
|
|
37
|
+
export type GridViewsMenuProps = Omit<ViewSelectorMenuProps, 'labels' | 'testIds' | 'className'>;
|
|
38
|
+
export declare function useGridViews<T, V extends SavedGridView>({ getGridApi, defaultColumns, builtins, savedViews, stateVersion, ignoredColumns, currentRowHeight, currentTileSize, defaultTileSize, onApplyColumns, onLoadView, onSaveView, onDeleteView, isSaving, }: UseGridViewsOptions<T, V>): GridViewsMenuProps;
|