@itilite/iui-user-management 0.1.16 → 0.1.18
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 +11 -6
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +11 -6
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -289,7 +289,8 @@ var commonLoadOptions = function commonLoadOptions(search, loadedOptions, _ref)
|
|
|
289
289
|
var page = _ref.page,
|
|
290
290
|
tabelName = _ref.tabelName,
|
|
291
291
|
placeholder = _ref.placeholder,
|
|
292
|
-
selectCTA = _ref.selectCTA
|
|
292
|
+
selectCTA = _ref.selectCTA,
|
|
293
|
+
showNaOption = _ref.showNaOption;
|
|
293
294
|
|
|
294
295
|
try {
|
|
295
296
|
return Promise.resolve(_catch(function () {
|
|
@@ -304,7 +305,7 @@ var commonLoadOptions = function commonLoadOptions(search, loadedOptions, _ref)
|
|
|
304
305
|
};
|
|
305
306
|
});
|
|
306
307
|
|
|
307
|
-
if (page === 1 && NAoptionConfig.applyFor.includes(tabelName)) {
|
|
308
|
+
if (showNaOption && page === 1 && NAoptionConfig.applyFor.includes(tabelName)) {
|
|
308
309
|
mappedValue.unshift(NAoptionConfig.option);
|
|
309
310
|
}
|
|
310
311
|
|
|
@@ -642,7 +643,7 @@ var personalInfo = [{
|
|
|
642
643
|
name: 'profile_pic',
|
|
643
644
|
required: false,
|
|
644
645
|
multiple: false,
|
|
645
|
-
fileType: 'image/png,image/jpeg,image/jpg,image/webp',
|
|
646
|
+
fileType: 'image/png,image/jpeg,image/jpg,image/webp,image/JPG,image/JPEG',
|
|
646
647
|
fileSize: 5,
|
|
647
648
|
title: 'Select Profile',
|
|
648
649
|
type: 'file',
|
|
@@ -1186,7 +1187,9 @@ function GetInputType(_ref) {
|
|
|
1186
1187
|
_ref$errorArray = _ref.errorArray,
|
|
1187
1188
|
errorArray = _ref$errorArray === void 0 ? [] : _ref$errorArray,
|
|
1188
1189
|
_ref$errorMsg = _ref.errorMsg,
|
|
1189
|
-
errorMsg = _ref$errorMsg === void 0 ? '' : _ref$errorMsg
|
|
1190
|
+
errorMsg = _ref$errorMsg === void 0 ? '' : _ref$errorMsg,
|
|
1191
|
+
_ref$showNaOption = _ref.showNaOption,
|
|
1192
|
+
showNaOption = _ref$showNaOption === void 0 ? false : _ref$showNaOption;
|
|
1190
1193
|
|
|
1191
1194
|
switch (_p.type) {
|
|
1192
1195
|
case 'input':
|
|
@@ -1323,7 +1326,8 @@ function GetInputType(_ref) {
|
|
|
1323
1326
|
product: _p.product,
|
|
1324
1327
|
placeholder: _p.placeholder,
|
|
1325
1328
|
userId: _p.editUserId,
|
|
1326
|
-
selectCTA: _p.selectCTA
|
|
1329
|
+
selectCTA: _p.selectCTA,
|
|
1330
|
+
showNaOption: showNaOption
|
|
1327
1331
|
},
|
|
1328
1332
|
label: _p.label,
|
|
1329
1333
|
secondaryLabel: _p.secondaryLabel,
|
|
@@ -6416,7 +6420,8 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
6416
6420
|
dateFormat: dateFormat,
|
|
6417
6421
|
countryCode: countryCode,
|
|
6418
6422
|
errorArray: errorArray,
|
|
6419
|
-
errorMsg: errorMsgs[p.name]
|
|
6423
|
+
errorMsg: errorMsgs[p.name],
|
|
6424
|
+
showNaOption: !p.required
|
|
6420
6425
|
}));
|
|
6421
6426
|
}), renderFields.userTagType.length ? /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(IUIGrid, {
|
|
6422
6427
|
container: true,
|