@wisemen/wise-crm-web 1.0.0 → 1.2.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.
Files changed (97) hide show
  1. package/dist/ActivityIcon-DNdtN-M_.js +19 -0
  2. package/dist/AppSkeletonLoader-Dq6pKznm.js +1112 -0
  3. package/dist/{AttachmentIcon-CsucE3yf.js → AttachmentIcon-BLUd7LaN.js} +9 -7
  4. package/dist/BoldIcon-WRYUWz15.js +16 -0
  5. package/dist/{BookIcon-DgT3flV5.js → BookIcon-Bb3r5y_J.js} +9 -7
  6. package/dist/{BuildingIcon-Bm18omgW.js → BuildingIcon-DFutRg8d.js} +9 -7
  7. package/dist/{BuildingsIcon-D4X7QciL.js → BuildingsIcon-BVHy6yoa.js} +9 -7
  8. package/dist/{BulletListIcon-CNCV-cOS.js → BulletListIcon-BhOXLSBa.js} +9 -7
  9. package/dist/BusinessDetailSidebarProvider-a6VeNUii.js +2946 -0
  10. package/dist/BusinessDetailView-Dz3wDSx5.js +24 -0
  11. package/dist/ChevronDownIcon-BmyTSPND.js +19 -0
  12. package/dist/ClockIcon-BYfZAvIE.js +23 -0
  13. package/dist/ClockPlusIcon-BcNi0Y9I.js +23 -0
  14. package/dist/{CopyIcon-CUomKXdn.js → CopyIcon-2eV8MRv_.js} +9 -7
  15. package/dist/CrmDetailHeaderCard-BkA0Z-Cu.js +2523 -0
  16. package/dist/CrmDetailView-BhZEQqUH.js +67 -0
  17. package/dist/DealCommunicationTabView-Drp9MEPu.js +140 -0
  18. package/dist/DealDetailView-DWLudchX.js +1049 -0
  19. package/dist/DealExternalAttachment-B6l0gDqF.js +179 -0
  20. package/dist/{DealIcon-CpO-DkyS.js → DealIcon-BwUWYDxo.js} +9 -7
  21. package/dist/DealSendMailDialog-Dqei4933.js +1566 -0
  22. package/dist/DownloadCloudIcon-BSrLGGrY.js +19 -0
  23. package/dist/{EditWithLineIcon-C0WMD50F.js → EditWithLineIcon-BKYDPJOY.js} +9 -7
  24. package/dist/{Error-X0deDY-N.js → Error-za-wClcU.js} +2591 -2462
  25. package/dist/{FileIcon-3FebXgYQ.js → FileIcon-DL1e1tAu.js} +9 -7
  26. package/dist/FilterLinesIcon-DgVMySAE.js +22 -0
  27. package/dist/H1Icon-B6NEsEbj.js +17 -0
  28. package/dist/{H2Icon-CuEmp9I0.js → H2Icon-CNof5Ohu.js} +9 -7
  29. package/dist/{H3Icon-wAPhdYIf.js → H3Icon-B2F2Tb6r.js} +9 -7
  30. package/dist/HashIcon-C_XttKfW.js +19 -0
  31. package/dist/HomeFilledIcon-DtZ2eXxt.js +16 -0
  32. package/dist/IndividualDetailSidebarProvider-jjRoK1Av.js +609 -0
  33. package/dist/IndividualDetailView-BqIRHn-0.js +24 -0
  34. package/dist/ItalicIcon-DqBns3yy.js +17 -0
  35. package/dist/{LayersTreeIcon-Ct-owndO.js → LayersTreeIcon-DZZCSCY9.js} +10 -8
  36. package/dist/{LinkBrokenIcon-CTlqmapl.js → LinkBrokenIcon-BNBpWSi7.js} +9 -7
  37. package/dist/{LinkExternalIcon-LOVtSqBT.js → LinkExternalIcon-B7SHeB1_.js} +9 -7
  38. package/dist/LinkIcon-8bCrZEv9.js +17 -0
  39. package/dist/{LocationPinIcon-Cp-wRgk2.js → LocationPinIcon-UySRqSfG.js} +9 -7
  40. package/dist/{MailIcon-CnTrB1k3.js → MailIcon-BT7gSIZb.js} +9 -7
  41. package/dist/{MobilePhoneIcon-B747hmpS.js → MobilePhoneIcon-_KQGnCSS.js} +9 -7
  42. package/dist/NumberedListIcon-B-JVTSAe.js +17 -0
  43. package/dist/{PhoneIcon-94MYVL85.js → PhoneIcon-DGGW_MNR.js} +9 -7
  44. package/dist/{RefreshIcon-DRe3coBc.js → RefreshIcon-D1QWfdPD.js} +9 -7
  45. package/dist/{SendIcon-MYItp1xI.js → SendIcon-BtJ-NCec.js} +9 -7
  46. package/dist/{SettingsIcon-C0qTAv0w.js → SettingsIcon-CWFwJelS.js} +10 -8
  47. package/dist/{StarOutlineIcon-CiFLgepk.js → StarOutlineIcon-C-ELTCDQ.js} +9 -7
  48. package/dist/{StarYellowIcon-C0v_XGwI.js → StarYellowIcon-7wuNWaQO.js} +9 -7
  49. package/dist/{ThreeDotsIcon-lujOTU3G.js → ThreeDotsIcon-C56RWk-0.js} +12 -10
  50. package/dist/TimeLineMarkerIcon-DLmPwfs6.js +18 -0
  51. package/dist/{TrashIcon-v4L9SEK_.js → TrashIcon-o4PWmcYe.js} +9 -7
  52. package/dist/UploadCloudIcon-D2tWB0NP.js +19 -0
  53. package/dist/{UserCircleIcon-BjUt_2C4.js → UserCircleIcon-DiDajcIH.js} +10 -8
  54. package/dist/UserIcon-Bv1eF7ln.js +22 -0
  55. package/dist/{VerticalDotsIcon-Y3m6tlQ2.js → VerticalDotsIcon-YcD73UqY.js} +9 -7
  56. package/dist/{WalletIcon-pPsKbzmh.js → WalletIcon-CUh92U5K.js} +9 -7
  57. package/dist/_plugin-vue_export-helper-D3hKq4w_.js +8 -0
  58. package/dist/client-9P6xe_5g.js +4188 -0
  59. package/dist/components/auto-focus/AutoFocus.vue.d.ts +13 -0
  60. package/dist/components/column-layout/ColumnLayout.vue.d.ts +1 -1
  61. package/dist/components/row-layout/RowLayout.vue.d.ts +1 -1
  62. package/dist/components/text/Text.vue.d.ts +1 -1
  63. package/dist/index.js +1881 -1693
  64. package/dist/style.css +2 -2
  65. package/dist/testing.js +102 -98
  66. package/dist/utils/color.util.d.ts +6 -0
  67. package/dist/{uuid.util-C1p-yuFc.js → uuid.util-DpiDKVoj.js} +4 -2
  68. package/package.json +30 -30
  69. package/dist/ActivityIcon-DFD9ZhO0.js +0 -17
  70. package/dist/AppSkeletonLoader-BAhoOmFD.js +0 -1106
  71. package/dist/BoldIcon-DY2FlAS0.js +0 -14
  72. package/dist/BusinessDetailSidebarProvider-Dm6Dd7Nq.js +0 -2899
  73. package/dist/BusinessDetailView-BHVUfCpV.js +0 -24
  74. package/dist/ChevronDownIcon-CfBAAAca.js +0 -17
  75. package/dist/ClockIcon-Ckr1IQBt.js +0 -21
  76. package/dist/ClockPlusIcon-CVN69pCS.js +0 -21
  77. package/dist/CrmDetailHeaderCard-CiVLyIuw.js +0 -2516
  78. package/dist/CrmDetailView-DaAuWeiB.js +0 -65
  79. package/dist/DealCommunicationTabView-xq_zOAsr.js +0 -137
  80. package/dist/DealDetailView-C54XpYN1.js +0 -1021
  81. package/dist/DealExternalAttachment-Dp44vkgt.js +0 -177
  82. package/dist/DealSendMailDialog-D11Tgd_A.js +0 -1552
  83. package/dist/DownloadCloudIcon-VMmB9vit.js +0 -17
  84. package/dist/FilterLinesIcon-DHpRPKJB.js +0 -20
  85. package/dist/H1Icon-CPVGTTtl.js +0 -15
  86. package/dist/HashIcon-C2kfHjTC.js +0 -17
  87. package/dist/HomeFilledIcon-CxIazF0B.js +0 -14
  88. package/dist/IndividualDetailSidebarProvider-BvjhFng9.js +0 -608
  89. package/dist/IndividualDetailView-Cq8iAwQv.js +0 -24
  90. package/dist/ItalicIcon-DfV3EOdk.js +0 -15
  91. package/dist/LinkIcon-DqBbVrvs.js +0 -15
  92. package/dist/NumberedListIcon-amJxDaaD.js +0 -15
  93. package/dist/TimeLineMarkerIcon-C4LfErbc.js +0 -16
  94. package/dist/UploadCloudIcon-j1-1Rvqb.js +0 -17
  95. package/dist/UserIcon-Cb2jFKLr.js +0 -20
  96. package/dist/_plugin-vue_export-helper-BSi1g3Lh.js +0 -6
  97. package/dist/client-S6BLV3Ct.js +0 -4191
