@itilite/iui-user-management 1.4.943 → 1.4.945
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 +121 -120
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +121 -120
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -64,137 +64,137 @@ function _unsupportedIterableToArray(r, a) {
|
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
67
|
+
// A type of promise-like that resolves synchronously and supports only one observer
|
|
68
|
+
const _Pact = /*#__PURE__*/(function() {
|
|
69
|
+
function _Pact() {}
|
|
70
|
+
_Pact.prototype.then = function(onFulfilled, onRejected) {
|
|
71
|
+
const result = new _Pact();
|
|
72
|
+
const state = this.s;
|
|
73
|
+
if (state) {
|
|
74
|
+
const callback = state & 1 ? onFulfilled : onRejected;
|
|
75
|
+
if (callback) {
|
|
76
|
+
try {
|
|
77
|
+
_settle(result, 1, callback(this.v));
|
|
78
|
+
} catch (e) {
|
|
79
|
+
_settle(result, 2, e);
|
|
80
|
+
}
|
|
81
|
+
return result;
|
|
82
|
+
} else {
|
|
83
|
+
return this;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
this.o = function(_this) {
|
|
87
|
+
try {
|
|
88
|
+
const value = _this.v;
|
|
89
|
+
if (_this.s & 1) {
|
|
90
|
+
_settle(result, 1, onFulfilled ? onFulfilled(value) : value);
|
|
91
|
+
} else if (onRejected) {
|
|
92
|
+
_settle(result, 1, onRejected(value));
|
|
93
|
+
} else {
|
|
94
|
+
_settle(result, 2, value);
|
|
95
|
+
}
|
|
96
|
+
} catch (e) {
|
|
97
|
+
_settle(result, 2, e);
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
return result;
|
|
101
|
+
};
|
|
102
|
+
return _Pact;
|
|
103
|
+
})();
|
|
104
|
+
|
|
105
|
+
// Settles a pact synchronously
|
|
103
106
|
function _settle(pact, state, value) {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
107
|
+
if (!pact.s) {
|
|
108
|
+
if (value instanceof _Pact) {
|
|
109
|
+
if (value.s) {
|
|
110
|
+
if (state & 1) {
|
|
111
|
+
state = value.s;
|
|
112
|
+
}
|
|
113
|
+
value = value.v;
|
|
114
|
+
} else {
|
|
115
|
+
value.o = _settle.bind(null, pact, state);
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
if (value && value.then) {
|
|
120
|
+
value.then(_settle.bind(null, pact, state), _settle.bind(null, pact, 2));
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
123
|
+
pact.s = state;
|
|
124
|
+
pact.v = value;
|
|
125
|
+
const observer = pact.o;
|
|
126
|
+
if (observer) {
|
|
127
|
+
observer(pact);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
127
130
|
}
|
|
131
|
+
|
|
128
132
|
function _isSettledPact(thenable) {
|
|
129
|
-
|
|
133
|
+
return thenable instanceof _Pact && thenable.s & 1;
|
|
130
134
|
}
|
|
135
|
+
|
|
136
|
+
// Asynchronously iterate through an object that has a length property, passing the index as the first argument to the callback (even as the length property changes)
|
|
131
137
|
function _forTo(array, body, check) {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
_cycle();
|
|
158
|
-
return pact;
|
|
138
|
+
var i = -1, pact, reject;
|
|
139
|
+
function _cycle(result) {
|
|
140
|
+
try {
|
|
141
|
+
while (++i < array.length && (!check || !check())) {
|
|
142
|
+
result = body(i);
|
|
143
|
+
if (result && result.then) {
|
|
144
|
+
if (_isSettledPact(result)) {
|
|
145
|
+
result = result.v;
|
|
146
|
+
} else {
|
|
147
|
+
result.then(_cycle, reject || (reject = _settle.bind(null, pact = new _Pact(), 2)));
|
|
148
|
+
return;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
if (pact) {
|
|
153
|
+
_settle(pact, 1, result);
|
|
154
|
+
} else {
|
|
155
|
+
pact = result;
|
|
156
|
+
}
|
|
157
|
+
} catch (e) {
|
|
158
|
+
_settle(pact || (pact = new _Pact()), 2, e);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
_cycle();
|
|
162
|
+
return pact;
|
|
159
163
|
}
|
|
160
|
-
|
|
161
|
-
|
|
164
|
+
|
|
165
|
+
const _iteratorSymbol = /*#__PURE__*/ typeof Symbol !== "undefined" ? (Symbol.iterator || (Symbol.iterator = Symbol("Symbol.iterator"))) : "@@iterator";
|
|
166
|
+
|
|
167
|
+
const _asyncIteratorSymbol = /*#__PURE__*/ typeof Symbol !== "undefined" ? (Symbol.asyncIterator || (Symbol.asyncIterator = Symbol("Symbol.asyncIterator"))) : "@@asyncIterator";
|
|
168
|
+
|
|
169
|
+
// Asynchronously call a function and send errors to recovery continuation
|
|
162
170
|
function _catch(body, recover) {
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
171
|
+
try {
|
|
172
|
+
var result = body();
|
|
173
|
+
} catch(e) {
|
|
174
|
+
return recover(e);
|
|
175
|
+
}
|
|
176
|
+
if (result && result.then) {
|
|
177
|
+
return result.then(void 0, recover);
|
|
178
|
+
}
|
|
179
|
+
return result;
|
|
172
180
|
}
|
|
181
|
+
|
|
182
|
+
// Asynchronously await a promise and pass the result to a finally continuation
|
|
173
183
|
function _finallyRethrows(body, finalizer) {
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
184
|
+
try {
|
|
185
|
+
var result = body();
|
|
186
|
+
} catch (e) {
|
|
187
|
+
return finalizer(true, e);
|
|
188
|
+
}
|
|
189
|
+
if (result && result.then) {
|
|
190
|
+
return result.then(finalizer.bind(null, false), finalizer.bind(null, true));
|
|
191
|
+
}
|
|
192
|
+
return finalizer(false, result);
|
|
183
193
|
}
|
|
184
194
|
|
|
185
195
|
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","buttonRight":"_1lEyQ","containedDropdownBtn":"_3ymE1"};
|
|
186
196
|
|
|
187
|
-
function r(e) {
|
|
188
|
-
var t,
|
|
189
|
-
f,
|
|
190
|
-
n = "";
|
|
191
|
-
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++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);else for (t in e) e[t] && (n && (n += " "), n += t);
|
|
192
|
-
return n;
|
|
193
|
-
}
|
|
194
|
-
function clsx() {
|
|
195
|
-
for (var e, t, f = 0, n = ""; f < arguments.length;) (e = arguments[f++]) && (t = r(e)) && (n && (n += " "), n += t);
|
|
196
|
-
return n;
|
|
197
|
-
}
|
|
197
|
+
function r(e){var t,f,n="";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++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function clsx(){for(var e,t,f=0,n="";f<arguments.length;)(e=arguments[f++])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
|
|
198
198
|
|
|
199
199
|
var GetInputType = React.forwardRef(function (props, ref) {
|
|
200
200
|
var _p = props._p,
|
|
@@ -3644,7 +3644,7 @@ var personalInfo = [{
|
|
|
3644
3644
|
maxLength: 100,
|
|
3645
3645
|
minLength: 0
|
|
3646
3646
|
},
|
|
3647
|
-
disableText: '
|
|
3647
|
+
disableText: 'A user’s email is their primary identifier and cannot be changed for security reasons. To update it, please deactivate the existing user and create a new one with the correct email address.'
|
|
3648
3648
|
}, {
|
|
3649
3649
|
id: 4,
|
|
3650
3650
|
label: 'Phone number',
|
|
@@ -10387,6 +10387,7 @@ var StickyHeadTable = function StickyHeadTable(props) {
|
|
|
10387
10387
|
id: 'status',
|
|
10388
10388
|
label: 'Status',
|
|
10389
10389
|
minWidth: 160,
|
|
10390
|
+
sortable: true,
|
|
10390
10391
|
cell: function cell(row) {
|
|
10391
10392
|
return /*#__PURE__*/React.createElement(IUIFormGroup, null, /*#__PURE__*/React.createElement(IUITypography, {
|
|
10392
10393
|
component: "div",
|
|
@@ -11226,7 +11227,7 @@ var UserList = function UserList(_ref2) {
|
|
|
11226
11227
|
if (isTokenVerified === true) {
|
|
11227
11228
|
var pageNum = page;
|
|
11228
11229
|
var searchParam = searchValue.trim() !== '' ? '&search=' + searchValue : '';
|
|
11229
|
-
var orderingParam = orderBy === '' ? '' : order === 'asc' ? '&ordering=' + orderBy : '&ordering=-' + orderBy;
|
|
11230
|
+
var orderingParam = orderBy === '' ? '' : orderBy === 'status' ? order === 'asc' ? '&ordering=is_active,-has_visited' : '&ordering=-is_active,-has_visited' : order === 'asc' ? '&ordering=' + orderBy : '&ordering=-' + orderBy;
|
|
11230
11231
|
var url = userListUrl.getUser + '?length=' + rowsPerPage + '&page=' + pageNum + searchParam + orderingParam;
|
|
11231
11232
|
if (isSearchingChange) {
|
|
11232
11233
|
var delayDebounceFn = setTimeout(function () {
|