@zohodesk/dot 1.0.0-temp-200.8 → 1.0.0-temp-214
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 +12 -0
- package/es/ActionButton/ActionButton.module.css +2 -2
- package/es/AlphabeticList/AlphabeticList.module.css +2 -2
- package/es/Attachment/Attachment.module.css +1 -1
- package/es/AttachmentViewer/Attachment.js +96 -41
- package/es/AttachmentViewer/AttachmentViewer.js +8 -8
- package/es/AttachmentViewer/AttachmentViewer.module.css +9 -9
- package/es/AttachmentViewer/utils.js +19 -1
- 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/deprecated/SelectDropdown/SelectDropdown.module.css +2 -2
- package/es/dropdown/ToggleDropDown/ToggleDropDown.module.css +1 -1
- package/es/errorstate/EmptyStates.module.css +1 -1
- package/es/errorstate/WillBack/WillBack.module.css +1 -1
- package/es/form/fields/CheckBoxField/CheckBoxField.js +7 -9
- package/es/form/fields/CurrencyField/CurrencyField.js +5 -5
- package/es/form/fields/DateField/DateField.js +7 -8
- package/es/form/fields/Fields.module.css +12 -9
- package/es/form/fields/MultiSelectField/MultiSelectField.js +5 -6
- package/es/form/fields/RadioField/RadioField.js +1 -1
- package/es/form/fields/SelectField/SelectField.js +5 -6
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.module.css +2 -2
- package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +6 -8
- package/es/form/fields/TextBoxField/TextBoxField.js +7 -7
- package/es/form/fields/TextEditorWrapper/TextEditorWrapper.js +1 -1
- package/es/form/fields/TextareaField/TextareaField.js +6 -6
- 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/Lookup/Lookup.js +2 -1
- package/es/lookup/Lookup/Lookup.module.css +6 -1
- package/es/lookup/Lookup/props/propTypes.js +1 -0
- 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/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 +1 -1
- package/lib/AttachmentViewer/Attachment.js +93 -45
- package/lib/AttachmentViewer/AttachmentViewer.js +8 -14
- package/lib/AttachmentViewer/AttachmentViewer.module.css +9 -9
- package/lib/AttachmentViewer/utils.js +21 -4
- 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/deprecated/SelectDropdown/SelectDropdown.module.css +2 -2
- package/lib/dropdown/ToggleDropDown/ToggleDropDown.module.css +1 -1
- package/lib/errorstate/EmptyStates.module.css +1 -1
- package/lib/errorstate/WillBack/WillBack.module.css +1 -1
- package/lib/form/fields/CheckBoxField/CheckBoxField.js +7 -10
- package/lib/form/fields/CurrencyField/CurrencyField.js +4 -5
- package/lib/form/fields/DateField/DateField.js +6 -9
- package/lib/form/fields/Fields.module.css +12 -9
- package/lib/form/fields/MultiSelectField/MultiSelectField.js +5 -7
- package/lib/form/fields/RadioField/RadioField.js +1 -1
- package/lib/form/fields/SelectField/SelectField.js +5 -7
- package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.module.css +2 -2
- package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +5 -8
- package/lib/form/fields/TextBoxField/TextBoxField.js +6 -8
- package/lib/form/fields/TextEditorWrapper/TextEditorWrapper.js +2 -2
- package/lib/form/fields/TextareaField/TextareaField.js +5 -6
- 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/Lookup/Lookup.js +2 -1
- package/lib/lookup/Lookup/Lookup.module.css +6 -1
- package/lib/lookup/Lookup/props/propTypes.js +1 -0
- 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/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 +17 -15
- package/result.json +1 -1
- package/unittest/index.html +1 -1
|
@@ -127,9 +127,7 @@ var AttachmentViewer = /*#__PURE__*/function (_Component) {
|
|
|
127
127
|
_createClass(AttachmentViewer, [{
|
|
128
128
|
key: "isImageFileType",
|
|
129
129
|
value: function isImageFileType(fileName) {
|
|
130
|
-
var
|
|
131
|
-
|
|
132
|
-
var extension = (_getExtensionFromFile = (0, _Attachment.getExtensionFromFileName)(fileName)) === null || _getExtensionFromFile === void 0 ? void 0 : _getExtensionFromFile.toLowerCase();
|
|
130
|
+
var extension = ((0, _Attachment.getExtensionFromFileName)(fileName) || '').toLowerCase();
|
|
133
131
|
if (!extension) return false;
|
|
134
132
|
return _utils.FILE_EXTENSIONS.image.map(function (ext) {
|
|
135
133
|
return ext.toLowerCase();
|
|
@@ -138,9 +136,7 @@ var AttachmentViewer = /*#__PURE__*/function (_Component) {
|
|
|
138
136
|
}, {
|
|
139
137
|
key: "isVideoFileType",
|
|
140
138
|
value: function isVideoFileType(fileName) {
|
|
141
|
-
var
|
|
142
|
-
|
|
143
|
-
var extension = (_getExtensionFromFile2 = (0, _Attachment.getExtensionFromFileName)(fileName)) === null || _getExtensionFromFile2 === void 0 ? void 0 : _getExtensionFromFile2.toLowerCase();
|
|
139
|
+
var extension = ((0, _Attachment.getExtensionFromFileName)(fileName) || '').toLowerCase();
|
|
144
140
|
if (!extension) return false;
|
|
145
141
|
return _utils.FILE_EXTENSIONS.video.map(function (ext) {
|
|
146
142
|
return ext.toLowerCase();
|
|
@@ -149,9 +145,7 @@ var AttachmentViewer = /*#__PURE__*/function (_Component) {
|
|
|
149
145
|
}, {
|
|
150
146
|
key: "isAudioFileType",
|
|
151
147
|
value: function isAudioFileType(fileName) {
|
|
152
|
-
var
|
|
153
|
-
|
|
154
|
-
var extension = (_getExtensionFromFile3 = (0, _Attachment.getExtensionFromFileName)(fileName)) === null || _getExtensionFromFile3 === void 0 ? void 0 : _getExtensionFromFile3.toLowerCase();
|
|
148
|
+
var extension = ((0, _Attachment.getExtensionFromFileName)(fileName) || '').toLowerCase();
|
|
155
149
|
if (!extension) return false;
|
|
156
150
|
return _utils.FILE_EXTENSIONS.audio.map(function (ext) {
|
|
157
151
|
return ext.toLowerCase();
|
|
@@ -202,8 +196,8 @@ var AttachmentViewer = /*#__PURE__*/function (_Component) {
|
|
|
202
196
|
selectedIndex = _this$state.selectedIndex;
|
|
203
197
|
var allowedPreviewExtensionsData = this.props.allowedPreviewExtensionsData;
|
|
204
198
|
var selectedAttachment = data[selectedIndex] || {};
|
|
205
|
-
var selectedAttachmentViewUrl = selectedAttachment.viewUrl;
|
|
206
|
-
|
|
199
|
+
var selectedAttachmentViewUrl = selectedAttachment.viewUrl; // const selectedAttachmentDownloadUrl = selectedAttachment.downloadUrl;
|
|
200
|
+
|
|
207
201
|
var selectedAttachmentName = selectedAttachment.name;
|
|
208
202
|
var selectedAttachmentPreviewUrl = selectedAttachment.previewurl;
|
|
209
203
|
(0, _utils.checkFileSourcesValidation)({
|
|
@@ -490,7 +484,7 @@ var AttachmentViewer = /*#__PURE__*/function (_Component) {
|
|
|
490
484
|
"data-id": "".concat(dataId, "_audioPreview"),
|
|
491
485
|
"data-test-id": "".concat(dataId, "_audioPreview")
|
|
492
486
|
}, audioProps), /*#__PURE__*/_react["default"].createElement("source", {
|
|
493
|
-
src: previewurl,
|
|
487
|
+
src: previewurl || viewUrl,
|
|
494
488
|
type: "audio/".concat(extension)
|
|
495
489
|
})) : _this5.isVideoFileType(name) ? /*#__PURE__*/_react["default"].createElement("video", _extends({
|
|
496
490
|
controls: true,
|
|
@@ -520,7 +514,7 @@ var AttachmentViewer = /*#__PURE__*/function (_Component) {
|
|
|
520
514
|
}, _this5.getPreviewIconData(name, '70')), /*#__PURE__*/_react["default"].createElement(_Typography["default"], {
|
|
521
515
|
$ui_size: "20",
|
|
522
516
|
$ui_weight: "semibold"
|
|
523
|
-
}, previewUnsupportedText), /*#__PURE__*/_react["default"].createElement(_Link["default"], {
|
|
517
|
+
}, previewUnsupportedText), downloadUrl ? /*#__PURE__*/_react["default"].createElement(_Link["default"], {
|
|
524
518
|
href: downloadUrl,
|
|
525
519
|
className: _AttachmentViewerModule["default"].downloadLink,
|
|
526
520
|
hasReload: true,
|
|
@@ -528,7 +522,7 @@ var AttachmentViewer = /*#__PURE__*/function (_Component) {
|
|
|
528
522
|
}, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
529
523
|
palette: "primaryFilled",
|
|
530
524
|
text: downloadText
|
|
531
|
-
}))))));
|
|
525
|
+
})) : null))));
|
|
532
526
|
});
|
|
533
527
|
}
|
|
534
528
|
}, {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
height: var(--zd_size40) ;
|
|
3
3
|
position: relative;
|
|
4
4
|
z-index: 1;
|
|
5
|
-
composes: alignVertical from '~@zohodesk/components/
|
|
5
|
+
composes: alignVertical from '~@zohodesk/components/es/common/common.module.css';
|
|
6
6
|
background-color: var(--zdt_attachmentviewer_header_bg);
|
|
7
7
|
padding: 0 var(--zd_size15) ;
|
|
8
8
|
border-bottom: 1px solid var(--zdt_attachmentviewer_header_border);
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
.title {
|
|
12
12
|
max-width: 50% ;
|
|
13
|
-
composes: dotted from '~@zohodesk/components/
|
|
13
|
+
composes: dotted from '~@zohodesk/components/es/common/common.module.css';
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
[dir=ltr] .title {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
|
|
24
24
|
.count {
|
|
25
25
|
position: absolute;
|
|
26
|
-
composes: xMiddle from '~@zohodesk/components/
|
|
26
|
+
composes: xMiddle from '~@zohodesk/components/es/common/common.module.css';
|
|
27
27
|
padding: 0 var(--zd_size10) ;
|
|
28
28
|
}
|
|
29
29
|
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
.preview {
|
|
88
|
-
composes: posrel from '~@zohodesk/components/
|
|
88
|
+
composes: posrel from '~@zohodesk/components/es/common/common.module.css';
|
|
89
89
|
text-align: center;
|
|
90
90
|
margin: var(--zd_size20) 0 ;
|
|
91
91
|
}
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
max-height: 100% ;
|
|
95
95
|
max-width: 90% ;
|
|
96
96
|
position: absolute;
|
|
97
|
-
composes: middleBoth from '~@zohodesk/components/
|
|
97
|
+
composes: middleBoth from '~@zohodesk/components/es/common/common.module.css';
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
.zoomOut {
|
|
@@ -269,7 +269,7 @@
|
|
|
269
269
|
height: 100% ;
|
|
270
270
|
max-width: 100% ;
|
|
271
271
|
max-height: 100% ;
|
|
272
|
-
composes: dflex from '~@zohodesk/components/
|
|
272
|
+
composes: dflex from '~@zohodesk/components/es/common/common.module.css';
|
|
273
273
|
}
|
|
274
274
|
|
|
275
275
|
.img {
|
|
@@ -302,7 +302,7 @@
|
|
|
302
302
|
|
|
303
303
|
.spinLoad {
|
|
304
304
|
position: absolute;
|
|
305
|
-
composes: middleBoth from '~@zohodesk/components/
|
|
305
|
+
composes: middleBoth from '~@zohodesk/components/es/common/common.module.css';
|
|
306
306
|
height: var(--zd_size18) ;
|
|
307
307
|
width: var(--zd_size18) ;
|
|
308
308
|
cursor: progress
|
|
@@ -312,7 +312,7 @@
|
|
|
312
312
|
height: 100% ;
|
|
313
313
|
width: 100% ;
|
|
314
314
|
composes: rotate from '../common/dot_animation.module.css';
|
|
315
|
-
composes: infinite from '~@zohodesk/components/
|
|
315
|
+
composes: infinite from '~@zohodesk/components/es/common/animation.module.css';
|
|
316
316
|
border: 2px solid var(--zdt_attachmentviewer_loader_border);
|
|
317
317
|
border-top-color: var(--zdt_attachmentviewer_loader_border_top);
|
|
318
318
|
border-radius: 50%;
|
|
@@ -348,7 +348,7 @@
|
|
|
348
348
|
.authorName {
|
|
349
349
|
font-size: var(--zd_font_size15) ;
|
|
350
350
|
color: var(--zdt_attachmentviewer_title_text);
|
|
351
|
-
composes: dotted from '~@zohodesk/components/
|
|
351
|
+
composes: dotted from '~@zohodesk/components/es/common/common.module.css';
|
|
352
352
|
margin: 0 var(--zd_size10) ;
|
|
353
353
|
}
|
|
354
354
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.ZoomEvent = exports.Zoom = exports.FILE_EXTENSIONS = void 0;
|
|
6
|
+
exports.ZoomEvent = exports.Zoom = exports.SUPPORTED_FILE_EXTENSIONS = exports.FILE_EXTENSIONS = void 0;
|
|
7
7
|
exports.checkAudioUrlValidity = checkAudioUrlValidity;
|
|
8
8
|
exports.checkFileSourcesValidation = checkFileSourcesValidation;
|
|
9
9
|
exports.checkImageValidity = checkImageValidity;
|
|
@@ -201,15 +201,32 @@ var FILE_EXTENSIONS = {
|
|
|
201
201
|
image: ['jpeg', 'jpg', 'png', 'apng', 'gif', 'bmp', 'dib', 'tiff', 'tif', 'ico', 'svg', 'webp', 'heic', 'heif', 'jfif', 'pjpeg', 'pjp', 'avif']
|
|
202
202
|
};
|
|
203
203
|
exports.FILE_EXTENSIONS = FILE_EXTENSIONS;
|
|
204
|
+
var SUPPORTED_FILE_EXTENSIONS = {
|
|
205
|
+
image: ['jpeg', 'jpg', 'png', 'apng', 'gif', 'bmp', 'tiff', 'tif', 'ico', 'svg', 'heic', 'webp'],
|
|
206
|
+
doc: ['txt'],
|
|
207
|
+
pdf: ['pdf'],
|
|
208
|
+
html: ['html', 'htm', 'xhtml'],
|
|
209
|
+
ppt: ['ppt', 'pps', 'odp', 'sxi', 'pptx', 'ppsx', 'pot', 'potx', 'key'],
|
|
210
|
+
zip: ['rar', 'jar', 'zip'],
|
|
211
|
+
word: ['doc', 'docx', 'sxw', 'odt', 'docm', 'dot', 'dotm', 'dotx', 'rtf', 'pages'],
|
|
212
|
+
xml: ['xml'],
|
|
213
|
+
sheet: ['xls', 'xlsx', 'xlsm', 'xlsb', 'sxc', 'ods', 'csv', 'tsv', 'numbers'],
|
|
214
|
+
audio: ['mp3', 'wav', 'wma', 'aac', 'm4r', 'ogg', 'opus'],
|
|
215
|
+
video: ['mp4', 'mkv', 'mov', 'mpeg', 'flv', 'wmv', 'avi', 'webm', 'ogv'],
|
|
216
|
+
mail: ['eml', 'msg'],
|
|
217
|
+
linux: ['sh', 'bin'],
|
|
218
|
+
css: ['css'],
|
|
219
|
+
exe: ['exe'],
|
|
220
|
+
event: ['ics']
|
|
221
|
+
};
|
|
222
|
+
exports.SUPPORTED_FILE_EXTENSIONS = SUPPORTED_FILE_EXTENSIONS;
|
|
204
223
|
|
|
205
224
|
function checkFileSourcesValidation(_ref) {
|
|
206
|
-
var _getExtensionFromFile;
|
|
207
|
-
|
|
208
225
|
var fileName = _ref.fileName,
|
|
209
226
|
viewURL = _ref.viewURL,
|
|
210
227
|
previewUrl = _ref.previewUrl,
|
|
211
228
|
allowedPreviewExtensionsData = _ref.allowedPreviewExtensionsData;
|
|
212
|
-
var extension = (
|
|
229
|
+
var extension = ((0, _Attachment.getExtensionFromFileName)(fileName) || '').toLowerCase();
|
|
213
230
|
|
|
214
231
|
if (!extension) {
|
|
215
232
|
return Promise.resolve({
|
|
@@ -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);
|
|
@@ -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) ;
|
|
@@ -13,7 +13,7 @@ var _defaultProps = require("./props/defaultProps");
|
|
|
13
13
|
|
|
14
14
|
var _propTypes = require("./props/propTypes");
|
|
15
15
|
|
|
16
|
-
var _Label = _interopRequireDefault(require("@zohodesk/components/
|
|
16
|
+
var _Label = _interopRequireDefault(require("@zohodesk/components/es/v1/Label/Label"));
|
|
17
17
|
|
|
18
18
|
var _CheckBox = _interopRequireDefault(require("@zohodesk/components/lib/CheckBox/CheckBox"));
|
|
19
19
|
|
|
@@ -140,15 +140,12 @@ var CheckBoxField = /*#__PURE__*/function (_PureComponent) {
|
|
|
140
140
|
renderProps: renderLabelProps
|
|
141
141
|
}, /*#__PURE__*/_react["default"].createElement(_Label["default"], _extends({
|
|
142
142
|
text: labelName,
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
onClick: !removeEvent ? this.handleLabelClick : null,
|
|
150
|
-
variant: isDirectCol ? 'default' : 'primary',
|
|
151
|
-
dataId: isDisabled ? "".concat(dataId, "_label_disabled") : isMandatory ? "".concat(dataId, "_label_mandatory") : "".concat(dataId, "_label")
|
|
143
|
+
isRequired: isMandatory,
|
|
144
|
+
isInlineField: true,
|
|
145
|
+
customStyle: labelCustomClass,
|
|
146
|
+
testId: id,
|
|
147
|
+
customId: isDisabled ? "".concat(dataId, "_label_disabled") : isMandatory ? "".concat(dataId, "_label_mandatory") : "".concat(dataId, "_label"),
|
|
148
|
+
onClick: !removeEvent ? this.handleLabelClick : null
|
|
152
149
|
}, LabelProps)));
|
|
153
150
|
|
|
154
151
|
return /*#__PURE__*/_react["default"].createElement("div", {
|