@simoncomputing/mui-bueno-v2 0.25.14 → 0.25.15

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/CHANGELOG.md CHANGED
@@ -11,6 +11,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
11
11
  - Minor increment --> singlular/minor changes. Minimal breaking changes.
12
12
  - Patch increment --> singlular/minor changes. Zero breaking changes.
13
13
 
14
+ ## [0.25.15] - 2026-02-23
15
+
16
+ ### Added
17
+
18
+ - `SelectableCitationManager`
19
+ - Added `getSelectedCitationsPaginated` prop which, when implemented, only shows selected citations when `readOnly` is true. This is to improve the user experience by hiding superfluous data from the user, such as uninteractable checkboxes & unselected citations.
20
+
21
+ - `SelectableCitationManager`/`CitationManager`
22
+ - Added `tableTitle` prop which, when defined, will override the table's title (default "Attachments & Citations")
23
+
24
+ ### Removed
25
+
26
+ - `DiffCitationTable`
27
+ - Use `DiffTable` with `baseCitationTableColumns` for column definition
28
+
14
29
  ## [0.25.14] - 2026-02-23
15
30
 
16
31
  ### Added
@@ -74,10 +74,19 @@ export type BaseCitationManagerProps = BaseCitationManagerApiProps & {
74
74
  */
75
75
  onError?: (err: any) => void;
76
76
  /**
77
- * When true, the table will be rendered for pop-ups with the ability to select citations from the table.
78
- * When false, teh table will be rendered as a basic paginated table with all columns displayed.
77
+ * When true, the table will be rendered for pop-ups (limited columns displayed, close button at top, etc).
78
+ * When false, the table will be rendered as a basic paginated table with all columns displayed.
79
79
  */
80
- renderAsSelectablePopup?: boolean;
80
+ renderAsPopup?: boolean;
81
+ /**
82
+ * When true, the table will show the checkbox column and allow user to choose citations.
83
+ * When false, the table will not show the checkbox column.
84
+ */
85
+ canSelect?: boolean;
86
+ /**
87
+ * If provided, overrides the default title of the table
88
+ */
89
+ tableTitle?: string;
81
90
  /**
82
91
  * Additional actions to be displayed for each row. Will be inserted in between Download (if applicable) and Edit button.
83
92
  */
@@ -108,5 +117,5 @@ export declare enum CitationManagerState {
108
117
  *
109
118
  * For in-line citations, see CitationField instead.
110
119
  */
111
- export declare function BaseCitationManager({ getCitationsPaginated, onCreateCitation, onUpdateCitation, onDeleteCitation, getCitationById, onDownloadAttachment, onViewAttachment, onSelectCitations, onCancel, initialSelectedIds, onContentChange, onError, renderAsSelectablePopup, addlActions, canLaunchUrl, readOnly, }: BaseCitationManagerProps): import("react/jsx-runtime").JSX.Element;
120
+ export declare function BaseCitationManager({ getCitationsPaginated, onCreateCitation, onUpdateCitation, onDeleteCitation, getCitationById, onDownloadAttachment, onViewAttachment, onSelectCitations, onCancel, initialSelectedIds, onContentChange, onError, renderAsPopup, canSelect, tableTitle, addlActions, canLaunchUrl, readOnly, }: BaseCitationManagerProps): import("react/jsx-runtime").JSX.Element;
112
121
  export default BaseCitationManager;
@@ -1,5 +1,5 @@
1
1
  import { BaseCitationManagerProps } from './BaseCitationManager';
2
- export type CitationManagerProps = Omit<BaseCitationManagerProps, 'initialSelectedIds' | 'onSelectCitations' | 'onCancel' | 'onContentChange' | 'renderAsSelectablePopup'>;
2
+ export type CitationManagerProps = Omit<BaseCitationManagerProps, 'initialSelectedIds' | 'onSelectCitations' | 'onCancel' | 'onContentChange' | 'renderAsPopup' | 'canSelect'>;
3
3
  /**
4
4
  * CitationManager is a basic table that handles creating, updating, and deleting citations.
5
5
  */
@@ -1,9 +1,15 @@
1
+ import { Citation, PageResponse, PageState } from '../../../../../@types';
1
2
  import { BaseCitationManagerProps } from './BaseCitationManager';
2
- export type SelectableCitationManagerProps = Omit<BaseCitationManagerProps, 'renderAsSelectablePopup'>;
3
+ export type SelectableCitationManagerProps = Omit<BaseCitationManagerProps, 'renderAsSelectablePopup'> & {
4
+ /**
5
+ *
6
+ */
7
+ getSelectedCitationsPaginated?: (req: PageState) => Promise<PageResponse<Citation>>;
8
+ };
3
9
  /**
4
10
  * SelectableCitationManager is a condensed table that handles creating, updating, deleting and selecting citations.
5
11
  *
6
12
  * It's intended to be used in a pop-up/modal.
7
13
  */
8
- export declare function SelectableCitationManager({ ...rest }: SelectableCitationManagerProps): import("react/jsx-runtime").JSX.Element;
14
+ export declare function SelectableCitationManager({ getSelectedCitationsPaginated, getCitationsPaginated, readOnly, tableTitle, ...rest }: SelectableCitationManagerProps): import("react/jsx-runtime").JSX.Element;
9
15
  export default SelectableCitationManager;