@visns-studio/visns-components 3.6.4 → 3.6.6
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.
|
@@ -106,6 +106,7 @@ const DataGrid = forwardRef(
|
|
|
106
106
|
(
|
|
107
107
|
{
|
|
108
108
|
ajaxSetting,
|
|
109
|
+
api,
|
|
109
110
|
columns,
|
|
110
111
|
form,
|
|
111
112
|
gridHeight,
|
|
@@ -2384,6 +2385,7 @@ const DataGrid = forwardRef(
|
|
|
2384
2385
|
>
|
|
2385
2386
|
<Form
|
|
2386
2387
|
ajaxSetting={ajaxSetting}
|
|
2388
|
+
api={api}
|
|
2387
2389
|
closeModal={modalClose}
|
|
2388
2390
|
columnId={formId}
|
|
2389
2391
|
fetchTable={handleReload}
|
package/components/crm/Field.jsx
CHANGED
|
@@ -21,6 +21,7 @@ import 'react-toggle/style.css';
|
|
|
21
21
|
import 'react-datepicker/dist/react-datepicker.css';
|
|
22
22
|
|
|
23
23
|
function Field({
|
|
24
|
+
api,
|
|
24
25
|
autocompleteCallback,
|
|
25
26
|
childDropdownCallback,
|
|
26
27
|
fetchData,
|
|
@@ -40,6 +41,7 @@ function Field({
|
|
|
40
41
|
setFormData,
|
|
41
42
|
settings,
|
|
42
43
|
style,
|
|
44
|
+
userProfile = null,
|
|
43
45
|
}) {
|
|
44
46
|
const editorRef = useRef(null);
|
|
45
47
|
const fileImageInputRef = useRef(null);
|
|
@@ -991,7 +993,13 @@ function Field({
|
|
|
991
993
|
case 'richeditor':
|
|
992
994
|
return (
|
|
993
995
|
<Editor
|
|
994
|
-
apiKey={
|
|
996
|
+
apiKey={
|
|
997
|
+
userProfile?.settings?.api?.tinymce
|
|
998
|
+
? userProfile.settings.api.tinymce
|
|
999
|
+
: api.tinymce
|
|
1000
|
+
? api.tinymce
|
|
1001
|
+
: ''
|
|
1002
|
+
}
|
|
995
1003
|
onEditorChange={(value, e) => {
|
|
996
1004
|
onChangeRicheditor(e, value, settings.id);
|
|
997
1005
|
}}
|
package/components/crm/Form.jsx
CHANGED
|
@@ -18,6 +18,7 @@ import Table from './DataGrid';
|
|
|
18
18
|
|
|
19
19
|
function Form({
|
|
20
20
|
ajaxSetting,
|
|
21
|
+
api,
|
|
21
22
|
closeModal,
|
|
22
23
|
columnId,
|
|
23
24
|
formType,
|
|
@@ -1084,6 +1085,7 @@ function Form({
|
|
|
1084
1085
|
default:
|
|
1085
1086
|
return (
|
|
1086
1087
|
<Field
|
|
1088
|
+
api={api}
|
|
1087
1089
|
autocompleteCallback={
|
|
1088
1090
|
autocompleteSelect
|
|
1089
1091
|
}
|
|
@@ -1121,6 +1123,7 @@ function Form({
|
|
|
1121
1123
|
setFormData={setFormData}
|
|
1122
1124
|
style={style}
|
|
1123
1125
|
uploadProgress={uploadProgress}
|
|
1126
|
+
userProfile={userProfile}
|
|
1124
1127
|
/>
|
|
1125
1128
|
);
|
|
1126
1129
|
}
|
|
@@ -1194,6 +1197,7 @@ function Form({
|
|
|
1194
1197
|
}
|
|
1195
1198
|
return (
|
|
1196
1199
|
<Field
|
|
1200
|
+
api={api}
|
|
1197
1201
|
autocompleteCallback={
|
|
1198
1202
|
autocompleteSelect
|
|
1199
1203
|
}
|
|
@@ -1235,6 +1239,7 @@ function Form({
|
|
|
1235
1239
|
setFormData={setFormData}
|
|
1236
1240
|
style={style}
|
|
1237
1241
|
uploadProgress={uploadProgress}
|
|
1242
|
+
userProfile={userProfile}
|
|
1238
1243
|
/>
|
|
1239
1244
|
);
|
|
1240
1245
|
})}
|
package/package.json
CHANGED