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