@wisemen/wise-crm-web 0.2.0 → 0.2.2
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/README.md +1037 -0
- package/dist/BusinessDetailSidebarProvider-BQMRbGHQ.js +2083 -0
- package/dist/{BusinessDetailView-DvhFfuGg.js → BusinessDetailView-BxGxWOme.js} +5 -5
- package/dist/{CrmDetailHeaderCard-e5332OkQ.js → CrmDetailHeaderCard-CCNJpMAK.js} +68 -67
- package/dist/{CrmDetailView-C-lsAhtD.js → CrmDetailView-ozCpuaX2.js} +14 -14
- package/dist/{DealCommunicationTabView-e7NkRy9r.js → DealCommunicationTabView-Df5EeolN.js} +2 -2
- package/dist/{DealDetailView-BDCbOBoo.js → DealDetailView-DdWHqaBr.js} +163 -163
- package/dist/{DealExternalAttachment-D1PznE3V.js → DealExternalAttachment-qHdh4yMI.js} +1 -1
- package/dist/{DealSendMailDialog-DVE2iYQC.js → DealSendMailDialog-BaYcWZP-.js} +65 -69
- package/dist/Error-BArv9rNb.js +12650 -0
- package/dist/IndividualDetailSidebarProvider-BXZH951l.js +608 -0
- package/dist/{IndividualDetailView-B7dX3hZ8.js → IndividualDetailView-DfYS31-e.js} +5 -5
- package/dist/LinkBrokenIcon-CTlqmapl.js +17 -0
- package/dist/api/mutations/deal/dealCreate.mutation.d.ts +1 -1
- package/dist/api/mutations/deal/dealUpdate.mutation.d.ts +3 -3
- package/dist/api/mutations/mail-template/mailTemplateUpdate.mutation.d.ts +1 -1
- package/dist/client/apiErrorCode.gen.d.ts +2 -2
- package/dist/client/sdk.gen.d.ts +20 -17
- package/dist/client/types.gen.d.ts +1057 -1376
- package/dist/client/zod.gen.d.ts +15453 -17750
- package/dist/{client-BP13IBbl.js → client-pCaNxE3C.js} +748 -1047
- package/dist/components/app/dialog/AppConfirmDialog.vue.d.ts +2 -2
- package/dist/components/crm-detail/CrmDetailHeaderCard.vue.d.ts +2 -0
- package/dist/components/crm-detail/CrmDetailSidebarAccordionContactPersonInfo.vue.d.ts +2 -2
- package/dist/components/crm-detail/CrmDetailSidebarAccordionGenericContactPersonInfo.vue.d.ts +2 -2
- package/dist/components/notes/NoteList.vue.d.ts +2 -2
- package/dist/deal/components/DealSendMailForm.vue.d.ts +2 -2
- package/dist/deal/components/DealSendMailFormFooter.vue.d.ts +1 -1
- package/dist/deal/components/DealSettingsDialogMailTemplateForm.vue.d.ts +2 -2
- package/dist/deal/components/DealSettingsDialogMailTemplateFormFields.vue.d.ts +2 -2
- package/dist/dialogs/contact-create/ContactCreateDialog.vue.d.ts +1 -1
- package/dist/dialogs/contact-create/components/ContactCreateDialogBusinessContactPersonSearch.vue.d.ts +2 -2
- package/dist/dialogs/contact-create/components/ContactCreateDialogBusinessGeneralInfo.vue.d.ts +2 -2
- package/dist/dialogs/contact-create/components/ContactCreateDialogFooter.vue.d.ts +2 -2
- package/dist/dialogs/contact-create/components/ContactCreateDialogFormSection.vue.d.ts +2 -2
- package/dist/dialogs/note/CrmDetailSidebarNotesView.vue.d.ts +2 -2
- package/dist/icons/LinkBrokenIcon.vue.d.ts +3 -0
- package/dist/icons/icon.d.ts +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +448 -453
- package/dist/models/brand-colors/brandColor.model.d.ts +14 -0
- package/dist/models/brand-colors/brandColor.transformer.d.ts +5 -0
- package/dist/models/conent-locale/contentLocaleEnum.model.d.ts +3 -3
- package/dist/models/deal/create/dealCreateForm.model.d.ts +2 -2
- package/dist/models/deal/detail/dealDetail.model.d.ts +2 -2
- package/dist/models/deal/index/dealIndex.model.d.ts +2 -2
- package/dist/models/deal/update/dealUpdateForm.model.d.ts +2 -2
- package/dist/models/mail-template/detail/mailTemplateDetail.model.d.ts +2 -2
- package/dist/models/mail-template/update/mailTemplateUpdateForm.model.d.ts +3 -3
- package/dist/models/phone-number/phoneNumberForm.model.d.ts +3 -0
- package/dist/models/tenant-config/tenantConfig.model.d.ts +3 -0
- package/dist/plugins/i18n.plugin.d.ts +4 -0
- package/dist/style.css +1 -1
- package/dist/testing/factories/business.factory.d.ts +2 -1
- package/dist/testing.js +23 -2
- package/package.json +2 -1
- package/dist/BusinessDetailSidebarProvider-D11bjWFa.js +0 -2081
- package/dist/BusinessDetailSidebarProvider-DYY-Uzvx.js +0 -2081
- package/dist/BusinessDetailSidebarProvider-ZYGQoNHh.js +0 -2081
- package/dist/BusinessDetailView-BOCy7G-w.js +0 -24
- package/dist/BusinessDetailView-WaATSNQS.js +0 -24
- package/dist/CrmDetailHeaderCard-C-JNdi7s.js +0 -2515
- package/dist/CrmDetailHeaderCard-qkNK-2wR.js +0 -2515
- package/dist/CrmDetailView-C6Xm1Lp6.js +0 -65
- package/dist/CrmDetailView-DQehs8Fb.js +0 -65
- package/dist/DealDetailView-BfkDNvK4.js +0 -1021
- package/dist/DealDetailView-Cs5TDhih.js +0 -1021
- package/dist/DealSendMailDialog-D5Voyhhc.js +0 -1556
- package/dist/DealSendMailDialog-OAn6xjLq.js +0 -1556
- package/dist/Error-5vt6UD4m.js +0 -3708
- package/dist/Error-B4TwHEhb.js +0 -3706
- package/dist/Error-BPxDpKcI.js +0 -3706
- package/dist/IndividualDetailSidebarProvider-CvZQdjzp.js +0 -606
- package/dist/IndividualDetailSidebarProvider-DBITt-9W.js +0 -606
- package/dist/IndividualDetailSidebarProvider-vIu7Hv8O.js +0 -606
- package/dist/IndividualDetailView-B1vbJXGc.js +0 -24
- package/dist/IndividualDetailView-BKEs0XS5.js +0 -24
- /package/dist/{LinkExternalIcon-B9Qg55Oa.js → LinkExternalIcon-LOVtSqBT.js} +0 -0
- /package/dist/{LinkIcon-DCW5zjbQ.js → LinkIcon-DqBbVrvs.js} +0 -0
- /package/dist/{LocationPinIcon-DBc-wt2e.js → LocationPinIcon-Cp-wRgk2.js} +0 -0
- /package/dist/{MailIcon-Do4a7S2W.js → MailIcon-CnTrB1k3.js} +0 -0
- /package/dist/{MobilePhoneIcon-DSXyKwjd.js → MobilePhoneIcon-B747hmpS.js} +0 -0
- /package/dist/{NumberedListIcon-DUaSJSYu.js → NumberedListIcon-amJxDaaD.js} +0 -0
- /package/dist/{PhoneIcon-C8Cv1IiW.js → PhoneIcon-94MYVL85.js} +0 -0
- /package/dist/{RefreshIcon-CKZgHIZU.js → RefreshIcon-DRe3coBc.js} +0 -0
- /package/dist/{SendIcon-B-sQkQ3W.js → SendIcon-MYItp1xI.js} +0 -0
- /package/dist/{SettingsIcon-DzP-IQS5.js → SettingsIcon-C0qTAv0w.js} +0 -0
- /package/dist/{StarOutlineIcon-c0VfXRdQ.js → StarOutlineIcon-CiFLgepk.js} +0 -0
- /package/dist/{StarYellowIcon-CH0CnlSU.js → StarYellowIcon-C0v_XGwI.js} +0 -0
- /package/dist/{ThreeDotsIcon-C6PCFq5J.js → ThreeDotsIcon-lujOTU3G.js} +0 -0
- /package/dist/{TimeLineMarkerIcon-6B6SbwTN.js → TimeLineMarkerIcon-C4LfErbc.js} +0 -0
- /package/dist/{TrashIcon-BTPSVviz.js → TrashIcon-v4L9SEK_.js} +0 -0
- /package/dist/{UploadCloudIcon-1aMW5OJq.js → UploadCloudIcon-j1-1Rvqb.js} +0 -0
- /package/dist/{UserCircleIcon-D-19dc-2.js → UserCircleIcon-BjUt_2C4.js} +0 -0
- /package/dist/{UserIcon-D1H8TGlg.js → UserIcon-Cb2jFKLr.js} +0 -0
- /package/dist/{VerticalDotsIcon-DmPza4Jd.js → VerticalDotsIcon-Y3m6tlQ2.js} +0 -0
- /package/dist/{WalletIcon-BlI3D3v-.js → WalletIcon-pPsKbzmh.js} +0 -0
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { E as useCrmConfig, O as AppColorProvider_default, w as useCrm } from "./Error-5vt6UD4m.js";
|
|
2
|
-
import { Fragment, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, openBlock, ref, renderList, renderSlot, toDisplayString, toValue, unref, withCtx } from "vue";
|
|
3
|
-
import { VcIconButton, VcRouterLinkTabs, VcRouterLinkTabsItem } from "@wisemen/vue-core-components";
|
|
4
|
-
import { RouterView } from "vue-router";
|
|
5
|
-
import { onKeyStroke } from "@vueuse/core";
|
|
6
|
-
var ContextUtil = class {
|
|
7
|
-
static parentHasAriaHidden(u) {
|
|
8
|
-
let j = u.parentElement;
|
|
9
|
-
for (; j;) {
|
|
10
|
-
if (j.hasAttribute("aria-hidden")) return j.getAttribute("aria-hidden") === "true";
|
|
11
|
-
j = j.parentElement;
|
|
12
|
-
}
|
|
13
|
-
return !1;
|
|
14
|
-
}
|
|
15
|
-
}, _hoisted_1 = { key: 0 }, _hoisted_2 = { class: "flex h-dvh w-dvw flex-1 overflow-hidden" }, _hoisted_3 = { class: "flex h-full min-w-[400px] flex-col" }, _hoisted_4 = { class: "bg-secondary flex h-full w-full flex-1 justify-center overflow-hidden" }, _hoisted_5 = { class: "flex w-full flex-col" }, _hoisted_6 = { class: "p-lg grid w-full grid-cols-3" }, _hoisted_7 = { class: "flex items-center justify-center" }, _hoisted_8 = { class: "flex items-center justify-end" }, _hoisted_9 = { class: "h-full w-full overflow-y-auto" }, CrmDetailView_default = /* @__PURE__ */ defineComponent({
|
|
16
|
-
__name: "CrmDetailView",
|
|
17
|
-
props: {
|
|
18
|
-
entityType: {},
|
|
19
|
-
tabs: {}
|
|
20
|
-
},
|
|
21
|
-
setup(N) {
|
|
22
|
-
let P = N, F = ref(null), I = useCrm(), L = useCrmConfig();
|
|
23
|
-
return onKeyStroke("Escape", () => {
|
|
24
|
-
let u = F.value?.$el;
|
|
25
|
-
u && ContextUtil.parentHasAriaHidden(u) || I.goToReturnRoute();
|
|
26
|
-
}), (u, M) => unref(L).isInitialized.value ? (openBlock(), createElementBlock("div", _hoisted_1, [createElementVNode("div", _hoisted_2, [createElementVNode("div", _hoisted_3, [renderSlot(u.$slots, "sidebar")]), createVNode(AppColorProvider_default, {
|
|
27
|
-
color: unref(I).getEntityConfig(N.entityType)?.color ?? null,
|
|
28
|
-
class: "relative flex flex-1 flex-col overflow-hidden"
|
|
29
|
-
}, {
|
|
30
|
-
default: withCtx(() => [createElementVNode("div", _hoisted_4, [createElementVNode("div", _hoisted_5, [createElementVNode("div", _hoisted_6, [
|
|
31
|
-
M[1] ||= createElementVNode("div", null, null, -1),
|
|
32
|
-
createElementVNode("div", _hoisted_7, [createVNode(unref(VcRouterLinkTabs), {
|
|
33
|
-
"class-config": {
|
|
34
|
-
base: "flex justify-center bg-primary border-none shadow-lg w-fit",
|
|
35
|
-
list: "rounded-lg w-fit",
|
|
36
|
-
item: "data-[state=active]:text-white",
|
|
37
|
-
indicator: "rounded-md bg-gradient-to-b bg-brand-500",
|
|
38
|
-
scrollContainer: "!p-xs bg-white rounded-lg border border-primary/50"
|
|
39
|
-
},
|
|
40
|
-
variant: "button-border"
|
|
41
|
-
}, {
|
|
42
|
-
items: withCtx(() => [(openBlock(!0), createElementBlock(Fragment, null, renderList(P.tabs, (u) => (openBlock(), createBlock(unref(VcRouterLinkTabsItem), {
|
|
43
|
-
key: toValue(u.label),
|
|
44
|
-
to: { name: u.to }
|
|
45
|
-
}, {
|
|
46
|
-
default: withCtx(() => [createTextVNode(toDisplayString(toValue(u.label)), 1)]),
|
|
47
|
-
_: 2
|
|
48
|
-
}, 1032, ["to"]))), 128))]),
|
|
49
|
-
_: 1
|
|
50
|
-
})]),
|
|
51
|
-
createElementVNode("div", _hoisted_8, [createVNode(unref(VcIconButton), {
|
|
52
|
-
ref_key: "closeButtonRef",
|
|
53
|
-
ref: F,
|
|
54
|
-
"class-config": { root: "rounded-md shadow-lg" },
|
|
55
|
-
icon: "close",
|
|
56
|
-
label: "Close",
|
|
57
|
-
variant: "secondary",
|
|
58
|
-
onClick: M[0] ||= (u) => unref(I).goToReturnRoute()
|
|
59
|
-
}, null, 512)])
|
|
60
|
-
]), createElementVNode("div", _hoisted_9, [createVNode(unref(RouterView))])])])]),
|
|
61
|
-
_: 1
|
|
62
|
-
}, 8, ["color"])])])) : createCommentVNode("", !0);
|
|
63
|
-
}
|
|
64
|
-
});
|
|
65
|
-
export { CrmDetailView_default as t };
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { E as useCrmConfig, O as AppColorProvider_default, w as useCrm } from "./Error-B4TwHEhb.js";
|
|
2
|
-
import { Fragment, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, openBlock, ref, renderList, renderSlot, toDisplayString, toValue, unref, withCtx } from "vue";
|
|
3
|
-
import { VcIconButton, VcRouterLinkTabs, VcRouterLinkTabsItem } from "@wisemen/vue-core-components";
|
|
4
|
-
import { RouterView } from "vue-router";
|
|
5
|
-
import { onKeyStroke } from "@vueuse/core";
|
|
6
|
-
var ContextUtil = class {
|
|
7
|
-
static parentHasAriaHidden(u) {
|
|
8
|
-
let j = u.parentElement;
|
|
9
|
-
for (; j;) {
|
|
10
|
-
if (j.hasAttribute("aria-hidden")) return j.getAttribute("aria-hidden") === "true";
|
|
11
|
-
j = j.parentElement;
|
|
12
|
-
}
|
|
13
|
-
return !1;
|
|
14
|
-
}
|
|
15
|
-
}, _hoisted_1 = { key: 0 }, _hoisted_2 = { class: "flex h-dvh w-dvw flex-1 overflow-hidden" }, _hoisted_3 = { class: "flex h-full min-w-[400px] flex-col" }, _hoisted_4 = { class: "bg-secondary flex h-full w-full flex-1 justify-center overflow-hidden" }, _hoisted_5 = { class: "flex w-full flex-col" }, _hoisted_6 = { class: "p-lg grid w-full grid-cols-3" }, _hoisted_7 = { class: "flex items-center justify-center" }, _hoisted_8 = { class: "flex items-center justify-end" }, _hoisted_9 = { class: "h-full w-full overflow-y-auto" }, CrmDetailView_default = /* @__PURE__ */ defineComponent({
|
|
16
|
-
__name: "CrmDetailView",
|
|
17
|
-
props: {
|
|
18
|
-
entityType: {},
|
|
19
|
-
tabs: {}
|
|
20
|
-
},
|
|
21
|
-
setup(N) {
|
|
22
|
-
let P = N, F = ref(null), I = useCrm(), L = useCrmConfig();
|
|
23
|
-
return onKeyStroke("Escape", () => {
|
|
24
|
-
let u = F.value?.$el;
|
|
25
|
-
u && ContextUtil.parentHasAriaHidden(u) || I.goToReturnRoute();
|
|
26
|
-
}), (u, M) => unref(L).isInitialized.value ? (openBlock(), createElementBlock("div", _hoisted_1, [createElementVNode("div", _hoisted_2, [createElementVNode("div", _hoisted_3, [renderSlot(u.$slots, "sidebar")]), createVNode(AppColorProvider_default, {
|
|
27
|
-
color: unref(I).getEntityConfig(N.entityType)?.color ?? null,
|
|
28
|
-
class: "relative flex flex-1 flex-col overflow-hidden"
|
|
29
|
-
}, {
|
|
30
|
-
default: withCtx(() => [createElementVNode("div", _hoisted_4, [createElementVNode("div", _hoisted_5, [createElementVNode("div", _hoisted_6, [
|
|
31
|
-
M[1] ||= createElementVNode("div", null, null, -1),
|
|
32
|
-
createElementVNode("div", _hoisted_7, [createVNode(unref(VcRouterLinkTabs), {
|
|
33
|
-
"class-config": {
|
|
34
|
-
base: "flex justify-center bg-primary border-none shadow-lg w-fit",
|
|
35
|
-
list: "rounded-lg w-fit",
|
|
36
|
-
item: "data-[state=active]:text-white",
|
|
37
|
-
indicator: "rounded-md bg-gradient-to-b bg-brand-500",
|
|
38
|
-
scrollContainer: "!p-xs bg-white rounded-lg border border-primary/50"
|
|
39
|
-
},
|
|
40
|
-
variant: "button-border"
|
|
41
|
-
}, {
|
|
42
|
-
items: withCtx(() => [(openBlock(!0), createElementBlock(Fragment, null, renderList(P.tabs, (u) => (openBlock(), createBlock(unref(VcRouterLinkTabsItem), {
|
|
43
|
-
key: toValue(u.label),
|
|
44
|
-
to: { name: u.to }
|
|
45
|
-
}, {
|
|
46
|
-
default: withCtx(() => [createTextVNode(toDisplayString(toValue(u.label)), 1)]),
|
|
47
|
-
_: 2
|
|
48
|
-
}, 1032, ["to"]))), 128))]),
|
|
49
|
-
_: 1
|
|
50
|
-
})]),
|
|
51
|
-
createElementVNode("div", _hoisted_8, [createVNode(unref(VcIconButton), {
|
|
52
|
-
ref_key: "closeButtonRef",
|
|
53
|
-
ref: F,
|
|
54
|
-
"class-config": { root: "rounded-md shadow-lg" },
|
|
55
|
-
icon: "close",
|
|
56
|
-
label: "Close",
|
|
57
|
-
variant: "secondary",
|
|
58
|
-
onClick: M[0] ||= (u) => unref(I).goToReturnRoute()
|
|
59
|
-
}, null, 512)])
|
|
60
|
-
]), createElementVNode("div", _hoisted_9, [createVNode(unref(RouterView))])])])]),
|
|
61
|
-
_: 1
|
|
62
|
-
}, 8, ["color"])])])) : createCommentVNode("", !0);
|
|
63
|
-
}
|
|
64
|
-
});
|
|
65
|
-
export { CrmDetailView_default as t };
|