@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.
Files changed (40) hide show
  1. package/.cli/propValidation_report.html +1 -1
  2. package/README.md +0 -4
  3. package/es/Attachment/Attachment.js +1 -2
  4. package/es/Attachment/Attachment.module.css +3 -7
  5. package/es/AttachmentViewer/Attachment.js +1 -60
  6. package/es/AttachmentViewer/AttachmentViewer.js +14 -148
  7. package/es/AttachmentViewer/AttachmentViewer.module.css +4 -124
  8. package/es/common/dot_common.module.css +2 -37
  9. package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +4 -2
  10. package/es/list/DepartmentDropDown/DepartmentDropDown.js +7 -2
  11. package/es/list/DepartmentDropDown/props/defaultProps.js +2 -1
  12. package/es/list/DepartmentDropDown/props/propTypes.js +2 -1
  13. package/es/list/status/StatusListItem/StatusListItem.module.css +35 -5
  14. package/es/lookup/header/Search/LookupSearch.module.css +27 -33
  15. package/es/lookup/header/Search/Search.js +40 -58
  16. package/es/lookup/header/Search/__tests__/Search.spec.js +1 -67
  17. package/es/lookup/header/Search/__tests__/__snapshots__/Search.spec.js.snap +3 -316
  18. package/es/lookup/header/Search/props/defaultProps.js +1 -3
  19. package/es/lookup/header/Search/props/propTypes.js +1 -6
  20. package/lib/Attachment/Attachment.js +1 -3
  21. package/lib/Attachment/Attachment.module.css +3 -7
  22. package/lib/AttachmentViewer/Attachment.js +1 -88
  23. package/lib/AttachmentViewer/AttachmentViewer.js +15 -148
  24. package/lib/AttachmentViewer/AttachmentViewer.module.css +4 -124
  25. package/lib/common/dot_common.module.css +2 -37
  26. package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.js +5 -3
  27. package/lib/list/DepartmentDropDown/DepartmentDropDown.js +8 -3
  28. package/lib/list/DepartmentDropDown/props/defaultProps.js +2 -1
  29. package/lib/list/DepartmentDropDown/props/propTypes.js +1 -1
  30. package/lib/list/status/StatusListItem/StatusListItem.module.css +35 -5
  31. package/lib/lookup/header/Search/LookupSearch.module.css +27 -33
  32. package/lib/lookup/header/Search/Search.js +66 -76
  33. package/lib/lookup/header/Search/__tests__/Search.spec.js +0 -65
  34. package/lib/lookup/header/Search/__tests__/__snapshots__/Search.spec.js.snap +3 -316
  35. package/lib/lookup/header/Search/props/defaultProps.js +1 -3
  36. package/lib/lookup/header/Search/props/propTypes.js +1 -6
  37. package/package.json +4 -4
  38. package/result.json +1 -1
  39. package/unittest/index.html +1 -1
  40. /package/images/{audio_thumbnail_old.png → audio_thumbnail.png} +0 -0
