@wssto2/vue-core 0.14.0 → 0.15.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/CHANGELOG.md +21 -0
- package/README.md +2 -2
- package/bin/architecture/engine.mjs +11 -1
- package/bin/architecture/rules.mjs +95 -0
- package/bin/commands/check-architecture.mjs +8 -1
- package/bin/config.mjs +2 -0
- package/dist/{AccessGate.vue_vue_type_script_setup_true_lang-DEzXovsY.js → AccessGate.vue_vue_type_script_setup_true_lang-BH3f0hda.js} +1 -1
- package/dist/{Activity-C0HUEDUz.js → Activity-MOAIv6s4.js} +3 -3
- package/dist/{Changes-CSaHgVuz.js → Changes-Bu7D0dhY.js} +2 -2
- package/dist/{CollectionPage.vue_vue_type_script_setup_true_lang-dIrdS_Gn.js → CollectionPage.vue_vue_type_script_setup_true_lang-D5HsYIck.js} +2 -2
- package/dist/{DeadLetters-CHX4Ypgy.js → DeadLetters-DsujMnLG.js} +4 -4
- package/dist/FormGroup.vue_vue_type_script_setup_true_lang-CTVuhEbW.js +428 -0
- package/dist/{FormView.vue_vue_type_script_setup_true_lang-DvbPEiNQ.js → FormView.vue_vue_type_script_setup_true_lang-Cfvh7rF6.js} +1 -1
- package/dist/{General-v_24-zZw.js → General-Dswj1oXt.js} +6 -6
- package/dist/{IncidentRecord-BwSBNE37.js → IncidentRecord-DcmqpziF.js} +7 -7
- package/dist/{IncidentsList-BqzRU5cZ.js → IncidentsList-BRNqHZdU.js} +3 -3
- package/dist/{NewRolePage-Dt0O0VSI.js → NewRolePage-dFLznJGH.js} +2 -2
- package/dist/{PersonAccess.vue_vue_type_script_setup_true_lang-CWCt9_dM.js → PersonAccess.vue_vue_type_script_setup_true_lang-D3yp43o5.js} +4 -4
- package/dist/{ProfilePage-DApTxq8C.js → ProfilePage-BnHR3xGB.js} +8 -8
- package/dist/{RoleEditor.vue_vue_type_script_setup_true_lang-d_aaeXTT.js → RoleEditor.vue_vue_type_script_setup_true_lang-DNF9wzE9.js} +4 -4
- package/dist/{RolePage-noy-wmNc.js → RolePage-BtM2rFLm.js} +5 -5
- package/dist/{RolesPage-NRRainCw.js → RolesPage-MO1gAfdT.js} +3 -3
- package/dist/{SectionNavigator.vue_vue_type_script_setup_true_lang-D_08MS1-.js → SectionNavigator.vue_vue_type_script_setup_true_lang-TMdsmYAg.js} +1 -1
- package/dist/ServiceAccountDialog.vue_vue_type_script_setup_true_lang-Bo3phlqB.js +127 -0
- package/dist/{ServiceAccountRecord-D_HduQoK.js → ServiceAccountRecord-C1M-dcju.js} +6 -6
- package/dist/{ServiceAccountsList-CdSsqTGt.js → ServiceAccountsList-zfyS2WJB.js} +4 -4
- package/dist/{Sessions-CTjzMfNg.js → Sessions-BYBUSqHI.js} +3 -3
- package/dist/{SettingsPage-CpqASf_D.js → SettingsPage-C9Kp2ddX.js} +5 -5
- package/dist/{SignIn-D6tWsKf0.js → SignIn-HBYLSZ1M.js} +4 -4
- package/dist/{SignInPage-BCNGI871.js → SignInPage-CEoz3fWE.js} +3 -3
- package/dist/{SignIns-BxGGA99u.js → SignIns-BAz7V4vy.js} +2 -2
- package/dist/{UserRecord-B0kG0-Tm.js → UserRecord-DkyhGma-.js} +8 -8
- package/dist/{UsersList-KMgImERy.js → UsersList-CsW-jU0m.js} +3 -3
- package/dist/access/RestrictedPanel.vue.d.ts +20 -0
- package/dist/access/index.d.ts +1 -0
- package/dist/access/index.js +91 -31
- package/dist/app/application.d.ts +2 -2
- package/dist/app/current.d.ts +6 -0
- package/dist/app/index.d.ts +1 -1
- package/dist/app/index.js +17 -16
- package/dist/{application-CrXtiGdw.js → application-2gHiwAVy.js} +5 -5
- package/dist/client/client.d.ts +6 -0
- package/dist/client/index.js +1 -1
- package/dist/client-Do8v1I5l.js +193 -0
- package/dist/collection/index.js +4 -4
- package/dist/config/index.d.ts +21 -1
- package/dist/content/StatSummary.vue.d.ts +40 -0
- package/dist/content/index.d.ts +1 -0
- package/dist/content/index.js +245 -176
- package/dist/{contributions-obnyn03x.js → contributions-9CPT-Z5v.js} +1 -1
- package/dist/{current-B0lHKTWr.js → current-CslcEPXp.js} +8 -4
- package/dist/eslint/index.js +2 -2
- package/dist/form/index.js +8 -8
- package/dist/form/useForm.d.ts +1 -1
- package/dist/{guards-DGcSfTEh.js → guards-6fJxfUtk.js} +1 -1
- package/dist/{http-DOEfFCDA.js → http-D6qOS6xs.js} +1 -1
- package/dist/i18n/index.d.ts +5 -1
- package/dist/i18n/index.js +14 -13
- package/dist/i18n/serverMessages.d.ts +15 -1
- package/dist/identity/index.js +2 -2
- package/dist/incidents/index.js +1 -1
- package/dist/{index-D-2NNye6.js → index--AF_DNhE.js} +20 -20
- package/dist/{index-DNeIZpXo.js → index-DYva-K_4.js} +4 -4
- package/dist/{index-Crz-j_Hu.js → index-Dlu-PA4W.js} +105 -105
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/{navigation-CctcxT51.js → navigation-DMJ6akat.js} +1 -1
- package/dist/{neighbors-Csfan8Ho.js → neighbors-DrEahe7B.js} +1 -1
- package/dist/notifications/index.js +1 -1
- package/dist/onboarding/index.js +1 -1
- package/dist/page/index.js +1 -1
- package/dist/phone/index.d.ts +1 -1
- package/dist/phone/index.js +153 -141
- package/dist/phone/phone.d.ts +6 -0
- package/dist/platform/index.js +3 -3
- package/dist/{platform-DtISOEt7.js → platform-ORzRR3Tw.js} +1 -1
- package/dist/resource/index.js +1 -1
- package/dist/router/index.js +3 -3
- package/dist/{sections-fkW_IJLc.js → sections-DI_JhgQG.js} +1 -1
- package/dist/serverMessages-Ce8-MK4e.js +30 -0
- package/dist/shell/index.js +4 -4
- package/dist/{state-CXMexi0l.js → state-QDaxntgR.js} +1 -1
- package/dist/styles.css +1 -1
- package/dist/testing/index.js +2 -2
- package/dist/{useCommand-Ch_nx1AQ.js → useCommand-BvcU3AlW.js} +1 -1
- package/dist/{useGroupSheet-CPjHydQV.js → useGroupSheet-BGIntPKD.js} +1 -1
- package/dist/{usePreferences-B8LIZp_f.js → usePreferences-BfMXVbSO.js} +1 -1
- package/dist/{useRecordDialog-DdkauXnU.js → useRecordDialog-q_BNXdb7.js} +1 -1
- package/dist/{useResourceForm-Dl6YFYyz.js → useResourceForm-C1S628UI.js} +1 -1
- package/package.json +1 -1
- package/dist/FormGroup.vue_vue_type_script_setup_true_lang-D6jYfNjW.js +0 -427
- package/dist/ServiceAccountDialog.vue_vue_type_script_setup_true_lang-DDcaju7L.js +0 -127
- package/dist/client-Dg303Pmc.js +0 -193
- package/dist/serverMessages-DnTqVS3h.js +0 -25
package/dist/content/index.js
CHANGED
|
@@ -1,116 +1,116 @@
|
|
|
1
|
-
import { defineComponent as w, computed as
|
|
2
|
-
import { u as
|
|
3
|
-
import { _ as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { i as
|
|
6
|
-
import { useI18n as
|
|
7
|
-
import { _ as
|
|
8
|
-
import { _ as
|
|
9
|
-
import { _ as
|
|
10
|
-
const
|
|
1
|
+
import { defineComponent as w, computed as h, openBlock as t, createElementBlock as o, Fragment as S, renderList as M, toDisplayString as b, createCommentVNode as v, createElementVNode as u, normalizeClass as y, createVNode as U, unref as g, renderSlot as k, createTextVNode as V, createBlock as $, useModel as K, useId as N, useTemplateRef as R, watch as I, nextTick as Z, withModifiers as G, withDirectives as H, vModelText as O, mergeModels as D, ref as A, withCtx as z, createSlots as P, resolveDynamicComponent as q, normalizeStyle as E } from "vue";
|
|
2
|
+
import { u as L, t as J } from "../format-Cp1h0vsC.js";
|
|
3
|
+
import { _ as C } from "../Icon.vue_vue_type_script_lang-BhhsFYwp.js";
|
|
4
|
+
import { _ as Q } from "../Avatar.vue_vue_type_script_setup_true_lang-BPj_fkJR.js";
|
|
5
|
+
import { i as Ne } from "../Avatar.vue_vue_type_script_setup_true_lang-BPj_fkJR.js";
|
|
6
|
+
import { useI18n as j } from "vue-i18n";
|
|
7
|
+
import { _ as W } from "../KeyValue.vue_vue_type_script_setup_true_lang-wcZcvnow.js";
|
|
8
|
+
import { _ as Ie } from "../Panel.vue_vue_type_script_setup_true_lang-D_Wg42hu.js";
|
|
9
|
+
import { _ as Ge } from "../Timestamp.vue_vue_type_script_setup_true_lang-jCXYFLtq.js";
|
|
10
|
+
const X = ["aria-label"], Y = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "py-1.5 text-center text-caption font-semibold text-content-muted",
|
|
13
13
|
"data-test": "activity-day"
|
|
14
|
-
},
|
|
14
|
+
}, ee = { class: "flex min-w-0 flex-col gap-3.5 compact:gap-3" }, te = {
|
|
15
15
|
key: 0,
|
|
16
16
|
"data-test": "activity-event",
|
|
17
17
|
class: "flex min-w-0 items-center gap-2.5 py-0.5 compact:items-start"
|
|
18
|
-
},
|
|
18
|
+
}, se = { class: "flex min-w-0 flex-1 items-center gap-3 compact:flex-col compact:items-start compact:gap-1" }, ae = { class: "flex min-w-0 flex-1 flex-wrap items-center gap-x-1.5 gap-y-1 text-subheadline text-content-strong" }, oe = { class: "shrink-0 text-footnote text-content-muted" }, ne = ["data-mine"], le = /* @__PURE__ */ w({
|
|
19
19
|
__name: "ActivityStream",
|
|
20
20
|
props: {
|
|
21
21
|
items: {},
|
|
22
22
|
label: { default: void 0 }
|
|
23
23
|
},
|
|
24
|
-
setup(
|
|
25
|
-
const
|
|
24
|
+
setup(m) {
|
|
25
|
+
const n = m, a = L(), r = {
|
|
26
26
|
neutral: "bg-status-neutral-surface text-status-neutral-content",
|
|
27
27
|
info: "bg-status-info-surface text-status-info-content",
|
|
28
28
|
warning: "bg-status-warning-surface text-status-warning-content",
|
|
29
29
|
critical: "bg-status-danger-surface text-status-danger-content",
|
|
30
30
|
positive: "bg-status-success-surface text-status-success-content"
|
|
31
|
-
},
|
|
32
|
-
const
|
|
33
|
-
for (const
|
|
34
|
-
const
|
|
35
|
-
|
|
31
|
+
}, p = (e) => J(e.at)?.getTime() ?? 0, l = h(() => {
|
|
32
|
+
const e = n.items.map((c, s) => ({ item: c, index: s })).sort((c, s) => p(c.item) - p(s.item) || c.index - s.index).map(({ item: c }) => c), f = [];
|
|
33
|
+
for (const c of e) {
|
|
34
|
+
const s = p(c) > 0 ? new Date(c.at).toDateString() : "", B = f[f.length - 1];
|
|
35
|
+
B && B.key === s ? B.items.push(c) : f.push({ key: s, label: a.day(c.at), items: [c] });
|
|
36
36
|
}
|
|
37
|
-
return
|
|
38
|
-
}),
|
|
39
|
-
return (
|
|
37
|
+
return f;
|
|
38
|
+
}), x = (e, f) => [e, a.time(f)].filter(Boolean).join(" · "), d = (e) => e, i = (e) => e;
|
|
39
|
+
return (e, f) => (t(), o("div", {
|
|
40
40
|
"data-test": "activity-stream",
|
|
41
41
|
class: "flex min-w-0 flex-col gap-3.5 compact:gap-3",
|
|
42
|
-
"aria-label":
|
|
42
|
+
"aria-label": n.label,
|
|
43
43
|
role: "group"
|
|
44
44
|
}, [
|
|
45
|
-
(t(!0),
|
|
46
|
-
key:
|
|
45
|
+
(t(!0), o(S, null, M(l.value, (c) => (t(), o("section", {
|
|
46
|
+
key: c.key,
|
|
47
47
|
class: "flex min-w-0 flex-col gap-3.5 compact:gap-3"
|
|
48
48
|
}, [
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
(t(!0),
|
|
52
|
-
key: `${
|
|
49
|
+
c.label ? (t(), o("h4", Y, b(c.label), 1)) : v("", !0),
|
|
50
|
+
u("ol", ee, [
|
|
51
|
+
(t(!0), o(S, null, M(c.items, (s) => (t(), o("li", {
|
|
52
|
+
key: `${s.kind}-${s.id}`,
|
|
53
53
|
class: "min-w-0"
|
|
54
54
|
}, [
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
s.kind === "event" ? (t(), o("div", te, [
|
|
56
|
+
u("span", {
|
|
57
57
|
"aria-hidden": "true",
|
|
58
|
-
class:
|
|
58
|
+
class: y(["flex size-7 shrink-0 items-center justify-center rounded-full", r[d(s).tone ?? "neutral"]])
|
|
59
59
|
}, [
|
|
60
|
-
|
|
61
|
-
name:
|
|
60
|
+
U(g(C), {
|
|
61
|
+
name: d(s).icon,
|
|
62
62
|
size: 14
|
|
63
63
|
}, null, 8, ["name"])
|
|
64
64
|
], 2),
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
item:
|
|
65
|
+
u("div", se, [
|
|
66
|
+
u("div", ae, [
|
|
67
|
+
k(e.$slots, "event", {
|
|
68
|
+
item: d(s)
|
|
69
69
|
}, () => [
|
|
70
|
-
|
|
70
|
+
V(b(d(s).text), 1)
|
|
71
71
|
])
|
|
72
72
|
]),
|
|
73
|
-
|
|
73
|
+
u("span", oe, b(x(d(s).actor, s.at)), 1)
|
|
74
74
|
])
|
|
75
|
-
])) : (t(),
|
|
75
|
+
])) : (t(), o("div", {
|
|
76
76
|
key: 1,
|
|
77
77
|
"data-test": "activity-comment",
|
|
78
|
-
"data-mine":
|
|
79
|
-
class:
|
|
78
|
+
"data-mine": i(s).mine ? "true" : void 0,
|
|
79
|
+
class: y(["flex min-w-0 items-end gap-2", i(s).mine ? "justify-end" : ""])
|
|
80
80
|
}, [
|
|
81
|
-
|
|
81
|
+
i(s).mine ? v("", !0) : (t(), $(Q, {
|
|
82
82
|
key: 0,
|
|
83
|
-
src:
|
|
84
|
-
name:
|
|
83
|
+
src: i(s).avatarUrl,
|
|
84
|
+
name: i(s).author,
|
|
85
85
|
size: "md"
|
|
86
86
|
}, null, 8, ["src", "name"])),
|
|
87
|
-
|
|
88
|
-
class:
|
|
87
|
+
u("div", {
|
|
88
|
+
class: y(["flex max-w-[78%] min-w-0 flex-col gap-1", i(s).mine ? "items-end" : "items-start"])
|
|
89
89
|
}, [
|
|
90
|
-
|
|
91
|
-
class:
|
|
92
|
-
}, b(
|
|
93
|
-
|
|
94
|
-
class:
|
|
90
|
+
u("p", {
|
|
91
|
+
class: y(["rounded-2xl px-3.5 py-2 text-body break-words whitespace-pre-line text-content-strong", i(s).mine ? "rounded-br-md bg-surface-selected" : "rounded-bl-md bg-surface-cell shadow-group"])
|
|
92
|
+
}, b(i(s).body), 3),
|
|
93
|
+
u("span", {
|
|
94
|
+
class: y(["flex flex-wrap items-center gap-1.5 px-1 text-caption text-content-muted", i(s).mine ? "justify-end" : ""])
|
|
95
95
|
}, [
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
item:
|
|
96
|
+
V(b(x(i(s).author, s.at)) + " ", 1),
|
|
97
|
+
k(e.$slots, "comment-meta", {
|
|
98
|
+
item: i(s)
|
|
99
99
|
}),
|
|
100
|
-
|
|
101
|
-
item:
|
|
100
|
+
k(e.$slots, "comment-actions", {
|
|
101
|
+
item: i(s)
|
|
102
102
|
})
|
|
103
103
|
], 2)
|
|
104
104
|
], 2)
|
|
105
|
-
], 10,
|
|
105
|
+
], 10, ne))
|
|
106
106
|
]))), 128))
|
|
107
107
|
])
|
|
108
108
|
]))), 128))
|
|
109
|
-
], 8,
|
|
109
|
+
], 8, X));
|
|
110
110
|
}
|
|
111
|
-
}),
|
|
111
|
+
}), re = ["for"], ce = ["id", "maxlength", "placeholder", "disabled"], ie = ["disabled", "aria-label"], de = /* @__PURE__ */ w({
|
|
112
112
|
__name: "Composer",
|
|
113
|
-
props: /* @__PURE__ */
|
|
113
|
+
props: /* @__PURE__ */ D({
|
|
114
114
|
placeholder: { default: void 0 },
|
|
115
115
|
label: { default: void 0 },
|
|
116
116
|
maxLength: { default: 2e3 },
|
|
@@ -120,57 +120,57 @@ const W = ["aria-label"], X = {
|
|
|
120
120
|
modelValue: { default: "" },
|
|
121
121
|
modelModifiers: {}
|
|
122
122
|
}),
|
|
123
|
-
emits: /* @__PURE__ */
|
|
124
|
-
setup(
|
|
125
|
-
const
|
|
126
|
-
function
|
|
127
|
-
const
|
|
128
|
-
|
|
123
|
+
emits: /* @__PURE__ */ D(["submit"], ["update:modelValue"]),
|
|
124
|
+
setup(m, { expose: n, emit: a }) {
|
|
125
|
+
const r = m, p = a, l = K(m, "modelValue"), { t: x } = j(), d = N(), i = R("field"), e = h(() => r.placeholder ?? x("core.comments.placeholder")), f = h(() => !r.disabled && !r.processing && l.value.trim().length > 0);
|
|
126
|
+
function c() {
|
|
127
|
+
const _ = i.value;
|
|
128
|
+
_ && (_.style.height = "auto", _.style.height = `${Math.min(_.scrollHeight, 192)}px`);
|
|
129
129
|
}
|
|
130
|
-
|
|
131
|
-
function
|
|
132
|
-
|
|
130
|
+
I(l, () => Z(c));
|
|
131
|
+
function s() {
|
|
132
|
+
f.value && p("submit", l.value.trim());
|
|
133
133
|
}
|
|
134
|
-
function
|
|
135
|
-
|
|
134
|
+
function B(_) {
|
|
135
|
+
_.key === "Enter" && (_.metaKey || _.ctrlKey) && (_.preventDefault(), s());
|
|
136
136
|
}
|
|
137
|
-
return
|
|
137
|
+
return n({ focus: () => i.value?.focus() }), (_, T) => (t(), o("form", {
|
|
138
138
|
"data-test": "composer",
|
|
139
139
|
class: "flex items-end gap-2",
|
|
140
|
-
onSubmit:
|
|
140
|
+
onSubmit: G(s, ["prevent"])
|
|
141
141
|
}, [
|
|
142
|
-
|
|
143
|
-
for:
|
|
142
|
+
u("label", {
|
|
143
|
+
for: g(d),
|
|
144
144
|
class: "sr-only"
|
|
145
|
-
}, b(
|
|
146
|
-
|
|
147
|
-
id:
|
|
145
|
+
}, b(r.label ?? e.value), 9, re),
|
|
146
|
+
H(u("textarea", {
|
|
147
|
+
id: g(d),
|
|
148
148
|
ref_key: "field",
|
|
149
|
-
ref:
|
|
150
|
-
"onUpdate:modelValue":
|
|
149
|
+
ref: i,
|
|
150
|
+
"onUpdate:modelValue": T[0] || (T[0] = (F) => l.value = F),
|
|
151
151
|
rows: "1",
|
|
152
|
-
maxlength:
|
|
153
|
-
placeholder:
|
|
154
|
-
disabled:
|
|
152
|
+
maxlength: r.maxLength,
|
|
153
|
+
placeholder: e.value,
|
|
154
|
+
disabled: r.disabled,
|
|
155
155
|
"data-test": "composer-input",
|
|
156
156
|
class: "block max-h-48 min-h-10 min-w-0 flex-1 resize-none rounded-3xl border-0 bg-surface-cell px-3.5 py-2.5 text-body text-content-strong ring-1 ring-border-separator ring-inset placeholder:text-content-disabled focus:outline-2 focus:outline-offset-0 focus:outline-border-focus focus:ring-0 disabled:cursor-not-allowed disabled:bg-fill compact:min-h-[2.375rem] compact:py-2",
|
|
157
|
-
onKeydown:
|
|
158
|
-
}, null, 40,
|
|
159
|
-
[
|
|
157
|
+
onKeydown: B
|
|
158
|
+
}, null, 40, ce), [
|
|
159
|
+
[O, l.value]
|
|
160
160
|
]),
|
|
161
|
-
|
|
161
|
+
u("button", {
|
|
162
162
|
type: "submit",
|
|
163
163
|
"data-test": "composer-send",
|
|
164
|
-
disabled: !
|
|
165
|
-
"aria-label": x
|
|
166
|
-
class:
|
|
164
|
+
disabled: !f.value,
|
|
165
|
+
"aria-label": g(x)("core.comments.send"),
|
|
166
|
+
class: y(["hit-target relative mb-0.5 flex size-9 shrink-0 items-center justify-center rounded-full transition-colors duration-motion-fast focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-border-focus compact:size-[2.125rem]", f.value ? "cursor-pointer bg-tint text-content-on-tint hover:bg-tint/90" : "cursor-not-allowed bg-fill-strong text-surface-cell"])
|
|
167
167
|
}, [
|
|
168
|
-
|
|
168
|
+
r.processing ? (t(), $(g(C), {
|
|
169
169
|
key: 0,
|
|
170
170
|
name: "loader4Line",
|
|
171
171
|
size: 18,
|
|
172
172
|
class: "animate-spin"
|
|
173
|
-
})) : (t(),
|
|
173
|
+
})) : (t(), $(g(C), {
|
|
174
174
|
key: 1,
|
|
175
175
|
name: "arrowUpSLine",
|
|
176
176
|
size: 20
|
|
@@ -181,14 +181,14 @@ const W = ["aria-label"], X = {
|
|
|
181
181
|
}), ue = {
|
|
182
182
|
class: "flex min-w-0 flex-col gap-3",
|
|
183
183
|
"data-test": "comment-thread"
|
|
184
|
-
},
|
|
184
|
+
}, me = {
|
|
185
185
|
key: 0,
|
|
186
186
|
class: "px-1 text-subheadline font-semibold text-content-strong compact:text-footnote compact:font-normal compact:uppercase compact:tracking-wide compact:text-content-muted"
|
|
187
|
-
},
|
|
187
|
+
}, pe = {
|
|
188
188
|
key: 1,
|
|
189
189
|
class: "px-1 text-body text-content-muted",
|
|
190
190
|
"data-test": "comment-thread-empty"
|
|
191
|
-
},
|
|
191
|
+
}, fe = ["disabled", "aria-label", "title", "onClick"], Te = /* @__PURE__ */ w({
|
|
192
192
|
__name: "CommentThread",
|
|
193
193
|
props: {
|
|
194
194
|
comments: {},
|
|
@@ -201,130 +201,130 @@ const W = ["aria-label"], X = {
|
|
|
201
201
|
onAdd: { type: Function, default: void 0 }
|
|
202
202
|
},
|
|
203
203
|
emits: ["remove"],
|
|
204
|
-
setup(
|
|
205
|
-
const a =
|
|
206
|
-
() => a.comments.map((
|
|
204
|
+
setup(m, { emit: n }) {
|
|
205
|
+
const a = m, r = n, { t: p } = j(), l = A(""), x = A(!1), d = h(
|
|
206
|
+
() => a.comments.map((e) => ({
|
|
207
207
|
kind: "comment",
|
|
208
|
-
id:
|
|
209
|
-
at:
|
|
210
|
-
body:
|
|
211
|
-
author:
|
|
212
|
-
avatarUrl:
|
|
213
|
-
mine:
|
|
214
|
-
source:
|
|
208
|
+
id: e.id,
|
|
209
|
+
at: e.createdAt ?? null,
|
|
210
|
+
body: e.body,
|
|
211
|
+
author: e.author,
|
|
212
|
+
avatarUrl: e.avatarUrl,
|
|
213
|
+
mine: e.mine,
|
|
214
|
+
source: e
|
|
215
215
|
}))
|
|
216
216
|
);
|
|
217
|
-
async function
|
|
218
|
-
|
|
217
|
+
async function i(e) {
|
|
218
|
+
x.value = !0;
|
|
219
219
|
try {
|
|
220
|
-
await a.onAdd?.(
|
|
220
|
+
await a.onAdd?.(e) !== !1 && (l.value = "");
|
|
221
221
|
} finally {
|
|
222
|
-
|
|
222
|
+
x.value = !1;
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
|
-
return (
|
|
226
|
-
a.hideTitle ?
|
|
227
|
-
a.comments.length === 0 ? (t(),
|
|
225
|
+
return (e, f) => (t(), o("section", ue, [
|
|
226
|
+
a.hideTitle ? v("", !0) : (t(), o("h3", me, b(a.title ?? g(p)("core.comments.title")), 1)),
|
|
227
|
+
a.comments.length === 0 ? (t(), o("p", pe, b(g(p)("core.comments.none")), 1)) : (t(), $(le, {
|
|
228
228
|
key: 2,
|
|
229
|
-
items:
|
|
230
|
-
label: a.title ??
|
|
229
|
+
items: d.value,
|
|
230
|
+
label: a.title ?? g(p)("core.comments.title")
|
|
231
231
|
}, {
|
|
232
|
-
"comment-actions":
|
|
233
|
-
a.canRemove ? (t(),
|
|
232
|
+
"comment-actions": z(({ item: c }) => [
|
|
233
|
+
a.canRemove ? (t(), o("button", {
|
|
234
234
|
key: 0,
|
|
235
235
|
type: "button",
|
|
236
236
|
"data-test": "comment-remove",
|
|
237
237
|
class: "hit-target relative inline-flex size-5 cursor-pointer items-center justify-center rounded-full text-content-muted transition-colors duration-motion-fast hover:text-content-destructive focus-visible:outline-2 focus-visible:outline-border-focus disabled:cursor-not-allowed disabled:opacity-40",
|
|
238
238
|
disabled: a.disabled,
|
|
239
|
-
"aria-label":
|
|
240
|
-
title:
|
|
241
|
-
onClick: (
|
|
239
|
+
"aria-label": g(p)("core.comments.remove"),
|
|
240
|
+
title: g(p)("core.comments.remove"),
|
|
241
|
+
onClick: (s) => r("remove", c.source)
|
|
242
242
|
}, [
|
|
243
|
-
|
|
243
|
+
U(g(C), {
|
|
244
244
|
name: "deleteBin2Line",
|
|
245
245
|
size: 14
|
|
246
246
|
})
|
|
247
|
-
], 8,
|
|
247
|
+
], 8, fe)) : v("", !0)
|
|
248
248
|
]),
|
|
249
249
|
_: 1
|
|
250
250
|
}, 8, ["items", "label"])),
|
|
251
|
-
a.canAdd ? (t(),
|
|
251
|
+
a.canAdd ? (t(), $(de, {
|
|
252
252
|
key: 3,
|
|
253
253
|
modelValue: l.value,
|
|
254
|
-
"onUpdate:modelValue":
|
|
254
|
+
"onUpdate:modelValue": f[0] || (f[0] = (c) => l.value = c),
|
|
255
255
|
"max-length": a.maxLength,
|
|
256
256
|
disabled: a.disabled,
|
|
257
|
-
processing:
|
|
258
|
-
onSubmit:
|
|
259
|
-
}, null, 8, ["modelValue", "max-length", "disabled", "processing"])) :
|
|
257
|
+
processing: x.value,
|
|
258
|
+
onSubmit: i
|
|
259
|
+
}, null, 8, ["modelValue", "max-length", "disabled", "processing"])) : v("", !0)
|
|
260
260
|
]));
|
|
261
261
|
}
|
|
262
|
-
}),
|
|
262
|
+
}), be = {
|
|
263
263
|
role: "separator",
|
|
264
264
|
class: "my-2 flex items-center gap-4"
|
|
265
265
|
}, xe = {
|
|
266
266
|
key: 0,
|
|
267
267
|
class: "select-none whitespace-nowrap font-mono text-2xs uppercase tracking-widest text-content-muted"
|
|
268
|
-
},
|
|
268
|
+
}, De = /* @__PURE__ */ w({
|
|
269
269
|
__name: "Divider",
|
|
270
270
|
props: {
|
|
271
271
|
label: {}
|
|
272
272
|
},
|
|
273
|
-
setup(
|
|
274
|
-
return (
|
|
275
|
-
a[0] || (a[0] =
|
|
276
|
-
|
|
277
|
-
a[1] || (a[1] =
|
|
273
|
+
setup(m) {
|
|
274
|
+
return (n, a) => (t(), o("div", be, [
|
|
275
|
+
a[0] || (a[0] = u("span", { class: "h-px flex-1 bg-border-separator" }, null, -1)),
|
|
276
|
+
m.label ? (t(), o("span", xe, b(m.label), 1)) : v("", !0),
|
|
277
|
+
a[1] || (a[1] = u("span", { class: "h-px flex-1 bg-border-separator" }, null, -1))
|
|
278
278
|
]));
|
|
279
279
|
}
|
|
280
|
-
}),
|
|
280
|
+
}), Ae = /* @__PURE__ */ w({
|
|
281
281
|
__name: "KeyValueList",
|
|
282
282
|
props: {
|
|
283
283
|
items: {},
|
|
284
284
|
columns: { default: 1 }
|
|
285
285
|
},
|
|
286
|
-
setup(
|
|
287
|
-
const
|
|
286
|
+
setup(m) {
|
|
287
|
+
const n = m, a = {
|
|
288
288
|
1: "grid-cols-1",
|
|
289
289
|
2: "grid-cols-1 sm:grid-cols-2",
|
|
290
290
|
3: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-3"
|
|
291
291
|
};
|
|
292
|
-
return (
|
|
293
|
-
class:
|
|
292
|
+
return (r, p) => (t(), o("dl", {
|
|
293
|
+
class: y(["grid gap-x-6 gap-y-3", a[n.columns]])
|
|
294
294
|
}, [
|
|
295
|
-
(t(!0),
|
|
295
|
+
(t(!0), o(S, null, M(n.items, (l) => (t(), $(W, {
|
|
296
296
|
key: l.key,
|
|
297
297
|
label: l.label,
|
|
298
298
|
value: l.value,
|
|
299
299
|
"data-key": l.key
|
|
300
|
-
},
|
|
301
|
-
|
|
300
|
+
}, P({ _: 2 }, [
|
|
301
|
+
r.$slots.value ? {
|
|
302
302
|
name: "default",
|
|
303
|
-
fn:
|
|
304
|
-
|
|
303
|
+
fn: z(() => [
|
|
304
|
+
k(r.$slots, "value", { item: l })
|
|
305
305
|
]),
|
|
306
306
|
key: "0"
|
|
307
307
|
} : void 0
|
|
308
308
|
]), 1032, ["label", "value", "data-key"]))), 128))
|
|
309
309
|
], 2));
|
|
310
310
|
}
|
|
311
|
-
}),
|
|
311
|
+
}), Ee = /* @__PURE__ */ w({
|
|
312
312
|
__name: "MicroLabel",
|
|
313
313
|
props: {
|
|
314
314
|
as: { default: "span" }
|
|
315
315
|
},
|
|
316
|
-
setup(
|
|
317
|
-
return (
|
|
318
|
-
default:
|
|
319
|
-
|
|
316
|
+
setup(m) {
|
|
317
|
+
return (n, a) => (t(), $(q(m.as), { class: "text-2xs font-semibold uppercase tracking-[0.06em] text-content-muted" }, {
|
|
318
|
+
default: z(() => [
|
|
319
|
+
k(n.$slots, "default")
|
|
320
320
|
]),
|
|
321
321
|
_: 3
|
|
322
322
|
}));
|
|
323
323
|
}
|
|
324
|
-
}),
|
|
324
|
+
}), ge = {
|
|
325
325
|
key: 0,
|
|
326
326
|
class: "mr-0.5"
|
|
327
|
-
},
|
|
327
|
+
}, Ue = /* @__PURE__ */ w({
|
|
328
328
|
__name: "Money",
|
|
329
329
|
props: {
|
|
330
330
|
amount: {},
|
|
@@ -334,35 +334,104 @@ const W = ["aria-label"], X = {
|
|
|
334
334
|
emptyZero: { type: Boolean, default: !1 },
|
|
335
335
|
signed: { type: Boolean, default: !1 }
|
|
336
336
|
},
|
|
337
|
-
setup(
|
|
338
|
-
const
|
|
339
|
-
return (
|
|
340
|
-
class:
|
|
337
|
+
setup(m) {
|
|
338
|
+
const n = m, a = L(), r = h(() => typeof n.amount == "number" && Number.isFinite(n.amount) ? n.amount : 0), p = h(() => n.emptyZero && !r.value), l = h(() => !n.signed || !r.value || !Math.round(Math.abs(r.value) * 10 ** n.decimals) ? "" : r.value > 0 ? "+" : "−"), x = h(() => a.money(n.signed ? Math.abs(r.value) : r.value, { decimals: n.decimals, whole: n.whole, symbol: !1 })), d = h(() => l.value === "+" ? "font-medium text-status-success-content" : l.value === "−" ? "font-medium text-status-danger-content" : ""), i = h(() => n.symbol ? a.currencySymbol : "");
|
|
339
|
+
return (e, f) => (t(), o("span", {
|
|
340
|
+
class: y(["whitespace-nowrap tabular-nums", d.value])
|
|
341
341
|
}, [
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
], 64)) : (t(),
|
|
345
|
-
l.value ? (t(),
|
|
346
|
-
|
|
347
|
-
|
|
342
|
+
p.value ? (t(), o(S, { key: 0 }, [
|
|
343
|
+
V("—")
|
|
344
|
+
], 64)) : (t(), o(S, { key: 1 }, [
|
|
345
|
+
l.value ? (t(), o("span", ge, b(l.value), 1)) : v("", !0),
|
|
346
|
+
V(b(x.value), 1),
|
|
347
|
+
i.value ? (t(), o("span", {
|
|
348
348
|
key: 1,
|
|
349
|
-
class:
|
|
350
|
-
}, b(
|
|
349
|
+
class: y(["ml-1 font-normal", d.value ? "opacity-75" : "text-content-muted"])
|
|
350
|
+
}, b(i.value), 3)) : v("", !0)
|
|
351
351
|
], 64))
|
|
352
352
|
], 2));
|
|
353
353
|
}
|
|
354
|
+
}), ye = {
|
|
355
|
+
key: 0,
|
|
356
|
+
class: "flex min-w-0 flex-wrap items-center gap-x-3 gap-y-1 border-b border-border-separator px-row-inset py-2.5 text-subheadline"
|
|
357
|
+
}, he = { class: "-mt-px -ml-px grid grid-cols-[repeat(var(--stat-columns),minmax(0,1fr))] compact:grid-cols-[repeat(var(--stat-compact-columns),minmax(0,1fr))]" }, ve = ["data-stat"], _e = { class: "truncate text-footnote text-content-muted" }, we = {
|
|
358
|
+
key: 0,
|
|
359
|
+
class: "flex items-center gap-2"
|
|
360
|
+
}, ke = { class: "h-1 flex-1 overflow-hidden rounded-full bg-fill" }, $e = { class: "text-caption tabular-nums text-content-muted" }, Se = {
|
|
361
|
+
key: 1,
|
|
362
|
+
class: "flex min-w-0 items-center gap-3 border-t border-border-separator px-row-inset py-2.5 text-subheadline"
|
|
363
|
+
}, je = /* @__PURE__ */ w({
|
|
364
|
+
__name: "StatSummary",
|
|
365
|
+
props: {
|
|
366
|
+
items: {},
|
|
367
|
+
compactColumns: { default: 2 }
|
|
368
|
+
},
|
|
369
|
+
setup(m) {
|
|
370
|
+
const n = L(), a = m, r = {
|
|
371
|
+
neutral: "text-content-strong",
|
|
372
|
+
muted: "text-content-muted",
|
|
373
|
+
info: "text-status-info-content",
|
|
374
|
+
success: "text-status-success-content",
|
|
375
|
+
warning: "text-status-warning-content",
|
|
376
|
+
danger: "text-status-danger-content"
|
|
377
|
+
}, p = {
|
|
378
|
+
neutral: "bg-content-muted",
|
|
379
|
+
muted: "bg-content-disabled",
|
|
380
|
+
info: "bg-status-info-content",
|
|
381
|
+
success: "bg-status-success-content",
|
|
382
|
+
warning: "bg-status-warning-content",
|
|
383
|
+
danger: "bg-status-danger-content"
|
|
384
|
+
}, l = (d) => Math.min(100, Math.max(0, d)), x = h(() => ({
|
|
385
|
+
"--stat-columns": String(a.items.length),
|
|
386
|
+
"--stat-compact-columns": String(a.compactColumns)
|
|
387
|
+
}));
|
|
388
|
+
return (d, i) => (t(), o("section", {
|
|
389
|
+
"data-test": "stat-summary",
|
|
390
|
+
class: "overflow-hidden rounded-group bg-surface-cell shadow-group",
|
|
391
|
+
style: E(x.value)
|
|
392
|
+
}, [
|
|
393
|
+
d.$slots.header ? (t(), o("div", ye, [
|
|
394
|
+
k(d.$slots, "header")
|
|
395
|
+
])) : v("", !0),
|
|
396
|
+
u("dl", he, [
|
|
397
|
+
(t(!0), o(S, null, M(a.items, (e) => (t(), o("div", {
|
|
398
|
+
key: e.key,
|
|
399
|
+
"data-stat": e.key,
|
|
400
|
+
class: y(["flex min-w-0 flex-col gap-1.5 border-t border-l border-border-separator px-row-inset py-3", e.compact === !1 ? "compact:hidden" : ""])
|
|
401
|
+
}, [
|
|
402
|
+
u("dt", _e, b(e.label), 1),
|
|
403
|
+
u("dd", {
|
|
404
|
+
class: y(["text-title leading-none font-semibold tracking-tight tabular-nums", r[e.tone ?? "neutral"]])
|
|
405
|
+
}, b(g(n).number(e.value, { maximumFractionDigits: 0 })), 3),
|
|
406
|
+
e.share != null ? (t(), o("dd", we, [
|
|
407
|
+
u("span", ke, [
|
|
408
|
+
u("span", {
|
|
409
|
+
class: y(["block h-full rounded-full", p[e.tone ?? "neutral"]]),
|
|
410
|
+
style: E({ width: `${l(e.share)}%` })
|
|
411
|
+
}, null, 6)
|
|
412
|
+
]),
|
|
413
|
+
u("span", $e, b(Math.round(l(e.share))) + " %", 1)
|
|
414
|
+
])) : v("", !0)
|
|
415
|
+
], 10, ve))), 128))
|
|
416
|
+
]),
|
|
417
|
+
d.$slots.footer ? (t(), o("div", Se, [
|
|
418
|
+
k(d.$slots, "footer")
|
|
419
|
+
])) : v("", !0)
|
|
420
|
+
], 4));
|
|
421
|
+
}
|
|
354
422
|
});
|
|
355
423
|
export {
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
424
|
+
le as ActivityStream,
|
|
425
|
+
Q as Avatar,
|
|
426
|
+
Te as CommentThread,
|
|
427
|
+
de as Composer,
|
|
428
|
+
De as Divider,
|
|
429
|
+
W as KeyValue,
|
|
430
|
+
Ae as KeyValueList,
|
|
431
|
+
Ee as MicroLabel,
|
|
432
|
+
Ue as Money,
|
|
433
|
+
Ie as Panel,
|
|
434
|
+
je as StatSummary,
|
|
435
|
+
Ge as Timestamp,
|
|
436
|
+
Ne as initialsFor
|
|
368
437
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as i, h as l } from "vue";
|
|
2
2
|
import { d as u } from "./context-Ch1r4fdN.js";
|
|
3
|
-
import { h as a } from "./platform-
|
|
3
|
+
import { h as a } from "./platform-ORzRR3Tw.js";
|
|
4
4
|
function h(o, n) {
|
|
5
5
|
const t = o.map(({ contribution: e }) => e).sort((e, r) => (e.order ?? 0) - (r.order ?? 0));
|
|
6
6
|
return {
|