@cling-se/widget 0.3.2 → 0.4.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/{DocFormSend.58fbdade.js → DocFormSend.06af8a6b.js} +27 -32
- package/dist/{DocSendReminder.610e6f1b.js → DocSendReminder.526624ad.js} +16 -15
- package/dist/DocTimeline.fbf264f2.js +378 -0
- package/dist/index.es.js +29 -4
- package/dist/index.umd.js +104 -105
- package/dist/{main.65f1b3e9.js → main.5aaccd3f.js} +9505 -8879
- package/package.json +1 -1
- package/stats.html +1 -1
- package/tailwind.config.cjs +1 -1
- package/dist/index.021aea9f.js +0 -401
- package/dist/index.0372fc9a.js +0 -457
- package/dist/index.05656554.js +0 -573
- package/dist/index.08d12aab.js +0 -161
- package/dist/index.0c6034f0.js +0 -418
- package/dist/index.0df3b27e.js +0 -460
- package/dist/index.0e4c0d69.js +0 -496
- package/dist/index.135b006c.js +0 -358
- package/dist/index.1595ef27.js +0 -397
- package/dist/index.1936f911.js +0 -605
- package/dist/index.1c5c3e44.js +0 -89
- package/dist/index.1c92d26c.js +0 -405
- package/dist/index.1d4d1b78.js +0 -527
- package/dist/index.1e40747d.js +0 -495
- package/dist/index.1f0b252d.js +0 -88
- package/dist/index.218b46ae.js +0 -400
- package/dist/index.22b2af79.js +0 -89
- package/dist/index.25db5309.js +0 -485
- package/dist/index.266a6ace.js +0 -664
- package/dist/index.272e7245.js +0 -411
- package/dist/index.27304047.js +0 -392
- package/dist/index.291b2b54.js +0 -373
- package/dist/index.2ace86f5.js +0 -44
- package/dist/index.2f4aeb17.js +0 -76
- package/dist/index.31d7f14e.js +0 -358
- package/dist/index.37c3cfdc.js +0 -514
- package/dist/index.39e24331.js +0 -396
- package/dist/index.3ae42b88.js +0 -495
- package/dist/index.3ede3ed9.js +0 -11089
- package/dist/index.48e6f73c.js +0 -390
- package/dist/index.4ac3b55d.js +0 -392
- package/dist/index.4dbcd770.js +0 -358
- package/dist/index.4eb9c363.js +0 -573
- package/dist/index.4eba4a7d.js +0 -391
- package/dist/index.4f04d830.js +0 -88
- package/dist/index.4ff3dace.js +0 -564
- package/dist/index.510b34a1.js +0 -392
- package/dist/index.54aa5bdb.js +0 -392
- package/dist/index.571dd412.js +0 -414
- package/dist/index.57976804.js +0 -405
- package/dist/index.59de1b2c.js +0 -89
- package/dist/index.5b3f29b6.js +0 -90
- package/dist/index.5e93a4a4.js +0 -392
- package/dist/index.604f9a4f.js +0 -89
- package/dist/index.63b5f71b.js +0 -400
- package/dist/index.64fdd79b.js +0 -358
- package/dist/index.66e76ef5.js +0 -414
- package/dist/index.6d854739.js +0 -394
- package/dist/index.7062d55c.js +0 -498
- package/dist/index.7081acc5.js +0 -398
- package/dist/index.7619605a.js +0 -437
- package/dist/index.764b658e.js +0 -413
- package/dist/index.7b93c6da.js +0 -540
- package/dist/index.7c5aed5b.js +0 -174
- package/dist/index.83910d3f.js +0 -424
- package/dist/index.8bd24899.js +0 -89
- package/dist/index.90a87d9e.js +0 -422
- package/dist/index.95cbc7d1.js +0 -50
- package/dist/index.98af6e12.js +0 -362
- package/dist/index.9a1c119f.js +0 -103
- package/dist/index.9d868f2c.js +0 -497
- package/dist/index.a0f17a47.js +0 -105
- package/dist/index.a3b03275.js +0 -542
- package/dist/index.a4cc2ffa.js +0 -422
- package/dist/index.a9441e00.js +0 -396
- package/dist/index.a9a2afee.js +0 -89
- package/dist/index.b4904461.js +0 -423
- package/dist/index.b51268b0.js +0 -401
- package/dist/index.b6512901.js +0 -487
- package/dist/index.b724afce.js +0 -347
- package/dist/index.ba3dcf3b.js +0 -406
- package/dist/index.be109e22.js +0 -422
- package/dist/index.bf3d1093.js +0 -419
- package/dist/index.c02dd0fa.js +0 -344
- package/dist/index.c2181b71.js +0 -347
- package/dist/index.c498538e.js +0 -174
- package/dist/index.c627b669.js +0 -442
- package/dist/index.c84e7cc7.js +0 -324
- package/dist/index.c934c6af.js +0 -405
- package/dist/index.cd8e3187.js +0 -247
- package/dist/index.ce8801e2.js +0 -413
- package/dist/index.d104916c.js +0 -20
- package/dist/index.d320459d.js +0 -357
- package/dist/index.d380d13d.js +0 -371
- package/dist/index.d5ad6009.js +0 -427
- package/dist/index.d6b1b629.js +0 -399
- package/dist/index.dc39016c.js +0 -414
- package/dist/index.dc39d415.js +0 -264
- package/dist/index.dd9fd6fa.js +0 -395
- package/dist/index.df9d0f0b.js +0 -397
- package/dist/index.dfe76608.js +0 -497
- package/dist/index.e19eaf33.js +0 -402
- package/dist/index.e3826d57.js +0 -423
- package/dist/index.e70d1ec3.js +0 -50
- package/dist/index.ea966a9a.js +0 -390
- package/dist/index.eaf0a7c6.js +0 -99
- package/dist/index.ed2c5306.js +0 -392
- package/dist/index.ed474d79.js +0 -397
- package/dist/index.f0d4aeb1.js +0 -399
- package/dist/index.f678de56.js +0 -566
- package/dist/index.fae17bfe.js +0 -388
- package/dist/index.faf3d6eb.js +0 -446
- package/dist/index.fbc2bf20.js +0 -358
- package/dist/init.b422c2c8.js +0 -570
|
@@ -0,0 +1,378 @@
|
|
|
1
|
+
import { n as p, i as g, J as f, d as x } from "./main.5aaccd3f.js";
|
|
2
|
+
const $ = {
|
|
3
|
+
name: "DynamicLink",
|
|
4
|
+
props: {
|
|
5
|
+
template: {
|
|
6
|
+
type: String,
|
|
7
|
+
required: !0
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
computed: {
|
|
11
|
+
transformed() {
|
|
12
|
+
return { template: this.template };
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
var v = function() {
|
|
17
|
+
var e = this, t = e._self._c;
|
|
18
|
+
return t(e.transformed, { tag: "component" });
|
|
19
|
+
}, b = [], C = /* @__PURE__ */ p(
|
|
20
|
+
$,
|
|
21
|
+
v,
|
|
22
|
+
b,
|
|
23
|
+
!1,
|
|
24
|
+
null,
|
|
25
|
+
null,
|
|
26
|
+
null,
|
|
27
|
+
null
|
|
28
|
+
);
|
|
29
|
+
const k = C.exports, S = {
|
|
30
|
+
name: "EventItem",
|
|
31
|
+
components: {
|
|
32
|
+
DynamicLink: k
|
|
33
|
+
},
|
|
34
|
+
props: {
|
|
35
|
+
title: {
|
|
36
|
+
type: String,
|
|
37
|
+
default: ""
|
|
38
|
+
},
|
|
39
|
+
template: {
|
|
40
|
+
type: String,
|
|
41
|
+
default: ""
|
|
42
|
+
},
|
|
43
|
+
content: {
|
|
44
|
+
type: [String, Array],
|
|
45
|
+
default: ""
|
|
46
|
+
},
|
|
47
|
+
createdAt: {
|
|
48
|
+
type: String,
|
|
49
|
+
default: ""
|
|
50
|
+
},
|
|
51
|
+
icon: {
|
|
52
|
+
type: String,
|
|
53
|
+
default: "square"
|
|
54
|
+
},
|
|
55
|
+
compact: {
|
|
56
|
+
type: Boolean,
|
|
57
|
+
default: !1
|
|
58
|
+
},
|
|
59
|
+
loading: {
|
|
60
|
+
type: Boolean,
|
|
61
|
+
default: !1
|
|
62
|
+
},
|
|
63
|
+
color: {
|
|
64
|
+
type: String,
|
|
65
|
+
default: "gray",
|
|
66
|
+
validator: (n) => ["blue", "teal", "orange", "green", "red", "purple", "gray", "primary"].indexOf(n) !== -1
|
|
67
|
+
},
|
|
68
|
+
isFuture: {
|
|
69
|
+
type: Boolean,
|
|
70
|
+
default: !1
|
|
71
|
+
},
|
|
72
|
+
size: {
|
|
73
|
+
type: String,
|
|
74
|
+
default: ""
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
computed: {
|
|
78
|
+
date() {
|
|
79
|
+
return g(f(this.createdAt)) ? this.$formatDate(this.createdAt, "Pp") : null;
|
|
80
|
+
},
|
|
81
|
+
dayOfMonth() {
|
|
82
|
+
return g(f(this.createdAt)) ? this.$formatDate(this.createdAt, "d") : null;
|
|
83
|
+
},
|
|
84
|
+
month() {
|
|
85
|
+
return g(f(this.createdAt)) ? this.$formatDate(this.createdAt, "MMM") : null;
|
|
86
|
+
},
|
|
87
|
+
iconClasses() {
|
|
88
|
+
const n = {
|
|
89
|
+
blue: "text-blue-600 bg-blue-50",
|
|
90
|
+
teal: "text-cyan-600 bg-cyan-50",
|
|
91
|
+
orange: "text-orange-600 bg-orange-50",
|
|
92
|
+
green: "text-green-600 bg-green-50",
|
|
93
|
+
red: "text-red-600 bg-red-50",
|
|
94
|
+
purple: "text-purple-600 bg-purple-50",
|
|
95
|
+
gray: "text-gray-500 bg-gray-100",
|
|
96
|
+
primary: "text-primary-500 bg-primary-50"
|
|
97
|
+
};
|
|
98
|
+
return this.isFuture ? "bg-purple-100 text-purple-500" : n[this.color] || n.gray;
|
|
99
|
+
},
|
|
100
|
+
titleSize() {
|
|
101
|
+
return this.size === "large" ? "text-base" : "text-sm";
|
|
102
|
+
},
|
|
103
|
+
textSize() {
|
|
104
|
+
return this.size === "large" ? "text-[15px]" : "text-[13px]";
|
|
105
|
+
},
|
|
106
|
+
dateSize() {
|
|
107
|
+
return this.size === "large" ? "text-sm" : "text-xs";
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
var D = function() {
|
|
112
|
+
var e = this, t = e._self._c;
|
|
113
|
+
return t("div", { staticClass: "flex flex-nowrap relative text-primary-500 cursor-default pb-5 ml-4 event before:content-[''] before:absolute before:w-px before:h-full before:bg-gray-300 before:-left-px before:top-4 last:before:hidden" }, [t("div", { staticClass: "m-0 h-[23px] relative", staticStyle: { "--bg": "#fff" } }, [t("div", { staticClass: "rounded-full absolute left-1/2 top-1/2 z-[1] w-7 h-7 flex items-center justify-center border-none bg-gray-100", class: e.iconClasses, staticStyle: { transform: "translate(-50%, calc(-50% + 8px))", "box-shadow": "0 0 0 2px var(--bg)" } }, [e.loading ? e._e() : t("BaseIcon", { attrs: { type: e.icon, size: "14" } })], 1)]), t("div", { staticClass: "ml-7 min-w-0 flex-grow flex flex-col pt-1" }, [e.loading ? [t("CSkeleton", { staticClass: "max-w-md text-gray-900 font-medium", class: e.titleSize, attrs: { width: "80%" } }), t("CSkeleton", { staticClass: "text-gray-600", class: e.textSize, attrs: { width: "40%" } }), t("CSkeleton", { staticClass: "text-center text-gray-500 text-xs inline-flex pt-0.5", class: e.dateSize, attrs: { hidden: "" } })] : e._e(), t("div", { staticClass: "max-w-md font-medium", class: [e.isFuture ? "text-gray-500" : "text-gray-700", e.titleSize] }, [e.template ? t("DynamicLink", { attrs: { template: e.template } }) : [e._v(e._s(e.title))]], 2), e.content ? t("div", { class: [e.isFuture ? "text-gray-400" : "text-gray-600", e.textSize] }, [t("div", { domProps: { innerHTML: e._s(e.content) } })]) : e._e(), t("div", { staticClass: "text-center text-gray-500 inline-flex pt-1", class: e.dateSize }, [t("div", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.date, expression: "date" }] }, [e._v(e._s(e.dayOfMonth) + " " + e._s(e.month))])])], 2)]);
|
|
114
|
+
}, w = [], z = /* @__PURE__ */ p(
|
|
115
|
+
S,
|
|
116
|
+
D,
|
|
117
|
+
w,
|
|
118
|
+
!1,
|
|
119
|
+
null,
|
|
120
|
+
null,
|
|
121
|
+
null,
|
|
122
|
+
null
|
|
123
|
+
);
|
|
124
|
+
const I = z.exports, M = {
|
|
125
|
+
name: "DocumentTimeline",
|
|
126
|
+
i18nOptions: {
|
|
127
|
+
namespaces: "DocumentTimeline",
|
|
128
|
+
messages: {
|
|
129
|
+
en: {
|
|
130
|
+
clientName: "Client",
|
|
131
|
+
byName: "By {{- name}}",
|
|
132
|
+
withBankId: "with BankID",
|
|
133
|
+
propertyDesignation: "Request for property designation",
|
|
134
|
+
viewed: "Viewed",
|
|
135
|
+
viewedContent: "{{- name}} has viewed the document",
|
|
136
|
+
signed: "Signed",
|
|
137
|
+
denied: "denied",
|
|
138
|
+
accepted: "accepted",
|
|
139
|
+
statusChanged: "Document was",
|
|
140
|
+
requestChange: "Manually marked as",
|
|
141
|
+
mailOpened: "Email opened",
|
|
142
|
+
mailOpenedContent: "{{email}} viewed",
|
|
143
|
+
mailDropped: "Could not send email",
|
|
144
|
+
smsDropped: "Could not send SMS",
|
|
145
|
+
expired: "Expired",
|
|
146
|
+
expiredContent: "Marked as declined - expiration date has passed"
|
|
147
|
+
},
|
|
148
|
+
sv: {
|
|
149
|
+
clientName: "Kunden",
|
|
150
|
+
byName: "Av {{- name}}",
|
|
151
|
+
withBankId: "med BankID",
|
|
152
|
+
propertyDesignation: "Beg\xE4ran om fastighetsbeteckning",
|
|
153
|
+
viewed: "Granskat",
|
|
154
|
+
viewedContent: "{{- name}} har visat dokumentet",
|
|
155
|
+
signed: "Signerat",
|
|
156
|
+
denied: "Nekat",
|
|
157
|
+
accepted: "godk\xE4nt",
|
|
158
|
+
statusChanged: "Dokumentet blev",
|
|
159
|
+
requestChange: "Markerades manuellt som",
|
|
160
|
+
mailOpened: "Mail visat",
|
|
161
|
+
mailOpenedContent: "{{email}} visat",
|
|
162
|
+
mailDropped: "E-post kunde inte skickas",
|
|
163
|
+
smsDropped: "SMS kunde inte skickas",
|
|
164
|
+
expired: "Upph\xF6rde att g\xE4lla",
|
|
165
|
+
expiredContent: "Markerades som nekat f\xF6r att giltighetstiden har passerat"
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
components: {
|
|
170
|
+
EventItem: I
|
|
171
|
+
},
|
|
172
|
+
props: {
|
|
173
|
+
id: {
|
|
174
|
+
type: String,
|
|
175
|
+
required: !0
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
computed: {
|
|
179
|
+
...x({
|
|
180
|
+
docById: "documents2/byId",
|
|
181
|
+
userById: "companyUsers/byId"
|
|
182
|
+
}),
|
|
183
|
+
document() {
|
|
184
|
+
return this.docById(this.id);
|
|
185
|
+
},
|
|
186
|
+
events() {
|
|
187
|
+
var i;
|
|
188
|
+
const n = [
|
|
189
|
+
this.formatEvent({
|
|
190
|
+
code: "created",
|
|
191
|
+
createdAt: (i = this.document) == null ? void 0 : i.createdAt
|
|
192
|
+
})
|
|
193
|
+
], { events: e, scheduledFirstDelivery: t } = this.document || {};
|
|
194
|
+
if ((t == null ? void 0 : t.status) === "active") {
|
|
195
|
+
const r = t.deliveryTypes.join(
|
|
196
|
+
` ${this.$t("_common:and")} `
|
|
197
|
+
);
|
|
198
|
+
n.push({
|
|
199
|
+
title: this.$t("_common:scheduledDelivery"),
|
|
200
|
+
content: `${this.$t(
|
|
201
|
+
"_common:via"
|
|
202
|
+
)} ${r}, ${this.$formatDate(
|
|
203
|
+
t.sendAt
|
|
204
|
+
)}`,
|
|
205
|
+
isFuture: !0,
|
|
206
|
+
icon: "calendar",
|
|
207
|
+
color: "primary"
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
return e == null || e.forEach((r) => n.push(this.formatEvent(r))), n;
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
methods: {
|
|
214
|
+
formatEvent({ code: n, data: e, createdAt: t, children: i = [] }) {
|
|
215
|
+
const {
|
|
216
|
+
client: r = {},
|
|
217
|
+
clients: u,
|
|
218
|
+
email: c,
|
|
219
|
+
status: d,
|
|
220
|
+
counter: _,
|
|
221
|
+
sendSource: h,
|
|
222
|
+
companyUserId: y
|
|
223
|
+
} = e || {}, m = _ || i.length + 1, o = r.name;
|
|
224
|
+
return {
|
|
225
|
+
created: () => ({
|
|
226
|
+
title: this.$t("_common:created"),
|
|
227
|
+
createdAt: t,
|
|
228
|
+
icon: "folder",
|
|
229
|
+
color: "primary"
|
|
230
|
+
}),
|
|
231
|
+
viewed: () => ({
|
|
232
|
+
title: this.$t("viewed"),
|
|
233
|
+
content: (o ? this.$t("viewedContent", { name: o }) : "") + (m ? ` ${this.$tc("_common:times", { count: m })}` : ""),
|
|
234
|
+
createdAt: t,
|
|
235
|
+
icon: "eye",
|
|
236
|
+
color: "primary"
|
|
237
|
+
}),
|
|
238
|
+
accepted: () => {
|
|
239
|
+
var a;
|
|
240
|
+
const s = {
|
|
241
|
+
title: this.$t("_common:status.signed"),
|
|
242
|
+
content: o ? this.$t("byName", { name: o }) : "",
|
|
243
|
+
createdAt: t,
|
|
244
|
+
icon: "check",
|
|
245
|
+
color: "primary"
|
|
246
|
+
};
|
|
247
|
+
return s.content && ((a = r.answerMethod) == null ? void 0 : a.accept) === "bankId" && (s.content += this.$t("withBankId")), s;
|
|
248
|
+
},
|
|
249
|
+
denied: () => ({
|
|
250
|
+
title: this.$t("_common:status.denied"),
|
|
251
|
+
content: o ? this.$t("byName", { name: o }) : "",
|
|
252
|
+
createdAt: t,
|
|
253
|
+
icon: "x",
|
|
254
|
+
color: "primary"
|
|
255
|
+
}),
|
|
256
|
+
sent: () => {
|
|
257
|
+
let s = this.$t("_common:sent");
|
|
258
|
+
return ["reminder", "propertyDesignation"].includes(h) && (s = this.$t("_common:sentThing", {
|
|
259
|
+
thing: h === "reminder" ? this.$t("_common:reminder") : this.$t("propertyDesignation")
|
|
260
|
+
})), {
|
|
261
|
+
title: s,
|
|
262
|
+
content: u == null ? void 0 : u.map(
|
|
263
|
+
(a) => ["email", "cellphone"].filter((l) => !!a[l]).map((l) => a[l]).join(` ${this.$t("_common:and")} `)
|
|
264
|
+
).reduce(
|
|
265
|
+
(a, l) => a ? `${a}<div>${l}</div>` : `${this.$t("_common:to")}: ${l}`.capitalize(),
|
|
266
|
+
""
|
|
267
|
+
),
|
|
268
|
+
createdAt: t,
|
|
269
|
+
icon: h === "reminder" ? "bell" : "send",
|
|
270
|
+
color: "primary"
|
|
271
|
+
};
|
|
272
|
+
},
|
|
273
|
+
statusChanged: () => ["accepted", "denied"].includes(d) ? {
|
|
274
|
+
title: `${this.$t("statusChanged")} ${this.$t(
|
|
275
|
+
`_common:status.${d}`
|
|
276
|
+
)}`,
|
|
277
|
+
createdAt: t,
|
|
278
|
+
icon: d === "accepted" ? "check" : "x",
|
|
279
|
+
color: d === "accepted" ? "green" : "red"
|
|
280
|
+
} : null,
|
|
281
|
+
requestChange: () => {
|
|
282
|
+
var a;
|
|
283
|
+
const s = ((a = this.userById(y)) == null ? void 0 : a.fullName) || "";
|
|
284
|
+
return {
|
|
285
|
+
title: `${this.$t("requestChange")} ${this.$t(
|
|
286
|
+
`_common:status.${d}`
|
|
287
|
+
)}`,
|
|
288
|
+
content: s && this.$t("byName", { name: s }),
|
|
289
|
+
createdAt: t,
|
|
290
|
+
icon: "tool",
|
|
291
|
+
color: "primary"
|
|
292
|
+
};
|
|
293
|
+
},
|
|
294
|
+
mailDelivered: () => ({
|
|
295
|
+
title: this.$t("_common:sentThing", {
|
|
296
|
+
thing: this.$t("_common:email").capitalize()
|
|
297
|
+
}),
|
|
298
|
+
content: c ? `${this.$t("_common:to")}: ${c}`.capitalize() : "",
|
|
299
|
+
createdAt: t,
|
|
300
|
+
icon: "inbox",
|
|
301
|
+
color: "primary"
|
|
302
|
+
}),
|
|
303
|
+
mailOpened: () => ({
|
|
304
|
+
title: this.$t("mailOpened"),
|
|
305
|
+
content: `${this.$t("mailOpenedContent", { email: c })} ${m ? this.$tc("_common:times", { count: m }) : ""}`,
|
|
306
|
+
createdAt: t,
|
|
307
|
+
icon: "email",
|
|
308
|
+
color: "primary"
|
|
309
|
+
}),
|
|
310
|
+
mailDropped: () => ({
|
|
311
|
+
title: this.$t("mailDropped"),
|
|
312
|
+
content: c ? this.$t("toEmail", { email: c }) : null,
|
|
313
|
+
createdAt: t,
|
|
314
|
+
icon: "alert-triangle",
|
|
315
|
+
color: "orange"
|
|
316
|
+
}),
|
|
317
|
+
smsDropped: () => ({
|
|
318
|
+
title: this.$t("smsDropped"),
|
|
319
|
+
content: e ? `${this.$t("_common:to")}: ${e}`.capitalize() : "",
|
|
320
|
+
createdAt: t,
|
|
321
|
+
icon: "alert-triangle",
|
|
322
|
+
color: "orange"
|
|
323
|
+
}),
|
|
324
|
+
expired: () => ({
|
|
325
|
+
title: this.$t("expired"),
|
|
326
|
+
content: this.$t("expiredContent"),
|
|
327
|
+
createdAt: t,
|
|
328
|
+
icon: "x",
|
|
329
|
+
color: "red"
|
|
330
|
+
})
|
|
331
|
+
}[n]();
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
};
|
|
335
|
+
var B = function() {
|
|
336
|
+
var e = this, t = e._self._c;
|
|
337
|
+
return t("div", [t("div", { staticClass: "border-b mb-4 pb-4" }, [t("div", { staticClass: "mb-2" }, [t("div", { staticClass: "text-xs text-gray-600", domProps: { textContent: e._s(e.$t("_common:document").capitalize()) } }), t("div", { staticClass: "font-semibold text-lg" }, [e._v(e._s(e.document.name))])]), t("div", { staticClass: "inline-flex items-center rounded-full bg-gray-100 border-gray-200 -ml-2" }, [t("div", { staticClass: "text-xs text-gray-600 mr-1 py-1 pl-2", domProps: { textContent: e._s(e.$t("_common:status.status")) } }), t("div", { staticClass: "text-xs font-semibold py-1 px-2 bg-gray-300 rounded-r-full", domProps: { textContent: e._s(e.$t(`_common:status.${e.document.status}`)) } })])]), e._l(e.events, function(i, r) {
|
|
338
|
+
return t("EventItem", { key: r, attrs: { title: i.title, content: i.content, createdAt: i.createdAt, icon: i.icon, color: i.color, "is-future": i.isFuture, size: "large" } });
|
|
339
|
+
})], 2);
|
|
340
|
+
}, O = [], E = /* @__PURE__ */ p(
|
|
341
|
+
M,
|
|
342
|
+
B,
|
|
343
|
+
O,
|
|
344
|
+
!1,
|
|
345
|
+
null,
|
|
346
|
+
null,
|
|
347
|
+
null,
|
|
348
|
+
null
|
|
349
|
+
);
|
|
350
|
+
const N = E.exports, T = {
|
|
351
|
+
name: "DocTimeline",
|
|
352
|
+
components: {
|
|
353
|
+
DocumentTimeline: N
|
|
354
|
+
},
|
|
355
|
+
props: {
|
|
356
|
+
id: {
|
|
357
|
+
type: String,
|
|
358
|
+
required: !0
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
};
|
|
362
|
+
var q = function() {
|
|
363
|
+
var e = this, t = e._self._c;
|
|
364
|
+
return t("div", { staticClass: "p-8" }, [t("DocumentTimeline", { attrs: { id: e.id } })], 1);
|
|
365
|
+
}, F = [], P = /* @__PURE__ */ p(
|
|
366
|
+
T,
|
|
367
|
+
q,
|
|
368
|
+
F,
|
|
369
|
+
!1,
|
|
370
|
+
null,
|
|
371
|
+
null,
|
|
372
|
+
null,
|
|
373
|
+
null
|
|
374
|
+
);
|
|
375
|
+
const j = P.exports;
|
|
376
|
+
export {
|
|
377
|
+
j as default
|
|
378
|
+
};
|