@inventreedb/ui 0.11.1 → 0.11.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 +9 -0
- package/dist/index.d.ts +1 -0
- package/dist/types/Plugins.js +1 -1
- package/dist/types/Tables.d.ts +4 -0
- package/lib/index.ts +7 -0
- package/lib/types/Tables.tsx +6 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
This file contains historical changelog information for the InvenTree UI components library.
|
|
4
4
|
|
|
5
|
+
### 0.11.2 - April 2026
|
|
6
|
+
|
|
7
|
+
Exposes additional type definitions related to tables and filters:
|
|
8
|
+
|
|
9
|
+
- TableFilterChoice
|
|
10
|
+
- TableFilterType
|
|
11
|
+
- TableFilter
|
|
12
|
+
- FilterSetState
|
|
13
|
+
|
|
5
14
|
### 0.11.1 - April 2026
|
|
6
15
|
|
|
7
16
|
Fixes dependency issues for the `InvenTreeTable` component, which were introduced in `0.11.0`. This ensures that the component works correctly and does not cause issues with plugin builds.
|
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export type { ModelDict } from './enums/ModelInformation';
|
|
|
5
5
|
export { UserRoles, UserPermissions } from './enums/Roles';
|
|
6
6
|
export type { InvenTreePluginContext, InvenTreeFormsContext, InvenTreeTablesContext, ImporterDrawerContext, PluginVersion, StockAdjustmentFormsContext } from './types/Plugins';
|
|
7
7
|
export type { RowAction, RowViewProps, TableColumn, TableColumnProps, InvenTreeTableProps, InvenTreeTableRenderProps } from './types/Tables';
|
|
8
|
+
export type { TableFilterChoice, TableFilterType, TableFilter, FilterSetState } from './types/Filters';
|
|
8
9
|
export type { ApiFormFieldChoice, ApiFormFieldHeader, ApiFormFieldType, ApiFormFieldSet, ApiFormProps, ApiFormModalProps, BulkEditApiFormModalProps } from './types/Forms';
|
|
9
10
|
export type { UseModalProps, UseModalReturn } from './types/Modals';
|
|
10
11
|
export { apiUrl } from './functions/Api';
|
package/dist/types/Plugins.js
CHANGED
package/dist/types/Tables.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { MantineStyleProp } from '@mantine/core';
|
|
2
2
|
import { AxiosInstance } from 'axios';
|
|
3
|
+
import { ShowContextMenuFunction } from 'mantine-contextmenu';
|
|
3
4
|
import { DataTableCellClickHandler, DataTableRowExpansionProps } from 'mantine-datatable';
|
|
4
5
|
import { ReactNode } from 'react';
|
|
5
6
|
import { NavigateFunction } from 'react-router-dom';
|
|
@@ -180,5 +181,8 @@ export type InvenTreeTableRenderProps<T extends Record<string, any>> = {
|
|
|
180
181
|
props: InvenTreeTableProps<T>;
|
|
181
182
|
api: AxiosInstance;
|
|
182
183
|
navigate: NavigateFunction;
|
|
184
|
+
showContextMenu?: ShowContextMenuFunction;
|
|
185
|
+
searchParams?: URLSearchParams;
|
|
186
|
+
setSearchParams?: (params: URLSearchParams) => void;
|
|
183
187
|
};
|
|
184
188
|
export {};
|
package/lib/index.ts
CHANGED
|
@@ -30,6 +30,13 @@ export type {
|
|
|
30
30
|
InvenTreeTableRenderProps
|
|
31
31
|
} from './types/Tables';
|
|
32
32
|
|
|
33
|
+
export type {
|
|
34
|
+
TableFilterChoice,
|
|
35
|
+
TableFilterType,
|
|
36
|
+
TableFilter,
|
|
37
|
+
FilterSetState
|
|
38
|
+
} from './types/Filters';
|
|
39
|
+
|
|
33
40
|
export type {
|
|
34
41
|
ApiFormFieldChoice,
|
|
35
42
|
ApiFormFieldHeader,
|
package/lib/types/Tables.tsx
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { MantineStyleProp } from '@mantine/core';
|
|
2
2
|
import type { AxiosInstance } from 'axios';
|
|
3
|
+
import type { ShowContextMenuFunction } from 'mantine-contextmenu';
|
|
3
4
|
import type {
|
|
4
5
|
DataTableCellClickHandler,
|
|
5
6
|
DataTableRowExpansionProps
|
|
@@ -223,4 +224,9 @@ export type InvenTreeTableRenderProps<T extends Record<string, any>> = {
|
|
|
223
224
|
props: InvenTreeTableProps<T>;
|
|
224
225
|
api: AxiosInstance;
|
|
225
226
|
navigate: NavigateFunction;
|
|
227
|
+
|
|
228
|
+
// The following attributes are for internal use only (plugins should not use these directly)
|
|
229
|
+
showContextMenu?: ShowContextMenuFunction;
|
|
230
|
+
searchParams?: URLSearchParams;
|
|
231
|
+
setSearchParams?: (params: URLSearchParams) => void;
|
|
226
232
|
};
|