@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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { isAudioFile } from "./Attachment";
|
|
2
2
|
export class Zoom {
|
|
3
3
|
constructor() {
|
|
4
4
|
const matrix = [1, 0, 0, 1, 0, 0]; // current view transform
|
|
@@ -120,16 +120,6 @@ export function checkImageValidity(src) {
|
|
|
120
120
|
};
|
|
121
121
|
});
|
|
122
122
|
}
|
|
123
|
-
export function checkVideoUrlValidity(url) {
|
|
124
|
-
return new Promise(resolve => {
|
|
125
|
-
const video = document.createElement('video');
|
|
126
|
-
video.src = url;
|
|
127
|
-
|
|
128
|
-
video.oncanplaythrough = () => resolve(true);
|
|
129
|
-
|
|
130
|
-
video.onerror = () => resolve(false);
|
|
131
|
-
});
|
|
132
|
-
}
|
|
133
123
|
export function checkAudioUrlValidity(url) {
|
|
134
124
|
return new Promise(resolve => {
|
|
135
125
|
const audio = new Audio(url);
|
|
@@ -144,80 +134,23 @@ export function checkAudioUrlValidity(url) {
|
|
|
144
134
|
});
|
|
145
135
|
}
|
|
146
136
|
;
|
|
147
|
-
export function isValidDocument(url) {
|
|
148
|
-
if (!url) {
|
|
149
|
-
return false;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
return true;
|
|
153
|
-
}
|
|
154
|
-
export const FILE_EXTENSIONS = {
|
|
155
|
-
audio: ['mp3', 'wav', 'wma', 'aac', 'm4r', 'm4a', 'flac', 'aiff', 'alac', 'ogg', 'opus', 'amr', 'mid', 'midi'],
|
|
156
|
-
video: ['mp4', 'mkv', 'mov', 'mpeg', 'mpg', 'flv', 'wmv', 'avi', 'webm', 'ogv', 'm4v', '3gp', '3g2'],
|
|
157
|
-
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'],
|
|
158
|
-
image: ['jpeg', 'jpg', 'png', 'apng', 'gif', 'bmp', 'dib', 'tiff', 'tif', 'ico', 'svg', 'webp', 'heic', 'heif', 'jfif', 'pjpeg', 'pjp', 'avif']
|
|
159
|
-
};
|
|
160
137
|
export function checkFileSourcesValidation(_ref) {
|
|
161
138
|
let {
|
|
162
139
|
fileName,
|
|
163
|
-
viewURL
|
|
164
|
-
previewUrl,
|
|
165
|
-
allowedPreviewExtensionsData
|
|
140
|
+
viewURL
|
|
166
141
|
} = _ref;
|
|
167
|
-
const extension = getExtensionFromFileName(fileName)?.toLowerCase();
|
|
168
142
|
|
|
169
|
-
if (
|
|
170
|
-
|
|
171
|
-
|
|
143
|
+
if (isAudioFile(fileName)) {
|
|
144
|
+
const audioValidityPromise = checkAudioUrlValidity(viewURL);
|
|
145
|
+
return audioValidityPromise.then(isURLValid => ({
|
|
146
|
+
isViewURLValid: isURLValid,
|
|
172
147
|
canZoom: false
|
|
173
|
-
});
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
if (!Array.isArray(list)) return false;
|
|
181
|
-
return list.map(e => e.toLowerCase()).includes(extension);
|
|
182
|
-
};
|
|
183
|
-
|
|
184
|
-
if (fileExtensionValidation('audio')) {
|
|
185
|
-
return checkAudioUrlValidity(viewURL).then(isURLValid => {
|
|
186
|
-
return {
|
|
187
|
-
isViewURLValid: isURLValid,
|
|
188
|
-
canZoom: false
|
|
189
|
-
};
|
|
190
|
-
});
|
|
148
|
+
}));
|
|
149
|
+
} else {
|
|
150
|
+
const imageValidityPromise = checkImageValidity(viewURL);
|
|
151
|
+
return imageValidityPromise.then(isURLValid => ({
|
|
152
|
+
isViewURLValid: isURLValid,
|
|
153
|
+
canZoom: isURLValid
|
|
154
|
+
}));
|
|
191
155
|
}
|
|
192
|
-
|
|
193
|
-
if (fileExtensionValidation('video')) {
|
|
194
|
-
return checkVideoUrlValidity(viewURL).then(isURLValid => {
|
|
195
|
-
return {
|
|
196
|
-
isViewURLValid: isURLValid,
|
|
197
|
-
canZoom: false
|
|
198
|
-
};
|
|
199
|
-
});
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
if (fileExtensionValidation('document')) {
|
|
203
|
-
const isValid = isValidDocument(previewUrl, fileName);
|
|
204
|
-
return Promise.resolve({
|
|
205
|
-
isViewURLValid: isValid,
|
|
206
|
-
canZoom: false
|
|
207
|
-
});
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
if (fileExtensionValidation('image')) {
|
|
211
|
-
return checkImageValidity(viewURL).then(isURLValid => {
|
|
212
|
-
return {
|
|
213
|
-
isViewURLValid: isURLValid,
|
|
214
|
-
canZoom: isURLValid
|
|
215
|
-
};
|
|
216
|
-
});
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
return Promise.resolve({
|
|
220
|
-
isViewURLValid: false,
|
|
221
|
-
canZoom: false
|
|
222
|
-
});
|
|
223
156
|
}
|
|
@@ -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) ;
|
|
@@ -6,8 +6,8 @@ import '@zohodesk/components/assets/Contrast/pureDarkContrastLightness.module.cs
|
|
|
6
6
|
import '@zohodesk/variables/assets/colorVariables.module.css';
|
|
7
7
|
import '@zohodesk/variables/assets/dotVariables.module.css';
|
|
8
8
|
import '@zohodesk/components/es/common/basic.module.css';
|
|
9
|
-
import '@zohodesk/variables/
|
|
10
|
-
import '@zohodesk/components/
|
|
9
|
+
import '@zohodesk/variables/es/fontFamilyVariables.module.css';
|
|
10
|
+
import '@zohodesk/components/es/common/boxShadow.module.css';
|
|
11
11
|
import "../../common/dot_boxShadow.module.css";
|
|
12
12
|
|
|
13
13
|
function useDotProvider(_ref) {
|
|
@@ -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/es/Message/Message.js
CHANGED
|
@@ -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);
|
|
@@ -4,7 +4,7 @@ import { propTypes } from "./props/propTypes";
|
|
|
4
4
|
import { Icon } from '@zohodesk/icons';
|
|
5
5
|
import Popup from '@zohodesk/components/lib/Popup/Popup';
|
|
6
6
|
import { Box, Container } from '@zohodesk/components/lib/Layout';
|
|
7
|
-
import ListItem from '@zohodesk/components/
|
|
7
|
+
import ListItem from '@zohodesk/components/es/ListItem/ListItem';
|
|
8
8
|
import ListItemWithIcon from '@zohodesk/components/lib/ListItem/ListItemWithIcon';
|
|
9
9
|
import DropDownHeading from '@zohodesk/components/lib/DropDown/DropDownHeading';
|
|
10
10
|
import TextBoxIcon from '@zohodesk/components/lib/TextBoxIcon/TextBoxIcon';
|
|
@@ -210,9 +210,11 @@ export class ToggleDropDown extends Component {
|
|
|
210
210
|
keyName,
|
|
211
211
|
isGroupDropDown,
|
|
212
212
|
groupOptionsKey,
|
|
213
|
-
groupNameKey
|
|
213
|
+
groupNameKey,
|
|
214
|
+
searchFields
|
|
214
215
|
} = this.props;
|
|
215
216
|
searchValue = searchValue.trim().toLowerCase();
|
|
217
|
+
searchFields.push(keyName !== 'value' ? keyName : 'value');
|
|
216
218
|
let result = [];
|
|
217
219
|
|
|
218
220
|
if (isGroupDropDown) {
|
|
@@ -224,8 +226,15 @@ export class ToggleDropDown extends Component {
|
|
|
224
226
|
const name = group[groupNameKey];
|
|
225
227
|
const groupOptions = group[groupOptionsKey];
|
|
226
228
|
const datas = groupOptions.filter(list => {
|
|
227
|
-
|
|
228
|
-
|
|
229
|
+
return searchFields.some(key => {
|
|
230
|
+
let val = list[key];
|
|
231
|
+
|
|
232
|
+
if (val === null || val === undefined) {
|
|
233
|
+
return false;
|
|
234
|
+
} else {
|
|
235
|
+
return val.toLowerCase().includes(searchValue);
|
|
236
|
+
}
|
|
237
|
+
});
|
|
229
238
|
});
|
|
230
239
|
|
|
231
240
|
if (datas.length) {
|
|
@@ -243,7 +252,15 @@ export class ToggleDropDown extends Component {
|
|
|
243
252
|
return true;
|
|
244
253
|
}
|
|
245
254
|
|
|
246
|
-
return
|
|
255
|
+
return searchFields.some(key => {
|
|
256
|
+
let val = item[key];
|
|
257
|
+
|
|
258
|
+
if (val === null || val === undefined) {
|
|
259
|
+
return false;
|
|
260
|
+
} else {
|
|
261
|
+
return val.toLowerCase().includes(searchValue);
|
|
262
|
+
}
|
|
263
|
+
});
|
|
247
264
|
});
|
|
248
265
|
|
|
249
266
|
if (filteredOptions.length) {
|
|
@@ -717,7 +734,8 @@ export class ToggleDropDown extends Component {
|
|
|
717
734
|
iconClass,
|
|
718
735
|
title,
|
|
719
736
|
disableTitle = '',
|
|
720
|
-
isDisabled = false
|
|
737
|
+
isDisabled = false,
|
|
738
|
+
secondaryValue
|
|
721
739
|
} = item;
|
|
722
740
|
listIndex += 1;
|
|
723
741
|
return iconName ? /*#__PURE__*/React.createElement(ListItemWithIcon, {
|
|
@@ -747,6 +765,7 @@ export class ToggleDropDown extends Component {
|
|
|
747
765
|
ariaSelected: selectedId === item[idName],
|
|
748
766
|
ariaLabel: item[keyName]
|
|
749
767
|
},
|
|
768
|
+
secondaryValue: secondaryValue,
|
|
750
769
|
...ListItemWithIconProps
|
|
751
770
|
}) : /*#__PURE__*/React.createElement(ListItem, {
|
|
752
771
|
key: listIndex,
|
|
@@ -772,6 +791,7 @@ export class ToggleDropDown extends Component {
|
|
|
772
791
|
ariaSelected: selectedId === item[idName],
|
|
773
792
|
ariaLabel: item[keyName]
|
|
774
793
|
},
|
|
794
|
+
secondaryValue: secondaryValue,
|
|
775
795
|
...ListItemProps
|
|
776
796
|
});
|
|
777
797
|
}));
|
|
@@ -786,7 +806,8 @@ export class ToggleDropDown extends Component {
|
|
|
786
806
|
title,
|
|
787
807
|
needDivider,
|
|
788
808
|
isDisabled = false,
|
|
789
|
-
disableTitle = ''
|
|
809
|
+
disableTitle = '',
|
|
810
|
+
secondaryValue
|
|
790
811
|
} = item;
|
|
791
812
|
|
|
792
813
|
if (!needDivider) {
|
|
@@ -824,6 +845,7 @@ export class ToggleDropDown extends Component {
|
|
|
824
845
|
ariaSelected: selectedId === item[idName],
|
|
825
846
|
ariaLabel: item[keyName]
|
|
826
847
|
},
|
|
848
|
+
secondaryValue: secondaryValue,
|
|
827
849
|
...ListItemWithIconProps
|
|
828
850
|
}) : /*#__PURE__*/React.createElement(ListItem, {
|
|
829
851
|
key: listIndex,
|
|
@@ -849,6 +871,7 @@ export class ToggleDropDown extends Component {
|
|
|
849
871
|
ariaSelected: selectedId === item[idName],
|
|
850
872
|
ariaLabel: item[keyName]
|
|
851
873
|
},
|
|
874
|
+
secondaryValue: secondaryValue,
|
|
852
875
|
...ListItemProps
|
|
853
876
|
}));
|
|
854
877
|
}), isFetchingOptions && /*#__PURE__*/React.createElement(Container, {
|
|
@@ -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 ;
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
.title,
|
|
26
26
|
.tabletTitle,
|
|
27
27
|
.mobileTitle {
|
|
28
|
-
composes: semibold from '~@zohodesk/components/
|
|
28
|
+
composes: semibold from '~@zohodesk/components/es/common/common.module.css';
|
|
29
29
|
letter-spacing: var(--zd_size1);
|
|
30
30
|
}
|
|
31
31
|
.title, .tabletTitle, .mobileTitle {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
.tabletTitle,
|
|
3
3
|
.mobileTitle {
|
|
4
4
|
color: var(--zdt_willback_title_text);
|
|
5
|
-
composes: bold from '~@zohodesk/components/
|
|
5
|
+
composes: bold from '~@zohodesk/components/es/common/common.module.css';
|
|
6
6
|
}
|
|
7
7
|
.title {
|
|
8
8
|
font-size: var(--zd_font_size50) ;
|