@visns-studio/visns-components 4.8.6 → 4.8.8
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
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
"akar-icons": "^1.9.31",
|
|
15
15
|
"array-move": "^4.0.0",
|
|
16
16
|
"awesome-debounce-promise": "^2.1.0",
|
|
17
|
-
"axios": "^1.7.
|
|
17
|
+
"axios": "^1.7.7",
|
|
18
18
|
"dayjs": "^1.11.13",
|
|
19
19
|
"file-saver": "^2.0.5",
|
|
20
|
-
"framer-motion": "^11.
|
|
20
|
+
"framer-motion": "^11.5.4",
|
|
21
21
|
"html-react-parser": "^5.1.15",
|
|
22
22
|
"lodash": "^4.17.21",
|
|
23
23
|
"lodash.debounce": "^4.0.8",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"react-reveal": "^1.2.2",
|
|
40
40
|
"react-router-dom": "^6.26.1",
|
|
41
41
|
"react-select": "^5.8.0",
|
|
42
|
-
"react-signature-pad-wrapper": "^4.0.
|
|
42
|
+
"react-signature-pad-wrapper": "^4.0.3",
|
|
43
43
|
"react-slugify": "^4.0.1",
|
|
44
44
|
"react-sortable-hoc": "^2.0.0",
|
|
45
45
|
"react-to-print": "^2.15.1",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"truncate": "^3.0.0",
|
|
53
53
|
"uuid": "^10.0.0",
|
|
54
54
|
"validator": "^13.12.0",
|
|
55
|
-
"vite": "^5.4.
|
|
55
|
+
"vite": "^5.4.3",
|
|
56
56
|
"yarn": "^1.22.22"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"mini-css-extract-plugin": "^2.9.1",
|
|
68
68
|
"react": "^18.3.1",
|
|
69
69
|
"react-dom": "^18.3.1",
|
|
70
|
-
"sass": "^1.
|
|
70
|
+
"sass": "^1.78.0",
|
|
71
71
|
"sass-loader": "^16.0.1"
|
|
72
72
|
},
|
|
73
73
|
"peerDependencies": {
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"react-dom": "^17.0.0 || ^18.0.0"
|
|
76
76
|
},
|
|
77
77
|
"name": "@visns-studio/visns-components",
|
|
78
|
-
"version": "4.8.
|
|
78
|
+
"version": "4.8.8",
|
|
79
79
|
"description": "Various packages to assist in the development of our Custom Applications.",
|
|
80
80
|
"main": "src/index.js",
|
|
81
81
|
"files": [
|
|
@@ -899,17 +899,22 @@ const DataGrid = forwardRef(
|
|
|
899
899
|
};
|
|
900
900
|
|
|
901
901
|
const renderRowContextMenu = useCallback(
|
|
902
|
-
(menuProps, { rowProps }) => {
|
|
903
|
-
if (
|
|
902
|
+
(menuProps, { rowProps, cellProps }) => {
|
|
903
|
+
if (
|
|
904
|
+
cellProps.link &&
|
|
905
|
+
cellProps.link.url &&
|
|
906
|
+
cellProps.link.url !== ''
|
|
907
|
+
) {
|
|
904
908
|
menuProps.autoDismiss = true;
|
|
905
909
|
menuProps.items = [
|
|
906
910
|
{
|
|
907
911
|
label: 'Open Link in a New Tab',
|
|
908
912
|
onClick: () => {
|
|
909
913
|
window.open(
|
|
910
|
-
`${
|
|
914
|
+
`${cellProps.link.url}/${
|
|
911
915
|
rowProps.data[form.primaryKey]
|
|
912
|
-
}
|
|
916
|
+
}`,
|
|
917
|
+
'_blank'
|
|
913
918
|
);
|
|
914
919
|
},
|
|
915
920
|
},
|
|
@@ -1008,7 +1008,11 @@ function GenericFormBuilder({ setting, urlParam, userProfile }) {
|
|
|
1008
1008
|
dropdownKey
|
|
1009
1009
|
) => (
|
|
1010
1010
|
<option
|
|
1011
|
-
value={
|
|
1011
|
+
value={
|
|
1012
|
+
dropdown.id
|
|
1013
|
+
? dropdown.id
|
|
1014
|
+
: dropdown.url
|
|
1015
|
+
}
|
|
1012
1016
|
key={`dynamic-dropdown-${dropdownKey}`}
|
|
1013
1017
|
>
|
|
1014
1018
|
{dropdown.label}
|
|
@@ -1700,7 +1704,7 @@ function GenericFormBuilder({ setting, urlParam, userProfile }) {
|
|
|
1700
1704
|
<span
|
|
1701
1705
|
className={styles.fi__span}
|
|
1702
1706
|
>
|
|
1703
|
-
|
|
1707
|
+
Associated Role?
|
|
1704
1708
|
</span>
|
|
1705
1709
|
</label>
|
|
1706
1710
|
</div>
|
|
@@ -1869,6 +1873,59 @@ function GenericFormBuilder({ setting, urlParam, userProfile }) {
|
|
|
1869
1873
|
</div>
|
|
1870
1874
|
) : null}
|
|
1871
1875
|
|
|
1876
|
+
<div className={styles.gridtxt__header}>
|
|
1877
|
+
<span>
|
|
1878
|
+
Conditional Field Display Criteria
|
|
1879
|
+
</span>
|
|
1880
|
+
</div>
|
|
1881
|
+
|
|
1882
|
+
<div className={styles.formItem}>
|
|
1883
|
+
<label className={styles.fi__label}>
|
|
1884
|
+
<select
|
|
1885
|
+
name="conditional_field"
|
|
1886
|
+
value={
|
|
1887
|
+
dataField.conditional_field
|
|
1888
|
+
}
|
|
1889
|
+
onChange={handleChangeForm}
|
|
1890
|
+
>
|
|
1891
|
+
<option>
|
|
1892
|
+
Please Select an Option
|
|
1893
|
+
</option>
|
|
1894
|
+
{data.detail &&
|
|
1895
|
+
data.detail.length > 0 &&
|
|
1896
|
+
data.detail.map(
|
|
1897
|
+
(item, key) => (
|
|
1898
|
+
<option
|
|
1899
|
+
value={item.id}
|
|
1900
|
+
key={`conditional-field-${item.id}-${key}`}
|
|
1901
|
+
>
|
|
1902
|
+
{item.label}
|
|
1903
|
+
</option>
|
|
1904
|
+
)
|
|
1905
|
+
)}
|
|
1906
|
+
</select>
|
|
1907
|
+
<span className={styles.fi__span}>
|
|
1908
|
+
Field
|
|
1909
|
+
</span>
|
|
1910
|
+
</label>
|
|
1911
|
+
</div>
|
|
1912
|
+
|
|
1913
|
+
<div className={styles.formItem}>
|
|
1914
|
+
<label className={styles.fi__label}>
|
|
1915
|
+
<input
|
|
1916
|
+
name="conditional_value"
|
|
1917
|
+
value={
|
|
1918
|
+
dataField.conditional_value
|
|
1919
|
+
}
|
|
1920
|
+
type="text"
|
|
1921
|
+
onChange={handleChangeForm}
|
|
1922
|
+
/>
|
|
1923
|
+
<span className={styles.fi__span}>
|
|
1924
|
+
Value
|
|
1925
|
+
</span>
|
|
1926
|
+
</label>
|
|
1927
|
+
</div>
|
|
1928
|
+
|
|
1872
1929
|
<div
|
|
1873
1930
|
className={`${styles.formItem} ${styles.fwItem} ${styles.lastItem}`}
|
|
1874
1931
|
>
|