@zohodesk/dot 1.0.0-beta.223 → 1.0.0-beta.224
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 +6 -0
- package/assets/Appearance/dark/mode/dotDarkMode.module.css +2 -0
- package/assets/Appearance/default/mode/dotDefaultMode.module.css +2 -0
- package/es/ActionButton/ActionButton.module.css +25 -9
- package/es/AlphabeticList/AlphabeticList.module.css +7 -4
- package/es/Attachment/Attachment.module.css +20 -9
- package/es/AttachmentViewer/AttachmentViewer.module.css +82 -27
- package/es/ChannelIcon/ChannelIcon.module.css +30 -21
- package/es/Drawer/Drawer.module.css +59 -11
- package/es/FlipCard/FlipCard.module.css +14 -5
- package/es/FormAction/FormAction.module.css +34 -9
- package/es/FreezeLayer/FreezeLayer.js +3 -6
- package/es/FreezeLayer/FreezeLayer.module.css +6 -2
- package/es/IconButton/IconButton.module.css +1 -1
- package/es/ImportantNotes/ImportantNotes.js +5 -3
- package/es/ImportantNotes/ImportantNotes.module.css +7 -2
- package/es/Loader/Loader.module.css +25 -4
- package/es/Message/Message.module.css +42 -9
- package/es/MessageBanner/MessageBanner.module.css +12 -4
- package/es/NewStar/NewStar.module.css +42 -5
- package/es/ToastMessage/ToastMessage.module.css +96 -25
- package/es/Upload/Upload.module.css +27 -8
- package/es/alert/AlertHeader/AlertHeader.module.css +21 -3
- package/es/alert/AlertLookup/AlertLookup.module.css +6 -2
- package/es/avatar/AvatarClose/AvatarClose.module.css +9 -3
- package/es/avatar/AvatarCollision/AvatarCollision.module.css +18 -4
- package/es/avatar/AvatarIcon/AvatarIcon.module.css +3 -4
- package/es/avatar/AvatarStatus/AvatarStatus.module.css +59 -9
- package/es/avatar/AvatarThread/AvatarThread.module.css +55 -5
- package/es/avatar/AvatarUser/AvatarUser.module.css +81 -10
- package/es/avatar/AvatarWithTeam/AvatarWithTeam.module.css +10 -3
- package/es/common/dot_animation.module.css +16 -3
- package/es/deprecated/SelectDropdown/SelectDropdown.module.css +11 -3
- package/es/{utils → deprecated/utils}/KeyboardApi.js +0 -0
- package/es/dropdown/ToggleDropDown/ToggleDropDown.js +2 -0
- package/es/dropdown/ToggleDropDown/ToggleDropDown.module.css +19 -6
- package/es/emptystate/CommonEmptyState/CommonEmptyState.module.css +12 -4
- package/es/emptystate/EditionPage/EditionPage.css +9 -3
- package/es/errorstate/EmptyStates.module.css +13 -10
- package/es/errorstate/Inconvenience/Inconvenience.module.css +3 -0
- package/es/errorstate/LinkText/LinkText.module.css +1 -1
- package/es/errorstate/PermissionPlay/PermissionPlay.module.css +2 -2
- package/es/errorstate/WillBack/WillBack.module.css +1 -3
- package/es/form/fields/Fields.module.css +49 -14
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.module.css +19 -7
- package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.module.css +4 -1
- package/es/form/fields/TextEditor/TextEditor.module.css +149 -72
- package/es/form/fields/TextEditorWrapper/TextEditorWrapper.module.css +13 -2
- package/es/form/fields/ValidationMessage/ValidationMessage.module.css +9 -4
- package/es/layout/SetupDetailLayout/SetupDetailLayout.module.css +52 -16
- package/es/layout/SubtabLayout/SubtabLayout.module.css +55 -29
- package/es/list/BluePrintStatus/BluePrintStatus.module.css +4 -1
- package/es/list/Comment/Comment.module.css +5 -0
- package/es/list/DotNew/DotNew.module.css +3 -3
- package/es/list/GridStencils/GridStencils.module.css +71 -17
- package/es/list/Icons/Icons.module.css +1 -1
- package/es/list/ListLayout/ListLayout.module.css +22 -14
- package/es/list/ListStencils/ListStencils.module.css +11 -6
- package/es/list/SecondaryText/SecondaryText.module.css +13 -3
- package/es/list/SentimentStatus/SentimentStatus.module.css +4 -1
- package/es/list/TagNew/TagNew.module.css +14 -7
- package/es/list/Thread/Thread.module.css +13 -1
- package/es/list/UserTime/UserTime.module.css +6 -0
- package/es/list/listCommon.module.css +9 -1
- package/es/list/status/StatusDropdown/StatusDropdown.module.css +19 -6
- package/es/list/status/StatusListItem/StatusListItem.module.css +38 -15
- package/es/lookup/Lookup/Lookup.module.css +2 -2
- package/es/lookup/Section/LookupSection.module.css +2 -2
- package/es/lookup/header/Close/LookupClose.module.css +4 -4
- package/es/lookup/header/ModuleHeader/ModuleHeader.js +8 -3
- package/es/lookup/header/Search/LookupSearch.module.css +21 -12
- package/es/lookup/header/TicketHeader/TicketHeader.js +7 -4
- package/es/lookup/header/TicketHeader/TicketHeader.module.css +5 -2
- package/es/lookup/header/ViewDropDown/ViewDropDown.module.css +8 -3
- package/es/lookup/header/lookupHeaderCommon.module.css +21 -5
- package/es/lookup/header/lookupHeaderCommonResponsive.module.css +12 -3
- package/es/setup/header/Button/HeaderButton.module.css +3 -1
- package/es/setup/header/Link/HeaderLink.module.css +7 -1
- package/es/setup/header/Search/Search.module.css +19 -8
- package/es/setup/header/Views/Views.module.css +15 -5
- package/es/setup/helptips/Link/HelpTipsLink.module.css +1 -0
- package/es/setup/helptips/ListGroup/ListGroup.module.css +6 -1
- package/es/setup/table/TableData/SetupTableData.module.css +11 -3
- package/es/setup/table/TableHead/SetupTableHead.module.css +4 -0
- package/es/setup/table/TableRow/SetupTableRow.module.css +6 -2
- package/es/version2/AlertClose/AlertClose.module.css +1 -1
- package/es/version2/GlobalNotification/GlobalNotification.js +2 -0
- package/es/version2/GlobalNotification/GlobalNotification.module.css +44 -9
- package/es/version2/lookup/AlertHeader/AlertHeaderNew.module.css +25 -2
- package/es/version2/lookup/AlertLookup/AlertLookupNew.module.css +7 -3
- package/es/version2/lookup/alertLookupCommonNew.module.css +8 -1
- package/es/version2/notification/DesktopNotification/DesktopNotification.module.css +26 -10
- package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +47 -10
- package/lib/ActionButton/ActionButton.module.css +0 -1
- package/lib/AttachmentViewer/Attachment.js +28 -0
- package/lib/AttachmentViewer/AttachmentImage.js +129 -0
- package/lib/AttachmentViewer/AttachmentViewer.js +645 -0
- package/lib/AttachmentViewer/AttachmentViewer.module.css +346 -0
- package/lib/AttachmentViewer/utils.js +134 -0
- package/lib/FreezeLayer/FreezeLayer.js +29 -4
- package/lib/ImportantNotes/ImportantNotes.js +5 -3
- package/lib/Provider/Config.js +21 -0
- package/lib/common/dot_animation.module.css +27 -0
- package/lib/common/dot_common.module.css +4 -0
- package/lib/deprecated/utils/General.js +29 -0
- package/lib/{utils → deprecated/utils}/KeyboardApi.js +0 -0
- package/lib/form/fields/CheckBoxField/CheckBoxField.js +1 -1
- package/lib/form/fields/CurrencyField/CurrencyField.js +9 -8
- package/lib/form/fields/DateField/DateField.js +1 -1
- package/lib/form/fields/MultiSelectField/MultiSelectField.js +1 -1
- package/lib/form/fields/PhoneField/PhoneField.js +1 -1
- package/lib/form/fields/RadioField/RadioField.js +1 -1
- package/lib/form/fields/SelectField/SelectField.js +1 -1
- package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.js +27 -13
- package/lib/form/fields/TextBoxField/TextBoxField.js +1 -1
- package/lib/form/fields/TextEditor/TextEditor.js +4 -1
- package/lib/form/fields/TextEditor/TextEditor.module.css +13 -2
- package/lib/form/fields/TextareaField/TextareaField.js +1 -1
- package/lib/list/GridStencils/GridStencils.module.css +3 -1
- package/lib/list/status/StatusDropdown/StatusDropdown.js +44 -37
- package/lib/lookup/header/ModuleHeader/ModuleHeader.js +8 -3
- package/lib/lookup/header/TicketHeader/TicketHeader.js +7 -4
- package/lib/lookup/header/lookupHeaderCommon.module.css +8 -2
- package/lib/setup/header/Views/Views.js +2 -2
- package/lib/utils/General.js +0 -24
- package/package.json +7 -7
|
@@ -23,8 +23,6 @@ var _Icon = _interopRequireDefault(require("@zohodesk/icons/lib/Icon"));
|
|
|
23
23
|
|
|
24
24
|
var _FieldsModule = _interopRequireDefault(require("../Fields.module.css"));
|
|
25
25
|
|
|
26
|
-
var _General = require("../../../utils/General");
|
|
27
|
-
|
|
28
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
29
27
|
|
|
30
28
|
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); }
|
|
@@ -145,7 +143,8 @@ var CurrencyField = /*#__PURE__*/function (_PureComponent) {
|
|
|
145
143
|
needReadOnlyStyle = _this$props3.needReadOnlyStyle,
|
|
146
144
|
isClickable = _this$props3.isClickable,
|
|
147
145
|
userCurrencyType = _this$props3.userCurrencyType,
|
|
148
|
-
customProps = _this$props3.customProps
|
|
146
|
+
customProps = _this$props3.customProps,
|
|
147
|
+
formatCurrency = _this$props3.formatCurrency;
|
|
149
148
|
var _customProps$LabelPro = customProps.LabelProps,
|
|
150
149
|
LabelProps = _customProps$LabelPro === void 0 ? {} : _customProps$LabelPro,
|
|
151
150
|
_customProps$TextBoxP = customProps.TextBoxProps,
|
|
@@ -157,8 +156,8 @@ var CurrencyField = /*#__PURE__*/function (_PureComponent) {
|
|
|
157
156
|
var isActive = this.state.isActive;
|
|
158
157
|
var formatValue = value;
|
|
159
158
|
|
|
160
|
-
if (!isActive
|
|
161
|
-
formatValue =
|
|
159
|
+
if (!isActive) {
|
|
160
|
+
formatValue = formatCurrency(value, userCurrencyType);
|
|
162
161
|
} else {
|
|
163
162
|
formatValue = value;
|
|
164
163
|
}
|
|
@@ -166,7 +165,7 @@ var CurrencyField = /*#__PURE__*/function (_PureComponent) {
|
|
|
166
165
|
var uniqueId = htmlId ? htmlId : this.getNextId();
|
|
167
166
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
168
167
|
className: "".concat(_FieldsModule["default"].container, " ").concat(isDisabled ? _FieldsModule["default"].disabled : isReadOnly ? _FieldsModule["default"].readonly : ''),
|
|
169
|
-
"data-title": isDisabled ? title :
|
|
168
|
+
"data-title": isDisabled ? title : null
|
|
170
169
|
}, labelName && /*#__PURE__*/_react["default"].createElement("div", {
|
|
171
170
|
className: _FieldsModule["default"].labelContainer
|
|
172
171
|
}, /*#__PURE__*/_react["default"].createElement(_Label["default"], _extends({
|
|
@@ -266,7 +265,8 @@ CurrencyField.propTypes = {
|
|
|
266
265
|
TextBoxProps: _propTypes["default"].object,
|
|
267
266
|
ValidationMessageProps1: _propTypes["default"].object,
|
|
268
267
|
ValidationMessageProps2: _propTypes["default"].object
|
|
269
|
-
})
|
|
268
|
+
}),
|
|
269
|
+
formatCurrency: _propTypes["default"].func
|
|
270
270
|
};
|
|
271
271
|
CurrencyField.defaultProps = {
|
|
272
272
|
errorType: 'primary',
|
|
@@ -282,7 +282,8 @@ CurrencyField.defaultProps = {
|
|
|
282
282
|
labelCustomClass: '',
|
|
283
283
|
isClickable: false,
|
|
284
284
|
needReadOnlyStyle: true,
|
|
285
|
-
customProps: {}
|
|
285
|
+
customProps: {},
|
|
286
|
+
formatCurrency: function formatCurrency() {}
|
|
286
287
|
};
|
|
287
288
|
|
|
288
289
|
if (false) {
|
|
@@ -172,7 +172,7 @@ var DateField = /*#__PURE__*/function (_PureComponent) {
|
|
|
172
172
|
var getAriaId = htmlId ? htmlId : this.getNextId();
|
|
173
173
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
174
174
|
className: "".concat(_FieldsModule["default"].container, " ").concat(isDisabled ? _FieldsModule["default"].disabled : isReadOnly ? _FieldsModule["default"].readonly : ''),
|
|
175
|
-
"data-title": isDisabled ? title :
|
|
175
|
+
"data-title": isDisabled ? title : null
|
|
176
176
|
}, labelName && /*#__PURE__*/_react["default"].createElement("div", {
|
|
177
177
|
className: _FieldsModule["default"].labelContainer
|
|
178
178
|
}, /*#__PURE__*/_react["default"].createElement(_Label["default"], _extends({
|
|
@@ -185,7 +185,7 @@ var MultiSelectField = /*#__PURE__*/function (_PureComponent) {
|
|
|
185
185
|
var uniqueId = htmlId ? htmlId : this.getNextId();
|
|
186
186
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
187
187
|
className: "".concat(_FieldsModule["default"].container, " ").concat(isDisabled ? _FieldsModule["default"].disabled : isReadOnly ? _FieldsModule["default"].readonly : ''),
|
|
188
|
-
"data-title": isDisabled ? title :
|
|
188
|
+
"data-title": isDisabled ? title : null
|
|
189
189
|
}, labelName && /*#__PURE__*/_react["default"].createElement("div", {
|
|
190
190
|
className: _FieldsModule["default"].labelContainer
|
|
191
191
|
}, /*#__PURE__*/_react["default"].createElement(_Label["default"], _extends({
|
|
@@ -169,7 +169,7 @@ var PhoneField = /*#__PURE__*/function (_PureComponent) {
|
|
|
169
169
|
return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
170
170
|
alignBox: "row",
|
|
171
171
|
className: "".concat(_FieldsModule["default"].container, " ").concat(isDisabled ? _FieldsModule["default"].disabled : ''),
|
|
172
|
-
"data-title": isDisabled ? title :
|
|
172
|
+
"data-title": isDisabled ? title : null
|
|
173
173
|
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
174
174
|
flexible: true
|
|
175
175
|
}, /*#__PURE__*/_react["default"].createElement(_TextBoxField["default"], _extends({
|
|
@@ -106,7 +106,7 @@ var RadioField = /*#__PURE__*/function (_PureComponent) {
|
|
|
106
106
|
ValidationMessageProps2 = _customProps$Validati2 === void 0 ? {} : _customProps$Validati2;
|
|
107
107
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
108
108
|
className: "".concat(_FieldsModule["default"].container, " ").concat(isDisabled ? _FieldsModule["default"].disabled : isReadOnly ? _FieldsModule["default"].readonly : ''),
|
|
109
|
-
"data-title": isDisabled ? title :
|
|
109
|
+
"data-title": isDisabled ? title : null
|
|
110
110
|
}, labelName && /*#__PURE__*/_react["default"].createElement(_Label["default"], _extends({
|
|
111
111
|
text: labelName,
|
|
112
112
|
size: "medium",
|
|
@@ -153,7 +153,7 @@ var SelectField = /*#__PURE__*/function (_PureComponent) {
|
|
|
153
153
|
var uniqueId = htmlId ? htmlId : this.getNextId();
|
|
154
154
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
155
155
|
className: "".concat(_FieldsModule["default"].container, " ").concat(isDisabled ? _FieldsModule["default"].disabled : isReadOnly ? _FieldsModule["default"].readonly : ''),
|
|
156
|
-
"data-title": isDisabled ? title :
|
|
156
|
+
"data-title": isDisabled ? title : null
|
|
157
157
|
}, labelName && /*#__PURE__*/_react["default"].createElement("div", {
|
|
158
158
|
className: _FieldsModule["default"].labelContainer
|
|
159
159
|
}, /*#__PURE__*/_react["default"].createElement(_Label["default"], _extends({
|
|
@@ -71,16 +71,23 @@ var TagsMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
71
71
|
_this.state = {
|
|
72
72
|
showAll: false
|
|
73
73
|
};
|
|
74
|
-
_this.textBoxRef = /*#__PURE__*/_react["default"].createRef();
|
|
75
74
|
_this.emptySearchSVG = _this.emptySearchSVG.bind(_assertThisInitialized(_this));
|
|
76
75
|
_this.onShowAllClick = _this.onShowAllClick.bind(_assertThisInitialized(_this));
|
|
77
76
|
_this.getContainerRef = _this.getContainerRef.bind(_assertThisInitialized(_this));
|
|
78
77
|
_this.onScroll = _this.onScroll.bind(_assertThisInitialized(_this));
|
|
79
78
|
_this.getSelectedItemRef = _this.getSelectedItemRef.bind(_assertThisInitialized(_this));
|
|
79
|
+
_this.textInputRef = _this.textInputRef.bind(_assertThisInitialized(_this));
|
|
80
80
|
return _this;
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
_createClass(TagsMultiSelect, [{
|
|
84
|
+
key: "textInputRef",
|
|
85
|
+
value: function textInputRef(el) {
|
|
86
|
+
var getTextInputRef = this.props.getTextInputRef;
|
|
87
|
+
this.inputEl = el;
|
|
88
|
+
getTextInputRef && getTextInputRef(el);
|
|
89
|
+
}
|
|
90
|
+
}, {
|
|
84
91
|
key: "onScroll",
|
|
85
92
|
value: function onScroll() {
|
|
86
93
|
var _this$props = this.props,
|
|
@@ -114,10 +121,8 @@ var TagsMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
114
121
|
|
|
115
122
|
if (prevProps.isTagListLoading !== isTagListLoading && !isTagListLoading || isPopupReady && prevProps.tagsList.length !== tagsList.length) {
|
|
116
123
|
setTimeout(function () {
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
if (textBoxElementRef && typeof textBoxElementRef.handleFocus === 'function') {
|
|
120
|
-
_this2.textBoxRef.current.handleFocus();
|
|
124
|
+
if (_this2.inputEl) {
|
|
125
|
+
_this2.inputEl.focus();
|
|
121
126
|
}
|
|
122
127
|
}, 300);
|
|
123
128
|
}
|
|
@@ -177,7 +182,9 @@ var TagsMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
177
182
|
needBorder = _this$props3.needBorder,
|
|
178
183
|
borderColor = _this$props3.borderColor,
|
|
179
184
|
getTextBoxChildren = _this$props3.getTextBoxChildren,
|
|
180
|
-
htmlId = _this$props3.htmlId
|
|
185
|
+
htmlId = _this$props3.htmlId,
|
|
186
|
+
boxSize = _this$props3.boxSize,
|
|
187
|
+
onSelectTag = _this$props3.onSelectTag;
|
|
181
188
|
var showAll = this.state.showAll;
|
|
182
189
|
var chipLimit = !isPopupReady ? showAll ? tagsList.length : chipNeedToShow : tagsList.length;
|
|
183
190
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -194,16 +201,19 @@ var TagsMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
194
201
|
scroll: "vertical"
|
|
195
202
|
}, tagsList.length ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, tagsList.map(function (tag, index) {
|
|
196
203
|
var name = tag.name,
|
|
197
|
-
tagType = tag.tagType
|
|
204
|
+
tagType = tag.tagType,
|
|
205
|
+
id = tag.id;
|
|
198
206
|
return index < chipLimit ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
199
207
|
className: _TagsMultiSelectModule["default"].tag,
|
|
200
208
|
key: index
|
|
201
209
|
}, /*#__PURE__*/_react["default"].createElement(_Tag["default"], {
|
|
210
|
+
id: id,
|
|
202
211
|
text: name,
|
|
203
212
|
onRemove: isReadOnly ? null : deleteTag.bind(_this3, name),
|
|
204
213
|
closeTitle: i18nKeys.deleteText,
|
|
205
214
|
palette: tagType === 'SYSTEM' ? 'primary' : 'default',
|
|
206
|
-
isReadOnly: isReadOnly
|
|
215
|
+
isReadOnly: isReadOnly,
|
|
216
|
+
onSelectTag: onSelectTag ? onSelectTag : undefined
|
|
207
217
|
})) : null;
|
|
208
218
|
}), tagsList.length > chipNeedToShow && !isPopupReady ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
209
219
|
className: _TagsMultiSelectModule["default"].moreLess,
|
|
@@ -224,7 +234,6 @@ var TagsMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
224
234
|
onChange: handleChange,
|
|
225
235
|
maxLength: 50,
|
|
226
236
|
isReadOnly: isReadOnly,
|
|
227
|
-
ref: this.textBoxRef,
|
|
228
237
|
needBorder: false,
|
|
229
238
|
placeHolder: tagsList.length ? '' : i18nKeys.placeholderText || '-',
|
|
230
239
|
onClick: !isReadOnly ? handleTogglePopup : undefined,
|
|
@@ -232,14 +241,15 @@ var TagsMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
232
241
|
customTBoxWrap: _TagsMultiSelectModule["default"].custmInp,
|
|
233
242
|
customTextBox: _TagsMultiSelectModule["default"].input
|
|
234
243
|
},
|
|
235
|
-
size: "xsmall"
|
|
244
|
+
size: "xsmall",
|
|
245
|
+
inputRef: this.textInputRef
|
|
236
246
|
}, getTextBoxChildren ? getTextBoxChildren() : null))), isPopupOpen ? /*#__PURE__*/_react["default"].createElement(_DropBox["default"], {
|
|
237
247
|
isAnimate: true,
|
|
238
248
|
isActive: isPopupReady,
|
|
239
249
|
isArrow: false,
|
|
240
250
|
getRef: getContainerRef,
|
|
241
251
|
isBoxPaddingNeed: true,
|
|
242
|
-
size:
|
|
252
|
+
size: boxSize,
|
|
243
253
|
boxPosition: boxPosition,
|
|
244
254
|
isPadding: false,
|
|
245
255
|
customClass: {
|
|
@@ -306,6 +316,7 @@ TagsMultiSelect.propTypes = {
|
|
|
306
316
|
deleteTag: _propTypes["default"].func,
|
|
307
317
|
getContainerRef: _propTypes["default"].func,
|
|
308
318
|
getTargetRef: _propTypes["default"].func,
|
|
319
|
+
getTextInputRef: _propTypes["default"].func,
|
|
309
320
|
handleChange: _propTypes["default"].func,
|
|
310
321
|
handleKeyUp: _propTypes["default"].func,
|
|
311
322
|
handleTogglePopup: _propTypes["default"].func,
|
|
@@ -335,7 +346,9 @@ TagsMultiSelect.propTypes = {
|
|
|
335
346
|
borderColor: _propTypes["default"].oneOf(['transparent', 'default', 'dark']),
|
|
336
347
|
needBorder: _propTypes["default"].bool,
|
|
337
348
|
getTextBoxChildren: _propTypes["default"].func,
|
|
338
|
-
htmlId: _propTypes["default"].string
|
|
349
|
+
htmlId: _propTypes["default"].string,
|
|
350
|
+
boxSize: _propTypes["default"].string,
|
|
351
|
+
onSelectTag: _propTypes["default"].func
|
|
339
352
|
};
|
|
340
353
|
TagsMultiSelect.defaultProps = {
|
|
341
354
|
className: '',
|
|
@@ -343,7 +356,8 @@ TagsMultiSelect.defaultProps = {
|
|
|
343
356
|
chipNeedToShow: '5',
|
|
344
357
|
borderColor: 'default',
|
|
345
358
|
needBorder: true,
|
|
346
|
-
dataId: ''
|
|
359
|
+
dataId: '',
|
|
360
|
+
boxSize: 'default'
|
|
347
361
|
};
|
|
348
362
|
|
|
349
363
|
if (false) {
|
|
@@ -147,7 +147,7 @@ var TextBoxField = /*#__PURE__*/function (_PureComponent) {
|
|
|
147
147
|
var uniqueId = htmlId ? htmlId : this.getNextId();
|
|
148
148
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
149
149
|
className: "".concat(_FieldsModule["default"].container, " ").concat(isDisabled ? _FieldsModule["default"].disabled : isReadOnly ? _FieldsModule["default"].readonly : ''),
|
|
150
|
-
"data-title": isDisabled ? title :
|
|
150
|
+
"data-title": isDisabled ? title : null
|
|
151
151
|
}, labelName && /*#__PURE__*/_react["default"].createElement("div", {
|
|
152
152
|
className: _FieldsModule["default"].labelContainer
|
|
153
153
|
}, /*#__PURE__*/_react["default"].createElement(_Label["default"], _extends({
|
|
@@ -109,6 +109,7 @@ var TextEditor = /*#__PURE__*/function (_Component) {
|
|
|
109
109
|
needEditorFocus = _this$props$needEdito === void 0 ? true : _this$props$needEdito,
|
|
110
110
|
handleDropUpload = _this$props.handleDropUpload,
|
|
111
111
|
fontFamily = _this$props.fontFamily,
|
|
112
|
+
fontSize = _this$props.fontSize,
|
|
112
113
|
initCallback = _this$props.initCallback,
|
|
113
114
|
handleAlertMessage = _this$props.handleAlertMessage,
|
|
114
115
|
needInlineAttachment = _this$props.needInlineAttachment;
|
|
@@ -144,7 +145,7 @@ var TextEditor = /*#__PURE__*/function (_Component) {
|
|
|
144
145
|
}
|
|
145
146
|
|
|
146
147
|
defaultObj = Object.assign(defaultObj, editorOptions);
|
|
147
|
-
ZohoDeskEditor_Init.init(editorMode, fontFamily, initCallback);
|
|
148
|
+
ZohoDeskEditor_Init.init(editorMode, fontFamily, initCallback, fontSize);
|
|
148
149
|
ZohoDeskEditor.create && ZohoDeskEditor.create(defaultObj);
|
|
149
150
|
}
|
|
150
151
|
}
|
|
@@ -450,6 +451,7 @@ TextEditor.defaultProps = {
|
|
|
450
451
|
type: 'large',
|
|
451
452
|
changeEditorContent: false,
|
|
452
453
|
fontFamily: 'Lato',
|
|
454
|
+
fontSize: '16',
|
|
453
455
|
shouldUpdateContent: true,
|
|
454
456
|
i18nKeys: {},
|
|
455
457
|
needInlineAttachment: false,
|
|
@@ -466,6 +468,7 @@ TextEditor.propTypes = {
|
|
|
466
468
|
editorMode: _propTypes["default"].string,
|
|
467
469
|
editorOptions: _propTypes["default"].object,
|
|
468
470
|
fontFamily: _propTypes["default"].oneOf(['Lato', 'Roboto', 'Puvi']),
|
|
471
|
+
fontSize: _propTypes["default"].string,
|
|
469
472
|
getRef: _propTypes["default"].func,
|
|
470
473
|
handleAlertMessage: _propTypes["default"].func,
|
|
471
474
|
handleDropUpload: _propTypes["default"].func,
|
|
@@ -649,7 +649,18 @@
|
|
|
649
649
|
right: 0;
|
|
650
650
|
left: 0;
|
|
651
651
|
}
|
|
652
|
-
.readOnly :global .KB_Editor_menus
|
|
653
|
-
.editorHide :global .KB_Editor {
|
|
652
|
+
.readOnly :global .KB_Editor_menus {
|
|
654
653
|
display: none !important;
|
|
655
654
|
}
|
|
655
|
+
.editorHide :global .KB_Editor {
|
|
656
|
+
position: absolute !important;
|
|
657
|
+
top: 0;
|
|
658
|
+
opacity: 0;
|
|
659
|
+
visibility: hidden;
|
|
660
|
+
}
|
|
661
|
+
[dir=ltr] .editorHide :global .KB_Editor {
|
|
662
|
+
left: 0;
|
|
663
|
+
}
|
|
664
|
+
[dir=rtl] .editorHide :global .KB_Editor {
|
|
665
|
+
right: 0;
|
|
666
|
+
}
|
|
@@ -143,7 +143,7 @@ var TextareaField = /*#__PURE__*/function (_PureComponent) {
|
|
|
143
143
|
var uniqueId = htmlId ? htmlId : this.getNextId();
|
|
144
144
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
145
145
|
className: "".concat(_FieldsModule["default"].container, " ").concat(isDisabled ? _FieldsModule["default"].disabled : isReadOnly ? _FieldsModule["default"].readonly : ''),
|
|
146
|
-
"data-title": isDisabled ? title :
|
|
146
|
+
"data-title": isDisabled ? title : null
|
|
147
147
|
}, labelName && /*#__PURE__*/_react["default"].createElement("div", {
|
|
148
148
|
className: _FieldsModule["default"].labelContainer
|
|
149
149
|
}, /*#__PURE__*/_react["default"].createElement(_Label["default"], _extends({
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
.stenLoading {
|
|
2
2
|
position: relative;
|
|
3
|
+
width: var(--zd_size265);
|
|
3
4
|
background-color: var(--zdt_gridstencils_default_bg);
|
|
4
5
|
border-bottom: 1px solid var(--zdt_gridstencils_default_border);
|
|
5
6
|
padding: var(--zd_size13) var(--zd_size20) var(--zd_size11);
|
|
6
|
-
margin
|
|
7
|
+
margin: 0 auto var(--zd_size10) auto;
|
|
8
|
+
border-radius: var(--zd_size5);
|
|
7
9
|
}
|
|
8
10
|
[dir=ltr] .stenLoadbody {
|
|
9
11
|
margin: var(--zd_size8) var(--zd_size20) var(--zd_size8) 0;
|
|
@@ -182,7 +182,7 @@ var StatusDropdown = /*#__PURE__*/function (_React$Component) {
|
|
|
182
182
|
|
|
183
183
|
if (prevProps.isPopupOpen != isPopupOpen) {
|
|
184
184
|
setTimeout(function () {
|
|
185
|
-
isPopupOpen
|
|
185
|
+
isPopupOpen && isSearch ? _this2.searchInput && _this2.searchInput.focus() : _this2.hiddenInput && _this2.hiddenInput.focus();
|
|
186
186
|
}, 10);
|
|
187
187
|
}
|
|
188
188
|
|
|
@@ -211,54 +211,61 @@ var StatusDropdown = /*#__PURE__*/function (_React$Component) {
|
|
|
211
211
|
togglePopup = _this$props4.togglePopup,
|
|
212
212
|
onClick = _this$props4.onClick,
|
|
213
213
|
boxPosition = _this$props4.boxPosition,
|
|
214
|
-
|
|
214
|
+
isPopupReady = _this$props4.isPopupReady,
|
|
215
215
|
isNextOptions = _this$props4.isNextOptions,
|
|
216
216
|
getNextOptions = _this$props4.getNextOptions,
|
|
217
|
-
onTogglePopup = _this$props4.onTogglePopup
|
|
217
|
+
onTogglePopup = _this$props4.onTogglePopup,
|
|
218
|
+
isPopupOpen = _this$props4.isPopupOpen;
|
|
218
219
|
|
|
219
|
-
if (
|
|
220
|
+
if (isPopupReady && (keyCode === 38 || keyCode === 40) && e.preventDefault) {
|
|
220
221
|
e.preventDefault(); //prevent body scroll
|
|
221
222
|
}
|
|
222
223
|
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
224
|
+
if (isPopupReady) {
|
|
225
|
+
switch (keyCode) {
|
|
226
|
+
case 40:
|
|
227
|
+
if (selectedIndex === totalIndex - 1) {
|
|
228
|
+
this.setState({
|
|
229
|
+
selectedIndex: 0
|
|
230
|
+
});
|
|
231
|
+
} else {
|
|
232
|
+
if (selectedIndex === totalIndex - 3) {
|
|
233
|
+
isNextOptions && getNextOptions && getNextOptions();
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
this.setState({
|
|
237
|
+
selectedIndex: selectedIndex + 1
|
|
238
|
+
});
|
|
232
239
|
}
|
|
233
240
|
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
241
|
+
break;
|
|
242
|
+
|
|
243
|
+
case 38:
|
|
244
|
+
if (selectedIndex === 0) {
|
|
245
|
+
this.setState({
|
|
246
|
+
selectedIndex: totalIndex - 1
|
|
247
|
+
});
|
|
248
|
+
} else {
|
|
249
|
+
this.setState({
|
|
250
|
+
selectedIndex: selectedIndex - 1
|
|
251
|
+
});
|
|
252
|
+
}
|
|
238
253
|
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
case 38:
|
|
242
|
-
if (selectedIndex === 0) {
|
|
243
|
-
this.setState({
|
|
244
|
-
selectedIndex: totalIndex - 1
|
|
245
|
-
});
|
|
246
|
-
} else {
|
|
247
|
-
this.setState({
|
|
248
|
-
selectedIndex: selectedIndex - 1
|
|
249
|
-
});
|
|
250
|
-
}
|
|
254
|
+
break;
|
|
251
255
|
|
|
252
|
-
|
|
256
|
+
case 13:
|
|
257
|
+
onClick && onClick(options[selectedIndex].name, e);
|
|
258
|
+
onTogglePopup && onTogglePopup(isPopupOpen);
|
|
259
|
+
togglePopup(e, boxPosition);
|
|
260
|
+
break;
|
|
253
261
|
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
262
|
+
default:
|
|
263
|
+
break;
|
|
264
|
+
}
|
|
265
|
+
} else {
|
|
266
|
+
if (keyCode === 13 || keyCode === 40) {
|
|
257
267
|
togglePopup(e, boxPosition);
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
default:
|
|
261
|
-
break;
|
|
268
|
+
}
|
|
262
269
|
}
|
|
263
270
|
}
|
|
264
271
|
}, {
|
|
@@ -80,11 +80,12 @@ var ModuleHeader = /*#__PURE__*/function (_PureComponent) {
|
|
|
80
80
|
miniDescription = _this$props.miniDescription,
|
|
81
81
|
dataId = _this$props.dataId,
|
|
82
82
|
closeTitle = _this$props.closeTitle,
|
|
83
|
-
onSearchKeyDown = _this$props.onSearchKeyDown
|
|
83
|
+
onSearchKeyDown = _this$props.onSearchKeyDown,
|
|
84
|
+
palette = _this$props.palette;
|
|
84
85
|
return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
85
86
|
align: "vertical",
|
|
86
87
|
alignBox: "row",
|
|
87
|
-
className: "".concat(_lookupHeaderCommonModule["default"].container),
|
|
88
|
+
className: "".concat(_lookupHeaderCommonModule["default"].container, " ").concat(_lookupHeaderCommonModule["default"]["".concat(palette)]),
|
|
88
89
|
isCover: false,
|
|
89
90
|
wrap: "wrap",
|
|
90
91
|
dataId: dataId
|
|
@@ -134,7 +135,11 @@ ModuleHeader.propTypes = {
|
|
|
134
135
|
title: _propTypes["default"].string,
|
|
135
136
|
dataId: _propTypes["default"].string,
|
|
136
137
|
closeTitle: _propTypes["default"].string,
|
|
137
|
-
onSearchKeyDown: _propTypes["default"].func
|
|
138
|
+
onSearchKeyDown: _propTypes["default"].func,
|
|
139
|
+
palette: _propTypes["default"].oneOf(['default', 'white'])
|
|
140
|
+
};
|
|
141
|
+
ModuleHeader.defaultProps = {
|
|
142
|
+
palette: 'default'
|
|
138
143
|
};
|
|
139
144
|
|
|
140
145
|
if (false) {
|
|
@@ -82,13 +82,14 @@ var TicketHeader = /*#__PURE__*/function (_Component) {
|
|
|
82
82
|
needOnTypeSearch = _this$props.needOnTypeSearch,
|
|
83
83
|
getSearchBoxRef = _this$props.getSearchBoxRef,
|
|
84
84
|
needViewsList = _this$props.needViewsList,
|
|
85
|
-
i18nKeys = _this$props.i18nKeys
|
|
85
|
+
i18nKeys = _this$props.i18nKeys,
|
|
86
|
+
palette = _this$props.palette;
|
|
86
87
|
var _i18nKeys$menuEmptyMe = i18nKeys.menuEmptyMessage,
|
|
87
88
|
menuEmptyMessage = _i18nKeys$menuEmptyMe === void 0 ? 'No matches found' : _i18nKeys$menuEmptyMe;
|
|
88
89
|
return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
89
90
|
align: "vertical",
|
|
90
91
|
alignBox: "row",
|
|
91
|
-
className: "".concat(_lookupHeaderCommonModule["default"].container, " ").concat(_lookupHeaderCommonResponsiveModule["default"].container, " ").concat(_TicketHeaderModule["default"].container),
|
|
92
|
+
className: "".concat(_lookupHeaderCommonModule["default"].container, " ").concat(_lookupHeaderCommonModule["default"]["".concat(palette)], " ").concat(_lookupHeaderCommonResponsiveModule["default"].container, " ").concat(_TicketHeaderModule["default"].container),
|
|
92
93
|
isCover: false,
|
|
93
94
|
wrap: "wrap"
|
|
94
95
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -156,10 +157,12 @@ TicketHeader.propTypes = {
|
|
|
156
157
|
title: _propTypes["default"].string,
|
|
157
158
|
i18nKeys: _propTypes["default"].shape({
|
|
158
159
|
menuEmptyMessage: _propTypes["default"].string
|
|
159
|
-
})
|
|
160
|
+
}),
|
|
161
|
+
palette: _propTypes["default"].oneOf(['default', 'white'])
|
|
160
162
|
};
|
|
161
163
|
TicketHeader.defaultProps = {
|
|
162
|
-
i18nKeys: {}
|
|
164
|
+
i18nKeys: {},
|
|
165
|
+
palette: 'default'
|
|
163
166
|
};
|
|
164
167
|
|
|
165
168
|
if (false) {
|
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
.container {
|
|
2
2
|
min-height: var(--zd_size51);
|
|
3
3
|
position: relative;
|
|
4
|
-
background-color: var(--zdt_lookupheader_default_bg);
|
|
5
|
-
border-bottom: solid 1px var(--zdt_lookupheader_default_border);
|
|
6
4
|
}[dir=ltr] .container {
|
|
7
5
|
padding: 0 var(--zd_size52) 0 var(--zd_size10);
|
|
8
6
|
}[dir=rtl] .container {
|
|
9
7
|
padding: 0 var(--zd_size10) 0 var(--zd_size52);
|
|
10
8
|
}
|
|
9
|
+
.default {
|
|
10
|
+
background-color: var(--zdt_lookupheader_default_bg);
|
|
11
|
+
border-bottom: solid 1px var(--zdt_lookupheader_default_border);
|
|
12
|
+
}
|
|
13
|
+
.white {
|
|
14
|
+
background-color: var(--zdt_lookupheader_white_bg);
|
|
15
|
+
border-bottom: solid 1px var(--zdt_lookupheader_white_border);
|
|
16
|
+
}
|
|
11
17
|
.searchContainer, .title {
|
|
12
18
|
margin: 0 var(--zd_size20);
|
|
13
19
|
}
|
|
@@ -62,14 +62,14 @@ var Views = /*#__PURE__*/function (_React$Component) {
|
|
|
62
62
|
className: _ViewsModule["default"].container
|
|
63
63
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
64
64
|
className: "".concat(_ViewsModule["default"].icon, " ").concat(_ViewsModule["default"].first, " ").concat(isList ? _ViewsModule["default"].active : ''),
|
|
65
|
-
"data-title": !isList ? listTitle :
|
|
65
|
+
"data-title": !isList ? listTitle : null,
|
|
66
66
|
onClick: onListClick
|
|
67
67
|
}, /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
|
|
68
68
|
name: "ZD-list22",
|
|
69
69
|
size: "10"
|
|
70
70
|
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
71
71
|
className: "".concat(_ViewsModule["default"].icon, " ").concat(_ViewsModule["default"].last, " ").concat(isGrid ? _ViewsModule["default"].active : ''),
|
|
72
|
-
"data-title": !isGrid ? gridTitle :
|
|
72
|
+
"data-title": !isGrid ? gridTitle : null,
|
|
73
73
|
onClick: onGridClick
|
|
74
74
|
}, /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
|
|
75
75
|
name: "ZD-grid",
|
package/lib/utils/General.js
CHANGED
|
@@ -3,14 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.formatCurrency = formatCurrency;
|
|
7
6
|
exports.formatPhoneUrl = formatPhoneUrl;
|
|
8
7
|
exports.getFullName = getFullName;
|
|
9
8
|
exports.shallowDiff = shallowDiff;
|
|
10
9
|
exports.stopBubbling = stopBubbling;
|
|
11
10
|
|
|
12
|
-
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); }
|
|
13
|
-
|
|
14
11
|
function stopBubbling(event) {
|
|
15
12
|
event.preventDefault();
|
|
16
13
|
event.stopPropagation && event.stopPropagation();
|
|
@@ -58,25 +55,4 @@ function formatPhoneUrl(phone) {
|
|
|
58
55
|
}
|
|
59
56
|
|
|
60
57
|
return phone;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
function formatCurrency(number, symbol) {
|
|
64
|
-
// format number 1000000 to 1,234,567
|
|
65
|
-
if (number && number != 0) {
|
|
66
|
-
var typeOfData = _typeof(number);
|
|
67
|
-
|
|
68
|
-
var isDecimal = typeOfData == 'string' ? number.indexOf('.') != -1 : !Number.isInteger(number);
|
|
69
|
-
|
|
70
|
-
if (isDecimal) {
|
|
71
|
-
var val = number.toString().split('.');
|
|
72
|
-
var arr1 = "".concat(val[0].replace(/\D/g, '').replace(/\B(?=(\d{3})+(?!\d))/g, ','));
|
|
73
|
-
var finalVal = "".concat(symbol).concat(arr1, ".").concat(val[1]);
|
|
74
|
-
return finalVal;
|
|
75
|
-
} else {
|
|
76
|
-
var value = "".concat(symbol).concat(number.toString().replace(/\D/g, '').replace(/\B(?=(\d{3})+(?!\d))/g, ','));
|
|
77
|
-
return value;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
return number;
|
|
82
58
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zohodesk/dot",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.224",
|
|
4
4
|
"main": "lib/index",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"jsnext:main": "es/index.js",
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
"velocity-react": "1.4.3",
|
|
36
36
|
"@zohodesk/variables": "1.0.0-beta.29",
|
|
37
37
|
"@zohodesk/i18n": "1.0.0-beta.7",
|
|
38
|
-
"@zohodesk/components": "1.0.0-alpha-
|
|
39
|
-
"@zohodesk/icons": "1.0.0-beta.
|
|
40
|
-
"@zohodesk/svg": "1.0.0-beta.
|
|
38
|
+
"@zohodesk/components": "1.0.0-alpha-237",
|
|
39
|
+
"@zohodesk/icons": "1.0.0-beta.101",
|
|
40
|
+
"@zohodesk/svg": "1.0.0-beta.43",
|
|
41
41
|
"@zohodesk/virtualizer": "1.0.3",
|
|
42
42
|
"react-sortable-hoc": "^0.8.3"
|
|
43
43
|
},
|
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
"velocity-react": "1.4.3",
|
|
46
46
|
"@zohodesk/variables": "1.0.0-beta.29",
|
|
47
47
|
"@zohodesk/i18n": "1.0.0-beta.7",
|
|
48
|
-
"@zohodesk/components": "1.0.0-alpha-
|
|
49
|
-
"@zohodesk/icons": "1.0.0-beta.
|
|
50
|
-
"@zohodesk/svg": "1.0.0-beta.
|
|
48
|
+
"@zohodesk/components": "1.0.0-alpha-237",
|
|
49
|
+
"@zohodesk/icons": "1.0.0-beta.101",
|
|
50
|
+
"@zohodesk/svg": "1.0.0-beta.43"
|
|
51
51
|
},
|
|
52
52
|
"react-cli": {
|
|
53
53
|
"preprocessor": {
|