@@ -39,6 +39,8 @@ var _AttachmentViewerModule = _interopRequireDefault(require("./AttachmentViewer
39
39
 
40
40
  var _utils = require("./utils");
41
41
 
42
+ var _audio_thumbnail = _interopRequireDefault(require("../../images/audio_thumbnail.png"));
43
+
42
44
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
43
45
 
44
46
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
@@ -79,7 +81,6 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
79
81
 
80
82
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
81
83
 
82
- // import audioThumbNail from '../../images/audio_thumbnail.png'
83
84
  var AttachmentViewer = /*#__PURE__*/function (_Component) {
84
85
  _inherits(AttachmentViewer, _Component);
85
86
 
@@ -392,60 +393,6 @@ var AttachmentViewer = /*#__PURE__*/function (_Component) {
392
393
  _customClass$customCh = customClass.customChildrenClass,
393
394
  customChildrenClass = _customClass$customCh === void 0 ? '' : _customClass$customCh;
394
395
  var retainZoom = canZoom && selectedIndex == i && maintainZoom;
395
- var previewurl = data.previewurl;
396
- var fileTypeIconList = [{
397
- check: (0, _Attachment.isAudioFile)(data.name),
398
- name: 'ZD-EF-fileMp3',
399
- size: '50'
400
- }, {
401
- check: (0, _Attachment.isVideoFile)(data.name),
402
- name: 'ZD-EF-fileMp4',
403
- size: '50'
404
- }, {
405
- check: (0, _Attachment.isPdfFile)(data.name),
406
- name: 'ZD-EF-filePdf',
407
- size: '50'
408
- }, {
409
- check: (0, _Attachment.docsFileTypes)(data.name),
410
- name: 'ZD-EF-fileWord',
411
- size: '50'
412
- }, {
413
- check: (0, _Attachment.sheetFileTypes)(data.name),
414
- name: 'ZD-EF-fileExcel',
415
- size: '50'
416
- }, {
417
- check: (0, _Attachment.showFileTypes)(data.name),
418
- name: 'ZD-SE-ppt',
419
- size: '50'
420
- }, {
421
- check: (0, _Attachment.designFileTypes)(data.name),
422
- name: 'ZD-EF-file',
423
- size: '50'
424
- }, {
425
- check: (0, _Attachment.isEmailFile)(data.name),
426
- name: 'ZD-CH-mail',
427
- size: '50'
428
- }, {
429
- check: (0, _Attachment.zipFileType)(data.name),
430
- name: 'ZD-EF-fileZip',
431
- size: '50'
432
- }];
433
-
434
- var PreviewFileIcon = function PreviewFileIcon(_ref3) {
435
- var data = _ref3.data;
436
- var matchedIcon = fileTypeIconList.find(function (item) {
437
- return item.check;
438
- });
439
- var iconName = matchedIcon ? matchedIcon.name : 'ZD-EF-file';
440
- var iconSize = matchedIcon ? matchedIcon.size : '50';
441
- return /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
442
- iconClass: _AttachmentViewerModule["default"].prevIcon,
443
- name: iconName,
444
- size: iconSize
445
- });
446
- };
447
-
448
- console.log("...previewUrl", previewurl, "...data", data);
449
396
  return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
450
397
  className: _AttachmentViewerModule["default"].imgBox,
451
398
  id: "imgBox".concat(i),
@@ -463,26 +410,11 @@ var AttachmentViewer = /*#__PURE__*/function (_Component) {
463
410
  "data-id": "".concat(dataId, "_videoPreview"),
464
411
  "data-test-id": "".concat(dataId, "_videoPreview")
465
412
  }, audioProps), /*#__PURE__*/_react["default"].createElement("source", {
466
- src: previewurl,
413
+ src: viewUrl,
467
414
  type: "audio/".concat((0, _Attachment.getExtensionFromFileName)(name))
468
- })) : null : (0, _Attachment.isVideoFile)(data.name) ? selectedIndex == i ? /*#__PURE__*/_react["default"].createElement("video", {
469
- autoPlay: true,
470
- controls: true,
471
- className: _AttachmentViewerModule["default"].zoomIn
472
- }, /*#__PURE__*/_react["default"].createElement("source", {
473
- src: previewurl,
474
- type: "video/".concat((0, _Attachment.getExtensionFromFileName)(data.name))
475
- })) : null : (0, _Attachment.isDocsFile)(data.name) || (0, _Attachment.isSheetFile)(data.name) || (0, _Attachment.isShowFile)(data.name) ? selectedIndex == i ? (console.log("...previewurl", previewurl), /*#__PURE__*/_react["default"].createElement("iframe", {
476
- src: previewurl,
477
- className: _AttachmentViewerModule["default"].pdfFrame
478
- }) // <iframe src={previewurl+"&frameorigin=https://deskqa.localzoho.com"} className={style.pdfFrame}></iframe>
479
- ) : null : (0, _Attachment.isPdfFile)(data.name) || (0, _Attachment.isEmailFile)(data.name) ? selectedIndex == i ? /*#__PURE__*/_react["default"].createElement("iframe", {
480
- src: previewurl,
481
- className: _AttachmentViewerModule["default"].pdfFrame
482
- }) // <iframe src={previewurl+"&frameorigin=https://deskqa.localzoho.com"} className={style.pdfFrame}/>
483
- : null : (0, _Attachment.isImageFile)(data.name) ? /*#__PURE__*/_react["default"].createElement(_AttachmentImage["default"], _extends({
415
+ })) : null : /*#__PURE__*/_react["default"].createElement(_AttachmentImage["default"], _extends({
484
416
  customClass: {
485
- customImageClass: "".concat(_AttachmentViewerModule["default"].img, " ").concat(_AttachmentViewerModule["default"].altText, "\n ").concat(canZoom || retainZoom ? isZoomed ? "".concat(_AttachmentViewerModule["default"].zoomedImg, " ").concat(_AttachmentViewerModule["default"].zoomOutCursor) : "".concat(_AttachmentViewerModule["default"].normalImg, " ").concat(_AttachmentViewerModule["default"].zoomInCursor) : '', " ").concat(customImageClass),
417
+ customImageClass: "".concat(_AttachmentViewerModule["default"].img, " ").concat(_AttachmentViewerModule["default"].altText, "\n ").concat(canZoom || retainZoom ? isZoomed ? "".concat(_AttachmentViewerModule["default"].zoomedImg, " ").concat(_AttachmentViewerModule["default"].zoomOutCursor) : "".concat(_AttachmentViewerModule["default"].normalImg, " ").concat(_AttachmentViewerModule["default"].zoomInCursor) : '', " ").concat(customImageClass),
486
418
  customChildrenClass: customChildrenClass
487
419
  },
488
420
  src: viewUrl,
@@ -493,19 +425,7 @@ var AttachmentViewer = /*#__PURE__*/function (_Component) {
493
425
  dataId: dataId,
494
426
  id: "img".concat(i),
495
427
  isCover: false
496
- }, imageProps), children) : /*#__PURE__*/_react["default"].createElement("div", {
497
- className: _AttachmentViewerModule["default"].previewNone
498
- }, /*#__PURE__*/_react["default"].createElement("div", {
499
- className: _AttachmentViewerModule["default"].fileTypeImg
500
- }, /*#__PURE__*/_react["default"].createElement(PreviewFileIcon, {
501
- data: data.name
502
- })), "Preview not available for the selected file type.", /*#__PURE__*/_react["default"].createElement("br", null), /*#__PURE__*/_react["default"].createElement(_Link["default"], {
503
- href: data.href,
504
- className: _AttachmentViewerModule["default"].downloadLink,
505
- onClick: function onClick() {
506
- return (0, _Attachment.openNewTab)(data.href);
507
- }
508
- }, "Download"))));
428
+ }, imageProps), children)));
509
429
  });
