@pstdio/ui 0.43.0-nightly.20261012031318 → 0.43.0

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.
Files changed (39) hide show
  1. package/dist/{MermaidComponent-Ck8YZ-eC.js → MermaidComponent-X7N-8w2S.js} +2 -2
  2. package/dist/{MermaidComponent-Ck8YZ-eC.js.map → MermaidComponent-X7N-8w2S.js.map} +1 -1
  3. package/dist/chat-ui.d.ts +50 -50
  4. package/dist/chat-ui.js +2 -2
  5. package/dist/{collection-view-grouping-DmjlnPQj.js → collection-view-grouping-DnuJ1U4R.js} +24 -24
  6. package/dist/{collection-view-grouping-DmjlnPQj.js.map → collection-view-grouping-DnuJ1U4R.js.map} +1 -1
  7. package/dist/{collection-view-search-CW7B2YP1.js → collection-view-search-D_7Qvz7p.js} +22 -16
  8. package/dist/collection-view-search-D_7Qvz7p.js.map +1 -0
  9. package/dist/collection-view.d.ts +90 -3
  10. package/dist/collection-view.js +112 -2
  11. package/dist/collection-view.js.map +1 -0
  12. package/dist/{data-table-stats-row-B2MYAoHu.js → data-table-stats-row-C8CtvdDt.js} +2 -2
  13. package/dist/{data-table-stats-row-B2MYAoHu.js.map → data-table-stats-row-C8CtvdDt.js.map} +1 -1
  14. package/dist/data-table.d.ts +1 -2
  15. package/dist/data-table.js +14 -14
  16. package/dist/data-table.js.map +1 -1
  17. package/dist/{display-sort-control-CmFg-wcP.js → display-sort-control-n3L5WvkJ.js} +86 -86
  18. package/dist/{display-sort-control-CmFg-wcP.js.map → display-sort-control-n3L5WvkJ.js.map} +1 -1
  19. package/dist/{edit-mode-data-table-oEYutEBB.js → edit-mode-data-table-BclZ-pWe.js} +8 -8
  20. package/dist/{edit-mode-data-table-oEYutEBB.js.map → edit-mode-data-table-BclZ-pWe.js.map} +1 -1
  21. package/dist/{index-DNurZJZ3.d.ts → index-DjZsR4Ey.d.ts} +1 -1
  22. package/dist/index.d.ts +50 -50
  23. package/dist/kanban-renderer.d.ts +1 -1
  24. package/dist/kanban-renderer.js +79 -79
  25. package/dist/kanban-renderer.js.map +1 -1
  26. package/dist/{markdown-editor-oklbG4fY.js → markdown-editor-CN4qOKky.js} +4 -4
  27. package/dist/{markdown-editor-oklbG4fY.js.map → markdown-editor-CN4qOKky.js.map} +1 -1
  28. package/dist/{param-editor-Br3Qm5B4.js → param-editor-28dBRSV4.js} +2 -2
  29. package/dist/{param-editor-Br3Qm5B4.js.map → param-editor-28dBRSV4.js.map} +1 -1
  30. package/dist/{param-editor-field-Cg-C40tt.js → param-editor-field-GxhFb86w.js} +2 -2
  31. package/dist/{param-editor-field-Cg-C40tt.js.map → param-editor-field-GxhFb86w.js.map} +1 -1
  32. package/dist/param-editor.js +2 -2
  33. package/dist/{rich-text-DSZ23B46.js → rich-text-DOK4dDeb.js} +2 -2
  34. package/dist/{rich-text-DSZ23B46.js.map → rich-text-DOK4dDeb.js.map} +1 -1
  35. package/dist/rich-text.js +3 -3
  36. package/dist/{workspace-badge-BKtB805G.d.ts → workspace-badge-oFp29Gbe.d.ts} +1 -1
  37. package/package.json +2 -2
  38. package/dist/collection-view-search-CW7B2YP1.js.map +0 -1
  39. package/dist/index-DgwJmKVC.d.ts +0 -80
