@wssto2/vue-core 0.13.1 → 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.
Files changed (113) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/README.md +2 -2
  3. package/bin/architecture/engine.mjs +11 -1
  4. package/bin/architecture/rules.mjs +95 -0
  5. package/bin/commands/check-architecture.mjs +8 -1
  6. package/bin/config.mjs +2 -0
  7. package/dist/{AccessGate.vue_vue_type_script_setup_true_lang-DEzXovsY.js → AccessGate.vue_vue_type_script_setup_true_lang-BH3f0hda.js} +1 -1
  8. package/dist/{Activity-ChfxdvXf.js → Activity-MOAIv6s4.js} +5 -5
  9. package/dist/{AdaptivePageShell.vue_vue_type_script_setup_true_lang-lPj9hPqV.js → AdaptivePageShell.vue_vue_type_script_setup_true_lang-Bsv5j5Z8.js} +1 -1
  10. package/dist/{Changes-BCa43_mO.js → Changes-Bu7D0dhY.js} +2 -2
  11. package/dist/{CollectionPage.vue_vue_type_script_setup_true_lang-C1GCvyZx.js → CollectionPage.vue_vue_type_script_setup_true_lang-D5HsYIck.js} +6 -6
  12. package/dist/{DataTable.vue_vue_type_script_setup_true_lang-B9r9M5Gt.js → DataTable.vue_vue_type_script_setup_true_lang-J3PhyJAS.js} +1 -1
  13. package/dist/{DateField.vue_vue_type_script_setup_true_lang-B5UUY1OO.js → DateField.vue_vue_type_script_setup_true_lang-CKKG4JEg.js} +2 -2
  14. package/dist/{DeadLetters-wFTqhISU.js → DeadLetters-DsujMnLG.js} +5 -5
  15. package/dist/FormGroup.vue_vue_type_script_setup_true_lang-CTVuhEbW.js +428 -0
  16. package/dist/{FormView.vue_vue_type_script_setup_true_lang-DvbPEiNQ.js → FormView.vue_vue_type_script_setup_true_lang-Cfvh7rF6.js} +1 -1
  17. package/dist/{General-jW7u4MjH.js → General-Dswj1oXt.js} +7 -7
  18. package/dist/IncidentRecord-DcmqpziF.js +522 -0
  19. package/dist/{IncidentsList-yu0xSMrH.js → IncidentsList-BRNqHZdU.js} +6 -6
  20. package/dist/{NewRolePage-CQ5UVaHs.js → NewRolePage-dFLznJGH.js} +3 -3
  21. package/dist/{NumberField.vue_vue_type_script_setup_true_lang-YVgf5CP6.js → NumberField.vue_vue_type_script_setup_true_lang-U-_kcnGr.js} +1 -1
  22. 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
  23. package/dist/{ProfilePage-Ca3x3UAH.js → ProfilePage-BnHR3xGB.js} +10 -10
  24. package/dist/{RecordHeader.vue_vue_type_script_setup_true_lang-Do_ATJwT.js → RecordHeader.vue_vue_type_script_setup_true_lang-SDgLjwEI.js} +1 -1
  25. package/dist/{ResourcePage.vue_vue_type_script_setup_true_lang-Coz91xht.js → ResourcePage.vue_vue_type_script_setup_true_lang-DRC3h71-.js} +1 -1
  26. 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
  27. package/dist/{RolePage-BUj1w1m1.js → RolePage-BtM2rFLm.js} +7 -7
  28. package/dist/{RolesPage-NKzBUsrM.js → RolesPage-MO1gAfdT.js} +4 -4
  29. package/dist/{SectionNavigator.vue_vue_type_script_setup_true_lang-DfKEhTFv.js → SectionNavigator.vue_vue_type_script_setup_true_lang-TMdsmYAg.js} +2 -2
  30. package/dist/ServiceAccountDialog.vue_vue_type_script_setup_true_lang-Bo3phlqB.js +127 -0
  31. package/dist/{ServiceAccountRecord-ClbyeLhL.js → ServiceAccountRecord-C1M-dcju.js} +10 -10
  32. package/dist/{ServiceAccountsList-B2VDnYxD.js → ServiceAccountsList-zfyS2WJB.js} +6 -6
  33. package/dist/{Sessions-BjkciyHH.js → Sessions-BYBUSqHI.js} +3 -3
  34. package/dist/{SettingsPage-Csb14qsx.js → SettingsPage-C9Kp2ddX.js} +9 -9
  35. package/dist/{SignIn-DPFMv4C7.js → SignIn-HBYLSZ1M.js} +5 -5
  36. package/dist/{SignInPage-DukoFqkt.js → SignInPage-CEoz3fWE.js} +3 -3
  37. package/dist/{SignIns-DvdpNkiS.js → SignIns-BAz7V4vy.js} +2 -2
  38. package/dist/{TimeField.vue_vue_type_script_setup_true_lang-DpDXHH7u.js → TimeField.vue_vue_type_script_setup_true_lang-BDlTAMsh.js} +2 -2
  39. package/dist/{Timestamp.vue_vue_type_script_setup_true_lang-DlEUKWra.js → Timestamp.vue_vue_type_script_setup_true_lang-jCXYFLtq.js} +1 -1
  40. package/dist/{UserRecord-B9SeSWQh.js → UserRecord-DkyhGma-.js} +9 -9
  41. package/dist/{UsersList-CREG8q3l.js → UsersList-CsW-jU0m.js} +4 -4
  42. package/dist/access/RestrictedPanel.vue.d.ts +20 -0
  43. package/dist/access/index.d.ts +1 -0
  44. package/dist/access/index.js +91 -31
  45. package/dist/app/application.d.ts +2 -2
  46. package/dist/app/current.d.ts +6 -0
  47. package/dist/app/index.d.ts +1 -1
  48. package/dist/app/index.js +17 -16
  49. package/dist/{application-DomS6sbx.js → application-2gHiwAVy.js} +6 -6
  50. package/dist/client/client.d.ts +6 -0
  51. package/dist/client/index.js +1 -1
  52. package/dist/client-Do8v1I5l.js +193 -0
  53. package/dist/collection/index.js +6 -6
  54. package/dist/config/index.d.ts +21 -1
  55. package/dist/content/StatSummary.vue.d.ts +40 -0
  56. package/dist/content/index.d.ts +1 -0
  57. package/dist/content/index.js +245 -176
  58. package/dist/{contributions-obnyn03x.js → contributions-9CPT-Z5v.js} +1 -1
  59. package/dist/{current-B0lHKTWr.js → current-CslcEPXp.js} +8 -4
  60. package/dist/eslint/index.js +2 -2
  61. package/dist/form/index.js +16 -16
  62. package/dist/form/useForm.d.ts +1 -1
  63. package/dist/format/format.d.ts +5 -2
  64. package/dist/format/index.js +1 -1
  65. package/dist/format-Cp1h0vsC.js +125 -0
  66. package/dist/{guards-DGcSfTEh.js → guards-6fJxfUtk.js} +1 -1
  67. package/dist/{http-DOEfFCDA.js → http-D6qOS6xs.js} +1 -1
  68. package/dist/i18n/index.d.ts +5 -1
  69. package/dist/i18n/index.js +21 -20
  70. package/dist/i18n/serverMessages.d.ts +15 -1
  71. package/dist/identity/index.js +2 -2
  72. package/dist/incidents/Occurrences.vue.d.ts +9 -0
  73. package/dist/incidents/api.d.ts +11 -2
  74. package/dist/incidents/index.js +1 -1
  75. package/dist/{index-DZikGJ8L.js → index--AF_DNhE.js} +22 -22
  76. package/dist/{index-D_yyd4C2.js → index-DYva-K_4.js} +5 -5
  77. package/dist/{index-Be9Q1PB_.js → index-Dlu-PA4W.js} +104 -98
  78. package/dist/index.d.ts +1 -1
  79. package/dist/index.js +1 -1
  80. package/dist/modules/incident/entities.d.ts +19 -0
  81. package/dist/modules/incident/routes.d.ts +4 -1
  82. package/dist/{navigation-CctcxT51.js → navigation-DMJ6akat.js} +1 -1
  83. package/dist/{neighbors-Csfan8Ho.js → neighbors-DrEahe7B.js} +1 -1
  84. package/dist/notifications/index.js +1 -1
  85. package/dist/onboarding/index.js +1 -1
  86. package/dist/page/index.js +3 -3
  87. package/dist/phone/index.d.ts +1 -1
  88. package/dist/phone/index.js +154 -142
  89. package/dist/phone/phone.d.ts +6 -0
  90. package/dist/platform/index.js +3 -3
  91. package/dist/{platform-DtISOEt7.js → platform-ORzRR3Tw.js} +1 -1
  92. package/dist/resource/index.js +2 -2
  93. package/dist/router/index.js +3 -3
  94. package/dist/{rowLayout-y1IB_h2r.js → rowLayout-Ohh5ng1u.js} +2 -2
  95. package/dist/{sections-fkW_IJLc.js → sections-DI_JhgQG.js} +1 -1
  96. package/dist/serverMessages-Ce8-MK4e.js +30 -0
  97. package/dist/shell/index.js +4 -4
  98. package/dist/{state-CXMexi0l.js → state-QDaxntgR.js} +1 -1
  99. package/dist/styles.css +1 -1
  100. package/dist/testing/index.js +3 -3
  101. package/dist/{useCommand-Ch_nx1AQ.js → useCommand-BvcU3AlW.js} +1 -1
  102. package/dist/{useGroupSheet-CPjHydQV.js → useGroupSheet-BGIntPKD.js} +1 -1
  103. package/dist/{usePreferences-B8LIZp_f.js → usePreferences-BfMXVbSO.js} +1 -1
  104. package/dist/{useRecordDialog-DdkauXnU.js → useRecordDialog-q_BNXdb7.js} +1 -1
  105. package/dist/{useResourceForm-Dl6YFYyz.js → useResourceForm-C1S628UI.js} +1 -1
  106. package/dist/{useTypedEntry-DKs8I1yP.js → useTypedEntry-tttjrClq.js} +1 -1
  107. package/package.json +2 -2
  108. package/dist/FormGroup.vue_vue_type_script_setup_true_lang-D6jYfNjW.js +0 -427
  109. package/dist/IncidentRecord-zTemLz2R.js +0 -404
  110. package/dist/ServiceAccountDialog.vue_vue_type_script_setup_true_lang-4nbhEpv_.js +0 -127
  111. package/dist/client-Dg303Pmc.js +0 -193
  112. package/dist/format-DoKs29bZ.js +0 -118
  113. package/dist/serverMessages-Ddghrewh.js +0 -25
