@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.
- package/.eslintrc.json +22 -0
- package/ng-package.json +15 -0
- package/package.json +10 -23
- package/project.json +72 -0
- package/{index.d.ts → src/index.ts} +3 -0
- package/src/lib/private/components/smart-crm-accounts/smart-crm-account-details/smart-crm-account-details.component.html +200 -0
- package/src/lib/private/components/smart-crm-accounts/smart-crm-account-details/smart-crm-account-details.component.spec.ts +185 -0
- package/src/lib/private/components/smart-crm-accounts/smart-crm-account-details/smart-crm-account-details.component.ts +238 -0
- package/src/lib/private/components/smart-crm-accounts/smart-crm-account-files/smart-crm-account-files.component.html +200 -0
- package/src/lib/private/components/smart-crm-accounts/smart-crm-account-files/smart-crm-account-files.component.spec.ts +109 -0
- package/src/lib/private/components/smart-crm-accounts/smart-crm-account-files/smart-crm-account-files.component.ts +249 -0
- package/src/lib/private/components/smart-crm-accounts/smart-crm-account-info/smart-crm-account-info.component.html +785 -0
- package/src/lib/private/components/smart-crm-accounts/smart-crm-account-info/smart-crm-account-info.component.scss +123 -0
- package/src/lib/private/components/smart-crm-accounts/smart-crm-account-info/smart-crm-account-info.component.spec.ts +388 -0
- package/src/lib/private/components/smart-crm-accounts/smart-crm-account-info/smart-crm-account-info.component.ts +792 -0
- package/src/lib/private/components/smart-crm-accounts/smart-crm-accounts.component.html +292 -0
- package/src/lib/private/components/smart-crm-accounts/smart-crm-accounts.component.scss +63 -0
- package/src/lib/private/components/smart-crm-accounts/smart-crm-accounts.component.spec.ts +145 -0
- package/src/lib/private/components/smart-crm-accounts/smart-crm-accounts.component.ts +417 -0
- package/src/lib/private/components/smart-crm-competition/smart-crm-competition/smart-crm-competition.component.html +1 -0
- package/src/lib/private/components/smart-crm-competition/smart-crm-competition/smart-crm-competition.component.spec.ts +17 -0
- package/src/lib/private/components/smart-crm-competition/smart-crm-competition/smart-crm-competition.component.ts +7 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-actions/smart-crm-actions-details/smart-crm-actions-details.component.html +75 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-actions/smart-crm-actions-details/smart-crm-actions-details.component.scss +3 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-actions/smart-crm-actions-details/smart-crm-actions-details.component.spec.ts +123 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-actions/smart-crm-actions-details/smart-crm-actions-details.component.ts +117 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-actions/smart-crm-actions.component.html +125 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-actions/smart-crm-actions.component.scss +5 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-actions/smart-crm-actions.component.spec.ts +136 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-actions/smart-crm-actions.component.ts +143 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-configuration.component.html +60 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-configuration.component.scss +1 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-configuration.component.spec.ts +55 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-configuration.component.ts +29 -0
- 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
- 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
- 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
- package/src/lib/private/components/smart-crm-configuration/smart-crm-opportunity-categories/smart-crm-opportunity-categories.component.html +125 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-opportunity-categories/smart-crm-opportunity-categories.component.scss +3 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-opportunity-categories/smart-crm-opportunity-categories.component.spec.ts +132 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-opportunity-categories/smart-crm-opportunity-categories.component.ts +145 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-source/smart-crm-source-details/smart-crm-source-details.component.html +61 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-source/smart-crm-source-details/smart-crm-source-details.component.spec.ts +81 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-source/smart-crm-source-details/smart-crm-source-details.component.ts +88 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-source/smart-crm-source.component.html +96 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-source/smart-crm-source.component.scss +3 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-source/smart-crm-source.component.spec.ts +109 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-source/smart-crm-source.component.ts +129 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-stages/smart-crm-stage-details/smart-crm-stage-details.component.html +108 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-stages/smart-crm-stage-details/smart-crm-stage-details.component.scss +3 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-stages/smart-crm-stage-details/smart-crm-stage-details.component.spec.ts +124 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-stages/smart-crm-stage-details/smart-crm-stage-details.component.ts +111 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-stages/smart-crm-stages.component.html +134 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-stages/smart-crm-stages.component.scss +3 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-stages/smart-crm-stages.component.spec.ts +103 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-stages/smart-crm-stages.component.ts +166 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-widgets/smart-crm-widgets-details/smart-crm-widgets-details.component.html +90 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-widgets/smart-crm-widgets-details/smart-crm-widgets-details.component.scss +6 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-widgets/smart-crm-widgets-details/smart-crm-widgets-details.component.spec.ts +105 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-widgets/smart-crm-widgets-details/smart-crm-widgets-details.component.ts +118 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-widgets/smart-crm-widgets.component.html +115 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-widgets/smart-crm-widgets.component.spec.ts +93 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-widgets/smart-crm-widgets.component.ts +150 -0
- package/src/lib/private/components/smart-crm-contacts/smart-crm-contact-details/smart-crm-contact-details.component.html +205 -0
- package/src/lib/private/components/smart-crm-contacts/smart-crm-contact-details/smart-crm-contact-details.component.spec.ts +149 -0
- package/src/lib/private/components/smart-crm-contacts/smart-crm-contact-details/smart-crm-contact-details.component.ts +184 -0
- package/src/lib/private/components/smart-crm-contacts/smart-crm-contact-info/smart-crm-contact-info.component.html +530 -0
- package/src/lib/private/components/smart-crm-contacts/smart-crm-contact-info/smart-crm-contact-info.component.scss +112 -0
- package/src/lib/private/components/smart-crm-contacts/smart-crm-contact-info/smart-crm-contact-info.component.spec.ts +284 -0
- package/src/lib/private/components/smart-crm-contacts/smart-crm-contact-info/smart-crm-contact-info.component.ts +553 -0
- package/src/lib/private/components/smart-crm-contacts/smart-crm-contacts.component.html +281 -0
- package/src/lib/private/components/smart-crm-contacts/smart-crm-contacts.component.scss +19 -0
- package/src/lib/private/components/smart-crm-contacts/smart-crm-contacts.component.spec.ts +138 -0
- package/src/lib/private/components/smart-crm-contacts/smart-crm-contacts.component.ts +344 -0
- package/src/lib/private/components/smart-crm-customer/smart-crm-customer-success/smart-crm-customer-success.component.html +1 -0
- package/src/lib/private/components/smart-crm-customer/smart-crm-customer-success/smart-crm-customer-success.component.spec.ts +18 -0
- package/src/lib/private/components/smart-crm-customer/smart-crm-customer-success/smart-crm-customer-success.component.ts +7 -0
- package/src/lib/private/components/smart-crm-insight/smart-crm-insight.component.html +27 -0
- package/src/lib/private/components/smart-crm-insight/smart-crm-insight.component.spec.ts +19 -0
- package/src/lib/private/components/smart-crm-insight/smart-crm-insight.component.ts +7 -0
- package/src/lib/private/components/smart-crm-insight/smart-crm-overview/smart-crm-overview.component.html +46 -0
- package/src/lib/private/components/smart-crm-insight/smart-crm-overview/smart-crm-overview.component.spec.ts +50 -0
- package/src/lib/private/components/smart-crm-insight/smart-crm-overview/smart-crm-overview.component.ts +60 -0
- package/src/lib/private/components/smart-crm-leads/smart-crm-leads-details/smart-crm-leads-details.component.html +142 -0
- package/src/lib/private/components/smart-crm-leads/smart-crm-leads-details/smart-crm-leads-details.component.spec.ts +125 -0
- package/src/lib/private/components/smart-crm-leads/smart-crm-leads-details/smart-crm-leads-details.component.ts +192 -0
- package/src/lib/private/components/smart-crm-leads/smart-crm-leads.component.html +176 -0
- package/src/lib/private/components/smart-crm-leads/smart-crm-leads.component.spec.ts +98 -0
- package/src/lib/private/components/smart-crm-leads/smart-crm-leads.component.ts +160 -0
- package/src/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-contacts/smart-crm-marketing-contacts.component.html +90 -0
- 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
- package/src/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-contacts/smart-crm-marketing-contacts.component.ts +98 -0
- package/src/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-details/smart-crm-marketing-details.component.html +322 -0
- 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
- package/src/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-details/smart-crm-marketing-details.component.ts +296 -0
- package/src/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-list.component.html +215 -0
- package/src/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-list.component.scss +3 -0
- package/src/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-list.component.spec.ts +117 -0
- package/src/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-list.component.ts +187 -0
- 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
- 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
- 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
- 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
- package/src/lib/private/components/smart-crm-marketing/smart-crm-marketing.component.html +27 -0
- package/src/lib/private/components/smart-crm-marketing/smart-crm-marketing.component.scss +3 -0
- package/src/lib/private/components/smart-crm-marketing/smart-crm-marketing.component.spec.ts +28 -0
- package/src/lib/private/components/smart-crm-marketing/smart-crm-marketing.component.ts +13 -0
- package/src/lib/private/components/smart-crm-opportunities/smart-crm-board/smart-crm-board.component.html +75 -0
- package/src/lib/private/components/smart-crm-opportunities/smart-crm-board/smart-crm-board.component.scss +223 -0
- package/src/lib/private/components/smart-crm-opportunities/smart-crm-board/smart-crm-board.component.spec.ts +184 -0
- package/src/lib/private/components/smart-crm-opportunities/smart-crm-board/smart-crm-board.component.ts +268 -0
- package/src/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-details/smart-crm-opportunities-details.component.html +273 -0
- package/src/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-details/smart-crm-opportunities-details.component.scss +11 -0
- 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
- package/src/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-details/smart-crm-opportunities-details.component.ts +391 -0
- package/src/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-info/smart-crm-opportunities-info.component.html +489 -0
- package/src/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-info/smart-crm-opportunities-info.component.scss +104 -0
- 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
- package/src/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-info/smart-crm-opportunities-info.component.ts +568 -0
- package/src/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-list.component.html +204 -0
- package/src/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-list.component.scss +11 -0
- package/src/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-list.component.spec.ts +123 -0
- package/src/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-list.component.ts +260 -0
- package/src/lib/private/components/smart-crm-opportunities/smart-crm-opportunities.component.html +25 -0
- package/src/lib/private/components/smart-crm-opportunities/smart-crm-opportunities.component.scss +7 -0
- package/src/lib/private/components/smart-crm-opportunities/smart-crm-opportunities.component.spec.ts +38 -0
- package/src/lib/private/components/smart-crm-opportunities/smart-crm-opportunities.component.ts +8 -0
- package/src/lib/private/components/smart-crm-summary/smart-crm-summary-actions/smart-crm-summary-actions.component.html +213 -0
- package/src/lib/private/components/smart-crm-summary/smart-crm-summary-actions/smart-crm-summary-actions.component.scss +73 -0
- package/src/lib/private/components/smart-crm-summary/smart-crm-summary-actions/smart-crm-summary-actions.component.spec.ts +147 -0
- package/src/lib/private/components/smart-crm-summary/smart-crm-summary-actions/smart-crm-summary-actions.component.ts +292 -0
- package/src/lib/private/components/smart-crm-summary/smart-crm-summary-others/smart-crm-summary-others.component.html +309 -0
- package/src/lib/private/components/smart-crm-summary/smart-crm-summary-others/smart-crm-summary-others.component.spec.ts +75 -0
- package/src/lib/private/components/smart-crm-summary/smart-crm-summary-others/smart-crm-summary-others.component.ts +161 -0
- package/src/lib/private/components/smart-crm-summary/smart-crm-summary.component.html +25 -0
- package/src/lib/private/components/smart-crm-summary/smart-crm-summary.component.scss +68 -0
- package/src/lib/private/components/smart-crm-summary/smart-crm-summary.component.spec.ts +32 -0
- package/src/lib/private/components/smart-crm-summary/smart-crm-summary.component.ts +8 -0
- package/src/lib/private/components/smart-crm-tabs/smart-crm-tabs.component.spec.ts +43 -0
- package/src/lib/private/components/smart-crm-tabs/smart-crm-tabs.component.ts +97 -0
- package/src/lib/private/smart-crm-private.module.ts +188 -0
- package/src/lib/private/smart-crm-private.routing.module.ts +303 -0
- package/src/lib/public/components/smart-crm-newsletter-confirmation/smart-crm-newsletter-confirmation.component.html +27 -0
- package/src/lib/public/components/smart-crm-newsletter-confirmation/smart-crm-newsletter-confirmation.component.scss +4 -0
- package/src/lib/public/components/smart-crm-newsletter-confirmation/smart-crm-newsletter-confirmation.component.spec.ts +40 -0
- package/src/lib/public/components/smart-crm-newsletter-confirmation/smart-crm-newsletter-confirmation.component.ts +57 -0
- package/src/lib/public/components/smart-crm-newsletter-unsubscribe/smart-crm-newsletter-unsubscribe.component.html +36 -0
- package/src/lib/public/components/smart-crm-newsletter-unsubscribe/smart-crm-newsletter-unsubscribe.component.spec.ts +42 -0
- package/src/lib/public/components/smart-crm-newsletter-unsubscribe/smart-crm-newsletter-unsubscribe.component.ts +57 -0
- package/src/lib/public/components/smart-crm-signup/smart-crm-signup.component.html +133 -0
- package/src/lib/public/components/smart-crm-signup/smart-crm-signup.component.scss +1 -0
- package/src/lib/public/components/smart-crm-signup/smart-crm-signup.component.spec.ts +37 -0
- package/src/lib/public/components/smart-crm-signup/smart-crm-signup.component.ts +41 -0
- package/src/lib/public/smart-crm-public.module.ts +30 -0
- package/src/lib/public/smart-crm-public.routing.module.ts +36 -0
- package/{lib/shared/interface/crm-account.interface.d.ts → src/lib/shared/interface/crm-account.interface.ts} +10 -3
- package/{lib/shared/interface/crm-action.interface.d.ts → src/lib/shared/interface/crm-action.interface.ts} +1 -0
- package/{lib/shared/interface/crm-contact.interface.d.ts → src/lib/shared/interface/crm-contact.interface.ts} +2 -0
- package/{lib/shared/interface/crm-lead.interface.d.ts → src/lib/shared/interface/crm-lead.interface.ts} +1 -0
- package/{lib/shared/interface/crm-newsletter.interface.d.ts → src/lib/shared/interface/crm-newsletter.interface.ts} +3 -1
- package/{lib/shared/interface/crm-opportunity.interface.d.ts → src/lib/shared/interface/crm-opportunity.interface.ts} +5 -0
- package/{lib/shared/interface/crm-source.interface.d.ts → src/lib/shared/interface/crm-source.interface.ts} +1 -0
- package/{lib/shared/interface/crm-stages.interface.d.ts → src/lib/shared/interface/crm-stages.interface.ts} +1 -0
- package/{lib/shared/interface/crm-widget.interface.d.ts → src/lib/shared/interface/crm-widget.interface.ts} +1 -0
- package/{lib/shared/interface/smart-crm-module.interface.d.ts → src/lib/shared/interface/smart-crm-module.interface.ts} +42 -1
- package/src/lib/shared/models/smart-crm.model.ts +199 -0
- package/src/lib/shared/routers/routers.ts +23 -0
- package/tsconfig.json +29 -0
- package/tsconfig.lib.json +25 -0
- package/tsconfig.lib.prod.json +9 -0
- package/tsconfig.spec.json +11 -0
- package/esm2022/index.mjs +0 -48
- package/esm2022/lib/private/components/smart-crm-accounts/smart-crm-account-details/smart-crm-account-details.component.mjs +0 -194
- package/esm2022/lib/private/components/smart-crm-accounts/smart-crm-account-files/smart-crm-account-files.component.mjs +0 -192
- package/esm2022/lib/private/components/smart-crm-accounts/smart-crm-account-info/smart-crm-account-info.component.mjs +0 -589
- package/esm2022/lib/private/components/smart-crm-accounts/smart-crm-accounts.component.mjs +0 -348
- package/esm2022/lib/private/components/smart-crm-competition/smart-crm-competition/smart-crm-competition.component.mjs +0 -12
- package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-actions/smart-crm-actions-details/smart-crm-actions-details.component.mjs +0 -97
- package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-actions/smart-crm-actions.component.mjs +0 -118
- package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-configuration.component.mjs +0 -35
- 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
- package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-opportunity-categories/smart-crm-opportunity-categories.component.mjs +0 -119
- package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-source/smart-crm-source-details/smart-crm-source-details.component.mjs +0 -79
- package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-source/smart-crm-source.component.mjs +0 -107
- package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-stages/smart-crm-stage-details/smart-crm-stage-details.component.mjs +0 -96
- package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-stages/smart-crm-stages.component.mjs +0 -139
- package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-widgets/smart-crm-widgets-details/smart-crm-widgets-details.component.mjs +0 -98
- package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-widgets/smart-crm-widgets.component.mjs +0 -125
- package/esm2022/lib/private/components/smart-crm-contacts/smart-crm-contact-details/smart-crm-contact-details.component.mjs +0 -159
- package/esm2022/lib/private/components/smart-crm-contacts/smart-crm-contact-info/smart-crm-contact-info.component.mjs +0 -465
- package/esm2022/lib/private/components/smart-crm-contacts/smart-crm-contacts.component.mjs +0 -281
- package/esm2022/lib/private/components/smart-crm-customer/smart-crm-customer-success/smart-crm-customer-success.component.mjs +0 -12
- package/esm2022/lib/private/components/smart-crm-insight/smart-crm-insight.component.mjs +0 -14
- package/esm2022/lib/private/components/smart-crm-insight/smart-crm-overview/smart-crm-overview.component.mjs +0 -55
- package/esm2022/lib/private/components/smart-crm-leads/smart-crm-leads-details/smart-crm-leads-details.component.mjs +0 -173
- package/esm2022/lib/private/components/smart-crm-leads/smart-crm-leads.component.mjs +0 -136
- package/esm2022/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-contacts/smart-crm-marketing-contacts.component.mjs +0 -79
- package/esm2022/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-details/smart-crm-marketing-details.component.mjs +0 -266
- package/esm2022/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-list.component.mjs +0 -151
- 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
- package/esm2022/lib/private/components/smart-crm-marketing/smart-crm-marketing.component.mjs +0 -18
- package/esm2022/lib/private/components/smart-crm-opportunities/smart-crm-board/smart-crm-board.component.mjs +0 -230
- package/esm2022/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-details/smart-crm-opportunities-details.component.mjs +0 -317
- package/esm2022/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-info/smart-crm-opportunities-info.component.mjs +0 -477
- package/esm2022/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-list.component.mjs +0 -218
- package/esm2022/lib/private/components/smart-crm-opportunities/smart-crm-opportunities.component.mjs +0 -14
- package/esm2022/lib/private/components/smart-crm-summary/smart-crm-summary-actions/smart-crm-summary-actions.component.mjs +0 -255
- package/esm2022/lib/private/components/smart-crm-summary/smart-crm-summary-others/smart-crm-summary-others.component.mjs +0 -148
- package/esm2022/lib/private/components/smart-crm-summary/smart-crm-summary.component.mjs +0 -16
- package/esm2022/lib/private/components/smart-crm-tabs/smart-crm-tabs.component.mjs +0 -92
- package/esm2022/lib/private/smart-crm-private.module.mjs +0 -327
- package/esm2022/lib/private/smart-crm-private.routing.module.mjs +0 -310
- package/esm2022/lib/public/components/smart-crm-newsletter-confirmation/smart-crm-newsletter-confirmation.component.mjs +0 -56
- package/esm2022/lib/public/components/smart-crm-newsletter-unsubscribe/smart-crm-newsletter-unsubscribe.component.mjs +0 -57
- package/esm2022/lib/public/components/smart-crm-signup/smart-crm-signup.component.mjs +0 -35
- package/esm2022/lib/public/smart-crm-public.module.mjs +0 -46
- package/esm2022/lib/public/smart-crm-public.routing.module.mjs +0 -44
- package/esm2022/lib/shared/interface/crm-account.interface.mjs +0 -2
- package/esm2022/lib/shared/interface/crm-action.interface.mjs +0 -2
- package/esm2022/lib/shared/interface/crm-contact.interface.mjs +0 -2
- package/esm2022/lib/shared/interface/crm-lead.interface.mjs +0 -2
- package/esm2022/lib/shared/interface/crm-newsletter.interface.mjs +0 -2
- package/esm2022/lib/shared/interface/crm-opportunity.interface.mjs +0 -2
- package/esm2022/lib/shared/interface/crm-source.interface.mjs +0 -2
- package/esm2022/lib/shared/interface/crm-stages.interface.mjs +0 -2
- package/esm2022/lib/shared/interface/crm-widget.interface.mjs +0 -2
- package/esm2022/lib/shared/interface/smart-crm-module.interface.mjs +0 -2
- package/esm2022/lib/shared/models/smart-crm.model.mjs +0 -186
- package/esm2022/lib/shared/routers/routers.mjs +0 -23
- package/esm2022/posiwise-smart-crm.mjs +0 -5
- package/fesm2022/posiwise-smart-crm.mjs +0 -6449
- package/fesm2022/posiwise-smart-crm.mjs.map +0 -1
- package/lib/private/components/smart-crm-accounts/smart-crm-account-details/smart-crm-account-details.component.d.ts +0 -61
- package/lib/private/components/smart-crm-accounts/smart-crm-account-files/smart-crm-account-files.component.d.ts +0 -72
- package/lib/private/components/smart-crm-accounts/smart-crm-account-info/smart-crm-account-info.component.d.ts +0 -172
- package/lib/private/components/smart-crm-accounts/smart-crm-accounts.component.d.ts +0 -105
- package/lib/private/components/smart-crm-competition/smart-crm-competition/smart-crm-competition.component.d.ts +0 -5
- package/lib/private/components/smart-crm-configuration/smart-crm-actions/smart-crm-actions-details/smart-crm-actions-details.component.d.ts +0 -37
- package/lib/private/components/smart-crm-configuration/smart-crm-actions/smart-crm-actions.component.d.ts +0 -55
- package/lib/private/components/smart-crm-configuration/smart-crm-configuration.component.d.ts +0 -11
- 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
- package/lib/private/components/smart-crm-configuration/smart-crm-opportunity-categories/smart-crm-opportunity-categories.component.d.ts +0 -56
- package/lib/private/components/smart-crm-configuration/smart-crm-source/smart-crm-source-details/smart-crm-source-details.component.d.ts +0 -28
- package/lib/private/components/smart-crm-configuration/smart-crm-source/smart-crm-source.component.d.ts +0 -52
- package/lib/private/components/smart-crm-configuration/smart-crm-stages/smart-crm-stage-details/smart-crm-stage-details.component.d.ts +0 -34
- package/lib/private/components/smart-crm-configuration/smart-crm-stages/smart-crm-stages.component.d.ts +0 -58
- package/lib/private/components/smart-crm-configuration/smart-crm-widgets/smart-crm-widgets-details/smart-crm-widgets-details.component.d.ts +0 -36
- package/lib/private/components/smart-crm-configuration/smart-crm-widgets/smart-crm-widgets.component.d.ts +0 -58
- package/lib/private/components/smart-crm-contacts/smart-crm-contact-details/smart-crm-contact-details.component.d.ts +0 -48
- package/lib/private/components/smart-crm-contacts/smart-crm-contact-info/smart-crm-contact-info.component.d.ts +0 -121
- package/lib/private/components/smart-crm-contacts/smart-crm-contacts.component.d.ts +0 -89
- package/lib/private/components/smart-crm-customer/smart-crm-customer-success/smart-crm-customer-success.component.d.ts +0 -5
- package/lib/private/components/smart-crm-insight/smart-crm-insight.component.d.ts +0 -5
- package/lib/private/components/smart-crm-insight/smart-crm-overview/smart-crm-overview.component.d.ts +0 -20
- package/lib/private/components/smart-crm-leads/smart-crm-leads-details/smart-crm-leads-details.component.d.ts +0 -45
- package/lib/private/components/smart-crm-leads/smart-crm-leads.component.d.ts +0 -58
- package/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-contacts/smart-crm-marketing-contacts.component.d.ts +0 -49
- package/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-details/smart-crm-marketing-details.component.d.ts +0 -63
- package/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-list.component.d.ts +0 -62
- 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
- package/lib/private/components/smart-crm-marketing/smart-crm-marketing.component.d.ts +0 -8
- package/lib/private/components/smart-crm-opportunities/smart-crm-board/smart-crm-board.component.d.ts +0 -63
- package/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-details/smart-crm-opportunities-details.component.d.ts +0 -66
- package/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-info/smart-crm-opportunities-info.component.d.ts +0 -122
- package/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-list.component.d.ts +0 -77
- package/lib/private/components/smart-crm-opportunities/smart-crm-opportunities.component.d.ts +0 -5
- package/lib/private/components/smart-crm-summary/smart-crm-summary-actions/smart-crm-summary-actions.component.d.ts +0 -72
- package/lib/private/components/smart-crm-summary/smart-crm-summary-others/smart-crm-summary-others.component.d.ts +0 -40
- package/lib/private/components/smart-crm-summary/smart-crm-summary.component.d.ts +0 -5
- package/lib/private/components/smart-crm-tabs/smart-crm-tabs.component.d.ts +0 -10
- package/lib/private/smart-crm-private.module.d.ts +0 -62
- package/lib/private/smart-crm-private.routing.module.d.ts +0 -7
- package/lib/public/components/smart-crm-newsletter-confirmation/smart-crm-newsletter-confirmation.component.d.ts +0 -18
- package/lib/public/components/smart-crm-newsletter-unsubscribe/smart-crm-newsletter-unsubscribe.component.d.ts +0 -17
- package/lib/public/components/smart-crm-signup/smart-crm-signup.component.d.ts +0 -15
- package/lib/public/smart-crm-public.module.d.ts +0 -14
- package/lib/public/smart-crm-public.routing.module.d.ts +0 -7
- package/lib/shared/models/smart-crm.model.d.ts +0 -16
- package/lib/shared/routers/routers.d.ts +0 -21
|
@@ -0,0 +1,322 @@
|
|
|
1
|
+
<div class="row">
|
|
2
|
+
<div class="col-12 d-flex">
|
|
3
|
+
<a href="javascript:void(0)"
|
|
4
|
+
(click)="back()"
|
|
5
|
+
class="previous"><i class="fa fa-arrow-alt-circle-left" aria-hidden="true"></i></a>
|
|
6
|
+
<h3 class="m-subheader__title m-subheader__title--separator">
|
|
7
|
+
<span>{{ data?.id ? 'Edit' : 'Create new' }} marketing email</span>
|
|
8
|
+
</h3>
|
|
9
|
+
</div>
|
|
10
|
+
</div>
|
|
11
|
+
<ng-container>
|
|
12
|
+
<div class="container-fluid pw-tab">
|
|
13
|
+
<div class="p-2 mt-3">
|
|
14
|
+
<p class="my-3">
|
|
15
|
+
You can insert the user name by adding the following syntax in the body or title:
|
|
16
|
+
{{ userNameSyntax }}
|
|
17
|
+
</p>
|
|
18
|
+
<div class="w-100 text-center mt-3"
|
|
19
|
+
*ngIf="isLoading">
|
|
20
|
+
<p-progressSpinner strokeWidth="2"> </p-progressSpinner>
|
|
21
|
+
</div>
|
|
22
|
+
<form [formGroup]="form"
|
|
23
|
+
*ngIf="!isLoading"
|
|
24
|
+
(ngSubmit)="onSave()">
|
|
25
|
+
<div class="row mb-3">
|
|
26
|
+
<div class="col-12 col-md-12">
|
|
27
|
+
<pw-input-container [label]="'Crm.CommunicationsMessage.Title' | transloco"
|
|
28
|
+
name="title"
|
|
29
|
+
[showTooltip]="true"
|
|
30
|
+
[tooltipText]="'Crm.CommunicationsMessage.Tooltip.Title' | transloco"
|
|
31
|
+
errorMsg="Please enter subject">
|
|
32
|
+
<input type="text"
|
|
33
|
+
class="form-control"
|
|
34
|
+
formControlName="title"
|
|
35
|
+
[ngClass]="{ 'is-invalid': submitted && f['title'].errors }" />
|
|
36
|
+
</pw-input-container>
|
|
37
|
+
</div>
|
|
38
|
+
|
|
39
|
+
<div class="col-12 col-md-12">
|
|
40
|
+
<pw-input-container [label]="'Crm.CommunicationsMessage.Body' | transloco"
|
|
41
|
+
[showTooltip]="true"
|
|
42
|
+
[tooltipText]="'Crm.CommunicationsMessage.Tooltip.Body' | transloco"
|
|
43
|
+
name="body"
|
|
44
|
+
errorMsg="Please enter body">
|
|
45
|
+
<quill-editor [styles]="{ height: '220px' }"
|
|
46
|
+
class="w-100"
|
|
47
|
+
formControlName="body"
|
|
48
|
+
[ngClass]="{ 'is-invalid': submitted && f['body'].errors }">
|
|
49
|
+
</quill-editor>
|
|
50
|
+
</pw-input-container>
|
|
51
|
+
</div>
|
|
52
|
+
|
|
53
|
+
<div class="col-12 col-md-2">
|
|
54
|
+
<div class="mb-3">
|
|
55
|
+
<label class="info-circle">{{ 'Crm.CommunicationsMessage.SendAt' | transloco
|
|
56
|
+
}}<span class="text-danger required-icon">*</span><span class="tooltiptext gradient-custom-branding">{{
|
|
57
|
+
'Crm.CommunicationsMessage.Tooltip.SendAt' | transloco
|
|
58
|
+
}}</span></label>
|
|
59
|
+
<div class="input-group">
|
|
60
|
+
<input class="form-control"
|
|
61
|
+
placeholder="dd-mm-yyyy"
|
|
62
|
+
formControlName="send_at"
|
|
63
|
+
ngbDatepicker
|
|
64
|
+
#c="ngbDatepicker"
|
|
65
|
+
[ngClass]="{ 'is-invalid': submitted && f['send_at'].errors }" />
|
|
66
|
+
<div class="input-group-append">
|
|
67
|
+
<button class="btn btn-primary"
|
|
68
|
+
(click)="c.toggle()"
|
|
69
|
+
type="button">
|
|
70
|
+
<i class="fa fa-calendar" aria-hidden="true"></i>
|
|
71
|
+
</button>
|
|
72
|
+
</div>
|
|
73
|
+
</div>
|
|
74
|
+
</div>
|
|
75
|
+
</div>
|
|
76
|
+
|
|
77
|
+
<div class="col-12 col-md-2">
|
|
78
|
+
<div class="mb-3">
|
|
79
|
+
<label class="info-circle">{{ 'Crm.CommunicationsMessage.SendUntil' | transloco
|
|
80
|
+
}}<span class="text-danger required-icon">*</span><span class="tooltiptext gradient-custom-branding">{{
|
|
81
|
+
'Crm.CommunicationsMessage.Tooltip.SendUntil' | transloco
|
|
82
|
+
}}</span></label>
|
|
83
|
+
<div class="input-group">
|
|
84
|
+
<input class="form-control"
|
|
85
|
+
placeholder="dd-mm-yyyy"
|
|
86
|
+
formControlName="send_until"
|
|
87
|
+
ngbDatepicker
|
|
88
|
+
#d="ngbDatepicker"
|
|
89
|
+
[ngClass]="{ 'is-invalid': submitted && f['send_until'].errors }" />
|
|
90
|
+
<div class="input-group-append">
|
|
91
|
+
<button class="btn btn-primary"
|
|
92
|
+
(click)="d.toggle()"
|
|
93
|
+
type="button">
|
|
94
|
+
<i class="fa fa-calendar" aria-hidden="true"></i>
|
|
95
|
+
</button>
|
|
96
|
+
</div>
|
|
97
|
+
</div>
|
|
98
|
+
</div>
|
|
99
|
+
</div>
|
|
100
|
+
|
|
101
|
+
<div class="col-12 col-md-3">
|
|
102
|
+
<label class="info-circle">{{ 'Crm.CommunicationsMessage.PreviousNewsletter' | transloco }}
|
|
103
|
+
<span class="tooltiptext gradient-custom-branding">{{
|
|
104
|
+
'Crm.CommunicationsMessage.Tooltip.PreviousNewsletter' | transloco
|
|
105
|
+
}}</span></label>
|
|
106
|
+
<select class="form-select"
|
|
107
|
+
formControlName="previous_newsletter_id"
|
|
108
|
+
(change)="onNewsletterSelect($event)"
|
|
109
|
+
[ngClass]="{
|
|
110
|
+
'is-invalid': submitted && f['previous_newsletter_id'].errors
|
|
111
|
+
}">
|
|
112
|
+
<option value="">select previous newsletter</option>
|
|
113
|
+
<option *ngFor="let option of allCommunications"
|
|
114
|
+
[value]="option.id">
|
|
115
|
+
{{ option.title }}
|
|
116
|
+
</option>
|
|
117
|
+
</select>
|
|
118
|
+
</div>
|
|
119
|
+
|
|
120
|
+
<div class="col-12 col-sm-2"
|
|
121
|
+
*ngIf="daysToNewsletterField">
|
|
122
|
+
<pw-input-container [label]="
|
|
123
|
+
'Crm.CommunicationsMessage.DaysToWaitFromPreviousNewsletter'
|
|
124
|
+
| transloco
|
|
125
|
+
"
|
|
126
|
+
[showTooltip]="true"
|
|
127
|
+
[tooltipText]="
|
|
128
|
+
'Crm.CommunicationsMessage.Tooltip.DaysToWaitFromPreviousNewsletter'
|
|
129
|
+
| transloco
|
|
130
|
+
"
|
|
131
|
+
name="days_to_wait_from_previous_newsletter"
|
|
132
|
+
errorMsg="Please enter days to wait from previous newsletter">
|
|
133
|
+
<input type="number"
|
|
134
|
+
class="form-control"
|
|
135
|
+
formControlName="days_to_wait_from_previous_newsletter"
|
|
136
|
+
[ngClass]="{
|
|
137
|
+
'is-invalid':
|
|
138
|
+
submitted && f['days_to_wait_from_previous_newsletter'].errors
|
|
139
|
+
}" />
|
|
140
|
+
</pw-input-container>
|
|
141
|
+
</div>
|
|
142
|
+
|
|
143
|
+
<div class="col-12 col-md-1">
|
|
144
|
+
<div class="mb-3">
|
|
145
|
+
<label class="info-circle">{{ 'Crm.CommunicationsMessage.ShouldDeliver' | transloco
|
|
146
|
+
}}<span class="text-danger required-icon">*</span><span class="tooltiptext gradient-custom-branding">{{
|
|
147
|
+
'Crm.CommunicationsMessage.Tooltip.IsPushed' | transloco
|
|
148
|
+
}}</span>
|
|
149
|
+
</label>
|
|
150
|
+
<ui-switch class="d-block"
|
|
151
|
+
formControlName="is_pushed"
|
|
152
|
+
(change)="onChange($event, 'is_pushed')"
|
|
153
|
+
name="is_pushed">
|
|
154
|
+
</ui-switch>
|
|
155
|
+
</div>
|
|
156
|
+
</div>
|
|
157
|
+
|
|
158
|
+
<div class="col-12 col-md-2">
|
|
159
|
+
<div class="mb-3">
|
|
160
|
+
<label class="info-circle">{{ 'Crm.CommunicationsMessage.CanReply' | transloco
|
|
161
|
+
}}<span class="text-danger required-icon">*</span><span class="tooltiptext gradient-custom-branding">{{
|
|
162
|
+
'Crm.CommunicationsMessage.Tooltip.CanReply' | transloco
|
|
163
|
+
}}</span>
|
|
164
|
+
</label>
|
|
165
|
+
<ui-switch class="d-block"
|
|
166
|
+
formControlName="can_reply"
|
|
167
|
+
name="can_reply">
|
|
168
|
+
</ui-switch>
|
|
169
|
+
</div>
|
|
170
|
+
</div>
|
|
171
|
+
</div>
|
|
172
|
+
|
|
173
|
+
<h3>Decide who will receive the email</h3>
|
|
174
|
+
|
|
175
|
+
<div class="row mb-3">
|
|
176
|
+
<div class="col-12 col-md-4">
|
|
177
|
+
<div class="mb-3">
|
|
178
|
+
<label class="info-circle">{{ 'Crm.CommunicationsMessage.Location' | transloco
|
|
179
|
+
}}<span class="tooltiptext gradient-custom-branding">{{
|
|
180
|
+
'Crm.CommunicationsMessage.Tooltip.Location' | transloco
|
|
181
|
+
}}</span></label>
|
|
182
|
+
<input ngx-gp-autocomplete
|
|
183
|
+
class="form-control"
|
|
184
|
+
#places="ngx-places"
|
|
185
|
+
formControlName="location"
|
|
186
|
+
(onAddressChange)="handleAddressChange($event)"
|
|
187
|
+
[ngClass]="{ 'is-invalid': submitted && f['location'].errors }" />
|
|
188
|
+
</div>
|
|
189
|
+
</div>
|
|
190
|
+
|
|
191
|
+
<div class="mb-3 col-12 col-md-4">
|
|
192
|
+
<label class="info-circle">{{ 'Crm.CommunicationsMessage.Products' | transloco }}
|
|
193
|
+
<span class="tooltiptext gradient-custom-branding">{{
|
|
194
|
+
'Crm.CommunicationsMessage.Tooltip.Products' | transloco
|
|
195
|
+
}}</span></label>
|
|
196
|
+
<p-multiSelect [options]="crmProduct"
|
|
197
|
+
[showHeader]="true"
|
|
198
|
+
[showToggleAll]="true"
|
|
199
|
+
formControlName="product_ids"
|
|
200
|
+
appendTo="body"></p-multiSelect>
|
|
201
|
+
</div>
|
|
202
|
+
|
|
203
|
+
<div class="mb-3 col-12 col-md-4">
|
|
204
|
+
<label class="info-circle">{{ 'Crm.CommunicationsMessage.Features' | transloco }}
|
|
205
|
+
<span class="tooltiptext gradient-custom-branding">{{
|
|
206
|
+
'Crm.CommunicationsMessage.Tooltip.Features' | transloco
|
|
207
|
+
}}</span></label>
|
|
208
|
+
<p-multiSelect [options]="featureKeys"
|
|
209
|
+
[showHeader]="true"
|
|
210
|
+
[showToggleAll]="true"
|
|
211
|
+
formControlName="feature_keys"
|
|
212
|
+
appendTo="body"></p-multiSelect>
|
|
213
|
+
</div>
|
|
214
|
+
|
|
215
|
+
<div class="mb-3 col-12 col-md-4">
|
|
216
|
+
<label class="info-circle">{{ 'Crm.CommunicationsMessage.ContactPotential' | transloco }}
|
|
217
|
+
<span class="tooltiptext gradient-custom-branding">{{
|
|
218
|
+
'Crm.CommunicationsMessage.Tooltip.ContactPotential' | transloco
|
|
219
|
+
}}</span></label>
|
|
220
|
+
<p-multiSelect [options]="potentials"
|
|
221
|
+
formControlName="contact_potential"
|
|
222
|
+
appendTo="body"></p-multiSelect>
|
|
223
|
+
</div>
|
|
224
|
+
|
|
225
|
+
<div class="mb-3 col-12 col-md-4">
|
|
226
|
+
<label class="info-circle">{{ 'Crm.CommunicationsMessage.ContactLabel' | transloco }}
|
|
227
|
+
<span class="tooltiptext gradient-custom-branding">{{
|
|
228
|
+
'Crm.CommunicationsMessage.Tooltip.ContactLabel' | transloco
|
|
229
|
+
}}</span></label>
|
|
230
|
+
<p-multiSelect [options]="labels"
|
|
231
|
+
formControlName="contact_label"
|
|
232
|
+
appendTo="body"></p-multiSelect>
|
|
233
|
+
</div>
|
|
234
|
+
|
|
235
|
+
<div class="mb-3 col-12 col-md-4">
|
|
236
|
+
<label class="info-circle">{{ 'Crm.CommunicationsMessage.ContactSource' | transloco }}
|
|
237
|
+
<span class="tooltiptext gradient-custom-branding">{{
|
|
238
|
+
'Crm.CommunicationsMessage.Tooltip.ContactSource' | transloco
|
|
239
|
+
}}</span></label>
|
|
240
|
+
<p-multiSelect [options]="contactSource"
|
|
241
|
+
formControlName="contact_source"
|
|
242
|
+
appendTo="body"></p-multiSelect>
|
|
243
|
+
</div>
|
|
244
|
+
|
|
245
|
+
<div class="mb-3 col-12 col-md-4">
|
|
246
|
+
<label class="info-circle">{{ 'Crm.CommunicationsMessage.AccountPriority' | transloco }}
|
|
247
|
+
<span class="tooltiptext gradient-custom-branding">{{
|
|
248
|
+
'Crm.CommunicationsMessage.Tooltip.AccountPriority' | transloco
|
|
249
|
+
}}</span></label>
|
|
250
|
+
<p-multiSelect [options]="priority"
|
|
251
|
+
formControlName="account_priority"
|
|
252
|
+
appendTo="body"></p-multiSelect>
|
|
253
|
+
</div>
|
|
254
|
+
|
|
255
|
+
<div class="mb-3 col-12 col-md-4">
|
|
256
|
+
<label class="info-circle">{{ 'Crm.CommunicationsMessage.AccountStatus' | transloco }}
|
|
257
|
+
<span class="tooltiptext gradient-custom-branding">{{
|
|
258
|
+
'Crm.CommunicationsMessage.Tooltip.AccountStatus' | transloco
|
|
259
|
+
}}</span></label>
|
|
260
|
+
<p-multiSelect [options]="status"
|
|
261
|
+
formControlName="account_status"
|
|
262
|
+
appendTo="body"></p-multiSelect>
|
|
263
|
+
</div>
|
|
264
|
+
|
|
265
|
+
<div class="mb-3 col-12 col-md-4">
|
|
266
|
+
<label class="info-circle">{{ 'Crm.CommunicationsMessage.AccountSource' | transloco }}
|
|
267
|
+
<span class="tooltiptext gradient-custom-branding">{{
|
|
268
|
+
'Crm.CommunicationsMessage.Tooltip.AccountSource' | transloco
|
|
269
|
+
}}</span></label>
|
|
270
|
+
<p-multiSelect [options]="source"
|
|
271
|
+
formControlName="account_source"
|
|
272
|
+
appendTo="body"></p-multiSelect>
|
|
273
|
+
</div>
|
|
274
|
+
|
|
275
|
+
<div class="mb-3 col-12 col-md-4">
|
|
276
|
+
<label class="info-circle">{{ 'Crm.CommunicationsMessage.AccountSize' | transloco }}
|
|
277
|
+
<span class="tooltiptext gradient-custom-branding">{{
|
|
278
|
+
'Crm.CommunicationsMessage.Tooltip.AccountSize' | transloco
|
|
279
|
+
}}</span></label>
|
|
280
|
+
<p-multiSelect [options]="organizationSizes"
|
|
281
|
+
formControlName="account_size"
|
|
282
|
+
appendTo="body"></p-multiSelect>
|
|
283
|
+
</div>
|
|
284
|
+
|
|
285
|
+
<!-- Only new contacts -->
|
|
286
|
+
<div class="col-md-3">
|
|
287
|
+
<div class="mb-3">
|
|
288
|
+
<label class="info-circle mb-2">{{ 'Crm.CommunicationsMessage.OnlyNewContacts' | transloco
|
|
289
|
+
}}<span class="tooltiptext gradient-custom-branding">{{
|
|
290
|
+
'Crm.CommunicationsMessage.Tooltip.OnlyNewContacts' | transloco
|
|
291
|
+
}}</span>
|
|
292
|
+
</label>
|
|
293
|
+
<ui-switch class="d-block"
|
|
294
|
+
formControlName="only_new_contacts"
|
|
295
|
+
name="only_new_contacts"
|
|
296
|
+
[ngClass]="{
|
|
297
|
+
'is-invalid': submitted && f['only_new_contacts'].errors
|
|
298
|
+
}">
|
|
299
|
+
</ui-switch>
|
|
300
|
+
</div>
|
|
301
|
+
</div>
|
|
302
|
+
</div>
|
|
303
|
+
<div class="row">
|
|
304
|
+
<div class="col-12 text-end mt-3">
|
|
305
|
+
<button type="button"
|
|
306
|
+
class="btn btn-outline-default me-2"
|
|
307
|
+
(click)="back()">
|
|
308
|
+
{{ 'Button.Cancel' | transloco }}
|
|
309
|
+
</button>
|
|
310
|
+
<button type="submit"
|
|
311
|
+
[buttonBusy]="buttonBusy"
|
|
312
|
+
class="btn btn-primary"
|
|
313
|
+
[disabled]="!form.valid"
|
|
314
|
+
>
|
|
315
|
+
{{ 'Button.Submit' | transloco }}
|
|
316
|
+
</button>
|
|
317
|
+
</div>
|
|
318
|
+
</div>
|
|
319
|
+
</form>
|
|
320
|
+
</div>
|
|
321
|
+
</div>
|
|
322
|
+
</ng-container>
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import { TestBed } from '@angular/core/testing';
|
|
2
|
+
import { byText } from '@ngneat/spectator';
|
|
3
|
+
import {
|
|
4
|
+
CommonService,
|
|
5
|
+
CommonServicesModule,
|
|
6
|
+
PermissionService,
|
|
7
|
+
UserService
|
|
8
|
+
} from '@posiwise/common-services';
|
|
9
|
+
import { SharedModule } from '@posiwise/shared-module';
|
|
10
|
+
import { CrmService } from '@posiwise/smart-crm-shared';
|
|
11
|
+
import { DEFAULT_USER, TestHelper } from '@posiwise/test-helpers';
|
|
12
|
+
import { MockProvider } from 'ng-mocks';
|
|
13
|
+
import { of } from 'rxjs';
|
|
14
|
+
import { SmartCrmPrivateModule } from '../../../../smart-crm-private.module';
|
|
15
|
+
import { SmartCrmCommunicationsDetailsComponent } from './smart-crm-marketing-details.component';
|
|
16
|
+
|
|
17
|
+
class UserServiceMock {
|
|
18
|
+
getUserState() {
|
|
19
|
+
return of({ currentUser: DEFAULT_USER });
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
describe('SmartCrmCommunicationsDetailsComponent', () => {
|
|
23
|
+
const data = {
|
|
24
|
+
crm_newsletters: [
|
|
25
|
+
{
|
|
26
|
+
id: 1,
|
|
27
|
+
title: 'test',
|
|
28
|
+
body: '\u003cp\u003etest\u003c/p\u003e',
|
|
29
|
+
contact_potential: [],
|
|
30
|
+
account_status: [],
|
|
31
|
+
account_priority: [],
|
|
32
|
+
location: '',
|
|
33
|
+
latitude: null,
|
|
34
|
+
longitude: null,
|
|
35
|
+
is_sent: false,
|
|
36
|
+
is_pushed: true,
|
|
37
|
+
send_until: '2021-11-19',
|
|
38
|
+
subscription_id: 20,
|
|
39
|
+
owner_id: 1,
|
|
40
|
+
days_to_wait_from_previous_newsletter: null,
|
|
41
|
+
send_at: '2021-11-14',
|
|
42
|
+
account_size: [],
|
|
43
|
+
account_source: [],
|
|
44
|
+
product_ids: null,
|
|
45
|
+
feature_keys: [],
|
|
46
|
+
contact_label: [],
|
|
47
|
+
contact_source: []
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
object_count: 1,
|
|
51
|
+
unfiltered_count: 1
|
|
52
|
+
};
|
|
53
|
+
const createComponent = TestHelper.createComponentFactory({
|
|
54
|
+
component: SmartCrmCommunicationsDetailsComponent,
|
|
55
|
+
imports: [CommonServicesModule, SharedModule, SmartCrmPrivateModule],
|
|
56
|
+
providers: [
|
|
57
|
+
...TestHelper.TEST_PROVIDERS,
|
|
58
|
+
MockProvider(PermissionService, {
|
|
59
|
+
evaluatePermissions: () => {
|
|
60
|
+
return true;
|
|
61
|
+
}
|
|
62
|
+
}),
|
|
63
|
+
MockProvider(CrmService, {
|
|
64
|
+
getAllCrmNewsletters: () => of(data),
|
|
65
|
+
updateCrmNewsLetter: () => of({}),
|
|
66
|
+
saveCrmNewsletter: () => of({}),
|
|
67
|
+
getCrmNewsletter: () => of(data.crm_newsletters[0]),
|
|
68
|
+
getCrmProducts: () => of({}),
|
|
69
|
+
getCrmContactDefaultValues: () => of({ labels: [], source: [] }),
|
|
70
|
+
getCrmAccountDefaultValues: () =>
|
|
71
|
+
of({
|
|
72
|
+
status: [
|
|
73
|
+
'Prospect',
|
|
74
|
+
'Active Trial',
|
|
75
|
+
'Active Customer',
|
|
76
|
+
'Old Customer',
|
|
77
|
+
'Dead',
|
|
78
|
+
'Competitor'
|
|
79
|
+
],
|
|
80
|
+
priority: [
|
|
81
|
+
'A - Ideal Fit',
|
|
82
|
+
'B - High Potential',
|
|
83
|
+
'C - Low Potential',
|
|
84
|
+
'D - Out of market'
|
|
85
|
+
],
|
|
86
|
+
source: [
|
|
87
|
+
{
|
|
88
|
+
id: 6,
|
|
89
|
+
name: 'test',
|
|
90
|
+
is_default: true,
|
|
91
|
+
subscription_id: 31
|
|
92
|
+
}
|
|
93
|
+
]
|
|
94
|
+
})
|
|
95
|
+
}),
|
|
96
|
+
MockProvider(CommonService, {
|
|
97
|
+
getOrganizationSizes: () =>
|
|
98
|
+
of({
|
|
99
|
+
organization_sizes: []
|
|
100
|
+
})
|
|
101
|
+
}),
|
|
102
|
+
{
|
|
103
|
+
provide: UserService,
|
|
104
|
+
useClass: UserServiceMock
|
|
105
|
+
}
|
|
106
|
+
]
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
beforeEach(() => {
|
|
110
|
+
TestHelper.setUpPermissionsAndUser();
|
|
111
|
+
});
|
|
112
|
+
|
|
113
|
+
it('should create', async () => {
|
|
114
|
+
TestHelper.setActivatedRoute({
|
|
115
|
+
parent: { params: of({ slug: 'posiwise-263' }) }
|
|
116
|
+
});
|
|
117
|
+
const spectator = await createComponent();
|
|
118
|
+
expect(spectator.component).toBeTruthy();
|
|
119
|
+
});
|
|
120
|
+
|
|
121
|
+
it('should add submit form ', async () => {
|
|
122
|
+
TestHelper.setActivatedRoute({
|
|
123
|
+
parent: { params: of({ slug: 'posiwise-263' }) }
|
|
124
|
+
});
|
|
125
|
+
const spectator = await createComponent();
|
|
126
|
+
const service = TestBed.inject(CrmService);
|
|
127
|
+
const spy = spyOn(service, 'saveCrmNewsletter').and.callThrough();
|
|
128
|
+
spectator.typeInElement('test', 'input[formControlName="title"]');
|
|
129
|
+
spectator.component.form.patchValue({
|
|
130
|
+
send_at: { year: 2018, month: 12, day: 31 },
|
|
131
|
+
send_until: { year: 2018, month: 12, day: 31 },
|
|
132
|
+
body: 'test'
|
|
133
|
+
});
|
|
134
|
+
spectator.selectOption(
|
|
135
|
+
'select[formControlName="previous_newsletter_id"]',
|
|
136
|
+
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
|
|
137
|
+
spectator.query(byText('test')) as HTMLOptionElement
|
|
138
|
+
);
|
|
139
|
+
spectator.click('ui-switch[formControlName="is_pushed"]');
|
|
140
|
+
spectator.click('button[type="submit"]');
|
|
141
|
+
expect(spy).toHaveBeenCalledTimes(1);
|
|
142
|
+
});
|
|
143
|
+
|
|
144
|
+
it('should edit', async () => {
|
|
145
|
+
TestHelper.setActivatedRoute({
|
|
146
|
+
params: { Id: 1 },
|
|
147
|
+
parent: { params: of({ slug: 'posiwise-263' }) }
|
|
148
|
+
});
|
|
149
|
+
const spectator = await createComponent();
|
|
150
|
+
const service = TestBed.inject(CrmService);
|
|
151
|
+
const spy = spyOn(service, 'updateCrmNewsLetter').and.callThrough();
|
|
152
|
+
spectator.typeInElement('test2', 'input[formControlName="title"]');
|
|
153
|
+
spectator.click('button[type="submit"]');
|
|
154
|
+
expect(spy).toHaveBeenCalledTimes(1);
|
|
155
|
+
});
|
|
156
|
+
});
|