@luminix/mui-cms 0.0.1-beta.0 → 0.0.1-beta.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luminix/mui-cms",
3
- "version": "0.0.1-beta.0",
3
+ "version": "0.0.1-beta.1",
4
4
  "type": "module",
5
5
  "main": "dist/mui-cms.js",
6
6
  "types": "types/index.d.ts",
@@ -1,3 +1,5 @@
1
1
  import { default as React } from 'react';
2
- declare const Content: React.FunctionComponent;
2
+ declare const Content: React.FunctionComponent<{
3
+ dialog?: boolean;
4
+ }>;
3
5
  export default Content;
@@ -11,6 +11,8 @@ export default function useRow(index: number, column: FilteredColumn): {
11
11
  setType: React.Dispatch<React.SetStateAction<string>>;
12
12
  value: any;
13
13
  setValue: React.Dispatch<any>;
14
+ nullable: boolean;
15
+ setNullable: React.Dispatch<React.SetStateAction<boolean>>;
14
16
  isRelation: boolean;
15
17
  setIsRelation: React.Dispatch<React.SetStateAction<boolean>>;
16
18
  handleKey: (event: SelectChangeEvent<string>) => Promise<void>;
@@ -0,0 +1,2 @@
1
+ export declare const trim: (value: string, mask: string) => string;
2
+ export declare const removeSurrounding: (value: string, prefix: string, suffix: string) => string;
@@ -40,6 +40,7 @@ export type ModelFilterContextValue = {
40
40
  setColumnsFilter: React.Dispatch<React.SetStateAction<FilteredColumn[]>>;
41
41
  searchParams: URLSearchParams;
42
42
  setSearchParams: SetURLSearchParams;
43
+ handleApplyFilters: () => void;
43
44
  clearSearchParams: () => void;
44
45
  clearFilters: () => void;
45
46
  };
@@ -2,6 +2,7 @@ export type FilterColumn = {
2
2
  key: string;
3
3
  label: string;
4
4
  type: string;
5
+ nullable: boolean;
5
6
  is_relation: boolean;
6
7
  };
7
8
  export type FilteredColumn = {
@@ -9,8 +10,12 @@ export type FilteredColumn = {
9
10
  operator: string;
10
11
  type: string;
11
12
  value: any;
13
+ nullable: boolean;
12
14
  is_relation: boolean;
13
15
  };
16
+ export type FilterContent = {
17
+ dialog?: boolean;
18
+ };
14
19
  export type FilterRow = {
15
20
  index: number;
16
21
  column: FilteredColumn;