@itilite/iui-user-management 0.1.4 → 0.1.6
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 +18 -40
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +18 -40
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -158,52 +158,24 @@ function _catch(body, recover) {
|
|
|
158
158
|
|
|
159
159
|
var styles = {"UUIUserManagementAddEdit":"_3n-WG","pageHeader":"_3qWcA","buttonWrapper":"_1IP9P","scrolled":"_m8f96","headingButtonWrapper":"_w9z7b","headingButtonWrapperProfile":"_12Wd9","hintText":"_ySdbZ","heading":"_2Y1Aw","headingLarge":"_2K1NF","headingMedium":"_RUuAz","headingSmall":"_23Dye","additionalInfoContainer":"_1Suhw","additionalInfoTitle":"_56iJF","titleContainer":"_H5nfl","expandIconAlign":"_3F4i0","detailsContainer":"_2G0LW","formWrapper":"_2fPRc","sectionWrapper":"_37Gqp","margin":"_2Sdl7","minGridWidth":"_2D7iu","firstRowMargin":"_1BozG","firstChildMargin":"_2C3Mb","paddingTop":"_DBPjV","backGrdColorOnHover":"_5oE6H","fieldMargin":"_RCWjq","productContainerGap":"_tuCbi","containerWidth":"_1oWos","productItemBroder":"_T0Hcd","headingPadding":"_2MFfQ","emptyFieldContainer":"_3VWtw","emptyFieldDescription":"_2jC5u","rowGap":"_1NJFY","formTitle":"_GAKk2","formDescription":"_3TZ6Z","themeLink":"_eJ_1B","dashedLine":"_3ZOs1","dividerColor":"_2pxEJ","errorTextCls":"_27eth","backdrop":"_Pm0Au","inputWidth":"_ajB82"};
|
|
160
160
|
|
|
161
|
-
function
|
|
162
|
-
var
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
if (Array.isArray(mix)) {
|
|
170
|
-
for (k = 0; k < mix.length; k++) {
|
|
171
|
-
if (mix[k]) {
|
|
172
|
-
if (y = toVal(mix[k])) {
|
|
173
|
-
str && (str += ' ');
|
|
174
|
-
str += y;
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
} else {
|
|
179
|
-
for (k in mix) {
|
|
180
|
-
if (mix[k]) {
|
|
181
|
-
str && (str += ' ');
|
|
182
|
-
str += k;
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
}
|
|
161
|
+
function r(e) {
|
|
162
|
+
var t,
|
|
163
|
+
f,
|
|
164
|
+
n = "";
|
|
165
|
+
if ("string" == typeof e || "number" == typeof e) n += e;else if ("object" == typeof e) if (Array.isArray(e)) for (t = 0; t < e.length; t++) {
|
|
166
|
+
e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
|
|
167
|
+
} else for (t in e) {
|
|
168
|
+
e[t] && (n && (n += " "), n += t);
|
|
186
169
|
}
|
|
187
|
-
|
|
188
|
-
return str;
|
|
170
|
+
return n;
|
|
189
171
|
}
|
|
190
172
|
|
|
191
173
|
function clsx() {
|
|
192
|
-
var
|
|
193
|
-
|
|
194
|
-
x,
|
|
195
|
-
str = '';
|
|
196
|
-
|
|
197
|
-
while (i < arguments.length) {
|
|
198
|
-
if (tmp = arguments[i++]) {
|
|
199
|
-
if (x = toVal(tmp)) {
|
|
200
|
-
str && (str += ' ');
|
|
201
|
-
str += x;
|
|
202
|
-
}
|
|
203
|
-
}
|
|
174
|
+
for (var e, t, f = 0, n = ""; f < arguments.length;) {
|
|
175
|
+
(e = arguments[f++]) && (t = r(e)) && (n && (n += " "), n += t);
|
|
204
176
|
}
|
|
205
177
|
|
|
206
|
-
return
|
|
178
|
+
return n;
|
|
207
179
|
}
|
|
208
180
|
|
|
209
181
|
var env = configs.env;
|
|
@@ -4995,9 +4967,11 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
4995
4967
|
value: res.data.value,
|
|
4996
4968
|
label: res.data.label
|
|
4997
4969
|
}, _extends2)));
|
|
4970
|
+
console.log('Set new value', res.data.label);
|
|
4998
4971
|
clearCacheForAsyncDropdown(function (prevState) {
|
|
4999
4972
|
var _extends3;
|
|
5000
4973
|
|
|
4974
|
+
console.log('ClearCache function called');
|
|
5001
4975
|
return _extends({}, prevState, (_extends3 = {}, _extends3[tempKey] = prevState[tempKey] + 1, _extends3));
|
|
5002
4976
|
});
|
|
5003
4977
|
dispatch(stopLoader());
|
|
@@ -5679,6 +5653,10 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5679
5653
|
});
|
|
5680
5654
|
}
|
|
5681
5655
|
}, [renderFields.expenseApprovers]);
|
|
5656
|
+
useEffect(function () {
|
|
5657
|
+
console.log(employeeInfoInput, 'employee info changed');
|
|
5658
|
+
console.log(cacheForAsyncDropdown, 'Cached value changes info changed');
|
|
5659
|
+
}, [employeeInfoInput, cacheForAsyncDropdown]);
|
|
5682
5660
|
|
|
5683
5661
|
var uploadDocs = function uploadDocs(docToUpload, type) {
|
|
5684
5662
|
try {
|