@posiwise/smart-crm 0.0.19 → 0.0.21

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 (279) hide show
  1. package/.eslintrc.json +22 -0
  2. package/ng-package.json +15 -0
  3. package/package.json +10 -23
  4. package/project.json +72 -0
  5. package/{index.d.ts → src/index.ts} +3 -0
  6. package/src/lib/private/components/smart-crm-accounts/smart-crm-account-details/smart-crm-account-details.component.html +200 -0
  7. package/src/lib/private/components/smart-crm-accounts/smart-crm-account-details/smart-crm-account-details.component.spec.ts +185 -0
  8. package/src/lib/private/components/smart-crm-accounts/smart-crm-account-details/smart-crm-account-details.component.ts +238 -0
  9. package/src/lib/private/components/smart-crm-accounts/smart-crm-account-files/smart-crm-account-files.component.html +200 -0
  10. package/src/lib/private/components/smart-crm-accounts/smart-crm-account-files/smart-crm-account-files.component.spec.ts +109 -0
  11. package/src/lib/private/components/smart-crm-accounts/smart-crm-account-files/smart-crm-account-files.component.ts +249 -0
  12. package/src/lib/private/components/smart-crm-accounts/smart-crm-account-info/smart-crm-account-info.component.html +785 -0
  13. package/src/lib/private/components/smart-crm-accounts/smart-crm-account-info/smart-crm-account-info.component.scss +123 -0
  14. package/src/lib/private/components/smart-crm-accounts/smart-crm-account-info/smart-crm-account-info.component.spec.ts +388 -0
  15. package/src/lib/private/components/smart-crm-accounts/smart-crm-account-info/smart-crm-account-info.component.ts +792 -0
  16. package/src/lib/private/components/smart-crm-accounts/smart-crm-accounts.component.html +292 -0
  17. package/src/lib/private/components/smart-crm-accounts/smart-crm-accounts.component.scss +63 -0
  18. package/src/lib/private/components/smart-crm-accounts/smart-crm-accounts.component.spec.ts +145 -0
  19. package/src/lib/private/components/smart-crm-accounts/smart-crm-accounts.component.ts +417 -0
  20. package/src/lib/private/components/smart-crm-competition/smart-crm-competition/smart-crm-competition.component.html +1 -0
  21. package/src/lib/private/components/smart-crm-competition/smart-crm-competition/smart-crm-competition.component.spec.ts +17 -0
  22. package/src/lib/private/components/smart-crm-competition/smart-crm-competition/smart-crm-competition.component.ts +7 -0
  23. package/src/lib/private/components/smart-crm-configuration/smart-crm-actions/smart-crm-actions-details/smart-crm-actions-details.component.html +75 -0
  24. package/src/lib/private/components/smart-crm-configuration/smart-crm-actions/smart-crm-actions-details/smart-crm-actions-details.component.scss +3 -0
  25. package/src/lib/private/components/smart-crm-configuration/smart-crm-actions/smart-crm-actions-details/smart-crm-actions-details.component.spec.ts +123 -0
  26. package/src/lib/private/components/smart-crm-configuration/smart-crm-actions/smart-crm-actions-details/smart-crm-actions-details.component.ts +117 -0
  27. package/src/lib/private/components/smart-crm-configuration/smart-crm-actions/smart-crm-actions.component.html +125 -0
  28. package/src/lib/private/components/smart-crm-configuration/smart-crm-actions/smart-crm-actions.component.scss +5 -0
  29. package/src/lib/private/components/smart-crm-configuration/smart-crm-actions/smart-crm-actions.component.spec.ts +136 -0
  30. package/src/lib/private/components/smart-crm-configuration/smart-crm-actions/smart-crm-actions.component.ts +143 -0
  31. package/src/lib/private/components/smart-crm-configuration/smart-crm-configuration.component.html +60 -0
  32. package/src/lib/private/components/smart-crm-configuration/smart-crm-configuration.component.scss +1 -0
  33. package/src/lib/private/components/smart-crm-configuration/smart-crm-configuration.component.spec.ts +55 -0
  34. package/src/lib/private/components/smart-crm-configuration/smart-crm-configuration.component.ts +29 -0
  35. package/src/lib/private/components/smart-crm-configuration/smart-crm-opportunity-categories/smart-crm-opportunity-categories-details/smart-crm-opportunity-categories-details.component.html +95 -0
  36. package/src/lib/private/components/smart-crm-configuration/smart-crm-opportunity-categories/smart-crm-opportunity-categories-details/smart-crm-opportunity-categories-details.component.spec.ts +105 -0
  37. package/src/lib/private/components/smart-crm-configuration/smart-crm-opportunity-categories/smart-crm-opportunity-categories-details/smart-crm-opportunity-categories-details.component.ts +95 -0
  38. package/src/lib/private/components/smart-crm-configuration/smart-crm-opportunity-categories/smart-crm-opportunity-categories.component.html +125 -0
  39. package/src/lib/private/components/smart-crm-configuration/smart-crm-opportunity-categories/smart-crm-opportunity-categories.component.scss +3 -0
  40. package/src/lib/private/components/smart-crm-configuration/smart-crm-opportunity-categories/smart-crm-opportunity-categories.component.spec.ts +132 -0
  41. package/src/lib/private/components/smart-crm-configuration/smart-crm-opportunity-categories/smart-crm-opportunity-categories.component.ts +145 -0
  42. package/src/lib/private/components/smart-crm-configuration/smart-crm-source/smart-crm-source-details/smart-crm-source-details.component.html +61 -0
  43. package/src/lib/private/components/smart-crm-configuration/smart-crm-source/smart-crm-source-details/smart-crm-source-details.component.spec.ts +81 -0
  44. package/src/lib/private/components/smart-crm-configuration/smart-crm-source/smart-crm-source-details/smart-crm-source-details.component.ts +88 -0
  45. package/src/lib/private/components/smart-crm-configuration/smart-crm-source/smart-crm-source.component.html +96 -0
  46. package/src/lib/private/components/smart-crm-configuration/smart-crm-source/smart-crm-source.component.scss +3 -0
  47. package/src/lib/private/components/smart-crm-configuration/smart-crm-source/smart-crm-source.component.spec.ts +109 -0
  48. package/src/lib/private/components/smart-crm-configuration/smart-crm-source/smart-crm-source.component.ts +129 -0
  49. package/src/lib/private/components/smart-crm-configuration/smart-crm-stages/smart-crm-stage-details/smart-crm-stage-details.component.html +108 -0
  50. package/src/lib/private/components/smart-crm-configuration/smart-crm-stages/smart-crm-stage-details/smart-crm-stage-details.component.scss +3 -0
  51. package/src/lib/private/components/smart-crm-configuration/smart-crm-stages/smart-crm-stage-details/smart-crm-stage-details.component.spec.ts +124 -0
  52. package/src/lib/private/components/smart-crm-configuration/smart-crm-stages/smart-crm-stage-details/smart-crm-stage-details.component.ts +111 -0
  53. package/src/lib/private/components/smart-crm-configuration/smart-crm-stages/smart-crm-stages.component.html +134 -0
  54. package/src/lib/private/components/smart-crm-configuration/smart-crm-stages/smart-crm-stages.component.scss +3 -0
  55. package/src/lib/private/components/smart-crm-configuration/smart-crm-stages/smart-crm-stages.component.spec.ts +103 -0
  56. package/src/lib/private/components/smart-crm-configuration/smart-crm-stages/smart-crm-stages.component.ts +166 -0
  57. package/src/lib/private/components/smart-crm-configuration/smart-crm-widgets/smart-crm-widgets-details/smart-crm-widgets-details.component.html +90 -0
  58. package/src/lib/private/components/smart-crm-configuration/smart-crm-widgets/smart-crm-widgets-details/smart-crm-widgets-details.component.scss +6 -0
  59. package/src/lib/private/components/smart-crm-configuration/smart-crm-widgets/smart-crm-widgets-details/smart-crm-widgets-details.component.spec.ts +105 -0
  60. package/src/lib/private/components/smart-crm-configuration/smart-crm-widgets/smart-crm-widgets-details/smart-crm-widgets-details.component.ts +118 -0
  61. package/src/lib/private/components/smart-crm-configuration/smart-crm-widgets/smart-crm-widgets.component.html +115 -0
  62. package/src/lib/private/components/smart-crm-configuration/smart-crm-widgets/smart-crm-widgets.component.spec.ts +93 -0
  63. package/src/lib/private/components/smart-crm-configuration/smart-crm-widgets/smart-crm-widgets.component.ts +150 -0
  64. package/src/lib/private/components/smart-crm-contacts/smart-crm-contact-details/smart-crm-contact-details.component.html +205 -0
  65. package/src/lib/private/components/smart-crm-contacts/smart-crm-contact-details/smart-crm-contact-details.component.spec.ts +149 -0
  66. package/src/lib/private/components/smart-crm-contacts/smart-crm-contact-details/smart-crm-contact-details.component.ts +184 -0
  67. package/src/lib/private/components/smart-crm-contacts/smart-crm-contact-info/smart-crm-contact-info.component.html +530 -0
  68. package/src/lib/private/components/smart-crm-contacts/smart-crm-contact-info/smart-crm-contact-info.component.scss +112 -0
  69. package/src/lib/private/components/smart-crm-contacts/smart-crm-contact-info/smart-crm-contact-info.component.spec.ts +284 -0
  70. package/src/lib/private/components/smart-crm-contacts/smart-crm-contact-info/smart-crm-contact-info.component.ts +553 -0
  71. package/src/lib/private/components/smart-crm-contacts/smart-crm-contacts.component.html +281 -0
  72. package/src/lib/private/components/smart-crm-contacts/smart-crm-contacts.component.scss +19 -0
  73. package/src/lib/private/components/smart-crm-contacts/smart-crm-contacts.component.spec.ts +138 -0
  74. package/src/lib/private/components/smart-crm-contacts/smart-crm-contacts.component.ts +344 -0
  75. package/src/lib/private/components/smart-crm-customer/smart-crm-customer-success/smart-crm-customer-success.component.html +1 -0
  76. package/src/lib/private/components/smart-crm-customer/smart-crm-customer-success/smart-crm-customer-success.component.spec.ts +18 -0
  77. package/src/lib/private/components/smart-crm-customer/smart-crm-customer-success/smart-crm-customer-success.component.ts +7 -0
  78. package/src/lib/private/components/smart-crm-insight/smart-crm-insight.component.html +27 -0
  79. package/src/lib/private/components/smart-crm-insight/smart-crm-insight.component.spec.ts +19 -0
  80. package/src/lib/private/components/smart-crm-insight/smart-crm-insight.component.ts +7 -0
  81. package/src/lib/private/components/smart-crm-insight/smart-crm-overview/smart-crm-overview.component.html +46 -0
  82. package/src/lib/private/components/smart-crm-insight/smart-crm-overview/smart-crm-overview.component.spec.ts +50 -0
  83. package/src/lib/private/components/smart-crm-insight/smart-crm-overview/smart-crm-overview.component.ts +60 -0
  84. package/src/lib/private/components/smart-crm-leads/smart-crm-leads-details/smart-crm-leads-details.component.html +142 -0
  85. package/src/lib/private/components/smart-crm-leads/smart-crm-leads-details/smart-crm-leads-details.component.spec.ts +125 -0
  86. package/src/lib/private/components/smart-crm-leads/smart-crm-leads-details/smart-crm-leads-details.component.ts +192 -0
  87. package/src/lib/private/components/smart-crm-leads/smart-crm-leads.component.html +176 -0
  88. package/src/lib/private/components/smart-crm-leads/smart-crm-leads.component.spec.ts +98 -0
  89. package/src/lib/private/components/smart-crm-leads/smart-crm-leads.component.ts +160 -0
  90. package/src/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-contacts/smart-crm-marketing-contacts.component.html +90 -0
  91. package/src/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-contacts/smart-crm-marketing-contacts.component.spec.ts +68 -0
  92. package/src/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-contacts/smart-crm-marketing-contacts.component.ts +98 -0
  93. package/src/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-details/smart-crm-marketing-details.component.html +322 -0
  94. package/src/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-details/smart-crm-marketing-details.component.spec.ts +156 -0
  95. package/src/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-details/smart-crm-marketing-details.component.ts +296 -0
  96. package/src/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-list.component.html +215 -0
  97. package/src/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-list.component.scss +3 -0
  98. package/src/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-list.component.spec.ts +117 -0
  99. package/src/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-list.component.ts +187 -0
  100. package/src/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-view-details/smart-crm-marketing-view-details.component.html +33 -0
  101. package/src/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-view-details/smart-crm-marketing-view-details.component.scss +82 -0
  102. package/src/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-view-details/smart-crm-marketing-view-details.component.spec.ts +63 -0
  103. package/src/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-view-details/smart-crm-marketing-view-details.component.ts +62 -0
  104. package/src/lib/private/components/smart-crm-marketing/smart-crm-marketing.component.html +27 -0
  105. package/src/lib/private/components/smart-crm-marketing/smart-crm-marketing.component.scss +3 -0
  106. package/src/lib/private/components/smart-crm-marketing/smart-crm-marketing.component.spec.ts +28 -0
  107. package/src/lib/private/components/smart-crm-marketing/smart-crm-marketing.component.ts +13 -0
  108. package/src/lib/private/components/smart-crm-opportunities/smart-crm-board/smart-crm-board.component.html +75 -0
  109. package/src/lib/private/components/smart-crm-opportunities/smart-crm-board/smart-crm-board.component.scss +223 -0
  110. package/src/lib/private/components/smart-crm-opportunities/smart-crm-board/smart-crm-board.component.spec.ts +184 -0
  111. package/src/lib/private/components/smart-crm-opportunities/smart-crm-board/smart-crm-board.component.ts +268 -0
  112. package/src/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-details/smart-crm-opportunities-details.component.html +273 -0
  113. package/src/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-details/smart-crm-opportunities-details.component.scss +11 -0
  114. package/src/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-details/smart-crm-opportunities-details.component.spec.ts +196 -0
  115. package/src/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-details/smart-crm-opportunities-details.component.ts +391 -0
  116. package/src/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-info/smart-crm-opportunities-info.component.html +489 -0
  117. package/src/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-info/smart-crm-opportunities-info.component.scss +104 -0
  118. package/src/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-info/smart-crm-opportunities-info.component.spec.ts +319 -0
  119. package/src/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-info/smart-crm-opportunities-info.component.ts +568 -0
  120. package/src/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-list.component.html +204 -0
  121. package/src/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-list.component.scss +11 -0
  122. package/src/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-list.component.spec.ts +123 -0
  123. package/src/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-list.component.ts +260 -0
  124. package/src/lib/private/components/smart-crm-opportunities/smart-crm-opportunities.component.html +25 -0
  125. package/src/lib/private/components/smart-crm-opportunities/smart-crm-opportunities.component.scss +7 -0
  126. package/src/lib/private/components/smart-crm-opportunities/smart-crm-opportunities.component.spec.ts +38 -0
  127. package/src/lib/private/components/smart-crm-opportunities/smart-crm-opportunities.component.ts +8 -0
  128. package/src/lib/private/components/smart-crm-summary/smart-crm-summary-actions/smart-crm-summary-actions.component.html +213 -0
  129. package/src/lib/private/components/smart-crm-summary/smart-crm-summary-actions/smart-crm-summary-actions.component.scss +73 -0
  130. package/src/lib/private/components/smart-crm-summary/smart-crm-summary-actions/smart-crm-summary-actions.component.spec.ts +147 -0
  131. package/src/lib/private/components/smart-crm-summary/smart-crm-summary-actions/smart-crm-summary-actions.component.ts +292 -0
  132. package/src/lib/private/components/smart-crm-summary/smart-crm-summary-others/smart-crm-summary-others.component.html +309 -0
  133. package/src/lib/private/components/smart-crm-summary/smart-crm-summary-others/smart-crm-summary-others.component.spec.ts +75 -0
  134. package/src/lib/private/components/smart-crm-summary/smart-crm-summary-others/smart-crm-summary-others.component.ts +161 -0
  135. package/src/lib/private/components/smart-crm-summary/smart-crm-summary.component.html +25 -0
  136. package/src/lib/private/components/smart-crm-summary/smart-crm-summary.component.scss +68 -0
  137. package/src/lib/private/components/smart-crm-summary/smart-crm-summary.component.spec.ts +32 -0
  138. package/src/lib/private/components/smart-crm-summary/smart-crm-summary.component.ts +8 -0
  139. package/src/lib/private/components/smart-crm-tabs/smart-crm-tabs.component.spec.ts +43 -0
  140. package/src/lib/private/components/smart-crm-tabs/smart-crm-tabs.component.ts +97 -0
  141. package/src/lib/private/smart-crm-private.module.ts +188 -0
  142. package/src/lib/private/smart-crm-private.routing.module.ts +303 -0
  143. package/src/lib/public/components/smart-crm-newsletter-confirmation/smart-crm-newsletter-confirmation.component.html +27 -0
  144. package/src/lib/public/components/smart-crm-newsletter-confirmation/smart-crm-newsletter-confirmation.component.scss +4 -0
  145. package/src/lib/public/components/smart-crm-newsletter-confirmation/smart-crm-newsletter-confirmation.component.spec.ts +40 -0
  146. package/src/lib/public/components/smart-crm-newsletter-confirmation/smart-crm-newsletter-confirmation.component.ts +57 -0
  147. package/src/lib/public/components/smart-crm-newsletter-unsubscribe/smart-crm-newsletter-unsubscribe.component.html +36 -0
  148. package/src/lib/public/components/smart-crm-newsletter-unsubscribe/smart-crm-newsletter-unsubscribe.component.spec.ts +42 -0
  149. package/src/lib/public/components/smart-crm-newsletter-unsubscribe/smart-crm-newsletter-unsubscribe.component.ts +57 -0
  150. package/src/lib/public/components/smart-crm-signup/smart-crm-signup.component.html +133 -0
  151. package/src/lib/public/components/smart-crm-signup/smart-crm-signup.component.scss +1 -0
  152. package/src/lib/public/components/smart-crm-signup/smart-crm-signup.component.spec.ts +37 -0
  153. package/src/lib/public/components/smart-crm-signup/smart-crm-signup.component.ts +41 -0
  154. package/src/lib/public/smart-crm-public.module.ts +30 -0
  155. package/src/lib/public/smart-crm-public.routing.module.ts +36 -0
  156. package/{lib/shared/interface/crm-account.interface.d.ts → src/lib/shared/interface/crm-account.interface.ts} +10 -3
  157. package/{lib/shared/interface/crm-action.interface.d.ts → src/lib/shared/interface/crm-action.interface.ts} +1 -0
  158. package/{lib/shared/interface/crm-contact.interface.d.ts → src/lib/shared/interface/crm-contact.interface.ts} +2 -0
  159. package/{lib/shared/interface/crm-lead.interface.d.ts → src/lib/shared/interface/crm-lead.interface.ts} +1 -0
  160. package/{lib/shared/interface/crm-newsletter.interface.d.ts → src/lib/shared/interface/crm-newsletter.interface.ts} +3 -1
  161. package/{lib/shared/interface/crm-opportunity.interface.d.ts → src/lib/shared/interface/crm-opportunity.interface.ts} +5 -0
  162. package/{lib/shared/interface/crm-source.interface.d.ts → src/lib/shared/interface/crm-source.interface.ts} +1 -0
  163. package/{lib/shared/interface/crm-stages.interface.d.ts → src/lib/shared/interface/crm-stages.interface.ts} +1 -0
  164. package/{lib/shared/interface/crm-widget.interface.d.ts → src/lib/shared/interface/crm-widget.interface.ts} +1 -0
  165. package/{lib/shared/interface/smart-crm-module.interface.d.ts → src/lib/shared/interface/smart-crm-module.interface.ts} +42 -1
  166. package/src/lib/shared/models/smart-crm.model.ts +199 -0
  167. package/src/lib/shared/routers/routers.ts +23 -0
  168. package/tsconfig.json +29 -0
  169. package/tsconfig.lib.json +25 -0
  170. package/tsconfig.lib.prod.json +9 -0
  171. package/tsconfig.spec.json +11 -0
  172. package/esm2022/index.mjs +0 -48
  173. package/esm2022/lib/private/components/smart-crm-accounts/smart-crm-account-details/smart-crm-account-details.component.mjs +0 -194
  174. package/esm2022/lib/private/components/smart-crm-accounts/smart-crm-account-files/smart-crm-account-files.component.mjs +0 -192
  175. package/esm2022/lib/private/components/smart-crm-accounts/smart-crm-account-info/smart-crm-account-info.component.mjs +0 -589
  176. package/esm2022/lib/private/components/smart-crm-accounts/smart-crm-accounts.component.mjs +0 -348
  177. package/esm2022/lib/private/components/smart-crm-competition/smart-crm-competition/smart-crm-competition.component.mjs +0 -12
  178. package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-actions/smart-crm-actions-details/smart-crm-actions-details.component.mjs +0 -97
  179. package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-actions/smart-crm-actions.component.mjs +0 -118
  180. package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-configuration.component.mjs +0 -35
  181. package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-opportunity-categories/smart-crm-opportunity-categories-details/smart-crm-opportunity-categories-details.component.mjs +0 -87
  182. package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-opportunity-categories/smart-crm-opportunity-categories.component.mjs +0 -119
  183. package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-source/smart-crm-source-details/smart-crm-source-details.component.mjs +0 -79
  184. package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-source/smart-crm-source.component.mjs +0 -107
  185. package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-stages/smart-crm-stage-details/smart-crm-stage-details.component.mjs +0 -96
  186. package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-stages/smart-crm-stages.component.mjs +0 -139
  187. package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-widgets/smart-crm-widgets-details/smart-crm-widgets-details.component.mjs +0 -98
  188. package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-widgets/smart-crm-widgets.component.mjs +0 -125
  189. package/esm2022/lib/private/components/smart-crm-contacts/smart-crm-contact-details/smart-crm-contact-details.component.mjs +0 -159
  190. package/esm2022/lib/private/components/smart-crm-contacts/smart-crm-contact-info/smart-crm-contact-info.component.mjs +0 -465
  191. package/esm2022/lib/private/components/smart-crm-contacts/smart-crm-contacts.component.mjs +0 -281
  192. package/esm2022/lib/private/components/smart-crm-customer/smart-crm-customer-success/smart-crm-customer-success.component.mjs +0 -12
  193. package/esm2022/lib/private/components/smart-crm-insight/smart-crm-insight.component.mjs +0 -14
  194. package/esm2022/lib/private/components/smart-crm-insight/smart-crm-overview/smart-crm-overview.component.mjs +0 -55
  195. package/esm2022/lib/private/components/smart-crm-leads/smart-crm-leads-details/smart-crm-leads-details.component.mjs +0 -173
  196. package/esm2022/lib/private/components/smart-crm-leads/smart-crm-leads.component.mjs +0 -136
  197. package/esm2022/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-contacts/smart-crm-marketing-contacts.component.mjs +0 -79
  198. package/esm2022/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-details/smart-crm-marketing-details.component.mjs +0 -266
  199. package/esm2022/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-list.component.mjs +0 -151
  200. package/esm2022/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-view-details/smart-crm-marketing-view-details.component.mjs +0 -51
  201. package/esm2022/lib/private/components/smart-crm-marketing/smart-crm-marketing.component.mjs +0 -18
  202. package/esm2022/lib/private/components/smart-crm-opportunities/smart-crm-board/smart-crm-board.component.mjs +0 -230
  203. package/esm2022/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-details/smart-crm-opportunities-details.component.mjs +0 -317
  204. package/esm2022/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-info/smart-crm-opportunities-info.component.mjs +0 -477
  205. package/esm2022/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-list.component.mjs +0 -218
  206. package/esm2022/lib/private/components/smart-crm-opportunities/smart-crm-opportunities.component.mjs +0 -14
  207. package/esm2022/lib/private/components/smart-crm-summary/smart-crm-summary-actions/smart-crm-summary-actions.component.mjs +0 -255
  208. package/esm2022/lib/private/components/smart-crm-summary/smart-crm-summary-others/smart-crm-summary-others.component.mjs +0 -148
  209. package/esm2022/lib/private/components/smart-crm-summary/smart-crm-summary.component.mjs +0 -16
  210. package/esm2022/lib/private/components/smart-crm-tabs/smart-crm-tabs.component.mjs +0 -92
  211. package/esm2022/lib/private/smart-crm-private.module.mjs +0 -327
  212. package/esm2022/lib/private/smart-crm-private.routing.module.mjs +0 -310
  213. package/esm2022/lib/public/components/smart-crm-newsletter-confirmation/smart-crm-newsletter-confirmation.component.mjs +0 -56
  214. package/esm2022/lib/public/components/smart-crm-newsletter-unsubscribe/smart-crm-newsletter-unsubscribe.component.mjs +0 -57
  215. package/esm2022/lib/public/components/smart-crm-signup/smart-crm-signup.component.mjs +0 -35
  216. package/esm2022/lib/public/smart-crm-public.module.mjs +0 -46
  217. package/esm2022/lib/public/smart-crm-public.routing.module.mjs +0 -44
  218. package/esm2022/lib/shared/interface/crm-account.interface.mjs +0 -2
  219. package/esm2022/lib/shared/interface/crm-action.interface.mjs +0 -2
  220. package/esm2022/lib/shared/interface/crm-contact.interface.mjs +0 -2
  221. package/esm2022/lib/shared/interface/crm-lead.interface.mjs +0 -2
  222. package/esm2022/lib/shared/interface/crm-newsletter.interface.mjs +0 -2
  223. package/esm2022/lib/shared/interface/crm-opportunity.interface.mjs +0 -2
  224. package/esm2022/lib/shared/interface/crm-source.interface.mjs +0 -2
  225. package/esm2022/lib/shared/interface/crm-stages.interface.mjs +0 -2
  226. package/esm2022/lib/shared/interface/crm-widget.interface.mjs +0 -2
  227. package/esm2022/lib/shared/interface/smart-crm-module.interface.mjs +0 -2
  228. package/esm2022/lib/shared/models/smart-crm.model.mjs +0 -186
  229. package/esm2022/lib/shared/routers/routers.mjs +0 -23
  230. package/esm2022/posiwise-smart-crm.mjs +0 -5
  231. package/fesm2022/posiwise-smart-crm.mjs +0 -6449
  232. package/fesm2022/posiwise-smart-crm.mjs.map +0 -1
  233. package/lib/private/components/smart-crm-accounts/smart-crm-account-details/smart-crm-account-details.component.d.ts +0 -61
  234. package/lib/private/components/smart-crm-accounts/smart-crm-account-files/smart-crm-account-files.component.d.ts +0 -72
  235. package/lib/private/components/smart-crm-accounts/smart-crm-account-info/smart-crm-account-info.component.d.ts +0 -172
  236. package/lib/private/components/smart-crm-accounts/smart-crm-accounts.component.d.ts +0 -105
  237. package/lib/private/components/smart-crm-competition/smart-crm-competition/smart-crm-competition.component.d.ts +0 -5
  238. package/lib/private/components/smart-crm-configuration/smart-crm-actions/smart-crm-actions-details/smart-crm-actions-details.component.d.ts +0 -37
  239. package/lib/private/components/smart-crm-configuration/smart-crm-actions/smart-crm-actions.component.d.ts +0 -55
  240. package/lib/private/components/smart-crm-configuration/smart-crm-configuration.component.d.ts +0 -11
  241. package/lib/private/components/smart-crm-configuration/smart-crm-opportunity-categories/smart-crm-opportunity-categories-details/smart-crm-opportunity-categories-details.component.d.ts +0 -31
  242. package/lib/private/components/smart-crm-configuration/smart-crm-opportunity-categories/smart-crm-opportunity-categories.component.d.ts +0 -56
  243. package/lib/private/components/smart-crm-configuration/smart-crm-source/smart-crm-source-details/smart-crm-source-details.component.d.ts +0 -28
  244. package/lib/private/components/smart-crm-configuration/smart-crm-source/smart-crm-source.component.d.ts +0 -52
  245. package/lib/private/components/smart-crm-configuration/smart-crm-stages/smart-crm-stage-details/smart-crm-stage-details.component.d.ts +0 -34
  246. package/lib/private/components/smart-crm-configuration/smart-crm-stages/smart-crm-stages.component.d.ts +0 -58
  247. package/lib/private/components/smart-crm-configuration/smart-crm-widgets/smart-crm-widgets-details/smart-crm-widgets-details.component.d.ts +0 -36
  248. package/lib/private/components/smart-crm-configuration/smart-crm-widgets/smart-crm-widgets.component.d.ts +0 -58
  249. package/lib/private/components/smart-crm-contacts/smart-crm-contact-details/smart-crm-contact-details.component.d.ts +0 -48
  250. package/lib/private/components/smart-crm-contacts/smart-crm-contact-info/smart-crm-contact-info.component.d.ts +0 -121
  251. package/lib/private/components/smart-crm-contacts/smart-crm-contacts.component.d.ts +0 -89
  252. package/lib/private/components/smart-crm-customer/smart-crm-customer-success/smart-crm-customer-success.component.d.ts +0 -5
  253. package/lib/private/components/smart-crm-insight/smart-crm-insight.component.d.ts +0 -5
  254. package/lib/private/components/smart-crm-insight/smart-crm-overview/smart-crm-overview.component.d.ts +0 -20
  255. package/lib/private/components/smart-crm-leads/smart-crm-leads-details/smart-crm-leads-details.component.d.ts +0 -45
  256. package/lib/private/components/smart-crm-leads/smart-crm-leads.component.d.ts +0 -58
  257. package/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-contacts/smart-crm-marketing-contacts.component.d.ts +0 -49
  258. package/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-details/smart-crm-marketing-details.component.d.ts +0 -63
  259. package/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-list.component.d.ts +0 -62
  260. package/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-view-details/smart-crm-marketing-view-details.component.d.ts +0 -21
  261. package/lib/private/components/smart-crm-marketing/smart-crm-marketing.component.d.ts +0 -8
  262. package/lib/private/components/smart-crm-opportunities/smart-crm-board/smart-crm-board.component.d.ts +0 -63
  263. package/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-details/smart-crm-opportunities-details.component.d.ts +0 -66
  264. package/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-info/smart-crm-opportunities-info.component.d.ts +0 -122
  265. package/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-list.component.d.ts +0 -77
  266. package/lib/private/components/smart-crm-opportunities/smart-crm-opportunities.component.d.ts +0 -5
  267. package/lib/private/components/smart-crm-summary/smart-crm-summary-actions/smart-crm-summary-actions.component.d.ts +0 -72
  268. package/lib/private/components/smart-crm-summary/smart-crm-summary-others/smart-crm-summary-others.component.d.ts +0 -40
  269. package/lib/private/components/smart-crm-summary/smart-crm-summary.component.d.ts +0 -5
  270. package/lib/private/components/smart-crm-tabs/smart-crm-tabs.component.d.ts +0 -10
  271. package/lib/private/smart-crm-private.module.d.ts +0 -62
  272. package/lib/private/smart-crm-private.routing.module.d.ts +0 -7
  273. package/lib/public/components/smart-crm-newsletter-confirmation/smart-crm-newsletter-confirmation.component.d.ts +0 -18
  274. package/lib/public/components/smart-crm-newsletter-unsubscribe/smart-crm-newsletter-unsubscribe.component.d.ts +0 -17
  275. package/lib/public/components/smart-crm-signup/smart-crm-signup.component.d.ts +0 -15
  276. package/lib/public/smart-crm-public.module.d.ts +0 -14
  277. package/lib/public/smart-crm-public.routing.module.d.ts +0 -7
  278. package/lib/shared/models/smart-crm.model.d.ts +0 -16
  279. package/lib/shared/routers/routers.d.ts +0 -21
