@zohodesk/dot 1.0.0-temp-200.7 → 1.0.0-temp-213
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.cli/propValidation_report.html +1 -1
- package/README.md +9 -0
- package/assets/Appearance/dark/mode/Dot_DarkMode.module.css +1 -1
- package/assets/Appearance/light/mode/Dot_LightMode.module.css +1 -1
- package/assets/Appearance/pureDark/mode/Dot_PureDarkMode.module.css +1 -1
- package/es/ActionButton/ActionButton.module.css +2 -2
- package/es/AlphabeticList/AlphabeticList.module.css +2 -2
- package/es/Attachment/Attachment.module.css +4 -8
- package/es/AttachmentViewer/Attachment.js +0 -50
- package/es/AttachmentViewer/AttachmentViewer.js +26 -108
- package/es/AttachmentViewer/AttachmentViewer.module.css +18 -41
- package/es/AttachmentViewer/props/defaultProps.js +2 -10
- package/es/AttachmentViewer/props/propTypes.js +1 -9
- package/es/AttachmentViewer/utils.js +13 -80
- package/es/ChannelIcon/ChannelIcon.module.css +2 -2
- package/es/DotProvider/hooks/useDotProvider.js +2 -2
- package/es/Drawer/Drawer.module.css +1 -1
- package/es/FormAction/FormAction.module.css +1 -1
- package/es/IconButton/IconButton.module.css +2 -2
- package/es/Message/Message.js +1 -1
- package/es/Message/Message.module.css +1 -1
- package/es/MessageBanner/MessageBanner.module.css +1 -1
- package/es/Onboarding/CarouselDots/CarouselDot/css/CarouselDot.module.css +3 -3
- package/es/Onboarding/css/Onboarding.module.css +2 -2
- package/es/PlusIcon/PlusIcon.module.css +1 -1
- package/es/TagWithIcon/TagWithIcon.module.css +2 -2
- package/es/ToastMessage/ToastMessage.module.css +8 -8
- package/es/Upload/Upload.module.css +1 -1
- package/es/avatar/AvatarClose/AvatarClose.module.css +3 -3
- package/es/avatar/AvatarCollision/AvatarCollision.module.css +3 -3
- package/es/avatar/AvatarIcon/AvatarIcon.module.css +1 -1
- package/es/avatar/AvatarStatus/AvatarStatus.module.css +2 -2
- package/es/avatar/AvatarThread/AvatarThread.module.css +2 -2
- package/es/avatar/AvatarUser/AvatarUser.module.css +3 -3
- package/es/avatar/AvatarWithTeam/AvatarWithTeam.module.css +1 -1
- package/es/common/dot_common.module.css +4 -0
- package/es/deprecated/SelectDropdown/SelectDropdown.module.css +2 -2
- package/es/dropdown/ToggleDropDown/ToggleDropDown.js +30 -7
- package/es/dropdown/ToggleDropDown/ToggleDropDown.module.css +1 -1
- package/es/dropdown/ToggleDropDown/props/defaultProps.js +2 -1
- package/es/dropdown/ToggleDropDown/props/propTypes.js +2 -1
- package/es/errorstate/EmptyStates.module.css +1 -1
- package/es/errorstate/WillBack/WillBack.module.css +1 -1
- package/es/form/fields/Fields.module.css +9 -9
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.module.css +2 -2
- package/es/form/fields/TextEditorWrapper/TextEditorWrapper.js +1 -1
- package/es/form/layout/Section/ModuleFormSection.module.css +1 -1
- package/es/layout/SetupDetailLayout/SetupDetailLayout.module.css +4 -4
- package/es/layout/SubtabLayout/SubtabLayout.module.css +1 -1
- package/es/list/DotNew/DotNew.module.css +1 -1
- package/es/list/ListStencils/ListStencils.module.css +3 -3
- package/es/list/SecondaryText/SecondaryText.module.css +4 -4
- package/es/list/SecondryPanel/SecondryPanel.module.css +1 -1
- package/es/list/Subject/Subject.module.css +2 -2
- package/es/list/TagNew/TagNew.module.css +1 -1
- package/es/list/Thread/Thread.module.css +1 -1
- package/es/list/listCommon.module.css +3 -3
- package/es/list/status/StatusDropdown/StatusDropdown.js +2 -2
- package/es/list/status/StatusDropdown/StatusDropdown.module.css +1 -1
- package/es/list/status/StatusListItem/StatusListItem.module.css +2 -2
- package/es/lookup/EmptyPage/LookupEmptyPage.module.css +1 -1
- package/es/lookup/Section/LookupSection.module.css +1 -1
- package/es/lookup/header/Title/LookupTitle.module.css +1 -1
- package/es/lookup/header/ViewDropDown/ViewDropDown.module.css +4 -4
- package/es/lookup/header/lookupHeaderCommon.module.css +1 -1
- package/es/setup/header/Link/HeaderLink.module.css +2 -2
- package/es/setup/helptips/Title/HelpTipsTitle.module.css +1 -1
- package/es/setup/table/Text/TableText.module.css +4 -4
- package/es/utils/General.js +1 -23
- package/es/version2/GlobalNotification/GlobalNotification.module.css +2 -2
- package/es/version2/lookup/AlertHeader/css/AlertHeaderNew.module.css +1 -1
- package/es/version2/lookup/AlertLookup/AlertLookupNew.module.css +4 -4
- package/es/version2/lookup/alertLookupCommonNew.module.css +1 -1
- package/es/version2/notification/DesktopNotification/DesktopNotification.module.css +6 -6
- package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +2 -2
- package/lib/ActionButton/ActionButton.module.css +2 -2
- package/lib/AlphabeticList/AlphabeticList.module.css +2 -2
- package/lib/Attachment/Attachment.module.css +4 -8
- package/lib/AttachmentViewer/Attachment.js +0 -60
- package/lib/AttachmentViewer/AttachmentViewer.js +23 -121
- package/lib/AttachmentViewer/AttachmentViewer.module.css +18 -41
- package/lib/AttachmentViewer/props/defaultProps.js +2 -10
- package/lib/AttachmentViewer/props/propTypes.js +1 -9
- package/lib/AttachmentViewer/utils.js +8 -85
- package/lib/ChannelIcon/ChannelIcon.module.css +2 -2
- package/lib/DotProvider/hooks/useDotProvider.js +2 -2
- package/lib/Drawer/Drawer.module.css +1 -1
- package/lib/FormAction/FormAction.module.css +1 -1
- package/lib/IconButton/IconButton.module.css +2 -2
- package/lib/Message/Message.js +2 -2
- package/lib/Message/Message.module.css +1 -1
- package/lib/MessageBanner/MessageBanner.module.css +1 -1
- package/lib/Onboarding/CarouselDots/CarouselDot/css/CarouselDot.module.css +3 -3
- package/lib/Onboarding/css/Onboarding.module.css +2 -2
- package/lib/PlusIcon/PlusIcon.module.css +1 -1
- package/lib/TagWithIcon/TagWithIcon.module.css +2 -2
- package/lib/ToastMessage/ToastMessage.module.css +8 -8
- package/lib/Upload/Upload.module.css +1 -1
- package/lib/avatar/AvatarClose/AvatarClose.module.css +3 -3
- package/lib/avatar/AvatarCollision/AvatarCollision.module.css +3 -3
- package/lib/avatar/AvatarIcon/AvatarIcon.module.css +1 -1
- package/lib/avatar/AvatarStatus/AvatarStatus.module.css +2 -2
- package/lib/avatar/AvatarThread/AvatarThread.module.css +2 -2
- package/lib/avatar/AvatarUser/AvatarUser.module.css +3 -3
- package/lib/avatar/AvatarWithTeam/AvatarWithTeam.module.css +1 -1
- package/lib/common/dot_common.module.css +4 -0
- package/lib/deprecated/SelectDropdown/SelectDropdown.module.css +2 -2
- package/lib/dropdown/ToggleDropDown/ToggleDropDown.js +34 -11
- package/lib/dropdown/ToggleDropDown/ToggleDropDown.module.css +1 -1
- package/lib/dropdown/ToggleDropDown/props/defaultProps.js +2 -1
- package/lib/dropdown/ToggleDropDown/props/propTypes.js +2 -1
- package/lib/errorstate/EmptyStates.module.css +1 -1
- package/lib/errorstate/WillBack/WillBack.module.css +1 -1
- package/lib/form/fields/Fields.module.css +9 -9
- package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.module.css +2 -2
- package/lib/form/fields/TextEditorWrapper/TextEditorWrapper.js +2 -2
- package/lib/form/layout/Section/ModuleFormSection.module.css +1 -1
- package/lib/layout/SetupDetailLayout/SetupDetailLayout.module.css +4 -4
- package/lib/layout/SubtabLayout/SubtabLayout.module.css +1 -1
- package/lib/list/DotNew/DotNew.module.css +1 -1
- package/lib/list/ListStencils/ListStencils.module.css +3 -3
- package/lib/list/SecondaryText/SecondaryText.module.css +4 -4
- package/lib/list/SecondryPanel/SecondryPanel.module.css +1 -1
- package/lib/list/Subject/Subject.module.css +2 -2
- package/lib/list/TagNew/TagNew.module.css +1 -1
- package/lib/list/Thread/Thread.module.css +1 -1
- package/lib/list/listCommon.module.css +3 -3
- package/lib/list/status/StatusDropdown/StatusDropdown.js +3 -3
- package/lib/list/status/StatusDropdown/StatusDropdown.module.css +1 -1
- package/lib/list/status/StatusListItem/StatusListItem.module.css +2 -2
- package/lib/lookup/EmptyPage/LookupEmptyPage.module.css +1 -1
- package/lib/lookup/Section/LookupSection.module.css +1 -1
- package/lib/lookup/header/Title/LookupTitle.module.css +1 -1
- package/lib/lookup/header/ViewDropDown/ViewDropDown.module.css +4 -4
- package/lib/lookup/header/lookupHeaderCommon.module.css +1 -1
- package/lib/setup/header/Link/HeaderLink.module.css +2 -2
- package/lib/setup/helptips/Title/HelpTipsTitle.module.css +1 -1
- package/lib/setup/table/Text/TableText.module.css +4 -4
- package/lib/utils/General.js +1 -25
- package/lib/version2/GlobalNotification/GlobalNotification.module.css +2 -2
- package/lib/version2/lookup/AlertHeader/css/AlertHeaderNew.module.css +1 -1
- package/lib/version2/lookup/AlertLookup/AlertLookupNew.module.css +4 -4
- package/lib/version2/lookup/alertLookupCommonNew.module.css +1 -1
- package/lib/version2/notification/DesktopNotification/DesktopNotification.module.css +6 -6
- package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +2 -2
- package/package.json +19 -15
- package/result.json +0 -1
- package/unittest/index.html +0 -45
|
@@ -3,12 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.ZoomEvent = exports.Zoom =
|
|
6
|
+
exports.ZoomEvent = exports.Zoom = void 0;
|
|
7
7
|
exports.checkAudioUrlValidity = checkAudioUrlValidity;
|
|
8
8
|
exports.checkFileSourcesValidation = checkFileSourcesValidation;
|
|
9
9
|
exports.checkImageValidity = checkImageValidity;
|
|
10
|
-
exports.checkVideoUrlValidity = checkVideoUrlValidity;
|
|
11
|
-
exports.isValidDocument = isValidDocument;
|
|
12
10
|
|
|
13
11
|
var _Attachment = require("./Attachment");
|
|
14
12
|
|
|
@@ -155,21 +153,6 @@ function checkImageValidity(src) {
|
|
|
155
153
|
});
|
|
156
154
|
}
|
|
157
155
|
|
|
158
|
-
function checkVideoUrlValidity(url) {
|
|
159
|
-
return new Promise(function (resolve) {
|
|
160
|
-
var video = document.createElement('video');
|
|
161
|
-
video.src = url;
|
|
162
|
-
|
|
163
|
-
video.oncanplaythrough = function () {
|
|
164
|
-
return resolve(true);
|
|
165
|
-
};
|
|
166
|
-
|
|
167
|
-
video.onerror = function () {
|
|
168
|
-
return resolve(false);
|
|
169
|
-
};
|
|
170
|
-
});
|
|
171
|
-
}
|
|
172
|
-
|
|
173
156
|
function checkAudioUrlValidity(url) {
|
|
174
157
|
return new Promise(function (resolve) {
|
|
175
158
|
var audio = new Audio(url);
|
|
@@ -186,85 +169,25 @@ function checkAudioUrlValidity(url) {
|
|
|
186
169
|
|
|
187
170
|
;
|
|
188
171
|
|
|
189
|
-
function isValidDocument(url) {
|
|
190
|
-
if (!url) {
|
|
191
|
-
return false;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
return true;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
var FILE_EXTENSIONS = {
|
|
198
|
-
audio: ['mp3', 'wav', 'wma', 'aac', 'm4r', 'm4a', 'flac', 'aiff', 'alac', 'ogg', 'opus', 'amr', 'mid', 'midi'],
|
|
199
|
-
video: ['mp4', 'mkv', 'mov', 'mpeg', 'mpg', 'flv', 'wmv', 'avi', 'webm', 'ogv', 'm4v', '3gp', '3g2'],
|
|
200
|
-
document: ['doc', 'docx', 'docm', 'dot', 'dotx', 'dotm', 'odt', 'rtf', 'txt', 'md', 'pages', 'xls', 'xlsx', 'xlsm', 'xlsb', 'csv', 'tsv', 'ods', 'sxc', 'numbers', 'ppt', 'pptx', 'pps', 'ppsx', 'pot', 'potx', 'odp', 'sxi', 'key', 'pdf', 'xml', 'json', 'yaml', 'yml', 'log', 'eml', 'msg'],
|
|
201
|
-
image: ['jpeg', 'jpg', 'png', 'apng', 'gif', 'bmp', 'dib', 'tiff', 'tif', 'ico', 'svg', 'webp', 'heic', 'heif', 'jfif', 'pjpeg', 'pjp', 'avif']
|
|
202
|
-
};
|
|
203
|
-
exports.FILE_EXTENSIONS = FILE_EXTENSIONS;
|
|
204
|
-
|
|
205
172
|
function checkFileSourcesValidation(_ref) {
|
|
206
|
-
var _getExtensionFromFile;
|
|
207
|
-
|
|
208
173
|
var fileName = _ref.fileName,
|
|
209
|
-
viewURL = _ref.viewURL
|
|
210
|
-
previewUrl = _ref.previewUrl,
|
|
211
|
-
allowedPreviewExtensionsData = _ref.allowedPreviewExtensionsData;
|
|
212
|
-
var extension = (_getExtensionFromFile = (0, _Attachment.getExtensionFromFileName)(fileName)) === null || _getExtensionFromFile === void 0 ? void 0 : _getExtensionFromFile.toLowerCase();
|
|
213
|
-
|
|
214
|
-
if (!extension) {
|
|
215
|
-
return Promise.resolve({
|
|
216
|
-
isViewURLValid: false,
|
|
217
|
-
canZoom: false
|
|
218
|
-
});
|
|
219
|
-
}
|
|
174
|
+
viewURL = _ref.viewURL;
|
|
220
175
|
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
var list = extensionSource[type];
|
|
225
|
-
if (!Array.isArray(list)) return false;
|
|
226
|
-
return list.map(function (e) {
|
|
227
|
-
return e.toLowerCase();
|
|
228
|
-
}).includes(extension);
|
|
229
|
-
};
|
|
230
|
-
|
|
231
|
-
if (fileExtensionValidation('audio')) {
|
|
232
|
-
return checkAudioUrlValidity(viewURL).then(function (isURLValid) {
|
|
233
|
-
return {
|
|
234
|
-
isViewURLValid: isURLValid,
|
|
235
|
-
canZoom: false
|
|
236
|
-
};
|
|
237
|
-
});
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
if (fileExtensionValidation('video')) {
|
|
241
|
-
return checkVideoUrlValidity(viewURL).then(function (isURLValid) {
|
|
176
|
+
if ((0, _Attachment.isAudioFile)(fileName)) {
|
|
177
|
+
var audioValidityPromise = checkAudioUrlValidity(viewURL);
|
|
178
|
+
return audioValidityPromise.then(function (isURLValid) {
|
|
242
179
|
return {
|
|
243
180
|
isViewURLValid: isURLValid,
|
|
244
181
|
canZoom: false
|
|
245
182
|
};
|
|
246
183
|
});
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
var isValid = isValidDocument(previewUrl, fileName);
|
|
251
|
-
return Promise.resolve({
|
|
252
|
-
isViewURLValid: isValid,
|
|
253
|
-
canZoom: false
|
|
254
|
-
});
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
if (fileExtensionValidation('image')) {
|
|
258
|
-
return checkImageValidity(viewURL).then(function (isURLValid) {
|
|
184
|
+
} else {
|
|
185
|
+
var imageValidityPromise = checkImageValidity(viewURL);
|
|
186
|
+
return imageValidityPromise.then(function (isURLValid) {
|
|
259
187
|
return {
|
|
260
188
|
isViewURLValid: isURLValid,
|
|
261
189
|
canZoom: isURLValid
|
|
262
190
|
};
|
|
263
191
|
});
|
|
264
192
|
}
|
|
265
|
-
|
|
266
|
-
return Promise.resolve({
|
|
267
|
-
isViewURLValid: false,
|
|
268
|
-
canZoom: false
|
|
269
|
-
});
|
|
270
193
|
}
|
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
|
|
8
8
|
.container {
|
|
9
9
|
position: relative;
|
|
10
|
-
composes: dInflex from '~@zohodesk/components/
|
|
10
|
+
composes: dInflex from '~@zohodesk/components/es/common/common.module.css';
|
|
11
11
|
vertical-align: middle;
|
|
12
12
|
composes: varClass;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
.thread {
|
|
16
|
-
composes: dflex alignVertical alignHorizontal rounded from '~@zohodesk/components/
|
|
16
|
+
composes: dflex alignVertical alignHorizontal rounded from '~@zohodesk/components/es/common/common.module.css';
|
|
17
17
|
position: absolute;
|
|
18
18
|
top: calc( var(--zd_size4) * -1 ) ;
|
|
19
19
|
height: var(--zd_size15) ;
|
|
@@ -21,9 +21,9 @@ require("@zohodesk/variables/assets/dotVariables.module.css");
|
|
|
21
21
|
|
|
22
22
|
require("@zohodesk/components/es/common/basic.module.css");
|
|
23
23
|
|
|
24
|
-
require("@zohodesk/variables/
|
|
24
|
+
require("@zohodesk/variables/es/fontFamilyVariables.module.css");
|
|
25
25
|
|
|
26
|
-
require("@zohodesk/components/
|
|
26
|
+
require("@zohodesk/components/es/common/boxShadow.module.css");
|
|
27
27
|
|
|
28
28
|
require("../../common/dot_boxShadow.module.css");
|
|
29
29
|
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
.title {
|
|
111
111
|
color: var(--zdt_drawer_title_text);
|
|
112
112
|
font-family: var(--zd_semibold);
|
|
113
|
-
composes: dotted from '~@zohodesk/components/
|
|
113
|
+
composes: dotted from '~@zohodesk/components/es/common/common.module.css';
|
|
114
114
|
font-size: var(--zd_font_size16) ;
|
|
115
115
|
}
|
|
116
116
|
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
.marginRight {
|
|
76
|
-
composes: dinblk from '~@zohodesk/components/
|
|
76
|
+
composes: dinblk from '~@zohodesk/components/es/common/common.module.css';
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
[dir=ltr] .largeFooter .marginRight, [dir=ltr] .mediumFooter .marginRight {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
.wrapper {
|
|
6
|
-
composes: offSelection from '~@zohodesk/components/
|
|
6
|
+
composes: offSelection from '~@zohodesk/components/es/common/common.module.css';
|
|
7
7
|
composes: varClass;
|
|
8
8
|
color: var(--iconColor);
|
|
9
9
|
cursor: pointer;
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
--iconColor: var(--zdt_iconButton_icon_primaryActive);
|
|
49
49
|
}
|
|
50
50
|
.icon_button_center {
|
|
51
|
-
composes: tcenter from '~@zohodesk/components/
|
|
51
|
+
composes: tcenter from '~@zohodesk/components/es/common/common.module.css';
|
|
52
52
|
}
|
package/lib/Message/Message.js
CHANGED
|
@@ -63,8 +63,8 @@ var Message = /*#__PURE__*/function (_React$Component) {
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
_createClass(Message, [{
|
|
66
|
-
key: "
|
|
67
|
-
value: function
|
|
66
|
+
key: "UNSAFE_componentWillReceiveProps",
|
|
67
|
+
value: function UNSAFE_componentWillReceiveProps(nextProps) {
|
|
68
68
|
var _this$props = this.props,
|
|
69
69
|
showMessage = _this$props.showMessage,
|
|
70
70
|
hideMessage = _this$props.hideMessage;
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
color: var(--zdt_message_tickicon);
|
|
84
84
|
font-size: var(--zd_font_size16) ;
|
|
85
85
|
position: absolute;
|
|
86
|
-
composes: middleBoth from '~@zohodesk/components/
|
|
86
|
+
composes: middleBoth from '~@zohodesk/components/es/common/common.module.css';
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
.close {
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
}
|
|
6
6
|
.message {
|
|
7
7
|
color: var(--zdt_messagebanner_text);
|
|
8
|
-
composes: dotted from '~@zohodesk/components/
|
|
8
|
+
composes: dotted from '~@zohodesk/components/es/common/common.module.css';
|
|
9
9
|
padding: var(--zd_size10) 0 ;
|
|
10
10
|
}
|
|
11
11
|
[dir=ltr] .message {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
.bulletNormal{
|
|
2
|
-
composes: pointer from '~@zohodesk/components/
|
|
2
|
+
composes: pointer from '~@zohodesk/components/es/common/common.module.css';
|
|
3
3
|
}
|
|
4
4
|
.bulletNormal:hover {
|
|
5
5
|
transform: scale(1.4);
|
|
@@ -66,9 +66,9 @@
|
|
|
66
66
|
}
|
|
67
67
|
@keyframes progressLoading {
|
|
68
68
|
0% {
|
|
69
|
-
inset-inline-start: -100
|
|
69
|
+
inset-inline-start: -100% ;
|
|
70
70
|
}
|
|
71
71
|
100% {
|
|
72
|
-
inset-inline-start: 0
|
|
72
|
+
inset-inline-start: 0% ;
|
|
73
73
|
}
|
|
74
74
|
}
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
position: absolute;
|
|
135
135
|
top: 0 ;
|
|
136
136
|
bottom: 0 ;
|
|
137
|
-
composes: navigate transZ from '~@zohodesk/components/
|
|
137
|
+
composes: navigate transZ from '~@zohodesk/components/es/common/animation.module.css';
|
|
138
138
|
}
|
|
139
139
|
[dir=ltr] .playIconWrapper {
|
|
140
140
|
left: 0 ;
|
|
@@ -203,7 +203,7 @@
|
|
|
203
203
|
.secondaryButttonLink {
|
|
204
204
|
letter-spacing: 0.2px;
|
|
205
205
|
text-transform: capitalize;
|
|
206
|
-
composes: dotted from '~@zohodesk/components/
|
|
206
|
+
composes: dotted from '~@zohodesk/components/es/common/common.module.css';
|
|
207
207
|
border-radius: 4px;
|
|
208
208
|
cursor: pointer;
|
|
209
209
|
text-align:center;
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
.bold {
|
|
28
|
-
composes: semibold from '~@zohodesk/components/
|
|
28
|
+
composes: semibold from '~@zohodesk/components/es/common/common.module.css';
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
.small_text {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
.text {
|
|
40
|
-
composes: dotted from '~@zohodesk/components/
|
|
40
|
+
composes: dotted from '~@zohodesk/components/es/common/common.module.css';
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
[dir=ltr] .iconSpace {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
.animation {
|
|
22
|
-
composes: modeForward from '~@zohodesk/components/
|
|
22
|
+
composes: modeForward from '~@zohodesk/components/es/common/animation.module.css';
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
[dir=ltr] .animation {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
.leftanimate {
|
|
36
|
-
composes: slideLeft from '~@zohodesk/components/
|
|
36
|
+
composes: slideLeft from '~@zohodesk/components/es/common/animation.module.css';
|
|
37
37
|
composes: animation;
|
|
38
38
|
}
|
|
39
39
|
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
.rightanimate {
|
|
46
|
-
composes: slideRight from '~@zohodesk/components/
|
|
46
|
+
composes: slideRight from '~@zohodesk/components/es/common/animation.module.css';
|
|
47
47
|
composes: animation;
|
|
48
48
|
composes: closeAnimation;
|
|
49
49
|
}
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
.popbutton {
|
|
80
80
|
font-size: var(--zd_font_size10) ;
|
|
81
81
|
color: var(--zdt_toastmessage_popbutton_text);
|
|
82
|
-
composes: wbreak textCap from '~@zohodesk/components/
|
|
82
|
+
composes: wbreak textCap from '~@zohodesk/components/es/common/common.module.css';
|
|
83
83
|
transition: all var(--zd_transition3);
|
|
84
84
|
position: relative;
|
|
85
85
|
cursor: pointer;
|
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
.alertTitle {
|
|
164
|
-
composes: semibold wbreak dotted from '~@zohodesk/components/
|
|
164
|
+
composes: semibold wbreak dotted from '~@zohodesk/components/es/common/common.module.css';
|
|
165
165
|
font-size: var(--zd_font_size14) ;
|
|
166
166
|
color: var(--zdt_toastmessage_alerttitle_text);
|
|
167
167
|
}
|
|
@@ -176,7 +176,7 @@
|
|
|
176
176
|
|
|
177
177
|
.alertMessage {
|
|
178
178
|
font-size: var(--zd_font_size12) ;
|
|
179
|
-
composes: wbreak from '~@zohodesk/components/
|
|
179
|
+
composes: wbreak from '~@zohodesk/components/es/common/common.module.css';
|
|
180
180
|
line-height: 1.3333;
|
|
181
181
|
color: var(--zdt_toastmessage_alert_text);
|
|
182
182
|
margin-top: var(--zd_size5) ;
|
|
@@ -256,7 +256,7 @@
|
|
|
256
256
|
position: relative;
|
|
257
257
|
color: var(--zdt_toastmessage_popbutton_text);
|
|
258
258
|
font-size: var(--zd_font_size11) ;
|
|
259
|
-
composes: dotted textCap from '~@zohodesk/components/
|
|
259
|
+
composes: dotted textCap from '~@zohodesk/components/es/common/common.module.css';
|
|
260
260
|
height: var(--zd_size33) ;
|
|
261
261
|
transition: padding var(--zd_transition3), height var(--zd_transition3);
|
|
262
262
|
border-top: 1px solid var(--zdt_toastmessage_message_border);
|
|
@@ -295,7 +295,7 @@
|
|
|
295
295
|
width: var(--zd_size29) ;
|
|
296
296
|
height: var(--zd_size29) ;
|
|
297
297
|
line-height: var(--zd_size29);
|
|
298
|
-
composes: rounded from '~@zohodesk/components/
|
|
298
|
+
composes: rounded from '~@zohodesk/components/es/common/common.module.css';
|
|
299
299
|
text-align: center;
|
|
300
300
|
}
|
|
301
301
|
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
.attachsize {
|
|
74
74
|
font-size: var(--zd_font_size10) ;
|
|
75
75
|
letter-spacing: 1px;
|
|
76
|
-
composes: dotted from "~@zohodesk/components/
|
|
76
|
+
composes: dotted from "~@zohodesk/components/es/common/common.module.css";
|
|
77
77
|
text-transform: uppercase;
|
|
78
78
|
padding: var(--zd_size4) 0 var(--zd_size2) ;
|
|
79
79
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
.container {
|
|
2
2
|
position: relative;
|
|
3
|
-
composes: dInflex from '~@zohodesk/components/
|
|
3
|
+
composes: dInflex from '~@zohodesk/components/es/common/common.module.css';
|
|
4
4
|
vertical-align: middle;
|
|
5
5
|
}
|
|
6
6
|
.pop {
|
|
7
7
|
position: absolute;
|
|
8
|
-
composes: rounded from '~@zohodesk/components/
|
|
8
|
+
composes: rounded from '~@zohodesk/components/es/common/common.module.css';
|
|
9
9
|
opacity: 0;
|
|
10
10
|
visibility: hidden;
|
|
11
11
|
top: 0 ;
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
position: absolute;
|
|
30
30
|
line-height: 0;
|
|
31
31
|
font-size: var(--zd_font_size16) ;
|
|
32
|
-
composes: middleBoth from '~@zohodesk/components/
|
|
32
|
+
composes: middleBoth from '~@zohodesk/components/es/common/common.module.css';
|
|
33
33
|
}
|
|
34
34
|
.container:hover .pop {
|
|
35
35
|
opacity: 1;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.container {
|
|
2
2
|
position: relative;
|
|
3
|
-
composes: dInflex from '~@zohodesk/components/
|
|
3
|
+
composes: dInflex from '~@zohodesk/components/es/common/common.module.css';
|
|
4
4
|
vertical-align: middle;
|
|
5
5
|
border-radius: 50%;
|
|
6
6
|
padding: var(--zd_size2) ;
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
}
|
|
18
18
|
.pop {
|
|
19
19
|
position: absolute;
|
|
20
|
-
composes: rounded from '~@zohodesk/components/
|
|
20
|
+
composes: rounded from '~@zohodesk/components/es/common/common.module.css';
|
|
21
21
|
opacity: 0;
|
|
22
22
|
visibility: hidden;
|
|
23
23
|
top: 0 ;
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
.icon {
|
|
39
39
|
position: absolute;
|
|
40
40
|
line-height: 0;
|
|
41
|
-
composes: middleBoth from '~@zohodesk/components/
|
|
41
|
+
composes: middleBoth from '~@zohodesk/components/es/common/common.module.css';
|
|
42
42
|
color: var(--zdt_avatarcollision_icon_text);
|
|
43
43
|
font-size: var(--zd_font_size13) ;
|
|
44
44
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
.container {
|
|
2
2
|
position: relative;
|
|
3
|
-
composes: dInflex from '~@zohodesk/components/
|
|
3
|
+
composes: dInflex from '~@zohodesk/components/es/common/common.module.css';
|
|
4
4
|
vertical-align: middle;
|
|
5
5
|
}
|
|
6
6
|
.state {
|
|
7
7
|
position: absolute;
|
|
8
|
-
composes: rounded from '~@zohodesk/components/
|
|
8
|
+
composes: rounded from '~@zohodesk/components/es/common/common.module.css';
|
|
9
9
|
display: inline-block;
|
|
10
10
|
}
|
|
11
11
|
.circle.state {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
.container {
|
|
2
2
|
position: relative;
|
|
3
|
-
composes: dInflex from '~@zohodesk/components/
|
|
3
|
+
composes: dInflex from '~@zohodesk/components/es/common/common.module.css';
|
|
4
4
|
vertical-align: middle;
|
|
5
5
|
border-radius: 50%;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.thread {
|
|
9
|
-
composes: rounded from '~@zohodesk/components/
|
|
9
|
+
composes: rounded from '~@zohodesk/components/es/common/common.module.css';
|
|
10
10
|
position: absolute;
|
|
11
11
|
}
|
|
12
12
|
.pointer {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.container {
|
|
2
2
|
position: relative;
|
|
3
|
-
composes: dInflex from '~@zohodesk/components/
|
|
3
|
+
composes: dInflex from '~@zohodesk/components/es/common/common.module.css';
|
|
4
4
|
vertical-align: middle;
|
|
5
5
|
}
|
|
6
6
|
.paid,
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
line-height: 0;
|
|
17
17
|
}
|
|
18
18
|
.paid {
|
|
19
|
-
composes: middle from '~@zohodesk/components/
|
|
19
|
+
composes: middle from '~@zohodesk/components/es/common/common.module.css';
|
|
20
20
|
}
|
|
21
21
|
[dir=ltr] .paid {
|
|
22
22
|
left: 50% ;
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
height: 100% ;
|
|
38
38
|
opacity: 0;
|
|
39
39
|
transition: all var(--zd_transition3);
|
|
40
|
-
composes: dflex alignHorizontal alignVertical from '~@zohodesk/components/
|
|
40
|
+
composes: dflex alignHorizontal alignVertical from '~@zohodesk/components/es/common/common.module.css';
|
|
41
41
|
color: var(--zdt_avataruser_delete_text);
|
|
42
42
|
cursor: pointer;
|
|
43
43
|
border-radius: 50%;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
.container {
|
|
3
3
|
position: relative;
|
|
4
4
|
line-height: var(--zd_size18);
|
|
5
|
-
composes: dInflex alignVertical from '~@zohodesk/components/
|
|
5
|
+
composes: dInflex alignVertical from '~@zohodesk/components/es/common/common.module.css';
|
|
6
6
|
padding: var(--zd_size3) var(--zd_size15) ;
|
|
7
7
|
cursor: pointer;
|
|
8
8
|
}
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
.departName {
|
|
19
19
|
font-size: var(--zd_font_size13) ;
|
|
20
20
|
color: var(--zdt_selectdropdown_departname_text);
|
|
21
|
-
composes: flexgrow dotted offSelection from '~@zohodesk/components/
|
|
21
|
+
composes: flexgrow dotted offSelection from '~@zohodesk/components/es/common/common.module.css';
|
|
22
22
|
}
|
|
23
23
|
.departIcon {
|
|
24
24
|
color: var(--zdt_selectdropdown_departicon);
|
|
@@ -19,7 +19,7 @@ var _Popup = _interopRequireDefault(require("@zohodesk/components/lib/Popup/Popu
|
|
|
19
19
|
|
|
20
20
|
var _Layout = require("@zohodesk/components/lib/Layout");
|
|
21
21
|
|
|
22
|
-
var _ListItem = _interopRequireDefault(require("@zohodesk/components/
|
|
22
|
+
var _ListItem = _interopRequireDefault(require("@zohodesk/components/es/ListItem/ListItem"));
|
|
23
23
|
|
|
24
24
|
var _ListItemWithIcon = _interopRequireDefault(require("@zohodesk/components/lib/ListItem/ListItemWithIcon"));
|
|
25
25
|
|
|
@@ -281,8 +281,10 @@ var ToggleDropDown = /*#__PURE__*/function (_Component) {
|
|
|
281
281
|
keyName = _this$props6.keyName,
|
|
282
282
|
isGroupDropDown = _this$props6.isGroupDropDown,
|
|
283
283
|
groupOptionsKey = _this$props6.groupOptionsKey,
|
|
284
|
-
groupNameKey = _this$props6.groupNameKey
|
|
284
|
+
groupNameKey = _this$props6.groupNameKey,
|
|
285
|
+
searchFields = _this$props6.searchFields;
|
|
285
286
|
searchValue = searchValue.trim().toLowerCase();
|
|
287
|
+
searchFields.push(keyName !== 'value' ? keyName : 'value');
|
|
286
288
|
var result = [];
|
|
287
289
|
|
|
288
290
|
if (isGroupDropDown) {
|
|
@@ -292,8 +294,15 @@ var ToggleDropDown = /*#__PURE__*/function (_Component) {
|
|
|
292
294
|
var name = group[groupNameKey];
|
|
293
295
|
var groupOptions = group[groupOptionsKey];
|
|
294
296
|
var datas = groupOptions.filter(function (list) {
|
|
295
|
-
|
|
296
|
-
|
|
297
|
+
return searchFields.some(function (key) {
|
|
298
|
+
var val = list[key];
|
|
299
|
+
|
|
300
|
+
if (val === null || val === undefined) {
|
|
301
|
+
return false;
|
|
302
|
+
} else {
|
|
303
|
+
return val.toLowerCase().includes(searchValue);
|
|
304
|
+
}
|
|
305
|
+
});
|
|
297
306
|
});
|
|
298
307
|
|
|
299
308
|
if (datas.length) {
|
|
@@ -309,7 +318,15 @@ var ToggleDropDown = /*#__PURE__*/function (_Component) {
|
|
|
309
318
|
return true;
|
|
310
319
|
}
|
|
311
320
|
|
|
312
|
-
return
|
|
321
|
+
return searchFields.some(function (key) {
|
|
322
|
+
var val = item[key];
|
|
323
|
+
|
|
324
|
+
if (val === null || val === undefined) {
|
|
325
|
+
return false;
|
|
326
|
+
} else {
|
|
327
|
+
return val.toLowerCase().includes(searchValue);
|
|
328
|
+
}
|
|
329
|
+
});
|
|
313
330
|
});
|
|
314
331
|
|
|
315
332
|
if (filteredOptions.length) {
|
|
@@ -783,7 +800,8 @@ var ToggleDropDown = /*#__PURE__*/function (_Component) {
|
|
|
783
800
|
_item$disableTitle = item.disableTitle,
|
|
784
801
|
disableTitle = _item$disableTitle === void 0 ? '' : _item$disableTitle,
|
|
785
802
|
_item$isDisabled = item.isDisabled,
|
|
786
|
-
isDisabled = _item$isDisabled === void 0 ? false : _item$isDisabled
|
|
803
|
+
isDisabled = _item$isDisabled === void 0 ? false : _item$isDisabled,
|
|
804
|
+
secondaryValue = item.secondaryValue;
|
|
787
805
|
listIndex += 1;
|
|
788
806
|
return iconName ? /*#__PURE__*/_react["default"].createElement(_ListItemWithIcon["default"], _extends({
|
|
789
807
|
key: listIndex,
|
|
@@ -811,7 +829,8 @@ var ToggleDropDown = /*#__PURE__*/function (_Component) {
|
|
|
811
829
|
role: isSearch ? 'option' : 'menuitem',
|
|
812
830
|
ariaSelected: selectedId === item[idName],
|
|
813
831
|
ariaLabel: item[keyName]
|
|
814
|
-
}
|
|
832
|
+
},
|
|
833
|
+
secondaryValue: secondaryValue
|
|
815
834
|
}, ListItemWithIconProps)) : /*#__PURE__*/_react["default"].createElement(_ListItem["default"], _extends({
|
|
816
835
|
key: listIndex,
|
|
817
836
|
dataId: item[keyName],
|
|
@@ -835,7 +854,8 @@ var ToggleDropDown = /*#__PURE__*/function (_Component) {
|
|
|
835
854
|
role: isSearch ? 'option' : 'menuitem',
|
|
836
855
|
ariaSelected: selectedId === item[idName],
|
|
837
856
|
ariaLabel: item[keyName]
|
|
838
|
-
}
|
|
857
|
+
},
|
|
858
|
+
secondaryValue: secondaryValue
|
|
839
859
|
}, ListItemProps));
|
|
840
860
|
}));
|
|
841
861
|
}), isFetchingOptions && /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
@@ -850,7 +870,8 @@ var ToggleDropDown = /*#__PURE__*/function (_Component) {
|
|
|
850
870
|
_item$isDisabled2 = item.isDisabled,
|
|
851
871
|
isDisabled = _item$isDisabled2 === void 0 ? false : _item$isDisabled2,
|
|
852
872
|
_item$disableTitle2 = item.disableTitle,
|
|
853
|
-
disableTitle = _item$disableTitle2 === void 0 ? '' : _item$disableTitle2
|
|
873
|
+
disableTitle = _item$disableTitle2 === void 0 ? '' : _item$disableTitle2,
|
|
874
|
+
secondaryValue = item.secondaryValue;
|
|
854
875
|
|
|
855
876
|
if (!needDivider) {
|
|
856
877
|
listIndex += 1;
|
|
@@ -886,7 +907,8 @@ var ToggleDropDown = /*#__PURE__*/function (_Component) {
|
|
|
886
907
|
role: isSearch ? 'option' : 'menuitem',
|
|
887
908
|
ariaSelected: selectedId === item[idName],
|
|
888
909
|
ariaLabel: item[keyName]
|
|
889
|
-
}
|
|
910
|
+
},
|
|
911
|
+
secondaryValue: secondaryValue
|
|
890
912
|
}, ListItemWithIconProps)) : /*#__PURE__*/_react["default"].createElement(_ListItem["default"], _extends({
|
|
891
913
|
key: listIndex,
|
|
892
914
|
dataId: item[keyName],
|
|
@@ -910,7 +932,8 @@ var ToggleDropDown = /*#__PURE__*/function (_Component) {
|
|
|
910
932
|
role: isSearch ? 'option' : 'menuitem',
|
|
911
933
|
ariaSelected: selectedId === item[idName],
|
|
912
934
|
ariaLabel: item[keyName]
|
|
913
|
-
}
|
|
935
|
+
},
|
|
936
|
+
secondaryValue: secondaryValue
|
|
914
937
|
}, ListItemProps)));
|
|
915
938
|
}), isFetchingOptions && /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
916
939
|
isCover: false,
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
visibility: visible;
|
|
41
41
|
}
|
|
42
42
|
.value {
|
|
43
|
-
composes: dotted offSelection from '~@zohodesk/components/
|
|
43
|
+
composes: dotted offSelection from '~@zohodesk/components/es/common/common.module.css';
|
|
44
44
|
}
|
|
45
45
|
.search {
|
|
46
46
|
padding: var(--zd_size6) var(--zd_size20) 0 ;
|