@itilite/iui-user-management 0.3.4 → 0.3.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 +56 -28
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +56 -28
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -2
package/dist/index.modern.js
CHANGED
|
@@ -158,24 +158,52 @@ 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
|
-
|
|
161
|
+
function toVal(mix) {
|
|
162
|
+
var k,
|
|
163
|
+
y,
|
|
164
|
+
str = '';
|
|
165
|
+
|
|
166
|
+
if (typeof mix === 'string' || typeof mix === 'number') {
|
|
167
|
+
str += mix;
|
|
168
|
+
} else if (typeof mix === 'object') {
|
|
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
|
+
}
|
|
169
186
|
}
|
|
170
|
-
|
|
187
|
+
|
|
188
|
+
return str;
|
|
171
189
|
}
|
|
172
190
|
|
|
173
191
|
function clsx() {
|
|
174
|
-
|
|
175
|
-
|
|
192
|
+
var i = 0,
|
|
193
|
+
tmp,
|
|
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
|
+
}
|
|
176
204
|
}
|
|
177
205
|
|
|
178
|
-
return
|
|
206
|
+
return str;
|
|
179
207
|
}
|
|
180
208
|
|
|
181
209
|
var GetInputType = React.forwardRef(function (props, ref) {
|
|
@@ -627,8 +655,10 @@ var approversOptions = function approversOptions(search, loadedOptions, _ref4) {
|
|
|
627
655
|
})).then(function (response) {
|
|
628
656
|
var mappedValue = response.results.map(function (item) {
|
|
629
657
|
return {
|
|
630
|
-
value: item.approver,
|
|
631
|
-
label: item.approver
|
|
658
|
+
value: item.approver.email,
|
|
659
|
+
label: item.approver.email,
|
|
660
|
+
type: 'detailed',
|
|
661
|
+
data: item.approver
|
|
632
662
|
};
|
|
633
663
|
});
|
|
634
664
|
|
|
@@ -2575,8 +2605,8 @@ var TravelExpenseFields = function TravelExpenseFields(props) {
|
|
|
2575
2605
|
xl: 12,
|
|
2576
2606
|
className: styles.fieldMargin
|
|
2577
2607
|
}, /*#__PURE__*/React.createElement(IUIInput, {
|
|
2578
|
-
defaultValue: p.label,
|
|
2579
|
-
label: (type === 'travel' ? 'Travel' : 'Expense') + " approver " + (i + 1),
|
|
2608
|
+
defaultValue: p.label.toLowerCase() === (type === 'travel' ? 'travel' : 'expense') + " approver " + (i + 1) ? '' : p.label,
|
|
2609
|
+
label: (type === 'travel' ? 'Travel' : 'Expense') + " approver " + (i + 1) + " label",
|
|
2580
2610
|
className: styles.inputWidth,
|
|
2581
2611
|
id: type + '_' + p.sequence,
|
|
2582
2612
|
name: type + '_' + p.sequence,
|
|
@@ -2586,7 +2616,8 @@ var TravelExpenseFields = function TravelExpenseFields(props) {
|
|
|
2586
2616
|
return handleOnChangeEditApproverFields(_name, _value, i);
|
|
2587
2617
|
},
|
|
2588
2618
|
errorMsg: errMsg[i],
|
|
2589
|
-
isError: !!errMsg[i]
|
|
2619
|
+
isError: !!errMsg[i],
|
|
2620
|
+
placeholder: "Example label - \u201CManager\u201D"
|
|
2590
2621
|
}));
|
|
2591
2622
|
})))), type === 'travel' && isProfile && paymentDetails && /*#__PURE__*/React.createElement(PaymentCards, {
|
|
2592
2623
|
paymentDetails: paymentDetails
|
|
@@ -8442,19 +8473,16 @@ var BulkActionHistory = function BulkActionHistory(_ref) {
|
|
|
8442
8473
|
|
|
8443
8474
|
var BulkActionHistory$1 = withStore(BulkActionHistory);
|
|
8444
8475
|
|
|
8445
|
-
var
|
|
8476
|
+
var BulkDownloadIcon = function BulkDownloadIcon(props) {
|
|
8446
8477
|
return /*#__PURE__*/React.createElement("svg", {
|
|
8447
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
8448
8478
|
width: props.width,
|
|
8449
8479
|
height: props.height,
|
|
8480
|
+
viewBox: "0 0 38 41",
|
|
8450
8481
|
fill: "none",
|
|
8451
|
-
|
|
8482
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
8452
8483
|
}, /*#__PURE__*/React.createElement("path", {
|
|
8453
|
-
|
|
8454
|
-
|
|
8455
|
-
strokeLinejoin: "round",
|
|
8456
|
-
strokeWidth: "2",
|
|
8457
|
-
d: "M4 1.501h6m0 0v6m0-6l-9 9"
|
|
8484
|
+
d: "M0.746826 0.248047H0.246826V0.748047V36.5443V37.0443H0.746826H25.5364L24.4385 36.0443H1.24683V1.24805H23.427V6.0691V6.5691H23.927H28.2562V22.516H29.2562V6.0691V5.87604L29.1264 5.73308L24.2972 0.41202L24.1484 0.248047H23.927H0.746826ZM27.6272 5.5691L24.427 2.04296V5.5691H27.6272ZM12.1321 19.5249C11.7612 18.976 11.5419 18.3426 11.4998 17.667C11.0191 17.4052 10.5132 17.2025 9.96524 17.0843C10.9011 16.6451 11.5502 15.7079 11.5502 14.61C11.5502 13.0984 10.3277 11.8739 8.81859 11.8739C7.30952 11.8739 6.08704 13.0984 6.08704 14.61C6.08704 15.7079 6.73631 16.6538 7.67195 17.0843C5.10053 17.6163 3.16143 19.8964 3.16143 22.633H9.18927C9.80482 21.307 10.8333 20.2092 12.1318 19.5251L12.1321 19.5249ZM22.7974 17.0845C23.7333 16.6453 24.3823 15.7081 24.3823 14.6102C24.3823 13.0986 23.1598 11.8741 21.6507 11.8741C20.1417 11.8741 18.9192 13.0986 18.9192 14.6102C18.9192 15.7081 19.5684 16.654 20.5041 17.0845C19.9561 17.1942 19.4417 17.4053 18.9696 17.6672C18.9274 18.3428 18.7082 18.9847 18.3373 19.5251C19.6356 20.2092 20.6642 21.3155 21.2796 22.6328H27.3074C27.3076 19.8968 25.3768 17.6164 22.7971 17.0846L22.7974 17.0845ZM17.9661 17.4227C17.9661 18.5205 17.3171 19.4577 16.3812 19.897H16.3814C18.9529 20.4293 20.8919 22.7008 20.8835 25.4456H9.57742C9.57742 22.7091 11.5165 20.4289 14.0879 19.897C13.1523 19.4665 12.503 18.5205 12.503 17.4227C12.503 15.911 13.7255 14.6865 15.2346 14.6865C16.7437 14.6865 17.9661 15.911 17.9661 17.4227ZM36.9834 32.9712L31.8956 37.9017C31.4406 38.3575 31.1512 38.606 30.8615 38.8132H35.8249V40.0563H24.6571V38.8132H29.6205C29.5905 38.7917 29.5595 38.7698 29.5277 38.7472C29.2527 38.5522 28.9114 38.3102 28.5036 37.9017L23.4164 32.8886C22.5893 31.9771 23.1683 31.7699 23.7886 31.7699H26.2705V25.1406C26.2705 23.9805 27.0977 23.4834 27.9249 23.4834H32.4749C33.7986 23.4834 34.1292 24.3537 34.1292 25.1406V31.7699H36.5695C37.6036 31.7699 37.8105 32.1013 36.9833 32.9712H36.9834Z",
|
|
8485
|
+
fill: "#363E4F"
|
|
8458
8486
|
}));
|
|
8459
8487
|
};
|
|
8460
8488
|
|
|
@@ -9015,9 +9043,9 @@ var UserList = function UserList(_ref) {
|
|
|
9015
9043
|
}, /*#__PURE__*/React.createElement(IUIButton, {
|
|
9016
9044
|
buttonText: "Export all users",
|
|
9017
9045
|
type: "outlined",
|
|
9018
|
-
startIcon: /*#__PURE__*/React.createElement(
|
|
9019
|
-
width: "
|
|
9020
|
-
height: "
|
|
9046
|
+
startIcon: /*#__PURE__*/React.createElement(BulkDownloadIcon, {
|
|
9047
|
+
width: "22",
|
|
9048
|
+
height: "22"
|
|
9021
9049
|
}),
|
|
9022
9050
|
onClick: handleExportUsers
|
|
9023
9051
|
})), /*#__PURE__*/React.createElement(IUIBox, {
|