@@ -0,0 +1,489 @@
1
+ <div class="row">
2
+ <div class="col-12 mb-0">
3
+ <div class="me-auto mb-0">
4
+ <h2 class="mb-0">
5
+ <a href="javascript:void(0)"
6
+ (click)="back()"
7
+ class="previous"><i class="fa fa-arrow-alt-circle-left" aria-hidden="true"></i></a>
8
+ Opportunity Info
9
+ </h2>
10
+ </div>
11
+ </div>
12
+ <div class="col-12 col-md-4">
13
+ <div class="user-info p-3 card pb-0 h-auto">
14
+ <div class="mb-2 text-center">
15
+ <a class="profile-image">
16
+ <img width="100"
17
+ height="100"
18
+ class="rounded-circle img-border width-100"
19
+ alt="user"
20
+ src="assets/img/icons/male.png" />
21
+ </a>
22
+ </div>
23
+ <div class="mb-4 d-flex justify-content-between align-items-center">
24
+ <h4 class="d-inline-block">
25
+ About <span *ngIf="data?.id">{{ data.title }}</span>
26
+ </h4>
27
+ <a href="javascript:void(0);"
28
+ *ngIf="isFormEdit"
29
+ class="btn btn-sm btn-outline-primary float-end"
30
+ (click)="
31
+ isFormEdit = !isFormEdit; getAccountsBySubscription(); getAllContacts()
32
+ ">Edit</a>
33
+ </div>
34
+ <form [formGroup]="aboutControls"
35
+ [class.isDisabled]="isFormEdit">
36
+ <div class="mb-3">
37
+ <label class="label mb-0">{{
38
+ 'Crm.OpportunitiesMessage.Title' | transloco
39
+ }}</label>
40
+ <input type="text"
41
+ class="form-control rounded-0 ps-1 user-value"
42
+ formControlName="title"
43
+ [ngClass]="{ 'is-invalid': submitted && f['title'].errors }" />
44
+ </div>
45
+ <div class="mb-3 ui-fluid skills-modal"
46
+ *ngIf="data?.crm_contact_id">
47
+ <label class="label mb-2">{{
48
+ 'Crm.OpportunitiesMessage.Contact' | transloco
49
+ }}</label>
50
+ <a [routerLink]="[
51
+ '/' + subscription?.slug + routers.contactInfo,
52
+ data.crm_contact_id
53
+ ]"
54
+ class="form-control d-block pb-2 ps-1 user-value"
55
+ *ngIf="isFormEdit && data?.crm_contact_id">{{ data?.crm_contact?.first_name }} {{ data?.crm_contact?.last_name }}</a>
56
+ <p-autoComplete *ngIf="!isFormEdit || !data?.crm_contact_id"
57
+ [suggestions]="filteredContacts"
58
+ formControlName="crm_contact_id"
59
+ dataKey="id"
60
+ field="displayName"
61
+ [dropdown]="true"
62
+ (completeMethod)="onContactSearch($event)"
63
+ styleClass="w-100"
64
+ placeholder="Search contacts"
65
+ [multiple]="false">
66
+ </p-autoComplete>
67
+ </div>
68
+ <div class="mb-3 ui-fluid skills-modal">
69
+ <label class="label mb-2">{{
70
+ 'Crm.OpportunitiesMessage.Account' | transloco
71
+ }}</label>
72
+ <a [routerLink]="[
73
+ '/' + subscription?.slug + routers.accountInfo,
74
+ data.crm_account_id
75
+ ]"
76
+ class="form-control d-block pb-2 ps-1 user-value"
77
+ *ngIf="isFormEdit && data?.crm_account_id">{{ data?.crm_accounty?.name }}</a>
78
+ <p-autoComplete *ngIf="!isFormEdit || !data?.crm_account_id"
79
+ [suggestions]="filteredAccounts"
80
+ formControlName="crm_account_id"
81
+ dataKey="id"
82
+ field="name"
83
+ [dropdown]="true"
84
+ (completeMethod)="accountSearch($event)"
85
+ styleClass="w-100"
86
+ placeholder="Search accounts"
87
+ [multiple]="false">
88
+ </p-autoComplete>
89
+ </div>
90
+ <div class="mb-3">
91
+ <label class="label mb-0">{{
92
+ 'Crm.OpportunitiesMessage.OneTimeAmount' | transloco
93
+ }}</label>
94
+ <a class="form-control d-block pb-2 ps-1 user-value"
95
+ *ngIf="isFormEdit && data?.one_time_amount">{{ data?.one_time_amount | currency }}</a>
96
+ <input *ngIf="!isFormEdit || !data?.one_time_amount"
97
+ type="number"
98
+ numbersOnly
99
+ class="form-control rounded-0 ps-1 user-value"
100
+ formControlName="one_time_amount"
101
+ id="one_time_amount"
102
+ [ngClass]="{ 'is-invalid': submitted && f['one_time_amount'].errors }" />
103
+ </div>
104
+ <div class="mb-3">
105
+ <label class="label mb-0">{{
106
+ 'Crm.OpportunitiesMessage.MonthlyAmount' | transloco
107
+ }}</label>
108
+ <a class="form-control d-block pb-2 ps-1 user-value"
109
+ *ngIf="isFormEdit && data?.monthly_amount">{{ data?.monthly_amount | currency }}</a>
110
+ <input *ngIf="!isFormEdit || !data?.monthly_amount"
111
+ type="number"
112
+ numbersOnly
113
+ class="form-control rounded-0 ps-1 user-value"
114
+ formControlName="monthly_amount"
115
+ id="monthly_amount"
116
+ [ngClass]="{ 'is-invalid': submitted && f['monthly_amount'].errors }" />
117
+ </div>
118
+ <div *ngIf="!isFormEdit"
119
+ class="text-end form-action-buttons">
120
+ <input type="button"
121
+ class="btn btn-outline-primary"
122
+ (click)="isFormEdit = !isFormEdit; getOpportunityDetails()"
123
+ value="Cancel" />
124
+ <input type="button"
125
+ class="btn btn-primary ms-3"
126
+ value="Submit"
127
+ (click)="updateOpportunities()" />
128
+ </div>
129
+ </form>
130
+ </div>
131
+ </div>
132
+ <div class="col-12 col-md-8">
133
+ <ul ngbNav
134
+ #nav="ngbNav"
135
+ class="nav-tabs">
136
+ <li [ngbNavItem]="1">
137
+ <a ngbNavLink>Notes</a>
138
+ <ng-template ngbNavContent>
139
+ <form [formGroup]="actionControls"
140
+ (ngSubmit)="onCommentSave()">
141
+ <textarea class="form-control"
142
+ formControlName="comment"
143
+ rows="6"></textarea>
144
+ <p class="text-danger"
145
+ *ngIf="
146
+ actionControls.get('comment').touched &&
147
+ actionControls.get('comment').invalid
148
+ ">
149
+ Note Required
150
+ </p>
151
+ <div *ngIf="actions?.length"
152
+ class="d-block clear-both pt-3">
153
+ <ng-container *ngFor="let action of actions; index as i">
154
+ <button *ngIf="action.visible"
155
+ type="button"
156
+ [class.active]=""
157
+ class="btn btn-sm me-2 btn-outline-primary mb-2 action-btn"
158
+ (click)="showDatePicker($event, action.id); d.toggle()">
159
+ {{ action.name }}
160
+ </button>
161
+ </ng-container>
162
+ <div class="text-danger"
163
+ *ngIf="submitAction && actionFormControls.crm_action_id.invalid">
164
+ Please select an action
165
+ </div>
166
+ <div class="row mt-3">
167
+ <div class="col-12 col-sm-4">
168
+ <div class="input-group">
169
+ <input class="form-control"
170
+ placeholder="dd-mm-yyyy"
171
+ formControlName="when"
172
+ ngbDatepicker
173
+ #d="ngbDatepicker"
174
+ (click)="d.toggle()" />
175
+ </div>
176
+ </div>
177
+ <div class="col-sm-4 pe-0 completed-toggle">
178
+ <div class="mb-3">
179
+ <ui-switch checkedLabel="completed"
180
+ uncheckedLabel="open"
181
+ formControlName="completed"
182
+ name="completed">
183
+ </ui-switch>
184
+ </div>
185
+ </div>
186
+ </div>
187
+ </div>
188
+ <div class="float-end">
189
+ <button type="submit"
190
+ [buttonBusy]="buttonBusy"
191
+ [disabled]="buttonDisable"
192
+ class="btn btn-primary mt-2 mb-2 float-end"
193
+ >Submit Note</button>
194
+ <a class="btn btn-outline-primary mt-2 mb-2 me-0 me-sm-2 float-end"
195
+ (click)="openModal(content)">{{ 'Upload file' | transloco }}</a>
196
+ </div>
197
+ <div *ngIf="buttonDisable"
198
+ class="no-actions pt-4">
199
+ <pw-no-data [withImage]="true" [message]="
200
+ 'Crm.OpportunitiesMessage.NoActionsInOpportunitiesInfoMessage'
201
+ | transloco
202
+ ">
203
+ </pw-no-data>
204
+ </div>
205
+ </form>
206
+ <div class="w-100 text-center mt-3"
207
+ *ngIf="!isLoaded">
208
+ <p-progressSpinner strokeWidth="2"> </p-progressSpinner>
209
+ </div>
210
+ <div *ngIf="!opportunitiesComments?.length && isLoaded"
211
+ class="no-actions pt-3">
212
+ <pw-no-data [withImage]="true" [message]="'Crm.OpportunitiesMessage.NoActionsMessage' | transloco">
213
+ </pw-no-data>
214
+ </div>
215
+ <div *ngIf="opportunitiesComments?.length"
216
+ id="timeline"
217
+ class="pt-3 clear-both timeline-center timeline-wrapper">
218
+ <ul class="timeline">
219
+ <li class="timeline-line"></li>
220
+ </ul>
221
+ <ul class="timeline">
222
+ <li class="timeline-line"></li>
223
+ <li class="timeline-item"
224
+ [ngClass]="{ 'mt-5': odd }"
225
+ *ngFor="
226
+ let item of opportunitiesComments;
227
+ index as i;
228
+ let odd = odd;
229
+ let even = even
230
+ ">
231
+ <div class="timeline-badge">
232
+ <span class="bg-red bg-lighten-1">
233
+ <span class="timeline-year">
234
+ <span class="d-block date-year">{{
235
+ item.when | date: 'medium' | slice: 0:3
236
+ }}</span>
237
+ <span>{{ item.year }}</span>
238
+ </span>
239
+ </span>
240
+ </div>
241
+ <div class="timeline-card shadow card pb-0 rounded border-grey border-lighten-2 position-static">
242
+ <div class="card-header py-4">
243
+ <div class="mb-0 clearfix">
244
+ <textarea type="text"
245
+ name="comment"
246
+ class="comment-field form-control p-0"
247
+ [(ngModel)]="item.comment">{{ item.comment }}</textarea>
248
+ <p class="float-start mb-0"
249
+ *ngIf="!showFullComment || item.id !== commentId">
250
+ {{ item.comment | slice: 0:170
251
+ }}<a *ngIf="item.comment.length > 170"
252
+ class="text-secondary"
253
+ (click)="
254
+ showFullComment = true; commentId = item.id
255
+ ">...show more</a>
256
+ </p>
257
+ <p class="float-start mb-0"
258
+ *ngIf="showFullComment && item.id === commentId">
259
+ {{ item.comment }}
260
+ <a *ngIf="
261
+ item.comment.length > 170 && showFullComment
262
+ "
263
+ (click)="showFullComment = false"
264
+ class="text-secondary">...show less</a>
265
+ </p>
266
+ <button class="btn btn-md edit-btn float-end py-0"
267
+ (click)="showEditControls($event)"
268
+ *ngIf="userId === item.owner_id || hasAccess">
269
+ <i
270
+ class="fa fa-edit edit-icon"
271
+ aria-hidden="true"
272
+ ></i>
273
+ </button>
274
+ </div>
275
+ <div class="card-subtitle text-muted my-0 clearfix">
276
+ <div class="float-start">
277
+ <span *ngIf="!updating || actionId !== item.id"
278
+ class="font-small-3">
279
+ {{ item.when }}</span>
280
+ <input *ngIf="updating && actionId === item.id"
281
+ placeholder="dd-mm-yyyy"
282
+ value="{{ item.when }}"
283
+ ngbDatepicker
284
+ #d="ngbDatepicker"
285
+ (focus)="d.toggle()"
286
+ (dateSelect)="onDateSelect($event, item)" />
287
+ </div>
288
+ <button type=" button"
289
+ class="btn btn-sm float-end when-btn py-0"
290
+ *ngIf="userId === item.owner_id || hasAccess"
291
+ (click)="showDatePickerUpdate(item.id)">
292
+ <i
293
+ class="fa fa-edit edit-icon"
294
+ aria-hidden="true"
295
+ ></i>
296
+ </button>
297
+ </div>
298
+ <p [class.text-danger]="!item.color"
299
+ *ngIf="!item.cancelled && !item.completed"
300
+ class="mb-0">
301
+ {{ item.due }}
302
+ </p>
303
+ <p>
304
+ {{
305
+ item?.owner?.first_name +
306
+ ' ' +
307
+ item?.owner?.last_name
308
+ }}
309
+ </p>
310
+ <span class="badge bg-primary">{{
311
+ item?.crm_action?.name
312
+ }}</span>
313
+ <span *ngIf="
314
+ !item.completed &&
315
+ (userId === item.owner_id || hasAccess)
316
+ "
317
+ class="badge bg-success ms-2">Open</span>
318
+ <a *ngIf="
319
+ !item.completed &&
320
+ (userId === item.owner_id || hasAccess)
321
+ "
322
+ ngbTooltip="Set as completed"
323
+ class="me-3 ms-3"
324
+ href="javascript:void(0);"
325
+ (click)="
326
+ setAsCompletedOrUncompleted(
327
+ item.id,
328
+ item,
329
+ item.completed
330
+ )
331
+ ">
332
+ <i class="fa fa-tasks completed" aria-hidden="true"></i>
333
+ </a>
334
+ <a *ngIf="
335
+ !item.cancelled &&
336
+ !item.completed &&
337
+ (userId === item.owner_id || hasAccess)
338
+ "
339
+ ngbTooltip="Set as cancelled"
340
+ href="javascript:void(0);"
341
+ (click)="setAsCancelled(item.id, item)">
342
+ <i
343
+ class="fa fa-times delete-icon"
344
+ aria-hidden="true"
345
+ ></i>
346
+ </a>
347
+ <a *ngIf="
348
+ item.completed &&
349
+ (userId === item.owner_id || hasAccess)
350
+ "
351
+ ngbTooltip="Set as UnCompleted"
352
+ href="javascript:void(0);"
353
+ (click)="
354
+ setAsCompletedOrUncompleted(
355
+ item.id,
356
+ item,
357
+ item.completed
358
+ )
359
+ "
360
+ class="ms-2">
361
+ <i class="far fa-window-close" aria-hidden="true"></i>
362
+ </a>
363
+ <div class="control-btns mt-3 text-end">
364
+ <button type="button"
365
+ class="btn btn-sm btn-outline-default me-2"
366
+ (click)="showEditControls(undefined)">
367
+ Cancel
368
+ </button>
369
+ <button class="btn btn-sm btn-primary"
370
+ type="button"
371
+ (click)="updateComment(item)">
372
+ Submit
373
+ </button>
374
+ </div>
375
+ </div>
376
+ </div>
377
+ </li>
378
+ </ul>
379
+ </div>
380
+ </ng-template>
381
+ </li>
382
+ <li [ngbNavItem]="2">
383
+ <a ngbNavLink>Versioning</a>
384
+ <ng-template ngbNavContent>
385
+ <div *ngFor="let version of opportunitiesVersioning">
386
+ <p>
387
+ <strong>Event: </strong>{{ version.event }} | <strong>Author: </strong><a *ngIf="version?.author"
388
+ [routerLink]="['/members', version?.author?.slug]">{{ version?.author | ifNameNullShowEmail }}</a>
389
+ | <strong>Created at: </strong>{{ version.created_at }}<br />
390
+ <strong>Object: </strong>{{ version.object | json }}
391
+ </p>
392
+ <hr />
393
+ </div>
394
+ <div *ngIf="opportunitiesVersioning?.length === 0">
395
+ <pw-no-data [withImage]="true" [message]="'Crm.OpportunitiesMessage.NoVersionsMessage' | transloco">
396
+ </pw-no-data>
397
+ </div>
398
+ </ng-template>
399
+ </li>
400
+ <li [ngbNavItem]="3">
401
+ <a ngbNavLink>Files</a>
402
+ <ng-template ngbNavContent>
403
+ <pw-smart-crm-company-files [contactId]="contactId"
404
+ [accountId]="accountId"
405
+ [opportunityId]="opportunitiesId">
406
+ </pw-smart-crm-company-files>
407
+ </ng-template>
408
+ </li>
409
+ </ul>
410
+
411
+ <div [ngbNavOutlet]="nav"></div>
412
+ </div>
413
+ </div>
414
+
415
+ <ng-template #content
416
+ let-modal>
417
+ <div class="modal-header">
418
+ <h3 class="modal-title mb-0 p-0">{{ 'Upload File' | transloco }}</h3>
419
+ <button type="button"
420
+ class="btn-close float-end"
421
+ aria-label="Close"
422
+ (click)="modal.dismiss()">
423
+
424
+ </button>
425
+ </div>
426
+ <div class="modal-body">
427
+ <small> {{ 'User.Profile.PictureMessage' | transloco }}</small>
428
+ <div class="row p-2">
429
+ <div class="col-12">
430
+ <div class="upload-box">
431
+ <div class="upload-box-content">
432
+ <div class="drop-container"
433
+ ngFileDrop
434
+ [options]="options"
435
+ (uploadOutput)="onUploadOutput($event)"
436
+ [uploadInput]="uploadInput">
437
+ <p>
438
+ Drag files here or
439
+ <label class="upload-button">
440
+ <input type="file"
441
+ ngFileSelect
442
+ [options]="options"
443
+ (uploadOutput)="onUploadOutput($event)"
444
+ [uploadInput]="uploadInput"
445
+ multiple />
446
+ browse
447
+ </label>
448
+ to upload.
449
+ </p>
450
+ </div>
451
+ <div class="upload-item"
452
+ *ngFor="let f of files; let i = index">
453
+ <div class="upload-item-content">
454
+ <div class="filename">
455
+ <div class="filename-left">
456
+ <i class="ionicon ion-ios-copy" aria-hidden="true"></i>
457
+ <span>{{ f.name }}</span>
458
+ </div>
459
+ </div>
460
+ <div class="progress-content">
461
+ <div class="progress">
462
+ <span class="bar"
463
+ [style.width]="f?.progress?.data?.percentage + '%'"
464
+ [class.is-done]="f['uploaded']"></span>
465
+ </div>
466
+ </div>
467
+ <div class="progress-text-content">
468
+ <span class="progress-text"
469
+ [class.is-done]="f['uploaded']">
470
+ <span *ngIf="!f['uploaded']">{{ f.progress?.data?.percentage - 1 }}%
471
+ </span>
472
+ <span *ngIf="f['uploaded']">100 %</span>
473
+ <span *ngIf="!f['uploaded']">Uploading...</span>
474
+ <span *ngIf="f['uploaded']">Done</span>
475
+ </span>
476
+ <span class="speed-and-eta-text"
477
+ *ngIf="f.progress?.data?.percentage !== 0 && !f['uploaded']">
478
+ <span>{{ f.progress?.data?.speedHuman }} </span>
479
+ <span>ETA {{ f.progress?.data?.etaHuman }}</span>
480
+ </span>
481
+ </div>
482
+ </div>
483
+ </div>
484
+ </div>
485
+ </div>
486
+ </div>
487
+ </div>
488
+ </div>
489
+ </ng-template>
@@ -0,0 +1,104 @@
1
+ @import 'variables/branding-variables';
2
+
3
+ .user-info {
4
+ .label {
5
+ color: $form-control-color;
6
+ font-size: 14px;
7
+ text-transform: capitalize;
8
+ }
9
+
10
+ .user-value {
11
+ border: 0;
12
+ border-bottom: 1px solid $form-control-color;
13
+
14
+ &:focus {
15
+ box-shadow: none;
16
+ }
17
+
18
+ &.is-invalid {
19
+ border-color: rgb(255 88 107);
20
+ }
21
+ }
22
+ }
23
+
24
+ .control-btns {
25
+ display: none;
26
+ }
27
+
28
+ .comment-field {
29
+ border: 0;
30
+ border-bottom: 1px solid rgb(242 242 242);
31
+ color: $heading-color-main;
32
+ display: none;
33
+ font-size: 15px;
34
+ min-height: 100px;
35
+ padding: 2px 5px !important;
36
+
37
+ &:focus {
38
+ border: 1px solid rgb(23 105 225) !important;
39
+ border-bottom: 0;
40
+ box-shadow: none;
41
+ }
42
+ }
43
+
44
+ p {
45
+ max-width: 85%;
46
+ white-space: pre-wrap;
47
+ }
48
+
49
+ .show-controls {
50
+ .comment-field,
51
+ .control-btns {
52
+ display: block;
53
+ }
54
+
55
+ p,
56
+ .edit-btn {
57
+ display: none;
58
+ }
59
+ }
60
+
61
+ select {
62
+ appearance: none;
63
+ }
64
+
65
+ textarea {
66
+ resize: none;
67
+ }
68
+
69
+ .clear-both {
70
+ clear: both;
71
+ }
72
+
73
+ .isDisabled {
74
+ input[type='text'],
75
+ select {
76
+ pointer-events: none;
77
+ }
78
+ }
79
+
80
+ .timeline-card.card {
81
+ min-height: auto;
82
+ }
83
+
84
+ @media (max-width: 768px) {
85
+ .completed-toggle {
86
+ padding-top: 10px;
87
+ }
88
+ }
89
+
90
+ .when-btn {
91
+ &:focus {
92
+ border: 0;
93
+ box-shadow: none;
94
+ }
95
+ }
96
+
97
+ .no-actions {
98
+ clear: both;
99
+ }
100
+
101
+ .form-action-buttons {
102
+ margin-bottom: 14px;
103
+ margin-top: 15px;
104
+ }