@solidstarters/solid-core-ui 1.1.59 → 1.1.61

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.
Files changed (63) hide show
  1. package/dist/components/Svg/ExcelSvg.d.ts +6 -0
  2. package/dist/components/Svg/ExcelSvg.d.ts.map +1 -0
  3. package/dist/components/Svg/ExcelSvg.js +6 -0
  4. package/dist/components/Svg/ExcelSvg.js.map +1 -0
  5. package/dist/components/Svg/PDFSvg.d.ts +5 -1
  6. package/dist/components/Svg/PDFSvg.d.ts.map +1 -1
  7. package/dist/components/Svg/PDFSvg.js +3 -2
  8. package/dist/components/Svg/PDFSvg.js.map +1 -1
  9. package/dist/components/auth/GoogleAuthChecking.js +1 -1
  10. package/dist/components/auth/GoogleAuthChecking.js.map +1 -1
  11. package/dist/components/auth/SolidInitialLoginOtp.d.ts.map +1 -1
  12. package/dist/components/auth/SolidInitialLoginOtp.js +31 -18
  13. package/dist/components/auth/SolidInitialLoginOtp.js.map +1 -1
  14. package/dist/components/auth/SolidOTPVerify.js +1 -1
  15. package/dist/components/auth/SolidOTPVerify.js.map +1 -1
  16. package/dist/components/common/CancelButton.d.ts.map +1 -1
  17. package/dist/components/common/CancelButton.js +8 -4
  18. package/dist/components/common/CancelButton.js.map +1 -1
  19. package/dist/components/common/SolidBreadcrumb.d.ts.map +1 -1
  20. package/dist/components/common/SolidBreadcrumb.js +32 -15
  21. package/dist/components/common/SolidBreadcrumb.js.map +1 -1
  22. package/dist/components/core/form/fields/SolidDateField.d.ts.map +1 -1
  23. package/dist/components/core/form/fields/SolidDateField.js +1 -1
  24. package/dist/components/core/form/fields/SolidDateField.js.map +1 -1
  25. package/dist/components/core/form/fields/SolidDateTimeField.d.ts.map +1 -1
  26. package/dist/components/core/form/fields/SolidDateTimeField.js +1 -1
  27. package/dist/components/core/form/fields/SolidDateTimeField.js.map +1 -1
  28. package/dist/components/core/kanban/KanbanBoard.d.ts.map +1 -1
  29. package/dist/components/core/kanban/KanbanBoard.js +1 -1
  30. package/dist/components/core/kanban/KanbanBoard.js.map +1 -1
  31. package/dist/components/core/kanban/KanbanCard.d.ts.map +1 -1
  32. package/dist/components/core/kanban/KanbanCard.js +4 -1
  33. package/dist/components/core/kanban/KanbanCard.js.map +1 -1
  34. package/dist/components/core/kanban/SolidKanbanView.d.ts.map +1 -1
  35. package/dist/components/core/kanban/SolidKanbanView.js +43 -13
  36. package/dist/components/core/kanban/SolidKanbanView.js.map +1 -1
  37. package/dist/components/core/kanban/kanban-fields/SolidMediaSingleKanbanField.d.ts.map +1 -1
  38. package/dist/components/core/kanban/kanban-fields/SolidMediaSingleKanbanField.js +6 -2
  39. package/dist/components/core/kanban/kanban-fields/SolidMediaSingleKanbanField.js.map +1 -1
  40. package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.d.ts.map +1 -1
  41. package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.js +3 -2
  42. package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.js.map +1 -1
  43. package/dist/components/core/list/SolidListView.d.ts.map +1 -1
  44. package/dist/components/core/list/SolidListView.js +3 -0
  45. package/dist/components/core/list/SolidListView.js.map +1 -1
  46. package/dist/resources/globals.css +14 -7
  47. package/package.json +1 -1
  48. package/src/components/Svg/ExcelSvg.tsx +15 -0
  49. package/src/components/Svg/PDFSvg.tsx +6 -3
  50. package/src/components/auth/GoogleAuthChecking.tsx +1 -1
  51. package/src/components/auth/SolidInitialLoginOtp.tsx +13 -2
  52. package/src/components/auth/SolidOTPVerify.tsx +1 -1
  53. package/src/components/common/CancelButton.tsx +12 -6
  54. package/src/components/common/SolidBreadcrumb.tsx +79 -60
  55. package/src/components/core/form/fields/SolidDateField.tsx +1 -0
  56. package/src/components/core/form/fields/SolidDateTimeField.tsx +1 -0
  57. package/src/components/core/kanban/KanbanBoard.tsx +3 -2
  58. package/src/components/core/kanban/KanbanCard.tsx +6 -3
  59. package/src/components/core/kanban/SolidKanbanView.tsx +44 -17
  60. package/src/components/core/kanban/kanban-fields/SolidMediaSingleKanbanField.tsx +14 -4
  61. package/src/components/core/kanban/kanban-fields/SolidShortTextKanbanField.tsx +4 -8
  62. package/src/components/core/list/SolidListView.tsx +4 -1
  63. package/src/resources/globals.css +14 -7
