@itilite/iui-user-management 0.3.0 → 0.3.1
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 +45 -17
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +45 -17
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -161,24 +161,52 @@ 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
|
-
|
|
164
|
+
function toVal(mix) {
|
|
165
|
+
var k,
|
|
166
|
+
y,
|
|
167
|
+
str = '';
|
|
168
|
+
|
|
169
|
+
if (typeof mix === 'string' || typeof mix === 'number') {
|
|
170
|
+
str += mix;
|
|
171
|
+
} else if (typeof mix === 'object') {
|
|
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
|
+
}
|
|
172
189
|
}
|
|
173
|
-
|
|
190
|
+
|
|
191
|
+
return str;
|
|
174
192
|
}
|
|
175
193
|
|
|
176
194
|
function clsx() {
|
|
177
|
-
|
|
178
|
-
|
|
195
|
+
var i = 0,
|
|
196
|
+
tmp,
|
|
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
|
+
}
|
|
179
207
|
}
|
|
180
208
|
|
|
181
|
-
return
|
|
209
|
+
return str;
|
|
182
210
|
}
|
|
183
211
|
|
|
184
212
|
var GetInputType = React__default.forwardRef(function (props, ref) {
|
|
@@ -3007,7 +3035,7 @@ var workInfo = [{
|
|
|
3007
3035
|
validation: {
|
|
3008
3036
|
regexOnChange: null,
|
|
3009
3037
|
regexOnBlur: [{
|
|
3010
|
-
regex: /^[(A-Z)(a-z)(0-9)
|
|
3038
|
+
regex: /^[(A-Z)(a-z)(0-9)\- ]*$/,
|
|
3011
3039
|
message: "Only alphabets, numbers & \"-\" are allowed."
|
|
3012
3040
|
}],
|
|
3013
3041
|
maxLimit: '',
|
|
@@ -3096,8 +3124,8 @@ var workInfo = [{
|
|
|
3096
3124
|
validation: {
|
|
3097
3125
|
regexOnChange: null,
|
|
3098
3126
|
regexOnBlur: [{
|
|
3099
|
-
regex: /^[A-Za-
|
|
3100
|
-
message: "Only alphabets & special characters . & ' () - are allowed."
|
|
3127
|
+
regex: /^[A-Za-z0-9 -.&'()]*$/,
|
|
3128
|
+
message: "Only alphabets, numbers & special characters . & ' () - are allowed."
|
|
3101
3129
|
}, {
|
|
3102
3130
|
regex: /^[a-zA-Z]/,
|
|
3103
3131
|
message: 'Designation should start with alphabets'
|
|
@@ -4611,7 +4639,7 @@ var AdditionalInfo = function AdditionalInfo(_ref) {
|
|
|
4611
4639
|
return addMemInfoInput('hotel');
|
|
4612
4640
|
}
|
|
4613
4641
|
}), /*#__PURE__*/React__default.createElement(iuistyles.IUIButton, {
|
|
4614
|
-
buttonText: "
|
|
4642
|
+
buttonText: "Add car rental",
|
|
4615
4643
|
type: "text",
|
|
4616
4644
|
startIcon: /*#__PURE__*/React__default.createElement(AddIcon, {
|
|
4617
4645
|
width: "10",
|
|
@@ -4701,7 +4729,7 @@ var AdditionalInfo = function AdditionalInfo(_ref) {
|
|
|
4701
4729
|
return addMemInfoInput('hotel');
|
|
4702
4730
|
}
|
|
4703
4731
|
}), /*#__PURE__*/React__default.createElement(iuistyles.IUIButton, {
|
|
4704
|
-
buttonText: "
|
|
4732
|
+
buttonText: "Add car rental",
|
|
4705
4733
|
type: "text",
|
|
4706
4734
|
startIcon: /*#__PURE__*/React__default.createElement(AddIcon, {
|
|
4707
4735
|
width: "10",
|