@activecollab/components 2.0.534 → 2.0.535

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 (25) hide show
  1. package/dist/cjs/presentation/shared/TaskSheetContent.js +381 -0
  2. package/dist/cjs/presentation/shared/TaskSheetContent.js.map +1 -0
  3. package/dist/cjs/presentation/shared/dashboardWidgets.js +26 -7
  4. package/dist/cjs/presentation/shared/dashboardWidgets.js.map +1 -1
  5. package/dist/cjs/presentation/shared/index.js +30 -1
  6. package/dist/cjs/presentation/shared/index.js.map +1 -1
  7. package/dist/cjs/presentation/shared/portfolioDetails.js +130 -38
  8. package/dist/cjs/presentation/shared/portfolioDetails.js.map +1 -1
  9. package/dist/esm/presentation/shared/TaskSheetContent.d.ts +44 -0
  10. package/dist/esm/presentation/shared/TaskSheetContent.d.ts.map +1 -0
  11. package/dist/esm/presentation/shared/TaskSheetContent.js +349 -0
  12. package/dist/esm/presentation/shared/TaskSheetContent.js.map +1 -0
  13. package/dist/esm/presentation/shared/dashboardWidgets.d.ts +8 -2
  14. package/dist/esm/presentation/shared/dashboardWidgets.d.ts.map +1 -1
  15. package/dist/esm/presentation/shared/dashboardWidgets.js +34 -15
  16. package/dist/esm/presentation/shared/dashboardWidgets.js.map +1 -1
  17. package/dist/esm/presentation/shared/index.d.ts +3 -1
  18. package/dist/esm/presentation/shared/index.d.ts.map +1 -1
  19. package/dist/esm/presentation/shared/index.js +2 -1
  20. package/dist/esm/presentation/shared/index.js.map +1 -1
  21. package/dist/esm/presentation/shared/portfolioDetails.d.ts +14 -1
  22. package/dist/esm/presentation/shared/portfolioDetails.d.ts.map +1 -1
  23. package/dist/esm/presentation/shared/portfolioDetails.js +115 -37
  24. package/dist/esm/presentation/shared/portfolioDetails.js.map +1 -1
  25. package/package.json +1 -1