@@ -2951,22 +2951,28 @@ li.header-li-px {
2951
2951
  .kanban-ungrouped-column-content {
2952
2952
  display: flex;
2953
2953
  flex-wrap: wrap;
2954
- gap: 10px;
2954
+ column-gap: 25px;
2955
+ row-gap: 10px;
2955
2956
  }
2956
2957
 
2957
2958
  .kanban-ungrouped-column .kanban-card-container {
2958
- flex: 1 1 calc(20% - 10px);
2959
- max-width: calc(20% - 10px);
2959
+ flex: 1 1 calc(20% - 20px);
2960
+ max-width: calc(20% - 20px);
2960
2961
  }
2961
2962
 
2962
2963
  .solid-kanban-card {
2963
2964
  box-shadow: none;
2964
2965
  border-radius: 0.5rem;
2965
- border: 1px solid rgba(216, 226, 234, 0.60);
2966
- background: #FFF;
2966
+ border: 1px solid #E0E0E0;
2967
+ background: #FAFAFA;
2967
2968
  padding: 9px;
2969
+ transition: 0.2s linear;
2968
2970
  }
2969
2971
 
2972
+ .solid-kanban-card:hover {
2973
+ border: 1px solid #722ED1;
2974
+ background: #F9F0FF;
2975
+ }
2970
2976
 
2971
2977
  .solid-media-card {
2972
2978
  box-shadow: none;
@@ -3024,7 +3030,8 @@ flex-shrink: 0; */
3024
3030
  border-radius: 8px;
3025
3031
  max-height: 120px;
3026
3032
  object-fit: contain;
3027
- box-shadow: rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;
3033
+ /* box-shadow: rgba(0, 0, 0, 0.05) 0px 1px 2px 0px; */
3034
+ background-color: #fff;
3028
3035
  }
3029
3036
 
3030
3037
 
@@ -3059,7 +3066,7 @@ flex-shrink: 0; */
3059
3066
  .solid-kanban-board-wrapper {
3060
3067
  border-top: 1px solid #CED0D6;
3061
3068
  overflow: hidden;
3062
- height: calc(100vh - 64px) !important;
3069
+ height: calc(100vh - 65px) !important;
3063
3070
  }
3064
3071
 
3065
3072
  .solid-kanban-board-scroll-context {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solidstarters/solid-core-ui",
3
- "version": "1.1.59",
3
+ "version": "1.1.61",
4
4
  "scripts": {
5
5
  "prebuild": "npm run copy-styles",
6
6
  "build": "tsc && tsc-alias",
@@ -0,0 +1,15 @@
1
+ import React from 'react'
2
+ interface MediaProps {
3
+ size?: any
4
+ }
5
+ export const ExcelSvg = (props: MediaProps) => {
6
+ const { size } = props;
7
+ return (
8
+ <svg width={size ? size : 80} height={size ? size : 80} viewBox="0 0 80 80" fill="none" xmlns="http://www.w3.org/2000/svg">
9
+ <path d="M15 10.4147V10.4146C14.9999 5.29959 19.6888 1 25.3892 1H53.5858L77 24.4142V69.5852C77 74.7288 72.5287 78.9999 66.8806 78.9999H25.1406C19.47 78.9999 15 74.7276 15 69.5852V10.4147Z" fill="white" stroke="#DBDBDB" stroke-width="2" />
10
+ <path d="M54.0513 16.32V0L78 24H62.0342C54.8496 24 53.7187 18.88 54.0513 16.32Z" fill="#D4D4D8" />
11
+ <rect x="2" y="38" width="51" height="30" rx="6" fill="#079455" />
12
+ <path d="M13.7955 46.9091L16.4354 51.3707H16.5376L19.1903 46.9091H22.3161L18.321 53.4545L22.4055 60H19.2223L16.5376 55.532H16.4354L13.7507 60H10.5803L14.6776 53.4545L10.657 46.9091H13.7955ZM24.0675 60V46.9091H26.8352V57.718H32.4474V60H24.0675ZM41.3819 50.674C41.3308 50.1584 41.1113 49.7578 40.7235 49.4723C40.3358 49.1868 39.8095 49.044 39.1447 49.044C38.693 49.044 38.3116 49.108 38.0005 49.2358C37.6895 49.3594 37.4508 49.532 37.2846 49.7536C37.1227 49.9751 37.0417 50.2266 37.0417 50.5078C37.0332 50.7422 37.0822 50.9467 37.1887 51.1214C37.2995 51.2962 37.4508 51.4474 37.6426 51.5753C37.8343 51.6989 38.0559 51.8075 38.3074 51.9013C38.5588 51.9908 38.8272 52.0675 39.1127 52.1314L40.2889 52.4126C40.8599 52.5405 41.3841 52.7109 41.8613 52.924C42.3386 53.1371 42.752 53.3991 43.1014 53.7102C43.4508 54.0213 43.7214 54.3878 43.9132 54.8097C44.1092 55.2315 44.2093 55.7152 44.2136 56.2607C44.2093 57.0618 44.0048 57.7564 43.6 58.3445C43.1994 58.9283 42.6199 59.3821 41.8613 59.706C41.1071 60.0256 40.1973 60.1854 39.1319 60.1854C38.0751 60.1854 37.1547 60.0234 36.3706 59.6996C35.5907 59.3757 34.9814 58.8963 34.5424 58.2614C34.1078 57.6222 33.8798 56.8317 33.8585 55.8899H36.5368C36.5666 56.3288 36.6923 56.6953 36.9139 56.9893C37.1397 57.2791 37.4402 57.4986 37.8152 57.6477C38.1944 57.7926 38.6227 57.8651 39.1 57.8651C39.5687 57.8651 39.9757 57.7969 40.3208 57.6605C40.6703 57.5241 40.9409 57.3345 41.1326 57.0916C41.3244 56.8487 41.4203 56.5696 41.4203 56.2543C41.4203 55.9602 41.3329 55.7131 41.1582 55.5128C40.9877 55.3125 40.7363 55.142 40.4039 55.0014C40.0758 54.8608 39.6731 54.733 39.1958 54.6179L37.7704 54.2599C36.6667 53.9915 35.7953 53.5717 35.1561 53.0007C34.5169 52.4297 34.1994 51.6605 34.2037 50.6932C34.1994 49.9006 34.4103 49.2081 34.8365 48.6158C35.2669 48.0234 35.8571 47.5611 36.6071 47.2287C37.3571 46.8963 38.2093 46.7301 39.1639 46.7301C40.1355 46.7301 40.9835 46.8963 41.7079 47.2287C42.4366 47.5611 43.0034 48.0234 43.4082 48.6158C43.813 49.2081 44.0218 49.8942 44.0346 50.674H41.3819Z" fill="white" />
13
+ </svg>
14
+ )
15
+ }
@@ -1,8 +1,11 @@
1
1
  import React from 'react'
2
-
3
- export const PDFSvg = () => {
2
+ interface MediaProps {
3
+ size?: any
4
+ }
5
+ export const PDFSvg = (props: MediaProps) => {
6
+ const { size } = props;
4
7
  return (
5
- <svg width="80" height="80" viewBox="0 0 80 80" fill="none" xmlns="http://www.w3.org/2000/svg">
8
+ <svg width={size ? size : 80} height={size ? size : 80} viewBox="0 0 80 80" fill="none" xmlns="http://www.w3.org/2000/svg">
6
9
  <path d="M15 10.4147V10.4146C14.9999 5.29959 19.6888 1 25.3892 1H53.5858L77 24.4142V69.5852C77 74.7288 72.5287 78.9999 66.8806 78.9999H25.1406C19.47 78.9999 15 74.7276 15 69.5852V10.4147Z" fill="white" stroke="#DBDBDB" stroke-width="2" />
7
10
  <path d="M54.0513 16.32V0L78 24H62.0342C54.8496 24 53.7187 18.88 54.0513 16.32Z" fill="#D4D4D8" />
8
11
  <rect x="2" y="38" width="52" height="30" rx="6" fill="#E62E05" />
@@ -34,7 +34,7 @@ export const GoogleAuthChecking = () => {
34
34
  setError("Authentication failed.")
35
35
  } else {
36
36
  showToast("success", "Login Success", "Redirecting to dashboard...");
37
- router.push("/admin/core/solid-core/user/list");
37
+ router.push(`${process.env.NEXT_PUBLIC_LOGIN_REDIRECT_URL}`);
38
38
  }
39
39
  } catch (err: any) {
40
40
  showToast("error", "Login Error", err?.data?.message || "Authentication failed.");
@@ -14,6 +14,7 @@ import { Toast } from "primereact/toast";
14
14
  import { useEffect, useRef } from "react";
15
15
  import * as Yup from "yup";
16
16
  import SolidLogo from '../../resources/images/SS-Logo.png'
17
+ import { signIn } from "next-auth/react";
17
18
 
18
19
  const SolidInitialLoginOtp = () => {
19
20
  const searchParams = useSearchParams();
@@ -84,8 +85,18 @@ const SolidInitialLoginOtp = () => {
84
85
  const response = await initiateOtpLogin(payload).unwrap(); // Call mutation trigger
85
86
 
86
87
  if (response?.statusCode === 200) {
87
- showToast("success", "Login Successfully", "Login");
88
- router.push(`/admin/core/solid-core/user/list`);
88
+ const otpResponse = await signIn("credentials", {
89
+ redirect: false,
90
+ accessToken: response?.data?.accessToken,
91
+ email: response?.data?.user?.email,
92
+ });
93
+
94
+ if (otpResponse?.error) {
95
+ showToast("error", "Login Error", otpResponse.error);
96
+ } else {
97
+ showToast("success", "Login Success", "Redirecting to dashboard...");
98
+ router.push(`${process.env.NEXT_PUBLIC_LOGIN_REDIRECT_URL}`);
99
+ }
89
100
  } else {
90
101
  showToast("error", "Invalid OTP", response.error);
91
102
  setErrors({
@@ -90,7 +90,7 @@ const SolidOTPVerify = () => {
90
90
  showToast("error", "Login Error", response.error);
91
91
  } else {
92
92
  showToast("success", "Login Success", "Redirecting to dashboard...");
93
- router.push("/admin/core/solid-core/user/list");
93
+ router.push(`${process.env.NEXT_PUBLIC_LOGIN_REDIRECT_URL}`);
94
94
  }
95
95
 
96
96
  }}
@@ -18,7 +18,7 @@ export const CancelButton = () => {
18
18
  };
19
19
  return (
20
20
  <div>
21
- <Button outlined size="small" type="button" label="Close" onClick={handleGoBack} className='bg-primary-reverse'/>
21
+ <Button outlined size="small" type="button" label="Close" onClick={handleGoBack} className='bg-primary-reverse' />
22
22
  </div>
23
23
  )
24
24
  }
@@ -28,15 +28,21 @@ export const SolidCancelButton = () => {
28
28
  const pathname = usePathname(); // Get the current path
29
29
 
30
30
  const handleGoBack = () => {
31
- const segments = pathname.split('/').filter(Boolean); // Split and filter empty segments
32
- if (segments.length > 1) {
33
- const newPath = '/' + segments.slice(0, -2).join('/') + '/list'; // Remove last segment and add "/all"
34
- router.push(newPath); // Navigate to the parent route with "/all"
31
+ let fromView: string | null = null;
32
+ if (typeof window !== "undefined") {
33
+ fromView = sessionStorage.getItem("fromView");
35
34
  }
35
+
36
+ // Default to 'list' if not available
37
+ const view = fromView === "kanban" ? "kanban" : "list";
38
+
39
+ // Navigate back to the previous path with the appropriate view type
40
+ const newPath = pathname.replace(/\/form\/[^/]+$/, `/${view}`);
41
+ router.push(newPath);
36
42
  };
37
43
  return (
38
44
  <div>
39
- <Button outlined size="small" type="button" label="Close" onClick={handleGoBack} className='bg-primary-reverse'/>
45
+ <Button outlined size="small" type="button" label="Close" onClick={handleGoBack} className='bg-primary-reverse' />
40
46
  </div>
41
47
  )
42
48
  }
@@ -3,82 +3,101 @@
3
3
  import Link from "next/link";
4
4
  import { usePathname, useRouter, useSearchParams } from "next/navigation";
5
5
  import { BreadCrumb } from "primereact/breadcrumb";
6
- import { useEffect } from "react";
6
+ import { useEffect, useState } from "react";
7
7
 
8
8
  interface BreadcrumbItem {
9
- label: string;
10
- link?: string;
9
+ label: string;
10
+ link?: string;
11
11
  }
12
12
 
13
13
  interface Props {
14
- solidFormViewMetaData?: any;
15
- initialEntityData?: any;
14
+ solidFormViewMetaData?: any;
15
+ initialEntityData?: any;
16
16
  }
17
17
 
18
18
  export const SolidBreadcrumb = (props: Props) => {
19
- const { solidFormViewMetaData, initialEntityData } = props;
20
- const modelMetadata = solidFormViewMetaData?.data?.solidView?.model;
21
- const pathname = usePathname();
22
- const router = useRouter();
23
- const searchParams = useSearchParams();
24
- const segments = pathname.split("/").filter(Boolean); // Remove empty segments
25
-
26
- let userKeyFieldValue: string | null = null;
27
-
28
- if (modelMetadata?.userKeyField) {
29
- const userKeyFieldName = modelMetadata.userKeyField.name; // Get the name from userKeyField
30
- if (userKeyFieldName && initialEntityData?.[userKeyFieldName] !== undefined) {
31
- userKeyFieldValue = initialEntityData[userKeyFieldName]; // Get the value from initialEntityData
32
- }
19
+ const { solidFormViewMetaData, initialEntityData } = props;
20
+ const modelMetadata = solidFormViewMetaData?.data?.solidView?.model;
21
+ const pathname = usePathname();
22
+ const router = useRouter();
23
+ const searchParams = useSearchParams();
24
+ const segments = pathname.split("/").filter(Boolean);
25
+
26
+ let userKeyFieldValue: string | null = null;
27
+
28
+ if (modelMetadata?.userKeyField) {
29
+ const userKeyFieldName = modelMetadata.userKeyField.name;
30
+ if (userKeyFieldName && initialEntityData?.[userKeyFieldName] !== undefined) {
31
+ userKeyFieldValue = initialEntityData[userKeyFieldName];
33
32
  }
33
+ }
34
34
 
35
- // Extract userKeyField from URL query params
36
- const queryUserKeyField = searchParams.get("userKeyField");
35
+ const queryUserKeyField = searchParams.get("userKeyField");
37
36
 
38
- // Append `userKeyField` to browser URL if not already present
39
- useEffect(() => {
40
- if (segments.length === 6 && segments[4] === "form" && userKeyFieldValue && !queryUserKeyField) {
41
- const newUrl = `${pathname}?userKeyField=${encodeURIComponent(userKeyFieldValue)}`;
42
- router.replace(newUrl, { scroll: false }); // Update URL without reloading
43
- }
44
- }, [pathname, userKeyFieldValue, queryUserKeyField, router]);
37
+ useEffect(() => {
38
+ if (segments.length === 6 && segments[4] === "form" && userKeyFieldValue && !queryUserKeyField) {
39
+ const newUrl = `${pathname}?userKeyField=${encodeURIComponent(userKeyFieldValue)}`;
40
+ router.replace(newUrl, { scroll: false });
41
+ }
42
+ }, [pathname, userKeyFieldValue, queryUserKeyField, router]);
45
43
 
46
- let breadcrumbItems: BreadcrumbItem[] = [];
44
+ const [fromView, setFromView] = useState<"list" | "kanban" | null>(null);
47
45
 
48
- if (segments.length >= 4 && segments[0] === "admin" && segments[1] === "core") {
49
- const moduleName = segments[2].replace(/-/g, " "); // Convert kebab-case to normal text
50
- const modelName = segments[3].replace(/-/g, " ");
46
+ useEffect(() => {
47
+ if (typeof window !== "undefined") {
48
+ const storedView = sessionStorage.getItem("fromView");
49
+ console.log("📌 fromView loaded from sessionStorage:", storedView);
50
+ if (storedView === "list" || storedView === "kanban") {
51
+ setFromView(storedView);
52
+ }
53
+ }
54
+ }, []);
51
55
 
52
- // 4th segment: Always "home"
53
- breadcrumbItems.push({ label: moduleName, link: `/admin/core/${segments[2]}/home` });
56
+ let breadcrumbItems: BreadcrumbItem[] = [];
54
57
 
55
- // 5th segment: Determine if it's "List" or the model name
56
- if (segments.length >= 5) {
57
- if (segments[4] === "form" && segments.length === 6) {
58
- breadcrumbItems.push({ label: "List", link: `/admin/core/${segments[2]}/${segments[3]}/list` });
59
- } else {
60
- breadcrumbItems.push({ label: modelName, link: `/admin/core/${segments[2]}/${segments[3]}` });
61
- }
62
- }
58
+ if (segments.length >= 4 && segments[0] === "admin" && segments[1] === "core") {
59
+ const moduleName = segments[2].replace(/-/g, " ");
60
+ const modelName = segments[3].replace(/-/g, " ");
63
61
 
64
- // 6th segment: If in "form/[id]" mode, show the final value or ID
65
- if (segments.length === 6 && segments[4] === "form") {
66
- breadcrumbItems.push({ label: queryUserKeyField || segments[5] });
67
- }
62
+ breadcrumbItems.push({
63
+ label: moduleName,
64
+ link: `/admin/core/${segments[2]}/home`,
65
+ });
66
+
67
+ if (segments.length >= 5) {
68
+ if (segments[4] === "form" && segments.length === 6) {
69
+ const view = fromView ?? "list";
70
+ breadcrumbItems.push({
71
+ label: view === "kanban" ? "Kanban" : "List",
72
+ link: `/admin/core/${segments[2]}/${segments[3]}/${view}`,
73
+ });
74
+ } else {
75
+ breadcrumbItems.push({
76
+ label: modelName,
77
+ link: `/admin/core/${segments[2]}/${segments[3]}`,
78
+ });
79
+ }
80
+ }
81
+
82
+ if (segments.length === 6 && segments[4] === "form") {
83
+ breadcrumbItems.push({
84
+ label: queryUserKeyField || segments[5],
85
+ });
68
86
  }
87
+ }
88
+
89
+ const items = breadcrumbItems.map((item) => ({
90
+ label: item.label,
91
+ ...(item.link
92
+ ? {
93
+ template: () => (
94
+ <Link href={item.link!}>
95
+ <p className="text-primary font-normal">{item.label}</p>
96
+ </Link>
97
+ ),
98
+ }
99
+ : {}),
100
+ }));
69
101
 
70
- const items = breadcrumbItems.map((item) => ({
71
- label: item.label,
72
- ...(item.link
73
- ? {
74
- template: () => (
75
- <Link href={item.link!}>
76
- <p className="text-primary font-normal">{item.label}</p>
77
- </Link>
78
- ),
79
- }
80
- : {}),
81
- }));
82
-
83
- return <BreadCrumb model={items} className="solid-breadcrumb" />;
102
+ return <BreadCrumb model={items} className="solid-breadcrumb" />;
84
103
  };
@@ -89,6 +89,7 @@ export class SolidDateField implements ISolidField {
89
89
  ref={calendarRef} // Attach ref to Calendar
90
90
  id={fieldLayoutInfo.attrs.name}
91
91
  aria-describedby={`${fieldLayoutInfo.attrs.name}-help`}
92
+ name={fieldMetadata.name}
92
93
  // onChange={formik.handleChange}
93
94
  onChange={(e) => this.fieldContext.onChange(e, 'onFieldChange')}
94
95
  //@ts-ignore
@@ -87,6 +87,7 @@ export class SolidDateTimeField implements ISolidField {
87
87
  ref={calendarRef} // Attach ref to Calendar
88
88
  id={fieldLayoutInfo.attrs.name}
89
89
  aria-describedby={`${fieldLayoutInfo.attrs.name}-help`}
90
+ name={fieldMetadata.name}
90
91
  // onChange={formik.handleChange}
91
92
  onChange={(e) => this.fieldContext.onChange(e, 'onFieldChange')}
92
93
  //@ts-ignore
@@ -118,8 +118,9 @@ export const KanbanBoard = ({ groupedView, kanbanViewData, solidKanbanViewMetaDa
118
118
  );
119
119
  })}
120
120
  {groupedView !== false &&
121
- <div className="kanban-load-more-folded">
122
- <Button className="kaban-load-more" size="small" text onClick={handleSwimLanePagination}>load More</Button></div>
121
+ <div>
122
+ <Button size="small" style={{ textWrap: 'nowrap' }} text onClick={handleSwimLanePagination}>Load More...</Button>
123
+ </div>
123
124
  }
124
125
  </div>
125
126
  </DragDropContext>
@@ -180,13 +180,16 @@ const KanbanCard: React.FC<KanbanCardProps> = ({ data, solidKanbanViewMetaData,
180
180
  style={{
181
181
  opacity: snapshot.isDragging ? 0.9 : 1,
182
182
  transform: snapshot.isDragging ? "rotate(-2deg)" : "",
183
- cursor:'pointer'
183
+ cursor: 'pointer'
184
184
  }}
185
185
  elevation={snapshot.isDragging ? 3 : 1}
186
186
  className={`${!groupedView ? 'solid-media-card' : 'solid-kanban-card'}`}
187
- onClick={() =>
187
+ onClick={() => {
188
+ if (typeof window !== "undefined") {
189
+ sessionStorage.setItem("fromView", "kanban");
190
+ }
188
191
  router.push(`${editButtonUrl}/${data?.id}`)
189
- }
192
+ }}
190
193
  >
191
194
  {renderFormDynamically(solidKanbanViewMetaData)}
192
195
 
@@ -29,8 +29,7 @@ import "yet-another-react-lightbox/plugins/counter.css";
29
29
  import { useRouter, useSearchParams } from "next/navigation";
30
30
  import { SolidKanbanViewConfigure } from "./SolidKanbanViewConfigure";
31
31
  import { KanbanUserViewLayout } from "./KanbanUserViewLayout";
32
-
33
-
32
+ import { Toast } from "primereact/toast";
34
33
 
35
34
  type SolidKanbanViewParams = {
36
35
  moduleName: string;
@@ -64,8 +63,7 @@ export const SolidKanbanView = (params: SolidKanbanViewParams) => {
64
63
  const [lightboxUrls, setLightboxUrls] = useState({});
65
64
  const [filterQueryString, setFilterQueryString] = useState<any>();
66
65
  const [isLayoutDialogVisible, setLayoutDialogVisible] = useState(false);
67
-
68
-
66
+ const toast = useRef<Toast>(null);
69
67
 
70
68
  const pushFiltersToRouter = (filterQueryString: any) => {
71
69
  router.push(`?${filterQueryString}`, undefined, { shallow: true });
@@ -115,7 +113,8 @@ export const SolidKanbanView = (params: SolidKanbanViewParams) => {
115
113
  useLazyGetSolidKanbanEntitiesQuery,
116
114
  useLazyGetSolidEntityByIdQuery,
117
115
  usePrefetch,
118
- useUpdateSolidEntityMutation
116
+ useUpdateSolidEntityMutation,
117
+ usePatchUpdateSolidEntityMutation
119
118
  } = entityApi;
120
119
 
121
120
  // Get the kanban view layout & metadata first.
@@ -227,6 +226,14 @@ export const SolidKanbanView = (params: SolidKanbanViewParams) => {
227
226
  const [columnsCount, setColumnsCount] = useState(5);
228
227
  const [swimLaneCurrentPageNumber, setSwimLaneCurrentPageNumber] = useState(1);
229
228
 
229
+ const showToast = (severity: "success" | "error", summary: string, detail: string) => {
230
+ toast.current?.show({
231
+ severity,
232
+ summary,
233
+ detail,
234
+ life: 3000,
235
+ });
236
+ };
230
237
  // Get the kanban view data.
231
238
  // const [triggerGetSolidEntitiesForKanban, { data: solidEntityKanbanViewData, isLoading, error }] = useLazyGetSolidKanbanEntitiesQuery();
232
239
  const [triggerGetSolidEntities, { data: solidEntityKanbanViewData, isLoading, error }] = useLazyGetSolidEntitiesQuery();
@@ -242,7 +249,10 @@ export const SolidKanbanView = (params: SolidKanbanViewParams) => {
242
249
  data: DeletedSolidEntities,
243
250
  },
244
251
  ] = useDeleteMultipleSolidEntitiesMutation();
245
-
252
+ const [
253
+ patchKanbanView,
254
+ { isSuccess: isKanbanUpdateSuccessfull, isError: isKanbanUpdateError, error: kanbanUpdateError },
255
+ ] = usePatchUpdateSolidEntityMutation();
246
256
 
247
257
  // After data is fetched populate the kanban view state so as to be able to render the data.
248
258
  useEffect(() => {
@@ -544,17 +554,33 @@ export const SolidKanbanView = (params: SolidKanbanViewParams) => {
544
554
  destinationGroup.groupData.records = destinationRecords;
545
555
 
546
556
  // Update the kanbanViewData state
547
- setKanbanViewData((prevData: typeof kanbanViewData) =>
548
- prevData.map((group: any) => {
549
- if (group.groupName === sourceGroupName) {
550
- return sourceGroup;
551
- }
552
- if (group.groupName === destinationGroupName) {
553
- return destinationGroup;
554
- }
555
- return group;
556
- })
557
- );
557
+ try {
558
+ const formData = new FormData();
559
+ formData.append(groupByFieldName, destinationGroupName);
560
+ const kanbanUpdateResponse = await patchKanbanView({ id: +movedItem.id, data: formData }).unwrap();
561
+
562
+ if (kanbanUpdateResponse?.statusCode === 200) {
563
+ showToast("success", "Success", "Kanban View Updated!");
564
+ // Update the kanbanViewData state
565
+ setKanbanViewData((prevData: typeof kanbanViewData) =>
566
+ prevData.map((group: any) => {
567
+ if (group.groupName === sourceGroupName) {
568
+ return sourceGroup;
569
+ }
570
+ if (group.groupName === destinationGroupName) {
571
+ return destinationGroup;
572
+ }
573
+ return group;
574
+ })
575
+ );
576
+ } else {
577
+ showToast("error", "Duplicate Key", kanbanUpdateResponse?.error);
578
+ }
579
+ } catch (error: any) {
580
+ // 6. Handle 500 or network errors
581
+ console.error("API error:", error);
582
+ showToast("error", "Something went wrong", error?.data?.message || "Something went wrong");
583
+ }
558
584
  };
559
585
 
560
586
 
@@ -672,6 +698,7 @@ export const SolidKanbanView = (params: SolidKanbanViewParams) => {
672
698
 
673
699
  return (
674
700
  <div className="page-parent-wrapper">
701
+ <Toast ref={toast} />
675
702
  <div className="page-header">
676
703
  <div className="flex gap-3 align-items-center">
677
704
  <p className="m-0 view-title">{kanbanViewTitle}</p>
@@ -7,6 +7,11 @@ import { FormEvent } from "primereact/ts-helpers";
7
7
  import { FilterMatchMode } from 'primereact/api';
8
8
  import { Document, Page, pdfjs } from "react-pdf";
9
9
  import { Dialog } from "primereact/dialog";
10
+ import { PDFSvg } from '@/components/Svg/PDFSvg';
11
+ import Image from 'next/image';
12
+ import FileImage from '../../../../resources/images/fileTypes/File.png'
13
+ import { ExcelSvg } from '@/components/Svg/ExcelSvg';
14
+
10
15
 
11
16
  pdfjs.GlobalWorkerOptions.workerSrc = `//unpkg.com/pdfjs-dist@${pdfjs.version}/build/pdf.worker.min.mjs`;
12
17
 
@@ -22,7 +27,6 @@ const SolidMediaSingleKanbanField = ({ solidKanbanViewMetaData, fieldMetadata, f
22
27
  // const url = "http://localhost:8080/media-files-storage/PF Form.xls";
23
28
 
24
29
 
25
-
26
30
  return (
27
31
  <>
28
32
  {mimeType && mimeType.includes("image/") &&
@@ -52,7 +56,7 @@ const SolidMediaSingleKanbanField = ({ solidKanbanViewMetaData, fieldMetadata, f
52
56
  <div onClick={(e) => e.stopPropagation()}>
53
57
  <div className='flex align-items-end gap-2 my-2'>
54
58
  <div onClick={() => setVisible(true)} style={{ cursor: 'pointer' }}>
55
- <svg width="36px" height="36px" viewBox="-4 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="#000000" stroke-width="0.0004"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"> <path d="M25.6686 26.0962C25.1812 26.2401 24.4656 26.2563 23.6984 26.145C22.875 26.0256 22.0351 25.7739 21.2096 25.403C22.6817 25.1888 23.8237 25.2548 24.8005 25.6009C25.0319 25.6829 25.412 25.9021 25.6686 26.0962ZM17.4552 24.7459C17.3953 24.7622 17.3363 24.7776 17.2776 24.7939C16.8815 24.9017 16.4961 25.0069 16.1247 25.1005L15.6239 25.2275C14.6165 25.4824 13.5865 25.7428 12.5692 26.0529C12.9558 25.1206 13.315 24.178 13.6667 23.2564C13.9271 22.5742 14.193 21.8773 14.468 21.1894C14.6075 21.4198 14.7531 21.6503 14.9046 21.8814C15.5948 22.9326 16.4624 23.9045 17.4552 24.7459ZM14.8927 14.2326C14.958 15.383 14.7098 16.4897 14.3457 17.5514C13.8972 16.2386 13.6882 14.7889 14.2489 13.6185C14.3927 13.3185 14.5105 13.1581 14.5869 13.0744C14.7049 13.2566 14.8601 13.6642 14.8927 14.2326ZM9.63347 28.8054C9.38148 29.2562 9.12426 29.6782 8.86063 30.0767C8.22442 31.0355 7.18393 32.0621 6.64941 32.0621C6.59681 32.0621 6.53316 32.0536 6.44015 31.9554C6.38028 31.8926 6.37069 31.8476 6.37359 31.7862C6.39161 31.4337 6.85867 30.8059 7.53527 30.2238C8.14939 29.6957 8.84352 29.2262 9.63347 28.8054ZM27.3706 26.1461C27.2889 24.9719 25.3123 24.2186 25.2928 24.2116C24.5287 23.9407 23.6986 23.8091 22.7552 23.8091C21.7453 23.8091 20.6565 23.9552 19.2582 24.2819C18.014 23.3999 16.9392 22.2957 16.1362 21.0733C15.7816 20.5332 15.4628 19.9941 15.1849 19.4675C15.8633 17.8454 16.4742 16.1013 16.3632 14.1479C16.2737 12.5816 15.5674 11.5295 14.6069 11.5295C13.948 11.5295 13.3807 12.0175 12.9194 12.9813C12.0965 14.6987 12.3128 16.8962 13.562 19.5184C13.1121 20.5751 12.6941 21.6706 12.2895 22.7311C11.7861 24.0498 11.2674 25.4103 10.6828 26.7045C9.04334 27.3532 7.69648 28.1399 6.57402 29.1057C5.8387 29.7373 4.95223 30.7028 4.90163 31.7107C4.87693 32.1854 5.03969 32.6207 5.37044 32.9695C5.72183 33.3398 6.16329 33.5348 6.6487 33.5354C8.25189 33.5354 9.79489 31.3327 10.0876 30.8909C10.6767 30.0029 11.2281 29.0124 11.7684 27.8699C13.1292 27.3781 14.5794 27.011 15.985 26.6562L16.4884 26.5283C16.8668 26.4321 17.2601 26.3257 17.6635 26.2153C18.0904 26.0999 18.5296 25.9802 18.976 25.8665C20.4193 26.7844 21.9714 27.3831 23.4851 27.6028C24.7601 27.7883 25.8924 27.6807 26.6589 27.2811C27.3486 26.9219 27.3866 26.3676 27.3706 26.1461ZM30.4755 36.2428C30.4755 38.3932 28.5802 38.5258 28.1978 38.5301H3.74486C1.60224 38.5301 1.47322 36.6218 1.46913 36.2428L1.46884 3.75642C1.46884 1.6039 3.36763 1.4734 3.74457 1.46908H20.263L20.2718 1.4778V7.92396C20.2718 9.21763 21.0539 11.6669 24.0158 11.6669H30.4203L30.4753 11.7218L30.4755 36.2428ZM28.9572 10.1976H24.0169C21.8749 10.1976 21.7453 8.29969 21.7424 7.92417V2.95307L28.9572 10.1976ZM31.9447 36.2428V11.1157L21.7424 0.871022V0.823357H21.6936L20.8742 0H3.74491C2.44954 0 0 0.785336 0 3.75711V36.2435C0 37.5427 0.782956 40 3.74491 40H28.2001C29.4952 39.9997 31.9447 39.2143 31.9447 36.2428Z" fill="#EB5757"></path> </g></svg>
59
+ <PDFSvg size={50} />
56
60
  </div>
57
61
  <p className="text-sm" style={{ cursor: 'pointer', maxWidth: '70%', wordWrap: 'break-word', overflowWrap: 'break-word' }} onClick={() => setVisible(true)}>
58
62
  {fileName}
@@ -69,7 +73,7 @@ const SolidMediaSingleKanbanField = ({ solidKanbanViewMetaData, fieldMetadata, f
69
73
  {mimeType && (mimeType.includes("excel") || mimeType.includes("spreadsheet")) && (
70
74
  <div className='flex align-items-end gap-2 my-2' onClick={(e) => e.stopPropagation()}>
71
75
  <a href={url} download target="_blank" rel="noopener noreferrer">
72
- <svg fill="#45B058" height="36px" width="36px" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"> <g> <g> <g> <path d="M447.168,134.56c-0.535-1.288-1.318-2.459-2.304-3.445l-128-128c-2.003-1.988-4.709-3.107-7.531-3.115H74.667 C68.776,0,64,4.776,64,10.667v490.667C64,507.224,68.776,512,74.667,512h362.667c5.891,0,10.667-4.776,10.667-10.667V138.667 C447.997,137.256,447.714,135.86,447.168,134.56z M320,36.416L411.584,128H320V36.416z M426.667,490.667H85.333V21.333h213.333 v117.333c0,5.891,4.776,10.667,10.667,10.667h117.333V490.667z"></path> <path d="M128,181.333v256c0,5.891,4.776,10.667,10.667,10.667h234.667c5.891,0,10.667-4.776,10.667-10.667v-256 c0-5.891-4.776-10.667-10.667-10.667H138.667C132.776,170.667,128,175.442,128,181.333z M320,192h42.667v42.667H320V192z M320,256h42.667v42.667H320V256z M320,320h42.667v42.667H320V320z M320,384h42.667v42.667H320V384z M213.333,192h85.333v42.667 h-85.333V192z M213.333,256h85.333v42.667h-85.333V256z M213.333,320h85.333v42.667h-85.333V320z M213.333,384h85.333v42.667 h-85.333V384z M149.333,192H192v42.667h-42.667V192z M149.333,256H192v42.667h-42.667V256z M149.333,320H192v42.667h-42.667V320z M149.333,384H192v42.667h-42.667V384z"></path> </g> </g> </g> </g></svg>
76
+ <ExcelSvg size={50} />
73
77
  </a>
74
78
  <a href={url} download target="_blank" rel="noopener noreferrer" className='text-color flex align-items-start gap-2' style={{ textDecoration: 'none' }}>
75
79
  <p className="text-sm mb-1" style={{ wordWrap: 'break-word', overflowWrap: 'break-word' }}>
@@ -86,7 +90,13 @@ const SolidMediaSingleKanbanField = ({ solidKanbanViewMetaData, fieldMetadata, f
86
90
  !mimeType.includes("spreadsheet") && (
87
91
  <div className='flex align-items-end gap-2 my-2' onClick={(e) => e.stopPropagation()}>
88
92
  <a href={url} download target="_blank" rel="noopener noreferrer">
89
- <svg width="36px" height="36px" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="#722ED1" stroke="#722ED1" stroke-width="0.00024000000000000003"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><path d="M3 23h18V6.709L15.29 1H3zM15 2h.2L20 6.8V7h-5zM4 2h10v6h6v14H4z"></path><path fill="none" d="M0 0h24v24H0z"></path></g></svg>
93
+ <Image
94
+ src={FileImage}
95
+ alt={fileName}
96
+ className="relative"
97
+ height={50}
98
+ width={50}
99
+ />
90
100
  </a>
91
101
  <a href={url} download target="_blank" rel="noopener noreferrer" className='text-color flex align-items-start gap-2' style={{ textDecoration: 'none' }}>
92
102
  <p className="text-sm mb-1" style={{ wordWrap: 'break-word', overflowWrap: 'break-word' }}>
@@ -2,12 +2,13 @@
2
2
  import { useState } from 'react';
3
3
  import { SolidKanbanViewFieldsParams } from '../SolidKanbanViewFields';
4
4
  import { Dialog } from 'primereact/dialog';
5
- import { Document, Page, pdfjs } from "react-pdf";
5
+ import { Document, Page } from "react-pdf";
6
+ import { PDFSvg } from '@/components/Svg/PDFSvg';
6
7
  import MP3Image from '../../../../resources/images/fileTypes/Mp3.png'
7
8
  import MP4Image from '../../../../resources/images/fileTypes/Mp4.png'
8
9
  import FileImage from '../../../../resources/images/fileTypes/File.png'
9
10
  import Image from 'next/image';
10
- import { PDFSvg } from '@/components/Svg/PDFSvg';
11
+ import { ExcelSvg } from '@/components/Svg/ExcelSvg';
11
12
  const SolidShortTextKanbanField = ({ solidKanbanViewMetaData, fieldMetadata, fieldLayout, data, setLightboxUrls, setOpenLightbox, groupedView }: SolidKanbanViewFieldsParams) => {
12
13
  const [visible, setVisible] = useState(false);
13
14
  const renderMode = fieldLayout?.attrs?.renderMode ? fieldLayout?.attrs?.renderMode : "text";
@@ -70,12 +71,7 @@ const SolidShortTextKanbanField = ({ solidKanbanViewMetaData, fieldMetadata, fie
70
71
 
71
72
  {renderMode === "image" && !groupedView && mimeType && (mimeType.includes("excel") || mimeType.includes("spreadsheet")) && (
72
73
  <a href={data[fieldMetadata.name]} className='kanban-media-view-card mt-3' onClick={(e) => e.stopPropagation()} style={{ cursor: 'pointer' }} download target="_blank" rel="noopener noreferrer">
73
- <svg width="80" height="80" viewBox="0 0 80 80" fill="none" xmlns="http://www.w3.org/2000/svg">
74
- <path d="M15 10.4147V10.4146C14.9999 5.29959 19.6888 1 25.3892 1H53.5858L77 24.4142V69.5852C77 74.7288 72.5287 78.9999 66.8806 78.9999H25.1406C19.47 78.9999 15 74.7276 15 69.5852V10.4147Z" fill="white" stroke="#DBDBDB" stroke-width="2" />
75
- <path d="M54.0513 16.32V0L78 24H62.0342C54.8496 24 53.7187 18.88 54.0513 16.32Z" fill="#D4D4D8" />
76
- <rect x="2" y="38" width="51" height="30" rx="6" fill="#079455" />
77
- <path d="M13.7955 46.9091L16.4354 51.3707H16.5376L19.1903 46.9091H22.3161L18.321 53.4545L22.4055 60H19.2223L16.5376 55.532H16.4354L13.7507 60H10.5803L14.6776 53.4545L10.657 46.9091H13.7955ZM24.0675 60V46.9091H26.8352V57.718H32.4474V60H24.0675ZM41.3819 50.674C41.3308 50.1584 41.1113 49.7578 40.7235 49.4723C40.3358 49.1868 39.8095 49.044 39.1447 49.044C38.693 49.044 38.3116 49.108 38.0005 49.2358C37.6895 49.3594 37.4508 49.532 37.2846 49.7536C37.1227 49.9751 37.0417 50.2266 37.0417 50.5078C37.0332 50.7422 37.0822 50.9467 37.1887 51.1214C37.2995 51.2962 37.4508 51.4474 37.6426 51.5753C37.8343 51.6989 38.0559 51.8075 38.3074 51.9013C38.5588 51.9908 38.8272 52.0675 39.1127 52.1314L40.2889 52.4126C40.8599 52.5405 41.3841 52.7109 41.8613 52.924C42.3386 53.1371 42.752 53.3991 43.1014 53.7102C43.4508 54.0213 43.7214 54.3878 43.9132 54.8097C44.1092 55.2315 44.2093 55.7152 44.2136 56.2607C44.2093 57.0618 44.0048 57.7564 43.6 58.3445C43.1994 58.9283 42.6199 59.3821 41.8613 59.706C41.1071 60.0256 40.1973 60.1854 39.1319 60.1854C38.0751 60.1854 37.1547 60.0234 36.3706 59.6996C35.5907 59.3757 34.9814 58.8963 34.5424 58.2614C34.1078 57.6222 33.8798 56.8317 33.8585 55.8899H36.5368C36.5666 56.3288 36.6923 56.6953 36.9139 56.9893C37.1397 57.2791 37.4402 57.4986 37.8152 57.6477C38.1944 57.7926 38.6227 57.8651 39.1 57.8651C39.5687 57.8651 39.9757 57.7969 40.3208 57.6605C40.6703 57.5241 40.9409 57.3345 41.1326 57.0916C41.3244 56.8487 41.4203 56.5696 41.4203 56.2543C41.4203 55.9602 41.3329 55.7131 41.1582 55.5128C40.9877 55.3125 40.7363 55.142 40.4039 55.0014C40.0758 54.8608 39.6731 54.733 39.1958 54.6179L37.7704 54.2599C36.6667 53.9915 35.7953 53.5717 35.1561 53.0007C34.5169 52.4297 34.1994 51.6605 34.2037 50.6932C34.1994 49.9006 34.4103 49.2081 34.8365 48.6158C35.2669 48.0234 35.8571 47.5611 36.6071 47.2287C37.3571 46.8963 38.2093 46.7301 39.1639 46.7301C40.1355 46.7301 40.9835 46.8963 41.7079 47.2287C42.4366 47.5611 43.0034 48.0234 43.4082 48.6158C43.813 49.2081 44.0218 49.8942 44.0346 50.674H41.3819Z" fill="white" />
78
- </svg>
74
+ <ExcelSvg />
79
75
  </a>
80
76
  )}
81
77
  {renderMode === "image" && !groupedView && mimeType && mimeType.includes("audio") && (
@@ -147,7 +147,7 @@ export const SolidListView = (params: SolidListViewParams) => {
147
147
  } = entityApi;
148
148
 
149
149
  // Get the list view layout & metadata first.
150
- const listViewMetaDataQs = qs.stringify({ modelName: params.modelName, moduleName: params.moduleName, viewType: 'list'}, {
150
+ const listViewMetaDataQs = qs.stringify({ modelName: params.modelName, moduleName: params.moduleName, viewType: 'list' }, {
151
151
  encodeValuesOnly: true,
152
152
  });
153
153
  const [listViewMetaData, setListViewMetaData] = useState({});
@@ -812,6 +812,9 @@ export const SolidListView = (params: SolidListViewParams) => {
812
812
  if (params.embeded == true) {
813
813
  params.handlePopUpOpen(rowData?.id);
814
814
  } else {
815
+ if (typeof window !== "undefined") {
816
+ sessionStorage.setItem("fromView", "list");
817
+ }
815
818
  router.push(`${editButtonUrl}/${rowData?.id}`);
816
819
  }
817
820
  }}