@visns-studio/visns-components 5.1.8 → 5.1.10
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/package.json +1 -1
- package/src/components/crm/Field.jsx +7 -8
- package/src/components/crm/QrCode.jsx +0 -4
- package/src/components/crm/generic/GenericDashboard.jsx +0 -1
- package/src/components/crm/generic/GenericDetail.jsx +0 -2
- package/src/components/crm/generic/styles/GenericDynamic.module.scss +1 -1
package/package.json
CHANGED
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"react-dom": "^17.0.0 || ^18.0.0"
|
|
78
78
|
},
|
|
79
79
|
"name": "@visns-studio/visns-components",
|
|
80
|
-
"version": "5.1.
|
|
80
|
+
"version": "5.1.10",
|
|
81
81
|
"description": "Various packages to assist in the development of our Custom Applications.",
|
|
82
82
|
"main": "src/index.js",
|
|
83
83
|
"files": [
|
|
@@ -25,8 +25,6 @@ import VisnsDropZone from '../cms/DropZone';
|
|
|
25
25
|
|
|
26
26
|
import 'react-toggle/style.css';
|
|
27
27
|
import 'react-datepicker/dist/react-datepicker.css';
|
|
28
|
-
import Item from '../cms/sorting/Item';
|
|
29
|
-
|
|
30
28
|
function Field({
|
|
31
29
|
api,
|
|
32
30
|
autocompleteCallback,
|
|
@@ -102,6 +100,13 @@ function Field({
|
|
|
102
100
|
filter.sort = settings.order.sort;
|
|
103
101
|
}
|
|
104
102
|
|
|
103
|
+
if (settings?.customParams) {
|
|
104
|
+
filter = {
|
|
105
|
+
...filter,
|
|
106
|
+
...settings.customParams,
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
|
|
105
110
|
CustomFetch(settings.url, 'POST', filter, function (result) {
|
|
106
111
|
setOptions(result.data);
|
|
107
112
|
|
|
@@ -144,8 +149,6 @@ function Field({
|
|
|
144
149
|
break;
|
|
145
150
|
}
|
|
146
151
|
|
|
147
|
-
console.info(settings);
|
|
148
|
-
|
|
149
152
|
switch (settings.size) {
|
|
150
153
|
case 'full':
|
|
151
154
|
setFormItemClass(`${styles.formItem} ${styles.fwItem}`);
|
|
@@ -159,10 +162,6 @@ function Field({
|
|
|
159
162
|
}
|
|
160
163
|
}, [settings, counter]);
|
|
161
164
|
|
|
162
|
-
useEffect(() => {
|
|
163
|
-
console.info(formItemClass);
|
|
164
|
-
}, [formItemClass]);
|
|
165
|
-
|
|
166
165
|
const fetchChildDropdownData = (s, v) => {
|
|
167
166
|
let filter = {};
|
|
168
167
|
|