@unicef/material-ui 1.0.6 → 1.0.8
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/lib/dev.js +196 -232
- package/lib/dev.js.map +1 -1
- package/lib/prod.js +196 -232
- package/lib/prod.js.map +1 -1
- package/package.json +1 -1
package/lib/prod.js
CHANGED
|
@@ -24399,17 +24399,23 @@ var StyledAppBar = styled$1(AppBar$1, {
|
|
|
24399
24399
|
*/
|
|
24400
24400
|
|
|
24401
24401
|
function UHeader(props) {
|
|
24402
|
-
var position = props.position,
|
|
24402
|
+
var _props$position = props.position,
|
|
24403
|
+
position = _props$position === void 0 ? 'fixed' : _props$position,
|
|
24403
24404
|
applicationName = props.applicationName,
|
|
24404
|
-
|
|
24405
|
-
|
|
24405
|
+
_props$showHamburgerM = props.showHamburgerMenu,
|
|
24406
|
+
showHamburgerMenu = _props$showHamburgerM === void 0 ? true : _props$showHamburgerM,
|
|
24407
|
+
_props$hideLogo = props.hideLogo,
|
|
24408
|
+
hideLogo = _props$hideLogo === void 0 ? false : _props$hideLogo,
|
|
24406
24409
|
logo = props.logo,
|
|
24407
|
-
|
|
24408
|
-
|
|
24410
|
+
_props$hideLogoBorder = props.hideLogoBorderLine,
|
|
24411
|
+
hideLogoBorderLine = _props$hideLogoBorder === void 0 ? true : _props$hideLogoBorder,
|
|
24412
|
+
_props$logoUrl = props.logoUrl,
|
|
24413
|
+
logoUrl = _props$logoUrl === void 0 ? '/' : _props$logoUrl,
|
|
24409
24414
|
onLogoClick = props.onLogoClick,
|
|
24410
24415
|
openDrawer = props.openDrawer,
|
|
24411
24416
|
toggleDrawer = props.toggleDrawer,
|
|
24412
|
-
elevation = props.elevation,
|
|
24417
|
+
_props$elevation = props.elevation,
|
|
24418
|
+
elevation = _props$elevation === void 0 ? 4 : _props$elevation,
|
|
24413
24419
|
bgColor = props.bgColor;
|
|
24414
24420
|
var handleUrlClick = function handleUrlClick(e) {
|
|
24415
24421
|
if (onLogoClick) {
|
|
@@ -24532,14 +24538,6 @@ UHeader.propTypes = {
|
|
|
24532
24538
|
/** AppBar elevation value to handle the box shadow effect */
|
|
24533
24539
|
elevation: PropTypes.number
|
|
24534
24540
|
};
|
|
24535
|
-
UHeader.defaultProps = {
|
|
24536
|
-
position: 'fixed',
|
|
24537
|
-
showHamburgerMenu: true,
|
|
24538
|
-
hideLogo: false,
|
|
24539
|
-
logoUrl: '/',
|
|
24540
|
-
hideLogoBorderLine: true,
|
|
24541
|
-
elevation: 4
|
|
24542
|
-
};
|
|
24543
24541
|
|
|
24544
24542
|
var PREFIX$u = 'ULayout';
|
|
24545
24543
|
var classes$u = {
|
|
@@ -24566,7 +24564,7 @@ function ULayout(props) {
|
|
|
24566
24564
|
}, props.children);
|
|
24567
24565
|
}
|
|
24568
24566
|
|
|
24569
|
-
var _excluded$14 = ["headerHeight", "width"];
|
|
24567
|
+
var _excluded$14 = ["headerHeight", "width", "children"];
|
|
24570
24568
|
var PREFIX$t = 'USideBar';
|
|
24571
24569
|
var classes$t = {
|
|
24572
24570
|
drawer: "".concat(PREFIX$t, "-drawer"),
|
|
@@ -24591,10 +24589,13 @@ var StyledBox$k = styled$1(Box$1)(function (props) {
|
|
|
24591
24589
|
*
|
|
24592
24590
|
* USideBar must be wrapped inside the ULayout(Parent Component).
|
|
24593
24591
|
*/
|
|
24594
|
-
function USideBar(
|
|
24595
|
-
var headerHeight =
|
|
24596
|
-
|
|
24597
|
-
|
|
24592
|
+
function USideBar(_ref2) {
|
|
24593
|
+
var _ref2$headerHeight = _ref2.headerHeight,
|
|
24594
|
+
headerHeight = _ref2$headerHeight === void 0 ? 64 : _ref2$headerHeight,
|
|
24595
|
+
_ref2$width = _ref2.width,
|
|
24596
|
+
width = _ref2$width === void 0 ? 300 : _ref2$width,
|
|
24597
|
+
children = _ref2.children,
|
|
24598
|
+
others = _objectWithoutProperties$2(_ref2, _excluded$14);
|
|
24598
24599
|
return /*#__PURE__*/React$1.createElement(StyledBox$k, {
|
|
24599
24600
|
display: {
|
|
24600
24601
|
xs: 'none',
|
|
@@ -24611,7 +24612,7 @@ function USideBar(props) {
|
|
|
24611
24612
|
style: {
|
|
24612
24613
|
minHeight: headerHeight
|
|
24613
24614
|
}
|
|
24614
|
-
}),
|
|
24615
|
+
}), children));
|
|
24615
24616
|
}
|
|
24616
24617
|
USideBar.propTypes = {
|
|
24617
24618
|
/** Height of the header including MainMenu */
|
|
@@ -24621,10 +24622,6 @@ USideBar.propTypes = {
|
|
|
24621
24622
|
*/
|
|
24622
24623
|
width: PropTypes.number
|
|
24623
24624
|
};
|
|
24624
|
-
USideBar.defaultProps = {
|
|
24625
|
-
headerHeight: 64,
|
|
24626
|
-
width: 300
|
|
24627
|
-
};
|
|
24628
24625
|
|
|
24629
24626
|
var PREFIX$s = 'UContent';
|
|
24630
24627
|
var classes$s = {
|
|
@@ -24644,7 +24641,8 @@ var Root$5 = styled$1('main')(function (_ref) {
|
|
|
24644
24641
|
* * UContent must be wrapped inside the ULayout.
|
|
24645
24642
|
*/
|
|
24646
24643
|
function UContent(_ref3) {
|
|
24647
|
-
var headerHeight = _ref3.headerHeight,
|
|
24644
|
+
var _ref3$headerHeight = _ref3.headerHeight,
|
|
24645
|
+
headerHeight = _ref3$headerHeight === void 0 ? 64 : _ref3$headerHeight,
|
|
24648
24646
|
children = _ref3.children;
|
|
24649
24647
|
return /*#__PURE__*/React$1.createElement(Root$5, {
|
|
24650
24648
|
className: classes$s.content
|
|
@@ -24658,11 +24656,8 @@ UContent.propTypes = {
|
|
|
24658
24656
|
/** Height of the header including MainMenu */
|
|
24659
24657
|
headerHeight: PropTypes.number
|
|
24660
24658
|
};
|
|
24661
|
-
UContent.defaultProps = {
|
|
24662
|
-
headerHeight: 64
|
|
24663
|
-
};
|
|
24664
24659
|
|
|
24665
|
-
var _excluded$13 = ["spinButton", "loading", "variant", "color"];
|
|
24660
|
+
var _excluded$13 = ["spinButton", "loading", "variant", "color", "children"];
|
|
24666
24661
|
var PREFIX$r = 'UButton';
|
|
24667
24662
|
var classes$r = {
|
|
24668
24663
|
root: "".concat(PREFIX$r, "-root"),
|
|
@@ -24689,12 +24684,17 @@ var StyledBox$j = styled$1(Box$1)(function (_ref) {
|
|
|
24689
24684
|
* Custom advanced button with unicef colors and also it has spinning effect in the button
|
|
24690
24685
|
*
|
|
24691
24686
|
* */
|
|
24692
|
-
function UButton(
|
|
24693
|
-
var spinButton =
|
|
24694
|
-
|
|
24695
|
-
|
|
24696
|
-
|
|
24697
|
-
|
|
24687
|
+
function UButton(_ref3) {
|
|
24688
|
+
var _ref3$spinButton = _ref3.spinButton,
|
|
24689
|
+
spinButton = _ref3$spinButton === void 0 ? false : _ref3$spinButton,
|
|
24690
|
+
_ref3$loading = _ref3.loading,
|
|
24691
|
+
loading = _ref3$loading === void 0 ? false : _ref3$loading,
|
|
24692
|
+
_ref3$variant = _ref3.variant,
|
|
24693
|
+
variant = _ref3$variant === void 0 ? 'contained' : _ref3$variant,
|
|
24694
|
+
_ref3$color = _ref3.color,
|
|
24695
|
+
color = _ref3$color === void 0 ? 'primary' : _ref3$color,
|
|
24696
|
+
children = _ref3.children,
|
|
24697
|
+
others = _objectWithoutProperties$2(_ref3, _excluded$13);
|
|
24698
24698
|
function getVariant(variant) {
|
|
24699
24699
|
switch (variant) {
|
|
24700
24700
|
case 'uDefault':
|
|
@@ -24715,7 +24715,7 @@ function UButton(props) {
|
|
|
24715
24715
|
variant: getVariant(variant),
|
|
24716
24716
|
color: color,
|
|
24717
24717
|
disableRipple: true
|
|
24718
|
-
}, others),
|
|
24718
|
+
}, others), children);
|
|
24719
24719
|
return !spinButton ? CustomButton : /*#__PURE__*/React$1.createElement(StyledBox$j, {
|
|
24720
24720
|
className: classes$r.root
|
|
24721
24721
|
}, /*#__PURE__*/React$1.createElement(Box$1, {
|
|
@@ -24741,12 +24741,6 @@ UButton.propTypes = {
|
|
|
24741
24741
|
/** color of the button */
|
|
24742
24742
|
color: PropTypes.string
|
|
24743
24743
|
};
|
|
24744
|
-
UButton.defaultProps = {
|
|
24745
|
-
color: 'primary',
|
|
24746
|
-
variant: 'contained',
|
|
24747
|
-
spinButton: false,
|
|
24748
|
-
loading: false
|
|
24749
|
-
};
|
|
24750
24744
|
|
|
24751
24745
|
function _defineProperty(obj, key, value) {
|
|
24752
24746
|
key = toPropertyKey(key);
|
|
@@ -30647,19 +30641,35 @@ var NumberFormat = /*@__PURE__*/(function (superclass) {
|
|
|
30647
30641
|
|
|
30648
30642
|
NumberFormat.defaultProps = defaultProps;
|
|
30649
30643
|
|
|
30650
|
-
var _excluded$Y = ["inputRef", "name", "onChange", "thousandSeparator", "isNumericString", "allowNegative", "decimalScale", "fixedDecimalScale"];
|
|
30644
|
+
var _excluded$Y = ["inputRef", "name", "value", "onChange", "onBlur", "thousandSeparator", "isNumericString", "allowNegative", "decimalScale", "fixedDecimalScale"];
|
|
30651
30645
|
function PositiveNumberFormat(_ref) {
|
|
30652
30646
|
var inputRef = _ref.inputRef,
|
|
30653
30647
|
name = _ref.name,
|
|
30648
|
+
value = _ref.value,
|
|
30654
30649
|
onChange = _ref.onChange,
|
|
30655
|
-
|
|
30656
|
-
|
|
30657
|
-
|
|
30658
|
-
|
|
30659
|
-
|
|
30650
|
+
_onBlur = _ref.onBlur,
|
|
30651
|
+
_ref$thousandSeparato = _ref.thousandSeparator,
|
|
30652
|
+
thousandSeparator = _ref$thousandSeparato === void 0 ? true : _ref$thousandSeparato,
|
|
30653
|
+
_ref$isNumericString = _ref.isNumericString,
|
|
30654
|
+
isNumericString = _ref$isNumericString === void 0 ? false : _ref$isNumericString,
|
|
30655
|
+
_ref$allowNegative = _ref.allowNegative,
|
|
30656
|
+
allowNegative = _ref$allowNegative === void 0 ? false : _ref$allowNegative,
|
|
30657
|
+
_ref$decimalScale = _ref.decimalScale,
|
|
30658
|
+
decimalScale = _ref$decimalScale === void 0 ? 0 : _ref$decimalScale,
|
|
30659
|
+
_ref$fixedDecimalScal = _ref.fixedDecimalScale,
|
|
30660
|
+
fixedDecimalScale = _ref$fixedDecimalScal === void 0 ? false : _ref$fixedDecimalScal,
|
|
30660
30661
|
other = _objectWithoutProperties$2(_ref, _excluded$Y);
|
|
30661
30662
|
return /*#__PURE__*/React$1.createElement(NumberFormat, _extends$1({}, other, {
|
|
30663
|
+
value: value,
|
|
30662
30664
|
getInputRef: inputRef,
|
|
30665
|
+
onBlur: function onBlur() {
|
|
30666
|
+
return _onBlur && _onBlur({
|
|
30667
|
+
target: {
|
|
30668
|
+
name: name,
|
|
30669
|
+
value: value
|
|
30670
|
+
}
|
|
30671
|
+
});
|
|
30672
|
+
},
|
|
30663
30673
|
onValueChange: function onValueChange(values, sourceInfo) {
|
|
30664
30674
|
onChange({
|
|
30665
30675
|
target: {
|
|
@@ -30677,10 +30687,14 @@ function PositiveNumberFormat(_ref) {
|
|
|
30677
30687
|
}));
|
|
30678
30688
|
}
|
|
30679
30689
|
PositiveNumberFormat.propTypes = {
|
|
30690
|
+
// field value
|
|
30691
|
+
value: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
30680
30692
|
// Input ref
|
|
30681
30693
|
inputRef: PropTypes.func.isRequired,
|
|
30682
30694
|
// On each onChange value will be formatted
|
|
30683
30695
|
onChange: PropTypes.func.isRequired,
|
|
30696
|
+
// callback function to be called on blur
|
|
30697
|
+
onBlur: PropTypes.func,
|
|
30684
30698
|
// Thousand separator
|
|
30685
30699
|
thousandSeparator: PropTypes.bool,
|
|
30686
30700
|
// Is numeric string
|
|
@@ -30692,13 +30706,6 @@ PositiveNumberFormat.propTypes = {
|
|
|
30692
30706
|
//If true it add 0s to match given decimalScale.
|
|
30693
30707
|
fixedDecimalScale: PropTypes.bool
|
|
30694
30708
|
};
|
|
30695
|
-
PositiveNumberFormat.defaultProps = {
|
|
30696
|
-
thousandSeparator: true,
|
|
30697
|
-
isNumericString: false,
|
|
30698
|
-
allowNegative: false,
|
|
30699
|
-
decimalScale: 0,
|
|
30700
|
-
fixedDecimalScale: false
|
|
30701
|
-
};
|
|
30702
30709
|
|
|
30703
30710
|
var HelpOutline = {};
|
|
30704
30711
|
|
|
@@ -30758,12 +30765,16 @@ var StyledBox$i = styled$1(Box$1)(function (_ref) {
|
|
|
30758
30765
|
});
|
|
30759
30766
|
function InputLabelHelp(_ref3) {
|
|
30760
30767
|
var inputLabel = _ref3.inputLabel,
|
|
30761
|
-
type = _ref3.type,
|
|
30762
|
-
|
|
30768
|
+
_ref3$type = _ref3.type,
|
|
30769
|
+
type = _ref3$type === void 0 ? 'tooltip' : _ref3$type,
|
|
30770
|
+
_ref3$label = _ref3.label,
|
|
30771
|
+
label = _ref3$label === void 0 ? 'Help' : _ref3$label,
|
|
30763
30772
|
link = _ref3.link,
|
|
30764
|
-
icon = _ref3.icon,
|
|
30773
|
+
_ref3$icon = _ref3.icon,
|
|
30774
|
+
icon = _ref3$icon === void 0 ? null : _ref3$icon,
|
|
30765
30775
|
tooltipTitle = _ref3.tooltipTitle,
|
|
30766
|
-
|
|
30776
|
+
_ref3$tooltipPlacemen = _ref3.tooltipPlacement,
|
|
30777
|
+
tooltipPlacement = _ref3$tooltipPlacemen === void 0 ? 'top' : _ref3$tooltipPlacemen;
|
|
30767
30778
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("span", null, inputLabel), /*#__PURE__*/React$1.createElement(StyledBox$i, {
|
|
30768
30779
|
className: classes$n.root
|
|
30769
30780
|
}, type === 'tooltip' ? /*#__PURE__*/React$1.createElement(Tooltip$1, {
|
|
@@ -30807,12 +30818,6 @@ InputLabelHelp.propTypes = {
|
|
|
30807
30818
|
// Tooltip placement
|
|
30808
30819
|
tooltipPlacement: PropTypes.string
|
|
30809
30820
|
};
|
|
30810
|
-
InputLabelHelp.defaultProps = {
|
|
30811
|
-
label: 'Help',
|
|
30812
|
-
type: 'tooltip',
|
|
30813
|
-
icon: null,
|
|
30814
|
-
tooltipPlacement: 'top'
|
|
30815
|
-
};
|
|
30816
30821
|
|
|
30817
30822
|
var _excluded$X = ["showLabelHelp", "InputLabelHelpProps", "lineByLineOption", "hideAvatar"];
|
|
30818
30823
|
var styles$1 = {
|
|
@@ -45841,14 +45846,19 @@ var _excluded$C = ["inputFormat", "label", "onChange", "value", "showLabelHelp",
|
|
|
45841
45846
|
* Please have look at [Material UI Date Picker](https://mui.com/x/react-date-pickers/date-picker/#main-content) for more details
|
|
45842
45847
|
*/
|
|
45843
45848
|
function UDatePicker(_ref) {
|
|
45844
|
-
var inputFormat = _ref.inputFormat,
|
|
45849
|
+
var _ref$inputFormat = _ref.inputFormat,
|
|
45850
|
+
inputFormat = _ref$inputFormat === void 0 ? 'dd/MM/yyyy' : _ref$inputFormat,
|
|
45845
45851
|
label = _ref.label,
|
|
45846
45852
|
onChange = _ref.onChange,
|
|
45847
45853
|
value = _ref.value,
|
|
45848
45854
|
showLabelHelp = _ref.showLabelHelp,
|
|
45849
|
-
InputLabelProps = _ref.InputLabelProps,
|
|
45855
|
+
_ref$InputLabelProps = _ref.InputLabelProps,
|
|
45856
|
+
InputLabelProps = _ref$InputLabelProps === void 0 ? {
|
|
45857
|
+
shrink: true
|
|
45858
|
+
} : _ref$InputLabelProps,
|
|
45850
45859
|
InputLabelHelpProps = _ref.InputLabelHelpProps,
|
|
45851
|
-
inputVariant = _ref.inputVariant,
|
|
45860
|
+
_ref$inputVariant = _ref.inputVariant,
|
|
45861
|
+
inputVariant = _ref$inputVariant === void 0 ? 'outlined' : _ref$inputVariant,
|
|
45852
45862
|
others = _objectWithoutProperties$2(_ref, _excluded$C);
|
|
45853
45863
|
return /*#__PURE__*/React$1.createElement(LocalizationProvider, {
|
|
45854
45864
|
dateAdapter: AdapterDateFns
|
|
@@ -45886,13 +45896,6 @@ UDatePicker.propTypes = {
|
|
|
45886
45896
|
/** Props applied to the InputLabel element.*/
|
|
45887
45897
|
InputLabelProps: PropTypes.object
|
|
45888
45898
|
};
|
|
45889
|
-
UDatePicker.defaultProps = {
|
|
45890
|
-
inputVariant: 'outlined',
|
|
45891
|
-
InputLabelProps: {
|
|
45892
|
-
shrink: true
|
|
45893
|
-
},
|
|
45894
|
-
inputFormat: 'dd/MM/yyyy'
|
|
45895
|
-
};
|
|
45896
45899
|
|
|
45897
45900
|
var _excluded$B = ["inputFormat", "label", "onChange", "value", "showLabelHelp", "InputLabelProps", "InputLabelHelpProps", "inputVariant"];
|
|
45898
45901
|
|
|
@@ -47645,10 +47648,13 @@ var StyledBox$g = styled$1(Box$1, {
|
|
|
47645
47648
|
function ActiveFormTextField(props) {
|
|
47646
47649
|
var typographyVariant = props.typographyVariant,
|
|
47647
47650
|
className = props.className,
|
|
47648
|
-
variant = props.variant,
|
|
47651
|
+
_props$variant = props.variant,
|
|
47652
|
+
variant = _props$variant === void 0 ? 'outlined' : _props$variant,
|
|
47649
47653
|
readOnly = props.readOnly,
|
|
47650
|
-
placeholder = props.placeholder,
|
|
47651
|
-
|
|
47654
|
+
_props$placeholder = props.placeholder,
|
|
47655
|
+
placeholder = _props$placeholder === void 0 ? 'Type something' : _props$placeholder,
|
|
47656
|
+
_props$interactiveMod = props.interactiveMode,
|
|
47657
|
+
interactiveMode = _props$interactiveMod === void 0 ? false : _props$interactiveMod,
|
|
47652
47658
|
InputLabelProps = props.InputLabelProps,
|
|
47653
47659
|
InputProps = props.InputProps,
|
|
47654
47660
|
inputProps = props.inputProps,
|
|
@@ -47713,11 +47719,6 @@ ActiveFormTextField.propTypes = {
|
|
|
47713
47719
|
/** Allow to use required validator in any validation trigger, not only form submit. */
|
|
47714
47720
|
withRequiredValidator: PropTypes.bool
|
|
47715
47721
|
};
|
|
47716
|
-
ActiveFormTextField.defaultProps = {
|
|
47717
|
-
placeholder: 'Type something',
|
|
47718
|
-
interactiveMode: false,
|
|
47719
|
-
variant: 'outlined'
|
|
47720
|
-
};
|
|
47721
47722
|
|
|
47722
47723
|
var _excluded$h = ["select", "typographyVariant", "className", "interactiveMode", "placeholder", "readOnly", "InputLabelProps", "InputProps", "inputProps", "SelectProps"];
|
|
47723
47724
|
var PREFIX$i = 'ActiveFormSelect';
|
|
@@ -47771,8 +47772,10 @@ function ActiveFormSelect(props) {
|
|
|
47771
47772
|
props.select;
|
|
47772
47773
|
var typographyVariant = props.typographyVariant,
|
|
47773
47774
|
className = props.className,
|
|
47774
|
-
|
|
47775
|
-
|
|
47775
|
+
_props$interactiveMod = props.interactiveMode,
|
|
47776
|
+
interactiveMode = _props$interactiveMod === void 0 ? false : _props$interactiveMod,
|
|
47777
|
+
_props$placeholder = props.placeholder,
|
|
47778
|
+
placeholder = _props$placeholder === void 0 ? 'Select' : _props$placeholder,
|
|
47776
47779
|
readOnly = props.readOnly,
|
|
47777
47780
|
InputLabelProps = props.InputLabelProps,
|
|
47778
47781
|
InputProps = props.InputProps,
|
|
@@ -47860,10 +47863,6 @@ ActiveFormSelect.propTypes = {
|
|
|
47860
47863
|
/** Allow to use required validator in any validation trigger, not only form submit. */
|
|
47861
47864
|
withRequiredValidator: PropTypes.bool
|
|
47862
47865
|
};
|
|
47863
|
-
ActiveFormSelect.defaultProps = {
|
|
47864
|
-
placeholder: 'Select',
|
|
47865
|
-
interactiveMode: false
|
|
47866
|
-
};
|
|
47867
47866
|
|
|
47868
47867
|
var _excluded$g = ["readOnly", "InputProps"];
|
|
47869
47868
|
/**
|
|
@@ -47914,10 +47913,14 @@ var _excluded$f = ["inputPrefix", "decimalScale", "fixedDecimalScale", "textAlig
|
|
|
47914
47913
|
* The UCurrencyField is for creating currency input fields. It accepts several props for customization, including "inputPrefix," "decimalScale," "fixedDecimalScale," "textAlign," and etc
|
|
47915
47914
|
*/
|
|
47916
47915
|
function UCurrencyField(_ref) {
|
|
47917
|
-
var inputPrefix = _ref.inputPrefix,
|
|
47918
|
-
|
|
47919
|
-
|
|
47920
|
-
|
|
47916
|
+
var _ref$inputPrefix = _ref.inputPrefix,
|
|
47917
|
+
inputPrefix = _ref$inputPrefix === void 0 ? '$ ' : _ref$inputPrefix,
|
|
47918
|
+
_ref$decimalScale = _ref.decimalScale,
|
|
47919
|
+
decimalScale = _ref$decimalScale === void 0 ? 2 : _ref$decimalScale,
|
|
47920
|
+
_ref$fixedDecimalScal = _ref.fixedDecimalScale,
|
|
47921
|
+
fixedDecimalScale = _ref$fixedDecimalScal === void 0 ? true : _ref$fixedDecimalScal,
|
|
47922
|
+
_ref$textAlign = _ref.textAlign,
|
|
47923
|
+
textAlign = _ref$textAlign === void 0 ? 'right' : _ref$textAlign,
|
|
47921
47924
|
inputProps = _ref.inputProps,
|
|
47922
47925
|
props = _objectWithoutProperties$2(_ref, _excluded$f);
|
|
47923
47926
|
return /*#__PURE__*/React$1.createElement(UPositiveInteger, _extends$1({
|
|
@@ -47966,12 +47969,6 @@ UCurrencyField.propTypes = {
|
|
|
47966
47969
|
// If true it add 0s to match given decimalScale.
|
|
47967
47970
|
fixedDecimalScale: PropTypes.bool
|
|
47968
47971
|
};
|
|
47969
|
-
UCurrencyField.defaultProps = {
|
|
47970
|
-
inputPrefix: '$ ',
|
|
47971
|
-
decimalScale: 2,
|
|
47972
|
-
fixedDecimalScale: true,
|
|
47973
|
-
textAlign: 'right'
|
|
47974
|
-
};
|
|
47975
47972
|
|
|
47976
47973
|
var _excluded$e = ["InputProps"];
|
|
47977
47974
|
|
|
@@ -48033,10 +48030,14 @@ var _excluded$d = ["inputPrefix", "decimalScale", "fixedDecimalScale", "textAlig
|
|
|
48033
48030
|
* The ActiveCurrencyField is for creating currency input fields. It accepts several props for customization, including "inputPrefix," "decimalScale," "fixedDecimalScale," "textAlign," and etc. The cool feature with ActiveCurrencyField is you can read and write at the same place.
|
|
48034
48031
|
*/
|
|
48035
48032
|
function ActiveCurrencyField(_ref) {
|
|
48036
|
-
var inputPrefix = _ref.inputPrefix,
|
|
48037
|
-
|
|
48038
|
-
|
|
48039
|
-
|
|
48033
|
+
var _ref$inputPrefix = _ref.inputPrefix,
|
|
48034
|
+
inputPrefix = _ref$inputPrefix === void 0 ? '$ ' : _ref$inputPrefix,
|
|
48035
|
+
_ref$decimalScale = _ref.decimalScale,
|
|
48036
|
+
decimalScale = _ref$decimalScale === void 0 ? 2 : _ref$decimalScale,
|
|
48037
|
+
_ref$fixedDecimalScal = _ref.fixedDecimalScale,
|
|
48038
|
+
fixedDecimalScale = _ref$fixedDecimalScal === void 0 ? true : _ref$fixedDecimalScal,
|
|
48039
|
+
_ref$textAlign = _ref.textAlign,
|
|
48040
|
+
textAlign = _ref$textAlign === void 0 ? 'right' : _ref$textAlign,
|
|
48040
48041
|
inputProps = _ref.inputProps,
|
|
48041
48042
|
props = _objectWithoutProperties$2(_ref, _excluded$d);
|
|
48042
48043
|
return /*#__PURE__*/React$1.createElement(ActiveFormPositiveInteger, _extends$1({
|
|
@@ -48093,12 +48094,6 @@ ActiveCurrencyField.propTypes = {
|
|
|
48093
48094
|
/** Input text align */
|
|
48094
48095
|
textAlign: PropTypes.string
|
|
48095
48096
|
};
|
|
48096
|
-
ActiveCurrencyField.defaultProps = {
|
|
48097
|
-
inputPrefix: '$ ',
|
|
48098
|
-
decimalScale: 2,
|
|
48099
|
-
fixedDecimalScale: true,
|
|
48100
|
-
textAlign: 'right'
|
|
48101
|
-
};
|
|
48102
48097
|
|
|
48103
48098
|
var DeleteOutlined = {};
|
|
48104
48099
|
|
|
@@ -48144,18 +48139,27 @@ var CONFIRMATION_VARIANTS = {
|
|
|
48144
48139
|
* This button displays the confirmation where user has clicked the button
|
|
48145
48140
|
* It has two varint icon/menu item
|
|
48146
48141
|
*/
|
|
48147
|
-
function UConfirmationButton(
|
|
48148
|
-
var onConfirm =
|
|
48149
|
-
id =
|
|
48150
|
-
buttonText =
|
|
48151
|
-
|
|
48152
|
-
|
|
48153
|
-
|
|
48154
|
-
|
|
48155
|
-
|
|
48156
|
-
|
|
48157
|
-
|
|
48158
|
-
|
|
48142
|
+
function UConfirmationButton(_ref3) {
|
|
48143
|
+
var onConfirm = _ref3.onConfirm,
|
|
48144
|
+
id = _ref3.id,
|
|
48145
|
+
_ref3$buttonText = _ref3.buttonText,
|
|
48146
|
+
buttonText = _ref3$buttonText === void 0 ? 'Delete' : _ref3$buttonText,
|
|
48147
|
+
_ref3$enabled = _ref3.enabled,
|
|
48148
|
+
enabled = _ref3$enabled === void 0 ? true : _ref3$enabled,
|
|
48149
|
+
_ref3$variant = _ref3.variant,
|
|
48150
|
+
variant = _ref3$variant === void 0 ? 'icon' : _ref3$variant,
|
|
48151
|
+
_ref3$icon = _ref3.icon,
|
|
48152
|
+
icon = _ref3$icon === void 0 ? /*#__PURE__*/React$1.createElement(default_1$4, null) : _ref3$icon,
|
|
48153
|
+
_ref3$confirmText = _ref3.confirmText,
|
|
48154
|
+
confirmText = _ref3$confirmText === void 0 ? 'Confirm deletion?' : _ref3$confirmText,
|
|
48155
|
+
_ref3$confirmActionTe = _ref3.confirmActionText,
|
|
48156
|
+
confirmActionText = _ref3$confirmActionTe === void 0 ? 'Yes, delete' : _ref3$confirmActionTe,
|
|
48157
|
+
_ref3$cancelText = _ref3.cancelText,
|
|
48158
|
+
cancelText = _ref3$cancelText === void 0 ? 'No' : _ref3$cancelText,
|
|
48159
|
+
_ref3$buttonVariant = _ref3.buttonVariant,
|
|
48160
|
+
buttonVariant = _ref3$buttonVariant === void 0 ? 'text' : _ref3$buttonVariant,
|
|
48161
|
+
_ref3$confirmVariant = _ref3.confirmVariant,
|
|
48162
|
+
confirmVariant = _ref3$confirmVariant === void 0 ? 'menu' : _ref3$confirmVariant;
|
|
48159
48163
|
var _useState = React$1.useState(null),
|
|
48160
48164
|
_useState2 = _slicedToArray$1(_useState, 2),
|
|
48161
48165
|
deleteAnchorEl = _useState2[0],
|
|
@@ -48258,17 +48262,6 @@ UConfirmationButton.propTypes = {
|
|
|
48258
48262
|
/** Button variant applied to menuItem button */
|
|
48259
48263
|
buttonVariant: PropTypes.string
|
|
48260
48264
|
};
|
|
48261
|
-
UConfirmationButton.defaultProps = {
|
|
48262
|
-
buttonText: 'Delete',
|
|
48263
|
-
variant: 'icon',
|
|
48264
|
-
enabled: true,
|
|
48265
|
-
confirmText: 'Confirm deletion?',
|
|
48266
|
-
confirmActionText: 'Yes, delete',
|
|
48267
|
-
cancelText: 'No',
|
|
48268
|
-
icon: /*#__PURE__*/React$1.createElement(default_1$4, null),
|
|
48269
|
-
buttonVariant: 'text',
|
|
48270
|
-
confirmVariant: 'menu'
|
|
48271
|
-
};
|
|
48272
48265
|
|
|
48273
48266
|
var PREFIX$g = 'URadioButtons';
|
|
48274
48267
|
var classes$g = {
|
|
@@ -48290,7 +48283,8 @@ function URadioButtons(_ref3) {
|
|
|
48290
48283
|
var value = _ref3.value,
|
|
48291
48284
|
onChange = _ref3.onChange,
|
|
48292
48285
|
isReadOnly = _ref3.isReadOnly,
|
|
48293
|
-
variant = _ref3.variant,
|
|
48286
|
+
_ref3$variant = _ref3.variant,
|
|
48287
|
+
variant = _ref3$variant === void 0 ? 'row' : _ref3$variant,
|
|
48294
48288
|
optionLabels = _ref3.optionLabels,
|
|
48295
48289
|
optionValues = _ref3.optionValues;
|
|
48296
48290
|
var handleOnChange = function handleOnChange(event) {
|
|
@@ -48332,9 +48326,6 @@ URadioButtons.propTypes = {
|
|
|
48332
48326
|
/**array of radio button values */
|
|
48333
48327
|
optionValues: PropTypes.array
|
|
48334
48328
|
};
|
|
48335
|
-
URadioButtons.defaultProps = {
|
|
48336
|
-
variant: 'row'
|
|
48337
|
-
};
|
|
48338
48329
|
|
|
48339
48330
|
var HighlightOff = {};
|
|
48340
48331
|
|
|
@@ -48397,8 +48388,10 @@ function UAsyncBadge(_ref3) {
|
|
|
48397
48388
|
var variant = _ref3.variant,
|
|
48398
48389
|
text = _ref3.text,
|
|
48399
48390
|
visible = _ref3.visible,
|
|
48400
|
-
ariaRole = _ref3.ariaRole,
|
|
48401
|
-
|
|
48391
|
+
_ref3$ariaRole = _ref3.ariaRole,
|
|
48392
|
+
ariaRole = _ref3$ariaRole === void 0 ? 'alert' : _ref3$ariaRole,
|
|
48393
|
+
_ref3$ariaLive = _ref3.ariaLive,
|
|
48394
|
+
ariaLive = _ref3$ariaLive === void 0 ? 'assertive' : _ref3$ariaLive,
|
|
48402
48395
|
onReset = _ref3.onReset;
|
|
48403
48396
|
var chipRef = React$1.useRef();
|
|
48404
48397
|
|
|
@@ -48449,10 +48442,6 @@ UAsyncBadge.propTypes = {
|
|
|
48449
48442
|
/** Aria live of the badge */
|
|
48450
48443
|
ariaLive: PropTypes.oneOf(['polite', 'assertive', 'off'])
|
|
48451
48444
|
};
|
|
48452
|
-
UAsyncBadge.defaultProps = {
|
|
48453
|
-
ariaRole: 'alert',
|
|
48454
|
-
ariaLive: 'assertive'
|
|
48455
|
-
};
|
|
48456
48445
|
|
|
48457
48446
|
var PREFIX$e = 'UPageLoadingProgress';
|
|
48458
48447
|
var classes$e = {
|
|
@@ -48471,8 +48460,9 @@ var StyledBox$c = styled$1(Box$1)(function () {
|
|
|
48471
48460
|
* 1. Display circular progress
|
|
48472
48461
|
* 2. Display text message
|
|
48473
48462
|
*/
|
|
48474
|
-
function UPageLoadingProgress(
|
|
48475
|
-
var text =
|
|
48463
|
+
function UPageLoadingProgress(_ref2) {
|
|
48464
|
+
var _ref2$text = _ref2.text,
|
|
48465
|
+
text = _ref2$text === void 0 ? '' : _ref2$text;
|
|
48476
48466
|
return /*#__PURE__*/React$1.createElement(StyledBox$c, {
|
|
48477
48467
|
display: "flex",
|
|
48478
48468
|
justifyContent: "center",
|
|
@@ -48487,16 +48477,14 @@ UPageLoadingProgress.propTypes = {
|
|
|
48487
48477
|
/** text to display instead of circular progress */
|
|
48488
48478
|
text: PropTypes.string
|
|
48489
48479
|
};
|
|
48490
|
-
UPageLoadingProgress.defaultProps = {
|
|
48491
|
-
text: ''
|
|
48492
|
-
};
|
|
48493
48480
|
|
|
48494
48481
|
/**
|
|
48495
48482
|
* UErrorAlert is a component to display error message to the user
|
|
48496
48483
|
*/
|
|
48497
48484
|
function UErrorAlert(_ref) {
|
|
48498
48485
|
var error = _ref.error,
|
|
48499
|
-
preformatted = _ref.preformatted,
|
|
48486
|
+
_ref$preformatted = _ref.preformatted,
|
|
48487
|
+
preformatted = _ref$preformatted === void 0 ? false : _ref$preformatted,
|
|
48500
48488
|
_onClose = _ref.onClose;
|
|
48501
48489
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, error && /*#__PURE__*/React$1.createElement(Box$1, {
|
|
48502
48490
|
marginTop: 2,
|
|
@@ -48516,9 +48504,6 @@ UErrorAlert.propTypes = {
|
|
|
48516
48504
|
/** Triggers close action of error alert */
|
|
48517
48505
|
onClose: PropTypes.func
|
|
48518
48506
|
};
|
|
48519
|
-
UErrorAlert.defaultProps = {
|
|
48520
|
-
preformatted: false
|
|
48521
|
-
};
|
|
48522
48507
|
|
|
48523
48508
|
var PREFIX$d = 'UAutoComplete';
|
|
48524
48509
|
var classes$d = {
|
|
@@ -48551,9 +48536,12 @@ function UAutoComplete(_ref3) {
|
|
|
48551
48536
|
readOnly = _ref3.readOnly,
|
|
48552
48537
|
minLength = _ref3.minLength,
|
|
48553
48538
|
maxLength = _ref3.maxLength,
|
|
48554
|
-
usedItemIds = _ref3.usedItemIds,
|
|
48555
|
-
|
|
48556
|
-
|
|
48539
|
+
_ref3$usedItemIds = _ref3.usedItemIds,
|
|
48540
|
+
usedItemIds = _ref3$usedItemIds === void 0 ? [] : _ref3$usedItemIds,
|
|
48541
|
+
_ref3$allowContextSpe = _ref3.allowContextSpecific,
|
|
48542
|
+
allowContextSpecific = _ref3$allowContextSpe === void 0 ? false : _ref3$allowContextSpe,
|
|
48543
|
+
_ref3$counter = _ref3.counter,
|
|
48544
|
+
counter = _ref3$counter === void 0 ? false : _ref3$counter,
|
|
48557
48545
|
placeholder = _ref3.placeholder,
|
|
48558
48546
|
InputLabelProps = _ref3.InputLabelProps;
|
|
48559
48547
|
_ref3.props;
|
|
@@ -48701,11 +48689,6 @@ UAutoComplete.propTypes = {
|
|
|
48701
48689
|
/** Label props applied to input field*/
|
|
48702
48690
|
InputLabelProps: PropTypes.object
|
|
48703
48691
|
};
|
|
48704
|
-
UAutoComplete.defaultProps = {
|
|
48705
|
-
allowContextSpecific: false,
|
|
48706
|
-
counter: false,
|
|
48707
|
-
usedItemIds: []
|
|
48708
|
-
};
|
|
48709
48692
|
|
|
48710
48693
|
var PREFIX$c = 'UBreadcrumbs';
|
|
48711
48694
|
var classes$c = {
|
|
@@ -48845,12 +48828,18 @@ var StyledBox$b = styled$1(Box$1)(function (_ref) {
|
|
|
48845
48828
|
* If no image url from source app first letter of the user email will be displayed
|
|
48846
48829
|
*/
|
|
48847
48830
|
function UAvatarImage(_ref3) {
|
|
48848
|
-
var userEmail = _ref3.userEmail,
|
|
48849
|
-
|
|
48850
|
-
|
|
48851
|
-
|
|
48852
|
-
|
|
48853
|
-
|
|
48831
|
+
var _ref3$userEmail = _ref3.userEmail,
|
|
48832
|
+
userEmail = _ref3$userEmail === void 0 ? '' : _ref3$userEmail,
|
|
48833
|
+
_ref3$size = _ref3.size,
|
|
48834
|
+
size = _ref3$size === void 0 ? 'default' : _ref3$size,
|
|
48835
|
+
_ref3$mode = _ref3.mode,
|
|
48836
|
+
mode = _ref3$mode === void 0 ? '' : _ref3$mode,
|
|
48837
|
+
_ref3$tooltipText = _ref3.tooltipText,
|
|
48838
|
+
tooltipText = _ref3$tooltipText === void 0 ? '' : _ref3$tooltipText,
|
|
48839
|
+
_ref3$count = _ref3.count,
|
|
48840
|
+
count = _ref3$count === void 0 ? 0 : _ref3$count,
|
|
48841
|
+
_ref3$zIndexValue = _ref3.zIndexValue,
|
|
48842
|
+
zIndexValue = _ref3$zIndexValue === void 0 ? 0 : _ref3$zIndexValue,
|
|
48854
48843
|
loadPhoto = _ref3.loadPhoto;
|
|
48855
48844
|
var _useState = React$1.useState(''),
|
|
48856
48845
|
_useState2 = _slicedToArray$1(_useState, 2),
|
|
@@ -48894,15 +48883,6 @@ UAvatarImage.propTypes = {
|
|
|
48894
48883
|
/** get photo url from the respective application */
|
|
48895
48884
|
loadPhoto: PropTypes.func
|
|
48896
48885
|
};
|
|
48897
|
-
UAvatarImage.defaultProps = {
|
|
48898
|
-
userEmail: '',
|
|
48899
|
-
size: 'default',
|
|
48900
|
-
// image displays default size
|
|
48901
|
-
mode: '',
|
|
48902
|
-
tooltipText: '',
|
|
48903
|
-
count: 0,
|
|
48904
|
-
zIndexValue: 0
|
|
48905
|
-
};
|
|
48906
48886
|
|
|
48907
48887
|
var _excluded$c = ["id", "type", "label", "options", "onBlur", "helpText", "isMultiple", "searchUsers", "components"];
|
|
48908
48888
|
var getOptions = function getOptions(options) {
|
|
@@ -48932,8 +48912,10 @@ function UGraphPeoplePicker(_ref) {
|
|
|
48932
48912
|
label = _ref.label,
|
|
48933
48913
|
options = _ref.options,
|
|
48934
48914
|
onBlur = _ref.onBlur,
|
|
48935
|
-
helpText = _ref.helpText,
|
|
48936
|
-
|
|
48915
|
+
_ref$helpText = _ref.helpText,
|
|
48916
|
+
helpText = _ref$helpText === void 0 ? '' : _ref$helpText,
|
|
48917
|
+
_ref$isMultiple = _ref.isMultiple,
|
|
48918
|
+
isMultiple = _ref$isMultiple === void 0 ? true : _ref$isMultiple,
|
|
48937
48919
|
searchUsers = _ref.searchUsers,
|
|
48938
48920
|
components = _ref.components,
|
|
48939
48921
|
props = _objectWithoutProperties$2(_ref, _excluded$c);
|
|
@@ -49039,10 +49021,6 @@ UGraphPeoplePicker.propTypes = {
|
|
|
49039
49021
|
/** 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}} */
|
|
49040
49022
|
InputLabelHelpProps: PropTypes.object
|
|
49041
49023
|
};
|
|
49042
|
-
UGraphPeoplePicker.defaultProps = {
|
|
49043
|
-
helpText: '',
|
|
49044
|
-
isMultiple: true
|
|
49045
|
-
};
|
|
49046
49024
|
|
|
49047
49025
|
var _excluded$b = ["InputProps", "decimalScale", "inputProps", "coordinateType", "validators"];
|
|
49048
49026
|
|
|
@@ -49062,7 +49040,8 @@ var _excluded$b = ["InputProps", "decimalScale", "inputProps", "coordinateType",
|
|
|
49062
49040
|
|
|
49063
49041
|
function ActiveFormCoordinateField(_ref) {
|
|
49064
49042
|
var InputProps = _ref.InputProps,
|
|
49065
|
-
decimalScale = _ref.decimalScale,
|
|
49043
|
+
_ref$decimalScale = _ref.decimalScale,
|
|
49044
|
+
decimalScale = _ref$decimalScale === void 0 ? 9 : _ref$decimalScale,
|
|
49066
49045
|
inputProps = _ref.inputProps,
|
|
49067
49046
|
coordinateType = _ref.coordinateType,
|
|
49068
49047
|
validators = _ref.validators,
|
|
@@ -49133,9 +49112,6 @@ ActiveFormCoordinateField.propTypes = {
|
|
|
49133
49112
|
/** Change to write mode by hiding textfield border and displays border on Hover */
|
|
49134
49113
|
interactiveMode: PropTypes.bool
|
|
49135
49114
|
};
|
|
49136
|
-
ActiveFormCoordinateField.defaultProps = {
|
|
49137
|
-
decimalScale: 9
|
|
49138
|
-
};
|
|
49139
49115
|
|
|
49140
49116
|
var _excluded$a = ["readOnly", "InputProps", "decimalScale", "inputProps", "coordinateType", "validators"];
|
|
49141
49117
|
|
|
@@ -49152,7 +49128,8 @@ var _excluded$a = ["readOnly", "InputProps", "decimalScale", "inputProps", "coor
|
|
|
49152
49128
|
function UCoordinateField(_ref) {
|
|
49153
49129
|
var readOnly = _ref.readOnly,
|
|
49154
49130
|
InputProps = _ref.InputProps,
|
|
49155
|
-
decimalScale = _ref.decimalScale,
|
|
49131
|
+
_ref$decimalScale = _ref.decimalScale,
|
|
49132
|
+
decimalScale = _ref$decimalScale === void 0 ? 9 : _ref$decimalScale,
|
|
49156
49133
|
inputProps = _ref.inputProps,
|
|
49157
49134
|
coordinateType = _ref.coordinateType,
|
|
49158
49135
|
validators = _ref.validators,
|
|
@@ -49213,9 +49190,6 @@ UCoordinateField.propTypes = {
|
|
|
49213
49190
|
/** Coordinate type */
|
|
49214
49191
|
coordinateType: PropTypes.oneOf(['latitude', 'longitude']).isRequired
|
|
49215
49192
|
};
|
|
49216
|
-
UCoordinateField.defaultProps = {
|
|
49217
|
-
decimalScale: 9
|
|
49218
|
-
};
|
|
49219
49193
|
|
|
49220
49194
|
var Search = {};
|
|
49221
49195
|
|
|
@@ -49275,10 +49249,12 @@ var StyledInputAdornment = styled$1(InputAdornment$1)(function (_ref) {
|
|
|
49275
49249
|
function USearchBox(_ref3) {
|
|
49276
49250
|
var value = _ref3.value,
|
|
49277
49251
|
onSearch = _ref3.onSearch,
|
|
49278
|
-
placeholder = _ref3.placeholder
|
|
49252
|
+
_ref3$placeholder = _ref3.placeholder,
|
|
49253
|
+
placeholder = _ref3$placeholder === void 0 ? 'Search' : _ref3$placeholder;
|
|
49279
49254
|
_ref3.inputProps;
|
|
49280
49255
|
var className = _ref3.className,
|
|
49281
|
-
showSeparator = _ref3.showSeparator,
|
|
49256
|
+
_ref3$showSeparator = _ref3.showSeparator,
|
|
49257
|
+
showSeparator = _ref3$showSeparator === void 0 ? true : _ref3$showSeparator,
|
|
49282
49258
|
iconLabel = _ref3.iconLabel,
|
|
49283
49259
|
rest = _objectWithoutProperties$2(_ref3, _excluded$9);
|
|
49284
49260
|
var _useState = React$1.useState(value),
|
|
@@ -49357,10 +49333,6 @@ USearchBox.propTypes = {
|
|
|
49357
49333
|
/** Label next to the search icon */
|
|
49358
49334
|
iconLabel: PropTypes.string
|
|
49359
49335
|
};
|
|
49360
|
-
USearchBox.defaultProps = {
|
|
49361
|
-
placeholder: 'Search',
|
|
49362
|
-
showSeparator: true
|
|
49363
|
-
};
|
|
49364
49336
|
|
|
49365
49337
|
var _excluded$8 = ["inputFormat", "label", "onChange", "value", "showLabelHelp", "InputLabelProps", "InputLabelHelpProps", "inputVariant", "interactiveMode", "readOnly"];
|
|
49366
49338
|
var PREFIX$9 = 'ActiveDatePicker';
|
|
@@ -49391,14 +49363,19 @@ var StyledBox$a = styled$1(Box$1, {
|
|
|
49391
49363
|
* Please have look at [Material UI Date Picker](https://mui.com/x/api/date-pickers/date-picker/) for more details
|
|
49392
49364
|
*/
|
|
49393
49365
|
function ActiveDatePicker(_ref5) {
|
|
49394
|
-
var inputFormat = _ref5.inputFormat,
|
|
49366
|
+
var _ref5$inputFormat = _ref5.inputFormat,
|
|
49367
|
+
inputFormat = _ref5$inputFormat === void 0 ? 'dd/MM/yyyy' : _ref5$inputFormat,
|
|
49395
49368
|
label = _ref5.label,
|
|
49396
49369
|
onChange = _ref5.onChange,
|
|
49397
49370
|
value = _ref5.value,
|
|
49398
49371
|
showLabelHelp = _ref5.showLabelHelp,
|
|
49399
|
-
InputLabelProps = _ref5.InputLabelProps,
|
|
49372
|
+
_ref5$InputLabelProps = _ref5.InputLabelProps,
|
|
49373
|
+
InputLabelProps = _ref5$InputLabelProps === void 0 ? {
|
|
49374
|
+
shrink: true
|
|
49375
|
+
} : _ref5$InputLabelProps,
|
|
49400
49376
|
InputLabelHelpProps = _ref5.InputLabelHelpProps,
|
|
49401
|
-
inputVariant = _ref5.inputVariant,
|
|
49377
|
+
_ref5$inputVariant = _ref5.inputVariant,
|
|
49378
|
+
inputVariant = _ref5$inputVariant === void 0 ? 'outlined' : _ref5$inputVariant,
|
|
49402
49379
|
interactiveMode = _ref5.interactiveMode,
|
|
49403
49380
|
readOnly = _ref5.readOnly,
|
|
49404
49381
|
others = _objectWithoutProperties$2(_ref5, _excluded$8);
|
|
@@ -49448,13 +49425,6 @@ ActiveDatePicker.propTypes = {
|
|
|
49448
49425
|
/** 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}} */
|
|
49449
49426
|
InputLabelHelpProps: PropTypes.object
|
|
49450
49427
|
};
|
|
49451
|
-
ActiveDatePicker.defaultProps = {
|
|
49452
|
-
inputVariant: 'outlined',
|
|
49453
|
-
InputLabelProps: {
|
|
49454
|
-
shrink: true
|
|
49455
|
-
},
|
|
49456
|
-
inputFormat: 'dd/MM/yyyy'
|
|
49457
|
-
};
|
|
49458
49428
|
|
|
49459
49429
|
var _excluded$7 = ["inputFormat", "label", "onChange", "value", "showLabelHelp", "InputLabelProps", "InputLabelHelpProps", "inputVariant", "interactiveMode", "readOnly"];
|
|
49460
49430
|
var PREFIX$8 = 'ActiveTimePicker';
|
|
@@ -49485,14 +49455,19 @@ var StyledBox$9 = styled$1(Box$1, {
|
|
|
49485
49455
|
* Please have look at [Material UI Time Picker](https://mui.com/x/api/date-pickers/time-picker/) for more details
|
|
49486
49456
|
*/
|
|
49487
49457
|
function ActiveTimePicker(_ref5) {
|
|
49488
|
-
var inputFormat = _ref5.inputFormat,
|
|
49458
|
+
var _ref5$inputFormat = _ref5.inputFormat,
|
|
49459
|
+
inputFormat = _ref5$inputFormat === void 0 ? 'hh:mm a' : _ref5$inputFormat,
|
|
49489
49460
|
label = _ref5.label,
|
|
49490
49461
|
onChange = _ref5.onChange,
|
|
49491
49462
|
value = _ref5.value,
|
|
49492
49463
|
showLabelHelp = _ref5.showLabelHelp,
|
|
49493
|
-
InputLabelProps = _ref5.InputLabelProps,
|
|
49464
|
+
_ref5$InputLabelProps = _ref5.InputLabelProps,
|
|
49465
|
+
InputLabelProps = _ref5$InputLabelProps === void 0 ? {
|
|
49466
|
+
shrink: true
|
|
49467
|
+
} : _ref5$InputLabelProps,
|
|
49494
49468
|
InputLabelHelpProps = _ref5.InputLabelHelpProps,
|
|
49495
|
-
inputVariant = _ref5.inputVariant,
|
|
49469
|
+
_ref5$inputVariant = _ref5.inputVariant,
|
|
49470
|
+
inputVariant = _ref5$inputVariant === void 0 ? 'outlined' : _ref5$inputVariant,
|
|
49496
49471
|
interactiveMode = _ref5.interactiveMode,
|
|
49497
49472
|
readOnly = _ref5.readOnly,
|
|
49498
49473
|
others = _objectWithoutProperties$2(_ref5, _excluded$7);
|
|
@@ -49542,13 +49517,6 @@ ActiveTimePicker.propTypes = {
|
|
|
49542
49517
|
/** 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}} */
|
|
49543
49518
|
InputLabelHelpProps: PropTypes.object
|
|
49544
49519
|
};
|
|
49545
|
-
ActiveTimePicker.defaultProps = {
|
|
49546
|
-
inputVariant: 'outlined',
|
|
49547
|
-
InputLabelProps: {
|
|
49548
|
-
shrink: true
|
|
49549
|
-
},
|
|
49550
|
-
inputFormat: 'hh:mm a'
|
|
49551
|
-
};
|
|
49552
49520
|
|
|
49553
49521
|
var _excluded$6 = ["inputFormat", "label", "onChange", "value", "showLabelHelp", "InputLabelProps", "InputLabelHelpProps", "inputVariant", "interactiveMode", "readOnly"];
|
|
49554
49522
|
var PREFIX$7 = 'ActiveDateTimePicker';
|
|
@@ -50252,10 +50220,14 @@ function ActiveAutoComplete(_ref3) {
|
|
|
50252
50220
|
readOnly = _ref3.readOnly,
|
|
50253
50221
|
minLength = _ref3.minLength,
|
|
50254
50222
|
maxLength = _ref3.maxLength,
|
|
50255
|
-
usedItemIds = _ref3.usedItemIds,
|
|
50256
|
-
|
|
50257
|
-
|
|
50258
|
-
|
|
50223
|
+
_ref3$usedItemIds = _ref3.usedItemIds,
|
|
50224
|
+
usedItemIds = _ref3$usedItemIds === void 0 ? [] : _ref3$usedItemIds,
|
|
50225
|
+
_ref3$allowContextSpe = _ref3.allowContextSpecific,
|
|
50226
|
+
allowContextSpecific = _ref3$allowContextSpe === void 0 ? false : _ref3$allowContextSpe,
|
|
50227
|
+
_ref3$interactiveMode = _ref3.interactiveMode,
|
|
50228
|
+
interactiveMode = _ref3$interactiveMode === void 0 ? false : _ref3$interactiveMode,
|
|
50229
|
+
_ref3$counter = _ref3.counter,
|
|
50230
|
+
counter = _ref3$counter === void 0 ? false : _ref3$counter,
|
|
50259
50231
|
placeholder = _ref3.placeholder,
|
|
50260
50232
|
InputLabelProps = _ref3.InputLabelProps;
|
|
50261
50233
|
_ref3.props;
|
|
@@ -50410,12 +50382,6 @@ ActiveAutoComplete.propTypes = {
|
|
|
50410
50382
|
/** Label props applied to input field*/
|
|
50411
50383
|
InputLabelProps: PropTypes.object
|
|
50412
50384
|
};
|
|
50413
|
-
ActiveAutoComplete.defaultProps = {
|
|
50414
|
-
allowContextSpecific: false,
|
|
50415
|
-
interactiveMode: false,
|
|
50416
|
-
counter: false,
|
|
50417
|
-
usedItemIds: []
|
|
50418
|
-
};
|
|
50419
50385
|
|
|
50420
50386
|
var StyledBox$1 = styled$1(Box$1)(function () {
|
|
50421
50387
|
return {
|
|
@@ -50436,9 +50402,12 @@ var StyledBox$1 = styled$1(Box$1)(function () {
|
|
|
50436
50402
|
*/
|
|
50437
50403
|
function UAriaLive(_ref) {
|
|
50438
50404
|
var text = _ref.text,
|
|
50439
|
-
type = _ref.type,
|
|
50440
|
-
|
|
50441
|
-
|
|
50405
|
+
_ref$type = _ref.type,
|
|
50406
|
+
type = _ref$type === void 0 ? 'polite' : _ref$type,
|
|
50407
|
+
_ref$role = _ref.role,
|
|
50408
|
+
role = _ref$role === void 0 ? 'log' : _ref$role,
|
|
50409
|
+
_ref$ariaAtomic = _ref.ariaAtomic,
|
|
50410
|
+
ariaAtomic = _ref$ariaAtomic === void 0 ? false : _ref$ariaAtomic;
|
|
50442
50411
|
return /*#__PURE__*/React$1.createElement(StyledBox$1, {
|
|
50443
50412
|
"aria-live": type,
|
|
50444
50413
|
"aria-atomic": ariaAtomic,
|
|
@@ -50456,11 +50425,6 @@ UAriaLive.propTypes = {
|
|
|
50456
50425
|
/** Aria role */
|
|
50457
50426
|
role: PropTypes.string
|
|
50458
50427
|
};
|
|
50459
|
-
UAriaLive.defaultProps = {
|
|
50460
|
-
type: 'polite',
|
|
50461
|
-
role: 'log',
|
|
50462
|
-
ariaAtomic: false
|
|
50463
|
-
};
|
|
50464
50428
|
|
|
50465
50429
|
var StyledBox = styled$1(Box$1)(function () {
|
|
50466
50430
|
return {
|