@@ -1,80 +0,0 @@
1
- import { A as CollectionSavedView, M as CollectionViewsSource, i as CollectionViewStoreInitialState, s as AttributeDescriptor, x as KanbanRendererRow } from "./collection-view-fields-CajuwtKF.js";
2
- import { ReactNode, RefObject } from "react";
3
- import { ViewFilterGroup, ViewFilterRule } from "@pstdio/sdk/extensions";
4
- //#region src/components/collection-view/filter-rule-value.d.ts
5
- interface RuleValueOption {
6
- value: string;
7
- label: string;
8
- count?: number;
9
- icon?: string | null;
10
- color?: string;
11
- }
12
- //#endregion
13
- //#region src/components/collection-view/collection-view-bar.d.ts
14
- interface CollectionViewBarProps<TSettings> {
15
- storageKey: string;
16
- /** Singular resource label used as the subject of boolean predicates. */
17
- itemLabel?: string;
18
- initialState: CollectionViewStoreInitialState<TSettings>;
19
- views: (CollectionSavedView<TSettings> & {
20
- builtIn: boolean;
21
- })[];
22
- viewsSource?: CollectionViewsSource<TSettings>;
23
- /** Every field of the view. Filter offers the filterable ones and Sort the sortable ones. */
24
- fields: AttributeDescriptor[];
25
- optionsFor: (field: AttributeDescriptor) => RuleValueOption[];
26
- /** Search is screen state owned by the renderer. It is never saved. */
27
- search: string;
28
- onSearchChange: (value: string) => void;
29
- searchResultLabel?: string;
30
- leading?: ReactNode;
31
- actions?: ReactNode;
32
- displayControl: ReactNode;
33
- align?: "split" | "end";
34
- }
35
- /** One view bar for data tables and both kanban displays: saved views, then Search, Filter, and Display. */
36
- declare const CollectionViewBar: <TSettings>(props: CollectionViewBarProps<TSettings>) => import("react/jsx-runtime").JSX.Element;
37
- //#endregion
38
- //#region src/components/collection-view/collection-view-filter.d.ts
39
- /** Rules that are incomplete or no longer fit a field are skipped, so they never hide rows. */
40
- declare const filterRowsByView: <TRow extends KanbanRendererRow>(rows: TRow[], filter: ViewFilterGroup, fields: AttributeDescriptor[], today?: Date) => TRow[];
41
- //#endregion
42
- //#region src/components/collection-view/collection-view-search.d.ts
43
- /** Search only looks at the text a view shows, which the caller collects per row. */
44
- declare const searchRows: <TRow>(rows: TRow[], query: string, textsOf: (row: TRow) => string[]) => TRow[];
45
- //#endregion
46
- //#region src/components/collection-view/use-collection-views.d.ts
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
- declare const useCollectionViews: <TSettings>(input: CollectionViewsInput<TSettings>) => {
57
- views: (CollectionSavedView<TSettings> & {
58
- builtIn: boolean;
59
- })[];
60
- defaultId: string | undefined;
61
- };
62
- //#endregion
63
- //#region src/components/collection-view/view-bar-popover.d.ts
64
- interface ViewBarPopoverProps {
65
- open: boolean;
66
- onOpenChange: (open: boolean) => void;
67
- /** The button the menu opens from. Several buttons can open the same menu. */
68
- anchorRef: RefObject<HTMLElement | null>;
69
- width: string;
70
- placement?: "bottom-start" | "bottom-end";
71
- /** The quick picker draws its own panes edge to edge. */
72
- padding?: "0" | "2xs";
73
- testId?: string;
74
- children: ReactNode;
75
- }
76
- /** The menu shell for Search, Filter, and Sort. Menus inside it render in place, so using them never closes it. */
77
- declare const ViewBarPopover: (props: ViewBarPopoverProps) => import("react/jsx-runtime").JSX.Element;
78
- //#endregion
79
- export { searchRows as a, CollectionViewBarProps as c, useCollectionViews as i, ViewBarPopoverProps as n, filterRowsByView as o, CollectionViewsInput as r, CollectionViewBar as s, ViewBarPopover as t };
80
- export {};