510
430
  }
511
431
  }, {
@@ -533,8 +453,8 @@ var AttachmentViewer = /*#__PURE__*/function (_Component) {
533
453
  var authorHref;
534
454
  var authorName;
535
455
 
536
- var _ref4 = data[selectedIndex] ? data[selectedIndex] : {},
537
- author = _ref4.author;
456
+ var _ref3 = data[selectedIndex] ? data[selectedIndex] : {},
457
+ author = _ref3.author;
538
458
 
539
459
  if (author) {
540
460
  authorHref = author.href;
@@ -549,8 +469,8 @@ var AttachmentViewer = /*#__PURE__*/function (_Component) {
549
469
  }, /*#__PURE__*/_react["default"].createElement(_CustomResponsive.ResponsiveReceiver, {
550
470
  responsiveId: responsiveId,
551
471
  query: this.responsiveFunc
552
- }, function (_ref5) {
553
- var uptoTablet = _ref5.uptoTablet;
472
+ }, function (_ref4) {
473
+ var uptoTablet = _ref4.uptoTablet;
554
474
  return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
555
475
  scroll: "none",
556
476
  "data-scroll-palette": "dark"
@@ -742,62 +662,11 @@ var AttachmentViewer = /*#__PURE__*/function (_Component) {
742
662
  var _customClass$customIm2 = customClass.customImageClass,
743
663
  customImageClass = _customClass$customIm2 === void 0 ? '' : _customClass$customIm2,
744
664
  _customClass$customCh2 = customClass.customChildrenClass,
745
- customChildrenClass = _customClass$customCh2 === void 0 ? '' : _customClass$customCh2; // thumbnail= isAudioFile(name) ? thumbnail || audioThumbNail : thumbnail //fallback thumbnail for audio
746
-
747
- var fileTypeIconList = [{
748
- check: (0, _Attachment.isAudioFile)(name),
749
- name: thumbnail || 'ZD-EF-fileMp3',
750
- size: '30'
751
- }, {
752
- check: (0, _Attachment.isVideoFile)(name),
753
- name: 'ZD-EF-fileMp4',
754
- size: '30'
755
- }, {
756
- check: (0, _Attachment.isPdfFile)(name),
757
- name: 'ZD-EF-filePdf',
758
- size: '30'
759
- }, {
760
- check: (0, _Attachment.docsFileTypes)(name),
761
- name: 'ZD-EF-fileWord',
762
- size: '30'
763
- }, {
764
- check: (0, _Attachment.sheetFileTypes)(name),
765
- name: 'ZD-EF-fileExcel',
766
- size: '30'
767
- }, {
768
- check: (0, _Attachment.showFileTypes)(name),
769
- name: 'ZD-SE-ppt',
770
- size: '30'
771
- }, {
772
- check: (0, _Attachment.designFileTypes)(name),
773
- name: 'ZD-EF-file',
774
- size: '30'
775
- }, {
776
- check: (0, _Attachment.isEmailFile)(name),
777
- name: 'ZD-CH-mail',
778
- size: '30'
779
- }, {
780
- check: (0, _Attachment.zipFileType)(name),
781
- name: 'ZD-EF-fileZip',
782
- size: '30'
783
- }];
784
-
785
- var PreviewFileIcon = function PreviewFileIcon(_ref6) {
786
- var data = _ref6.data;
787
- var matchedIcon = fileTypeIconList.find(function (item) {
788
- return item.check;
789
- });
790
- var iconName = matchedIcon ? matchedIcon.name : 'ZD-EF-file';
791
- var iconSize = matchedIcon ? matchedIcon.size : '30';
792
- return /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
793
- iconClass: _AttachmentViewerModule["default"].prevFooterIcon,
794
- name: iconName,
795
- size: iconSize
796
- });
797
- };
665
+ customChildrenClass = _customClass$customCh2 === void 0 ? '' : _customClass$customCh2;
666
+ thumbnail = (0, _Attachment.isAudioFile)(name) ? thumbnail || _audio_thumbnail["default"] : thumbnail; //fallback thumbnail for audio
798
667
 
799
668
  return /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
800
- className: "".concat(_AttachmentViewerModule["default"].imgItem, " ").concat(index === selectedIndex ? _AttachmentViewerModule["default"].selected : '', " ").concat((0, _Attachment.isImageFile)(name) || thumbnail ? '' : _AttachmentViewerModule["default"].previewIconDiv),
669
+ className: "".concat(_AttachmentViewerModule["default"].imgItem, " ").concat(index === selectedIndex ? _AttachmentViewerModule["default"].selected : ''),
801
670
  key: index,
802
671
  onClick: _this6.changeSelectedIndex.bind(_this6, index),
803
672
  eleRef: function eleRef(el) {
@@ -805,7 +674,7 @@ var AttachmentViewer = /*#__PURE__*/function (_Component) {
805
674
  },
806
675
  dataId: "attachPreviewList",
807
676
  "data-title": name
808
- }, (0, _Attachment.isImageFile)(name) || thumbnail ? /*#__PURE__*/_react["default"].createElement(_AttachmentImage["default"], _extends({
677
+ }, /*#__PURE__*/_react["default"].createElement(_AttachmentImage["default"], _extends({
809
678
  src: thumbnail || viewUrl,
810
679
  size: "small",
811
680
  alt: name,
@@ -814,9 +683,7 @@ var AttachmentViewer = /*#__PURE__*/function (_Component) {
814
683
  customChildrenClass: "".concat(_AttachmentViewerModule["default"].crsrPointer, " ").concat(customChildrenClass)
815
684
  },
816
685
  dataId: dataId
817
- }, customProps), children) : /*#__PURE__*/_react["default"].createElement(PreviewFileIcon, {
818
- data: name
819
- }));
686
+ }, customProps), children));
820
687
  }))))), totalLen !== 1 && /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
