@parallelworks/tandem-web 0.178.0 → 0.179.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/_virtual/_virtual_i18n/en/common.js +45 -16
- package/_virtual/_virtual_i18n/es/common.js +45 -16
- package/_virtual/_virtual_i18n/ja/common.js +45 -16
- package/_virtual/_virtual_i18n/ko/common.js +45 -16
- package/_virtual/_virtual_i18n/zh/common.js +45 -16
- package/components/AgentWork.js +313 -308
- package/components/AreaWork.js +38 -43
- package/components/DocCalendar.js +115 -83
- package/components/DocSeries.js +277 -0
- package/components/Graph.js +1 -1
- package/components/HoverCards.js +88 -111
- package/lib/docSeries.js +80 -0
- package/lib/knowledge.js +0 -6
- package/lib/notifications.js +2 -0
- package/lib/permissionModes.js +7 -1
- package/package.json +1 -1
- package/routes/_workspace/agents/_slug2.js +202 -194
- package/routes/_workspace/docs/space2._space.js +162 -153
- package/routes/_workspace/graph.js +1 -5
- package/routes/_workspace/graph2.js +16 -17
- package/routes/_workspace/graph3.js +70 -82
- package/routes/_workspace/knowledge/_term2.js +126 -130
- package/routes/_workspace/knowledge/index2.js +125 -130
- package/routes/_workspace/notifications2.js +39 -37
package/components/AreaWork.js
CHANGED
|
@@ -1,106 +1,101 @@
|
|
|
1
1
|
import { termRef as e } from "../lib/knowledgeKinds.js";
|
|
2
2
|
import { Link as t } from "../lib/router.js";
|
|
3
3
|
import { AnsweredDecision as n } from "./AgentWork.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
4
|
+
import { ChevronRightIcon as r } from "./icons.js";
|
|
5
|
+
import { useState as i } from "react";
|
|
6
|
+
import { useTranslations as a } from "use-intl";
|
|
7
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
9
8
|
// src/components/AreaWork.tsx
|
|
10
|
-
var
|
|
11
|
-
function
|
|
12
|
-
let
|
|
13
|
-
return /* @__PURE__ */
|
|
9
|
+
var c = (...e) => e.filter(Boolean).join(" ");
|
|
10
|
+
function l({ workspace: n, entry: r, isNew: i }) {
|
|
11
|
+
let c = a("knowledge"), l = a("areaPage");
|
|
12
|
+
return /* @__PURE__ */ o("li", { children: /* @__PURE__ */ s(t, {
|
|
14
13
|
to: "/$workspace/knowledge/$term",
|
|
15
14
|
params: {
|
|
16
15
|
workspace: n,
|
|
17
|
-
term: e(
|
|
16
|
+
term: e(r)
|
|
18
17
|
},
|
|
19
18
|
className: "flex min-w-0 items-baseline gap-2 px-3 py-2 text-sm hover:bg-muted",
|
|
20
19
|
children: [
|
|
21
|
-
/* @__PURE__ */
|
|
20
|
+
/* @__PURE__ */ o("span", {
|
|
22
21
|
className: "shrink-0 font-medium",
|
|
23
|
-
children:
|
|
22
|
+
children: r.name
|
|
24
23
|
}),
|
|
25
|
-
/* @__PURE__ */
|
|
24
|
+
/* @__PURE__ */ o("span", {
|
|
26
25
|
className: "shrink-0 text-xs text-muted-foreground",
|
|
27
|
-
children:
|
|
26
|
+
children: c(`kind.${r.kind}`)
|
|
28
27
|
}),
|
|
29
|
-
|
|
28
|
+
r.definition !== r.name && /* @__PURE__ */ o("span", {
|
|
30
29
|
className: "min-w-0 truncate text-muted-foreground",
|
|
31
|
-
children:
|
|
32
|
-
}),
|
|
33
|
-
i.status === "added" && /* @__PURE__ */ s("span", {
|
|
34
|
-
className: "ml-auto shrink-0",
|
|
35
|
-
children: /* @__PURE__ */ s(r, { status: i.status })
|
|
30
|
+
children: r.definition
|
|
36
31
|
}),
|
|
37
|
-
|
|
32
|
+
i && /* @__PURE__ */ o("span", {
|
|
38
33
|
className: "ml-auto shrink-0 text-[11px] font-medium text-primary",
|
|
39
|
-
children:
|
|
34
|
+
children: l("new")
|
|
40
35
|
})
|
|
41
36
|
]
|
|
42
37
|
}) });
|
|
43
38
|
}
|
|
44
|
-
var
|
|
45
|
-
function
|
|
46
|
-
let f =
|
|
47
|
-
return /* @__PURE__ */
|
|
39
|
+
var u = (e) => e.replace(/[*_`#>[\]]/g, "").replace(/\s+/g, " ").trim();
|
|
40
|
+
function d({ workspace: e, decision: t, isNew: l, notInDocs: d }) {
|
|
41
|
+
let f = a("areaPage"), [p, m] = i(!1), h = [t.options.find((e) => e.id === t.answer?.optionId)?.label, t.answer?.text && u(t.answer.text)].filter(Boolean).join(". ");
|
|
42
|
+
return /* @__PURE__ */ s("li", { children: [/* @__PURE__ */ s("button", {
|
|
48
43
|
type: "button",
|
|
49
44
|
"aria-expanded": p,
|
|
50
45
|
onClick: () => m((e) => !e),
|
|
51
46
|
className: "flex w-full min-w-0 items-baseline gap-2 px-3 py-2 text-left text-sm hover:bg-muted",
|
|
52
47
|
children: [
|
|
53
|
-
/* @__PURE__ */
|
|
54
|
-
/* @__PURE__ */
|
|
48
|
+
/* @__PURE__ */ o(r, { className: c("size-3 shrink-0 self-center text-muted-foreground", p && "rotate-90") }),
|
|
49
|
+
/* @__PURE__ */ o("span", {
|
|
55
50
|
className: "min-w-0 truncate text-muted-foreground",
|
|
56
|
-
children:
|
|
51
|
+
children: u(t.prompt)
|
|
57
52
|
}),
|
|
58
|
-
/* @__PURE__ */
|
|
53
|
+
/* @__PURE__ */ o("span", {
|
|
59
54
|
className: "min-w-0 shrink-0 truncate font-medium max-sm:hidden",
|
|
60
55
|
children: h
|
|
61
56
|
}),
|
|
62
|
-
/* @__PURE__ */
|
|
57
|
+
/* @__PURE__ */ s("span", {
|
|
63
58
|
className: "ml-auto flex shrink-0 items-center gap-2",
|
|
64
|
-
children: [
|
|
59
|
+
children: [d && /* @__PURE__ */ o("span", {
|
|
65
60
|
className: "rounded border border-border px-1.5 text-[11px] text-muted-foreground",
|
|
66
61
|
children: f("notInDocs")
|
|
67
|
-
}),
|
|
62
|
+
}), l && /* @__PURE__ */ o("span", {
|
|
68
63
|
className: "text-[11px] font-medium text-primary",
|
|
69
64
|
children: f("new")
|
|
70
65
|
})]
|
|
71
66
|
})
|
|
72
67
|
]
|
|
73
|
-
}), p && /* @__PURE__ */
|
|
68
|
+
}), p && /* @__PURE__ */ o("div", {
|
|
74
69
|
className: "px-3 pb-3",
|
|
75
|
-
children: /* @__PURE__ */
|
|
70
|
+
children: /* @__PURE__ */ o(n, {
|
|
76
71
|
workspace: e,
|
|
77
72
|
decision: t,
|
|
78
73
|
showIssue: !0
|
|
79
74
|
})
|
|
80
75
|
})] });
|
|
81
76
|
}
|
|
82
|
-
function
|
|
83
|
-
return /* @__PURE__ */
|
|
77
|
+
function f({ title: e, count: t, icon: n, extra: r, action: i, bare: a = !1, children: c }) {
|
|
78
|
+
return /* @__PURE__ */ s("section", {
|
|
84
79
|
"aria-label": e,
|
|
85
|
-
children: [/* @__PURE__ */
|
|
80
|
+
children: [/* @__PURE__ */ s("h2", {
|
|
86
81
|
className: "sticky top-0 z-10 flex h-9 items-center gap-2 border-b border-border bg-background px-4 text-xs font-medium md:px-5",
|
|
87
82
|
children: [
|
|
88
83
|
n,
|
|
89
|
-
/* @__PURE__ */
|
|
84
|
+
/* @__PURE__ */ o("span", {
|
|
90
85
|
className: "truncate",
|
|
91
86
|
children: e
|
|
92
87
|
}),
|
|
93
|
-
/* @__PURE__ */
|
|
88
|
+
/* @__PURE__ */ o("span", {
|
|
94
89
|
className: "text-muted-foreground tabular-nums",
|
|
95
90
|
children: t
|
|
96
91
|
}),
|
|
97
92
|
r,
|
|
98
|
-
i && /* @__PURE__ */
|
|
93
|
+
i && /* @__PURE__ */ o("span", {
|
|
99
94
|
className: "ml-auto flex",
|
|
100
95
|
children: i
|
|
101
96
|
})
|
|
102
97
|
]
|
|
103
|
-
}), t > 0 && (a ?
|
|
98
|
+
}), t > 0 && (a ? c : /* @__PURE__ */ o("ul", { children: c }))]
|
|
104
99
|
});
|
|
105
100
|
}
|
|
106
|
-
export {
|
|
101
|
+
export { f as AreaGroup, d as FoldedAnswer, l as KnowledgeRow };
|
|
@@ -2,43 +2,44 @@ import { api as e, unwrap as t } from "../api/client.js";
|
|
|
2
2
|
import { docTemplatesQuery as n, teamsQuery as r } from "../api/queries.js";
|
|
3
3
|
import { fromIsoDate as i, isoDate as a } from "../lib/datePhrases.js";
|
|
4
4
|
import { spaceScope as o } from "../lib/docProperties.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
5
|
+
import { docSeriesQuery as s, useDocSeriesActions as c } from "../lib/docSeries.js";
|
|
6
|
+
import { docRef as l } from "../lib/docs.js";
|
|
7
|
+
import { useCan as u } from "../lib/roles.js";
|
|
8
|
+
import { DocIcon as d } from "./DocIcon.js";
|
|
9
|
+
import { useSpaceDocs as f } from "./DocTable.js";
|
|
10
|
+
import { AddIcon as p, ChevronRightIcon as m, CycleIcon as h } from "./icons.js";
|
|
11
|
+
import { Button as g, cx as _ } from "@parallelworks/ui";
|
|
12
|
+
import { Link as ee, useNavigate as v } from "@tanstack/react-router";
|
|
13
|
+
import { useMemo as y, useState as te } from "react";
|
|
14
|
+
import { useFormatter as b, useLocale as ne, useTranslations as x } from "use-intl";
|
|
14
15
|
import { jsx as S, jsxs as C } from "react/jsx-runtime";
|
|
15
|
-
import { useMutation as w, useQueryClient as T } from "@tanstack/react-query";
|
|
16
|
+
import { useMutation as w, useQuery as re, useQueryClient as T } from "@tanstack/react-query";
|
|
16
17
|
// src/components/DocCalendar.tsx
|
|
17
18
|
var E = (e, t) => new Date(e.getFullYear(), e.getMonth(), e.getDate() + t);
|
|
18
|
-
function
|
|
19
|
+
function ie(e) {
|
|
19
20
|
let t = new Intl.Locale(e);
|
|
20
21
|
return (t.getWeekInfo?.().firstDay ?? t.weekInfo?.firstDay ?? 7) % 7;
|
|
21
22
|
}
|
|
22
|
-
var
|
|
23
|
-
function
|
|
24
|
-
let
|
|
23
|
+
var D = (e, t) => E(e, -((e.getDay() - t + 7) % 7));
|
|
24
|
+
function O(i, o, s) {
|
|
25
|
+
let c = x("docViews"), u = b(), d = T(), f = v();
|
|
25
26
|
return w({
|
|
26
|
-
mutationFn: async (
|
|
27
|
-
let [f, p] = await Promise.all([d.fetchQuery(n(i)), d.fetchQuery(r(i))]), m = o === "workspace" ? "" : p.find((e) => e.key === o)?.id ?? "", h = f.find((e) => e.spaceDefault && (e.teamId ?? "") === m), g = a(
|
|
27
|
+
mutationFn: async (l) => {
|
|
28
|
+
let [f, p] = await Promise.all([d.fetchQuery(n(i)), d.fetchQuery(r(i))]), m = o === "workspace" ? "" : p.find((e) => e.key === o)?.id ?? "", h = f.find((e) => e.spaceDefault && (e.teamId ?? "") === m), g = a(l), _ = t(await e.POST("/api/v1/workspaces/{workspace}/docs", {
|
|
28
29
|
params: { path: { workspace: i } },
|
|
29
30
|
body: {
|
|
30
|
-
title:
|
|
31
|
+
title: c("meetingTitle", { date: u.dateTime(l, { dateStyle: "medium" }) }),
|
|
31
32
|
template: h?.id ?? "meeting-notes",
|
|
32
33
|
variables: { date: g },
|
|
33
34
|
...o !== "workspace" && { team: o }
|
|
34
35
|
}
|
|
35
36
|
}));
|
|
36
|
-
return
|
|
37
|
+
return s && await e.PATCH("/api/v1/workspaces/{workspace}/docs/{doc}/properties", {
|
|
37
38
|
params: { path: {
|
|
38
39
|
workspace: i,
|
|
39
40
|
doc: _.key
|
|
40
41
|
} },
|
|
41
|
-
body: { values: { [
|
|
42
|
+
body: { values: { [s]: g } }
|
|
42
43
|
}), _;
|
|
43
44
|
},
|
|
44
45
|
onSuccess: (e) => {
|
|
@@ -50,51 +51,74 @@ function k(i, o, c) {
|
|
|
50
51
|
to: "/$workspace/docs/$doc",
|
|
51
52
|
params: {
|
|
52
53
|
workspace: i,
|
|
53
|
-
doc:
|
|
54
|
+
doc: l(e)
|
|
54
55
|
}
|
|
55
56
|
});
|
|
56
57
|
}
|
|
57
58
|
});
|
|
58
59
|
}
|
|
59
|
-
function
|
|
60
|
-
let
|
|
60
|
+
function k({ workspace: e, space: t, config: n, query: r = "" }) {
|
|
61
|
+
let w = x("docViews"), T = b(), k = ie(ne()), A = u(e, "edit_docs", o(t)), { docs: j, props: oe, isPending: se } = f(e, t, n), M = r.trim().toLowerCase(), N = M ? j.filter((e) => e.title.toLowerCase().includes(M)) : j, P = oe.find((e) => e.id === n.dateProperty && e.kind === "date"), F = O(e, t, P?.id), I = y(() => {
|
|
61
62
|
let e = /* @__PURE__ */ new Date();
|
|
62
63
|
return new Date(e.getFullYear(), e.getMonth(), e.getDate());
|
|
63
|
-
}, []), [
|
|
64
|
+
}, []), [L, R] = te(I), ce = v(), z = c(e), B = D(new Date(L.getFullYear(), L.getMonth(), 1), k), { data: V = [] } = re(s(e, t, a(B), a(E(B, 41)))), H = y(() => {
|
|
64
65
|
let e = /* @__PURE__ */ new Map();
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
for (let t of V) for (let n of t.upcoming ?? []) e.set(n, [...e.get(n) ?? [], t]);
|
|
67
|
+
return e;
|
|
68
|
+
}, [V]), U = y(() => {
|
|
69
|
+
let e = /* @__PURE__ */ new Map();
|
|
70
|
+
if (!P) return e;
|
|
71
|
+
for (let t of N) {
|
|
72
|
+
let n = t.properties?.[P.id];
|
|
68
73
|
typeof n == "string" && i(n) && e.set(n, [...e.get(n) ?? [], t]);
|
|
69
74
|
}
|
|
70
75
|
return e;
|
|
71
|
-
}, [
|
|
72
|
-
if (
|
|
76
|
+
}, [N, P]);
|
|
77
|
+
if (se) return /* @__PURE__ */ S("p", {
|
|
73
78
|
className: "p-4 text-sm text-muted-foreground",
|
|
74
|
-
children:
|
|
79
|
+
children: w("loading")
|
|
75
80
|
});
|
|
76
|
-
if (!
|
|
81
|
+
if (!P) return /* @__PURE__ */ S("p", {
|
|
77
82
|
className: "p-4 text-sm text-muted-foreground",
|
|
78
|
-
children:
|
|
83
|
+
children: w("pickDate")
|
|
79
84
|
});
|
|
80
|
-
let
|
|
85
|
+
let W = new Date(L.getFullYear(), L.getMonth(), 1), G = D(W, k), le = Math.ceil(((W.getTime() - G.getTime()) / 864e5 + ae(W)) / 7), K = Array.from({ length: le * 7 }, (e, t) => E(G, t)), q = D(L, k), J = Array.from({ length: 7 }, (e, t) => E(q, t)), Y = (e) => R((t) => new Date(t.getFullYear(), t.getMonth() + e, Math.min(t.getDate(), 28))), X = (e) => R((t) => E(t, 7 * e)), Z = (t) => /* @__PURE__ */ C(ee, {
|
|
81
86
|
to: "/$workspace/docs/$doc",
|
|
82
87
|
params: {
|
|
83
88
|
workspace: e,
|
|
84
|
-
doc:
|
|
89
|
+
doc: l(t)
|
|
85
90
|
},
|
|
86
91
|
className: "flex min-w-0 items-center gap-1 rounded bg-muted px-1.5 py-0.5 text-xs hover:bg-accent",
|
|
87
|
-
children: [/* @__PURE__ */ S(
|
|
92
|
+
children: [/* @__PURE__ */ S(d, { icon: t.icon }), /* @__PURE__ */ S("span", {
|
|
93
|
+
className: "truncate",
|
|
94
|
+
children: t.title
|
|
95
|
+
})]
|
|
96
|
+
}, t.id), Q = (t, n) => /* @__PURE__ */ C("button", {
|
|
97
|
+
type: "button",
|
|
98
|
+
disabled: !A || z.makeDoc.isPending,
|
|
99
|
+
onClick: () => z.makeDoc.mutate({
|
|
100
|
+
id: t.id,
|
|
101
|
+
day: n
|
|
102
|
+
}, { onSuccess: (t) => ce({
|
|
103
|
+
to: "/$workspace/docs/$doc",
|
|
104
|
+
params: {
|
|
105
|
+
workspace: e,
|
|
106
|
+
doc: l(t)
|
|
107
|
+
}
|
|
108
|
+
}) }),
|
|
109
|
+
"aria-label": w("makeSeriesDoc", { series: t.title }),
|
|
110
|
+
className: "flex min-w-0 items-center gap-1 rounded border border-dashed border-border px-1.5 py-0.5 text-left text-xs text-muted-foreground enabled:hover:border-primary enabled:hover:text-foreground",
|
|
111
|
+
children: [/* @__PURE__ */ S(h, { className: "size-3 shrink-0" }), /* @__PURE__ */ S("span", {
|
|
88
112
|
className: "truncate",
|
|
89
113
|
children: t.title
|
|
90
114
|
})]
|
|
91
|
-
}, t.id),
|
|
115
|
+
}, `${t.id}-${n}`), $ = (e) => A && /* @__PURE__ */ S("button", {
|
|
92
116
|
type: "button",
|
|
93
|
-
onClick: () =>
|
|
94
|
-
disabled:
|
|
95
|
-
"aria-label":
|
|
117
|
+
onClick: () => F.mutate(e),
|
|
118
|
+
disabled: F.isPending,
|
|
119
|
+
"aria-label": w("newMeetingOn", { date: T.dateTime(e, { dateStyle: "medium" }) }),
|
|
96
120
|
className: "rounded px-1 text-xs text-muted-foreground opacity-0 group-hover:opacity-100 max-sm:opacity-100 focus-visible:opacity-100 hover:bg-accent hover:text-foreground",
|
|
97
|
-
children: /* @__PURE__ */ S(
|
|
121
|
+
children: /* @__PURE__ */ S(p, { className: "size-3.5" })
|
|
98
122
|
});
|
|
99
123
|
return /* @__PURE__ */ C("div", {
|
|
100
124
|
className: "flex flex-col",
|
|
@@ -104,54 +128,54 @@ function A({ workspace: e, space: t, config: n, query: r = "" }) {
|
|
|
104
128
|
children: [
|
|
105
129
|
/* @__PURE__ */ S("h2", {
|
|
106
130
|
className: "text-sm font-medium max-sm:hidden",
|
|
107
|
-
children:
|
|
131
|
+
children: T.dateTime(W, {
|
|
108
132
|
month: "long",
|
|
109
133
|
year: "numeric"
|
|
110
134
|
})
|
|
111
135
|
}),
|
|
112
136
|
/* @__PURE__ */ S("h2", {
|
|
113
137
|
className: "text-sm font-medium sm:hidden",
|
|
114
|
-
children:
|
|
138
|
+
children: T.dateTimeRange(J[0], J[6], { dateStyle: "medium" })
|
|
115
139
|
}),
|
|
116
140
|
/* @__PURE__ */ C("span", {
|
|
117
141
|
className: "ml-auto flex items-center gap-1",
|
|
118
142
|
children: [
|
|
119
|
-
/* @__PURE__ */ S(
|
|
143
|
+
/* @__PURE__ */ S(g, {
|
|
120
144
|
size: "xs",
|
|
121
145
|
variant: "ghost",
|
|
122
|
-
onClick: () =>
|
|
123
|
-
children:
|
|
146
|
+
onClick: () => R(I),
|
|
147
|
+
children: w("today")
|
|
124
148
|
}),
|
|
125
149
|
/* @__PURE__ */ C("span", {
|
|
126
150
|
className: "flex gap-1 max-sm:hidden",
|
|
127
|
-
children: [/* @__PURE__ */ S(
|
|
151
|
+
children: [/* @__PURE__ */ S(g, {
|
|
128
152
|
size: "xs",
|
|
129
153
|
variant: "ghost",
|
|
130
154
|
onClick: () => Y(-1),
|
|
131
|
-
"aria-label":
|
|
132
|
-
children: /* @__PURE__ */ S(
|
|
133
|
-
}), /* @__PURE__ */ S(
|
|
155
|
+
"aria-label": w("previousMonth"),
|
|
156
|
+
children: /* @__PURE__ */ S(m, { className: "rotate-180" })
|
|
157
|
+
}), /* @__PURE__ */ S(g, {
|
|
134
158
|
size: "xs",
|
|
135
159
|
variant: "ghost",
|
|
136
160
|
onClick: () => Y(1),
|
|
137
|
-
"aria-label":
|
|
138
|
-
children: /* @__PURE__ */ S(
|
|
161
|
+
"aria-label": w("nextMonth"),
|
|
162
|
+
children: /* @__PURE__ */ S(m, {})
|
|
139
163
|
})]
|
|
140
164
|
}),
|
|
141
165
|
/* @__PURE__ */ C("span", {
|
|
142
166
|
className: "flex gap-1 sm:hidden",
|
|
143
|
-
children: [/* @__PURE__ */ S(
|
|
167
|
+
children: [/* @__PURE__ */ S(g, {
|
|
144
168
|
size: "xs",
|
|
145
169
|
variant: "ghost",
|
|
146
170
|
onClick: () => X(-1),
|
|
147
|
-
"aria-label":
|
|
148
|
-
children: /* @__PURE__ */ S(
|
|
149
|
-
}), /* @__PURE__ */ S(
|
|
171
|
+
"aria-label": w("previousWeek"),
|
|
172
|
+
children: /* @__PURE__ */ S(m, { className: "rotate-180" })
|
|
173
|
+
}), /* @__PURE__ */ S(g, {
|
|
150
174
|
size: "xs",
|
|
151
175
|
variant: "ghost",
|
|
152
176
|
onClick: () => X(1),
|
|
153
|
-
"aria-label":
|
|
154
|
-
children: /* @__PURE__ */ S(
|
|
177
|
+
"aria-label": w("nextWeek"),
|
|
178
|
+
children: /* @__PURE__ */ S(m, {})
|
|
155
179
|
})]
|
|
156
180
|
})
|
|
157
181
|
]
|
|
@@ -164,50 +188,58 @@ function A({ workspace: e, space: t, config: n, query: r = "" }) {
|
|
|
164
188
|
className: "grid grid-cols-7 border-y border-border text-xs text-muted-foreground",
|
|
165
189
|
children: K.slice(0, 7).map((e) => /* @__PURE__ */ S("span", {
|
|
166
190
|
className: "px-2 py-1",
|
|
167
|
-
children:
|
|
191
|
+
children: T.dateTime(e, { weekday: "short" })
|
|
168
192
|
}, e.getDay()))
|
|
169
193
|
}), /* @__PURE__ */ S("ol", {
|
|
170
194
|
className: "grid grid-cols-7",
|
|
171
|
-
"aria-label":
|
|
195
|
+
"aria-label": w("calendar"),
|
|
172
196
|
children: K.map((e) => {
|
|
173
|
-
let t = a(e), n =
|
|
197
|
+
let t = a(e), n = U.get(t) ?? [], r = e.getMonth() === W.getMonth();
|
|
174
198
|
return /* @__PURE__ */ C("li", {
|
|
175
|
-
"aria-label":
|
|
176
|
-
className:
|
|
177
|
-
children: [
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
199
|
+
"aria-label": T.dateTime(e, { dateStyle: "full" }),
|
|
200
|
+
className: _("group flex min-h-24 min-w-0 flex-col gap-1 border-r border-b border-border p-1.5", !r && "bg-muted/30"),
|
|
201
|
+
children: [
|
|
202
|
+
/* @__PURE__ */ C("span", {
|
|
203
|
+
className: "flex items-center justify-between",
|
|
204
|
+
children: [/* @__PURE__ */ S("span", {
|
|
205
|
+
className: _("flex size-6 items-center justify-center rounded-full text-xs tabular-nums", t === a(I) ? "bg-primary text-primary-foreground" : r ? "" : "text-muted-foreground"),
|
|
206
|
+
children: e.getDate()
|
|
207
|
+
}), $(e)]
|
|
208
|
+
}),
|
|
209
|
+
n.map(Z),
|
|
210
|
+
(H.get(t) ?? []).map((e) => Q(e, t))
|
|
211
|
+
]
|
|
184
212
|
}, t);
|
|
185
213
|
})
|
|
186
214
|
})]
|
|
187
215
|
}),
|
|
188
216
|
/* @__PURE__ */ S("ol", {
|
|
189
217
|
className: "divide-y divide-border border-y border-border sm:hidden",
|
|
190
|
-
"aria-label":
|
|
218
|
+
"aria-label": w("calendar"),
|
|
191
219
|
children: J.map((e) => {
|
|
192
|
-
let t = a(e), n =
|
|
220
|
+
let t = a(e), n = U.get(t) ?? [];
|
|
193
221
|
return /* @__PURE__ */ C("li", {
|
|
194
222
|
className: "group flex flex-col gap-1 px-4 py-2",
|
|
195
|
-
children: [
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
223
|
+
children: [
|
|
224
|
+
/* @__PURE__ */ C("span", {
|
|
225
|
+
className: "flex items-center justify-between text-xs",
|
|
226
|
+
children: [/* @__PURE__ */ S("span", {
|
|
227
|
+
className: _(t === a(I) ? "font-medium text-primary" : "text-muted-foreground"),
|
|
228
|
+
children: T.dateTime(e, {
|
|
229
|
+
weekday: "long",
|
|
230
|
+
month: "short",
|
|
231
|
+
day: "numeric"
|
|
232
|
+
})
|
|
233
|
+
}), $(e)]
|
|
234
|
+
}),
|
|
235
|
+
n.map(Z),
|
|
236
|
+
(H.get(t) ?? []).map((e) => Q(e, t))
|
|
237
|
+
]
|
|
206
238
|
}, t);
|
|
207
239
|
})
|
|
208
240
|
})
|
|
209
241
|
]
|
|
210
242
|
});
|
|
211
243
|
}
|
|
212
|
-
var
|
|
213
|
-
export {
|
|
244
|
+
var ae = (e) => new Date(e.getFullYear(), e.getMonth() + 1, 0).getDate();
|
|
245
|
+
export { k as DocCalendar, O as useNewMeetingNotes };
|