@pstdio/ui 0.45.0 → 0.46.0-nightly.20261024001730
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/{MermaidComponent--W7gDFCk.js → MermaidComponent-BTJWjd_T.js} +3 -3
- package/dist/{MermaidComponent--W7gDFCk.js.map → MermaidComponent-BTJWjd_T.js.map} +1 -1
- package/dist/chat-ui.d.ts +2 -2
- package/dist/chat-ui.js +924 -934
- package/dist/chat-ui.js.map +1 -1
- package/dist/{collection-view-grouping-BHuFPVAV.js → collection-page-C3j-h1JH.js} +23 -3
- package/dist/collection-page-C3j-h1JH.js.map +1 -0
- package/dist/{collection-view-search-CLvyY0cg.js → collection-view-search-DiSUDYU2.js} +47 -44
- package/dist/collection-view-search-DiSUDYU2.js.map +1 -0
- package/dist/collection-view.d.ts +3 -76
- package/dist/collection-view.js +2 -2
- package/dist/data-table.d.ts +4 -1
- package/dist/data-table.js +616 -565
- package/dist/data-table.js.map +1 -1
- package/dist/{diff-drawer-COlghuX8.js → diff-drawer-IV-OiDxD.js} +2 -2
- package/dist/{diff-drawer-COlghuX8.js.map → diff-drawer-IV-OiDxD.js.map} +1 -1
- package/dist/{diff-viewer-nCYtig03.js → diff-viewer-Ck7aEJ4M.js} +5 -5
- package/dist/{diff-viewer-nCYtig03.js.map → diff-viewer-Ck7aEJ4M.js.map} +1 -1
- package/dist/diff.js +2 -2
- package/dist/{display-sort-control-DXXkOgUC.js → display-sort-control-BD0Zyiag.js} +6 -6
- package/dist/{display-sort-control-DXXkOgUC.js.map → display-sort-control-BD0Zyiag.js.map} +1 -1
- package/dist/{edit-mode-data-table-lvGsQ1Da.js → edit-mode-data-table-B1I-A3MA.js} +535 -521
- package/dist/edit-mode-data-table-B1I-A3MA.js.map +1 -0
- package/dist/{index-DYCXgPCg.d.ts → index-BFMTwV4o.d.ts} +28 -4
- package/dist/index-Bk6mxsH4.d.ts +77 -0
- package/dist/{index-DzVOXj8n.d.ts → index-CngCuhvm.d.ts} +1 -0
- package/dist/index.d.ts +24 -2
- package/dist/index.js +478 -502
- package/dist/index.js.map +1 -1
- package/dist/kanban-renderer.d.ts +1 -1
- package/dist/kanban-renderer.js +707 -620
- package/dist/kanban-renderer.js.map +1 -1
- package/dist/{list-row-Dqb5Xfjf.js → list-row-kLM6WuQG.js} +449 -351
- package/dist/list-row-kLM6WuQG.js.map +1 -0
- package/dist/{markdown-editor-D419iTD2.js → markdown-editor-BdLGFMwE.js} +6 -6
- package/dist/{markdown-editor-D419iTD2.js.map → markdown-editor-BdLGFMwE.js.map} +1 -1
- package/dist/{mermaid-renderer-B8LpF3rD.js → mermaid-renderer-BRlf9f7T.js} +2 -2
- package/dist/{mermaid-renderer-B8LpF3rD.js.map → mermaid-renderer-BRlf9f7T.js.map} +1 -1
- package/dist/mermaid.js +1 -1
- package/dist/{number-input-DzRvKj64.js → number-input-BDNXzwm4.js} +2 -2
- package/dist/{number-input-DzRvKj64.js.map → number-input-BDNXzwm4.js.map} +1 -1
- package/dist/{param-editor-DyIO1rSf.js → param-editor-DjiG9M21.js} +2 -2
- package/dist/{param-editor-DyIO1rSf.js.map → param-editor-DjiG9M21.js.map} +1 -1
- package/dist/{param-editor-field-Bt7NP9OH.js → param-editor-field-A7rxJt6F.js} +5 -5
- package/dist/{param-editor-field-Bt7NP9OH.js.map → param-editor-field-A7rxJt6F.js.map} +1 -1
- package/dist/param-editor.js +3 -3
- package/dist/prism-JmhzmG59.js +428 -0
- package/dist/prism-JmhzmG59.js.map +1 -0
- package/dist/{rich-text-DBpBdWtn.js → rich-text-Chu0mWpT.js} +11 -14
- package/dist/rich-text-Chu0mWpT.js.map +1 -0
- package/dist/rich-text.d.ts +1 -1
- package/dist/rich-text.js +3 -3
- package/dist/scroll-area-BEKr-RLs.js +117 -0
- package/dist/scroll-area-BEKr-RLs.js.map +1 -0
- package/dist/terminal.js +1 -1
- package/dist/{theme-rmCwx-aG.js → theme-DOfFdMxV.js} +41 -11
- package/dist/theme-DOfFdMxV.js.map +1 -0
- package/dist/theme.js +1 -1
- package/dist/{tree-list-Bg8U7ZYc.js → tree-list-UO26kzU6.js} +493 -390
- package/dist/tree-list-UO26kzU6.js.map +1 -0
- package/dist/{workspace-badge-Dqi-Sh_Q.js → workspace-badge-dFFG6MXy.js} +2 -2
- package/dist/{workspace-badge-Dqi-Sh_Q.js.map → workspace-badge-dFFG6MXy.js.map} +1 -1
- package/examples/performance/README.md +11 -0
- package/examples/performance/extension.ts +18 -0
- package/examples/performance/view.tsx +57 -0
- package/package.json +4 -3
- package/dist/collection-view-grouping-BHuFPVAV.js.map +0 -1
- package/dist/collection-view-search-CLvyY0cg.js.map +0 -1
- package/dist/edit-mode-data-table-lvGsQ1Da.js.map +0 -1
- package/dist/list-row-Dqb5Xfjf.js.map +0 -1
- package/dist/prism-CQBZiF5P.js +0 -391
- package/dist/prism-CQBZiF5P.js.map +0 -1
- package/dist/rich-text-DBpBdWtn.js.map +0 -1
- package/dist/scroll-area-BfAlvhjh.js +0 -102
- package/dist/scroll-area-BfAlvhjh.js.map +0 -1
- package/dist/theme-rmCwx-aG.js.map +0 -1
- package/dist/tree-list-Bg8U7ZYc.js.map +0 -1
|
@@ -1,77 +1,4 @@
|
|
|
1
|
-
import { A as CollectionSavedView, F as ViewFilterGroup, I as ViewFilterRule, L as ViewSort, M as CollectionViewsSource, N as EMPTY_VIEW_FILTER, a as CollectionViewStoreState, i as CollectionViewStoreInitialState, j as CollectionViewState, o as useCollectionViewStore, r as withTitleField
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
interface RuleValueOption {
|
|
5
|
-
value: string;
|
|
6
|
-
label: string;
|
|
7
|
-
count?: number;
|
|
8
|
-
icon?: string | null;
|
|
9
|
-
color?: string;
|
|
10
|
-
}
|
|
11
|
-
interface CollectionFilterProps {
|
|
12
|
-
itemLabel?: string;
|
|
13
|
-
fields: AttributeDescriptor[];
|
|
14
|
-
filter: ViewFilterGroup$1;
|
|
15
|
-
optionsFor: (field: AttributeDescriptor) => RuleValueOption[];
|
|
16
|
-
onFilterChange: (filter: ViewFilterGroup$1) => void;
|
|
17
|
-
}
|
|
18
|
-
/** The collection picker and editable criteria, without saved views or search. */
|
|
19
|
-
export declare function CollectionFilter(props: CollectionFilterProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
-
interface CollectionViewBarProps<TSettings> {
|
|
21
|
-
storageKey: string;
|
|
22
|
-
/** Singular resource label used as the subject of boolean predicates. */
|
|
23
|
-
itemLabel?: string;
|
|
24
|
-
initialState: CollectionViewStoreInitialState<TSettings>;
|
|
25
|
-
views: (CollectionSavedView<TSettings> & {
|
|
26
|
-
builtIn: boolean;
|
|
27
|
-
})[];
|
|
28
|
-
viewsSource?: CollectionViewsSource<TSettings>;
|
|
29
|
-
/** Every field of the view. Filter offers the filterable ones and Sort the sortable ones. */
|
|
30
|
-
fields: AttributeDescriptor[];
|
|
31
|
-
optionsFor: (field: AttributeDescriptor) => RuleValueOption[];
|
|
32
|
-
/** Search is screen state owned by the renderer. It is never saved. */
|
|
33
|
-
search: string;
|
|
34
|
-
onSearchChange: (value: string) => void;
|
|
35
|
-
searchResultLabel?: string;
|
|
36
|
-
leading?: ReactNode;
|
|
37
|
-
actions?: ReactNode;
|
|
38
|
-
displayControl: ReactNode;
|
|
39
|
-
align?: "split" | "end";
|
|
40
|
-
}
|
|
41
|
-
/** One view bar for data tables and both kanban displays: saved views, then Search, Filter, and Display. */
|
|
42
|
-
export declare const CollectionViewBar: <TSettings>(props: CollectionViewBarProps<TSettings>) => import("react/jsx-runtime").JSX.Element;
|
|
43
|
-
/** Rules that are incomplete or no longer fit a field are skipped, so they never hide rows. */
|
|
44
|
-
export declare const filterRowsByView: <TRow extends KanbanRendererRow>(rows: TRow[], filter: ViewFilterGroup$1, fields: AttributeDescriptor[], today?: Date) => TRow[];
|
|
45
|
-
/** Search only looks at the text a view shows, which the caller collects per row. */
|
|
46
|
-
export declare const searchRows: <TRow>(rows: TRow[], query: string, textsOf: (row: TRow) => string[]) => TRow[];
|
|
47
|
-
interface CollectionViewsInput<TSettings> {
|
|
48
|
-
storageKey: string;
|
|
49
|
-
fields?: AttributeDescriptor[];
|
|
50
|
-
initialState: CollectionViewStoreInitialState<TSettings>;
|
|
51
|
-
viewsSource?: CollectionViewsSource<TSettings>;
|
|
52
|
-
defaultViews?: CollectionSavedView<TSettings>[];
|
|
53
|
-
defaultActiveViewId?: string;
|
|
54
|
-
}
|
|
55
|
-
/** Picks the views a renderer offers and keeps the store on a view that still exists. */
|
|
56
|
-
export declare const useCollectionViews: <TSettings>(input: CollectionViewsInput<TSettings>) => {
|
|
57
|
-
views: (CollectionSavedView<TSettings> & {
|
|
58
|
-
builtIn: boolean;
|
|
59
|
-
})[];
|
|
60
|
-
defaultId: string | undefined;
|
|
61
|
-
};
|
|
62
|
-
interface ViewBarPopoverProps {
|
|
63
|
-
open: boolean;
|
|
64
|
-
onOpenChange: (open: boolean) => void;
|
|
65
|
-
/** The button the menu opens from. Several buttons can open the same menu. */
|
|
66
|
-
anchorRef: RefObject<HTMLElement | null>;
|
|
67
|
-
width: string;
|
|
68
|
-
placement?: "bottom-start" | "bottom-end";
|
|
69
|
-
/** The quick picker draws its own panes edge to edge. */
|
|
70
|
-
padding?: "0" | "2xs";
|
|
71
|
-
testId?: string;
|
|
72
|
-
children: ReactNode;
|
|
73
|
-
}
|
|
74
|
-
/** The menu shell for Search, Filter, and Sort. Menus inside it render in place, so using them never closes it. */
|
|
75
|
-
export declare const ViewBarPopover: (props: ViewBarPopoverProps) => import("react/jsx-runtime").JSX.Element;
|
|
76
|
-
export { type CollectionFilterProps, type CollectionSavedView, type CollectionViewBarProps, type CollectionViewState, type CollectionViewStoreInitialState, type CollectionViewStoreState, type CollectionViewsInput, type CollectionViewsSource, EMPTY_VIEW_FILTER, type ViewBarPopoverProps, type ViewFilterGroup, type ViewFilterRule, type ViewSort, useCollectionViewStore, withTitleField };
|
|
1
|
+
import { A as CollectionSavedView, F as ViewFilterGroup, I as ViewFilterRule, L as ViewSort, M as CollectionViewsSource, N as EMPTY_VIEW_FILTER, a as CollectionViewStoreState, i as CollectionViewStoreInitialState, j as CollectionViewState, o as useCollectionViewStore, r as withTitleField } from "./collection-view-fields-CBlYAPxD.js";
|
|
2
|
+
import { a as searchRows, c as CollectionViewBarProps, i as useCollectionViews, l as CollectionFilter, n as ViewBarPopoverProps, o as filterRowsByView, r as CollectionViewsInput, s as CollectionViewBar, t as ViewBarPopover, u as CollectionFilterProps } from "./index-Bk6mxsH4.js";
|
|
3
|
+
export { CollectionFilter, type CollectionFilterProps, type CollectionSavedView, CollectionViewBar, type CollectionViewBarProps, type CollectionViewState, type CollectionViewStoreInitialState, type CollectionViewStoreState, type CollectionViewsInput, type CollectionViewsSource, EMPTY_VIEW_FILTER, ViewBarPopover, type ViewBarPopoverProps, type ViewFilterGroup, type ViewFilterRule, type ViewSort, filterRowsByView, searchRows, useCollectionViewStore, useCollectionViews, withTitleField };
|
|
77
4
|
export {};
|
package/dist/collection-view.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as e } from "./scroll-area-
|
|
2
|
-
import { F as t, I as n, L as r, T as i, _ as a, a as o, c as s, d as c, f as l, g as u, i as d, l as f, n as p, o as m, r as h, s as g, u as _, v } from "./collection-view-search-
|
|
1
|
+
import { n as e } from "./scroll-area-BEKr-RLs.js";
|
|
2
|
+
import { F as t, I as n, L as r, T as i, _ as a, a as o, c as s, d as c, f as l, g as u, i as d, l as f, n as p, o as m, r as h, s as g, u as _, v } from "./collection-view-search-DiSUDYU2.js";
|
|
3
3
|
import { Button as y, HStack as b, Icon as x } from "@chakra-ui/react";
|
|
4
4
|
import { c as S } from "react/compiler-runtime";
|
|
5
5
|
import { jsx as C, jsxs as w } from "react/jsx-runtime";
|
package/dist/data-table.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { A as CollectionSavedView, M as CollectionViewsSource, a as CollectionViewStoreState } from "./collection-view-fields-CBlYAPxD.js";
|
|
2
|
-
import "./index-
|
|
2
|
+
import "./index-Bk6mxsH4.js";
|
|
3
|
+
import { N as CollectionPageControl } from "./index-BFMTwV4o.js";
|
|
3
4
|
import { ReactElement, ReactNode } from "react";
|
|
4
5
|
import { DataTableRendererSettings, ViewFilterGroup, ViewSort } from "@pstdio/sdk/extensions";
|
|
5
6
|
/** Display settings saved with a table view: grouping, row numbers, wrapping, statistics, and columns. */
|
|
@@ -116,6 +117,8 @@ interface DataTableEditModeConfig {
|
|
|
116
117
|
renderCellEditor?: (props: DataTableEditModeCellEditorProps) => ReactNode;
|
|
117
118
|
}
|
|
118
119
|
interface DataTableProps {
|
|
120
|
+
/** Provider-filtered page. Omit for the full-result client-side view. */
|
|
121
|
+
page?: CollectionPageControl;
|
|
119
122
|
data: RowData[];
|
|
120
123
|
editMode?: DataTableEditModeConfig;
|
|
121
124
|
isReadOnly?: boolean;
|