@visns-studio/visns-components 5.4.11 → 5.4.13
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
CHANGED
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"react-dom": "^17.0.0 || ^18.0.0"
|
|
82
82
|
},
|
|
83
83
|
"name": "@visns-studio/visns-components",
|
|
84
|
-
"version": "5.4.
|
|
84
|
+
"version": "5.4.13",
|
|
85
85
|
"description": "Various packages to assist in the development of our Custom Applications.",
|
|
86
86
|
"main": "src/index.js",
|
|
87
87
|
"files": [
|
|
@@ -102,6 +102,7 @@ const loadData = async (
|
|
|
102
102
|
...(fv.whereHas?.relation && {
|
|
103
103
|
whereHas: fv.whereHas.relation,
|
|
104
104
|
}),
|
|
105
|
+
orKey: fv.orKey || null,
|
|
105
106
|
};
|
|
106
107
|
|
|
107
108
|
if (existingIndex !== -1) {
|
|
@@ -2737,6 +2738,9 @@ const DataGrid = forwardRef(
|
|
|
2737
2738
|
key: column.filter.key
|
|
2738
2739
|
? column.filter.key
|
|
2739
2740
|
: null,
|
|
2741
|
+
orKey: column.filter.orKey
|
|
2742
|
+
? column.filter.orKey
|
|
2743
|
+
: null,
|
|
2740
2744
|
name: filterName,
|
|
2741
2745
|
operator: column.filter.operator,
|
|
2742
2746
|
type: column.filter.type,
|
|
@@ -70,6 +70,7 @@ function GenericFormBuilder({ setting, urlParam, userProfile }) {
|
|
|
70
70
|
{ value: 'textarea', label: 'Textarea' },
|
|
71
71
|
{ value: 'html5_time', label: 'Time' },
|
|
72
72
|
{ value: 'toggle', label: 'Toggle' },
|
|
73
|
+
{ value: 'videoUpload', label: 'Video Upload' },
|
|
73
74
|
]);
|
|
74
75
|
const [rowOption, setRowOption] = useState({
|
|
75
76
|
id: '',
|
|
@@ -702,6 +703,16 @@ function GenericFormBuilder({ setting, urlParam, userProfile }) {
|
|
|
702
703
|
</span>
|
|
703
704
|
</div>
|
|
704
705
|
);
|
|
706
|
+
case 'videoUpload':
|
|
707
|
+
return (
|
|
708
|
+
<label className={styles.fi__label}>
|
|
709
|
+
<input type="file" />
|
|
710
|
+
<span className={styles.fi__span}>
|
|
711
|
+
{field.label}{' '}
|
|
712
|
+
{field.required === 'yes' ? '*' : null}
|
|
713
|
+
</span>
|
|
714
|
+
</label>
|
|
715
|
+
);
|
|
705
716
|
default:
|
|
706
717
|
return (
|
|
707
718
|
<label className={styles.fi__label}>
|