@solidstarters/solid-core-ui 1.1.56 → 1.1.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Svg/PDFSvg.d.ts +2 -0
- package/dist/components/Svg/PDFSvg.d.ts.map +1 -0
- package/dist/components/Svg/PDFSvg.js +5 -0
- package/dist/components/Svg/PDFSvg.js.map +1 -0
- package/dist/components/core/form/SolidFormUserViewLayout.d.ts.map +1 -1
- package/dist/components/core/form/SolidFormUserViewLayout.js +7 -11
- package/dist/components/core/form/SolidFormUserViewLayout.js.map +1 -1
- package/dist/components/core/form/SolidFormView.d.ts +2 -0
- package/dist/components/core/form/SolidFormView.d.ts.map +1 -1
- package/dist/components/core/form/SolidFormView.js +33 -27
- package/dist/components/core/form/SolidFormView.js.map +1 -1
- package/dist/components/core/form/fields/SolidMediaMultipleField.d.ts +6 -1
- package/dist/components/core/form/fields/SolidMediaMultipleField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidMediaMultipleField.js +36 -14
- package/dist/components/core/form/fields/SolidMediaMultipleField.js.map +1 -1
- package/dist/components/core/form/fields/SolidMediaSingleField.d.ts +6 -1
- package/dist/components/core/form/fields/SolidMediaSingleField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidMediaSingleField.js +25 -3
- package/dist/components/core/form/fields/SolidMediaSingleField.js.map +1 -1
- package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.d.ts.map +1 -1
- package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.js +7 -6
- package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.js.map +1 -1
- package/dist/components/core/form/fields/widgets/SolidFormFieldViewMediaMultipleWidget.d.ts +1 -1
- package/dist/components/core/form/fields/widgets/SolidFormFieldViewMediaMultipleWidget.d.ts.map +1 -1
- package/dist/components/core/form/fields/widgets/SolidFormFieldViewMediaMultipleWidget.js +23 -7
- package/dist/components/core/form/fields/widgets/SolidFormFieldViewMediaMultipleWidget.js.map +1 -1
- package/dist/components/core/form/fields/widgets/SolidFormFieldViewMediaSingleWidget.d.ts +1 -1
- package/dist/components/core/form/fields/widgets/SolidFormFieldViewMediaSingleWidget.d.ts.map +1 -1
- package/dist/components/core/form/fields/widgets/SolidFormFieldViewMediaSingleWidget.js +19 -3
- package/dist/components/core/form/fields/widgets/SolidFormFieldViewMediaSingleWidget.js.map +1 -1
- package/dist/components/core/kanban/KanbanCard.d.ts.map +1 -1
- package/dist/components/core/kanban/KanbanCard.js +7 -6
- package/dist/components/core/kanban/KanbanCard.js.map +1 -1
- package/dist/components/core/kanban/KanbanColumn.d.ts.map +1 -1
- package/dist/components/core/kanban/KanbanColumn.js +2 -2
- package/dist/components/core/kanban/KanbanColumn.js.map +1 -1
- package/dist/components/core/kanban/KanbanUserViewLayout.d.ts.map +1 -1
- package/dist/components/core/kanban/KanbanUserViewLayout.js +7 -11
- package/dist/components/core/kanban/KanbanUserViewLayout.js.map +1 -1
- package/dist/components/core/kanban/SolidKanbanView.d.ts.map +1 -1
- package/dist/components/core/kanban/SolidKanbanView.js +34 -36
- package/dist/components/core/kanban/SolidKanbanView.js.map +1 -1
- package/dist/components/core/kanban/SolidKanbanViewConfigure.js +1 -1
- package/dist/components/core/kanban/SolidKanbanViewConfigure.js.map +1 -1
- package/dist/components/core/kanban/SolidKanbanViewFields.d.ts +2 -1
- package/dist/components/core/kanban/SolidKanbanViewFields.d.ts.map +1 -1
- package/dist/components/core/kanban/SolidKanbanViewFields.js +3 -3
- package/dist/components/core/kanban/SolidKanbanViewFields.js.map +1 -1
- package/dist/components/core/kanban/kanban-fields/SolidIntKanbanField.d.ts.map +1 -1
- package/dist/components/core/kanban/kanban-fields/SolidIntKanbanField.js +10 -2
- package/dist/components/core/kanban/kanban-fields/SolidIntKanbanField.js.map +1 -1
- package/dist/components/core/kanban/kanban-fields/SolidMediaSingleKanbanField.js +2 -2
- package/dist/components/core/kanban/kanban-fields/SolidMediaSingleKanbanField.js.map +1 -1
- package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.d.ts +1 -1
- package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.d.ts.map +1 -1
- package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.js +26 -5
- package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.js.map +1 -1
- package/dist/components/core/list/SolidListColumnSelector.d.ts.map +1 -1
- package/dist/components/core/list/SolidListColumnSelector.js +9 -12
- package/dist/components/core/list/SolidListColumnSelector.js.map +1 -1
- package/dist/components/core/list/SolidListView.d.ts.map +1 -1
- package/dist/components/core/list/SolidListView.js +43 -45
- package/dist/components/core/list/SolidListView.js.map +1 -1
- package/dist/components/core/list/columns/SolidMediaSingleColumn.d.ts.map +1 -1
- package/dist/components/core/list/columns/SolidMediaSingleColumn.js +2 -4
- package/dist/components/core/list/columns/SolidMediaSingleColumn.js.map +1 -1
- package/dist/resources/globals.css +51 -1
- package/dist/resources/images/fileTypes/File.png +0 -0
- package/dist/resources/images/fileTypes/Mp3.png +0 -0
- package/dist/resources/images/fileTypes/Mp4.png +0 -0
- package/package.json +1 -1
- package/src/components/Svg/PDFSvg.tsx +12 -0
- package/src/components/core/form/SolidFormUserViewLayout.tsx +0 -2
- package/src/components/core/form/SolidFormView.tsx +24 -10
- package/src/components/core/form/fields/SolidMediaMultipleField.tsx +28 -4
- package/src/components/core/form/fields/SolidMediaSingleField.tsx +26 -3
- package/src/components/core/form/fields/relations/SolidRelationOneToManyField.tsx +7 -1
- package/src/components/core/form/fields/widgets/SolidFormFieldViewMediaMultipleWidget.tsx +20 -3
- package/src/components/core/form/fields/widgets/SolidFormFieldViewMediaSingleWidget.tsx +19 -2
- package/src/components/core/kanban/KanbanCard.tsx +7 -6
- package/src/components/core/kanban/KanbanColumn.tsx +6 -8
- package/src/components/core/kanban/KanbanUserViewLayout.tsx +0 -2
- package/src/components/core/kanban/SolidKanbanView.tsx +1 -3
- package/src/components/core/kanban/SolidKanbanViewConfigure.tsx +1 -1
- package/src/components/core/kanban/SolidKanbanViewFields.tsx +23 -22
- package/src/components/core/kanban/kanban-fields/SolidIntKanbanField.tsx +10 -3
- package/src/components/core/kanban/kanban-fields/SolidMediaSingleKanbanField.tsx +6 -6
- package/src/components/core/kanban/kanban-fields/SolidShortTextKanbanField.tsx +102 -7
- package/src/components/core/list/SolidListColumnSelector.tsx +0 -3
- package/src/components/core/list/SolidListView.tsx +1 -4
- package/src/components/core/list/columns/SolidMediaSingleColumn.tsx +6 -3
- package/src/resources/globals.css +51 -1
- package/src/resources/images/fileTypes/File.png +0 -0
- package/src/resources/images/fileTypes/Mp3.png +0 -0
- package/src/resources/images/fileTypes/Mp4.png +0 -0
- package/src/types/solid-core.d.ts +3 -1
|
@@ -25,7 +25,8 @@ export type SolidKanbanViewFieldsParams = {
|
|
|
25
25
|
fieldLayout: any,
|
|
26
26
|
data: any,
|
|
27
27
|
setLightboxUrls?: any,
|
|
28
|
-
|
|
28
|
+
setOpenLightbox?: any,
|
|
29
|
+
groupedView?: boolean
|
|
29
30
|
};
|
|
30
31
|
|
|
31
32
|
export const getNumberOfInputs = (matchMode: any): number | null => {
|
|
@@ -73,69 +74,69 @@ export const getNumberOfInputs = (matchMode: any): number | null => {
|
|
|
73
74
|
// }
|
|
74
75
|
// };
|
|
75
76
|
|
|
76
|
-
export const SolidKanbanViewFields = ({ solidKanbanViewMetaData, fieldMetadata, fieldLayout,data, setLightboxUrls, setOpenLightbox }: SolidKanbanViewFieldsParams) => {
|
|
77
|
+
export const SolidKanbanViewFields = ({ solidKanbanViewMetaData, fieldMetadata, fieldLayout, data, setLightboxUrls, setOpenLightbox, groupedView }: SolidKanbanViewFieldsParams) => {
|
|
77
78
|
|
|
78
79
|
// And finally we can implement additional switching logic based on certain special fields.
|
|
79
80
|
if (fieldMetadata.name === 'id') {
|
|
80
|
-
return SolidIntKanbanField({ solidKanbanViewMetaData, fieldMetadata, fieldLayout,data });
|
|
81
|
+
return SolidIntKanbanField({ solidKanbanViewMetaData, fieldMetadata, fieldLayout, data });
|
|
81
82
|
}
|
|
82
83
|
|
|
83
84
|
if (fieldMetadata.type === 'int') {
|
|
84
|
-
return SolidIntKanbanField({ solidKanbanViewMetaData, fieldMetadata, fieldLayout,data });
|
|
85
|
+
return SolidIntKanbanField({ solidKanbanViewMetaData, fieldMetadata, fieldLayout, data });
|
|
85
86
|
}
|
|
86
87
|
if (fieldMetadata.type === 'bigint') {
|
|
87
|
-
return SolidBigintKanbanField({ solidKanbanViewMetaData, fieldMetadata, fieldLayout,data });
|
|
88
|
+
return SolidBigintKanbanField({ solidKanbanViewMetaData, fieldMetadata, fieldLayout, data });
|
|
88
89
|
}
|
|
89
90
|
if (fieldMetadata.type === 'float') {
|
|
90
|
-
return SolidFloatKanbanField({ solidKanbanViewMetaData, fieldMetadata, fieldLayout,data });
|
|
91
|
+
return SolidFloatKanbanField({ solidKanbanViewMetaData, fieldMetadata, fieldLayout, data });
|
|
91
92
|
}
|
|
92
93
|
if (fieldMetadata.type === 'decimal') {
|
|
93
|
-
return SolidDecimalKanbanField({ solidKanbanViewMetaData, fieldMetadata, fieldLayout,data });
|
|
94
|
+
return SolidDecimalKanbanField({ solidKanbanViewMetaData, fieldMetadata, fieldLayout, data });
|
|
94
95
|
}
|
|
95
96
|
if (fieldMetadata.type === 'shortText') {
|
|
96
|
-
return SolidShortTextKanbanField({ solidKanbanViewMetaData, fieldMetadata, fieldLayout,data,setLightboxUrls, setOpenLightbox });
|
|
97
|
+
return SolidShortTextKanbanField({ solidKanbanViewMetaData, fieldMetadata, fieldLayout, data, setLightboxUrls, setOpenLightbox, groupedView });
|
|
97
98
|
}
|
|
98
99
|
if (fieldMetadata.type === 'longText') {
|
|
99
|
-
return SolidLongTextKanbanField({ solidKanbanViewMetaData, fieldMetadata, fieldLayout,data });
|
|
100
|
+
return SolidLongTextKanbanField({ solidKanbanViewMetaData, fieldMetadata, fieldLayout, data, groupedView });
|
|
100
101
|
}
|
|
101
102
|
if (fieldMetadata.type === 'richText') {
|
|
102
|
-
return SolidRichTextKanbanField({ solidKanbanViewMetaData, fieldMetadata, fieldLayout,data });
|
|
103
|
+
return SolidRichTextKanbanField({ solidKanbanViewMetaData, fieldMetadata, fieldLayout, data });
|
|
103
104
|
}
|
|
104
105
|
if (fieldMetadata.type === 'boolean') {
|
|
105
|
-
return SolidBooleanKanbanField({ solidKanbanViewMetaData, fieldMetadata, fieldLayout,data });
|
|
106
|
+
return SolidBooleanKanbanField({ solidKanbanViewMetaData, fieldMetadata, fieldLayout, data });
|
|
106
107
|
}
|
|
107
108
|
if (fieldMetadata.type === 'date') {
|
|
108
|
-
return SolidDateKanbanField({ solidKanbanViewMetaData, fieldMetadata, fieldLayout,data });
|
|
109
|
+
return SolidDateKanbanField({ solidKanbanViewMetaData, fieldMetadata, fieldLayout, data });
|
|
109
110
|
}
|
|
110
111
|
if (fieldMetadata.type === 'datetime') {
|
|
111
|
-
return SolidDatetimeKanbanField({ solidKanbanViewMetaData, fieldMetadata, fieldLayout,data });
|
|
112
|
+
return SolidDatetimeKanbanField({ solidKanbanViewMetaData, fieldMetadata, fieldLayout, data });
|
|
112
113
|
}
|
|
113
114
|
if (fieldMetadata.type === 'time') {
|
|
114
|
-
return SolidTimeKanbanField({ solidKanbanViewMetaData, fieldMetadata, fieldLayout,data });
|
|
115
|
+
return SolidTimeKanbanField({ solidKanbanViewMetaData, fieldMetadata, fieldLayout, data });
|
|
115
116
|
}
|
|
116
117
|
if (fieldMetadata.type === 'relation') {
|
|
117
|
-
return SolidRelationKanbanField({ solidKanbanViewMetaData, fieldMetadata, fieldLayout,data });
|
|
118
|
+
return SolidRelationKanbanField({ solidKanbanViewMetaData, fieldMetadata, fieldLayout, data });
|
|
118
119
|
}
|
|
119
120
|
if (fieldMetadata.type === 'mediaSingle') {
|
|
120
|
-
return SolidMediaSingleKanbanField({ solidKanbanViewMetaData, fieldMetadata, fieldLayout,data
|
|
121
|
+
return SolidMediaSingleKanbanField({ solidKanbanViewMetaData, fieldMetadata, fieldLayout, data, setLightboxUrls, setOpenLightbox });
|
|
121
122
|
}
|
|
122
123
|
if (fieldMetadata.type === 'mediaMultiple') {
|
|
123
|
-
return SolidMediaMultipleKanbanField({ solidKanbanViewMetaData, fieldMetadata, fieldLayout,data,setLightboxUrls, setOpenLightbox });
|
|
124
|
+
return SolidMediaMultipleKanbanField({ solidKanbanViewMetaData, fieldMetadata, fieldLayout, data, setLightboxUrls, setOpenLightbox });
|
|
124
125
|
}
|
|
125
126
|
if (fieldMetadata.type === 'selectionStatic') {
|
|
126
|
-
return SolidSelectionStaticKanbanField({ solidKanbanViewMetaData, fieldMetadata, fieldLayout,data });
|
|
127
|
+
return SolidSelectionStaticKanbanField({ solidKanbanViewMetaData, fieldMetadata, fieldLayout, data });
|
|
127
128
|
}
|
|
128
129
|
if (fieldMetadata.type === 'selectionDynamic') {
|
|
129
|
-
return SolidSelectionDynamicKanbanField({ solidKanbanViewMetaData, fieldMetadata, fieldLayout,data });
|
|
130
|
+
return SolidSelectionDynamicKanbanField({ solidKanbanViewMetaData, fieldMetadata, fieldLayout, data });
|
|
130
131
|
}
|
|
131
132
|
if (fieldMetadata.type === 'computed') {
|
|
132
|
-
return SolidComputedKanbanField({ solidKanbanViewMetaData, fieldMetadata, fieldLayout,data });
|
|
133
|
+
return SolidComputedKanbanField({ solidKanbanViewMetaData, fieldMetadata, fieldLayout, data });
|
|
133
134
|
}
|
|
134
135
|
if (fieldMetadata.type === 'externalId') {
|
|
135
|
-
return SolidExternalIdKanbanField({ solidKanbanViewMetaData, fieldMetadata, fieldLayout,data });
|
|
136
|
+
return SolidExternalIdKanbanField({ solidKanbanViewMetaData, fieldMetadata, fieldLayout, data });
|
|
136
137
|
}
|
|
137
138
|
if (fieldMetadata.type === 'uuid') {
|
|
138
|
-
return SolidUuidKanbanField({ solidKanbanViewMetaData, fieldMetadata, fieldLayout,data });
|
|
139
|
+
return SolidUuidKanbanField({ solidKanbanViewMetaData, fieldMetadata, fieldLayout, data });
|
|
139
140
|
}
|
|
140
141
|
// // Load everything else based on type and dynamically.
|
|
141
142
|
// else {
|
|
@@ -2,10 +2,17 @@
|
|
|
2
2
|
import { SolidKanbanViewFieldsParams } from '../SolidKanbanViewFields';
|
|
3
3
|
import { InputText } from 'primereact/inputtext';
|
|
4
4
|
|
|
5
|
-
const SolidIntKanbanField = ({ solidKanbanViewMetaData, fieldMetadata, fieldLayout,data }: SolidKanbanViewFieldsParams) => {
|
|
6
|
-
|
|
5
|
+
const SolidIntKanbanField = ({ solidKanbanViewMetaData, fieldMetadata, fieldLayout, data }: SolidKanbanViewFieldsParams) => {
|
|
6
|
+
const formatFileSize = (size: number) => {
|
|
7
|
+
return size >= 1024 * 1024
|
|
8
|
+
? `${(size / (1024 * 1024)).toFixed(1)} MB`
|
|
9
|
+
: `${(size / 1024).toFixed(1)} KB`;
|
|
10
|
+
};
|
|
7
11
|
return (
|
|
8
|
-
|
|
12
|
+
fieldMetadata?.name === "fileSize" ?
|
|
13
|
+
<p className='m-0 text-sm'>Size : {data && data[fieldMetadata.name] ? `${formatFileSize(data[fieldMetadata.name])}` : ""}</p>
|
|
14
|
+
:
|
|
15
|
+
<p className='m-0'>{data && data[fieldMetadata.name] ? `${data[fieldMetadata.name]}` : ""}</p>
|
|
9
16
|
);
|
|
10
17
|
|
|
11
18
|
};
|
|
@@ -49,25 +49,25 @@ const SolidMediaSingleKanbanField = ({ solidKanbanViewMetaData, fieldMetadata, f
|
|
|
49
49
|
}
|
|
50
50
|
{/* Render PDF - Open Lightbox on Click */}
|
|
51
51
|
{mimeType && mimeType.includes("pdf") && (
|
|
52
|
-
|
|
52
|
+
<div onClick={(e) => e.stopPropagation()}>
|
|
53
53
|
<div className='flex align-items-end gap-2 my-2'>
|
|
54
54
|
<div onClick={() => setVisible(true)} style={{ cursor: 'pointer' }}>
|
|
55
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>
|
|
56
56
|
</div>
|
|
57
|
-
<p className="text-sm" style={{ maxWidth: '70%', wordWrap: 'break-word', overflowWrap: 'break-word' }} onClick={() => setVisible(true)}>
|
|
57
|
+
<p className="text-sm" style={{ cursor: 'pointer', maxWidth: '70%', wordWrap: 'break-word', overflowWrap: 'break-word' }} onClick={() => setVisible(true)}>
|
|
58
58
|
{fileName}
|
|
59
59
|
</p>
|
|
60
60
|
</div>
|
|
61
|
-
<Dialog header=
|
|
61
|
+
<Dialog header={fileName} visible={visible} style={{ width: "" }} onHide={() => setVisible(false)} modal>
|
|
62
62
|
<Document file={url}>
|
|
63
63
|
<Page pageNumber={1} />
|
|
64
64
|
</Document>
|
|
65
65
|
</Dialog>
|
|
66
|
-
|
|
66
|
+
</div>
|
|
67
67
|
)}
|
|
68
68
|
{/* Excel or Other Files - Show Download Icon */}
|
|
69
69
|
{mimeType && (mimeType.includes("excel") || mimeType.includes("spreadsheet")) && (
|
|
70
|
-
<div className='flex align-items-end gap-2 my-2'>
|
|
70
|
+
<div className='flex align-items-end gap-2 my-2' onClick={(e) => e.stopPropagation()}>
|
|
71
71
|
<a href={url} download target="_blank" rel="noopener noreferrer">
|
|
72
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>
|
|
73
73
|
</a>
|
|
@@ -84,7 +84,7 @@ const SolidMediaSingleKanbanField = ({ solidKanbanViewMetaData, fieldMetadata, f
|
|
|
84
84
|
!mimeType.includes("pdf") &&
|
|
85
85
|
!mimeType.includes("excel") &&
|
|
86
86
|
!mimeType.includes("spreadsheet") && (
|
|
87
|
-
<div className='flex align-items-end gap-2 my-2'>
|
|
87
|
+
<div className='flex align-items-end gap-2 my-2' onClick={(e) => e.stopPropagation()}>
|
|
88
88
|
<a href={url} download target="_blank" rel="noopener noreferrer">
|
|
89
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>
|
|
90
90
|
</a>
|
|
@@ -1,16 +1,49 @@
|
|
|
1
1
|
'use client';
|
|
2
|
+
import { useState } from 'react';
|
|
2
3
|
import { SolidKanbanViewFieldsParams } from '../SolidKanbanViewFields';
|
|
3
|
-
|
|
4
|
-
|
|
4
|
+
import { Dialog } from 'primereact/dialog';
|
|
5
|
+
import { Document, Page, pdfjs } from "react-pdf";
|
|
6
|
+
import MP3Image from '../../../../resources/images/fileTypes/Mp3.png'
|
|
7
|
+
import MP4Image from '../../../../resources/images/fileTypes/Mp4.png'
|
|
8
|
+
import FileImage from '../../../../resources/images/fileTypes/File.png'
|
|
9
|
+
import Image from 'next/image';
|
|
10
|
+
import { PDFSvg } from '@/components/Svg/PDFSvg';
|
|
11
|
+
const SolidShortTextKanbanField = ({ solidKanbanViewMetaData, fieldMetadata, fieldLayout, data, setLightboxUrls, setOpenLightbox, groupedView }: SolidKanbanViewFieldsParams) => {
|
|
12
|
+
const [visible, setVisible] = useState(false);
|
|
5
13
|
const renderMode = fieldLayout?.attrs?.renderMode ? fieldLayout?.attrs?.renderMode : "text";
|
|
6
|
-
|
|
14
|
+
const mimeType = data && data?.mimeType
|
|
15
|
+
const fileName = data?.originalFileName;
|
|
16
|
+
const PDFHeader = () => {
|
|
17
|
+
return (
|
|
18
|
+
<div className='flex justify-content-between align-items-center'>
|
|
19
|
+
<p className='m-0'>
|
|
20
|
+
{fileName}
|
|
21
|
+
</p>
|
|
22
|
+
<a
|
|
23
|
+
href={data[fieldMetadata.name]}
|
|
24
|
+
download={fileName}
|
|
25
|
+
target="_blank"
|
|
26
|
+
rel="noopener noreferrer"
|
|
27
|
+
className='mr-4'
|
|
28
|
+
>
|
|
29
|
+
<i className='pi pi-download' />
|
|
30
|
+
</a>
|
|
31
|
+
</div>
|
|
32
|
+
)
|
|
33
|
+
}
|
|
7
34
|
return (
|
|
8
35
|
<div>
|
|
9
|
-
{renderMode === "text" &&
|
|
36
|
+
{renderMode === "text" && groupedView &&
|
|
37
|
+
<p className='font-medium'>{data && data[fieldMetadata.name] ? `${data[fieldMetadata.name]}` : ""}</p>
|
|
38
|
+
}
|
|
39
|
+
{renderMode === "text" && !groupedView && fieldMetadata?.name === 'originalFileName' &&
|
|
10
40
|
<p className='font-medium'>{data && data[fieldMetadata.name] ? `${data[fieldMetadata.name]}` : ""}</p>
|
|
11
41
|
}
|
|
12
|
-
{renderMode === "
|
|
13
|
-
<
|
|
42
|
+
{renderMode === "text" && !groupedView && fieldMetadata?.name === 'mimeType' &&
|
|
43
|
+
<span className='solid-mimetype-chip'>{data && data[fieldMetadata.name] ? `${data[fieldMetadata.name]}` : ""}</span>
|
|
44
|
+
}
|
|
45
|
+
{renderMode === "image" && !groupedView && mimeType && mimeType.includes("image/") &&
|
|
46
|
+
< div className='mt-3'>
|
|
14
47
|
<img
|
|
15
48
|
src={data[fieldMetadata.name]}
|
|
16
49
|
onClick={(event) => {
|
|
@@ -18,10 +51,72 @@ const SolidShortTextKanbanField = ({ solidKanbanViewMetaData, fieldMetadata, fie
|
|
|
18
51
|
setLightboxUrls([{ src: data[fieldMetadata.name] }]);
|
|
19
52
|
setOpenLightbox(true);
|
|
20
53
|
}}
|
|
21
|
-
className='kanban-image-preview'
|
|
54
|
+
className={`${!groupedView ? 'kanban-media-image-preview' : 'kanban-image-preview'}`}
|
|
22
55
|
></img>
|
|
23
56
|
</div>
|
|
24
57
|
}
|
|
58
|
+
{renderMode === "image" && !groupedView && mimeType && mimeType.includes("pdf") && (
|
|
59
|
+
<div className='mt-3' onClick={(e) => e.stopPropagation()}>
|
|
60
|
+
<div className='kanban-media-view-card' onClick={() => setVisible(true)} style={{ cursor: 'pointer' }}>
|
|
61
|
+
<PDFSvg />
|
|
62
|
+
</div>
|
|
63
|
+
<Dialog header={<PDFHeader />} visible={visible} style={{ width: "" }} onHide={() => setVisible(false)} modal>
|
|
64
|
+
<Document file={data[fieldMetadata.name]}>
|
|
65
|
+
<Page pageNumber={1} />
|
|
66
|
+
</Document>
|
|
67
|
+
</Dialog>
|
|
68
|
+
</div>
|
|
69
|
+
)}
|
|
70
|
+
|
|
71
|
+
{renderMode === "image" && !groupedView && mimeType && (mimeType.includes("excel") || mimeType.includes("spreadsheet")) && (
|
|
72
|
+
<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>
|
|
79
|
+
</a>
|
|
80
|
+
)}
|
|
81
|
+
{renderMode === "image" && !groupedView && mimeType && mimeType.includes("audio") && (
|
|
82
|
+
<a href={data[fieldMetadata.name]} className='kanban-media-view-card my-2' onClick={(e) => e.stopPropagation()} style={{ cursor: 'pointer' }} download target="_blank" rel="noopener noreferrer">
|
|
83
|
+
<Image
|
|
84
|
+
src={MP3Image}
|
|
85
|
+
alt={fileName}
|
|
86
|
+
className="relative"
|
|
87
|
+
height={80}
|
|
88
|
+
width={80}
|
|
89
|
+
/>
|
|
90
|
+
</a>
|
|
91
|
+
)}
|
|
92
|
+
{renderMode === "image" && !groupedView && mimeType && mimeType.includes("video") && (
|
|
93
|
+
<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">
|
|
94
|
+
<Image
|
|
95
|
+
src={MP4Image}
|
|
96
|
+
alt={fileName}
|
|
97
|
+
className="relative"
|
|
98
|
+
height={80}
|
|
99
|
+
width={80}
|
|
100
|
+
/>
|
|
101
|
+
</a>
|
|
102
|
+
)}
|
|
103
|
+
|
|
104
|
+
{renderMode === "image" && !groupedView && mimeType && !mimeType.includes("image/") &&
|
|
105
|
+
!mimeType.includes("pdf") &&
|
|
106
|
+
!mimeType.includes("excel") &&
|
|
107
|
+
!mimeType.includes("spreadsheet") &&
|
|
108
|
+
!mimeType.includes("audio") &&
|
|
109
|
+
!mimeType.includes("video") && (
|
|
110
|
+
<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">
|
|
111
|
+
<Image
|
|
112
|
+
src={FileImage}
|
|
113
|
+
alt={fileName}
|
|
114
|
+
className="relative"
|
|
115
|
+
height={80}
|
|
116
|
+
width={80}
|
|
117
|
+
/>
|
|
118
|
+
</a>
|
|
119
|
+
)}
|
|
25
120
|
</div>
|
|
26
121
|
);
|
|
27
122
|
|
|
@@ -4,7 +4,6 @@ import { Button } from 'primereact/button';
|
|
|
4
4
|
import { Checkbox, CheckboxChangeEvent } from 'primereact/checkbox';
|
|
5
5
|
import React, { useEffect, useRef, useState } from 'react'
|
|
6
6
|
import qs from "qs";
|
|
7
|
-
import { useSelector } from 'react-redux';
|
|
8
7
|
import { createSolidEntityApi } from '@/redux/api/solidEntityApi';
|
|
9
8
|
import { Toast } from "primereact/toast";
|
|
10
9
|
|
|
@@ -20,7 +19,6 @@ interface FilterColumns {
|
|
|
20
19
|
export const SolidListColumnSelector = ({ listViewMetaData }: any) => {
|
|
21
20
|
const toast = useRef<Toast>(null);
|
|
22
21
|
|
|
23
|
-
const { user } = useSelector((state: any) => state.auth);
|
|
24
22
|
const entityApi = createSolidEntityApi('userViewMetadata');
|
|
25
23
|
const {
|
|
26
24
|
useUpsertSolidEntityMutation
|
|
@@ -104,7 +102,6 @@ export const SolidListColumnSelector = ({ listViewMetaData }: any) => {
|
|
|
104
102
|
if (listViewMetaData?.data?.solidView?.id) {
|
|
105
103
|
// Update existing user view
|
|
106
104
|
const response = await upsertUserView({
|
|
107
|
-
userId: user?.user?.id,
|
|
108
105
|
viewMetadataId: listViewMetaData?.data?.solidView?.id,
|
|
109
106
|
layout: JSON.stringify(updatedView.layout),
|
|
110
107
|
}).unwrap();
|
|
@@ -43,7 +43,6 @@ import Download from "yet-another-react-lightbox/plugins/download";
|
|
|
43
43
|
import "yet-another-react-lightbox/styles.css";
|
|
44
44
|
import "yet-another-react-lightbox/plugins/counter.css";
|
|
45
45
|
import { SolidListViewConfigure } from "./SolidListViewConfigure";
|
|
46
|
-
import { useSelector } from "react-redux";
|
|
47
46
|
|
|
48
47
|
|
|
49
48
|
const getRandomInt = (min: number, max: number) => {
|
|
@@ -92,8 +91,6 @@ type SolidListViewParams = {
|
|
|
92
91
|
export const SolidListView = (params: SolidListViewParams) => {
|
|
93
92
|
|
|
94
93
|
const solidGlobalSearchElementRef = useRef();
|
|
95
|
-
const { user } = useSelector((state: any) => state.auth);
|
|
96
|
-
|
|
97
94
|
|
|
98
95
|
const router = useRouter()
|
|
99
96
|
const searchParams = useSearchParams().toString(); // Converts the query params to a string
|
|
@@ -150,7 +147,7 @@ export const SolidListView = (params: SolidListViewParams) => {
|
|
|
150
147
|
} = entityApi;
|
|
151
148
|
|
|
152
149
|
// Get the list view layout & metadata first.
|
|
153
|
-
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'}, {
|
|
154
151
|
encodeValuesOnly: true,
|
|
155
152
|
});
|
|
156
153
|
const [listViewMetaData, setListViewMetaData] = useState({});
|
|
@@ -21,11 +21,11 @@ const MediaWithFallback = ({ src, alt, onClick }: { src: string; alt: string; on
|
|
|
21
21
|
width={40}
|
|
22
22
|
height={40}
|
|
23
23
|
style={{ objectFit: "cover" }}
|
|
24
|
-
onError={() => setIsBroken(true)}
|
|
24
|
+
onError={() => setIsBroken(true)}
|
|
25
25
|
onClick={onClick}
|
|
26
26
|
/>
|
|
27
27
|
) : (
|
|
28
|
-
<i className={classNames(isImageFile(src) ? "pi pi-image" : "pi pi-file", "text-3xl text-gray-400")}></i>
|
|
28
|
+
<i className={classNames(isImageFile(src) ? "pi pi-image" : "pi pi-file", "text-3xl text-gray-400")}></i>
|
|
29
29
|
)}
|
|
30
30
|
</div>
|
|
31
31
|
);
|
|
@@ -50,7 +50,10 @@ const SolidMediaSingleColumn = ({ solidListViewMetaData, fieldMetadata, column,
|
|
|
50
50
|
}}
|
|
51
51
|
/>
|
|
52
52
|
) : (
|
|
53
|
-
<
|
|
53
|
+
<div
|
|
54
|
+
style={{ height: 40, width: 40 }}
|
|
55
|
+
>
|
|
56
|
+
</div>
|
|
54
57
|
)
|
|
55
58
|
);
|
|
56
59
|
};
|
|
@@ -2484,7 +2484,7 @@ li.header-li-px {
|
|
|
2484
2484
|
|
|
2485
2485
|
.custom-filter-chip-type {
|
|
2486
2486
|
display: flex;
|
|
2487
|
-
align-items: center;
|
|
2487
|
+
align-items: center;
|
|
2488
2488
|
padding: 0.25rem 0.5rem !important;
|
|
2489
2489
|
color: var(--primary-color) !important;
|
|
2490
2490
|
font-size: 0.875rem !important;
|
|
@@ -2967,6 +2967,32 @@ li.header-li-px {
|
|
|
2967
2967
|
padding: 9px;
|
|
2968
2968
|
}
|
|
2969
2969
|
|
|
2970
|
+
|
|
2971
|
+
.solid-media-card {
|
|
2972
|
+
box-shadow: none;
|
|
2973
|
+
border-radius: 0.5rem;
|
|
2974
|
+
border: 1px solid #E0E0E0;
|
|
2975
|
+
background: #FAFAFA;
|
|
2976
|
+
padding: 9px;
|
|
2977
|
+
height: 100%;
|
|
2978
|
+
transition: 0.2s linear;
|
|
2979
|
+
}
|
|
2980
|
+
|
|
2981
|
+
.solid-media-card:hover {
|
|
2982
|
+
border: 1px solid #722ED1;
|
|
2983
|
+
background: #F9F0FF;
|
|
2984
|
+
}
|
|
2985
|
+
|
|
2986
|
+
.solid-mimetype-chip {
|
|
2987
|
+
border-radius: 0.25rem;
|
|
2988
|
+
background: #F0F0F0;
|
|
2989
|
+
padding: 0.25rem 0.5rem;
|
|
2990
|
+
color: var(--secondary-dark-color);
|
|
2991
|
+
font-size: 12px;
|
|
2992
|
+
font-weight: 500;
|
|
2993
|
+
line-height: 16px;
|
|
2994
|
+
}
|
|
2995
|
+
|
|
2970
2996
|
.kanban-group-heading {
|
|
2971
2997
|
font-weight: 600;
|
|
2972
2998
|
display: flex;
|
|
@@ -3001,6 +3027,30 @@ flex-shrink: 0; */
|
|
|
3001
3027
|
box-shadow: rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;
|
|
3002
3028
|
}
|
|
3003
3029
|
|
|
3030
|
+
|
|
3031
|
+
.kanban-media-image-preview {
|
|
3032
|
+
/* width: 100px; */
|
|
3033
|
+
/* width: 240px;
|
|
3034
|
+
height: 120px;
|
|
3035
|
+
flex-shrink: 0; */
|
|
3036
|
+
width: 100%;
|
|
3037
|
+
border-radius: 8px;
|
|
3038
|
+
height: 145px;
|
|
3039
|
+
object-fit: contain;
|
|
3040
|
+
background-color: #fff;
|
|
3041
|
+
}
|
|
3042
|
+
|
|
3043
|
+
.kanban-media-view-card {
|
|
3044
|
+
width: 100%;
|
|
3045
|
+
border-radius: 8px;
|
|
3046
|
+
height: 145px;
|
|
3047
|
+
object-fit: contain;
|
|
3048
|
+
background-color: #fff;
|
|
3049
|
+
display: flex;
|
|
3050
|
+
align-items: center;
|
|
3051
|
+
justify-content: center;
|
|
3052
|
+
}
|
|
3053
|
+
|
|
3004
3054
|
.kanban-image-preview:hover {
|
|
3005
3055
|
box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
|
|
3006
3056
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -120,10 +120,12 @@ export type SolidSelectionStaticFieldWidgetProps = {
|
|
|
120
120
|
};
|
|
121
121
|
|
|
122
122
|
export type SolidShortTextImageRenderModeWidgetProps = {
|
|
123
|
-
data: string;
|
|
123
|
+
data: string;
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
export type SolidMediaSingleFieldWidgetProps = {
|
|
127
127
|
formik: any;
|
|
128
128
|
fieldContext?: SolidFieldProps;
|
|
129
|
+
setLightboxUrls?: any,
|
|
130
|
+
setOpenLightbox?: any
|
|
129
131
|
};
|