@zydon/common-csr 2.0.51 → 2.0.53
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.
|
@@ -49,17 +49,17 @@ declare const editorClasses: {
|
|
|
49
49
|
};
|
|
50
50
|
|
|
51
51
|
declare const Editor: react.ForwardRefExoticComponent<Partial<_tiptap_react.EditorOptions> & {
|
|
52
|
-
value?: string;
|
|
53
|
-
error?: boolean;
|
|
54
|
-
fullItem?: boolean;
|
|
55
|
-
resetValue?: boolean;
|
|
56
|
-
sx?: _mui_system.SxProps<_mui_material.Theme
|
|
57
|
-
placeholder?: string;
|
|
58
|
-
helperText?:
|
|
59
|
-
onChange?: (value: string) => void;
|
|
52
|
+
value?: string | undefined;
|
|
53
|
+
error?: boolean | undefined;
|
|
54
|
+
fullItem?: boolean | undefined;
|
|
55
|
+
resetValue?: boolean | undefined;
|
|
56
|
+
sx?: _mui_system.SxProps<_mui_material.Theme> | undefined;
|
|
57
|
+
placeholder?: string | undefined;
|
|
58
|
+
helperText?: react.ReactNode;
|
|
59
|
+
onChange?: ((value: string) => void) | undefined;
|
|
60
60
|
slotProps?: {
|
|
61
61
|
wrap: _mui_system.SxProps<_mui_material.Theme>;
|
|
62
|
-
};
|
|
62
|
+
} | undefined;
|
|
63
63
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
64
64
|
|
|
65
65
|
export { Editor, editorClasses };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { useEffect, useState } from 'react';
|
|
2
2
|
import { useFormContext } from 'react-hook-form';
|
|
3
|
-
import
|
|
3
|
+
import l from '@mui/material/Stack';
|
|
4
4
|
import k from '@mui/material/Typography';
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
5
|
+
import z from '@zydon/common/components/DataGrid';
|
|
6
|
+
import G from '@zydon/common/components/SearchInput';
|
|
7
|
+
import v from '@zydon/common/hooks/useDatagrid';
|
|
8
8
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var x=({columns:p,rows:g,loading:d,fetching:u,totalRows:f,handlePaginationChange:m})=>{let{setValue:a}=useFormContext(),{apiRef:S,page:n,perPage:r}=v({page:0,perPage:5});useEffect(()=>()=>{a("config",{});},[]);let[h,M]=useState([]),[w,i]=useState(),y=e=>{M(e),a("config.products",{type:"FIELD",values:e});},R=()=>{let e=w?.toLowerCase();return g.filter(C=>Object.values(C).some(o=>typeof o=="string"||o instanceof String?o.toLowerCase().includes(e||""):!1))};return jsxs(l,{gap:2,children:[jsxs(l,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[jsx(G,{onSearch:e=>i(e),onChange:e=>i(e.target.value),iconPosition:"start",size:"small",placeholder:"Buscar"}),jsxs(k,{variant:"body1",color:"text.disabled",children:[h.length," selecionados"]})]}),jsx(z,{apiRef:S,columns:p,rows:R(),pagination:!0,paginationModel:{page:n,pageSize:r},rowCount:f,paginationMode:"server",onPaginationModelChange:m,initialState:{pagination:{paginationModel:{pageSize:r,page:n}}},pageSizeOptions:[5],loading:d,fetching:u,checkboxSelection:!0,onRowSelectionModelChange:y})]})},T=x;
|
|
11
11
|
|
|
12
|
-
export {
|
|
12
|
+
export { T as default };
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.0.
|
|
2
|
+
"version": "2.0.53",
|
|
3
3
|
"name": "@zydon/common-csr",
|
|
4
4
|
"description": "Zydon common resources for React projects (only Client-Side Rendering (CSR))",
|
|
5
5
|
"license": "MIT",
|
|
@@ -50,16 +50,16 @@
|
|
|
50
50
|
"./styles.css": "./dist/index.css"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@emotion/react": "^11.13.
|
|
53
|
+
"@emotion/react": "^11.13.3",
|
|
54
54
|
"@emotion/styled": "^11.13.0",
|
|
55
|
-
"@mui/material": "^5.16.
|
|
56
|
-
"@mui/x-data-grid-premium": "^7.
|
|
57
|
-
"@types/react": "^18.3.
|
|
55
|
+
"@mui/material": "^5.16.7",
|
|
56
|
+
"@mui/x-data-grid-premium": "^7.14.0",
|
|
57
|
+
"@types/react": "^18.3.4",
|
|
58
58
|
"@types/react-dom": "^18.3.0",
|
|
59
59
|
"@types/react-lazy-load-image-component": "^1.6.4",
|
|
60
60
|
"@typescript-eslint/eslint-plugin": "^6.4.1",
|
|
61
61
|
"@typescript-eslint/parser": "^6.4.1",
|
|
62
|
-
"@zydon/common": "^2.0.
|
|
62
|
+
"@zydon/common": "^2.0.56",
|
|
63
63
|
"autoprefixer": "^10.4.20",
|
|
64
64
|
"eslint": "^8.47.0",
|
|
65
65
|
"eslint-config-prettier": "^9.0.0",
|
|
@@ -68,28 +68,28 @@
|
|
|
68
68
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
69
69
|
"eslint-plugin-react-refresh": "^0.4.3",
|
|
70
70
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
71
|
-
"postcss": "^8.4.
|
|
71
|
+
"postcss": "^8.4.41",
|
|
72
72
|
"postcss-import": "^16.1.0",
|
|
73
73
|
"prettier": "^3.0.2",
|
|
74
74
|
"react": "^18.3.1",
|
|
75
75
|
"react-dom": "^18.3.1",
|
|
76
|
-
"react-hook-form": "^7.
|
|
76
|
+
"react-hook-form": "^7.53.0",
|
|
77
77
|
"react-router-dom": "^6.26.1",
|
|
78
78
|
"tsup": "6.6.0",
|
|
79
|
-
"typescript": "
|
|
79
|
+
"typescript": "5.3.3"
|
|
80
80
|
},
|
|
81
81
|
"dependencies": {
|
|
82
|
-
"@codemirror/lang-sql": "^6.7.
|
|
83
|
-
"@tiptap/core": "^2.
|
|
84
|
-
"@tiptap/extension-code-block": "^2.
|
|
85
|
-
"@tiptap/extension-code-block-lowlight": "^2.
|
|
86
|
-
"@tiptap/extension-image": "^2.
|
|
87
|
-
"@tiptap/extension-link": "^2.
|
|
88
|
-
"@tiptap/extension-placeholder": "^2.
|
|
89
|
-
"@tiptap/extension-text-align": "^2.
|
|
90
|
-
"@tiptap/pm": "^2.
|
|
91
|
-
"@tiptap/react": "^2.
|
|
92
|
-
"@tiptap/starter-kit": "^2.
|
|
82
|
+
"@codemirror/lang-sql": "^6.7.1",
|
|
83
|
+
"@tiptap/core": "^2.6.6",
|
|
84
|
+
"@tiptap/extension-code-block": "^2.6.6",
|
|
85
|
+
"@tiptap/extension-code-block-lowlight": "^2.6.6",
|
|
86
|
+
"@tiptap/extension-image": "^2.6.6",
|
|
87
|
+
"@tiptap/extension-link": "^2.6.6",
|
|
88
|
+
"@tiptap/extension-placeholder": "^2.6.6",
|
|
89
|
+
"@tiptap/extension-text-align": "^2.6.6",
|
|
90
|
+
"@tiptap/pm": "^2.6.6",
|
|
91
|
+
"@tiptap/react": "^2.6.6",
|
|
92
|
+
"@tiptap/starter-kit": "^2.6.6",
|
|
93
93
|
"@uiw/react-codemirror": "^4.23.0",
|
|
94
94
|
"ace-builds": "1.32.9",
|
|
95
95
|
"lowlight": "^3.1.0",
|
|
@@ -97,16 +97,14 @@
|
|
|
97
97
|
"react-lazy-load-image-component": "^1.6.2"
|
|
98
98
|
},
|
|
99
99
|
"peerDependencies": {
|
|
100
|
-
"@emotion/react": "
|
|
101
|
-
"@emotion/styled": "
|
|
102
|
-
"@mui/
|
|
103
|
-
"@mui/
|
|
104
|
-
"@mui/x-data-grid-premium": ">=7.x",
|
|
105
|
-
"@mui/x-date-pickers-pro": ">=7.x",
|
|
100
|
+
"@emotion/react": "^11.13.3",
|
|
101
|
+
"@emotion/styled": "^11.13.0",
|
|
102
|
+
"@mui/material": "^5.16.7",
|
|
103
|
+
"@mui/x-data-grid-premium": "^7.14.0",
|
|
106
104
|
"@zydon/common": ">=2.x",
|
|
107
|
-
"react": "
|
|
108
|
-
"react-dom": "
|
|
109
|
-
"react-hook-form": "
|
|
110
|
-
"react-router-dom": "
|
|
105
|
+
"react": "^18.3.1",
|
|
106
|
+
"react-dom": "^18.3.1",
|
|
107
|
+
"react-hook-form": "^7.53.0",
|
|
108
|
+
"react-router-dom": "^6.26.1"
|
|
111
109
|
}
|
|
112
110
|
}
|