@@ -0,0 +1,349 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
2
+ import React, { useState } from "react";
3
+ import styled from "styled-components";
4
+ import { RoundAvatar } from "./RoundAvatar";
5
+ import { SuggestSubtasksButton } from "./SuggestSubtasksButton";
6
+ import { AVATAR_COLORS, LG } from "./tokens";
7
+ import { Button } from "../../components/Button";
8
+ import { AddToListButton } from "../../components/Button/AddToListButton";
9
+ import { Checkbox } from "../../components/Checkbox";
10
+ import { Chip } from "../../components/Chip";
11
+ import { CompleteCheckbox } from "../../components/CompleteCheckbox";
12
+ import { IconButton } from "../../components/IconButton";
13
+ import { AccessLogIcon, ClockAddIcon, CloseIcon, CloseSmallIcon, CollapseExpandSingleIcon, CopyIcon, DuplicateIcon, EditIcon, EyeOffIcon, HistoryOfChangesIcon, InsertLinkIcon, NoteAddIcon, NotificationBellIcon, RecurringCheckmarkIcon, TrashIcon, TreeDotsIcon, WarningTriangleSmallIcon } from "../../components/Icons";
14
+ import { Input } from "../../components/Input";
15
+ import { Label } from "../../components/Label";
16
+ import { List, ListItem, ListSeparator } from "../../components/List";
17
+ import { Menu } from "../../components/Menu";
18
+ import { SelectTrigger } from "../../components/SelectTrigger";
19
+ import { Signifier } from "../../components/Signifier";
20
+ import { Tooltip } from "../../components/Tooltip";
21
+ import { Body1, Body2, Caption1, Header2 } from "../../components/Typography";
22
+
23
+ /* ================================================================== */
24
+ /* Task sheet content (mirrors Task.jsx / Header.js / Metadata.js / */
25
+ /* TaskPanel.jsx) */
26
+ /* ================================================================== */
27
+
28
+ // Chip background colours for the filled labels in the properties panel.
29
+ const LABEL_COLORS = {
30
+ fixed: "#F1948A",
31
+ gray: "#D5D8DC"
32
+ };
33
+
34
+ /* Two-column body, mirrors ObjectWrapper grid */
35
+ const StyledSheetContent = styled.div.withConfig({
36
+ displayName: "TaskSheetContent__StyledSheetContent",
37
+ componentId: "sc-oqjv8e-0"
38
+ })(["position:relative;display:grid;padding:8px;grid-template-columns:1fr;min-height:100%;@media (min-width:", "){grid-template-columns:1fr 328px;grid-template-rows:auto 1fr;}.sheet-bell{position:absolute;top:8px;right:8px;z-index:2;}"], LG);
39
+ const StyledMain = styled.div.withConfig({
40
+ displayName: "TaskSheetContent__StyledMain",
41
+ componentId: "sc-oqjv8e-1"
42
+ })(["padding:24px 24px 0;min-width:0;@media (min-width:", "){grid-column:1;grid-row:1;}.task-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:8px;}.task-header-left{display:flex;align-items:center;gap:8px;min-width:0;}.task-header-actions{display:flex;align-items:center;flex-shrink:0;}.modal-header-icon{flex-shrink:0;}.modal-header-icon::before{content:\"\";flex-shrink:0;width:4px;height:4px;margin:0 8px;border-radius:100%;background-color:var(--color-theme-500);}.metadata{margin-bottom:24px;display:flex;flex-wrap:wrap;align-items:center;}.metadata .seg:not(:last-child){padding-right:12px;margin-right:12px;border-right:1px solid var(--border-primary);}.description{padding-bottom:16px;margin-bottom:16px;border-bottom:1px solid var(--border-primary);}.add-row{font-size:15px;margin:0 0 16px 0;padding-bottom:16px;border-bottom:1px solid var(--border-primary);}.c--add-to-list-btn svg{box-sizing:content-box;}"], LG);
43
+
44
+ /* Comments + history — separate grid item so on small screens it goes to the
45
+ very bottom (after the properties), and on lg it sits under the main column. */
46
+ const StyledComments = styled.div.withConfig({
47
+ displayName: "TaskSheetContent__StyledComments",
48
+ componentId: "sc-oqjv8e-2"
49
+ })(["padding:0 24px 24px;@media (min-width:", "){grid-column:1;grid-row:2;}.discussion-title{padding-top:24px;margin-bottom:12px;border-top:1px solid var(--border-primary);}@media (min-width:", "){.discussion-title{padding-top:0;border-top:none;}}.comment-row{display:flex;align-items:center;gap:8px;padding-top:10px;padding-bottom:15px;margin:0;}.comment-spacer{padding-bottom:16px;}.history-row{padding-top:24px;padding-bottom:24px;border-top:1px solid var(--border-primary);font-size:12px;}.comment-input{flex:1 1 0%;max-width:400px;min-height:44px;display:flex;align-items:center;padding:10px 12px;border:1px solid var(--color-theme-400);border-radius:6px;cursor:text;}.comment-input:hover{border-color:var(--color-primary);}"], LG, LG);
50
+
51
+ /* Right properties panel, mirrors ObjectPropertiesWrapper */
52
+ const StyledProperties = styled.div.withConfig({
53
+ displayName: "TaskSheetContent__StyledProperties",
54
+ componentId: "sc-oqjv8e-3"
55
+ })(["padding:0 24px;@media (min-width:", "){grid-column:2;grid-row:1 / span 2;padding:24px;background-color:var(--color-theme-200);border-radius:8px;}.field{margin-bottom:24px;}.field-label{display:flex;align-items:center;justify-content:space-between;max-width:280px;margin-bottom:4px;}.field-label.field-label--wide{max-width:none;}.field-control{width:100%;max-width:280px;}.assignees-box{max-width:280px;background-color:var(--input-background-color);border:1px solid var(--color-theme-500);border-radius:6px;padding:8px;}.assignee-row{display:flex;align-items:center;gap:8px;height:44px;padding:0 4px;border-radius:8px;cursor:pointer;}.assignee-row:hover{background-color:var(--color-theme-200);}.assignee-row .meta{flex:1 1 0%;display:flex;flex-direction:column;min-width:0;}.assignee-controls{display:flex;align-items:center;flex-shrink:0;opacity:0;transition:opacity 200ms ease;}.assignee-row:hover .assignee-controls{opacity:1;}.add-assignees{margin-top:6px;cursor:pointer;}.labels-box{display:flex;align-items:center;gap:4px;max-width:280px;height:32px;box-sizing:border-box;background-color:var(--input-background-color);border:1px solid var(--color-theme-500);border-radius:6px;padding:0 8px;}.labels-box:hover{border-color:var(--color-primary);}.labels-box .deselect{margin-left:auto;flex-shrink:0;fill:var(--color-theme-600);cursor:pointer;opacity:0;transition:opacity 200ms ease;}.labels-box:hover .deselect{opacity:1;}.labels-box .caret{flex-shrink:0;fill:var(--color-theme-600);}.estimate-warning{display:flex;align-items:center;gap:4px;margin-top:6px;}.estimate-warning svg{fill:var(--color-warning,#e8a13a);flex-shrink:0;}.check-row{display:flex;align-items:center;gap:8px;cursor:pointer;margin-bottom:8px;}.subscriber-row{display:flex;align-items:center;gap:8px;padding:4px 0;}.subscriber-row .name{flex:1 1 0%;min-width:0;}.divider{height:1px;background-color:var(--border-primary);margin:24px 0;}"], LG);
56
+ const SheetField = _ref => {
57
+ let label = _ref.label,
58
+ action = _ref.action,
59
+ wide = _ref.wide,
60
+ children = _ref.children;
61
+ return /*#__PURE__*/React.createElement("div", {
62
+ className: "field"
63
+ }, /*#__PURE__*/React.createElement("div", {
64
+ className: wide ? "field-label field-label--wide" : "field-label"
65
+ }, /*#__PURE__*/React.createElement(Label, {
66
+ size: "small"
67
+ }, label), action), children);
68
+ };
69
+ const ASSIGNEES = [{
70
+ initials: "JS",
71
+ name: "Janko Stanic",
72
+ bg: AVATAR_COLORS.green
73
+ }, {
74
+ initials: "IS",
75
+ name: "Ilija Studen",
76
+ bg: AVATAR_COLORS.purple
77
+ }];
78
+ const SUBSCRIBERS = [{
79
+ initials: "JS",
80
+ name: "Janko Stanic",
81
+ bg: AVATAR_COLORS.green,
82
+ action: "Unsubscribe"
83
+ }, {
84
+ initials: "EP",
85
+ name: "Edis Pajaziti",
86
+ bg: AVATAR_COLORS.yellow
87
+ }, {
88
+ initials: "IS",
89
+ name: "Ilija Studen",
90
+ bg: AVATAR_COLORS.purple
91
+ }];
92
+
93
+ /* Task header "..." menu (Menu + List with leading-icon items) — same options
94
+ as the real task TaskOptions. Clicks are intentionally no-ops. */
95
+ const TaskHeaderOptionsMenu = () => {
96
+ const _useState = useState(false),
97
+ open = _useState[0],
98
+ setOpen = _useState[1];
99
+ return /*#__PURE__*/React.createElement(Menu, {
100
+ open: open,
101
+ onOpen: () => setOpen(true),
102
+ onClose: () => setOpen(false),
103
+ position: "bottom-end",
104
+ target: /*#__PURE__*/React.createElement(IconButton, {
105
+ type: "button",
106
+ variant: "text gray",
107
+ className: open ? "open" : undefined,
108
+ active: open
109
+ }, /*#__PURE__*/React.createElement(TreeDotsIcon, null))
110
+ }, /*#__PURE__*/React.createElement(List, {
111
+ style: {
112
+ padding: "8px 0"
113
+ },
114
+ tabIndex: -1
115
+ }, /*#__PURE__*/React.createElement(ListItem, null, /*#__PURE__*/React.createElement(DuplicateIcon, null), "Duplicate"), /*#__PURE__*/React.createElement(ListItem, null, /*#__PURE__*/React.createElement(RecurringCheckmarkIcon, null), "Create Recurring Task"), /*#__PURE__*/React.createElement(ListItem, null, /*#__PURE__*/React.createElement(NoteAddIcon, null), "Create Note"), /*#__PURE__*/React.createElement(ListItem, null, /*#__PURE__*/React.createElement(CopyIcon, null), "Move/Copy to Project"), /*#__PURE__*/React.createElement(ListSeparator, null), /*#__PURE__*/React.createElement(ListItem, null, /*#__PURE__*/React.createElement(InsertLinkIcon, null), "Copy Link"), /*#__PURE__*/React.createElement(ListItem, null, /*#__PURE__*/React.createElement(AccessLogIcon, null), "Access Logs"), /*#__PURE__*/React.createElement(ListItem, null, /*#__PURE__*/React.createElement(NotificationBellIcon, null), "Add Reminder"), /*#__PURE__*/React.createElement(ListSeparator, null), /*#__PURE__*/React.createElement(ListItem, null, /*#__PURE__*/React.createElement(TrashIcon, null), "Delete")));
116
+ };
117
+
118
+ /** A person on the sheet (assignee, subscriber). */
119
+
120
+ /** The task the sheet shows. Every field is optional; a missing one keeps
121
+ the Task sheet story's sample value. */
122
+
123
+ const SAMPLE_TASK = {
124
+ number: 12,
125
+ name: "Task name",
126
+ completed: false,
127
+ projectName: "Ime projekta",
128
+ createdLine: "Created by Janko Stanic on 22. Jun 2026",
129
+ description: "Task description",
130
+ taskList: "Task List",
131
+ assignees: ASSIGNEES,
132
+ dates: "1. Jun – 24. Jun",
133
+ estimate: "03:00",
134
+ estimateWarning: "3:00h and 2 people unassigned",
135
+ labels: [{
136
+ name: "FIXED",
137
+ color: LABEL_COLORS.fixed
138
+ }, {
139
+ name: "IN PROGRESS",
140
+ color: LABEL_COLORS.gray
141
+ }],
142
+ hiddenLabels: 1,
143
+ hiddenFromClients: true,
144
+ highPriority: false
145
+ };
146
+
147
+ /**
148
+ * The task sheet body (mirrors Task.jsx / Header.js / Metadata.js /
149
+ * TaskPanel.jsx): main column, properties panel, discussion. Render it inside
150
+ * a DS `Sheet` (position/animation "right", mode "stretch"), as TaskSheet.js
151
+ * does.
152
+ */
153
+ export const TaskSheetContent = _ref2 => {
154
+ let _ref2$task = _ref2.task,
155
+ task = _ref2$task === void 0 ? {} : _ref2$task;
156
+ const t = _extends({}, SAMPLE_TASK, task);
157
+ return /*#__PURE__*/React.createElement(StyledSheetContent, null, /*#__PURE__*/React.createElement(Tooltip, {
158
+ title: "Subscribe"
159
+ }, /*#__PURE__*/React.createElement(IconButton, {
160
+ variant: "text gray",
161
+ className: "sheet-bell"
162
+ }, /*#__PURE__*/React.createElement(NotificationBellIcon, null))), /*#__PURE__*/React.createElement(StyledMain, null, /*#__PURE__*/React.createElement("div", {
163
+ className: "task-header"
164
+ }, /*#__PURE__*/React.createElement("div", {
165
+ className: "task-header-left"
166
+ }, /*#__PURE__*/React.createElement(CompleteCheckbox, {
167
+ completed: t.completed
168
+ }), /*#__PURE__*/React.createElement(Header2, null, "#", t.number, ": ", t.name), t.hiddenFromClients ? /*#__PURE__*/React.createElement(Signifier, {
169
+ type: EyeOffIcon,
170
+ tooltipText: "Hidden from clients",
171
+ className: "modal-header-icon"
172
+ }) : null), /*#__PURE__*/React.createElement("div", {
173
+ className: "task-header-actions"
174
+ }, /*#__PURE__*/React.createElement(Tooltip, {
175
+ title: "Edit"
176
+ }, /*#__PURE__*/React.createElement(IconButton, {
177
+ variant: "text gray"
178
+ }, /*#__PURE__*/React.createElement(EditIcon, null))), /*#__PURE__*/React.createElement(TaskHeaderOptionsMenu, null))), /*#__PURE__*/React.createElement("div", {
179
+ className: "metadata"
180
+ }, /*#__PURE__*/React.createElement(Caption1, {
181
+ color: "secondary",
182
+ className: "seg"
183
+ }, t.projectName), /*#__PURE__*/React.createElement(Caption1, {
184
+ color: "secondary",
185
+ className: "seg"
186
+ }, "Task #", t.number), t.createdLine ? /*#__PURE__*/React.createElement(Caption1, {
187
+ color: "secondary",
188
+ className: "seg"
189
+ }, t.createdLine) : null), /*#__PURE__*/React.createElement("div", {
190
+ className: "description"
191
+ }, /*#__PURE__*/React.createElement(Body2, null, t.description)), /*#__PURE__*/React.createElement("div", {
192
+ className: "add-row"
193
+ }, /*#__PURE__*/React.createElement("div", {
194
+ style: {
195
+ display: "flex",
196
+ justifyContent: "space-between",
197
+ alignItems: "center"
198
+ }
199
+ }, /*#__PURE__*/React.createElement(AddToListButton, {
200
+ text: "Add a Subtask",
201
+ style: {
202
+ marginLeft: -4
203
+ }
204
+ }), /*#__PURE__*/React.createElement(SuggestSubtasksButton, null))), /*#__PURE__*/React.createElement("div", {
205
+ className: "add-row"
206
+ }, /*#__PURE__*/React.createElement(AddToListButton, {
207
+ text: "Add a Dependency",
208
+ style: {
209
+ marginLeft: -4
210
+ }
211
+ }))), /*#__PURE__*/React.createElement(StyledProperties, null, /*#__PURE__*/React.createElement(SheetField, {
212
+ label: "Task List"
213
+ }, /*#__PURE__*/React.createElement(SelectTrigger, {
214
+ className: "field-control"
215
+ }, t.taskList)), /*#__PURE__*/React.createElement(SheetField, {
216
+ label: "Assignees"
217
+ }, /*#__PURE__*/React.createElement("div", {
218
+ className: "assignees-box"
219
+ }, t.assignees.map(a => /*#__PURE__*/React.createElement("div", {
220
+ className: "assignee-row",
221
+ key: a.initials
222
+ }, /*#__PURE__*/React.createElement(RoundAvatar, {
223
+ $bg: a.bg,
224
+ $size: 32,
225
+ $bordered: false
226
+ }, a.initials), /*#__PURE__*/React.createElement("span", {
227
+ className: "meta"
228
+ }, /*#__PURE__*/React.createElement(Body2, {
229
+ weight: "medium"
230
+ }, a.name), /*#__PURE__*/React.createElement(Caption1, {
231
+ color: "tertiary"
232
+ }, "Time not assigned")), /*#__PURE__*/React.createElement("span", {
233
+ className: "assignee-controls"
234
+ }, /*#__PURE__*/React.createElement(IconButton, {
235
+ variant: "text gray"
236
+ }, /*#__PURE__*/React.createElement(ClockAddIcon, null)), /*#__PURE__*/React.createElement(IconButton, {
237
+ variant: "text gray"
238
+ }, /*#__PURE__*/React.createElement(CloseIcon, null))))), /*#__PURE__*/React.createElement(Caption1, {
239
+ color: "theme-secondary",
240
+ weight: "bold",
241
+ className: "add-assignees"
242
+ }, "+ Add Assignees"))), /*#__PURE__*/React.createElement(SheetField, {
243
+ label: "Start and Due Date"
244
+ }, /*#__PURE__*/React.createElement(SelectTrigger, {
245
+ className: "field-control"
246
+ }, t.dates)), /*#__PURE__*/React.createElement(SheetField, {
247
+ label: "Time Estimate (h)",
248
+ action: /*#__PURE__*/React.createElement(Caption1, {
249
+ color: "theme-secondary",
250
+ weight: "bold"
251
+ }, "Split")
252
+ }, /*#__PURE__*/React.createElement(Input, {
253
+ className: "field-control",
254
+ key: t.estimate,
255
+ defaultValue: t.estimate,
256
+ endAdornment: /*#__PURE__*/React.createElement(IconButton, {
257
+ variant: "text gray",
258
+ size: "small"
259
+ }, /*#__PURE__*/React.createElement(CloseIcon, null))
260
+ }), t.estimateWarning ? /*#__PURE__*/React.createElement("div", {
261
+ className: "estimate-warning"
262
+ }, /*#__PURE__*/React.createElement(WarningTriangleSmallIcon, null), /*#__PURE__*/React.createElement(Caption1, {
263
+ color: "secondary"
264
+ }, t.estimateWarning)) : null), /*#__PURE__*/React.createElement(SheetField, {
265
+ label: "Labels"
266
+ }, /*#__PURE__*/React.createElement("div", {
267
+ className: "labels-box"
268
+ }, t.labels.map(label => /*#__PURE__*/React.createElement(Chip, {
269
+ key: label.name,
270
+ label: label.name,
271
+ backgroundColor: label.color,
272
+ color: "#303037",
273
+ typographyProps: {
274
+ variant: "Caption 2",
275
+ weight: "bold"
276
+ }
277
+ })), t.hiddenLabels ? /*#__PURE__*/React.createElement(Body2, null, "+", t.hiddenLabels) : null, /*#__PURE__*/React.createElement(CloseSmallIcon, {
278
+ className: "deselect"
279
+ }), /*#__PURE__*/React.createElement(CollapseExpandSingleIcon, {
280
+ className: "caret"
281
+ }))), /*#__PURE__*/React.createElement("div", {
282
+ className: "field"
283
+ }, /*#__PURE__*/React.createElement("label", {
284
+ className: "check-row"
285
+ }, /*#__PURE__*/React.createElement(Checkbox, {
286
+ id: "hidden-from-clients",
287
+ checked: t.hiddenFromClients,
288
+ onChange: () => undefined
289
+ }), /*#__PURE__*/React.createElement(Body2, null, "Hidden from clients")), /*#__PURE__*/React.createElement("label", {
290
+ className: "check-row"
291
+ }, /*#__PURE__*/React.createElement(Checkbox, {
292
+ id: "high-priority",
293
+ checked: t.highPriority,
294
+ onChange: () => undefined
295
+ }), /*#__PURE__*/React.createElement(Body2, null, "High priority"))), /*#__PURE__*/React.createElement("div", {
296
+ className: "divider"
297
+ }), /*#__PURE__*/React.createElement(SheetField, {
298
+ label: "Subscribers",
299
+ wide: true,
300
+ action: /*#__PURE__*/React.createElement(IconButton, {
301
+ variant: "text gray",
302
+ size: "small"
303
+ }, /*#__PURE__*/React.createElement(EditIcon, null))
304
+ }, SUBSCRIBERS.map(s => /*#__PURE__*/React.createElement("div", {
305
+ className: "subscriber-row",
306
+ key: s.initials
307
+ }, /*#__PURE__*/React.createElement(RoundAvatar, {
308
+ $bg: s.bg,
309
+ $size: 24,
310
+ $bordered: false
311
+ }, s.initials), /*#__PURE__*/React.createElement(Body2, {
312
+ className: "name"
313
+ }, s.name), s.action ? /*#__PURE__*/React.createElement(Button, {
314
+ variant: "text gray"
315
+ }, s.action) : null))), /*#__PURE__*/React.createElement("div", {
316
+ className: "divider"
317
+ }), /*#__PURE__*/React.createElement(SheetField, {
318
+ label: "Reminders",
319
+ wide: true,
320
+ action: /*#__PURE__*/React.createElement(IconButton, {
321
+ variant: "text gray",
322
+ size: "small"
323
+ }, /*#__PURE__*/React.createElement(CloseIcon, {
324
+ style: {
325
+ transform: "rotate(45deg)"
326
+ }
327
+ }))
328
+ }, /*#__PURE__*/React.createElement(React.Fragment, null))), /*#__PURE__*/React.createElement(StyledComments, null, /*#__PURE__*/React.createElement(Body1, {
329
+ weight: "bold",
330
+ className: "discussion-title"
331
+ }, "Discussion"), /*#__PURE__*/React.createElement("div", {
332
+ className: "comment-row"
333
+ }, /*#__PURE__*/React.createElement(RoundAvatar, {
334
+ $bg: AVATAR_COLORS.green,
335
+ $size: 32,
336
+ $bordered: false
337
+ }, "JS"), /*#__PURE__*/React.createElement("div", {
338
+ className: "comment-input"
339
+ }, /*#__PURE__*/React.createElement(Body2, {
340
+ color: "tertiary"
341
+ }, "Write a comment..."))), /*#__PURE__*/React.createElement("div", {
342
+ className: "comment-spacer"
343
+ }), /*#__PURE__*/React.createElement("div", {
344
+ className: "history-row"
345
+ }, /*#__PURE__*/React.createElement(Button, {
346
+ variant: "text gray"
347
+ }, /*#__PURE__*/React.createElement(HistoryOfChangesIcon, null), "Show History of Changes"))));
348
+ };
349
+ //# sourceMappingURL=TaskSheetContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TaskSheetContent.js","names":["React","useState","styled","RoundAvatar","SuggestSubtasksButton","AVATAR_COLORS","LG","Button","AddToListButton","Checkbox","Chip","CompleteCheckbox","IconButton","AccessLogIcon","ClockAddIcon","CloseIcon","CloseSmallIcon","CollapseExpandSingleIcon","CopyIcon","DuplicateIcon","EditIcon","EyeOffIcon","HistoryOfChangesIcon","InsertLinkIcon","NoteAddIcon","NotificationBellIcon","RecurringCheckmarkIcon","TrashIcon","TreeDotsIcon","WarningTriangleSmallIcon","Input","Label","List","ListItem","ListSeparator","Menu","SelectTrigger","Signifier","Tooltip","Body1","Body2","Caption1","Header2","LABEL_COLORS","fixed","gray","StyledSheetContent","div","withConfig","displayName","componentId","StyledMain","StyledComments","StyledProperties","SheetField","_ref","label","action","wide","children","createElement","className","size","ASSIGNEES","initials","name","bg","green","purple","SUBSCRIBERS","yellow","TaskHeaderOptionsMenu","_useState","open","setOpen","onOpen","onClose","position","target","type","variant","undefined","active","style","padding","tabIndex","SAMPLE_TASK","number","completed","projectName","createdLine","description","taskList","assignees","dates","estimate","estimateWarning","labels","color","hiddenLabels","hiddenFromClients","highPriority","TaskSheetContent","_ref2","_ref2$task","task","t","_extends","title","tooltipText","display","justifyContent","alignItems","text","marginLeft","map","a","key","$bg","$size","$bordered","weight","defaultValue","endAdornment","backgroundColor","typographyProps","id","checked","onChange","s","transform","Fragment"],"sources":["../../../../src/presentation/shared/TaskSheetContent.tsx"],"sourcesContent":["import React, { ReactElement, ReactNode, useState } from \"react\";\n\nimport styled from \"styled-components\";\n\nimport { RoundAvatar } from \"./RoundAvatar\";\nimport { SuggestSubtasksButton } from \"./SuggestSubtasksButton\";\nimport { AVATAR_COLORS, LG } from \"./tokens\";\nimport { Button } from \"../../components/Button\";\nimport { AddToListButton } from \"../../components/Button/AddToListButton\";\nimport { Checkbox } from \"../../components/Checkbox\";\nimport { Chip } from \"../../components/Chip\";\nimport { CompleteCheckbox } from \"../../components/CompleteCheckbox\";\nimport { IconButton } from \"../../components/IconButton\";\nimport {\n AccessLogIcon,\n ClockAddIcon,\n CloseIcon,\n CloseSmallIcon,\n CollapseExpandSingleIcon,\n CopyIcon,\n DuplicateIcon,\n EditIcon,\n EyeOffIcon,\n HistoryOfChangesIcon,\n InsertLinkIcon,\n NoteAddIcon,\n NotificationBellIcon,\n RecurringCheckmarkIcon,\n TrashIcon,\n TreeDotsIcon,\n WarningTriangleSmallIcon,\n} from \"../../components/Icons\";\nimport { Input } from \"../../components/Input\";\nimport { Label } from \"../../components/Label\";\nimport { List, ListItem, ListSeparator } from \"../../components/List\";\nimport { Menu } from \"../../components/Menu\";\nimport { SelectTrigger } from \"../../components/SelectTrigger\";\nimport { Signifier } from \"../../components/Signifier\";\nimport { Tooltip } from \"../../components/Tooltip\";\nimport { Body1, Body2, Caption1, Header2 } from \"../../components/Typography\";\n\n/* ================================================================== */\n/* Task sheet content (mirrors Task.jsx / Header.js / Metadata.js / */\n/* TaskPanel.jsx) */\n/* ================================================================== */\n\n// Chip background colours for the filled labels in the properties panel.\nconst LABEL_COLORS = {\n fixed: \"#F1948A\",\n gray: \"#D5D8DC\",\n};\n\n/* Two-column body, mirrors ObjectWrapper grid */\nconst StyledSheetContent = styled.div`\n position: relative;\n display: grid;\n padding: 8px;\n grid-template-columns: 1fr;\n min-height: 100%;\n\n @media (min-width: ${LG}) {\n grid-template-columns: 1fr 328px;\n grid-template-rows: auto 1fr;\n }\n\n .sheet-bell {\n position: absolute;\n top: 8px;\n right: 8px;\n z-index: 2;\n }\n`;\n\nconst StyledMain = styled.div`\n /* no bottom padding on small screens (stacked) */\n padding: 24px 24px 0;\n min-width: 0;\n\n @media (min-width: ${LG}) {\n grid-column: 1;\n grid-row: 1;\n }\n\n .task-header {\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n margin-bottom: 8px;\n }\n\n .task-header-left {\n display: flex;\n align-items: center;\n gap: 8px;\n min-width: 0;\n }\n\n .task-header-actions {\n display: flex;\n align-items: center;\n flex-shrink: 0;\n }\n\n .modal-header-icon {\n flex-shrink: 0;\n }\n\n /* 4px dot before the hidden-from-clients signifier */\n .modal-header-icon::before {\n content: \"\";\n flex-shrink: 0;\n width: 4px;\n height: 4px;\n margin: 0 8px;\n border-radius: 100%;\n background-color: var(--color-theme-500);\n }\n\n .metadata {\n margin-bottom: 24px;\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n }\n\n .metadata .seg:not(:last-child) {\n padding-right: 12px;\n margin-right: 12px;\n border-right: 1px solid var(--border-primary);\n }\n\n .description {\n padding-bottom: 16px;\n margin-bottom: 16px;\n border-bottom: 1px solid var(--border-primary);\n }\n\n /* mirrors .object_subtasks (used for both Subtask & Dependency add rows) */\n .add-row {\n font-size: 15px;\n margin: 0 0 16px 0;\n padding-bottom: 16px;\n border-bottom: 1px solid var(--border-primary);\n }\n\n /* Sheet applies \"* { box-sizing: border-box }\" to all descendants, which\n collapses AddToListButton's \"+\" circle (it relies on content-box + padding).\n Restore content-box for that icon. */\n .c--add-to-list-btn svg {\n box-sizing: content-box;\n }\n`;\n\n/* Comments + history — separate grid item so on small screens it goes to the\n very bottom (after the properties), and on lg it sits under the main column. */\nconst StyledComments = styled.div`\n padding: 0 24px 24px;\n\n @media (min-width: ${LG}) {\n grid-column: 1;\n grid-row: 2;\n }\n\n /* on small screens it follows the properties — separate it with a top border\n (on the inner title so it respects the horizontal padding, like the others) */\n .discussion-title {\n padding-top: 24px;\n margin-bottom: 12px;\n border-top: 1px solid var(--border-primary);\n }\n\n @media (min-width: ${LG}) {\n /* on lg it sits under the main column — no separator, tight gap */\n .discussion-title {\n padding-top: 0;\n border-top: none;\n }\n }\n\n .comment-row {\n display: flex;\n align-items: center;\n gap: 8px;\n padding-top: 10px;\n padding-bottom: 15px;\n margin: 0;\n }\n\n /* empty spacer below the comment form (mirrors the empty div) */\n .comment-spacer {\n padding-bottom: 16px;\n }\n\n .history-row {\n padding-top: 24px;\n padding-bottom: 24px;\n border-top: 1px solid var(--border-primary);\n font-size: 12px;\n }\n\n /* faux comment composer (mirrors .object_comments_faux_controls) */\n .comment-input {\n flex: 1 1 0%;\n max-width: 400px;\n min-height: 44px;\n display: flex;\n align-items: center;\n padding: 10px 12px;\n border: 1px solid var(--color-theme-400);\n border-radius: 6px;\n cursor: text;\n }\n\n .comment-input:hover {\n border-color: var(--color-primary);\n }\n`;\n\n/* Right properties panel, mirrors ObjectPropertiesWrapper */\nconst StyledProperties = styled.div`\n /* no top/bottom padding on small screens (stacked) */\n padding: 0 24px;\n\n /* its own column (≥lg): spans both rows so it sits beside main + comments,\n with a distinct background */\n @media (min-width: ${LG}) {\n grid-column: 2;\n grid-row: 1 / span 2;\n padding: 24px;\n background-color: var(--color-theme-200);\n border-radius: 8px;\n }\n\n .field {\n margin-bottom: 24px;\n }\n\n .field-label {\n display: flex;\n align-items: center;\n justify-content: space-between;\n max-width: 280px;\n margin-bottom: 4px;\n }\n\n /* full-width label row (Subscribers/Reminders) — action stays at far right */\n .field-label.field-label--wide {\n max-width: none;\n }\n\n /* every control fills the panel but never exceeds 280px\n (SelectTrigger defaults to 300px, Input to 360px) */\n .field-control {\n width: 100%;\n max-width: 280px;\n }\n\n .assignees-box {\n max-width: 280px;\n background-color: var(--input-background-color);\n border: 1px solid var(--color-theme-500);\n border-radius: 6px;\n padding: 8px;\n }\n\n .assignee-row {\n display: flex;\n align-items: center;\n gap: 8px;\n height: 44px;\n padding: 0 4px;\n border-radius: 8px;\n cursor: pointer;\n }\n\n .assignee-row:hover {\n background-color: var(--color-theme-200);\n }\n\n .assignee-row .meta {\n flex: 1 1 0%;\n display: flex;\n flex-direction: column;\n min-width: 0;\n }\n\n /* per-assignee hover controls (track time / remove) */\n .assignee-controls {\n display: flex;\n align-items: center;\n flex-shrink: 0;\n opacity: 0;\n transition: opacity 200ms ease;\n }\n\n .assignee-row:hover .assignee-controls {\n opacity: 1;\n }\n\n .add-assignees {\n margin-top: 6px;\n cursor: pointer;\n }\n\n .labels-box {\n display: flex;\n align-items: center;\n gap: 4px;\n max-width: 280px;\n height: 32px;\n box-sizing: border-box;\n background-color: var(--input-background-color);\n border: 1px solid var(--color-theme-500);\n border-radius: 6px;\n padding: 0 8px;\n }\n\n .labels-box:hover {\n border-color: var(--color-primary);\n }\n\n .labels-box .deselect {\n margin-left: auto;\n flex-shrink: 0;\n fill: var(--color-theme-600);\n cursor: pointer;\n opacity: 0;\n transition: opacity 200ms ease;\n }\n\n .labels-box:hover .deselect {\n opacity: 1;\n }\n\n .labels-box .caret {\n flex-shrink: 0;\n fill: var(--color-theme-600);\n }\n\n .estimate-warning {\n display: flex;\n align-items: center;\n gap: 4px;\n margin-top: 6px;\n }\n\n .estimate-warning svg {\n fill: var(--color-warning, #e8a13a);\n flex-shrink: 0;\n }\n\n .check-row {\n display: flex;\n align-items: center;\n gap: 8px;\n cursor: pointer;\n margin-bottom: 8px;\n }\n\n .subscriber-row {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 4px 0;\n }\n\n .subscriber-row .name {\n flex: 1 1 0%;\n min-width: 0;\n }\n\n .divider {\n height: 1px;\n background-color: var(--border-primary);\n margin: 24px 0;\n }\n`;\n\ninterface SheetFieldProps {\n label: string;\n action?: ReactNode;\n /** Label row spans full width (action stays at far right) — no 280px cap. */\n wide?: boolean;\n children: ReactNode;\n}\n\nconst SheetField = ({\n label,\n action,\n wide,\n children,\n}: SheetFieldProps): ReactElement => (\n <div className=\"field\">\n <div className={wide ? \"field-label field-label--wide\" : \"field-label\"}>\n <Label size=\"small\">{label}</Label>\n {action}\n </div>\n {children}\n </div>\n);\n\nconst ASSIGNEES = [\n { initials: \"JS\", name: \"Janko Stanic\", bg: AVATAR_COLORS.green },\n { initials: \"IS\", name: \"Ilija Studen\", bg: AVATAR_COLORS.purple },\n];\n\nconst SUBSCRIBERS = [\n {\n initials: \"JS\",\n name: \"Janko Stanic\",\n bg: AVATAR_COLORS.green,\n action: \"Unsubscribe\",\n },\n { initials: \"EP\", name: \"Edis Pajaziti\", bg: AVATAR_COLORS.yellow },\n { initials: \"IS\", name: \"Ilija Studen\", bg: AVATAR_COLORS.purple },\n];\n\n/* Task header \"...\" menu (Menu + List with leading-icon items) — same options\n as the real task TaskOptions. Clicks are intentionally no-ops. */\nconst TaskHeaderOptionsMenu = (): ReactElement => {\n const [open, setOpen] = useState(false);\n return (\n <Menu\n open={open}\n onOpen={() => setOpen(true)}\n onClose={() => setOpen(false)}\n position=\"bottom-end\"\n target={\n <IconButton\n type=\"button\"\n variant=\"text gray\"\n className={open ? \"open\" : undefined}\n active={open}\n >\n <TreeDotsIcon />\n </IconButton>\n }\n >\n <List style={{ padding: \"8px 0\" }} tabIndex={-1}>\n <ListItem>\n <DuplicateIcon />\n Duplicate\n </ListItem>\n <ListItem>\n <RecurringCheckmarkIcon />\n Create Recurring Task\n </ListItem>\n <ListItem>\n <NoteAddIcon />\n Create Note\n </ListItem>\n <ListItem>\n <CopyIcon />\n Move/Copy to Project\n </ListItem>\n <ListSeparator />\n <ListItem>\n <InsertLinkIcon />\n Copy Link\n </ListItem>\n <ListItem>\n <AccessLogIcon />\n Access Logs\n </ListItem>\n <ListItem>\n <NotificationBellIcon />\n Add Reminder\n </ListItem>\n <ListSeparator />\n <ListItem>\n <TrashIcon />\n Delete\n </ListItem>\n </List>\n </Menu>\n );\n};\n\n/** A person on the sheet (assignee, subscriber). */\nexport interface TaskSheetPerson {\n initials: string;\n name: string;\n bg: string;\n}\n\n/** The task the sheet shows. Every field is optional; a missing one keeps\n the Task sheet story's sample value. */\nexport interface TaskSheetTask {\n number?: number;\n name?: string;\n completed?: boolean;\n projectName?: string;\n /** The metadata line after the task number; null hides it. */\n createdLine?: string | null;\n description?: string;\n taskList?: string;\n assignees?: TaskSheetPerson[];\n /** Start and due date as the trigger shows them. */\n dates?: string;\n estimate?: string;\n /** null hides the estimate warning. */\n estimateWarning?: string | null;\n /** Label name + fill colour (data colours). */\n labels?: { name: string; color: string }[];\n /** \"+N\" after the shown labels; 0 hides it. */\n hiddenLabels?: number;\n hiddenFromClients?: boolean;\n highPriority?: boolean;\n}\n\nconst SAMPLE_TASK: Required<TaskSheetTask> = {\n number: 12,\n name: \"Task name\",\n completed: false,\n projectName: \"Ime projekta\",\n createdLine: \"Created by Janko Stanic on 22. Jun 2026\",\n description: \"Task description\",\n taskList: \"Task List\",\n assignees: ASSIGNEES,\n dates: \"1. Jun – 24. Jun\",\n estimate: \"03:00\",\n estimateWarning: \"3:00h and 2 people unassigned\",\n labels: [\n { name: \"FIXED\", color: LABEL_COLORS.fixed },\n { name: \"IN PROGRESS\", color: LABEL_COLORS.gray },\n ],\n hiddenLabels: 1,\n hiddenFromClients: true,\n highPriority: false,\n};\n\n/**\n * The task sheet body (mirrors Task.jsx / Header.js / Metadata.js /\n * TaskPanel.jsx): main column, properties panel, discussion. Render it inside\n * a DS `Sheet` (position/animation \"right\", mode \"stretch\"), as TaskSheet.js\n * does.\n */\nexport const TaskSheetContent = ({\n task = {},\n}: {\n task?: TaskSheetTask;\n}): ReactElement => {\n const t = { ...SAMPLE_TASK, ...task };\n return (\n <StyledSheetContent>\n <Tooltip title=\"Subscribe\">\n <IconButton variant=\"text gray\" className=\"sheet-bell\">\n <NotificationBellIcon />\n </IconButton>\n </Tooltip>\n\n {/* ---------------- Main column ---------------- */}\n <StyledMain>\n {/* Header */}\n <div className=\"task-header\">\n <div className=\"task-header-left\">\n <CompleteCheckbox completed={t.completed} />\n <Header2>\n #{t.number}: {t.name}\n </Header2>\n {t.hiddenFromClients ? (\n <Signifier\n type={EyeOffIcon}\n tooltipText=\"Hidden from clients\"\n className=\"modal-header-icon\"\n />\n ) : null}\n </div>\n <div className=\"task-header-actions\">\n <Tooltip title=\"Edit\">\n <IconButton variant=\"text gray\">\n <EditIcon />\n </IconButton>\n </Tooltip>\n <TaskHeaderOptionsMenu />\n </div>\n </div>\n\n {/* Metadata / breadcrumb */}\n <div className=\"metadata\">\n <Caption1 color=\"secondary\" className=\"seg\">\n {t.projectName}\n </Caption1>\n <Caption1 color=\"secondary\" className=\"seg\">\n Task #{t.number}\n </Caption1>\n {t.createdLine ? (\n <Caption1 color=\"secondary\" className=\"seg\">\n {t.createdLine}\n </Caption1>\n ) : null}\n </div>\n\n {/* Description */}\n <div className=\"description\">\n <Body2>{t.description}</Body2>\n </div>\n\n {/* Subtasks / dependencies */}\n <div className=\"add-row\">\n <div\n style={{\n display: \"flex\",\n justifyContent: \"space-between\",\n alignItems: \"center\",\n }}\n >\n <AddToListButton text=\"Add a Subtask\" style={{ marginLeft: -4 }} />\n <SuggestSubtasksButton />\n </div>\n </div>\n <div className=\"add-row\">\n <AddToListButton text=\"Add a Dependency\" style={{ marginLeft: -4 }} />\n </div>\n </StyledMain>\n\n {/* ---------------- Properties panel ---------------- */}\n <StyledProperties>\n <SheetField label=\"Task List\">\n <SelectTrigger className=\"field-control\">{t.taskList}</SelectTrigger>\n </SheetField>\n\n <SheetField label=\"Assignees\">\n <div className=\"assignees-box\">\n {t.assignees.map((a) => (\n <div className=\"assignee-row\" key={a.initials}>\n <RoundAvatar $bg={a.bg} $size={32} $bordered={false}>\n {a.initials}\n </RoundAvatar>\n <span className=\"meta\">\n <Body2 weight=\"medium\">{a.name}</Body2>\n <Caption1 color=\"tertiary\">Time not assigned</Caption1>\n </span>\n <span className=\"assignee-controls\">\n <IconButton variant=\"text gray\">\n <ClockAddIcon />\n </IconButton>\n <IconButton variant=\"text gray\">\n <CloseIcon />\n </IconButton>\n </span>\n </div>\n ))}\n <Caption1\n color=\"theme-secondary\"\n weight=\"bold\"\n className=\"add-assignees\"\n >\n + Add Assignees\n </Caption1>\n </div>\n </SheetField>\n\n <SheetField label=\"Start and Due Date\">\n <SelectTrigger className=\"field-control\">{t.dates}</SelectTrigger>\n </SheetField>\n\n <SheetField\n label=\"Time Estimate (h)\"\n action={\n <Caption1 color=\"theme-secondary\" weight=\"bold\">\n Split\n </Caption1>\n }\n >\n <Input\n className=\"field-control\"\n key={t.estimate}\n defaultValue={t.estimate}\n endAdornment={\n <IconButton variant=\"text gray\" size=\"small\">\n <CloseIcon />\n </IconButton>\n }\n />\n {t.estimateWarning ? (\n <div className=\"estimate-warning\">\n <WarningTriangleSmallIcon />\n <Caption1 color=\"secondary\">{t.estimateWarning}</Caption1>\n </div>\n ) : null}\n </SheetField>\n\n <SheetField label=\"Labels\">\n <div className=\"labels-box\">\n {t.labels.map((label) => (\n <Chip\n key={label.name}\n label={label.name}\n backgroundColor={label.color}\n color=\"#303037\"\n typographyProps={{ variant: \"Caption 2\", weight: \"bold\" }}\n />\n ))}\n {t.hiddenLabels ? <Body2>+{t.hiddenLabels}</Body2> : null}\n <CloseSmallIcon className=\"deselect\" />\n <CollapseExpandSingleIcon className=\"caret\" />\n </div>\n </SheetField>\n\n <div className=\"field\">\n <label className=\"check-row\">\n <Checkbox\n id=\"hidden-from-clients\"\n checked={t.hiddenFromClients}\n onChange={() => undefined}\n />\n <Body2>Hidden from clients</Body2>\n </label>\n <label className=\"check-row\">\n <Checkbox\n id=\"high-priority\"\n checked={t.highPriority}\n onChange={() => undefined}\n />\n <Body2>High priority</Body2>\n </label>\n </div>\n\n <div className=\"divider\" />\n\n <SheetField\n label=\"Subscribers\"\n wide\n action={\n <IconButton variant=\"text gray\" size=\"small\">\n <EditIcon />\n </IconButton>\n }\n >\n {SUBSCRIBERS.map((s) => (\n <div className=\"subscriber-row\" key={s.initials}>\n <RoundAvatar $bg={s.bg} $size={24} $bordered={false}>\n {s.initials}\n </RoundAvatar>\n <Body2 className=\"name\">{s.name}</Body2>\n {s.action ? (\n <Button variant=\"text gray\">{s.action}</Button>\n ) : null}\n </div>\n ))}\n </SheetField>\n\n <div className=\"divider\" />\n\n <SheetField\n label=\"Reminders\"\n wide\n action={\n <IconButton variant=\"text gray\" size=\"small\">\n <CloseIcon style={{ transform: \"rotate(45deg)\" }} />\n </IconButton>\n }\n >\n <></>\n </SheetField>\n </StyledProperties>\n\n {/* ---------------- Comments + history ---------------- */}\n <StyledComments>\n <Body1 weight=\"bold\" className=\"discussion-title\">\n Discussion\n </Body1>\n <div className=\"comment-row\">\n <RoundAvatar $bg={AVATAR_COLORS.green} $size={32} $bordered={false}>\n JS\n </RoundAvatar>\n <div className=\"comment-input\">\n <Body2 color=\"tertiary\">Write a comment...</Body2>\n </div>\n </div>\n <div className=\"comment-spacer\" />\n\n {/* Activity history (mirrors ObjectHistory) */}\n <div className=\"history-row\">\n <Button variant=\"text gray\">\n <HistoryOfChangesIcon />\n Show History of Changes\n </Button>\n </div>\n </StyledComments>\n </StyledSheetContent>\n );\n};\n"],"mappings":";AAAA,OAAOA,KAAK,IAA6BC,QAAQ,QAAQ,OAAO;AAEhE,OAAOC,MAAM,MAAM,mBAAmB;AAEtC,SAASC,WAAW,QAAQ,eAAe;AAC3C,SAASC,qBAAqB,QAAQ,yBAAyB;AAC/D,SAASC,aAAa,EAAEC,EAAE,QAAQ,UAAU;AAC5C,SAASC,MAAM,QAAQ,yBAAyB;AAChD,SAASC,eAAe,QAAQ,yCAAyC;AACzE,SAASC,QAAQ,QAAQ,2BAA2B;AACpD,SAASC,IAAI,QAAQ,uBAAuB;AAC5C,SAASC,gBAAgB,QAAQ,mCAAmC;AACpE,SAASC,UAAU,QAAQ,6BAA6B;AACxD,SACEC,aAAa,EACbC,YAAY,EACZC,SAAS,EACTC,cAAc,EACdC,wBAAwB,EACxBC,QAAQ,EACRC,aAAa,EACbC,QAAQ,EACRC,UAAU,EACVC,oBAAoB,EACpBC,cAAc,EACdC,WAAW,EACXC,oBAAoB,EACpBC,sBAAsB,EACtBC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AAkB,GAAC,YAE3C,CAAC,eACR7D,KAAA,CAAA4D,aAAA;IAAKC,SAAS,EAAC;EAAa,gBAC1B7D,KAAA,CAAA4D,aAAA,CAACzD,WAAW;IAACmH,GAAG,EAAEjH,aAAa,CAAC8D,KAAM;IAACoD,KAAK,EAAE,EAAG;IAACC,SAAS,EAAE;EAAM,GAAC,IAEvD,CAAC,eACdxH,KAAA,CAAA4D,aAAA;IAAKC,SAAS,EAAC;EAAe,gBAC5B7D,KAAA,CAAA4D,aAAA,CAACpB,KAAK;IAAC0D,KAAK,EAAC;EAAU,GAAC,oBAAyB,CAC9C,CACF,CAAC,eACNlG,KAAA,CAAA4D,aAAA;IAAKC,SAAS,EAAC;EAAgB,CAAE,CAAC,eAGlC7D,KAAA,CAAA4D,aAAA;IAAKC,SAAS,EAAC;EAAa,gBAC1B7D,KAAA,CAAA4D,aAAA,CAACrD,MAAM;IAACyE,OAAO,EAAC;EAAW,gBACzBhF,KAAA,CAAA4D,aAAA,CAACtC,oBAAoB,MAAE,CAAC,2BAElB,CACL,CACS,CACE,CAAC;AAEzB,CAAC","ignoreList":[]}
@@ -76,19 +76,25 @@ export interface StatWidgetProps {
76
76
  cornerControl?: ReactNode;
77
77
  /** Extra content between description and link (e.g. WidgetRankedList). */
78
78
  children?: ReactNode;
79
+ /** Makes the link act (e.g. open a filtered list). */
80
+ onLinkClick?: () => void;
79
81
  }
