@activecollab/components 2.0.484 → 2.0.485

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 (85) hide show
  1. package/dist/cjs/presentation/reports/allReports.js +223 -0
  2. package/dist/cjs/presentation/reports/allReports.js.map +1 -0
  3. package/dist/cjs/presentation/reports/availability.js +685 -0
  4. package/dist/cjs/presentation/reports/availability.js.map +1 -0
  5. package/dist/cjs/presentation/reports/availabilityExport.js +117 -0
  6. package/dist/cjs/presentation/reports/availabilityExport.js.map +1 -0
  7. package/dist/cjs/presentation/reports/controls.js +236 -0
  8. package/dist/cjs/presentation/reports/controls.js.map +1 -0
  9. package/dist/cjs/presentation/reports/dashboards.js +434 -0
  10. package/dist/cjs/presentation/reports/dashboards.js.map +1 -0
  11. package/dist/cjs/presentation/reports/data.js +2309 -0
  12. package/dist/cjs/presentation/reports/data.js.map +1 -0
  13. package/dist/cjs/presentation/reports/payments.js +294 -0
  14. package/dist/cjs/presentation/reports/payments.js.map +1 -0
  15. package/dist/cjs/presentation/reports/uninvoiced.js +223 -0
  16. package/dist/cjs/presentation/reports/uninvoiced.js.map +1 -0
  17. package/dist/cjs/presentation/shared/PageStickyHeader.js +76 -0
  18. package/dist/cjs/presentation/shared/PageStickyHeader.js.map +1 -0
  19. package/dist/cjs/presentation/shared/PresentationShell.js +22 -14
  20. package/dist/cjs/presentation/shared/PresentationShell.js.map +1 -1
  21. package/dist/cjs/presentation/shared/UserDetailsDialog.js +18 -5
  22. package/dist/cjs/presentation/shared/UserDetailsDialog.js.map +1 -1
  23. package/dist/cjs/presentation/shared/dashboardWidgets.js +116 -71
  24. package/dist/cjs/presentation/shared/dashboardWidgets.js.map +1 -1
  25. package/dist/cjs/presentation/shared/headers.js +7 -2
  26. package/dist/cjs/presentation/shared/headers.js.map +1 -1
  27. package/dist/cjs/presentation/shared/index.js +22 -0
  28. package/dist/cjs/presentation/shared/index.js.map +1 -1
  29. package/dist/esm/presentation/reports/allReports.d.ts +3 -0
  30. package/dist/esm/presentation/reports/allReports.d.ts.map +1 -0
  31. package/dist/esm/presentation/reports/allReports.js +210 -0
  32. package/dist/esm/presentation/reports/allReports.js.map +1 -0
  33. package/dist/esm/presentation/reports/availability.d.ts +9 -0
  34. package/dist/esm/presentation/reports/availability.d.ts.map +1 -0
  35. package/dist/esm/presentation/reports/availability.js +532 -0
  36. package/dist/esm/presentation/reports/availability.js.map +1 -0
  37. package/dist/esm/presentation/reports/availabilityExport.d.ts +17 -0
  38. package/dist/esm/presentation/reports/availabilityExport.d.ts.map +1 -0
  39. package/dist/esm/presentation/reports/availabilityExport.js +97 -0
  40. package/dist/esm/presentation/reports/availabilityExport.js.map +1 -0
  41. package/dist/esm/presentation/reports/controls.d.ts +50 -0
  42. package/dist/esm/presentation/reports/controls.d.ts.map +1 -0
  43. package/dist/esm/presentation/reports/controls.js +205 -0
  44. package/dist/esm/presentation/reports/controls.js.map +1 -0
  45. package/dist/esm/presentation/reports/dashboards.d.ts +4 -0
  46. package/dist/esm/presentation/reports/dashboards.d.ts.map +1 -0
  47. package/dist/esm/presentation/reports/dashboards.js +390 -0
  48. package/dist/esm/presentation/reports/dashboards.js.map +1 -0
  49. package/dist/esm/presentation/reports/data.d.ts +171 -0
  50. package/dist/esm/presentation/reports/data.d.ts.map +1 -0
  51. package/dist/esm/presentation/reports/data.js +2303 -0
  52. package/dist/esm/presentation/reports/data.js.map +1 -0
  53. package/dist/esm/presentation/reports/payments.d.ts +3 -0
  54. package/dist/esm/presentation/reports/payments.d.ts.map +1 -0
  55. package/dist/esm/presentation/reports/payments.js +235 -0
  56. package/dist/esm/presentation/reports/payments.js.map +1 -0
  57. package/dist/esm/presentation/reports/uninvoiced.d.ts +3 -0
  58. package/dist/esm/presentation/reports/uninvoiced.d.ts.map +1 -0
  59. package/dist/esm/presentation/reports/uninvoiced.js +208 -0
  60. package/dist/esm/presentation/reports/uninvoiced.js.map +1 -0
  61. package/dist/esm/presentation/shared/PageStickyHeader.d.ts +10 -0
  62. package/dist/esm/presentation/shared/PageStickyHeader.d.ts.map +1 -0
  63. package/dist/esm/presentation/shared/PageStickyHeader.js +70 -0
  64. package/dist/esm/presentation/shared/PageStickyHeader.js.map +1 -0
  65. package/dist/esm/presentation/shared/PresentationShell.d.ts +2 -1
  66. package/dist/esm/presentation/shared/PresentationShell.d.ts.map +1 -1
  67. package/dist/esm/presentation/shared/PresentationShell.js +22 -14
  68. package/dist/esm/presentation/shared/PresentationShell.js.map +1 -1
  69. package/dist/esm/presentation/shared/UserDetailsDialog.d.ts +4 -1
  70. package/dist/esm/presentation/shared/UserDetailsDialog.d.ts.map +1 -1
  71. package/dist/esm/presentation/shared/UserDetailsDialog.js +18 -5
  72. package/dist/esm/presentation/shared/UserDetailsDialog.js.map +1 -1
  73. package/dist/esm/presentation/shared/dashboardWidgets.d.ts +14 -1
  74. package/dist/esm/presentation/shared/dashboardWidgets.d.ts.map +1 -1
  75. package/dist/esm/presentation/shared/dashboardWidgets.js +107 -68
  76. package/dist/esm/presentation/shared/dashboardWidgets.js.map +1 -1
  77. package/dist/esm/presentation/shared/headers.d.ts +2 -1
  78. package/dist/esm/presentation/shared/headers.d.ts.map +1 -1
  79. package/dist/esm/presentation/shared/headers.js +7 -2
  80. package/dist/esm/presentation/shared/headers.js.map +1 -1
  81. package/dist/esm/presentation/shared/index.d.ts +4 -2
  82. package/dist/esm/presentation/shared/index.d.ts.map +1 -1
  83. package/dist/esm/presentation/shared/index.js +2 -1
  84. package/dist/esm/presentation/shared/index.js.map +1 -1
  85. package/package.json +1 -1