821
688
  dataId: "attachToggle",
822
689
  onClick: _this6.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.6;
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
- .isVideo {
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
- /* .audioImage {
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
+ }
@@ -227,7 +227,9 @@ var TagsMultiSelect = /*#__PURE__*/function (_React$Component) {
227
227
  _customProps$TagWrapp = customProps.TagWrapperProps,
228
228
  TagWrapperProps = _customProps$TagWrapp === void 0 ? {} : _customProps$TagWrapp,
229
229
  _customProps$TagProps = customProps.TagProps,
230
- TagProps = _customProps$TagProps === void 0 ? {} : _customProps$TagProps;
230
+ TagProps = _customProps$TagProps === void 0 ? {} : _customProps$TagProps,
231
+ _customProps$listProp = customProps.listProps,
232
+ listProps = _customProps$listProp === void 0 ? {} : _customProps$listProp;
231
233
  return /*#__PURE__*/_react["default"].createElement("div", {
232
234
  className: "".concat(_TagsMultiSelectModule["default"].container, " ").concat(!isReadOnly ? " ".concat(needBorder ? _TagsMultiSelectModule["default"].hasBorder : '', "\n ").concat(needBorder ? _TagsMultiSelectModule["default"]["borderColor_".concat(borderColor)] : _TagsMultiSelectModule["default"].borderColor_transparent, " ").concat(isPopupReady && needBorder ? _TagsMultiSelectModule["default"].active : '') : '', " ").concat(className),
233
235
  onClick: _General.stopBubbling,
@@ -336,7 +338,7 @@ var TagsMultiSelect = /*#__PURE__*/function (_React$Component) {
336
338
  var name = item.name,
337
339
  isNew = item.isNew,
338
340
  listItemProps = item.listItemProps;
339
- return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, searchList.length > 1 && isNew ? /*#__PURE__*/_react["default"].createElement(_DropDownSeparator["default"], null) : null, /*#__PURE__*/_react["default"].createElement(_ListItem["default"], {
341
+ return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, searchList.length > 1 && isNew ? /*#__PURE__*/_react["default"].createElement(_DropDownSeparator["default"], null) : null, /*#__PURE__*/_react["default"].createElement(_ListItem["default"], _extends({
340
342
  key: index,
341
343
  index: index,
342
344
  autoHover: true,
@@ -349,7 +351,7 @@ var TagsMultiSelect = /*#__PURE__*/function (_React$Component) {
349
351
  isDisabled: listDisabled,
350
352
  customProps: listItemProps,
351
353
  customClass: listItemClass
352
- }, isNew ? /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
354
+ }, listProps), isNew ? /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
353
355
  alignBox: "row",
354
356
  align: "vertical"
355
357
  }, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
@@ -25,6 +25,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
25
25
 
26
26
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
27
27
 
28
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
29
+
28
30
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
29
31
 
30
32
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
@@ -100,7 +102,10 @@ var DepartmentDropDown = /*#__PURE__*/function (_Component) {
100
102
  onSearch = _this$props3.onSearch,
101
103
  needSearchFetching = _this$props3.needSearchFetching,
102
104
  searchStr = _this$props3.searchStr,
103
- i18nKeys = _this$props3.i18nKeys;
105
+ i18nKeys = _this$props3.i18nKeys,
106
+ customProps = _this$props3.customProps;
107
+ var _customProps$toggleDr = customProps.toggleDropDownProps,
108
+ toggleDropDownProps = _customProps$toggleDr === void 0 ? {} : _customProps$toggleDr;
104
109
  var _i18nKeys$title = i18nKeys.title,
105
110
  title = _i18nKeys$title === void 0 ? 'Move Department' : _i18nKeys$title,
106
111
  _i18nKeys$searchEmpty = i18nKeys.searchEmptyText,
@@ -109,7 +114,7 @@ var DepartmentDropDown = /*#__PURE__*/function (_Component) {
109
114
  searchErrorText = _i18nKeys$searchError === void 0 ? 'No results' : _i18nKeys$searchError,
110
115
  _i18nKeys$placeholder = i18nKeys.placeholder,
111
116
  placeholder = _i18nKeys$placeholder === void 0 ? 'Search Department' : _i18nKeys$placeholder;
112
- return /*#__PURE__*/_react["default"].createElement(_ToggleDropDown["default"], {
117
+ return /*#__PURE__*/_react["default"].createElement(_ToggleDropDown["default"], _extends({
113
118
  title: title,
114
119
  options: departmentList,
115
120
  value: /*#__PURE__*/_react["default"].createElement(_SecondaryText.DepartmentText, {
@@ -138,7 +143,7 @@ var DepartmentDropDown = /*#__PURE__*/function (_Component) {
138
143
  isNextOptions: isNextOptions,
139
144
  onSearch: onSearch,
140
145
  needSearchFetching: needSearchFetching
141
- });
146
+ }, toggleDropDownProps));
142
147
  }
143
148
  }]);
144
149
 
@@ -9,6 +9,7 @@ var defaultProps = {
9
9
  isPopupActive: true,
10
10
  isNextOptions: false,
11
11
  searchStr: '',
12
- i18nKeys: {}
12
+ i18nKeys: {},
13
+ customProps: {}
13
14
  };
14
15
  exports.defaultProps = defaultProps;
@@ -31,5 +31,5 @@ var propTypes = (_propTypes = {
31
31
  searchEmptyText: _propTypes2["default"].string,
32
32
  searchErrorText: _propTypes2["default"].string,
33
33
  placeholder: _propTypes2["default"].string
34
- })), _propTypes);
34
+ })), _defineProperty(_propTypes, "customProps", _propTypes2["default"].string), _propTypes);
35
35
  exports.propTypes = propTypes;
@@ -6,43 +6,58 @@
6
6
  min-height: var(--zd_size35) ;
7
7
  cursor: pointer;
8
8
  }
9
+
9
10
  [dir=ltr] .withBorder {
10
11
  border-left: 1px solid var(--zdt_statuslistitem_default_border);
11
12
  }
13
+
12
14
  [dir=rtl] .withBorder {
13
15
  border-right: 1px solid var(--zdt_statuslistitem_default_border);
14
16
  }
17
+
15
18
  [dir=ltr] .small {
16
19
  padding: var(--zd_size7) var(--zd_size3) var(--zd_size7) var(--zd_size5) ;
17
20
  }
21
+
18
22
  [dir=rtl] .small {
19
23
  padding: var(--zd_size7) var(--zd_size5) var(--zd_size7) var(--zd_size3) ;
20
24
  }
25
+
21
26
  .medium {
22
27
  padding: var(--zd_size7) var(--zd_size20) ;
23
28
  }
29
+
24
30
  .large {
25
31
  height: var(--zd_size48) ;
26
32
  }
33
+
27
34
  [dir=ltr] .large {
28
35
  padding: var(--zd_size10) var(--zd_size3) var(--zd_size10) var(--zd_size25) ;
29
36
  }
37
+
30
38
  [dir=rtl] .large {
31
39
  padding: var(--zd_size10) var(--zd_size25) var(--zd_size10) var(--zd_size3) ;
32
40
  }
33
- .value,.multiLineValue {
41
+
42
+ .value,
43
+ .multiLineValue {
34
44
  line-height: 1.5385;
35
45
  }
46
+
36
47
  .value {
37
48
  composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
38
49
  }
39
- .multiLineValue{
50
+
51
+ .multiLineValue {
40
52
  word-break: break-word;
53
+ -webkit-line-clamp: 3;
41
54
  composes: clamp from '~@zohodesk/components/lib/common/common.module.css';
42
55
  }
56
+
43
57
  [dir=ltr] .withBorder.active {
44
58
  border-left-color: var(--zdt_statuslistitem_default_active_border);
45
59
  }
60
+
46
61
  [dir=rtl] .withBorder.active {
47
62
  border-right-color: var(--zdt_statuslistitem_default_active_border);
48
63
  }
@@ -50,44 +65,56 @@
50
65
  .default.hover, .default.effect:hover {
51
66
  background-color: var(--zdt_statuslistitem_default_effect_bg);
52
67
  }
68
+
53
69
  .primary.hover, .primary.effect:hover, .selected {
54
70
  background-color: var(--zdt_statuslistitem_primary_efffect_bg);
55
71
  }
72
+
56
73
  .secondary.hover, .secondary.effect:hover {
57
74
  background-color: var(--zdt_statuslistitem_secondary_effect_bg);
58
75
  }
76
+
59
77
  .list.active.default, .list.active.primary {
60
78
  background-color: var(--zdt_statuslistitem_primary_efffect_bg);
61
79
  }
80
+
62
81
  .list.active.secondary {
63
82
  background-color: var(--zdt_statuslistitem_secondary_effect_bg);
64
83
  }
84
+
65
85
  .secondary.hover,
66
86
  .secondary.effect:hover,
67
87
  .list.active.secondary {
68
88
  color: var(--zdt_statuslistitem_secondary_effect_text);
69
89
  }
90
+
70
91
  .tickIcon {
71
92
  color: var(--zdt_statuslistitem_tickicon);
72
93
  position: absolute;
73
- top:50% ;
94
+ top: 50% ;
74
95
  transform: translateY(-50%);
75
96
  }
97
+
76
98
  [dir=ltr] .tickIcon {
77
99
  right: var(--zd_size20) ;
78
100
  }
101
+
79
102
  [dir=rtl] .tickIcon {
80
103
  left: var(--zd_size20) ;
81
104
  }
82
- .tickIcon > i {
105
+
106
+ .tickIcon>i {
83
107
  display: block;
84
108
  }
109
+
85
110
  [dir=ltr] .active.withTick {
86
111
  padding-right: var(--zd_size39) ;
87
112
  }
113
+
88
114
  [dir=rtl] .active.withTick {
89
115
  padding-left: var(--zd_size39) ;
90
116
  }
117
+
91
118
  /* Status Type */
92
119
  .statusType {
93
120
  width: var(--zd_size8) ;
@@ -100,12 +127,15 @@
100
127
  [dir=rtl] .statusType {
101
128
  margin-left: var(--zd_size13) ;
102
129
  }
130
+
103
131
  .black {
104
132
  background-color: var(--zdt_statuslistitem_black_bg);
105
133
  }
134
+
106
135
  .orange {
107
136
  background-color: var(--zdt_statuslistitem_orange_bg);
108
137
  }
138
+
109
139
  .green {
110
140
  background-color: var(--zdt_statuslistitem_green_bg);
111
- }
141
+ }