diff --git a/package.json b/package.json index 1daa98e..68e5d9a 100644 --- a/package.json +++ b/package.json @@ -4,33 +4,33 @@ "private": true, "homepage": "http://telerik.github.io/kendo-react-file-manager", "dependencies": { - "@progress/kendo-data-query": "^1.5.5", - "@progress/kendo-drawing": "^1.11.0", - "@progress/kendo-licensing": "^1.2.0", - "@progress/kendo-react-buttons": "^4.9.0", - "@progress/kendo-react-data-tools": "^4.9.0", - "@progress/kendo-react-dateinputs": "^4.9.0", - "@progress/kendo-react-dialogs": "^4.9.0", - "@progress/kendo-react-dropdowns": "^4.9.0", - "@progress/kendo-react-grid": "^4.9.0", - "@progress/kendo-react-inputs": "^4.9.0", - "@progress/kendo-react-intl": "^4.9.0", - "@progress/kendo-react-labels": "^4.9.0", - "@progress/kendo-react-layout": "^4.9.0", - "@progress/kendo-react-progressbars": "^4.9.0", - "@progress/kendo-react-treeview": "^4.9.0", - "@progress/kendo-react-upload": "^4.9.0", - "@progress/kendo-theme-default": "^4.41.2", - "@testing-library/jest-dom": "^5.14.1", - "@testing-library/react": "^11.2.7", - "@testing-library/user-event": "^12.8.3", - "@types/react": "^17.0.15", - "@types/react-dom": "^17.0.9", - "react": "^17.0.2", - "react-dom": "^17.0.2", - "react-scripts": "4.0.3", - "typescript": "^4.3.5", - "web-vitals": "^1.1.2" + "@progress/kendo-data-query": "^1.6.0", + "@progress/kendo-drawing": "^1.17.2", + "@progress/kendo-licensing": "^1.2.2", + "@progress/kendo-react-buttons": "^5.9.0", + "@progress/kendo-react-data-tools": "^5.9.0", + "@progress/kendo-react-dateinputs": "^5.9.0", + "@progress/kendo-react-dialogs": "^5.9.0", + "@progress/kendo-react-dropdowns": "^5.9.0", + "@progress/kendo-react-grid": "^5.9.0", + "@progress/kendo-react-inputs": "^5.9.0", + "@progress/kendo-react-intl": "^5.9.0", + "@progress/kendo-react-labels": "^5.9.0", + "@progress/kendo-react-layout": "^5.9.0", + "@progress/kendo-react-progressbars": "^5.9.0", + "@progress/kendo-react-treeview": "^5.9.0", + "@progress/kendo-react-upload": "^5.9.0", + "@progress/kendo-theme-default": "^5.12.0", + "@testing-library/jest-dom": "^5.16.5", + "@testing-library/react": "^13.4.0", + "@testing-library/user-event": "^14.4.3", + "@types/react": "^18.0.26", + "@types/react-dom": "^18.0.9", + "react": "^18.2.0", + "react-dom": "^18.2.0", + "react-scripts": "5.0.1", + "typescript": "^4.9.4", + "web-vitals": "^3.1.0" }, "scripts": { "start": "react-scripts start", @@ -59,6 +59,6 @@ ] }, "devDependencies": { - "gh-pages": "^3.2.3" + "gh-pages": "^4.0.0" } } diff --git a/src/components/FileInformation.tsx b/src/components/FileInformation.tsx index 8d4af33..9d5aa79 100644 --- a/src/components/FileInformation.tsx +++ b/src/components/FileInformation.tsx @@ -23,8 +23,8 @@ const NoDataRendering = () => { const FileSelectionRendering = (item: DataModel) => { const intl = useInternationalization(); - const dateCreated: Date = convertDateFormat(item.dateCreated ? item.dateCreated : null, intl); - const dateModified: Date = convertDateFormat(item.dateModified ? item.dateModified : null, intl); + const dateCreated: String = convertDateFormat(item.dateCreated ? item.dateCreated : null, intl); + const dateModified: String = convertDateFormat(item.dateModified ? item.dateModified : null, intl); return (
@@ -32,10 +32,10 @@ const FileSelectionRendering = (item: DataModel) => { - {item.path? getName(item.path) : ''} + {item.path ? getName(item.path) : ''}
Type:
-
{item.icon ? item.icon.type : ''}
+
{item.icon ? item.icon.type : ''}
Size:
{item.size ? formatBytes(item.size) : ''}
diff --git a/src/components/FileManagerToolbar.tsx b/src/components/FileManagerToolbar.tsx index 1f2937f..35632a0 100644 --- a/src/components/FileManagerToolbar.tsx +++ b/src/components/FileManagerToolbar.tsx @@ -101,13 +101,13 @@ export const FileManagerToolbar = (props) => { - { dialogVisible && + {dialogVisible && + > { onStatusChange={handleFileChange} saveUrl={'https://demos.telerik.com/kendo-ui/service-v4/upload/save'} removeUrl={'https://demos.telerik.com/kendo-ui/service-v4/upload/remove'} - /> + /> - + } @@ -132,7 +132,7 @@ export const FileManagerToolbar = (props) => { togglable={true} selected={props.sort[0].dir === 'asc'} onClick={handleAscBtnClick} - > + > @@ -148,7 +148,7 @@ export const FileManagerToolbar = (props) => { text={'Sort By'} items={props.splitItems} onItemClick={handleItemClick} - > + >
 
- - - - On - Off - - - +
- + diff --git a/src/components/FolderTree.tsx b/src/components/FolderTree.tsx index 861b554..58d2b37 100644 --- a/src/components/FolderTree.tsx +++ b/src/components/FolderTree.tsx @@ -46,11 +46,11 @@ export const FolderTree = (props) => { if (props.item.edit) { return ( - handleEdit(e, props.item)} - onBlur={(e) => handleBlur(e, props.item)} /> + handleEdit(e, props.item)} + onBlur={(e) => handleBlur(e, props.item)} /> ); } diff --git a/src/index.js b/src/index.js index e984e79..f18a7b2 100644 --- a/src/index.js +++ b/src/index.js @@ -1,15 +1,12 @@ import React from 'react'; -import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import reportWebVitals from './reportWebVitals'; +import { createRoot } from 'react-dom/client'; -ReactDOM.render( - , - document.getElementById('root') -); +createRoot(document.getElementById('root')).render(); // If you want to start measuring performance in your app, pass a function // to log results (for example: reportWebVitals(console.log)) // or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals -reportWebVitals(); +reportWebVitals(); \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index 595285f..fe7f01f 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -18,7 +18,8 @@ "resolveJsonModule": true, "isolatedModules": true, "noEmit": true, - "jsx": "react-jsx" + "jsx": "react-jsx", + "strict": true }, "include": [ "src"