@zohodesk/dot 1.0.0-temp-111 → 1.0.0-temp-113
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 +1 -2
- package/css_error.log +0 -0
- package/es/dropdown/ToggleDropDown/ToggleDropDown.js +8 -4
- package/es/form/fields/CheckBoxField/CheckBoxField.js +2 -3
- package/es/form/fields/CurrencyField/CurrencyField.js +8 -43
- package/es/form/fields/CurrencyField/props/defaultProps.js +0 -1
- package/es/form/fields/DateField/DateField.js +8 -93
- package/es/form/fields/DateField/props/defaultProps.js +0 -1
- package/es/form/fields/Fields.module.css +0 -65
- package/es/form/fields/MultiSelectField/MultiSelectField.js +9 -91
- package/es/form/fields/MultiSelectField/props/defaultProps.js +0 -1
- package/es/form/fields/PhoneField/PhoneField.js +1 -3
- package/es/form/fields/PhoneField/props/defaultProps.js +1 -2
- package/es/form/fields/RadioField/RadioField.js +1 -1
- package/es/form/fields/SelectField/SelectField.js +12 -99
- package/es/form/fields/SelectField/props/defaultProps.js +0 -1
- package/es/form/fields/TextBoxField/TextBoxField.js +8 -59
- package/es/form/fields/TextBoxField/props/defaultProps.js +0 -1
- package/es/form/fields/TextareaField/TextareaField.js +12 -58
- package/es/form/fields/TextareaField/props/defaultProps.js +0 -1
- package/es/list/ListLayout/ListLayout.js +1 -0
- package/lib/ActionButton/ActionButton.js +1 -3
- package/lib/AlphabeticList/AlphabeticList.js +1 -3
- package/lib/Attachment/Attachment.js +1 -3
- package/lib/AttachmentViewer/AttachmentImage.js +1 -3
- package/lib/AttachmentViewer/AttachmentViewer.js +1 -3
- package/lib/AttachmentViewer/utils.js +1 -4
- package/lib/ChannelIcon/ChannelIcon.js +1 -3
- package/lib/Drawer/Drawer.js +1 -3
- package/lib/ExternalLink/ExternalLink.js +1 -3
- package/lib/FlipCard/FlipCard.js +1 -3
- package/lib/FormAction/FormAction.js +1 -3
- package/lib/FreezeLayer/FreezeLayer.js +1 -3
- package/lib/IconButton/IconButton.js +1 -3
- package/lib/IconButton/props/propTypes.js +1 -4
- package/lib/Image/Image.js +1 -3
- package/lib/ImportantNotes/ImportantNotes.js +1 -3
- package/lib/Link/Link.js +1 -3
- package/lib/Loader/Loader.js +1 -3
- package/lib/Message/Message.js +1 -3
- package/lib/MessageBanner/MessageBanner.js +1 -3
- package/lib/NewStar/NewStar.js +1 -3
- package/lib/PlusIcon/PlusIcon.js +1 -3
- package/lib/ToastMessage/ToastMessage.js +1 -1
- package/lib/Upload/Upload.js +1 -3
- package/lib/actions/AutoClose.js +1 -1
- package/lib/alert/AlertHeader/AlertHeader.js +1 -3
- package/lib/alert/AlertLookup/AlertLookup.js +1 -3
- package/lib/avatar/AvatarClose/AvatarClose.js +1 -3
- package/lib/avatar/AvatarCollision/AvatarCollision.js +1 -3
- package/lib/avatar/AvatarIcon/AvatarIcon.js +1 -3
- package/lib/avatar/AvatarStatus/AvatarStatus.js +1 -3
- package/lib/avatar/AvatarThread/AvatarThread.js +1 -3
- package/lib/avatar/AvatarUser/AvatarUser.js +2 -5
- package/lib/avatar/AvatarWithTeam/AvatarWithTeam.js +1 -3
- package/lib/deprecated/SelectDropdown/SelectDropdown.js +1 -3
- package/lib/deprecated/utils/KeyboardApi.js +1 -4
- package/lib/dropdown/ToggleDropDown/ToggleDropDown.js +10 -8
- package/lib/emptystate/CommonEmptyState/CommonEmptyState.js +1 -3
- package/lib/emptystate/EditionPage/EditionPage.js +1 -3
- package/lib/errorstate/Inconvenience/Inconvenience.js +1 -3
- package/lib/errorstate/LinkText/LinkText.js +1 -3
- package/lib/errorstate/NoRequestFound/NoRequestFound.js +1 -3
- package/lib/errorstate/PermissionPlay/PermissionPlay.js +1 -3
- package/lib/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +1 -3
- package/lib/errorstate/UnableToProcess/UnableToProcess.js +1 -3
- package/lib/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +1 -3
- package/lib/errorstate/WillBack/WillBack.js +1 -3
- package/lib/form/fields/CheckBoxField/CheckBoxField.js +3 -6
- package/lib/form/fields/CheckBoxField/props/defaultProps.js +1 -4
- package/lib/form/fields/CheckBoxField/props/propTypes.js +1 -4
- package/lib/form/fields/CurrencyField/CurrencyField.js +42 -79
- package/lib/form/fields/CurrencyField/props/defaultProps.js +1 -5
- package/lib/form/fields/CurrencyField/props/propTypes.js +1 -4
- package/lib/form/fields/DateField/DateField.js +41 -131
- package/lib/form/fields/DateField/props/defaultProps.js +1 -4
- package/lib/form/fields/DateField/props/propTypes.js +1 -4
- package/lib/form/fields/FieldContainer/FieldContainer.js +1 -3
- package/lib/form/fields/FieldContainer/props/defaultProps.js +1 -4
- package/lib/form/fields/FieldContainer/props/propTypes.js +1 -4
- package/lib/form/fields/Fields.module.css +0 -65
- package/lib/form/fields/MultiSelectField/MultiSelectField.js +53 -138
- package/lib/form/fields/MultiSelectField/props/defaultProps.js +1 -4
- package/lib/form/fields/MultiSelectField/props/propTypes.js +1 -4
- package/lib/form/fields/PhoneField/PhoneField.js +2 -6
- package/lib/form/fields/PhoneField/props/defaultProps.js +1 -2
- package/lib/form/fields/RadioField/RadioField.js +2 -4
- package/lib/form/fields/SelectField/SelectField.js +61 -153
- package/lib/form/fields/SelectField/props/defaultProps.js +2 -6
- package/lib/form/fields/SelectField/props/propTypes.js +1 -4
- package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.js +1 -3
- package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +1 -1
- package/lib/form/fields/TagsMultiSelectField/props/defaultProps.js +1 -4
- package/lib/form/fields/TagsMultiSelectField/props/propTypes.js +1 -4
- package/lib/form/fields/TextBoxField/TextBoxField.js +44 -97
- package/lib/form/fields/TextBoxField/props/defaultProps.js +2 -6
- package/lib/form/fields/TextBoxField/props/propTypes.js +1 -4
- package/lib/form/fields/TextEditor/TextEditor.js +2 -4
- package/lib/form/fields/TextEditorField/TextEditorField.js +1 -3
- package/lib/form/fields/TextEditorField/props/defaultProps.js +1 -4
- package/lib/form/fields/TextEditorField/props/propTypes.js +1 -4
- package/lib/form/fields/TextEditorWrapper/TextEditorWrapper.js +2 -5
- package/lib/form/fields/TextareaField/TextareaField.js +45 -92
- package/lib/form/fields/TextareaField/props/defaultProps.js +1 -4
- package/lib/form/fields/TextareaField/props/propTypes.js +1 -4
- package/lib/form/fields/ValidationMessage/ValidationMessage.js +1 -3
- package/lib/form/layout/Field/Field.js +1 -3
- package/lib/form/layout/Section/Section.js +1 -3
- package/lib/layout/SetupDetailLayout/SetupDetailLayout.js +1 -3
- package/lib/layout/SubtabLayout/SubtabLayout.js +1 -3
- package/lib/list/AvatarFlip/AvatarFlip.js +1 -3
- package/lib/list/BluePrintStatus/BluePrintStatus.js +1 -3
- package/lib/list/Comment/Comment.js +1 -3
- package/lib/list/DepartmentDropDown/DepartmentDropDown.js +1 -3
- package/lib/list/DepartmentDropDown/props/propTypes.js +1 -4
- package/lib/list/Dot/Dot.js +1 -3
- package/lib/list/DotNew/DotNew.js +1 -3
- package/lib/list/GridStencils/GridStencils.js +1 -3
- package/lib/list/Icons/AddNewIcon.js +1 -3
- package/lib/list/Icons/CompleteIcon.js +1 -3
- package/lib/list/Icons/DeleteIcon.js +1 -3
- package/lib/list/Icons/EditIcon.js +1 -3
- package/lib/list/Icons/FloatingIcons.js +1 -3
- package/lib/list/Icons/ReadUnreadIcon.js +1 -3
- package/lib/list/Icons/SmartIcon.js +1 -3
- package/lib/list/ListLayout/ListLayout.js +2 -3
- package/lib/list/ListLayout/props/propTypes.js +1 -4
- package/lib/list/ListStencils/ListStencils.js +1 -3
- package/lib/list/SecondaryText/AccountName.js +1 -3
- package/lib/list/SecondaryText/ContactName.js +1 -3
- package/lib/list/SecondaryText/DepartmentText.js +1 -3
- package/lib/list/SecondaryText/Email.js +1 -3
- package/lib/list/SecondaryText/HappinessRating.js +1 -3
- package/lib/list/SecondaryText/PhoneNumber.js +1 -3
- package/lib/list/SecondaryText/PriorityText.js +1 -3
- package/lib/list/SecondaryText/SecondaryText.js +1 -3
- package/lib/list/SecondaryText/StatusText.js +1 -3
- package/lib/list/SecondaryText/TicketId.js +1 -3
- package/lib/list/SecondaryText/Website.js +1 -3
- package/lib/list/SecondryPanel/SecondryPanel.js +1 -3
- package/lib/list/SentimentStatus/SentimentStatus.js +1 -3
- package/lib/list/Subject/Subject.js +1 -3
- package/lib/list/TagNew/TagNew.js +1 -3
- package/lib/list/Thread/Thread.js +1 -3
- package/lib/list/UserTime/UserTime.js +1 -3
- package/lib/list/status/StatusDropdown/StatusDropdown.js +1 -3
- package/lib/list/status/StatusDropdown/props/propTypes.js +1 -4
- package/lib/list/status/StatusListItem/StatusListItem.js +1 -3
- package/lib/lookup/EmptyPage/EmptyPage.js +1 -3
- package/lib/lookup/Lookup/Lookup.js +2 -5
- package/lib/lookup/Section/Section.js +1 -3
- package/lib/lookup/header/Close/Close.js +1 -3
- package/lib/lookup/header/ModuleHeader/ModuleHeader.js +2 -5
- package/lib/lookup/header/Search/Search.js +1 -3
- package/lib/lookup/header/TicketHeader/TicketHeader.js +2 -5
- package/lib/lookup/header/Title/Title.js +1 -3
- package/lib/lookup/header/ViewDropDown/ViewDropDown.js +1 -3
- package/lib/setup/header/Button/Button.js +1 -3
- package/lib/setup/header/Link/Link.js +1 -3
- package/lib/setup/header/Search/Search.js +1 -3
- package/lib/setup/header/Views/Views.js +1 -3
- package/lib/setup/helptips/Description/Description.js +1 -3
- package/lib/setup/helptips/Link/Link.js +1 -3
- package/lib/setup/helptips/ListGroup/ListGroup.js +1 -3
- package/lib/setup/helptips/Title/Title.js +1 -3
- package/lib/setup/table/Table/Table.js +1 -3
- package/lib/setup/table/TableBody/TableBody.js +1 -3
- package/lib/setup/table/TableData/TableData.js +1 -3
- package/lib/setup/table/TableHead/TableHead.js +1 -3
- package/lib/setup/table/TableRow/TableRow.js +1 -3
- package/lib/setup/table/Text/Text.js +1 -3
- package/lib/svg/PlusIcon.js +1 -3
- package/lib/svg/SnippetIcon.js +1 -3
- package/lib/svg/TemplateIcon.js +1 -3
- package/lib/version2/AlertClose/AlertClose.js +1 -3
- package/lib/version2/GlobalNotification/GlobalNotification.js +1 -3
- package/lib/version2/alertIcons/AlarmAlertIcon.js +1 -3
- package/lib/version2/alertIcons/AlertIcons.js +1 -3
- package/lib/version2/alertIcons/DangerAlertIcon.js +1 -3
- package/lib/version2/alertIcons/ErrorAlertIcon.js +1 -3
- package/lib/version2/alertIcons/InfoAlertIcon.js +1 -3
- package/lib/version2/alertIcons/NotificationAlertIcon.js +1 -3
- package/lib/version2/alertIcons/SuccessAlertIcon.js +1 -3
- package/lib/version2/alertIcons/WarningAlertIcon.js +1 -3
- package/lib/version2/errorstate/Inconvenience/Inconvenience.js +1 -3
- package/lib/version2/errorstate/OopsSomethingMiss/OopsSomethingMiss.js +1 -3
- package/lib/version2/errorstate/UnableToProcessRequest/UnableToProcessRequest.js +1 -3
- package/lib/version2/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +1 -3
- package/lib/version2/errorstate/UrlNotFound/UrlNotFound.js +1 -3
- package/lib/version2/errorstate/WillBeRightBack/WillBeRightBack.js +1 -3
- package/lib/version2/lookup/AlertHeader/AlertHeader.js +1 -3
- package/lib/version2/lookup/AlertLookup/AlertLookup.js +1 -3
- package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +1 -3
- package/package.json +2 -2
|
@@ -10,7 +10,6 @@ import Select from '@zohodesk/components/lib/Select/Select';
|
|
|
10
10
|
import ValidationMessage from '../ValidationMessage/ValidationMessage';
|
|
11
11
|
import { getUniqueId } from '@zohodesk/components/lib/Provider/IdProvider';
|
|
12
12
|
import FieldContainer from '../FieldContainer/FieldContainer';
|
|
13
|
-
import RippleEffect from '@zohodesk/components/lib/RippleEffect/RippleEffect';
|
|
14
13
|
|
|
15
14
|
/**** props ****/
|
|
16
15
|
|
|
@@ -23,17 +22,6 @@ export default class SelectField extends PureComponent {
|
|
|
23
22
|
this.handleGetRef = this.handleGetRef.bind(this);
|
|
24
23
|
// this.handleLabelClick = this.handleLabelClick.bind(this);
|
|
25
24
|
this.getNextId = getUniqueId(this);
|
|
26
|
-
this.handleParentClick = this.handleParentClick.bind(this);
|
|
27
|
-
this.handleFocusToggle = this.handleFocusToggle.bind(this);
|
|
28
|
-
this.handleFocus = this.handleFocus.bind(this);
|
|
29
|
-
this.handleBlur = this.handleBlur.bind(this);
|
|
30
|
-
this.getPopupHandlers = this.getPopupHandlers.bind(this);
|
|
31
|
-
this.handleDropBoxOpen = this.handleDropBoxOpen.bind(this);
|
|
32
|
-
this.handleDropBoxClose = this.handleDropBoxClose.bind(this);
|
|
33
|
-
this.state = {
|
|
34
|
-
isFocused: false,
|
|
35
|
-
isPopupOpen: false
|
|
36
|
-
};
|
|
37
25
|
}
|
|
38
26
|
handleChange(selctedId, selectedValue) {
|
|
39
27
|
let {
|
|
@@ -48,65 +36,9 @@ export default class SelectField extends PureComponent {
|
|
|
48
36
|
getRef,
|
|
49
37
|
id
|
|
50
38
|
} = this.props;
|
|
51
|
-
this.
|
|
39
|
+
this.selectBox = el;
|
|
52
40
|
getRef && getRef(el, id);
|
|
53
41
|
}
|
|
54
|
-
handleParentClick(e) {
|
|
55
|
-
const {
|
|
56
|
-
needFieldStyle
|
|
57
|
-
} = this.props;
|
|
58
|
-
if (needFieldStyle) {
|
|
59
|
-
this.textBox.focus();
|
|
60
|
-
this.togglePopup(e);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
handleFocusToggle(value) {
|
|
64
|
-
this.setState({
|
|
65
|
-
isFocused: value
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
handleFocus(e) {
|
|
69
|
-
const {
|
|
70
|
-
onFocus,
|
|
71
|
-
needFieldStyle
|
|
72
|
-
} = this.props;
|
|
73
|
-
needFieldStyle && this.handleFocusToggle(true);
|
|
74
|
-
onFocus && onFocus(e);
|
|
75
|
-
}
|
|
76
|
-
handleBlur(e) {
|
|
77
|
-
const {
|
|
78
|
-
onBlur,
|
|
79
|
-
needFieldStyle
|
|
80
|
-
} = this.props;
|
|
81
|
-
needFieldStyle && this.handleFocusToggle(false);
|
|
82
|
-
onBlur && onBlur(e);
|
|
83
|
-
}
|
|
84
|
-
getPopupHandlers(methods) {
|
|
85
|
-
let {
|
|
86
|
-
togglePopup
|
|
87
|
-
} = methods;
|
|
88
|
-
this.togglePopup = togglePopup;
|
|
89
|
-
}
|
|
90
|
-
handleDropBoxOpen() {
|
|
91
|
-
let {
|
|
92
|
-
isPopupOpen
|
|
93
|
-
} = this.state;
|
|
94
|
-
if (isPopupOpen == false) {
|
|
95
|
-
this.setState({
|
|
96
|
-
isPopupOpen: true
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
handleDropBoxClose() {
|
|
101
|
-
let {
|
|
102
|
-
isPopupOpen
|
|
103
|
-
} = this.state;
|
|
104
|
-
if (isPopupOpen) {
|
|
105
|
-
this.setState({
|
|
106
|
-
isPopupOpen: false
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
42
|
|
|
111
43
|
// handleLabelClick() {
|
|
112
44
|
// let { isFocusOnLabelClick } = this.props;
|
|
@@ -163,8 +95,6 @@ export default class SelectField extends PureComponent {
|
|
|
163
95
|
iconOnHover,
|
|
164
96
|
customProps,
|
|
165
97
|
renderLabelProps,
|
|
166
|
-
handleDropBoxOpen,
|
|
167
|
-
needFieldStyle,
|
|
168
98
|
ariaLabelledby
|
|
169
99
|
} = this.props;
|
|
170
100
|
const {
|
|
@@ -174,19 +104,9 @@ export default class SelectField extends PureComponent {
|
|
|
174
104
|
ValidationMessageProps2 = {}
|
|
175
105
|
} = customProps;
|
|
176
106
|
let uniqueId = htmlId ? htmlId : this.getNextId();
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
} = this.state;
|
|
181
|
-
let isActive = isPopupOpen || isFocused;
|
|
182
|
-
return /*#__PURE__*/React.createElement(RippleEffect, {
|
|
183
|
-
hoverType: "bg",
|
|
184
|
-
isActive: isActive,
|
|
185
|
-
isNeedEffect: !isReadOnly && !isDisabled && needFieldStyle ? true : false
|
|
186
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
187
|
-
className: `${style.container} ${needFieldStyle ? style.highlightSpace : ''} ${isDisabled ? style.disabled : isReadOnly ? style.readonly : ''}`,
|
|
188
|
-
"data-title": isDisabled ? title : null,
|
|
189
|
-
onClick: this.handleParentClick
|
|
107
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
108
|
+
className: `${style.container} ${isDisabled ? style.disabled : isReadOnly ? style.readonly : ''}`,
|
|
109
|
+
"data-title": isDisabled ? title : null
|
|
190
110
|
}, labelName && /*#__PURE__*/React.createElement(FieldContainer, {
|
|
191
111
|
infoText: infoText,
|
|
192
112
|
isLocked: isLocked,
|
|
@@ -196,20 +116,18 @@ export default class SelectField extends PureComponent {
|
|
|
196
116
|
text: labelName,
|
|
197
117
|
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
198
118
|
palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
|
|
199
|
-
customClass: `${style.fieldLabel} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}
|
|
200
|
-
|
|
201
|
-
,
|
|
119
|
+
customClass: `${style.fieldLabel} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
|
|
120
|
+
htmlFor: uniqueId,
|
|
202
121
|
dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`
|
|
203
122
|
}, LabelProps, {
|
|
204
123
|
id: uniqueId
|
|
205
124
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
206
|
-
className: `${
|
|
125
|
+
className: `${style.fieldContainer} ${labelName ? style[`fieldMargin_${fieldSize}`] : ''} ${fieldClass ? fieldClass : ''}`
|
|
207
126
|
}, /*#__PURE__*/React.createElement(Select, _extends({
|
|
208
127
|
options: options,
|
|
209
128
|
selectedValue: selectedValue,
|
|
210
129
|
onChange: this.handleChange,
|
|
211
|
-
onFocus:
|
|
212
|
-
onBlur: this.handleBlur,
|
|
130
|
+
onFocus: onFocus,
|
|
213
131
|
getRef: this.handleGetRef,
|
|
214
132
|
needSearch: needSearch,
|
|
215
133
|
emptyMessage: emptyMessage,
|
|
@@ -229,17 +147,12 @@ export default class SelectField extends PureComponent {
|
|
|
229
147
|
isNextOptions: isNextOptions,
|
|
230
148
|
getNextOptions: getNextOptions,
|
|
231
149
|
popupGroup: popupGroup,
|
|
232
|
-
onSearch: onSearch
|
|
233
|
-
|
|
234
|
-
,
|
|
150
|
+
onSearch: onSearch,
|
|
151
|
+
htmlId: uniqueId,
|
|
235
152
|
needLocalSearch: needLocalSearch,
|
|
236
153
|
isDefaultSelectValue: isDefaultSelectValue,
|
|
237
154
|
placeHolder: placeHolder,
|
|
238
|
-
iconOnHover: iconOnHover
|
|
239
|
-
needPosition: needFieldStyle ? true : false,
|
|
240
|
-
getPopupHandlers: this.getPopupHandlers,
|
|
241
|
-
onDropBoxOpen: this.handleDropBoxOpen,
|
|
242
|
-
onDropBoxClose: this.handleDropBoxClose
|
|
155
|
+
iconOnHover: iconOnHover
|
|
243
156
|
}, SelectProps, {
|
|
244
157
|
ariaLabelledby: uniqueId
|
|
245
158
|
}), children ? children : null)), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
|
|
@@ -254,7 +167,7 @@ export default class SelectField extends PureComponent {
|
|
|
254
167
|
type: errorType,
|
|
255
168
|
htmlFor: uniqueId,
|
|
256
169
|
dataId: `${dataId}_ValidationRuleMessage`
|
|
257
|
-
}, ValidationMessageProps2)))
|
|
170
|
+
}, ValidationMessageProps2)));
|
|
258
171
|
}
|
|
259
172
|
}
|
|
260
173
|
SelectField.propTypes = propTypes;
|
|
@@ -10,7 +10,6 @@ import TextBoxIcon from '@zohodesk/components/lib/TextBoxIcon/TextBoxIcon';
|
|
|
10
10
|
import ValidationMessage from '../ValidationMessage/ValidationMessage';
|
|
11
11
|
import { getUniqueId } from '@zohodesk/components/lib/Provider/IdProvider';
|
|
12
12
|
import FieldContainer from '../FieldContainer/FieldContainer';
|
|
13
|
-
import RippleEffect from '@zohodesk/components/lib/RippleEffect/RippleEffect';
|
|
14
13
|
|
|
15
14
|
/**** CSS ****/
|
|
16
15
|
import style from '../Fields.module.css';
|
|
@@ -21,13 +20,6 @@ export default class TextBoxField extends PureComponent {
|
|
|
21
20
|
this.handleGetRef = this.handleGetRef.bind(this);
|
|
22
21
|
// this.handleLabelClick = this.handleLabelClick.bind(this);
|
|
23
22
|
this.getNextId = getUniqueId(this);
|
|
24
|
-
this.handleParentClick = this.handleParentClick.bind(this);
|
|
25
|
-
this.handleFocusToggle = this.handleFocusToggle.bind(this);
|
|
26
|
-
this.handleFocus = this.handleFocus.bind(this);
|
|
27
|
-
this.handleBlur = this.handleBlur.bind(this);
|
|
28
|
-
this.state = {
|
|
29
|
-
isFocused: false
|
|
30
|
-
};
|
|
31
23
|
}
|
|
32
24
|
handleChange(value) {
|
|
33
25
|
let {
|
|
@@ -52,40 +44,6 @@ export default class TextBoxField extends PureComponent {
|
|
|
52
44
|
// // }
|
|
53
45
|
// }
|
|
54
46
|
|
|
55
|
-
handleParentClick() {
|
|
56
|
-
const {
|
|
57
|
-
needFieldStyle
|
|
58
|
-
} = this.props;
|
|
59
|
-
if (needFieldStyle) {
|
|
60
|
-
this.textBox.focus();
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
handleFocusToggle(value) {
|
|
64
|
-
const {
|
|
65
|
-
needFieldStyle
|
|
66
|
-
} = this.props;
|
|
67
|
-
if (needFieldStyle) {
|
|
68
|
-
this.setState({
|
|
69
|
-
isFocused: value
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
handleFocus(e) {
|
|
74
|
-
const {
|
|
75
|
-
onFocus,
|
|
76
|
-
needFieldStyle
|
|
77
|
-
} = this.props;
|
|
78
|
-
needFieldStyle && this.handleFocusToggle(true);
|
|
79
|
-
onFocus && onFocus(e);
|
|
80
|
-
}
|
|
81
|
-
handleBlur(e) {
|
|
82
|
-
const {
|
|
83
|
-
onBlur,
|
|
84
|
-
needFieldStyle
|
|
85
|
-
} = this.props;
|
|
86
|
-
needFieldStyle && this.handleFocusToggle(false);
|
|
87
|
-
onBlur && onBlur(e);
|
|
88
|
-
}
|
|
89
47
|
render() {
|
|
90
48
|
let {
|
|
91
49
|
labelName,
|
|
@@ -122,8 +80,7 @@ export default class TextBoxField extends PureComponent {
|
|
|
122
80
|
ePhiData,
|
|
123
81
|
children,
|
|
124
82
|
customProps,
|
|
125
|
-
renderLabelProps
|
|
126
|
-
needFieldStyle
|
|
83
|
+
renderLabelProps
|
|
127
84
|
} = this.props;
|
|
128
85
|
const {
|
|
129
86
|
LabelProps = {},
|
|
@@ -132,17 +89,9 @@ export default class TextBoxField extends PureComponent {
|
|
|
132
89
|
ValidationMessageProps2 = {}
|
|
133
90
|
} = customProps;
|
|
134
91
|
let uniqueId = htmlId ? htmlId : this.getNextId();
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
return /*#__PURE__*/React.createElement(RippleEffect, {
|
|
139
|
-
hoverType: "bg",
|
|
140
|
-
isActive: isFocused,
|
|
141
|
-
isNeedEffect: !isReadOnly && !isDisabled && needFieldStyle ? true : false
|
|
142
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
143
|
-
className: `${style.container} ${needFieldStyle ? style.highlightSpace : ''} ${isDisabled ? style.disabled : isReadOnly ? style.readonly : ''}`,
|
|
144
|
-
"data-title": isDisabled ? title : null,
|
|
145
|
-
onClick: this.handleParentClick
|
|
92
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
93
|
+
className: `${style.container} ${isDisabled ? style.disabled : isReadOnly ? style.readonly : ''}`,
|
|
94
|
+
"data-title": isDisabled ? title : null
|
|
146
95
|
}, labelName && /*#__PURE__*/React.createElement(FieldContainer, {
|
|
147
96
|
infoText: infoText,
|
|
148
97
|
isLocked: isLocked,
|
|
@@ -154,7 +103,7 @@ export default class TextBoxField extends PureComponent {
|
|
|
154
103
|
text: labelName,
|
|
155
104
|
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
156
105
|
palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
|
|
157
|
-
customClass: `${style.fieldLabel} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}
|
|
106
|
+
customClass: `${style.fieldLabel} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
|
|
158
107
|
htmlFor: uniqueId,
|
|
159
108
|
dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`
|
|
160
109
|
}, LabelProps, {
|
|
@@ -173,11 +122,11 @@ export default class TextBoxField extends PureComponent {
|
|
|
173
122
|
value: value,
|
|
174
123
|
onChange: this.handleChange,
|
|
175
124
|
dataId: dataId,
|
|
176
|
-
onBlur:
|
|
125
|
+
onBlur: onBlur,
|
|
177
126
|
onKeyDown: onKeyDown,
|
|
178
127
|
placeHolder: placeHolder,
|
|
179
128
|
borderColor: borderColor,
|
|
180
|
-
onFocus:
|
|
129
|
+
onFocus: onFocus,
|
|
181
130
|
isDisabled: isDisabled,
|
|
182
131
|
needEffect: isReadOnly || isDisabled ? false : true,
|
|
183
132
|
isClickable: isClickable,
|
|
@@ -198,7 +147,7 @@ export default class TextBoxField extends PureComponent {
|
|
|
198
147
|
type: errorType,
|
|
199
148
|
htmlFor: uniqueId,
|
|
200
149
|
dataId: `${dataId}_ValidationRuleMessage`
|
|
201
|
-
}, ValidationMessageProps2))))
|
|
150
|
+
}, ValidationMessageProps2))));
|
|
202
151
|
}
|
|
203
152
|
}
|
|
204
153
|
TextBoxField.propTypes = propTypes;
|
|
@@ -10,7 +10,6 @@ import Textarea from '@zohodesk/components/lib/Textarea/Textarea';
|
|
|
10
10
|
import ValidationMessage from '../ValidationMessage/ValidationMessage';
|
|
11
11
|
import { getUniqueId } from '@zohodesk/components/lib/Provider/IdProvider';
|
|
12
12
|
import FieldContainer from '../FieldContainer/FieldContainer';
|
|
13
|
-
import RippleEffect from '@zohodesk/components/lib/RippleEffect/RippleEffect';
|
|
14
13
|
|
|
15
14
|
/**** CSS ****/
|
|
16
15
|
import style from '../Fields.module.css';
|
|
@@ -22,13 +21,6 @@ export default class TextareaField extends PureComponent {
|
|
|
22
21
|
this.handleGetRef = this.handleGetRef.bind(this);
|
|
23
22
|
// this.handleLabelClick = this.handleLabelClick.bind(this);
|
|
24
23
|
this.getNextId = getUniqueId(this);
|
|
25
|
-
this.handleParentClick = this.handleParentClick.bind(this);
|
|
26
|
-
this.handleFocusToggle = this.handleFocusToggle.bind(this);
|
|
27
|
-
this.handleFocus = this.handleFocus.bind(this);
|
|
28
|
-
this.handleBlur = this.handleBlur.bind(this);
|
|
29
|
-
this.state = {
|
|
30
|
-
isFocused: false
|
|
31
|
-
};
|
|
32
24
|
}
|
|
33
25
|
handleChange(value) {
|
|
34
26
|
let {
|
|
@@ -37,6 +29,13 @@ export default class TextareaField extends PureComponent {
|
|
|
37
29
|
} = this.props;
|
|
38
30
|
onChange && onChange(id, value);
|
|
39
31
|
}
|
|
32
|
+
handleBlur(value) {
|
|
33
|
+
let {
|
|
34
|
+
id,
|
|
35
|
+
onBlur
|
|
36
|
+
} = this.props;
|
|
37
|
+
onBlur && onBlur(id, value);
|
|
38
|
+
}
|
|
40
39
|
handleGetRef(el) {
|
|
41
40
|
let {
|
|
42
41
|
getRef,
|
|
@@ -45,41 +44,6 @@ export default class TextareaField extends PureComponent {
|
|
|
45
44
|
this.textarea = el;
|
|
46
45
|
getRef && getRef(el, id);
|
|
47
46
|
}
|
|
48
|
-
handleParentClick() {
|
|
49
|
-
const {
|
|
50
|
-
needFieldStyle
|
|
51
|
-
} = this.props;
|
|
52
|
-
if (needFieldStyle) {
|
|
53
|
-
this.textarea.focus();
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
handleFocusToggle(value) {
|
|
57
|
-
const {
|
|
58
|
-
needFieldStyle
|
|
59
|
-
} = this.props;
|
|
60
|
-
if (needFieldStyle) {
|
|
61
|
-
this.setState({
|
|
62
|
-
isFocused: value
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
handleFocus(e) {
|
|
67
|
-
const {
|
|
68
|
-
onFocus,
|
|
69
|
-
needFieldStyle
|
|
70
|
-
} = this.props;
|
|
71
|
-
needFieldStyle && this.handleFocusToggle(true);
|
|
72
|
-
onFocus && onFocus(e);
|
|
73
|
-
}
|
|
74
|
-
handleBlur(value) {
|
|
75
|
-
let {
|
|
76
|
-
id,
|
|
77
|
-
onBlur,
|
|
78
|
-
needFieldStyle
|
|
79
|
-
} = this.props;
|
|
80
|
-
needFieldStyle && this.handleFocusToggle(false);
|
|
81
|
-
onBlur && onBlur(id, value);
|
|
82
|
-
}
|
|
83
47
|
|
|
84
48
|
// handleLabelClick() {
|
|
85
49
|
// let { isFocusOnLabelClick } = this.props;
|
|
@@ -118,8 +82,7 @@ export default class TextareaField extends PureComponent {
|
|
|
118
82
|
lockedInfoText,
|
|
119
83
|
isLocked,
|
|
120
84
|
customProps,
|
|
121
|
-
renderLabelProps
|
|
122
|
-
needFieldStyle
|
|
85
|
+
renderLabelProps
|
|
123
86
|
} = this.props;
|
|
124
87
|
const {
|
|
125
88
|
LabelProps = {},
|
|
@@ -128,17 +91,9 @@ export default class TextareaField extends PureComponent {
|
|
|
128
91
|
ValidationMessageProps2 = {}
|
|
129
92
|
} = customProps;
|
|
130
93
|
let uniqueId = htmlId ? htmlId : this.getNextId();
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
return /*#__PURE__*/React.createElement(RippleEffect, {
|
|
135
|
-
hoverType: "bg",
|
|
136
|
-
isActive: isFocused,
|
|
137
|
-
isNeedEffect: needFieldStyle ? true : false
|
|
138
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
139
|
-
className: `${style.container} ${needFieldStyle ? style.highlightSpace : ''} ${isDisabled ? style.disabled : isReadOnly ? style.readonly : ''}`,
|
|
140
|
-
"data-title": isDisabled ? title : null,
|
|
141
|
-
onClick: this.handleParentClick
|
|
94
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
95
|
+
className: `${style.container} ${isDisabled ? style.disabled : isReadOnly ? style.readonly : ''}`,
|
|
96
|
+
"data-title": isDisabled ? title : null
|
|
142
97
|
}, labelName && /*#__PURE__*/React.createElement(FieldContainer, {
|
|
143
98
|
infoText: infoText,
|
|
144
99
|
isLocked: isLocked,
|
|
@@ -167,7 +122,6 @@ export default class TextareaField extends PureComponent {
|
|
|
167
122
|
placeHolder: placeHolder,
|
|
168
123
|
dataId: `property(${dataId})`,
|
|
169
124
|
onBlur: this.handleBlur,
|
|
170
|
-
onFocus: this.handleFocus,
|
|
171
125
|
borderColor: borderColor,
|
|
172
126
|
needEffect: isReadOnly || isDisabled ? false : true,
|
|
173
127
|
resize: "vertical"
|
|
@@ -190,7 +144,7 @@ export default class TextareaField extends PureComponent {
|
|
|
190
144
|
type: errorType,
|
|
191
145
|
htmlFor: uniqueId,
|
|
192
146
|
dataId: `${dataId}_ValidationRuleMessage`
|
|
193
|
-
}, ValidationMessageProps2))))
|
|
147
|
+
}, ValidationMessageProps2))));
|
|
194
148
|
}
|
|
195
149
|
}
|
|
196
150
|
TextareaField.propTypes = propTypes;
|
|
@@ -18,10 +18,8 @@ var _ActionButtonModule = _interopRequireDefault(require("./ActionButton.module.
|
|
|
18
18
|
var _semanticButtonModule = _interopRequireDefault(require("@zohodesk/components/lib/semantic/Button/semanticButton.module.css"));
|
|
19
19
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
20
20
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
21
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target,
|
|
21
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
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
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
24
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
25
23
|
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); }
|
|
26
24
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
27
25
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
@@ -12,10 +12,8 @@ var _Layout = require("@zohodesk/components/lib/Layout");
|
|
|
12
12
|
var _AlphabeticListModule = _interopRequireDefault(require("./AlphabeticList.module.css"));
|
|
13
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
14
14
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
15
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target,
|
|
15
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
16
16
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
17
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
18
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
19
17
|
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); }
|
|
20
18
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
21
19
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
@@ -14,10 +14,8 @@ var _Link = _interopRequireDefault(require("../Link/Link"));
|
|
|
14
14
|
var _AttachmentModule = _interopRequireDefault(require("./Attachment.module.css"));
|
|
15
15
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
16
16
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
17
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target,
|
|
17
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
18
18
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
19
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
20
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
21
19
|
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); }
|
|
22
20
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
23
21
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
@@ -14,10 +14,8 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
14
14
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
15
15
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
16
16
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
17
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target,
|
|
17
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
18
18
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
19
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
20
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
21
19
|
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); }
|
|
22
20
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
23
21
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
@@ -30,10 +30,8 @@ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symb
|
|
|
30
30
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
31
31
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
32
32
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
33
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target,
|
|
33
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
34
34
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
35
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
36
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
37
35
|
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); }
|
|
38
36
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
39
37
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
@@ -4,12 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.ZoomEvent = exports.Zoom = void 0;
|
|
7
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
8
7
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
9
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target,
|
|
8
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
10
9
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
11
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
12
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
13
10
|
var Zoom = /*#__PURE__*/function () {
|
|
14
11
|
function Zoom() {
|
|
15
12
|
_classCallCheck(this, Zoom);
|
|
@@ -17,10 +17,8 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
17
17
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
18
18
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
19
19
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
20
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target,
|
|
20
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
21
21
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
22
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
23
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
24
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); }
|
|
25
23
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
26
24
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
package/lib/Drawer/Drawer.js
CHANGED
|
@@ -22,10 +22,8 @@ var _DrawerModule = _interopRequireDefault(require("./Drawer.module.css"));
|
|
|
22
22
|
var _FocusScope = _interopRequireDefault(require("@zohodesk/a11y/es/FocusScope/FocusScope"));
|
|
23
23
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
24
24
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
25
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target,
|
|
25
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
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
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
28
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
29
27
|
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); }
|
|
30
28
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
31
29
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
@@ -12,10 +12,8 @@ var _ExternalLinkModule = _interopRequireDefault(require("./ExternalLink.module.
|
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
13
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
14
14
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
15
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target,
|
|
15
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
16
16
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
17
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
18
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
19
17
|
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); }
|
|
20
18
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
21
19
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
package/lib/FlipCard/FlipCard.js
CHANGED
|
@@ -21,10 +21,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
21
21
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
22
22
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
23
23
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
24
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target,
|
|
24
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
25
25
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
26
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
27
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
28
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); }
|
|
29
27
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
30
28
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|