@itilite/iui-user-management 0.0.23 → 0.0.25

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.
@@ -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 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
- }
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 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
- }
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 str;
178
+ return n;
207
179
  }
208
180
 
209
181
  var env = configs.env;
@@ -3113,8 +3085,8 @@ var TravelExpenseFields = function TravelExpenseFields(props) {
3113
3085
  xl: 12,
3114
3086
  className: styles.fieldMargin
3115
3087
  }, /*#__PURE__*/React.createElement(IUIInput, {
3116
- defaultValue: p.label,
3117
- label: (type === 'travel' ? 'Travel' : 'Expense') + " approver " + (i + 1),
3088
+ defaultValue: p.label.toLowerCase() == (type === 'travel' ? 'travel' : 'expense') + " approver " + (i + 1) ? '' : p.label,
3089
+ label: (type === 'travel' ? 'Travel' : 'Expense') + " approver " + (i + 1) + " label",
3118
3090
  className: styles.inputWidth,
3119
3091
  id: type + '_' + p.sequence,
3120
3092
  name: type + '_' + p.sequence,
@@ -3122,7 +3094,8 @@ var TravelExpenseFields = function TravelExpenseFields(props) {
3122
3094
  return handleOnChangeEditApproverFields(_name, _value, i);
3123
3095
  },
3124
3096
  errorMsg: errMsg[i],
3125
- isError: !!errMsg[i]
3097
+ isError: !!errMsg[i],
3098
+ placeholder: "Example label - \u201CManager\u201D"
3126
3099
  }));
3127
3100
  })))), type === 'travel' && isProfile && paymentDetails && /*#__PURE__*/React.createElement(PaymentCards, {
3128
3101
  paymentDetails: paymentDetails