@wisemen/wise-crm-web 1.3.0 → 2.0.0-alpha.0
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/dist/BusinessDetailView-D8HooXJV.js +27 -0
- package/dist/CrmDetailView.vue_vue_type_script_setup_true_lang-BkLvUQyy.js +90 -0
- package/dist/DealCommunicationTabView-D6zhIjxy.js +199 -0
- package/dist/DealDetailView-CgbWlPgR.js +1393 -0
- package/dist/IndividualDetailView-B9LzHUAR.js +27 -0
- package/dist/index-BCf_EIrG.js +16643 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +1694 -1288
- package/dist/index.js +27 -5598
- package/dist/style.css +1 -2
- package/dist/style.d.ts +1 -0
- package/dist/testing.d.ts +66 -0
- package/dist/testing.js +386 -366
- package/dist/uuid.util-B9bkU4IX.js +6560 -0
- package/package.json +56 -45
- package/README.md +0 -1037
- package/dist/ActivityIcon-DNdtN-M_.js +0 -19
- package/dist/AppSkeletonLoader-Chnz5oZv.js +0 -1099
- package/dist/AttachmentIcon-BLUd7LaN.js +0 -19
- package/dist/BoldIcon-WRYUWz15.js +0 -16
- package/dist/BookIcon-Bb3r5y_J.js +0 -19
- package/dist/BuildingIcon-DFutRg8d.js +0 -19
- package/dist/BuildingsIcon-BVHy6yoa.js +0 -19
- package/dist/BulletListIcon-BhOXLSBa.js +0 -16
- package/dist/BusinessDetailSidebarProvider-D__S8sa1.js +0 -2946
- package/dist/BusinessDetailView-Cu96XfzM.js +0 -24
- package/dist/ChevronDownIcon-BmyTSPND.js +0 -19
- package/dist/ClockIcon-BYfZAvIE.js +0 -23
- package/dist/ClockPlusIcon-BcNi0Y9I.js +0 -23
- package/dist/CopyIcon-2eV8MRv_.js +0 -19
- package/dist/CrmDetailHeaderCard-CacrRk2b.js +0 -2523
- package/dist/CrmDetailView-BJb6FSsY.js +0 -67
- package/dist/DealCommunicationTabView-CA1mbm_c.js +0 -140
- package/dist/DealDetailView-aB7D0WZu.js +0 -1049
- package/dist/DealExternalAttachment-wYY7tzfj.js +0 -179
- package/dist/DealIcon-BwUWYDxo.js +0 -19
- package/dist/DealSendMailDialog-CMcszATV.js +0 -1566
- package/dist/DownloadCloudIcon-BSrLGGrY.js +0 -19
- package/dist/EditWithLineIcon-BKYDPJOY.js +0 -19
- package/dist/Error-D6dRLq_g.js +0 -13186
- package/dist/FileIcon-DL1e1tAu.js +0 -19
- package/dist/FilterLinesIcon-DgVMySAE.js +0 -22
- package/dist/H1Icon-B6NEsEbj.js +0 -17
- package/dist/H2Icon-CNof5Ohu.js +0 -17
- package/dist/H3Icon-B2F2Tb6r.js +0 -17
- package/dist/HashIcon-C_XttKfW.js +0 -19
- package/dist/HomeFilledIcon-DtZ2eXxt.js +0 -16
- package/dist/IndividualDetailSidebarProvider-DZxDw1zQ.js +0 -609
- package/dist/IndividualDetailView-BeCdDJDk.js +0 -24
- package/dist/ItalicIcon-DqBns3yy.js +0 -17
- package/dist/LayersTreeIcon-DZZCSCY9.js +0 -23
- package/dist/LinkBrokenIcon-BNBpWSi7.js +0 -19
- package/dist/LinkExternalIcon-B7SHeB1_.js +0 -19
- package/dist/LinkIcon-8bCrZEv9.js +0 -17
- package/dist/LocationPinIcon-UySRqSfG.js +0 -19
- package/dist/MailIcon-BT7gSIZb.js +0 -19
- package/dist/MobilePhoneIcon-_KQGnCSS.js +0 -19
- package/dist/NumberedListIcon-B-JVTSAe.js +0 -17
- package/dist/PhoneIcon-DGGW_MNR.js +0 -19
- package/dist/RefreshIcon-D1QWfdPD.js +0 -19
- package/dist/SendIcon-BtJ-NCec.js +0 -19
- package/dist/SettingsIcon-CWFwJelS.js +0 -25
- package/dist/StarOutlineIcon-C-ELTCDQ.js +0 -19
- package/dist/StarYellowIcon-7wuNWaQO.js +0 -19
- package/dist/ThreeDotsIcon-C56RWk-0.js +0 -32
- package/dist/TimeLineMarkerIcon-DLmPwfs6.js +0 -18
- package/dist/TrashIcon-o4PWmcYe.js +0 -20
- package/dist/UploadCloudIcon-D2tWB0NP.js +0 -19
- package/dist/UserCircleIcon-DiDajcIH.js +0 -23
- package/dist/UserIcon-Bv1eF7ln.js +0 -22
- package/dist/VerticalDotsIcon-YcD73UqY.js +0 -20
- package/dist/WalletIcon-CUh92U5K.js +0 -19
- package/dist/_plugin-vue_export-helper-D3hKq4w_.js +0 -8
- package/dist/api/mutations/business/businessAddChildBusiness.mutation.d.ts +0 -8
- package/dist/api/mutations/business/businessBillingInformationUpsert.mutation.d.ts +0 -9
- package/dist/api/mutations/business/businessContactPersonUpdate.mutation.d.ts +0 -10
- package/dist/api/mutations/business/businessCreate.mutation.d.ts +0 -33
- package/dist/api/mutations/business/businessLinkContactPerson.mutation.d.ts +0 -13
- package/dist/api/mutations/business/businessPrimaryContactPersonUpdate.mutation.d.ts +0 -9
- package/dist/api/mutations/business/businessUnlinkContactPerson.mutation.d.ts +0 -10
- package/dist/api/mutations/business/businessUpdate.mutation.d.ts +0 -31
- package/dist/api/mutations/contactPersonCreate.mutation.d.ts +0 -11
- package/dist/api/mutations/deal/dealContactPersonUpdate.mutation.d.ts +0 -12
- package/dist/api/mutations/deal/dealCreate.mutation.d.ts +0 -10
- package/dist/api/mutations/deal/dealLinkContactPerson.mutation.d.ts +0 -12
- package/dist/api/mutations/deal/dealSetPrimaryContactPerson.mutation.d.ts +0 -14
- package/dist/api/mutations/deal/dealTransition.mutation.d.ts +0 -10
- package/dist/api/mutations/deal/dealUnlinkContactPerson.mutation.d.ts +0 -10
- package/dist/api/mutations/deal/dealUpdate.mutation.d.ts +0 -30
- package/dist/api/mutations/individual/individualBillingInformationUpdate.mutation.d.ts +0 -7
- package/dist/api/mutations/individual/individualContactPersonUpdate.mutation.d.ts +0 -14
- package/dist/api/mutations/individual/individualCreate.mutation.d.ts +0 -2
- package/dist/api/mutations/individual/individualGrant.mutation.d.ts +0 -8
- package/dist/api/mutations/individual/individualLinkContactPerson.mutation.d.ts +0 -13
- package/dist/api/mutations/individual/individualSetPrimaryContactPerson.mutation.d.ts +0 -13
- package/dist/api/mutations/individual/individualUnlinkContactPerson.mutation.d.ts +0 -9
- package/dist/api/mutations/individual/individualUpdate.mutation.d.ts +0 -27
- package/dist/api/mutations/mail/mailCreate.mutation.d.ts +0 -10
- package/dist/api/mutations/mail-template/mailTemplateUpdate.mutation.d.ts +0 -23
- package/dist/api/mutations/noteBusinessCreate.mutation.d.ts +0 -8
- package/dist/api/mutations/noteDealCreate.mutation.d.ts +0 -8
- package/dist/api/mutations/noteDelete.mutation.d.ts +0 -6
- package/dist/api/mutations/noteIndividualCreate.mutation.d.ts +0 -8
- package/dist/api/mutations/noteUpdate.mutation.d.ts +0 -13
- package/dist/api/queries/board/boardColumnTransition.query.d.ts +0 -5
- package/dist/api/queries/board/boardColumnsIndex.query.d.ts +0 -2
- package/dist/api/queries/business/businessActivityIndex.query.d.ts +0 -7
- package/dist/api/queries/business/businessBillingInformation.query.d.ts +0 -5
- package/dist/api/queries/business/businessContactPersonDetail.query.d.ts +0 -6
- package/dist/api/queries/business/businessDetail.query.d.ts +0 -5
- package/dist/api/queries/business/businessIndex.query.d.ts +0 -221
- package/dist/api/queries/business/businessStatistics.query.d.ts +0 -3
- package/dist/api/queries/cbe/cbeEnterpriseSearchByTerm.query.d.ts +0 -3
- package/dist/api/queries/deal/dealContactPersonDetail.query.d.ts +0 -5
- package/dist/api/queries/deal/dealDetail.query.d.ts +0 -4
- package/dist/api/queries/deal/dealIndex.query.d.ts +0 -220
- package/dist/api/queries/globalSearch.queries.d.ts +0 -5
- package/dist/api/queries/individual/individualActivityIndex.query.d.ts +0 -7
- package/dist/api/queries/individual/individualBillingInformation.query.d.ts +0 -5
- package/dist/api/queries/individual/individualContactPersonDetail.query.d.ts +0 -5
- package/dist/api/queries/individual/individualDetail.query.d.ts +0 -5
- package/dist/api/queries/individual/individualIndex.query.d.ts +0 -220
- package/dist/api/queries/individual/individualStatistics.query.d.ts +0 -3
- package/dist/api/queries/mail/mailIndex.query.d.ts +0 -4
- package/dist/api/queries/mail-template/mailTemplateDetail.query.d.ts +0 -5
- package/dist/api/queries/mail-template/mailTemplateIndex.query.d.ts +0 -220
- package/dist/api/queries/noteBusinessIndex.query.d.ts +0 -222
- package/dist/api/queries/noteDealIndex.query.d.ts +0 -222
- package/dist/api/queries/noteIndividualIndex.query.d.ts +0 -222
- package/dist/api/queries/recentEntities.query.d.ts +0 -220
- package/dist/api/queries/user/userIndex.query.d.ts +0 -220
- package/dist/api/services/board.service.d.ts +0 -8
- package/dist/api/services/business.service.d.ts +0 -34
- package/dist/api/services/cbe.service.d.ts +0 -5
- package/dist/api/services/customFieldDefinition.service.d.ts +0 -5
- package/dist/api/services/deal.service.d.ts +0 -27
- package/dist/api/services/globalSearch.service.d.ts +0 -5
- package/dist/api/services/individual.service.d.ts +0 -34
- package/dist/api/services/mail.service.d.ts +0 -10
- package/dist/api/services/mailTemplate.service.d.ts +0 -12
- package/dist/api/services/note.service.d.ts +0 -20
- package/dist/api/services/recentEntities.service.d.ts +0 -6
- package/dist/api/services/tenantConfig.service.d.ts +0 -4
- package/dist/api/services/user.service.d.ts +0 -6
- package/dist/business/BusinessAutocomplete.vue.d.ts +0 -24
- package/dist/business/BusinessDialog.vue.d.ts +0 -15
- package/dist/business/businessDialog.context.d.ts +0 -7
- package/dist/business/content/BusinessAddExistingChildForm.vue.d.ts +0 -12
- package/dist/business/content/BusinessBillingInformationCard.vue.d.ts +0 -7
- package/dist/business/content/BusinessBillingInformationUpdateForm.vue.d.ts +0 -13
- package/dist/business/content/BusinessContactPersonUpdateForm.vue.d.ts +0 -9
- package/dist/business/content/BusinessInfoForm.vue.d.ts +0 -11
- package/dist/business/content/BusinessInfoUpdateCard.vue.d.ts +0 -11
- package/dist/business/dialogs/BusinessAddChildBusinessDialog.vue.d.ts +0 -11
- package/dist/business/dialogs/BusinessContactPersonCreateDialog.vue.d.ts +0 -22
- package/dist/business/dialogs/BusinessContactPersonUpdateDialog.vue.d.ts +0 -13
- package/dist/business/routes/business.routes.d.ts +0 -3
- package/dist/business/sidebar/BusinessDetailSidebar.vue.d.ts +0 -7
- package/dist/business/sidebar/BusinessDetailSidebarAccordionBusinessInfo.vue.d.ts +0 -11
- package/dist/business/sidebar/BusinessDetailSidebarAccordionBusinessInfoChildren.vue.d.ts +0 -11
- package/dist/business/sidebar/BusinessDetailSidebarActivityContent.vue.d.ts +0 -7
- package/dist/business/sidebar/BusinessDetailSidebarNotesContent.vue.d.ts +0 -7
- package/dist/business/sidebar/BusinessDetailSidebarOverviewContent.vue.d.ts +0 -7
- package/dist/business/sidebar/BusinessDetailSidebarProvider.vue.d.ts +0 -7
- package/dist/business/views/BusinessOverview.vue.d.ts +0 -7
- package/dist/business/views/components/BusinessOverviewTableNameCell.vue.d.ts +0 -7
- package/dist/business/views/detail/BusinessDetailView.vue.d.ts +0 -10
- package/dist/client/apiErrorCode.gen.d.ts +0 -93
- package/dist/client/client/client.gen.d.ts +0 -2
- package/dist/client/client/index.d.ts +0 -7
- package/dist/client/client/types.gen.d.ts +0 -124
- package/dist/client/client/utils.gen.d.ts +0 -38
- package/dist/client/client.gen.d.ts +0 -12
- package/dist/client/core/auth.gen.d.ts +0 -18
- package/dist/client/core/bodySerializer.gen.d.ts +0 -17
- package/dist/client/core/params.gen.d.ts +0 -33
- package/dist/client/core/pathSerializer.gen.d.ts +0 -33
- package/dist/client/core/serverSentEvents.gen.d.ts +0 -71
- package/dist/client/core/types.gen.d.ts +0 -78
- package/dist/client/core/utils.gen.d.ts +0 -14
- package/dist/client/index.d.ts +0 -2
- package/dist/client/sdk.gen.d.ts +0 -154
- package/dist/client/types.gen.d.ts +0 -6619
- package/dist/client/zod.gen.d.ts +0 -23953
- package/dist/client-BpnfhHgS.js +0 -4183
- package/dist/component-variants/iconButton.variant.d.ts +0 -2
- package/dist/component-variants/index.d.ts +0 -1
- package/dist/components/action-tooltip/ActionTooltip.vue.d.ts +0 -27
- package/dist/components/action-tooltip/index.d.ts +0 -1
- package/dist/components/activity/ActivityList.vue.d.ts +0 -9
- package/dist/components/activity/ActivityListItem.vue.d.ts +0 -8
- package/dist/components/activity/ActivityListItemMessage.vue.d.ts +0 -7
- package/dist/components/animation/AnimateHeight.vue.d.ts +0 -13
- package/dist/components/animation/AnimateWidth.vue.d.ts +0 -16
- package/dist/components/animation/FormCardSubmitButtonTransition.vue.d.ts +0 -16
- package/dist/components/animation/OpenCrmDetailTransition.vue.d.ts +0 -13
- package/dist/components/api-error/ApiError.vue.d.ts +0 -7
- package/dist/components/app/AppAndOrSeparator.vue.d.ts +0 -13
- package/dist/components/app/AppForm.vue.d.ts +0 -32
- package/dist/components/app/AppGlobalFormError.vue.d.ts +0 -22
- package/dist/components/app/AppGoogleMaps.vue.d.ts +0 -10
- package/dist/components/app/AppGrid.vue.d.ts +0 -16
- package/dist/components/app/AppIconLabelPair.vue.d.ts +0 -10
- package/dist/components/app/AppSidebarFormFooter.vue.d.ts +0 -13
- package/dist/components/app/AppSidebarFormSubmitButton.vue.d.ts +0 -14
- package/dist/components/app/avatar-name/AppAvatarName.vue.d.ts +0 -6
- package/dist/components/app/button/AppUnstyledButton.vue.d.ts +0 -24
- package/dist/components/app/card/AppCard.vue.d.ts +0 -20
- package/dist/components/app/decorative/GridDecorativeBackgroundPattern.vue.d.ts +0 -3
- package/dist/components/app/dialog/AppConfirmDialog.vue.d.ts +0 -19
- package/dist/components/app/dialog/AppDialog.vue.d.ts +0 -21
- package/dist/components/app/dialog/AppDialogActionCancel.vue.d.ts +0 -8
- package/dist/components/app/dialog/AppDialogActionPrimary.vue.d.ts +0 -15
- package/dist/components/app/dialog/AppDialogActions.vue.d.ts +0 -13
- package/dist/components/app/dialog/AppDialogContainer.vue.d.ts +0 -13
- package/dist/components/app/dialog/AppDialogHeader.vue.d.ts +0 -19
- package/dist/components/app/dialog/AppDialogStepper.vue.d.ts +0 -25
- package/dist/components/app/dialog/AppEntityDialog.vue.d.ts +0 -25
- package/dist/components/app/drawer/AppDrawer.vue.d.ts +0 -21
- package/dist/components/app/drawer/AppDrawerHeader.vue.d.ts +0 -7
- package/dist/components/app/drawer/AppDrawerRoot.vue.d.ts +0 -17
- package/dist/components/app/empty-state/AppEmptyState.vue.d.ts +0 -9
- package/dist/components/app/group/AppGroup.vue.d.ts +0 -24
- package/dist/components/app/height-transition/AppHeightTransition.vue.d.ts +0 -13
- package/dist/components/app/infinite-scroll/AppInfiniteScroll.vue.d.ts +0 -19
- package/dist/components/app/rich-text-field/AppRichTextField.vue.d.ts +0 -36
- package/dist/components/app/rich-text-field/AppRichTextFieldLinkDialog.vue.d.ts +0 -9
- package/dist/components/app/separator/AppSeparator.vue.d.ts +0 -8
- package/dist/components/app/tags-input-field/AppTagsInputField.vue.d.ts +0 -31
- package/dist/components/app/vat-number-field/AppVatNumberField.vue.d.ts +0 -21
- package/dist/components/auto-focus/AutoFocus.vue.d.ts +0 -13
- package/dist/components/base/fieldset/BaseFieldset.vue.d.ts +0 -13
- package/dist/components/base/fieldset/BaseFieldsetLegend.vue.d.ts +0 -17
- package/dist/components/base/fieldset/baseFieldset.context.d.ts +0 -5
- package/dist/components/button-tooltip/ButtonTooltip.vue.d.ts +0 -25
- package/dist/components/cbe/CbeAutocomplete.vue.d.ts +0 -18
- package/dist/components/center-content/CenterContent.vue.d.ts +0 -13
- package/dist/components/clickable-element/ClickableElement.vue.d.ts +0 -20
- package/dist/components/clickable-element/index.d.ts +0 -1
- package/dist/components/color-provider/AppColorProvider.vue.d.ts +0 -17
- package/dist/components/column-layout/ColumnLayout.vue.d.ts +0 -24
- package/dist/components/column-layout/index.d.ts +0 -1
- package/dist/components/crm/CrmDetailView.vue.d.ts +0 -22
- package/dist/components/crm/CrmOverviewContent.vue.d.ts +0 -3
- package/dist/components/crm/search/CrmSearchDialog.vue.d.ts +0 -15
- package/dist/components/crm/search/CrmSearchDialogContent.vue.d.ts +0 -13
- package/dist/components/crm/search/CrmSearchDialogContentEmptyState.vue.d.ts +0 -12
- package/dist/components/crm/search/CrmSearchTrigger.vue.d.ts +0 -8
- package/dist/components/crm/search/CrmSearchTriggerActions.vue.d.ts +0 -9
- package/dist/components/crm-detail/CrmDetailAccordionRoot.vue.d.ts +0 -19
- package/dist/components/crm-detail/CrmDetailContainer.vue.d.ts +0 -13
- package/dist/components/crm-detail/CrmDetailContent.vue.d.ts +0 -19
- package/dist/components/crm-detail/CrmDetailHeaderCard.vue.d.ts +0 -24
- package/dist/components/crm-detail/CrmDetailHeaderContactTooltip.vue.d.ts +0 -7
- package/dist/components/crm-detail/CrmDetailSidebarAccordionBillingInformation.vue.d.ts +0 -8
- package/dist/components/crm-detail/CrmDetailSidebarAccordionContactPersonInfo.vue.d.ts +0 -14
- package/dist/components/crm-detail/CrmDetailSidebarAccordionCustomerInfo.vue.d.ts +0 -7
- package/dist/components/crm-detail/CrmDetailSidebarAccordionGenericContactPersonInfo.vue.d.ts +0 -27
- package/dist/components/crm-detail/CrmDetailSidebarAccordionHeaderIconButton.vue.d.ts +0 -12
- package/dist/components/crm-detail/CrmDetailSidebarAccordionItem.vue.d.ts +0 -24
- package/dist/components/crm-detail/CrmDetailSidebarCard.vue.d.ts +0 -13
- package/dist/components/crm-detail/CrmDetailSidebarMapCard.vue.d.ts +0 -7
- package/dist/components/crm-detail/CrmDetailSidebarTabs.vue.d.ts +0 -29
- package/dist/components/custom-field/CustomFieldCheckbox.vue.d.ts +0 -9
- package/dist/components/custom-field/CustomFieldDate.vue.d.ts +0 -9
- package/dist/components/custom-field/CustomFieldDefinitionForm.vue.d.ts +0 -23
- package/dist/components/custom-field/CustomFieldMultiSelect.vue.d.ts +0 -9
- package/dist/components/custom-field/CustomFieldNumberField.vue.d.ts +0 -9
- package/dist/components/custom-field/CustomFieldRadio.vue.d.ts +0 -9
- package/dist/components/custom-field/CustomFieldSelect.vue.d.ts +0 -9
- package/dist/components/custom-field/CustomFieldString.vue.d.ts +0 -9
- package/dist/components/dropdown-menu/DropdownMenu.vue.d.ts +0 -18
- package/dist/components/dropdown-menu/DropdownMenuGroup.vue.d.ts +0 -13
- package/dist/components/dropdown-menu/DropdownMenuHeader.vue.d.ts +0 -6
- package/dist/components/dropdown-menu/DropdownMenuItem.vue.d.ts +0 -9
- package/dist/components/dropdown-menu/DropdownMenuRadioGroup.vue.d.ts +0 -24
- package/dist/components/dropdown-menu/DropdownMenuRadioGroupItem.vue.d.ts +0 -7
- package/dist/components/dropdown-menu/DropdownMenuSeparator.vue.d.ts +0 -3
- package/dist/components/dropdown-menu/dropdownMenu.variant.d.ts +0 -1
- package/dist/components/dropdown-menu/dropdownMenuItem.type.d.ts +0 -8
- package/dist/components/dropdown-menu/index.d.ts +0 -6
- package/dist/components/entity-autocomplete/EntityAutocomplete.vue.d.ts +0 -50
- package/dist/components/error/Error.vue.d.ts +0 -16
- package/dist/components/file-upload/api/services/fileUpload.service.d.ts +0 -5
- package/dist/components/file-upload/components/FormFileUpload.vue.d.ts +0 -58
- package/dist/components/file-upload/components/FormFileUploadButton.vue.d.ts +0 -9
- package/dist/components/file-upload/components/FormFileUploadDropzoneOverlay.vue.d.ts +0 -7
- package/dist/components/file-upload/components/FormFileUploadEmptyState.vue.d.ts +0 -11
- package/dist/components/file-upload/components/FormFileUploadItem.vue.d.ts +0 -8
- package/dist/components/file-upload/components/FormFileUploadItemRight.vue.d.ts +0 -8
- package/dist/components/file-upload/components/FormFileUploadList.vue.d.ts +0 -8
- package/dist/components/file-upload/components/FormFileUploadSuccessCheckmark.vue.d.ts +0 -3
- package/dist/components/filters/FiltersListbox.vue.d.ts +0 -7
- package/dist/components/filters/FiltersRoot.vue.d.ts +0 -17
- package/dist/components/filters/active/FiltersActive.vue.d.ts +0 -3
- package/dist/components/filters/active/FiltersActiveBadge.vue.d.ts +0 -21
- package/dist/components/filters/active/FiltersActiveFilterPopover.vue.d.ts +0 -19
- package/dist/components/filters/active/FiltersActiveLabel.vue.d.ts +0 -13
- package/dist/components/filters/active/FiltersActiveValue.vue.d.ts +0 -17
- package/dist/components/filters/active/types/FiltersActiveBoolean.vue.d.ts +0 -7
- package/dist/components/filters/active/types/FiltersActiveDate.vue.d.ts +0 -7
- package/dist/components/filters/active/types/FiltersActiveDateRange.vue.d.ts +0 -7
- package/dist/components/filters/active/types/FiltersActiveMultiSelect.vue.d.ts +0 -7
- package/dist/components/filters/active/types/FiltersActiveSelect.vue.d.ts +0 -7
- package/dist/components/filters/createFilters.composable.d.ts +0 -9
- package/dist/components/filters/dialog/FiltersDateDialog.vue.d.ts +0 -20
- package/dist/components/filters/dialog/FiltersDateRangeDialog.vue.d.ts +0 -29
- package/dist/components/filters/dialog/filtersDateDialog.composable.d.ts +0 -8
- package/dist/components/filters/dialog/filtersDateRangeDialog.composable.d.ts +0 -8
- package/dist/components/filters/dropdown-menu/FiltersDropdownMenu.vue.d.ts +0 -3
- package/dist/components/filters/dropdown-menu/types/FiltersDropdownMenuBoolean.vue.d.ts +0 -7
- package/dist/components/filters/dropdown-menu/types/FiltersDropdownMenuDate.vue.d.ts +0 -7
- package/dist/components/filters/dropdown-menu/types/FiltersDropdownMenuDateRange.vue.d.ts +0 -7
- package/dist/components/filters/dropdown-menu/types/FiltersDropdownMenuSelect.vue.d.ts +0 -7
- package/dist/components/filters/filterValue.composable.d.ts +0 -2
- package/dist/components/filters/filters.composable.d.ts +0 -40
- package/dist/components/filters/filters.context.d.ts +0 -8
- package/dist/components/filters/filters.type.d.ts +0 -65
- package/dist/components/filters/index.d.ts +0 -5
- package/dist/components/focusable-element/FocusableElement.vue.d.ts +0 -18
- package/dist/components/form/FormFieldset.vue.d.ts +0 -21
- package/dist/components/image/Image.vue.d.ts +0 -13
- package/dist/components/image/ImageBlurhash.vue.d.ts +0 -6
- package/dist/components/image/ImageDialog.vue.d.ts +0 -9
- package/dist/components/layout-container/DashboardLayoutContainer.vue.d.ts +0 -13
- package/dist/components/layout-container/index.d.ts +0 -1
- package/dist/components/logo/Logo.vue.d.ts +0 -8
- package/dist/components/logo/LogoWithText.vue.d.ts +0 -8
- package/dist/components/logo/index.d.ts +0 -2
- package/dist/components/notes/NoteForm.vue.d.ts +0 -8
- package/dist/components/notes/NoteList.vue.d.ts +0 -15
- package/dist/components/open-entity-button/AppOpenEntityButton.vue.d.ts +0 -20
- package/dist/components/reveal-on-hover-or-focus/RevealOnHoverOrFocus.vue.d.ts +0 -13
- package/dist/components/row-layout/RowLayout.vue.d.ts +0 -24
- package/dist/components/skeleton/AppSkeletonItem.vue.d.ts +0 -18
- package/dist/components/skeleton-loader/AppSkeletonLoader.vue.d.ts +0 -3
- package/dist/components/table/TableActionsLayout.vue.d.ts +0 -15
- package/dist/components/table/TableErrorState.vue.d.ts +0 -6
- package/dist/components/table/data-table/DataTable.vue.d.ts +0 -40
- package/dist/components/table/data-table/DataTableCell.vue.d.ts +0 -20
- package/dist/components/table/data-table/DataTableEmptyOrLoadingState.vue.d.ts +0 -15
- package/dist/components/table/data-table/DataTableEmptyOrLoadingStateBlurOverlay.vue.d.ts +0 -3
- package/dist/components/table/data-table/DataTableHeader.vue.d.ts +0 -3
- package/dist/components/table/data-table/DataTableHeaderCell.vue.d.ts +0 -3
- package/dist/components/table/data-table/DataTableHeaderCellProvider.vue.d.ts +0 -19
- package/dist/components/table/data-table/dataTable.context.d.ts +0 -14
- package/dist/components/table/data-table/dataTableHeaderCell.context.d.ts +0 -9
- package/dist/components/text/Text.vue.d.ts +0 -30
- package/dist/components/text/index.d.ts +0 -1
- package/dist/components/text/isTruncated.composable.d.ts +0 -2
- package/dist/components/truncate-text/TruncateText.vue.d.ts +0 -9
- package/dist/components/zod-error/ZodError.vue.d.ts +0 -7
- package/dist/composables/apiErrorToast.composable.d.ts +0 -5
- package/dist/composables/contactCreateDialog.composable.d.ts +0 -10
- package/dist/composables/context/context.composable.d.ts +0 -8
- package/dist/composables/crm.composable.d.ts +0 -12
- package/dist/composables/crmConfig.composable.d.ts +0 -32
- package/dist/composables/date-time-format/dateTimeFormat.composable.d.ts +0 -8
- package/dist/composables/entity-detail/entityDetail.composable.d.ts +0 -6
- package/dist/composables/geocode/geocode.composable.d.ts +0 -9
- package/dist/composables/google-maps-api-key/googleMapsApiKey.composable.d.ts +0 -5
- package/dist/composables/keyboard-shortcut-visibility/keyboardShortcutVisibility.composable.d.ts +0 -2
- package/dist/composables/keyset-infinite-query/keysetInfiniteQuery.composable.d.ts +0 -234
- package/dist/composables/offset-infinite-query/offsetInfiniteQuery.composable.d.ts +0 -235
- package/dist/composables/page-loader/pageLoader.composable.d.ts +0 -7
- package/dist/composables/route-query-state/routeQueryState.composable.d.ts +0 -12
- package/dist/composables/search/search.composable.d.ts +0 -13
- package/dist/composables/sort/sort.composable.d.ts +0 -19
- package/dist/composables/stepper/stepper.composable.d.ts +0 -18
- package/dist/composables/unsaved-changes/unsavedChanges.composable.d.ts +0 -6
- package/dist/contact-person/ContactPersonCreateExisitngForm.vue.d.ts +0 -12
- package/dist/contact-person/ContactPersonCreateForm.vue.d.ts +0 -13
- package/dist/contact-person/ContactPersonCreateNewForm.vue.d.ts +0 -18
- package/dist/contact-person/ContactPersonFormContactField.vue.d.ts +0 -9
- package/dist/contact-person/ContactPersonFormNameField.vue.d.ts +0 -8
- package/dist/deal/components/DealCommunicationMailList.vue.d.ts +0 -7
- package/dist/deal/components/DealCommunicationMailListSectionContainer.vue.d.ts +0 -13
- package/dist/deal/components/DealContactPersonCreateExistingForm.vue.d.ts +0 -12
- package/dist/deal/components/DealContactPersonCreateNewForm.vue.d.ts +0 -18
- package/dist/deal/components/DealCreateDialogExtraInfoForm.vue.d.ts +0 -8
- package/dist/deal/components/DealCreateDialogSelectBusinessForm.vue.d.ts +0 -12
- package/dist/deal/components/DealCreateDialogStepperForm.vue.d.ts +0 -15
- package/dist/deal/components/DealDetailSidebarGeneralInfo.vue.d.ts +0 -7
- package/dist/deal/components/DealDetailSidebarNameField.vue.d.ts +0 -7
- package/dist/deal/components/DealDetailSidebarOverviewContent.vue.d.ts +0 -7
- package/dist/deal/components/DealDetailSidebarTransitionSelect.vue.d.ts +0 -16
- package/dist/deal/components/DealDialogSidebarNotesContent.vue.d.ts +0 -7
- package/dist/deal/components/DealExternalAttachment.vue.d.ts +0 -7
- package/dist/deal/components/DealOverviewColumn.vue.d.ts +0 -13
- package/dist/deal/components/DealOverviewColumnItem.vue.d.ts +0 -13
- package/dist/deal/components/DealSendMailForm.vue.d.ts +0 -25
- package/dist/deal/components/DealSendMailFormAttachmentField.vue.d.ts +0 -60
- package/dist/deal/components/DealSendMailFormFooter.vue.d.ts +0 -14
- package/dist/deal/components/DealSettingsDialogMailTemplate.vue.d.ts +0 -7
- package/dist/deal/components/DealSettingsDialogMailTemplateFooter.vue.d.ts +0 -12
- package/dist/deal/components/DealSettingsDialogMailTemplateForm.vue.d.ts +0 -14
- package/dist/deal/components/DealSettingsDialogMailTemplateFormFields.vue.d.ts +0 -13
- package/dist/deal/components/DealSettingsDialogMailTemplateLocaleField.vue.d.ts +0 -8
- package/dist/deal/content/DealContactPersonUpdateForm.vue.d.ts +0 -9
- package/dist/deal/dialogs/DealContactPersonCreateDialog.vue.d.ts +0 -22
- package/dist/deal/dialogs/DealContactPersonUpdateDialog.vue.d.ts +0 -13
- package/dist/deal/dialogs/DealCreateDialog.vue.d.ts +0 -7
- package/dist/deal/dialogs/DealSendMailDialog.vue.d.ts +0 -23
- package/dist/deal/dialogs/DealSettingsDialog.vue.d.ts +0 -7
- package/dist/deal/routes/deal.routes.d.ts +0 -3
- package/dist/deal/tab-views/DealCommunicationTabView.vue.d.ts +0 -3
- package/dist/deal/views/DealDetailSidebar.vue.d.ts +0 -7
- package/dist/deal/views/DealDetailSidebarProvider.vue.d.ts +0 -7
- package/dist/deal/views/DealDetailView.vue.d.ts +0 -10
- package/dist/deal/views/DealOverview.vue.d.ts +0 -3
- package/dist/dialogs/contact-create/ContactCreateDialog.vue.d.ts +0 -17
- package/dist/dialogs/contact-create/components/ContactCreateDialogBusinessCbeSearch.vue.d.ts +0 -12
- package/dist/dialogs/contact-create/components/ContactCreateDialogBusinessContactPerson.vue.d.ts +0 -12
- package/dist/dialogs/contact-create/components/ContactCreateDialogBusinessContactPersonSearch.vue.d.ts +0 -18
- package/dist/dialogs/contact-create/components/ContactCreateDialogBusinessForm.vue.d.ts +0 -11
- package/dist/dialogs/contact-create/components/ContactCreateDialogBusinessGeneralInfo.vue.d.ts +0 -15
- package/dist/dialogs/contact-create/components/ContactCreateDialogContactTypeSection.vue.d.ts +0 -13
- package/dist/dialogs/contact-create/components/ContactCreateDialogFooter.vue.d.ts +0 -14
- package/dist/dialogs/contact-create/components/ContactCreateDialogFormSection.vue.d.ts +0 -16
- package/dist/dialogs/contact-create/components/ContactCreateDialogIndividualForm.vue.d.ts +0 -11
- package/dist/dialogs/contact-create/components/animations/ContactCreateDialogContentTransition.vue.d.ts +0 -13
- package/dist/dialogs/note/CrmDetailSidebarNotesView.vue.d.ts +0 -19
- package/dist/dialogs/note/NoteUpdateDialog.vue.d.ts +0 -15
- package/dist/helpers/assert.helper.d.ts +0 -1
- package/dist/icons/ActivityIcon.vue.d.ts +0 -3
- package/dist/icons/AttachmentIcon.vue.d.ts +0 -3
- package/dist/icons/BoldIcon.vue.d.ts +0 -3
- package/dist/icons/BookIcon.vue.d.ts +0 -3
- package/dist/icons/BuildingIcon.vue.d.ts +0 -3
- package/dist/icons/BuildingsIcon.vue.d.ts +0 -3
- package/dist/icons/BulletListIcon.vue.d.ts +0 -3
- package/dist/icons/ChevronDownIcon.vue.d.ts +0 -3
- package/dist/icons/ClockIcon.vue.d.ts +0 -3
- package/dist/icons/ClockPlusIcon.vue.d.ts +0 -3
- package/dist/icons/CopyIcon.vue.d.ts +0 -3
- package/dist/icons/DealIcon.vue.d.ts +0 -3
- package/dist/icons/DownloadCloudIcon.vue.d.ts +0 -3
- package/dist/icons/EditWithLineIcon.vue.d.ts +0 -3
- package/dist/icons/FileIcon.vue.d.ts +0 -3
- package/dist/icons/FilterLinesIcon.vue.d.ts +0 -3
- package/dist/icons/H1Icon.vue.d.ts +0 -3
- package/dist/icons/H2Icon.vue.d.ts +0 -3
- package/dist/icons/H3Icon.vue.d.ts +0 -3
- package/dist/icons/HashIcon.vue.d.ts +0 -3
- package/dist/icons/HomeFilledIcon.vue.d.ts +0 -3
- package/dist/icons/ItalicIcon.vue.d.ts +0 -3
- package/dist/icons/LayersTreeIcon.vue.d.ts +0 -3
- package/dist/icons/LinkBrokenIcon.vue.d.ts +0 -3
- package/dist/icons/LinkExternalIcon.vue.d.ts +0 -3
- package/dist/icons/LinkIcon.vue.d.ts +0 -3
- package/dist/icons/LocationPinIcon.vue.d.ts +0 -3
- package/dist/icons/MailIcon.vue.d.ts +0 -3
- package/dist/icons/MobilePhoneIcon.vue.d.ts +0 -3
- package/dist/icons/NumberedListIcon.vue.d.ts +0 -3
- package/dist/icons/PhoneIcon.vue.d.ts +0 -3
- package/dist/icons/RefreshIcon.vue.d.ts +0 -3
- package/dist/icons/SendIcon.vue.d.ts +0 -3
- package/dist/icons/SettingsIcon.vue.d.ts +0 -3
- package/dist/icons/StarOutlineIcon.vue.d.ts +0 -3
- package/dist/icons/StarYellowIcon.vue.d.ts +0 -3
- package/dist/icons/ThreeDotsIcon.vue.d.ts +0 -3
- package/dist/icons/TimeLineMarkerIcon.vue.d.ts +0 -3
- package/dist/icons/TrashIcon.vue.d.ts +0 -3
- package/dist/icons/UploadCloudIcon.vue.d.ts +0 -3
- package/dist/icons/UserCircleIcon.vue.d.ts +0 -3
- package/dist/icons/UserIcon.vue.d.ts +0 -3
- package/dist/icons/VerticalDotsIcon.vue.d.ts +0 -3
- package/dist/icons/WalletIcon.vue.d.ts +0 -3
- package/dist/icons/icon.d.ts +0 -55
- package/dist/individual/IndividualAutocomplete.vue.d.ts +0 -27
- package/dist/individual/IndividualDialog.vue.d.ts +0 -15
- package/dist/individual/content/IndividualBillingInformationCard.vue.d.ts +0 -7
- package/dist/individual/content/IndividualBillingInformationUpdateForm.vue.d.ts +0 -13
- package/dist/individual/content/IndividualContactPersonUpdateForm.vue.d.ts +0 -11
- package/dist/individual/content/IndividualCustomerInfoForm.vue.d.ts +0 -11
- package/dist/individual/content/IndividualInfoUpdateCard.vue.d.ts +0 -7
- package/dist/individual/dialogs/IndividualContactPersonCreateDialog.vue.d.ts +0 -22
- package/dist/individual/dialogs/IndividualContactPersonUpdateDialog.vue.d.ts +0 -12
- package/dist/individual/individualDialog.context.d.ts +0 -7
- package/dist/individual/routes/individual.routes.d.ts +0 -3
- package/dist/individual/sidebar/IndividualDetailSidebar.vue.d.ts +0 -7
- package/dist/individual/sidebar/IndividualDetailSidebarActivityContent.vue.d.ts +0 -7
- package/dist/individual/sidebar/IndividualDetailSidebarNotesContent.vue.d.ts +0 -7
- package/dist/individual/sidebar/IndividualDetailSidebarOverviewContent.vue.d.ts +0 -7
- package/dist/individual/sidebar/IndividualDetailSidebarProvider.vue.d.ts +0 -7
- package/dist/individual/views/IndividualOverview.vue.d.ts +0 -7
- package/dist/individual/views/components/IndividualOverviewTableNameCell.vue.d.ts +0 -7
- package/dist/individual/views/detail/IndividualDetailView.vue.d.ts +0 -10
- package/dist/kbo-client/client/client.gen.d.ts +0 -2
- package/dist/kbo-client/client/index.d.ts +0 -8
- package/dist/kbo-client/client/types.gen.d.ts +0 -117
- package/dist/kbo-client/client/utils.gen.d.ts +0 -33
- package/dist/kbo-client/client.gen.d.ts +0 -12
- package/dist/kbo-client/core/auth.gen.d.ts +0 -18
- package/dist/kbo-client/core/bodySerializer.gen.d.ts +0 -25
- package/dist/kbo-client/core/params.gen.d.ts +0 -43
- package/dist/kbo-client/core/pathSerializer.gen.d.ts +0 -33
- package/dist/kbo-client/core/queryKeySerializer.gen.d.ts +0 -18
- package/dist/kbo-client/core/serverSentEvents.gen.d.ts +0 -71
- package/dist/kbo-client/core/types.gen.d.ts +0 -78
- package/dist/kbo-client/core/utils.gen.d.ts +0 -19
- package/dist/kbo-client/index.d.ts +0 -2
- package/dist/kbo-client/sdk.gen.d.ts +0 -72
- package/dist/kbo-client/types.gen.d.ts +0 -2089
- package/dist/kbo-client/zod.gen.d.ts +0 -5943
- package/dist/libs/http.lib.d.ts +0 -3
- package/dist/libs/kboBaseUrl.lib.d.ts +0 -1
- package/dist/models/activity/activityIndex.model.d.ts +0 -24
- package/dist/models/activity/activityIndex.transformer.d.ts +0 -13
- package/dist/models/activity/activityIndexDto.model.d.ts +0 -6
- package/dist/models/activity/activityIndexPagination.model.d.ts +0 -5
- package/dist/models/activity/activityIndexPaginationDto.model.d.ts +0 -5
- package/dist/models/address/address.transformer.d.ts +0 -11
- package/dist/models/address/addressCreateForm.model.d.ts +0 -15
- package/dist/models/address/addressDetailDto.model.d.ts +0 -2
- package/dist/models/address/addressDto.model.d.ts +0 -2
- package/dist/models/apiError.model.d.ts +0 -7
- package/dist/models/billing-information/billingInformationUuid.model.d.ts +0 -3
- package/dist/models/board/boardColumn.model.d.ts +0 -13
- package/dist/models/board/boardColumn.transformer.d.ts +0 -5
- package/dist/models/board/boardColumnDto.model.d.ts +0 -6
- package/dist/models/board/boardColumnUpdate.model.d.ts +0 -7
- package/dist/models/board/boardColumnUuid.model.d.ts +0 -3
- package/dist/models/board/transition/boardColumnTransition.model.d.ts +0 -20
- package/dist/models/board/transition/boardColumnTransition.transformer.d.ts +0 -5
- package/dist/models/board/transition/boardColumnTransitionDto.model.d.ts +0 -2
- package/dist/models/board/transition/boardColumnTransitionTriggerType.model.d.ts +0 -8
- package/dist/models/board/transition/boardColumnTransitionUuid.model.d.ts +0 -3
- package/dist/models/brand-colors/brandColor.model.d.ts +0 -14
- package/dist/models/brand-colors/brandColor.transformer.d.ts +0 -5
- package/dist/models/business/billing-information/businessBillingInformation.model.d.ts +0 -19
- package/dist/models/business/billing-information/businessBillingInformation.transformer.d.ts +0 -6
- package/dist/models/business/billing-information/businessBillingInformationDto.model.d.ts +0 -2
- package/dist/models/business/billing-information/update/businessBillingInformationForm.model.d.ts +0 -90
- package/dist/models/business/billing-information/update/businessBillingInformationUpdate.transformer.d.ts +0 -5
- package/dist/models/business/billing-information/update/businessBillingInformationUpdateDto.model.d.ts +0 -2
- package/dist/models/business/businessUuid.model.d.ts +0 -3
- package/dist/models/business/contact-person/businessContactPerson.transformer.d.ts +0 -5
- package/dist/models/business/contact-person/businessContactPersonDetail.model.d.ts +0 -13
- package/dist/models/business/contact-person/businessContactPersonDetailDto.model.d.ts +0 -2
- package/dist/models/business/create/businessCreate.transformer.d.ts +0 -5
- package/dist/models/business/create/businessCreateDto.model.d.ts +0 -2
- package/dist/models/business/create/businessCreateForm.model.d.ts +0 -80
- package/dist/models/business/detail/businessDetail.model.d.ts +0 -47
- package/dist/models/business/detail/businessDetail.transformer.d.ts +0 -5
- package/dist/models/business/detail/businessDetailDto.model.d.ts +0 -2
- package/dist/models/business/index/businessIndex.model.d.ts +0 -11
- package/dist/models/business/index/businessIndex.transformer.d.ts +0 -5
- package/dist/models/business/index/businessIndexDto.model.d.ts +0 -2
- package/dist/models/business/index/businessIndexQueryParams.model.d.ts +0 -3
- package/dist/models/business/index/businessIndexQueryParams.transformer.d.ts +0 -6
- package/dist/models/business/individualItem.model.d.ts +0 -6
- package/dist/models/business/node/businessNode.model.d.ts +0 -14
- package/dist/models/business/node/businessNode.transformer.d.ts +0 -5
- package/dist/models/business/node/businessNodeDto.model.d.ts +0 -2
- package/dist/models/business/statistics/businessStatistics.model.d.ts +0 -5
- package/dist/models/business/statistics/businessStatistics.transformer.d.ts +0 -5
- package/dist/models/business/update/businessUpdate.transformer.d.ts +0 -5
- package/dist/models/business/update/businessUpdateDto.model.d.ts +0 -2
- package/dist/models/business/update/businessUpdateForm.model.d.ts +0 -58
- package/dist/models/cbe/cbeEnterpriseNumber.model.d.ts +0 -3
- package/dist/models/cbe/search/cbeEnterpriseItem.model.d.ts +0 -6
- package/dist/models/cbe/search/cbeEnterpriseSearch.model.d.ts +0 -15
- package/dist/models/cbe/search/cbeEnterpriseSearch.transformer.d.ts +0 -5
- package/dist/models/cbe/search/cbeEnterpriseSearchDto.model.d.ts +0 -2
- package/dist/models/conent-locale/contentLocaleEnum.model.d.ts +0 -8
- package/dist/models/contact-info/contactInfo.model.d.ts +0 -5
- package/dist/models/contact-person/create/contactPersonCreateExistingForm.model.d.ts +0 -12
- package/dist/models/contact-person/create/contactPersonCreateForm.model.d.ts +0 -10
- package/dist/models/contact-person/update/contactPersonUpdate.transformer.d.ts +0 -5
- package/dist/models/contact-person/update/contactPersonUpdateDto.model.d.ts +0 -2
- package/dist/models/contact-person/update/contactPersonUpdateForm.model.d.ts +0 -10
- package/dist/models/custom-field-definition/customFieldDefinition.transformer.d.ts +0 -5
- package/dist/models/custom-field-definition/customFieldDefinitionIndex.model.d.ts +0 -56
- package/dist/models/custom-field-definition/customFieldDefinitionIndexDto.model.d.ts +0 -2
- package/dist/models/custom-field-definition/customFieldDefinitionRecord.model.d.ts +0 -1
- package/dist/models/date/date.transformer.d.ts +0 -11
- package/dist/models/deal/contact-person/dealContactPerson.transformer.d.ts +0 -10
- package/dist/models/deal/contact-person/dealContactPersonCreateExistingForm.model.d.ts +0 -11
- package/dist/models/deal/contact-person/dealContactPersonCreateForm.model.d.ts +0 -9
- package/dist/models/deal/contact-person/dealContactPersonDetail.model.d.ts +0 -12
- package/dist/models/deal/contact-person/dealContactPersonDetailDto.model.d.ts +0 -2
- package/dist/models/deal/contact-person/dealContactPersonUpdateForm.model.d.ts +0 -9
- package/dist/models/deal/create/dealCreate.transformer.d.ts +0 -5
- package/dist/models/deal/create/dealCreateDto.model.d.ts +0 -2
- package/dist/models/deal/create/dealCreateForm.model.d.ts +0 -13
- package/dist/models/deal/dealSourceEnum.model.d.ts +0 -6
- package/dist/models/deal/dealUuid.model.d.ts +0 -3
- package/dist/models/deal/detail/dealDetail.model.d.ts +0 -41
- package/dist/models/deal/detail/dealDetail.transformer.d.ts +0 -5
- package/dist/models/deal/detail/dealDetailDto.model.d.ts +0 -2
- package/dist/models/deal/index/dealIndex.model.d.ts +0 -28
- package/dist/models/deal/index/dealIndex.transformer.d.ts +0 -5
- package/dist/models/deal/index/dealIndexDto.model.d.ts +0 -2
- package/dist/models/deal/index/dealIndexQueryParams.model.d.ts +0 -7
- package/dist/models/deal/index/dealIndexQueryParams.tranformer.d.ts +0 -6
- package/dist/models/deal/update/dealUpdate.transformer.d.ts +0 -5
- package/dist/models/deal/update/dealUpdateDto.model.d.ts +0 -2
- package/dist/models/deal/update/dealUpdateForm.model.d.ts +0 -12
- package/dist/models/enitityType.model.d.ts +0 -4
- package/dist/models/file-reference/fileReference.model.d.ts +0 -21
- package/dist/models/file-reference/fileReference.transformer.d.ts +0 -19
- package/dist/models/file-reference/fileReferenceForm.model.d.ts +0 -10
- package/dist/models/global-search/globalSearchItem.model.d.ts +0 -43
- package/dist/models/global-search/globalSearchItem.transformer.d.ts +0 -11
- package/dist/models/individual/billing-information/individualBillingInformation.model.d.ts +0 -14
- package/dist/models/individual/billing-information/individualBillingInformation.transformer.d.ts +0 -5
- package/dist/models/individual/billing-information/individualBillingInformationDto.model.d.ts +0 -2
- package/dist/models/individual/billing-information/update/individualBillingInformationForm.model.d.ts +0 -74
- package/dist/models/individual/billing-information/update/individualBillingInformationForm.transformer.d.ts +0 -5
- package/dist/models/individual/billing-information/update/individualBillingInformationFormDto.model.d.ts +0 -2
- package/dist/models/individual/contact-person/individualContactPerson.transformer.d.ts +0 -5
- package/dist/models/individual/contact-person/individualContactPersonDetail.model.d.ts +0 -12
- package/dist/models/individual/contact-person/individualContactPersonDetailDto.model.d.ts +0 -2
- package/dist/models/individual/contact-person/individualDetailContactPerson.model.d.ts +0 -11
- package/dist/models/individual/create/individualCreate.transformer.d.ts +0 -5
- package/dist/models/individual/create/individualCreateDto.model.d.ts +0 -2
- package/dist/models/individual/create/individualCreateForm.model.d.ts +0 -48
- package/dist/models/individual/detail/individualDetail.model.d.ts +0 -41
- package/dist/models/individual/detail/individualDetail.transformer.d.ts +0 -5
- package/dist/models/individual/detail/individualDetailDto.model.d.ts +0 -2
- package/dist/models/individual/index/individualIndex.model.d.ts +0 -8
- package/dist/models/individual/index/individualIndex.transformer.d.ts +0 -5
- package/dist/models/individual/index/individualIndexDto.model.d.ts +0 -2
- package/dist/models/individual/index/individualIndexQueryParams.model.d.ts +0 -3
- package/dist/models/individual/index/individualIndexQueryParams.transformer.d.ts +0 -6
- package/dist/models/individual/individualItem.model.d.ts +0 -6
- package/dist/models/individual/individualUuid.model.d.ts +0 -3
- package/dist/models/individual/statistics/individualStatistics.model.d.ts +0 -5
- package/dist/models/individual/statistics/individualStatistics.transformer.d.ts +0 -5
- package/dist/models/individual/update/individualUpdate.transformer.d.ts +0 -7
- package/dist/models/individual/update/individualUpdateDto.model.d.ts +0 -2
- package/dist/models/individual/update/individualUpdateForm.model.d.ts +0 -51
- package/dist/models/locale/locale.model.d.ts +0 -8
- package/dist/models/location/locationUuid.model.d.ts +0 -3
- package/dist/models/mail/create/mailCreate.transformer.d.ts +0 -6
- package/dist/models/mail/create/mailCreateDto.model.d.ts +0 -2
- package/dist/models/mail/create/mailCreateForm.model.d.ts +0 -26
- package/dist/models/mail/index/mailIndex.model.d.ts +0 -24
- package/dist/models/mail/index/mailIndex.transformer.d.ts +0 -8
- package/dist/models/mail/index/mailIndexDto.model.d.ts +0 -2
- package/dist/models/mail/index/mailIndexQueryParams.model.d.ts +0 -9
- package/dist/models/mail/index/mailIndexQueryParams.transformer.d.ts +0 -6
- package/dist/models/mail/mailUuid.model.d.ts +0 -3
- package/dist/models/mail-template/detail/mailTemplateDetail.model.d.ts +0 -23
- package/dist/models/mail-template/detail/mailTemplateDetail.transformer.d.ts +0 -5
- package/dist/models/mail-template/detail/mailTemplateDetailDto.model.d.ts +0 -2
- package/dist/models/mail-template/index/mailTemplateIndex.model.d.ts +0 -8
- package/dist/models/mail-template/index/mailTemplateIndex.transformer.d.ts +0 -5
- package/dist/models/mail-template/index/mailTemplateIndexDto.model.d.ts +0 -2
- package/dist/models/mail-template/index/mailTemplateIndexQueryParams.model.d.ts +0 -2
- package/dist/models/mail-template/index/mailTemplateIndexQueryParams.transformer.d.ts +0 -6
- package/dist/models/mail-template/mailTemplateUuid.model.d.ts +0 -3
- package/dist/models/mail-template/update/mailTemplateUpdate.transformer.d.ts +0 -5
- package/dist/models/mail-template/update/mailTemplateUpdateDto.model.d.ts +0 -2
- package/dist/models/mail-template/update/mailTemplateUpdateForm.model.d.ts +0 -36
- package/dist/models/notes/create/noteCreateDto.model.d.ts +0 -2
- package/dist/models/notes/create/noteCreateForm.model.d.ts +0 -5
- package/dist/models/notes/index/noteIndex.model.d.ts +0 -9
- package/dist/models/notes/index/noteIndexDto.model.d.ts +0 -2
- package/dist/models/notes/index/noteIndexQueryParams.model.d.ts +0 -2
- package/dist/models/notes/note.transformer.d.ts +0 -13
- package/dist/models/notes/noteUuid.model.d.ts +0 -3
- package/dist/models/phone-number/phoneNumberForm.model.d.ts +0 -3
- package/dist/models/recent-entities/recentEntities.transformer.d.ts +0 -10
- package/dist/models/recent-entities/recentEntitiesIndexQueryParams.d.ts +0 -3
- package/dist/models/recent-entities/recentEntitiesItem.model.d.ts +0 -8
- package/dist/models/recent-entities/recentEntitiesPagination.model.d.ts +0 -5
- package/dist/models/recent-entities/recentEntitiesPaginationDto.model.d.ts +0 -4
- package/dist/models/tenant-config/tenantConfig.model.d.ts +0 -30
- package/dist/models/tenant-config/tenantConfig.transformer.d.ts +0 -5
- package/dist/models/tenant-config/tenantConfigDto.model.d.ts +0 -2
- package/dist/models/user/index/userIndex.model.d.ts +0 -12
- package/dist/models/user/index/userIndex.transformer.d.ts +0 -5
- package/dist/models/user/index/userIndexDto.model.d.ts +0 -11
- package/dist/models/user/index/userIndexQueryParams.model.d.ts +0 -3
- package/dist/models/user/userUuid.model.d.ts +0 -3
- package/dist/models/vat-number/vatNumber.model.d.ts +0 -7
- package/dist/models/vat-number/vatNumber.transformer.d.ts +0 -8
- package/dist/plugins/dayjs.plugin.d.ts +0 -2
- package/dist/plugins/i18n.plugin.d.ts +0 -1266
- package/dist/plugins/pinia.plugin.d.ts +0 -1
- package/dist/plugins/vueQuery.plugin.d.ts +0 -5
- package/dist/routes/crmRoutes.composable.d.ts +0 -12
- package/dist/testing/factories/business.factory.d.ts +0 -10
- package/dist/testing/factories/deal.factory.d.ts +0 -8
- package/dist/testing/factories/factory.util.d.ts +0 -12
- package/dist/testing/factories/index.d.ts +0 -5
- package/dist/testing/factories/individual.factory.d.ts +0 -10
- package/dist/testing/factories/note.factory.d.ts +0 -10
- package/dist/testing/factories/tenantConfig.factory.d.ts +0 -5
- package/dist/testing/index.d.ts +0 -1
- package/dist/types/apiError.type.d.ts +0 -11
- package/dist/types/dialog-content-tab/dialogContentTab.type.d.ts +0 -6
- package/dist/types/enum.type.d.ts +0 -8
- package/dist/types/pagination.type.d.ts +0 -37
- package/dist/types/query.type.d.ts +0 -21
- package/dist/types/queryKey.type.d.ts +0 -115
- package/dist/types/table.type.d.ts +0 -64
- package/dist/types/withKeyboardShortcut.type.d.ts +0 -4
- package/dist/utils/address.util.d.ts +0 -5
- package/dist/utils/apiError.util.d.ts +0 -5
- package/dist/utils/belgianSsn.util.d.ts +0 -30
- package/dist/utils/color.util.d.ts +0 -6
- package/dist/utils/context.util.d.ts +0 -8
- package/dist/utils/customFieldDefinition.util.d.ts +0 -5
- package/dist/utils/date.util.d.ts +0 -14
- package/dist/utils/entityRoute.util.d.ts +0 -8
- package/dist/utils/entityType.util.d.ts +0 -10
- package/dist/utils/error.util.d.ts +0 -8
- package/dist/utils/file.util.d.ts +0 -5
- package/dist/utils/form.util.d.ts +0 -9
- package/dist/utils/locale.util.d.ts +0 -3
- package/dist/utils/logger.util.d.ts +0 -6
- package/dist/utils/name.util.d.ts +0 -6
- package/dist/utils/object.util.d.ts +0 -14
- package/dist/utils/string.util.d.ts +0 -5
- package/dist/utils/translation.util.d.ts +0 -4
- package/dist/utils/uuid.util.d.ts +0 -3
- package/dist/utils/vatNumber.util.d.ts +0 -4
- package/dist/uuid.util-DpiDKVoj.js +0 -11
- package/dist/widgets/WidgetBusinessStatistics.vue.d.ts +0 -7
- package/dist/widgets/WidgetIndividualStatistics.vue.d.ts +0 -7
- package/dist/widgets/WidgetRecentlyCreated.vue.d.ts +0 -3
- package/dist/widgets/components/WidgetRecentlyCreatedItem.vue.d.ts +0 -11
- package/dist/widgets/svg/BackgroundAvatar.vue.d.ts +0 -3
- package/dist/widgets/svg/BackgroundBuilding.vue.d.ts +0 -3
- package/dist/widgets/svg/BackgroundPattern.vue.d.ts +0 -3
package/README.md
DELETED
|
@@ -1,1037 +0,0 @@
|
|
|
1
|
-
# @wisemen/wise-crm-web
|
|
2
|
-
|
|
3
|
-
A comprehensive CRM component library for Vue 3 applications, providing ready-to-use components, composables, and utilities for building CRM features.
|
|
4
|
-
|
|
5
|
-
## Table of Contents
|
|
6
|
-
|
|
7
|
-
- [Installation](#installation)
|
|
8
|
-
- [Quick Start](#quick-start)
|
|
9
|
-
- [Configuration](#configuration)
|
|
10
|
-
- [Components](#components)
|
|
11
|
-
- [Composables](#composables)
|
|
12
|
-
- [Routing](#routing)
|
|
13
|
-
- [Internationalization](#internationalization)
|
|
14
|
-
- [Icons](#icons)
|
|
15
|
-
- [Testing Utilities](#testing-utilities)
|
|
16
|
-
- [Type System](#type-system)
|
|
17
|
-
|
|
18
|
-
---
|
|
19
|
-
|
|
20
|
-
## Installation
|
|
21
|
-
|
|
22
|
-
```bash
|
|
23
|
-
# In a monorepo with pnpm workspaces
|
|
24
|
-
pnpm add @wisemen/wise-crm-web@workspace:*
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
Or for external projects:
|
|
28
|
-
|
|
29
|
-
```bash
|
|
30
|
-
npm install @wisemen/wise-crm-web
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
---
|
|
34
|
-
|
|
35
|
-
## Quick Start
|
|
36
|
-
|
|
37
|
-
### 1. Initialize the CRM
|
|
38
|
-
|
|
39
|
-
Initialize the CRM configuration in your root layout or app entry point:
|
|
40
|
-
|
|
41
|
-
```vue
|
|
42
|
-
<script setup lang="ts">
|
|
43
|
-
import { useWiseCrmConfig } from '@wisemen/wise-crm-web'
|
|
44
|
-
import { BoardColumnTransitionTriggerType } from '@wisemen/wise-crm-web/client'
|
|
45
|
-
|
|
46
|
-
const wiseCrm = useWiseCrmConfig()
|
|
47
|
-
|
|
48
|
-
wiseCrm.init({
|
|
49
|
-
apiCrmBaseUrl: 'https://api.your-crm.com',
|
|
50
|
-
getAccessToken: () => oAuthClient.getAccessToken(),
|
|
51
|
-
googleMapsApiKey: 'YOUR_GOOGLE_MAPS_API_KEY',
|
|
52
|
-
locale: 'en-US',
|
|
53
|
-
options: {
|
|
54
|
-
deals: {
|
|
55
|
-
allowedTransitionTriggerTypes: [
|
|
56
|
-
BoardColumnTransitionTriggerType.EMAIL,
|
|
57
|
-
BoardColumnTransitionTriggerType.MANUAL,
|
|
58
|
-
],
|
|
59
|
-
},
|
|
60
|
-
widgets: {
|
|
61
|
-
entityStatistics: {
|
|
62
|
-
viewAllBusinessRouteName: 'crm-businesses',
|
|
63
|
-
viewAllIndividualRouteName: 'crm-individuals',
|
|
64
|
-
},
|
|
65
|
-
recentlyCreatedEntities: true,
|
|
66
|
-
},
|
|
67
|
-
},
|
|
68
|
-
})
|
|
69
|
-
</script>
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
### 2. Set Up Routes
|
|
73
|
-
|
|
74
|
-
Configure CRM routes in your router:
|
|
75
|
-
|
|
76
|
-
```typescript
|
|
77
|
-
import { useWiseCrmRoutes } from '@wisemen/wise-crm-web'
|
|
78
|
-
|
|
79
|
-
const routes = [
|
|
80
|
-
// ... your other routes
|
|
81
|
-
useWiseCrmRoutes({
|
|
82
|
-
businessTabRoutes: [
|
|
83
|
-
{
|
|
84
|
-
label: computed(() => 'Information'),
|
|
85
|
-
route: {
|
|
86
|
-
name: 'crm-business-information',
|
|
87
|
-
component: BusinessInformationTabView,
|
|
88
|
-
},
|
|
89
|
-
},
|
|
90
|
-
],
|
|
91
|
-
individualTabRoutes: [
|
|
92
|
-
{
|
|
93
|
-
label: computed(() => 'Information'),
|
|
94
|
-
route: {
|
|
95
|
-
name: 'crm-individual-information',
|
|
96
|
-
component: IndividualInformationTabView,
|
|
97
|
-
},
|
|
98
|
-
},
|
|
99
|
-
],
|
|
100
|
-
dealTabRoutes: [
|
|
101
|
-
{
|
|
102
|
-
label: computed(() => 'Information'),
|
|
103
|
-
route: {
|
|
104
|
-
name: 'crm-deal-information',
|
|
105
|
-
component: DealInformationTabView,
|
|
106
|
-
},
|
|
107
|
-
},
|
|
108
|
-
],
|
|
109
|
-
excludedReturnRoutes: [], // Optional: routes to exclude from return navigation
|
|
110
|
-
}),
|
|
111
|
-
]
|
|
112
|
-
```
|
|
113
|
-
|
|
114
|
-
### 3. Integrate i18n and Icons
|
|
115
|
-
|
|
116
|
-
```typescript
|
|
117
|
-
// i18n setup
|
|
118
|
-
import { wiseCrmLocales } from '@wisemen/wise-crm-web'
|
|
119
|
-
|
|
120
|
-
const messages = {
|
|
121
|
-
'en-US': {
|
|
122
|
-
...yourEnLocale,
|
|
123
|
-
...wiseCrmLocales['en-US'],
|
|
124
|
-
},
|
|
125
|
-
'nl-BE': {
|
|
126
|
-
...yourNlLocale,
|
|
127
|
-
...wiseCrmLocales['nl-BE'],
|
|
128
|
-
},
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
// Icons setup
|
|
132
|
-
import { wiseCrmIcons } from '@wisemen/wise-crm-web'
|
|
133
|
-
|
|
134
|
-
export const icons = {
|
|
135
|
-
...wiseCrmIcons,
|
|
136
|
-
...yourCustomIcons,
|
|
137
|
-
}
|
|
138
|
-
```
|
|
139
|
-
|
|
140
|
-
---
|
|
141
|
-
|
|
142
|
-
## Configuration
|
|
143
|
-
|
|
144
|
-
### `useWiseCrmConfig().init(options)`
|
|
145
|
-
|
|
146
|
-
Initialize the CRM with the following configuration options:
|
|
147
|
-
|
|
148
|
-
#### Required Parameters
|
|
149
|
-
|
|
150
|
-
| Parameter | Type | Description |
|
|
151
|
-
|-----------|------|-------------|
|
|
152
|
-
| `apiCrmBaseUrl` | `string` | Base URL for the CRM API |
|
|
153
|
-
| `getAccessToken` | `() => Promise<string>` | Function that returns the current authentication token |
|
|
154
|
-
| `googleMapsApiKey` | `string` | Google Maps API key for address autocomplete |
|
|
155
|
-
| `locale` | `Locale` | Initial locale ('en-US' or 'nl-BE') |
|
|
156
|
-
|
|
157
|
-
#### Options
|
|
158
|
-
|
|
159
|
-
##### `options.deals`
|
|
160
|
-
|
|
161
|
-
Configure deal/pipeline behavior:
|
|
162
|
-
|
|
163
|
-
```typescript
|
|
164
|
-
{
|
|
165
|
-
deals: {
|
|
166
|
-
// Types of transitions allowed in the deal board
|
|
167
|
-
allowedTransitionTriggerTypes: BoardColumnTransitionTriggerType[]
|
|
168
|
-
} | null
|
|
169
|
-
}
|
|
170
|
-
```
|
|
171
|
-
|
|
172
|
-
Available transition types:
|
|
173
|
-
- `BoardColumnTransitionTriggerType.MANUAL` - Manual drag & drop
|
|
174
|
-
- `BoardColumnTransitionTriggerType.EMAIL` - Email-triggered transitions
|
|
175
|
-
|
|
176
|
-
##### `options.widgets`
|
|
177
|
-
|
|
178
|
-
Configure widget behaviors:
|
|
179
|
-
|
|
180
|
-
```typescript
|
|
181
|
-
{
|
|
182
|
-
widgets: {
|
|
183
|
-
entityStatistics?: {
|
|
184
|
-
// Route names for "View All" buttons in statistics widgets
|
|
185
|
-
viewAllBusinessRouteName: string
|
|
186
|
-
viewAllIndividualRouteName: string
|
|
187
|
-
}
|
|
188
|
-
// Enable recently created entities widget
|
|
189
|
-
recentlyCreatedEntities?: true
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
```
|
|
193
|
-
|
|
194
|
-
---
|
|
195
|
-
|
|
196
|
-
## Components
|
|
197
|
-
|
|
198
|
-
### Overview Components
|
|
199
|
-
|
|
200
|
-
#### `WiseCrmOverviewContent`
|
|
201
|
-
|
|
202
|
-
Main CRM dashboard with statistics widgets and recent activity.
|
|
203
|
-
|
|
204
|
-
```vue
|
|
205
|
-
<template>
|
|
206
|
-
<WiseCrmOverviewContent />
|
|
207
|
-
</template>
|
|
208
|
-
```
|
|
209
|
-
### Deal Components
|
|
210
|
-
|
|
211
|
-
#### `WiseCrmCrmDealOverview`
|
|
212
|
-
|
|
213
|
-
Kanban-style deal pipeline board with drag-and-drop.
|
|
214
|
-
|
|
215
|
-
```vue
|
|
216
|
-
<template>
|
|
217
|
-
<WiseCrmCrmDealOverview />
|
|
218
|
-
</template>
|
|
219
|
-
```
|
|
220
|
-
|
|
221
|
-
### Dialog Components
|
|
222
|
-
|
|
223
|
-
#### `WiseCrmContactCreateDialog`
|
|
224
|
-
|
|
225
|
-
Dialog for adding contact persons to a business.
|
|
226
|
-
|
|
227
|
-
```vue
|
|
228
|
-
<script setup lang="ts">
|
|
229
|
-
import { useWiseCrmContactCreateDialog, WiseCrmContactCreateDialog } from '@wisemen/wise-crm-web'
|
|
230
|
-
|
|
231
|
-
const contactDialog = useWiseCrmContactCreateDialog()
|
|
232
|
-
|
|
233
|
-
// Open from anywhere in your app
|
|
234
|
-
function addContact(): void {
|
|
235
|
-
contactDialog.open(businessUuid)
|
|
236
|
-
}
|
|
237
|
-
</script>
|
|
238
|
-
|
|
239
|
-
<template>
|
|
240
|
-
<WiseCrmContactCreateDialog />
|
|
241
|
-
</template>
|
|
242
|
-
```
|
|
243
|
-
|
|
244
|
-
### Card Components
|
|
245
|
-
|
|
246
|
-
#### `WiseCrmBusinessUpdateCard`
|
|
247
|
-
|
|
248
|
-
Form card for updating business information.
|
|
249
|
-
|
|
250
|
-
```vue
|
|
251
|
-
<script setup lang="ts">
|
|
252
|
-
import { useRouteParams } from '@vueuse/router'
|
|
253
|
-
import type { WiseCrmBusinessUuid } from '@wisemen/wise-crm-web'
|
|
254
|
-
import { WiseCrmBusinessUpdateCard } from '@wisemen/wise-crm-web'
|
|
255
|
-
|
|
256
|
-
const businessUuid = useRouteParams<WiseCrmBusinessUuid>('businessUuid', null)
|
|
257
|
-
</script>
|
|
258
|
-
|
|
259
|
-
<template>
|
|
260
|
-
<WiseCrmBusinessUpdateCard
|
|
261
|
-
v-if="businessUuid !== null"
|
|
262
|
-
:business-uuid="businessUuid"
|
|
263
|
-
/>
|
|
264
|
-
</template>
|
|
265
|
-
```
|
|
266
|
-
|
|
267
|
-
**Props:**
|
|
268
|
-
- `businessUuid`: `WiseCrmBusinessUuid` - The business to update
|
|
269
|
-
|
|
270
|
-
#### `WiseCrmBusinessBillingInformationCard`
|
|
271
|
-
|
|
272
|
-
Form card for managing business billing information.
|
|
273
|
-
|
|
274
|
-
```vue
|
|
275
|
-
<template>
|
|
276
|
-
<WiseCrmBusinessBillingInformationCard :business-uuid="businessUuid" />
|
|
277
|
-
</template>
|
|
278
|
-
```
|
|
279
|
-
|
|
280
|
-
**Props:**
|
|
281
|
-
- `businessUuid`: `WiseCrmBusinessUuid` - The business UUID
|
|
282
|
-
|
|
283
|
-
#### `WiseCrmIndividualUpdateCard`
|
|
284
|
-
|
|
285
|
-
Form card for updating individual information.
|
|
286
|
-
|
|
287
|
-
```vue
|
|
288
|
-
<template>
|
|
289
|
-
<WiseCrmIndividualUpdateCard :individual-uuid="individualUuid" />
|
|
290
|
-
</template>
|
|
291
|
-
```
|
|
292
|
-
|
|
293
|
-
**Props:**
|
|
294
|
-
- `individualUuid`: `WiseCrmIndividualUuid` - The individual UUID
|
|
295
|
-
|
|
296
|
-
#### `WiseCrmIndividualBillingInformationCard`
|
|
297
|
-
|
|
298
|
-
Form card for managing individual billing information.
|
|
299
|
-
|
|
300
|
-
```vue
|
|
301
|
-
<template>
|
|
302
|
-
<WiseCrmIndividualBillingInformationCard :individual-uuid="individualUuid" />
|
|
303
|
-
</template>
|
|
304
|
-
```
|
|
305
|
-
|
|
306
|
-
**Props:**
|
|
307
|
-
- `individualUuid`: `WiseCrmIndividualUuid` - The individual UUID
|
|
308
|
-
|
|
309
|
-
### Widget Components
|
|
310
|
-
|
|
311
|
-
#### `WiseCrmBusinessWidget`
|
|
312
|
-
|
|
313
|
-
Statistics widget showing business metrics.
|
|
314
|
-
|
|
315
|
-
```vue
|
|
316
|
-
<template>
|
|
317
|
-
<WiseCrmBusinessWidget />
|
|
318
|
-
</template>
|
|
319
|
-
```
|
|
320
|
-
|
|
321
|
-
#### `WiseCrmIndividualWidget`
|
|
322
|
-
|
|
323
|
-
Statistics widget showing individual metrics.
|
|
324
|
-
|
|
325
|
-
```vue
|
|
326
|
-
<template>
|
|
327
|
-
<WiseCrmIndividualWidget />
|
|
328
|
-
</template>
|
|
329
|
-
```
|
|
330
|
-
|
|
331
|
-
#### `WiseCrmRecentlyCreatedWidget`
|
|
332
|
-
|
|
333
|
-
Widget displaying recently created entities.
|
|
334
|
-
|
|
335
|
-
```vue
|
|
336
|
-
<template>
|
|
337
|
-
<WiseCrmRecentlyCreatedWidget />
|
|
338
|
-
</template>
|
|
339
|
-
```
|
|
340
|
-
|
|
341
|
-
---
|
|
342
|
-
|
|
343
|
-
## Composables
|
|
344
|
-
|
|
345
|
-
### `useWiseCrm()`
|
|
346
|
-
|
|
347
|
-
Main composable for CRM operations and navigation.
|
|
348
|
-
|
|
349
|
-
```typescript
|
|
350
|
-
import { useWiseCrm } from '@wisemen/wise-crm-web'
|
|
351
|
-
|
|
352
|
-
const crm = useWiseCrm()
|
|
353
|
-
```
|
|
354
|
-
|
|
355
|
-
#### Methods
|
|
356
|
-
|
|
357
|
-
##### `openBusinessDetail(businessUuid: WiseCrmBusinessUuid): void`
|
|
358
|
-
|
|
359
|
-
Navigate to business detail page.
|
|
360
|
-
|
|
361
|
-
```typescript
|
|
362
|
-
crm.openBusinessDetail(businessUuid)
|
|
363
|
-
```
|
|
364
|
-
|
|
365
|
-
##### `openIndividualDetail(individualUuid: WiseCrmIndividualUuid): void`
|
|
366
|
-
|
|
367
|
-
Navigate to individual detail page.
|
|
368
|
-
|
|
369
|
-
```typescript
|
|
370
|
-
crm.openIndividualDetail(individualUuid)
|
|
371
|
-
```
|
|
372
|
-
|
|
373
|
-
##### `getEntityConfig(type: EntityType): EntityConfig | null`
|
|
374
|
-
|
|
375
|
-
Get configuration for a specific entity type.
|
|
376
|
-
|
|
377
|
-
```typescript
|
|
378
|
-
const businessConfig = crm.getEntityConfig(EntityType.BUSINESS)
|
|
379
|
-
console.log(businessConfig?.name) // Localized name like "Business" or "Bedrijf"
|
|
380
|
-
```
|
|
381
|
-
|
|
382
|
-
##### `goToReturnRoute(): void`
|
|
383
|
-
|
|
384
|
-
Navigate back to the stored return route (useful for "back" buttons).
|
|
385
|
-
|
|
386
|
-
```typescript
|
|
387
|
-
crm.goToReturnRoute()
|
|
388
|
-
```
|
|
389
|
-
|
|
390
|
-
##### `storeReturnRoute(route: RouteLocationNormalized, excludedRoutes?: (string | RegExp)[]): void`
|
|
391
|
-
|
|
392
|
-
Manually store a return route (usually handled automatically by `useWiseCrmRoutes`).
|
|
393
|
-
|
|
394
|
-
```typescript
|
|
395
|
-
crm.storeReturnRoute(router.currentRoute.value, ['crm-detail'])
|
|
396
|
-
```
|
|
397
|
-
|
|
398
|
-
### `useWiseCrmConfig()`
|
|
399
|
-
|
|
400
|
-
CRM initialization and configuration composable.
|
|
401
|
-
|
|
402
|
-
```typescript
|
|
403
|
-
import { useWiseCrmConfig } from '@wisemen/wise-crm-web'
|
|
404
|
-
|
|
405
|
-
const wiseCrm = useWiseCrmConfig()
|
|
406
|
-
```
|
|
407
|
-
|
|
408
|
-
#### Properties
|
|
409
|
-
|
|
410
|
-
##### `isInitialized: Ref<boolean>`
|
|
411
|
-
|
|
412
|
-
Reactive flag indicating if CRM has been initialized.
|
|
413
|
-
|
|
414
|
-
```typescript
|
|
415
|
-
watch(wiseCrm.isInitialized, (initialized) => {
|
|
416
|
-
if (initialized) {
|
|
417
|
-
console.log('CRM is ready!')
|
|
418
|
-
}
|
|
419
|
-
})
|
|
420
|
-
```
|
|
421
|
-
|
|
422
|
-
#### Methods
|
|
423
|
-
|
|
424
|
-
##### `init(props: InitProps): Promise<void>`
|
|
425
|
-
|
|
426
|
-
Initialize the CRM (see [Configuration](#configuration) section).
|
|
427
|
-
|
|
428
|
-
##### `getConfig(): TenantConfig`
|
|
429
|
-
|
|
430
|
-
Get the current tenant configuration.
|
|
431
|
-
|
|
432
|
-
```typescript
|
|
433
|
-
const config = wiseCrm.getConfig()
|
|
434
|
-
console.log(config.entities) // Entity configurations
|
|
435
|
-
```
|
|
436
|
-
|
|
437
|
-
##### `getOptions(): InitProps['options']`
|
|
438
|
-
|
|
439
|
-
Get the initialization options.
|
|
440
|
-
|
|
441
|
-
```typescript
|
|
442
|
-
const options = wiseCrm.getOptions()
|
|
443
|
-
console.log(options.deals?.allowedTransitionTriggerTypes)
|
|
444
|
-
```
|
|
445
|
-
|
|
446
|
-
##### `getCustomFieldDefinitionForEntity(entityType: EntityType): CustomFieldDefinitionIndex[]`
|
|
447
|
-
|
|
448
|
-
Get custom field definitions for an entity type.
|
|
449
|
-
|
|
450
|
-
```typescript
|
|
451
|
-
const customFields = wiseCrm.getCustomFieldDefinitionForEntity(EntityType.BUSINESS)
|
|
452
|
-
```
|
|
453
|
-
|
|
454
|
-
### `useWiseCrmContactCreateDialog()`
|
|
455
|
-
|
|
456
|
-
Composable for controlling the contact creation dialog.
|
|
457
|
-
|
|
458
|
-
```typescript
|
|
459
|
-
import { useWiseCrmContactCreateDialog } from '@wisemen/wise-crm-web'
|
|
460
|
-
|
|
461
|
-
const contactDialog = useWiseCrmContactCreateDialog()
|
|
462
|
-
```
|
|
463
|
-
|
|
464
|
-
#### Methods
|
|
465
|
-
|
|
466
|
-
##### `open(businessUuid: WiseCrmBusinessUuid): void`
|
|
467
|
-
|
|
468
|
-
Open the contact creation dialog for a specific business.
|
|
469
|
-
|
|
470
|
-
```typescript
|
|
471
|
-
contactDialog.open(businessUuid)
|
|
472
|
-
```
|
|
473
|
-
|
|
474
|
-
---
|
|
475
|
-
|
|
476
|
-
## Routing
|
|
477
|
-
|
|
478
|
-
### `useWiseCrmRoutes(options)`
|
|
479
|
-
|
|
480
|
-
Generate CRM routes with tab-based detail views.
|
|
481
|
-
|
|
482
|
-
```typescript
|
|
483
|
-
import type { ComputedRef } from 'vue'
|
|
484
|
-
import { useWiseCrmRoutes } from '@wisemen/wise-crm-web'
|
|
485
|
-
|
|
486
|
-
interface CrmRouteOptions {
|
|
487
|
-
label: ComputedRef<string>
|
|
488
|
-
route: RouteRecordRaw
|
|
489
|
-
}
|
|
490
|
-
|
|
491
|
-
const crmRoutes = useWiseCrmRoutes({
|
|
492
|
-
businessTabRoutes: CrmRouteOptions[],
|
|
493
|
-
individualTabRoutes: CrmRouteOptions[],
|
|
494
|
-
dealTabRoutes: CrmRouteOptions[],
|
|
495
|
-
excludedReturnRoutes?: (string | RegExp)[], // Optional
|
|
496
|
-
})
|
|
497
|
-
```
|
|
498
|
-
|
|
499
|
-
#### Parameters
|
|
500
|
-
|
|
501
|
-
- `businessTabRoutes`: Array of tab routes for business detail pages
|
|
502
|
-
- `individualTabRoutes`: Array of tab routes for individual detail pages
|
|
503
|
-
- `dealTabRoutes`: Array of tab routes for deal detail pages
|
|
504
|
-
- `excludedReturnRoutes`: Routes to exclude from return navigation tracking
|
|
505
|
-
|
|
506
|
-
#### Example
|
|
507
|
-
|
|
508
|
-
```typescript
|
|
509
|
-
const crmRoutes = useWiseCrmRoutes({
|
|
510
|
-
businessTabRoutes: [
|
|
511
|
-
{
|
|
512
|
-
label: computed(() => i18n.t('information')),
|
|
513
|
-
route: {
|
|
514
|
-
name: 'crm-business-information',
|
|
515
|
-
path: 'information',
|
|
516
|
-
component: BusinessInformationView,
|
|
517
|
-
},
|
|
518
|
-
},
|
|
519
|
-
{
|
|
520
|
-
label: computed(() => i18n.t('contacts')),
|
|
521
|
-
route: {
|
|
522
|
-
name: 'crm-business-contacts',
|
|
523
|
-
path: 'contacts',
|
|
524
|
-
component: BusinessContactsView,
|
|
525
|
-
},
|
|
526
|
-
},
|
|
527
|
-
],
|
|
528
|
-
individualTabRoutes: [
|
|
529
|
-
{
|
|
530
|
-
label: computed(() => i18n.t('information')),
|
|
531
|
-
route: {
|
|
532
|
-
name: 'crm-individual-information',
|
|
533
|
-
path: 'information',
|
|
534
|
-
component: IndividualInformationView,
|
|
535
|
-
},
|
|
536
|
-
},
|
|
537
|
-
],
|
|
538
|
-
dealTabRoutes: [],
|
|
539
|
-
excludedReturnRoutes: [
|
|
540
|
-
'crm-business-detail',
|
|
541
|
-
'crm-individual-detail',
|
|
542
|
-
/^crm-.*-edit$/,
|
|
543
|
-
],
|
|
544
|
-
})
|
|
545
|
-
```
|
|
546
|
-
|
|
547
|
-
### Generated Routes
|
|
548
|
-
|
|
549
|
-
The composable automatically generates these route patterns:
|
|
550
|
-
|
|
551
|
-
- `/individual/:individualUuid` - Individual detail page with tabs
|
|
552
|
-
- `/business/:businessUuid` - Business detail page with tabs
|
|
553
|
-
- `/deal/:dealUuid` - Deal detail page with tabs
|
|
554
|
-
|
|
555
|
-
---
|
|
556
|
-
|
|
557
|
-
## Internationalization
|
|
558
|
-
|
|
559
|
-
### Available Locales
|
|
560
|
-
|
|
561
|
-
- `en-US` - English (United States)
|
|
562
|
-
- `nl-BE` - Dutch (Belgium)
|
|
563
|
-
|
|
564
|
-
### Integration
|
|
565
|
-
|
|
566
|
-
```typescript
|
|
567
|
-
import { wiseCrmLocales } from '@wisemen/wise-crm-web'
|
|
568
|
-
|
|
569
|
-
const i18n = createI18n({
|
|
570
|
-
messages: {
|
|
571
|
-
'en-US': {
|
|
572
|
-
...yourMessages,
|
|
573
|
-
...wiseCrmLocales['en-US'],
|
|
574
|
-
},
|
|
575
|
-
'nl-BE': {
|
|
576
|
-
...yourMessages,
|
|
577
|
-
...wiseCrmLocales['nl-BE'],
|
|
578
|
-
},
|
|
579
|
-
},
|
|
580
|
-
})
|
|
581
|
-
```
|
|
582
|
-
|
|
583
|
-
### Updating Locale
|
|
584
|
-
|
|
585
|
-
The CRM automatically watches for locale changes if you're using vue-i18n. To manually update:
|
|
586
|
-
|
|
587
|
-
```typescript
|
|
588
|
-
import { useI18n } from 'vue-i18n'
|
|
589
|
-
|
|
590
|
-
const i18n = useI18n()
|
|
591
|
-
i18n.locale.value = 'nl-BE' // CRM will automatically update
|
|
592
|
-
```
|
|
593
|
-
|
|
594
|
-
---
|
|
595
|
-
|
|
596
|
-
## Icons
|
|
597
|
-
|
|
598
|
-
### Integration
|
|
599
|
-
|
|
600
|
-
```typescript
|
|
601
|
-
import { wiseCrmIcons } from '@wisemen/wise-crm-web'
|
|
602
|
-
|
|
603
|
-
export const icons = {
|
|
604
|
-
...wiseCrmIcons,
|
|
605
|
-
// Your custom icons
|
|
606
|
-
customIcon: () => import('./CustomIcon.vue'),
|
|
607
|
-
}
|
|
608
|
-
```
|
|
609
|
-
|
|
610
|
-
### Available Icons
|
|
611
|
-
|
|
612
|
-
The CRM includes icons for:
|
|
613
|
-
- Entity types (business, individual, deal)
|
|
614
|
-
- Actions (add, edit, delete, search)
|
|
615
|
-
- Navigation (back, forward, close)
|
|
616
|
-
- Status indicators
|
|
617
|
-
- And more...
|
|
618
|
-
|
|
619
|
-
---
|
|
620
|
-
|
|
621
|
-
## Testing Utilities
|
|
622
|
-
|
|
623
|
-
### Factory Classes
|
|
624
|
-
|
|
625
|
-
The library includes factory classes for generating mock data in tests.
|
|
626
|
-
|
|
627
|
-
#### Import Path
|
|
628
|
-
|
|
629
|
-
```typescript
|
|
630
|
-
import {
|
|
631
|
-
BusinessFactory,
|
|
632
|
-
IndividualFactory,
|
|
633
|
-
DealFactory,
|
|
634
|
-
NoteFactory,
|
|
635
|
-
} from '@wisemen/wise-crm-web/testing'
|
|
636
|
-
```
|
|
637
|
-
|
|
638
|
-
### `BusinessFactory`
|
|
639
|
-
|
|
640
|
-
#### Methods
|
|
641
|
-
|
|
642
|
-
##### `createDetail(overrides?): ViewBusinessDetailResponse`
|
|
643
|
-
|
|
644
|
-
Create a mock business detail object.
|
|
645
|
-
|
|
646
|
-
```typescript
|
|
647
|
-
const business = BusinessFactory.createDetail({
|
|
648
|
-
name: 'Custom Corp',
|
|
649
|
-
email: 'custom@example.com',
|
|
650
|
-
})
|
|
651
|
-
```
|
|
652
|
-
|
|
653
|
-
##### `createIndex(overrides?): ViewBusinessIndexResponseItem`
|
|
654
|
-
|
|
655
|
-
Create a mock business list item.
|
|
656
|
-
|
|
657
|
-
```typescript
|
|
658
|
-
const businessItem = BusinessFactory.createIndex({
|
|
659
|
-
name: 'List Item Corp',
|
|
660
|
-
})
|
|
661
|
-
```
|
|
662
|
-
|
|
663
|
-
##### `createIndexList(count, overrides?): ViewBusinessIndexResponseItem[]`
|
|
664
|
-
|
|
665
|
-
Create an array of mock business list items.
|
|
666
|
-
|
|
667
|
-
```typescript
|
|
668
|
-
const businesses = BusinessFactory.createIndexList(10)
|
|
669
|
-
```
|
|
670
|
-
|
|
671
|
-
##### `createBillingInformation(overrides?): ViewBusinessBillingInformationDetailResponse`
|
|
672
|
-
|
|
673
|
-
Create mock billing information.
|
|
674
|
-
|
|
675
|
-
```typescript
|
|
676
|
-
const billing = BusinessFactory.createBillingInformation({
|
|
677
|
-
invoiceEmail: 'billing@example.com',
|
|
678
|
-
})
|
|
679
|
-
```
|
|
680
|
-
|
|
681
|
-
##### `createContactPerson(overrides?): BusinessContactPersonResponse`
|
|
682
|
-
|
|
683
|
-
Create a mock contact person.
|
|
684
|
-
|
|
685
|
-
```typescript
|
|
686
|
-
const contact = BusinessFactory.createContactPerson({
|
|
687
|
-
firstName: 'John',
|
|
688
|
-
lastName: 'Doe',
|
|
689
|
-
})
|
|
690
|
-
```
|
|
691
|
-
|
|
692
|
-
##### `createStatistics(overrides?): ViewBusinessStatisticsResponse`
|
|
693
|
-
|
|
694
|
-
Create mock business statistics.
|
|
695
|
-
|
|
696
|
-
```typescript
|
|
697
|
-
const stats = BusinessFactory.createStatistics({
|
|
698
|
-
total: 100,
|
|
699
|
-
monthlyAdded: 10,
|
|
700
|
-
})
|
|
701
|
-
```
|
|
702
|
-
|
|
703
|
-
### `IndividualFactory`
|
|
704
|
-
|
|
705
|
-
Similar methods to `BusinessFactory` for individual entities:
|
|
706
|
-
|
|
707
|
-
- `createDetail(overrides?)`
|
|
708
|
-
- `createIndex(overrides?)`
|
|
709
|
-
- `createIndexList(count, overrides?)`
|
|
710
|
-
- `createBillingInformation(overrides?)`
|
|
711
|
-
- `createStatistics(overrides?)`
|
|
712
|
-
|
|
713
|
-
### `DealFactory`
|
|
714
|
-
|
|
715
|
-
- `createDetail(overrides?)`
|
|
716
|
-
- `createIndex(overrides?)`
|
|
717
|
-
- `createIndexList(count, overrides?)`
|
|
718
|
-
|
|
719
|
-
### `NoteFactory`
|
|
720
|
-
|
|
721
|
-
- `create(overrides?)`
|
|
722
|
-
- `createList(count, overrides?)`
|
|
723
|
-
|
|
724
|
-
### Testing Example
|
|
725
|
-
|
|
726
|
-
```typescript
|
|
727
|
-
import { expect, test } from '@playwright/test'
|
|
728
|
-
import { BusinessFactory } from '@wisemen/wise-crm-web/testing'
|
|
729
|
-
import { HttpResponse } from 'msw'
|
|
730
|
-
|
|
731
|
-
test('Create business', async ({ page, http, worker }) => {
|
|
732
|
-
const mockBusiness = BusinessFactory.createDetail({
|
|
733
|
-
name: 'Test Business',
|
|
734
|
-
})
|
|
735
|
-
|
|
736
|
-
await worker.use(
|
|
737
|
-
http.post('*/api/v1/businesses', () => {
|
|
738
|
-
return HttpResponse.json(
|
|
739
|
-
{ uuid: mockBusiness.uuid },
|
|
740
|
-
{ status: 201 }
|
|
741
|
-
)
|
|
742
|
-
}),
|
|
743
|
-
http.get(`*/api/v1/businesses/${mockBusiness.uuid}`, () => {
|
|
744
|
-
return HttpResponse.json(mockBusiness)
|
|
745
|
-
}),
|
|
746
|
-
)
|
|
747
|
-
|
|
748
|
-
await page.goto('/crm/businesses')
|
|
749
|
-
// ... rest of test
|
|
750
|
-
})
|
|
751
|
-
```
|
|
752
|
-
|
|
753
|
-
---
|
|
754
|
-
|
|
755
|
-
## Type System
|
|
756
|
-
|
|
757
|
-
### Entity UUID Types
|
|
758
|
-
|
|
759
|
-
The library exports branded UUID types for type safety:
|
|
760
|
-
|
|
761
|
-
```typescript
|
|
762
|
-
import type {
|
|
763
|
-
WiseCrmBusinessUuid,
|
|
764
|
-
WiseCrmIndividualUuid,
|
|
765
|
-
} from '@wisemen/wise-crm-web'
|
|
766
|
-
|
|
767
|
-
// These are branded types that prevent mixing UUIDs
|
|
768
|
-
function updateBusiness(uuid: WiseCrmBusinessUuid): void {
|
|
769
|
-
// TypeScript ensures you can't pass WiseCrmIndividualUuid here
|
|
770
|
-
}
|
|
771
|
-
```
|
|
772
|
-
|
|
773
|
-
### Validation Schemas
|
|
774
|
-
|
|
775
|
-
UUID schemas for runtime validation:
|
|
776
|
-
|
|
777
|
-
```typescript
|
|
778
|
-
import {
|
|
779
|
-
businessUuidSchema,
|
|
780
|
-
individualUuidSchema,
|
|
781
|
-
} from '@wisemen/wise-crm-web'
|
|
782
|
-
|
|
783
|
-
// Use with zod or similar validators
|
|
784
|
-
const result = businessUuidSchema.safeParse(value)
|
|
785
|
-
```
|
|
786
|
-
|
|
787
|
-
### Dialog Content Tabs
|
|
788
|
-
|
|
789
|
-
```typescript
|
|
790
|
-
import type { WiseCrmDialogContentTab } from '@wisemen/wise-crm-web'
|
|
791
|
-
|
|
792
|
-
// Type for custom dialog tab content
|
|
793
|
-
const tabs: WiseCrmDialogContentTab[] = [
|
|
794
|
-
{ label: 'General', component: GeneralTab },
|
|
795
|
-
{ label: 'Advanced', component: AdvancedTab },
|
|
796
|
-
]
|
|
797
|
-
```
|
|
798
|
-
|
|
799
|
-
---
|
|
800
|
-
|
|
801
|
-
## Environment Variables
|
|
802
|
-
|
|
803
|
-
### Required
|
|
804
|
-
|
|
805
|
-
```env
|
|
806
|
-
# CRM API Base URL
|
|
807
|
-
API_CRM_BASE_URL=https://api.your-crm.com
|
|
808
|
-
|
|
809
|
-
# Google Maps API Key (for address autocomplete)
|
|
810
|
-
GOOGLE_MAPS_API_KEY=your_google_maps_api_key
|
|
811
|
-
```
|
|
812
|
-
|
|
813
|
-
### Example `.env`
|
|
814
|
-
|
|
815
|
-
```env
|
|
816
|
-
API_CRM_BASE_URL=https://wise-crm.development.appwi.se
|
|
817
|
-
GOOGLE_MAPS_API_KEY=AIzaSyD0DOeAK9X_gXAtwPEyKPl4CaJc1dhKC9Q
|
|
818
|
-
```
|
|
819
|
-
|
|
820
|
-
---
|
|
821
|
-
|
|
822
|
-
## Advanced Usage
|
|
823
|
-
|
|
824
|
-
### Custom Field Definitions
|
|
825
|
-
|
|
826
|
-
Access custom field definitions for dynamic form generation:
|
|
827
|
-
|
|
828
|
-
```typescript
|
|
829
|
-
import { EntityType } from '@wisemen/wise-crm-web/client'
|
|
830
|
-
import { useWiseCrmConfig } from '@wisemen/wise-crm-web'
|
|
831
|
-
|
|
832
|
-
const crmConfig = useWiseCrmConfig()
|
|
833
|
-
|
|
834
|
-
const customFields = crmConfig.getCustomFieldDefinitionForEntity(
|
|
835
|
-
EntityType.BUSINESS
|
|
836
|
-
)
|
|
837
|
-
|
|
838
|
-
// Use customFields to render dynamic form fields
|
|
839
|
-
```
|
|
840
|
-
|
|
841
|
-
### Entity Configuration
|
|
842
|
-
|
|
843
|
-
Get localized entity names and colors:
|
|
844
|
-
|
|
845
|
-
```typescript
|
|
846
|
-
import { EntityType } from '@wisemen/wise-crm-web/client'
|
|
847
|
-
import { useWiseCrm } from '@wisemen/wise-crm-web'
|
|
848
|
-
|
|
849
|
-
const crm = useWiseCrm()
|
|
850
|
-
const businessConfig = crm.getEntityConfig(EntityType.BUSINESS)
|
|
851
|
-
|
|
852
|
-
console.log(businessConfig?.name) // "Business" or "Bedrijf"
|
|
853
|
-
console.log(businessConfig?.color) // "blue", "green", etc.
|
|
854
|
-
```
|
|
855
|
-
|
|
856
|
-
### CSS Custom Properties
|
|
857
|
-
|
|
858
|
-
The CRM automatically sets CSS custom properties for entity colors:
|
|
859
|
-
|
|
860
|
-
```css
|
|
861
|
-
/* Available CSS variables */
|
|
862
|
-
--wise-crm-business-50
|
|
863
|
-
--wise-crm-business-100
|
|
864
|
-
--wise-crm-business-200
|
|
865
|
-
/* ... etc for all color shades */
|
|
866
|
-
|
|
867
|
-
--wise-crm-individual-50
|
|
868
|
-
--wise-crm-individual-100
|
|
869
|
-
/* ... etc */
|
|
870
|
-
```
|
|
871
|
-
|
|
872
|
-
Use these in your custom components for consistent theming:
|
|
873
|
-
|
|
874
|
-
```vue
|
|
875
|
-
<style scoped>
|
|
876
|
-
.business-badge {
|
|
877
|
-
background-color: var(--wise-crm-business-100);
|
|
878
|
-
color: var(--wise-crm-business-700);
|
|
879
|
-
}
|
|
880
|
-
</style>
|
|
881
|
-
```
|
|
882
|
-
|
|
883
|
-
---
|
|
884
|
-
|
|
885
|
-
## Troubleshooting
|
|
886
|
-
|
|
887
|
-
### "CRM Tenant Config not initialized" Error
|
|
888
|
-
|
|
889
|
-
**Cause:** Attempting to use CRM components before initialization.
|
|
890
|
-
|
|
891
|
-
**Solution:** Ensure `useWiseCrmConfig().init()` is called before rendering any CRM components. Use `isInitialized` to conditionally render:
|
|
892
|
-
|
|
893
|
-
```vue
|
|
894
|
-
<script setup lang="ts">
|
|
895
|
-
import { useWiseCrmConfig } from '@wisemen/wise-crm-web'
|
|
896
|
-
|
|
897
|
-
const crmConfig = useWiseCrmConfig()
|
|
898
|
-
|
|
899
|
-
// Initialize in onMounted or similar
|
|
900
|
-
onMounted(async () => {
|
|
901
|
-
await crmConfig.init({ /* ... */ })
|
|
902
|
-
})
|
|
903
|
-
</script>
|
|
904
|
-
|
|
905
|
-
<template>
|
|
906
|
-
<div v-if="crmConfig.isInitialized.value">
|
|
907
|
-
<WiseCrmOverviewContent />
|
|
908
|
-
</div>
|
|
909
|
-
<div v-else>
|
|
910
|
-
Loading CRM...
|
|
911
|
-
</div>
|
|
912
|
-
</template>
|
|
913
|
-
```
|
|
914
|
-
|
|
915
|
-
### TypeScript Errors with Factory Methods
|
|
916
|
-
|
|
917
|
-
**Cause:** Stale TypeScript cache or build artifacts.
|
|
918
|
-
|
|
919
|
-
**Solution:**
|
|
920
|
-
1. Restart TypeScript server: `Cmd+Shift+P` → "TypeScript: Restart TS Server"
|
|
921
|
-
2. Rebuild packages: `pnpm build`
|
|
922
|
-
3. Clear build cache: `rm -rf dist node_modules/.cache`
|
|
923
|
-
|
|
924
|
-
### Address Autocomplete Not Working
|
|
925
|
-
|
|
926
|
-
**Cause:** Invalid or missing Google Maps API key.
|
|
927
|
-
|
|
928
|
-
**Solution:** Ensure your `GOOGLE_MAPS_API_KEY` environment variable is set and the key has the Places API enabled in Google Cloud Console.
|
|
929
|
-
|
|
930
|
-
---
|
|
931
|
-
|
|
932
|
-
## Examples
|
|
933
|
-
|
|
934
|
-
### Complete Integration Example
|
|
935
|
-
|
|
936
|
-
```vue
|
|
937
|
-
<!-- App.vue -->
|
|
938
|
-
<script setup lang="ts">
|
|
939
|
-
import { useWiseCrmConfig } from '@wisemen/wise-crm-web'
|
|
940
|
-
import { BoardColumnTransitionTriggerType } from '@wisemen/wise-crm-web/client'
|
|
941
|
-
import { onMounted } from 'vue'
|
|
942
|
-
|
|
943
|
-
const crmConfig = useWiseCrmConfig()
|
|
944
|
-
|
|
945
|
-
onMounted(async () => {
|
|
946
|
-
await crmConfig.init({
|
|
947
|
-
apiCrmBaseUrl: import.meta.env.API_CRM_BASE_URL,
|
|
948
|
-
getAccessToken: () => authClient.getToken(),
|
|
949
|
-
googleMapsApiKey: import.meta.env.GOOGLE_MAPS_API_KEY,
|
|
950
|
-
locale: 'en-US',
|
|
951
|
-
options: {
|
|
952
|
-
deals: {
|
|
953
|
-
allowedTransitionTriggerTypes: [
|
|
954
|
-
BoardColumnTransitionTriggerType.MANUAL,
|
|
955
|
-
],
|
|
956
|
-
},
|
|
957
|
-
widgets: {
|
|
958
|
-
entityStatistics: {
|
|
959
|
-
viewAllBusinessRouteName: 'businesses',
|
|
960
|
-
viewAllIndividualRouteName: 'individuals',
|
|
961
|
-
},
|
|
962
|
-
recentlyCreatedEntities: true,
|
|
963
|
-
},
|
|
964
|
-
},
|
|
965
|
-
})
|
|
966
|
-
})
|
|
967
|
-
</script>
|
|
968
|
-
|
|
969
|
-
<template>
|
|
970
|
-
<RouterView v-if="crmConfig.isInitialized.value" />
|
|
971
|
-
</template>
|
|
972
|
-
```
|
|
973
|
-
|
|
974
|
-
```typescript
|
|
975
|
-
// router.ts
|
|
976
|
-
import { createRouter } from 'vue-router'
|
|
977
|
-
import { useWiseCrmRoutes } from '@wisemen/wise-crm-web'
|
|
978
|
-
import { computed } from 'vue'
|
|
979
|
-
|
|
980
|
-
const router = createRouter({
|
|
981
|
-
routes: [
|
|
982
|
-
{
|
|
983
|
-
path: '/crm',
|
|
984
|
-
children: [
|
|
985
|
-
{
|
|
986
|
-
name: 'crm-overview',
|
|
987
|
-
path: '',
|
|
988
|
-
component: () => import('./views/CrmOverview.vue'),
|
|
989
|
-
},
|
|
990
|
-
{
|
|
991
|
-
name: 'crm-businesses',
|
|
992
|
-
path: 'businesses',
|
|
993
|
-
component: () => import('./views/BusinessList.vue'),
|
|
994
|
-
},
|
|
995
|
-
{
|
|
996
|
-
name: 'crm-individuals',
|
|
997
|
-
path: 'individuals',
|
|
998
|
-
component: () => import('./views/IndividualList.vue'),
|
|
999
|
-
},
|
|
1000
|
-
],
|
|
1001
|
-
},
|
|
1002
|
-
useWiseCrmRoutes({
|
|
1003
|
-
businessTabRoutes: [
|
|
1004
|
-
{
|
|
1005
|
-
label: computed(() => 'Information'),
|
|
1006
|
-
route: {
|
|
1007
|
-
name: 'business-info',
|
|
1008
|
-
path: 'information',
|
|
1009
|
-
component: () => import('./views/BusinessInfo.vue'),
|
|
1010
|
-
},
|
|
1011
|
-
},
|
|
1012
|
-
],
|
|
1013
|
-
individualTabRoutes: [
|
|
1014
|
-
{
|
|
1015
|
-
label: computed(() => 'Information'),
|
|
1016
|
-
route: {
|
|
1017
|
-
name: 'individual-info',
|
|
1018
|
-
path: 'information',
|
|
1019
|
-
component: () => import('./views/IndividualInfo.vue'),
|
|
1020
|
-
},
|
|
1021
|
-
},
|
|
1022
|
-
],
|
|
1023
|
-
dealTabRoutes: [],
|
|
1024
|
-
}),
|
|
1025
|
-
],
|
|
1026
|
-
})
|
|
1027
|
-
```
|
|
1028
|
-
|
|
1029
|
-
---
|
|
1030
|
-
|
|
1031
|
-
## License
|
|
1032
|
-
|
|
1033
|
-
MIT
|
|
1034
|
-
|
|
1035
|
-
## Support
|
|
1036
|
-
|
|
1037
|
-
For issues and questions, please contact the WiseMen Digital team.
|