@@ -1,116 +1,116 @@
1
- import { defineComponent as w, computed as g, openBlock as t, createElementBlock as r, Fragment as V, renderList as z, toDisplayString as b, createCommentVNode as _, createElementVNode as f, normalizeClass as h, createVNode as A, unref as x, renderSlot as B, createTextVNode as M, createBlock as k, useModel as N, useId as U, useTemplateRef as F, watch as R, nextTick as I, withModifiers as Z, withDirectives as G, vModelText as H, mergeModels as T, ref as D, withCtx as C, createSlots as O, resolveDynamicComponent as P } from "vue";
2
- import { u as j, t as q } from "../format-DoKs29bZ.js";
3
- import { _ as S } from "../Icon.vue_vue_type_script_lang-BhhsFYwp.js";
4
- import { _ as J } from "../Avatar.vue_vue_type_script_setup_true_lang-BPj_fkJR.js";
5
- import { i as Ce } from "../Avatar.vue_vue_type_script_setup_true_lang-BPj_fkJR.js";
6
- import { useI18n as E } from "vue-i18n";
7
- import { _ as Q } from "../KeyValue.vue_vue_type_script_setup_true_lang-wcZcvnow.js";
8
- import { _ as Te } from "../Panel.vue_vue_type_script_setup_true_lang-D_Wg42hu.js";
9
- import { _ as Ae } from "../Timestamp.vue_vue_type_script_setup_true_lang-DlEUKWra.js";
10
- const W = ["aria-label"], X = {
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
- }, Y = { class: "flex min-w-0 flex-col gap-3.5 compact:gap-3" }, ee = {
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
- }, te = { class: "flex min-w-0 flex-1 items-center gap-3 compact:flex-col compact:items-start compact:gap-1" }, se = { class: "flex min-w-0 flex-1 flex-wrap items-center gap-x-1.5 gap-y-1 text-subheadline text-content-strong" }, ae = { class: "shrink-0 text-footnote text-content-muted" }, oe = ["data-mine"], ne = /* @__PURE__ */ w({
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(d) {
25
- const o = d, a = j(), i = {
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
- }, m = (s) => q(s.at)?.getTime() ?? 0, l = g(() => {
32
- const s = o.items.map((n, e) => ({ item: n, index: e })).sort((n, e) => m(n.item) - m(e.item) || n.index - e.index).map(({ item: n }) => n), u = [];
33
- for (const n of s) {
34
- const e = m(n) > 0 ? new Date(n.at).toDateString() : "", $ = u[u.length - 1];
35
- $ && $.key === e ? $.items.push(n) : u.push({ key: e, label: a.day(n.at), items: [n] });
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 u;
38
- }), y = (s, u) => [s, a.time(u)].filter(Boolean).join(" · "), p = (s) => s, c = (s) => s;
39
- return (s, u) => (t(), r("div", {
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": o.label,
42
+ "aria-label": n.label,
43
43
  role: "group"
44
44
  }, [
45
- (t(!0), r(V, null, z(l.value, (n) => (t(), r("section", {
46
- key: n.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
- n.label ? (t(), r("h4", X, b(n.label), 1)) : _("", !0),
50
- f("ol", Y, [
51
- (t(!0), r(V, null, z(n.items, (e) => (t(), r("li", {
52
- key: `${e.kind}-${e.id}`,
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
- e.kind === "event" ? (t(), r("div", ee, [
56
- f("span", {
55
+ s.kind === "event" ? (t(), o("div", te, [
56
+ u("span", {
57
57
  "aria-hidden": "true",
58
- class: h(["flex size-7 shrink-0 items-center justify-center rounded-full", i[p(e).tone ?? "neutral"]])
58
+ class: y(["flex size-7 shrink-0 items-center justify-center rounded-full", r[d(s).tone ?? "neutral"]])
59
59
  }, [
60
- A(x(S), {
61
- name: p(e).icon,
60
+ U(g(C), {
61
+ name: d(s).icon,
62
62
  size: 14
63
63
  }, null, 8, ["name"])
64
64
  ], 2),
65
- f("div", te, [
66
- f("div", se, [
67
- B(s.$slots, "event", {
68
- item: p(e)
65
+ u("div", se, [
66
+ u("div", ae, [
67
+ k(e.$slots, "event", {
68
+ item: d(s)
69
69
  }, () => [
70
- M(b(p(e).text), 1)
70
+ V(b(d(s).text), 1)
71
71
  ])
72
72
  ]),
73
- f("span", ae, b(y(p(e).actor, e.at)), 1)
73
+ u("span", oe, b(x(d(s).actor, s.at)), 1)
74
74
  ])
75
- ])) : (t(), r("div", {
75
+ ])) : (t(), o("div", {
76
76
  key: 1,
77
77
  "data-test": "activity-comment",
78
- "data-mine": c(e).mine ? "true" : void 0,
79
- class: h(["flex min-w-0 items-end gap-2", c(e).mine ? "justify-end" : ""])
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
- c(e).mine ? _("", !0) : (t(), k(J, {
81
+ i(s).mine ? v("", !0) : (t(), $(Q, {
82
82
  key: 0,
83
- src: c(e).avatarUrl,
84
- name: c(e).author,
83
+ src: i(s).avatarUrl,
84
+ name: i(s).author,
85
85
  size: "md"
86
86
  }, null, 8, ["src", "name"])),
87
- f("div", {
88
- class: h(["flex max-w-[78%] min-w-0 flex-col gap-1", c(e).mine ? "items-end" : "items-start"])
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
- f("p", {
91
- class: h(["rounded-2xl px-3.5 py-2 text-body break-words whitespace-pre-line text-content-strong", c(e).mine ? "rounded-br-md bg-surface-selected" : "rounded-bl-md bg-surface-cell shadow-group"])
92
- }, b(c(e).body), 3),
93
- f("span", {
94
- class: h(["flex flex-wrap items-center gap-1.5 px-1 text-caption text-content-muted", c(e).mine ? "justify-end" : ""])
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
- M(b(y(c(e).author, e.at)) + " ", 1),
97
- B(s.$slots, "comment-meta", {
98
- item: c(e)
96
+ V(b(x(i(s).author, s.at)) + " ", 1),
97
+ k(e.$slots, "comment-meta", {
98
+ item: i(s)
99
99
  }),
100
- B(s.$slots, "comment-actions", {
101
- item: c(e)
100
+ k(e.$slots, "comment-actions", {
101
+ item: i(s)
102
102
  })
103
103
  ], 2)
104
104
  ], 2)
105
- ], 10, oe))
105
+ ], 10, ne))
106
106
  ]))), 128))
107
107
  ])
108
108
  ]))), 128))
109
- ], 8, W));
109
+ ], 8, X));
110
110
  }
111
- }), le = ["for"], re = ["id", "maxlength", "placeholder", "disabled"], ie = ["disabled", "aria-label"], ce = /* @__PURE__ */ w({
111
+ }), re = ["for"], ce = ["id", "maxlength", "placeholder", "disabled"], ie = ["disabled", "aria-label"], de = /* @__PURE__ */ w({
112
112
  __name: "Composer",
113
- props: /* @__PURE__ */ T({
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__ */ T(["submit"], ["update:modelValue"]),
124
- setup(d, { expose: o, emit: a }) {
125
- const i = d, m = a, l = N(d, "modelValue"), { t: y } = E(), p = U(), c = F("field"), s = g(() => i.placeholder ?? y("core.comments.placeholder")), u = g(() => !i.disabled && !i.processing && l.value.trim().length > 0);
126
- function n() {
127
- const v = c.value;
128
- v && (v.style.height = "auto", v.style.height = `${Math.min(v.scrollHeight, 192)}px`);
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
- R(l, () => I(n));
131
- function e() {
132
- u.value && m("submit", l.value.trim());
130
+ I(l, () => Z(c));
131
+ function s() {
132
+ f.value && p("submit", l.value.trim());
133
133
  }
134
- function $(v) {
135
- v.key === "Enter" && (v.metaKey || v.ctrlKey) && (v.preventDefault(), e());
134
+ function B(_) {
135
+ _.key === "Enter" && (_.metaKey || _.ctrlKey) && (_.preventDefault(), s());
136
136
  }
137
- return o({ focus: () => c.value?.focus() }), (v, L) => (t(), r("form", {
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: Z(e, ["prevent"])
140
+ onSubmit: G(s, ["prevent"])
141
141
  }, [
142
- f("label", {
143
- for: x(p),
142
+ u("label", {
143
+ for: g(d),
144
144
  class: "sr-only"
145
- }, b(i.label ?? s.value), 9, le),
146
- G(f("textarea", {
147
- id: x(p),
145
+ }, b(r.label ?? e.value), 9, re),
146
+ H(u("textarea", {
147
+ id: g(d),
148
148
  ref_key: "field",
149
- ref: c,
150
- "onUpdate:modelValue": L[0] || (L[0] = (K) => l.value = K),
149
+ ref: i,
150
+ "onUpdate:modelValue": T[0] || (T[0] = (F) => l.value = F),
151
151
  rows: "1",
152
- maxlength: i.maxLength,
153
- placeholder: s.value,
154
- disabled: i.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, re), [
159
- [H, l.value]
157
+ onKeydown: B
158
+ }, null, 40, ce), [
159
+ [O, l.value]
160
160
  ]),
161
- f("button", {
161
+ u("button", {
162
162
  type: "submit",
163
163
  "data-test": "composer-send",
164
- disabled: !u.value,
165
- "aria-label": x(y)("core.comments.send"),
166
- class: h(["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]", u.value ? "cursor-pointer bg-tint text-content-on-tint hover:bg-tint/90" : "cursor-not-allowed bg-fill-strong text-surface-cell"])
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
- i.processing ? (t(), k(x(S), {
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(), k(x(S), {
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
- }, de = {
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
- }, me = {
187
+ }, pe = {
188
188
  key: 1,
189
189
  class: "px-1 text-body text-content-muted",
190
190
  "data-test": "comment-thread-empty"
191
- }, pe = ["disabled", "aria-label", "title", "onClick"], we = /* @__PURE__ */ w({
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(d, { emit: o }) {
205
- const a = d, i = o, { t: m } = E(), l = D(""), y = D(!1), p = g(
206
- () => a.comments.map((s) => ({
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: s.id,
209
- at: s.createdAt ?? null,
210
- body: s.body,
211
- author: s.author,
212
- avatarUrl: s.avatarUrl,
213
- mine: s.mine,
214
- source: s
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 c(s) {
218
- y.value = !0;
217
+ async function i(e) {
218
+ x.value = !0;
219
219
  try {
220
- await a.onAdd?.(s) !== !1 && (l.value = "");
220
+ await a.onAdd?.(e) !== !1 && (l.value = "");
221
221
  } finally {
222
- y.value = !1;
222
+ x.value = !1;
223
223
  }
224
224
  }
225
- return (s, u) => (t(), r("section", ue, [
226
- a.hideTitle ? _("", !0) : (t(), r("h3", de, b(a.title ?? x(m)("core.comments.title")), 1)),
227
- a.comments.length === 0 ? (t(), r("p", me, b(x(m)("core.comments.none")), 1)) : (t(), k(ne, {
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: p.value,
230
- label: a.title ?? x(m)("core.comments.title")
229
+ items: d.value,
230
+ label: a.title ?? g(p)("core.comments.title")
231
231
  }, {
232
- "comment-actions": C(({ item: n }) => [
233
- a.canRemove ? (t(), r("button", {
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": x(m)("core.comments.remove"),
240
- title: x(m)("core.comments.remove"),
241
- onClick: (e) => i("remove", n.source)
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
- A(x(S), {
243
+ U(g(C), {
244
244
  name: "deleteBin2Line",
245
245
  size: 14
246
246
  })
247
- ], 8, pe)) : _("", !0)
247
+ ], 8, fe)) : v("", !0)
248
248
  ]),
249
249
  _: 1
250
250
  }, 8, ["items", "label"])),
251
- a.canAdd ? (t(), k(ce, {
251
+ a.canAdd ? (t(), $(de, {
252
252
  key: 3,
253
253
  modelValue: l.value,
254
- "onUpdate:modelValue": u[0] || (u[0] = (n) => l.value = n),
254
+ "onUpdate:modelValue": f[0] || (f[0] = (c) => l.value = c),
255
255
  "max-length": a.maxLength,
256
256
  disabled: a.disabled,
257
- processing: y.value,
258
- onSubmit: c
259
- }, null, 8, ["modelValue", "max-length", "disabled", "processing"])) : _("", !0)
257
+ processing: x.value,
258
+ onSubmit: i
259
+ }, null, 8, ["modelValue", "max-length", "disabled", "processing"])) : v("", !0)
260
260
  ]));
261
261
  }
262
- }), fe = {
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
- }, $e = /* @__PURE__ */ w({
268
+ }, De = /* @__PURE__ */ w({
269
269
  __name: "Divider",
270
270
  props: {
271
271
  label: {}
272
272
  },
273
- setup(d) {
274
- return (o, a) => (t(), r("div", fe, [
275
- a[0] || (a[0] = f("span", { class: "h-px flex-1 bg-border-separator" }, null, -1)),
276
- d.label ? (t(), r("span", xe, b(d.label), 1)) : _("", !0),
277
- a[1] || (a[1] = f("span", { class: "h-px flex-1 bg-border-separator" }, null, -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
- }), Be = /* @__PURE__ */ w({
280
+ }), Ae = /* @__PURE__ */ w({
281
281
  __name: "KeyValueList",
282
282
  props: {
283
283
  items: {},
284
284
  columns: { default: 1 }
285
285
  },
286
- setup(d) {
287
- const o = d, a = {
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 (i, m) => (t(), r("dl", {
293
- class: h(["grid gap-x-6 gap-y-3", a[o.columns]])
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), r(V, null, z(o.items, (l) => (t(), k(Q, {
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
- }, O({ _: 2 }, [
301
- i.$slots.value ? {
300
+ }, P({ _: 2 }, [
301
+ r.$slots.value ? {
302
302
  name: "default",
303
- fn: C(() => [
304
- B(i.$slots, "value", { item: l })
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
- }), Ve = /* @__PURE__ */ w({
311
+ }), Ee = /* @__PURE__ */ w({
312
312
  __name: "MicroLabel",
313
313
  props: {
314
314
  as: { default: "span" }
315
315
  },
316
- setup(d) {
317
- return (o, a) => (t(), k(P(d.as), { class: "text-2xs font-semibold uppercase tracking-[0.06em] text-content-muted" }, {
318
- default: C(() => [
319
- B(o.$slots, "default")
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
- }), be = {
324
+ }), ge = {
325
325
  key: 0,
326
326
  class: "mr-0.5"
327
- }, Me = /* @__PURE__ */ w({
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(d) {
338
- const o = d, a = j(), i = g(() => typeof o.amount == "number" && Number.isFinite(o.amount) ? o.amount : 0), m = g(() => o.emptyZero && !i.value), l = g(() => !o.signed || !i.value || !Math.round(Math.abs(i.value) * 10 ** o.decimals) ? "" : i.value > 0 ? "+" : "−"), y = g(() => a.money(o.signed ? Math.abs(i.value) : i.value, { decimals: o.decimals, whole: o.whole, symbol: !1 })), p = g(() => l.value === "+" ? "font-medium text-status-success-content" : l.value === "−" ? "font-medium text-status-danger-content" : ""), c = g(() => o.symbol ? a.currencySymbol : "");
339
- return (s, u) => (t(), r("span", {
340
- class: h(["whitespace-nowrap tabular-nums", p.value])
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
- m.value ? (t(), r(V, { key: 0 }, [
343
- M("—")
344
- ], 64)) : (t(), r(V, { key: 1 }, [
345
- l.value ? (t(), r("span", be, b(l.value), 1)) : _("", !0),
346
- M(b(y.value), 1),
347
- c.value ? (t(), r("span", {
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: h(["ml-1 font-normal", p.value ? "opacity-75" : "text-content-muted"])
350
- }, b(c.value), 3)) : _("", !0)
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
- ne as ActivityStream,
357
- J as Avatar,
358
- we as CommentThread,
359
- ce as Composer,
360
- $e as Divider,
361
- Q as KeyValue,
362
- Be as KeyValueList,
363
- Ve as MicroLabel,
364
- Me as Money,
365
- Te as Panel,
366
- Ae as Timestamp,
367
- Ce as initialsFor
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-DtISOEt7.js";
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 {