@itilite/iui-user-management 0.4.902 → 0.4.904
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.js +20 -5
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +20 -5
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5192,6 +5192,9 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5192
5192
|
var _useState25 = React.useState([]),
|
|
5193
5193
|
uploadedFiles = _useState25[0],
|
|
5194
5194
|
setUploadedFiles = _useState25[1];
|
|
5195
|
+
var _useState26 = React.useState(70),
|
|
5196
|
+
maxLengthForModal = _useState26[0],
|
|
5197
|
+
setMaxLengthForModal = _useState26[1];
|
|
5195
5198
|
var defaultAddModalData = {
|
|
5196
5199
|
isOpen: false,
|
|
5197
5200
|
isError: false,
|
|
@@ -5204,12 +5207,12 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5204
5207
|
regexOnBlur: null,
|
|
5205
5208
|
maxLimit: '',
|
|
5206
5209
|
minLimit: '',
|
|
5207
|
-
maxLength:
|
|
5210
|
+
maxLength: maxLengthForModal,
|
|
5208
5211
|
minLength: 0
|
|
5209
5212
|
};
|
|
5210
|
-
var
|
|
5211
|
-
addModalData =
|
|
5212
|
-
setAddModalData =
|
|
5213
|
+
var _useState27 = React.useState(defaultAddModalData),
|
|
5214
|
+
addModalData = _useState27[0],
|
|
5215
|
+
setAddModalData = _useState27[1];
|
|
5213
5216
|
var onAddModalClose = function onAddModalClose() {
|
|
5214
5217
|
setAddModalData(_extends({}, defaultAddModalData));
|
|
5215
5218
|
};
|
|
@@ -5229,12 +5232,16 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5229
5232
|
var title = '';
|
|
5230
5233
|
if (id === 'entity') {
|
|
5231
5234
|
title = 'Entity';
|
|
5235
|
+
setMaxLengthForModal(70);
|
|
5232
5236
|
} else if (id === 'department') {
|
|
5233
5237
|
title = 'Department';
|
|
5238
|
+
setMaxLengthForModal(70);
|
|
5234
5239
|
} else if (id === 'business_unit') {
|
|
5240
|
+
setMaxLengthForModal(150);
|
|
5235
5241
|
title = 'Business unit';
|
|
5236
5242
|
} else if (id === 'employee_level') {
|
|
5237
5243
|
title = 'Employee level';
|
|
5244
|
+
setMaxLengthForModal(70);
|
|
5238
5245
|
}
|
|
5239
5246
|
setAddModalData(_extends({}, addModalData, {
|
|
5240
5247
|
isOpen: true,
|
|
@@ -10435,12 +10442,20 @@ var UserPanel = function UserPanel(_ref) {
|
|
|
10435
10442
|
var validatedValue = _value.replace(/\s+/g, ' ').trim();
|
|
10436
10443
|
setDataList(validatedValue);
|
|
10437
10444
|
};
|
|
10445
|
+
var _useState17 = React.useState(70),
|
|
10446
|
+
maxLengthForModal = _useState17[0],
|
|
10447
|
+
setMaxLengthForModal = _useState17[1];
|
|
10448
|
+
React.useEffect(function () {
|
|
10449
|
+
if (title === 'Business unit') {
|
|
10450
|
+
setMaxLengthForModal(150);
|
|
10451
|
+
}
|
|
10452
|
+
}, []);
|
|
10438
10453
|
var validation = {
|
|
10439
10454
|
regexOnChange: /^[(A-Z)(a-z)(0-9)&'\-_.,/: ]*$/,
|
|
10440
10455
|
regexOnBlur: null,
|
|
10441
10456
|
maxLimit: '',
|
|
10442
10457
|
minLimit: '',
|
|
10443
|
-
maxLength:
|
|
10458
|
+
maxLength: maxLengthForModal,
|
|
10444
10459
|
minLength: 0
|
|
10445
10460
|
};
|
|
10446
10461
|
React.useEffect(function () {
|