@gpa-gemstone/common-pages 0.0.103 → 0.0.105

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. package/lib/ErrorBoundary.d.ts +17 -17
  2. package/lib/ErrorBoundary.js +91 -68
  3. package/lib/Note.d.ts +22 -22
  4. package/lib/Note.js +256 -230
  5. package/lib/SearchBar.d.ts +37 -37
  6. package/lib/SearchBar.js +203 -180
  7. package/lib/SelectionPopup.d.ts +42 -42
  8. package/lib/SelectionPopup.js +93 -90
  9. package/lib/Setting.d.ts +8 -8
  10. package/lib/Setting.js +151 -125
  11. package/lib/SliceInterfaces.d.ts +76 -76
  12. package/lib/SliceInterfaces.js +2 -2
  13. package/lib/StandardSelectPopup.d.ts +20 -20
  14. package/lib/StandardSelectPopup.js +135 -109
  15. package/lib/TimeFilter/QuickSelects.d.ts +7 -0
  16. package/lib/TimeFilter/QuickSelects.js +240 -0
  17. package/lib/TimeFilter.d.ts +26 -0
  18. package/lib/TimeFilter.js +270 -0
  19. package/lib/TimeWindowUtils.d.ts +33 -0
  20. package/lib/TimeWindowUtils.js +121 -0
  21. package/lib/ValueList/ByValueList.d.ts +10 -10
  22. package/lib/ValueList/ByValueList.js +141 -115
  23. package/lib/ValueList/Group.d.ts +11 -11
  24. package/lib/ValueList/Group.js +97 -71
  25. package/lib/ValueList/GroupForm.d.ts +9 -9
  26. package/lib/ValueList/GroupForm.js +74 -51
  27. package/lib/ValueList/GroupInfo.d.ts +8 -8
  28. package/lib/ValueList/GroupInfo.js +95 -69
  29. package/lib/ValueList/GroupItem.d.ts +9 -9
  30. package/lib/ValueList/GroupItem.js +142 -116
  31. package/lib/ValueList/ItemForm.d.ts +9 -9
  32. package/lib/ValueList/ItemForm.js +82 -59
  33. package/lib/index.d.ts +12 -11
  34. package/lib/index.js +50 -45
  35. package/lib/user/AdditionalField.d.ts +26 -26
  36. package/lib/user/AdditionalField.js +290 -264
  37. package/lib/user/ByUser.d.ts +12 -12
  38. package/lib/user/ByUser.js +174 -148
  39. package/lib/user/User.d.ts +14 -14
  40. package/lib/user/User.js +97 -71
  41. package/lib/user/UserForm.d.ts +12 -12
  42. package/lib/user/UserForm.js +166 -143
  43. package/lib/user/UserInfo.d.ts +7 -7
  44. package/lib/user/UserInfo.js +123 -97
  45. package/lib/user/UserPermissions.d.ts +8 -8
  46. package/lib/user/UserPermissions.js +106 -83
  47. package/package.json +9 -8