@@ -0,0 +1,390 @@
1
+ import React, { useState } from "react";
2
+ import styled from "styled-components";
3
+ import { ACTIVE_PROJECTS_BY_LEADER, ACTIVE_PROJECTS_TOTAL, ASSIGNMENT_COUNTS, DAILY_CREATED_AND_COMPLETED, DAILY_OPEN_TASKS, DAILY_X_LABELS, HOURS_BY_STATUS, LEADERBOARD, MONTHLY_TRACKED_HOURS, OPEN_TASKS_BY_PROJECT, OPEN_TASKS_TOTAL, PROJECTS_OVERVIEW, TIME_SERIES_LABELS, TRACKED_HOURS_BY_JOB_TYPE, TRACKED_HOURS_TOTAL } from "./data";
4
+ import { IconButton } from "../../components/IconButton";
5
+ import { CalendarIcon } from "../../components/Icons";
6
+ import { Paper } from "../../components/Paper";
7
+ import { Select } from "../../components/Select";
8
+ import { formatHours, formatNumber } from "../../utils";
9
+ import { AreaChartWidget, CurrencyPicker, DailyDeltaChartWidget, LeaderboardWidget, LG, MD, OverviewWidget, OVERVIEW_SECTION_COLORS, PERIOD_OPTIONS, SM, StackedBarChartWidget, StatWidget, WidgetGrid, WidgetRankedList } from "../shared";
10
+ const CURRENCY_OPTIONS = [{
11
+ id: "EUR",
12
+ name: "EUR"
13
+ }, {
14
+ id: "USD",
15
+ name: "USD"
16
+ }];
17
+ const short = value => formatNumber(value, ",", ".", true, 2, "short");
18
+ const toRanked = rows => rows.map(row => ({
19
+ name: row.name,
20
+ value: String(row.value)
21
+ }));
22
+ const toRankedHours = rows => rows.map(row => ({
23
+ name: row.name,
24
+ value: formatHours(row.value)
25
+ }));
26
+ const ACTIVE_PROJECTS_GROUP_BY = {
27
+ options: [{
28
+ id: "client",
29
+ name: "Client"
30
+ }, {
31
+ id: "category",
32
+ name: "Category"
33
+ }, {
34
+ id: "label",
35
+ name: "Label"
36
+ }, {
37
+ id: "project_leader",
38
+ name: "Project Leader"
39
+ }, {
40
+ id: "budget_type",
41
+ name: "Budget Type"
42
+ }],
43
+ initial: "project_leader"
44
+ };
45
+ const OPEN_TASKS_GROUP_BY = {
46
+ options: [{
47
+ id: "project",
48
+ name: "Project"
49
+ }, {
50
+ id: "client",
51
+ name: "Client"
52
+ }, {
53
+ id: "category",
54
+ name: "Project Category"
55
+ }, {
56
+ id: "label",
57
+ name: "Project Label"
58
+ }, {
59
+ id: "project_leader",
60
+ name: "Project Leader"
61
+ }, {
62
+ id: "assignee",
63
+ name: "Assignee"
64
+ }],
65
+ initial: "project"
66
+ };
67
+ const TRACKED_HOURS_GROUP_BY = {
68
+ options: [{
69
+ id: "project_client",
70
+ name: "Client"
71
+ }, {
72
+ id: "project_category",
73
+ name: "Category"
74
+ }, {
75
+ id: "project_label",
76
+ name: "Label"
77
+ }, {
78
+ id: "project",
79
+ name: "Project"
80
+ }, {
81
+ id: "project_leader",
82
+ name: "Leader"
83
+ }, {
84
+ id: "user",
85
+ name: "Tracked By"
86
+ }, {
87
+ id: "job_type",
88
+ name: "Job Type"
89
+ }, {
90
+ id: "task_list",
91
+ name: "Task List"
92
+ }, {
93
+ id: "task",
94
+ name: "Task"
95
+ }, {
96
+ id: "billable_status",
97
+ name: "Status"
98
+ }],
99
+ initial: "job_type"
100
+ };
101
+ const LEADERBOARD_GROUP_BY = {
102
+ options: [{
103
+ id: "project_client",
104
+ name: "Client"
105
+ }, {
106
+ id: "project",
107
+ name: "Project"
108
+ }, {
109
+ id: "user",
110
+ name: "Tracked By"
111
+ }, {
112
+ id: "job_type",
113
+ name: "Job Type"
114
+ }],
115
+ initial: "user"
116
+ };
117
+ const PeriodTarget = _ref => {
118
+ let selected = _ref.selected,
119
+ onChange = _ref.onChange;
120
+ const _useState = useState(false),
121
+ open = _useState[0],
122
+ setOpen = _useState[1];
123
+ return /*#__PURE__*/React.createElement(Select, {
124
+ options: PERIOD_OPTIONS,
125
+ selected: selected,
126
+ onChange: value => onChange(String(value)),
127
+ onSelectOpen: () => setOpen(true),
128
+ onSelectClose: () => setOpen(false),
129
+ position: "bottom-end",
130
+ forceCloseMenu: true,
131
+ disableSearch: true,
132
+ keepSameOptionsOrder: true,
133
+ disabledInternalSort: true,
134
+ target: /*#__PURE__*/React.createElement(IconButton, {
135
+ type: "button",
136
+ variant: "text gray",
137
+ active: open
138
+ }, /*#__PURE__*/React.createElement(CalendarIcon, {
139
+ fill: "var(--color-theme-800)"
140
+ }))
141
+ });
142
+ };
143
+ const periodName = id => {
144
+ var _PERIOD_OPTIONS$find$, _PERIOD_OPTIONS$find;
145
+ return (_PERIOD_OPTIONS$find$ = (_PERIOD_OPTIONS$find = PERIOD_OPTIONS.find(option => option.id === id)) == null ? void 0 : _PERIOD_OPTIONS$find.name) != null ? _PERIOD_OPTIONS$find$ : "";
146
+ };
147
+ export const AssignmentsContent = () => {
148
+ const _useState2 = useState("EUR"),
149
+ currency = _useState2[0],
150
+ setCurrency = _useState2[1];
151
+ const _useState3 = useState("last_quarter"),
152
+ projectsPeriod = _useState3[0],
153
+ setProjectsPeriod = _useState3[1];
154
+ const _useState4 = useState("last_quarter"),
155
+ tasksPeriod = _useState4[0],
156
+ setTasksPeriod = _useState4[1];
157
+ const overview = PROJECTS_OVERVIEW[currency];
158
+ const sections = [{
159
+ id: "tasks",
160
+ value: short(overview.completed_tasks) + " of " + short(overview.total_tasks),
161
+ description: "Completed of Total Tasks",
162
+ linkText: "Open in Tasks Report",
163
+ color: OVERVIEW_SECTION_COLORS.tasks.color,
164
+ trackColor: OVERVIEW_SECTION_COLORS.tasks.track,
165
+ progress: overview.completed_tasks / overview.total_tasks * 100
166
+ }, {
167
+ id: "time",
168
+ value: short(overview.tracked_time) + " / " + short(overview.estimated_time),
169
+ unit: "Hours",
170
+ description: "Tracked vs Estimated Time",
171
+ explainer: "Only tasks with an estimate are taken into account",
172
+ linkText: "Open in Tasks Report",
173
+ color: OVERVIEW_SECTION_COLORS.time.color,
174
+ trackColor: OVERVIEW_SECTION_COLORS.time.track,
175
+ progress: overview.tracked_time / overview.estimated_time * 100
176
+ }, {
177
+ id: "budget",
178
+ value: short(overview.spent) + " / " + short(overview.budget),
179
+ unit: currency,
180
+ description: "Spent vs Budget",
181
+ explainer: "Only projects with defined budget are taken into account",
182
+ linkText: "Open in Projects Report",
183
+ color: OVERVIEW_SECTION_COLORS.budget.color,
184
+ trackColor: OVERVIEW_SECTION_COLORS.budget.track,
185
+ progress: overview.spent / overview.budget * 100
186
+ }];
187
+ return /*#__PURE__*/React.createElement(WidgetGrid, null, /*#__PURE__*/React.createElement(Paper, {
188
+ type: "paper-2",
189
+ className: "cell-overview"
190
+ }, /*#__PURE__*/React.createElement(OverviewWidget, {
191
+ title: "Projects Overview",
192
+ subtitle: "Check your projects' progress",
193
+ sections: sections,
194
+ headerRight: /*#__PURE__*/React.createElement(CurrencyPicker, {
195
+ options: CURRENCY_OPTIONS,
196
+ selected: currency,
197
+ onChange: setCurrency
198
+ })
199
+ })), /*#__PURE__*/React.createElement(Paper, {
200
+ type: "paper-2",
201
+ className: "cell-tall"
202
+ }, /*#__PURE__*/React.createElement(StatWidget, {
203
+ value: String(ACTIVE_PROJECTS_TOTAL),
204
+ title: "Active Projects",
205
+ description: "Sort all your projects by different criteria",
206
+ linkText: "Open in Projects Report",
207
+ groupBy: ACTIVE_PROJECTS_GROUP_BY
208
+ }, /*#__PURE__*/React.createElement(WidgetRankedList, {
209
+ items: toRanked(ACTIVE_PROJECTS_BY_LEADER)
210
+ }))), /*#__PURE__*/React.createElement(Paper, {
211
+ type: "paper-2",
212
+ className: "cell-tall"
213
+ }, /*#__PURE__*/React.createElement(StatWidget, {
214
+ value: String(OPEN_TASKS_TOTAL),
215
+ title: "Open Tasks",
216
+ description: "Overview of what your teams are working on",
217
+ linkText: "Open in Tasks Report",
218
+ groupBy: OPEN_TASKS_GROUP_BY
219
+ }, /*#__PURE__*/React.createElement(WidgetRankedList, {
220
+ items: toRanked(OPEN_TASKS_BY_PROJECT)
221
+ }))), /*#__PURE__*/React.createElement(Paper, {
222
+ type: "paper-2"
223
+ }, /*#__PURE__*/React.createElement(StatWidget, {
224
+ value: String(ASSIGNMENT_COUNTS.completedProjects),
225
+ title: "Completed Projects",
226
+ description: "A total of completed projects. Period: " + periodName(projectsPeriod),
227
+ linkText: "Open in Projects Report",
228
+ cornerControl: /*#__PURE__*/React.createElement(PeriodTarget, {
229
+ selected: projectsPeriod,
230
+ onChange: setProjectsPeriod
231
+ })
232
+ })), /*#__PURE__*/React.createElement(Paper, {
233
+ type: "paper-2"
234
+ }, /*#__PURE__*/React.createElement(StatWidget, {
235
+ value: short(ASSIGNMENT_COUNTS.completedTasks),
236
+ title: "Completed Tasks",
237
+ description: "A total of completed tasks. Period: " + periodName(tasksPeriod),
238
+ linkText: "Open in Tasks Report",
239
+ cornerControl: /*#__PURE__*/React.createElement(PeriodTarget, {
240
+ selected: tasksPeriod,
241
+ onChange: setTasksPeriod
242
+ })
243
+ })), /*#__PURE__*/React.createElement(Paper, {
244
+ type: "paper-2"
245
+ }, /*#__PURE__*/React.createElement(StatWidget, {
246
+ value: short(ASSIGNMENT_COUNTS.overdueTasks),
247
+ title: "Overdue Tasks",
248
+ description: "Check which tasks' deadlines expired",
249
+ linkText: "Open in Tasks Report",
250
+ alert: ASSIGNMENT_COUNTS.overdueTasks > 0
251
+ })), /*#__PURE__*/React.createElement(Paper, {
252
+ type: "paper-2"
253
+ }, /*#__PURE__*/React.createElement(StatWidget, {
254
+ value: short(ASSIGNMENT_COUNTS.underestimatedTasks),
255
+ title: "Underestimated Tasks",
256
+ description: "Tasks whose tracked hours exceed their estimate",
257
+ linkText: "Open in Tasks Report",
258
+ alert: ASSIGNMENT_COUNTS.underestimatedTasks > 0
259
+ })), /*#__PURE__*/React.createElement(Paper, {
260
+ type: "paper-2"
261
+ }, /*#__PURE__*/React.createElement(StatWidget, {
262
+ value: short(ASSIGNMENT_COUNTS.highPriorityTasks),
263
+ title: "High Priority Tasks",
264
+ description: "Check which tasks are marked as important",
265
+ linkText: "Open in Tasks Report"
266
+ })), /*#__PURE__*/React.createElement(Paper, {
267
+ type: "paper-2"
268
+ }, /*#__PURE__*/React.createElement(StatWidget, {
269
+ value: short(ASSIGNMENT_COUNTS.noAssignee),
270
+ title: "No Assignee",
271
+ description: "Make sure all the tasks are properly assigned",
272
+ linkText: "Open in Tasks Report"
273
+ })), /*#__PURE__*/React.createElement(Paper, {
274
+ type: "paper-2"
275
+ }, /*#__PURE__*/React.createElement(StatWidget, {
276
+ value: short(ASSIGNMENT_COUNTS.withoutDueDate),
277
+ title: "Tasks Without Due Date",
278
+ description: "Schedule all assignments on time",
279
+ linkText: "Open in Tasks Report"
280
+ })), /*#__PURE__*/React.createElement(Paper, {
281
+ type: "paper-2"
282
+ }, /*#__PURE__*/React.createElement(StatWidget, {
283
+ value: short(ASSIGNMENT_COUNTS.withoutEstimation),
284
+ title: "Tasks Without Estimation",
285
+ description: "Improve your planning by estimating tasks",
286
+ linkText: "Open in Tasks Report"
287
+ })), /*#__PURE__*/React.createElement(Paper, {
288
+ type: "paper-2",
289
+ className: "cell-wide"
290
+ }, /*#__PURE__*/React.createElement(AreaChartWidget, {
291
+ title: "Number of Open Tasks",
292
+ points: DAILY_OPEN_TASKS,
293
+ xLabels: DAILY_X_LABELS,
294
+ yTicks: [100, 110, 120, 130, 140]
295
+ })), /*#__PURE__*/React.createElement(Paper, {
296
+ type: "paper-2",
297
+ className: "cell-wide"
298
+ }, /*#__PURE__*/React.createElement(DailyDeltaChartWidget, {
299
+ title: "New vs Completed Tasks",
300
+ links: ["See New", "See Completed"],
301
+ data: DAILY_CREATED_AND_COMPLETED.map(day => ({
302
+ up: day.created,
303
+ down: day.completed
304
+ })),
305
+ xLabels: DAILY_X_LABELS,
306
+ upMax: 8,
307
+ downMax: 8,
308
+ yTicksUp: [4, 8],
309
+ yTicksDown: [4, 8]
310
+ })));
311
+ };
312
+ const StyledTimeGrid = styled.div.withConfig({
313
+ displayName: "dashboards__StyledTimeGrid",
314
+ componentId: "sc-1cgxe7s-0"
315
+ })(["display:grid;gap:24px;width:100%;min-width:286px;margin-bottom:40px;grid-template-columns:repeat(1,minmax(0,1fr));grid-auto-rows:192px;@media (min-width:", "){grid-template-columns:repeat(2,minmax(0,1fr));}@media (min-width:", "){grid-template-columns:repeat(4,minmax(0,1fr));}.cell-total{grid-row:span 4;@media (min-width:", "){grid-column:span 2;}@media (min-width:", "){grid-row:span 2;}@media (min-width:", "){grid-column:span 4;}}.cell-statuses{display:grid;gap:24px;grid-row:span 4;grid-template-columns:repeat(1,minmax(0,1fr));grid-auto-rows:192px;@media (min-width:", "){grid-column:span 2;grid-row:span 2;grid-template-columns:repeat(2,minmax(0,1fr));}}.cell-leaderboard{grid-row:span 2;@media (min-width:", "){grid-column:span 2;}}.total-body{display:flex;flex-direction:column;gap:24px;height:100%;@media (min-width:", "){flex-direction:row;}}.total-chart{flex:1;min-width:0;height:50%;@media (min-width:", "){height:100%;}}.total-widget{flex:1;flex-shrink:0;width:100%;height:50%;@media (min-width:", "){flex:none;width:260px;height:100%;}}@media (min-width:", "){.total-chart > div{padding-right:0;}.total-widget > div{padding-left:0;}}"], SM, LG, SM, MD, LG, SM, SM, MD, MD, MD, MD);
316
+ const TIME_Y_TICKS = [0, 200, 400, 600, 800, 1000, 1200, 1400, 1600];
317
+ export const TimeContent = () => {
318
+ const maxHours = Math.max(...LEADERBOARD.map(row => row.value));
319
+ return /*#__PURE__*/React.createElement(StyledTimeGrid, null, /*#__PURE__*/React.createElement(Paper, {
320
+ type: "paper-2",
321
+ className: "cell-total"
322
+ }, /*#__PURE__*/React.createElement("div", {
323
+ className: "total-body"
324
+ }, /*#__PURE__*/React.createElement("div", {
325
+ className: "total-chart"
326
+ }, /*#__PURE__*/React.createElement(StackedBarChartWidget, {
327
+ data: MONTHLY_TRACKED_HOURS.map(month => ({
328
+ label: month.label,
329
+ segments: month.hours
330
+ })),
331
+ seriesLabels: TIME_SERIES_LABELS,
332
+ yTicks: TIME_Y_TICKS,
333
+ barWidth: 54,
334
+ height: 320
335
+ })), /*#__PURE__*/React.createElement("div", {
336
+ className: "total-widget"
337
+ }, /*#__PURE__*/React.createElement(StatWidget, {
338
+ value: formatHours(TRACKED_HOURS_TOTAL, true),
339
+ title: "Total Tracked Hours",
340
+ description: "A total of all time that matches the given time range and filters.",
341
+ linkText: "Open in Time Report",
342
+ groupBy: TRACKED_HOURS_GROUP_BY
343
+ }, /*#__PURE__*/React.createElement(WidgetRankedList, {
344
+ items: toRankedHours(TRACKED_HOURS_BY_JOB_TYPE)
345
+ }))))), /*#__PURE__*/React.createElement("div", {
346
+ className: "cell-statuses"
347
+ }, /*#__PURE__*/React.createElement(Paper, {
348
+ type: "paper-2"
349
+ }, /*#__PURE__*/React.createElement(StatWidget, {
350
+ value: formatHours(HOURS_BY_STATUS.nonBillable, true),
351
+ title: "Non-billable Hours",
352
+ description: "A total of non-billable hours, for the selected period.",
353
+ linkText: "Open in Time Report"
354
+ })), /*#__PURE__*/React.createElement(Paper, {
355
+ type: "paper-2"
356
+ }, /*#__PURE__*/React.createElement(StatWidget, {
357
+ value: formatHours(HOURS_BY_STATUS.billable, true),
358
+ title: "Billable Hours",
359
+ description: "A total of billable hours, for the selected period.",
360
+ linkText: "Open in Time Report"
361
+ })), /*#__PURE__*/React.createElement(Paper, {
362
+ type: "paper-2"
363
+ }, /*#__PURE__*/React.createElement(StatWidget, {
364
+ value: formatHours(HOURS_BY_STATUS.pendingPayment, true),
365
+ title: "Pending Payment",
366
+ description: "A total of outstanding invoices, for the selected period.",
367
+ linkText: "Open in Time Report"
368
+ })), /*#__PURE__*/React.createElement(Paper, {
369
+ type: "paper-2"
370
+ }, /*#__PURE__*/React.createElement(StatWidget, {
371
+ value: formatHours(HOURS_BY_STATUS.paid, true),
372
+ title: "Paid",
373
+ description: "A total of paid invoices, for the selected period.",
374
+ linkText: "Open in Time Report"
375
+ }))), /*#__PURE__*/React.createElement(Paper, {
376
+ type: "paper-2",
377
+ className: "cell-leaderboard"
378
+ }, /*#__PURE__*/React.createElement(LeaderboardWidget, {
379
+ title: "Leaderboard",
380
+ description: "Billable and non-billable time record leaders by different criteria.",
381
+ groupBy: LEADERBOARD_GROUP_BY,
382
+ rows: LEADERBOARD.map(row => ({
383
+ label: row.name,
384
+ value: formatHours(row.value),
385
+ percentOfMax: row.value / maxHours * 100,
386
+ billableShare: row.billable / row.value * 100
387
+ }))
388
+ })));
389
+ };
390
+ //# sourceMappingURL=dashboards.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dashboards.js","names":["React","useState","styled","ACTIVE_PROJECTS_BY_LEADER","ACTIVE_PROJECTS_TOTAL","ASSIGNMENT_COUNTS","DAILY_CREATED_AND_COMPLETED","DAILY_OPEN_TASKS","DAILY_X_LABELS","HOURS_BY_STATUS","LEADERBOARD","MONTHLY_TRACKED_HOURS","OPEN_TASKS_BY_PROJECT","OPEN_TASKS_TOTAL","PROJECTS_OVERVIEW","TIME_SERIES_LABELS","TRACKED_HOURS_BY_JOB_TYPE","TRACKED_HOURS_TOTAL","IconButton","CalendarIcon","Paper","Select","formatHours","formatNumber","AreaChartWidget","CurrencyPicker","DailyDeltaChartWidget","LeaderboardWidget","LG","MD","OverviewWidget","OVERVIEW_SECTION_COLORS","PERIOD_OPTIONS","SM","StackedBarChartWidget","StatWidget","WidgetGrid","WidgetRankedList","CURRENCY_OPTIONS","id","name","short","value","toRanked","rows","map","row","String","toRankedHours","ACTIVE_PROJECTS_GROUP_BY","options","initial","OPEN_TASKS_GROUP_BY","TRACKED_HOURS_GROUP_BY","LEADERBOARD_GROUP_BY","PeriodTarget","_ref","selected","onChange","_useState","open","setOpen","createElement","onSelectOpen","onSelectClose","position","forceCloseMenu","disableSearch","keepSameOptionsOrder","disabledInternalSort","target","type","variant","active","fill","periodName","_PERIOD_OPTIONS$find$","_PERIOD_OPTIONS$find","find","option","AssignmentsContent","_useState2","currency","setCurrency","_useState3","projectsPeriod","setProjectsPeriod","_useState4","tasksPeriod","setTasksPeriod","overview","sections","completed_tasks","total_tasks","description","linkText","color","tasks","trackColor","track","progress","tracked_time","estimated_time","unit","explainer","time","spent","budget","className","title","subtitle","headerRight","groupBy","items","completedProjects","cornerControl","completedTasks","overdueTasks","alert","underestimatedTasks","highPriorityTasks","noAssignee","withoutDueDate","withoutEstimation","points","xLabels","yTicks","links","data","day","up","created","down","completed","upMax","downMax","yTicksUp","yTicksDown","StyledTimeGrid","div","withConfig","displayName","componentId","TIME_Y_TICKS","TimeContent","maxHours","Math","max","month","label","segments","hours","seriesLabels","barWidth","height","nonBillable","billable","pendingPayment","paid","percentOfMax","billableShare"],"sources":["../../../../src/presentation/reports/dashboards.tsx"],"sourcesContent":["import React, { ReactElement, useState } from \"react\";\n\nimport styled from \"styled-components\";\n\nimport {\n ACTIVE_PROJECTS_BY_LEADER,\n ACTIVE_PROJECTS_TOTAL,\n ASSIGNMENT_COUNTS,\n DAILY_CREATED_AND_COMPLETED,\n DAILY_OPEN_TASKS,\n DAILY_X_LABELS,\n HOURS_BY_STATUS,\n LEADERBOARD,\n MONTHLY_TRACKED_HOURS,\n OPEN_TASKS_BY_PROJECT,\n OPEN_TASKS_TOTAL,\n PROJECTS_OVERVIEW,\n TIME_SERIES_LABELS,\n TRACKED_HOURS_BY_JOB_TYPE,\n TRACKED_HOURS_TOTAL,\n WidgetListRow,\n} from \"./data\";\nimport { IconButton } from \"../../components/IconButton\";\nimport { CalendarIcon } from \"../../components/Icons\";\nimport { Paper } from \"../../components/Paper\";\nimport { Select } from \"../../components/Select\";\nimport { formatHours, formatNumber } from \"../../utils\";\nimport {\n AreaChartWidget,\n CurrencyPicker,\n DailyDeltaChartWidget,\n LeaderboardWidget,\n LG,\n MD,\n OverviewSectionData,\n OverviewWidget,\n OVERVIEW_SECTION_COLORS,\n PERIOD_OPTIONS,\n SM,\n StackedBarChartWidget,\n StatWidget,\n WidgetGrid,\n WidgetGroupByProps,\n WidgetRankedList,\n} from \"../shared\";\n\nconst CURRENCY_OPTIONS = [\n { id: \"EUR\", name: \"EUR\" },\n { id: \"USD\", name: \"USD\" },\n];\n\nconst short = (value: number): string =>\n formatNumber(value, \",\", \".\", true, 2, \"short\");\n\nconst toRanked = (rows: WidgetListRow[]): { name: string; value: string }[] =>\n rows.map((row) => ({ name: row.name, value: String(row.value) }));\n\nconst toRankedHours = (\n rows: WidgetListRow[]\n): { name: string; value: string }[] =>\n rows.map((row) => ({ name: row.name, value: formatHours(row.value) }));\n\nconst ACTIVE_PROJECTS_GROUP_BY: WidgetGroupByProps = {\n options: [\n { id: \"client\", name: \"Client\" },\n { id: \"category\", name: \"Category\" },\n { id: \"label\", name: \"Label\" },\n { id: \"project_leader\", name: \"Project Leader\" },\n { id: \"budget_type\", name: \"Budget Type\" },\n ],\n initial: \"project_leader\",\n};\n\nconst OPEN_TASKS_GROUP_BY: WidgetGroupByProps = {\n options: [\n { id: \"project\", name: \"Project\" },\n { id: \"client\", name: \"Client\" },\n { id: \"category\", name: \"Project Category\" },\n { id: \"label\", name: \"Project Label\" },\n { id: \"project_leader\", name: \"Project Leader\" },\n { id: \"assignee\", name: \"Assignee\" },\n ],\n initial: \"project\",\n};\n\nconst TRACKED_HOURS_GROUP_BY: WidgetGroupByProps = {\n options: [\n { id: \"project_client\", name: \"Client\" },\n { id: \"project_category\", name: \"Category\" },\n { id: \"project_label\", name: \"Label\" },\n { id: \"project\", name: \"Project\" },\n { id: \"project_leader\", name: \"Leader\" },\n { id: \"user\", name: \"Tracked By\" },\n { id: \"job_type\", name: \"Job Type\" },\n { id: \"task_list\", name: \"Task List\" },\n { id: \"task\", name: \"Task\" },\n { id: \"billable_status\", name: \"Status\" },\n ],\n initial: \"job_type\",\n};\n\nconst LEADERBOARD_GROUP_BY: WidgetGroupByProps = {\n options: [\n { id: \"project_client\", name: \"Client\" },\n { id: \"project\", name: \"Project\" },\n { id: \"user\", name: \"Tracked By\" },\n { id: \"job_type\", name: \"Job Type\" },\n ],\n initial: \"user\",\n};\n\nconst PeriodTarget = ({\n selected,\n onChange,\n}: {\n selected: string;\n onChange: (id: string) => void;\n}): ReactElement => {\n const [open, setOpen] = useState(false);\n return (\n <Select\n options={PERIOD_OPTIONS}\n selected={selected}\n onChange={(value) => onChange(String(value))}\n onSelectOpen={() => setOpen(true)}\n onSelectClose={() => setOpen(false)}\n position=\"bottom-end\"\n forceCloseMenu\n disableSearch\n keepSameOptionsOrder\n disabledInternalSort\n target={\n <IconButton type=\"button\" variant=\"text gray\" active={open}>\n <CalendarIcon fill=\"var(--color-theme-800)\" />\n </IconButton>\n }\n />\n );\n};\n\nconst periodName = (id: string): string =>\n PERIOD_OPTIONS.find((option) => option.id === id)?.name ?? \"\";\n\nexport const AssignmentsContent = (): ReactElement => {\n const [currency, setCurrency] = useState(\"EUR\");\n const [projectsPeriod, setProjectsPeriod] = useState(\"last_quarter\");\n const [tasksPeriod, setTasksPeriod] = useState(\"last_quarter\");\n const overview = PROJECTS_OVERVIEW[currency];\n\n const sections: OverviewSectionData[] = [\n {\n id: \"tasks\",\n value: `${short(overview.completed_tasks)} of ${short(\n overview.total_tasks\n )}`,\n description: \"Completed of Total Tasks\",\n linkText: \"Open in Tasks Report\",\n color: OVERVIEW_SECTION_COLORS.tasks.color,\n trackColor: OVERVIEW_SECTION_COLORS.tasks.track,\n progress: (overview.completed_tasks / overview.total_tasks) * 100,\n },\n {\n id: \"time\",\n value: `${short(overview.tracked_time)} / ${short(\n overview.estimated_time\n )}`,\n unit: \"Hours\",\n description: \"Tracked vs Estimated Time\",\n explainer: \"Only tasks with an estimate are taken into account\",\n linkText: \"Open in Tasks Report\",\n color: OVERVIEW_SECTION_COLORS.time.color,\n trackColor: OVERVIEW_SECTION_COLORS.time.track,\n progress: (overview.tracked_time / overview.estimated_time) * 100,\n },\n {\n id: \"budget\",\n value: `${short(overview.spent)} / ${short(overview.budget)}`,\n unit: currency,\n description: \"Spent vs Budget\",\n explainer: \"Only projects with defined budget are taken into account\",\n linkText: \"Open in Projects Report\",\n color: OVERVIEW_SECTION_COLORS.budget.color,\n trackColor: OVERVIEW_SECTION_COLORS.budget.track,\n progress: (overview.spent / overview.budget) * 100,\n },\n ];\n\n return (\n <WidgetGrid>\n <Paper type=\"paper-2\" className=\"cell-overview\">\n <OverviewWidget\n title=\"Projects Overview\"\n subtitle=\"Check your projects' progress\"\n sections={sections}\n headerRight={\n <CurrencyPicker\n options={CURRENCY_OPTIONS}\n selected={currency}\n onChange={setCurrency}\n />\n }\n />\n </Paper>\n <Paper type=\"paper-2\" className=\"cell-tall\">\n <StatWidget\n value={String(ACTIVE_PROJECTS_TOTAL)}\n title=\"Active Projects\"\n description=\"Sort all your projects by different criteria\"\n linkText=\"Open in Projects Report\"\n groupBy={ACTIVE_PROJECTS_GROUP_BY}\n >\n <WidgetRankedList items={toRanked(ACTIVE_PROJECTS_BY_LEADER)} />\n </StatWidget>\n </Paper>\n <Paper type=\"paper-2\" className=\"cell-tall\">\n <StatWidget\n value={String(OPEN_TASKS_TOTAL)}\n title=\"Open Tasks\"\n description=\"Overview of what your teams are working on\"\n linkText=\"Open in Tasks Report\"\n groupBy={OPEN_TASKS_GROUP_BY}\n >\n <WidgetRankedList items={toRanked(OPEN_TASKS_BY_PROJECT)} />\n </StatWidget>\n </Paper>\n <Paper type=\"paper-2\">\n <StatWidget\n value={String(ASSIGNMENT_COUNTS.completedProjects)}\n title=\"Completed Projects\"\n description={`A total of completed projects. Period: ${periodName(\n projectsPeriod\n )}`}\n linkText=\"Open in Projects Report\"\n cornerControl={\n <PeriodTarget\n selected={projectsPeriod}\n onChange={setProjectsPeriod}\n />\n }\n />\n </Paper>\n <Paper type=\"paper-2\">\n <StatWidget\n value={short(ASSIGNMENT_COUNTS.completedTasks)}\n title=\"Completed Tasks\"\n description={`A total of completed tasks. Period: ${periodName(\n tasksPeriod\n )}`}\n linkText=\"Open in Tasks Report\"\n cornerControl={\n <PeriodTarget selected={tasksPeriod} onChange={setTasksPeriod} />\n }\n />\n </Paper>\n <Paper type=\"paper-2\">\n <StatWidget\n value={short(ASSIGNMENT_COUNTS.overdueTasks)}\n title=\"Overdue Tasks\"\n description=\"Check which tasks' deadlines expired\"\n linkText=\"Open in Tasks Report\"\n alert={ASSIGNMENT_COUNTS.overdueTasks > 0}\n />\n </Paper>\n <Paper type=\"paper-2\">\n <StatWidget\n value={short(ASSIGNMENT_COUNTS.underestimatedTasks)}\n title=\"Underestimated Tasks\"\n description=\"Tasks whose tracked hours exceed their estimate\"\n linkText=\"Open in Tasks Report\"\n alert={ASSIGNMENT_COUNTS.underestimatedTasks > 0}\n />\n </Paper>\n <Paper type=\"paper-2\">\n <StatWidget\n value={short(ASSIGNMENT_COUNTS.highPriorityTasks)}\n title=\"High Priority Tasks\"\n description=\"Check which tasks are marked as important\"\n linkText=\"Open in Tasks Report\"\n />\n </Paper>\n <Paper type=\"paper-2\">\n <StatWidget\n value={short(ASSIGNMENT_COUNTS.noAssignee)}\n title=\"No Assignee\"\n description=\"Make sure all the tasks are properly assigned\"\n linkText=\"Open in Tasks Report\"\n />\n </Paper>\n <Paper type=\"paper-2\">\n <StatWidget\n value={short(ASSIGNMENT_COUNTS.withoutDueDate)}\n title=\"Tasks Without Due Date\"\n description=\"Schedule all assignments on time\"\n linkText=\"Open in Tasks Report\"\n />\n </Paper>\n <Paper type=\"paper-2\">\n <StatWidget\n value={short(ASSIGNMENT_COUNTS.withoutEstimation)}\n title=\"Tasks Without Estimation\"\n description=\"Improve your planning by estimating tasks\"\n linkText=\"Open in Tasks Report\"\n />\n </Paper>\n <Paper type=\"paper-2\" className=\"cell-wide\">\n <AreaChartWidget\n title=\"Number of Open Tasks\"\n points={DAILY_OPEN_TASKS}\n xLabels={DAILY_X_LABELS}\n yTicks={[100, 110, 120, 130, 140]}\n />\n </Paper>\n <Paper type=\"paper-2\" className=\"cell-wide\">\n <DailyDeltaChartWidget\n title=\"New vs Completed Tasks\"\n links={[\"See New\", \"See Completed\"]}\n data={DAILY_CREATED_AND_COMPLETED.map((day) => ({\n up: day.created,\n down: day.completed,\n }))}\n xLabels={DAILY_X_LABELS}\n upMax={8}\n downMax={8}\n yTicksUp={[4, 8]}\n yTicksDown={[4, 8]}\n />\n </Paper>\n </WidgetGrid>\n );\n};\n\nconst StyledTimeGrid = styled.div`\n display: grid;\n gap: 24px;\n width: 100%;\n min-width: 286px;\n margin-bottom: 40px;\n grid-template-columns: repeat(1, minmax(0, 1fr));\n grid-auto-rows: 192px;\n\n @media (min-width: ${SM}) {\n grid-template-columns: repeat(2, minmax(0, 1fr));\n }\n\n @media (min-width: ${LG}) {\n grid-template-columns: repeat(4, minmax(0, 1fr));\n }\n\n .cell-total {\n grid-row: span 4;\n\n @media (min-width: ${SM}) {\n grid-column: span 2;\n }\n\n @media (min-width: ${MD}) {\n grid-row: span 2;\n }\n\n @media (min-width: ${LG}) {\n grid-column: span 4;\n }\n }\n\n .cell-statuses {\n display: grid;\n gap: 24px;\n grid-row: span 4;\n grid-template-columns: repeat(1, minmax(0, 1fr));\n grid-auto-rows: 192px;\n\n @media (min-width: ${SM}) {\n grid-column: span 2;\n grid-row: span 2;\n grid-template-columns: repeat(2, minmax(0, 1fr));\n }\n }\n\n .cell-leaderboard {\n grid-row: span 2;\n\n @media (min-width: ${SM}) {\n grid-column: span 2;\n }\n }\n\n .total-body {\n display: flex;\n flex-direction: column;\n gap: 24px;\n height: 100%;\n\n @media (min-width: ${MD}) {\n flex-direction: row;\n }\n }\n\n .total-chart {\n flex: 1;\n min-width: 0;\n height: 50%;\n\n @media (min-width: ${MD}) {\n height: 100%;\n }\n }\n\n .total-widget {\n flex: 1;\n flex-shrink: 0;\n width: 100%;\n height: 50%;\n\n @media (min-width: ${MD}) {\n flex: none;\n width: 260px;\n height: 100%;\n }\n }\n\n @media (min-width: ${MD}) {\n .total-chart > div {\n padding-right: 0;\n }\n\n .total-widget > div {\n padding-left: 0;\n }\n }\n`;\n\nconst TIME_Y_TICKS = [0, 200, 400, 600, 800, 1000, 1200, 1400, 1600];\n\nexport const TimeContent = (): ReactElement => {\n const maxHours = Math.max(...LEADERBOARD.map((row) => row.value));\n return (\n <StyledTimeGrid>\n <Paper type=\"paper-2\" className=\"cell-total\">\n <div className=\"total-body\">\n <div className=\"total-chart\">\n <StackedBarChartWidget\n data={MONTHLY_TRACKED_HOURS.map((month) => ({\n label: month.label,\n segments: month.hours,\n }))}\n seriesLabels={TIME_SERIES_LABELS}\n yTicks={TIME_Y_TICKS}\n barWidth={54}\n height={320}\n />\n </div>\n <div className=\"total-widget\">\n <StatWidget\n value={formatHours(TRACKED_HOURS_TOTAL, true)}\n title=\"Total Tracked Hours\"\n description=\"A total of all time that matches the given time range and filters.\"\n linkText=\"Open in Time Report\"\n groupBy={TRACKED_HOURS_GROUP_BY}\n >\n <WidgetRankedList\n items={toRankedHours(TRACKED_HOURS_BY_JOB_TYPE)}\n />\n </StatWidget>\n </div>\n </div>\n </Paper>\n <div className=\"cell-statuses\">\n <Paper type=\"paper-2\">\n <StatWidget\n value={formatHours(HOURS_BY_STATUS.nonBillable, true)}\n title=\"Non-billable Hours\"\n description=\"A total of non-billable hours, for the selected period.\"\n linkText=\"Open in Time Report\"\n />\n </Paper>\n <Paper type=\"paper-2\">\n <StatWidget\n value={formatHours(HOURS_BY_STATUS.billable, true)}\n title=\"Billable Hours\"\n description=\"A total of billable hours, for the selected period.\"\n linkText=\"Open in Time Report\"\n />\n </Paper>\n <Paper type=\"paper-2\">\n <StatWidget\n value={formatHours(HOURS_BY_STATUS.pendingPayment, true)}\n title=\"Pending Payment\"\n description=\"A total of outstanding invoices, for the selected period.\"\n linkText=\"Open in Time Report\"\n />\n </Paper>\n <Paper type=\"paper-2\">\n <StatWidget\n value={formatHours(HOURS_BY_STATUS.paid, true)}\n title=\"Paid\"\n description=\"A total of paid invoices, for the selected period.\"\n linkText=\"Open in Time Report\"\n />\n </Paper>\n </div>\n <Paper type=\"paper-2\" className=\"cell-leaderboard\">\n <LeaderboardWidget\n title=\"Leaderboard\"\n description=\"Billable and non-billable time record leaders by different criteria.\"\n groupBy={LEADERBOARD_GROUP_BY}\n rows={LEADERBOARD.map((row) => ({\n label: row.name,\n value: formatHours(row.value),\n percentOfMax: (row.value / maxHours) * 100,\n billableShare: (row.billable / row.value) * 100,\n }))}\n />\n </Paper>\n </StyledTimeGrid>\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,IAAkBC,QAAQ,QAAQ,OAAO;AAErD,OAAOC,MAAM,MAAM,mBAAmB;AAEtC,SACEC,yBAAyB,EACzBC,qBAAqB,EACrBC,iBAAiB,EACjBC,2BAA2B,EAC3BC,gBAAgB,EAChBC,cAAc,EACdC,eAAe,EACfC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AA8D,aAAA,CAAC1C,KAAK;IAACmD,IAAI,EAAC,SAAS;IAACqC,SAAS,EAAC;EAAkB,gBAChD5G,KAAA,CAAA8D,aAAA,CAACnC,iBAAiB;IAChBkF,KAAK,EAAC,aAAa;IACnBf,WAAW,EAAC,sEAAsE;IAClFkB,OAAO,EAAE1D,oBAAqB;IAC9BV,IAAI,EAAElC,WAAW,CAACmC,GAAG,CAAEC,GAAG,KAAM;MAC9BuG,KAAK,EAAEvG,GAAG,CAACN,IAAI;MACfE,KAAK,EAAEpB,WAAW,CAACwB,GAAG,CAACJ,KAAK,CAAC;MAC7BqH,YAAY,EAAGjH,GAAG,CAACJ,KAAK,GAAGuG,QAAQ,GAAI,GAAG;MAC1Ce,aAAa,EAAGlH,GAAG,CAAC8G,QAAQ,GAAG9G,GAAG,CAACJ,KAAK,GAAI;IAC9C,CAAC,CAAC;EAAE,CACL,CACI,CACO,CAAC;AAErB,CAAC","ignoreList":[]}
@@ -0,0 +1,171 @@
1
+ export interface WidgetListRow {
2
+ name: string;
3
+ value: number;
4
+ }
5
+ export declare const ACTIVE_PROJECTS_TOTAL = 34;
6
+ export declare const ACTIVE_PROJECTS_BY_LEADER: WidgetListRow[];
7
+ export declare const OPEN_TASKS_TOTAL = 117;
8
+ export declare const OPEN_TASKS_BY_PROJECT: WidgetListRow[];
9
+ export declare const DAILY_OPEN_TASKS: number[];
10
+ export interface DailyCreatedAndCompleted {
11
+ created: number;
12
+ completed: number;
13
+ }
14
+ export declare const DAILY_CREATED_AND_COMPLETED: DailyCreatedAndCompleted[];
15
+ export declare const DAILY_X_LABELS: string[];
16
+ export declare const TIME_SERIES_LABELS: string[];
17
+ export interface MonthlyHours {
18
+ label: string;
19
+ hours: number[];
20
+ }
21
+ export declare const MONTHLY_TRACKED_HOURS: MonthlyHours[];
22
+ export declare const TRACKED_HOURS_TOTAL = 3020.74;
23
+ export declare const TRACKED_HOURS_BY_JOB_TYPE: WidgetListRow[];
24
+ export declare const HOURS_BY_STATUS: {
25
+ nonBillable: number;
26
+ billable: number;
27
+ pendingPayment: number;
28
+ paid: number;
29
+ };
30
+ export interface LeaderboardRow {
31
+ name: string;
32
+ value: number;
33
+ billable: number;
34
+ }
35
+ export declare const LEADERBOARD: LeaderboardRow[];
36
+ export interface UninvoicedProject {
37
+ id: number;
38
+ name: string;
39
+ budget: number;
40
+ interval: "whole_project" | "monthly";
41
+ type: "fixed" | "pay_as_you_go";
42
+ expenses: number;
43
+ hours: number;
44
+ uninvoiced: number;
45
+ }
46
+ export interface UninvoicedTotal {
47
+ count: number;
48
+ budget: number;
49
+ hours: number;
50
+ expenses: number;
51
+ uninvoiced: number;
52
+ }
53
+ export interface UninvoicedCompany {
54
+ id: number;
55
+ name: string;
56
+ is_without_client: boolean;
57
+ total: UninvoicedTotal;
58
+ projects: UninvoicedProject[];
59
+ }
60
+ export interface UninvoicedCurrencyReport {
61
+ total: number;
62
+ companies: UninvoicedCompany[];
63
+ }
64
+ export declare const UNINVOICED_EUR: UninvoicedCurrencyReport;
65
+ export interface PaymentRow {
66
+ id: number;
67
+ invoice_id: number;
68
+ invoice_number: string;
69
+ company_id: number;
70
+ company_name: string;
71
+ currency_id: number;
72
+ currency_code: string;
73
+ amount: number;
74
+ paid_on: string;
75
+ }
76
+ export interface PaymentsGroup {
77
+ label: string;
78
+ payments: PaymentRow[];
79
+ total: Record<number, number>;
80
+ }
81
+ export declare const CURRENCIES: Record<number, {
82
+ code: string;
83
+ decimal_spaces: number;
84
+ }>;
85
+ export declare const PAYMENTS_2026: PaymentsGroup;
86
+ export interface ProjectsOverview {
87
+ completed_tasks: number;
88
+ total_tasks: number;
89
+ tracked_time: number;
90
+ estimated_time: number;
91
+ spent: number;
92
+ budget: number;
93
+ }
94
+ export declare const PROJECTS_OVERVIEW: Record<string, ProjectsOverview>;
95
+ export declare const ASSIGNMENT_COUNTS: {
96
+ completedProjects: number;
97
+ completedTasks: number;
98
+ overdueTasks: number;
99
+ underestimatedTasks: number;
100
+ highPriorityTasks: number;
101
+ noAssignee: number;
102
+ withoutDueDate: number;
103
+ withoutEstimation: number;
104
+ };
105
+ export interface FilterOption {
106
+ id: number;
107
+ name: string;
108
+ }
109
+ export declare const PROJECT_FILTER_OPTIONS: Record<"category" | "client" | "label" | "leader", FilterOption[]>;
110
+ export declare const PRESET_COUNTS: {
111
+ ProjectsFilter: number;
112
+ AssignmentFilter: number;
113
+ TrackingFilter: number;
114
+ };
115
+ export interface AvailabilityType {
116
+ id: number;
117
+ name: string;
118
+ }
119
+ export interface AvailabilityRecordRow {
120
+ id: number;
121
+ user_id: number;
122
+ availability_type_id: number;
123
+ start_date: string;
124
+ end_date: string;
125
+ message: string;
126
+ working_days: number;
127
+ }
128
+ export interface AvailabilityPersonRow {
129
+ user_id: number;
130
+ display_name: string;
131
+ email: string;
132
+ days_by_type: Record<number, number>;
133
+ total: number;
134
+ records: AvailabilityRecordRow[];
135
+ }
136
+ export interface AvailabilityReport {
137
+ from: string;
138
+ to: string;
139
+ types: AvailabilityType[];
140
+ people: AvailabilityPersonRow[];
141
+ totals_by_type: Record<number, number>;
142
+ total: number;
143
+ }
144
+ export declare const AVAILABILITY_TODAY = "2026-09-29";
145
+ export declare const COMPANY_DAYS_OFF_2026: string[];
146
+ export type AvailabilityExportFormat = "totals" | "records";
147
+ export interface AvailabilityExportColumns {
148
+ columns: string[];
149
+ appendTypeColumns: boolean;
150
+ }
151
+ export declare const AVAILABILITY_EXPORT_COLUMNS: Record<AvailabilityExportFormat, AvailabilityExportColumns>;
152
+ export declare const AVAILABILITY_EXPORT_STATUSES: readonly ["Past", "Current", "Upcoming"];
153
+ export declare const AVAILABILITY_2026: AvailabilityReport;
154
+ export declare const AVAILABILITY_2026_MANY_TYPES: AvailabilityReport;
155
+ export interface AvailabilityTeam {
156
+ id: number;
157
+ name: string;
158
+ members: number[];
159
+ }
160
+ export declare const AVAILABILITY_TEAMS: AvailabilityTeam[];
161
+ export interface AvailabilityPersonProfile {
162
+ user_id: number;
163
+ email: string;
164
+ extra_email_count: number;
165
+ joined_on: string;
166
+ team_id: number;
167
+ weekly_capacity: number;
168
+ online: boolean;
169
+ }
170
+ export declare const AVAILABILITY_PROFILES: AvailabilityPersonProfile[];
171
+ //# sourceMappingURL=data.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../../src/presentation/reports/data.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,qBAAqB,KAAK,CAAC;AAExC,eAAO,MAAM,yBAAyB,EAAE,aAAa,EAepD,CAAC;AAEF,eAAO,MAAM,gBAAgB,MAAM,CAAC;AAEpC,eAAO,MAAM,qBAAqB,EAAE,aAAa,EAmChD,CAAC;AAGF,eAAO,MAAM,gBAAgB,EAAE,MAAM,EAOpC,CAAC;AAGF,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,2BAA2B,EAAE,wBAAwB,EA2FjE,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,MAAM,EAwBlC,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,MAAM,EAOtC,CAAC;AAGF,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB;AAED,eAAO,MAAM,qBAAqB,EAAE,YAAY,EAa/C,CAAC;AAGF,eAAO,MAAM,mBAAmB,UAAU,CAAC;AAE3C,eAAO,MAAM,yBAAyB,EAAE,aAAa,EAiBpD,CAAC;AAGF,eAAO,MAAM,eAAe;;;;;CAK3B,CAAC;AAGF,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MA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