@wisemen/wise-crm-web 0.2.1 → 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-BbfUJk4T.js → BusinessDetailView-BxGxWOme.js} +5 -5
- package/dist/{CrmDetailHeaderCard-oRgvRuFD.js → CrmDetailHeaderCard-CCNJpMAK.js} +68 -67
- package/dist/{CrmDetailView-B0ZN_Fnu.js → CrmDetailView-ozCpuaX2.js} +14 -14
- package/dist/{DealCommunicationTabView-e7NkRy9r.js → DealCommunicationTabView-Df5EeolN.js} +2 -2
- package/dist/{DealDetailView-BPIatW_2.js → DealDetailView-DdWHqaBr.js} +163 -163
- package/dist/{DealExternalAttachment-D1PznE3V.js → DealExternalAttachment-qHdh4yMI.js} +1 -1
- package/dist/{DealSendMailDialog-BK_lUIx6.js → DealSendMailDialog-BaYcWZP-.js} +65 -69
- package/dist/Error-BArv9rNb.js +12650 -0
- package/dist/IndividualDetailSidebarProvider-BXZH951l.js +608 -0
- package/dist/{IndividualDetailView-Cdodb8Ii.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/crm-detail/CrmDetailHeaderCard.vue.d.ts +2 -0
- package/dist/deal/components/DealSendMailForm.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-BrpWqjRs.js +0 -2081
- package/dist/Error-iBGGWZtH.js +0 -3695
- package/dist/IndividualDetailSidebarProvider-DUVi7XF0.js +0 -606
- /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,9 +1,9 @@
|
|
|
1
|
-
import "./Error-
|
|
2
|
-
import { t as BusinessDetailSidebarProvider_default } from "./BusinessDetailSidebarProvider-
|
|
3
|
-
import "./CrmDetailHeaderCard-
|
|
1
|
+
import "./Error-BArv9rNb.js";
|
|
2
|
+
import { t as BusinessDetailSidebarProvider_default } from "./BusinessDetailSidebarProvider-BQMRbGHQ.js";
|
|
3
|
+
import "./CrmDetailHeaderCard-CCNJpMAK.js";
|
|
4
4
|
import "./AppSkeletonLoader-BAhoOmFD.js";
|
|
5
|
-
import {
|
|
6
|
-
import { t as CrmDetailView_default } from "./CrmDetailView-
|
|
5
|
+
import { ht as EntityType } from "./client-pCaNxE3C.js";
|
|
6
|
+
import { t as CrmDetailView_default } from "./CrmDetailView-ozCpuaX2.js";
|
|
7
7
|
import { createBlock, createVNode, defineComponent, openBlock, unref, withCtx } from "vue";
|
|
8
8
|
import { useRouteParams } from "@vueuse/router";
|
|
9
9
|
var BusinessDetailView_default = /* @__PURE__ */ defineComponent({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { B as toFormField, H as i18nPlugin, J as useApiErrorToast, N as AppSidebarFormSubmitButton_default, O as useGoogleMapsApiKey, P as AppSidebarFormFooter_default, V as AppForm_default, _ as IndividualAutocomplete_default, a as AppOpenEntityButton_default, d as ContactPersonFormNameField_default, et as AppInfiniteScroll_default, f as ContactPersonFormContactField_default, g as phoneNumberFormSchema, l as AppIconLabelPair_default, nt as AppGrid_default, o as CrmDetailSidebarCard_default, p as AppUnstyledButton_default, tt as AppEmptyState_default, u as individualItemSchema, x as AppGlobalFormError_default, y as IndividualService } from "./Error-BArv9rNb.js";
|
|
2
2
|
import { a as AppGroup_default, n as useDateTimeFormat, r as DateUtil } from "./AppSkeletonLoader-BAhoOmFD.js";
|
|
3
|
-
import {
|
|
3
|
+
import { ht as EntityType } from "./client-pCaNxE3C.js";
|
|
4
4
|
import z$1, { z } from "zod";
|
|
5
5
|
import { Comment, Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, guardReactiveProps, inject, markRaw, mergeProps, normalizeProps, onBeforeUnmount, onMounted, openBlock, provide, ref, renderList, renderSlot, resolveDynamicComponent, toDisplayString, toRef, unref, watch, withCtx } from "vue";
|
|
6
6
|
import { useI18n } from "vue-i18n";
|
|
@@ -123,13 +123,13 @@ var _hoisted_1$7 = { class: "gap-xs flex flex-wrap items-center" }, _hoisted_2$6
|
|
|
123
123
|
activities: {},
|
|
124
124
|
onNext: { type: Function }
|
|
125
125
|
},
|
|
126
|
-
setup(
|
|
127
|
-
let
|
|
128
|
-
async function
|
|
129
|
-
await
|
|
126
|
+
setup(e) {
|
|
127
|
+
let m = e, h = useI18n(), g = computed(() => !m.isLoading && m.activities.length === 0);
|
|
128
|
+
async function v() {
|
|
129
|
+
await m.onNext();
|
|
130
130
|
}
|
|
131
|
-
return (
|
|
132
|
-
"on-next":
|
|
131
|
+
return (m, y) => (openBlock(), createBlock(AppInfiniteScroll_default, {
|
|
132
|
+
"on-next": v,
|
|
133
133
|
class: "h-full"
|
|
134
134
|
}, {
|
|
135
135
|
default: withCtx(() => [createVNode(AppGroup_default, {
|
|
@@ -138,16 +138,16 @@ var _hoisted_1$7 = { class: "gap-xs flex flex-wrap items-center" }, _hoisted_2$6
|
|
|
138
138
|
align: "start",
|
|
139
139
|
gap: "none"
|
|
140
140
|
}, {
|
|
141
|
-
default: withCtx(() => [(openBlock(!0), createElementBlock(Fragment, null, renderList(
|
|
142
|
-
key: JSON.stringify(
|
|
143
|
-
"is-last": h ===
|
|
144
|
-
activity:
|
|
141
|
+
default: withCtx(() => [(openBlock(!0), createElementBlock(Fragment, null, renderList(e.activities, (m, h) => (openBlock(), createBlock(ActivityListItem_default, {
|
|
142
|
+
key: JSON.stringify(m),
|
|
143
|
+
"is-last": h === e.activities.length - 1,
|
|
144
|
+
activity: m
|
|
145
145
|
}, null, 8, ["is-last", "activity"]))), 128))]),
|
|
146
146
|
_: 1
|
|
147
|
-
}),
|
|
147
|
+
}), g.value ? (openBlock(), createBlock(AppEmptyState_default, {
|
|
148
148
|
key: 0,
|
|
149
|
-
title: unref(
|
|
150
|
-
description: unref(
|
|
149
|
+
title: unref(h).t("wise_crm.info_dialog.activity.empty_state.title"),
|
|
150
|
+
description: unref(h).t("wise_crm.info_dialog.activity.empty_state.description"),
|
|
151
151
|
icon: "activity"
|
|
152
152
|
}, null, 8, ["title", "description"])) : createCommentVNode("", !0)]),
|
|
153
153
|
_: 1
|
|
@@ -164,46 +164,46 @@ var _hoisted_1$7 = { class: "gap-xs flex flex-wrap items-center" }, _hoisted_2$6
|
|
|
164
164
|
__name: "ContactPersonCreateExisitngForm",
|
|
165
165
|
props: { form: {} },
|
|
166
166
|
emits: ["createNewContactPerson"],
|
|
167
|
-
setup(
|
|
168
|
-
let
|
|
167
|
+
setup(m, { emit: v }) {
|
|
168
|
+
let C = m, w = v, T = useI18n(), O = useApiErrorToast(), k = C.form.register("position"), M = C.form.register("email"), B = C.form.register("phone"), V = C.form.register("mobile"), W = C.form.register("existingContactPerson");
|
|
169
169
|
function K() {
|
|
170
|
-
|
|
170
|
+
w("createNewContactPerson");
|
|
171
171
|
}
|
|
172
172
|
async function q(e) {
|
|
173
173
|
if (e !== null) try {
|
|
174
174
|
let m = await IndividualService.getByUuid(e.value);
|
|
175
|
-
|
|
175
|
+
M.setValue(m.email), B.setValue(m.phone), V.setValue(m.mobilePhone);
|
|
176
176
|
} catch (e) {
|
|
177
|
-
|
|
177
|
+
O.show(e);
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
|
-
return (
|
|
180
|
+
return (m, h) => (openBlock(), createBlock(AppForm_default, {
|
|
181
181
|
"can-exit-when-dirty": !0,
|
|
182
|
-
form:
|
|
182
|
+
form: C.form,
|
|
183
183
|
class: "flex h-full flex-1 flex-col justify-between"
|
|
184
184
|
}, {
|
|
185
185
|
default: withCtx(() => [createVNode(AppGrid_default, { cols: 2 }, {
|
|
186
186
|
default: withCtx(() => [
|
|
187
|
-
createElementVNode("div", _hoisted_1$5, [createVNode(IndividualAutocomplete_default, mergeProps(unref(toFormField)(unref(
|
|
188
|
-
label: unref(
|
|
187
|
+
createElementVNode("div", _hoisted_1$5, [createVNode(IndividualAutocomplete_default, mergeProps(unref(toFormField)(unref(W)), {
|
|
188
|
+
label: unref(T).t("wise_crm.contact.create_dialog.form.fields.contact_person"),
|
|
189
189
|
"onUpdate:modelValue": q,
|
|
190
190
|
onCreateNew: K
|
|
191
191
|
}), null, 16, ["label"]), createVNode(AppUnstyledButton_default, {
|
|
192
192
|
class: "text-placeholder mt-sm text-xs underline",
|
|
193
193
|
onClick: K
|
|
194
194
|
}, {
|
|
195
|
-
default: withCtx(() => [createTextVNode(toDisplayString(unref(
|
|
195
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(T).t("wise_crm.contact.create_dialog.form.create_new_contact_person")), 1)]),
|
|
196
196
|
_: 1
|
|
197
197
|
})]),
|
|
198
|
-
createVNode(unref(VcTextField), mergeProps(unref(toFormField)(unref(
|
|
199
|
-
label: unref(
|
|
200
|
-
placeholder: unref(
|
|
198
|
+
createVNode(unref(VcTextField), mergeProps(unref(toFormField)(unref(k)), {
|
|
199
|
+
label: unref(T).t("wise_crm.contact.create_dialog.form.fields.position"),
|
|
200
|
+
placeholder: unref(T).t("wise_crm.contact.create_dialog.form.fields.position"),
|
|
201
201
|
class: "col-span-2"
|
|
202
202
|
}), null, 16, ["label", "placeholder"]),
|
|
203
203
|
createVNode(ContactPersonFormContactField_default, {
|
|
204
|
-
email: unref(
|
|
205
|
-
"mobile-phone": unref(
|
|
206
|
-
phone: unref(
|
|
204
|
+
email: unref(M),
|
|
205
|
+
"mobile-phone": unref(V),
|
|
206
|
+
phone: unref(B)
|
|
207
207
|
}, null, 8, [
|
|
208
208
|
"email",
|
|
209
209
|
"mobile-phone",
|
|
@@ -213,8 +213,8 @@ var _hoisted_1$7 = { class: "gap-xs flex flex-wrap items-center" }, _hoisted_2$6
|
|
|
213
213
|
_: 1
|
|
214
214
|
}), createVNode(AppSidebarFormFooter_default, null, {
|
|
215
215
|
default: withCtx(() => [createVNode(AppSidebarFormSubmitButton_default, {
|
|
216
|
-
"is-loading":
|
|
217
|
-
label: unref(
|
|
216
|
+
"is-loading": C.form.isSubmitting.value,
|
|
217
|
+
label: unref(T).t("wise_crm.shared.add"),
|
|
218
218
|
class: "col-span-2"
|
|
219
219
|
}, null, 8, ["is-loading", "label"])]),
|
|
220
220
|
_: 1
|
|
@@ -225,9 +225,9 @@ var _hoisted_1$7 = { class: "gap-xs flex flex-wrap items-center" }, _hoisted_2$6
|
|
|
225
225
|
}), ContactPersonCreateNewForm_default = /* @__PURE__ */ defineComponent({
|
|
226
226
|
__name: "ContactPersonCreateNewForm",
|
|
227
227
|
props: { form: {} },
|
|
228
|
-
setup(
|
|
229
|
-
let h =
|
|
230
|
-
return (
|
|
228
|
+
setup(m) {
|
|
229
|
+
let h = m, g = useI18n(), v = h.form.register("firstName"), y = h.form.register("lastName"), S = h.form.register("email"), C = h.form.register("mobilePhone"), T = h.form.register("position"), O = h.form.register("phone");
|
|
230
|
+
return (m, k) => (openBlock(), createBlock(AppForm_default, {
|
|
231
231
|
"can-exit-when-dirty": !0,
|
|
232
232
|
form: h.form,
|
|
233
233
|
class: "flex h-full flex-col justify-between"
|
|
@@ -238,14 +238,14 @@ var _hoisted_1$7 = { class: "gap-xs flex flex-wrap items-center" }, _hoisted_2$6
|
|
|
238
238
|
"first-name": unref(v),
|
|
239
239
|
"last-name": unref(y)
|
|
240
240
|
}, null, 8, ["first-name", "last-name"]),
|
|
241
|
-
createVNode(unref(VcTextField), mergeProps(unref(toFormField)(unref(
|
|
241
|
+
createVNode(unref(VcTextField), mergeProps(unref(toFormField)(unref(T)), {
|
|
242
242
|
label: unref(g).t("wise_crm.contact.create_dialog.form.fields.position"),
|
|
243
243
|
placeholder: unref(g).t("wise_crm.contact.create_dialog.form.fields.position"),
|
|
244
244
|
class: "col-span-2"
|
|
245
245
|
}), null, 16, ["label", "placeholder"]),
|
|
246
246
|
createVNode(ContactPersonFormContactField_default, {
|
|
247
|
-
email: unref(
|
|
248
|
-
"mobile-phone": unref(
|
|
247
|
+
email: unref(S),
|
|
248
|
+
"mobile-phone": unref(C),
|
|
249
249
|
phone: unref(O)
|
|
250
250
|
}, null, 8, [
|
|
251
251
|
"email",
|
|
@@ -255,7 +255,7 @@ var _hoisted_1$7 = { class: "gap-xs flex flex-wrap items-center" }, _hoisted_2$6
|
|
|
255
255
|
createVNode(AppGlobalFormError_default, { form: h.form }, null, 8, ["form"])
|
|
256
256
|
]),
|
|
257
257
|
_: 1
|
|
258
|
-
}), renderSlot(
|
|
258
|
+
}), renderSlot(m.$slots, "actions")]),
|
|
259
259
|
_: 3
|
|
260
260
|
}, 8, ["form"]));
|
|
261
261
|
}
|
|
@@ -263,18 +263,18 @@ var _hoisted_1$7 = { class: "gap-xs flex flex-wrap items-center" }, _hoisted_2$6
|
|
|
263
263
|
const contactPersonCreateExistingFormSchema = z$1.object({
|
|
264
264
|
email: z$1.literal("").or(z$1.email()).nullable(),
|
|
265
265
|
existingContactPerson: individualItemSchema,
|
|
266
|
-
mobile:
|
|
267
|
-
phone:
|
|
266
|
+
mobile: phoneNumberFormSchema.nullable(),
|
|
267
|
+
phone: phoneNumberFormSchema.nullable(),
|
|
268
268
|
position: z$1.string()
|
|
269
269
|
}), contactPersonCreateFormSchema = z.object({
|
|
270
270
|
email: z.literal("").or(z.email()).nullable(),
|
|
271
271
|
firstName: z.string().min(1),
|
|
272
272
|
lastName: z.string().min(1),
|
|
273
|
-
mobilePhone:
|
|
274
|
-
phone:
|
|
273
|
+
mobilePhone: phoneNumberFormSchema.nullable(),
|
|
274
|
+
phone: phoneNumberFormSchema.nullable(),
|
|
275
275
|
position: z.string().min(1).nullable()
|
|
276
|
-
}).superRefine((e,
|
|
277
|
-
e.email !== null && e.email !== "" || e.mobilePhone !== null && e.mobilePhone !== "" || e.phone !== null && e.phone !== "" ||
|
|
276
|
+
}).superRefine((e, h) => {
|
|
277
|
+
e.email !== null && e.email !== "" || e.mobilePhone !== null && e.mobilePhone !== "" || e.phone !== null && e.phone !== "" || h.addIssue({
|
|
278
278
|
code: z.ZodIssueCode.custom,
|
|
279
279
|
message: i18nPlugin.global.t("wise_crm.form.errors.at_least_one")
|
|
280
280
|
});
|
|
@@ -290,7 +290,7 @@ var ContactPersonCreateForm_default = /* @__PURE__ */ defineComponent({
|
|
|
290
290
|
onSubmit: {}
|
|
291
291
|
},
|
|
292
292
|
setup(e) {
|
|
293
|
-
let m = e, h = useI18n(),
|
|
293
|
+
let m = e, h = useI18n(), v = ref(m.isCreatingNewContactPerson), b = useForm({
|
|
294
294
|
schema: contactPersonCreateFormSchema,
|
|
295
295
|
onSubmit: async (e) => {
|
|
296
296
|
await m.onSubmit(e);
|
|
@@ -309,19 +309,19 @@ var ContactPersonCreateForm_default = /* @__PURE__ */ defineComponent({
|
|
|
309
309
|
e !== null && await m.onLinkContactPerson(e, h, g);
|
|
310
310
|
}
|
|
311
311
|
function w() {
|
|
312
|
-
|
|
312
|
+
v.value = !0;
|
|
313
313
|
}
|
|
314
314
|
function T() {
|
|
315
|
-
|
|
315
|
+
v.value = !1;
|
|
316
316
|
}
|
|
317
317
|
return (e, m) => (openBlock(), createBlock(unref(Motion), {
|
|
318
|
-
key:
|
|
318
|
+
key: v.value ? "new" : "existing",
|
|
319
319
|
initial: { opacity: 0 },
|
|
320
320
|
animate: { opacity: 1 },
|
|
321
321
|
exit: { opacity: 0 },
|
|
322
322
|
transition: { duration: .2 }
|
|
323
323
|
}, {
|
|
324
|
-
default: withCtx(() => [
|
|
324
|
+
default: withCtx(() => [v.value ? (openBlock(), createBlock(ContactPersonCreateNewForm_default, {
|
|
325
325
|
key: 0,
|
|
326
326
|
form: unref(b)
|
|
327
327
|
}, {
|
|
@@ -356,11 +356,11 @@ const contactPersonUpdateFormSchema = z.object({
|
|
|
356
356
|
email: z.literal("").or(z.email()).nullable(),
|
|
357
357
|
firstName: z.string().min(1),
|
|
358
358
|
lastName: z.string().min(1),
|
|
359
|
-
mobilePhone:
|
|
360
|
-
phone:
|
|
359
|
+
mobilePhone: phoneNumberFormSchema.nullable(),
|
|
360
|
+
phone: phoneNumberFormSchema.nullable(),
|
|
361
361
|
position: z.string().nullable()
|
|
362
|
-
}).superRefine((e,
|
|
363
|
-
e.email !== null && e.email !== "" || e.mobilePhone !== null && e.mobilePhone !== "" || e.phone !== null && e.phone !== "" ||
|
|
362
|
+
}).superRefine((e, h) => {
|
|
363
|
+
e.email !== null && e.email !== "" || e.mobilePhone !== null && e.mobilePhone !== "" || e.phone !== null && e.phone !== "" || h.addIssue({
|
|
364
364
|
code: z.ZodIssueCode.custom,
|
|
365
365
|
message: i18nPlugin.global.t("wise_crm.form.errors.at_least_one")
|
|
366
366
|
});
|
|
@@ -2256,10 +2256,10 @@ var AppGoogleMaps_default = /* @__PURE__ */ defineComponent({
|
|
|
2256
2256
|
zoom: {}
|
|
2257
2257
|
},
|
|
2258
2258
|
setup(e) {
|
|
2259
|
-
let m = e,
|
|
2260
|
-
return (e,
|
|
2259
|
+
let m = e, h = useGoogleMapsApiKey();
|
|
2260
|
+
return (e, g) => unref(h).googleMapsApiKey.value ? (openBlock(), createBlock(unref(Ir), {
|
|
2261
2261
|
key: 0,
|
|
2262
|
-
"api-key": unref(
|
|
2262
|
+
"api-key": unref(h).googleMapsApiKey.value,
|
|
2263
2263
|
zoom: m.zoom,
|
|
2264
2264
|
center: {
|
|
2265
2265
|
lat: m.center.lat,
|
|
@@ -2327,10 +2327,10 @@ var AppGoogleMaps_default = /* @__PURE__ */ defineComponent({
|
|
|
2327
2327
|
function y() {
|
|
2328
2328
|
g("update");
|
|
2329
2329
|
}
|
|
2330
|
-
function
|
|
2330
|
+
function b() {
|
|
2331
2331
|
g("delete");
|
|
2332
2332
|
}
|
|
2333
|
-
function
|
|
2333
|
+
function S() {
|
|
2334
2334
|
h.onToggleIsPrimary();
|
|
2335
2335
|
}
|
|
2336
2336
|
return (e, m) => (openBlock(), createBlock(CrmDetailSidebarCard_default, { class: "gap-lg flex flex-col" }, {
|
|
@@ -2346,7 +2346,7 @@ var AppGoogleMaps_default = /* @__PURE__ */ defineComponent({
|
|
|
2346
2346
|
label: unref(v).t("wise_crm.info_dialog.sidebar.overview.contact_person_primary"),
|
|
2347
2347
|
variant: "tertiary",
|
|
2348
2348
|
size: "sm",
|
|
2349
|
-
onClick:
|
|
2349
|
+
onClick: S
|
|
2350
2350
|
}, null, 8, ["icon", "label"]), createVNode(unref(VcDropdownMenu), {
|
|
2351
2351
|
"class-config": { content: "min-w-fit p-sm" },
|
|
2352
2352
|
"popover-align": "end"
|
|
@@ -2364,9 +2364,9 @@ var AppGoogleMaps_default = /* @__PURE__ */ defineComponent({
|
|
|
2364
2364
|
}, null, 8, ["label"]), createVNode(unref(VcDropdownMenuItem), {
|
|
2365
2365
|
"is-destructive": !0,
|
|
2366
2366
|
"is-disabled": h.contactPerson.isPrimary,
|
|
2367
|
-
label: unref(v).t("wise_crm.
|
|
2368
|
-
icon: "
|
|
2369
|
-
onSelect:
|
|
2367
|
+
label: unref(v).t("wise_crm.info_dialog.sidebar.overview.delete_contact_person"),
|
|
2368
|
+
icon: "linkBroken",
|
|
2369
|
+
onSelect: b
|
|
2370
2370
|
}, null, 8, ["is-disabled", "label"])]),
|
|
2371
2371
|
_: 1
|
|
2372
2372
|
})])]), createElementVNode("div", _hoisted_5, [
|
|
@@ -2480,6 +2480,7 @@ var AppGoogleMaps_default = /* @__PURE__ */ defineComponent({
|
|
|
2480
2480
|
address: {},
|
|
2481
2481
|
email: {},
|
|
2482
2482
|
entityName: {},
|
|
2483
|
+
entityType: {},
|
|
2483
2484
|
mobilePhone: {},
|
|
2484
2485
|
phone: {}
|
|
2485
2486
|
},
|
|
@@ -2503,13 +2504,13 @@ var AppGoogleMaps_default = /* @__PURE__ */ defineComponent({
|
|
|
2503
2504
|
type: "address"
|
|
2504
2505
|
}, null, 8, ["value"]))
|
|
2505
2506
|
])]), createElementVNode("div", null, [createVNode(unref(VcBadge), {
|
|
2507
|
+
icon: m.entityType === unref(EntityType).BUSINESS ? "building" : "user",
|
|
2506
2508
|
variant: "translucent",
|
|
2507
|
-
color: "brand"
|
|
2508
|
-
icon: "user"
|
|
2509
|
+
color: "brand"
|
|
2509
2510
|
}, {
|
|
2510
2511
|
default: withCtx(() => [createTextVNode(toDisplayString(m.entityName ?? "-"), 1)]),
|
|
2511
2512
|
_: 1
|
|
2512
|
-
})])]));
|
|
2513
|
+
}, 8, ["icon"])])]));
|
|
2513
2514
|
}
|
|
2514
2515
|
});
|
|
2515
2516
|
export { contactPersonUpdateFormSchema as a, AddressUtil as c, CrmDetailSidebarMapCard_default as i, ActivityList_default as l, CrmDetailSidebarAccordionContactPersonInfo_default as n, ContactPersonCreateForm_default as o, CrmDetailSidebarAccordionBillingInformation_default as r, ContactPersonCreateNewForm_default as s, CrmDetailHeaderCard_default as t, assert as u };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { D as useCrmConfig, T as useCrm, k as AppColorProvider_default } from "./Error-BArv9rNb.js";
|
|
2
2
|
import { Fragment, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, openBlock, ref, renderList, renderSlot, toDisplayString, toValue, unref, withCtx } from "vue";
|
|
3
3
|
import { VcIconButton, VcRouterLinkTabs, VcRouterLinkTabsItem } from "@wisemen/vue-core-components";
|
|
4
4
|
import { RouterView } from "vue-router";
|
|
5
5
|
import { onKeyStroke } from "@vueuse/core";
|
|
6
6
|
var ContextUtil = class {
|
|
7
|
-
static parentHasAriaHidden(
|
|
8
|
-
let
|
|
9
|
-
for (;
|
|
10
|
-
if (
|
|
11
|
-
|
|
7
|
+
static parentHasAriaHidden(d) {
|
|
8
|
+
let M = d.parentElement;
|
|
9
|
+
for (; M;) {
|
|
10
|
+
if (M.hasAttribute("aria-hidden")) return M.getAttribute("aria-hidden") === "true";
|
|
11
|
+
M = M.parentElement;
|
|
12
12
|
}
|
|
13
13
|
return !1;
|
|
14
14
|
}
|
|
@@ -21,9 +21,9 @@ var ContextUtil = class {
|
|
|
21
21
|
setup(N) {
|
|
22
22
|
let P = N, F = ref(null), I = useCrm(), L = useCrmConfig();
|
|
23
23
|
return onKeyStroke("Escape", () => {
|
|
24
|
-
let
|
|
25
|
-
|
|
26
|
-
}), (
|
|
24
|
+
let d = F.value?.$el;
|
|
25
|
+
d && ContextUtil.parentHasAriaHidden(d) || I.goToReturnRoute();
|
|
26
|
+
}), (d, M) => unref(L).isInitialized.value ? (openBlock(), createElementBlock("div", _hoisted_1, [createElementVNode("div", _hoisted_2, [createElementVNode("div", _hoisted_3, [renderSlot(d.$slots, "sidebar")]), createVNode(AppColorProvider_default, {
|
|
27
27
|
color: unref(I).getEntityConfig(N.entityType)?.color ?? null,
|
|
28
28
|
class: "relative flex flex-1 flex-col overflow-hidden"
|
|
29
29
|
}, {
|
|
@@ -39,11 +39,11 @@ var ContextUtil = class {
|
|
|
39
39
|
},
|
|
40
40
|
variant: "button-border"
|
|
41
41
|
}, {
|
|
42
|
-
items: withCtx(() => [(openBlock(!0), createElementBlock(Fragment, null, renderList(P.tabs, (
|
|
43
|
-
key: toValue(
|
|
44
|
-
to: { name:
|
|
42
|
+
items: withCtx(() => [(openBlock(!0), createElementBlock(Fragment, null, renderList(P.tabs, (d) => (openBlock(), createBlock(unref(VcRouterLinkTabsItem), {
|
|
43
|
+
key: toValue(d.label),
|
|
44
|
+
to: { name: d.to }
|
|
45
45
|
}, {
|
|
46
|
-
default: withCtx(() => [createTextVNode(toDisplayString(toValue(
|
|
46
|
+
default: withCtx(() => [createTextVNode(toDisplayString(toValue(d.label)), 1)]),
|
|
47
47
|
_: 2
|
|
48
48
|
}, 1032, ["to"]))), 128))]),
|
|
49
49
|
_: 1
|
|
@@ -55,7 +55,7 @@ var ContextUtil = class {
|
|
|
55
55
|
icon: "close",
|
|
56
56
|
label: "Close",
|
|
57
57
|
variant: "secondary",
|
|
58
|
-
onClick: M[0] ||= (
|
|
58
|
+
onClick: M[0] ||= (d) => unref(I).goToReturnRoute()
|
|
59
59
|
}, null, 512)])
|
|
60
60
|
]), createElementVNode("div", _hoisted_9, [createVNode(unref(RouterView))])])])]),
|
|
61
61
|
_: 1
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as AppGroup_default, l as He, n as useDateTimeFormat, t as AppSkeletonLoader_default } from "./AppSkeletonLoader-BAhoOmFD.js";
|
|
2
|
-
import "./client-
|
|
3
|
-
import { n as DealCommunicationMailListSectionContainer_default, r as MailService, t as DealExternalAttachment_default } from "./DealExternalAttachment-
|
|
2
|
+
import "./client-pCaNxE3C.js";
|
|
3
|
+
import { n as DealCommunicationMailListSectionContainer_default, r as MailService, t as DealExternalAttachment_default } from "./DealExternalAttachment-qHdh4yMI.js";
|
|
4
4
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, normalizeClass, openBlock, renderList, toDisplayString, unref, withCtx } from "vue";
|
|
5
5
|
import { useI18n } from "vue-i18n";
|
|
6
6
|
import { VcIcon } from "@wisemen/vue-core-components";
|