@gpa-gemstone/common-pages 0.0.35 → 0.0.39
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.
@@ -80,7 +80,7 @@ function SelectPopup(props) {
|
|
80
80
|
}, onClick: function (d) { return setSelectedData(__spreadArray(__spreadArray([], selectedData.filter(function (item) { return item.ID !== d.row.ID; }), true), [d.row], false)); }, theadStyle: { fontSize: 'smaller', display: 'table', tableLayout: 'fixed', width: '100%' }, tbodyStyle: { display: 'block', overflowY: 'scroll', maxHeight: '400px', width: '100%' }, rowStyle: { fontSize: 'smaller', display: 'table', tableLayout: 'fixed', width: '100%' }, selected: props.Type === undefined || props.Type === 'single' ? function (item) { return selectedData.findIndex(function (d) { return d.ID === item.ID; }) > -1; } : function (item) { return false; } })),
|
81
81
|
props.Type === 'multiple' ? React.createElement("div", { className: "col", style: { width: '40%' } },
|
82
82
|
React.createElement("div", { style: { width: '100%' } },
|
83
|
-
React.createElement("h3", null, "
|
83
|
+
React.createElement("h3", null, " Current Selection ")),
|
84
84
|
React.createElement(react_table_1.default, { cols: props.Columns, tableClass: "table table-hover", data: selectedData, sortKey: sortKeySelected, ascending: ascendingSelected, onSort: function (d) {
|
85
85
|
if (d.colKey === sortKeySelected) {
|
86
86
|
var ordered = _.orderBy(selectedData, [d.colKey], [(!ascendingSelected ? "asc" : "desc")]);
|
@@ -93,6 +93,6 @@ function SelectPopup(props) {
|
|
93
93
|
setSelectedData(ordered);
|
94
94
|
setSortKeySelected(d.colKey);
|
95
95
|
}
|
96
|
-
}, onClick: function () { return true; }, theadStyle: { fontSize: 'smaller', display: 'table', tableLayout: 'fixed', width: '100%' }, tbodyStyle: { display: 'block', overflowY: 'scroll', maxHeight: '400px', width: '100%' }, rowStyle: { fontSize: 'smaller', display: 'table', tableLayout: 'fixed', width: '100%' }, selected: function (item) { return false; } })) : null))));
|
96
|
+
}, onClick: function (d) { return setSelectedData(__spreadArray([], selectedData.filter(function (item) { return item.ID !== d.row.ID; }), true)); }, theadStyle: { fontSize: 'smaller', display: 'table', tableLayout: 'fixed', width: '100%' }, tbodyStyle: { display: 'block', overflowY: 'scroll', maxHeight: '400px', width: '100%' }, rowStyle: { fontSize: 'smaller', display: 'table', tableLayout: 'fixed', width: '100%' }, selected: function (item) { return false; } })) : null))));
|
97
97
|
}
|
98
98
|
exports.default = SelectPopup;
|
package/lib/user/UserForm.js
CHANGED
@@ -61,6 +61,8 @@ function UserForm(props) {
|
|
61
61
|
return user.Phone == null || user.Phone.length <= 200;
|
62
62
|
else if (field === 'Email')
|
63
63
|
return user.Email == null || user.Email.length <= 200;
|
64
|
+
else if (field === "ChangePasswordOn")
|
65
|
+
return user.ChangePasswordOn == null;
|
64
66
|
return false;
|
65
67
|
}
|
66
68
|
if (props.UserAccount == null)
|
@@ -129,7 +131,7 @@ function UserForm(props) {
|
|
129
131
|
React.createElement("div", { className: "col" },
|
130
132
|
React.createElement(react_forms_1.Input, { Record: props.UserAccount, Field: 'Phone', Feedback: 'Password must be less than 200 characters.', Valid: function (field) { return validUserAccountField(props.UserAccount, field); }, Setter: props.Setter }),
|
131
133
|
React.createElement(react_forms_1.Input, { Record: props.UserAccount, Field: 'Email', Feedback: 'Password must be less than 200 characters.', Valid: function (field) { return validUserAccountField(props.UserAccount, field); }, Setter: props.Setter }),
|
132
|
-
React.createElement(react_forms_1.DatePicker, { Record: props.UserAccount, Field: 'ChangePasswordOn', Label: 'Change Password On', Setter: props.Setter })))),
|
134
|
+
React.createElement(react_forms_1.DatePicker, { Record: props.UserAccount, Field: 'ChangePasswordOn', Label: 'Change Password On', Setter: props.Setter, Valid: function (field) { return validUserAccountField(props.UserAccount, field); } })))),
|
133
135
|
React.createElement("div", { className: "row" },
|
134
136
|
React.createElement("div", { className: "col", style: { margin: 10 } },
|
135
137
|
React.createElement(react_forms_1.CheckBox, { Record: props.UserAccount, Label: 'Locked Out', Field: 'LockedOut', Setter: props.Setter }),
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@gpa-gemstone/common-pages",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.39",
|
4
4
|
"description": "Common UI pages for GPA products",
|
5
5
|
"main": "lib/index.js",
|
6
6
|
"types": "lib/index.d.ts",
|
@@ -47,12 +47,12 @@
|
|
47
47
|
"typescript": "4.4.4"
|
48
48
|
},
|
49
49
|
"dependencies": {
|
50
|
-
"@gpa-gemstone/application-typings": "0.0.
|
51
|
-
"@gpa-gemstone/gpa-symbols": "0.0.
|
50
|
+
"@gpa-gemstone/application-typings": "0.0.45",
|
51
|
+
"@gpa-gemstone/gpa-symbols": "0.0.20",
|
52
52
|
"@gpa-gemstone/helper-functions": "0.0.14",
|
53
|
-
"@gpa-gemstone/react-forms": "1.1.
|
54
|
-
"@gpa-gemstone/react-interactive": "1.0.
|
55
|
-
"@gpa-gemstone/react-table": "1.2.
|
53
|
+
"@gpa-gemstone/react-forms": "1.1.22",
|
54
|
+
"@gpa-gemstone/react-interactive": "1.0.50",
|
55
|
+
"@gpa-gemstone/react-table": "1.2.12",
|
56
56
|
"@reduxjs/toolkit": "1.6.0",
|
57
57
|
"crypto-js": "4.0.0",
|
58
58
|
"moment": "^2.29.1",
|