updates
This commit is contained in:
177
package-lock.json
generated
177
package-lock.json
generated
@@ -20,6 +20,7 @@
|
|||||||
"@mui/x-date-pickers": "^6.18.2",
|
"@mui/x-date-pickers": "^6.18.2",
|
||||||
"@reduxjs/toolkit": "^1.9.5",
|
"@reduxjs/toolkit": "^1.9.5",
|
||||||
"@svgr/webpack": "^7.0.0",
|
"@svgr/webpack": "^7.0.0",
|
||||||
|
"@tanstack/react-query": "^5.22.2",
|
||||||
"antd": "^5.11.5",
|
"antd": "^5.11.5",
|
||||||
"autosuggest-highlight": "^3.3.4",
|
"autosuggest-highlight": "^3.3.4",
|
||||||
"axios": "^1.3.5",
|
"axios": "^1.3.5",
|
||||||
@@ -40,7 +41,10 @@
|
|||||||
"prop-types": "^15.8.1",
|
"prop-types": "^15.8.1",
|
||||||
"react": "^18.2.0",
|
"react": "^18.2.0",
|
||||||
"react-app-rewired": "^2.2.1",
|
"react-app-rewired": "^2.2.1",
|
||||||
|
"react-csv": "^2.2.2",
|
||||||
"react-device-detect": "^2.2.3",
|
"react-device-detect": "^2.2.3",
|
||||||
|
"react-dnd": "^16.0.1",
|
||||||
|
"react-dnd-html5-backend": "^16.0.1",
|
||||||
"react-dom": "^18.2.0",
|
"react-dom": "^18.2.0",
|
||||||
"react-geocode": "^0.2.3",
|
"react-geocode": "^0.2.3",
|
||||||
"react-google-autocomplete": "^2.7.3",
|
"react-google-autocomplete": "^2.7.3",
|
||||||
@@ -51,6 +55,7 @@
|
|||||||
"react-router-dom": "^6.10.0",
|
"react-router-dom": "^6.10.0",
|
||||||
"react-scripts": "^5.0.1",
|
"react-scripts": "^5.0.1",
|
||||||
"react-timer-hook": "^3.0.5",
|
"react-timer-hook": "^3.0.5",
|
||||||
|
"react-virtuoso": "^4.7.0",
|
||||||
"react18-input-otp": "^1.1.3",
|
"react18-input-otp": "^1.1.3",
|
||||||
"redux": "^4.2.1",
|
"redux": "^4.2.1",
|
||||||
"simplebar": "^6.2.5",
|
"simplebar": "^6.2.5",
|
||||||
@@ -4086,6 +4091,21 @@
|
|||||||
"react-dom": ">=16.9.0"
|
"react-dom": ">=16.9.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/@react-dnd/asap": {
|
||||||
|
"version": "5.0.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/@react-dnd/asap/-/asap-5.0.2.tgz",
|
||||||
|
"integrity": "sha512-WLyfoHvxhs0V9U+GTsGilGgf2QsPl6ZZ44fnv0/b8T3nQyvzxidxsg/ZltbWssbsRDlYW8UKSQMTGotuTotZ6A=="
|
||||||
|
},
|
||||||
|
"node_modules/@react-dnd/invariant": {
|
||||||
|
"version": "4.0.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/@react-dnd/invariant/-/invariant-4.0.2.tgz",
|
||||||
|
"integrity": "sha512-xKCTqAK/FFauOM9Ta2pswIyT3D8AQlfrYdOi/toTPEhqCuAs1v5tcJ3Y08Izh1cJ5Jchwy9SeAXmMg6zrKs2iw=="
|
||||||
|
},
|
||||||
|
"node_modules/@react-dnd/shallowequal": {
|
||||||
|
"version": "4.0.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/@react-dnd/shallowequal/-/shallowequal-4.0.2.tgz",
|
||||||
|
"integrity": "sha512-/RVXdLvJxLg4QKvMoM5WlwNR9ViO9z8B/qPcc+C0Sa/teJY7QG7kJ441DwzOjMYEY7GmU4dj5EcGHIkKZiQZCA=="
|
||||||
|
},
|
||||||
"node_modules/@reduxjs/toolkit": {
|
"node_modules/@reduxjs/toolkit": {
|
||||||
"version": "1.9.5",
|
"version": "1.9.5",
|
||||||
"resolved": "https://registry.npmjs.org/@reduxjs/toolkit/-/toolkit-1.9.5.tgz",
|
"resolved": "https://registry.npmjs.org/@reduxjs/toolkit/-/toolkit-1.9.5.tgz",
|
||||||
@@ -4715,6 +4735,30 @@
|
|||||||
"url": "https://github.com/sponsors/gregberge"
|
"url": "https://github.com/sponsors/gregberge"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/@tanstack/query-core": {
|
||||||
|
"version": "5.22.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/@tanstack/query-core/-/query-core-5.22.2.tgz",
|
||||||
|
"integrity": "sha512-z3PwKFUFACMUqe1eyesCIKg3Jv1mysSrYfrEW5ww5DCDUD4zlpTKBvUDaEjsfZzL3ULrFLDM9yVUxI/fega1Qg==",
|
||||||
|
"funding": {
|
||||||
|
"type": "github",
|
||||||
|
"url": "https://github.com/sponsors/tannerlinsley"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@tanstack/react-query": {
|
||||||
|
"version": "5.22.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/@tanstack/react-query/-/react-query-5.22.2.tgz",
|
||||||
|
"integrity": "sha512-TaxJDRzJ8/NWRT4lY2jguKCrNI6MRN+67dELzPjNUlvqzTxGANlMp68l7aC7hG8Bd1uHNxHl7ihv7MT50i/43A==",
|
||||||
|
"dependencies": {
|
||||||
|
"@tanstack/query-core": "5.22.2"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"type": "github",
|
||||||
|
"url": "https://github.com/sponsors/tannerlinsley"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"react": "^18.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/@tootallnate/once": {
|
"node_modules/@tootallnate/once": {
|
||||||
"version": "1.1.2",
|
"version": "1.1.2",
|
||||||
"resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz",
|
"resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz",
|
||||||
@@ -7889,6 +7933,16 @@
|
|||||||
"resolved": "https://registry.npmjs.org/dlv/-/dlv-1.1.3.tgz",
|
"resolved": "https://registry.npmjs.org/dlv/-/dlv-1.1.3.tgz",
|
||||||
"integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA=="
|
"integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA=="
|
||||||
},
|
},
|
||||||
|
"node_modules/dnd-core": {
|
||||||
|
"version": "16.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/dnd-core/-/dnd-core-16.0.1.tgz",
|
||||||
|
"integrity": "sha512-HK294sl7tbw6F6IeuK16YSBUoorvHpY8RHO+9yFfaJyCDVb6n7PRcezrOEOa2SBCqiYpemh5Jx20ZcjKdFAVng==",
|
||||||
|
"dependencies": {
|
||||||
|
"@react-dnd/asap": "^5.0.1",
|
||||||
|
"@react-dnd/invariant": "^4.0.1",
|
||||||
|
"redux": "^4.2.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/dns-equal": {
|
"node_modules/dns-equal": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/dns-equal/-/dns-equal-1.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/dns-equal/-/dns-equal-1.0.0.tgz",
|
||||||
@@ -16563,6 +16617,11 @@
|
|||||||
"semver": "bin/semver"
|
"semver": "bin/semver"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/react-csv": {
|
||||||
|
"version": "2.2.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/react-csv/-/react-csv-2.2.2.tgz",
|
||||||
|
"integrity": "sha512-RG5hOcZKZFigIGE8LxIEV/OgS1vigFQT4EkaHeKgyuCbUAu9Nbd/1RYq++bJcJJ9VOqO/n9TZRADsXNDR4VEpw=="
|
||||||
|
},
|
||||||
"node_modules/react-dev-utils": {
|
"node_modules/react-dev-utils": {
|
||||||
"version": "12.0.1",
|
"version": "12.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/react-dev-utils/-/react-dev-utils-12.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/react-dev-utils/-/react-dev-utils-12.0.1.tgz",
|
||||||
@@ -16746,6 +16805,43 @@
|
|||||||
"react-dom": ">= 0.14.0"
|
"react-dom": ">= 0.14.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/react-dnd": {
|
||||||
|
"version": "16.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/react-dnd/-/react-dnd-16.0.1.tgz",
|
||||||
|
"integrity": "sha512-QeoM/i73HHu2XF9aKksIUuamHPDvRglEwdHL4jsp784BgUuWcg6mzfxT0QDdQz8Wj0qyRKx2eMg8iZtWvU4E2Q==",
|
||||||
|
"dependencies": {
|
||||||
|
"@react-dnd/invariant": "^4.0.1",
|
||||||
|
"@react-dnd/shallowequal": "^4.0.1",
|
||||||
|
"dnd-core": "^16.0.1",
|
||||||
|
"fast-deep-equal": "^3.1.3",
|
||||||
|
"hoist-non-react-statics": "^3.3.2"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"@types/hoist-non-react-statics": ">= 3.3.1",
|
||||||
|
"@types/node": ">= 12",
|
||||||
|
"@types/react": ">= 16",
|
||||||
|
"react": ">= 16.14"
|
||||||
|
},
|
||||||
|
"peerDependenciesMeta": {
|
||||||
|
"@types/hoist-non-react-statics": {
|
||||||
|
"optional": true
|
||||||
|
},
|
||||||
|
"@types/node": {
|
||||||
|
"optional": true
|
||||||
|
},
|
||||||
|
"@types/react": {
|
||||||
|
"optional": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/react-dnd-html5-backend": {
|
||||||
|
"version": "16.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/react-dnd-html5-backend/-/react-dnd-html5-backend-16.0.1.tgz",
|
||||||
|
"integrity": "sha512-Wu3dw5aDJmOGw8WjH1I1/yTH+vlXEL4vmjk5p+MHxP8HuHJS1lAGeIdG/hze1AvNeXWo/JgULV87LyQOr+r5jw==",
|
||||||
|
"dependencies": {
|
||||||
|
"dnd-core": "^16.0.1"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/react-dom": {
|
"node_modules/react-dom": {
|
||||||
"version": "18.2.0",
|
"version": "18.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.2.0.tgz",
|
||||||
@@ -17448,6 +17544,18 @@
|
|||||||
"react-dom": ">=16.6.0"
|
"react-dom": ">=16.6.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/react-virtuoso": {
|
||||||
|
"version": "4.7.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/react-virtuoso/-/react-virtuoso-4.7.0.tgz",
|
||||||
|
"integrity": "sha512-cpgvI1rSOETGDMhqVAVDuH+XHbWO1uIGKv5I6l4CyC71xWYUeGrE5n7sgTZklROB4+Vbv85pcgfWloTlY48HGQ==",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=10"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"react": ">=16 || >=17 || >= 18",
|
||||||
|
"react-dom": ">=16 || >=17 || >= 18"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/react18-input-otp": {
|
"node_modules/react18-input-otp": {
|
||||||
"version": "1.1.3",
|
"version": "1.1.3",
|
||||||
"resolved": "https://registry.npmjs.org/react18-input-otp/-/react18-input-otp-1.1.3.tgz",
|
"resolved": "https://registry.npmjs.org/react18-input-otp/-/react18-input-otp-1.1.3.tgz",
|
||||||
@@ -23024,6 +23132,21 @@
|
|||||||
"rc-util": "^5.38.0"
|
"rc-util": "^5.38.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"@react-dnd/asap": {
|
||||||
|
"version": "5.0.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/@react-dnd/asap/-/asap-5.0.2.tgz",
|
||||||
|
"integrity": "sha512-WLyfoHvxhs0V9U+GTsGilGgf2QsPl6ZZ44fnv0/b8T3nQyvzxidxsg/ZltbWssbsRDlYW8UKSQMTGotuTotZ6A=="
|
||||||
|
},
|
||||||
|
"@react-dnd/invariant": {
|
||||||
|
"version": "4.0.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/@react-dnd/invariant/-/invariant-4.0.2.tgz",
|
||||||
|
"integrity": "sha512-xKCTqAK/FFauOM9Ta2pswIyT3D8AQlfrYdOi/toTPEhqCuAs1v5tcJ3Y08Izh1cJ5Jchwy9SeAXmMg6zrKs2iw=="
|
||||||
|
},
|
||||||
|
"@react-dnd/shallowequal": {
|
||||||
|
"version": "4.0.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/@react-dnd/shallowequal/-/shallowequal-4.0.2.tgz",
|
||||||
|
"integrity": "sha512-/RVXdLvJxLg4QKvMoM5WlwNR9ViO9z8B/qPcc+C0Sa/teJY7QG7kJ441DwzOjMYEY7GmU4dj5EcGHIkKZiQZCA=="
|
||||||
|
},
|
||||||
"@reduxjs/toolkit": {
|
"@reduxjs/toolkit": {
|
||||||
"version": "1.9.5",
|
"version": "1.9.5",
|
||||||
"resolved": "https://registry.npmjs.org/@reduxjs/toolkit/-/toolkit-1.9.5.tgz",
|
"resolved": "https://registry.npmjs.org/@reduxjs/toolkit/-/toolkit-1.9.5.tgz",
|
||||||
@@ -23421,6 +23544,19 @@
|
|||||||
"@svgr/plugin-svgo": "^7.0.0"
|
"@svgr/plugin-svgo": "^7.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"@tanstack/query-core": {
|
||||||
|
"version": "5.22.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/@tanstack/query-core/-/query-core-5.22.2.tgz",
|
||||||
|
"integrity": "sha512-z3PwKFUFACMUqe1eyesCIKg3Jv1mysSrYfrEW5ww5DCDUD4zlpTKBvUDaEjsfZzL3ULrFLDM9yVUxI/fega1Qg=="
|
||||||
|
},
|
||||||
|
"@tanstack/react-query": {
|
||||||
|
"version": "5.22.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/@tanstack/react-query/-/react-query-5.22.2.tgz",
|
||||||
|
"integrity": "sha512-TaxJDRzJ8/NWRT4lY2jguKCrNI6MRN+67dELzPjNUlvqzTxGANlMp68l7aC7hG8Bd1uHNxHl7ihv7MT50i/43A==",
|
||||||
|
"requires": {
|
||||||
|
"@tanstack/query-core": "5.22.2"
|
||||||
|
}
|
||||||
|
},
|
||||||
"@tootallnate/once": {
|
"@tootallnate/once": {
|
||||||
"version": "1.1.2",
|
"version": "1.1.2",
|
||||||
"resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz",
|
"resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz",
|
||||||
@@ -25864,6 +26000,16 @@
|
|||||||
"resolved": "https://registry.npmjs.org/dlv/-/dlv-1.1.3.tgz",
|
"resolved": "https://registry.npmjs.org/dlv/-/dlv-1.1.3.tgz",
|
||||||
"integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA=="
|
"integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA=="
|
||||||
},
|
},
|
||||||
|
"dnd-core": {
|
||||||
|
"version": "16.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/dnd-core/-/dnd-core-16.0.1.tgz",
|
||||||
|
"integrity": "sha512-HK294sl7tbw6F6IeuK16YSBUoorvHpY8RHO+9yFfaJyCDVb6n7PRcezrOEOa2SBCqiYpemh5Jx20ZcjKdFAVng==",
|
||||||
|
"requires": {
|
||||||
|
"@react-dnd/asap": "^5.0.1",
|
||||||
|
"@react-dnd/invariant": "^4.0.1",
|
||||||
|
"redux": "^4.2.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"dns-equal": {
|
"dns-equal": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/dns-equal/-/dns-equal-1.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/dns-equal/-/dns-equal-1.0.0.tgz",
|
||||||
@@ -31916,6 +32062,11 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"react-csv": {
|
||||||
|
"version": "2.2.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/react-csv/-/react-csv-2.2.2.tgz",
|
||||||
|
"integrity": "sha512-RG5hOcZKZFigIGE8LxIEV/OgS1vigFQT4EkaHeKgyuCbUAu9Nbd/1RYq++bJcJJ9VOqO/n9TZRADsXNDR4VEpw=="
|
||||||
|
},
|
||||||
"react-dev-utils": {
|
"react-dev-utils": {
|
||||||
"version": "12.0.1",
|
"version": "12.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/react-dev-utils/-/react-dev-utils-12.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/react-dev-utils/-/react-dev-utils-12.0.1.tgz",
|
||||||
@@ -32043,6 +32194,26 @@
|
|||||||
"ua-parser-js": "^1.0.33"
|
"ua-parser-js": "^1.0.33"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"react-dnd": {
|
||||||
|
"version": "16.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/react-dnd/-/react-dnd-16.0.1.tgz",
|
||||||
|
"integrity": "sha512-QeoM/i73HHu2XF9aKksIUuamHPDvRglEwdHL4jsp784BgUuWcg6mzfxT0QDdQz8Wj0qyRKx2eMg8iZtWvU4E2Q==",
|
||||||
|
"requires": {
|
||||||
|
"@react-dnd/invariant": "^4.0.1",
|
||||||
|
"@react-dnd/shallowequal": "^4.0.1",
|
||||||
|
"dnd-core": "^16.0.1",
|
||||||
|
"fast-deep-equal": "^3.1.3",
|
||||||
|
"hoist-non-react-statics": "^3.3.2"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"react-dnd-html5-backend": {
|
||||||
|
"version": "16.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/react-dnd-html5-backend/-/react-dnd-html5-backend-16.0.1.tgz",
|
||||||
|
"integrity": "sha512-Wu3dw5aDJmOGw8WjH1I1/yTH+vlXEL4vmjk5p+MHxP8HuHJS1lAGeIdG/hze1AvNeXWo/JgULV87LyQOr+r5jw==",
|
||||||
|
"requires": {
|
||||||
|
"dnd-core": "^16.0.1"
|
||||||
|
}
|
||||||
|
},
|
||||||
"react-dom": {
|
"react-dom": {
|
||||||
"version": "18.2.0",
|
"version": "18.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.2.0.tgz",
|
||||||
@@ -32518,6 +32689,12 @@
|
|||||||
"prop-types": "^15.6.2"
|
"prop-types": "^15.6.2"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"react-virtuoso": {
|
||||||
|
"version": "4.7.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/react-virtuoso/-/react-virtuoso-4.7.0.tgz",
|
||||||
|
"integrity": "sha512-cpgvI1rSOETGDMhqVAVDuH+XHbWO1uIGKv5I6l4CyC71xWYUeGrE5n7sgTZklROB4+Vbv85pcgfWloTlY48HGQ==",
|
||||||
|
"requires": {}
|
||||||
|
},
|
||||||
"react18-input-otp": {
|
"react18-input-otp": {
|
||||||
"version": "1.1.3",
|
"version": "1.1.3",
|
||||||
"resolved": "https://registry.npmjs.org/react18-input-otp/-/react18-input-otp-1.1.3.tgz",
|
"resolved": "https://registry.npmjs.org/react18-input-otp/-/react18-input-otp-1.1.3.tgz",
|
||||||
|
|||||||
@@ -15,6 +15,7 @@
|
|||||||
"@mui/x-date-pickers": "^6.18.2",
|
"@mui/x-date-pickers": "^6.18.2",
|
||||||
"@reduxjs/toolkit": "^1.9.5",
|
"@reduxjs/toolkit": "^1.9.5",
|
||||||
"@svgr/webpack": "^7.0.0",
|
"@svgr/webpack": "^7.0.0",
|
||||||
|
"@tanstack/react-query": "^5.22.2",
|
||||||
"antd": "^5.11.5",
|
"antd": "^5.11.5",
|
||||||
"autosuggest-highlight": "^3.3.4",
|
"autosuggest-highlight": "^3.3.4",
|
||||||
"axios": "^1.3.5",
|
"axios": "^1.3.5",
|
||||||
@@ -35,7 +36,10 @@
|
|||||||
"prop-types": "^15.8.1",
|
"prop-types": "^15.8.1",
|
||||||
"react": "^18.2.0",
|
"react": "^18.2.0",
|
||||||
"react-app-rewired": "^2.2.1",
|
"react-app-rewired": "^2.2.1",
|
||||||
|
"react-csv": "^2.2.2",
|
||||||
"react-device-detect": "^2.2.3",
|
"react-device-detect": "^2.2.3",
|
||||||
|
"react-dnd": "^16.0.1",
|
||||||
|
"react-dnd-html5-backend": "^16.0.1",
|
||||||
"react-dom": "^18.2.0",
|
"react-dom": "^18.2.0",
|
||||||
"react-geocode": "^0.2.3",
|
"react-geocode": "^0.2.3",
|
||||||
"react-google-autocomplete": "^2.7.3",
|
"react-google-autocomplete": "^2.7.3",
|
||||||
@@ -46,6 +50,7 @@
|
|||||||
"react-router-dom": "^6.10.0",
|
"react-router-dom": "^6.10.0",
|
||||||
"react-scripts": "^5.0.1",
|
"react-scripts": "^5.0.1",
|
||||||
"react-timer-hook": "^3.0.5",
|
"react-timer-hook": "^3.0.5",
|
||||||
|
"react-virtuoso": "^4.7.0",
|
||||||
"react18-input-otp": "^1.1.3",
|
"react18-input-otp": "^1.1.3",
|
||||||
"redux": "^4.2.1",
|
"redux": "^4.2.1",
|
||||||
"simplebar": "^6.2.5",
|
"simplebar": "^6.2.5",
|
||||||
|
|||||||
577
src/components/third-party/ReactTable.js
vendored
Normal file
577
src/components/third-party/ReactTable.js
vendored
Normal file
@@ -0,0 +1,577 @@
|
|||||||
|
import PropTypes from 'prop-types';
|
||||||
|
import React, { forwardRef, useEffect, useRef, useState } from 'react';
|
||||||
|
|
||||||
|
// material-ui
|
||||||
|
import { styled, useTheme } from '@mui/material/styles';
|
||||||
|
import {
|
||||||
|
Box,
|
||||||
|
Checkbox,
|
||||||
|
Chip,
|
||||||
|
FormControl,
|
||||||
|
Grid,
|
||||||
|
ListItemText,
|
||||||
|
MenuItem,
|
||||||
|
OutlinedInput,
|
||||||
|
Pagination,
|
||||||
|
Select,
|
||||||
|
Stack,
|
||||||
|
TableCell,
|
||||||
|
TableRow,
|
||||||
|
TextField,
|
||||||
|
Tooltip,
|
||||||
|
Typography
|
||||||
|
} from '@mui/material';
|
||||||
|
|
||||||
|
// project-import
|
||||||
|
import { ThemeMode } from 'config';
|
||||||
|
|
||||||
|
// third-party
|
||||||
|
import { CSVLink } from 'react-csv';
|
||||||
|
import { getEmptyImage } from 'react-dnd-html5-backend';
|
||||||
|
import { useDrop, useDrag, useDragLayer } from 'react-dnd';
|
||||||
|
|
||||||
|
// assets
|
||||||
|
import { CaretUpOutlined, CaretDownOutlined, DragOutlined, CheckOutlined, DownloadOutlined } from '@ant-design/icons';
|
||||||
|
|
||||||
|
// ==============================|| HEADER HEADER ||============================== //
|
||||||
|
|
||||||
|
export const HeaderSort = ({ column, sort }) => {
|
||||||
|
const theme = useTheme();
|
||||||
|
return (
|
||||||
|
<Stack direction="row" spacing={1} alignItems="center">
|
||||||
|
<Box sx={{ width: 'max-content' }}>{column.render('Header')}</Box>
|
||||||
|
{!column.disableSortBy && (
|
||||||
|
<Stack sx={{ color: 'secondary.light' }} {...(sort && { ...column.getHeaderProps(column.getSortByToggleProps()) })}>
|
||||||
|
<CaretUpOutlined
|
||||||
|
style={{
|
||||||
|
fontSize: '0.625rem',
|
||||||
|
color: column.isSorted && !column.isSortedDesc ? theme.palette.text.secondary : 'inherit'
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
<CaretDownOutlined
|
||||||
|
style={{
|
||||||
|
fontSize: '0.625rem',
|
||||||
|
marginTop: -2,
|
||||||
|
color: column.isSortedDesc ? theme.palette.text.secondary : 'inherit'
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</Stack>
|
||||||
|
)}
|
||||||
|
</Stack>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
HeaderSort.propTypes = {
|
||||||
|
column: PropTypes.any,
|
||||||
|
sort: PropTypes.bool
|
||||||
|
};
|
||||||
|
|
||||||
|
// ==============================|| TABLE PAGINATION ||============================== //
|
||||||
|
|
||||||
|
export const TablePagination = ({ gotoPage, rows, setPageSize, pageSize, pageIndex }) => {
|
||||||
|
const [open, setOpen] = useState(false);
|
||||||
|
|
||||||
|
const handleClose = () => {
|
||||||
|
setOpen(false);
|
||||||
|
};
|
||||||
|
|
||||||
|
const handleOpen = () => {
|
||||||
|
setOpen(true);
|
||||||
|
};
|
||||||
|
|
||||||
|
const handleChangePagination = (event, value) => {
|
||||||
|
gotoPage(value - 1);
|
||||||
|
};
|
||||||
|
|
||||||
|
const handleChange = (event) => {
|
||||||
|
setPageSize(+event.target.value);
|
||||||
|
};
|
||||||
|
|
||||||
|
return (
|
||||||
|
<Grid container alignItems="center" justifyContent="space-between" sx={{ width: 'auto' }}>
|
||||||
|
<Grid item>
|
||||||
|
<Stack direction="row" spacing={1} alignItems="center">
|
||||||
|
<Stack direction="row" spacing={1} alignItems="center">
|
||||||
|
<Typography variant="caption" color="secondary">
|
||||||
|
Row per page
|
||||||
|
</Typography>
|
||||||
|
<FormControl sx={{ m: 1 }}>
|
||||||
|
<Select
|
||||||
|
id="demo-controlled-open-select"
|
||||||
|
open={open}
|
||||||
|
onClose={handleClose}
|
||||||
|
onOpen={handleOpen}
|
||||||
|
value={pageSize}
|
||||||
|
onChange={handleChange}
|
||||||
|
size="small"
|
||||||
|
sx={{ '& .MuiSelect-select': { py: 0.75, px: 1.25 } }}
|
||||||
|
>
|
||||||
|
<MenuItem value={5}>5</MenuItem>
|
||||||
|
<MenuItem value={10}>10</MenuItem>
|
||||||
|
<MenuItem value={25}>25</MenuItem>
|
||||||
|
<MenuItem value={50}>50</MenuItem>
|
||||||
|
<MenuItem value={100}>100</MenuItem>
|
||||||
|
</Select>
|
||||||
|
</FormControl>
|
||||||
|
</Stack>
|
||||||
|
<Typography variant="caption" color="secondary">
|
||||||
|
Go to
|
||||||
|
</Typography>
|
||||||
|
<TextField
|
||||||
|
size="small"
|
||||||
|
type="number"
|
||||||
|
value={pageIndex + 1}
|
||||||
|
onChange={(e) => {
|
||||||
|
const page = e.target.value ? Number(e.target.value) : 0;
|
||||||
|
gotoPage(page - 1);
|
||||||
|
}}
|
||||||
|
sx={{ '& .MuiOutlinedInput-input': { py: 0.75, px: 1.25, width: 36 } }}
|
||||||
|
/>
|
||||||
|
</Stack>
|
||||||
|
</Grid>
|
||||||
|
<Grid item sx={{ mt: { xs: 2, sm: 0 } }}>
|
||||||
|
<Pagination
|
||||||
|
count={Math.ceil(rows.length / pageSize)}
|
||||||
|
page={pageIndex + 1}
|
||||||
|
onChange={handleChangePagination}
|
||||||
|
color="primary"
|
||||||
|
variant="combined"
|
||||||
|
showFirstButton
|
||||||
|
showLastButton
|
||||||
|
/>
|
||||||
|
</Grid>
|
||||||
|
</Grid>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
TablePagination.propTypes = {
|
||||||
|
gotoPage: PropTypes.func,
|
||||||
|
setPageSize: PropTypes.func,
|
||||||
|
pageIndex: PropTypes.number,
|
||||||
|
pageSize: PropTypes.number,
|
||||||
|
rows: PropTypes.array
|
||||||
|
};
|
||||||
|
|
||||||
|
// ==============================|| SELECTION - PREVIEW ||============================== //
|
||||||
|
|
||||||
|
export const IndeterminateCheckbox = forwardRef(({ indeterminate, ...rest }, ref) => {
|
||||||
|
const defaultRef = useRef();
|
||||||
|
const resolvedRef = ref || defaultRef;
|
||||||
|
|
||||||
|
return <Checkbox indeterminate={indeterminate} ref={resolvedRef} {...rest} />;
|
||||||
|
});
|
||||||
|
|
||||||
|
IndeterminateCheckbox.propTypes = {
|
||||||
|
indeterminate: PropTypes.bool
|
||||||
|
};
|
||||||
|
|
||||||
|
export const TableRowSelection = ({ selected }) => (
|
||||||
|
<>
|
||||||
|
{selected > 0 && (
|
||||||
|
<Chip
|
||||||
|
size="small"
|
||||||
|
label={`${selected} row(s) selected`}
|
||||||
|
color="secondary"
|
||||||
|
variant="light"
|
||||||
|
sx={{
|
||||||
|
position: 'absolute',
|
||||||
|
right: -1,
|
||||||
|
top: -1,
|
||||||
|
borderRadius: '0 4px 0 4px'
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
|
||||||
|
TableRowSelection.propTypes = {
|
||||||
|
selected: PropTypes.number
|
||||||
|
};
|
||||||
|
|
||||||
|
// ==============================|| DRAG & DROP - DRAGGABLE HEADR ||============================== //
|
||||||
|
|
||||||
|
export const DraggableHeader = ({ children, column, index, reorder }) => {
|
||||||
|
const theme = useTheme();
|
||||||
|
const ref = useRef();
|
||||||
|
const { id, Header } = column;
|
||||||
|
|
||||||
|
const DND_ITEM_TYPE = 'column';
|
||||||
|
|
||||||
|
const [{ isOverCurrent }, drop] = useDrop({
|
||||||
|
accept: DND_ITEM_TYPE,
|
||||||
|
drop: (item) => {
|
||||||
|
reorder(item, index);
|
||||||
|
},
|
||||||
|
collect: (monitor) => ({
|
||||||
|
isOver: monitor.isOver(),
|
||||||
|
isOverCurrent: monitor.isOver({ shallow: true })
|
||||||
|
})
|
||||||
|
});
|
||||||
|
|
||||||
|
const [{ isDragging }, drag, preview] = useDrag({
|
||||||
|
type: DND_ITEM_TYPE,
|
||||||
|
item: () => ({
|
||||||
|
id,
|
||||||
|
index,
|
||||||
|
header: Header
|
||||||
|
}),
|
||||||
|
collect: (monitor) => ({
|
||||||
|
isDragging: monitor.isDragging()
|
||||||
|
})
|
||||||
|
});
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
preview(getEmptyImage(), { captureDraggingState: true });
|
||||||
|
}, [preview]);
|
||||||
|
|
||||||
|
drag(drop(ref));
|
||||||
|
|
||||||
|
let borderColor = theme.palette.text.primary;
|
||||||
|
if (isOverCurrent) {
|
||||||
|
borderColor = theme.palette.primary.main;
|
||||||
|
}
|
||||||
|
|
||||||
|
return (
|
||||||
|
<Box sx={{ cursor: 'move', opacity: isDragging ? 0.5 : 1, color: borderColor }} ref={ref} {...isDragging}>
|
||||||
|
{children}
|
||||||
|
</Box>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
DraggableHeader.propTypes = {
|
||||||
|
column: PropTypes.any,
|
||||||
|
sort: PropTypes.bool,
|
||||||
|
reorder: PropTypes.func,
|
||||||
|
index: PropTypes.number,
|
||||||
|
children: PropTypes.node
|
||||||
|
};
|
||||||
|
|
||||||
|
// ==============================|| DRAG & DROP - DRAG PREVIEW ||============================== //
|
||||||
|
|
||||||
|
const DragHeader = styled('div')(({ theme, x, y }) => ({
|
||||||
|
color: theme.palette.text.secondary,
|
||||||
|
position: 'fixed',
|
||||||
|
pointerEvents: 'none',
|
||||||
|
left: 12,
|
||||||
|
top: 24,
|
||||||
|
transform: `translate(${x}px, ${y}px)`,
|
||||||
|
opacity: 0.6
|
||||||
|
}));
|
||||||
|
|
||||||
|
export const DragPreview = () => {
|
||||||
|
const theme = useTheme();
|
||||||
|
const { isDragging, item, currentOffset } = useDragLayer((monitor) => ({
|
||||||
|
item: monitor.getItem(),
|
||||||
|
itemType: monitor.getItemType(),
|
||||||
|
initialOffset: monitor.getInitialSourceClientOffset(),
|
||||||
|
currentOffset: monitor.getSourceClientOffset(),
|
||||||
|
isDragging: monitor.isDragging()
|
||||||
|
}));
|
||||||
|
|
||||||
|
const { x, y } = currentOffset || {};
|
||||||
|
|
||||||
|
return isDragging ? (
|
||||||
|
<DragHeader theme={theme} x={x} y={y}>
|
||||||
|
{item.header && (
|
||||||
|
<Stack direction="row" spacing={1} alignItems="center">
|
||||||
|
<DragOutlined style={{ fontSize: '1rem' }} />
|
||||||
|
<Typography>{item.header}</Typography>
|
||||||
|
</Stack>
|
||||||
|
)}
|
||||||
|
</DragHeader>
|
||||||
|
) : null;
|
||||||
|
};
|
||||||
|
|
||||||
|
// ==============================|| DRAG & DROP - DRAGGABLE ROW ||============================== //
|
||||||
|
|
||||||
|
export const DraggableRow = ({ index, moveRow, children }) => {
|
||||||
|
const DND_ITEM_TYPE = 'row';
|
||||||
|
|
||||||
|
const dropRef = useRef(null);
|
||||||
|
const dragRef = useRef(null);
|
||||||
|
|
||||||
|
const [, drop] = useDrop({
|
||||||
|
accept: DND_ITEM_TYPE,
|
||||||
|
hover(item, monitor) {
|
||||||
|
if (!dropRef.current) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
const dragIndex = item.index;
|
||||||
|
const hoverIndex = index;
|
||||||
|
if (dragIndex === hoverIndex) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const hoverBoundingRect = dropRef.current.getBoundingClientRect();
|
||||||
|
const hoverMiddleY = (hoverBoundingRect.bottom - hoverBoundingRect.top) / 2;
|
||||||
|
const clientOffset = monitor.getClientOffset();
|
||||||
|
const hoverClientY = clientOffset.y - hoverBoundingRect.top;
|
||||||
|
if (dragIndex < hoverIndex && hoverClientY < hoverMiddleY) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (dragIndex > hoverIndex && hoverClientY > hoverMiddleY) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
moveRow(dragIndex, hoverIndex);
|
||||||
|
item.index = hoverIndex;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
const [{ isDragging }, drag, preview] = useDrag({
|
||||||
|
type: DND_ITEM_TYPE,
|
||||||
|
item: { index },
|
||||||
|
collect: (monitor) => ({
|
||||||
|
isDragging: monitor.isDragging()
|
||||||
|
})
|
||||||
|
});
|
||||||
|
|
||||||
|
const opacity = isDragging ? 0 : 1;
|
||||||
|
|
||||||
|
preview(drop(dropRef));
|
||||||
|
drag(dragRef);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<TableRow ref={dropRef} style={{ opacity, backgroundColor: isDragging ? 'red' : 'inherit' }}>
|
||||||
|
<TableCell ref={dragRef} sx={{ cursor: 'pointer', textAlign: 'center' }}>
|
||||||
|
<DragOutlined />
|
||||||
|
</TableCell>
|
||||||
|
{children}
|
||||||
|
</TableRow>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
DraggableRow.propTypes = {
|
||||||
|
moveRow: PropTypes.func,
|
||||||
|
index: PropTypes.number,
|
||||||
|
children: PropTypes.node
|
||||||
|
};
|
||||||
|
|
||||||
|
// ==============================|| COLUMN HIDING - SELECT ||============================== //
|
||||||
|
|
||||||
|
const ITEM_HEIGHT = 48;
|
||||||
|
const ITEM_PADDING_TOP = 8;
|
||||||
|
const MenuProps = {
|
||||||
|
PaperProps: {
|
||||||
|
style: {
|
||||||
|
maxHeight: ITEM_HEIGHT * 4.5 + ITEM_PADDING_TOP,
|
||||||
|
width: 200
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
export const HidingSelect = ({ hiddenColumns, setHiddenColumns, allColumns }) => {
|
||||||
|
const handleChange = (event) => {
|
||||||
|
const {
|
||||||
|
target: { value }
|
||||||
|
} = event;
|
||||||
|
|
||||||
|
setHiddenColumns(typeof value === 'string' ? value.split(',') : value);
|
||||||
|
};
|
||||||
|
|
||||||
|
const theme = useTheme();
|
||||||
|
let visible = allColumns.filter((c) => !hiddenColumns.includes(c.id)).length;
|
||||||
|
|
||||||
|
return (
|
||||||
|
<FormControl sx={{ width: 200 }}>
|
||||||
|
<Select
|
||||||
|
id="column-hiding"
|
||||||
|
multiple
|
||||||
|
displayEmpty
|
||||||
|
value={hiddenColumns}
|
||||||
|
onChange={handleChange}
|
||||||
|
input={<OutlinedInput id="select-column-hiding" placeholder="select column" />}
|
||||||
|
renderValue={(selected) => {
|
||||||
|
if (selected.length === 0) {
|
||||||
|
return <Typography variant="subtitle1">All columns visible</Typography>;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (selected.length > 0 && selected.length === allColumns.length) {
|
||||||
|
return <Typography variant="subtitle1">All columns visible</Typography>;
|
||||||
|
}
|
||||||
|
|
||||||
|
return <Typography variant="subtitle1">{visible} column(s) visible</Typography>;
|
||||||
|
}}
|
||||||
|
MenuProps={MenuProps}
|
||||||
|
size="small"
|
||||||
|
>
|
||||||
|
{allColumns.map((column) => {
|
||||||
|
let ToggleChecked = column.id === '#' ? true : hiddenColumns.indexOf(column.id) > -1 ? false : true;
|
||||||
|
return (
|
||||||
|
<MenuItem
|
||||||
|
key={column.id}
|
||||||
|
value={column.id}
|
||||||
|
sx={{ bgcolor: 'success.lighter', '&.Mui-selected': { bgcolor: 'background.paper' } }}
|
||||||
|
>
|
||||||
|
<Checkbox
|
||||||
|
checked={ToggleChecked}
|
||||||
|
color="success"
|
||||||
|
checkedIcon={
|
||||||
|
<Box
|
||||||
|
className="icon"
|
||||||
|
sx={{
|
||||||
|
width: 16,
|
||||||
|
height: 16,
|
||||||
|
border: '1px solid',
|
||||||
|
borderColor: 'inherit',
|
||||||
|
borderRadius: 0.25,
|
||||||
|
position: 'relative',
|
||||||
|
backgroundColor: theme.palette.success.main
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<CheckOutlined className="filled" style={{ position: 'absolute', color: theme.palette.common.white }} />
|
||||||
|
</Box>
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
<ListItemText primary={typeof column.Header === 'string' ? column.Header : column?.title} />
|
||||||
|
</MenuItem>
|
||||||
|
);
|
||||||
|
})}
|
||||||
|
</Select>
|
||||||
|
</FormControl>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
HidingSelect.propTypes = {
|
||||||
|
setHiddenColumns: PropTypes.func,
|
||||||
|
hiddenColumns: PropTypes.array,
|
||||||
|
allColumns: PropTypes.array
|
||||||
|
};
|
||||||
|
|
||||||
|
// ==============================|| COLUMN SORTING - SELECT ||============================== //
|
||||||
|
|
||||||
|
export const SortingSelect = ({ sortBy, setSortBy, allColumns }) => {
|
||||||
|
const [sort, setSort] = useState(sortBy);
|
||||||
|
|
||||||
|
const handleChange = (event) => {
|
||||||
|
const {
|
||||||
|
target: { value }
|
||||||
|
} = event;
|
||||||
|
setSort(value);
|
||||||
|
setSortBy([{ id: value, desc: false }]);
|
||||||
|
};
|
||||||
|
|
||||||
|
return (
|
||||||
|
<FormControl sx={{ width: 200 }}>
|
||||||
|
<Select
|
||||||
|
id="column-hiding"
|
||||||
|
displayEmpty
|
||||||
|
value={sort}
|
||||||
|
onChange={handleChange}
|
||||||
|
input={<OutlinedInput id="select-column-hiding" placeholder="Sort by" />}
|
||||||
|
renderValue={(selected) => {
|
||||||
|
const selectedColumn = allColumns.filter((column) => column.id === selected)[0];
|
||||||
|
if (!selected) {
|
||||||
|
return <Typography variant="subtitle1">Sort By</Typography>;
|
||||||
|
}
|
||||||
|
|
||||||
|
return (
|
||||||
|
<Typography variant="subtitle2">
|
||||||
|
Sort by ({typeof selectedColumn.Header === 'string' ? selectedColumn.Header : selectedColumn?.title})
|
||||||
|
</Typography>
|
||||||
|
);
|
||||||
|
}}
|
||||||
|
size="small"
|
||||||
|
>
|
||||||
|
{allColumns
|
||||||
|
.filter((column) => column.canSort)
|
||||||
|
.map((column) => (
|
||||||
|
<MenuItem key={column.id} value={column.id}>
|
||||||
|
<ListItemText primary={typeof column.Header === 'string' ? column.Header : column?.title} />
|
||||||
|
</MenuItem>
|
||||||
|
))}
|
||||||
|
</Select>
|
||||||
|
</FormControl>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
SortingSelect.propTypes = {
|
||||||
|
setSortBy: PropTypes.func,
|
||||||
|
sortBy: PropTypes.string,
|
||||||
|
allColumns: PropTypes.array
|
||||||
|
};
|
||||||
|
|
||||||
|
// ==============================|| CSV EXPORT ||============================== //
|
||||||
|
|
||||||
|
export const CSVExport = ({ data, filename, headers }) => {
|
||||||
|
return (
|
||||||
|
<CSVLink data={data} filename={filename} headers={headers}>
|
||||||
|
<Tooltip title="CSV Export">
|
||||||
|
<DownloadOutlined style={{ fontSize: '24px', color: 'gray', marginTop: 4, marginRight: 4, marginLeft: 4 }} />
|
||||||
|
</Tooltip>
|
||||||
|
</CSVLink>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
CSVExport.propTypes = {
|
||||||
|
data: PropTypes.array,
|
||||||
|
headers: PropTypes.any,
|
||||||
|
filename: PropTypes.string
|
||||||
|
};
|
||||||
|
// ==============================|| EMPTY TABLE - NO DATA ||============================== //
|
||||||
|
|
||||||
|
const StyledGridOverlay = styled(Stack)(({ theme }) => ({
|
||||||
|
height: '400px',
|
||||||
|
'& .ant-empty-img-1': {
|
||||||
|
fill: theme.palette.mode === ThemeMode.DARK ? theme.palette.secondary[200] : theme.palette.secondary[400]
|
||||||
|
},
|
||||||
|
'& .ant-empty-img-2': {
|
||||||
|
fill: theme.palette.secondary.light
|
||||||
|
},
|
||||||
|
'& .ant-empty-img-3': {
|
||||||
|
fill: theme.palette.mode === ThemeMode.DARK ? theme.palette.secondary.A200 : theme.palette.secondary[200]
|
||||||
|
},
|
||||||
|
'& .ant-empty-img-4': {
|
||||||
|
fill: theme.palette.mode === ThemeMode.DARK ? theme.palette.secondary.A300 : theme.palette.secondary.A100
|
||||||
|
},
|
||||||
|
'& .ant-empty-img-5': {
|
||||||
|
fillOpacity: theme.palette.mode === ThemeMode.DARK ? '0.09' : '0.95',
|
||||||
|
fill: theme.palette.mode === ThemeMode.DARK ? theme.palette.secondary.darker : theme.palette.secondary.light
|
||||||
|
}
|
||||||
|
}));
|
||||||
|
|
||||||
|
export const EmptyTable = ({ msg, colSpan }) => {
|
||||||
|
return (
|
||||||
|
<TableRow>
|
||||||
|
<TableCell colSpan={colSpan}>
|
||||||
|
<StyledGridOverlay alignItems="center" justifyContent="center" spacing={1}>
|
||||||
|
<svg width="120" height="100" viewBox="0 0 184 152" aria-hidden focusable="false">
|
||||||
|
<g fill="none" fillRule="evenodd">
|
||||||
|
<g transform="translate(24 31.67)">
|
||||||
|
<ellipse className="ant-empty-img-5" cx="67.797" cy="106.89" rx="67.797" ry="12.668" />
|
||||||
|
<path
|
||||||
|
className="ant-empty-img-1"
|
||||||
|
d="M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z"
|
||||||
|
/>
|
||||||
|
<path
|
||||||
|
className="ant-empty-img-2"
|
||||||
|
d="M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z"
|
||||||
|
/>
|
||||||
|
<path
|
||||||
|
className="ant-empty-img-3"
|
||||||
|
d="M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z"
|
||||||
|
/>
|
||||||
|
</g>
|
||||||
|
<path
|
||||||
|
className="ant-empty-img-3"
|
||||||
|
d="M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z"
|
||||||
|
/>
|
||||||
|
<g className="ant-empty-img-4" transform="translate(149.65 15.383)">
|
||||||
|
<ellipse cx="20.654" cy="3.167" rx="2.849" ry="2.815" />
|
||||||
|
<path d="M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z" />
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
<Typography align="center" color="secondary">
|
||||||
|
{msg}
|
||||||
|
</Typography>
|
||||||
|
</StyledGridOverlay>
|
||||||
|
</TableCell>
|
||||||
|
</TableRow>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
EmptyTable.propTypes = {
|
||||||
|
msg: PropTypes.string,
|
||||||
|
colSpan: PropTypes.number
|
||||||
|
};
|
||||||
@@ -4,7 +4,8 @@ export const twitterColor = '#1DA1F2';
|
|||||||
export const facebookColor = '#3b5998';
|
export const facebookColor = '#3b5998';
|
||||||
export const linkedInColor = '#0e76a8';
|
export const linkedInColor = '#0e76a8';
|
||||||
|
|
||||||
export const APP_DEFAULT_PATH = '/sample-page';
|
// export const APP_DEFAULT_PATH = '/sample-page';
|
||||||
|
export const APP_DEFAULT_PATH = '/orders';
|
||||||
export const HORIZONTAL_MAX_ITEM = 6;
|
export const HORIZONTAL_MAX_ITEM = 6;
|
||||||
export const DRAWER_WIDTH = 260;
|
export const DRAWER_WIDTH = 260;
|
||||||
|
|
||||||
|
|||||||
11
src/index.js
11
src/index.js
@@ -11,6 +11,8 @@ import 'simplebar/dist/simplebar.css';
|
|||||||
import 'assets/third-party/apex-chart.css';
|
import 'assets/third-party/apex-chart.css';
|
||||||
import 'assets/third-party/react-table.css';
|
import 'assets/third-party/react-table.css';
|
||||||
|
|
||||||
|
import { QueryClient, QueryClientProvider, useQuery } from '@tanstack/react-query';
|
||||||
|
|
||||||
// project import
|
// project import
|
||||||
import App from './App';
|
import App from './App';
|
||||||
import { store } from 'store';
|
import { store } from 'store';
|
||||||
@@ -19,6 +21,7 @@ import reportWebVitals from './reportWebVitals';
|
|||||||
|
|
||||||
const container = document.getElementById('root');
|
const container = document.getElementById('root');
|
||||||
const root = createRoot(container);
|
const root = createRoot(container);
|
||||||
|
const queryClient = new QueryClient();
|
||||||
|
|
||||||
// const root = ReactDOM.createRoot(document.getElementById('root'));
|
// const root = ReactDOM.createRoot(document.getElementById('root'));
|
||||||
|
|
||||||
@@ -27,9 +30,11 @@ const root = createRoot(container);
|
|||||||
root.render(
|
root.render(
|
||||||
<ReduxProvider store={store}>
|
<ReduxProvider store={store}>
|
||||||
{/* <ConfigProvider> */}
|
{/* <ConfigProvider> */}
|
||||||
<BrowserRouter>
|
<QueryClientProvider client={queryClient}>
|
||||||
<App />
|
<BrowserRouter>
|
||||||
</BrowserRouter>
|
<App />
|
||||||
|
</BrowserRouter>
|
||||||
|
</QueryClientProvider>
|
||||||
{/* </ConfigProvider> */}
|
{/* </ConfigProvider> */}
|
||||||
</ReduxProvider>
|
</ReduxProvider>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -45,7 +45,8 @@ const PopperStyled = styled(Popper)(({ theme }) => ({
|
|||||||
left: -5,
|
left: -5,
|
||||||
width: 10,
|
width: 10,
|
||||||
height: 10,
|
height: 10,
|
||||||
backgroundColor: theme.palette.background.paper,
|
// backgroundColor: theme.palette.background.paper,
|
||||||
|
backgroundColor: theme.palette.primary.main,
|
||||||
transform: 'translateY(-50%) rotate(45deg)',
|
transform: 'translateY(-50%) rotate(45deg)',
|
||||||
zIndex: 120,
|
zIndex: 120,
|
||||||
borderLeft: `1px solid ${theme.palette.grey.A800}`,
|
borderLeft: `1px solid ${theme.palette.grey.A800}`,
|
||||||
@@ -210,11 +211,14 @@ const NavCollapse = ({ menu, level, parentId, setSelectedItems, selectedItems, s
|
|||||||
const isSelected = selected === menu.id;
|
const isSelected = selected === menu.id;
|
||||||
const borderIcon = level === 1 ? <BorderOutlined style={{ fontSize: '1rem' }} /> : false;
|
const borderIcon = level === 1 ? <BorderOutlined style={{ fontSize: '1rem' }} /> : false;
|
||||||
const Icon = menu.icon;
|
const Icon = menu.icon;
|
||||||
const menuIcon = menu.icon ? <Icon style={{ fontSize: drawerOpen ? '1rem' : '1.25rem' }} /> : borderIcon;
|
const menuIcon = menu.icon ? <Icon style={{ fontSize: drawerOpen ? '1rem' : '1.25rem', color: 'white' }} /> : borderIcon;
|
||||||
const textColor = theme.palette.mode === ThemeMode.DARK ? 'grey.400' : 'text.primary';
|
// const textColor = theme.palette.mode === ThemeMode.DARK ? 'grey.400' : 'text.primary';
|
||||||
const iconSelectedColor = theme.palette.mode === ThemeMode.DARK && drawerOpen ? theme.palette.text.primary : theme.palette.primary.main;
|
// const iconSelectedColor = theme.palette.mode === ThemeMode.DARK && drawerOpen ? theme.palette.text.primary : theme.palette.primary.main;
|
||||||
const popperId = miniMenuOpened ? `collapse-pop-${menu.id}` : undefined;
|
const popperId = miniMenuOpened ? `collapse-pop-${menu.id}` : undefined;
|
||||||
const FlexBox = { display: 'flex', justifyContent: 'space-between', alignItems: 'center', width: '100%' };
|
const FlexBox = { display: 'flex', justifyContent: 'space-between', alignItems: 'center', width: '100%' };
|
||||||
|
const textColor = 'white';
|
||||||
|
const iconSelectedColor = 'white';
|
||||||
|
// const isSelected = true;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
@@ -228,9 +232,11 @@ const NavCollapse = ({ menu, level, parentId, setSelectedItems, selectedItems, s
|
|||||||
sx={{
|
sx={{
|
||||||
pl: drawerOpen ? `${level * 28}px` : 1.5,
|
pl: drawerOpen ? `${level * 28}px` : 1.5,
|
||||||
py: !drawerOpen && level === 1 ? 1.25 : 1,
|
py: !drawerOpen && level === 1 ? 1.25 : 1,
|
||||||
|
|
||||||
...(drawerOpen && {
|
...(drawerOpen && {
|
||||||
'&:hover': {
|
'&:hover': {
|
||||||
bgcolor: theme.palette.mode === ThemeMode.DARK ? 'divider' : 'primary.lighter'
|
// bgcolor: theme.palette.mode === ThemeMode.DARK ? 'divider' : 'primary.lighter'
|
||||||
|
bgcolor: '#7b1fa2'
|
||||||
},
|
},
|
||||||
'&.Mui-selected': {
|
'&.Mui-selected': {
|
||||||
bgcolor: 'transparent',
|
bgcolor: 'transparent',
|
||||||
@@ -241,6 +247,7 @@ const NavCollapse = ({ menu, level, parentId, setSelectedItems, selectedItems, s
|
|||||||
...(!drawerOpen && {
|
...(!drawerOpen && {
|
||||||
'&:hover': {
|
'&:hover': {
|
||||||
bgcolor: 'transparent'
|
bgcolor: 'transparent'
|
||||||
|
// bgcolor:'#7b1fa2'
|
||||||
},
|
},
|
||||||
'&.Mui-selected': {
|
'&.Mui-selected': {
|
||||||
'&:hover': {
|
'&:hover': {
|
||||||
@@ -256,7 +263,11 @@ const NavCollapse = ({ menu, level, parentId, setSelectedItems, selectedItems, s
|
|||||||
onClick={handlerIconLink}
|
onClick={handlerIconLink}
|
||||||
sx={{
|
sx={{
|
||||||
minWidth: 28,
|
minWidth: 28,
|
||||||
color: selected === menu.id ? 'primary.main' : textColor,
|
// color: selected === menu.id ? 'primary.main' : textColor,
|
||||||
|
// color: selected === menu.id ? textColor : textColor,
|
||||||
|
|
||||||
|
// bgcolor:'white',
|
||||||
|
// color:'white',
|
||||||
...(!drawerOpen && {
|
...(!drawerOpen && {
|
||||||
borderRadius: 1.5,
|
borderRadius: 1.5,
|
||||||
width: 36,
|
width: 36,
|
||||||
@@ -264,14 +275,20 @@ const NavCollapse = ({ menu, level, parentId, setSelectedItems, selectedItems, s
|
|||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
justifyContent: 'center',
|
justifyContent: 'center',
|
||||||
'&:hover': {
|
'&:hover': {
|
||||||
bgcolor: theme.palette.mode === ThemeMode.DARK ? 'secondary.light' : 'secondary.lighter'
|
// bgcolor: theme.palette.mode === ThemeMode.DARK ? 'secondary.light' : 'secondary.lighter'
|
||||||
|
bgcolor: '#7b1fa2',
|
||||||
|
color: 'white'
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
...(!drawerOpen &&
|
...(!drawerOpen &&
|
||||||
selected === menu.id && {
|
selected === menu.id && {
|
||||||
bgcolor: theme.palette.mode === ThemeMode.DARK ? 'primary.900' : 'primary.lighter',
|
// bgcolor: theme.palette.mode === ThemeMode.DARK ? 'primary.900' : 'primary.lighter',
|
||||||
|
// bgcolor:'white',
|
||||||
|
bgcolor: '#7b1fa2',
|
||||||
'&:hover': {
|
'&:hover': {
|
||||||
bgcolor: theme.palette.mode === ThemeMode.DARK ? 'primary.darker' : 'primary.lighter'
|
// bgcolor: theme.palette.mode === ThemeMode.DARK ? 'primary.darker' : 'primary.lighter'
|
||||||
|
bgcolor: '#7b1fa2'
|
||||||
|
// color:'white'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}}
|
}}
|
||||||
@@ -282,7 +299,12 @@ const NavCollapse = ({ menu, level, parentId, setSelectedItems, selectedItems, s
|
|||||||
{(drawerOpen || (!drawerOpen && level !== 1)) && (
|
{(drawerOpen || (!drawerOpen && level !== 1)) && (
|
||||||
<ListItemText
|
<ListItemText
|
||||||
primary={
|
primary={
|
||||||
<Typography variant="h6" color={selected === menu.id ? 'primary' : textColor}>
|
<Typography
|
||||||
|
variant="h6"
|
||||||
|
// color={selected === menu.id ? 'primary' : textColor}
|
||||||
|
// color={'white'}
|
||||||
|
color={selected === menu.id ? textColor : textColor}
|
||||||
|
>
|
||||||
{menu.title}
|
{menu.title}
|
||||||
</Typography>
|
</Typography>
|
||||||
}
|
}
|
||||||
@@ -297,9 +319,22 @@ const NavCollapse = ({ menu, level, parentId, setSelectedItems, selectedItems, s
|
|||||||
)}
|
)}
|
||||||
{(drawerOpen || (!drawerOpen && level !== 1)) &&
|
{(drawerOpen || (!drawerOpen && level !== 1)) &&
|
||||||
(miniMenuOpened || open ? (
|
(miniMenuOpened || open ? (
|
||||||
<UpOutlined style={{ fontSize: '0.625rem', marginLeft: 1, color: theme.palette.primary.main }} />
|
<UpOutlined
|
||||||
|
style={{
|
||||||
|
fontSize: '0.625rem',
|
||||||
|
marginLeft: 1,
|
||||||
|
// color: theme.palette.primary.main
|
||||||
|
color: 'white'
|
||||||
|
}}
|
||||||
|
/>
|
||||||
) : (
|
) : (
|
||||||
<DownOutlined style={{ fontSize: '0.625rem', marginLeft: 1 }} />
|
<DownOutlined
|
||||||
|
style={{
|
||||||
|
fontSize: '0.625rem',
|
||||||
|
marginLeft: 1,
|
||||||
|
color: 'white'
|
||||||
|
}}
|
||||||
|
/>
|
||||||
))}
|
))}
|
||||||
|
|
||||||
{!drawerOpen && (
|
{!drawerOpen && (
|
||||||
@@ -329,7 +364,8 @@ const NavCollapse = ({ menu, level, parentId, setSelectedItems, selectedItems, s
|
|||||||
mt: 1.5,
|
mt: 1.5,
|
||||||
boxShadow: theme.customShadows.z1,
|
boxShadow: theme.customShadows.z1,
|
||||||
backgroundImage: 'none',
|
backgroundImage: 'none',
|
||||||
border: `1px solid ${theme.palette.divider}`
|
// border: `1px solid ${theme.palette.divider}`,
|
||||||
|
background: theme.palette.primary.main
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<ClickAwayListener onClickAway={handleClose}>
|
<ClickAwayListener onClickAway={handleClose}>
|
||||||
@@ -373,7 +409,14 @@ const NavCollapse = ({ menu, level, parentId, setSelectedItems, selectedItems, s
|
|||||||
>
|
>
|
||||||
<Box onClick={handlerIconLink} sx={FlexBox}>
|
<Box onClick={handlerIconLink} sx={FlexBox}>
|
||||||
{menuIcon && (
|
{menuIcon && (
|
||||||
<ListItemIcon sx={{ my: 'auto', minWidth: !menu.icon ? 18 : 36, color: theme.palette.secondary.dark }}>
|
<ListItemIcon
|
||||||
|
sx={{
|
||||||
|
my: 'auto',
|
||||||
|
minWidth: !menu.icon ? 18 : 36
|
||||||
|
// color: theme.palette.secondary.dark
|
||||||
|
// color:'white'
|
||||||
|
}}
|
||||||
|
>
|
||||||
{menuIcon}
|
{menuIcon}
|
||||||
</ListItemIcon>
|
</ListItemIcon>
|
||||||
)}
|
)}
|
||||||
@@ -386,7 +429,12 @@ const NavCollapse = ({ menu, level, parentId, setSelectedItems, selectedItems, s
|
|||||||
)}
|
)}
|
||||||
<ListItemText
|
<ListItemText
|
||||||
primary={
|
primary={
|
||||||
<Typography variant="body1" color="inherit" sx={{ my: 'auto' }}>
|
<Typography
|
||||||
|
variant="body1"
|
||||||
|
// color="inherit"
|
||||||
|
// color="white"
|
||||||
|
sx={{ my: 'auto' }}
|
||||||
|
>
|
||||||
{menu.title}
|
{menu.title}
|
||||||
</Typography>
|
</Typography>
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { forwardRef, useEffect,useState } from 'react';
|
import { forwardRef, useEffect, useState } from 'react';
|
||||||
import { Link } from 'react-router-dom';
|
import { Link } from 'react-router-dom';
|
||||||
import { useDispatch, useSelector } from 'react-redux';
|
import { useDispatch, useSelector } from 'react-redux';
|
||||||
|
|
||||||
@@ -20,14 +20,12 @@ import { activeItem, openDrawer } from 'store/reducers/menu';
|
|||||||
const NavItem = ({ item, level }) => {
|
const NavItem = ({ item, level }) => {
|
||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
const dispatch = useDispatch();
|
const dispatch = useDispatch();
|
||||||
|
|
||||||
const { menuOrientation } = useConfig();
|
const { menuOrientation } = useConfig();
|
||||||
const { drawerOpen, openItem } = useSelector((state) => state.menu);
|
const { drawerOpen, openItem } = useSelector((state) => state.menu);
|
||||||
const [ishover,setIshover]=useState('')
|
const [ishover, setIshover] = useState('');
|
||||||
|
|
||||||
const downLG = useMediaQuery(theme.breakpoints.down('lg'));
|
const downLG = useMediaQuery(theme.breakpoints.down('lg'));
|
||||||
|
|
||||||
|
|
||||||
let itemTarget = '_self';
|
let itemTarget = '_self';
|
||||||
if (item.target) {
|
if (item.target) {
|
||||||
itemTarget = '_blank';
|
itemTarget = '_blank';
|
||||||
@@ -41,8 +39,11 @@ const NavItem = ({ item, level }) => {
|
|||||||
const Icon = item.icon;
|
const Icon = item.icon;
|
||||||
|
|
||||||
const isSelected = openItem.findIndex((id) => id === item.id) > -1;
|
const isSelected = openItem.findIndex((id) => id === item.id) > -1;
|
||||||
const itemIcon = item.icon ? <Icon style={{ fontSize: drawerOpen ? '1rem' : '1.25rem',
|
const itemIcon = item.icon ? (
|
||||||
color:isSelected?'#662582':'#fff' }} /> : false;
|
<Icon style={{ fontSize: drawerOpen ? '1rem' : '1.25rem', color: isSelected ? '#662582' : '#fff' }} />
|
||||||
|
) : (
|
||||||
|
false
|
||||||
|
);
|
||||||
|
|
||||||
// const { pathname } = useLocation();
|
// const { pathname } = useLocation();
|
||||||
const pathname = document.location.pathname;
|
const pathname = document.location.pathname;
|
||||||
@@ -77,11 +78,11 @@ const NavItem = ({ item, level }) => {
|
|||||||
{...listItemProps}
|
{...listItemProps}
|
||||||
disabled={item.disabled}
|
disabled={item.disabled}
|
||||||
selected={isSelected}
|
selected={isSelected}
|
||||||
onMouseEnter={(e,val)=>{
|
onMouseEnter={(e, val) => {
|
||||||
console.log(e)
|
console.log(e);
|
||||||
}}
|
}}
|
||||||
onMouseLeave={()=>{
|
onMouseLeave={() => {
|
||||||
setIshover('')
|
setIshover('');
|
||||||
}}
|
}}
|
||||||
sx={{
|
sx={{
|
||||||
zIndex: 1201,
|
zIndex: 1201,
|
||||||
@@ -90,7 +91,7 @@ setIshover('')
|
|||||||
...(drawerOpen && {
|
...(drawerOpen && {
|
||||||
'&:hover': {
|
'&:hover': {
|
||||||
// bgcolor: theme.palette.mode === ThemeMode.DARK ? 'divider' : 'primary.lighter'
|
// bgcolor: theme.palette.mode === ThemeMode.DARK ? 'divider' : 'primary.lighter'
|
||||||
bgcolor:'#7b1fa2'
|
bgcolor: '#7b1fa2'
|
||||||
},
|
},
|
||||||
'&.Mui-selected': {
|
'&.Mui-selected': {
|
||||||
bgcolor: theme.palette.mode === ThemeMode.DARK ? 'divider' : 'primary.lighter',
|
bgcolor: theme.palette.mode === ThemeMode.DARK ? 'divider' : 'primary.lighter',
|
||||||
@@ -103,17 +104,18 @@ setIshover('')
|
|||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
...(!drawerOpen && {
|
...(!drawerOpen && {
|
||||||
|
bgcolor: '#662582',
|
||||||
'&:hover': {
|
'&:hover': {
|
||||||
bgcolor: 'transparent',
|
// bgcolor: 'transparent',
|
||||||
// bgcolor:'#7b1fa2'
|
// bgcolor:'#7b1fa2'
|
||||||
|
bgcolor: '#662582'
|
||||||
|
|
||||||
},
|
},
|
||||||
'&.Mui-selected': {
|
'&.Mui-selected': {
|
||||||
'&:hover': {
|
'&:hover': {
|
||||||
bgcolor: 'transparent'
|
bgcolor: 'transparent'
|
||||||
},
|
},
|
||||||
bgcolor: 'transparent'
|
bgcolor: 'transparent'
|
||||||
|
// bgcolor:'#7b1fa2'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}}
|
}}
|
||||||
@@ -126,20 +128,20 @@ setIshover('')
|
|||||||
sx={{
|
sx={{
|
||||||
minWidth: 28,
|
minWidth: 28,
|
||||||
'&:hover': {
|
'&:hover': {
|
||||||
color:isSelected ? '#fff':iconSelectedColor ,
|
color: isSelected ? '#fff' : iconSelectedColor
|
||||||
},
|
},
|
||||||
color: isSelected ? iconSelectedColor : textColor,
|
color: isSelected ? iconSelectedColor : textColor,
|
||||||
|
|
||||||
...(!drawerOpen && {
|
...(!drawerOpen && {
|
||||||
borderRadius: 1.5,
|
borderRadius: 1.5,
|
||||||
width: 36,
|
width: 36,
|
||||||
height: 36,
|
height: 36,
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
justifyContent: 'center',
|
justifyContent: 'center',
|
||||||
|
|
||||||
'&:hover': {
|
'&:hover': {
|
||||||
// bgcolor: theme.palette.mode === ThemeMode.DARK ? 'secondary.light' : 'secondary.lighter'
|
// bgcolor: theme.palette.mode === ThemeMode.DARK ? 'secondary.light' : 'secondary.lighter'
|
||||||
bgcolor:'#7b1fa2'
|
bgcolor: '#7b1fa2'
|
||||||
|
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
...(!drawerOpen &&
|
...(!drawerOpen &&
|
||||||
@@ -157,7 +159,17 @@ setIshover('')
|
|||||||
{(drawerOpen || (!drawerOpen && level !== 1)) && (
|
{(drawerOpen || (!drawerOpen && level !== 1)) && (
|
||||||
<ListItemText
|
<ListItemText
|
||||||
primary={
|
primary={
|
||||||
<Typography variant="h6" sx={{ color: isSelected ? iconSelectedColor : textColor }}>
|
<Typography
|
||||||
|
variant="h6"
|
||||||
|
// sx={{ color: isSelected ? iconSelectedColor : textColor }}
|
||||||
|
sx={{
|
||||||
|
color: isSelected && !drawerOpen ? theme.palette.primary.main : !isSelected ? 'white' : theme.palette.primary.main,
|
||||||
|
bgcolor: isSelected && !drawerOpen ? theme.palette.primary.lighter : 'none',
|
||||||
|
padding: isSelected && !drawerOpen ? 0.8 : 'none',
|
||||||
|
borderRadius: isSelected && !drawerOpen ? 2 : 'none',
|
||||||
|
ml: isSelected && !drawerOpen ? 0.5 : 'none'
|
||||||
|
}}
|
||||||
|
>
|
||||||
{item.title}
|
{item.title}
|
||||||
</Typography>
|
</Typography>
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -44,7 +44,8 @@ const MainLayout = () => {
|
|||||||
<Box component="main" sx={{ width: 'calc(100% - 260px)', flexGrow: 1, p: { xs: 2, sm: 3 } }}>
|
<Box component="main" sx={{ width: 'calc(100% - 260px)', flexGrow: 1, p: { xs: 2, sm: 3 } }}>
|
||||||
<Toolbar sx={{ mt: isHorizontal ? 8 : 'inherit' }} />
|
<Toolbar sx={{ mt: isHorizontal ? 8 : 'inherit' }} />
|
||||||
<Container
|
<Container
|
||||||
maxWidth={container ? 'xl' : false}
|
// maxWidth={container ? 'xl' : false}
|
||||||
|
maxWidth
|
||||||
sx={{
|
sx={{
|
||||||
...(container && { px: { xs: 0, sm: 2 } }),
|
...(container && { px: { xs: 0, sm: 2 } }),
|
||||||
position: 'relative',
|
position: 'relative',
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
// third-party
|
// third-party
|
||||||
import { FormattedMessage } from 'react-intl';
|
import { FormattedMessage } from 'react-intl';
|
||||||
|
import { AiOutlineBarChart } from 'react-icons/ai';
|
||||||
|
|
||||||
// assets
|
// assets
|
||||||
import {
|
import {
|
||||||
@@ -57,12 +58,28 @@ const other = {
|
|||||||
icon: icons.ClockCircleOutlined
|
icon: icons.ClockCircleOutlined
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'clients',
|
id: 'Customers',
|
||||||
title: <FormattedMessage id="Customers" />,
|
title: <FormattedMessage id="Customers" />,
|
||||||
type: 'item',
|
type: 'item',
|
||||||
url: '/customers',
|
url: '/customers',
|
||||||
icon: icons.UserOutlined
|
icon: icons.UserOutlined
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id: 'Reports',
|
||||||
|
title: <FormattedMessage id="Reports" />,
|
||||||
|
type: 'collapse',
|
||||||
|
icon: AiOutlineBarChart,
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
id: 'OrdersDetails',
|
||||||
|
title: <FormattedMessage id="OrdersDetails" />,
|
||||||
|
type: 'item',
|
||||||
|
url: 'reports/ordersdetails',
|
||||||
|
icon: icons.UserOutlined
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
// {
|
// {
|
||||||
// id: 'account',
|
// id: 'account',
|
||||||
// title: <FormattedMessage id="Settings" />,
|
// title: <FormattedMessage id="Settings" />,
|
||||||
|
|||||||
176
src/pages/nearle/api/api.js
Normal file
176
src/pages/nearle/api/api.js
Normal file
@@ -0,0 +1,176 @@
|
|||||||
|
import axios from 'axios';
|
||||||
|
const tenid = localStorage.getItem('tenantid');
|
||||||
|
|
||||||
|
// ==============================|| fetchOrderSummary (orders)||============================== //
|
||||||
|
export const fetchOrderSummary = async () => {
|
||||||
|
const response = await axios.get(`${process.env.REACT_APP_URL}/orders/getordersummary`);
|
||||||
|
console.log('fetchOrderSummary', response.data.details);
|
||||||
|
return response.data.details;
|
||||||
|
};
|
||||||
|
|
||||||
|
// ==============================|| fetchLocationSummary (orders)||============================== //
|
||||||
|
export const fetchLocationSummary = async () => {
|
||||||
|
const response = await axios.get(`${process.env.REACT_APP_URL}/orders/getlocationsummary`);
|
||||||
|
console.log('fetchLocationSummary', response.data.details);
|
||||||
|
|
||||||
|
return response.data.details;
|
||||||
|
};
|
||||||
|
|
||||||
|
// ==============================|| fetchOrderInsight (orders)||============================== //
|
||||||
|
export const fetchOrderInsight = async () => {
|
||||||
|
const response = await axios.get(`${process.env.REACT_APP_URL}/orders/getorderinsight`);
|
||||||
|
console.log('fetchOrderInsight', response.data.details);
|
||||||
|
|
||||||
|
return response.data.details;
|
||||||
|
};
|
||||||
|
// ==============================|| fetchDeliverySummary (delivery)||============================== //
|
||||||
|
export const fetchDeliverySummary = async () => {
|
||||||
|
const response = await axios.get(`${process.env.REACT_APP_URL}/deliveries/deliverysummary`);
|
||||||
|
console.log('fetchDeliverySummary', response.data.details);
|
||||||
|
return response.data.details;
|
||||||
|
};
|
||||||
|
|
||||||
|
// ==============================|| fetchDeliveryInsight (delivery)||============================== //
|
||||||
|
export const fetchDeliveryInsight = async () => {
|
||||||
|
const response = await axios.get(`${process.env.REACT_APP_URL}/deliveries/getdeliveryinsight`);
|
||||||
|
console.log('fetchDeliveryInsight', response.data.details);
|
||||||
|
|
||||||
|
return response.data.details;
|
||||||
|
};
|
||||||
|
// ==============================|| fetchDeliveryLocationSummary (delivery)||============================== //
|
||||||
|
export const fetchDeliveryLocationSummary = async () => {
|
||||||
|
const response = await axios.get(`${process.env.REACT_APP_URL}/deliveries/getlocationsummary`);
|
||||||
|
console.log('fetchDeliveryLocationSummary', response.data.details);
|
||||||
|
|
||||||
|
return response.data.details;
|
||||||
|
};
|
||||||
|
|
||||||
|
// ==============================|| fetchAllTenants (clients)||============================== //
|
||||||
|
|
||||||
|
export const fetchAllTenants = async ({ queryKey }) => {
|
||||||
|
const [size, status, pageno, search, rough] = queryKey;
|
||||||
|
|
||||||
|
let url = '';
|
||||||
|
if (search) {
|
||||||
|
// url = `https://jupiter.nearle.app/live/api/v1/tenants/search/?keyword=${search}`;
|
||||||
|
url = `${process.env.REACT_APP_URL}/tenants/search/?keyword=${search}`;
|
||||||
|
} else {
|
||||||
|
// url = `https://jupiter.nearle.app/live/api/v1/tenants/getalltenants?pageno=${pageno}&pagesize=${size}`;
|
||||||
|
url = `${process.env.REACT_APP_URL}/tenants/getalltenants?pageno=${pageno}&pagesize=${size}`;
|
||||||
|
}
|
||||||
|
const response = await axios.get(url);
|
||||||
|
|
||||||
|
// tenants/search/?keyword=${search}
|
||||||
|
console.log('fetchAllTenants', response.data.details);
|
||||||
|
|
||||||
|
return response.data.details;
|
||||||
|
};
|
||||||
|
// ==============================|| fetchCustomersList (customers)||============================== //
|
||||||
|
export const fetchCustomersList = async ({ queryKey }) => {
|
||||||
|
const [pages] = queryKey;
|
||||||
|
const response = await axios.get(`${process.env.REACT_APP_URL}/customers/getallcustomers/?pageno=${pages}&pagesize=10`);
|
||||||
|
console.log('fetchCustomersList', response.data.details);
|
||||||
|
return response.data.details;
|
||||||
|
};
|
||||||
|
// ==============================|| fetchCustomersListBySearch (customers)||============================== //
|
||||||
|
export const fetchCustomersListBySearch = async ({ queryKey }) => {
|
||||||
|
const [search] = queryKey;
|
||||||
|
const response = await axios.get(search.lenght > 3 && `${process.env.REACT_APP_URL}/customers/search/?keyword=${search}`);
|
||||||
|
console.log('fetchCustomersListBySearch', response.data.details);
|
||||||
|
return response.data.details;
|
||||||
|
};
|
||||||
|
// ==============================|| fetchOrdersSummary (orders summary)||============================== //
|
||||||
|
export const fetchOrdersSummary = async ({ queryKey }) => {
|
||||||
|
console.log('queryKey for fetchOrdersSummary', queryKey);
|
||||||
|
const [id, startdate, enddate] = queryKey;
|
||||||
|
const response = await axios.get(
|
||||||
|
id == -1
|
||||||
|
? `${process.env.REACT_APP_URL}/deliveries/getreportsummary/?&fromdate=${startdate}&todate=${enddate}`
|
||||||
|
: `${process.env.REACT_APP_URL}/deliveries/getreportsummary/?partnerid=${id}&fromdate=${startdate}&todate=${enddate}`
|
||||||
|
);
|
||||||
|
console.log('fetchOrdersSummary', response.data.details);
|
||||||
|
|
||||||
|
return response.data.details;
|
||||||
|
};
|
||||||
|
// ==============================|| fetchLocations (orders summary))||============================== //
|
||||||
|
|
||||||
|
export const fetchLocations = async ({ queryKey }) => {
|
||||||
|
const response = await axios.get(`${process.env.REACT_APP_URL}/partners/getpartners`);
|
||||||
|
const updatedLocations = [
|
||||||
|
...response.data.details,
|
||||||
|
{ partnername: 'All', partnerid: -1 } // Add your new object here
|
||||||
|
];
|
||||||
|
console.log('fetchLocations', updatedLocations);
|
||||||
|
|
||||||
|
return updatedLocations;
|
||||||
|
};
|
||||||
|
// ==============================|| fetchAppLocations (report summary))||============================== //
|
||||||
|
|
||||||
|
export const fetchAppLocations = async ({ queryKey }) => {
|
||||||
|
const response = await axios.get(`${process.env.REACT_APP_URL}/partners/getpartners`);
|
||||||
|
const updatedLocations = [
|
||||||
|
...response.data.details,
|
||||||
|
{ partnername: 'All', applocationid: -1 } // Add your new object here
|
||||||
|
];
|
||||||
|
console.log('fetchAppLocations', updatedLocations);
|
||||||
|
|
||||||
|
return updatedLocations;
|
||||||
|
};
|
||||||
|
|
||||||
|
// ==============================|| fetchRidersSummary (riders summary)||============================== //
|
||||||
|
|
||||||
|
export const fetchRidersSummary = async ({ queryKey }) => {
|
||||||
|
console.log('queryKey for fetchRidersSummary', queryKey);
|
||||||
|
const [id, startdate, enddate] = queryKey;
|
||||||
|
const response = await axios.get(
|
||||||
|
id == -1
|
||||||
|
? `${process.env.REACT_APP_URL}/deliveries/getridersummary/?&fromdate=${startdate}&todate=${enddate}`
|
||||||
|
: `${process.env.REACT_APP_URL}/deliveries/getridersummary/?applocationid=${id}&fromdate=${startdate}&todate=${enddate}`
|
||||||
|
);
|
||||||
|
console.log('fetchRidersSummary', response.data.details);
|
||||||
|
|
||||||
|
return response.data.details;
|
||||||
|
};
|
||||||
|
|
||||||
|
// ==============================|| fetchorderdetails (orders detail)||============================== //
|
||||||
|
export const fetchorderdetails = async ({ queryKey }) => {
|
||||||
|
console.log('queryKey of fetchorderdetails', queryKey);
|
||||||
|
const [tabValue, appId, startdate, enddate] = queryKey;
|
||||||
|
let status = tabValue === 0 ? 'delivered' : tabValue === 1 ? 'pending' : 'cancelled';
|
||||||
|
const response = await axios.get(
|
||||||
|
// appId == -1
|
||||||
|
// ? `https://jupiter.nearle.app/live/api/v1/orders/getorders/?fromdate=${startdate}&todate=${enddate}`
|
||||||
|
// : `https://jupiter.nearle.app/live/api/v1/orders/getorders/?fromdate=${startdate}&todate=${enddate}&applocationid=${appId}`
|
||||||
|
`https://jupiter.nearle.app/live/api/v1/deliveries/getdeliveries/?tenantid=${tenid}&fromdate=${startdate}&todate=${enddate}`
|
||||||
|
);
|
||||||
|
console.log('fetchorderdetails', response.data.details);
|
||||||
|
|
||||||
|
return response.data.details;
|
||||||
|
};
|
||||||
|
// ==============================|| fetchCount (orders detail)||============================== //
|
||||||
|
export const fetchCount = async ({ queryKey }) => {
|
||||||
|
console.log('queryKey of fetchCount', queryKey);
|
||||||
|
const [startdate, enddate] = queryKey;
|
||||||
|
const response = await axios.get(`https://jupiter.nearle.app/live/api/v1/orders/getorders/?fromdate=${startdate}&todate=${enddate}`);
|
||||||
|
const calculateOrderCounts = () => {
|
||||||
|
let deliveredCount = 0;
|
||||||
|
let pendingCount = 0;
|
||||||
|
let cancelledCount = 0;
|
||||||
|
|
||||||
|
response.data.details.forEach((order) => {
|
||||||
|
const status = order.orderstatus;
|
||||||
|
if (status === 'delivered') {
|
||||||
|
deliveredCount++;
|
||||||
|
} else if (status === 'pending') {
|
||||||
|
pendingCount++;
|
||||||
|
} else if (status === 'cancelled') {
|
||||||
|
cancelledCount++;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
return { deliveredCount, pendingCount, cancelledCount };
|
||||||
|
};
|
||||||
|
console.log('fetchCount', calculateOrderCounts());
|
||||||
|
|
||||||
|
return calculateOrderCounts();
|
||||||
|
};
|
||||||
File diff suppressed because it is too large
Load Diff
1007
src/pages/nearle/reports/ordersDetails.js
Normal file
1007
src/pages/nearle/reports/ordersDetails.js
Normal file
File diff suppressed because it is too large
Load Diff
48
src/pages/nearle/titleCard.js
Normal file
48
src/pages/nearle/titleCard.js
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
import React from 'react';
|
||||||
|
import { useTheme } from '@mui/material/styles';
|
||||||
|
|
||||||
|
import {
|
||||||
|
Avatar,
|
||||||
|
Chip,
|
||||||
|
Grid,
|
||||||
|
Link,
|
||||||
|
Table,
|
||||||
|
TableBody,
|
||||||
|
TableCell,
|
||||||
|
TableContainer,
|
||||||
|
TableHead,
|
||||||
|
TableRow,
|
||||||
|
Typography,
|
||||||
|
CardContent,
|
||||||
|
Skeleton,
|
||||||
|
Stack,
|
||||||
|
CardActions,
|
||||||
|
Button,
|
||||||
|
List
|
||||||
|
} from '@mui/material';
|
||||||
|
const TitleCard = ({ title }) => {
|
||||||
|
const theme = useTheme();
|
||||||
|
return (
|
||||||
|
<Grid container spacing={2}>
|
||||||
|
<CardActions
|
||||||
|
sx={{
|
||||||
|
position: 'sticky',
|
||||||
|
top: '60px',
|
||||||
|
// top:0,
|
||||||
|
bgcolor: theme.palette.background.default,
|
||||||
|
zIndex: 1,
|
||||||
|
// borderBottom: `1px solid ${theme.palette.divider}`,
|
||||||
|
width: '100%'
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<Grid item xs={12}>
|
||||||
|
<Stack direction={'row'} justifyContent={'space-between'} sx={{ p: 1 }}>
|
||||||
|
<Typography variant="h3">{title}</Typography>
|
||||||
|
</Stack>
|
||||||
|
</Grid>
|
||||||
|
</CardActions>
|
||||||
|
</Grid>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default TitleCard;
|
||||||
@@ -17,7 +17,6 @@ const SamplePage = Loadable(lazy(() => import('pages/extra-pages/sample-page')))
|
|||||||
const Login = Loadable(lazy(() => import('pages/nearle/login')));
|
const Login = Loadable(lazy(() => import('pages/nearle/login')));
|
||||||
const Dashboard = Loadable(lazy(() => import('pages/nearle/dashboard')));
|
const Dashboard = Loadable(lazy(() => import('pages/nearle/dashboard')));
|
||||||
|
|
||||||
const Client = Loadable(lazy(() => import('pages/nearle/clients/client')));
|
|
||||||
const Client1 = Loadable(lazy(() => import('pages/nearle/clients/clients1')));
|
const Client1 = Loadable(lazy(() => import('pages/nearle/clients/clients1')));
|
||||||
|
|
||||||
const Orders = Loadable(lazy(() => import('pages/nearle/orders/orders')));
|
const Orders = Loadable(lazy(() => import('pages/nearle/orders/orders')));
|
||||||
@@ -30,7 +29,7 @@ const Createclient = Loadable(lazy(() => import('pages/nearle/clients/createclie
|
|||||||
|
|
||||||
const Createorder1 = Loadable(lazy(() => import('pages/nearle/orders/createorder1')));
|
const Createorder1 = Loadable(lazy(() => import('pages/nearle/orders/createorder1')));
|
||||||
|
|
||||||
|
const OrdersDetails = Loadable(lazy(() => import('pages/nearle/reports/ordersDetails')));
|
||||||
|
|
||||||
// ==============================|| MAIN ROUTING ||============================== //
|
// ==============================|| MAIN ROUTING ||============================== //
|
||||||
|
|
||||||
@@ -41,7 +40,7 @@ const MainRoutes = {
|
|||||||
path: '/',
|
path: '/',
|
||||||
element: (
|
element: (
|
||||||
// <AuthGuard>
|
// <AuthGuard>
|
||||||
<MainLayout />
|
<MainLayout />
|
||||||
// </AuthGuard>
|
// </AuthGuard>
|
||||||
),
|
),
|
||||||
children: [
|
children: [
|
||||||
@@ -85,13 +84,16 @@ const MainRoutes = {
|
|||||||
path: 'customers/create',
|
path: 'customers/create',
|
||||||
element: <Createclient />
|
element: <Createclient />
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: 'reports/ordersdetails',
|
||||||
|
element: <OrdersDetails />
|
||||||
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
path:'/login',
|
path: '/login',
|
||||||
element:<Login />
|
element: <Login />
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/maintenance',
|
path: '/maintenance',
|
||||||
|
|||||||
76
yarn.lock
76
yarn.lock
@@ -2054,6 +2054,21 @@
|
|||||||
rc-resize-observer "^1.3.1"
|
rc-resize-observer "^1.3.1"
|
||||||
rc-util "^5.38.0"
|
rc-util "^5.38.0"
|
||||||
|
|
||||||
|
"@react-dnd/asap@^5.0.1":
|
||||||
|
version "5.0.2"
|
||||||
|
resolved "https://registry.npmjs.org/@react-dnd/asap/-/asap-5.0.2.tgz"
|
||||||
|
integrity sha512-WLyfoHvxhs0V9U+GTsGilGgf2QsPl6ZZ44fnv0/b8T3nQyvzxidxsg/ZltbWssbsRDlYW8UKSQMTGotuTotZ6A==
|
||||||
|
|
||||||
|
"@react-dnd/invariant@^4.0.1":
|
||||||
|
version "4.0.2"
|
||||||
|
resolved "https://registry.npmjs.org/@react-dnd/invariant/-/invariant-4.0.2.tgz"
|
||||||
|
integrity sha512-xKCTqAK/FFauOM9Ta2pswIyT3D8AQlfrYdOi/toTPEhqCuAs1v5tcJ3Y08Izh1cJ5Jchwy9SeAXmMg6zrKs2iw==
|
||||||
|
|
||||||
|
"@react-dnd/shallowequal@^4.0.1":
|
||||||
|
version "4.0.2"
|
||||||
|
resolved "https://registry.npmjs.org/@react-dnd/shallowequal/-/shallowequal-4.0.2.tgz"
|
||||||
|
integrity sha512-/RVXdLvJxLg4QKvMoM5WlwNR9ViO9z8B/qPcc+C0Sa/teJY7QG7kJ441DwzOjMYEY7GmU4dj5EcGHIkKZiQZCA==
|
||||||
|
|
||||||
"@reduxjs/toolkit@^1.9.5":
|
"@reduxjs/toolkit@^1.9.5":
|
||||||
version "1.9.5"
|
version "1.9.5"
|
||||||
resolved "https://registry.npmjs.org/@reduxjs/toolkit/-/toolkit-1.9.5.tgz"
|
resolved "https://registry.npmjs.org/@reduxjs/toolkit/-/toolkit-1.9.5.tgz"
|
||||||
@@ -2348,6 +2363,18 @@
|
|||||||
"@svgr/plugin-jsx" "^7.0.0"
|
"@svgr/plugin-jsx" "^7.0.0"
|
||||||
"@svgr/plugin-svgo" "^7.0.0"
|
"@svgr/plugin-svgo" "^7.0.0"
|
||||||
|
|
||||||
|
"@tanstack/query-core@5.22.2":
|
||||||
|
version "5.22.2"
|
||||||
|
resolved "https://registry.npmjs.org/@tanstack/query-core/-/query-core-5.22.2.tgz"
|
||||||
|
integrity sha512-z3PwKFUFACMUqe1eyesCIKg3Jv1mysSrYfrEW5ww5DCDUD4zlpTKBvUDaEjsfZzL3ULrFLDM9yVUxI/fega1Qg==
|
||||||
|
|
||||||
|
"@tanstack/react-query@^5.22.2":
|
||||||
|
version "5.22.2"
|
||||||
|
resolved "https://registry.npmjs.org/@tanstack/react-query/-/react-query-5.22.2.tgz"
|
||||||
|
integrity sha512-TaxJDRzJ8/NWRT4lY2jguKCrNI6MRN+67dELzPjNUlvqzTxGANlMp68l7aC7hG8Bd1uHNxHl7ihv7MT50i/43A==
|
||||||
|
dependencies:
|
||||||
|
"@tanstack/query-core" "5.22.2"
|
||||||
|
|
||||||
"@tootallnate/once@1":
|
"@tootallnate/once@1":
|
||||||
version "1.1.2"
|
version "1.1.2"
|
||||||
resolved "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz"
|
resolved "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz"
|
||||||
@@ -2478,7 +2505,7 @@
|
|||||||
dependencies:
|
dependencies:
|
||||||
"@types/node" "*"
|
"@types/node" "*"
|
||||||
|
|
||||||
"@types/hoist-non-react-statics@^3.3.1":
|
"@types/hoist-non-react-statics@^3.3.1", "@types/hoist-non-react-statics@>= 3.3.1":
|
||||||
version "3.3.1"
|
version "3.3.1"
|
||||||
resolved "https://registry.npmjs.org/@types/hoist-non-react-statics/-/hoist-non-react-statics-3.3.1.tgz"
|
resolved "https://registry.npmjs.org/@types/hoist-non-react-statics/-/hoist-non-react-statics-3.3.1.tgz"
|
||||||
integrity sha512-iMIqiko6ooLrTh1joXodJK5X9xeEALT1kM5G3ZLhD3hszxBdIEd5C75U834D9mLcINgD4OyZf5uQXjkuYydWvA==
|
integrity sha512-iMIqiko6ooLrTh1joXodJK5X9xeEALT1kM5G3ZLhD3hszxBdIEd5C75U834D9mLcINgD4OyZf5uQXjkuYydWvA==
|
||||||
@@ -2544,7 +2571,7 @@
|
|||||||
resolved "https://registry.npmjs.org/@types/mime/-/mime-3.0.1.tgz"
|
resolved "https://registry.npmjs.org/@types/mime/-/mime-3.0.1.tgz"
|
||||||
integrity sha512-Y4XFY5VJAuw0FgAqPNd6NNoV44jbq9Bz2L7Rh/J6jLTiHBSBJa9fxqQIvkIld4GsoDOcCbvzOUAbLPsSKKg+uA==
|
integrity sha512-Y4XFY5VJAuw0FgAqPNd6NNoV44jbq9Bz2L7Rh/J6jLTiHBSBJa9fxqQIvkIld4GsoDOcCbvzOUAbLPsSKKg+uA==
|
||||||
|
|
||||||
"@types/node@*":
|
"@types/node@*", "@types/node@>= 12":
|
||||||
version "17.0.31"
|
version "17.0.31"
|
||||||
resolved "https://registry.npmjs.org/@types/node/-/node-17.0.31.tgz"
|
resolved "https://registry.npmjs.org/@types/node/-/node-17.0.31.tgz"
|
||||||
integrity sha512-AR0x5HbXGqkEx9CadRH3EBYx/VkiUgZIhP4wvPn/+5KIsgpNoyFaRlVe0Zlx9gRtg8fA06a9tskE2MSN7TcG4Q==
|
integrity sha512-AR0x5HbXGqkEx9CadRH3EBYx/VkiUgZIhP4wvPn/+5KIsgpNoyFaRlVe0Zlx9gRtg8fA06a9tskE2MSN7TcG4Q==
|
||||||
@@ -2586,7 +2613,7 @@
|
|||||||
dependencies:
|
dependencies:
|
||||||
"@types/react" "*"
|
"@types/react" "*"
|
||||||
|
|
||||||
"@types/react@*", "@types/react@^16.8 || ^17.0 || ^18.0", "@types/react@^17.0.0 || ^18.0.0", "@types/react@16 || 17 || 18":
|
"@types/react@*", "@types/react@^16.8 || ^17.0 || ^18.0", "@types/react@^17.0.0 || ^18.0.0", "@types/react@>= 16", "@types/react@16 || 17 || 18":
|
||||||
version "17.0.45"
|
version "17.0.45"
|
||||||
resolved "https://registry.npmjs.org/@types/react/-/react-17.0.45.tgz"
|
resolved "https://registry.npmjs.org/@types/react/-/react-17.0.45.tgz"
|
||||||
integrity sha512-YfhQ22Lah2e3CHPsb93tRwIGNiSwkuz1/blk4e6QrWS0jQzCSNbGLtOEYhPg02W0yGTTmpajp7dCTbBAMN3qsg==
|
integrity sha512-YfhQ22Lah2e3CHPsb93tRwIGNiSwkuz1/blk4e6QrWS0jQzCSNbGLtOEYhPg02W0yGTTmpajp7dCTbBAMN3qsg==
|
||||||
@@ -4655,6 +4682,15 @@ dlv@^1.1.3:
|
|||||||
resolved "https://registry.npmjs.org/dlv/-/dlv-1.1.3.tgz"
|
resolved "https://registry.npmjs.org/dlv/-/dlv-1.1.3.tgz"
|
||||||
integrity sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==
|
integrity sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==
|
||||||
|
|
||||||
|
dnd-core@^16.0.1:
|
||||||
|
version "16.0.1"
|
||||||
|
resolved "https://registry.npmjs.org/dnd-core/-/dnd-core-16.0.1.tgz"
|
||||||
|
integrity sha512-HK294sl7tbw6F6IeuK16YSBUoorvHpY8RHO+9yFfaJyCDVb6n7PRcezrOEOa2SBCqiYpemh5Jx20ZcjKdFAVng==
|
||||||
|
dependencies:
|
||||||
|
"@react-dnd/asap" "^5.0.1"
|
||||||
|
"@react-dnd/invariant" "^4.0.1"
|
||||||
|
redux "^4.2.0"
|
||||||
|
|
||||||
dns-equal@^1.0.0:
|
dns-equal@^1.0.0:
|
||||||
version "1.0.0"
|
version "1.0.0"
|
||||||
resolved "https://registry.npmjs.org/dns-equal/-/dns-equal-1.0.0.tgz"
|
resolved "https://registry.npmjs.org/dns-equal/-/dns-equal-1.0.0.tgz"
|
||||||
@@ -9063,6 +9099,11 @@ react-app-rewired@^2.2.1:
|
|||||||
dependencies:
|
dependencies:
|
||||||
semver "^5.6.0"
|
semver "^5.6.0"
|
||||||
|
|
||||||
|
react-csv@^2.2.2:
|
||||||
|
version "2.2.2"
|
||||||
|
resolved "https://registry.npmjs.org/react-csv/-/react-csv-2.2.2.tgz"
|
||||||
|
integrity sha512-RG5hOcZKZFigIGE8LxIEV/OgS1vigFQT4EkaHeKgyuCbUAu9Nbd/1RYq++bJcJJ9VOqO/n9TZRADsXNDR4VEpw==
|
||||||
|
|
||||||
react-dev-utils@^12.0.1:
|
react-dev-utils@^12.0.1:
|
||||||
version "12.0.1"
|
version "12.0.1"
|
||||||
resolved "https://registry.npmjs.org/react-dev-utils/-/react-dev-utils-12.0.1.tgz"
|
resolved "https://registry.npmjs.org/react-dev-utils/-/react-dev-utils-12.0.1.tgz"
|
||||||
@@ -9100,7 +9141,25 @@ react-device-detect@^2.2.3:
|
|||||||
dependencies:
|
dependencies:
|
||||||
ua-parser-js "^1.0.33"
|
ua-parser-js "^1.0.33"
|
||||||
|
|
||||||
react-dom@*, "react-dom@^16.8 || ^17.0 || ^18.0", "react-dom@^16.8.0 || ^17.0.0 || ^18.0.0", "react-dom@^17.0.0 || ^18.0.0", react-dom@^17.0.2, react-dom@^18.0.0, react-dom@^18.2.0, "react-dom@>= 0.14.0", react-dom@>=16.0.0, react-dom@>=16.11.0, react-dom@>=16.6.0, react-dom@>=16.8, react-dom@>=16.8.0, react-dom@>=16.9.0, "react-dom@16.2.0 - 18":
|
react-dnd-html5-backend@^16.0.1:
|
||||||
|
version "16.0.1"
|
||||||
|
resolved "https://registry.npmjs.org/react-dnd-html5-backend/-/react-dnd-html5-backend-16.0.1.tgz"
|
||||||
|
integrity sha512-Wu3dw5aDJmOGw8WjH1I1/yTH+vlXEL4vmjk5p+MHxP8HuHJS1lAGeIdG/hze1AvNeXWo/JgULV87LyQOr+r5jw==
|
||||||
|
dependencies:
|
||||||
|
dnd-core "^16.0.1"
|
||||||
|
|
||||||
|
react-dnd@^16.0.1:
|
||||||
|
version "16.0.1"
|
||||||
|
resolved "https://registry.npmjs.org/react-dnd/-/react-dnd-16.0.1.tgz"
|
||||||
|
integrity sha512-QeoM/i73HHu2XF9aKksIUuamHPDvRglEwdHL4jsp784BgUuWcg6mzfxT0QDdQz8Wj0qyRKx2eMg8iZtWvU4E2Q==
|
||||||
|
dependencies:
|
||||||
|
"@react-dnd/invariant" "^4.0.1"
|
||||||
|
"@react-dnd/shallowequal" "^4.0.1"
|
||||||
|
dnd-core "^16.0.1"
|
||||||
|
fast-deep-equal "^3.1.3"
|
||||||
|
hoist-non-react-statics "^3.3.2"
|
||||||
|
|
||||||
|
react-dom@*, "react-dom@^16.8 || ^17.0 || ^18.0", "react-dom@^16.8.0 || ^17.0.0 || ^18.0.0", "react-dom@^17.0.0 || ^18.0.0", react-dom@^17.0.2, react-dom@^18.0.0, react-dom@^18.2.0, "react-dom@>= 0.14.0", "react-dom@>=16 || >=17 || >= 18", react-dom@>=16.0.0, react-dom@>=16.11.0, react-dom@>=16.6.0, react-dom@>=16.8, react-dom@>=16.8.0, react-dom@>=16.9.0, "react-dom@16.2.0 - 18":
|
||||||
version "18.2.0"
|
version "18.2.0"
|
||||||
resolved "https://registry.npmjs.org/react-dom/-/react-dom-18.2.0.tgz"
|
resolved "https://registry.npmjs.org/react-dom/-/react-dom-18.2.0.tgz"
|
||||||
integrity sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g==
|
integrity sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g==
|
||||||
@@ -9281,7 +9340,12 @@ react-transition-group@^4.4.5:
|
|||||||
loose-envify "^1.4.0"
|
loose-envify "^1.4.0"
|
||||||
prop-types "^15.6.2"
|
prop-types "^15.6.2"
|
||||||
|
|
||||||
react@*, "react@^16.6.0 || 17 || 18", "react@^16.8 || ^17.0 || ^18.0", "react@^16.8.0 || ^17.0.0 || ^18.0.0", "react@^16.9.0 || ^17.0.0 || ^18", "react@^17.0.0 || ^18.0.0", react@^17.0.2, react@^18.0.0, react@^18.2.0, "react@>= 0.14.0", "react@>= 16", react@>=16.0.0, react@>=16.11.0, react@>=16.6.0, react@>=16.8, react@>=16.8.0, react@>=16.9.0, "react@16.2.0 - 18":
|
react-virtuoso@^4.7.0:
|
||||||
|
version "4.7.0"
|
||||||
|
resolved "https://registry.npmjs.org/react-virtuoso/-/react-virtuoso-4.7.0.tgz"
|
||||||
|
integrity sha512-cpgvI1rSOETGDMhqVAVDuH+XHbWO1uIGKv5I6l4CyC71xWYUeGrE5n7sgTZklROB4+Vbv85pcgfWloTlY48HGQ==
|
||||||
|
|
||||||
|
react@*, "react@^16.6.0 || 17 || 18", "react@^16.8 || ^17.0 || ^18.0", "react@^16.8.0 || ^17.0.0 || ^18.0.0", "react@^16.9.0 || ^17.0.0 || ^18", "react@^17.0.0 || ^18.0.0", react@^17.0.2, react@^18.0.0, react@^18.2.0, "react@>= 0.14.0", "react@>= 16", "react@>= 16.14", "react@>=16 || >=17 || >= 18", react@>=16.0.0, react@>=16.11.0, react@>=16.6.0, react@>=16.8, react@>=16.8.0, react@>=16.9.0, "react@16.2.0 - 18":
|
||||||
version "18.2.0"
|
version "18.2.0"
|
||||||
resolved "https://registry.npmjs.org/react/-/react-18.2.0.tgz"
|
resolved "https://registry.npmjs.org/react/-/react-18.2.0.tgz"
|
||||||
integrity sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==
|
integrity sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==
|
||||||
@@ -9359,7 +9423,7 @@ redux-thunk@^2.4.2:
|
|||||||
resolved "https://registry.npmjs.org/redux-thunk/-/redux-thunk-2.4.2.tgz"
|
resolved "https://registry.npmjs.org/redux-thunk/-/redux-thunk-2.4.2.tgz"
|
||||||
integrity sha512-+P3TjtnP0k/FEjcBL5FZpoovtvrTNT/UXd4/sluaSyrURlSlhLSzEdfsTBW7WsKB6yPvgd7q/iZPICFjW4o57Q==
|
integrity sha512-+P3TjtnP0k/FEjcBL5FZpoovtvrTNT/UXd4/sluaSyrURlSlhLSzEdfsTBW7WsKB6yPvgd7q/iZPICFjW4o57Q==
|
||||||
|
|
||||||
redux@^4, redux@^4.2.1:
|
redux@^4, redux@^4.2.0, redux@^4.2.1:
|
||||||
version "4.2.1"
|
version "4.2.1"
|
||||||
resolved "https://registry.npmjs.org/redux/-/redux-4.2.1.tgz"
|
resolved "https://registry.npmjs.org/redux/-/redux-4.2.1.tgz"
|
||||||
integrity sha512-LAUYz4lc+Do8/g7aeRa8JkyDErK6ekstQaqWQrNRW//MY1TvCEpMtpTWvlQ+FPbWCx+Xixu/6SHt5N0HR+SB4w==
|
integrity sha512-LAUYz4lc+Do8/g7aeRa8JkyDErK6ekstQaqWQrNRW//MY1TvCEpMtpTWvlQ+FPbWCx+Xixu/6SHt5N0HR+SB4w==
|
||||||
|
|||||||
Reference in New Issue
Block a user