@zohodesk/dot 1.0.0-temp-200.1 → 1.0.0-temp-187.3
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 +0 -4
- package/es/Attachment/Attachment.js +1 -2
- package/es/Attachment/Attachment.module.css +3 -7
- package/es/AttachmentViewer/Attachment.js +1 -60
- package/es/AttachmentViewer/AttachmentViewer.js +14 -148
- package/es/AttachmentViewer/AttachmentViewer.module.css +4 -124
- package/es/common/dot_common.module.css +2 -37
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +4 -2
- package/es/list/DepartmentDropDown/DepartmentDropDown.js +7 -2
- package/es/list/DepartmentDropDown/props/defaultProps.js +2 -1
- package/es/list/DepartmentDropDown/props/propTypes.js +2 -1
- package/es/list/status/StatusListItem/StatusListItem.module.css +35 -5
- package/es/lookup/header/Search/LookupSearch.module.css +27 -33
- package/es/lookup/header/Search/Search.js +40 -58
- package/es/lookup/header/Search/__tests__/Search.spec.js +1 -67
- package/es/lookup/header/Search/__tests__/__snapshots__/Search.spec.js.snap +3 -316
- package/es/lookup/header/Search/props/defaultProps.js +1 -3
- package/es/lookup/header/Search/props/propTypes.js +1 -6
- package/lib/Attachment/Attachment.js +1 -3
- package/lib/Attachment/Attachment.module.css +3 -7
- package/lib/AttachmentViewer/Attachment.js +1 -88
- package/lib/AttachmentViewer/AttachmentViewer.js +15 -148
- package/lib/AttachmentViewer/AttachmentViewer.module.css +4 -124
- package/lib/common/dot_common.module.css +2 -37
- package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.js +5 -3
- package/lib/list/DepartmentDropDown/DepartmentDropDown.js +8 -3
- package/lib/list/DepartmentDropDown/props/defaultProps.js +2 -1
- package/lib/list/DepartmentDropDown/props/propTypes.js +1 -1
- package/lib/list/status/StatusListItem/StatusListItem.module.css +35 -5
- package/lib/lookup/header/Search/LookupSearch.module.css +27 -33
- package/lib/lookup/header/Search/Search.js +66 -76
- package/lib/lookup/header/Search/__tests__/Search.spec.js +0 -65
- package/lib/lookup/header/Search/__tests__/__snapshots__/Search.spec.js.snap +3 -316
- package/lib/lookup/header/Search/props/defaultProps.js +1 -3
- package/lib/lookup/header/Search/props/propTypes.js +1 -6
- package/package.json +4 -4
- package/result.json +1 -1
- package/unittest/index.html +1 -1
- /package/images/{audio_thumbnail_old.png → audio_thumbnail.png} +0 -0
package/README.md
CHANGED
|
@@ -2,10 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
In this Library, we Provide Some Basic Components to Build Your Application
|
|
4
4
|
|
|
5
|
-
# 1.7.2
|
|
6
|
-
|
|
7
|
-
- **Lookup - Search** - renderChildren, isActive, hasSeparator & customStyle props supported & Some customization also opened for this compoenent.
|
|
8
|
-
|
|
9
5
|
# 1.7.1
|
|
10
6
|
|
|
11
7
|
- **Drawer** - The customDrawerClass prop is now supported to customize the drawer size.
|
|
@@ -14,15 +14,15 @@
|
|
|
14
14
|
height: 100% ;
|
|
15
15
|
width: 100% ;
|
|
16
16
|
position: absolute;
|
|
17
|
-
top:
|
|
17
|
+
top:0
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
[dir=ltr] .disableLayer {
|
|
21
|
-
left:
|
|
21
|
+
left:0
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
[dir=rtl] .disableLayer {
|
|
25
|
-
right:
|
|
25
|
+
right:0
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
.attachmentHover {
|
|
@@ -66,10 +66,6 @@
|
|
|
66
66
|
height: var(--zd_size40) ;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
.attachleft {
|
|
70
|
-
padding: var(--zd_size3) ;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
69
|
[dir=ltr] .attachleft {
|
|
74
70
|
border-right: 1px solid var(--zdt_attachment_default_border);
|
|
75
71
|
}
|
|
@@ -2,55 +2,7 @@ const UNASSIGNED = 'Unassigned';
|
|
|
2
2
|
const BROWSER_SUPPORTED_FILES = ['pdf', 'text', 'txt', 'css', 'jpg', 'jpeg', 'gif', 'png', 'bmp', 'ico', 'sh', 'mp3', 'wav', 'ogg'];
|
|
3
3
|
export function isAudioFile(fileName) {
|
|
4
4
|
const extension = getExtensionFromFileName(fileName);
|
|
5
|
-
return /mp3|wav|ogg
|
|
6
|
-
}
|
|
7
|
-
export function isVideoFile(fileName) {
|
|
8
|
-
const extension = getExtensionFromFileName(fileName);
|
|
9
|
-
return /mp4|webm|ogg/i.test(extension);
|
|
10
|
-
}
|
|
11
|
-
export function isPdfFile(fileName) {
|
|
12
|
-
const extension = getExtensionFromFileName(fileName);
|
|
13
|
-
return /pdf/i.test(extension);
|
|
14
|
-
}
|
|
15
|
-
export function isDocsFile(fileName) {
|
|
16
|
-
const extension = getExtensionFromFileName(fileName);
|
|
17
|
-
return /docx|doc|docm|rtf|odt|dot|dotm|dotx|pages/i.test(extension);
|
|
18
|
-
}
|
|
19
|
-
export function isSheetFile(fileName) {
|
|
20
|
-
const extension = getExtensionFromFileName(fileName);
|
|
21
|
-
return /xlsx|numbers/i.test(extension);
|
|
22
|
-
}
|
|
23
|
-
export function isShowFile(fileName) {
|
|
24
|
-
const extension = getExtensionFromFileName(fileName);
|
|
25
|
-
return /pptx|ppt|pps|ppsx|key/i.test(extension);
|
|
26
|
-
}
|
|
27
|
-
export function isEmailFile(fileName) {
|
|
28
|
-
const extension = getExtensionFromFileName(fileName);
|
|
29
|
-
return /eml|msg/i.test(extension);
|
|
30
|
-
}
|
|
31
|
-
export function isImageFile(fileName) {
|
|
32
|
-
const extension = getExtensionFromFileName(fileName);
|
|
33
|
-
return /jpeg|jpg|png|gif|bmp|tiff|tif|ico/i.test(extension);
|
|
34
|
-
}
|
|
35
|
-
export function docsFileTypes(fileName) {
|
|
36
|
-
const extension = getExtensionFromFileName(fileName);
|
|
37
|
-
return /docx|doc|docm|rtf|odt|dot|dotm|dotx|sxw|odt|ott|txt|pages/i.test(extension);
|
|
38
|
-
}
|
|
39
|
-
export function sheetFileTypes(fileName) {
|
|
40
|
-
const extension = getExtensionFromFileName(fileName);
|
|
41
|
-
return /xls|xlsx|sxc|ods|csv|tsv|ots|xlsm|xlsb|xlt|xltx|xltm|numbers/i.test(extension);
|
|
42
|
-
}
|
|
43
|
-
export function showFileTypes(fileName) {
|
|
44
|
-
const extension = getExtensionFromFileName(fileName);
|
|
45
|
-
return /pptx|ppt|pps|ppsx|odp|sxi|key|pot|potx/i.test(extension);
|
|
46
|
-
}
|
|
47
|
-
export function designFileTypes(fileName) {
|
|
48
|
-
const extension = getExtensionFromFileName(fileName);
|
|
49
|
-
return /sketch|xd|psd|ai|fig|svg/i.test(extension);
|
|
50
|
-
}
|
|
51
|
-
export function zipFileType(fileName) {
|
|
52
|
-
const extension = getExtensionFromFileName(fileName);
|
|
53
|
-
return /zip/i.test(extension);
|
|
5
|
+
return /mp3|wav|ogg/i.test(extension);
|
|
54
6
|
}
|
|
55
7
|
export function getExtensionFromFileName(fileName) {
|
|
56
8
|
if (fileName && fileName.indexOf(".") !== -1) {
|
|
@@ -62,15 +14,4 @@ export function getExtensionFromFileName(fileName) {
|
|
|
62
14
|
export function isBrowserSupportedFile(fileName) {
|
|
63
15
|
const extension = getExtensionFromFileName(fileName);
|
|
64
16
|
return BROWSER_SUPPORTED_FILES.indexOf(extension) !== -1;
|
|
65
|
-
}
|
|
66
|
-
export function openInNewTabWithNoopener(url) {
|
|
67
|
-
let targetnName = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '_blank';
|
|
68
|
-
const aTag = document.createElement('a');
|
|
69
|
-
aTag.rel = 'noopener noreferrer';
|
|
70
|
-
aTag.target = targetnName;
|
|
71
|
-
aTag.href = url;
|
|
72
|
-
aTag.click();
|
|
73
|
-
}
|
|
74
|
-
export function openNewTab(href) {
|
|
75
|
-
openInNewTabWithNoopener(href);
|
|
76
17
|
}
|
|
@@ -10,11 +10,11 @@ import AttachmentImage from "./AttachmentImage";
|
|
|
10
10
|
import Link from "../Link/Link";
|
|
11
11
|
import IconButton from "../IconButton/IconButton";
|
|
12
12
|
import FreezeLayer from "../FreezeLayer/FreezeLayer";
|
|
13
|
-
import { isAudioFile, getExtensionFromFileName
|
|
13
|
+
import { isAudioFile, getExtensionFromFileName } from "./Attachment";
|
|
14
14
|
import { shallowDiff } from "../utils/General";
|
|
15
15
|
import style from "./AttachmentViewer.module.css";
|
|
16
|
-
import { checkFileSourcesValidation } from "./utils";
|
|
17
|
-
|
|
16
|
+
import { checkFileSourcesValidation } from "./utils";
|
|
17
|
+
import audioThumbNail from "../../images/audio_thumbnail.png";
|
|
18
18
|
export default class AttachmentViewer extends Component {
|
|
19
19
|
constructor(props) {
|
|
20
20
|
super(props);
|
|
@@ -310,62 +310,6 @@ export default class AttachmentViewer extends Component {
|
|
|
310
310
|
customChildrenClass = ''
|
|
311
311
|
} = customClass;
|
|
312
312
|
const retainZoom = canZoom && selectedIndex == i && maintainZoom;
|
|
313
|
-
const {
|
|
314
|
-
previewurl
|
|
315
|
-
} = data;
|
|
316
|
-
const fileTypeIconList = [{
|
|
317
|
-
check: isAudioFile(data.name),
|
|
318
|
-
name: 'ZD-EF-fileMp3',
|
|
319
|
-
size: '50'
|
|
320
|
-
}, {
|
|
321
|
-
check: isVideoFile(data.name),
|
|
322
|
-
name: 'ZD-EF-fileMp4',
|
|
323
|
-
size: '50'
|
|
324
|
-
}, {
|
|
325
|
-
check: isPdfFile(data.name),
|
|
326
|
-
name: 'ZD-EF-filePdf',
|
|
327
|
-
size: '50'
|
|
328
|
-
}, {
|
|
329
|
-
check: docsFileTypes(data.name),
|
|
330
|
-
name: 'ZD-EF-fileWord',
|
|
331
|
-
size: '50'
|
|
332
|
-
}, {
|
|
333
|
-
check: sheetFileTypes(data.name),
|
|
334
|
-
name: 'ZD-EF-fileExcel',
|
|
335
|
-
size: '50'
|
|
336
|
-
}, {
|
|
337
|
-
check: showFileTypes(data.name),
|
|
338
|
-
name: 'ZD-SE-ppt',
|
|
339
|
-
size: '50'
|
|
340
|
-
}, {
|
|
341
|
-
check: designFileTypes(data.name),
|
|
342
|
-
name: 'ZD-EF-file',
|
|
343
|
-
size: '50'
|
|
344
|
-
}, {
|
|
345
|
-
check: isEmailFile(data.name),
|
|
346
|
-
name: 'ZD-CH-mail',
|
|
347
|
-
size: '50'
|
|
348
|
-
}, {
|
|
349
|
-
check: zipFileType(data.name),
|
|
350
|
-
name: 'ZD-EF-fileZip',
|
|
351
|
-
size: '50'
|
|
352
|
-
}];
|
|
353
|
-
|
|
354
|
-
const PreviewFileIcon = _ref3 => {
|
|
355
|
-
let {
|
|
356
|
-
data
|
|
357
|
-
} = _ref3;
|
|
358
|
-
const matchedIcon = fileTypeIconList.find(item => item.check);
|
|
359
|
-
const iconName = matchedIcon ? matchedIcon.name : 'ZD-EF-file';
|
|
360
|
-
const iconSize = matchedIcon ? matchedIcon.size : '50';
|
|
361
|
-
return /*#__PURE__*/React.createElement(Icon, {
|
|
362
|
-
iconClass: style.prevIcon,
|
|
363
|
-
name: iconName,
|
|
364
|
-
size: iconSize
|
|
365
|
-
});
|
|
366
|
-
};
|
|
367
|
-
|
|
368
|
-
console.log("...previewUrl", previewurl, "...data", data);
|
|
369
313
|
return /*#__PURE__*/React.createElement(Container, {
|
|
370
314
|
className: style.imgBox,
|
|
371
315
|
id: `imgBox${i}`,
|
|
@@ -384,27 +328,12 @@ export default class AttachmentViewer extends Component {
|
|
|
384
328
|
"data-test-id": `${dataId}_videoPreview`,
|
|
385
329
|
...audioProps
|
|
386
330
|
}, /*#__PURE__*/React.createElement("source", {
|
|
387
|
-
src:
|
|
331
|
+
src: viewUrl,
|
|
388
332
|
type: `audio/${getExtensionFromFileName(name)}`
|
|
389
|
-
})) : null :
|
|
390
|
-
autoPlay: true,
|
|
391
|
-
controls: true,
|
|
392
|
-
className: style.zoomIn
|
|
393
|
-
}, /*#__PURE__*/React.createElement("source", {
|
|
394
|
-
src: previewurl,
|
|
395
|
-
type: `video/${getExtensionFromFileName(data.name)}`
|
|
396
|
-
})) : null : isDocsFile(data.name) || isSheetFile(data.name) || isShowFile(data.name) ? selectedIndex == i ? (console.log("...previewurl", previewurl), /*#__PURE__*/React.createElement("iframe", {
|
|
397
|
-
src: previewurl,
|
|
398
|
-
className: style.pdfFrame
|
|
399
|
-
}) // <iframe src={previewurl+"&frameorigin=https://deskqa.localzoho.com"} className={style.pdfFrame}></iframe>
|
|
400
|
-
) : null : isPdfFile(data.name) || isEmailFile(data.name) ? selectedIndex == i ? /*#__PURE__*/React.createElement("iframe", {
|
|
401
|
-
src: previewurl,
|
|
402
|
-
className: style.pdfFrame
|
|
403
|
-
}) // <iframe src={previewurl+"&frameorigin=https://deskqa.localzoho.com"} className={style.pdfFrame}/>
|
|
404
|
-
: null : isImageFile(data.name) ? /*#__PURE__*/React.createElement(AttachmentImage, {
|
|
333
|
+
})) : null : /*#__PURE__*/React.createElement(AttachmentImage, {
|
|
405
334
|
customClass: {
|
|
406
335
|
customImageClass: `${style.img} ${style.altText}
|
|
407
|
-
|
|
336
|
+
${canZoom || retainZoom ? isZoomed ? `${style.zoomedImg} ${style.zoomOutCursor}` : `${style.normalImg} ${style.zoomInCursor}` : ''} ${customImageClass}`,
|
|
408
337
|
customChildrenClass
|
|
409
338
|
},
|
|
410
339
|
src: viewUrl,
|
|
@@ -416,17 +345,7 @@ export default class AttachmentViewer extends Component {
|
|
|
416
345
|
id: `img${i}`,
|
|
417
346
|
isCover: false,
|
|
418
347
|
...imageProps
|
|
419
|
-
}, children)
|
|
420
|
-
className: style.previewNone
|
|
421
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
422
|
-
className: style.fileTypeImg
|
|
423
|
-
}, /*#__PURE__*/React.createElement(PreviewFileIcon, {
|
|
424
|
-
data: data.name
|
|
425
|
-
})), "Preview not available for the selected file type.", /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(Link, {
|
|
426
|
-
href: data.href,
|
|
427
|
-
className: style.downloadLink,
|
|
428
|
-
onClick: () => openNewTab(data.href)
|
|
429
|
-
}, "Download"))));
|
|
348
|
+
}, children)));
|
|
430
349
|
});
|
|
431
350
|
}
|
|
432
351
|
|
|
@@ -469,10 +388,10 @@ export default class AttachmentViewer extends Component {
|
|
|
469
388
|
}, /*#__PURE__*/React.createElement(ResponsiveReceiver, {
|
|
470
389
|
responsiveId: responsiveId,
|
|
471
390
|
query: this.responsiveFunc
|
|
472
|
-
},
|
|
391
|
+
}, _ref3 => {
|
|
473
392
|
let {
|
|
474
393
|
uptoTablet
|
|
475
|
-
} =
|
|
394
|
+
} = _ref3;
|
|
476
395
|
return /*#__PURE__*/React.createElement(Container, {
|
|
477
396
|
scroll: "none",
|
|
478
397
|
"data-scroll-palette": "dark"
|
|
@@ -661,68 +580,17 @@ export default class AttachmentViewer extends Component {
|
|
|
661
580
|
const {
|
|
662
581
|
customImageClass = '',
|
|
663
582
|
customChildrenClass = ''
|
|
664
|
-
} = customClass;
|
|
665
|
-
|
|
666
|
-
const fileTypeIconList = [{
|
|
667
|
-
check: isAudioFile(name),
|
|
668
|
-
name: thumbnail || 'ZD-EF-fileMp3',
|
|
669
|
-
size: '30'
|
|
670
|
-
}, {
|
|
671
|
-
check: isVideoFile(name),
|
|
672
|
-
name: 'ZD-EF-fileMp4',
|
|
673
|
-
size: '30'
|
|
674
|
-
}, {
|
|
675
|
-
check: isPdfFile(name),
|
|
676
|
-
name: 'ZD-EF-filePdf',
|
|
677
|
-
size: '30'
|
|
678
|
-
}, {
|
|
679
|
-
check: docsFileTypes(name),
|
|
680
|
-
name: 'ZD-EF-fileWord',
|
|
681
|
-
size: '30'
|
|
682
|
-
}, {
|
|
683
|
-
check: sheetFileTypes(name),
|
|
684
|
-
name: 'ZD-EF-fileExcel',
|
|
685
|
-
size: '30'
|
|
686
|
-
}, {
|
|
687
|
-
check: showFileTypes(name),
|
|
688
|
-
name: 'ZD-SE-ppt',
|
|
689
|
-
size: '30'
|
|
690
|
-
}, {
|
|
691
|
-
check: designFileTypes(name),
|
|
692
|
-
name: 'ZD-EF-file',
|
|
693
|
-
size: '30'
|
|
694
|
-
}, {
|
|
695
|
-
check: isEmailFile(name),
|
|
696
|
-
name: 'ZD-CH-mail',
|
|
697
|
-
size: '30'
|
|
698
|
-
}, {
|
|
699
|
-
check: zipFileType(name),
|
|
700
|
-
name: 'ZD-EF-fileZip',
|
|
701
|
-
size: '30'
|
|
702
|
-
}];
|
|
703
|
-
|
|
704
|
-
const PreviewFileIcon = _ref5 => {
|
|
705
|
-
let {
|
|
706
|
-
data
|
|
707
|
-
} = _ref5;
|
|
708
|
-
const matchedIcon = fileTypeIconList.find(item => item.check);
|
|
709
|
-
const iconName = matchedIcon ? matchedIcon.name : 'ZD-EF-file';
|
|
710
|
-
const iconSize = matchedIcon ? matchedIcon.size : '30';
|
|
711
|
-
return /*#__PURE__*/React.createElement(Icon, {
|
|
712
|
-
iconClass: style.prevFooterIcon,
|
|
713
|
-
name: iconName,
|
|
714
|
-
size: iconSize
|
|
715
|
-
});
|
|
716
|
-
};
|
|
583
|
+
} = customClass;
|
|
584
|
+
thumbnail = isAudioFile(name) ? thumbnail || audioThumbNail : thumbnail; //fallback thumbnail for audio
|
|
717
585
|
|
|
718
586
|
return /*#__PURE__*/React.createElement(Box, {
|
|
719
|
-
className: `${style.imgItem} ${index === selectedIndex ? style.selected : ''}
|
|
587
|
+
className: `${style.imgItem} ${index === selectedIndex ? style.selected : ''}`,
|
|
720
588
|
key: index,
|
|
721
589
|
onClick: this.changeSelectedIndex.bind(this, index),
|
|
722
590
|
eleRef: el => this[`img_${index}`] = el,
|
|
723
591
|
dataId: "attachPreviewList",
|
|
724
592
|
"data-title": name
|
|
725
|
-
},
|
|
593
|
+
}, /*#__PURE__*/React.createElement(AttachmentImage, {
|
|
726
594
|
src: thumbnail || viewUrl,
|
|
727
595
|
size: "small",
|
|
728
596
|
alt: name,
|
|
@@ -732,9 +600,7 @@ export default class AttachmentViewer extends Component {
|
|
|
732
600
|
},
|
|
733
601
|
dataId: dataId,
|
|
734
602
|
...customProps
|
|
735
|
-
}, children)
|
|
736
|
-
data: name
|
|
737
|
-
}));
|
|
603
|
+
}, children));
|
|
738
604
|
}))))), totalLen !== 1 && /*#__PURE__*/React.createElement(IconButton, {
|
|
739
605
|
dataId: "attachToggle",
|
|
740
606
|
onClick: this.togglePViewList,
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
font-size: var(--zd_font_size22) ;
|
|
80
80
|
height: var(--zd_size38) ;
|
|
81
81
|
width: var(--zd_size38) ;
|
|
82
|
-
line-height: 1.
|
|
82
|
+
line-height: 1.6364;
|
|
83
83
|
border-radius: 50%;
|
|
84
84
|
cursor: pointer;
|
|
85
85
|
}
|
|
@@ -154,7 +154,6 @@
|
|
|
154
154
|
.imgItem {
|
|
155
155
|
height: var(--zd_size60) ;
|
|
156
156
|
min-width: var(--zd_size40) ;
|
|
157
|
-
/* css:theme-validation:ignore */
|
|
158
157
|
position: relative;
|
|
159
158
|
transition: border var(--zd_transition3);
|
|
160
159
|
border-width: 2px;
|
|
@@ -169,10 +168,6 @@
|
|
|
169
168
|
border-color: var(--zdt_attachmentviewer_hover_border);
|
|
170
169
|
}
|
|
171
170
|
|
|
172
|
-
.imgItem+.imgItem {
|
|
173
|
-
/* margin-left: 6px; */
|
|
174
|
-
}
|
|
175
|
-
|
|
176
171
|
[dir=ltr] .imgItem+.imgItem {
|
|
177
172
|
margin-left: var(--zd_size12) ;
|
|
178
173
|
}
|
|
@@ -235,71 +230,16 @@
|
|
|
235
230
|
transform: rotateX(0deg);
|
|
236
231
|
}
|
|
237
232
|
|
|
238
|
-
.isAudio,
|
|
239
|
-
.isVideo,
|
|
240
|
-
.isPdf,
|
|
241
|
-
.isMail,
|
|
242
|
-
.isWriter,
|
|
243
|
-
.isSheet,
|
|
244
|
-
.isShow,
|
|
245
|
-
.otherFile {
|
|
246
|
-
width: var(--zd_size60) ;
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
.isAudio, .isVideo, .isPdf, .isMail, .isWriter, .isSheet, .isShow, .otherFile {
|
|
250
|
-
background-size: 100% 100%;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
233
|
.isAudio {
|
|
254
234
|
composes: audioImage from '../common/dot_common.module.css';
|
|
235
|
+
width: var(--zd_size100) ;
|
|
236
|
+
background-size: 100% 100%;
|
|
255
237
|
}
|
|
256
238
|
|
|
257
|
-
.
|
|
258
|
-
composes: videoImage from '../common/dot_common.module.css';
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
.isPdf {
|
|
262
|
-
composes: pdfImage from '../common/dot_common.module.css';
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
.isWriter {
|
|
266
|
-
composes: writerImage from '../common/dot_common.module.css';
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
.isSheet {
|
|
270
|
-
composes: sheetImage from '../common/dot_common.module.css';
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
.isShow {
|
|
274
|
-
composes: showImage from '../common/dot_common.module.css';
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
.isMail {
|
|
279
|
-
composes: mailImage from '../common/dot_common.module.css';
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
.otherFile {
|
|
283
|
-
composes: otherImage from '../common/dot_common.module.css';
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
.isAudio .image,
|
|
287
|
-
.isVideo .image,
|
|
288
|
-
.isPdf .image,
|
|
289
|
-
.isWriter .image,
|
|
290
|
-
.isSheet .image,
|
|
291
|
-
.isShow .image,
|
|
292
|
-
.isMail .image,
|
|
293
|
-
.otherFile .image {
|
|
239
|
+
.isAudio .image {
|
|
294
240
|
opacity: 0;
|
|
295
241
|
}
|
|
296
242
|
|
|
297
|
-
.pdfFrame {
|
|
298
|
-
height: 100% ;
|
|
299
|
-
width: 100% ;
|
|
300
|
-
border: 0;
|
|
301
|
-
}
|
|
302
|
-
|
|
303
243
|
.video {
|
|
304
244
|
position: absolute;
|
|
305
245
|
top: 0 ;
|
|
@@ -417,69 +357,9 @@
|
|
|
417
357
|
}
|
|
418
358
|
|
|
419
359
|
.btn {
|
|
420
|
-
/* css:theme-validation:ignore */
|
|
421
360
|
height: 100% ;
|
|
422
361
|
width: 100% ;
|
|
423
362
|
background-color: var(--dot_mirror);
|
|
424
363
|
border: 0;
|
|
425
364
|
cursor: pointer;
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
.fileTypeImg {
|
|
429
|
-
margin: 0 auto var(--zd_size20) ;
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
.previewNone {
|
|
433
|
-
/* css:theme-validation:ignore */
|
|
434
|
-
color: #fff;
|
|
435
|
-
text-align: center;
|
|
436
|
-
margin: auto ;
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
.downloadLink {
|
|
440
|
-
/* css:theme-validation:ignore */
|
|
441
|
-
color: #0a73eb;
|
|
442
|
-
display: inline-block;
|
|
443
|
-
padding-top: var(--zd_size10) ;
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
.previewIconDiv {
|
|
447
|
-
width: var(--zd_size60) ;
|
|
448
|
-
composes: dflex from '~@zohodesk/components/lib/common/common.module.css';
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
.prevFooterIcon,
|
|
452
|
-
.prevIcon {
|
|
453
|
-
/* css:theme-validation:ignore */
|
|
454
|
-
color: #fff;
|
|
455
|
-
}
|
|
456
|
-
|
|
457
|
-
.prevFooterIcon, .prevIcon {
|
|
458
|
-
padding: var(--zd_size2) ;
|
|
459
|
-
margin: auto ;
|
|
460
|
-
}
|
|
461
|
-
|
|
462
|
-
.prevFooterIcon::before,
|
|
463
|
-
.prevIcon::before {
|
|
464
|
-
/* css:theme-validation:ignore */
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
.prevFooterIcon::before, .prevIcon::before {
|
|
468
|
-
background-color: transparent;
|
|
469
|
-
}
|
|
470
|
-
|
|
471
|
-
[dir=ltr] .prevIcon::before {
|
|
472
|
-
border-radius: 10px 30px 10px 10px;
|
|
473
|
-
}
|
|
474
|
-
|
|
475
|
-
[dir=rtl] .prevIcon::before {
|
|
476
|
-
border-radius: 30px 10px 10px 10px;
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
[dir=ltr] .prevFooterIcon::before {
|
|
480
|
-
border-radius: 5px 17px 5px 5px
|
|
481
|
-
}
|
|
482
|
-
|
|
483
|
-
[dir=rtl] .prevFooterIcon::before {
|
|
484
|
-
border-radius: 17px 5px 5px 5px
|
|
485
365
|
}
|
|
@@ -1,39 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
.audioImage {
|
|
2
2
|
background-image: url('../../images/audio_thumbnail.png');
|
|
3
3
|
background-repeat: no-repeat;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.videoImage {
|
|
7
|
-
background-image: url('../../images/video_thumbnail.png');
|
|
8
|
-
background-repeat: no-repeat;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.pdfImage {
|
|
12
|
-
background-image: url('../../images/pdf_thumbnail.png');
|
|
13
|
-
background-repeat: no-repeat;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.writerImage {
|
|
17
|
-
background-image: url('../../images/writer_thumbnail.png');
|
|
18
|
-
background-repeat: no-repeat;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.showImage {
|
|
22
|
-
background-image: url('../../images/show_thumbnail.png');
|
|
23
|
-
background-repeat: no-repeat;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.sheetImage {
|
|
27
|
-
background-image: url('../../images/sheet_thumbnail.png');
|
|
28
|
-
background-repeat: no-repeat;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.mailImage {
|
|
32
|
-
background-image: url('../../images/mail_thumbnail.png');
|
|
33
|
-
background-repeat: no-repeat;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.otherImage {
|
|
37
|
-
background-image: url('../../images/otherfile_thumbnail.png');
|
|
38
|
-
background-repeat: no-repeat;
|
|
39
|
-
} */
|
|
4
|
+
}
|
|
@@ -164,7 +164,8 @@ export default class TagsMultiSelect extends React.Component {
|
|
|
164
164
|
const {
|
|
165
165
|
TextBoxIconProps = {},
|
|
166
166
|
TagWrapperProps = {},
|
|
167
|
-
TagProps = {}
|
|
167
|
+
TagProps = {},
|
|
168
|
+
listProps = {}
|
|
168
169
|
} = customProps;
|
|
169
170
|
return /*#__PURE__*/React.createElement("div", {
|
|
170
171
|
className: `${style.container} ${!isReadOnly ? ` ${needBorder ? style.hasBorder : ''}
|
|
@@ -298,7 +299,8 @@ export default class TagsMultiSelect extends React.Component {
|
|
|
298
299
|
getRef: this.getSelectedItemRef,
|
|
299
300
|
isDisabled: listDisabled,
|
|
300
301
|
customProps: listItemProps,
|
|
301
|
-
customClass: listItemClass
|
|
302
|
+
customClass: listItemClass,
|
|
303
|
+
...listProps
|
|
302
304
|
}, isNew ? /*#__PURE__*/React.createElement(Container, {
|
|
303
305
|
alignBox: "row",
|
|
304
306
|
align: "vertical"
|
|
@@ -48,8 +48,12 @@ class DepartmentDropDown extends Component {
|
|
|
48
48
|
onSearch,
|
|
49
49
|
needSearchFetching,
|
|
50
50
|
searchStr,
|
|
51
|
-
i18nKeys
|
|
51
|
+
i18nKeys,
|
|
52
|
+
customProps
|
|
52
53
|
} = this.props;
|
|
54
|
+
const {
|
|
55
|
+
toggleDropDownProps = {}
|
|
56
|
+
} = customProps;
|
|
53
57
|
let {
|
|
54
58
|
title = 'Move Department',
|
|
55
59
|
searchEmptyText = 'No results found',
|
|
@@ -84,7 +88,8 @@ class DepartmentDropDown extends Component {
|
|
|
84
88
|
getNextOptions: getNextOptions,
|
|
85
89
|
isNextOptions: isNextOptions,
|
|
86
90
|
onSearch: onSearch,
|
|
87
|
-
needSearchFetching: needSearchFetching
|
|
91
|
+
needSearchFetching: needSearchFetching,
|
|
92
|
+
...toggleDropDownProps
|
|
88
93
|
});
|
|
89
94
|
}
|
|
90
95
|
|