@simoncomputing/mui-bueno-v2 0.18.0 → 0.18.2
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 +37 -1
- package/dist/components/Form/Inputs/CitationField/CitationField.d.ts +1 -1
- package/dist/components/Form/Inputs/CitationField/CitationManager/BaseCitationManager.d.ts +7 -2
- package/dist/components/Form/Inputs/CitationField/CitationManager/CitationTable.d.ts +9 -0
- package/dist/index.cjs.js +72 -72
- package/dist/index.es.js +3320 -3302
- package/dist/index.umd.js +67 -67
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -11,7 +11,43 @@ 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.18.
|
|
14
|
+
## [0.18.2] - 2025-09-24
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
|
|
18
|
+
- `CitationManager` & `SelectableCitationManager`
|
|
19
|
+
|
|
20
|
+
- Moved actions displayed by `addlActions` to the end of the column, to the right of the delete button
|
|
21
|
+
- `onCreateCitation` is optional. When not provided, the Add Citation & Add Attachment buttons will not be displayed.
|
|
22
|
+
|
|
23
|
+
- `CitationManager`
|
|
24
|
+
- added more row padding to match default table row padding
|
|
25
|
+
|
|
26
|
+
### Fixed
|
|
27
|
+
|
|
28
|
+
- `CitationManager` & `SelectableCitationManager`
|
|
29
|
+
- `accessedAt` should not display for attachments
|
|
30
|
+
|
|
31
|
+
## [0.18.1] - 2025-09-23
|
|
32
|
+
|
|
33
|
+
### Added
|
|
34
|
+
|
|
35
|
+
- `CitationManager` & `SelectableCitationManager`
|
|
36
|
+
- Added `addlActions` to allow additional actions to be provided. These will be added in between download icon button (if applicable) and edit icon button for each row.
|
|
37
|
+
|
|
38
|
+
### Fixed
|
|
39
|
+
|
|
40
|
+
- `CitationManager` & `SelectableCitationManager`
|
|
41
|
+
|
|
42
|
+
- Fixed citation `type` showing attachment icon when `fileName` is null
|
|
43
|
+
- Fixed `url` displaying instead of `fileName` for attachments
|
|
44
|
+
- Fixed `accessedAt` displaying a value for attachments
|
|
45
|
+
- Fixed `classification` typo (which also fixes data population issue)
|
|
46
|
+
|
|
47
|
+
- `CitationManager`
|
|
48
|
+
- Fixed sizing of table title (h6 -> h2)
|
|
49
|
+
|
|
50
|
+
## [0.18.0] - 2025-09-23
|
|
15
51
|
|
|
16
52
|
### Added
|
|
17
53
|
|
|
@@ -48,7 +48,7 @@ export type CitationFieldProps = {
|
|
|
48
48
|
*
|
|
49
49
|
* Error handling is supported internally.
|
|
50
50
|
*/
|
|
51
|
-
onCreateCitation
|
|
51
|
+
onCreateCitation?: (unsavedCitation: UnsavedCitation) => Promise<Citation>;
|
|
52
52
|
/**
|
|
53
53
|
* API call for updating a citation/attachment.
|
|
54
54
|
*
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Citation, PageState, PageResponse, UnsavedCitation } from '../../../../../@types';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
2
3
|
export interface BaseCitationManagerProps {
|
|
3
4
|
/**
|
|
4
5
|
* API call for fetching citations. These will populate the "Insert Citation/Attachment(s)" table.
|
|
@@ -7,7 +8,7 @@ export interface BaseCitationManagerProps {
|
|
|
7
8
|
/**
|
|
8
9
|
* API call for creating a new citation/attachment.
|
|
9
10
|
*/
|
|
10
|
-
onCreateCitation
|
|
11
|
+
onCreateCitation?: (citation: UnsavedCitation) => Promise<Citation>;
|
|
11
12
|
/**
|
|
12
13
|
* API call for updating a citation/attachment.
|
|
13
14
|
*/
|
|
@@ -57,6 +58,10 @@ export interface BaseCitationManagerProps {
|
|
|
57
58
|
* When false, teh table will be rendered as a basic paginated table with all columns displayed.
|
|
58
59
|
*/
|
|
59
60
|
renderAsSelectablePopup?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Additional actions to be displayed for each row. Will be inserted in between Download (if applicable) and Edit button.
|
|
63
|
+
*/
|
|
64
|
+
addlActions?: (citation: Citation) => ReactNode;
|
|
60
65
|
}
|
|
61
66
|
export declare enum CitationManagerState {
|
|
62
67
|
CITATIONS_TABLE = "Insert Citation/Attachment(s)",
|
|
@@ -72,5 +77,5 @@ export declare enum CitationManagerState {
|
|
|
72
77
|
*
|
|
73
78
|
* For in-line citations, see CitationField instead.
|
|
74
79
|
*/
|
|
75
|
-
export declare function BaseCitationManager({ getCitationsPaginated, onCreateCitation, onUpdateCitation, onDeleteCitation, getCitationById, onDownloadAttachment, onSelectCitations, onCancel, initialSelectedIds, onContentChange, onError, renderAsSelectablePopup, }: BaseCitationManagerProps): import("react/jsx-runtime").JSX.Element;
|
|
80
|
+
export declare function BaseCitationManager({ getCitationsPaginated, onCreateCitation, onUpdateCitation, onDeleteCitation, getCitationById, onDownloadAttachment, onSelectCitations, onCancel, initialSelectedIds, onContentChange, onError, renderAsSelectablePopup, addlActions, }: BaseCitationManagerProps): import("react/jsx-runtime").JSX.Element;
|
|
76
81
|
export default BaseCitationManager;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
1
2
|
import { PageState, PageResponse, Citation } from '../../../../../@types';
|
|
2
3
|
import { CitationManagerError } from './CitationAlert';
|
|
3
4
|
export type CitationTableProps = {
|
|
@@ -34,6 +35,14 @@ export type CitationTableProps = {
|
|
|
34
35
|
* NOTE: add buttons will move to the bottom of the component, inline with the Select/Cancel buttons.
|
|
35
36
|
*/
|
|
36
37
|
canSelect?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* When true, create citation & attachment buttons will display.
|
|
40
|
+
*/
|
|
41
|
+
canCreate?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Additional actions to be displayed for each row. Will be inserted in between Download (if applicable) and Edit button.
|
|
44
|
+
*/
|
|
45
|
+
addlActions?: (citation: Citation) => ReactNode;
|
|
37
46
|
};
|
|
38
47
|
declare const CitationTable: (props: CitationTableProps) => import("react/jsx-runtime").JSX.Element;
|
|
39
48
|
export default CitationTable;
|