@itilite/iui-user-management 0.3.14 → 0.3.16
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.css +15 -2
- package/dist/index.js +45 -71
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +45 -71
- package/dist/index.modern.js.map +1 -1
- package/dist/style.css.map +1 -0
- 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 GetInputType = React.forwardRef(function (props, ref) {
|
|
@@ -745,34 +717,33 @@ var airlineOptionsfn = function airlineOptionsfn(search, loadedOptions, _ref6) {
|
|
|
745
717
|
headers: {
|
|
746
718
|
Authorization: 'Bearer ' + token
|
|
747
719
|
}
|
|
748
|
-
}).then(function (res) {
|
|
749
|
-
return res.data;
|
|
750
720
|
})).then(function (response) {
|
|
751
|
-
|
|
721
|
+
var mappedValue = response.data.results.map(function (item) {
|
|
752
722
|
return {
|
|
753
723
|
value: item.id,
|
|
754
724
|
label: item.name
|
|
755
725
|
};
|
|
756
|
-
})
|
|
757
|
-
if (placeholder) {
|
|
758
|
-
var placeholderLbl = {
|
|
759
|
-
value: '',
|
|
760
|
-
label: placeholder
|
|
761
|
-
};
|
|
762
|
-
mappedValue.unshift(placeholderLbl);
|
|
763
|
-
}
|
|
726
|
+
});
|
|
764
727
|
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
page: page + 1,
|
|
770
|
-
placeholder: placeholder
|
|
771
|
-
}
|
|
728
|
+
if (placeholder) {
|
|
729
|
+
var placeholderLbl = {
|
|
730
|
+
value: '',
|
|
731
|
+
label: placeholder
|
|
772
732
|
};
|
|
773
|
-
|
|
733
|
+
mappedValue.unshift(placeholderLbl);
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
return {
|
|
737
|
+
options: mappedValue,
|
|
738
|
+
hasMore: !!response.data.next,
|
|
739
|
+
additional: {
|
|
740
|
+
page: page + 1,
|
|
741
|
+
placeholder: placeholder
|
|
742
|
+
}
|
|
743
|
+
};
|
|
774
744
|
});
|
|
775
|
-
}, function () {
|
|
745
|
+
}, function (error) {
|
|
746
|
+
console.log(error);
|
|
776
747
|
return {
|
|
777
748
|
options: [],
|
|
778
749
|
hasMore: false,
|
|
@@ -7202,7 +7173,7 @@ var fetchBulkactionHistory = function fetchBulkactionHistory(url) {
|
|
|
7202
7173
|
};
|
|
7203
7174
|
};
|
|
7204
7175
|
|
|
7205
|
-
var styles$5 = {"UUIUserManagementList":"_3WNHx","pageHeader":"_1WLpc","buttonWrapper":"_2egTG","headingWrapper":"_1He01","heading":"_1uPaO","headingLarge":"_2FsLd","headingMedium":"_nGXA9","headingSmall":"_2rpwF","description":"_25vb9","headerText":"_1Ny9J","letterImage":"_2hr3R","tablewrapper":"_1-RPw","rowText":"_1LXyO","textTransform":"_3kFQS","lightColor":"_3Ghgw","avatarClassName":"_2qO_X","importModalBodyContainer":"_25xUk","dividerColor":"_2HZv9","w100":"_3vGmU","downloadTemplateContainer":"_3-Xu_","downloadTemplateDescContainer":"_tLw43","labelContainer":"_7TYUZ","downlTempHeader":"__CZpe","downlTempDescription":"_19jEe","colGap":"_3vnY5","deActivateModalContainer":"_28H9H","backdrop":"_1ky1x","errorText":"_26_if"};
|
|
7176
|
+
var styles$5 = {"UUIUserManagementList":"_3WNHx","pageHeader":"_1WLpc","buttonWrapper":"_2egTG","headingWrapper":"_1He01","heading":"_1uPaO","headingLarge":"_2FsLd","headingMedium":"_nGXA9","headingSmall":"_2rpwF","description":"_25vb9","headerText":"_1Ny9J","letterImage":"_2hr3R","tablewrapper":"_1-RPw","rowText":"_1LXyO","textTransform":"_3kFQS","lightColor":"_3Ghgw","avatarClassName":"_2qO_X","importModalBodyContainer":"_25xUk","dividerColor":"_2HZv9","w100":"_3vGmU","downloadTemplateContainer":"_3-Xu_","downloadTemplateDescContainer":"_tLw43","labelContainer":"_7TYUZ","downlTempHeader":"__CZpe","downlTempDescription":"_19jEe","downloadTemplateButton":"_1qXtq","fileUploaderContainer":"_1YVz2","colGap":"_3vnY5","deActivateModalContainer":"_28H9H","backdrop":"_1ky1x","errorText":"_26_if"};
|
|
7206
7177
|
|
|
7207
7178
|
var BulkUploadModal = function BulkUploadModal(props) {
|
|
7208
7179
|
var isOpenImportUsersModal = props.isOpenImportUsersModal,
|
|
@@ -7344,10 +7315,10 @@ var BulkUploadModal = function BulkUploadModal(props) {
|
|
|
7344
7315
|
submitHandler: handleBulkUploading,
|
|
7345
7316
|
width: "640px",
|
|
7346
7317
|
headerText: "Import users using XLSX file",
|
|
7347
|
-
|
|
7348
|
-
|
|
7349
|
-
|
|
7350
|
-
|
|
7318
|
+
isDisabledSubmitBtn: fileNames.length === 0 || isFileUploading || isError,
|
|
7319
|
+
modalBodyStyle: {
|
|
7320
|
+
padding: '40px 24px 0px'
|
|
7321
|
+
}
|
|
7351
7322
|
}, /*#__PURE__*/React.createElement(IUIGrid, {
|
|
7352
7323
|
container: true,
|
|
7353
7324
|
className: styles$5.importModalBodyContainer
|
|
@@ -7361,19 +7332,20 @@ var BulkUploadModal = function BulkUploadModal(props) {
|
|
|
7361
7332
|
className: styles$5.downloadTemplateContainer
|
|
7362
7333
|
}, /*#__PURE__*/React.createElement(IUIBox, {
|
|
7363
7334
|
display: "flex",
|
|
7364
|
-
flexDirection: "
|
|
7335
|
+
flexDirection: "column",
|
|
7365
7336
|
justifyContent: "space-between",
|
|
7366
7337
|
className: styles$5.downloadTemplateDescContainer
|
|
7367
7338
|
}, /*#__PURE__*/React.createElement(IUIBox, {
|
|
7368
7339
|
className: styles$5.labelContainer
|
|
7369
7340
|
}, /*#__PURE__*/React.createElement(IUITypography, {
|
|
7370
7341
|
className: styles$5.downlTempHeader
|
|
7371
|
-
}, "1
|
|
7342
|
+
}, "1.\xA0\xA0 Download the template"), /*#__PURE__*/React.createElement(IUITypography, {
|
|
7372
7343
|
className: styles$5.downlTempDescription
|
|
7373
7344
|
}, "Use this template with predefined columns and add users to your team")), /*#__PURE__*/React.createElement(IUIBox, null, /*#__PURE__*/React.createElement(IUIButton, {
|
|
7374
|
-
type: "
|
|
7345
|
+
type: "outlined",
|
|
7375
7346
|
buttonText: "Download template",
|
|
7376
7347
|
onClick: downloadTemplate,
|
|
7348
|
+
className: styles$5.downloadTemplateButton,
|
|
7377
7349
|
isLink: true
|
|
7378
7350
|
})))), /*#__PURE__*/React.createElement(IUIDivider, {
|
|
7379
7351
|
className: clsx(styles$5.dividerColor, styles$5.w100)
|
|
@@ -7393,13 +7365,15 @@ var BulkUploadModal = function BulkUploadModal(props) {
|
|
|
7393
7365
|
className: styles$5.labelContainer
|
|
7394
7366
|
}, /*#__PURE__*/React.createElement(IUITypography, {
|
|
7395
7367
|
className: styles$5.downlTempHeader
|
|
7396
|
-
}, "2
|
|
7368
|
+
}, "2.\xA0\xA0 Upload XLSX"), /*#__PURE__*/React.createElement(IUITypography, {
|
|
7397
7369
|
className: styles$5.downlTempDescription
|
|
7398
|
-
}, "Once you\u2019ve filled out the file, upload it here")), /*#__PURE__*/React.createElement(
|
|
7370
|
+
}, "Once you\u2019ve filled out the file, upload it here")), /*#__PURE__*/React.createElement(IUIBox, {
|
|
7371
|
+
className: styles$5.fileUploaderContainer
|
|
7372
|
+
}, /*#__PURE__*/React.createElement(IUIDropzone, {
|
|
7399
7373
|
handleDrop: handleDrop,
|
|
7400
7374
|
fileNames: fileNames,
|
|
7401
7375
|
removeSelectedFiles: removeSelectedFiles
|
|
7402
|
-
}), isError && /*#__PURE__*/React.createElement(IUIBox, {
|
|
7376
|
+
})), isError && /*#__PURE__*/React.createElement(IUIBox, {
|
|
7403
7377
|
display: "flex",
|
|
7404
7378
|
alignItems: "center",
|
|
7405
7379
|
style: {
|