@zohodesk/components 1.0.0-alpha-228 → 1.0.0-alpha-231
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 +13 -0
- package/es/Avatar/Avatar.js +1 -1
- package/es/DropBox/DropBox.js +1 -1
- package/es/ListItem/ListItem.module.css +0 -1
- package/es/MultiSelect/AdvancedGroupMultiSelect.js +1 -1
- package/es/MultiSelect/AdvancedMultiSelect.js +17 -6
- package/es/MultiSelect/MultiSelect.js +23 -12
- 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/es/utils/dropDownUtils.js +39 -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/ListItem.js +1 -1
- package/lib/ListItem/ListItem.module.css +0 -1
- 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 +18 -6
- package/lib/MultiSelect/EmptyState.js +1 -1
- package/lib/MultiSelect/MultiSelect.js +24 -12
- 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/lib/utils/dropDownUtils.js +45 -2
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -32,6 +32,19 @@ 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-231
|
|
36
|
+
|
|
37
|
+
- DropBox - Position Undefined Issue Solved
|
|
38
|
+
|
|
39
|
+
# 1.0.0-alpha-230
|
|
40
|
+
|
|
41
|
+
- Avatar, AdvancedGroupMultiSelect, AdvancedMultiSelect, MultiSelect, MultiSelectWithAvatar, GroupSelect, Select, SelectWithAvatar, SelectWithIcon, TextBoxIcon => Tooltip undefined case solved
|
|
42
|
+
- Select , MultiSelect => boxSize prop added
|
|
43
|
+
|
|
44
|
+
# 1.0.0-alpha-229
|
|
45
|
+
|
|
46
|
+
- MultiSelect, AdvancedMultiSelect => disabledOption Clear icon handled properly
|
|
47
|
+
|
|
35
48
|
# 1.0.0-alpha-228
|
|
36
49
|
|
|
37
50
|
- Button => danger, primary loader color issue solved
|
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
|
|
|
@@ -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",
|
|
@@ -23,7 +23,7 @@ import style from './AdvancedMultiSelect.module.css';
|
|
|
23
23
|
/**** Methods ****/
|
|
24
24
|
|
|
25
25
|
import { getIsEmptyValue, getSearchString } from '../utils/Common.js';
|
|
26
|
-
import { filterSelectedOptions } from '../utils/dropDownUtils';
|
|
26
|
+
import { filterSelectedOptions, makeGetIsShowClearIcon } from '../utils/dropDownUtils';
|
|
27
27
|
/* eslint-disable react/sort-prop-types */
|
|
28
28
|
|
|
29
29
|
/* eslint-disable react/no-unused-prop-types */
|
|
@@ -45,6 +45,7 @@ export class AdvancedMultiSelectComponent extends MultiSelectComponent {
|
|
|
45
45
|
this.state = Object.assign({}, oldState, {
|
|
46
46
|
showedSelectedOptionsCount: !getIsEmptyValue(selectedOptionsLimit) && selectedOptionsLen > selectedOptionsLimit ? selectedOptionsLimit : selectedOptionsLen
|
|
47
47
|
});
|
|
48
|
+
this.getIsShowClearIcon = makeGetIsShowClearIcon();
|
|
48
49
|
this.handleFilterSuggestions = this.handleFilterSuggestions.bind(this);
|
|
49
50
|
this.handleChange = this.handleChange.bind(this);
|
|
50
51
|
this.handleSelectOption = this.handleSelectOption.bind(this);
|
|
@@ -191,7 +192,8 @@ export class AdvancedMultiSelectComponent extends MultiSelectComponent {
|
|
|
191
192
|
imageField,
|
|
192
193
|
optionType,
|
|
193
194
|
iconName,
|
|
194
|
-
iconSize
|
|
195
|
+
iconSize,
|
|
196
|
+
disabledOptions
|
|
195
197
|
} = props;
|
|
196
198
|
return this.formatSelectedOptions({
|
|
197
199
|
options: selectedOptionDetails,
|
|
@@ -200,7 +202,8 @@ export class AdvancedMultiSelectComponent extends MultiSelectComponent {
|
|
|
200
202
|
imageField,
|
|
201
203
|
optionType,
|
|
202
204
|
iconName,
|
|
203
|
-
iconSize
|
|
205
|
+
iconSize,
|
|
206
|
+
disabledOptions
|
|
204
207
|
});
|
|
205
208
|
}
|
|
206
209
|
|
|
@@ -350,7 +353,8 @@ export class AdvancedMultiSelectComponent extends MultiSelectComponent {
|
|
|
350
353
|
isBoxPaddingNeed,
|
|
351
354
|
getFooter,
|
|
352
355
|
customProps,
|
|
353
|
-
needEffect
|
|
356
|
+
needEffect,
|
|
357
|
+
disabledOptions
|
|
354
358
|
} = this.props;
|
|
355
359
|
let {
|
|
356
360
|
SuggestionsProps = {},
|
|
@@ -382,10 +386,17 @@ export class AdvancedMultiSelectComponent extends MultiSelectComponent {
|
|
|
382
386
|
const moreCount = allselectedOptionIdsLen - showedSelectedOptionsCount;
|
|
383
387
|
const setAriaId = this.getNextAriaId();
|
|
384
388
|
const ariaErrorId = this.getNextAriaId();
|
|
389
|
+
let {
|
|
390
|
+
isShowClearIcon: isShowClear
|
|
391
|
+
} = this.getIsShowClearIcon({
|
|
392
|
+
selectedOptions,
|
|
393
|
+
disabledOptions
|
|
394
|
+
});
|
|
395
|
+
let isShowClearIcon = !isReadOnly && !isDisabled && isShowClear;
|
|
385
396
|
return /*#__PURE__*/React.createElement("div", {
|
|
386
397
|
className: `${style.wrapper} ${isDisabled ? style.disabled : ''} ${borderColor === 'transparent' ? style.transparentContainer : ''} ${needEffect && !(isDisabled || isReadOnly) ? style.effect : ''}`,
|
|
387
398
|
"data-id": dataIdMultiSelectComp,
|
|
388
|
-
"data-title": isDisabled ? title :
|
|
399
|
+
"data-title": isDisabled ? title : null,
|
|
389
400
|
onClick: this.handleInputFocus
|
|
390
401
|
}, /*#__PURE__*/React.createElement(Container, {
|
|
391
402
|
align: "vertical",
|
|
@@ -431,7 +442,7 @@ export class AdvancedMultiSelectComponent extends MultiSelectComponent {
|
|
|
431
442
|
ariaDescribedby: ariaErrorId
|
|
432
443
|
},
|
|
433
444
|
autoComplete: false
|
|
434
|
-
})),
|
|
445
|
+
})), isShowClearIcon ? /*#__PURE__*/React.createElement(Box, {
|
|
435
446
|
className: style.delete,
|
|
436
447
|
dataId: dataIdClearIcon,
|
|
437
448
|
"data-title": clearText,
|
|
@@ -23,7 +23,7 @@ import style from './MultiSelect.module.css';
|
|
|
23
23
|
/**** Methods ****/
|
|
24
24
|
|
|
25
25
|
import { debounce, scrollTo, bind, getIsEmptyValue, getSearchString } from '../utils/Common.js';
|
|
26
|
-
import { makeFormatOptions, makeGetMultiSelectFilterSuggestions as makeGetFilterSuggestions, makeGetMultiSelectSelectedOptions as makeGetSelectedOptions, makeObjectConcat, filterSelectedOptions } from '../utils/dropDownUtils';
|
|
26
|
+
import { makeFormatOptions, makeGetMultiSelectFilterSuggestions as makeGetFilterSuggestions, makeGetMultiSelectSelectedOptions as makeGetSelectedOptions, makeObjectConcat, filterSelectedOptions, makeGetIsShowClearIcon } from '../utils/dropDownUtils';
|
|
27
27
|
/* eslint-disable react/forbid-component-props */
|
|
28
28
|
|
|
29
29
|
/* eslint-disable react/no-unused-prop-types */
|
|
@@ -35,7 +35,8 @@ export class MultiSelectComponent extends React.Component {
|
|
|
35
35
|
this.getNextAriaId = getUniqueId(this);
|
|
36
36
|
this.getFilterSuggestions = makeGetFilterSuggestions();
|
|
37
37
|
this.formatOptions = makeFormatOptions();
|
|
38
|
-
this.getSelectedOptions = makeGetSelectedOptions();
|
|
38
|
+
this.getSelectedOptions = makeGetSelectedOptions();
|
|
39
|
+
this.getIsShowClearIcon = makeGetIsShowClearIcon(); //Use in AdvancedMultiSelect component
|
|
39
40
|
|
|
40
41
|
this.objectConcat = makeObjectConcat();
|
|
41
42
|
this.formatSelectedOptions = makeFormatOptions();
|
|
@@ -740,7 +741,7 @@ export class MultiSelectComponent extends React.Component {
|
|
|
740
741
|
defaultDropBoxPosition,
|
|
741
742
|
isReadOnly
|
|
742
743
|
} = this.props;
|
|
743
|
-
!isReadOnly && togglePopup(e, defaultDropBoxPosition ? `${defaultDropBoxPosition}
|
|
744
|
+
!isReadOnly && togglePopup(e, defaultDropBoxPosition ? `${defaultDropBoxPosition}` : null);
|
|
744
745
|
}
|
|
745
746
|
|
|
746
747
|
handlePopupClose(e) {
|
|
@@ -871,7 +872,9 @@ export class MultiSelectComponent extends React.Component {
|
|
|
871
872
|
children,
|
|
872
873
|
customChildrenClass,
|
|
873
874
|
getFooter,
|
|
874
|
-
needEffect
|
|
875
|
+
needEffect,
|
|
876
|
+
disabledOptions,
|
|
877
|
+
boxSize
|
|
875
878
|
} = this.props;
|
|
876
879
|
const {
|
|
877
880
|
clearText = 'Clear all',
|
|
@@ -897,11 +900,17 @@ export class MultiSelectComponent extends React.Component {
|
|
|
897
900
|
const suggestions = this.handleFilterSuggestions();
|
|
898
901
|
const setAriaId = this.getNextAriaId();
|
|
899
902
|
const ariaErrorId = this.getNextAriaId();
|
|
900
|
-
|
|
903
|
+
let {
|
|
904
|
+
isShowClearIcon: isShowClear
|
|
905
|
+
} = this.getIsShowClearIcon({
|
|
906
|
+
selectedOptions,
|
|
907
|
+
disabledOptions
|
|
908
|
+
});
|
|
909
|
+
const isShowClearIcon = !isReadOnly && !isDisabled && !disableAction && isShowClear;
|
|
901
910
|
return /*#__PURE__*/React.createElement("div", {
|
|
902
911
|
className: `${style.wrapper} ${isDisabled ? style.disabled : ''} ${isReadOnly ? style.readOnly : ''} ${disableAction ? CssProvider('isBlock') : ''} ${borderColor === 'transparent' ? style.transparentContainer : ''} ${needEffect && !(isDisabled || isReadOnly) ? style.effect : ''}`,
|
|
903
912
|
"data-id": `${isDisabled ? `${dataId}_disabled` : isReadOnly ? `${dataId}_readOnly` : dataId}`,
|
|
904
|
-
"data-title": isDisabled ? title :
|
|
913
|
+
"data-title": isDisabled ? title : null,
|
|
905
914
|
onClick: this.handleInputFocus
|
|
906
915
|
}, /*#__PURE__*/React.createElement(Container, {
|
|
907
916
|
align: "vertical",
|
|
@@ -974,7 +983,7 @@ export class MultiSelectComponent extends React.Component {
|
|
|
974
983
|
dataId: `${dataId}_children`
|
|
975
984
|
}, children) : null)))), !isReadOnly && !isDisabled && !disableAction && isPopupOpen ? /*#__PURE__*/React.createElement(DropBox, {
|
|
976
985
|
animationStyle: animationStyle,
|
|
977
|
-
boxPosition: position || `${defaultDropBoxPosition}
|
|
986
|
+
boxPosition: position || `${defaultDropBoxPosition}`,
|
|
978
987
|
getRef: getContainerRef,
|
|
979
988
|
isActive: isPopupReady,
|
|
980
989
|
isAnimate: isAnimate,
|
|
@@ -988,7 +997,8 @@ export class MultiSelectComponent extends React.Component {
|
|
|
988
997
|
a11y: {
|
|
989
998
|
role: 'listbox',
|
|
990
999
|
ariaMultiselectable: true
|
|
991
|
-
}
|
|
1000
|
+
},
|
|
1001
|
+
size: boxSize
|
|
992
1002
|
}, /*#__PURE__*/React.createElement(Card, {
|
|
993
1003
|
customClass: `${style.box} ${style[`${palette}Box`]}`,
|
|
994
1004
|
onScroll: this.handleScroll
|
|
@@ -1033,7 +1043,7 @@ MultiSelectComponent.propTypes = {
|
|
|
1033
1043
|
borderColor: PropTypes.oneOf(['transparent', 'default', 'dark']),
|
|
1034
1044
|
closePopupOnly: PropTypes.func,
|
|
1035
1045
|
dataId: PropTypes.string,
|
|
1036
|
-
defaultDropBoxPosition: PropTypes.
|
|
1046
|
+
defaultDropBoxPosition: PropTypes.string,
|
|
1037
1047
|
disableAction: PropTypes.bool,
|
|
1038
1048
|
dropBoxSize: PropTypes.oneOf(['small', 'medium', 'large']),
|
|
1039
1049
|
emptyMessage: PropTypes.string.isRequired,
|
|
@@ -1104,12 +1114,12 @@ MultiSelectComponent.propTypes = {
|
|
|
1104
1114
|
customChildrenClass: PropTypes.string,
|
|
1105
1115
|
disabledOptions: PropTypes.arrayOf(PropTypes.string),
|
|
1106
1116
|
getFooter: PropTypes.func,
|
|
1107
|
-
needEffect: PropTypes.bool
|
|
1117
|
+
needEffect: PropTypes.bool,
|
|
1118
|
+
boxSize: PropTypes.string
|
|
1108
1119
|
};
|
|
1109
1120
|
MultiSelectComponent.defaultProps = {
|
|
1110
1121
|
animationStyle: 'bounce',
|
|
1111
1122
|
dataId: 'multiSelect',
|
|
1112
|
-
defaultDropBoxPosition: 'bottom',
|
|
1113
1123
|
dropBoxSize: 'small',
|
|
1114
1124
|
isAnimate: true,
|
|
1115
1125
|
isDisabled: false,
|
|
@@ -1135,7 +1145,8 @@ MultiSelectComponent.defaultProps = {
|
|
|
1135
1145
|
textBoxClass: '',
|
|
1136
1146
|
palette: 'default',
|
|
1137
1147
|
isSearchClearOnSelect: true,
|
|
1138
|
-
needEffect: true
|
|
1148
|
+
needEffect: true,
|
|
1149
|
+
boxSize: 'default'
|
|
1139
1150
|
};
|
|
1140
1151
|
|
|
1141
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, {
|
|
@@ -406,4 +406,42 @@ export const filterSelectedOptions = function () {
|
|
|
406
406
|
return {
|
|
407
407
|
newSelectedOptions: [...oldValidSelectedOptions, ...newlyAddedOptions]
|
|
408
408
|
};
|
|
409
|
-
};
|
|
409
|
+
};
|
|
410
|
+
export const makeGetIsShowClearIcon = () => createSelector([getSelectedOptionsSel, getDisabledOptions], (selectedOptions, disabledOptions) => {
|
|
411
|
+
let countForShowClear = 2;
|
|
412
|
+
let enabledOptionsLength = 0;
|
|
413
|
+
let isShowClearIcon = selectedOptions.length >= countForShowClear;
|
|
414
|
+
|
|
415
|
+
if (disabledOptions.length) {
|
|
416
|
+
let isHaveEnabledOptions = false;
|
|
417
|
+
let isAllDisabled = disabledOptions.length === selectedOptions.length;
|
|
418
|
+
|
|
419
|
+
if (!isAllDisabled) {
|
|
420
|
+
isHaveEnabledOptions = selectedOptions.some(option => {
|
|
421
|
+
let {
|
|
422
|
+
isDisabled = false
|
|
423
|
+
} = option || {};
|
|
424
|
+
|
|
425
|
+
if (!isDisabled) {
|
|
426
|
+
enabledOptionsLength += 1;
|
|
427
|
+
|
|
428
|
+
if (enabledOptionsLength === countForShowClear) {
|
|
429
|
+
return true;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
return false;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
return false;
|
|
436
|
+
});
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
return {
|
|
440
|
+
isShowClearIcon: isAllDisabled ? !isAllDisabled : isHaveEnabledOptions
|
|
441
|
+
};
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
return {
|
|
445
|
+
isShowClearIcon
|
|
446
|
+
};
|
|
447
|
+
});
|
|
@@ -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
|
|