@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.css
CHANGED
|
@@ -771,8 +771,13 @@
|
|
|
771
771
|
._25xUk ._3vGmU {
|
|
772
772
|
width: 100%;
|
|
773
773
|
}
|
|
774
|
-
._25xUk ._3-Xu_ ._tLw43
|
|
775
|
-
|
|
774
|
+
._25xUk ._3-Xu_ ._tLw43 {
|
|
775
|
+
gap: 1rem;
|
|
776
|
+
}
|
|
777
|
+
._25xUk ._3-Xu_ ._tLw43 ._7TYUZ {
|
|
778
|
+
display: flex;
|
|
779
|
+
flex-direction: column;
|
|
780
|
+
gap: 4px;
|
|
776
781
|
}
|
|
777
782
|
._25xUk ._3-Xu_ ._tLw43 ._7TYUZ .__CZpe {
|
|
778
783
|
font-family: "Inter", sans-serif;
|
|
@@ -790,6 +795,14 @@
|
|
|
790
795
|
font-size: 0.875rem;
|
|
791
796
|
line-height: 20px;
|
|
792
797
|
color: #6b7280;
|
|
798
|
+
margin-left: 25px;
|
|
799
|
+
}
|
|
800
|
+
._25xUk ._3-Xu_ ._tLw43 ._1qXtq {
|
|
801
|
+
color: #EC5D25;
|
|
802
|
+
margin-left: 25px;
|
|
803
|
+
}
|
|
804
|
+
._25xUk ._3-Xu_ ._tLw43 ._1YVz2 {
|
|
805
|
+
margin-left: 25px;
|
|
793
806
|
}
|
|
794
807
|
._25xUk ._3-Xu_ ._3vnY5 {
|
|
795
808
|
gap: 16px;
|
package/dist/index.js
CHANGED
|
@@ -161,52 +161,24 @@ function _catch(body, recover) {
|
|
|
161
161
|
|
|
162
162
|
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"};
|
|
163
163
|
|
|
164
|
-
function
|
|
165
|
-
var
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
if (Array.isArray(mix)) {
|
|
173
|
-
for (k = 0; k < mix.length; k++) {
|
|
174
|
-
if (mix[k]) {
|
|
175
|
-
if (y = toVal(mix[k])) {
|
|
176
|
-
str && (str += ' ');
|
|
177
|
-
str += y;
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
} else {
|
|
182
|
-
for (k in mix) {
|
|
183
|
-
if (mix[k]) {
|
|
184
|
-
str && (str += ' ');
|
|
185
|
-
str += k;
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
}
|
|
164
|
+
function r(e) {
|
|
165
|
+
var t,
|
|
166
|
+
f,
|
|
167
|
+
n = "";
|
|
168
|
+
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++) {
|
|
169
|
+
e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
|
|
170
|
+
} else for (t in e) {
|
|
171
|
+
e[t] && (n && (n += " "), n += t);
|
|
189
172
|
}
|
|
190
|
-
|
|
191
|
-
return str;
|
|
173
|
+
return n;
|
|
192
174
|
}
|
|
193
175
|
|
|
194
176
|
function clsx() {
|
|
195
|
-
var
|
|
196
|
-
|
|
197
|
-
x,
|
|
198
|
-
str = '';
|
|
199
|
-
|
|
200
|
-
while (i < arguments.length) {
|
|
201
|
-
if (tmp = arguments[i++]) {
|
|
202
|
-
if (x = toVal(tmp)) {
|
|
203
|
-
str && (str += ' ');
|
|
204
|
-
str += x;
|
|
205
|
-
}
|
|
206
|
-
}
|
|
177
|
+
for (var e, t, f = 0, n = ""; f < arguments.length;) {
|
|
178
|
+
(e = arguments[f++]) && (t = r(e)) && (n && (n += " "), n += t);
|
|
207
179
|
}
|
|
208
180
|
|
|
209
|
-
return
|
|
181
|
+
return n;
|
|
210
182
|
}
|
|
211
183
|
|
|
212
184
|
var GetInputType = React__default.forwardRef(function (props, ref) {
|
|
@@ -748,34 +720,33 @@ var airlineOptionsfn = function airlineOptionsfn(search, loadedOptions, _ref6) {
|
|
|
748
720
|
headers: {
|
|
749
721
|
Authorization: 'Bearer ' + token
|
|
750
722
|
}
|
|
751
|
-
}).then(function (res) {
|
|
752
|
-
return res.data;
|
|
753
723
|
})).then(function (response) {
|
|
754
|
-
|
|
724
|
+
var mappedValue = response.data.results.map(function (item) {
|
|
755
725
|
return {
|
|
756
726
|
value: item.id,
|
|
757
727
|
label: item.name
|
|
758
728
|
};
|
|
759
|
-
})
|
|
760
|
-
if (placeholder) {
|
|
761
|
-
var placeholderLbl = {
|
|
762
|
-
value: '',
|
|
763
|
-
label: placeholder
|
|
764
|
-
};
|
|
765
|
-
mappedValue.unshift(placeholderLbl);
|
|
766
|
-
}
|
|
729
|
+
});
|
|
767
730
|
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
page: page + 1,
|
|
773
|
-
placeholder: placeholder
|
|
774
|
-
}
|
|
731
|
+
if (placeholder) {
|
|
732
|
+
var placeholderLbl = {
|
|
733
|
+
value: '',
|
|
734
|
+
label: placeholder
|
|
775
735
|
};
|
|
776
|
-
|
|
736
|
+
mappedValue.unshift(placeholderLbl);
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
return {
|
|
740
|
+
options: mappedValue,
|
|
741
|
+
hasMore: !!response.data.next,
|
|
742
|
+
additional: {
|
|
743
|
+
page: page + 1,
|
|
744
|
+
placeholder: placeholder
|
|
745
|
+
}
|
|
746
|
+
};
|
|
777
747
|
});
|
|
778
|
-
}, function () {
|
|
748
|
+
}, function (error) {
|
|
749
|
+
console.log(error);
|
|
779
750
|
return {
|
|
780
751
|
options: [],
|
|
781
752
|
hasMore: false,
|
|
@@ -7205,7 +7176,7 @@ var fetchBulkactionHistory = function fetchBulkactionHistory(url) {
|
|
|
7205
7176
|
};
|
|
7206
7177
|
};
|
|
7207
7178
|
|
|
7208
|
-
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"};
|
|
7179
|
+
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"};
|
|
7209
7180
|
|
|
7210
7181
|
var BulkUploadModal = function BulkUploadModal(props) {
|
|
7211
7182
|
var isOpenImportUsersModal = props.isOpenImportUsersModal,
|
|
@@ -7347,10 +7318,10 @@ var BulkUploadModal = function BulkUploadModal(props) {
|
|
|
7347
7318
|
submitHandler: handleBulkUploading,
|
|
7348
7319
|
width: "640px",
|
|
7349
7320
|
headerText: "Import users using XLSX file",
|
|
7350
|
-
|
|
7351
|
-
|
|
7352
|
-
|
|
7353
|
-
|
|
7321
|
+
isDisabledSubmitBtn: fileNames.length === 0 || isFileUploading || isError,
|
|
7322
|
+
modalBodyStyle: {
|
|
7323
|
+
padding: '40px 24px 0px'
|
|
7324
|
+
}
|
|
7354
7325
|
}, /*#__PURE__*/React__default.createElement(iuistyles.IUIGrid, {
|
|
7355
7326
|
container: true,
|
|
7356
7327
|
className: styles$5.importModalBodyContainer
|
|
@@ -7364,19 +7335,20 @@ var BulkUploadModal = function BulkUploadModal(props) {
|
|
|
7364
7335
|
className: styles$5.downloadTemplateContainer
|
|
7365
7336
|
}, /*#__PURE__*/React__default.createElement(iuistyles.IUIBox, {
|
|
7366
7337
|
display: "flex",
|
|
7367
|
-
flexDirection: "
|
|
7338
|
+
flexDirection: "column",
|
|
7368
7339
|
justifyContent: "space-between",
|
|
7369
7340
|
className: styles$5.downloadTemplateDescContainer
|
|
7370
7341
|
}, /*#__PURE__*/React__default.createElement(iuistyles.IUIBox, {
|
|
7371
7342
|
className: styles$5.labelContainer
|
|
7372
7343
|
}, /*#__PURE__*/React__default.createElement(iuistyles.IUITypography, {
|
|
7373
7344
|
className: styles$5.downlTempHeader
|
|
7374
|
-
}, "1
|
|
7345
|
+
}, "1.\xA0\xA0 Download the template"), /*#__PURE__*/React__default.createElement(iuistyles.IUITypography, {
|
|
7375
7346
|
className: styles$5.downlTempDescription
|
|
7376
7347
|
}, "Use this template with predefined columns and add users to your team")), /*#__PURE__*/React__default.createElement(iuistyles.IUIBox, null, /*#__PURE__*/React__default.createElement(iuistyles.IUIButton, {
|
|
7377
|
-
type: "
|
|
7348
|
+
type: "outlined",
|
|
7378
7349
|
buttonText: "Download template",
|
|
7379
7350
|
onClick: downloadTemplate,
|
|
7351
|
+
className: styles$5.downloadTemplateButton,
|
|
7380
7352
|
isLink: true
|
|
7381
7353
|
})))), /*#__PURE__*/React__default.createElement(iuistyles.IUIDivider, {
|
|
7382
7354
|
className: clsx(styles$5.dividerColor, styles$5.w100)
|
|
@@ -7396,13 +7368,15 @@ var BulkUploadModal = function BulkUploadModal(props) {
|
|
|
7396
7368
|
className: styles$5.labelContainer
|
|
7397
7369
|
}, /*#__PURE__*/React__default.createElement(iuistyles.IUITypography, {
|
|
7398
7370
|
className: styles$5.downlTempHeader
|
|
7399
|
-
}, "2
|
|
7371
|
+
}, "2.\xA0\xA0 Upload XLSX"), /*#__PURE__*/React__default.createElement(iuistyles.IUITypography, {
|
|
7400
7372
|
className: styles$5.downlTempDescription
|
|
7401
|
-
}, "Once you\u2019ve filled out the file, upload it here")), /*#__PURE__*/React__default.createElement(iuistyles.
|
|
7373
|
+
}, "Once you\u2019ve filled out the file, upload it here")), /*#__PURE__*/React__default.createElement(iuistyles.IUIBox, {
|
|
7374
|
+
className: styles$5.fileUploaderContainer
|
|
7375
|
+
}, /*#__PURE__*/React__default.createElement(iuistyles.IUIDropzone, {
|
|
7402
7376
|
handleDrop: handleDrop,
|
|
7403
7377
|
fileNames: fileNames,
|
|
7404
7378
|
removeSelectedFiles: removeSelectedFiles
|
|
7405
|
-
}), isError && /*#__PURE__*/React__default.createElement(iuistyles.IUIBox, {
|
|
7379
|
+
})), isError && /*#__PURE__*/React__default.createElement(iuistyles.IUIBox, {
|
|
7406
7380
|
display: "flex",
|
|
7407
7381
|
alignItems: "center",
|
|
7408
7382
|
style: {
|