@itilite/iui-user-management 0.1.16 → 0.1.17
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 +10 -5
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +10 -5
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -292,7 +292,8 @@ var commonLoadOptions = function commonLoadOptions(search, loadedOptions, _ref)
|
|
|
292
292
|
var page = _ref.page,
|
|
293
293
|
tabelName = _ref.tabelName,
|
|
294
294
|
placeholder = _ref.placeholder,
|
|
295
|
-
selectCTA = _ref.selectCTA
|
|
295
|
+
selectCTA = _ref.selectCTA,
|
|
296
|
+
showNaOption = _ref.showNaOption;
|
|
296
297
|
|
|
297
298
|
try {
|
|
298
299
|
return Promise.resolve(_catch(function () {
|
|
@@ -307,7 +308,7 @@ var commonLoadOptions = function commonLoadOptions(search, loadedOptions, _ref)
|
|
|
307
308
|
};
|
|
308
309
|
});
|
|
309
310
|
|
|
310
|
-
if (page === 1 && NAoptionConfig.applyFor.includes(tabelName)) {
|
|
311
|
+
if (showNaOption && page === 1 && NAoptionConfig.applyFor.includes(tabelName)) {
|
|
311
312
|
mappedValue.unshift(NAoptionConfig.option);
|
|
312
313
|
}
|
|
313
314
|
|
|
@@ -1189,7 +1190,9 @@ function GetInputType(_ref) {
|
|
|
1189
1190
|
_ref$errorArray = _ref.errorArray,
|
|
1190
1191
|
errorArray = _ref$errorArray === void 0 ? [] : _ref$errorArray,
|
|
1191
1192
|
_ref$errorMsg = _ref.errorMsg,
|
|
1192
|
-
errorMsg = _ref$errorMsg === void 0 ? '' : _ref$errorMsg
|
|
1193
|
+
errorMsg = _ref$errorMsg === void 0 ? '' : _ref$errorMsg,
|
|
1194
|
+
_ref$showNaOption = _ref.showNaOption,
|
|
1195
|
+
showNaOption = _ref$showNaOption === void 0 ? false : _ref$showNaOption;
|
|
1193
1196
|
|
|
1194
1197
|
switch (_p.type) {
|
|
1195
1198
|
case 'input':
|
|
@@ -1326,7 +1329,8 @@ function GetInputType(_ref) {
|
|
|
1326
1329
|
product: _p.product,
|
|
1327
1330
|
placeholder: _p.placeholder,
|
|
1328
1331
|
userId: _p.editUserId,
|
|
1329
|
-
selectCTA: _p.selectCTA
|
|
1332
|
+
selectCTA: _p.selectCTA,
|
|
1333
|
+
showNaOption: showNaOption
|
|
1330
1334
|
},
|
|
1331
1335
|
label: _p.label,
|
|
1332
1336
|
secondaryLabel: _p.secondaryLabel,
|
|
@@ -6419,7 +6423,8 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
6419
6423
|
dateFormat: dateFormat,
|
|
6420
6424
|
countryCode: countryCode,
|
|
6421
6425
|
errorArray: errorArray,
|
|
6422
|
-
errorMsg: errorMsgs[p.name]
|
|
6426
|
+
errorMsg: errorMsgs[p.name],
|
|
6427
|
+
showNaOption: !p.required
|
|
6423
6428
|
}));
|
|
6424
6429
|
}), renderFields.userTagType.length ? /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement(iuistyles.IUIGrid, {
|
|
6425
6430
|
container: true,
|