@cling-se/widget 0.7.4 → 0.8.1
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/.env +1 -1
- package/dist/{DocFormSend.f4aaed94.js → DocFormSend.3e9cc773.js} +22 -6
- package/dist/{DocReceipt.0bbe8781.js → DocReceipt.42ba588c.js} +1 -1
- package/dist/{DocSendReminder.d8ca259a.js → DocSendReminder.5d4e1684.js} +1 -1
- package/dist/{DocTimeline.0a62cd2b.js → DocTimeline.cc884081.js} +93 -81
- package/dist/index.es.js +4 -4
- package/dist/index.umd.js +79 -80
- package/dist/{main.f5dac5dd.js → main.5875d1fd.js} +12145 -12725
- package/package.json +1 -2
- package/stats.html +1 -1
- package/tailwind.config.cjs +11 -0
package/.env
CHANGED
|
@@ -6,7 +6,7 @@ VITE_APP_ROLLBAR_ENV=production
|
|
|
6
6
|
VITE_APP_STRIPE_PUBLISHABLE_KEY=pk_live_srt9FB7WkzNiQGIP46ISVpag00bGlEZBT8
|
|
7
7
|
|
|
8
8
|
# WIDGET DEV OVERRIDES
|
|
9
|
-
VITE_APP_WEB_BASEURL_DEV=https://app.
|
|
9
|
+
VITE_APP_WEB_BASEURL_DEV=https://app.dev.cling.se
|
|
10
10
|
VITE_APP_CLINGAPI_BASEURL_DEV=https://api.dev.cling.se
|
|
11
11
|
VITE_APP_ROLLBAR_CLIENT_TOKEN_DEV=cf75726b70174d4097505ae18d5f9600
|
|
12
12
|
VITE_APP_ROLLBAR_ENV_DEV=staging
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as se, g as Se, a as zf, n as N, C as Va, s as Wf, e as Vf, i as Yf, r as Tc, b as Xs, m as Rc, d as Lt, f as mn, h as nt, _ as Uf, j as Ic, k as Hf, p as Gf, l as qf, o as Kf, q as Pc, V as Ya, t as Ac, A as Xf, u as Zf, v as Jf, w as Qf, x as eh, F as Fc, y as Nc, z as Ua, B as th, D as rh, E as Zs, G as nh, H as ih, I as ah } from "./main.
|
|
1
|
+
import { c as se, g as Se, a as zf, n as N, C as Va, s as Wf, e as Vf, i as Yf, r as Tc, b as Xs, m as Rc, d as Lt, f as mn, h as nt, _ as Uf, j as Ic, k as Hf, p as Gf, l as qf, o as Kf, q as Pc, V as Ya, t as Ac, A as Xf, u as Zf, v as Jf, w as Qf, x as eh, F as Fc, y as Nc, z as Ua, B as th, D as rh, E as Zs, G as nh, H as ih, I as ah } from "./main.5875d1fd.js";
|
|
2
2
|
const fe = {
|
|
3
3
|
AD: {
|
|
4
4
|
name: "Andorra",
|
|
@@ -8938,7 +8938,7 @@ const IM = {
|
|
|
8938
8938
|
},
|
|
8939
8939
|
async doSendDocument() {
|
|
8940
8940
|
var t;
|
|
8941
|
-
this.$v.$touch(), !this.$v.$invalid && (["denied", "expired"].includes((t = this._document) == null ? void 0 : t.status) && this.resetDeniedDocument(), await this.doSaveDocument({ doSend: !0 }));
|
|
8941
|
+
this.$v.$touch(), !this.$v.$invalid && (["denied", "expired", "voided"].includes((t = this._document) == null ? void 0 : t.status) && this.resetDeniedDocument(), await this.doSaveDocument({ doSend: !0 }));
|
|
8942
8942
|
},
|
|
8943
8943
|
setDeliveryMethod(t, e) {
|
|
8944
8944
|
const r = this.deliveryTypes;
|
|
@@ -9053,7 +9053,7 @@ var PM = function() {
|
|
|
9053
9053
|
AM,
|
|
9054
9054
|
!1,
|
|
9055
9055
|
null,
|
|
9056
|
-
"
|
|
9056
|
+
"b2246c6c",
|
|
9057
9057
|
null,
|
|
9058
9058
|
null
|
|
9059
9059
|
);
|
|
@@ -9774,6 +9774,10 @@ const uE = {
|
|
|
9774
9774
|
type: Boolean,
|
|
9775
9775
|
default: !1
|
|
9776
9776
|
},
|
|
9777
|
+
title: {
|
|
9778
|
+
type: String,
|
|
9779
|
+
default: ""
|
|
9780
|
+
},
|
|
9777
9781
|
tooltip: {
|
|
9778
9782
|
type: [Object, String],
|
|
9779
9783
|
default: null
|
|
@@ -9955,24 +9959,36 @@ const yE = {
|
|
|
9955
9959
|
closable: {
|
|
9956
9960
|
type: Boolean,
|
|
9957
9961
|
default: !1
|
|
9962
|
+
},
|
|
9963
|
+
legacy: {
|
|
9964
|
+
type: Boolean,
|
|
9965
|
+
default: !0
|
|
9966
|
+
},
|
|
9967
|
+
icon: {
|
|
9968
|
+
type: String,
|
|
9969
|
+
default: null
|
|
9958
9970
|
}
|
|
9959
9971
|
}
|
|
9960
9972
|
};
|
|
9961
9973
|
var _E = function() {
|
|
9962
9974
|
var e = this, r = e._self._c;
|
|
9963
|
-
return r("transition", { attrs: { name: "fade" } }, [r("article", { staticClass: "message", class: [
|
|
9975
|
+
return r("transition", { attrs: { name: "fade" } }, [e.legacy ? r("article", { staticClass: "message", class: [
|
|
9964
9976
|
`is-${e.type}`,
|
|
9965
9977
|
`is-${e.size}`
|
|
9966
9978
|
] }, [r("section", { staticClass: "message-body", style: { padding: e.padding } }, [e.title ? r("header", { staticClass: "message-header" }, [e._v(" " + e._s(e.title) + " ")]) : e._e(), r("div", { staticClass: "media" }, [r("div", { staticClass: "media-content" }, [e._t("default")], 2)])]), e.closable ? r("CButton", { staticStyle: { right: ".5rem", position: "absolute", top: ".5rem" }, attrs: { type: e.type, size: "small", pattern: "secondary", circle: "", icon: "x" }, on: { click: function(n) {
|
|
9967
9979
|
return e.$emit("close");
|
|
9968
|
-
} } }) : e._e()], 1)])
|
|
9980
|
+
} } }) : e._e()], 1) : r("div", { staticClass: "flex p-4 border border-gray-200 rounded-md bg-gray-50" }, [e.icon ? r("div", { staticClass: "mr-3 -mt-px" }, [r("BaseIcon", { attrs: { type: e.icon, size: "16" } })], 1) : e._e(), r("div", [r("div", [e._t("title", function() {
|
|
9981
|
+
return [r("div", { staticClass: "font-medium" }, [e._v(e._s(e.title))])];
|
|
9982
|
+
})], 2), r("div", { staticClass: "text-gray-800" }, [e._t("default", function() {
|
|
9983
|
+
return [r("div", { staticClass: "mb-2 text-gray-500" }, [e._v(e._s(e.text))])];
|
|
9984
|
+
})], 2)])])]);
|
|
9969
9985
|
}, bE = [], SE = /* @__PURE__ */ N(
|
|
9970
9986
|
yE,
|
|
9971
9987
|
_E,
|
|
9972
9988
|
bE,
|
|
9973
9989
|
!1,
|
|
9974
9990
|
null,
|
|
9975
|
-
"
|
|
9991
|
+
"56f747ee",
|
|
9976
9992
|
null,
|
|
9977
9993
|
null
|
|
9978
9994
|
);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as
|
|
2
|
-
const
|
|
1
|
+
import { n as u, J as b, g as S, i as _, K as f, d as D } from "./main.5875d1fd.js";
|
|
2
|
+
const x = {
|
|
3
3
|
new: {
|
|
4
4
|
statusClass: "draft",
|
|
5
5
|
icon: "statusDraft"
|
|
@@ -36,6 +36,10 @@ const g = {
|
|
|
36
36
|
statusClass: "expired",
|
|
37
37
|
icon: "statusExpired"
|
|
38
38
|
},
|
|
39
|
+
voided: {
|
|
40
|
+
statusClass: "voided",
|
|
41
|
+
icon: "statusVoided"
|
|
42
|
+
},
|
|
39
43
|
active: {
|
|
40
44
|
statusClass: "active",
|
|
41
45
|
icon: "statusActive"
|
|
@@ -48,7 +52,7 @@ const g = {
|
|
|
48
52
|
statusClass: "archived",
|
|
49
53
|
icon: "statusArchive"
|
|
50
54
|
}
|
|
51
|
-
},
|
|
55
|
+
}, k = {
|
|
52
56
|
props: {
|
|
53
57
|
status: {
|
|
54
58
|
type: String,
|
|
@@ -61,31 +65,31 @@ const g = {
|
|
|
61
65
|
},
|
|
62
66
|
computed: {
|
|
63
67
|
text() {
|
|
64
|
-
return this.status ?
|
|
68
|
+
return this.status ? b.t(`_common:status.${this.status}`) : "";
|
|
65
69
|
},
|
|
66
70
|
className() {
|
|
67
|
-
const { statusClass: s = "" } =
|
|
71
|
+
const { statusClass: s = "" } = x[this.status] || {};
|
|
68
72
|
return s;
|
|
69
73
|
},
|
|
70
74
|
icon() {
|
|
71
|
-
return
|
|
75
|
+
return S(x, `${this.status}.icon`);
|
|
72
76
|
}
|
|
73
77
|
}
|
|
74
78
|
};
|
|
75
|
-
var
|
|
79
|
+
var w = function() {
|
|
76
80
|
var t = this, e = t._self._c;
|
|
77
81
|
return e("div", { staticClass: "inline-flex items-center h-6 pl-1 pr-2 text-xs font-medium leading-none rounded-full c-badge_status", class: t.className }, [t.icon ? e("BaseIcon", { staticClass: "mr-1 status-icon", attrs: { type: t.icon, size: "16" } }) : t._e(), e("span", [t._v(t._s(t.text))])], 1);
|
|
78
|
-
},
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
+
}, z = [], T = /* @__PURE__ */ u(
|
|
83
|
+
k,
|
|
84
|
+
w,
|
|
85
|
+
z,
|
|
82
86
|
!1,
|
|
83
87
|
null,
|
|
84
88
|
null,
|
|
85
89
|
null,
|
|
86
90
|
null
|
|
87
91
|
);
|
|
88
|
-
const
|
|
92
|
+
const B = T.exports, I = {
|
|
89
93
|
name: "DynamicLink",
|
|
90
94
|
props: {
|
|
91
95
|
template: {
|
|
@@ -99,23 +103,23 @@ const w = k.exports, z = {
|
|
|
99
103
|
}
|
|
100
104
|
}
|
|
101
105
|
};
|
|
102
|
-
var
|
|
106
|
+
var O = function() {
|
|
103
107
|
var t = this, e = t._self._c;
|
|
104
108
|
return e(t.transformed, { tag: "component" });
|
|
105
|
-
},
|
|
106
|
-
z,
|
|
107
|
-
B,
|
|
109
|
+
}, E = [], M = /* @__PURE__ */ u(
|
|
108
110
|
I,
|
|
111
|
+
O,
|
|
112
|
+
E,
|
|
109
113
|
!1,
|
|
110
114
|
null,
|
|
111
115
|
null,
|
|
112
116
|
null,
|
|
113
117
|
null
|
|
114
118
|
);
|
|
115
|
-
const
|
|
119
|
+
const N = M.exports, A = {
|
|
116
120
|
name: "EventItem",
|
|
117
121
|
components: {
|
|
118
|
-
DynamicLink:
|
|
122
|
+
DynamicLink: N
|
|
119
123
|
},
|
|
120
124
|
props: {
|
|
121
125
|
title: {
|
|
@@ -194,20 +198,20 @@ const M = T.exports, E = {
|
|
|
194
198
|
}
|
|
195
199
|
}
|
|
196
200
|
};
|
|
197
|
-
var
|
|
201
|
+
var F = function() {
|
|
198
202
|
var t = this, e = t._self._c;
|
|
199
203
|
return e("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" }, [e("div", { staticClass: "m-0 h-[23px] relative", staticStyle: { "--bg": "#fff" } }, [e("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: t.iconClasses, staticStyle: { transform: "translate(-50%, calc(-50% + 8px))", "box-shadow": "0 0 0 2px var(--bg)" } }, [t.loading ? t._e() : e("BaseIcon", { attrs: { type: t.icon, size: "14" } })], 1)]), e("div", { staticClass: "ml-7 min-w-0 flex-grow flex flex-col pt-1" }, [t.loading ? [e("CSkeleton", { staticClass: "max-w-md text-gray-900 font-medium", class: t.titleSize, attrs: { width: "80%" } }), e("CSkeleton", { staticClass: "text-gray-600", class: t.textSize, attrs: { width: "40%" } }), e("CSkeleton", { staticClass: "text-center text-gray-500 text-xs inline-flex pt-0.5", class: t.dateSize, attrs: { hidden: "" } })] : t._e(), e("div", { staticClass: "max-w-md font-medium", class: [t.isFuture ? "text-gray-500" : "text-gray-700", t.titleSize] }, [t.template ? e("DynamicLink", { attrs: { template: t.template } }) : [t._v(t._s(t.title))]], 2), t.content ? e("div", { class: [t.isFuture ? "text-gray-400" : "text-gray-600", t.textSize] }, [e("div", { domProps: { innerHTML: t._s(t.content) } })]) : t._e(), e("div", { staticClass: "text-center text-gray-500 inline-flex pt-1", class: t.dateSize }, [e("div", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: t.date, expression: "date" }] }, [t._v(t._s(t.dayOfMonth) + " " + t._s(t.month))])])], 2)]);
|
|
200
|
-
},
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
+
}, q = [], j = /* @__PURE__ */ u(
|
|
205
|
+
A,
|
|
206
|
+
F,
|
|
207
|
+
q,
|
|
204
208
|
!1,
|
|
205
209
|
null,
|
|
206
210
|
null,
|
|
207
211
|
null,
|
|
208
212
|
null
|
|
209
213
|
);
|
|
210
|
-
const
|
|
214
|
+
const R = j.exports, L = {
|
|
211
215
|
sv: {
|
|
212
216
|
clientName: "Kunden",
|
|
213
217
|
byName: "Av {{- name}}",
|
|
@@ -244,32 +248,35 @@ const F = A.exports, q = {
|
|
|
244
248
|
expiredContent: "The expiration date has passed",
|
|
245
249
|
toEmail: "To: {{email}}"
|
|
246
250
|
}
|
|
247
|
-
},
|
|
251
|
+
}, P = {
|
|
248
252
|
name: "DocumentTimeline",
|
|
249
253
|
i18nOptions: {
|
|
250
254
|
namespaces: "documentTimeline",
|
|
251
|
-
messages:
|
|
255
|
+
messages: L
|
|
252
256
|
},
|
|
253
257
|
components: {
|
|
254
|
-
|
|
255
|
-
EventItem: F
|
|
258
|
+
EventItem: R
|
|
256
259
|
},
|
|
257
260
|
props: {
|
|
258
|
-
|
|
259
|
-
type:
|
|
261
|
+
document: {
|
|
262
|
+
type: Object,
|
|
260
263
|
required: !0
|
|
264
|
+
},
|
|
265
|
+
colors: {
|
|
266
|
+
type: Object,
|
|
267
|
+
default: () => ({})
|
|
268
|
+
},
|
|
269
|
+
size: {
|
|
270
|
+
type: String,
|
|
271
|
+
default: ""
|
|
261
272
|
}
|
|
262
273
|
},
|
|
263
274
|
computed: {
|
|
264
|
-
...
|
|
265
|
-
docById: "documents2/byId",
|
|
275
|
+
...D({
|
|
266
276
|
userById: "companyUsers/byId"
|
|
267
277
|
}),
|
|
268
|
-
document() {
|
|
269
|
-
return this.docById(this.id);
|
|
270
|
-
},
|
|
271
278
|
events() {
|
|
272
|
-
var n;
|
|
279
|
+
var n, r;
|
|
273
280
|
const s = [
|
|
274
281
|
this.formatEvent({
|
|
275
282
|
code: "created",
|
|
@@ -277,36 +284,36 @@ const F = A.exports, q = {
|
|
|
277
284
|
})
|
|
278
285
|
], { events: t, scheduledFirstDelivery: e } = this.document || {};
|
|
279
286
|
if ((e == null ? void 0 : e.status) === "active") {
|
|
280
|
-
const
|
|
287
|
+
const o = e.deliveryTypes.join(
|
|
281
288
|
` ${this.$t("_common:and")} `
|
|
282
289
|
);
|
|
283
290
|
s.push({
|
|
284
291
|
title: this.$t("_common:scheduledDelivery"),
|
|
285
292
|
content: `${this.$t(
|
|
286
293
|
"_common:via"
|
|
287
|
-
)} ${
|
|
294
|
+
)} ${o}, ${this.$formatDate(
|
|
288
295
|
e.sendAt
|
|
289
296
|
)}`,
|
|
290
297
|
isFuture: !0,
|
|
291
298
|
icon: "calendar",
|
|
292
|
-
color: "primary"
|
|
299
|
+
color: ((r = this.colors) == null ? void 0 : r.scheduledDelivery) || "primary"
|
|
293
300
|
});
|
|
294
301
|
}
|
|
295
|
-
return t == null || t.forEach((
|
|
302
|
+
return t == null || t.forEach((o) => s.push(this.formatEvent(o))), s;
|
|
296
303
|
}
|
|
297
304
|
},
|
|
298
305
|
methods: {
|
|
299
306
|
formatEvent({ code: s, data: t, createdAt: e, children: n = [] }) {
|
|
307
|
+
var v;
|
|
300
308
|
const {
|
|
301
309
|
client: r = {},
|
|
302
|
-
clients:
|
|
303
|
-
email:
|
|
304
|
-
status:
|
|
305
|
-
counter:
|
|
310
|
+
clients: o,
|
|
311
|
+
email: d,
|
|
312
|
+
status: m,
|
|
313
|
+
counter: y,
|
|
306
314
|
sendSource: h,
|
|
307
|
-
companyUserId:
|
|
308
|
-
} = t || {},
|
|
309
|
-
return {
|
|
315
|
+
companyUserId: $
|
|
316
|
+
} = t || {}, p = y || n.length + 1, l = r.name, C = {
|
|
310
317
|
created: () => ({
|
|
311
318
|
title: this.$t("_common:created"),
|
|
312
319
|
createdAt: e,
|
|
@@ -315,7 +322,7 @@ const F = A.exports, q = {
|
|
|
315
322
|
}),
|
|
316
323
|
viewed: () => ({
|
|
317
324
|
title: this.$t("viewed"),
|
|
318
|
-
content: (
|
|
325
|
+
content: (l ? this.$t("viewedContent", { name: l }) : "") + (p ? ` ${this.$tc("_common:times", { count: p })}` : ""),
|
|
319
326
|
createdAt: e,
|
|
320
327
|
icon: "eye",
|
|
321
328
|
color: "primary"
|
|
@@ -324,7 +331,7 @@ const F = A.exports, q = {
|
|
|
324
331
|
var a;
|
|
325
332
|
const i = {
|
|
326
333
|
title: this.$t("_common:status.signed"),
|
|
327
|
-
content:
|
|
334
|
+
content: l ? this.$t("byName", { name: l }) : "",
|
|
328
335
|
createdAt: e,
|
|
329
336
|
icon: "check",
|
|
330
337
|
color: "primary"
|
|
@@ -333,7 +340,7 @@ const F = A.exports, q = {
|
|
|
333
340
|
},
|
|
334
341
|
denied: () => ({
|
|
335
342
|
title: this.$t("_common:status.denied"),
|
|
336
|
-
content:
|
|
343
|
+
content: l ? this.$t("byName", { name: l }) : "",
|
|
337
344
|
createdAt: e,
|
|
338
345
|
icon: "x",
|
|
339
346
|
color: "primary"
|
|
@@ -344,10 +351,10 @@ const F = A.exports, q = {
|
|
|
344
351
|
thing: h === "reminder" ? this.$t("_common:reminder") : this.$t("propertyDesignation")
|
|
345
352
|
})), {
|
|
346
353
|
title: i,
|
|
347
|
-
content:
|
|
348
|
-
(a) => ["email", "cellphone"].filter((
|
|
354
|
+
content: o == null ? void 0 : o.map(
|
|
355
|
+
(a) => ["email", "cellphone"].filter((c) => !!a[c]).map((c) => a[c]).join(` ${this.$t("_common:and")} `)
|
|
349
356
|
).reduce(
|
|
350
|
-
(a,
|
|
357
|
+
(a, c) => a ? `${a}<div>${c}</div>` : `${this.$t("_common:to")}: ${c}`.capitalize(),
|
|
351
358
|
""
|
|
352
359
|
),
|
|
353
360
|
createdAt: e,
|
|
@@ -355,18 +362,18 @@ const F = A.exports, q = {
|
|
|
355
362
|
color: "primary"
|
|
356
363
|
};
|
|
357
364
|
},
|
|
358
|
-
statusChanged: () => ["accepted", "denied"].includes(
|
|
359
|
-
title:
|
|
365
|
+
statusChanged: () => ["accepted", "denied"].includes(m) ? {
|
|
366
|
+
title: m === "accepted" ? this.$t("statusChangedAccepted") : this.$t("statusChangedDenied"),
|
|
360
367
|
createdAt: e,
|
|
361
|
-
icon:
|
|
362
|
-
color:
|
|
368
|
+
icon: m === "accepted" ? "check" : "x",
|
|
369
|
+
color: m === "accepted" ? "green" : "red"
|
|
363
370
|
} : null,
|
|
364
371
|
requestChange: () => {
|
|
365
372
|
var a;
|
|
366
|
-
const i = ((a = this.userById(
|
|
373
|
+
const i = ((a = this.userById($)) == null ? void 0 : a.fullName) || "";
|
|
367
374
|
return {
|
|
368
375
|
title: `${this.$t("requestChange")} ${this.$t(
|
|
369
|
-
`_common:status.${
|
|
376
|
+
`_common:status.${m}`
|
|
370
377
|
)}`,
|
|
371
378
|
content: i && this.$t("byName", { name: i }),
|
|
372
379
|
createdAt: e,
|
|
@@ -378,21 +385,21 @@ const F = A.exports, q = {
|
|
|
378
385
|
title: this.$t("_common:sentThing", {
|
|
379
386
|
thing: this.$t("_common:email").capitalize()
|
|
380
387
|
}),
|
|
381
|
-
content:
|
|
388
|
+
content: d ? `${this.$t("_common:to")}: ${d}`.capitalize() : "",
|
|
382
389
|
createdAt: e,
|
|
383
390
|
icon: "inbox",
|
|
384
391
|
color: "primary"
|
|
385
392
|
}),
|
|
386
393
|
mailOpened: () => ({
|
|
387
394
|
title: this.$t("mailOpened"),
|
|
388
|
-
content: `${this.$t("mailOpenedContent", { email:
|
|
395
|
+
content: `${this.$t("mailOpenedContent", { email: d })} ${p ? this.$tc("_common:times", { count: p }) : ""}`,
|
|
389
396
|
createdAt: e,
|
|
390
397
|
icon: "email",
|
|
391
398
|
color: "primary"
|
|
392
399
|
}),
|
|
393
400
|
mailDropped: () => ({
|
|
394
401
|
title: this.$t("mailDropped"),
|
|
395
|
-
content:
|
|
402
|
+
content: d ? this.$t("toEmail", { email: d }) : null,
|
|
396
403
|
createdAt: e,
|
|
397
404
|
icon: "alert-triangle",
|
|
398
405
|
color: "orange"
|
|
@@ -411,51 +418,56 @@ const F = A.exports, q = {
|
|
|
411
418
|
icon: "moon",
|
|
412
419
|
color: "gray"
|
|
413
420
|
})
|
|
414
|
-
}[s]
|
|
421
|
+
}, g = (v = this.colors) == null ? void 0 : v[s];
|
|
422
|
+
return {
|
|
423
|
+
...C[s](),
|
|
424
|
+
...g && { color: g }
|
|
425
|
+
};
|
|
415
426
|
}
|
|
416
427
|
}
|
|
417
428
|
};
|
|
418
|
-
var
|
|
429
|
+
var G = function() {
|
|
419
430
|
var t = this, e = t._self._c;
|
|
420
|
-
return e("div", [
|
|
421
|
-
return e("EventItem", { key: r, attrs: { title: n.title, content: n.content, createdAt: n.createdAt, icon: n.icon, color: n.color, "is-future": n.isFuture, size:
|
|
431
|
+
return e("div", [t._t("header"), t._l(t.events, function(n, r) {
|
|
432
|
+
return e("EventItem", { key: r, attrs: { title: n.title, content: n.content, createdAt: n.createdAt, icon: n.icon, color: n.color, "is-future": n.isFuture, size: t.size } });
|
|
422
433
|
})], 2);
|
|
423
|
-
},
|
|
424
|
-
R,
|
|
425
|
-
L,
|
|
434
|
+
}, V = [], K = /* @__PURE__ */ u(
|
|
426
435
|
P,
|
|
436
|
+
G,
|
|
437
|
+
V,
|
|
427
438
|
!1,
|
|
428
439
|
null,
|
|
429
440
|
null,
|
|
430
441
|
null,
|
|
431
442
|
null
|
|
432
443
|
);
|
|
433
|
-
const
|
|
444
|
+
const U = K.exports, H = {
|
|
434
445
|
name: "DocTimeline",
|
|
435
446
|
components: {
|
|
436
|
-
|
|
447
|
+
StatusBadge: B,
|
|
448
|
+
DocumentTimeline: U
|
|
437
449
|
},
|
|
438
450
|
props: {
|
|
439
|
-
|
|
440
|
-
type:
|
|
451
|
+
document: {
|
|
452
|
+
type: Object,
|
|
441
453
|
required: !0
|
|
442
454
|
}
|
|
443
455
|
}
|
|
444
456
|
};
|
|
445
|
-
var
|
|
457
|
+
var J = function() {
|
|
446
458
|
var t = this, e = t._self._c;
|
|
447
|
-
return e("div", { staticClass: "p-8" }, [e("DocumentTimeline", { attrs: {
|
|
448
|
-
},
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
459
|
+
return e("div", { staticClass: "p-8" }, [e("DocumentTimeline", { attrs: { document: t.document, size: "large" } }, [e("div", { staticClass: "border-b mb-4 pb-4", attrs: { slot: "header" }, slot: "header" }, [e("div", { staticClass: "mb-2" }, [e("div", { staticClass: "text-xs text-gray-600", domProps: { textContent: t._s(t.$t("_common:document").capitalize()) } }), e("div", { staticClass: "font-semibold text-lg" }, [t._v(t._s(t.document.name))])]), e("div", { staticClass: "inline-flex items-center -ml-2" }, [e("div", { staticClass: "text-xs text-gray-600 mr-1.5 py-1 pl-2", domProps: { textContent: t._s(t.$t("_common:status.status")) } }), e("StatusBadge", { attrs: { status: t.document.status } })], 1)])])], 1);
|
|
460
|
+
}, Q = [], W = /* @__PURE__ */ u(
|
|
461
|
+
H,
|
|
462
|
+
J,
|
|
463
|
+
Q,
|
|
452
464
|
!1,
|
|
453
465
|
null,
|
|
454
466
|
null,
|
|
455
467
|
null,
|
|
456
468
|
null
|
|
457
469
|
);
|
|
458
|
-
const
|
|
470
|
+
const Y = W.exports;
|
|
459
471
|
export {
|
|
460
|
-
|
|
472
|
+
Y as default
|
|
461
473
|
};
|