@@ -1,12 +1,12 @@
1
- /// <reference types="react" />
2
- import { Application } from '@gpa-gemstone/application-typings';
3
- import { IUserAccountSlice } from '../SliceInterfaces';
4
- interface IProps {
5
- UserAccount: Application.Types.iUserAccount;
6
- Setter: (record: Application.Types.iUserAccount) => void;
7
- Edit: boolean;
8
- SetErrors?: (e: string[]) => void;
9
- UserSlice: IUserAccountSlice;
10
- }
11
- declare function UserForm(props: IProps): JSX.Element | null;
12
- export default UserForm;
1
+ import * as React from 'react';
2
+ import { Application } from '@gpa-gemstone/application-typings';
3
+ import { IUserAccountSlice } from '../SliceInterfaces';
4
+ interface IProps {
5
+ UserAccount: Application.Types.iUserAccount;
6
+ Setter: (record: Application.Types.iUserAccount) => void;
7
+ Edit: boolean;
8
+ SetErrors?: (e: string[]) => void;
9
+ UserSlice: IUserAccountSlice;
10
+ }
11
+ declare function UserForm(props: IProps): React.JSX.Element | null;
12
+ export default UserForm;
@@ -1,143 +1,166 @@
1
- "use strict";
2
- // ******************************************************************************************************
3
- // UserForm.tsx - Gbtc
4
- //
5
- // Copyright © 2020, Grid Protection Alliance. All Rights Reserved.
6
- //
7
- // Licensed to the Grid Protection Alliance (GPA) under one or more contributor license agreements. See
8
- // the NOTICE file distributed with this work for additional information regarding copyright ownership.
9
- // The GPA licenses this file to you under the MIT License (MIT), the "License"; you may not use this
10
- // file except in compliance with the License. You may obtain a copy of the License at:
11
- //
12
- // http://opensource.org/licenses/MIT
13
- //
14
- // Unless agreed to in writing, the subject software distributed under the License is distributed on an
15
- // "AS-IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. Refer to the
16
- // License for the specific language governing permissions and limitations.
17
- //
18
- // Code Modification History:
19
- // ----------------------------------------------------------------------------------------------------
20
- // 07/14/2021 - C. Lackner
21
- // Generated original version of source code.
22
- // ******************************************************************************************************
23
- Object.defineProperty(exports, "__esModule", { value: true });
24
- var React = require("react");
25
- var react_forms_1 = require("@gpa-gemstone/react-forms");
26
- var _ = require("lodash");
27
- var react_redux_1 = require("react-redux");
28
- function UserForm(props) {
29
- var dispatch = (0, react_redux_1.useDispatch)();
30
- var _a = React.useState(false), updatedAD = _a[0], setUpdatedAD = _a[1];
31
- var userValidation = (0, react_redux_1.useSelector)(props.UserSlice.ADValidation);
32
- var _b = React.useState([]), userError = _b[0], setUserError = _b[1];
33
- React.useEffect(function () {
34
- if (userValidation === 'Valid' && !props.Edit && updatedAD === false)
35
- dispatch(props.UserSlice.ADUpdate());
36
- }, [userValidation, updatedAD]);
37
- React.useEffect(function () {
38
- if (props.SetErrors !== undefined)
39
- props.SetErrors(userError);
40
- }, [userError, props.SetErrors]);
41
- React.useEffect(function () {
42
- if (props.UserAccount == null)
43
- return;
44
- var e = [];
45
- if (props.UserAccount.Name == null || props.UserAccount.Name.length === 0)
46
- e.push('An AccountName is required.');
47
- if (props.UserAccount.UseADAuthentication && userValidation !== 'Valid')
48
- e.push('The user could not be validated by the AD.');
49
- setUserError(e);
50
- }, [props.UserAccount, userValidation]);
51
- function validUserAccountField(user, field) {
52
- if (field === 'Name')
53
- return user.Name != null && user.Name.length > 0 && user.Name.length <= 200;
54
- else if (field === 'Password')
55
- return user.Password == null || user.Password.length <= 200;
56
- else if (field === 'FirstName')
57
- return user.FirstName == null || user.FirstName.length <= 200;
58
- else if (field === 'LastName')
59
- return user.LastName == null || user.LastName.length <= 200;
60
- else if (field === 'Phone')
61
- return user.Phone == null || user.Phone.length <= 200;
62
- else if (field === 'Email')
63
- return user.Email == null || user.Email.length <= 200;
64
- else if (field === "ChangePasswordOn")
65
- return user.ChangePasswordOn == null;
66
- return false;
67
- }
68
- if (props.UserAccount == null)
69
- return null;
70
- return (React.createElement(React.Fragment, null,
71
- React.createElement("form", null,
72
- React.createElement("div", { className: "row" },
73
- React.createElement("div", { className: "col" },
74
- React.createElement(react_forms_1.Input, { Record: props.UserAccount, Disabled: props.Edit, Field: 'Name', Feedback: 'A Name of less than 200 characters is required.', Valid: function (field) { return validUserAccountField(props.UserAccount, field); }, Setter: function (record) {
75
- setUpdatedAD(false);
76
- props.Setter(record);
77
- } }),
78
- React.createElement("div", { className: "row", style: { position: 'absolute', top: 0, left: 100 }, hidden: !props.UserAccount.UseADAuthentication },
79
- React.createElement("span", { id: "resolvingAccount", hidden: userValidation !== 'Resolving' },
80
- React.createElement("i", { style: { height: 10, width: 10, color: 'grey' }, className: "fa fa fa-spin fa-refresh" }),
81
- "\u00A0",
82
- React.createElement("em", { className: "small" }, "Resolving account details...")),
83
- React.createElement("span", { id: "accountValid", hidden: userValidation !== 'Valid' },
84
- React.createElement("i", { style: { height: 20, width: 20, color: 'green' }, className: "fa fa-check-circle" }),
85
- "\u00A0",
86
- React.createElement("em", { className: "small" }, "Resolved account name ")),
87
- React.createElement("span", { id: "accountInvalid", hidden: userValidation !== 'Invalid' },
88
- React.createElement("i", { style: { height: 20, width: 20, color: 'red' }, className: "fa fa-times-circle" }),
89
- "\u00A0",
90
- React.createElement("em", { className: "small" }, "Cannot resolve account name")),
91
- React.createElement("span", { id: "accountUnknown", hidden: userValidation !== 'Unknown' },
92
- React.createElement("i", { style: { height: 20, width: 20, color: 'orange' }, className: "fa fa-exclamation-circle" }),
93
- "\u00A0",
94
- React.createElement("em", { className: "small" }, "Valid account name is not a user or Active Directory access is limited"))),
95
- React.createElement("button", { style: { marginBottom: 10 }, type: "button", className: "btn btn-primary btn-sm", onClick: function (evt) { evt.preventDefault(); dispatch(props.UserSlice.ADUpdate()); }, hidden: userValidation !== 'Valid' || !props.Edit }, "Load Information from AD"),
96
- React.createElement("div", { className: "card" },
97
- React.createElement("div", { className: "card-header" },
98
- React.createElement("div", { className: "row" },
99
- React.createElement("div", { className: "col-xs-4" },
100
- React.createElement("div", { className: "form-check-inline" },
101
- React.createElement("label", { className: "form-check-label" },
102
- React.createElement("input", { disabled: props.Edit, className: 'form-check-input', type: 'radio', checked: props.UserAccount.UseADAuthentication, onChange: function (e) {
103
- var record = _.clone(props.UserAccount);
104
- record.UseADAuthentication = e.target.checked;
105
- props.Setter(record);
106
- } }),
107
- "Active Directory User"))),
108
- React.createElement("div", { className: "col-xs-4" },
109
- React.createElement("div", { className: "form-check-inline" },
110
- React.createElement("label", { className: "form-check-label" },
111
- React.createElement("input", { disabled: props.Edit, className: 'form-check-input', type: 'radio', checked: !props.UserAccount.UseADAuthentication, onChange: function (e) {
112
- var record = _.clone(props.UserAccount);
113
- record.UseADAuthentication = !e.target.checked;
114
- props.Setter(record);
115
- } }),
116
- "Database User"))))),
117
- React.createElement("div", { className: "card-body", hidden: !props.UserAccount.UseADAuthentication },
118
- React.createElement("div", { className: "row" },
119
- React.createElement("div", { className: "col" },
120
- React.createElement(react_forms_1.Input, { Record: props.UserAccount, Field: 'FirstName', Label: 'First Name', Feedback: 'First Name must be less than 200 characters.', Valid: function (field) { return validUserAccountField(props.UserAccount, field); }, Setter: props.Setter }),
121
- React.createElement(react_forms_1.Input, { Record: props.UserAccount, Field: 'LastName', Label: 'Last Name', Feedback: 'Last Name must be less than 200 characters.', Valid: function (field) { return validUserAccountField(props.UserAccount, field); }, Setter: props.Setter })),
122
- React.createElement("div", { className: "col" },
123
- React.createElement(react_forms_1.Input, { Record: props.UserAccount, Field: 'Phone', Feedback: 'Phone must be less than 200 characters.', Valid: function (field) { return validUserAccountField(props.UserAccount, field); }, Setter: props.Setter }),
124
- React.createElement(react_forms_1.Input, { Record: props.UserAccount, Field: 'Email', Feedback: 'Email must be less than 200 characters.', Valid: function (field) { return validUserAccountField(props.UserAccount, field); }, Setter: props.Setter })))),
125
- React.createElement("div", { className: "card-body", hidden: props.UserAccount.UseADAuthentication },
126
- React.createElement("div", { className: "row" },
127
- React.createElement("div", { className: "col" },
128
- React.createElement(react_forms_1.Input, { Record: props.UserAccount, Field: 'Password', Feedback: 'Password must be less than 200 characters.', Type: 'password', Valid: function (field) { return validUserAccountField(props.UserAccount, field); }, Setter: props.Setter }),
129
- React.createElement(react_forms_1.Input, { Record: props.UserAccount, Field: 'FirstName', Label: 'First Name', Feedback: 'First Name must be less than 200 characters.', Valid: function (field) { return validUserAccountField(props.UserAccount, field); }, Setter: props.Setter }),
130
- React.createElement(react_forms_1.Input, { Record: props.UserAccount, Field: 'LastName', Label: 'Last Name', Feedback: 'Last Name must be less than 200 characters.', Valid: function (field) { return validUserAccountField(props.UserAccount, field); }, Setter: props.Setter })),
131
- React.createElement("div", { className: "col" },
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 }),
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 }),
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); } })))),
135
- React.createElement("div", { className: "row" },
136
- React.createElement("div", { className: "col", style: { margin: 10 } },
137
- React.createElement(react_forms_1.CheckBox, { Record: props.UserAccount, Label: 'Locked Out', Field: 'LockedOut', Setter: props.Setter }),
138
- React.createElement(react_forms_1.CheckBox, { Record: props.UserAccount, Field: 'Approved', Setter: props.Setter })),
139
- React.createElement("div", { className: "col-lg-6" },
140
- React.createElement(react_forms_1.CheckBox, { Record: props.UserAccount, Label: 'Phone Confirmed', Field: 'PhoneConfirmed', Setter: props.Setter }),
141
- React.createElement(react_forms_1.CheckBox, { Record: props.UserAccount, Label: 'Email Confirmed', Field: 'EmailConfirmed', Setter: props.Setter })))))))));
142
- }
143
- exports.default = UserForm;
1
+ "use strict";
2
+ // ******************************************************************************************************
3
+ // UserForm.tsx - Gbtc
4
+ //
5
+ // Copyright © 2020, Grid Protection Alliance. All Rights Reserved.
6
+ //
7
+ // Licensed to the Grid Protection Alliance (GPA) under one or more contributor license agreements. See
8
+ // the NOTICE file distributed with this work for additional information regarding copyright ownership.
9
+ // The GPA licenses this file to you under the MIT License (MIT), the "License"; you may not use this
10
+ // file except in compliance with the License. You may obtain a copy of the License at:
11
+ //
12
+ // http://opensource.org/licenses/MIT
13
+ //
14
+ // Unless agreed to in writing, the subject software distributed under the License is distributed on an
15
+ // "AS-IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. Refer to the
16
+ // License for the specific language governing permissions and limitations.
17
+ //
18
+ // Code Modification History:
19
+ // ----------------------------------------------------------------------------------------------------
20
+ // 07/14/2021 - C. Lackner
21
+ // Generated original version of source code.
22
+ // ******************************************************************************************************
23
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
24
+ if (k2 === undefined) k2 = k;
25
+ var desc = Object.getOwnPropertyDescriptor(m, k);
26
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
27
+ desc = { enumerable: true, get: function() { return m[k]; } };
28
+ }
29
+ Object.defineProperty(o, k2, desc);
30
+ }) : (function(o, m, k, k2) {
31
+ if (k2 === undefined) k2 = k;
32
+ o[k2] = m[k];
33
+ }));
34
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
35
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
36
+ }) : function(o, v) {
37
+ o["default"] = v;
38
+ });
39
+ var __importStar = (this && this.__importStar) || function (mod) {
40
+ if (mod && mod.__esModule) return mod;
41
+ var result = {};
42
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
43
+ __setModuleDefault(result, mod);
44
+ return result;
45
+ };
46
+ Object.defineProperty(exports, "__esModule", { value: true });
47
+ var React = __importStar(require("react"));
48
+ var react_forms_1 = require("@gpa-gemstone/react-forms");
49
+ var _ = __importStar(require("lodash"));
50
+ var react_redux_1 = require("react-redux");
51
+ function UserForm(props) {
52
+ var dispatch = (0, react_redux_1.useDispatch)();
53
+ var _a = React.useState(false), updatedAD = _a[0], setUpdatedAD = _a[1];
54
+ var userValidation = (0, react_redux_1.useSelector)(props.UserSlice.ADValidation);
55
+ var _b = React.useState([]), userError = _b[0], setUserError = _b[1];
56
+ React.useEffect(function () {
57
+ if (userValidation === 'Valid' && !props.Edit && updatedAD === false)
58
+ dispatch(props.UserSlice.ADUpdate());
59
+ }, [userValidation, updatedAD]);
60
+ React.useEffect(function () {
61
+ if (props.SetErrors !== undefined)
62
+ props.SetErrors(userError);
63
+ }, [userError, props.SetErrors]);
64
+ React.useEffect(function () {
65
+ if (props.UserAccount == null)
66
+ return;
67
+ var e = [];
68
+ if (props.UserAccount.Name == null || props.UserAccount.Name.length === 0)
69
+ e.push('An AccountName is required.');
70
+ if (props.UserAccount.UseADAuthentication && userValidation !== 'Valid')
71
+ e.push('The user could not be validated by the AD.');
72
+ setUserError(e);
73
+ }, [props.UserAccount, userValidation]);
74
+ function validUserAccountField(user, field) {
75
+ if (field === 'Name')
76
+ return user.Name != null && user.Name.length > 0 && user.Name.length <= 200;
77
+ else if (field === 'Password')
78
+ return user.Password == null || user.Password.length <= 200;
79
+ else if (field === 'FirstName')
80
+ return user.FirstName == null || user.FirstName.length <= 200;
81
+ else if (field === 'LastName')
82
+ return user.LastName == null || user.LastName.length <= 200;
83
+ else if (field === 'Phone')
84
+ return user.Phone == null || user.Phone.length <= 200;
85
+ else if (field === 'Email')
86
+ return user.Email == null || user.Email.length <= 200;
87
+ else if (field === "ChangePasswordOn")
88
+ return user.ChangePasswordOn == null;
89
+ return false;
90
+ }
91
+ if (props.UserAccount == null)
92
+ return null;
93
+ return (React.createElement(React.Fragment, null,
94
+ React.createElement("form", null,
95
+ React.createElement("div", { className: "row" },
96
+ React.createElement("div", { className: "col" },
97
+ React.createElement(react_forms_1.Input, { Record: props.UserAccount, Disabled: props.Edit, Field: 'Name', Feedback: 'A Name of less than 200 characters is required.', Valid: function (field) { return validUserAccountField(props.UserAccount, field); }, Setter: function (record) {
98
+ setUpdatedAD(false);
99
+ props.Setter(record);
100
+ } }),
101
+ React.createElement("div", { className: "row", style: { position: 'absolute', top: 0, left: 100 }, hidden: !props.UserAccount.UseADAuthentication },
102
+ React.createElement("span", { id: "resolvingAccount", hidden: userValidation !== 'Resolving' },
103
+ React.createElement("i", { style: { height: 10, width: 10, color: 'grey' }, className: "fa fa fa-spin fa-refresh" }),
104
+ "\u00A0",
105
+ React.createElement("em", { className: "small" }, "Resolving account details...")),
106
+ React.createElement("span", { id: "accountValid", hidden: userValidation !== 'Valid' },
107
+ React.createElement("i", { style: { height: 20, width: 20, color: 'green' }, className: "fa fa-check-circle" }),
108
+ "\u00A0",
109
+ React.createElement("em", { className: "small" }, "Resolved account name ")),
110
+ React.createElement("span", { id: "accountInvalid", hidden: userValidation !== 'Invalid' },
111
+ React.createElement("i", { style: { height: 20, width: 20, color: 'red' }, className: "fa fa-times-circle" }),
112
+ "\u00A0",
113
+ React.createElement("em", { className: "small" }, "Cannot resolve account name")),
114
+ React.createElement("span", { id: "accountUnknown", hidden: userValidation !== 'Unknown' },
115
+ React.createElement("i", { style: { height: 20, width: 20, color: 'orange' }, className: "fa fa-exclamation-circle" }),
116
+ "\u00A0",
117
+ React.createElement("em", { className: "small" }, "Valid account name is not a user or Active Directory access is limited"))),
118
+ React.createElement("button", { style: { marginBottom: 10 }, type: "button", className: "btn btn-primary btn-sm", onClick: function (evt) { evt.preventDefault(); dispatch(props.UserSlice.ADUpdate()); }, hidden: userValidation !== 'Valid' || !props.Edit }, "Load Information from AD"),
119
+ React.createElement("div", { className: "card" },
120
+ React.createElement("div", { className: "card-header" },
121
+ React.createElement("div", { className: "row" },
122
+ React.createElement("div", { className: "col-xs-4" },
123
+ React.createElement("div", { className: "form-check-inline" },
124
+ React.createElement("label", { className: "form-check-label" },
125
+ React.createElement("input", { disabled: props.Edit, className: 'form-check-input', type: 'radio', checked: props.UserAccount.UseADAuthentication, onChange: function (e) {
126
+ var record = _.clone(props.UserAccount);
127
+ record.UseADAuthentication = e.target.checked;
128
+ props.Setter(record);
129
+ } }),
130
+ "Active Directory User"))),
131
+ React.createElement("div", { className: "col-xs-4" },
132
+ React.createElement("div", { className: "form-check-inline" },
133
+ React.createElement("label", { className: "form-check-label" },
134
+ React.createElement("input", { disabled: props.Edit, className: 'form-check-input', type: 'radio', checked: !props.UserAccount.UseADAuthentication, onChange: function (e) {
135
+ var record = _.clone(props.UserAccount);
136
+ record.UseADAuthentication = !e.target.checked;
137
+ props.Setter(record);
138
+ } }),
139
+ "Database User"))))),
140
+ React.createElement("div", { className: "card-body", hidden: !props.UserAccount.UseADAuthentication },
141
+ React.createElement("div", { className: "row" },
142
+ React.createElement("div", { className: "col" },
143
+ React.createElement(react_forms_1.Input, { Record: props.UserAccount, Field: 'FirstName', Label: 'First Name', Feedback: 'First Name must be less than 200 characters.', Valid: function (field) { return validUserAccountField(props.UserAccount, field); }, Setter: props.Setter }),
144
+ React.createElement(react_forms_1.Input, { Record: props.UserAccount, Field: 'LastName', Label: 'Last Name', Feedback: 'Last Name must be less than 200 characters.', Valid: function (field) { return validUserAccountField(props.UserAccount, field); }, Setter: props.Setter })),
145
+ React.createElement("div", { className: "col" },
146
+ React.createElement(react_forms_1.Input, { Record: props.UserAccount, Field: 'Phone', Feedback: 'Phone must be less than 200 characters.', Valid: function (field) { return validUserAccountField(props.UserAccount, field); }, Setter: props.Setter }),
147
+ React.createElement(react_forms_1.Input, { Record: props.UserAccount, Field: 'Email', Feedback: 'Email must be less than 200 characters.', Valid: function (field) { return validUserAccountField(props.UserAccount, field); }, Setter: props.Setter })))),
148
+ React.createElement("div", { className: "card-body", hidden: props.UserAccount.UseADAuthentication },
149
+ React.createElement("div", { className: "row" },
150
+ React.createElement("div", { className: "col" },
151
+ React.createElement(react_forms_1.Input, { Record: props.UserAccount, Field: 'Password', Feedback: 'Password must be less than 200 characters.', Type: 'password', Valid: function (field) { return validUserAccountField(props.UserAccount, field); }, Setter: props.Setter }),
152
+ React.createElement(react_forms_1.Input, { Record: props.UserAccount, Field: 'FirstName', Label: 'First Name', Feedback: 'First Name must be less than 200 characters.', Valid: function (field) { return validUserAccountField(props.UserAccount, field); }, Setter: props.Setter }),
153
+ React.createElement(react_forms_1.Input, { Record: props.UserAccount, Field: 'LastName', Label: 'Last Name', Feedback: 'Last Name must be less than 200 characters.', Valid: function (field) { return validUserAccountField(props.UserAccount, field); }, Setter: props.Setter })),
154
+ React.createElement("div", { className: "col" },
155
+ 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 }),
156
+ 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 }),
157
+ 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); } })))),
158
+ React.createElement("div", { className: "row" },
159
+ React.createElement("div", { className: "col", style: { margin: 10 } },
160
+ React.createElement(react_forms_1.CheckBox, { Record: props.UserAccount, Label: 'Locked Out', Field: 'LockedOut', Setter: props.Setter }),
161
+ React.createElement(react_forms_1.CheckBox, { Record: props.UserAccount, Field: 'Approved', Setter: props.Setter })),
162
+ React.createElement("div", { className: "col-lg-6" },
163
+ React.createElement(react_forms_1.CheckBox, { Record: props.UserAccount, Label: 'Phone Confirmed', Field: 'PhoneConfirmed', Setter: props.Setter }),
164
+ React.createElement(react_forms_1.CheckBox, { Record: props.UserAccount, Label: 'Email Confirmed', Field: 'EmailConfirmed', Setter: props.Setter })))))))));
165
+ }
166
+ exports.default = UserForm;
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
2
- import { IUserAccountSlice } from '../SliceInterfaces';
3
- interface IProps {
4
- UserSlice: IUserAccountSlice;
5
- }
6
- declare function UserInfo(props: IProps): JSX.Element;
7
- export default UserInfo;
1
+ import * as React from 'react';
2
+ import { IUserAccountSlice } from '../SliceInterfaces';
3
+ interface IProps {
4
+ UserSlice: IUserAccountSlice;
5
+ }
6
+ declare function UserInfo(props: IProps): React.JSX.Element;
7
+ export default UserInfo;