80
82
  export declare const StatWidget: {
81
- ({ value, unit, title, description, linkText, alert, success, groupBy, cornerControl, children, }: StatWidgetProps): ReactElement;
83
+ ({ value, unit, title, description, linkText, alert, success, groupBy, cornerControl, children, onLinkClick, }: StatWidgetProps): ReactElement;
82
84
  displayName: string;
83
85
  };
84
86
  export interface RankedListItem {
87
+ /** Identifies the row for `onItemClick` (e.g. "project-11"). */
88
+ id?: string;
85
89
  name: string;
86
90
  value: string;
87
91
  }
88
92
  /** The striped name/count rows inside a tall stat widget. */
89
93
  export declare const WidgetRankedList: {
90
- ({ items, }: {
94
+ ({ items, onItemClick, }: {
91
95
  items: RankedListItem[];
96
+ /** Makes every row a drill-down into that item. */
97
+ onItemClick?: (item: RankedListItem) => void;
92
98
  }): ReactElement;
93
99
  displayName: string;
94
100
  };
@@ -1 +1 @@
1
- {"version":3,"file":"dashboardWidgets.d.ts","sourceRoot":"","sources":["../../../../src/presentation/shared/dashboardWidgets.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,YAAY,EAAE,SAAS,EAAY,MAAM,OAAO,CAAC;AAwCjE,6EAA6E;AAC7E,eAAO,MAAM,mBAAmB,EAAE,MAAM,EAOvC,CAAC;AAEF,4EAA4E;AAC5E,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;CAInC,CAAC;AAcF,eAAO,MAAM,UAAU,oEAuDtB,CAAC;AAQF,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IACxC,8EAA8E;IAC9E,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CACjC;AAED,wEAAwE;AACxE,eAAO,MAAM,aAAa;sCAIvB,kBAAkB,GAAG,YAAY;;CAyBnC,CAAC;AAQF,6EAA6E;AAC7E,eAAO,MAAM,cAAc;;;GAS1B,CAAC;AAEF,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CAChC;AAED;kDACkD;AAClD,eAAO,MAAM,YAAY;8BAGtB,iBAAiB,GAAG,YAAY;;CAmBlC,CAAC;AAeF,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IACxC,QAAQ,EAAE,MAAM,CAAC;IACjB,QAA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AO,MAAM,qBAAqB;uFAU/B,0BAA0B,GAAG,YAAY;;CA2E3C,CAAC;AAQF,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,iDAAiD;IACjD,KAAK,EAAE,MAAM,CAAC;IACd,+DAA+D;IAC/D,YAAY,EAAE,MAAM,CAAC;IACrB,8DAA8D;IAC9D,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,kBAAkB,EAAE,CAAC;IAC3B,OAAO,CAAC,EAAE,kBAAkB,CAAC;CAC9B;AAoED;4EAC4E;AAC5E,eAAO,MAAM,iBAAiB;6CAK3B,sBAAsB,GAAG,YAAY;;CAmCvC,CAAC;AAQF,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,kEAAkE;IAClE,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,MAAM,WAAW,0BAA0B;IACzC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yDAAyD;IACzD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,gBAAgB,EAAE,CAAC;IACzB,4DAA4D;IAC5D,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,gDAAgD;IAChD,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,oEAAoE;IACpE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,uEAAuE;IACvE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,kBAAkB,CAAC;CAC9B;AA2FD;8DAC8D;AAC9D,eAAO,MAAM,qBAAqB;+EAS/B,0BAA0B,GAAG,YAAY;;CAqE3C,CAAC"}
1
+ {"version":3,"file":"dashboardWidgets.d.ts","sourceRoot":"","sources":["../../../../src/presentation/shared/dashboardWidgets.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,Y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F,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,iDAAiD;IACjD,KAAK,EAAE,MAAM,CAAC;IACd,+DAA+D;IAC/D,YAAY,EAAE,MAAM,CAAC;IACrB,8DAA8D;IAC9D,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,kBAAkB,EAAE,CAAC;IAC3B,OAAO,CAAC,EAAE,kBAAkB,CAAC;CAC9B;AAoED;4EAC4E;AAC5E,eAAO,MAAM,iBAAiB;6CAK3B,sBAAsB,GAAG,YAAY;;CAmCvC,CAAC;AAQF,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,kEAAkE;IAClE,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,MAAM,WAAW,0BAA0B;IACzC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yDAAyD;IACzD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,gBAAgB,EAAE,CAAC;IACzB,4DAA4D;IAC5D,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,gDAAgD;IAChD,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,oEAAoE;IACpE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,uEAAuE;IACvE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,kBAAkB,CAAC;CAC9B;AA2FD;8DAC8D;AAC9D,eAAO,MAAM,qBAAqB;+EAS/B,0BAA0B,GAAG,YAAY;;CAqE3C,CAAC"}
@@ -210,7 +210,7 @@ CurrencyPicker.displayName = "CurrencyPicker";
210
210
  const StyledWidget = styled.div.withConfig({
211
211
  displayName: "dashboardWidgets__StyledWidget",
212
212
  componentId: "sc-lm5ek4-2"
213
- })(["position:relative;height:100%;padding:16px 20px;box-sizing:border-box;overflow:hidden;.widget-top{display:flex;justify-content:space-between;gap:8px;}.widget-corner{display:flex;align-items:flex-start;gap:4px;flex-shrink:0;}.widget-total{display:flex;width:100%;height:56px;margin-bottom:8px;font-family:", ";font-size:52px;font-weight:700;line-height:1;color:var(--color-theme-900);}.widget-total.alert{color:var(--red-alert);}.widget-total.success{color:", ";}.widget-title.alert{color:var(--red-alert);}.widget-title.success{color:", ";}.widget-total .widget-unit{align-self:center;margin-left:10px;font-size:20px;font-weight:600;line-height:1;color:var(--color-theme-600);}.widget-title{margin-bottom:8px;}.widget-desc{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;height:40px;margin-bottom:8px;}.widget-link{display:inline-flex;cursor:pointer;text-decoration:none;}"], FONT_STACK, colors.greenSuccess.color, colors.greenSuccess.color);
213
+ })(["position:relative;height:100%;padding:16px 20px;box-sizing:border-box;overflow:hidden;.widget-top{display:flex;justify-content:space-between;gap:8px;}.widget-corner{display:flex;align-items:flex-start;gap:4px;flex-shrink:0;}.widget-total{display:flex;width:100%;height:56px;margin-bottom:8px;font-family:", ";font-size:52px;font-weight:700;line-height:1;color:var(--color-theme-900);}.widget-total.alert{color:var(--red-alert);}.widget-total.success{color:", ";}.widget-title.alert{color:var(--red-alert);}.widget-title.success{color:", ";}.widget-total .widget-unit{align-self:center;margin-left:10px;font-size:20px;font-weight:600;line-height:1;color:var(--color-theme-600);}.widget-title{margin-bottom:8px;}.widget-desc{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;height:40px;margin-bottom:8px;}.widget-link{display:inline-flex;cursor:pointer;text-decoration:none;}.widget-link:hover{text-decoration:underline;}"], FONT_STACK, colors.greenSuccess.color, colors.greenSuccess.color);
214
214
  export const StatWidget = _ref4 => {
215
215
  let value = _ref4.value,
216
216
  unit = _ref4.unit,
@@ -221,7 +221,8 @@ export const StatWidget = _ref4 => {
221
221
  success = _ref4.success,
222
222
  groupBy = _ref4.groupBy,
223
223
  cornerControl = _ref4.cornerControl,
224
- children = _ref4.children;
224
+ children = _ref4.children,
225
+ onLinkClick = _ref4.onLinkClick;
225
226
  return /*#__PURE__*/React.createElement(StyledWidget, null, /*#__PURE__*/React.createElement("div", {
226
227
  className: "widget-top"
227
228
  }, /*#__PURE__*/React.createElement("span", {
@@ -240,7 +241,12 @@ export const StatWidget = _ref4 => {
240
241
  color: "tertiary",
241
242
  className: "widget-desc"
242
243
  }, description), children, linkText ? /*#__PURE__*/React.createElement("a", {
243
- className: "widget-link"
244
+ className: "widget-link",
245
+ href: onLinkClick ? "#" : undefined,
246
+ onClick: onLinkClick ? event => {
247
+ event.preventDefault();
248
+ onLinkClick();
249
+ } : undefined
244
250
  }, /*#__PURE__*/React.createElement(Body2, {
245
251
  color: "theme-primary",
246
252
  weight: "medium"
@@ -255,21 +261,34 @@ StatWidget.displayName = "StatWidget";
255
261
  const StyledRankedList = styled.div.withConfig({
256
262
  displayName: "dashboardWidgets__StyledRankedList",
257
263
  componentId: "sc-lm5ek4-3"
258
- })(["height:216px;overflow-y:auto;padding:4px 0;.ranked-row{display:flex;align-items:center;justify-content:space-between;gap:4px;height:24px;padding:0 6px;margin-bottom:4px;border-radius:2px;box-sizing:border-box;}.ranked-row:nth-child(odd){background-color:var(--color-theme-200);}.ranked-name{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}.ranked-value{flex-shrink:0;}"]);
264
+ })(["height:216px;overflow-y:auto;padding:4px 0;.ranked-row{display:flex;align-items:center;justify-content:space-between;gap:4px;height:24px;padding:0 6px;margin-bottom:4px;border-radius:2px;box-sizing:border-box;}.ranked-row:nth-child(odd){background-color:var(--color-theme-200);}.ranked-name{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}.ranked-value{flex-shrink:0;}.ranked-row.clickable{cursor:pointer;}.ranked-row.clickable:hover .ranked-name{color:var(--color-primary);text-decoration:underline;}"]);
259
265
 
260
266
  /** The striped name/count rows inside a tall stat widget. */
261
267
  export const WidgetRankedList = _ref5 => {
262
- let items = _ref5.items;
263
- return /*#__PURE__*/React.createElement(StyledRankedList, null, items.map(item => /*#__PURE__*/React.createElement("div", {
264
- className: "ranked-row",
265
- key: item.name
266
- }, /*#__PURE__*/React.createElement(Body2, {
267
- color: "secondary",
268
- className: "ranked-name"
269
- }, item.name), /*#__PURE__*/React.createElement(Body2, {
270
- color: "secondary",
271
- className: "ranked-value"
272
- }, item.value))));
268
+ let items = _ref5.items,
269
+ onItemClick = _ref5.onItemClick;
270
+ return /*#__PURE__*/React.createElement(StyledRankedList, null, items.map(item => {
271
+ var _item$id;
272
+ return /*#__PURE__*/React.createElement("div", {
273
+ className: onItemClick ? "ranked-row clickable" : "ranked-row",
274
+ key: (_item$id = item.id) != null ? _item$id : item.name,
275
+ role: onItemClick ? "button" : undefined,
276
+ tabIndex: onItemClick ? 0 : undefined,
277
+ onClick: onItemClick ? () => onItemClick(item) : undefined,
278
+ onKeyDown: onItemClick ? event => {
279
+ if (event.key === "Enter" || event.key === " ") {
280
+ event.preventDefault();
281
+ onItemClick(item);
282
+ }
283
+ } : undefined
284
+ }, /*#__PURE__*/React.createElement(Body2, {
285
+ color: "secondary",
286
+ className: "ranked-name"
287
+ }, item.name), /*#__PURE__*/React.createElement(Body2, {
288
+ color: "secondary",
289
+ className: "ranked-value"
290
+ }, item.value));
291
+ }));
273
292
  };
274
293
  WidgetRankedList.displayName = "WidgetRankedList";
275
294