@itilite/iui-user-management 0.3.0 → 0.3.2
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 +46 -18
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +46 -18
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -2
package/dist/index.modern.js
CHANGED
|
@@ -158,24 +158,52 @@ 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
|
|
162
|
-
var
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
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
|
+
}
|
|
169
186
|
}
|
|
170
|
-
|
|
187
|
+
|
|
188
|
+
return str;
|
|
171
189
|
}
|
|
172
190
|
|
|
173
191
|
function clsx() {
|
|
174
|
-
|
|
175
|
-
|
|
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
|
+
}
|
|
176
204
|
}
|
|
177
205
|
|
|
178
|
-
return
|
|
206
|
+
return str;
|
|
179
207
|
}
|
|
180
208
|
|
|
181
209
|
var GetInputType = React.forwardRef(function (props, ref) {
|
|
@@ -2895,7 +2923,7 @@ var personalInfo = [{
|
|
|
2895
2923
|
regexOnChange: null,
|
|
2896
2924
|
regexOnBlur: [{
|
|
2897
2925
|
regex: /^(([^<>()\\.,;:\s@"]+(\.[^<>()\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,
|
|
2898
|
-
message: '
|
|
2926
|
+
message: 'please enter the valid email address.'
|
|
2899
2927
|
}],
|
|
2900
2928
|
maxLimit: '',
|
|
2901
2929
|
minLimit: '',
|
|
@@ -3004,7 +3032,7 @@ var workInfo = [{
|
|
|
3004
3032
|
validation: {
|
|
3005
3033
|
regexOnChange: null,
|
|
3006
3034
|
regexOnBlur: [{
|
|
3007
|
-
regex: /^[(A-Z)(a-z)(0-9)
|
|
3035
|
+
regex: /^[(A-Z)(a-z)(0-9)\- ]*$/,
|
|
3008
3036
|
message: "Only alphabets, numbers & \"-\" are allowed."
|
|
3009
3037
|
}],
|
|
3010
3038
|
maxLimit: '',
|
|
@@ -3093,8 +3121,8 @@ var workInfo = [{
|
|
|
3093
3121
|
validation: {
|
|
3094
3122
|
regexOnChange: null,
|
|
3095
3123
|
regexOnBlur: [{
|
|
3096
|
-
regex: /^[A-Za-
|
|
3097
|
-
message: "Only alphabets & special characters . & ' () - are allowed."
|
|
3124
|
+
regex: /^[A-Za-z0-9 -.&'()]*$/,
|
|
3125
|
+
message: "Only alphabets, numbers & special characters . & ' () - are allowed."
|
|
3098
3126
|
}, {
|
|
3099
3127
|
regex: /^[a-zA-Z]/,
|
|
3100
3128
|
message: 'Designation should start with alphabets'
|
|
@@ -4608,7 +4636,7 @@ var AdditionalInfo = function AdditionalInfo(_ref) {
|
|
|
4608
4636
|
return addMemInfoInput('hotel');
|
|
4609
4637
|
}
|
|
4610
4638
|
}), /*#__PURE__*/React.createElement(IUIButton, {
|
|
4611
|
-
buttonText: "
|
|
4639
|
+
buttonText: "Add car rental",
|
|
4612
4640
|
type: "text",
|
|
4613
4641
|
startIcon: /*#__PURE__*/React.createElement(AddIcon, {
|
|
4614
4642
|
width: "10",
|
|
@@ -4698,7 +4726,7 @@ var AdditionalInfo = function AdditionalInfo(_ref) {
|
|
|
4698
4726
|
return addMemInfoInput('hotel');
|
|
4699
4727
|
}
|
|
4700
4728
|
}), /*#__PURE__*/React.createElement(IUIButton, {
|
|
4701
|
-
buttonText: "
|
|
4729
|
+
buttonText: "Add car rental",
|
|
4702
4730
|
type: "text",
|
|
4703
4731
|
startIcon: /*#__PURE__*/React.createElement(AddIcon, {
|
|
4704
4732
|
width: "10",
|