@colijnit/sharedcomponents 255.1.16 → 255.1.18

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 (41) hide show
  1. package/bundles/colijnit-sharedcomponents.umd.js +60 -36
  2. package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
  3. package/colijnit-sharedcomponents.metadata.json +1 -1
  4. package/esm2015/lib/components/email-selector/email-selector.component.js +21 -16
  5. package/esm2015/lib/components/file-upload/file-upload.component.js +4 -1
  6. package/esm2015/lib/components/files-upload/files-upload.component.js +30 -20
  7. package/esm2015/lib/components/role-email-selector/role-email-selector.component.js +41 -21
  8. package/esm2015/lib/components/task-creator/task-creator.component.js +41 -35
  9. package/esm2015/lib/components/task-creator/task-creator.module.js +4 -3
  10. package/esm2015/lib/enum/icon.enum.js +3 -1
  11. package/esm2015/lib/enum/keyboard-code.enum.js +2 -1
  12. package/esm2015/lib/model/icon-svg.js +3 -1
  13. package/esm2015/lib/service/shared.service.js +2 -2
  14. package/fesm2015/colijnit-sharedcomponents.js +138 -86
  15. package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
  16. package/lib/components/access/style/_layout.scss +16 -14
  17. package/lib/components/activity-list/style/_layout.scss +1 -1
  18. package/lib/components/activity-list-header/components/period-filter/style/_layout.scss +4 -4
  19. package/lib/components/activity-list-header/style/_layout.scss +1 -1
  20. package/lib/components/activity-overview-component/style/_layout.scss +1 -1
  21. package/lib/components/app-file-dropzone/style/_layout.scss +1 -1
  22. package/lib/components/email-selector/email-selector.component.d.ts +0 -4
  23. package/lib/components/email-selector/style/_layout.scss +34 -1
  24. package/lib/components/file-upload/file-upload.component.d.ts +1 -0
  25. package/lib/components/file-upload/style/_layout.scss +13 -3
  26. package/lib/components/files-upload/style/_layout.scss +35 -2
  27. package/lib/components/modify-task-form/components/activity-summary-block/style/_layout.scss +113 -100
  28. package/lib/components/modify-task-form/components/notification-summary-block/style/_layout.scss +110 -98
  29. package/lib/components/modify-task-form/components/status-summary-block/style/_layout.scss +2 -2
  30. package/lib/components/modify-task-form/components/task-details/style/_layout.scss +6 -6
  31. package/lib/components/modify-task-form/style/_layout.scss +5 -5
  32. package/lib/components/open-activity-list/components/personal-activity-overview/style/_layout.scss +2 -2
  33. package/lib/components/role-email-selector/role-email-selector.component.d.ts +10 -4
  34. package/lib/components/role-email-selector/style/_layout.scss +9 -2
  35. package/lib/components/role-email-selector/style/_material-definition.scss +4 -4
  36. package/lib/components/stock/style/_layout.scss +2 -2
  37. package/lib/components/task-creator/style/_layout.scss +39 -10
  38. package/lib/enum/icon.enum.d.ts +2 -0
  39. package/lib/enum/keyboard-code.enum.d.ts +2 -1
  40. package/lib/service/shared.service.d.ts +1 -2
  41. package/package.json +2 -2
@@ -87,7 +87,6 @@ import { ReportType } from '@colijnit/mainapi/build/enum/report-type.enum';
87
87
  import { StringUtils as StringUtils$1 } from '@colijnit/ioneconnector/build/utils/string-utils';
88
88
  import { Period } from '@colijnit/mainapi/build/enum/period.enum';
89
89
  import { ActivityEmailHistory } from '@colijnit/mainapi/build/model/activity-email-history.bo';
90
- import { CoEmailAttachment } from '@colijnit/mainapi/build/model/co-email-attachment.bo';
91
90
 
