@wisemen/wise-crm 0.0.0-alpha.1 → 0.0.0-alpha.3
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/{ActivityIcon-B4QMplig.js → ActivityIcon-CyWxM9LG.js} +1 -1
- package/dist/{BookIcon-ja89qLFy.js → BookIcon-C6fBfw8W.js} +1 -1
- package/dist/{BuildingIcon-BNiKxoS8.js → BuildingIcon-_f5wC0G9.js} +1 -1
- package/dist/{BuildingsIcon-LXxgUobG.js → BuildingsIcon-Czy44pO_.js} +1 -1
- package/dist/{BusinessDetailView-97LmpN-Y.js → BusinessDetailView-B91lfkSH.js} +2 -2
- package/dist/{ChevronDownIcon-i-90_fM4.js → ChevronDownIcon-BWBvfeaT.js} +1 -1
- package/dist/{ClockPlusIcon-CXcj_h14.js → ClockPlusIcon-BTLHO-u1.js} +1 -1
- package/dist/{CopyIcon-X7mbg7w2.js → CopyIcon-CoruI9Qw.js} +1 -1
- package/dist/CrmDetailView.vue_vue_type_script_setup_true_lang-CXpmzjnA.js +129 -0
- package/dist/{EditWithLineIcon-zoeavQul.js → EditWithLineIcon--i0bfcSk.js} +1 -1
- package/dist/{FileIcon-Dh5IUaK-.js → FileIcon-Dyqt2Vc3.js} +1 -1
- package/dist/{FilterLinesIcon-DhBdlDSi.js → FilterLinesIcon-B_4YymFr.js} +1 -1
- package/dist/{HashIcon-BWO2mp2V.js → HashIcon-CuT4gU_E.js} +1 -1
- package/dist/{HomeFilledIcon-CjVPEU-R.js → HomeFilledIcon-ClLkCaJL.js} +1 -1
- package/dist/{IndividualDetailView-DxUmJizN.js → IndividualDetailView-C4dZCyca.js} +2 -2
- package/dist/{LayersTreeIcon-BXTML4tp.js → LayersTreeIcon-DuFQbfbP.js} +1 -1
- package/dist/{LinkExternalIcon-Ctv8kseX.js → LinkExternalIcon-BszmgyUA.js} +1 -1
- package/dist/{LocationPinIcon-BpTU0qXx.js → LocationPinIcon-CbZ4OJ_v.js} +1 -1
- package/dist/{MailIcon-BlZ-p-Uq.js → MailIcon-DOUqXCG2.js} +1 -1
- package/dist/{MobilePhoneIcon-CSSxC2fl.js → MobilePhoneIcon-BzMPWSVL.js} +1 -1
- package/dist/{PhoneIcon-FrfZPlie.js → PhoneIcon-CA2Ip-Kd.js} +1 -1
- package/dist/{SendIcon-DAxhHVkT.js → SendIcon-B5jAMhG5.js} +1 -1
- package/dist/{StarOutlineIcon-DB2D7b10.js → StarOutlineIcon-CSQgrkoI.js} +1 -1
- package/dist/{StarYellowIcon-BfY68bs3.js → StarYellowIcon-BV-Wv0Tb.js} +1 -1
- package/dist/{TimeLineMarkerIcon-ugEqqaeO.js → TimeLineMarkerIcon-A7mDq26Z.js} +1 -1
- package/dist/{TrashIcon-D3NQhXP1.js → TrashIcon-DFmP6KpN.js} +1 -1
- package/dist/{UserCircleIcon-D6yMz8IH.js → UserCircleIcon-P2nAwpt5.js} +1 -1
- package/dist/{UserIcon-Ckrk_Z2w.js → UserIcon-DSCkkGQG.js} +1 -1
- package/dist/{VerticalDotsIcon-BgXBCW_H.js → VerticalDotsIcon-Dw20cuJJ.js} +1 -1
- package/dist/{WalletIcon-CGe2UaGU.js → WalletIcon-BZQfB6c7.js} +1 -1
- package/dist/{index-DmadkSOr.js → index-DGDrbZNX.js} +41 -41
- package/dist/index.js +1 -1
- package/package.json +22 -22
- package/dist/CrmDetailView.vue_vue_type_script_setup_true_lang-C_VsrCJX.js +0 -117
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as n, createBlock as a, openBlock as u, unref as s, withCtx as o, createVNode as r } from "vue";
|
|
2
|
-
import { u as p, _ as c } from "./CrmDetailView.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { E as m, a as _ } from "./index-
|
|
2
|
+
import { u as p, _ as c } from "./CrmDetailView.vue_vue_type_script_setup_true_lang-CXpmzjnA.js";
|
|
3
|
+
import { E as m, a as _ } from "./index-DGDrbZNX.js";
|
|
4
4
|
const B = /* @__PURE__ */ n({
|
|
5
5
|
__name: "BusinessDetailView",
|
|
6
6
|
props: {
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { t as j, u as S, o as B, c as E } from "./index-DGDrbZNX.js";
|
|
2
|
+
import { customRef as $, toValue as m, nextTick as D, watch as L, defineComponent as N, createElementBlock as v, openBlock as g, createElementVNode as t, renderSlot as q, createVNode as p, withCtx as b, unref as u, Fragment as I, renderList as M, createBlock as O, createTextVNode as P, toDisplayString as z } from "vue";
|
|
3
|
+
import { useRoute as F, useRouter as G, RouterView as K } from "vue-router";
|
|
4
|
+
import { VcRouterLinkTabs as Q, VcRouterLinkTabsItem as W, VcIconButton as A } from "@wisemen/vue-core-components";
|
|
5
|
+
const w = /* @__PURE__ */ new WeakMap();
|
|
6
|
+
function ne(l, a, d = {}) {
|
|
7
|
+
const {
|
|
8
|
+
mode: y = "replace",
|
|
9
|
+
route: e = F(),
|
|
10
|
+
router: o = G(),
|
|
11
|
+
transform: i
|
|
12
|
+
} = d;
|
|
13
|
+
let c = (n) => n, _ = (n) => n;
|
|
14
|
+
typeof i == "function" ? c = i : i && (i.get && (c = i.get), i.set && (_ = i.set)), w.has(o) || w.set(o, /* @__PURE__ */ new Map());
|
|
15
|
+
const f = w.get(o);
|
|
16
|
+
let s = e.params[l];
|
|
17
|
+
j(() => {
|
|
18
|
+
s = void 0;
|
|
19
|
+
});
|
|
20
|
+
let x;
|
|
21
|
+
const R = $((n, h) => (x = h, {
|
|
22
|
+
get() {
|
|
23
|
+
return n(), c(s !== void 0 && s !== "" ? s : m(a));
|
|
24
|
+
},
|
|
25
|
+
set(r) {
|
|
26
|
+
r = _(r), s !== r && (s = r === m(a) || r === null ? void 0 : r, f.set(l, r === m(a) || r === null ? void 0 : r), h(), D(() => {
|
|
27
|
+
if (f.size === 0)
|
|
28
|
+
return;
|
|
29
|
+
const k = Object.fromEntries(f.entries());
|
|
30
|
+
f.clear();
|
|
31
|
+
const { params: T, query: C, hash: V } = e;
|
|
32
|
+
o[m(y)]({
|
|
33
|
+
params: {
|
|
34
|
+
...T,
|
|
35
|
+
...k
|
|
36
|
+
},
|
|
37
|
+
query: C,
|
|
38
|
+
hash: V
|
|
39
|
+
});
|
|
40
|
+
}));
|
|
41
|
+
}
|
|
42
|
+
}));
|
|
43
|
+
return L(
|
|
44
|
+
() => e.params[l],
|
|
45
|
+
(n) => {
|
|
46
|
+
s !== c(n) && (s = n, x());
|
|
47
|
+
},
|
|
48
|
+
{ flush: "sync" }
|
|
49
|
+
), R;
|
|
50
|
+
}
|
|
51
|
+
const H = { class: "flex h-dvh flex-1" }, J = { class: "p-sm flex h-full w-full flex-1 justify-center overflow-hidden" }, U = { class: "flex w-full flex-col" }, X = { class: "p-lg grid w-full grid-cols-3" }, Y = { class: "flex items-center justify-center" }, Z = { class: "flex items-center justify-end" }, ee = { class: "h-full w-full overflow-y-auto" }, ie = /* @__PURE__ */ N({
|
|
52
|
+
__name: "CrmDetailView",
|
|
53
|
+
props: {
|
|
54
|
+
entityType: {},
|
|
55
|
+
tabs: {}
|
|
56
|
+
},
|
|
57
|
+
setup(l) {
|
|
58
|
+
const a = l, d = S();
|
|
59
|
+
return B("Escape", () => {
|
|
60
|
+
d.goToReturnRoute();
|
|
61
|
+
}), (y, e) => (g(), v("div", null, [
|
|
62
|
+
t("div", H, [
|
|
63
|
+
e[3] || (e[3] = t("div", { id: "crm-info-dialog" }, null, -1)),
|
|
64
|
+
q(y.$slots, "sidebar"),
|
|
65
|
+
p(E, {
|
|
66
|
+
"entity-type": l.entityType,
|
|
67
|
+
class: "relative flex-1"
|
|
68
|
+
}, {
|
|
69
|
+
default: b(() => [
|
|
70
|
+
t("div", J, [
|
|
71
|
+
e[2] || (e[2] = t("div", null, null, -1)),
|
|
72
|
+
t("div", U, [
|
|
73
|
+
t("div", X, [
|
|
74
|
+
e[1] || (e[1] = t("div", null, null, -1)),
|
|
75
|
+
t("div", Y, [
|
|
76
|
+
p(u(Q), {
|
|
77
|
+
"class-config": {
|
|
78
|
+
base: "flex justify-center bg-primary border-none shadow-lg w-fit",
|
|
79
|
+
list: "rounded-lg w-fit",
|
|
80
|
+
item: "data-[state=active]:text-white",
|
|
81
|
+
indicator: "rounded-md bg-gradient-to-b bg-brand-500",
|
|
82
|
+
scrollContainer: "!p-xs bg-white rounded-lg border border-primary/50"
|
|
83
|
+
},
|
|
84
|
+
variant: "button-border"
|
|
85
|
+
}, {
|
|
86
|
+
items: b(() => [
|
|
87
|
+
(g(!0), v(I, null, M(a.tabs, (o) => (g(), O(u(W), {
|
|
88
|
+
key: o.label,
|
|
89
|
+
to: {
|
|
90
|
+
name: o.to
|
|
91
|
+
}
|
|
92
|
+
}, {
|
|
93
|
+
default: b(() => [
|
|
94
|
+
P(z(o.label), 1)
|
|
95
|
+
]),
|
|
96
|
+
_: 2
|
|
97
|
+
}, 1032, ["to"]))), 128))
|
|
98
|
+
]),
|
|
99
|
+
_: 1
|
|
100
|
+
})
|
|
101
|
+
]),
|
|
102
|
+
t("div", Z, [
|
|
103
|
+
p(u(A), {
|
|
104
|
+
"class-config": {
|
|
105
|
+
root: "rounded-md shadow-lg"
|
|
106
|
+
},
|
|
107
|
+
icon: "close",
|
|
108
|
+
label: "Close",
|
|
109
|
+
variant: "secondary",
|
|
110
|
+
onClick: e[0] || (e[0] = (o) => u(d).goToReturnRoute())
|
|
111
|
+
})
|
|
112
|
+
])
|
|
113
|
+
]),
|
|
114
|
+
t("div", ee, [
|
|
115
|
+
p(u(K))
|
|
116
|
+
])
|
|
117
|
+
])
|
|
118
|
+
])
|
|
119
|
+
]),
|
|
120
|
+
_: 1
|
|
121
|
+
}, 8, ["entity-type"])
|
|
122
|
+
])
|
|
123
|
+
]));
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
export {
|
|
127
|
+
ie as _,
|
|
128
|
+
ne as u
|
|
129
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as n, createBlock as s, openBlock as u, unref as i, withCtx as o, createVNode as d } from "vue";
|
|
2
|
-
import { u as r, _ as p } from "./CrmDetailView.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { E as c, b as m } from "./index-
|
|
2
|
+
import { u as r, _ as p } from "./CrmDetailView.vue_vue_type_script_setup_true_lang-CXpmzjnA.js";
|
|
3
|
+
import { E as c, b as m } from "./index-DGDrbZNX.js";
|
|
4
4
|
const v = /* @__PURE__ */ n({
|
|
5
5
|
__name: "IndividualDetailView",
|
|
6
6
|
props: {
|
|
@@ -28679,18 +28679,18 @@ const bc = {
|
|
|
28679
28679
|
950: "#002266"
|
|
28680
28680
|
},
|
|
28681
28681
|
[Ne.YELLOW]: {
|
|
28682
|
-
25: "#
|
|
28683
|
-
50: "#
|
|
28684
|
-
100: "#
|
|
28685
|
-
200: "#
|
|
28686
|
-
300: "#
|
|
28687
|
-
400: "#
|
|
28688
|
-
500: "#
|
|
28689
|
-
600: "#
|
|
28690
|
-
700: "#
|
|
28691
|
-
800: "#
|
|
28692
|
-
900: "#
|
|
28693
|
-
950: "#
|
|
28682
|
+
25: "#FDF9F0",
|
|
28683
|
+
50: "#FDF6E7",
|
|
28684
|
+
100: "#FCECCF",
|
|
28685
|
+
200: "#F8D9A0",
|
|
28686
|
+
300: "#F5C670",
|
|
28687
|
+
400: "#F1B440",
|
|
28688
|
+
500: "#F1B340",
|
|
28689
|
+
600: "#BE800E",
|
|
28690
|
+
700: "#8F600A",
|
|
28691
|
+
800: "#5F4007",
|
|
28692
|
+
900: "#302003",
|
|
28693
|
+
950: "#181002"
|
|
28694
28694
|
}
|
|
28695
28695
|
};
|
|
28696
28696
|
class j8 {
|
|
@@ -32516,7 +32516,7 @@ function c6(t) {
|
|
|
32516
32516
|
}))
|
|
32517
32517
|
},
|
|
32518
32518
|
path: "/business/:businessUuid",
|
|
32519
|
-
component: () => import("./BusinessDetailView-
|
|
32519
|
+
component: () => import("./BusinessDetailView-B91lfkSH.js"),
|
|
32520
32520
|
redirect: {
|
|
32521
32521
|
name: t[0].route.name
|
|
32522
32522
|
},
|
|
@@ -32535,7 +32535,7 @@ function d6(t) {
|
|
|
32535
32535
|
}))
|
|
32536
32536
|
},
|
|
32537
32537
|
path: "/individual/:individualUuid",
|
|
32538
|
-
component: () => import("./IndividualDetailView-
|
|
32538
|
+
component: () => import("./IndividualDetailView-C4dZCyca.js"),
|
|
32539
32539
|
redirect: {
|
|
32540
32540
|
name: t[0].route.name
|
|
32541
32541
|
},
|
|
@@ -32793,33 +32793,33 @@ const E6 = { class: "p-xl gap-lg border-primary/50 flex min-w-150 flex-col round
|
|
|
32793
32793
|
]));
|
|
32794
32794
|
}
|
|
32795
32795
|
}), n4 = {
|
|
32796
|
-
hash: import("./HashIcon-
|
|
32797
|
-
activity: import("./ActivityIcon-
|
|
32798
|
-
book: import("./BookIcon-
|
|
32799
|
-
building: import("./BuildingIcon-
|
|
32800
|
-
buildings: import("./BuildingsIcon-
|
|
32801
|
-
chevronDown: import("./ChevronDownIcon-
|
|
32802
|
-
clockPlus: import("./ClockPlusIcon-
|
|
32803
|
-
copy: import("./CopyIcon-
|
|
32804
|
-
editWithLine: import("./EditWithLineIcon
|
|
32805
|
-
file: import("./FileIcon-
|
|
32806
|
-
filterLines: import("./FilterLinesIcon-
|
|
32807
|
-
homeFilled: import("./HomeFilledIcon-
|
|
32808
|
-
layersTree: import("./LayersTreeIcon-
|
|
32809
|
-
linkExternal: import("./LinkExternalIcon-
|
|
32810
|
-
locationPin: import("./LocationPinIcon-
|
|
32811
|
-
mail: import("./MailIcon-
|
|
32812
|
-
mobilePhone: import("./MobilePhoneIcon-
|
|
32813
|
-
phone: import("./PhoneIcon-
|
|
32814
|
-
send: import("./SendIcon-
|
|
32815
|
-
starOutline: import("./StarOutlineIcon-
|
|
32816
|
-
starYellow: import("./StarYellowIcon-
|
|
32817
|
-
timeLineMarker: import("./TimeLineMarkerIcon-
|
|
32818
|
-
trash: import("./TrashIcon-
|
|
32819
|
-
user: import("./UserIcon-
|
|
32820
|
-
userCircle: import("./UserCircleIcon-
|
|
32821
|
-
verticalDots: import("./VerticalDotsIcon-
|
|
32822
|
-
wallet: import("./WalletIcon-
|
|
32796
|
+
hash: import("./HashIcon-CuT4gU_E.js"),
|
|
32797
|
+
activity: import("./ActivityIcon-CyWxM9LG.js"),
|
|
32798
|
+
book: import("./BookIcon-C6fBfw8W.js"),
|
|
32799
|
+
building: import("./BuildingIcon-_f5wC0G9.js"),
|
|
32800
|
+
buildings: import("./BuildingsIcon-Czy44pO_.js"),
|
|
32801
|
+
chevronDown: import("./ChevronDownIcon-BWBvfeaT.js"),
|
|
32802
|
+
clockPlus: import("./ClockPlusIcon-BTLHO-u1.js"),
|
|
32803
|
+
copy: import("./CopyIcon-CoruI9Qw.js"),
|
|
32804
|
+
editWithLine: import("./EditWithLineIcon--i0bfcSk.js"),
|
|
32805
|
+
file: import("./FileIcon-Dyqt2Vc3.js"),
|
|
32806
|
+
filterLines: import("./FilterLinesIcon-B_4YymFr.js"),
|
|
32807
|
+
homeFilled: import("./HomeFilledIcon-ClLkCaJL.js"),
|
|
32808
|
+
layersTree: import("./LayersTreeIcon-DuFQbfbP.js"),
|
|
32809
|
+
linkExternal: import("./LinkExternalIcon-BszmgyUA.js"),
|
|
32810
|
+
locationPin: import("./LocationPinIcon-CbZ4OJ_v.js"),
|
|
32811
|
+
mail: import("./MailIcon-DOUqXCG2.js"),
|
|
32812
|
+
mobilePhone: import("./MobilePhoneIcon-BzMPWSVL.js"),
|
|
32813
|
+
phone: import("./PhoneIcon-CA2Ip-Kd.js"),
|
|
32814
|
+
send: import("./SendIcon-B5jAMhG5.js"),
|
|
32815
|
+
starOutline: import("./StarOutlineIcon-CSQgrkoI.js"),
|
|
32816
|
+
starYellow: import("./StarYellowIcon-BV-Wv0Tb.js"),
|
|
32817
|
+
timeLineMarker: import("./TimeLineMarkerIcon-A7mDq26Z.js"),
|
|
32818
|
+
trash: import("./TrashIcon-DFmP6KpN.js"),
|
|
32819
|
+
user: import("./UserIcon-DSCkkGQG.js"),
|
|
32820
|
+
userCircle: import("./UserCircleIcon-P2nAwpt5.js"),
|
|
32821
|
+
verticalDots: import("./VerticalDotsIcon-Dw20cuJJ.js"),
|
|
32822
|
+
wallet: import("./WalletIcon-BZQfB6c7.js")
|
|
32823
32823
|
}, i4 = {
|
|
32824
32824
|
"en-US": iv,
|
|
32825
32825
|
"nl-BE": ov
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as a, f as e, e as r, h as C, g as m, y as d, k as n, p as u, j as t, q as W, s as l, v as o, r as g, z as B, A as c, d as I, i as v, u as f, n as b, m as h, x as p, B as D, w as S } from "./index-
|
|
1
|
+
import { l as a, f as e, e as r, h as C, g as m, y as d, k as n, p as u, j as t, q as W, s as l, v as o, r as g, z as B, A as c, d as I, i as v, u as f, n as b, m as h, x as p, B as D, w as S } from "./index-DGDrbZNX.js";
|
|
2
2
|
export {
|
|
3
3
|
a as CrmSearchTrigger,
|
|
4
4
|
e as WiseCrmBusinessBillingInformationCard,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wisemen/wise-crm",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.0-alpha.
|
|
4
|
+
"version": "0.0.0-alpha.3",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "CRM frontend package with Vue 3 components, composables and types",
|
|
7
7
|
"author": "Wisemen",
|
|
@@ -28,16 +28,6 @@
|
|
|
28
28
|
"files": [
|
|
29
29
|
"dist"
|
|
30
30
|
],
|
|
31
|
-
"scripts": {
|
|
32
|
-
"build": "vite build && vue-tsc --emitDeclarationOnly --outDir ./dist",
|
|
33
|
-
"dev": "vite build --watch & vue-tsc --emitDeclarationOnly --outDir ./dist --watch",
|
|
34
|
-
"type-check": "vue-tsc --noEmit",
|
|
35
|
-
"test:unit": "vitest --run",
|
|
36
|
-
"openapi-crm-ts": "openapi-ts -f openapiCrm.config.ts",
|
|
37
|
-
"lint:eslint": "eslint . --fix --cache",
|
|
38
|
-
"lint:oxlint": "oxlint . --fix",
|
|
39
|
-
"lint": "pnpm lint:oxlint && pnpm lint:eslint"
|
|
40
|
-
},
|
|
41
31
|
"peerDependencies": {
|
|
42
32
|
"@wisemen/vue-core-components": "^2.0.0-beta.1",
|
|
43
33
|
"vue": "^3.5.0",
|
|
@@ -47,16 +37,16 @@
|
|
|
47
37
|
},
|
|
48
38
|
"dependencies": {
|
|
49
39
|
"@number-flow/vue": "0.4.8",
|
|
50
|
-
"@tanstack/vue-query": "
|
|
51
|
-
"@vueuse/core": "
|
|
40
|
+
"@tanstack/vue-query": "^5.83.1",
|
|
41
|
+
"@vueuse/core": "^13.9.0",
|
|
52
42
|
"@wisemen/vue-core-query": "0.0.47",
|
|
53
|
-
"dayjs": "
|
|
54
|
-
"formango": "
|
|
55
|
-
"motion-v": "
|
|
56
|
-
"pinia": "
|
|
57
|
-
"reka-ui": "
|
|
58
|
-
"temporal-polyfill": "
|
|
59
|
-
"vue-router": "
|
|
43
|
+
"dayjs": "^1.11.13",
|
|
44
|
+
"formango": "^3.1.0",
|
|
45
|
+
"motion-v": "^1.6.1",
|
|
46
|
+
"pinia": "^3.0.3",
|
|
47
|
+
"reka-ui": "^2.4.1",
|
|
48
|
+
"temporal-polyfill": "^0.3.0",
|
|
49
|
+
"vue-router": "^4.5.1",
|
|
60
50
|
"vue3-google-map": "0.24.1"
|
|
61
51
|
},
|
|
62
52
|
"devDependencies": {
|
|
@@ -69,6 +59,16 @@
|
|
|
69
59
|
"superjson": "2.2.2",
|
|
70
60
|
"tailwindcss": "4.1.11",
|
|
71
61
|
"vitest": "3.2.4",
|
|
72
|
-
"zod": "
|
|
62
|
+
"zod": "^4.0.14"
|
|
63
|
+
},
|
|
64
|
+
"scripts": {
|
|
65
|
+
"build": "vite build && vue-tsc --emitDeclarationOnly --outDir ./dist",
|
|
66
|
+
"dev": "vite build --watch & vue-tsc --emitDeclarationOnly --outDir ./dist --watch",
|
|
67
|
+
"type-check": "vue-tsc --noEmit",
|
|
68
|
+
"test:unit": "vitest --run",
|
|
69
|
+
"openapi-crm-ts": "openapi-ts -f openapiCrm.config.ts",
|
|
70
|
+
"lint:eslint": "eslint . --fix --cache",
|
|
71
|
+
"lint:oxlint": "oxlint . --fix",
|
|
72
|
+
"lint": "pnpm lint:oxlint && pnpm lint:eslint"
|
|
73
73
|
}
|
|
74
|
-
}
|
|
74
|
+
}
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
import { t as S, u as j, o as B, c as E } from "./index-DmadkSOr.js";
|
|
2
|
-
import { customRef as $, toValue as d, nextTick as D, watch as L, defineComponent as N, createElementBlock as R, openBlock as b, renderSlot as q, createVNode as m, withCtx as _, createElementVNode as p, unref as a, Fragment as z, renderList as I, createBlock as M, createTextVNode as O, toDisplayString as P } from "vue";
|
|
3
|
-
import { useRoute as F, useRouter as G, RouterView as K } from "vue-router";
|
|
4
|
-
import { VcIconButton as Q, VcRouterLinkTabs as W, VcRouterLinkTabsItem as A } from "@wisemen/vue-core-components";
|
|
5
|
-
const h = /* @__PURE__ */ new WeakMap();
|
|
6
|
-
function re(n, i, u = {}) {
|
|
7
|
-
const {
|
|
8
|
-
mode: y = "replace",
|
|
9
|
-
route: l = F(),
|
|
10
|
-
router: e = G(),
|
|
11
|
-
transform: s
|
|
12
|
-
} = u;
|
|
13
|
-
let c = (r) => r, w = (r) => r;
|
|
14
|
-
typeof s == "function" ? c = s : s && (s.get && (c = s.get), s.set && (w = s.set)), h.has(e) || h.set(e, /* @__PURE__ */ new Map());
|
|
15
|
-
const f = h.get(e);
|
|
16
|
-
let o = l.params[n];
|
|
17
|
-
S(() => {
|
|
18
|
-
o = void 0;
|
|
19
|
-
});
|
|
20
|
-
let g;
|
|
21
|
-
const k = $((r, x) => (g = x, {
|
|
22
|
-
get() {
|
|
23
|
-
return r(), c(o !== void 0 && o !== "" ? o : d(i));
|
|
24
|
-
},
|
|
25
|
-
set(t) {
|
|
26
|
-
t = w(t), o !== t && (o = t === d(i) || t === null ? void 0 : t, f.set(n, t === d(i) || t === null ? void 0 : t), x(), D(() => {
|
|
27
|
-
if (f.size === 0)
|
|
28
|
-
return;
|
|
29
|
-
const v = Object.fromEntries(f.entries());
|
|
30
|
-
f.clear();
|
|
31
|
-
const { params: T, query: C, hash: V } = l;
|
|
32
|
-
e[d(y)]({
|
|
33
|
-
params: {
|
|
34
|
-
...T,
|
|
35
|
-
...v
|
|
36
|
-
},
|
|
37
|
-
query: C,
|
|
38
|
-
hash: V
|
|
39
|
-
});
|
|
40
|
-
}));
|
|
41
|
-
}
|
|
42
|
-
}));
|
|
43
|
-
return L(
|
|
44
|
-
() => l.params[n],
|
|
45
|
-
(r) => {
|
|
46
|
-
o !== c(r) && (o = r, g());
|
|
47
|
-
},
|
|
48
|
-
{ flush: "sync" }
|
|
49
|
-
), k;
|
|
50
|
-
}
|
|
51
|
-
const H = { class: "flex h-dvh flex-1" }, J = { class: "p-sm flex h-full w-full flex-1 justify-center overflow-hidden" }, U = { class: "mt-xl p-lg absolute top-0 right-6 z-1 flex w-full justify-end" }, X = { class: "flex w-full flex-col" }, Y = { class: "h-full w-full overflow-y-auto" }, se = /* @__PURE__ */ N({
|
|
52
|
-
__name: "CrmDetailView",
|
|
53
|
-
props: {
|
|
54
|
-
entityType: {},
|
|
55
|
-
tabs: {}
|
|
56
|
-
},
|
|
57
|
-
setup(n) {
|
|
58
|
-
const i = n, u = j();
|
|
59
|
-
return B("Escape", () => {
|
|
60
|
-
u.goToReturnRoute();
|
|
61
|
-
}), (y, l) => (b(), R("div", H, [
|
|
62
|
-
q(y.$slots, "sidebar"),
|
|
63
|
-
m(E, {
|
|
64
|
-
"entity-type": n.entityType,
|
|
65
|
-
class: "relative flex-1"
|
|
66
|
-
}, {
|
|
67
|
-
default: _(() => [
|
|
68
|
-
p("div", J, [
|
|
69
|
-
p("div", U, [
|
|
70
|
-
m(a(Q), {
|
|
71
|
-
icon: "close",
|
|
72
|
-
label: "Close",
|
|
73
|
-
variant: "tertiary",
|
|
74
|
-
onClick: l[0] || (l[0] = (e) => a(u).goToReturnRoute())
|
|
75
|
-
})
|
|
76
|
-
]),
|
|
77
|
-
p("div", X, [
|
|
78
|
-
m(a(W), {
|
|
79
|
-
"class-config": {
|
|
80
|
-
base: "w-full border-none rounded-full flex justify-center pb-lg pt-lg !overflow-visible",
|
|
81
|
-
list: "rounded-full w-fit",
|
|
82
|
-
item: "data-[state=active]:text-white",
|
|
83
|
-
indicator: "rounded-full bg-gradient-to-b from-brand-900 to-brand-950",
|
|
84
|
-
scrollContainer: "!p-xs bg-white shadow-lg rounded-full border border-primary/50"
|
|
85
|
-
},
|
|
86
|
-
variant: "button-border"
|
|
87
|
-
}, {
|
|
88
|
-
items: _(() => [
|
|
89
|
-
(b(!0), R(z, null, I(i.tabs, (e) => (b(), M(a(A), {
|
|
90
|
-
key: e.label,
|
|
91
|
-
to: {
|
|
92
|
-
name: e.to
|
|
93
|
-
}
|
|
94
|
-
}, {
|
|
95
|
-
default: _(() => [
|
|
96
|
-
O(P(e.label), 1)
|
|
97
|
-
]),
|
|
98
|
-
_: 2
|
|
99
|
-
}, 1032, ["to"]))), 128))
|
|
100
|
-
]),
|
|
101
|
-
_: 1
|
|
102
|
-
}),
|
|
103
|
-
p("div", Y, [
|
|
104
|
-
m(a(K))
|
|
105
|
-
])
|
|
106
|
-
])
|
|
107
|
-
])
|
|
108
|
-
]),
|
|
109
|
-
_: 1
|
|
110
|
-
}, 8, ["entity-type"])
|
|
111
|
-
]));
|
|
112
|
-
}
|
|
113
|
-
});
|
|
114
|
-
export {
|
|
115
|
-
se as _,
|
|
116
|
-
re as u
|
|
117
|
-
};
|