@@ -1,65 +0,0 @@
1
- import { A as AppColorProvider_default, D as useCrmConfig, T as useCrm } from "./Error-X0deDY-N.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
- }), (j, M) => unref(L).isInitialized.value ? (openBlock(), createElementBlock("div", _hoisted_1, [createElementVNode("div", _hoisted_2, [createElementVNode("div", _hoisted_3, [renderSlot(j.$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,137 +0,0 @@
1
- import { a as AppGroup_default, l as He, n as useDateTimeFormat, t as AppSkeletonLoader_default } from "./AppSkeletonLoader-BAhoOmFD.js";
2
- import "./client-S6BLV3Ct.js";
3
- import { n as DealCommunicationMailListSectionContainer_default, r as MailService, t as DealExternalAttachment_default } from "./DealExternalAttachment-Dp44vkgt.js";
4
- import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, normalizeClass, openBlock, renderList, toDisplayString, unref, withCtx } from "vue";
5
- import { useI18n } from "vue-i18n";
6
- import { VcIcon } from "@wisemen/vue-core-components";
7
- import { AnimatePresence, Motion } from "motion-v";
8
- import { AccordionContent, AccordionHeader, AccordionItem, AccordionRoot, AccordionTrigger } from "reka-ui";
9
- import { useRouteParams } from "@vueuse/router";
10
- function useMailIndexQuery(g) {
11
- return He({
12
- queryFn: () => MailService.getAll({
13
- filters: g?.params.filters.value,
14
- pagination: {
15
- limit: 10,
16
- offset: 0
17
- }
18
- }),
19
- queryKey: { mailIndex: { queryParams: g?.params } }
20
- });
21
- }
22
- var _hoisted_1$1 = { class: "p-xl" }, _hoisted_2 = { class: "bg-primary border-secondary rounded-xl border shadow-lg" }, _hoisted_3 = { class: "text-lg font-medium" }, _hoisted_4 = {
23
- key: 0,
24
- class: "gap-md flex h-120 w-full flex-col items-center justify-center text-center"
25
- }, _hoisted_5 = { class: "text-3xl font-semibold" }, _hoisted_6 = { class: "relative" }, _hoisted_7 = { class: "sr-only" }, _hoisted_8 = { class: "gap-sm flex min-w-0 flex-1 items-center" }, _hoisted_9 = { class: "truncate" }, _hoisted_10 = { class: "gap-sm flex items-center" }, _hoisted_11 = { class: "text-tertiary flex flex-col items-end text-sm" }, _hoisted_12 = { class: "flex flex-col" }, _hoisted_13 = ["innerHTML"], DealCommunicationMailList_default = /* @__PURE__ */ defineComponent({
26
- __name: "DealCommunicationMailList",
27
- props: { mails: {} },
28
- setup(H) {
29
- let W = H, G = useI18n();
30
- function K(g) {
31
- return useDateTimeFormat().toDateTime(g.createdAt);
32
- }
33
- function q(g) {
34
- return g.to.join(", ");
35
- }
36
- return (H, U) => (openBlock(), createElementBlock("div", _hoisted_1$1, [createElementVNode("div", _hoisted_2, [
37
- createVNode(DealCommunicationMailListSectionContainer_default, null, {
38
- default: withCtx(() => [createElementVNode("p", _hoisted_3, toDisplayString(unref(G).t("wise_crm.deal.communication.mail_list.title")), 1)]),
39
- _: 1
40
- }),
41
- W.mails.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_4, [createElementVNode("p", _hoisted_5, toDisplayString(unref(G).t("wise_crm.deal.communication.mail_list.no_communication_sent")), 1), createElementVNode("p", null, toDisplayString(unref(G).t("wise_crm.deal.communication.mail_list.create_quote_instruction")), 1)])) : createCommentVNode("", !0),
42
- W.mails.length > 0 ? (openBlock(), createBlock(unref(AccordionRoot), {
43
- key: 1,
44
- collapsible: !0,
45
- type: "multiple",
46
- class: "flex flex-col gap-0"
47
- }, {
48
- default: withCtx(() => [(openBlock(!0), createElementBlock(Fragment, null, renderList(W.mails, (H, U) => (openBlock(), createBlock(unref(AccordionItem), {
49
- key: H.uuid,
50
- value: H.uuid
51
- }, {
52
- default: withCtx(({ open: G }) => [createVNode(unref(AccordionHeader), null, {
53
- default: withCtx(() => [createElementVNode("div", _hoisted_6, [createVNode(unref(AccordionTrigger), { class: "ring-brand-500 absolute inset-0 rounded-none ring-offset-1 duration-200 outline-none focus-visible:ring-2" }, {
54
- default: withCtx(() => [createElementVNode("span", _hoisted_7, toDisplayString(H.subject), 1)]),
55
- _: 2
56
- }, 1024), createElementVNode("div", { class: normalizeClass([{ "border-secondary border-b": U < W.mails.length - 1 }, "py-lg px-2xl"]) }, [createVNode(AppGroup_default, { justify: "between" }, {
57
- default: withCtx(() => [createElementVNode("div", _hoisted_8, [createVNode(unref(VcIcon), {
58
- icon: "mail",
59
- class: "text-secondary size-4 flex-shrink-0"
60
- }), createElementVNode("p", _hoisted_9, toDisplayString(H.subject), 1)]), createElementVNode("div", _hoisted_10, [createElementVNode("div", _hoisted_11, [createElementVNode("span", null, toDisplayString(q(H)), 1), createElementVNode("span", null, toDisplayString(K(H)), 1)]), createVNode(unref(VcIcon), {
61
- class: normalizeClass([{ "-rotate-180": G }, "text-secondary size-4 flex-shrink-0 duration-300"]),
62
- icon: "chevronDown"
63
- }, null, 8, ["class"])])]),
64
- _: 2
65
- }, 1024)], 2)])]),
66
- _: 2
67
- }, 1024), createVNode(unref(AnimatePresence), { initial: !1 }, {
68
- default: withCtx(() => [G ? (openBlock(), createBlock(unref(AccordionContent), {
69
- key: 0,
70
- class: "overflow-clip"
71
- }, {
72
- default: withCtx(() => [createVNode(unref(Motion), {
73
- initial: {
74
- opacity: 0,
75
- height: 0,
76
- y: -10
77
- },
78
- animate: {
79
- opacity: 1,
80
- height: "auto",
81
- filter: "blur(0px)",
82
- y: 0
83
- },
84
- exit: {
85
- opacity: 0,
86
- height: 0,
87
- filter: "blur(5px)",
88
- y: -10
89
- },
90
- transition: {
91
- bounce: 0,
92
- duration: .4,
93
- type: "spring"
94
- }
95
- }, {
96
- default: withCtx(() => [createElementVNode("div", _hoisted_12, [H.attachments.length > 0 ? (openBlock(), createBlock(DealCommunicationMailListSectionContainer_default, { key: 0 }, {
97
- default: withCtx(() => [createVNode(AppGroup_default, null, {
98
- default: withCtx(() => [(openBlock(!0), createElementBlock(Fragment, null, renderList(H.attachments, (g) => (openBlock(), createBlock(DealExternalAttachment_default, {
99
- key: g.uuid,
100
- attachment: g
101
- }, null, 8, ["attachment"]))), 128))]),
102
- _: 2
103
- }, 1024)]),
104
- _: 2
105
- }, 1024)) : createCommentVNode("", !0), createVNode(DealCommunicationMailListSectionContainer_default, null, {
106
- default: withCtx(() => [createElementVNode("div", {
107
- class: "prose pb-xl py-3xl max-w-full",
108
- innerHTML: H.text
109
- }, null, 8, _hoisted_13)]),
110
- _: 2
111
- }, 1024)])]),
112
- _: 2
113
- }, 1024)]),
114
- _: 2
115
- }, 1024)) : createCommentVNode("", !0)]),
116
- _: 2
117
- }, 1024)]),
118
- _: 2
119
- }, 1032, ["value"]))), 128))]),
120
- _: 1
121
- })) : createCommentVNode("", !0)
122
- ])]));
123
- }
124
- }), _hoisted_1 = {
125
- key: 0,
126
- class: "p-xl"
127
- }, DealCommunicationTabView_default = /* @__PURE__ */ defineComponent({
128
- __name: "DealCommunicationTabView",
129
- setup(g) {
130
- let H = useRouteParams("dealUuid"), U = useMailIndexQuery({ params: { filters: computed(() => ({ dealUuid: H.value })) } });
131
- return (g, H) => (openBlock(), createElementBlock("div", null, [unref(U).isLoading.value ? (openBlock(), createElementBlock("div", _hoisted_1, [createVNode(AppSkeletonLoader_default, { class: "h-150 w-full" })])) : unref(U).data.value ? (openBlock(), createBlock(DealCommunicationMailList_default, {
132
- key: 1,
133
- mails: unref(U).data.value ?? []
134
- }, null, 8, ["mails"])) : createCommentVNode("", !0)]));
135
- }
136
- });
137
- export { DealCommunicationTabView_default as default };