@posiwise/smart-crm 0.0.20 → 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 -599
- 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 -470
- 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 -335
- 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 -6482
- 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 -173
- 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 -122
- 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 -67
- 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,161 @@
|
|
|
1
|
+
import { Component, Injector, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { CrmService } from '@posiwise/smart-crm-shared';
|
|
3
|
+
|
|
4
|
+
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
5
|
+
import { Subscription, User,activeOpportunities,signedUpLastThirtyDays} from '@posiwise/common-utilities';
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 'pw-smart-crm-summary-others',
|
|
8
|
+
templateUrl: './smart-crm-summary-others.component.html'
|
|
9
|
+
})
|
|
10
|
+
export class SmartCrmSummaryOthersComponent extends AppBaseComponent implements OnInit, OnDestroy {
|
|
11
|
+
signedUpLastThirtyDays:signedUpLastThirtyDays[];
|
|
12
|
+
|
|
13
|
+
activeOpportunities:activeOpportunities[];
|
|
14
|
+
|
|
15
|
+
accountAtRisk:[];
|
|
16
|
+
|
|
17
|
+
ContractRenewal:[];
|
|
18
|
+
|
|
19
|
+
creditCardExpiring:[];
|
|
20
|
+
|
|
21
|
+
magicMoment:[];
|
|
22
|
+
|
|
23
|
+
user: User;
|
|
24
|
+
|
|
25
|
+
signUpLastThirtyDaysLoaded = false;
|
|
26
|
+
|
|
27
|
+
activeOpportunitiesLoaded = false;
|
|
28
|
+
|
|
29
|
+
accountAtRiskDetailsLoaded = false;
|
|
30
|
+
|
|
31
|
+
contactRenewalLoaded = false;
|
|
32
|
+
|
|
33
|
+
creditCardExpiringDetailsLoaded = false;
|
|
34
|
+
|
|
35
|
+
magicMomentLoaded = false;
|
|
36
|
+
|
|
37
|
+
subscription: Subscription;
|
|
38
|
+
|
|
39
|
+
constructor(
|
|
40
|
+
private crmService: CrmService,
|
|
41
|
+
injector: Injector
|
|
42
|
+
) {
|
|
43
|
+
super(injector);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
ngOnInit(): void {
|
|
47
|
+
this.getUserSubscription().subscribe(response => {
|
|
48
|
+
this.subscription = response;
|
|
49
|
+
if (this.subscription?.id) {
|
|
50
|
+
this.getUserInfo();
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
private getUserInfo() {
|
|
56
|
+
this.userStore().subscribe(user => {
|
|
57
|
+
if (user) {
|
|
58
|
+
this.user = user;
|
|
59
|
+
if (
|
|
60
|
+
this.permissionService.isGranted('Pages.Beta') ||
|
|
61
|
+
this.permissionService.isSuperAdmin()
|
|
62
|
+
) {
|
|
63
|
+
this.getSignedUpLastThirtyDays();
|
|
64
|
+
this.getActiveOpportunities();
|
|
65
|
+
this.getAccountAtRiskDetails();
|
|
66
|
+
this.getContactRenewal();
|
|
67
|
+
this.getCreditCardExpiringDetails();
|
|
68
|
+
this.getMagicMoment();
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/** Function to call signed up last 30 days details */
|
|
75
|
+
private getSignedUpLastThirtyDays() {
|
|
76
|
+
this.crmService
|
|
77
|
+
.getCrmAnalytics(this.subscription?.id, 'accounts_signed_up_last_30_days')
|
|
78
|
+
.subscribe(response => {
|
|
79
|
+
if (typeof response === 'object' && Object.keys(response).length === 0) {
|
|
80
|
+
this.signedUpLastThirtyDays = [];
|
|
81
|
+
} else this.signedUpLastThirtyDays = response;
|
|
82
|
+
})
|
|
83
|
+
.add(() => {
|
|
84
|
+
this.signUpLastThirtyDaysLoaded = true;
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/** Function to call Active Opportunities details */
|
|
89
|
+
private getActiveOpportunities() {
|
|
90
|
+
this.crmService
|
|
91
|
+
.getCrmAnalytics(this.subscription?.id, 'accounts_active_opportunities')
|
|
92
|
+
.subscribe(response => {
|
|
93
|
+
if (typeof response === 'object' && Object.keys(response).length === 0) {
|
|
94
|
+
this.activeOpportunities = [];
|
|
95
|
+
} else this.activeOpportunities = response;
|
|
96
|
+
})
|
|
97
|
+
.add(() => {
|
|
98
|
+
this.activeOpportunitiesLoaded = true;
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/** Function to call Account At Risk details */
|
|
103
|
+
private getAccountAtRiskDetails() {
|
|
104
|
+
this.crmService
|
|
105
|
+
.getCrmAnalytics(this.subscription?.id, 'accounts_accounts_at_risk')
|
|
106
|
+
.subscribe(response => {
|
|
107
|
+
if (typeof response === 'object' && Object.keys(response).length === 0) {
|
|
108
|
+
this.accountAtRisk = [];
|
|
109
|
+
} else this.accountAtRisk = response;
|
|
110
|
+
|
|
111
|
+
})
|
|
112
|
+
.add(() => {
|
|
113
|
+
this.accountAtRiskDetailsLoaded = true;
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/** Function to call Contract renewal details */
|
|
118
|
+
private getContactRenewal() {
|
|
119
|
+
this.crmService
|
|
120
|
+
.getCrmAnalytics(this.subscription?.id, 'accounts_contract_renewal')
|
|
121
|
+
.subscribe(response => {
|
|
122
|
+
if (typeof response === 'object' && Object.keys(response).length === 0) {
|
|
123
|
+
this.ContractRenewal = [];
|
|
124
|
+
} else this.ContractRenewal = response;
|
|
125
|
+
})
|
|
126
|
+
.add(() => {
|
|
127
|
+
this.contactRenewalLoaded = true;
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/** Function to call Credit Card Expiring details */
|
|
132
|
+
private getCreditCardExpiringDetails() {
|
|
133
|
+
this.crmService
|
|
134
|
+
.getCrmAnalytics(this.subscription?.id, 'credit_card_expiring')
|
|
135
|
+
.subscribe(response => {
|
|
136
|
+
if (typeof response === 'object' && Object.keys(response).length === 0) {
|
|
137
|
+
this.creditCardExpiring = [];
|
|
138
|
+
} else this.creditCardExpiring = response;
|
|
139
|
+
})
|
|
140
|
+
.add(() => {
|
|
141
|
+
this.creditCardExpiringDetailsLoaded = true;
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
/** Function to call magic moment */
|
|
145
|
+
private getMagicMoment() {
|
|
146
|
+
this.crmService
|
|
147
|
+
.getCrmAnalytics(this.subscription?.id, 'magic_moment')
|
|
148
|
+
.subscribe(response => {
|
|
149
|
+
if (typeof response === 'object' && Object.keys(response).length === 0) {
|
|
150
|
+
this.magicMoment = [];
|
|
151
|
+
} else this.magicMoment = response;
|
|
152
|
+
})
|
|
153
|
+
.add(() => {
|
|
154
|
+
this.magicMomentLoaded = true;
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
override ngOnDestroy() {
|
|
159
|
+
super.ngOnDestroy();
|
|
160
|
+
}
|
|
161
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<div class="row">
|
|
2
|
+
<div class="col-12 mb-0">
|
|
3
|
+
<h2>{{ 'Crm.SmartCrmSummary' | transloco }}</h2>
|
|
4
|
+
<p>In this section you can see your CRM at a glance.</p>
|
|
5
|
+
</div>
|
|
6
|
+
</div>
|
|
7
|
+
<ul ngbNav
|
|
8
|
+
#nav="ngbNav"
|
|
9
|
+
class="nav-tabs">
|
|
10
|
+
<li [ngbNavItem]="1">
|
|
11
|
+
<a ngbNavLink>Actions</a>
|
|
12
|
+
<ng-template ngbNavContent>
|
|
13
|
+
<pw-smart-crm-summary-actions></pw-smart-crm-summary-actions>
|
|
14
|
+
</ng-template>
|
|
15
|
+
</li>
|
|
16
|
+
<li [ngbNavItem]="2"
|
|
17
|
+
*rbacAllow="'Pages.Beta'">
|
|
18
|
+
<a ngbNavLink>Other</a>
|
|
19
|
+
<ng-template ngbNavContent>
|
|
20
|
+
<pw-smart-crm-summary-others></pw-smart-crm-summary-others>
|
|
21
|
+
</ng-template>
|
|
22
|
+
</li>
|
|
23
|
+
</ul>
|
|
24
|
+
|
|
25
|
+
<div [ngbNavOutlet]="nav"></div>
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
@import 'variables/branding-variables';
|
|
2
|
+
@import 'variables';
|
|
3
|
+
|
|
4
|
+
.textarea,
|
|
5
|
+
.control-btns {
|
|
6
|
+
display: none;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.comment,
|
|
10
|
+
.edit-btn {
|
|
11
|
+
display: block;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.comment {
|
|
15
|
+
border: 0;
|
|
16
|
+
border-bottom: 1px solid rgb(242 242 242);
|
|
17
|
+
color: rgb(0 0 0);
|
|
18
|
+
font-size: 1rem;
|
|
19
|
+
resize: none;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.textarea {
|
|
23
|
+
border: 0;
|
|
24
|
+
border-bottom: 1px solid rgb(242 242 242);
|
|
25
|
+
color: $heading-color-main;
|
|
26
|
+
display: none;
|
|
27
|
+
font-size: 17px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.comment-section {
|
|
31
|
+
min-width: 350px;
|
|
32
|
+
padding-right: 45px;
|
|
33
|
+
position: relative;
|
|
34
|
+
|
|
35
|
+
p {
|
|
36
|
+
word-break: break-all;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&.show-controls {
|
|
40
|
+
.textarea,
|
|
41
|
+
.control-btns {
|
|
42
|
+
display: block;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.comment,
|
|
46
|
+
.edit-btn {
|
|
47
|
+
display: none;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.control-btns {
|
|
51
|
+
&.edit-control-btns {
|
|
52
|
+
display: flex;
|
|
53
|
+
justify-content: flex-end;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.edit-btn {
|
|
60
|
+
margin-top: -15px;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.when-btn {
|
|
64
|
+
&:focus {
|
|
65
|
+
border: 0;
|
|
66
|
+
box-shadow: none;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { MockProvider } from 'ng-mocks';
|
|
2
|
+
import { SmartCrmPrivateModule } from '../../smart-crm-private.module';
|
|
3
|
+
import { TestHelper } from '@posiwise/test-helpers';
|
|
4
|
+
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
|
5
|
+
import { CommonServicesModule, PermissionService } from '@posiwise/common-services';
|
|
6
|
+
import { SmartCrmSummaryComponent } from './smart-crm-summary.component';
|
|
7
|
+
import { SharedModule } from '@posiwise/shared-module';
|
|
8
|
+
import { of } from 'rxjs';
|
|
9
|
+
|
|
10
|
+
describe('SmartCrmSummaryComponent', () => {
|
|
11
|
+
const createComponent = TestHelper.createComponentFactory({
|
|
12
|
+
component: SmartCrmSummaryComponent,
|
|
13
|
+
imports: [CommonServicesModule, SharedModule, SmartCrmPrivateModule],
|
|
14
|
+
providers: [
|
|
15
|
+
...TestHelper.TEST_PROVIDERS,
|
|
16
|
+
MockProvider(PermissionService, {
|
|
17
|
+
evaluatePermissions: () => {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
})
|
|
21
|
+
],
|
|
22
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
it('should create', async () => {
|
|
26
|
+
TestHelper.setActivatedRoute({
|
|
27
|
+
parent: { params: of({ slug: 'posiwise-263' }) }
|
|
28
|
+
});
|
|
29
|
+
const spectator = await createComponent();
|
|
30
|
+
expect(spectator.component).toBeTruthy();
|
|
31
|
+
});
|
|
32
|
+
});
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { CommonServicesModule, PermissionService, UserService } from '@posiwise/common-services';
|
|
2
|
+
import { SharedModule } from '@posiwise/shared-module';
|
|
3
|
+
import { SmartCrmPrivateModule } from '../../smart-crm-private.module';
|
|
4
|
+
import { PwTabsComponent } from '@posiwise/shared-components';
|
|
5
|
+
import { DEFAULT_USER, TestHelper } from '@posiwise/test-helpers';
|
|
6
|
+
import { MockProvider } from 'ng-mocks';
|
|
7
|
+
import { of } from 'rxjs';
|
|
8
|
+
import { SmartCrmTabsComponent } from './smart-crm-tabs.component';
|
|
9
|
+
|
|
10
|
+
class UserServiceMock {
|
|
11
|
+
getUserState() {
|
|
12
|
+
return of({ currentUser: DEFAULT_USER });
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
describe('SmartCrmTabsComponent', () => {
|
|
16
|
+
const createComponent = TestHelper.createComponentFactory({
|
|
17
|
+
component: SmartCrmTabsComponent,
|
|
18
|
+
declarations: [PwTabsComponent],
|
|
19
|
+
imports: [CommonServicesModule, SharedModule, SmartCrmPrivateModule],
|
|
20
|
+
providers: [
|
|
21
|
+
...TestHelper.TEST_PROVIDERS,
|
|
22
|
+
MockProvider(PermissionService, {
|
|
23
|
+
evaluatePermissions: () => {
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
}),
|
|
27
|
+
{
|
|
28
|
+
provide: UserService,
|
|
29
|
+
useClass: UserServiceMock
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
beforeEach(() => {
|
|
35
|
+
TestHelper.setUpPermissionsAndUser();
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
it('should create', async () => {
|
|
39
|
+
TestHelper.setActivatedRoute({ parent: { params: of({ slug: 'posiwise-263' }) } });
|
|
40
|
+
const spectator = await createComponent();
|
|
41
|
+
expect(spectator.component).toBeTruthy();
|
|
42
|
+
});
|
|
43
|
+
});
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { Component, Injector } from '@angular/core';
|
|
2
|
+
import { MenuItem } from 'primeng/api';
|
|
3
|
+
|
|
4
|
+
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
5
|
+
import { CRM_PERMISSIONS } from '@posiwise/smart-crm-shared';
|
|
6
|
+
|
|
7
|
+
@Component({
|
|
8
|
+
selector: 'pw-smart-crm-private-tabs',
|
|
9
|
+
template: `<pw-tabs [items]="items" [withSubscription]="true"></pw-tabs>`
|
|
10
|
+
})
|
|
11
|
+
export class SmartCrmTabsComponent extends AppBaseComponent {
|
|
12
|
+
items: MenuItem[];
|
|
13
|
+
|
|
14
|
+
constructor(injector: Injector) {
|
|
15
|
+
super(injector);
|
|
16
|
+
this.items = [
|
|
17
|
+
{
|
|
18
|
+
id: 'summary_tab',
|
|
19
|
+
label: 'Summary',
|
|
20
|
+
icon: 'fa fa-fw fa-list',
|
|
21
|
+
routerLink: ['/crm/summary'],
|
|
22
|
+
visible: this.permissionService.evaluatePermissions(`${CRM_PERMISSIONS.Summary}`)
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
id: 'accounts_tab',
|
|
26
|
+
label: 'Accounts',
|
|
27
|
+
icon: 'fas fa-user-friends',
|
|
28
|
+
routerLink: ['/crm/accounts'],
|
|
29
|
+
visible: this.permissionService.evaluatePermissions(`${CRM_PERMISSIONS.Accounts}`)
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
id: 'contacts_tab',
|
|
33
|
+
label: 'Contacts',
|
|
34
|
+
icon: 'fa fa-fw fa-users',
|
|
35
|
+
routerLink: ['/crm/contacts'],
|
|
36
|
+
visible: this.permissionService.evaluatePermissions(`${CRM_PERMISSIONS.Contacts}`)
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
id: 'leads_tab',
|
|
40
|
+
label: 'Leads',
|
|
41
|
+
icon: 'fa fa-fw fa-cog',
|
|
42
|
+
routerLink: ['/crm/leads'],
|
|
43
|
+
visible: this.permissionService.evaluatePermissions(`${CRM_PERMISSIONS.Leads}`)
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
id: 'opportunities_tab',
|
|
47
|
+
label: 'Opportunities',
|
|
48
|
+
icon: 'fa fa-handshake',
|
|
49
|
+
routerLink: ['/crm/opportunities'],
|
|
50
|
+
visible: this.permissionService.evaluatePermissions(
|
|
51
|
+
`${CRM_PERMISSIONS.Opportunities}`
|
|
52
|
+
)
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
id: 'marketing_tab',
|
|
56
|
+
label: 'Marketing',
|
|
57
|
+
icon: 'fas fa-bullhorn',
|
|
58
|
+
routerLink: ['/crm/marketing/emails'],
|
|
59
|
+
visible: this.permissionService.evaluatePermissions(`${CRM_PERMISSIONS.Marketing}`)
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
id: 'customer-success',
|
|
63
|
+
label: 'Customer Success',
|
|
64
|
+
icon: 'fa fa-check-circle',
|
|
65
|
+
routerLink: ['/crm/customer-success'],
|
|
66
|
+
visible: this.permissionService.evaluatePermissions(
|
|
67
|
+
`${CRM_PERMISSIONS.CustomerSuccess}`
|
|
68
|
+
)
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
id: 'competition',
|
|
72
|
+
label: 'Competition',
|
|
73
|
+
icon: 'fa fa-trophy',
|
|
74
|
+
routerLink: ['/crm/competition'],
|
|
75
|
+
visible: this.permissionService.evaluatePermissions(
|
|
76
|
+
`${CRM_PERMISSIONS.Competition}`
|
|
77
|
+
)
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
id: 'insight_tab',
|
|
81
|
+
label: 'Insight',
|
|
82
|
+
icon: 'fa fa-fw fa-signature',
|
|
83
|
+
routerLink: ['/crm/insight'],
|
|
84
|
+
visible: this.permissionService.evaluatePermissions(`${CRM_PERMISSIONS.Insight}`)
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
id: 'configuration_tab',
|
|
88
|
+
label: 'Configuration',
|
|
89
|
+
icon: 'fa fa-fw fa-cog',
|
|
90
|
+
routerLink: ['/crm/configuration'],
|
|
91
|
+
visible: this.permissionService.evaluatePermissions(
|
|
92
|
+
`${CRM_PERMISSIONS.Configuration}`
|
|
93
|
+
)
|
|
94
|
+
}
|
|
95
|
+
];
|
|
96
|
+
}
|
|
97
|
+
}
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import { NgModule } from '@angular/core';
|
|
3
|
+
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
4
|
+
|
|
5
|
+
import { TRANSLOCO_SCOPE } from '@jsverse/transloco';
|
|
6
|
+
import { SmartCrmCompanyDetailsComponent } from './components/smart-crm-accounts/smart-crm-account-details/smart-crm-account-details.component';
|
|
7
|
+
import { SmartCrmCompanyFilesComponent } from './components/smart-crm-accounts/smart-crm-account-files/smart-crm-account-files.component';
|
|
8
|
+
import { SmartCrmCompanyInfoComponent } from './components/smart-crm-accounts/smart-crm-account-info/smart-crm-account-info.component';
|
|
9
|
+
import { SmartCrmCompaniesComponent } from './components/smart-crm-accounts/smart-crm-accounts.component';
|
|
10
|
+
import { SmartCrmCompetitionComponent } from './components/smart-crm-competition/smart-crm-competition/smart-crm-competition.component';
|
|
11
|
+
import { SmartCrmSettingsDetailsComponent } from './components/smart-crm-configuration/smart-crm-actions/smart-crm-actions-details/smart-crm-actions-details.component';
|
|
12
|
+
import { SmartCrmActionsComponent } from './components/smart-crm-configuration/smart-crm-actions/smart-crm-actions.component';
|
|
13
|
+
import { SmartCrmConfigurationComponent } from './components/smart-crm-configuration/smart-crm-configuration.component';
|
|
14
|
+
import { SmartCrmOpportunityCategoriesDetailsComponent } from './components/smart-crm-configuration/smart-crm-opportunity-categories/smart-crm-opportunity-categories-details/smart-crm-opportunity-categories-details.component';
|
|
15
|
+
import { SmartCrmOpportunityCategoriesComponent } from './components/smart-crm-configuration/smart-crm-opportunity-categories/smart-crm-opportunity-categories.component';
|
|
16
|
+
import { SmartCrmSourceDetailsComponent } from './components/smart-crm-configuration/smart-crm-source/smart-crm-source-details/smart-crm-source-details.component';
|
|
17
|
+
import { SmartCrmCompanySourceComponent } from './components/smart-crm-configuration/smart-crm-source/smart-crm-source.component';
|
|
18
|
+
import { SmartCrmStageDetailsComponent } from './components/smart-crm-configuration/smart-crm-stages/smart-crm-stage-details/smart-crm-stage-details.component';
|
|
19
|
+
import { SmartCrmStagesComponent } from './components/smart-crm-configuration/smart-crm-stages/smart-crm-stages.component';
|
|
20
|
+
import { SmartCrmWidgetsDetailsComponent } from './components/smart-crm-configuration/smart-crm-widgets/smart-crm-widgets-details/smart-crm-widgets-details.component';
|
|
21
|
+
import { SmartCrmWidgetsComponent } from './components/smart-crm-configuration/smart-crm-widgets/smart-crm-widgets.component';
|
|
22
|
+
import { SmartCrmContactDetailsComponent } from './components/smart-crm-contacts/smart-crm-contact-details/smart-crm-contact-details.component';
|
|
23
|
+
import { SmartCrmContactInfoComponent } from './components/smart-crm-contacts/smart-crm-contact-info/smart-crm-contact-info.component';
|
|
24
|
+
import { SmartCrmContactComponent } from './components/smart-crm-contacts/smart-crm-contacts.component';
|
|
25
|
+
import { SmartCrmCustomerSuccessComponent } from './components/smart-crm-customer/smart-crm-customer-success/smart-crm-customer-success.component';
|
|
26
|
+
import { SmartCrmInsightComponent } from './components/smart-crm-insight/smart-crm-insight.component';
|
|
27
|
+
import { SmartCrmOverviewComponent } from './components/smart-crm-insight/smart-crm-overview/smart-crm-overview.component';
|
|
28
|
+
import { SmartCrmLeadsDetailsComponent } from './components/smart-crm-leads/smart-crm-leads-details/smart-crm-leads-details.component';
|
|
29
|
+
import { SmartCrmLeadsComponent } from './components/smart-crm-leads/smart-crm-leads.component';
|
|
30
|
+
import { SmartCrmMarketingUsersListComponent } from './components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-contacts/smart-crm-marketing-contacts.component';
|
|
31
|
+
import { SmartCrmCommunicationsDetailsComponent } from './components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-details/smart-crm-marketing-details.component';
|
|
32
|
+
import { SmartCrmCommunicationsComponent } from './components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-list.component';
|
|
33
|
+
import { SmartCrmCommunicationViewDetailsComponent } from './components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-view-details/smart-crm-marketing-view-details.component';
|
|
34
|
+
import { SmartCrmMarketingViewComponent } from './components/smart-crm-marketing/smart-crm-marketing.component';
|
|
35
|
+
import { SmartCrmBoardComponent } from './components/smart-crm-opportunities/smart-crm-board/smart-crm-board.component';
|
|
36
|
+
import { SmartCrmOpportunitiesDetailsComponent } from './components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-details/smart-crm-opportunities-details.component';
|
|
37
|
+
import { SmartCrmOpportunitiesInfoComponent } from './components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-info/smart-crm-opportunities-info.component';
|
|
38
|
+
import { SmartCrmOpportunitiesListComponent } from './components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-list.component';
|
|
39
|
+
import { SmartCrmOpportunitiesComponent } from './components/smart-crm-opportunities/smart-crm-opportunities.component';
|
|
40
|
+
import { SmartCrmSummaryActionsComponent } from './components/smart-crm-summary/smart-crm-summary-actions/smart-crm-summary-actions.component';
|
|
41
|
+
import { SmartCrmSummaryOthersComponent } from './components/smart-crm-summary/smart-crm-summary-others/smart-crm-summary-others.component';
|
|
42
|
+
import { SmartCrmSummaryComponent } from './components/smart-crm-summary/smart-crm-summary.component';
|
|
43
|
+
import { SmartCrmTabsComponent } from './components/smart-crm-tabs/smart-crm-tabs.component';
|
|
44
|
+
import { SmartCrmPrivateRoutingModule } from './smart-crm-private.routing.module';
|
|
45
|
+
import { NgxGpAutocompleteModule } from '@angular-magic/ngx-gp-autocomplete';
|
|
46
|
+
import { InfiniteScrollModule } from 'ngx-infinite-scroll';
|
|
47
|
+
import { QuillModule } from 'ngx-quill';
|
|
48
|
+
import { NgxUploaderModule } from 'ngx-uploader';
|
|
49
|
+
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
|
|
50
|
+
|
|
51
|
+
import { SharedComponentsModule } from '@posiwise/shared-components';
|
|
52
|
+
import { CoreTranslocoModule } from '@posiwise/core-transloco';
|
|
53
|
+
import { DirectivesModule } from '@posiwise/directives';
|
|
54
|
+
import { PipesModule } from '@posiwise/pipes';
|
|
55
|
+
import { PlotlyViaCDNModule } from 'angular-plotly.js';
|
|
56
|
+
import { UiSwitchModule } from 'ngx-ui-switch';
|
|
57
|
+
import { InputTextModule } from 'primeng/inputtext';
|
|
58
|
+
import { NgxPaginationModule } from 'ngx-pagination';
|
|
59
|
+
import { Loader } from '@googlemaps/js-api-loader';
|
|
60
|
+
import { AppConfigService } from '@posiwise/app-config-service';
|
|
61
|
+
import { DragDropModule } from '@angular/cdk/drag-drop';
|
|
62
|
+
import { DropdownModule } from 'primeng/dropdown';
|
|
63
|
+
PlotlyViaCDNModule.setPlotlyVersion('1.55.2');
|
|
64
|
+
@NgModule({
|
|
65
|
+
imports: [
|
|
66
|
+
CommonModule,
|
|
67
|
+
FormsModule,
|
|
68
|
+
NgxPaginationModule,
|
|
69
|
+
PipesModule,
|
|
70
|
+
InputTextModule,
|
|
71
|
+
UiSwitchModule,
|
|
72
|
+
DirectivesModule,
|
|
73
|
+
ReactiveFormsModule,
|
|
74
|
+
NgbModule,
|
|
75
|
+
PlotlyViaCDNModule,
|
|
76
|
+
NgxGpAutocompleteModule,
|
|
77
|
+
SmartCrmPrivateRoutingModule,
|
|
78
|
+
SharedComponentsModule,
|
|
79
|
+
CoreTranslocoModule,
|
|
80
|
+
DragDropModule,
|
|
81
|
+
// SharedModule,
|
|
82
|
+
QuillModule.forRoot(),
|
|
83
|
+
NgxUploaderModule,
|
|
84
|
+
InfiniteScrollModule,
|
|
85
|
+
DropdownModule
|
|
86
|
+
// LazyLoadModules
|
|
87
|
+
],
|
|
88
|
+
providers: [
|
|
89
|
+
{
|
|
90
|
+
provide: TRANSLOCO_SCOPE,
|
|
91
|
+
useValue: {
|
|
92
|
+
scope: 'smart-crm',
|
|
93
|
+
alias: 'Crm'
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
provide: Loader,
|
|
98
|
+
useFactory: (appConfigService: AppConfigService) => {
|
|
99
|
+
return new Loader({
|
|
100
|
+
apiKey: appConfigService.getGoogleApiKey(),
|
|
101
|
+
libraries: ['places']
|
|
102
|
+
});
|
|
103
|
+
},
|
|
104
|
+
deps: [AppConfigService]
|
|
105
|
+
}
|
|
106
|
+
],
|
|
107
|
+
declarations: [
|
|
108
|
+
SmartCrmTabsComponent,
|
|
109
|
+
SmartCrmSummaryComponent,
|
|
110
|
+
SmartCrmCompaniesComponent,
|
|
111
|
+
SmartCrmContactComponent,
|
|
112
|
+
SmartCrmConfigurationComponent,
|
|
113
|
+
SmartCrmSettingsDetailsComponent,
|
|
114
|
+
SmartCrmContactDetailsComponent,
|
|
115
|
+
SmartCrmCompanyDetailsComponent,
|
|
116
|
+
SmartCrmInsightComponent,
|
|
117
|
+
SmartCrmContactInfoComponent,
|
|
118
|
+
SmartCrmLeadsComponent,
|
|
119
|
+
SmartCrmOpportunitiesComponent,
|
|
120
|
+
SmartCrmOpportunitiesDetailsComponent,
|
|
121
|
+
SmartCrmBoardComponent,
|
|
122
|
+
SmartCrmCommunicationsComponent,
|
|
123
|
+
SmartCrmCompanyInfoComponent,
|
|
124
|
+
SmartCrmCompanySourceComponent,
|
|
125
|
+
SmartCrmCompanyFilesComponent,
|
|
126
|
+
SmartCrmWidgetsComponent,
|
|
127
|
+
SmartCrmCustomerSuccessComponent,
|
|
128
|
+
SmartCrmCompetitionComponent,
|
|
129
|
+
SmartCrmOpportunitiesInfoComponent,
|
|
130
|
+
SmartCrmSourceDetailsComponent,
|
|
131
|
+
SmartCrmWidgetsDetailsComponent,
|
|
132
|
+
SmartCrmActionsComponent,
|
|
133
|
+
SmartCrmOpportunitiesListComponent,
|
|
134
|
+
SmartCrmOverviewComponent,
|
|
135
|
+
SmartCrmSummaryActionsComponent,
|
|
136
|
+
SmartCrmSummaryOthersComponent,
|
|
137
|
+
SmartCrmCommunicationsDetailsComponent,
|
|
138
|
+
SmartCrmCommunicationViewDetailsComponent,
|
|
139
|
+
SmartCrmLeadsDetailsComponent,
|
|
140
|
+
SmartCrmMarketingUsersListComponent,
|
|
141
|
+
SmartCrmStagesComponent,
|
|
142
|
+
SmartCrmStageDetailsComponent,
|
|
143
|
+
SmartCrmMarketingViewComponent,
|
|
144
|
+
SmartCrmOpportunityCategoriesComponent,
|
|
145
|
+
SmartCrmOpportunityCategoriesDetailsComponent
|
|
146
|
+
],
|
|
147
|
+
exports: [
|
|
148
|
+
SmartCrmTabsComponent,
|
|
149
|
+
SmartCrmSummaryComponent,
|
|
150
|
+
SmartCrmCompaniesComponent,
|
|
151
|
+
SmartCrmContactComponent,
|
|
152
|
+
SmartCrmConfigurationComponent,
|
|
153
|
+
SmartCrmSettingsDetailsComponent,
|
|
154
|
+
SmartCrmContactDetailsComponent,
|
|
155
|
+
SmartCrmCompanyDetailsComponent,
|
|
156
|
+
SmartCrmInsightComponent,
|
|
157
|
+
SmartCrmContactInfoComponent,
|
|
158
|
+
SmartCrmLeadsComponent,
|
|
159
|
+
SmartCrmOpportunitiesComponent,
|
|
160
|
+
SmartCrmOpportunitiesDetailsComponent,
|
|
161
|
+
SmartCrmBoardComponent,
|
|
162
|
+
SmartCrmCommunicationsComponent,
|
|
163
|
+
SmartCrmCompanyInfoComponent,
|
|
164
|
+
SmartCrmCompanySourceComponent,
|
|
165
|
+
SmartCrmCompanyFilesComponent,
|
|
166
|
+
SmartCrmWidgetsComponent,
|
|
167
|
+
SmartCrmCustomerSuccessComponent,
|
|
168
|
+
SmartCrmCompetitionComponent,
|
|
169
|
+
SmartCrmOpportunitiesInfoComponent,
|
|
170
|
+
SmartCrmSourceDetailsComponent,
|
|
171
|
+
SmartCrmWidgetsDetailsComponent,
|
|
172
|
+
SmartCrmActionsComponent,
|
|
173
|
+
SmartCrmOpportunitiesListComponent,
|
|
174
|
+
SmartCrmOverviewComponent,
|
|
175
|
+
SmartCrmSummaryActionsComponent,
|
|
176
|
+
SmartCrmSummaryOthersComponent,
|
|
177
|
+
SmartCrmCommunicationsDetailsComponent,
|
|
178
|
+
SmartCrmCommunicationViewDetailsComponent,
|
|
179
|
+
SmartCrmLeadsDetailsComponent,
|
|
180
|
+
SmartCrmMarketingUsersListComponent,
|
|
181
|
+
SmartCrmStagesComponent,
|
|
182
|
+
SmartCrmStageDetailsComponent,
|
|
183
|
+
SmartCrmMarketingViewComponent,
|
|
184
|
+
SmartCrmOpportunityCategoriesComponent,
|
|
185
|
+
SmartCrmOpportunityCategoriesDetailsComponent
|
|
186
|
+
]
|
|
187
|
+
})
|
|
188
|
+
export class SmartCrmPrivateModule {}
|