@zohodesk/components 1.0.0-alpha-229 → 1.0.0-alpha-232
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 +12 -0
- package/es/Avatar/Avatar.js +1 -1
- package/es/DropBox/DropBox.js +1 -1
- package/es/ListItem/ListContainer.js +19 -2
- package/es/ListItem/ListItem.module.css +8 -3
- package/es/MultiSelect/AdvancedGroupMultiSelect.js +1 -1
- package/es/MultiSelect/AdvancedMultiSelect.js +1 -1
- package/es/MultiSelect/MultiSelect.js +12 -9
- package/es/MultiSelect/MultiSelectWithAvatar.js +1 -1
- package/es/Responsive/sizeObservers.js +8 -1
- package/es/Select/GroupSelect.js +1 -1
- package/es/Select/Select.js +4 -5
- package/es/Select/SelectWithAvatar.js +1 -1
- package/es/Select/SelectWithIcon.js +1 -1
- package/es/TextBoxIcon/TextBoxIcon.js +1 -1
- package/lib/Accordion/Accordion.js +1 -1
- package/lib/Accordion/AccordionItem.js +1 -1
- package/lib/Animation/Animation.js +1 -1
- package/lib/AppContainer/AppContainer.js +1 -1
- package/lib/Avatar/Avatar.js +2 -2
- package/lib/AvatarTeam/AvatarTeam.js +1 -1
- package/lib/Button/Button.js +1 -1
- package/lib/Buttongroup/Buttongroup.js +1 -1
- package/lib/Card/Card.js +1 -1
- package/lib/CheckBox/CheckBox.js +1 -1
- package/lib/DateTime/CalendarView.js +1 -1
- package/lib/DateTime/DateTime.js +1 -1
- package/lib/DateTime/DateTimePopupFooter.js +1 -1
- package/lib/DateTime/DateTimePopupHeader.js +1 -1
- package/lib/DateTime/DateWidget.js +1 -1
- package/lib/DateTime/DaysRow.js +1 -1
- package/lib/DateTime/Time.js +1 -1
- package/lib/DateTime/YearView.js +1 -1
- package/lib/DropBox/DropBox.js +2 -2
- package/lib/DropDown/DropDown.js +1 -1
- package/lib/DropDown/DropDownHeading.js +1 -1
- package/lib/DropDown/DropDownItem.js +1 -1
- package/lib/DropDown/DropDownSearch.js +1 -1
- package/lib/DropDown/DropDownSeparator.js +1 -1
- package/lib/Label/Label.js +1 -1
- package/lib/ListItem/ListContainer.js +25 -2
- package/lib/ListItem/ListItem.js +1 -1
- package/lib/ListItem/ListItem.module.css +8 -3
- package/lib/ListItem/ListItemWithAvatar.js +1 -1
- package/lib/ListItem/ListItemWithCheckBox.js +1 -1
- package/lib/ListItem/ListItemWithIcon.js +1 -1
- package/lib/ListItem/ListItemWithRadio.js +1 -1
- package/lib/Modal/Modal.js +1 -1
- package/lib/Modal/__docs__/Modal__default.docs.js +1 -1
- package/lib/MultiSelect/AdvancedGroupMultiSelect.js +2 -2
- package/lib/MultiSelect/AdvancedMultiSelect.js +2 -2
- package/lib/MultiSelect/EmptyState.js +1 -1
- package/lib/MultiSelect/MultiSelect.js +13 -10
- package/lib/MultiSelect/MultiSelectHeader.js +1 -1
- package/lib/MultiSelect/MultiSelectWithAvatar.js +2 -2
- package/lib/MultiSelect/SelectedOptions.js +1 -1
- package/lib/MultiSelect/Suggestions.js +1 -1
- package/lib/PopOver/PopOver.js +1 -1
- package/lib/Popup/Popup.js +1 -1
- package/lib/Popup/__tests__/Popup.spec.js +1 -1
- package/lib/Provider.js +1 -1
- package/lib/Radio/Radio.js +1 -1
- package/lib/Responsive/ResizeComponent.js +1 -1
- package/lib/Responsive/Responsive.js +1 -1
- package/lib/Responsive/sizeObservers.js +9 -2
- package/lib/Ribbon/Ribbon.js +1 -1
- package/lib/Select/GroupSelect.js +2 -2
- package/lib/Select/Select.js +5 -6
- package/lib/Select/SelectWithAvatar.js +2 -2
- package/lib/Select/SelectWithIcon.js +2 -2
- package/lib/Stencils/Stencils.js +1 -1
- package/lib/Switch/Switch.js +1 -1
- package/lib/Tab/Tabs.js +1 -1
- package/lib/Tag/Tag.js +1 -1
- package/lib/TextBox/TextBox.js +1 -1
- package/lib/TextBoxIcon/TextBoxIcon.js +2 -2
- package/lib/Textarea/Textarea.js +1 -1
- package/lib/Tooltip/Tooltip.js +1 -1
- package/lib/Tooltip/__tests__/Tooltip.spec.js +1 -1
- package/lib/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +1 -1
- package/lib/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +1 -1
- package/lib/deprecated/PortalLayer/PortalLayer.js +1 -1
- package/lib/semantic/Button/Button.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -32,6 +32,18 @@ In this Package, we Provide Some Basic Components to Build Web App
|
|
|
32
32
|
- TextBoxIcon
|
|
33
33
|
- Tooltip
|
|
34
34
|
|
|
35
|
+
# 1.0.0-alpha-232
|
|
36
|
+
|
|
37
|
+
- ListContainer => Mobile Responsive Implemented
|
|
38
|
+
# 1.0.0-alpha-231
|
|
39
|
+
|
|
40
|
+
- DropBox - Position Undefined Issue Solved
|
|
41
|
+
|
|
42
|
+
# 1.0.0-alpha-230
|
|
43
|
+
|
|
44
|
+
- Avatar, AdvancedGroupMultiSelect, AdvancedMultiSelect, MultiSelect, MultiSelectWithAvatar, GroupSelect, Select, SelectWithAvatar, SelectWithIcon, TextBoxIcon => Tooltip undefined case solved
|
|
45
|
+
- Select , MultiSelect => boxSize prop added
|
|
46
|
+
|
|
35
47
|
# 1.0.0-alpha-229
|
|
36
48
|
|
|
37
49
|
- MultiSelect, AdvancedMultiSelect => disabledOption Clear icon handled properly
|
package/es/Avatar/Avatar.js
CHANGED
|
@@ -145,7 +145,7 @@ export default class Avatar extends React.Component {
|
|
|
145
145
|
borderStyle = showAlternateAvatar ? '' : borderStyle;
|
|
146
146
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
147
147
|
className: `${style.avatar} ${style[size]} ${AvatarSize(size)} ${style[shapeStyle]} ${style[palette]} ${textStyle} ${borderStyle} ${customClass ? customClass : ''}`,
|
|
148
|
-
"data-title": needTitle ? title ? title : name :
|
|
148
|
+
"data-title": needTitle ? title ? title : name : null,
|
|
149
149
|
"data-id": dataId,
|
|
150
150
|
onClick: onClick
|
|
151
151
|
}, AvatarProps), showInitial && !showAlternateAvatar && /*#__PURE__*/React.createElement("span", {
|
package/es/DropBox/DropBox.js
CHANGED
|
@@ -117,7 +117,7 @@ export class DropBoxElement extends React.Component {
|
|
|
117
117
|
} : {};
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
-
boxPosition = boxPosition ? boxPosition : 'bottomCenter';
|
|
120
|
+
boxPosition = boxPosition && boxPosition != 'undefined' ? boxPosition : 'bottomCenter';
|
|
121
121
|
const boxDirection = positionMapping[boxPosition].direction;
|
|
122
122
|
/*getting box direction*/
|
|
123
123
|
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
function _extends() { _extends = Object.assign || 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
2
|
|
|
3
3
|
/**** Libraries ****/
|
|
4
|
-
import React from 'react';
|
|
4
|
+
import React, { useCallback } from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import { Container } from '../Layout';
|
|
7
7
|
import CssProvider from '../Provider/CssProvider';
|
|
8
8
|
import style from './ListItem.module.css';
|
|
9
|
+
import { useResponsiveReceiver } from '../Responsive/CustomResponsive';
|
|
9
10
|
|
|
10
11
|
const ListContainer = props => {
|
|
11
12
|
const {
|
|
@@ -32,6 +33,22 @@ const ListContainer = props => {
|
|
|
32
33
|
onMouseOver,
|
|
33
34
|
eleRef
|
|
34
35
|
} = props;
|
|
36
|
+
const responsiveFunc = useCallback(_ref => {
|
|
37
|
+
let {
|
|
38
|
+
mediaQueryOR,
|
|
39
|
+
isTouchDevice
|
|
40
|
+
} = _ref;
|
|
41
|
+
return {
|
|
42
|
+
mobileToTab: mediaQueryOR([{
|
|
43
|
+
maxWidth: 700
|
|
44
|
+
}]),
|
|
45
|
+
isTouchDevice: isTouchDevice
|
|
46
|
+
};
|
|
47
|
+
}, []);
|
|
48
|
+
const {
|
|
49
|
+
mobileToTab,
|
|
50
|
+
isTouchDevice
|
|
51
|
+
} = useResponsiveReceiver('Helmet', responsiveFunc);
|
|
35
52
|
const {
|
|
36
53
|
role,
|
|
37
54
|
ariaSelected
|
|
@@ -57,7 +74,7 @@ const ListContainer = props => {
|
|
|
57
74
|
isCover: false,
|
|
58
75
|
align: "vertical",
|
|
59
76
|
alignBox: "row",
|
|
60
|
-
className: `${style.list} ${style[size]} ${style[palette]} ${active ? style[`active${palette}`] : highlight && !isDisabled ? style[`${palette}Hover`] : ''} ${autoHover && !isDisabled ? style[`${palette}Effect`] : ''} ${needTick ? style[`${size}withTick`] : ''} ${isDisabled ? CssProvider('isDisable') : ''} ${needBorder ? active ? style.activewithBorder : style.withBorder : ''} ${customClass}`,
|
|
77
|
+
className: `${style.list} ${style[size]} ${mobileToTab && isTouchDevice ? style.responsiveHeight : ''} ${style[palette]} ${active ? style[`active${palette}`] : highlight && !isDisabled ? style[`${palette}Hover`] : ''} ${autoHover && !isDisabled ? style[`${palette}Effect`] : ''} ${needTick ? style[`${size}withTick`] : ''} ${isDisabled ? CssProvider('isDisable') : ''} ${needBorder ? active ? style.activewithBorder : style.withBorder : ''} ${customClass}`,
|
|
61
78
|
dataId: dataId,
|
|
62
79
|
onClick: !isDisabled && onClick,
|
|
63
80
|
onMouseEnter: onMouseEnter,
|
|
@@ -70,7 +70,6 @@
|
|
|
70
70
|
[dir=rtl] .large {
|
|
71
71
|
--listitem_padding: var(--zd_size10) var(--zd_size25) var(--zd_size10) var(--zd_size3);
|
|
72
72
|
}
|
|
73
|
-
|
|
74
73
|
.value,
|
|
75
74
|
.children {
|
|
76
75
|
composes: dotted from '../common/common.module.css';
|
|
@@ -185,10 +184,10 @@
|
|
|
185
184
|
[dir=ltr] .mediumwithTick {
|
|
186
185
|
--listitem_padding: var(--zd_size9) var(--zd_size39) var(--zd_size9)
|
|
187
186
|
var(--zd_size20)
|
|
188
|
-
/*rtl: var(--zd_size9) var(--zd_size20) var(--zd_size9) var(--
|
|
187
|
+
/*rtl: var(--zd_size9) var(--zd_size20) var(--zd_size9) var(--zd_size39)*/;
|
|
189
188
|
}
|
|
190
189
|
[dir=rtl] .mediumwithTick {
|
|
191
|
-
--listitem_padding: var(--zd_size9) var(--zd_size20) var(--zd_size9) var(--
|
|
190
|
+
--listitem_padding: var(--zd_size9) var(--zd_size20) var(--zd_size9) var(--zd_size39);
|
|
192
191
|
}
|
|
193
192
|
[dir=ltr] .largewithTick {
|
|
194
193
|
--listitem_padding: var(--zd_size10) var(--zd_size39) var(--zd_size10)
|
|
@@ -198,3 +197,9 @@
|
|
|
198
197
|
[dir=rtl] .largewithTick {
|
|
199
198
|
--listitem_padding: var(--zd_size10) var(--zd_size25) var(--zd_size10) var(--zd_size39);
|
|
200
199
|
}
|
|
200
|
+
.responsiveHeight {
|
|
201
|
+
--listitem_height: var(--zd_size45);
|
|
202
|
+
font-size: var(--zd_font_size15);
|
|
203
|
+
padding-top: var(--zd_size10);
|
|
204
|
+
padding-bottom: var(--zd_size10);
|
|
205
|
+
}
|
|
@@ -887,7 +887,7 @@ class AdvancedGroupMultiSelect extends React.Component {
|
|
|
887
887
|
return /*#__PURE__*/React.createElement("div", {
|
|
888
888
|
className: `${style.wrapper} ${isDisabled ? style.disabled : ''} ${needEffect && !(isDisabled || isReadOnly) ? style.effect : ''}`,
|
|
889
889
|
"data-id": `${isDisabled ? `${dataId}_disabled` : isReadOnly ? `${dataId}_readOnly` : dataId}`,
|
|
890
|
-
"data-title": isDisabled ? title :
|
|
890
|
+
"data-title": isDisabled ? title : null,
|
|
891
891
|
onClick: this.handleInputFocus
|
|
892
892
|
}, children ? /*#__PURE__*/React.createElement(Container, {
|
|
893
893
|
align: "vertical",
|
|
@@ -396,7 +396,7 @@ export class AdvancedMultiSelectComponent extends MultiSelectComponent {
|
|
|
396
396
|
return /*#__PURE__*/React.createElement("div", {
|
|
397
397
|
className: `${style.wrapper} ${isDisabled ? style.disabled : ''} ${borderColor === 'transparent' ? style.transparentContainer : ''} ${needEffect && !(isDisabled || isReadOnly) ? style.effect : ''}`,
|
|
398
398
|
"data-id": dataIdMultiSelectComp,
|
|
399
|
-
"data-title": isDisabled ? title :
|
|
399
|
+
"data-title": isDisabled ? title : null,
|
|
400
400
|
onClick: this.handleInputFocus
|
|
401
401
|
}, /*#__PURE__*/React.createElement(Container, {
|
|
402
402
|
align: "vertical",
|
|
@@ -741,7 +741,7 @@ export class MultiSelectComponent extends React.Component {
|
|
|
741
741
|
defaultDropBoxPosition,
|
|
742
742
|
isReadOnly
|
|
743
743
|
} = this.props;
|
|
744
|
-
!isReadOnly && togglePopup(e, defaultDropBoxPosition ? `${defaultDropBoxPosition}
|
|
744
|
+
!isReadOnly && togglePopup(e, defaultDropBoxPosition ? `${defaultDropBoxPosition}` : null);
|
|
745
745
|
}
|
|
746
746
|
|
|
747
747
|
handlePopupClose(e) {
|
|
@@ -873,7 +873,8 @@ export class MultiSelectComponent extends React.Component {
|
|
|
873
873
|
customChildrenClass,
|
|
874
874
|
getFooter,
|
|
875
875
|
needEffect,
|
|
876
|
-
disabledOptions
|
|
876
|
+
disabledOptions,
|
|
877
|
+
boxSize
|
|
877
878
|
} = this.props;
|
|
878
879
|
const {
|
|
879
880
|
clearText = 'Clear all',
|
|
@@ -909,7 +910,7 @@ export class MultiSelectComponent extends React.Component {
|
|
|
909
910
|
return /*#__PURE__*/React.createElement("div", {
|
|
910
911
|
className: `${style.wrapper} ${isDisabled ? style.disabled : ''} ${isReadOnly ? style.readOnly : ''} ${disableAction ? CssProvider('isBlock') : ''} ${borderColor === 'transparent' ? style.transparentContainer : ''} ${needEffect && !(isDisabled || isReadOnly) ? style.effect : ''}`,
|
|
911
912
|
"data-id": `${isDisabled ? `${dataId}_disabled` : isReadOnly ? `${dataId}_readOnly` : dataId}`,
|
|
912
|
-
"data-title": isDisabled ? title :
|
|
913
|
+
"data-title": isDisabled ? title : null,
|
|
913
914
|
onClick: this.handleInputFocus
|
|
914
915
|
}, /*#__PURE__*/React.createElement(Container, {
|
|
915
916
|
align: "vertical",
|
|
@@ -982,7 +983,7 @@ export class MultiSelectComponent extends React.Component {
|
|
|
982
983
|
dataId: `${dataId}_children`
|
|
983
984
|
}, children) : null)))), !isReadOnly && !isDisabled && !disableAction && isPopupOpen ? /*#__PURE__*/React.createElement(DropBox, {
|
|
984
985
|
animationStyle: animationStyle,
|
|
985
|
-
boxPosition: position || `${defaultDropBoxPosition}
|
|
986
|
+
boxPosition: position || `${defaultDropBoxPosition}`,
|
|
986
987
|
getRef: getContainerRef,
|
|
987
988
|
isActive: isPopupReady,
|
|
988
989
|
isAnimate: isAnimate,
|
|
@@ -996,7 +997,8 @@ export class MultiSelectComponent extends React.Component {
|
|
|
996
997
|
a11y: {
|
|
997
998
|
role: 'listbox',
|
|
998
999
|
ariaMultiselectable: true
|
|
999
|
-
}
|
|
1000
|
+
},
|
|
1001
|
+
size: boxSize
|
|
1000
1002
|
}, /*#__PURE__*/React.createElement(Card, {
|
|
1001
1003
|
customClass: `${style.box} ${style[`${palette}Box`]}`,
|
|
1002
1004
|
onScroll: this.handleScroll
|
|
@@ -1041,7 +1043,7 @@ MultiSelectComponent.propTypes = {
|
|
|
1041
1043
|
borderColor: PropTypes.oneOf(['transparent', 'default', 'dark']),
|
|
1042
1044
|
closePopupOnly: PropTypes.func,
|
|
1043
1045
|
dataId: PropTypes.string,
|
|
1044
|
-
defaultDropBoxPosition: PropTypes.
|
|
1046
|
+
defaultDropBoxPosition: PropTypes.string,
|
|
1045
1047
|
disableAction: PropTypes.bool,
|
|
1046
1048
|
dropBoxSize: PropTypes.oneOf(['small', 'medium', 'large']),
|
|
1047
1049
|
emptyMessage: PropTypes.string.isRequired,
|
|
@@ -1112,12 +1114,12 @@ MultiSelectComponent.propTypes = {
|
|
|
1112
1114
|
customChildrenClass: PropTypes.string,
|
|
1113
1115
|
disabledOptions: PropTypes.arrayOf(PropTypes.string),
|
|
1114
1116
|
getFooter: PropTypes.func,
|
|
1115
|
-
needEffect: PropTypes.bool
|
|
1117
|
+
needEffect: PropTypes.bool,
|
|
1118
|
+
boxSize: PropTypes.string
|
|
1116
1119
|
};
|
|
1117
1120
|
MultiSelectComponent.defaultProps = {
|
|
1118
1121
|
animationStyle: 'bounce',
|
|
1119
1122
|
dataId: 'multiSelect',
|
|
1120
|
-
defaultDropBoxPosition: 'bottom',
|
|
1121
1123
|
dropBoxSize: 'small',
|
|
1122
1124
|
isAnimate: true,
|
|
1123
1125
|
isDisabled: false,
|
|
@@ -1143,7 +1145,8 @@ MultiSelectComponent.defaultProps = {
|
|
|
1143
1145
|
textBoxClass: '',
|
|
1144
1146
|
palette: 'default',
|
|
1145
1147
|
isSearchClearOnSelect: true,
|
|
1146
|
-
needEffect: true
|
|
1148
|
+
needEffect: true,
|
|
1149
|
+
boxSize: 'default'
|
|
1147
1150
|
};
|
|
1148
1151
|
|
|
1149
1152
|
if (false) {
|
|
@@ -118,7 +118,7 @@ class MultiSelectWithAvatarComponent extends MultiSelectComponent {
|
|
|
118
118
|
return /*#__PURE__*/React.createElement("div", {
|
|
119
119
|
className: ` ${style.wrapper} ${isDisabled ? style.disabled : ''} ${isReadOnly ? style.readOnly : ''} ${disableAction ? CssProvider('isBlock') : ''} ${borderColor === 'transparent' ? style.transparentContainer : ''} ${needEffect && !(isDisabled || isReadOnly) ? style.effect : ''}`,
|
|
120
120
|
"data-id": `${isDisabled ? `${dataId}_disabled` : isReadOnly ? `${dataId}_readOnly` : dataId}`,
|
|
121
|
-
"data-title": isDisabled ? title :
|
|
121
|
+
"data-title": isDisabled ? title : null,
|
|
122
122
|
onClick: this.handleInputFocus
|
|
123
123
|
}, /*#__PURE__*/React.createElement(Container, {
|
|
124
124
|
align: "vertical",
|
|
@@ -25,7 +25,14 @@ function rangeCheck(minValue, maxValue, screenValue) {
|
|
|
25
25
|
return minValue <= screenValue && maxValue >= screenValue;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
function isTouchDeviceFunc() {
|
|
29
|
+
// return window.matchMedia("(pointer: coarse)").matches
|
|
30
|
+
return 'ontouchstart' in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0;
|
|
31
|
+
} // export const isTouchDevice =
|
|
32
|
+
// 'ontouchstart' in window && navigator.userAgent.match(/mobi/i) ? true : false;
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
export const isTouchDevice = isTouchDeviceFunc();
|
|
29
36
|
export function isBreackPointMatched(object, screen) {
|
|
30
37
|
if (!isValideBreakPoint(object)) {
|
|
31
38
|
// eslint-disable-next-line no-console
|
package/es/Select/GroupSelect.js
CHANGED
|
@@ -599,7 +599,7 @@ export class GroupSelectComponent extends PureComponent {
|
|
|
599
599
|
return /*#__PURE__*/React.createElement("div", {
|
|
600
600
|
className: `${style.container} ${style[`box_${size}`]} ${isReadOnly ? style.readonly : ''} ${borderColor === 'transparent' ? style.transparentContainer : ''} ${iconOnHover && (isReadOnly || isDisabled) ? style.iconOnHoverReadonly : iconOnHover && !(isReadOnly || isDisabled) ? style.iconOnHoverStyle : ''}`,
|
|
601
601
|
"data-id": dataIdSlctComp,
|
|
602
|
-
"data-title": isDisabled ? title :
|
|
602
|
+
"data-title": isDisabled ? title : null
|
|
603
603
|
}, /*#__PURE__*/React.createElement("div", {
|
|
604
604
|
className: `${className ? className : ''}`,
|
|
605
605
|
onClick: isDisabled || isReadOnly ? null : this.togglePopup,
|
package/es/Select/Select.js
CHANGED
|
@@ -507,7 +507,7 @@ export class SelectComponent extends Component {
|
|
|
507
507
|
onFocus,
|
|
508
508
|
isPopupOpen
|
|
509
509
|
} = this.props;
|
|
510
|
-
!isReadOnly && togglePopup(e, defaultDropBoxPosition ? `${defaultDropBoxPosition}
|
|
510
|
+
!isReadOnly && togglePopup(e, defaultDropBoxPosition ? `${defaultDropBoxPosition}` : null);
|
|
511
511
|
!isPopupOpen && typeof onFocus === 'function' && onFocus(e);
|
|
512
512
|
}
|
|
513
513
|
|
|
@@ -743,7 +743,7 @@ export class SelectComponent extends Component {
|
|
|
743
743
|
} = customProps;
|
|
744
744
|
return /*#__PURE__*/React.createElement("div", {
|
|
745
745
|
className: `${isParentBased || isReadOnly || isDisabled ? style.container : ''} ${style[`box_${size}`]} ${isReadOnly ? style.readonly : ''} ${borderColor === 'transparent' ? style.transparentContainer : ''} ${iconOnHover && (isReadOnly || isDisabled) ? style.iconOnHoverReadonly : iconOnHover && !(isReadOnly || isDisabled) ? style.iconOnHoverStyle : ''}`,
|
|
746
|
-
"data-title": isDisabled ? title :
|
|
746
|
+
"data-title": isDisabled ? title : null
|
|
747
747
|
}, /*#__PURE__*/React.createElement("div", {
|
|
748
748
|
className: `${className ? className : ''}`,
|
|
749
749
|
onClick: isDisabled || isReadOnly ? null : this.togglePopup,
|
|
@@ -835,7 +835,7 @@ export class SelectComponent extends Component {
|
|
|
835
835
|
customProps: TextBoxProps
|
|
836
836
|
})), !isReadOnly && !isDisabled && isPopupOpen ? /*#__PURE__*/React.createElement(DropBox, {
|
|
837
837
|
animationStyle: animationStyle,
|
|
838
|
-
boxPosition: position || `${defaultDropBoxPosition}
|
|
838
|
+
boxPosition: position || `${defaultDropBoxPosition}`,
|
|
839
839
|
getRef: getContainerRef,
|
|
840
840
|
isActive: isPopupReady,
|
|
841
841
|
isAnimate: true,
|
|
@@ -912,7 +912,7 @@ SelectComponent.propTypes = {
|
|
|
912
912
|
className: PropTypes.string,
|
|
913
913
|
closePopupOnly: PropTypes.func,
|
|
914
914
|
dataId: PropTypes.string,
|
|
915
|
-
defaultDropBoxPosition: PropTypes.
|
|
915
|
+
defaultDropBoxPosition: PropTypes.string,
|
|
916
916
|
dropBoxSize: PropTypes.oneOf(['small', 'medium', 'large']),
|
|
917
917
|
emptyMessage: PropTypes.string,
|
|
918
918
|
excludeOptions: PropTypes.array,
|
|
@@ -992,7 +992,6 @@ SelectComponent.defaultProps = {
|
|
|
992
992
|
animationStyle: 'bounce',
|
|
993
993
|
autoSelectOnType: true,
|
|
994
994
|
dataId: 'selectComponent',
|
|
995
|
-
defaultDropBoxPosition: 'bottom',
|
|
996
995
|
dropBoxSize: 'small',
|
|
997
996
|
isDefaultSelectValue: true,
|
|
998
997
|
isDisabled: false,
|
|
@@ -167,7 +167,7 @@ class SelectWithAvatarComponent extends SelectComponent {
|
|
|
167
167
|
return /*#__PURE__*/React.createElement("div", {
|
|
168
168
|
className: `${style.wrapper} ${isDisabled ? style.disabled : ''} ${isReadOnly ? style.readOnly : ''} ${needEffect && !(isDisabled || isReadOnly) ? style.effect : ''} ${className ? className : ''}`,
|
|
169
169
|
"data-id": `${isDisabled ? `${dataId}_disabled` : isReadOnly ? `${dataId}_readOnly` : dataId}`,
|
|
170
|
-
"data-title": isDisabled ? title :
|
|
170
|
+
"data-title": isDisabled ? title : null
|
|
171
171
|
}, /*#__PURE__*/React.createElement(Container, {
|
|
172
172
|
align: "vertical",
|
|
173
173
|
alignBox: "row",
|
|
@@ -289,7 +289,7 @@ class SelectWithIcon extends Component {
|
|
|
289
289
|
let ariaErrorId = this.getNextAriaId();
|
|
290
290
|
return /*#__PURE__*/React.createElement("div", {
|
|
291
291
|
className: `${style.container} ${style[`box_${size}`]} ${isReadOnly ? style.readonly : ''} ${borderColor === 'transparent' ? style.transparentContainer : ''}`,
|
|
292
|
-
"data-title": isDisabled ? title :
|
|
292
|
+
"data-title": isDisabled ? title : null
|
|
293
293
|
}, /*#__PURE__*/React.createElement("div", {
|
|
294
294
|
className: `${className ? className : ''}`,
|
|
295
295
|
onClick: isDisabled || isReadOnly ? null : this.togglePopup,
|
|
@@ -101,7 +101,7 @@ export default class TextBoxIcon extends React.Component {
|
|
|
101
101
|
alignBox: "row",
|
|
102
102
|
isCover: false,
|
|
103
103
|
className: `${style.container} ${isDisabled ? style.disabled : isReadOnly ? needEffect ? style.effect : style.readonly : style.effect} ${isActive || isFocus ? style.effectFocused : ''} ${customTBoxWrap} ${iconOnHover && (isReadOnly || isDisabled) ? style.iconOnHoverReadonly : iconOnHover && !(isReadOnly || isDisabled) ? style.iconOnHoverStyle : ''}`,
|
|
104
|
-
"data-title": isDisabled ? title :
|
|
104
|
+
"data-title": isDisabled ? title : null
|
|
105
105
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
106
106
|
flexible: true
|
|
107
107
|
}, /*#__PURE__*/React.createElement(TextBox, _extends({}, this.props, {
|
|
@@ -19,7 +19,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
19
19
|
|
|
20
20
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
21
21
|
|
|
22
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); }
|
|
22
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
23
23
|
|
|
24
24
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
25
25
|
|
|
@@ -23,7 +23,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
23
23
|
|
|
24
24
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
25
25
|
|
|
26
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); }
|
|
26
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
27
27
|
|
|
28
28
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
29
29
|
|
|
@@ -23,7 +23,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
23
23
|
|
|
24
24
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
25
25
|
|
|
26
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); }
|
|
26
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
27
27
|
|
|
28
28
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
29
29
|
|
|
@@ -45,7 +45,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
45
45
|
|
|
46
46
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
47
47
|
|
|
48
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); }
|
|
48
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
49
49
|
|
|
50
50
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
51
51
|
|
package/lib/Avatar/Avatar.js
CHANGED
|
@@ -39,7 +39,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
39
39
|
|
|
40
40
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
41
41
|
|
|
42
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); }
|
|
42
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
43
43
|
|
|
44
44
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
45
45
|
|
|
@@ -203,7 +203,7 @@ var Avatar = /*#__PURE__*/function (_React$Component) {
|
|
|
203
203
|
borderStyle = showAlternateAvatar ? '' : borderStyle;
|
|
204
204
|
return /*#__PURE__*/_react["default"].createElement("div", _extends({
|
|
205
205
|
className: "".concat(_AvatarModule["default"].avatar, " ").concat(_AvatarModule["default"][size], " ").concat((0, _AvatarSize["default"])(size), " ").concat(_AvatarModule["default"][shapeStyle], " ").concat(_AvatarModule["default"][palette], " ").concat(textStyle, " ").concat(borderStyle, " ").concat(customClass ? customClass : ''),
|
|
206
|
-
"data-title": needTitle ? title ? title : name :
|
|
206
|
+
"data-title": needTitle ? title ? title : name : null,
|
|
207
207
|
"data-id": dataId,
|
|
208
208
|
onClick: onClick
|
|
209
209
|
}, AvatarProps), showInitial && !showAlternateAvatar && /*#__PURE__*/_react["default"].createElement("span", {
|
|
@@ -25,7 +25,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
25
25
|
|
|
26
26
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
27
27
|
|
|
28
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); }
|
|
28
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
29
29
|
|
|
30
30
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
31
31
|
|
package/lib/Button/Button.js
CHANGED
|
@@ -23,7 +23,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
23
23
|
|
|
24
24
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
25
25
|
|
|
26
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); }
|
|
26
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
27
27
|
|
|
28
28
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
29
29
|
|
|
@@ -21,7 +21,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
21
21
|
|
|
22
22
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
23
23
|
|
|
24
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); }
|
|
24
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
25
25
|
|
|
26
26
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
27
27
|
|
package/lib/Card/Card.js
CHANGED
|
@@ -29,7 +29,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
29
29
|
|
|
30
30
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
31
31
|
|
|
32
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); }
|
|
32
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
33
33
|
|
|
34
34
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
35
35
|
|
package/lib/CheckBox/CheckBox.js
CHANGED
|
@@ -29,7 +29,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
29
29
|
|
|
30
30
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
31
31
|
|
|
32
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); }
|
|
32
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
33
33
|
|
|
34
34
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
35
35
|
|
|
@@ -27,7 +27,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
27
27
|
|
|
28
28
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
29
29
|
|
|
30
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); }
|
|
30
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
31
31
|
|
|
32
32
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
33
33
|
|
package/lib/DateTime/DateTime.js
CHANGED
|
@@ -55,7 +55,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
55
55
|
|
|
56
56
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
57
57
|
|
|
58
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); }
|
|
58
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
59
59
|
|
|
60
60
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
61
61
|
|
|
@@ -27,7 +27,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
27
27
|
|
|
28
28
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
29
29
|
|
|
30
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); }
|
|
30
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
31
31
|
|
|
32
32
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
33
33
|
|
|
@@ -27,7 +27,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
27
27
|
|
|
28
28
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
29
29
|
|
|
30
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); }
|
|
30
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
31
31
|
|
|
32
32
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
33
33
|
|
|
@@ -53,7 +53,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
53
53
|
|
|
54
54
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
55
55
|
|
|
56
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); }
|
|
56
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
57
57
|
|
|
58
58
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
59
59
|
|
package/lib/DateTime/DaysRow.js
CHANGED
|
@@ -25,7 +25,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
25
25
|
|
|
26
26
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
27
27
|
|
|
28
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); }
|
|
28
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
29
29
|
|
|
30
30
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
31
31
|
|
package/lib/DateTime/Time.js
CHANGED
|
@@ -27,7 +27,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
27
27
|
|
|
28
28
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
29
29
|
|
|
30
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); }
|
|
30
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
31
31
|
|
|
32
32
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
33
33
|
|
package/lib/DateTime/YearView.js
CHANGED
|
@@ -29,7 +29,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
29
29
|
|
|
30
30
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
31
31
|
|
|
32
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); }
|
|
32
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
33
33
|
|
|
34
34
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
35
35
|
|
package/lib/DropBox/DropBox.js
CHANGED
|
@@ -39,7 +39,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
39
39
|
|
|
40
40
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
41
41
|
|
|
42
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); }
|
|
42
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
43
43
|
|
|
44
44
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
45
45
|
|
|
@@ -171,7 +171,7 @@ var DropBoxElement = /*#__PURE__*/function (_React$Component) {
|
|
|
171
171
|
} : {};
|
|
172
172
|
}
|
|
173
173
|
|
|
174
|
-
boxPosition = boxPosition ? boxPosition : 'bottomCenter';
|
|
174
|
+
boxPosition = boxPosition && boxPosition != 'undefined' ? boxPosition : 'bottomCenter';
|
|
175
175
|
var boxDirection = _DropBoxPositionMapping.positionMapping[boxPosition].direction;
|
|
176
176
|
/*getting box direction*/
|
|
177
177
|
|
package/lib/DropDown/DropDown.js
CHANGED
|
@@ -27,7 +27,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
27
27
|
|
|
28
28
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
29
29
|
|
|
30
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); }
|
|
30
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
31
31
|
|
|
32
32
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
33
33
|
|
|
@@ -21,7 +21,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
21
21
|
|
|
22
22
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
23
23
|
|
|
24
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); }
|
|
24
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
25
25
|
|
|
26
26
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
27
27
|
|