92
91
  class DocsignComponent {
93
92
  constructor() {
@@ -1646,6 +1645,7 @@ var Icon;
1646
1645
  Icon["FilePdfRegular"] = "file_pdf_regular";
1647
1646
  Icon["FilePdfSolid"] = "file_pdf_solid";
1648
1647
  Icon["FileSignatureRegular"] = "file_signature_regular";
1648
+ Icon["FoldersSharpRegular"] = "folders_sharp_regular";
1649
1649
  Icon["HouseBlankRegular"] = "house_blank_regular";
1650
1650
  Icon["IoneWorkflow"] = "ione_workflow";
1651
1651
  Icon["ListUlRegular"] = "list_ul_regular";
@@ -1664,6 +1664,7 @@ var Icon;
1664
1664
  Icon["PrintRegular"] = "print_regular";
1665
1665
  Icon["PrintSolid"] = "print_solid";
1666
1666
  Icon["SignatureField"] = "signature_field";
1667
+ Icon["SquarePlusRegular"] = "square_plus_regular";
1667
1668
  Icon["TagRegular"] = "tag_regular";
1668
1669
  Icon["Task"] = "task";
1669
1670
  Icon["Trashbin"] = "trashbin";
@@ -1712,6 +1713,7 @@ const IconSvg = {
1712
1713
  "file_pdf_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 384 512\"><path d=\"M320 464C328.8 464 336 456.8 336 448V416H384V448C384 483.3 355.3 512 320 512H64C28.65 512 0 483.3 0 448V416H48V448C48 456.8 55.16 464 64 464H320zM256 160C238.3 160 224 145.7 224 128V48H64C55.16 48 48 55.16 48 64V192H0V64C0 28.65 28.65 0 64 0H229.5C246.5 0 262.7 6.743 274.7 18.75L365.3 109.3C377.3 121.3 384 137.5 384 154.5V192H336V160H256zM88 224C118.9 224 144 249.1 144 280C144 310.9 118.9 336 88 336H80V368C80 376.8 72.84 384 64 384C55.16 384 48 376.8 48 368V240C48 231.2 55.16 224 64 224H88zM112 280C112 266.7 101.3 256 88 256H80V304H88C101.3 304 112 293.3 112 280zM160 240C160 231.2 167.2 224 176 224H200C226.5 224 248 245.5 248 272V336C248 362.5 226.5 384 200 384H176C167.2 384 160 376.8 160 368V240zM192 352H200C208.8 352 216 344.8 216 336V272C216 263.2 208.8 256 200 256H192V352zM336 224C344.8 224 352 231.2 352 240C352 248.8 344.8 256 336 256H304V288H336C344.8 288 352 295.2 352 304C352 312.8 344.8 320 336 320H304V368C304 376.8 296.8 384 288 384C279.2 384 272 376.8 272 368V240C272 231.2 279.2 224 288 224H336z\"/></svg>",
1713
1714
  "file_pdf_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 384 512\"><path d=\"M64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V160H256c-17.7 0-32-14.3-32-32V0H64zM256 0V128H384L256 0zM64 224H88c30.9 0 56 25.1 56 56s-25.1 56-56 56H80v32c0 8.8-7.2 16-16 16s-16-7.2-16-16V320 240c0-8.8 7.2-16 16-16zm24 80c13.3 0 24-10.7 24-24s-10.7-24-24-24H80v48h8zm72-64c0-8.8 7.2-16 16-16h24c26.5 0 48 21.5 48 48v64c0 26.5-21.5 48-48 48H176c-8.8 0-16-7.2-16-16V240zm32 112h8c8.8 0 16-7.2 16-16V272c0-8.8-7.2-16-16-16h-8v96zm96-128h48c8.8 0 16 7.2 16 16s-7.2 16-16 16H304v32h32c8.8 0 16 7.2 16 16s-7.2 16-16 16H304v48c0 8.8-7.2 16-16 16s-16-7.2-16-16V304 240c0-8.8 7.2-16 16-16z\"/></svg>",
1714
1715
  "file_signature_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 576 512\"><path d=\"M64 464H320c8.8 0 16-7.2 16-16v-6.7l39.8-9.9c2.8-.7 5.6-1.6 8.2-2.7V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V64C0 28.7 28.7 0 64 0H229.5c17 0 33.3 6.7 45.3 18.7l90.5 90.5c12 12 18.7 28.3 18.7 45.3v49.1l-48 48V160H256c-17.7 0-32-14.3-32-32V48H64c-8.8 0-16 7.2-16 16V448c0 8.8 7.2 16 16 16zm96-115l-9.8 32.8c-6.1 20.3-24.8 34.2-46 34.2H96c-8.8 0-16-7.2-16-16s7.2-16 16-16h8.2c7.1 0 13.3-4.6 15.3-11.4l14.9-49.5c3.4-11.3 13.8-19.1 25.6-19.1s22.2 7.7 25.6 19.1l11.6 38.6c7.4-6.2 16.8-9.7 26.8-9.7c15.9 0 30.4 9 37.5 23.2l4.4 8.8h25.6l12-48.2c1.4-5.6 4.3-10.8 8.4-14.9L441.1 191.8l71 71L382.9 391.9c-4.1 4.1-9.2 7-14.9 8.4l-60.1 15c-1.1 .3-2.1 .4-3.2 .5c-.8 .1-1.5 .2-2.3 .2H256c-6.1 0-11.6-3.4-14.3-8.8l-8.8-17.7c-1.7-3.4-5.1-5.5-8.8-5.5s-7.2 2.1-8.8 5.5l-8.8 17.7c-2.9 5.9-9.2 9.4-15.7 8.8s-12.1-5.1-13.9-11.3L160 349zM549.8 139.7l14.4 14.4c15.6 15.6 15.6 40.9 0 56.6l-29.4 29.4-71-71 29.4-29.4c15.6-15.6 40.9-15.6 56.6 0z\"/></svg>",
1716
+ "folders_sharp_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 576 512\"><path d=\"M304 32L144 32 96 32l0 48 0 256 0 48 48 0 384 0 48 0 0-48 0-192 0-48-48 0L368 96 304 32zm64 112l160 0 0 192-384 0 0-256 140.1 0 49.9 49.9L348.1 144l19.9 0zM48 120l0-24L0 96l0 24L0 456l0 24 24 0 432 0 24 0 0-48-24 0L48 432l0-312z\"/></svg>",
1715
1717
  "house_blank_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 576 512\"><path d=\"M303.5 5.7c-9-7.6-22.1-7.6-31.1 0l-264 224c-10.1 8.6-11.3 23.7-2.8 33.8s23.7 11.3 33.8 2.8L64 245.5V432c0 44.2 35.8 80 80 80H432c44.2 0 80-35.8 80-80V245.5l24.5 20.8c10.1 8.6 25.3 7.3 33.8-2.8s7.3-25.3-2.8-33.8l-264-224zM464 204.8V432c0 17.7-14.3 32-32 32H144c-17.7 0-32-14.3-32-32V204.8L288 55.5 464 204.8z\"/></svg>",
1716
1718
  "ione_workflow": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"0 0 50 50\" enable-background=\"new 0 0 50 50\" ><g display=\"none\"></g><g ><g ><g><g><rect x=\"34.3\" y=\"20\" fill=\"#484F60\" width=\"1.5\" height=\"3.7\"/><g><polygon fill=\"#484F60\" points=\"32,22.8 35,28 38,22.8 \"/></g></g><path fill=\"#484F60\" d=\"M18.5,21.5v7h-7v-7H18.5 M20,20H10v10h10V20L20,20z\"/><path fill=\"#484F60\" d=\"M38.5,11.5v7h-7v-7H38.5 M40,10H30v10h10V10L40,10z\"/><path fill=\"#484F60\" d=\"M38.5,31.5v7h-7v-7H38.5 M40,30H30v10h10V30L40,30z\"/><g><polygon fill=\"#484F60\" points=\"15.8,20 14.3,20 14.3,14.3 23.7,14.3 23.7,15.8 15.8,15.8 \"/><g><polygon fill=\"#484F60\" points=\"22.8,18 28,15 22.8,12 \"/></g></g><g><polygon fill=\"#484F60\" points=\"23.7,35.8 14.3,35.8 14.3,30 15.8,30 15.8,34.3 23.7,34.3 \"/><g><polygon fill=\"#484F60\" points=\"22.8,38 28,35 22.8,32 \"/></g></g></g></g><g display=\"none\"></g></g><g display=\"none\"></g><g display=\"none\"></g><g display=\"none\"></g><g display=\"none\"></g><g display=\"none\"><g display=\"inline\"><rect y=\"50\" opacity=\"0.25\" fill=\"#FFFFFF\" width=\"50\" height=\"50\"/></g><g display=\"inline\"><g><rect y=\"-45\" opacity=\"0.5\" fill=\"none\" width=\"50\" height=\"45\"/><text transform=\"matrix(1 0 0 1 7.375 -37.9002)\"><tspan x=\"0\" y=\"0\" font-family=\"'MyriadPro-Regular'\" font-size=\"10px\">Opmaak </tspan><tspan x=\"5.4\" y=\"12\" font-family=\"'MyriadPro-Regular'\" font-size=\"10px\">item / </tspan><tspan x=\"-1.4\" y=\"24\" font-family=\"'MyriadPro-Regular'\" font-size=\"10px\">structuur </tspan><tspan x=\"8.1\" y=\"36\" font-family=\"'MyriadPro-Regular'\" font-size=\"10px\">item </tspan></text></g></g><g display=\"inline\"><g><rect y=\"0\" opacity=\"0.25\" fill=\"#FFFFFF\" width=\"50\" height=\"50\"/><rect y=\"5\" opacity=\"0.5\" fill=\"none\" width=\"50\" height=\"45\"/><text transform=\"matrix(1 0 0 1 5.0054 12.0999)\" font-family=\"'MyriadPro-Regular'\" font-size=\"10px\">Workflow</text></g></g></g></svg>",
1717
1719
  "list_ul_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path d=\"M64 64a32 32 0 1 0 0 64 32 32 0 1 0 0-64zm120 8c-13.3 0-24 10.7-24 24s10.7 24 24 24l304 0c13.3 0 24-10.7 24-24s-10.7-24-24-24L184 72zm0 160c-13.3 0-24 10.7-24 24s10.7 24 24 24l304 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-304 0zm0 160c-13.3 0-24 10.7-24 24s10.7 24 24 24l304 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-304 0zM96 256a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM64 384a32 32 0 1 0 0 64 32 32 0 1 0 0-64z\"/></svg>",
@@ -1730,6 +1732,7 @@ const IconSvg = {
1730
1732
  "print_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path d=\"M111.1 48h254.1L400 81.94V160H448V81.94c0-12.73-5.057-24.94-14.06-33.94l-33.94-33.94C391 5.057 378.8 0 366.1 0H111.1C85.49 0 64.01 21.48 64 47.98l.002 82.28c-.002 0 .002 0 0 0L64 160h48.01L111.1 48zM440 192H72C32.3 192 0 224.3 0 264v112c0 13.25 10.75 24 24 24H80V480c0 17.67 14.33 32 32 32h288c17.67 0 32-14.33 32-32v-80h56c13.25 0 24-10.75 24-24v-112C512 224.3 479.7 192 440 192zM384 464H128v-96h256V464zM464 352h-32c0-17.67-14.33-32-32-32h-288c-17.67 0-32 14.33-32 32h-32V264c0-13.23 10.77-24 24-24h368c13.23 0 24 10.77 24 24V352z\"/></svg>",
1731
1733
  "print_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path d=\"M448 192H64C28.65 192 0 220.7 0 256v96c0 17.67 14.33 32 32 32h32v96c0 17.67 14.33 32 32 32h320c17.67 0 32-14.33 32-32v-96h32c17.67 0 32-14.33 32-32V256C512 220.7 483.3 192 448 192zM384 448H128v-96h256V448zM432 296c-13.25 0-24-10.75-24-24c0-13.27 10.75-24 24-24s24 10.73 24 24C456 285.3 445.3 296 432 296zM128 64h229.5L384 90.51V160h64V77.25c0-8.484-3.375-16.62-9.375-22.62l-45.25-45.25C387.4 3.375 379.2 0 370.8 0H96C78.34 0 64 14.33 64 32v128h64V64z\"/></svg>",
1732
1734
  "signature_field": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M20.1,25.42a1.1,1.1,0,1,1,1.27,1.45l-3.3,9.07A63.13,63.13,0,0,1,28,28.3l1.26-12-8.26-3-6.77,10A62.4,62.4,0,0,1,17,35.54l3.3-9.07A1.12,1.12,0,0,1,20.1,25.42Z\" fill=\"#484f60\"/><rect x=\"21.62\" y=\"11.43\" width=\"8.79\" height=\"2.34\" transform=\"translate(5.88 -8.14) rotate(20)\" fill=\"#484f60\"/><path d=\"M18.11,37.48c1.44,2.65,4.58,2.94,7.23,2.1,1.41-.44,2.2-1.49,3.44-2.06,2.42-1.1,3.13,1.2,5.36,1.37.42,0,2-.65,1.54-.68-2.55-.19-2.93-3.13-5.51-2.65a4.9,4.9,0,0,0-1.64.71c-.77.49-1.31,1.62-2.07,2l-4.61.56A3.38,3.38,0,0,1,20,37c-.22-.41-2,.28-1.85.5Z\" fill=\"#484f60\"/></svg>",
1735
+ "square_plus_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><path d=\"M64 80c-8.8 0-16 7.2-16 16l0 320c0 8.8 7.2 16 16 16l320 0c8.8 0 16-7.2 16-16l0-320c0-8.8-7.2-16-16-16L64 80zM0 96C0 60.7 28.7 32 64 32l320 0c35.3 0 64 28.7 64 64l0 320c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 96zM200 344l0-64-64 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l64 0 0-64c0-13.3 10.7-24 24-24s24 10.7 24 24l0 64 64 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-64 0 0 64c0 13.3-10.7 24-24 24s-24-10.7-24-24z\"/></svg>",
1733
1736
  "tag_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><path d=\"M197.5 32c17 0 33.3 6.7 45.3 18.7l176 176c25 25 25 65.5 0 90.5L285.3 450.7c-25 25-65.5 25-90.5 0l-176-176C6.7 262.7 0 246.5 0 229.5V80C0 53.5 21.5 32 48 32H197.5zM48 229.5c0 4.2 1.7 8.3 4.7 11.3l176 176c6.2 6.2 16.4 6.2 22.6 0L384.8 283.3c6.2-6.2 6.2-16.4 0-22.6l-176-176c-3-3-7.1-4.7-11.3-4.7H48V229.5zM112 112a32 32 0 1 1 0 64 32 32 0 1 1 0-64z\"/></svg>",
1734
1737
  "task": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 30 30\"><g ><g><path d=\"M23.82,3.53h-.88v1.32h.88c.24,0,.44,.2,.44,.44V28.24c0,.24-.2,.44-.44,.44H6.18c-.24,0-.44-.2-.44-.44V5.29c0-.24,.2-.44,.44-.44h.88v-1.32h-.88c-.97,0-1.76,.79-1.76,1.76V28.24c0,.97,.79,1.76,1.76,1.76H23.82c.97,0,1.76-.79,1.76-1.76V5.29c0-.97-.79-1.76-1.76-1.76Z\" fill=\"#484f60\"/><path d=\"M17.65,2.65c0,1.46-1.19,2.65-2.65,2.65s-2.65-1.19-2.65-2.65h-3.09c-.49,0-.88,.4-.88,.88v2.65c0,.49,.4,.88,.88,.88h11.47c.49,0,.88-.4,.88-.88V3.53c0-.49-.4-.88-.88-.88h-3.09Z\" fill=\"#484f60\"/><path d=\"M15,0C13.54,0,12.35,1.19,12.35,2.65s1.19,2.65,2.65,2.65,2.65-1.19,2.65-2.65S16.46,0,15,0Zm0,3.97c-.73,0-1.32-.59-1.32-1.32s.59-1.32,1.32-1.32,1.32,.59,1.32,1.32-.59,1.32-1.32,1.32Z\" fill=\"#484f60\"/><rect x=\"12.09\" y=\"11.51\" width=\"10\" height=\"1\" fill=\"#484f60\"/><rect x=\"12.09\" y=\"17.51\" width=\"10\" height=\"1\" fill=\"#484f60\"/><rect x=\"12.09\" y=\"23.51\" width=\"10\" height=\"1\" fill=\"#484f60\"/><path d=\"M10.09,23.51v1h-1v-1h1m1-1h-3v3h3v-3h0Z\" fill=\"#484f60\"/><polygon points=\"9.44 20.01 7.91 17.86 8.52 17.43 9.33 18.57 10.61 16.01 11.27 16.35 9.44 20.01\" fill=\"#484f60\"/><polygon points=\"9.44 14.01 7.91 11.86 8.52 11.43 9.33 12.57 10.61 10.01 11.27 10.35 9.44 14.01\" fill=\"#484f60\"/></g></g></svg>",
1735
1738
  "trashbin": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><path d=\"M144 400C144 408.8 136.8 416 128 416C119.2 416 112 408.8 112 400V176C112 167.2 119.2 160 128 160C136.8 160 144 167.2 144 176V400zM240 400C240 408.8 232.8 416 224 416C215.2 416 208 408.8 208 400V176C208 167.2 215.2 160 224 160C232.8 160 240 167.2 240 176V400zM336 400C336 408.8 328.8 416 320 416C311.2 416 304 408.8 304 400V176C304 167.2 311.2 160 320 160C328.8 160 336 167.2 336 176V400zM310.1 22.56L336.9 64H432C440.8 64 448 71.16 448 80C448 88.84 440.8 96 432 96H416V432C416 476.2 380.2 512 336 512H112C67.82 512 32 476.2 32 432V96H16C7.164 96 0 88.84 0 80C0 71.16 7.164 64 16 64H111.1L137 22.56C145.8 8.526 161.2 0 177.7 0H270.3C286.8 0 302.2 8.526 310.1 22.56V22.56zM148.9 64H299.1L283.8 39.52C280.9 34.84 275.8 32 270.3 32H177.7C172.2 32 167.1 34.84 164.2 39.52L148.9 64zM64 432C64 458.5 85.49 480 112 480H336C362.5 480 384 458.5 384 432V96H64V432z\" fill=\"#484f60\"></path></svg>",
@@ -2851,7 +2854,7 @@ class SharedService {
2851
2854
  emailJob.reply = reply;
2852
2855
  emailJob.subject = subject;
2853
2856
  emailJob.message = message;
2854
- emailJob.attachments = attachments;
2857
+ //emailJob.attachments = attachments;
2855
2858
  emailJob.reportId = report.reportId;
2856
2859
  emailJob.parameterValues = parameters;
2857
2860
  emailJob.locale = this.locale;
@@ -5620,6 +5623,7 @@ var KeyboardCode;
5620
5623
  KeyboardCode["NumpadEnter"] = "NumpadEnter";
5621
5624
  KeyboardCode["NumpadSubtract"] = "NumpadSubtract";
5622
5625
  KeyboardCode["Period"] = "Period";
5626
+ KeyboardCode["Tab"] = "Tab";
5623
5627
  })(KeyboardCode || (KeyboardCode = {}));
5624
5628
 
5625
5629
  class KeyPadComponent {
@@ -10380,26 +10384,36 @@ FilesUploadComponent.decorators = [
10380
10384
  [handleSort]="true"
10381
10385
  dragHandle="tile"
10382
10386
  [enabled]="!noDragDropOrdering">
10387
+ <div class="upload-add-wrapper">
10383
10388
  <co-file-upload *ngIf="canAdd && addWithButton" class="add-file"
10384
- isAddingTile
10385
- icon="plus_round_open"
10386
- [link]="true"
10387
- [label]="label | localize"
10388
- (mouseover)="mouseOverAdd = true"
10389
- (mouseout)="mouseOverAdd = false"
10390
- (click)="handleAddClick()"></co-file-upload> <!-- (click)="handleAddClick()" -->
10391
- <co-file-upload *ngFor="let file of documents" class="tile"
10392
- [readonly]="file.readonly || readonly"
10393
- [class.hidden]="hideAvatars ? file.isAvatar : false"
10394
- [file]="file"
10395
- [label]="file.fileName"
10396
- [showTrashCan]="canDelete"
10397
- [fileSavesOnPopupOkClick]="fileSavesOnPopupOkClick"
10398
- [isEditable]="isEditable"
10399
- [customImageClick]="customImageClick"
10400
- (imageClick)="imageClick.emit($event)"
10401
- (deleteClick)="handleDelete(file)"
10402
- (editClick)="handleEditDocumentClick($event)"></co-file-upload>
10389
+ isAddingTile
10390
+ icon="plus_round_open"
10391
+ [link]="true"
10392
+ [label]="label | localize"
10393
+ (mouseover)="mouseOverAdd = true"
10394
+ (mouseout)="mouseOverAdd = false"
10395
+ (click)="handleAddClick()"></co-file-upload> <!-- (click)="handleAddClick()" -->
10396
+ <co-file-upload *ngIf="!documents || documents.length === 0" class="add-dropzone"
10397
+ isAddingTile
10398
+ [dropzone]="true"
10399
+ [link]="true"
10400
+ [label]="'DROPZONE_TEXT' | localize"
10401
+ (mouseover)="mouseOverAdd = true"
10402
+ (mouseout)="mouseOverAdd = false"
10403
+ (click)="handleAddClick()"></co-file-upload>
10404
+ </div>
10405
+ <co-file-upload *ngFor="let file of documents" class="tile"
10406
+ [readonly]="file.readonly || readonly"
10407
+ [class.hidden]="hideAvatars ? file.isAvatar : false"
10408
+ [file]="file"
10409
+ [label]="file.fileName"
10410
+ [showTrashCan]="canDelete"
10411
+ [fileSavesOnPopupOkClick]="fileSavesOnPopupOkClick"
10412
+ [isEditable]="isEditable"
10413
+ [customImageClick]="customImageClick"
10414
+ (imageClick)="imageClick.emit($event)"
10415
+ (deleteClick)="handleDelete(file)"
10416
+ (editClick)="handleEditDocumentClick($event)"></co-file-upload>
10403
10417
  </drag-drop-container>
10404
10418
  <span class="maxuploadsize" textContent="getMaxFileSizeNotition()" [class.show]="mouseOverAdd"></span>
10405
10419
  <input #inputFile [accept]="acceptedUploadFormats" (change)="handleFileChange($event)" type="file" hidden multiple/>
@@ -10982,6 +10996,7 @@ class FileUploadComponent {
10982
10996
  this.icons = Icon;
10983
10997
  // Element clickable
10984
10998
  this.link = false;
10999
+ this.dropzone = false;
10985
11000
  this.readonly = false;
10986
11001
  // Is tile an 'adding' tile
10987
11002
  this.isAddingTile = false;
@@ -11114,6 +11129,7 @@ FileUploadComponent.decorators = [
11114
11129
  </ng-template>
11115
11130
  <co-icon *ngIf="showTrashCan && !readonly" [iconData]="iconService.getIcon(icons.Trashbin)" class="trash" (click)="onDeleteClick()"></co-icon>
11116
11131
  <co-icon tile-render-image-content *ngIf="icon" class="dark add-button" [icon]="icon"></co-icon>
11132
+ <co-icon tile-render-image-content *ngIf="dropzone" class="dark add-button" [iconData]="iconService.getIcon(icons.FoldersSharpRegular)"></co-icon>
11117
11133
  </co-tile-render>
11118
11134
  `,
11119
11135
  encapsulation: ViewEncapsulation.None
@@ -11130,6 +11146,7 @@ FileUploadComponent.propDecorators = {
11130
11146
  file: [{ type: Input }],
11131
11147
  icon: [{ type: Input }],
11132
11148
  link: [{ type: Input }],
11149
+ dropzone: [{ type: Input }],
11133
11150
  readonly: [{ type: Input }],
11134
11151
  isAddingTile: [{ type: Input }],
11135
11152
  fileSavesOnPopupOkClick: [{ type: Input }],
@@ -14168,11 +14185,13 @@ NotificationSummaryBlockComponent.propDecorators = {
14168
14185
  };
14169
14186
 
14170
14187
  class RoleEmailSelectorComponent {
14171
- constructor(iconService, sharedService) {
14188
+ constructor(iconService, sharedService, renderer) {
14172
14189
  this.iconService = iconService;
14173
14190
  this.sharedService = sharedService;
14191
+ this.renderer = renderer;
14174
14192
  this.icons = Icon;
14175
14193
  this.recipientLabel = 'RECIPIENTS';
14194
+ this.fieldLabel = '';
14176
14195
  this.extraLabel = '';
14177
14196
  this.modelChange = new EventEmitter();
14178
14197
  this.emailAddressesAvailableForDropdown = [];
@@ -14181,9 +14200,11 @@ class RoleEmailSelectorComponent {
14181
14200
  this._roleEmailAddresses = [];
14182
14201
  this._customEmailAddresses = [];
14183
14202
  this._model = [];
14203
+ this.chipsWrapperWidth = 0;
14184
14204
  }
14185
14205
  set model(value) {
14186
14206
  this._model = value;
14207
+ this.updateChipsWrapperWidth();
14187
14208
  }
14188
14209
  get model() {
14189
14210
  return this._model;
@@ -14214,6 +14235,9 @@ class RoleEmailSelectorComponent {
14214
14235
  this.fetchRoleEmailAddresses();
14215
14236
  });
14216
14237
  }
14238
+ ngAfterViewInit() {
14239
+ this.updateChipsWrapperWidth();
14240
+ }
14217
14241
  fetchRoleEmailAddresses() {
14218
14242
  return __awaiter(this, void 0, void 0, function* () {
14219
14243
  if (this.workflowCategoryType !== undefined && this.key !== undefined) {
@@ -14235,7 +14259,11 @@ class RoleEmailSelectorComponent {
14235
14259
  this.updateModel();
14236
14260
  }
14237
14261
  handleKeyPressed(event) {
14238
- if (event.code === KeyboardCode.Enter) {
14262
+ if (event.code === KeyboardCode.Enter || event.code === KeyboardCode.NumpadEnter) {
14263
+ this.addEmail();
14264
+ }
14265
+ else if (event.code === KeyboardCode.Tab) {
14266
+ event.preventDefault();
14239
14267
  this.addEmail();
14240
14268
  }
14241
14269
  }
@@ -14249,54 +14277,63 @@ class RoleEmailSelectorComponent {
14249
14277
  updateModel() {
14250
14278
  this.model = this._roleEmailAddresses.concat(this._customEmailAddresses);
14251
14279
  this.modelChange.emit(this.model);
14280
+ setTimeout(() => {
14281
+ this.updateChipsWrapperWidth();
14282
+ });
14252
14283
  }
14253
14284
  removeOptionFromModel(email) {
14254
- if (this._roleEmailAddresses.indexOf(email) > -1) {
14255
- this._roleEmailAddresses.splice(this._roleEmailAddresses.indexOf(email), 1);
14285
+ const indexRole = this._roleEmailAddresses.indexOf(email);
14286
+ if (indexRole > -1) {
14287
+ this._roleEmailAddresses.splice(indexRole, 1);
14256
14288
  }
14257
- if (this._customEmailAddresses.indexOf(email) > -1) {
14258
- this._customEmailAddresses.splice(this._customEmailAddresses.indexOf(email), 1);
14289
+ const indexCustom = this._customEmailAddresses.indexOf(email);
14290
+ if (indexCustom > -1) {
14291
+ this._customEmailAddresses.splice(indexCustom, 1);
14259
14292
  }
14260
14293
  this.updateModel();
14261
14294
  }
14262
- clear() {
14263
- this.chosenEmailAddressesInDropDown = [];
14295
+ updateChipsWrapperWidth() {
14296
+ if (this.chipsWrapper) {
14297
+ this.chipsWrapperWidth = this.chipsWrapper.nativeElement.offsetWidth;
14298
+ }
14264
14299
  }
14265
14300
  }
14266
14301
  RoleEmailSelectorComponent.decorators = [
14267
14302
  { type: Component, args: [{
14268
14303
  selector: "co-role-email-selector",
14269
14304
  template: `
14270
-
14271
-
14272
- <div class="chips-wrapper">
14305
+ <co-input-text #inputText [(model)]="emailModel" [ngStyle]="{'padding-left.px': chipsWrapperWidth}" [placeholder]="fieldLabel | localize" (keyDown)="handleKeyPressed($event)"
14306
+ ></co-input-text>
14307
+ <co-list-of-values [multiselect]="true" [label]="recipientLabel | localize" [(model)]="chosenEmailAddressesInDropDown" [showChips]="false"
14308
+ [collection]="emailAddressesAvailableForDropdown" [displayField]="'role'"
14309
+ (modelChange)="roleChosen($event)">
14310
+ </co-list-of-values>
14311
+ <div class="chips-wrapper" #chipsWrapper>
14273
14312
  <div class="chips" *ngFor="let email of model">
14274
14313
  <span class="chips-description" [textContent]="email"></span>
14275
14314
  <co-icon class="remove-chip-icon" [iconData]="iconService.getIcon(icons.CrossSkinny)" (click)="removeOptionFromModel(email)"></co-icon>
14276
14315
  </div>
14277
14316
  </div>
14278
- <co-list-of-values [multiselect]="true" [label]="recipientLabel | localize" [(model)]="chosenEmailAddressesInDropDown" [showChips]="false"
14279
- [collection]="emailAddressesAvailableForDropdown" [displayField]="'role'"
14280
- (modelChange)="roleChosen($event)">
14281
- </co-list-of-values>
14282
- <co-input-text [(model)]="emailModel" [placeholder]="extraLabel | localize" (keyDown)="handleKeyPressed($event)"
14283
- ></co-input-text>
14284
14317
 
14285
14318
  `
14286
14319
  },] }
14287
14320
  ];
14288
14321
  RoleEmailSelectorComponent.ctorParameters = () => [
14289
14322
  { type: IconCacheService },
14290
- { type: SharedService }
14323
+ { type: SharedService },
14324
+ { type: Renderer2 }
14291
14325
  ];
14292
14326
  RoleEmailSelectorComponent.propDecorators = {
14293
14327
  recipientLabel: [{ type: Input }],
14328
+ fieldLabel: [{ type: Input }],
14294
14329
  extraLabel: [{ type: Input }],
14295
14330
  model: [{ type: Input }],
14296
14331
  key: [{ type: Input }],
14297
14332
  workflowCategoryType: [{ type: Input }],
14298
14333
  modelChange: [{ type: Output }],
14299
- showClass: [{ type: HostBinding, args: ["class.co-role-email-selector",] }]
14334
+ showClass: [{ type: HostBinding, args: ["class.co-role-email-selector",] }],
14335
+ chipsWrapper: [{ type: ViewChild, args: ['chipsWrapper',] }],
14336
+ inputText: [{ type: ViewChild, args: ['inputText',] }]
14300
14337
  };
14301
14338
 
14302
14339
  class RoleEmailSelectorModule {
@@ -14328,7 +14365,7 @@ class EmailSelectorComponent {
14328
14365
  this.sharedService = sharedService;
14329
14366
  this.icons = Icon;
14330
14367
  this.showBCC = false;
14331
- this.buttonIcon = this.iconService.getIcon(this.icons.PlusSimple);
14368
+ this.buttonIcon = this.iconService.getIcon(this.icons.SquarePlusRegular);
14332
14369
  this.emailAddressesChange = new EventEmitter();
14333
14370
  this.bccEmailAddressesChange = new EventEmitter();
14334
14371
  this._emailAddresses = [];
@@ -14390,10 +14427,6 @@ class EmailSelectorComponent {
14390
14427
  handleBccEmailAddressesChanged() {
14391
14428
  this.bccEmailAddressesChange.emit(this.bccEmailAddresses);
14392
14429
  }
14393
- clear() {
14394
- this.email.clear();
14395
- this.bccEmail.clear();
14396
- }
14397
14430
  }
14398
14431
  EmailSelectorComponent.decorators = [
14399
14432
  { type: Component, args: [{
@@ -14401,13 +14434,25 @@ EmailSelectorComponent.decorators = [
14401
14434
  template: `
14402
14435
 
14403
14436
  <div class="recipients-line">
14404
- <co-role-email-selector #email [(model)]="emailAddresses" [key]="key" [workflowCategoryType]="workflowCategoryType"
14405
- (modelChange)="handleEmailAddressesChanged()"></co-role-email-selector>
14406
- <label class="BCC-label"[textContent]="'BCC'"></label>
14407
- <co-button [iconData]="buttonIcon" (click)="toggleBCC()"></co-button>
14437
+ <co-role-email-selector [(model)]="emailAddresses" [key]="key" [workflowCategoryType]="workflowCategoryType"
14438
+ [fieldLabel]="'Aan'" (modelChange)="handleEmailAddressesChanged()"></co-role-email-selector>
14439
+ <div class="recipients-bcc" *ngIf="!showBCC">
14440
+ <label class="BCC-label"[textContent]="'BCC'"></label>
14441
+ <co-button [iconData]="buttonIcon" (click)="toggleBCC()"></co-button>
14442
+ </div>
14443
+ <div class="recipients-add" *ngIf="showBCC">
14444
+ <label class="add-label"[textContent]="'Aan'"></label>
14445
+ <!--co-button [iconData]="buttonIcon" (click)="toggleBCC()"></co-button-->
14446
+ </div>
14447
+ </div>
14448
+ <div class="recipients-line" *ngIf="showBCC">
14449
+ <co-role-email-selector [(model)]="bccEmailAddresses" [key]="key" [workflowCategoryType]="workflowCategoryType"
14450
+ [fieldLabel]="'BCC'" (modelChange)="handleBccEmailAddressesChanged()"></co-role-email-selector>
14451
+ <div class="recipients-bcc">
14452
+ <label class="bcc-label"[textContent]="'BCC'"></label>
14453
+ <co-button [iconData]="buttonIcon" (click)="toggleBCC()"></co-button>
14454
+ </div>
14408
14455
  </div>
14409
- <co-role-email-selector #bccEmail *ngIf="showBCC" [(model)]="bccEmailAddresses" [key]="key" [workflowCategoryType]="workflowCategoryType"
14410
- (modelChange)="handleBccEmailAddressesChanged()"></co-role-email-selector>
14411
14456
 
14412
14457
  `
14413
14458
  },] }
@@ -14417,8 +14462,6 @@ EmailSelectorComponent.ctorParameters = () => [
14417
14462
  { type: SharedService }
14418
14463
  ];
14419
14464
  EmailSelectorComponent.propDecorators = {
14420
- email: [{ type: ViewChild, args: [RoleEmailSelectorComponent,] }],
14421
- bccEmail: [{ type: ViewChild, args: [RoleEmailSelectorComponent,] }],
14422
14465
  key: [{ type: Input }],
14423
14466
  workflowCategoryType: [{ type: Input }],
14424
14467
  emailAddresses: [{ type: Input }],
@@ -15714,7 +15757,7 @@ class TaskCreatorComponent {
15714
15757
  }
15715
15758
  startEmailing(template) {
15716
15759
  return __awaiter(this, void 0, void 0, function* () {
15717
- const emailsSent = yield this.sharedService.emailViaTemplate(template, this.createEmailAddressString(this.emailAddresses), this.createEmailAddressString(this.bccEmailAddresses), this.senderAddress, this.createEmailSubject(), "", this.createAttachmentsArray(), this.createEmailParams());
15760
+ const emailsSent = yield this.sharedService.emailViaTemplate(template, this.createEmailAddressString(this.emailAddresses), this.createEmailAddressString(this.bccEmailAddresses), this.senderAddress, this.createEmailSubject(), "", [], this.createEmailParams());
15718
15761
  if (emailsSent) {
15719
15762
  let history = new ActivityEmailHistory();
15720
15763
  history.emailAddresses = this.createEmailAddressString(this.emailAddresses);
@@ -15757,18 +15800,18 @@ class TaskCreatorComponent {
15757
15800
  createAttachmentsArray() {
15758
15801
  let attachments = [];
15759
15802
  if (this.documents.length === 0) {
15760
- return attachments;
15803
+ return;
15761
15804
  }
15762
15805
  else {
15763
15806
  this.documents.forEach(d => {
15764
- let attachment = new CoEmailAttachment();
15807
+ /*let attachment: CoEmailAttachment = new CoEmailAttachment();
15765
15808
  attachment.filename = d.fileName;
15766
15809
  if (d.fileName.split(".").length > 1) {
15767
- const str = d.fileName.split(".");
15768
- attachment.extension = str[str.length - 1];
15810
+ const str: string[] = d.fileName.split(".");
15811
+ attachment.extension = str[str.length - 1];
15769
15812
  }
15770
- attachment.body = FileUtils.ConvertStringToArrayBuffer(d.documentBody);
15771
- attachments.push(attachment);
15813
+ const textEncoder = new TextEncoder();
15814
+ attachment.body = textEncoder.encode("Your string here");*/
15772
15815
  });
15773
15816
  return attachments;
15774
15817
  }
@@ -15793,7 +15836,6 @@ class TaskCreatorComponent {
15793
15836
  this.emailAddresses = [];
15794
15837
  this.bccEmailAddresses = [];
15795
15838
  this.emailRequest = null;
15796
- this.documents = [];
15797
15839
  this.createdWork = undefined;
15798
15840
  this.createdRemark = undefined;
15799
15841
  this.createdTask = undefined;
@@ -15803,32 +15845,41 @@ TaskCreatorComponent.decorators = [
15803
15845
  { type: Component, args: [{
15804
15846
  selector: "co-task-creator",
15805
15847
  template: `
15806
- <div class="top-rows">
15807
- <co-email-selector [(emailAddresses)]="emailAddresses" [(bccEmailAddresses)]="bccEmailAddresses"
15808
- [key]="remarkAndWorkKey" [workflowCategoryType]="workflowCategoryType"></co-email-selector>
15809
- <co-form #createForm class="input-fields">
15810
- <co-list-of-icons [collection]="optionCollection" (itemSelected)="itemSelected($event)"></co-list-of-icons>
15811
- <co-input-text *ngIf="chosenActivityType === optionCollection[0]" [required]="chosenActivityType === optionCollection[0]"
15812
- [placeholder]="'REMARK' | localize" [(model)]="remarkText"
15813
- [rightIconData]="iconService.getIcon(icons.PaperPlaneTopSolid)"
15814
- (rightIconClick)="createRemarkClicked()"></co-input-text>
15815
- <co-input-text *ngIf="chosenActivityType === optionCollection[1]" [required]="chosenActivityType === optionCollection[1]"
15816
- [placeholder]="'DESCRIPTION' | localize" [(model)]="workDescription"
15817
- [rightIconData]="iconService.getIcon(icons.PaperPlaneTopSolid)"
15818
- (rightIconClick)="createWorkClicked()"></co-input-text>
15819
- <div class="task-input-fields" *ngIf="chosenActivityType === optionCollection[2]">
15820
- <co-input-text [(model)]="taskName" [placeholder]="'NAME' | localize" [required]="chosenActivityType === optionCollection[2]"
15821
- [rightIconData]="iconService.getIcon(icons.PaperPlaneTopSolid)"
15822
- (rightIconClick)="createTaskClicked()"></co-input-text>
15823
- <co-input-text [(model)]="taskDescription" [placeholder]="'DESCRIPTION' | localize" [required]="chosenActivityType === optionCollection[2]"></co-input-text>
15848
+ <div class="task-creator-wrapper">
15849
+ <div class="top-rows">
15850
+ <co-email-selector [(emailAddresses)]="emailAddresses" [(bccEmailAddresses)]="bccEmailAddresses"
15851
+ [key]="remarkAndWorkKey" [workflowCategoryType]="workflowCategoryType"></co-email-selector>
15852
+ <co-form #createForm class="creator-remarks input-fields">
15853
+ <co-list-of-icons [collection]="optionCollection" (itemSelected)="itemSelected($event)"></co-list-of-icons>
15854
+ <co-input-textarea *ngIf="chosenActivityType === optionCollection[0]" [required]="chosenActivityType === optionCollection[0]"
15855
+ [placeholder]="'REMARK' | localize" [(model)]="remarkText"
15856
+ class="large-remark"></co-input-textarea>
15857
+ <co-input-textarea *ngIf="chosenActivityType === optionCollection[1]" [required]="chosenActivityType === optionCollection[1]"
15858
+ [placeholder]="'DESCRIPTION' | localize" [(model)]="workDescription"
15859
+ class="large-remark"></co-input-textarea>
15860
+ <div class="task-input-fields" *ngIf="chosenActivityType === optionCollection[2]">
15861
+ <co-input-text [(model)]="taskName" [placeholder]="'NAME' | localize"
15862
+ [required]="chosenActivityType === optionCollection[2]"></co-input-text>
15863
+ <co-input-textarea [(model)]="taskDescription" [placeholder]="'DESCRIPTION' | localize"
15864
+ class="large-remark"
15865
+ [required]="chosenActivityType === optionCollection[2]"></co-input-textarea>
15866
+ </div>
15867
+ </co-form>
15868
+ </div>
15869
+ <div class="extras-buttons">
15870
+ <co-button [iconData]="iconService.getIcon(icons.PaperclipRegular)" (click)="openAttachmentDialog()"
15871
+ [label]="documents.length === 0 ? '' : documents.length.toString()" ></co-button>
15872
+ <co-button *ngIf="chosenActivityType === optionCollection[0]"
15873
+ [iconData]="iconService.getIcon(icons.PaperPlaneTopSolid)"
15874
+ (click)="createRemarkClicked()"></co-button>
15875
+ <co-button *ngIf="chosenActivityType === optionCollection[1]"
15876
+ [iconData]="iconService.getIcon(icons.PaperPlaneTopSolid)"
15877
+ (click)="createWorkClicked()"></co-button>
15878
+ <co-button *ngIf="chosenActivityType === optionCollection[2]"
15879
+ [iconData]="iconService.getIcon(icons.PaperPlaneTopSolid)"
15880
+ (click)="createTaskClicked()"></co-button>
15824
15881
  </div>
15825
- </co-form>
15826
- </div>
15827
- <div class="extras-buttons">
15828
- <co-button [iconData]="iconService.getIcon(icons.PaperclipRegular)" (click)="openAttachmentDialog()"
15829
- [label]="documents.length === 0 ? '' : documents.length.toString()" ></co-button>
15830
15882
  </div>
15831
-
15832
15883
  <co-dialog *ngIf="showFilesDialog" (closeClick)="attachmentDialogCancelled()"
15833
15884
  [headerTemplate]="attachmentHeaderTemplate"
15834
15885
  [footerTemplate]="attachmentFooterTemplate">
@@ -15895,7 +15946,8 @@ TaskCreatorModule.decorators = [
15895
15946
  FormModule,
15896
15947
  IconModule,
15897
15948
  RoleEmailSelectorModule,
15898
- EmailSelectorModule
15949
+ EmailSelectorModule,
15950
+ InputTextareaModule
15899
15951
  ],
15900
15952
  declarations: [
15901
15953
  TaskCreatorComponent