@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
package/.eslintrc.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": ["../../.eslintrc.json"],
|
|
3
|
+
"ignorePatterns": ["!**/*"],
|
|
4
|
+
"overrides": [
|
|
5
|
+
{
|
|
6
|
+
"files": ["*.ts"],
|
|
7
|
+
"rules": {
|
|
8
|
+
"@typescript-eslint/no-explicit-any": "error",
|
|
9
|
+
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }]
|
|
10
|
+
},
|
|
11
|
+
"extends": [
|
|
12
|
+
"plugin:@nx/angular",
|
|
13
|
+
"plugin:@angular-eslint/template/process-inline-templates"
|
|
14
|
+
]
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"files": ["*.html"],
|
|
18
|
+
"extends": ["plugin:@nx/angular-template"],
|
|
19
|
+
"rules": {}
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
}
|
package/ng-package.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
|
|
3
|
+
"dest": "../../dist/libs/smart-crm",
|
|
4
|
+
"lib": {
|
|
5
|
+
"entryFile": "src/index.ts",
|
|
6
|
+
"styleIncludePaths": ["../core-styles/scss"]
|
|
7
|
+
},
|
|
8
|
+
"assets": [
|
|
9
|
+
{
|
|
10
|
+
"glob": "**/*.scss",
|
|
11
|
+
"input": "@posiwise/core-styles/",
|
|
12
|
+
"output": "./assets"
|
|
13
|
+
}
|
|
14
|
+
]
|
|
15
|
+
}
|
package/package.json
CHANGED
|
@@ -1,25 +1,12 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
},
|
|
8
|
-
"dependencies": {
|
|
9
|
-
"tslib": "^2.6.2"
|
|
10
|
-
},
|
|
11
|
-
"sideEffects": false,
|
|
12
|
-
"module": "fesm2022/posiwise-smart-crm.mjs",
|
|
13
|
-
"typings": "index.d.ts",
|
|
14
|
-
"exports": {
|
|
15
|
-
"./package.json": {
|
|
16
|
-
"default": "./package.json"
|
|
2
|
+
"name": "@posiwise/smart-crm",
|
|
3
|
+
"version": "0.0.21",
|
|
4
|
+
"peerDependencies": {
|
|
5
|
+
"@angular/common": "17.3.11",
|
|
6
|
+
"@angular/core": "17.3.11"
|
|
17
7
|
},
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
8
|
+
"dependencies": {
|
|
9
|
+
"tslib": "^2.6.2"
|
|
10
|
+
},
|
|
11
|
+
"sideEffects": false
|
|
12
|
+
}
|
package/project.json
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "smart-crm",
|
|
3
|
+
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
4
|
+
"sourceRoot": "libs/smart-crm/src",
|
|
5
|
+
"prefix": "posiwise",
|
|
6
|
+
"tags": [],
|
|
7
|
+
"projectType": "library",
|
|
8
|
+
"targets": {
|
|
9
|
+
"build": {
|
|
10
|
+
"executor": "@nx/angular:package",
|
|
11
|
+
"outputs": ["{workspaceRoot}/dist/{projectRoot}"],
|
|
12
|
+
"options": {
|
|
13
|
+
"tsConfig": "libs/smart-crm/tsconfig.lib.json",
|
|
14
|
+
"project": "libs/smart-crm/ng-package.json"
|
|
15
|
+
},
|
|
16
|
+
"configurations": {
|
|
17
|
+
"production": {
|
|
18
|
+
"tsConfig": "libs/smart-crm/tsconfig.lib.prod.json"
|
|
19
|
+
},
|
|
20
|
+
"development": {
|
|
21
|
+
"tsConfig": "libs/smart-crm/tsconfig.lib.json"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"defaultConfiguration": "production"
|
|
25
|
+
},
|
|
26
|
+
"test": {
|
|
27
|
+
"executor": "@angular-devkit/build-angular:karma",
|
|
28
|
+
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
|
|
29
|
+
"options": {
|
|
30
|
+
"main": "libs/test-setup.ts",
|
|
31
|
+
"karmaConfig": "libs/karma.conf.js",
|
|
32
|
+
"polyfills": ["zone.js"],
|
|
33
|
+
"sourceMap": false,
|
|
34
|
+
"tsConfig": "libs/smart-crm/tsconfig.spec.json",
|
|
35
|
+
"assets": [
|
|
36
|
+
{
|
|
37
|
+
"glob": "**/*.scss",
|
|
38
|
+
"input": "libs/core-styles/",
|
|
39
|
+
"output": "./assets"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"glob": "**/*",
|
|
43
|
+
"input": "libs/i18n",
|
|
44
|
+
"output": "./assets/i18n/"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"glob": "**/*",
|
|
48
|
+
"input": "./libs/core-images",
|
|
49
|
+
"output": "./assets/img/"
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
"scripts": [
|
|
53
|
+
"node_modules/jquery/dist/jquery.min.js",
|
|
54
|
+
"libs/js-assets/popper.js",
|
|
55
|
+
"node_modules/bootstrap/dist/js/bootstrap.bundle.min.js",
|
|
56
|
+
"node_modules/jstree/dist/jstree.min.js",
|
|
57
|
+
"libs/js-assets/perfect-scrollbar.jquery.min.js",
|
|
58
|
+
"node_modules/psl/dist/psl.min.js",
|
|
59
|
+
"libs/js-assets/main.js",
|
|
60
|
+
"libs/js-assets/global.js"
|
|
61
|
+
],
|
|
62
|
+
"stylePreprocessorOptions": {
|
|
63
|
+
"includePaths": ["libs/core-styles/scss"]
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"lint": {
|
|
68
|
+
"executor": "@nx/eslint:lint",
|
|
69
|
+
"outputs": ["{options.outputFile}"]
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// Private components
|
|
1
2
|
export * from './lib/private/components/smart-crm-accounts/smart-crm-account-details/smart-crm-account-details.component';
|
|
2
3
|
export * from './lib/private/components/smart-crm-accounts/smart-crm-account-files/smart-crm-account-files.component';
|
|
3
4
|
export * from './lib/private/components/smart-crm-accounts/smart-crm-account-info/smart-crm-account-info.component';
|
|
@@ -38,6 +39,8 @@ export * from './lib/private/components/smart-crm-summary/smart-crm-summary.comp
|
|
|
38
39
|
export * from './lib/private/components/smart-crm-tabs/smart-crm-tabs.component';
|
|
39
40
|
export * from './lib/private/smart-crm-private.routing.module';
|
|
40
41
|
export * from './lib/private/smart-crm-private.module';
|
|
42
|
+
|
|
43
|
+
// Public
|
|
41
44
|
export * from './lib/public/components/smart-crm-newsletter-confirmation/smart-crm-newsletter-confirmation.component';
|
|
42
45
|
export * from './lib/public/components/smart-crm-newsletter-unsubscribe/smart-crm-newsletter-unsubscribe.component';
|
|
43
46
|
export * from './lib/public/components/smart-crm-signup/smart-crm-signup.component';
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
<div class="me-auto col-xs-6">
|
|
2
|
+
<a href="javascript:void(0)"
|
|
3
|
+
(click)="back()"
|
|
4
|
+
class="previous"><i class="fa fa-arrow-alt-circle-left" aria-hidden="true"></i></a>
|
|
5
|
+
<h3 class="m-subheader__title m-subheader__title--separator">
|
|
6
|
+
<span>{{ 'Crm.AccountMessage.Account' | transloco }}:
|
|
7
|
+
{{ data?.name ? data?.name : ('Label.AddNew' | transloco) }}</span>
|
|
8
|
+
</h3>
|
|
9
|
+
</div>
|
|
10
|
+
<div class="w-100 text-center mt-3"
|
|
11
|
+
*ngIf="isLoading">
|
|
12
|
+
<p-progressSpinner strokeWidth="2"> </p-progressSpinner>
|
|
13
|
+
</div>
|
|
14
|
+
<div class="p-2 mt-3" *ngIf="!isLoading">
|
|
15
|
+
<form [formGroup]="form"
|
|
16
|
+
(ngSubmit)="onSave()">
|
|
17
|
+
<div class="row">
|
|
18
|
+
<div class="col-12 col-sm-4">
|
|
19
|
+
<pw-input-container [label]="'Crm.AccountMessage.Name' | transloco"
|
|
20
|
+
name="name"
|
|
21
|
+
[errorMsg]="'User.Account.Validation.Name' | transloco">
|
|
22
|
+
<input type="text"
|
|
23
|
+
class="form-control"
|
|
24
|
+
formControlName="name"
|
|
25
|
+
id="name"
|
|
26
|
+
[ngClass]="{ 'is-invalid': submitted && f['name'].errors }" />
|
|
27
|
+
</pw-input-container>
|
|
28
|
+
</div>
|
|
29
|
+
<div class="col-12 col-sm-4">
|
|
30
|
+
<pw-input-container [label]="'Crm.AccountMessage.Location' | transloco"
|
|
31
|
+
[errorMsg]="'Crm.AccountMessage.LocationErrorMessage' | transloco"
|
|
32
|
+
name="location">
|
|
33
|
+
<input ngx-gp-autocomplete
|
|
34
|
+
class="form-control"
|
|
35
|
+
#places="ngx-places"
|
|
36
|
+
formControlName="location"
|
|
37
|
+
(onAddressChange)="handleAddressChange($event)"
|
|
38
|
+
[ngClass]="{ 'is-invalid': submitted && f['location'].errors }" />
|
|
39
|
+
</pw-input-container>
|
|
40
|
+
</div>
|
|
41
|
+
<div class="ui-fluid skills-modal col-sm-4">
|
|
42
|
+
<label class="mb-2">{{ 'Crm.AccountMessage.Country' | transloco
|
|
43
|
+
}}<span class="text-danger required-icon">*</span></label>
|
|
44
|
+
<p-autoComplete formControlName="country"
|
|
45
|
+
[suggestions]="filteredCountries"
|
|
46
|
+
(completeMethod)="onSearchCountry($event)"
|
|
47
|
+
dataKey="code"
|
|
48
|
+
field="name"
|
|
49
|
+
[multiple]="false"
|
|
50
|
+
styleClass="w-100"
|
|
51
|
+
placeholder="Search Country"
|
|
52
|
+
[dropdown]="true"
|
|
53
|
+
[inputStyle]="
|
|
54
|
+
submitted && f['country'].errors
|
|
55
|
+
? { border: '1px solid #ff586b' }
|
|
56
|
+
: { border: '1px solid gray' }
|
|
57
|
+
">
|
|
58
|
+
</p-autoComplete>
|
|
59
|
+
</div>
|
|
60
|
+
<div class="col-12 col-sm-4">
|
|
61
|
+
<pw-input-container [label]="'Crm.AccountMessage.Tel' | transloco"
|
|
62
|
+
name="tel"
|
|
63
|
+
[errorMsg]="'Crm.AccountMessage.TelErrorMessage' | transloco">
|
|
64
|
+
<input type="text"
|
|
65
|
+
class="form-control"
|
|
66
|
+
formControlName="tel"
|
|
67
|
+
id="tel"
|
|
68
|
+
[ngClass]="{ 'is-invalid': submitted && f['tel'].errors }" />
|
|
69
|
+
</pw-input-container>
|
|
70
|
+
</div>
|
|
71
|
+
<div class="ui-fluid skills-modal col-sm-4"
|
|
72
|
+
[class.d-none]="!hasAccess">
|
|
73
|
+
<label class="mb-2">{{ 'Crm.AccountMessage.Owner' | transloco
|
|
74
|
+
}}<span class="text-danger required-icon">*</span></label>
|
|
75
|
+
<p-autoComplete formControlName="owner_id"
|
|
76
|
+
[suggestions]="filteredOwners"
|
|
77
|
+
(completeMethod)="onSearchOwner($event)"
|
|
78
|
+
dataKey="id"
|
|
79
|
+
field="first_name"
|
|
80
|
+
[multiple]="false"
|
|
81
|
+
styleClass="w-100"
|
|
82
|
+
placeholder="Search Owner"
|
|
83
|
+
[dropdown]="true">
|
|
84
|
+
</p-autoComplete>
|
|
85
|
+
</div>
|
|
86
|
+
<div class="col-12 col-sm-4">
|
|
87
|
+
<pw-input-container [label]="'Crm.AccountMessage.CompanyUrl' | transloco"
|
|
88
|
+
name="company_url">
|
|
89
|
+
<input type="url"
|
|
90
|
+
class="form-control"
|
|
91
|
+
formControlName="company_url"
|
|
92
|
+
[ngClass]="{ 'is-invalid': submitted && f['company_url'].errors }" />
|
|
93
|
+
</pw-input-container>
|
|
94
|
+
</div>
|
|
95
|
+
<div class="col-12 col-sm-4 col-lg-4">
|
|
96
|
+
<pw-input-container [label]="'Organization.OrganizationType' | transloco"
|
|
97
|
+
name="organization_type_id"
|
|
98
|
+
*ngIf="organizationTypes$ | async as types">
|
|
99
|
+
<select class="form-select"
|
|
100
|
+
formControlName="organization_type_id"
|
|
101
|
+
[ngClass]="{ 'is-invalid': submitted && f['organization_type_id'].errors }">
|
|
102
|
+
<option *ngFor="let option of types['organization_types']"
|
|
103
|
+
[value]="option.id">
|
|
104
|
+
{{ option.name }}
|
|
105
|
+
</option>
|
|
106
|
+
</select>
|
|
107
|
+
</pw-input-container>
|
|
108
|
+
</div>
|
|
109
|
+
<div class="col-12 col-sm-4 col-lg-4">
|
|
110
|
+
<pw-input-container [label]="'Organization.OrganizationIndustry' | transloco"
|
|
111
|
+
name="organization_industry_id"
|
|
112
|
+
*ngIf="organizationIndustries$ | async as industries">
|
|
113
|
+
<select class="form-select"
|
|
114
|
+
formControlName="organization_industry_id"
|
|
115
|
+
[ngClass]="{ 'is-invalid': submitted && f['organization_industry_id'].errors }">
|
|
116
|
+
<option *ngFor="let option of industries['organization_industries']"
|
|
117
|
+
[value]="option.id">
|
|
118
|
+
{{ option.name }}
|
|
119
|
+
</option>
|
|
120
|
+
</select>
|
|
121
|
+
</pw-input-container>
|
|
122
|
+
</div>
|
|
123
|
+
<div class="col-12 col-sm-4 col-lg-4">
|
|
124
|
+
<pw-input-container [label]="'Crm.AccountMessage.Size' | transloco"
|
|
125
|
+
name="organization_size_id"
|
|
126
|
+
*ngIf="organizationSizes$ | async as sizes">
|
|
127
|
+
<select class="form-select"
|
|
128
|
+
formControlName="organization_size_id"
|
|
129
|
+
[ngClass]="{ 'is-invalid': submitted && f['organization_size_id'].errors }">
|
|
130
|
+
<option *ngFor="let option of sizes['organization_sizes']"
|
|
131
|
+
[value]="option.id">
|
|
132
|
+
{{ option.name }}
|
|
133
|
+
</option>
|
|
134
|
+
</select>
|
|
135
|
+
</pw-input-container>
|
|
136
|
+
</div>
|
|
137
|
+
<div class="col-12 col-sm-4 col-lg-4">
|
|
138
|
+
<pw-input-container [label]="'Crm.AccountMessage.Status' | transloco"
|
|
139
|
+
name="status">
|
|
140
|
+
<select class="form-select"
|
|
141
|
+
formControlName="status"
|
|
142
|
+
[ngClass]="{ 'is-invalid': submitted && f['status'].errors }">
|
|
143
|
+
<option *ngFor="let option of status"
|
|
144
|
+
[value]="option">{{ option }}</option>
|
|
145
|
+
</select>
|
|
146
|
+
</pw-input-container>
|
|
147
|
+
</div>
|
|
148
|
+
<div class="col-12 col-sm-4 col-lg-4">
|
|
149
|
+
<pw-input-container [label]="'Crm.AccountMessage.Priority' | transloco"
|
|
150
|
+
name="priority">
|
|
151
|
+
<select class="form-select"
|
|
152
|
+
formControlName="priority"
|
|
153
|
+
[ngClass]="{ 'is-invalid': submitted && f['priority'].errors }">
|
|
154
|
+
<option *ngFor="let option of priority"
|
|
155
|
+
[value]="option">
|
|
156
|
+
{{ option }}
|
|
157
|
+
</option>
|
|
158
|
+
</select>
|
|
159
|
+
</pw-input-container>
|
|
160
|
+
</div>
|
|
161
|
+
<div class="col-12 col-sm-4 col-lg-4">
|
|
162
|
+
<pw-input-container [label]="'Crm.AccountMessage.Source' | transloco"
|
|
163
|
+
name="crm_source_id">
|
|
164
|
+
<select class="form-select"
|
|
165
|
+
formControlName="crm_source_id"
|
|
166
|
+
[ngClass]="{ 'is-invalid': submitted && f['crm_source_id'].errors }">
|
|
167
|
+
<option *ngFor="let option of source"
|
|
168
|
+
[value]="option.id">
|
|
169
|
+
{{ option.name }}
|
|
170
|
+
</option>
|
|
171
|
+
</select>
|
|
172
|
+
</pw-input-container>
|
|
173
|
+
</div>
|
|
174
|
+
<div class="col-12 col-sm-12 mt-2">
|
|
175
|
+
<pw-input-container [label]="'Crm.AccountMessage.Description' | transloco"
|
|
176
|
+
name="description">
|
|
177
|
+
<textarea rows="5"
|
|
178
|
+
type="text"
|
|
179
|
+
class="form-control"
|
|
180
|
+
formControlName="description"
|
|
181
|
+
id="description"
|
|
182
|
+
[ngClass]="{ 'is-invalid': submitted && f['description'].errors }"></textarea>
|
|
183
|
+
</pw-input-container>
|
|
184
|
+
</div>
|
|
185
|
+
<div class="col-12 text-end mt-3">
|
|
186
|
+
<button type="button"
|
|
187
|
+
class="btn btn-outline-default me-2"
|
|
188
|
+
(click)="back()">
|
|
189
|
+
{{ 'Button.Cancel' | transloco }}
|
|
190
|
+
</button>
|
|
191
|
+
<button type="submit"
|
|
192
|
+
[buttonBusy]="buttonBusy"
|
|
193
|
+
class="btn btn-primary"
|
|
194
|
+
[disabled]="form.invalid">
|
|
195
|
+
{{ 'Button.Submit' | transloco }}
|
|
196
|
+
</button>
|
|
197
|
+
</div>
|
|
198
|
+
</div>
|
|
199
|
+
</form>
|
|
200
|
+
</div>
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import { TestBed } from '@angular/core/testing';
|
|
2
|
+
import { Router } from '@angular/router';
|
|
3
|
+
import { byText } from '@ngneat/spectator';
|
|
4
|
+
import {
|
|
5
|
+
PermissionService,
|
|
6
|
+
CommonService,
|
|
7
|
+
GeoService,
|
|
8
|
+
SubscriptionService,
|
|
9
|
+
UserService,
|
|
10
|
+
CommonServicesModule
|
|
11
|
+
} from '@posiwise/common-services';
|
|
12
|
+
import { CrmService } from '@posiwise/smart-crm-shared';
|
|
13
|
+
import { DEFAULT_USER, TestHelper } from '@posiwise/test-helpers';
|
|
14
|
+
import { SharedModule } from '@posiwise/shared-module';
|
|
15
|
+
import { of } from 'rxjs';
|
|
16
|
+
import { SmartCrmPrivateModule } from '../../../smart-crm-private.module';
|
|
17
|
+
import { SmartCrmCompanyDetailsComponent } from './smart-crm-account-details.component';
|
|
18
|
+
import { MockProvider } from 'ng-mocks';
|
|
19
|
+
|
|
20
|
+
class UserServiceMock {
|
|
21
|
+
getUserState() {
|
|
22
|
+
return of({ currentUser: DEFAULT_USER });
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
getUserInfo() {
|
|
26
|
+
return of(DEFAULT_USER);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
describe('SmartCrmCompanyDetailsComponent', () => {
|
|
30
|
+
const createComponent = TestHelper.createComponentFactory({
|
|
31
|
+
component: SmartCrmCompanyDetailsComponent,
|
|
32
|
+
imports: [SharedModule, SmartCrmPrivateModule, CommonServicesModule],
|
|
33
|
+
providers: [
|
|
34
|
+
...TestHelper.TEST_PROVIDERS,
|
|
35
|
+
MockProvider(PermissionService, {
|
|
36
|
+
evaluatePermissions: () => {
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
}),
|
|
40
|
+
MockProvider(CrmService, {
|
|
41
|
+
getAccountDetail: () =>
|
|
42
|
+
of({
|
|
43
|
+
id: 7,
|
|
44
|
+
name: 'test',
|
|
45
|
+
subscription_id: 31,
|
|
46
|
+
location: 'Hyderabad, Telangana, India',
|
|
47
|
+
country: 'IN',
|
|
48
|
+
owner_id: 25,
|
|
49
|
+
company_url: '',
|
|
50
|
+
status: '{}',
|
|
51
|
+
priority: 'A - Ideal Fit',
|
|
52
|
+
owner: {
|
|
53
|
+
id: 25,
|
|
54
|
+
first_name: 'saurabh'
|
|
55
|
+
}
|
|
56
|
+
}),
|
|
57
|
+
updateAccount: () => of({}),
|
|
58
|
+
postAccount: () => of({}),
|
|
59
|
+
getCrmAccountDefaultValues: () =>
|
|
60
|
+
of({
|
|
61
|
+
status: [
|
|
62
|
+
'Prospect',
|
|
63
|
+
'Active Trial',
|
|
64
|
+
'Active Customer',
|
|
65
|
+
'Old Customer',
|
|
66
|
+
'Dead',
|
|
67
|
+
'Competitor'
|
|
68
|
+
],
|
|
69
|
+
priority: [
|
|
70
|
+
'A - Ideal Fit',
|
|
71
|
+
'B - High Potential',
|
|
72
|
+
'C - Low Potential',
|
|
73
|
+
'D - Out of market'
|
|
74
|
+
],
|
|
75
|
+
source: [
|
|
76
|
+
{
|
|
77
|
+
id: 6,
|
|
78
|
+
name: 'test',
|
|
79
|
+
is_default: true,
|
|
80
|
+
subscription_id: 31
|
|
81
|
+
}
|
|
82
|
+
]
|
|
83
|
+
})
|
|
84
|
+
}),
|
|
85
|
+
MockProvider(CommonService, {
|
|
86
|
+
getOrganizationTypes: () =>
|
|
87
|
+
of({
|
|
88
|
+
organization_types: [],
|
|
89
|
+
object_count: 0,
|
|
90
|
+
unfiltered_count: 0
|
|
91
|
+
}),
|
|
92
|
+
getOrganizationSizes: () =>
|
|
93
|
+
of({
|
|
94
|
+
organization_sizes: []
|
|
95
|
+
}),
|
|
96
|
+
getOrganizationIndustries: () =>
|
|
97
|
+
of({
|
|
98
|
+
organization_industries: []
|
|
99
|
+
})
|
|
100
|
+
}),
|
|
101
|
+
MockProvider(GeoService, {
|
|
102
|
+
getCountries: () => of([{ name: 'test', code: 'te' }])
|
|
103
|
+
}),
|
|
104
|
+
MockProvider(SubscriptionService, {
|
|
105
|
+
getEnrolledSubscription: () =>
|
|
106
|
+
of({
|
|
107
|
+
members: [
|
|
108
|
+
{
|
|
109
|
+
id: 25,
|
|
110
|
+
first_name: 'saurabh'
|
|
111
|
+
}
|
|
112
|
+
],
|
|
113
|
+
object_count: 1,
|
|
114
|
+
unfiltered_count: 1,
|
|
115
|
+
owner_id: 25,
|
|
116
|
+
admins: []
|
|
117
|
+
})
|
|
118
|
+
}),
|
|
119
|
+
{
|
|
120
|
+
provide: UserService,
|
|
121
|
+
useClass: UserServiceMock
|
|
122
|
+
}
|
|
123
|
+
]
|
|
124
|
+
});
|
|
125
|
+
|
|
126
|
+
beforeEach(() => {
|
|
127
|
+
TestHelper.setUpPermissionsAndUser();
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
it('should create', async () => {
|
|
131
|
+
TestHelper.setActivatedRoute({
|
|
132
|
+
parent: { params: of({ slug: 'posiwise-263' }) }
|
|
133
|
+
});
|
|
134
|
+
const spectator = await createComponent();
|
|
135
|
+
expect(spectator.component).toBeTruthy();
|
|
136
|
+
});
|
|
137
|
+
|
|
138
|
+
it('should add submit form ', async () => {
|
|
139
|
+
TestHelper.setActivatedRoute({
|
|
140
|
+
parent: { params: of({ slug: 'posiwise-263' }) }
|
|
141
|
+
});
|
|
142
|
+
const router = TestBed.inject(Router);
|
|
143
|
+
spyOn(router, 'navigate').and.stub();
|
|
144
|
+
const spectator = await createComponent();
|
|
145
|
+
const service = TestBed.inject(CrmService);
|
|
146
|
+
const spy = spyOn(service, 'postAccount').and.callThrough();
|
|
147
|
+
spectator.typeInElement('test', 'input[formControlName="name"]');
|
|
148
|
+
spectator.typeInElement('hyderabad', 'input[formControlName="location"]');
|
|
149
|
+
spectator.click(
|
|
150
|
+
'p-autocomplete[formcontrolname="owner_id"] button.p-autocomplete-dropdown'
|
|
151
|
+
);
|
|
152
|
+
const owner = spectator.query('.p-autocomplete-panel > :first-child >:first-child');
|
|
153
|
+
spectator.click(owner);
|
|
154
|
+
spectator.click('p-autocomplete[formcontrolname="country"] button.p-autocomplete-dropdown');
|
|
155
|
+
const country = spectator.query('.p-autocomplete-panel > :first-child >:first-child');
|
|
156
|
+
spectator.click(country);
|
|
157
|
+
spectator.selectOption(
|
|
158
|
+
'select[formControlName="status"]',
|
|
159
|
+
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
|
|
160
|
+
spectator.query(byText('Prospect')) as HTMLOptionElement
|
|
161
|
+
);
|
|
162
|
+
spectator.selectOption(
|
|
163
|
+
'select[formControlName="priority"]',
|
|
164
|
+
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
|
|
165
|
+
spectator.query(byText('A - Ideal Fit')) as HTMLOptionElement
|
|
166
|
+
);
|
|
167
|
+
spectator.click('button[type="submit"]');
|
|
168
|
+
expect(spy).toHaveBeenCalledTimes(1);
|
|
169
|
+
});
|
|
170
|
+
|
|
171
|
+
it('should edit', async () => {
|
|
172
|
+
TestHelper.setActivatedRoute({
|
|
173
|
+
params: { id: 1 },
|
|
174
|
+
parent: { params: of({ slug: 'posiwise-263' }) }
|
|
175
|
+
});
|
|
176
|
+
const router = TestBed.inject(Router);
|
|
177
|
+
spyOn(router, 'navigate').and.stub();
|
|
178
|
+
const spectator = await createComponent();
|
|
179
|
+
const service = TestBed.inject(CrmService);
|
|
180
|
+
const spy = spyOn(service, 'updateAccount').and.callThrough();
|
|
181
|
+
spectator.typeInElement('test2', 'input[formControlName="name"]');
|
|
182
|
+
spectator.click('button[type="submit"]');
|
|
183
|
+
expect(spy).toHaveBeenCalledTimes(1);
|
|
184
|
+
});
|
|
185
|
+
});
|