@unicef/material-ui 0.8.0 → 0.9.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/README.md +30 -0
- package/lib/dev.js +389 -70
- package/lib/dev.js.map +1 -1
- package/lib/prod.js +389 -70
- package/lib/prod.js.map +1 -1
- package/package.json +17 -7
package/lib/dev.js
CHANGED
|
@@ -11503,6 +11503,65 @@ var debounce = function debounce(func, wait, immediate) {
|
|
|
11503
11503
|
return debounced;
|
|
11504
11504
|
};
|
|
11505
11505
|
|
|
11506
|
+
/**
|
|
11507
|
+
*
|
|
11508
|
+
* @param {String} value Value text to be validated
|
|
11509
|
+
* @returns {Boolean} Whether the given value string is a phone number
|
|
11510
|
+
*/
|
|
11511
|
+
function isPhoneNumberText(value) {
|
|
11512
|
+
var valueToTest = value || '';
|
|
11513
|
+
var phoneRegexp = new RegExp(/^[0-9.,+-;()\/\extEXT+# ]*$/i);
|
|
11514
|
+
if (!phoneRegexp.test(valueToTest)) {
|
|
11515
|
+
return false;
|
|
11516
|
+
}
|
|
11517
|
+
return true;
|
|
11518
|
+
}
|
|
11519
|
+
|
|
11520
|
+
/**
|
|
11521
|
+
*
|
|
11522
|
+
* @param {String} value Value text to be validated
|
|
11523
|
+
* @returns {Boolean} Whether the given value string contains safe text (no html tags)
|
|
11524
|
+
*/
|
|
11525
|
+
function isSafeText(value) {
|
|
11526
|
+
var valueToTest = value || '';
|
|
11527
|
+
var htmlRegexp = new RegExp(/<\/?[a-z][\s\S]*>/i);
|
|
11528
|
+
if (htmlRegexp.test(valueToTest)) {
|
|
11529
|
+
return false;
|
|
11530
|
+
}
|
|
11531
|
+
return true;
|
|
11532
|
+
}
|
|
11533
|
+
|
|
11534
|
+
/**
|
|
11535
|
+
*
|
|
11536
|
+
* @param {String} value Value text to be validated
|
|
11537
|
+
* @returns {Boolean} Whether the given value string is an acceptable alphanumeric text in any language (also spaces are accepted)
|
|
11538
|
+
*/
|
|
11539
|
+
function isAlphanumericText(value) {
|
|
11540
|
+
var valueToTest = value || '';
|
|
11541
|
+
// With Unicode Property Escapes, we can match a letter from any language with the following simple regular expression (https://javascript.info/regexp-unicode) => /\p{Letter}/u
|
|
11542
|
+
// Unicode Property Escapes can be transpiled down to ES5 with a tool called regexpu. OR it can be taken from the lib Steve Levithan's XRegExp package with Unicode add-on (https://xregexp.com/plugins/)
|
|
11543
|
+
// The following is transpiled code for all language char with space and numbers
|
|
11544
|
+
// ( taken from https://stackoverflow.com/a/15861883/1874080 with some modifications) :
|
|
11545
|
+
|
|
11546
|
+
var wordsInAllLanguages = /^[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\ \0|0-9\0|1-9]*$/;
|
|
11547
|
+
|
|
11548
|
+
return wordsInAllLanguages.test(valueToTest);
|
|
11549
|
+
}
|
|
11550
|
+
|
|
11551
|
+
/**
|
|
11552
|
+
*
|
|
11553
|
+
* @param {String} value Value text to be validated
|
|
11554
|
+
* @returns {Boolean} Whether the given value string is an acceptable url
|
|
11555
|
+
*/
|
|
11556
|
+
function isUrlText(value) {
|
|
11557
|
+
var valueToTest = value || '';
|
|
11558
|
+
var urlRegexp = new RegExp('^http(s?)://[0-9a-zA-Z]([-.w]*[0-9a-zA-Z])*?[a-z0-9][-a-z0-9]{0,61}[a-z0-9]\\.[a-z]{2,6}(/[\\w\\s-\\w@\\+\\.~#\\?&/=%]*)?$');
|
|
11559
|
+
if (valueToTest && !urlRegexp.test(valueToTest)) {
|
|
11560
|
+
return false;
|
|
11561
|
+
}
|
|
11562
|
+
return true;
|
|
11563
|
+
}
|
|
11564
|
+
|
|
11506
11565
|
// It should to be noted that this function isn't equivalent to `text-transform: capitalize`.
|
|
11507
11566
|
//
|
|
11508
11567
|
// A strict capitalization should uppercase the first letter of each word a the sentence.
|
|
@@ -38481,6 +38540,18 @@ var useStyles$5 = makeStyles$1(function (theme) {
|
|
|
38481
38540
|
avatar: {
|
|
38482
38541
|
width: 24,
|
|
38483
38542
|
height: 24
|
|
38543
|
+
},
|
|
38544
|
+
deleteIconReadOnly: {
|
|
38545
|
+
display: 'none!important'
|
|
38546
|
+
},
|
|
38547
|
+
rootReadOnly: {
|
|
38548
|
+
fontSize: '1rem',
|
|
38549
|
+
marginLeft: 0,
|
|
38550
|
+
background: 'transparent'
|
|
38551
|
+
},
|
|
38552
|
+
labelReadOnly: {
|
|
38553
|
+
paddingLeft: 0,
|
|
38554
|
+
marginLeft: 0
|
|
38484
38555
|
}
|
|
38485
38556
|
};
|
|
38486
38557
|
});
|
|
@@ -38496,14 +38567,22 @@ function MultiValue$1(_ref) {
|
|
|
38496
38567
|
var classes = useStyles$5();
|
|
38497
38568
|
var hideAvatar = selectProps && selectProps.TextFieldProps && selectProps.TextFieldProps.hideAvatar;
|
|
38498
38569
|
|
|
38499
|
-
|
|
38500
|
-
|
|
38570
|
+
var readOnly = selectProps && selectProps.TextFieldProps && selectProps.TextFieldProps.readOnly;
|
|
38571
|
+
|
|
38572
|
+
return React__default.createElement(Chip$1, _extends$1({
|
|
38501
38573
|
avatar: hideAvatar ? null : data.avatar ? data.avatar : React__default.createElement(Avatar$1, { className: classes.avatar }),
|
|
38502
38574
|
label: children,
|
|
38503
38575
|
className: clsx(classes.chip, defineProperty$1({}, classes.chipFocused, props.isFocused)),
|
|
38504
|
-
|
|
38505
|
-
|
|
38506
|
-
|
|
38576
|
+
classes: {
|
|
38577
|
+
deleteIcon: readOnly ? classes.deleteIconReadOnly : '',
|
|
38578
|
+
root: readOnly ? classes.rootReadOnly : '',
|
|
38579
|
+
label: readOnly ? classes.labelReadOnly : ''
|
|
38580
|
+
},
|
|
38581
|
+
onDelete: removeProps.onClick
|
|
38582
|
+
}, readOnly ? {} : {
|
|
38583
|
+
deleteIcon: React__default.createElement(props.components.Remove, removeProps),
|
|
38584
|
+
variant: 'outlined'
|
|
38585
|
+
}));
|
|
38507
38586
|
}
|
|
38508
38587
|
|
|
38509
38588
|
MultiValue$1.propTypes = {
|
|
@@ -40102,6 +40181,7 @@ var useStyles$8 = makeStyles$1(function (theme) {
|
|
|
40102
40181
|
return {
|
|
40103
40182
|
root: {
|
|
40104
40183
|
marginRight: theme.spacing(-1),
|
|
40184
|
+
marginTop: theme.spacing(-0.5),
|
|
40105
40185
|
paddingLeft: theme.spacing(1.5),
|
|
40106
40186
|
order: 999,
|
|
40107
40187
|
display: 'inline-flex',
|
|
@@ -40197,6 +40277,15 @@ var styles$U = {
|
|
|
40197
40277
|
pointerEvents: 'auto',
|
|
40198
40278
|
display: 'flex',
|
|
40199
40279
|
alignItems: 'center'
|
|
40280
|
+
},
|
|
40281
|
+
inputHover: {
|
|
40282
|
+
'&:hover $notchedOutline': {
|
|
40283
|
+
borderColor: 'transparent'
|
|
40284
|
+
}
|
|
40285
|
+
},
|
|
40286
|
+
notchedOutline: {
|
|
40287
|
+
borderRadius: 2,
|
|
40288
|
+
borderColor: 'transparent'
|
|
40200
40289
|
}
|
|
40201
40290
|
};
|
|
40202
40291
|
|
|
@@ -40209,6 +40298,7 @@ function Control$1(_ref) {
|
|
|
40209
40298
|
TextFieldProps = _ref$selectProps.TextFieldProps,
|
|
40210
40299
|
InputLabelProps = _ref.InputLabelProps;
|
|
40211
40300
|
|
|
40301
|
+
var readOnly = TextFieldProps && TextFieldProps.readOnly;
|
|
40212
40302
|
return React__default.createElement(TextField$1, _extends$1({
|
|
40213
40303
|
fullWidth: true,
|
|
40214
40304
|
variant: 'outlined',
|
|
@@ -40217,8 +40307,14 @@ function Control$1(_ref) {
|
|
|
40217
40307
|
inputProps: _extends$1({
|
|
40218
40308
|
className: classes.input,
|
|
40219
40309
|
ref: innerRef,
|
|
40220
|
-
children: children
|
|
40221
|
-
|
|
40310
|
+
children: children,
|
|
40311
|
+
readOnly: Boolean(readOnly),
|
|
40312
|
+
disabled: Boolean(readOnly)
|
|
40313
|
+
}, innerProps),
|
|
40314
|
+
classes: {
|
|
40315
|
+
root: '' + (readOnly && classes.inputHover),
|
|
40316
|
+
notchedOutline: '' + (!readOnly ? '' : classes.notchedOutline)
|
|
40317
|
+
}
|
|
40222
40318
|
},
|
|
40223
40319
|
InputLabelProps: _extends$1({}, InputLabelProps, {
|
|
40224
40320
|
style: _extends$1({}, styles$U.labelRoot)
|
|
@@ -40280,13 +40376,32 @@ NoOptionsMessage$1.propTypes = {
|
|
|
40280
40376
|
innerProps: PropTypes__default.object
|
|
40281
40377
|
};
|
|
40282
40378
|
|
|
40379
|
+
var useStyles$a = makeStyles$1(function (theme) {
|
|
40380
|
+
return {
|
|
40381
|
+
rootReadOnly: {},
|
|
40382
|
+
lineByLineOption: {
|
|
40383
|
+
flexDirection: 'column!important',
|
|
40384
|
+
alignItems: 'flex-start!important'
|
|
40385
|
+
}
|
|
40386
|
+
};
|
|
40387
|
+
});
|
|
40388
|
+
|
|
40283
40389
|
function ValueContainer$1(_ref) {
|
|
40284
|
-
var
|
|
40390
|
+
var isMulti = _ref.isMulti,
|
|
40391
|
+
selectProps = _ref.selectProps,
|
|
40285
40392
|
children = _ref.children;
|
|
40286
40393
|
|
|
40394
|
+
var classes = useStyles$a();
|
|
40395
|
+
|
|
40396
|
+
var lineByLineOption = selectProps && selectProps.TextFieldProps && selectProps.TextFieldProps.lineByLineOption;
|
|
40397
|
+
|
|
40398
|
+
var readOnly = selectProps && selectProps.TextFieldProps && selectProps.TextFieldProps.readOnly;
|
|
40399
|
+
|
|
40287
40400
|
return React__default.createElement(
|
|
40288
40401
|
'div',
|
|
40289
|
-
{
|
|
40402
|
+
{
|
|
40403
|
+
className: (lineByLineOption && isMulti ? classes.lineByLineOption : '') + ' ' + (readOnly ? classes.rootReadOnly : '') + ' ' + selectProps.classes.valueContainer
|
|
40404
|
+
},
|
|
40290
40405
|
children
|
|
40291
40406
|
);
|
|
40292
40407
|
}
|
|
@@ -40365,7 +40480,7 @@ Option$1.propTypes = {
|
|
|
40365
40480
|
isSelected: PropTypes__default.bool
|
|
40366
40481
|
};
|
|
40367
40482
|
|
|
40368
|
-
var useStyles$
|
|
40483
|
+
var useStyles$b = makeStyles$1(function (theme) {
|
|
40369
40484
|
return {
|
|
40370
40485
|
input: {
|
|
40371
40486
|
display: 'flex',
|
|
@@ -40404,6 +40519,15 @@ var useStyles$a = makeStyles$1(function (theme) {
|
|
|
40404
40519
|
pointerEvents: 'auto',
|
|
40405
40520
|
display: 'flex',
|
|
40406
40521
|
alignItems: 'center'
|
|
40522
|
+
},
|
|
40523
|
+
inputHover: {
|
|
40524
|
+
'&:hover $notchedOutline': {
|
|
40525
|
+
borderColor: 'transparent'
|
|
40526
|
+
}
|
|
40527
|
+
},
|
|
40528
|
+
notchedOutline: {
|
|
40529
|
+
borderRadius: 2,
|
|
40530
|
+
borderColor: 'transparent'
|
|
40407
40531
|
}
|
|
40408
40532
|
};
|
|
40409
40533
|
});
|
|
@@ -40433,7 +40557,7 @@ var defaultComponents$1 = {
|
|
|
40433
40557
|
*
|
|
40434
40558
|
*/
|
|
40435
40559
|
};function USelectPicker(props) {
|
|
40436
|
-
var classes = useStyles$
|
|
40560
|
+
var classes = useStyles$b(props);
|
|
40437
40561
|
var theme = useTheme$1();
|
|
40438
40562
|
var label = props.label,
|
|
40439
40563
|
variant = props.variant,
|
|
@@ -40445,7 +40569,14 @@ var defaultComponents$1 = {
|
|
|
40445
40569
|
InputLabelProps = props.InputLabelProps,
|
|
40446
40570
|
InputLabelHelpProps = props.InputLabelHelpProps,
|
|
40447
40571
|
hideAvatar = props.hideAvatar,
|
|
40448
|
-
|
|
40572
|
+
readOnly = props.readOnly,
|
|
40573
|
+
lineByLineOption = props.lineByLineOption,
|
|
40574
|
+
isClearable = props.isClearable,
|
|
40575
|
+
isSearchable = props.isSearchable,
|
|
40576
|
+
isDisabled = props.isDisabled,
|
|
40577
|
+
menuIsOpen = props.menuIsOpen,
|
|
40578
|
+
placeholder = props.placeholder,
|
|
40579
|
+
others = objectWithoutProperties(props, ['label', 'variant', 'TextFieldProps', 'showNoOptionsWithEmptyTextField', 'onInputChange', 'components', 'showLabelHelp', 'InputLabelProps', 'InputLabelHelpProps', 'hideAvatar', 'readOnly', 'lineByLineOption', 'isClearable', 'isSearchable', 'isDisabled', 'menuIsOpen', 'placeholder']);
|
|
40449
40580
|
|
|
40450
40581
|
var _useState = React.useState(true),
|
|
40451
40582
|
_useState2 = slicedToArray(_useState, 2),
|
|
@@ -40476,6 +40607,8 @@ var defaultComponents$1 = {
|
|
|
40476
40607
|
shrink: true,
|
|
40477
40608
|
classes: { root: classes.labelRoot }
|
|
40478
40609
|
}, InputLabelProps),
|
|
40610
|
+
readOnly: readOnly,
|
|
40611
|
+
lineByLineOption: lineByLineOption,
|
|
40479
40612
|
hideAvatar: hideAvatar,
|
|
40480
40613
|
showLabelHelp: showLabelHelp,
|
|
40481
40614
|
InputLabelHelpProps: InputLabelHelpProps
|
|
@@ -40489,18 +40622,30 @@ var defaultComponents$1 = {
|
|
|
40489
40622
|
onInputChange && onInputChange(value);
|
|
40490
40623
|
};
|
|
40491
40624
|
|
|
40625
|
+
var extraComponents = readOnly ? {
|
|
40626
|
+
DropdownIndicator: function DropdownIndicator() {
|
|
40627
|
+
return null;
|
|
40628
|
+
}
|
|
40629
|
+
} : {};
|
|
40630
|
+
|
|
40631
|
+
var selectPlaceholder = readOnly ? '' : placeholder;
|
|
40632
|
+
|
|
40492
40633
|
return React__default.createElement(index$1, _extends$1({
|
|
40493
40634
|
classes: classes,
|
|
40494
|
-
isClearable: true,
|
|
40495
40635
|
styles: selectStyles,
|
|
40496
|
-
components: _extends$1({}, defaultComponents$1, components),
|
|
40636
|
+
components: _extends$1({}, defaultComponents$1, components, extraComponents),
|
|
40497
40637
|
TextFieldProps: mergedTextFieldProps,
|
|
40498
40638
|
onInputChange: function onInputChange(value) {
|
|
40499
40639
|
return handleInputChange(value);
|
|
40500
40640
|
},
|
|
40501
40641
|
noOptionsMessage: function noOptionsMessage() {
|
|
40502
40642
|
return showNoOptions ? NoOptionsMessage$1 : null;
|
|
40503
|
-
}
|
|
40643
|
+
},
|
|
40644
|
+
isClearable: readOnly ? false : isClearable,
|
|
40645
|
+
isSearchable: readOnly ? false : isSearchable,
|
|
40646
|
+
isDisabled: readOnly ? true : isDisabled,
|
|
40647
|
+
menuIsOpen: readOnly ? false : menuIsOpen,
|
|
40648
|
+
placeholder: selectPlaceholder
|
|
40504
40649
|
}, others));
|
|
40505
40650
|
}
|
|
40506
40651
|
|
|
@@ -40560,7 +40705,19 @@ USelectPicker.propTypes = {
|
|
|
40560
40705
|
/** Props applied to the input label help element. E.g. InputLabelHelpProps={{type:'link', label:'Help', link:'unicef.github.io', icon, tooltipTitle: 'Tooltip title', tooltipPlacement: 'bottom}} */
|
|
40561
40706
|
InputLabelHelpProps: PropTypes__default.object,
|
|
40562
40707
|
/** Hide people avatar */
|
|
40563
|
-
hideAvatar: PropTypes__default.bool
|
|
40708
|
+
hideAvatar: PropTypes__default.bool,
|
|
40709
|
+
/** Is the read only field or not */
|
|
40710
|
+
readOnly: PropTypes__default.bool,
|
|
40711
|
+
/** Whether the selected options displayed in the new line or not in multiple selected options */
|
|
40712
|
+
lineByLineOption: PropTypes__default.bool,
|
|
40713
|
+
/** Is the select value clearable */
|
|
40714
|
+
isClearable: PropTypes__default.bool,
|
|
40715
|
+
/** Whether to enable search functionality */
|
|
40716
|
+
isSearchable: PropTypes__default.bool,
|
|
40717
|
+
/** Whether the input is disabled */
|
|
40718
|
+
isDisabled: PropTypes__default.bool,
|
|
40719
|
+
/** Whether the menu is open */
|
|
40720
|
+
menuIsOpen: PropTypes__default.bool
|
|
40564
40721
|
};
|
|
40565
40722
|
|
|
40566
40723
|
USelectPicker.defaultProps = {
|
|
@@ -40570,7 +40727,13 @@ USelectPicker.defaultProps = {
|
|
|
40570
40727
|
showNoOptionsWithEmptyTextField: true,
|
|
40571
40728
|
showLabelHelp: false,
|
|
40572
40729
|
InputLabelHelpProps: {},
|
|
40573
|
-
hideAvatar: true
|
|
40730
|
+
hideAvatar: true,
|
|
40731
|
+
readOnly: false,
|
|
40732
|
+
isClearable: undefined,
|
|
40733
|
+
isSearchable: true,
|
|
40734
|
+
isDisabled: false,
|
|
40735
|
+
menuIsOpen: undefined,
|
|
40736
|
+
lineByLineOption: false
|
|
40574
40737
|
};
|
|
40575
40738
|
|
|
40576
40739
|
/**
|
|
@@ -46481,7 +46644,7 @@ var DIALOG_WIDTH = 310;
|
|
|
46481
46644
|
var DIALOG_WIDTH_WIDER = 325;
|
|
46482
46645
|
var VIEW_HEIGHT = 305;
|
|
46483
46646
|
|
|
46484
|
-
var useStyles$
|
|
46647
|
+
var useStyles$c = makeStyles$1(function (theme) {
|
|
46485
46648
|
return {
|
|
46486
46649
|
staticWrapperRoot: {
|
|
46487
46650
|
overflow: 'hidden',
|
|
@@ -46496,7 +46659,7 @@ var useStyles$b = makeStyles$1(function (theme) {
|
|
|
46496
46659
|
});
|
|
46497
46660
|
var StaticWrapper = function StaticWrapper(_ref) {
|
|
46498
46661
|
var children = _ref.children;
|
|
46499
|
-
var classes = useStyles$
|
|
46662
|
+
var classes = useStyles$c();
|
|
46500
46663
|
return React.createElement("div", {
|
|
46501
46664
|
className: classes.staticWrapperRoot,
|
|
46502
46665
|
children: children
|
|
@@ -47010,7 +47173,7 @@ function _inherits$2(subClass, superClass) {
|
|
|
47010
47173
|
if (superClass) _setPrototypeOf$2(subClass, superClass);
|
|
47011
47174
|
}
|
|
47012
47175
|
|
|
47013
|
-
var useStyles$
|
|
47176
|
+
var useStyles$d = makeStyles$1(function (theme) {
|
|
47014
47177
|
return {
|
|
47015
47178
|
day: {
|
|
47016
47179
|
width: 36,
|
|
@@ -47053,7 +47216,7 @@ var Day = function Day(_ref) {
|
|
|
47053
47216
|
selected = _ref.selected,
|
|
47054
47217
|
other = _objectWithoutProperties$1(_ref, ["children", "disabled", "hidden", "current", "selected"]);
|
|
47055
47218
|
|
|
47056
|
-
var classes = useStyles$
|
|
47219
|
+
var classes = useStyles$d();
|
|
47057
47220
|
var className = clsx(classes.day, hidden && classes.hidden, current && classes.current, selected && classes.daySelected, disabled && classes.dayDisabled);
|
|
47058
47221
|
return React.createElement(IconButton$1, _extends$4({
|
|
47059
47222
|
className: className,
|
|
@@ -48551,7 +48714,7 @@ var DayWrapper = function DayWrapper(_ref) {
|
|
|
48551
48714
|
};
|
|
48552
48715
|
|
|
48553
48716
|
var animationDuration = 350;
|
|
48554
|
-
var useStyles$
|
|
48717
|
+
var useStyles$e = makeStyles$1(function (theme) {
|
|
48555
48718
|
var slideTransition = theme.transitions.create('transform', {
|
|
48556
48719
|
duration: animationDuration,
|
|
48557
48720
|
easing: 'cubic-bezier(0.35, 0.8, 0.4, 1)'
|
|
@@ -48603,7 +48766,7 @@ var SlideTransition = function SlideTransition(_ref) {
|
|
|
48603
48766
|
slideDirection = _ref.slideDirection,
|
|
48604
48767
|
_ref$className = _ref.className,
|
|
48605
48768
|
className = _ref$className === void 0 ? null : _ref$className;
|
|
48606
|
-
var classes = useStyles$
|
|
48769
|
+
var classes = useStyles$e();
|
|
48607
48770
|
var transitionClasses = {
|
|
48608
48771
|
exit: classes.slideExit,
|
|
48609
48772
|
enterActive: classes.slideEnterActive,
|
|
@@ -49473,7 +49636,7 @@ var positions$1 = {
|
|
|
49473
49636
|
22: [-64, 77],
|
|
49474
49637
|
23: [-37, 50]
|
|
49475
49638
|
};
|
|
49476
|
-
var useStyles$
|
|
49639
|
+
var useStyles$f = makeStyles$1(function (theme) {
|
|
49477
49640
|
var size = theme.spacing(4);
|
|
49478
49641
|
return {
|
|
49479
49642
|
clockNumber: {
|
|
@@ -49500,7 +49663,7 @@ var ClockNumber = function ClockNumber(_ref) {
|
|
|
49500
49663
|
label = _ref.label,
|
|
49501
49664
|
index = _ref.index,
|
|
49502
49665
|
isInner = _ref.isInner;
|
|
49503
|
-
var classes = useStyles$
|
|
49666
|
+
var classes = useStyles$f();
|
|
49504
49667
|
var className = clsx(classes.clockNumber, selected && classes.clockNumberSelected);
|
|
49505
49668
|
var transformStyle = React.useMemo(function () {
|
|
49506
49669
|
var position = positions$1[index];
|
|
@@ -49755,7 +49918,7 @@ function useViews(views, openTo, onChange) {
|
|
|
49755
49918
|
};
|
|
49756
49919
|
}
|
|
49757
49920
|
|
|
49758
|
-
var useStyles$
|
|
49921
|
+
var useStyles$g = makeStyles$1(function (theme) {
|
|
49759
49922
|
return {
|
|
49760
49923
|
root: {
|
|
49761
49924
|
height: 40,
|
|
@@ -49790,7 +49953,7 @@ var Year = function Year(_ref) {
|
|
|
49790
49953
|
children = _ref.children,
|
|
49791
49954
|
other = _objectWithoutProperties$1(_ref, ["onSelect", "forwardedRef", "value", "selected", "disabled", "children"]);
|
|
49792
49955
|
|
|
49793
|
-
var classes = useStyles$
|
|
49956
|
+
var classes = useStyles$g();
|
|
49794
49957
|
var handleClick = React.useCallback(function () {
|
|
49795
49958
|
return onSelect(value);
|
|
49796
49959
|
}, [onSelect, value]);
|
|
@@ -50122,7 +50285,7 @@ Picker.defaultProps = _objectSpread$1$1({}, datePickerDefaultProps, {
|
|
|
50122
50285
|
views: Object.keys(viewsMap)
|
|
50123
50286
|
});
|
|
50124
50287
|
|
|
50125
|
-
var useStyles$
|
|
50288
|
+
var useStyles$h = makeStyles$1(function (theme) {
|
|
50126
50289
|
var textColor = theme.palette.type === 'light' ? theme.palette.primary.contrastText : theme.palette.getContrastText(theme.palette.background["default"]);
|
|
50127
50290
|
return {
|
|
50128
50291
|
toolbarTxt: {
|
|
@@ -50143,7 +50306,7 @@ var ToolbarText = function ToolbarText(_ref) {
|
|
|
50143
50306
|
className = _ref$className === void 0 ? null : _ref$className,
|
|
50144
50307
|
other = _objectWithoutProperties$1(_ref, ["selected", "label", "className"]);
|
|
50145
50308
|
|
|
50146
|
-
var classes = useStyles$
|
|
50309
|
+
var classes = useStyles$h();
|
|
50147
50310
|
return React.createElement(Typography$1, _extends$4({
|
|
50148
50311
|
children: label,
|
|
50149
50312
|
className: clsx(classes.toolbarTxt, className, selected && classes.toolbarBtnSelected)
|
|
@@ -50767,7 +50930,7 @@ function makePickerWithState(_ref) {
|
|
|
50767
50930
|
return PickerWithState;
|
|
50768
50931
|
}
|
|
50769
50932
|
|
|
50770
|
-
var useStyles$
|
|
50933
|
+
var useStyles$i = makeStyles$1({
|
|
50771
50934
|
toolbar: {
|
|
50772
50935
|
flexDirection: 'column',
|
|
50773
50936
|
alignItems: 'flex-start'
|
|
@@ -50788,7 +50951,7 @@ var DatePickerToolbar = function DatePickerToolbar(_ref) {
|
|
|
50788
50951
|
isLandscape = _ref.isLandscape,
|
|
50789
50952
|
openView = _ref.openView;
|
|
50790
50953
|
var utils = useUtils();
|
|
50791
|
-
var classes = useStyles$
|
|
50954
|
+
var classes = useStyles$i();
|
|
50792
50955
|
var isYearOnly = React.useMemo(function () {
|
|
50793
50956
|
return isYearOnlyView(views);
|
|
50794
50957
|
}, [views]);
|
|
@@ -50857,7 +51020,7 @@ var KeyboardDatePicker = makePickerWithState({
|
|
|
50857
51020
|
DatePicker.defaultProps = defaultProps$5;
|
|
50858
51021
|
KeyboardDatePicker.defaultProps = defaultProps$5;
|
|
50859
51022
|
|
|
50860
|
-
var useStyles$
|
|
51023
|
+
var useStyles$j = makeStyles$1({
|
|
50861
51024
|
toolbarLandscape: {
|
|
50862
51025
|
flexWrap: 'wrap'
|
|
50863
51026
|
},
|
|
@@ -50923,7 +51086,7 @@ var TimePickerToolbar = function TimePickerToolbar(_ref) {
|
|
|
50923
51086
|
setOpenView = _ref.setOpenView;
|
|
50924
51087
|
var utils = useUtils();
|
|
50925
51088
|
var theme = useTheme$1();
|
|
50926
|
-
var classes = useStyles$
|
|
51089
|
+
var classes = useStyles$j();
|
|
50927
51090
|
|
|
50928
51091
|
var _useMeridiemMode = useMeridiemMode(date, ampm, onChange),
|
|
50929
51092
|
meridiemMode = _useMeridiemMode.meridiemMode,
|
|
@@ -51068,7 +51231,7 @@ var tabIndexToView = function tabIndexToView(tab) {
|
|
|
51068
51231
|
return 'hours';
|
|
51069
51232
|
};
|
|
51070
51233
|
|
|
51071
|
-
var useStyles$
|
|
51234
|
+
var useStyles$k = makeStyles$1(function (theme) {
|
|
51072
51235
|
// prettier-ignore
|
|
51073
51236
|
var tabsBackground = theme.palette.type === 'light' ? theme.palette.primary.main : theme.palette.background["default"];
|
|
51074
51237
|
return {
|
|
@@ -51085,7 +51248,7 @@ var DateTimePickerTabs = function DateTimePickerTabs(_ref) {
|
|
|
51085
51248
|
onChange = _ref.onChange,
|
|
51086
51249
|
dateRangeIcon = _ref.dateRangeIcon,
|
|
51087
51250
|
timeIcon = _ref.timeIcon;
|
|
51088
|
-
var classes = useStyles$
|
|
51251
|
+
var classes = useStyles$k();
|
|
51089
51252
|
var theme = useTheme$1();
|
|
51090
51253
|
var indicatorColor = theme.palette.type === 'light' ? 'secondary' : 'primary';
|
|
51091
51254
|
|
|
@@ -52803,7 +52966,10 @@ var defaultErrorMessages = {
|
|
|
52803
52966
|
allowedExtensions: 'File type not allowed',
|
|
52804
52967
|
isUrl: 'It should start with http:// or https://',
|
|
52805
52968
|
isLatitude: 'It should be between -90 and 90',
|
|
52806
|
-
isLongitude: 'It should be between -180 and 180'
|
|
52969
|
+
isLongitude: 'It should be between -180 and 180',
|
|
52970
|
+
isPhone: 'Only numbers,(,),-,.,# and (ext) are allowed',
|
|
52971
|
+
isSafeText: 'HTML not allowed',
|
|
52972
|
+
isAlphanumeric: 'Only letters and numbers are allowed'
|
|
52807
52973
|
};
|
|
52808
52974
|
|
|
52809
52975
|
/* eslint-disable */
|
|
@@ -52847,6 +53013,9 @@ var styles$13 = {
|
|
|
52847
53013
|
* * isString
|
|
52848
53014
|
* * maxFileSize
|
|
52849
53015
|
* * allowedExtensions
|
|
53016
|
+
* * isPhone
|
|
53017
|
+
* * isAlphanumeric
|
|
53018
|
+
* * isSafeText
|
|
52850
53019
|
*
|
|
52851
53020
|
* It accepts all the props of Material-ui [TextField](https://material-ui.com/api/text-field/#textfield-api)
|
|
52852
53021
|
*/
|
|
@@ -53055,7 +53224,7 @@ UValidatorComponent.propTypes = {
|
|
|
53055
53224
|
/** Allow to use required validator in any validation trigger, not only form submit. */
|
|
53056
53225
|
withRequiredValidator: PropTypes__default.bool,
|
|
53057
53226
|
/** you must provide this prop, it will be used only for validation. */
|
|
53058
|
-
value: PropTypes__default.
|
|
53227
|
+
value: PropTypes__default.any.isRequired
|
|
53059
53228
|
};
|
|
53060
53229
|
|
|
53061
53230
|
/**
|
|
@@ -53076,11 +53245,7 @@ function ForwardRefForm(props, ref) {
|
|
|
53076
53245
|
};
|
|
53077
53246
|
|
|
53078
53247
|
lib_2.addValidationRule('isUrl', function (value) {
|
|
53079
|
-
|
|
53080
|
-
if (value != '' && !urlRegexp.test(value)) {
|
|
53081
|
-
return false;
|
|
53082
|
-
}
|
|
53083
|
-
return true;
|
|
53248
|
+
return isUrlText(value);
|
|
53084
53249
|
});
|
|
53085
53250
|
|
|
53086
53251
|
lib_2.addValidationRule('isLatitude', function (value) {
|
|
@@ -53096,6 +53261,18 @@ function ForwardRefForm(props, ref) {
|
|
|
53096
53261
|
return true;
|
|
53097
53262
|
});
|
|
53098
53263
|
|
|
53264
|
+
lib_2.addValidationRule('isPhone', function (value) {
|
|
53265
|
+
return isPhoneNumberText(value);
|
|
53266
|
+
});
|
|
53267
|
+
|
|
53268
|
+
lib_2.addValidationRule('isSafeText', function (value) {
|
|
53269
|
+
return isSafeText(value);
|
|
53270
|
+
});
|
|
53271
|
+
|
|
53272
|
+
lib_2.addValidationRule('isAlphanumeric', function (value) {
|
|
53273
|
+
return isAlphanumericText(value);
|
|
53274
|
+
});
|
|
53275
|
+
|
|
53099
53276
|
return React__default.createElement(lib_2, _extends$1({}, props, { ref: ref }));
|
|
53100
53277
|
}
|
|
53101
53278
|
|
|
@@ -53119,7 +53296,7 @@ UValidatorForm.defaultProps = {
|
|
|
53119
53296
|
onSubmit: function onSubmit() {}
|
|
53120
53297
|
};
|
|
53121
53298
|
|
|
53122
|
-
var useStyles$
|
|
53299
|
+
var useStyles$l = makeStyles$1(function (theme) {
|
|
53123
53300
|
return {
|
|
53124
53301
|
textField: {
|
|
53125
53302
|
marginTop: theme.spacing(0.25),
|
|
@@ -53166,7 +53343,7 @@ var useStyles$k = makeStyles$1(function (theme) {
|
|
|
53166
53343
|
*
|
|
53167
53344
|
*/
|
|
53168
53345
|
function ActiveFormTextField(props) {
|
|
53169
|
-
var classes = useStyles$
|
|
53346
|
+
var classes = useStyles$l(props);
|
|
53170
53347
|
var typographyVariant = props.typographyVariant,
|
|
53171
53348
|
className = props.className,
|
|
53172
53349
|
variant = props.variant,
|
|
@@ -53245,7 +53422,7 @@ ActiveFormTextField.defaultProps = {
|
|
|
53245
53422
|
|
|
53246
53423
|
var _ActiveFormSelect$pro;
|
|
53247
53424
|
|
|
53248
|
-
var useStyles$
|
|
53425
|
+
var useStyles$m = makeStyles$1(function (theme) {
|
|
53249
53426
|
return {
|
|
53250
53427
|
textField: {
|
|
53251
53428
|
marginTop: theme.spacing(0.25),
|
|
@@ -53286,7 +53463,7 @@ var useStyles$l = makeStyles$1(function (theme) {
|
|
|
53286
53463
|
*
|
|
53287
53464
|
*/
|
|
53288
53465
|
function ActiveFormSelect(props) {
|
|
53289
|
-
var classes = useStyles$
|
|
53466
|
+
var classes = useStyles$m(props);
|
|
53290
53467
|
var select = props.select,
|
|
53291
53468
|
typographyVariant = props.typographyVariant,
|
|
53292
53469
|
className = props.className,
|
|
@@ -53408,6 +53585,71 @@ UPositiveInteger.propTypes = {
|
|
|
53408
53585
|
withRequiredValidator: PropTypes__default.bool
|
|
53409
53586
|
};
|
|
53410
53587
|
|
|
53588
|
+
var useStyles$n = makeStyles$1(function (theme) {
|
|
53589
|
+
return {
|
|
53590
|
+
startAdornmentContainer: {
|
|
53591
|
+
marginRight: theme.spacing(0.5)
|
|
53592
|
+
}
|
|
53593
|
+
};
|
|
53594
|
+
});
|
|
53595
|
+
|
|
53596
|
+
function UCurrencyField(_ref) {
|
|
53597
|
+
var inputPrefix = _ref.inputPrefix,
|
|
53598
|
+
decimalScale = _ref.decimalScale,
|
|
53599
|
+
InputProps = _ref.InputProps,
|
|
53600
|
+
inputProps = _ref.inputProps,
|
|
53601
|
+
props = objectWithoutProperties(_ref, ['inputPrefix', 'decimalScale', 'InputProps', 'inputProps']);
|
|
53602
|
+
|
|
53603
|
+
var classes = useStyles$n(props);
|
|
53604
|
+
return React__default.createElement(UPositiveInteger, _extends$1({
|
|
53605
|
+
variant: 'outlined',
|
|
53606
|
+
InputProps: _extends$1({
|
|
53607
|
+
startAdornment: React__default.createElement(
|
|
53608
|
+
'span',
|
|
53609
|
+
{ className: classes.startAdornmentContainer },
|
|
53610
|
+
inputPrefix
|
|
53611
|
+
)
|
|
53612
|
+
}, InputProps),
|
|
53613
|
+
inputProps: _extends$1({ decimalScale: decimalScale }, inputProps)
|
|
53614
|
+
}, props));
|
|
53615
|
+
}
|
|
53616
|
+
|
|
53617
|
+
UCurrencyField.propTypes = {
|
|
53618
|
+
/** label */
|
|
53619
|
+
label: PropTypes__default.string,
|
|
53620
|
+
/** placeholder text*/
|
|
53621
|
+
placeholder: PropTypes__default.string,
|
|
53622
|
+
/**
|
|
53623
|
+
* Array of validators.See list of default validators above.
|
|
53624
|
+
*
|
|
53625
|
+
* Ex: `validators={['required', 'isEmail']}`
|
|
53626
|
+
*/
|
|
53627
|
+
validators: PropTypes__default.array,
|
|
53628
|
+
/** Attributes applied to the input element. */
|
|
53629
|
+
inputProps: PropTypes__default.object,
|
|
53630
|
+
/** Props applied to the Input element. */
|
|
53631
|
+
InputProps: PropTypes__default.object,
|
|
53632
|
+
/** Prefix string for the input. */
|
|
53633
|
+
inputPrefix: PropTypes__default.string,
|
|
53634
|
+
/** Decimal digit number to be used as default. */
|
|
53635
|
+
decimalScale: PropTypes__default.number,
|
|
53636
|
+
/**
|
|
53637
|
+
* customErrorMessages is an object with key as validator and value as customised error message.
|
|
53638
|
+
*
|
|
53639
|
+
* Ex: `customErrorMessages={{required: 'This field is required'}`
|
|
53640
|
+
*/
|
|
53641
|
+
customErrorMessages: PropTypes__default.object,
|
|
53642
|
+
/** To make the content readOnly */
|
|
53643
|
+
readOnly: PropTypes__default.bool,
|
|
53644
|
+
/** Name of input. */
|
|
53645
|
+
name: PropTypes__default.string
|
|
53646
|
+
};
|
|
53647
|
+
|
|
53648
|
+
UCurrencyField.defaultProps = {
|
|
53649
|
+
inputPrefix: '$',
|
|
53650
|
+
decimalScale: 2
|
|
53651
|
+
};
|
|
53652
|
+
|
|
53411
53653
|
function ActiveFormPositiveInteger(_ref) {
|
|
53412
53654
|
var InputProps = _ref.InputProps,
|
|
53413
53655
|
props = objectWithoutProperties(_ref, ['InputProps']);
|
|
@@ -53456,6 +53698,81 @@ ActiveFormPositiveInteger.propTypes = {
|
|
|
53456
53698
|
withRequiredValidator: PropTypes__default.bool
|
|
53457
53699
|
};
|
|
53458
53700
|
|
|
53701
|
+
var useStyles$o = makeStyles$1(function (theme) {
|
|
53702
|
+
return {
|
|
53703
|
+
startAdornmentContainer: {
|
|
53704
|
+
marginRight: theme.spacing(0.5)
|
|
53705
|
+
}
|
|
53706
|
+
};
|
|
53707
|
+
});
|
|
53708
|
+
|
|
53709
|
+
function ActiveCurrencyField(_ref) {
|
|
53710
|
+
var inputPrefix = _ref.inputPrefix,
|
|
53711
|
+
decimalScale = _ref.decimalScale,
|
|
53712
|
+
InputProps = _ref.InputProps,
|
|
53713
|
+
inputProps = _ref.inputProps,
|
|
53714
|
+
props = objectWithoutProperties(_ref, ['inputPrefix', 'decimalScale', 'InputProps', 'inputProps']);
|
|
53715
|
+
|
|
53716
|
+
var classes = useStyles$o(props);
|
|
53717
|
+
return React__default.createElement(ActiveFormPositiveInteger, _extends$1({
|
|
53718
|
+
variant: 'outlined',
|
|
53719
|
+
InputProps: _extends$1({
|
|
53720
|
+
startAdornment: React__default.createElement(
|
|
53721
|
+
'span',
|
|
53722
|
+
{ className: classes.startAdornmentContainer },
|
|
53723
|
+
inputPrefix
|
|
53724
|
+
)
|
|
53725
|
+
}, InputProps),
|
|
53726
|
+
inputProps: _extends$1({ decimalScale: decimalScale }, inputProps)
|
|
53727
|
+
}, props));
|
|
53728
|
+
}
|
|
53729
|
+
|
|
53730
|
+
ActiveCurrencyField.propTypes = {
|
|
53731
|
+
/** label */
|
|
53732
|
+
label: PropTypes__default.string,
|
|
53733
|
+
/** placeholder text*/
|
|
53734
|
+
placeholder: PropTypes__default.string,
|
|
53735
|
+
/** Typography for text inside the input (Ex: h1, div, etc.) */
|
|
53736
|
+
typographyVariant: PropTypes__default.string,
|
|
53737
|
+
/** Input has some default padding already, to make changes to it pass padding like `inputPadding='0px 2px'` */
|
|
53738
|
+
inputPadding: PropTypes__default.string,
|
|
53739
|
+
/** To hide or display the textfied border*/
|
|
53740
|
+
showBorder: PropTypes__default.bool,
|
|
53741
|
+
/**
|
|
53742
|
+
* Array of validators.See list of default validators above.
|
|
53743
|
+
*
|
|
53744
|
+
* Ex: `validators={['required', 'isEmail']}`
|
|
53745
|
+
*/
|
|
53746
|
+
validators: PropTypes__default.array,
|
|
53747
|
+
/** Attributes applied to the input element. */
|
|
53748
|
+
inputProps: PropTypes__default.object,
|
|
53749
|
+
/** Props applied to the Input element. */
|
|
53750
|
+
InputProps: PropTypes__default.object,
|
|
53751
|
+
/** Prefix string for the input. */
|
|
53752
|
+
inputPrefix: PropTypes__default.string,
|
|
53753
|
+
/** Decimal digit number to be used as default. */
|
|
53754
|
+
decimalScale: PropTypes__default.number,
|
|
53755
|
+
/**
|
|
53756
|
+
* customErrorMessages is an object with key as validator and value as customised error message.
|
|
53757
|
+
*
|
|
53758
|
+
* Ex: `customErrorMessages={{required: 'This field is required'}`
|
|
53759
|
+
*/
|
|
53760
|
+
customErrorMessages: PropTypes__default.object,
|
|
53761
|
+
/** To make the content readOnly */
|
|
53762
|
+
readOnly: PropTypes__default.bool,
|
|
53763
|
+
/** Name of input. */
|
|
53764
|
+
name: PropTypes__default.string,
|
|
53765
|
+
/** It triggers after each validation.It will return true or false. */
|
|
53766
|
+
validatorListener: PropTypes__default.func,
|
|
53767
|
+
/** Allow to use required validator in any validation trigger, not only form submit. */
|
|
53768
|
+
withRequiredValidator: PropTypes__default.bool
|
|
53769
|
+
};
|
|
53770
|
+
|
|
53771
|
+
ActiveCurrencyField.defaultProps = {
|
|
53772
|
+
inputPrefix: '$',
|
|
53773
|
+
decimalScale: 2
|
|
53774
|
+
};
|
|
53775
|
+
|
|
53459
53776
|
var DeleteOutlined = createCommonjsModule(function (module, exports) {
|
|
53460
53777
|
|
|
53461
53778
|
|
|
@@ -53480,7 +53797,7 @@ exports.default = _default;
|
|
|
53480
53797
|
|
|
53481
53798
|
var DeleteOutlinedIcon = unwrapExports(DeleteOutlined);
|
|
53482
53799
|
|
|
53483
|
-
var useStyles$
|
|
53800
|
+
var useStyles$p = makeStyles$1(function (theme) {
|
|
53484
53801
|
return {
|
|
53485
53802
|
menuDelete: {
|
|
53486
53803
|
width: '500px'
|
|
@@ -53500,7 +53817,7 @@ var useStyles$m = makeStyles$1(function (theme) {
|
|
|
53500
53817
|
* It has two varint icon/menu item
|
|
53501
53818
|
*/
|
|
53502
53819
|
function UConfirmationButton(props) {
|
|
53503
|
-
var classes = useStyles$
|
|
53820
|
+
var classes = useStyles$p();
|
|
53504
53821
|
var onConfirm = props.onConfirm,
|
|
53505
53822
|
id = props.id,
|
|
53506
53823
|
buttonText = props.buttonText,
|
|
@@ -53615,7 +53932,7 @@ UConfirmationButton.defaultProps = {
|
|
|
53615
53932
|
/**
|
|
53616
53933
|
* displays radio buttons
|
|
53617
53934
|
*/
|
|
53618
|
-
var useStyles$
|
|
53935
|
+
var useStyles$q = makeStyles$1(function (theme) {
|
|
53619
53936
|
return {
|
|
53620
53937
|
padding: {
|
|
53621
53938
|
paddingLeft: theme.spacing(3)
|
|
@@ -53636,7 +53953,7 @@ function URadioButtons(_ref) {
|
|
|
53636
53953
|
optionLabels = _ref.optionLabels,
|
|
53637
53954
|
optionValues = _ref.optionValues;
|
|
53638
53955
|
|
|
53639
|
-
var classes = useStyles$
|
|
53956
|
+
var classes = useStyles$q();
|
|
53640
53957
|
var handleOnChange = function handleOnChange(event) {
|
|
53641
53958
|
onChange && onChange(event);
|
|
53642
53959
|
};
|
|
@@ -53740,7 +54057,7 @@ exports.default = _default;
|
|
|
53740
54057
|
|
|
53741
54058
|
var DoneIcon = unwrapExports(Done);
|
|
53742
54059
|
|
|
53743
|
-
var useStyles$
|
|
54060
|
+
var useStyles$r = makeStyles$1(function (theme) {
|
|
53744
54061
|
return {
|
|
53745
54062
|
root: {
|
|
53746
54063
|
position: 'fixed',
|
|
@@ -53772,7 +54089,7 @@ function UAsyncBadge(_ref) {
|
|
|
53772
54089
|
visible = _ref.visible,
|
|
53773
54090
|
onReset = _ref.onReset;
|
|
53774
54091
|
|
|
53775
|
-
var classes = useStyles$
|
|
54092
|
+
var classes = useStyles$r();
|
|
53776
54093
|
|
|
53777
54094
|
/** If variant is success or error, after few seconds, it will set asyncResponse visible to false */
|
|
53778
54095
|
React.useEffect(function () {
|
|
@@ -53811,7 +54128,7 @@ UAsyncBadge.propTypes = {
|
|
|
53811
54128
|
onReset: PropTypes__default.func
|
|
53812
54129
|
};
|
|
53813
54130
|
|
|
53814
|
-
var useStyles$
|
|
54131
|
+
var useStyles$s = makeStyles$1(function () {
|
|
53815
54132
|
return {
|
|
53816
54133
|
pageLoadingProgress: {
|
|
53817
54134
|
height: '50vh',
|
|
@@ -53826,7 +54143,7 @@ var useStyles$p = makeStyles$1(function () {
|
|
|
53826
54143
|
* 2. Display text message
|
|
53827
54144
|
*/
|
|
53828
54145
|
function UPageLoadingProgress(props) {
|
|
53829
|
-
var classes = useStyles$
|
|
54146
|
+
var classes = useStyles$s();
|
|
53830
54147
|
var text = props.text;
|
|
53831
54148
|
|
|
53832
54149
|
return React__default.createElement(
|
|
@@ -56209,7 +56526,7 @@ UErrorAlert.defaultProps = {
|
|
|
56209
56526
|
|
|
56210
56527
|
var filter = createFilterOptions();
|
|
56211
56528
|
|
|
56212
|
-
var useStyles$
|
|
56529
|
+
var useStyles$t = makeStyles$1(function (theme) {
|
|
56213
56530
|
return {
|
|
56214
56531
|
controlStyle: {
|
|
56215
56532
|
marginTop: theme.spacing(2),
|
|
@@ -56237,7 +56554,7 @@ function UAutoComplete(_ref) {
|
|
|
56237
56554
|
allowContextSpecific = _ref.allowContextSpecific,
|
|
56238
56555
|
props = _ref.props;
|
|
56239
56556
|
|
|
56240
|
-
var classes = useStyles$
|
|
56557
|
+
var classes = useStyles$t();
|
|
56241
56558
|
//const dispatch = useDispatch()
|
|
56242
56559
|
|
|
56243
56560
|
var _useState = React.useState(value || null),
|
|
@@ -56386,7 +56703,7 @@ UAutoComplete.defaultProps = {
|
|
|
56386
56703
|
|
|
56387
56704
|
/* eslint-disable no-nested-ternary */
|
|
56388
56705
|
|
|
56389
|
-
var useStyles$
|
|
56706
|
+
var useStyles$u = makeStyles$1(function (theme) {
|
|
56390
56707
|
var _ref;
|
|
56391
56708
|
|
|
56392
56709
|
return _ref = {
|
|
@@ -56418,7 +56735,7 @@ var useStyles$r = makeStyles$1(function (theme) {
|
|
|
56418
56735
|
* Breadcrumbs is a component to implement current user path of the application
|
|
56419
56736
|
*/
|
|
56420
56737
|
function UBreadcrumbs(props) {
|
|
56421
|
-
var classes = useStyles$
|
|
56738
|
+
var classes = useStyles$u();
|
|
56422
56739
|
var breadcrumbLinks = props.breadcrumbLinks;
|
|
56423
56740
|
|
|
56424
56741
|
|
|
@@ -56495,7 +56812,7 @@ UInfiniteScroll.propTypes = {
|
|
|
56495
56812
|
onEndOfScroll: PropTypes__default.func
|
|
56496
56813
|
};
|
|
56497
56814
|
|
|
56498
|
-
var useStyles$
|
|
56815
|
+
var useStyles$v = makeStyles$1(function (theme) {
|
|
56499
56816
|
return {
|
|
56500
56817
|
small: {
|
|
56501
56818
|
width: theme.spacing(4),
|
|
@@ -56540,7 +56857,7 @@ function UAvatarImage(_ref) {
|
|
|
56540
56857
|
zIndexValue = _ref.zIndexValue,
|
|
56541
56858
|
loadPhoto = _ref.loadPhoto;
|
|
56542
56859
|
|
|
56543
|
-
var classes = useStyles$
|
|
56860
|
+
var classes = useStyles$v();
|
|
56544
56861
|
|
|
56545
56862
|
var _useState = React.useState(''),
|
|
56546
56863
|
_useState2 = slicedToArray(_useState, 2),
|
|
@@ -56972,7 +57289,7 @@ exports.default = _default;
|
|
|
56972
57289
|
|
|
56973
57290
|
var CloseIcon$1 = unwrapExports(Close);
|
|
56974
57291
|
|
|
56975
|
-
var useStyles$
|
|
57292
|
+
var useStyles$w = makeStyles$1(function (theme) {
|
|
56976
57293
|
return {
|
|
56977
57294
|
root: {
|
|
56978
57295
|
width: '100%',
|
|
@@ -57012,7 +57329,7 @@ function USearchBox(_ref) {
|
|
|
57012
57329
|
searchValue = _useState2[0],
|
|
57013
57330
|
setSearch = _useState2[1];
|
|
57014
57331
|
|
|
57015
|
-
var classes = useStyles$
|
|
57332
|
+
var classes = useStyles$w();
|
|
57016
57333
|
|
|
57017
57334
|
var handleChange = function handleChange(event) {
|
|
57018
57335
|
setSearch(event.target.value);
|
|
@@ -57113,7 +57430,7 @@ var styles$16 = {
|
|
|
57113
57430
|
}
|
|
57114
57431
|
};
|
|
57115
57432
|
|
|
57116
|
-
var useStyles$
|
|
57433
|
+
var useStyles$x = makeStyles$1(function (theme) {
|
|
57117
57434
|
return {
|
|
57118
57435
|
textField: {
|
|
57119
57436
|
marginTop: theme.spacing(0.25),
|
|
@@ -57156,7 +57473,7 @@ var useStyles$u = makeStyles$1(function (theme) {
|
|
|
57156
57473
|
* ActiveKeyboardDatePicker is a customized [Material Ui KeyboardDatePicker]('https://material-ui-pickers.dev/api/KeyboardDatePicker') for more details
|
|
57157
57474
|
*/
|
|
57158
57475
|
function ActiveKeyboardDatePicker(props) {
|
|
57159
|
-
var classes = useStyles$
|
|
57476
|
+
var classes = useStyles$x(props);
|
|
57160
57477
|
var autoOk = props.autoOk,
|
|
57161
57478
|
variant = props.variant,
|
|
57162
57479
|
inputVariant = props.inputVariant,
|
|
@@ -57275,7 +57592,7 @@ var styles$17 = {
|
|
|
57275
57592
|
}
|
|
57276
57593
|
};
|
|
57277
57594
|
|
|
57278
|
-
var useStyles$
|
|
57595
|
+
var useStyles$y = makeStyles$1(function (theme) {
|
|
57279
57596
|
return {
|
|
57280
57597
|
textField: {
|
|
57281
57598
|
marginTop: theme.spacing(0.25),
|
|
@@ -57314,7 +57631,7 @@ var useStyles$v = makeStyles$1(function (theme) {
|
|
|
57314
57631
|
* Please have look at [Material Ui Date Picker]('https://material-ui-pickers.dev/api/DatePicker') for more details
|
|
57315
57632
|
*/
|
|
57316
57633
|
function ActiveDatePicker(props) {
|
|
57317
|
-
var classes = useStyles$
|
|
57634
|
+
var classes = useStyles$y(props);
|
|
57318
57635
|
var autoOk = props.autoOk,
|
|
57319
57636
|
variant = props.variant,
|
|
57320
57637
|
inputVariant = props.inputVariant,
|
|
@@ -57408,7 +57725,7 @@ var styles$18 = {
|
|
|
57408
57725
|
}
|
|
57409
57726
|
};
|
|
57410
57727
|
|
|
57411
|
-
var useStyles$
|
|
57728
|
+
var useStyles$z = makeStyles$1(function (theme) {
|
|
57412
57729
|
return {
|
|
57413
57730
|
textField: {
|
|
57414
57731
|
marginTop: theme.spacing(0.25),
|
|
@@ -57447,7 +57764,7 @@ var useStyles$w = makeStyles$1(function (theme) {
|
|
|
57447
57764
|
* Please have look at [Material Ui TimePicker]('https://material-ui-pickers.dev/api/TimePicker') for more details
|
|
57448
57765
|
*/
|
|
57449
57766
|
function ActiveTimePicker(props) {
|
|
57450
|
-
var classes = useStyles$
|
|
57767
|
+
var classes = useStyles$z(props);
|
|
57451
57768
|
var inputVariant = props.inputVariant,
|
|
57452
57769
|
readOnly = props.readOnly,
|
|
57453
57770
|
interactiveMode = props.interactiveMode,
|
|
@@ -57532,7 +57849,7 @@ var styles$19 = {
|
|
|
57532
57849
|
}
|
|
57533
57850
|
};
|
|
57534
57851
|
|
|
57535
|
-
var useStyles$
|
|
57852
|
+
var useStyles$A = makeStyles$1(function (theme) {
|
|
57536
57853
|
return {
|
|
57537
57854
|
textField: {
|
|
57538
57855
|
marginTop: theme.spacing(0.25),
|
|
@@ -57575,7 +57892,7 @@ var useStyles$x = makeStyles$1(function (theme) {
|
|
|
57575
57892
|
* ActiveKeyboardTimePicker is customized [ Material Ui KeyboardTimePicker](https://material-ui-pickers.dev/api/KeyboardTimePicker)
|
|
57576
57893
|
*/
|
|
57577
57894
|
function ActiveKeyboardTimePicker(props) {
|
|
57578
|
-
var classes = useStyles$
|
|
57895
|
+
var classes = useStyles$A(props);
|
|
57579
57896
|
var inputVariant = props.inputVariant,
|
|
57580
57897
|
readOnly = props.readOnly,
|
|
57581
57898
|
interactiveMode = props.interactiveMode,
|
|
@@ -57677,6 +57994,7 @@ ActiveKeyboardTimePicker.defaultProps = {
|
|
|
57677
57994
|
variant: 'inline'
|
|
57678
57995
|
};
|
|
57679
57996
|
|
|
57997
|
+
exports.ActiveCurrencyField = ActiveCurrencyField;
|
|
57680
57998
|
exports.ActiveDatePicker = ActiveDatePicker;
|
|
57681
57999
|
exports.ActiveFormCoordinateField = ActiveFormCoordinateField;
|
|
57682
58000
|
exports.ActiveFormPositiveInteger = ActiveFormPositiveInteger;
|
|
@@ -57693,6 +58011,7 @@ exports.UButton = UButton;
|
|
|
57693
58011
|
exports.UConfirmationButton = UConfirmationButton;
|
|
57694
58012
|
exports.UContent = UContent;
|
|
57695
58013
|
exports.UCoordinateField = UCoordinateField;
|
|
58014
|
+
exports.UCurrencyField = UCurrencyField;
|
|
57696
58015
|
exports.UDatePicker = UDatePicker;
|
|
57697
58016
|
exports.UDateTimePicker = UDateTimePicker;
|
|
57698
58017
|
exports.UErrorAlert = UErrorAlert;
|