@itilite/iui-user-management 0.0.6 → 0.0.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/dist/index.css +40 -0
- package/dist/index.js +89 -68
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +90 -69
- package/dist/index.modern.js.map +1 -1
- package/dist/style.css +1 -0
- package/dist/style.css.map +1 -0
- package/package.json +2 -2
package/dist/index.css
CHANGED
|
@@ -357,6 +357,23 @@
|
|
|
357
357
|
padding: 10px;
|
|
358
358
|
border-radius: 20px;
|
|
359
359
|
}
|
|
360
|
+
|
|
361
|
+
._2ZeWp {
|
|
362
|
+
padding: 45px 40px;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
._2Iuy1 {
|
|
366
|
+
margin-left: 10px;
|
|
367
|
+
}
|
|
368
|
+
._2Iuy1:hover {
|
|
369
|
+
background-color: rgba(229, 228, 228, 0.231372549) !important;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
._3NJWF {
|
|
373
|
+
background-color: #ec6131;
|
|
374
|
+
border-radius: 20px;
|
|
375
|
+
color: white;
|
|
376
|
+
}
|
|
360
377
|
._2LqsB {
|
|
361
378
|
background-color: #ffffff;
|
|
362
379
|
}
|
|
@@ -994,4 +1011,27 @@
|
|
|
994
1011
|
border-radius: 6px;
|
|
995
1012
|
padding: 16px;
|
|
996
1013
|
word-break: break-word;
|
|
1014
|
+
}
|
|
1015
|
+
|
|
1016
|
+
._20Qv9 {
|
|
1017
|
+
width: 435px;
|
|
1018
|
+
}
|
|
1019
|
+
|
|
1020
|
+
._36au5 {
|
|
1021
|
+
padding: 45px 40px;
|
|
1022
|
+
}
|
|
1023
|
+
|
|
1024
|
+
._tULrl {
|
|
1025
|
+
font-weight: normal;
|
|
1026
|
+
color: #6b7280;
|
|
1027
|
+
font-family: "Inter", sans-serif;
|
|
1028
|
+
font-size: 0.875rem;
|
|
1029
|
+
}
|
|
1030
|
+
|
|
1031
|
+
._3W_ZV {
|
|
1032
|
+
font-weight: 500;
|
|
1033
|
+
color: #374151;
|
|
1034
|
+
font-family: "Inter", sans-serif;
|
|
1035
|
+
font-size: 1rem;
|
|
1036
|
+
line-height: 150%;
|
|
997
1037
|
}
|
package/dist/index.js
CHANGED
|
@@ -1182,7 +1182,7 @@ function GetInputType(_ref) {
|
|
|
1182
1182
|
}));
|
|
1183
1183
|
|
|
1184
1184
|
case 'checkbox':
|
|
1185
|
-
return /*#__PURE__*/React__default.createElement(iuistyles.
|
|
1185
|
+
return /*#__PURE__*/React__default.createElement(iuistyles.IUICheckboxButton, {
|
|
1186
1186
|
label: _p.label,
|
|
1187
1187
|
isCheckbox: true,
|
|
1188
1188
|
customHandler: customHandler,
|
|
@@ -2899,12 +2899,12 @@ var TravelExpenseFields = function TravelExpenseFields(props) {
|
|
|
2899
2899
|
}), !isProfile && fieldsInfo.length > 0 && /*#__PURE__*/React__default.createElement(iuistyles.IUIButton, {
|
|
2900
2900
|
buttonText: "Edit approver labels",
|
|
2901
2901
|
type: "text",
|
|
2902
|
-
|
|
2902
|
+
startIcon: /*#__PURE__*/React__default.createElement(PencilIcon, {
|
|
2903
2903
|
width: "13.59",
|
|
2904
2904
|
height: "13.59",
|
|
2905
2905
|
color: "#EC5D25"
|
|
2906
2906
|
}),
|
|
2907
|
-
|
|
2907
|
+
onClick: openEditAproverModal
|
|
2908
2908
|
})), /*#__PURE__*/React__default.createElement(iuistyles.IUIGrid, {
|
|
2909
2909
|
item: true,
|
|
2910
2910
|
sm: 12,
|
|
@@ -2949,12 +2949,12 @@ var TravelExpenseFields = function TravelExpenseFields(props) {
|
|
|
2949
2949
|
}, /*#__PURE__*/React__default.createElement(iuistyles.IUIButton, {
|
|
2950
2950
|
buttonText: fieldsInfo.length ? 'Add another approver' : 'Add an approver',
|
|
2951
2951
|
type: "text",
|
|
2952
|
-
|
|
2952
|
+
startIcon: /*#__PURE__*/React__default.createElement(AddIcon, {
|
|
2953
2953
|
width: "10",
|
|
2954
2954
|
height: "10",
|
|
2955
2955
|
color: "#EC5D25"
|
|
2956
2956
|
}),
|
|
2957
|
-
|
|
2957
|
+
onClick: addFields
|
|
2958
2958
|
})) : null, type === 'travel' && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, fieldsInfo.length || !isProfile ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(iuistyles.IUIGrid, {
|
|
2959
2959
|
item: true,
|
|
2960
2960
|
sm: 6,
|
|
@@ -3237,13 +3237,13 @@ var CustomFields = function CustomFields(_ref) {
|
|
|
3237
3237
|
}, /*#__PURE__*/React__default.createElement(iuistyles.IUIButton, {
|
|
3238
3238
|
buttonText: "Add custom field",
|
|
3239
3239
|
type: "text",
|
|
3240
|
-
|
|
3240
|
+
startIcon: /*#__PURE__*/React__default.createElement(AddIcon, {
|
|
3241
3241
|
width: "10",
|
|
3242
3242
|
height: "10",
|
|
3243
3243
|
color: "#EC5D25"
|
|
3244
3244
|
}),
|
|
3245
3245
|
className: styles.paddingTop,
|
|
3246
|
-
|
|
3246
|
+
onClick: openCustomFieldModal
|
|
3247
3247
|
}))), customFields.length > 0 && customFields.map(function (p, i) {
|
|
3248
3248
|
if (i >= maxCustomAttributes) {
|
|
3249
3249
|
return null;
|
|
@@ -3271,13 +3271,13 @@ var CustomFields = function CustomFields(_ref) {
|
|
|
3271
3271
|
}, /*#__PURE__*/React__default.createElement(iuistyles.IUIButton, {
|
|
3272
3272
|
buttonText: "Add custom field",
|
|
3273
3273
|
type: "text",
|
|
3274
|
-
|
|
3274
|
+
startIcon: /*#__PURE__*/React__default.createElement(AddIcon, {
|
|
3275
3275
|
width: "10",
|
|
3276
3276
|
height: "10",
|
|
3277
3277
|
color: "#EC5D25"
|
|
3278
3278
|
}),
|
|
3279
3279
|
className: styles.paddingTop,
|
|
3280
|
-
|
|
3280
|
+
onClick: openCustomFieldModal
|
|
3281
3281
|
}))))), /*#__PURE__*/React__default.createElement(AddCustomFieldModal, {
|
|
3282
3282
|
isOpenModal: isOpenModal,
|
|
3283
3283
|
closeModalHandler: function closeModalHandler() {
|
|
@@ -4240,25 +4240,25 @@ var AdditionalInfo = function AdditionalInfo(_ref) {
|
|
|
4240
4240
|
}, /*#__PURE__*/React__default.createElement(iuistyles.IUIButton, {
|
|
4241
4241
|
buttonText: "Add airline",
|
|
4242
4242
|
type: "text",
|
|
4243
|
-
|
|
4243
|
+
startIcon: /*#__PURE__*/React__default.createElement(AddIcon, {
|
|
4244
4244
|
width: "10",
|
|
4245
4245
|
height: "10",
|
|
4246
4246
|
color: "#EC5D25"
|
|
4247
4247
|
}),
|
|
4248
4248
|
className: styles.paddingTop,
|
|
4249
|
-
|
|
4249
|
+
onClick: function onClick(e) {
|
|
4250
4250
|
return addMemInfoInput('flight');
|
|
4251
4251
|
}
|
|
4252
4252
|
}), /*#__PURE__*/React__default.createElement(iuistyles.IUIButton, {
|
|
4253
4253
|
buttonText: "Add hotel",
|
|
4254
4254
|
type: "text",
|
|
4255
|
-
|
|
4255
|
+
startIcon: /*#__PURE__*/React__default.createElement(AddIcon, {
|
|
4256
4256
|
width: "10",
|
|
4257
4257
|
height: "10",
|
|
4258
4258
|
color: "#EC5D25"
|
|
4259
4259
|
}),
|
|
4260
4260
|
className: styles.paddingTop,
|
|
4261
|
-
|
|
4261
|
+
onClick: function onClick(e) {
|
|
4262
4262
|
return addMemInfoInput('hotel');
|
|
4263
4263
|
}
|
|
4264
4264
|
}))), membershipInfoInput.length > 0 && membershipInfoInput.map(function (val, index) {
|
|
@@ -4321,25 +4321,25 @@ var AdditionalInfo = function AdditionalInfo(_ref) {
|
|
|
4321
4321
|
}, /*#__PURE__*/React__default.createElement(iuistyles.IUIButton, {
|
|
4322
4322
|
buttonText: "Add airline",
|
|
4323
4323
|
type: "text",
|
|
4324
|
-
|
|
4324
|
+
startIcon: /*#__PURE__*/React__default.createElement(AddIcon, {
|
|
4325
4325
|
width: "10",
|
|
4326
4326
|
height: "10",
|
|
4327
4327
|
color: "#EC5D25"
|
|
4328
4328
|
}),
|
|
4329
4329
|
className: styles.paddingTop,
|
|
4330
|
-
|
|
4330
|
+
onClick: function onClick(e) {
|
|
4331
4331
|
return addMemInfoInput('flight');
|
|
4332
4332
|
}
|
|
4333
4333
|
}), /*#__PURE__*/React__default.createElement(iuistyles.IUIButton, {
|
|
4334
4334
|
buttonText: "Add hotel",
|
|
4335
4335
|
type: "text",
|
|
4336
|
-
|
|
4336
|
+
startIcon: /*#__PURE__*/React__default.createElement(AddIcon, {
|
|
4337
4337
|
width: "10",
|
|
4338
4338
|
height: "10",
|
|
4339
4339
|
color: "#EC5D25"
|
|
4340
4340
|
}),
|
|
4341
4341
|
className: styles.paddingTop,
|
|
4342
|
-
|
|
4342
|
+
onClick: function onClick(e) {
|
|
4343
4343
|
return addMemInfoInput('hotel');
|
|
4344
4344
|
}
|
|
4345
4345
|
})))))), /*#__PURE__*/React__default.createElement(iuistyles.IUIDivider, {
|
|
@@ -4428,7 +4428,7 @@ var AdditionalInfo = function AdditionalInfo(_ref) {
|
|
|
4428
4428
|
}))))));
|
|
4429
4429
|
};
|
|
4430
4430
|
|
|
4431
|
-
var styles$3 = {"root":"_b_muK","minWidth":"_3OQXs","bullet":"_1Q5vL","pos":"_6wGWA","cardHeader":"_SWCfJ"};
|
|
4431
|
+
var styles$3 = {"root":"_b_muK","minWidth":"_3OQXs","bullet":"_1Q5vL","pos":"_6wGWA","cardHeader":"_SWCfJ","pageHeader":"_2ZeWp","buttonHover":"_2Iuy1","cardHeaderBackground":"_3NJWF"};
|
|
4432
4432
|
|
|
4433
4433
|
var VerificationError = function VerificationError(_ref) {
|
|
4434
4434
|
var config = _ref.config,
|
|
@@ -4438,8 +4438,11 @@ var VerificationError = function VerificationError(_ref) {
|
|
|
4438
4438
|
errMsg = _ref$errMsg === void 0 ? "You don't have valid role or Permission to access this page" : _ref$errMsg;
|
|
4439
4439
|
var history = reactRouterDom.useHistory();
|
|
4440
4440
|
return /*#__PURE__*/React__default.createElement(iuistyles.IUIBox, {
|
|
4441
|
-
component: "div"
|
|
4441
|
+
component: "div",
|
|
4442
|
+
className: styles$3.pageHeader
|
|
4442
4443
|
}, /*#__PURE__*/React__default.createElement(iuistyles.IUICard, {
|
|
4444
|
+
headerComponentTitle: title,
|
|
4445
|
+
cardHeaderClassName: styles$3.cardHeaderBackground,
|
|
4443
4446
|
headerComponent: /*#__PURE__*/React__default.createElement(iuistyles.IUITypography, {
|
|
4444
4447
|
gutterBottom: true,
|
|
4445
4448
|
variant: "h4",
|
|
@@ -4447,11 +4450,13 @@ var VerificationError = function VerificationError(_ref) {
|
|
|
4447
4450
|
}, title),
|
|
4448
4451
|
description: errMsg,
|
|
4449
4452
|
actionComponent: /*#__PURE__*/React__default.createElement(iuistyles.IUIButton, {
|
|
4453
|
+
className: styles$3.buttonHover,
|
|
4454
|
+
buttonText: "Back to Homepage",
|
|
4450
4455
|
size: "small",
|
|
4451
4456
|
onClick: function onClick() {
|
|
4452
4457
|
return history.push(config.routes.fallbackUrl);
|
|
4453
4458
|
}
|
|
4454
|
-
}
|
|
4459
|
+
})
|
|
4455
4460
|
}));
|
|
4456
4461
|
};
|
|
4457
4462
|
|
|
@@ -5891,14 +5896,14 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5891
5896
|
}, /*#__PURE__*/React__default.createElement(iuistyles.IUIButton, {
|
|
5892
5897
|
buttonText: "Cancel",
|
|
5893
5898
|
type: "outlined",
|
|
5894
|
-
|
|
5899
|
+
onClick: handleCancelNavigation
|
|
5895
5900
|
})), /*#__PURE__*/React__default.createElement(iuistyles.IUIBox, {
|
|
5896
5901
|
component: "div",
|
|
5897
5902
|
className: "pageHeader--button-single button-right"
|
|
5898
5903
|
}, /*#__PURE__*/React__default.createElement(iuistyles.IUIButton, {
|
|
5899
5904
|
buttonText: "Save",
|
|
5900
5905
|
type: "contained",
|
|
5901
|
-
|
|
5906
|
+
onClick: formSubmitHandler,
|
|
5902
5907
|
disabled: isPageLoading || productAccess.travel === false && productAccess.expense === false || !!doesFormHasError()
|
|
5903
5908
|
}))))), /*#__PURE__*/React__default.createElement(iuistyles.IUIBox, {
|
|
5904
5909
|
component: "div",
|
|
@@ -6586,7 +6591,7 @@ var BulkUploadModal = function BulkUploadModal(props) {
|
|
|
6586
6591
|
}, "Use this template with predefined columns and add users to your team")), /*#__PURE__*/React__default.createElement(iuistyles.IUIBox, null, /*#__PURE__*/React__default.createElement(iuistyles.IUIButton, {
|
|
6587
6592
|
type: "text",
|
|
6588
6593
|
buttonText: "Download template",
|
|
6589
|
-
|
|
6594
|
+
onClick: downloadTemplate,
|
|
6590
6595
|
isLink: true
|
|
6591
6596
|
})))), /*#__PURE__*/React__default.createElement(iuistyles.IUIDivider, {
|
|
6592
6597
|
className: clsx(styles$5.dividerColor, styles$5.w100)
|
|
@@ -6825,8 +6830,8 @@ var UserBulkUpload = function UserBulkUpload(_ref) {
|
|
|
6825
6830
|
};
|
|
6826
6831
|
|
|
6827
6832
|
var CustomStepIcon = function CustomStepIcon(step) {
|
|
6828
|
-
if ((importStatus === 1 || importStatus === 2 || importStatus === 4) && step
|
|
6829
|
-
return /*#__PURE__*/React__default.createElement(iuistyles.
|
|
6833
|
+
if ((importStatus === 1 || importStatus === 2 || importStatus === 4) && step === Number(activeStep)) {
|
|
6834
|
+
return /*#__PURE__*/React__default.createElement(iuistyles.IUIPrimaryRadio, {
|
|
6830
6835
|
checked: true,
|
|
6831
6836
|
className: clsx(styles$4.customRadioEach),
|
|
6832
6837
|
size: "small",
|
|
@@ -6834,16 +6839,16 @@ var UserBulkUpload = function UserBulkUpload(_ref) {
|
|
|
6834
6839
|
});
|
|
6835
6840
|
}
|
|
6836
6841
|
|
|
6837
|
-
if ((importStatus === 1 || importStatus === 2 || importStatus === 4) && step
|
|
6838
|
-
return /*#__PURE__*/React__default.createElement(iuistyles.
|
|
6842
|
+
if ((importStatus === 1 || importStatus === 2 || importStatus === 4) && step !== Number(activeStep)) {
|
|
6843
|
+
return /*#__PURE__*/React__default.createElement(iuistyles.IUIPrimaryRadio, {
|
|
6839
6844
|
className: clsx(styles$4.customRadioEach),
|
|
6840
6845
|
size: "small",
|
|
6841
6846
|
disabled: true
|
|
6842
6847
|
});
|
|
6843
6848
|
}
|
|
6844
6849
|
|
|
6845
|
-
if (importStatus === 3 && step
|
|
6846
|
-
return /*#__PURE__*/React__default.createElement(iuistyles.
|
|
6850
|
+
if (importStatus === 3 && step === Number(activeStep)) {
|
|
6851
|
+
return /*#__PURE__*/React__default.createElement(iuistyles.IUIPrimaryRadio, {
|
|
6847
6852
|
checked: true,
|
|
6848
6853
|
className: clsx(styles$4.customRadioEach),
|
|
6849
6854
|
size: "small",
|
|
@@ -6851,7 +6856,7 @@ var UserBulkUpload = function UserBulkUpload(_ref) {
|
|
|
6851
6856
|
});
|
|
6852
6857
|
}
|
|
6853
6858
|
|
|
6854
|
-
if (importStatus === 3 && step
|
|
6859
|
+
if (importStatus === 3 && step !== Number(activeStep)) {
|
|
6855
6860
|
return /*#__PURE__*/React__default.createElement(CheckCircleIcon, {
|
|
6856
6861
|
width: "20",
|
|
6857
6862
|
height: "20",
|
|
@@ -6956,7 +6961,7 @@ var UserBulkUpload = function UserBulkUpload(_ref) {
|
|
|
6956
6961
|
activeStep: activeStep,
|
|
6957
6962
|
nonLinear: true,
|
|
6958
6963
|
className: styles$4.stepper,
|
|
6959
|
-
|
|
6964
|
+
CustomStepIcon: CustomStepIcon,
|
|
6960
6965
|
steps: steps
|
|
6961
6966
|
}), importStatus === 1 && /*#__PURE__*/React__default.createElement(iuistyles.IUIBox, {
|
|
6962
6967
|
display: "flex",
|
|
@@ -7105,13 +7110,13 @@ var UserBulkUpload = function UserBulkUpload(_ref) {
|
|
|
7105
7110
|
}, /*#__PURE__*/React__default.createElement(iuistyles.IUIButton, {
|
|
7106
7111
|
buttonText: "Download invalid records",
|
|
7107
7112
|
type: "text",
|
|
7108
|
-
|
|
7113
|
+
onClick: function onClick() {
|
|
7109
7114
|
return handleDownloadRecords('failure');
|
|
7110
7115
|
}
|
|
7111
7116
|
}), /*#__PURE__*/React__default.createElement(iuistyles.IUIButton, {
|
|
7112
7117
|
buttonText: "Upload again",
|
|
7113
7118
|
type: "text",
|
|
7114
|
-
|
|
7119
|
+
onClick: importUserHandler
|
|
7115
7120
|
}))), (+userBulkImportInfo.success > 0 || +userBulkImportInfo.exist_users > 0) && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(iuistyles.IUIDivider, {
|
|
7116
7121
|
className: styles$4.divider
|
|
7117
7122
|
}), /*#__PURE__*/React__default.createElement(iuistyles.IUIBox, null, /*#__PURE__*/React__default.createElement(iuistyles.IUITypography, {
|
|
@@ -7136,7 +7141,7 @@ var UserBulkUpload = function UserBulkUpload(_ref) {
|
|
|
7136
7141
|
}, /*#__PURE__*/React__default.createElement(iuistyles.IUIFormControlLabel, {
|
|
7137
7142
|
control: /*#__PURE__*/React__default.createElement(iuistyles.IUICheckBox, {
|
|
7138
7143
|
handleCheckBoxHandler: handleExistingUserUpdation,
|
|
7139
|
-
|
|
7144
|
+
checked: canUpdateExistingUsers
|
|
7140
7145
|
}),
|
|
7141
7146
|
label: "Update any existing users",
|
|
7142
7147
|
className: clsx(styles$4.checkboxlabel, (_clsx5 = {}, _clsx5[styles$4.disabledText] = +userBulkImportInfo.exist_users === 0, _clsx5)),
|
|
@@ -7150,7 +7155,7 @@ var UserBulkUpload = function UserBulkUpload(_ref) {
|
|
|
7150
7155
|
}, /*#__PURE__*/React__default.createElement(iuistyles.IUIButton, {
|
|
7151
7156
|
buttonText: importStatus !== 1 ? 'Import ' + handleImportNumbers() : 'Importing ' + handleImportNumbers(),
|
|
7152
7157
|
type: "contained",
|
|
7153
|
-
|
|
7158
|
+
onClick: handleImportUploadRecords,
|
|
7154
7159
|
disabled: importStatus === 1
|
|
7155
7160
|
}))))), importStatus === 3 && /*#__PURE__*/React__default.createElement(iuistyles.IUIBox, {
|
|
7156
7161
|
className: styles$4.completedContainer
|
|
@@ -7167,7 +7172,7 @@ var UserBulkUpload = function UserBulkUpload(_ref) {
|
|
|
7167
7172
|
}, userBulkImportInfo.total_records, /*#__PURE__*/React__default.createElement("span", null, ' ', +userBulkImportInfo.total_records === 1 ? 'total record' : 'total records', ' ')), /*#__PURE__*/React__default.createElement(iuistyles.IUIButton, {
|
|
7168
7173
|
buttonText: "Download records",
|
|
7169
7174
|
type: "text",
|
|
7170
|
-
|
|
7175
|
+
onClick: function onClick() {
|
|
7171
7176
|
return handleDownloadRecords('total');
|
|
7172
7177
|
}
|
|
7173
7178
|
})), /*#__PURE__*/React__default.createElement(iuistyles.IUIDivider, null), +userBulkImportInfo.success > 0 && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(iuistyles.IUIBox, {
|
|
@@ -7179,7 +7184,7 @@ var UserBulkUpload = function UserBulkUpload(_ref) {
|
|
|
7179
7184
|
}, userBulkImportInfo.success, ' ', /*#__PURE__*/React__default.createElement("span", null, ' ', +userBulkImportInfo.success === 1 ? 'new user added ' : 'new users added ', ' ')), /*#__PURE__*/React__default.createElement(iuistyles.IUIButton, {
|
|
7180
7185
|
buttonText: "Download records",
|
|
7181
7186
|
type: "text",
|
|
7182
|
-
|
|
7187
|
+
onClick: function onClick() {
|
|
7183
7188
|
return handleDownloadRecords('success');
|
|
7184
7189
|
}
|
|
7185
7190
|
})), /*#__PURE__*/React__default.createElement(iuistyles.IUIDivider, null)), +userBulkImportInfo.exist_users > 0 && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(iuistyles.IUIBox, {
|
|
@@ -7191,7 +7196,7 @@ var UserBulkUpload = function UserBulkUpload(_ref) {
|
|
|
7191
7196
|
}, userBulkImportInfo.exist_users, ' ', /*#__PURE__*/React__default.createElement("span", null, ' ', +userBulkImportInfo.exist_users === 1 ? 'existing user updated' : 'existing users updated', ' ')), /*#__PURE__*/React__default.createElement(iuistyles.IUIButton, {
|
|
7192
7197
|
buttonText: "Download records",
|
|
7193
7198
|
type: "text",
|
|
7194
|
-
|
|
7199
|
+
onClick: function onClick() {
|
|
7195
7200
|
return handleDownloadRecords('exist');
|
|
7196
7201
|
}
|
|
7197
7202
|
})), /*#__PURE__*/React__default.createElement(iuistyles.IUIDivider, null)), +userBulkImportInfo.failure > 0 && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(iuistyles.IUIBox, {
|
|
@@ -7203,7 +7208,7 @@ var UserBulkUpload = function UserBulkUpload(_ref) {
|
|
|
7203
7208
|
}, userBulkImportInfo.failure, ' ', /*#__PURE__*/React__default.createElement("span", null, ' ', +userBulkImportInfo.failure === 1 ? 'invalid record' : 'invalid records', ' ')), /*#__PURE__*/React__default.createElement(iuistyles.IUIButton, {
|
|
7204
7209
|
buttonText: "Download records",
|
|
7205
7210
|
type: "text",
|
|
7206
|
-
|
|
7211
|
+
onClick: function onClick() {
|
|
7207
7212
|
return handleDownloadRecords('failure');
|
|
7208
7213
|
}
|
|
7209
7214
|
})), /*#__PURE__*/React__default.createElement(iuistyles.IUIDivider, null))))), /*#__PURE__*/React__default.createElement(iuistyles.IUIGrid, {
|
|
@@ -7795,8 +7800,8 @@ var StickyHeadTable = function StickyHeadTable(props) {
|
|
|
7795
7800
|
_props$handleSelectAl = props.handleSelectAllClick,
|
|
7796
7801
|
handleSelectAllClick = _props$handleSelectAl === void 0 ? function () {} : _props$handleSelectAl,
|
|
7797
7802
|
selected = props.selected,
|
|
7798
|
-
_props$handleSingleCh = props.
|
|
7799
|
-
|
|
7803
|
+
_props$handleSingleCh = props.handleSingleCheckBoxClick,
|
|
7804
|
+
handleSingleCheckBoxClick = _props$handleSingleCh === void 0 ? function () {} : _props$handleSingleCh,
|
|
7800
7805
|
orderBy = props.orderBy,
|
|
7801
7806
|
order = props.order,
|
|
7802
7807
|
_props$onRequestSort = props.onRequestSort,
|
|
@@ -7924,7 +7929,7 @@ var StickyHeadTable = function StickyHeadTable(props) {
|
|
|
7924
7929
|
cell: function cell(row) {
|
|
7925
7930
|
return /*#__PURE__*/React__default.createElement(iuistyles.IUIButton, {
|
|
7926
7931
|
buttonText: "Edit",
|
|
7927
|
-
|
|
7932
|
+
onClick: function onClick() {
|
|
7928
7933
|
return onEditHandler(row.id);
|
|
7929
7934
|
}
|
|
7930
7935
|
});
|
|
@@ -7945,7 +7950,7 @@ var StickyHeadTable = function StickyHeadTable(props) {
|
|
|
7945
7950
|
rowsPerPage: rowsPerPage,
|
|
7946
7951
|
handleSelectAllClick: handleSelectAllClick,
|
|
7947
7952
|
selected: selected,
|
|
7948
|
-
|
|
7953
|
+
handleSingleCheckBoxClick: handleSingleCheckBoxClick,
|
|
7949
7954
|
orderBy: orderBy,
|
|
7950
7955
|
order: order,
|
|
7951
7956
|
searchHide: false,
|
|
@@ -7953,7 +7958,8 @@ var StickyHeadTable = function StickyHeadTable(props) {
|
|
|
7953
7958
|
onRequestSort: onRequestSort,
|
|
7954
7959
|
onSearchHandler: onSearchHandler,
|
|
7955
7960
|
isDataFetching: isDataFetching,
|
|
7956
|
-
disableRowCheckbox: disableRowCheckbox
|
|
7961
|
+
disableRowCheckbox: disableRowCheckbox,
|
|
7962
|
+
searchBoxWidth: "400px"
|
|
7957
7963
|
});
|
|
7958
7964
|
};
|
|
7959
7965
|
|
|
@@ -8108,9 +8114,11 @@ var UserList = function UserList(_ref) {
|
|
|
8108
8114
|
setSearchingChangeTemp(!isSearchingChangeTemp);
|
|
8109
8115
|
};
|
|
8110
8116
|
|
|
8111
|
-
var
|
|
8117
|
+
var handleSingleCheckBoxClick = function handleSingleCheckBoxClick(event, id, page) {
|
|
8112
8118
|
var _extends4;
|
|
8113
8119
|
|
|
8120
|
+
console.log('test');
|
|
8121
|
+
|
|
8114
8122
|
var selectedTemp = _extends({}, selected);
|
|
8115
8123
|
|
|
8116
8124
|
if (!(page in selectedTemp)) {
|
|
@@ -8313,11 +8321,11 @@ var UserList = function UserList(_ref) {
|
|
|
8313
8321
|
}, /*#__PURE__*/React__default.createElement(iuistyles.IUIButton, {
|
|
8314
8322
|
buttonText: "Export all users",
|
|
8315
8323
|
type: "outlined",
|
|
8316
|
-
|
|
8324
|
+
startIcon: /*#__PURE__*/React__default.createElement(ExportIcon, {
|
|
8317
8325
|
width: "12",
|
|
8318
8326
|
height: "12"
|
|
8319
8327
|
}),
|
|
8320
|
-
|
|
8328
|
+
onClick: handleExportUsers
|
|
8321
8329
|
})), /*#__PURE__*/React__default.createElement(iuistyles.IUIBox, {
|
|
8322
8330
|
component: "div",
|
|
8323
8331
|
className: clsx(styles$5.buttonSingle, styles$5.buttonLeft)
|
|
@@ -8331,12 +8339,12 @@ var UserList = function UserList(_ref) {
|
|
|
8331
8339
|
}, /*#__PURE__*/React__default.createElement(iuistyles.IUIButton, {
|
|
8332
8340
|
buttonText: "Add user",
|
|
8333
8341
|
type: "contained",
|
|
8334
|
-
|
|
8342
|
+
startIcon: /*#__PURE__*/React__default.createElement(AddIcon, {
|
|
8335
8343
|
width: "9",
|
|
8336
8344
|
height: "9",
|
|
8337
8345
|
color: "white"
|
|
8338
8346
|
}),
|
|
8339
|
-
|
|
8347
|
+
onClick: handleAddPageNavigation
|
|
8340
8348
|
})))), /*#__PURE__*/React__default.createElement(iuistyles.IUIBox, {
|
|
8341
8349
|
component: "div",
|
|
8342
8350
|
display: "flex",
|
|
@@ -8353,7 +8361,7 @@ var UserList = function UserList(_ref) {
|
|
|
8353
8361
|
handleActiveUser: handleActiveUser,
|
|
8354
8362
|
handleSelectAllClick: handleSelectAllClick,
|
|
8355
8363
|
selected: selected,
|
|
8356
|
-
|
|
8364
|
+
handleSingleCheckBoxClick: handleSingleCheckBoxClick,
|
|
8357
8365
|
orderBy: orderBy,
|
|
8358
8366
|
order: order,
|
|
8359
8367
|
onRequestSort: onRequestSort,
|
|
@@ -8417,40 +8425,53 @@ function Header(props) {
|
|
|
8417
8425
|
component: "div",
|
|
8418
8426
|
display: "flex",
|
|
8419
8427
|
justifyContent: "space-between",
|
|
8420
|
-
alignItems: "center"
|
|
8428
|
+
alignItems: "center",
|
|
8429
|
+
flexWrap: "wrap",
|
|
8430
|
+
style: {
|
|
8431
|
+
gap: '1rem'
|
|
8432
|
+
}
|
|
8433
|
+
}, /*#__PURE__*/React__default.createElement(iuistyles.IUIBox, {
|
|
8434
|
+
component: "div",
|
|
8435
|
+
display: "flex",
|
|
8436
|
+
flexDirection: "column",
|
|
8437
|
+
style: {
|
|
8438
|
+
gap: '0.5rem'
|
|
8439
|
+
}
|
|
8421
8440
|
}, /*#__PURE__*/React__default.createElement(iuistyles.IUIBox, {
|
|
8422
|
-
component: "div"
|
|
8441
|
+
component: "div",
|
|
8442
|
+
className: styles$5.headingWrapper
|
|
8423
8443
|
}, /*#__PURE__*/React__default.createElement(iuistyles.IUITypography, {
|
|
8424
8444
|
variant: "h3",
|
|
8425
8445
|
className: clsx(styles$5.heading, styles$5.headingLarge)
|
|
8426
8446
|
}, isILadmin === 1 && companyName + " - ", " ", headingName)), /*#__PURE__*/React__default.createElement(iuistyles.IUIBox, {
|
|
8447
|
+
component: "div",
|
|
8448
|
+
className: styles$5.headingWrapper
|
|
8449
|
+
}, /*#__PURE__*/React__default.createElement(iuistyles.IUITypography, {
|
|
8450
|
+
variant: "body2",
|
|
8451
|
+
className: clsx(styles$5.description)
|
|
8452
|
+
}, subHeading))), /*#__PURE__*/React__default.createElement(iuistyles.IUIBox, {
|
|
8427
8453
|
component: "div",
|
|
8428
8454
|
className: styles$5.buttonWrapper,
|
|
8429
8455
|
display: "flex",
|
|
8430
8456
|
justifyContent: "space-between",
|
|
8431
|
-
alignItems: "center"
|
|
8457
|
+
alignItems: "center",
|
|
8458
|
+
alignSelf: "flex-start"
|
|
8432
8459
|
}, /*#__PURE__*/React__default.createElement(iuistyles.IUIBox, {
|
|
8433
8460
|
component: "div",
|
|
8434
8461
|
className: "pageHeader--button-single button-right"
|
|
8435
8462
|
}, /*#__PURE__*/React__default.createElement(iuistyles.IUIButton, {
|
|
8436
8463
|
type: "contained",
|
|
8437
8464
|
buttonText: "+ Add " + name.toLowerCase(),
|
|
8438
|
-
|
|
8465
|
+
onClick: HeaderButton
|
|
8439
8466
|
})))), /*#__PURE__*/React__default.createElement(iuistyles.IUIBox, {
|
|
8440
8467
|
component: "div",
|
|
8441
8468
|
display: "flex",
|
|
8442
8469
|
justifyContent: "space-between",
|
|
8443
8470
|
alignItems: "center"
|
|
8444
|
-
})
|
|
8445
|
-
component: "div",
|
|
8446
|
-
className: styles$5.headingWrapper
|
|
8447
|
-
}, /*#__PURE__*/React__default.createElement(iuistyles.IUITypography, {
|
|
8448
|
-
variant: "body2",
|
|
8449
|
-
className: clsx(styles$5.description)
|
|
8450
|
-
}, subHeading))));
|
|
8471
|
+
})));
|
|
8451
8472
|
}
|
|
8452
8473
|
|
|
8453
|
-
var styles$7 = {"sidebar__container":"_1EFxC","sidebar__wrapper":"_3Mk3_","sidebar__navlinks":"_29KVG","sidebar__navlinks-title":"_2Eg7m","MuiListItem-button":"_3yWwI","Mui-selected":"_3Ou88","buttonWidth":"_13tv0","onBoardText":"_HUoW-","iconStyle":"_3k0Fb","iconLayout":"_v3GT2","baseAlert":"_12zY5"};
|
|
8474
|
+
var styles$7 = {"sidebar__container":"_1EFxC","sidebar__wrapper":"_3Mk3_","sidebar__navlinks":"_29KVG","sidebar__navlinks-title":"_2Eg7m","MuiListItem-button":"_3yWwI","Mui-selected":"_3Ou88","buttonWidth":"_13tv0","onBoardText":"_HUoW-","iconStyle":"_3k0Fb","iconLayout":"_v3GT2","baseAlert":"_12zY5","headingWrapper":"_20Qv9","pageHeader":"_36au5","description":"_tULrl","headerText":"_3W_ZV"};
|
|
8454
8475
|
|
|
8455
8476
|
function Listview(_ref) {
|
|
8456
8477
|
var data = _ref.data,
|
|
@@ -8509,19 +8530,19 @@ function Listview(_ref) {
|
|
|
8509
8530
|
}, /*#__PURE__*/React__default.createElement(iuistyles.IUIButton, {
|
|
8510
8531
|
buttonText: "Edit",
|
|
8511
8532
|
className: styles$7.buttonWidth,
|
|
8512
|
-
|
|
8533
|
+
onClick: function onClick() {
|
|
8513
8534
|
return handleEditDialog(row);
|
|
8514
8535
|
}
|
|
8515
8536
|
}), row.no_of_users > 0 ? /*#__PURE__*/React__default.createElement(iuistyles.IUIButton, {
|
|
8516
8537
|
buttonText: "Delete",
|
|
8517
8538
|
className: styles$7.buttonWidth,
|
|
8518
|
-
|
|
8539
|
+
onClick: function onClick() {
|
|
8519
8540
|
return handleDeleteDialog(row, true);
|
|
8520
8541
|
}
|
|
8521
8542
|
}) : /*#__PURE__*/React__default.createElement(iuistyles.IUIButton, {
|
|
8522
8543
|
buttonText: "Delete",
|
|
8523
8544
|
className: styles$7.buttonWidth,
|
|
8524
|
-
|
|
8545
|
+
onClick: function onClick() {
|
|
8525
8546
|
return handleDeleteDialog(row, false);
|
|
8526
8547
|
}
|
|
8527
8548
|
}));
|
|
@@ -9227,12 +9248,12 @@ var PageHeader = function PageHeader() {
|
|
|
9227
9248
|
}, /*#__PURE__*/React__default.createElement(iuistyles.IUIButton, {
|
|
9228
9249
|
buttonText: "Add custom field",
|
|
9229
9250
|
type: "contained",
|
|
9230
|
-
|
|
9251
|
+
startIcon: /*#__PURE__*/React__default.createElement(AddIcon, {
|
|
9231
9252
|
width: "9",
|
|
9232
9253
|
height: "9",
|
|
9233
9254
|
color: "white"
|
|
9234
9255
|
}),
|
|
9235
|
-
|
|
9256
|
+
onClick: handleAddCustomField
|
|
9236
9257
|
})))), /*#__PURE__*/React__default.createElement(iuistyles.IUIBox, {
|
|
9237
9258
|
component: "div",
|
|
9238
9259
|
display: "flex",
|
|
@@ -9299,7 +9320,7 @@ function CustomFieldsTable() {
|
|
|
9299
9320
|
className: styles$6.actionButtons
|
|
9300
9321
|
}, /*#__PURE__*/React__default.createElement(iuistyles.IUIButton, {
|
|
9301
9322
|
buttonText: "Edit",
|
|
9302
|
-
|
|
9323
|
+
onClick: function onClick() {
|
|
9303
9324
|
return handleEdit(row);
|
|
9304
9325
|
}
|
|
9305
9326
|
})));
|