@zohodesk/dot 1.0.0-temp-182 → 1.0.0-temp-183
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/.cli/propValidation_report.html +1 -1
- package/assets/Appearance/dark/mode/Dot_DarkMode.module.css +50 -0
- package/assets/Appearance/light/mode/Dot_LightMode.module.css +50 -0
- package/assets/Appearance/pureDark/mode/Dot_PureDarkMode.module.css +50 -0
- package/coverage/ExternalLink/ExternalLink.js.html +1 -1
- package/coverage/ExternalLink/ExternalLink.module.css.html +1 -1
- package/coverage/ExternalLink/index.html +1 -1
- package/coverage/ExternalLink/props/defaultProps.js.html +1 -1
- package/coverage/ExternalLink/props/index.html +1 -1
- package/coverage/ExternalLink/props/propTypes.js.html +1 -1
- package/coverage/IconButton/IconButton.js.html +1 -1
- package/coverage/IconButton/IconButton.module.css.html +1 -1
- package/coverage/IconButton/index.html +1 -1
- package/coverage/IconButton/props/defaultProps.js.html +1 -1
- package/coverage/IconButton/props/index.html +1 -1
- package/coverage/IconButton/props/propTypes.js.html +1 -1
- package/coverage/Image/Image.js.html +1 -1
- package/coverage/Image/Image.module.css.html +1 -1
- package/coverage/Image/index.html +1 -1
- package/coverage/Image/props/defaultProps.js.html +1 -1
- package/coverage/Image/props/index.html +1 -1
- package/coverage/Image/props/propTypes.js.html +1 -1
- package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.js.html +1 -1
- package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.module.css.html +7 -4
- package/coverage/avatar/AvatarWithTeam/index.html +1 -1
- package/coverage/avatar/AvatarWithTeam/props/defaultProps.js.html +1 -1
- package/coverage/avatar/AvatarWithTeam/props/index.html +1 -1
- package/coverage/avatar/AvatarWithTeam/props/propTypes.js.html +1 -1
- package/coverage/coverage-final.json +16 -16
- package/coverage/coverage-summary.json +16 -16
- package/coverage/index.html +1 -1
- package/es/Attachment/Attachment.module.css +4 -4
- package/es/ChannelIcon/ChannelIcon.module.css +1 -1
- package/es/Drawer/Drawer.js +5 -4
- package/es/Drawer/Drawer.module.css +3 -3
- package/es/ExternalLink/ExternalLink.js +5 -4
- package/es/FlipCard/FlipCard.js +12 -14
- package/es/IconButton/IconButton.js +5 -4
- package/es/ImportantNotes/ImportantNotes.module.css +1 -1
- package/es/Link/Link.js +10 -8
- package/es/Message/Message.js +5 -4
- package/es/Message/Message.module.css +1 -1
- package/es/Separator/Separator.module.css +2 -11
- package/es/TagWithIcon/TagWithIcon.module.css +2 -2
- package/es/ToastMessage/ToastMessage.js +4 -2
- package/es/ToastMessage/ToastMessage.module.css +3 -3
- package/es/actions/AutoClose.js +1 -2
- package/es/alert/AlertHeader/AlertHeader.module.css +2 -4
- package/es/alert/AlertLookup/AlertLookup.js +12 -14
- package/es/avatar/AvatarClose/AvatarClose.js +7 -7
- package/es/avatar/AvatarCollision/AvatarCollision.js +7 -7
- package/es/avatar/AvatarIcon/AvatarIcon.js +5 -4
- package/es/avatar/AvatarStatus/AvatarStatus.js +8 -7
- package/es/avatar/AvatarThread/AvatarThread.js +7 -7
- package/es/avatar/AvatarUser/AvatarUser.js +9 -10
- package/es/avatar/AvatarUser/AvatarUser.module.css +2 -46
- package/es/avatar/AvatarWithTeam/AvatarWithTeam.js +14 -17
- package/es/avatar/AvatarWithTeam/AvatarWithTeam.module.css +2 -2
- package/es/dropdown/ToggleDropDown/ToggleDropDown.js +24 -28
- package/es/errorstate/EmptyStates.module.css +1 -24
- package/es/form/fields/CheckBoxField/CheckBoxField.js +13 -15
- package/es/form/fields/CurrencyField/CurrencyField.js +12 -14
- package/es/form/fields/DateField/DateField.js +14 -14
- package/es/form/fields/MultiSelectField/MultiSelectField.js +12 -13
- package/es/form/fields/PhoneField/PhoneField.js +7 -7
- package/es/form/fields/RadioField/RadioField.js +15 -18
- package/es/form/fields/SelectField/SelectField.js +14 -14
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +14 -16
- package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +11 -11
- package/es/form/fields/TextBoxField/TextBoxField.js +14 -14
- package/es/form/fields/TextEditor/TextEditor.module.css +63 -48
- package/es/form/fields/TextEditorField/TextEditorField.js +10 -11
- package/es/form/fields/TextEditorWrapper/TextEditorWrapper.js +10 -11
- package/es/form/fields/TextareaField/TextareaField.js +13 -14
- package/es/layout/SetupDetailLayout/SetupDetailLayout.module.css +2 -22
- package/es/layout/SubtabLayout/SubtabLayout.js +6 -4
- package/es/layout/SubtabLayout/SubtabLayout.module.css +1 -1
- package/es/list/AvatarFlip/AvatarFlip.module.css +2 -2
- package/es/list/DepartmentDropDown/DepartmentDropDown.js +9 -3
- package/es/list/DepartmentDropDown/DepartmentDropDown.module.css +2 -4
- package/es/list/DepartmentDropDown/props/defaultProps.js +2 -1
- package/es/list/DepartmentDropDown/props/propTypes.js +2 -1
- package/es/list/GridStencils/GridStencils.module.css +1 -35
- package/es/list/ListLayout/ListLayout.js +5 -4
- package/es/list/SecondaryText/AccountName.js +12 -12
- package/es/list/SecondaryText/ContactName.js +9 -8
- package/es/list/SecondaryText/Email.js +8 -8
- package/es/list/SecondaryText/PhoneNumber.js +8 -8
- package/es/list/SecondaryText/SecondaryText.js +5 -4
- package/es/list/SecondaryText/TicketId.js +7 -7
- package/es/list/Subject/Subject.js +7 -7
- package/es/list/Subject/Subject.module.css +1 -1
- package/es/list/status/StatusListItem/StatusListItem.js +5 -5
- package/es/list/status/StatusListItem/StatusListItem.module.css +2 -1
- package/es/lookup/Lookup/Lookup.js +5 -4
- package/es/lookup/header/Close/LookupClose.module.css +2 -3
- package/es/lookup/header/Search/Search.js +3 -5
- package/es/lookup/header/Title/LookupTitle.module.css +2 -6
- package/es/lookup/header/ViewDropDown/ViewDropDown.module.css +2 -13
- package/es/lookup/header/lookupHeaderCommon.module.css +2 -9
- package/es/setup/header/Search/Search.module.css +2 -14
- package/es/setup/table/Text/TableText.module.css +2 -11
- package/es/v1/Drawer/Drawer.js +5 -4
- package/es/v1/ExternalLink/ExternalLink.js +5 -4
- package/es/v1/FlipCard/FlipCard.js +12 -14
- package/es/v1/GlobalNotification/GlobalNotification.js +7 -6
- package/es/v1/IconButton/IconButton.js +5 -4
- package/es/v1/Link/Link.js +10 -8
- package/es/v1/Message/Message.js +5 -4
- package/es/v1/ToastMessage/ToastMessage.js +4 -2
- package/es/v1/actions/AutoClose.js +1 -2
- package/es/v1/alert/AlertLookup/AlertLookup.js +15 -15
- package/es/v1/avatar/AvatarClose/AvatarClose.js +7 -7
- package/es/v1/avatar/AvatarCollision/AvatarCollision.js +7 -7
- package/es/v1/avatar/AvatarIcon/AvatarIcon.js +5 -4
- package/es/v1/avatar/AvatarStatus/AvatarStatus.js +8 -7
- package/es/v1/avatar/AvatarThread/AvatarThread.js +7 -7
- package/es/v1/avatar/AvatarUser/AvatarUser.js +9 -10
- package/es/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +14 -17
- package/es/v1/dropdown/ToggleDropDown/ToggleDropDown.js +24 -28
- package/es/v1/form/fields/CheckBoxField/CheckBoxField.js +13 -15
- package/es/v1/form/fields/CurrencyField/CurrencyField.js +12 -14
- package/es/v1/form/fields/DateField/DateField.js +14 -14
- package/es/v1/form/fields/MultiSelectField/MultiSelectField.js +12 -13
- package/es/v1/form/fields/PhoneField/PhoneField.js +7 -7
- package/es/v1/form/fields/RadioField/RadioField.js +16 -18
- package/es/v1/form/fields/SelectField/SelectField.js +14 -14
- package/es/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +10 -13
- package/es/v1/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +11 -11
- package/es/v1/form/fields/TextBoxField/TextBoxField.js +14 -14
- package/es/v1/form/fields/TextEditorField/TextEditorField.js +10 -11
- package/es/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +10 -11
- package/es/v1/form/fields/TextareaField/TextareaField.js +13 -14
- package/es/v1/layout/SubtabLayout/SubtabLayout.js +6 -4
- package/es/v1/list/ListLayout/ListLayout.js +5 -4
- package/es/v1/list/SecondaryText/AccountName.js +12 -12
- package/es/v1/list/SecondaryText/ContactName.js +9 -8
- package/es/v1/list/SecondaryText/Email.js +8 -8
- package/es/v1/list/SecondaryText/PhoneNumber.js +8 -8
- package/es/v1/list/SecondaryText/SecondaryText.js +5 -4
- package/es/v1/list/SecondaryText/TicketId.js +7 -7
- package/es/v1/list/Subject/Subject.js +7 -7
- package/es/v1/list/status/StatusListItem/StatusListItem.js +5 -5
- package/es/v1/lookup/Lookup/Lookup.js +5 -4
- package/es/v1/lookup/header/Search/Search.js +3 -5
- package/es/v1/notification/DesktopNotification/DesktopNotification.js +7 -6
- package/es/version2/GlobalNotification/GlobalNotification.js +7 -6
- package/es/version2/GlobalNotification/GlobalNotification.module.css +6 -6
- package/es/version2/lookup/AlertHeader/css/AlertHeaderNew.module.css +2 -7
- package/es/version2/lookup/AlertLookup/AlertLookup.js +15 -15
- package/es/version2/lookup/AlertLookup/AlertLookupNew.module.css +2 -8
- package/es/version2/lookup/alertLookupCommonNew.module.css +1 -1
- package/es/version2/notification/DesktopNotification/DesktopNotification.js +7 -6
- package/es/version2/notification/DesktopNotification/DesktopNotification.module.css +3 -4
- package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +93 -96
- package/lib/Attachment/Attachment.module.css +4 -4
- package/lib/ChannelIcon/ChannelIcon.module.css +1 -1
- package/lib/Drawer/Drawer.module.css +3 -3
- package/lib/ImportantNotes/ImportantNotes.module.css +1 -1
- package/lib/Message/Message.module.css +1 -1
- package/lib/Separator/Separator.module.css +2 -11
- package/lib/TagWithIcon/TagWithIcon.module.css +2 -2
- package/lib/ToastMessage/ToastMessage.module.css +3 -3
- package/lib/alert/AlertHeader/AlertHeader.module.css +2 -4
- package/lib/avatar/AvatarUser/AvatarUser.module.css +2 -46
- package/lib/avatar/AvatarWithTeam/AvatarWithTeam.module.css +2 -2
- package/lib/errorstate/EmptyStates.module.css +1 -24
- package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.js +5 -3
- package/lib/form/fields/TextEditor/TextEditor.module.css +63 -48
- package/lib/layout/SetupDetailLayout/SetupDetailLayout.module.css +2 -22
- package/lib/layout/SubtabLayout/SubtabLayout.module.css +1 -1
- package/lib/list/AvatarFlip/AvatarFlip.module.css +2 -2
- package/lib/list/DepartmentDropDown/DepartmentDropDown.js +8 -3
- package/lib/list/DepartmentDropDown/DepartmentDropDown.module.css +2 -4
- package/lib/list/DepartmentDropDown/props/defaultProps.js +2 -1
- package/lib/list/DepartmentDropDown/props/propTypes.js +1 -1
- package/lib/list/GridStencils/GridStencils.module.css +1 -35
- package/lib/list/Subject/Subject.module.css +1 -1
- package/lib/list/status/StatusListItem/StatusListItem.module.css +2 -1
- package/lib/lookup/header/Close/LookupClose.module.css +2 -3
- package/lib/lookup/header/Title/LookupTitle.module.css +2 -6
- package/lib/lookup/header/ViewDropDown/ViewDropDown.module.css +2 -13
- package/lib/lookup/header/lookupHeaderCommon.module.css +2 -9
- package/lib/setup/header/Search/Search.module.css +2 -14
- package/lib/setup/table/Text/TableText.module.css +2 -11
- package/lib/version2/GlobalNotification/GlobalNotification.module.css +6 -6
- package/lib/version2/lookup/AlertHeader/css/AlertHeaderNew.module.css +2 -7
- package/lib/version2/lookup/AlertLookup/AlertLookupNew.module.css +2 -8
- package/lib/version2/lookup/alertLookupCommonNew.module.css +1 -1
- package/lib/version2/notification/DesktopNotification/DesktopNotification.module.css +3 -4
- package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +93 -96
- package/package.json +4 -4
- package/result.json +1 -1
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
import React, { Component, Fragment } from 'react';
|
|
2
4
|
import { defaultProps } from './props/defaultProps';
|
|
3
5
|
import { propTypes } from './props/propTypes';
|
|
@@ -548,22 +550,21 @@ export class ToggleDropDown extends Component {
|
|
|
548
550
|
let listIndex = -1;
|
|
549
551
|
const ariaTitleId = this.getAriaId(); // const allyOptionsArr = this.getOptionsArray();
|
|
550
552
|
|
|
551
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
553
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
552
554
|
className: style.wrapper,
|
|
553
555
|
onMouseEnter: showOnHover && !isDisabled && !isReadOnly && isEditable ? this.showTogglePopup : undefined,
|
|
554
556
|
onMouseLeave: showOnHover && !isDisabled && !isReadOnly && isEditable ? this.hideTogglePopup : undefined,
|
|
555
|
-
"data-selector-id": dataSelectorId
|
|
556
|
-
|
|
557
|
-
}, /*#__PURE__*/React.createElement(Container, {
|
|
557
|
+
"data-selector-id": dataSelectorId
|
|
558
|
+
}, ToggleDropDownProps), /*#__PURE__*/React.createElement(Container, {
|
|
558
559
|
alignBox: "row",
|
|
559
560
|
onClick: !showOnHover && !isDisabled && !isReadOnly && isEditable && this.handleTogglePopup,
|
|
560
561
|
eleRef: getTargetRef,
|
|
561
562
|
align: "vertical",
|
|
562
563
|
isCover: false,
|
|
563
564
|
dataId: dataId
|
|
564
|
-
}, children ? isToggleStateNeeded ? /*#__PURE__*/React.createElement(Component, {
|
|
565
|
+
}, children ? isToggleStateNeeded ? /*#__PURE__*/React.createElement(Component, _extends({}, componentProps, {
|
|
565
566
|
isActive: isPopupOpen
|
|
566
|
-
}) : children : /*#__PURE__*/React.createElement(RippleEffect, {
|
|
567
|
+
})) : children : /*#__PURE__*/React.createElement(RippleEffect, {
|
|
567
568
|
hoverType: hoverType,
|
|
568
569
|
isActive: isPopupOpen,
|
|
569
570
|
isNeedEffect: isEditable && isNeedEffect
|
|
@@ -601,7 +602,7 @@ export class ToggleDropDown extends Component {
|
|
|
601
602
|
let {
|
|
602
603
|
tabletMode
|
|
603
604
|
} = _ref4;
|
|
604
|
-
return /*#__PURE__*/React.createElement(ResponsiveDropBox, {
|
|
605
|
+
return /*#__PURE__*/React.createElement(ResponsiveDropBox, _extends({
|
|
605
606
|
boxPosition: position,
|
|
606
607
|
isActive: isPopupReady,
|
|
607
608
|
onClick: removeClose,
|
|
@@ -637,12 +638,12 @@ export class ToggleDropDown extends Component {
|
|
|
637
638
|
searchValue: searchValue,
|
|
638
639
|
isFetchingOptions: isFetchingOptions
|
|
639
640
|
}
|
|
640
|
-
}
|
|
641
|
-
|
|
641
|
+
}
|
|
642
|
+
}, DropBoxProps, {
|
|
642
643
|
onClose: this.handleTogglePopup
|
|
643
|
-
}, /*#__PURE__*/React.createElement(React.Fragment, null, isSearch ? /*#__PURE__*/React.createElement(Box, {
|
|
644
|
+
}), /*#__PURE__*/React.createElement(React.Fragment, null, isSearch ? /*#__PURE__*/React.createElement(Box, {
|
|
644
645
|
className: style.search
|
|
645
|
-
}, /*#__PURE__*/React.createElement(TextBoxIcon, {
|
|
646
|
+
}, /*#__PURE__*/React.createElement(TextBoxIcon, _extends({
|
|
646
647
|
placeHolder: placeHolderText,
|
|
647
648
|
onChange: this.handleChange,
|
|
648
649
|
value: searchValue,
|
|
@@ -663,9 +664,8 @@ export class ToggleDropDown extends Component {
|
|
|
663
664
|
ariaAutocomplete: 'list',
|
|
664
665
|
ariaHaspopup: true,
|
|
665
666
|
ariaExpanded: true
|
|
666
|
-
}
|
|
667
|
-
|
|
668
|
-
})) : null, title && options.length != 0 && /*#__PURE__*/React.createElement(Box, {
|
|
667
|
+
}
|
|
668
|
+
}, TextBoxIconProps))) : null, title && options.length != 0 && /*#__PURE__*/React.createElement(Box, {
|
|
669
669
|
className: style.title
|
|
670
670
|
}, /*#__PURE__*/React.createElement(DropDownHeading, {
|
|
671
671
|
text: title,
|
|
@@ -716,7 +716,7 @@ export class ToggleDropDown extends Component {
|
|
|
716
716
|
isDisabled = false
|
|
717
717
|
} = item;
|
|
718
718
|
listIndex += 1;
|
|
719
|
-
return iconName ? /*#__PURE__*/React.createElement(ListItemWithIcon, {
|
|
719
|
+
return iconName ? /*#__PURE__*/React.createElement(ListItemWithIcon, _extends({
|
|
720
720
|
key: listIndex,
|
|
721
721
|
dataId: item[keyName],
|
|
722
722
|
value: item[keyName],
|
|
@@ -742,9 +742,8 @@ export class ToggleDropDown extends Component {
|
|
|
742
742
|
role: isSearch ? 'option' : 'menuitem',
|
|
743
743
|
ariaSelected: selectedId === item[idName],
|
|
744
744
|
ariaLabel: item[keyName]
|
|
745
|
-
}
|
|
746
|
-
|
|
747
|
-
}) : /*#__PURE__*/React.createElement(ListItem, {
|
|
745
|
+
}
|
|
746
|
+
}, ListItemWithIconProps)) : /*#__PURE__*/React.createElement(ListItem, _extends({
|
|
748
747
|
key: listIndex,
|
|
749
748
|
dataId: item[keyName],
|
|
750
749
|
value: item[keyName],
|
|
@@ -767,9 +766,8 @@ export class ToggleDropDown extends Component {
|
|
|
767
766
|
role: isSearch ? 'option' : 'menuitem',
|
|
768
767
|
ariaSelected: selectedId === item[idName],
|
|
769
768
|
ariaLabel: item[keyName]
|
|
770
|
-
}
|
|
771
|
-
|
|
772
|
-
});
|
|
769
|
+
}
|
|
770
|
+
}, ListItemProps));
|
|
773
771
|
}));
|
|
774
772
|
}), isFetchingOptions && /*#__PURE__*/React.createElement(Container, {
|
|
775
773
|
isCover: false,
|
|
@@ -793,7 +791,7 @@ export class ToggleDropDown extends Component {
|
|
|
793
791
|
key: i
|
|
794
792
|
}, needDivider ? /*#__PURE__*/React.createElement("div", {
|
|
795
793
|
className: style.seperatedLine
|
|
796
|
-
}) : iconName ? /*#__PURE__*/React.createElement(ListItemWithIcon, {
|
|
794
|
+
}) : iconName ? /*#__PURE__*/React.createElement(ListItemWithIcon, _extends({
|
|
797
795
|
dataId: item[keyName],
|
|
798
796
|
value: item[keyName],
|
|
799
797
|
id: item[idName],
|
|
@@ -819,9 +817,8 @@ export class ToggleDropDown extends Component {
|
|
|
819
817
|
role: isSearch ? 'option' : 'menuitem',
|
|
820
818
|
ariaSelected: selectedId === item[idName],
|
|
821
819
|
ariaLabel: item[keyName]
|
|
822
|
-
}
|
|
823
|
-
|
|
824
|
-
}) : /*#__PURE__*/React.createElement(ListItem, {
|
|
820
|
+
}
|
|
821
|
+
}, ListItemWithIconProps)) : /*#__PURE__*/React.createElement(ListItem, _extends({
|
|
825
822
|
key: listIndex,
|
|
826
823
|
dataId: item[keyName],
|
|
827
824
|
value: item[keyName],
|
|
@@ -844,9 +841,8 @@ export class ToggleDropDown extends Component {
|
|
|
844
841
|
role: isSearch ? 'option' : 'menuitem',
|
|
845
842
|
ariaSelected: selectedId === item[idName],
|
|
846
843
|
ariaLabel: item[keyName]
|
|
847
|
-
}
|
|
848
|
-
|
|
849
|
-
}));
|
|
844
|
+
}
|
|
845
|
+
}, ListItemProps)));
|
|
850
846
|
}), isFetchingOptions && /*#__PURE__*/React.createElement(Container, {
|
|
851
847
|
isCover: false,
|
|
852
848
|
align: "both"
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
/**** Libraries ****/
|
|
2
4
|
import React, { memo } from 'react';
|
|
3
5
|
import { defaultProps } from './props/defaultProps';
|
|
@@ -56,7 +58,7 @@ function CheckBoxField(props) {
|
|
|
56
58
|
lockedInfoText: lockedInfoText,
|
|
57
59
|
infoText: infoText,
|
|
58
60
|
renderProps: renderLabelProps
|
|
59
|
-
}, /*#__PURE__*/React.createElement(Label, {
|
|
61
|
+
}, /*#__PURE__*/React.createElement(Label, _extends({
|
|
60
62
|
text: labelName,
|
|
61
63
|
id: id,
|
|
62
64
|
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
@@ -66,9 +68,8 @@ function CheckBoxField(props) {
|
|
|
66
68
|
title: labelName,
|
|
67
69
|
onClick: !removeEvent ? handleLabelClick : null,
|
|
68
70
|
variant: isDirectCol ? 'default' : 'primary',
|
|
69
|
-
dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label
|
|
70
|
-
|
|
71
|
-
}));
|
|
71
|
+
dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`
|
|
72
|
+
}, LabelProps)));
|
|
72
73
|
|
|
73
74
|
function handleChange(value) {
|
|
74
75
|
onChange && onChange(id, value);
|
|
@@ -94,30 +95,27 @@ function CheckBoxField(props) {
|
|
|
94
95
|
align: "top"
|
|
95
96
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
96
97
|
className: isDirectCol ? style.checkbox : style.checkboxRow
|
|
97
|
-
}, /*#__PURE__*/React.createElement(CheckBox, {
|
|
98
|
+
}, /*#__PURE__*/React.createElement(CheckBox, _extends({
|
|
98
99
|
id: id,
|
|
99
100
|
onChange: handleChange,
|
|
100
101
|
disabled: removeEvent,
|
|
101
102
|
checked: checked,
|
|
102
103
|
getRef: handleGetRef,
|
|
103
104
|
dataId: dataId,
|
|
104
|
-
getContainerRef: getContainerRef
|
|
105
|
-
|
|
106
|
-
})), !isDirectCol && /*#__PURE__*/React.createElement(Box, {
|
|
105
|
+
getContainerRef: getContainerRef
|
|
106
|
+
}, CheckBoxProps))), !isDirectCol && /*#__PURE__*/React.createElement(Box, {
|
|
107
107
|
flexible: true
|
|
108
|
-
}, labelElement)), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
|
|
108
|
+
}, labelElement)), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
|
|
109
109
|
text: validationMessage,
|
|
110
110
|
palette: validationPalette,
|
|
111
111
|
type: errorType,
|
|
112
|
-
dataId: `${dataId}_ValidationMessage
|
|
113
|
-
|
|
114
|
-
}), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
|
|
112
|
+
dataId: `${dataId}_ValidationMessage`
|
|
113
|
+
}, ValidationMessageProps1)), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
|
|
115
114
|
text: validationRuleMessage,
|
|
116
115
|
palette: validationRulePalette,
|
|
117
116
|
type: errorType,
|
|
118
|
-
dataId: `${dataId}_ValidationRuleMessage
|
|
119
|
-
|
|
120
|
-
})));
|
|
117
|
+
dataId: `${dataId}_ValidationRuleMessage`
|
|
118
|
+
}, ValidationMessageProps2))));
|
|
121
119
|
}
|
|
122
120
|
|
|
123
121
|
CheckBoxField.propTypes = propTypes;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
/**** Libraries ****/
|
|
2
4
|
import React, { memo, useRef, useState } from 'react';
|
|
3
5
|
import { defaultProps } from './props/defaultProps';
|
|
@@ -101,17 +103,16 @@ function CurrencyField(props) {
|
|
|
101
103
|
isLocked: isLocked,
|
|
102
104
|
lockedInfoText: lockedInfoText,
|
|
103
105
|
renderProps: renderLabelProps
|
|
104
|
-
}, /*#__PURE__*/React.createElement(Label, {
|
|
106
|
+
}, /*#__PURE__*/React.createElement(Label, _extends({
|
|
105
107
|
text: labelName,
|
|
106
108
|
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
107
109
|
palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
|
|
108
110
|
customClass: `${style.fieldLabel} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
|
|
109
111
|
htmlFor: uniqueId,
|
|
110
|
-
dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label
|
|
111
|
-
|
|
112
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
112
|
+
dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`
|
|
113
|
+
}, LabelProps))), /*#__PURE__*/React.createElement("div", {
|
|
113
114
|
className: `${style.fieldContainer} ${labelName ? style[`fieldMargin_${fieldSize}`] : ''}`
|
|
114
|
-
}, /*#__PURE__*/React.createElement(TextBox, {
|
|
115
|
+
}, /*#__PURE__*/React.createElement(TextBox, _extends({
|
|
115
116
|
htmlId: uniqueId,
|
|
116
117
|
id: id,
|
|
117
118
|
type: textBoxType,
|
|
@@ -131,23 +132,20 @@ function CurrencyField(props) {
|
|
|
131
132
|
isDisabled: isDisabled,
|
|
132
133
|
needEffect: isReadOnly || isDisabled ? false : true,
|
|
133
134
|
isClickable: isClickable,
|
|
134
|
-
needReadOnlyStyle: needReadOnlyStyle
|
|
135
|
-
|
|
136
|
-
}), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
|
|
135
|
+
needReadOnlyStyle: needReadOnlyStyle
|
|
136
|
+
}, TextBoxProps)), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
|
|
137
137
|
text: validationMessage,
|
|
138
138
|
palette: validationPalette,
|
|
139
139
|
type: errorType,
|
|
140
140
|
dataId: `${dataId}_ValidationMessage`,
|
|
141
|
-
htmlFor: uniqueId
|
|
142
|
-
|
|
143
|
-
}), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
|
|
141
|
+
htmlFor: uniqueId
|
|
142
|
+
}, ValidationMessageProps1)), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
|
|
144
143
|
text: validationRuleMessage,
|
|
145
144
|
palette: validationRulePalette,
|
|
146
145
|
type: errorType,
|
|
147
146
|
htmlFor: uniqueId,
|
|
148
|
-
dataId: `${dataId}_ValidationRuleMessage
|
|
149
|
-
|
|
150
|
-
})));
|
|
147
|
+
dataId: `${dataId}_ValidationRuleMessage`
|
|
148
|
+
}, ValidationMessageProps2))));
|
|
151
149
|
}
|
|
152
150
|
|
|
153
151
|
CurrencyField.propTypes = propTypes;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
/**** Libraries ****/
|
|
2
4
|
import React, { memo, useEffect, useRef } from 'react';
|
|
3
5
|
import { defaultProps } from './props/defaultProps';
|
|
@@ -101,21 +103,21 @@ function DateField(props) {
|
|
|
101
103
|
isLocked: isLocked,
|
|
102
104
|
lockedInfoText: lockedInfoText,
|
|
103
105
|
renderProps: renderLabelProps
|
|
104
|
-
}, /*#__PURE__*/React.createElement(Label, {
|
|
106
|
+
}, /*#__PURE__*/React.createElement(Label, _extends({
|
|
105
107
|
text: labelName,
|
|
106
108
|
htmlFor: getAriaId,
|
|
107
109
|
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
108
110
|
palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
|
|
109
111
|
onClick: isDisabled || isReadOnly ? null : handleLabelClick,
|
|
110
112
|
customClass: `${style.fieldLabel} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
|
|
111
|
-
dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label
|
|
112
|
-
|
|
113
|
+
dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`
|
|
114
|
+
}, LabelProps, {
|
|
113
115
|
id: labelName
|
|
114
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
116
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
115
117
|
className: `${style.fieldContainer} ${labelName ? style[`fieldMargin_${fieldSize}`] : ''}`
|
|
116
118
|
}, isLocked && lockedValueText ? /*#__PURE__*/React.createElement("div", {
|
|
117
119
|
className: style.lockText
|
|
118
|
-
}, lockedValueText) : /*#__PURE__*/React.createElement(DateWidget, {
|
|
120
|
+
}, lockedValueText) : /*#__PURE__*/React.createElement(DateWidget, _extends({
|
|
119
121
|
textBoxSize: fieldSize === 'medium' ? textBoxSize : 'xsmall',
|
|
120
122
|
textBoxVariant: textBoxVariant,
|
|
121
123
|
isDateTime: isDateTime,
|
|
@@ -133,26 +135,24 @@ function DateField(props) {
|
|
|
133
135
|
isEditable: true,
|
|
134
136
|
htmlId: getAriaId,
|
|
135
137
|
i18nKeys: i18nKeys,
|
|
136
|
-
iconOnHover: iconOnHover
|
|
137
|
-
|
|
138
|
+
iconOnHover: iconOnHover
|
|
139
|
+
}, DateWidgetProps, {
|
|
138
140
|
a11y: {
|
|
139
141
|
ariaLabelledby: labelName
|
|
140
142
|
}
|
|
141
|
-
}), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
|
|
143
|
+
})), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
|
|
142
144
|
text: validationMessage,
|
|
143
145
|
palette: validationPalette,
|
|
144
146
|
type: errorType,
|
|
145
147
|
htmlFor: getAriaId,
|
|
146
|
-
dataId: `${dataId}_ValidationMessage
|
|
147
|
-
|
|
148
|
-
}), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
|
|
148
|
+
dataId: `${dataId}_ValidationMessage`
|
|
149
|
+
}, ValidationMessageProps1)), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
|
|
149
150
|
text: validationRuleMessage,
|
|
150
151
|
palette: validationRulePalette,
|
|
151
152
|
type: errorType,
|
|
152
153
|
htmlFor: getAriaId,
|
|
153
|
-
dataId: `${dataId}_ValidationRuleMessage
|
|
154
|
-
|
|
155
|
-
})));
|
|
154
|
+
dataId: `${dataId}_ValidationRuleMessage`
|
|
155
|
+
}, ValidationMessageProps2))));
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
DateField.propTypes = propTypes;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
/**** Libraries ****/
|
|
2
4
|
import React, { memo, useRef } from 'react';
|
|
3
5
|
import { defaultProps } from './props/defaultProps';
|
|
@@ -120,7 +122,7 @@ function MultiSelectField(props) {
|
|
|
120
122
|
isLocked: isLocked,
|
|
121
123
|
lockedInfoText: lockedInfoText,
|
|
122
124
|
renderProps: renderLabelProps
|
|
123
|
-
}, /*#__PURE__*/React.createElement(Label, {
|
|
125
|
+
}, /*#__PURE__*/React.createElement(Label, _extends({
|
|
124
126
|
text: labelName,
|
|
125
127
|
id: id,
|
|
126
128
|
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
@@ -128,9 +130,8 @@ function MultiSelectField(props) {
|
|
|
128
130
|
,
|
|
129
131
|
customClass: `${style.fieldLabel} ${isMandatory ? style.labelMandatory : ''}`,
|
|
130
132
|
dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
131
|
-
htmlFor: uniqueId
|
|
132
|
-
|
|
133
|
-
})), /*#__PURE__*/React.createElement(MultiSelect, {
|
|
133
|
+
htmlFor: uniqueId
|
|
134
|
+
}, LabelProps))), /*#__PURE__*/React.createElement(MultiSelect, _extends({
|
|
134
135
|
options: options,
|
|
135
136
|
onChange: handleChange,
|
|
136
137
|
selectedOptions: selectedOptions,
|
|
@@ -161,24 +162,22 @@ function MultiSelectField(props) {
|
|
|
161
162
|
i18nKeys: i18nKeys,
|
|
162
163
|
htmlId: uniqueId,
|
|
163
164
|
customChildrenClass: customChildrenClass,
|
|
164
|
-
onFocus: onFocus
|
|
165
|
-
|
|
165
|
+
onFocus: onFocus
|
|
166
|
+
}, MultiSelectProps, {
|
|
166
167
|
ariaLabelledby: uniqueId
|
|
167
|
-
}, children ? children : null), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
|
|
168
|
+
}), children ? children : null), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
|
|
168
169
|
text: validationMessage,
|
|
169
170
|
palette: validationPalette,
|
|
170
171
|
type: errorType,
|
|
171
172
|
dataId: `${dataId}_ValidationMessage`,
|
|
172
|
-
htmlFor: uniqueId
|
|
173
|
-
|
|
174
|
-
}), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
|
|
173
|
+
htmlFor: uniqueId
|
|
174
|
+
}, ValidationMessageProps1)), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
|
|
175
175
|
text: validationRuleMessage,
|
|
176
176
|
palette: validationRulePalette,
|
|
177
177
|
type: errorType,
|
|
178
178
|
dataId: `${dataId}_ValidationRuleMessage`,
|
|
179
|
-
htmlFor: uniqueId
|
|
180
|
-
|
|
181
|
-
}));
|
|
179
|
+
htmlFor: uniqueId
|
|
180
|
+
}, ValidationMessageProps2)));
|
|
182
181
|
}
|
|
183
182
|
|
|
184
183
|
MultiSelectField.propTypes = propTypes;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
/**** Libraries ****/
|
|
2
4
|
import React, { memo, useState, useRef } from 'react';
|
|
3
5
|
import { defaultProps } from './props/defaultProps';
|
|
@@ -104,7 +106,7 @@ function PhoneField(props) {
|
|
|
104
106
|
dataSelectorId: dataSelectorId
|
|
105
107
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
106
108
|
flexible: true
|
|
107
|
-
}, /*#__PURE__*/React.createElement(TextBoxField, {
|
|
109
|
+
}, /*#__PURE__*/React.createElement(TextBoxField, _extends({
|
|
108
110
|
labelName: labelName,
|
|
109
111
|
id: id,
|
|
110
112
|
palette: isMandatory ? 'mandatory' : 'default',
|
|
@@ -131,9 +133,8 @@ function PhoneField(props) {
|
|
|
131
133
|
labelPalette: labelPalette,
|
|
132
134
|
labelCustomClass: labelCustomClass,
|
|
133
135
|
errorType: errorType,
|
|
134
|
-
ePhiData: ePhiData
|
|
135
|
-
|
|
136
|
-
})), /*#__PURE__*/React.createElement(Box, null, isTelephony && value ? /*#__PURE__*/React.createElement(Link, {
|
|
136
|
+
ePhiData: ePhiData
|
|
137
|
+
}, TextBoxFieldProps))), /*#__PURE__*/React.createElement(Box, null, isTelephony && value ? /*#__PURE__*/React.createElement(Link, _extends({
|
|
137
138
|
className: style.phoneIcon,
|
|
138
139
|
callfrom: "phone",
|
|
139
140
|
pbxname: providerName,
|
|
@@ -144,9 +145,8 @@ function PhoneField(props) {
|
|
|
144
145
|
callto: 'RequestPhoneNumber',
|
|
145
146
|
href: true,
|
|
146
147
|
onClick: onCall,
|
|
147
|
-
type: type
|
|
148
|
-
|
|
149
|
-
}, /*#__PURE__*/React.createElement(Icon, {
|
|
148
|
+
type: type
|
|
149
|
+
}, LinkProps), /*#__PURE__*/React.createElement(Icon, {
|
|
150
150
|
name: "ZD-GN-phone",
|
|
151
151
|
size: "14"
|
|
152
152
|
})) : null));
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
/**** Libraries ****/
|
|
2
4
|
import React, { memo } from 'react';
|
|
3
5
|
import { defaultProps } from './props/defaultProps';
|
|
@@ -63,15 +65,14 @@ const RadioField = props => {
|
|
|
63
65
|
className: `${style.container} ${isDisabled ? style.disabled : isReadOnly ? style.readonly : ''}`,
|
|
64
66
|
"data-title": isDisabled ? title : null,
|
|
65
67
|
"data-selector-id": dataSelectorId
|
|
66
|
-
}, labelName && /*#__PURE__*/React.createElement(Label, {
|
|
68
|
+
}, labelName && /*#__PURE__*/React.createElement(Label, _extends({
|
|
67
69
|
text: labelName,
|
|
68
70
|
size: "medium",
|
|
69
71
|
id: id,
|
|
70
72
|
palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : 'default',
|
|
71
73
|
customClass: `${style.fieldLabel} ${isMandatory ? style.labelMandatory : ''}`,
|
|
72
|
-
dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label
|
|
73
|
-
|
|
74
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
74
|
+
dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`
|
|
75
|
+
}, LabelProps)), /*#__PURE__*/React.createElement("div", {
|
|
75
76
|
className: `${style.fieldContainer} ${isBoxStyle ? style.radiosWrapper : ''} ${labelName ? style.fieldMargin_medium : ''} ${style.radioContainer}`
|
|
76
77
|
}, options.map((option, index) => {
|
|
77
78
|
let {
|
|
@@ -85,7 +86,7 @@ const RadioField = props => {
|
|
|
85
86
|
return /*#__PURE__*/React.createElement("span", {
|
|
86
87
|
key: index,
|
|
87
88
|
className: `${!isBoxStyle ? style.radio : ''} ${style.radioWrap}`
|
|
88
|
-
}, /*#__PURE__*/React.createElement(Radio, {
|
|
89
|
+
}, /*#__PURE__*/React.createElement(Radio, _extends({
|
|
89
90
|
id: index,
|
|
90
91
|
value: value,
|
|
91
92
|
name: id,
|
|
@@ -102,8 +103,8 @@ const RadioField = props => {
|
|
|
102
103
|
checked: isChecked,
|
|
103
104
|
dataId: dataId,
|
|
104
105
|
isReadOnly: isReadOnly,
|
|
105
|
-
variant: variant
|
|
106
|
-
|
|
106
|
+
variant: variant
|
|
107
|
+
}, RadioProps, {
|
|
107
108
|
a11y: {
|
|
108
109
|
tabIndex: !!selectedValue ? isChecked ? '0' : '-1' : index === 0 ? '0' : '-1',
|
|
109
110
|
...RadioProps.a11y
|
|
@@ -112,26 +113,23 @@ const RadioField = props => {
|
|
|
112
113
|
customRadioWrap: `${isBoxStyle ? style.radioBox : ''} ${isBoxStyle && isChecked ? style.radioBoxActive : ''}`,
|
|
113
114
|
...RadioProps.customClass
|
|
114
115
|
}
|
|
115
|
-
}, !!infoTooltip ? /*#__PURE__*/React.createElement(Icon, {
|
|
116
|
+
}), !!infoTooltip ? /*#__PURE__*/React.createElement(Icon, _extends({
|
|
116
117
|
name: "ZD-GN-info",
|
|
117
118
|
size: "16",
|
|
118
119
|
title: infoTooltip,
|
|
119
|
-
iconClass: style.infoIcon
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
})), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
|
|
120
|
+
iconClass: style.infoIcon
|
|
121
|
+
}, InfoIconProps)) : null));
|
|
122
|
+
})), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
|
|
123
123
|
text: validationMessage,
|
|
124
124
|
palette: validationPalette,
|
|
125
125
|
type: errorType,
|
|
126
|
-
dataId: `${dataId}_ValidationMessage
|
|
127
|
-
|
|
128
|
-
}), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
|
|
126
|
+
dataId: `${dataId}_ValidationMessage`
|
|
127
|
+
}, ValidationMessageProps1)), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
|
|
129
128
|
text: validationRuleMessage,
|
|
130
129
|
palette: validationRulePalette,
|
|
131
130
|
type: errorType,
|
|
132
|
-
dataId: `${dataId}_ValidationRuleMessage
|
|
133
|
-
|
|
134
|
-
}));
|
|
131
|
+
dataId: `${dataId}_ValidationRuleMessage`
|
|
132
|
+
}, ValidationMessageProps2)));
|
|
135
133
|
};
|
|
136
134
|
|
|
137
135
|
RadioField.propTypes = propTypes;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
/**** Libraries ****/
|
|
2
4
|
import React, { memo } from 'react';
|
|
3
5
|
import { defaultProps } from './props/defaultProps';
|
|
@@ -91,18 +93,18 @@ const SelectField = props => {
|
|
|
91
93
|
isLocked: isLocked,
|
|
92
94
|
lockedInfoText: lockedInfoText,
|
|
93
95
|
renderProps: renderLabelProps
|
|
94
|
-
}, /*#__PURE__*/React.createElement(Label, {
|
|
96
|
+
}, /*#__PURE__*/React.createElement(Label, _extends({
|
|
95
97
|
text: labelName,
|
|
96
98
|
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
97
99
|
palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
|
|
98
100
|
customClass: `${style.fieldLabel} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
|
|
99
101
|
htmlFor: uniqueId,
|
|
100
|
-
dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label
|
|
101
|
-
|
|
102
|
+
dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`
|
|
103
|
+
}, LabelProps, {
|
|
102
104
|
id: uniqueId
|
|
103
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
105
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
104
106
|
className: `${style.fieldContainer} ${labelName ? style[`fieldMargin_${fieldSize}`] : ''} ${fieldClass ? fieldClass : ''}`
|
|
105
|
-
}, /*#__PURE__*/React.createElement(Select, {
|
|
107
|
+
}, /*#__PURE__*/React.createElement(Select, _extends({
|
|
106
108
|
options: options,
|
|
107
109
|
selectedValue: selectedValue,
|
|
108
110
|
onChange: handleChange,
|
|
@@ -131,24 +133,22 @@ const SelectField = props => {
|
|
|
131
133
|
needLocalSearch: needLocalSearch,
|
|
132
134
|
isDefaultSelectValue: isDefaultSelectValue,
|
|
133
135
|
placeHolder: placeHolder,
|
|
134
|
-
iconOnHover: iconOnHover
|
|
135
|
-
|
|
136
|
+
iconOnHover: iconOnHover
|
|
137
|
+
}, SelectProps, {
|
|
136
138
|
ariaLabelledby: uniqueId
|
|
137
|
-
}, children ? children : null)), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
|
|
139
|
+
}), children ? children : null)), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
|
|
138
140
|
text: validationMessage,
|
|
139
141
|
palette: validationPalette,
|
|
140
142
|
type: errorType,
|
|
141
143
|
htmlFor: uniqueId,
|
|
142
|
-
dataId: `${dataId}_ValidationMessage
|
|
143
|
-
|
|
144
|
-
}), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
|
|
144
|
+
dataId: `${dataId}_ValidationMessage`
|
|
145
|
+
}, ValidationMessageProps1)), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
|
|
145
146
|
text: validationRuleMessage,
|
|
146
147
|
palette: validationRulePalette,
|
|
147
148
|
type: errorType,
|
|
148
149
|
htmlFor: uniqueId,
|
|
149
|
-
dataId: `${dataId}_ValidationRuleMessage
|
|
150
|
-
|
|
151
|
-
}));
|
|
150
|
+
dataId: `${dataId}_ValidationRuleMessage`
|
|
151
|
+
}, ValidationMessageProps2)));
|
|
152
152
|
};
|
|
153
153
|
|
|
154
154
|
SelectField.propTypes = propTypes;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
import React from 'react';
|
|
2
4
|
import { defaultProps } from './props/defaultProps';
|
|
3
5
|
import { propTypes } from './props/propTypes';
|
|
@@ -185,12 +187,10 @@ export default class TagsMultiSelect extends React.Component {
|
|
|
185
187
|
boxCustomProps,
|
|
186
188
|
tagCustomProps
|
|
187
189
|
} = tag;
|
|
188
|
-
return index < chipLimit ? /*#__PURE__*/React.createElement(Box, {
|
|
190
|
+
return index < chipLimit ? /*#__PURE__*/React.createElement(Box, _extends({
|
|
189
191
|
className: style.tag,
|
|
190
|
-
key: index
|
|
191
|
-
|
|
192
|
-
...boxCustomProps
|
|
193
|
-
}, /*#__PURE__*/React.createElement(Tag, {
|
|
192
|
+
key: index
|
|
193
|
+
}, TagWrapperProps, boxCustomProps), /*#__PURE__*/React.createElement(Tag, _extends({
|
|
194
194
|
id: id,
|
|
195
195
|
text: name,
|
|
196
196
|
onRemove: isReadOnly ? null : deleteTag.bind(this, name),
|
|
@@ -198,10 +198,8 @@ export default class TagsMultiSelect extends React.Component {
|
|
|
198
198
|
palette: clickableTag ? 'defaultLink' : tagType === 'SYSTEM' ? 'primary' : 'default',
|
|
199
199
|
isReadOnly: isReadOnly,
|
|
200
200
|
onSelectTag: onSelectTag ? onSelectTag : undefined,
|
|
201
|
-
customClass: tagCustomClass
|
|
202
|
-
|
|
203
|
-
...tagCustomProps
|
|
204
|
-
})) : null;
|
|
201
|
+
customClass: tagCustomClass
|
|
202
|
+
}, TagProps, tagCustomProps))) : null;
|
|
205
203
|
}), tagsList.length > chipNeedToShow && !isPopupReady ? /*#__PURE__*/React.createElement(Box, {
|
|
206
204
|
className: style.moreLess,
|
|
207
205
|
dataId: `${dataId}_tagsMore`,
|
|
@@ -213,7 +211,7 @@ export default class TagsMultiSelect extends React.Component {
|
|
|
213
211
|
className: style.inputWrapper
|
|
214
212
|
}, /*#__PURE__*/React.createElement("span", {
|
|
215
213
|
className: style.custmSpan
|
|
216
|
-
}, name), /*#__PURE__*/React.createElement(TextBoxIcon, {
|
|
214
|
+
}, name), /*#__PURE__*/React.createElement(TextBoxIcon, _extends({
|
|
217
215
|
htmlId: htmlId,
|
|
218
216
|
dataId: `${dataId}_tagInp`,
|
|
219
217
|
value: name,
|
|
@@ -229,9 +227,8 @@ export default class TagsMultiSelect extends React.Component {
|
|
|
229
227
|
customTextBox: style.input
|
|
230
228
|
},
|
|
231
229
|
size: "xsmall",
|
|
232
|
-
inputRef: this.textInputRef
|
|
233
|
-
|
|
234
|
-
}, getTextBoxChildren ? getTextBoxChildren() : null))), isPopupOpen ? /*#__PURE__*/React.createElement(ResponsiveReceiver, {
|
|
230
|
+
inputRef: this.textInputRef
|
|
231
|
+
}, TextBoxIconProps), getTextBoxChildren ? getTextBoxChildren() : null))), isPopupOpen ? /*#__PURE__*/React.createElement(ResponsiveReceiver, {
|
|
235
232
|
query: this.responsiveFunc,
|
|
236
233
|
responsiveId: "Helmet"
|
|
237
234
|
}, _ref2 => {
|