@activecollab/components 2.0.483 → 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.
- package/dist/cjs/components/Select/Select.js +34 -5
- package/dist/cjs/components/Select/Select.js.map +1 -1
- package/dist/cjs/presentation/reports/allReports.js +223 -0
- package/dist/cjs/presentation/reports/allReports.js.map +1 -0
- package/dist/cjs/presentation/reports/availability.js +685 -0
- package/dist/cjs/presentation/reports/availability.js.map +1 -0
- package/dist/cjs/presentation/reports/availabilityExport.js +117 -0
- package/dist/cjs/presentation/reports/availabilityExport.js.map +1 -0
- package/dist/cjs/presentation/reports/controls.js +236 -0
- package/dist/cjs/presentation/reports/controls.js.map +1 -0
- package/dist/cjs/presentation/reports/dashboards.js +434 -0
- package/dist/cjs/presentation/reports/dashboards.js.map +1 -0
- package/dist/cjs/presentation/reports/data.js +2309 -0
- package/dist/cjs/presentation/reports/data.js.map +1 -0
- package/dist/cjs/presentation/reports/payments.js +294 -0
- package/dist/cjs/presentation/reports/payments.js.map +1 -0
- package/dist/cjs/presentation/reports/uninvoiced.js +223 -0
- package/dist/cjs/presentation/reports/uninvoiced.js.map +1 -0
- package/dist/cjs/presentation/shared/PageStickyHeader.js +76 -0
- package/dist/cjs/presentation/shared/PageStickyHeader.js.map +1 -0
- package/dist/cjs/presentation/shared/PresentationShell.js +22 -14
- package/dist/cjs/presentation/shared/PresentationShell.js.map +1 -1
- package/dist/cjs/presentation/shared/UserDetailsDialog.js +18 -5
- package/dist/cjs/presentation/shared/UserDetailsDialog.js.map +1 -1
- package/dist/cjs/presentation/shared/dashboardWidgets.js +116 -71
- package/dist/cjs/presentation/shared/dashboardWidgets.js.map +1 -1
- package/dist/cjs/presentation/shared/headers.js +7 -2
- package/dist/cjs/presentation/shared/headers.js.map +1 -1
- package/dist/cjs/presentation/shared/index.js +22 -0
- package/dist/cjs/presentation/shared/index.js.map +1 -1
- package/dist/esm/components/Select/Select.d.ts.map +1 -1
- package/dist/esm/components/Select/Select.js +32 -5
- package/dist/esm/components/Select/Select.js.map +1 -1
- package/dist/esm/presentation/reports/allReports.d.ts +3 -0
- package/dist/esm/presentation/reports/allReports.d.ts.map +1 -0
- package/dist/esm/presentation/reports/allReports.js +210 -0
- package/dist/esm/presentation/reports/allReports.js.map +1 -0
- package/dist/esm/presentation/reports/availability.d.ts +9 -0
- package/dist/esm/presentation/reports/availability.d.ts.map +1 -0
- package/dist/esm/presentation/reports/availability.js +532 -0
- package/dist/esm/presentation/reports/availability.js.map +1 -0
- package/dist/esm/presentation/reports/availabilityExport.d.ts +17 -0
- package/dist/esm/presentation/reports/availabilityExport.d.ts.map +1 -0
- package/dist/esm/presentation/reports/availabilityExport.js +97 -0
- package/dist/esm/presentation/reports/availabilityExport.js.map +1 -0
- package/dist/esm/presentation/reports/controls.d.ts +50 -0
- package/dist/esm/presentation/reports/controls.d.ts.map +1 -0
- package/dist/esm/presentation/reports/controls.js +205 -0
- package/dist/esm/presentation/reports/controls.js.map +1 -0
- package/dist/esm/presentation/reports/dashboards.d.ts +4 -0
- package/dist/esm/presentation/reports/dashboards.d.ts.map +1 -0
- package/dist/esm/presentation/reports/dashboards.js +390 -0
- package/dist/esm/presentation/reports/dashboards.js.map +1 -0
- package/dist/esm/presentation/reports/data.d.ts +171 -0
- package/dist/esm/presentation/reports/data.d.ts.map +1 -0
- package/dist/esm/presentation/reports/data.js +2303 -0
- package/dist/esm/presentation/reports/data.js.map +1 -0
- package/dist/esm/presentation/reports/payments.d.ts +3 -0
- package/dist/esm/presentation/reports/payments.d.ts.map +1 -0
- package/dist/esm/presentation/reports/payments.js +235 -0
- package/dist/esm/presentation/reports/payments.js.map +1 -0
- package/dist/esm/presentation/reports/uninvoiced.d.ts +3 -0
- package/dist/esm/presentation/reports/uninvoiced.d.ts.map +1 -0
- package/dist/esm/presentation/reports/uninvoiced.js +208 -0
- package/dist/esm/presentation/reports/uninvoiced.js.map +1 -0
- package/dist/esm/presentation/shared/PageStickyHeader.d.ts +10 -0
- package/dist/esm/presentation/shared/PageStickyHeader.d.ts.map +1 -0
- package/dist/esm/presentation/shared/PageStickyHeader.js +70 -0
- package/dist/esm/presentation/shared/PageStickyHeader.js.map +1 -0
- package/dist/esm/presentation/shared/PresentationShell.d.ts +2 -1
- package/dist/esm/presentation/shared/PresentationShell.d.ts.map +1 -1
- package/dist/esm/presentation/shared/PresentationShell.js +22 -14
- package/dist/esm/presentation/shared/PresentationShell.js.map +1 -1
- package/dist/esm/presentation/shared/UserDetailsDialog.d.ts +4 -1
- package/dist/esm/presentation/shared/UserDetailsDialog.d.ts.map +1 -1
- package/dist/esm/presentation/shared/UserDetailsDialog.js +18 -5
- package/dist/esm/presentation/shared/UserDetailsDialog.js.map +1 -1
- package/dist/esm/presentation/shared/dashboardWidgets.d.ts +14 -1
- package/dist/esm/presentation/shared/dashboardWidgets.d.ts.map +1 -1
- package/dist/esm/presentation/shared/dashboardWidgets.js +107 -68
- package/dist/esm/presentation/shared/dashboardWidgets.js.map +1 -1
- package/dist/esm/presentation/shared/headers.d.ts +2 -1
- package/dist/esm/presentation/shared/headers.d.ts.map +1 -1
- package/dist/esm/presentation/shared/headers.js +7 -2
- package/dist/esm/presentation/shared/headers.js.map +1 -1
- package/dist/esm/presentation/shared/index.d.ts +4 -2
- package/dist/esm/presentation/shared/index.d.ts.map +1 -1
- package/dist/esm/presentation/shared/index.js +2 -1
- package/dist/esm/presentation/shared/index.js.map +1 -1
- package/dist/index.js +34 -5
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import styled from "styled-components";
|
|
3
|
+
import { toFilterData, StyledReportToolbar, ControlGroup, ReportFilter, ExportButton } from "./controls";
|
|
4
|
+
import { UNINVOICED_EUR } from "./data";
|
|
5
|
+
import { Chip } from "../../components/Chip";
|
|
6
|
+
import { DisplayCurrency, DisplayHours, DisplayNumber } from "../../components/Display";
|
|
7
|
+
import { IconButton } from "../../components/IconButton";
|
|
8
|
+
import { DollarCheckmarkIcon, DollarDocumentPlusIcon } from "../../components/Icons";
|
|
9
|
+
import { Paper } from "../../components/Paper";
|
|
10
|
+
import { Tooltip } from "../../components/Tooltip";
|
|
11
|
+
import { Body2, Caption1 } from "../../components/Typography";
|
|
12
|
+
import { formatNumber } from "../../utils";
|
|
13
|
+
import { FloatingControls, LG, PageHeader, PresentationShell } from "../shared";
|
|
14
|
+
const UNINVOICED_FILTER_DATA = [toFilterData("status", "Status", "status", [{
|
|
15
|
+
id: 1,
|
|
16
|
+
name: "Active Projects"
|
|
17
|
+
}, {
|
|
18
|
+
id: 2,
|
|
19
|
+
name: "Recently Completed"
|
|
20
|
+
}]), toFilterData("budget_type", "Budget Type", "budget type", [{
|
|
21
|
+
id: 1,
|
|
22
|
+
name: "Fixed Budget"
|
|
23
|
+
}, {
|
|
24
|
+
id: 2,
|
|
25
|
+
name: "Time and Expenses"
|
|
26
|
+
}])];
|
|
27
|
+
const BUDGET_TYPE_NAMES = {
|
|
28
|
+
fixed: "Fixed Price",
|
|
29
|
+
pay_as_you_go: "Time and Expenses"
|
|
30
|
+
};
|
|
31
|
+
const StyledUninvoiced = styled(Paper).withConfig({
|
|
32
|
+
displayName: "uninvoiced__StyledUninvoiced",
|
|
33
|
+
componentId: "sc-1u36mr3-0"
|
|
34
|
+
})(["display:flex;flex-direction:column;height:100%;margin-bottom:32px;padding:0 8px;.company{margin-bottom:16px;}.company:first-child{padding-top:8px;}.company-header,.company-footer{display:flex;align-items:center;justify-content:space-between;height:40px;padding:8px;box-sizing:border-box;overflow:hidden;}.company-name{display:flex;align-items:center;gap:8px;min-width:0;}.company-chip{flex-shrink:0;}.row{display:flex;align-items:center;justify-content:space-between;gap:16px;height:40px;padding:0 8px;border-radius:8px;box-sizing:border-box;}.row.striped{background-color:var(--color-theme-200);}.row-name{display:flex;align-items:center;width:100%;min-width:0;overflow:hidden;text-decoration:none;cursor:pointer;}.cells{display:flex;align-items:center;gap:8px;}.cell{display:none;align-items:center;justify-content:flex-end;flex-shrink:0;@media (min-width:", "){display:flex;}}.cell.always{display:flex;}.w-type{width:140px;}.w-budget,.w-expenses{width:112px;}.w-hours{width:80px;}.w-uninvoiced{width:120px;}.w-action{display:flex;width:96px;}.action-button{color:var(--color-theme-600);}.action-button.spaced{margin-right:4px;}"], LG);
|
|
35
|
+
const UninvoicedActions = _ref => {
|
|
36
|
+
let markAsPaid = _ref.markAsPaid;
|
|
37
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
38
|
+
className: "cell always w-action"
|
|
39
|
+
}, markAsPaid ? /*#__PURE__*/React.createElement(Tooltip, {
|
|
40
|
+
title: "Mark as Paid"
|
|
41
|
+
}, /*#__PURE__*/React.createElement(IconButton, {
|
|
42
|
+
variant: "text gray",
|
|
43
|
+
className: "action-button spaced"
|
|
44
|
+
}, /*#__PURE__*/React.createElement(DollarCheckmarkIcon, null))) : null, /*#__PURE__*/React.createElement(Tooltip, {
|
|
45
|
+
title: "Create Invoice"
|
|
46
|
+
}, /*#__PURE__*/React.createElement(IconButton, {
|
|
47
|
+
variant: "text gray",
|
|
48
|
+
className: "action-button"
|
|
49
|
+
}, /*#__PURE__*/React.createElement(DollarDocumentPlusIcon, null))));
|
|
50
|
+
};
|
|
51
|
+
const UninvoicedRow = _ref2 => {
|
|
52
|
+
let project = _ref2.project,
|
|
53
|
+
striped = _ref2.striped;
|
|
54
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
55
|
+
className: striped ? "row striped" : "row"
|
|
56
|
+
}, /*#__PURE__*/React.createElement("a", {
|
|
57
|
+
className: "row-name"
|
|
58
|
+
}, /*#__PURE__*/React.createElement(Body2, {
|
|
59
|
+
overflow: "truncate",
|
|
60
|
+
whitespace: "no-wrap",
|
|
61
|
+
color: "theme-primary"
|
|
62
|
+
}, project.name)), /*#__PURE__*/React.createElement("div", {
|
|
63
|
+
className: "cells"
|
|
64
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
65
|
+
className: "cell w-type"
|
|
66
|
+
}, /*#__PURE__*/React.createElement(Body2, null, BUDGET_TYPE_NAMES[project.type])), /*#__PURE__*/React.createElement("span", {
|
|
67
|
+
className: "cell w-budget"
|
|
68
|
+
}, project.budget > 0 ? /*#__PURE__*/React.createElement(Tooltip, {
|
|
69
|
+
title: formatNumber(project.budget, ",", ".", false, 2) + " per month",
|
|
70
|
+
disable: project.interval === "whole_project"
|
|
71
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
72
|
+
className: "cell always"
|
|
73
|
+
}, /*#__PURE__*/React.createElement(DisplayNumber, {
|
|
74
|
+
variant: "Body 2",
|
|
75
|
+
format: "short",
|
|
76
|
+
disableTooltip: project.interval !== "whole_project",
|
|
77
|
+
value: project.budget
|
|
78
|
+
}), project.type === "pay_as_you_go" && project.interval !== "whole_project" ? /*#__PURE__*/React.createElement(Body2, null, "/", project.interval[0]) : null)) : null), /*#__PURE__*/React.createElement("span", {
|
|
79
|
+
className: "cell w-hours"
|
|
80
|
+
}, project.hours > 0 ? /*#__PURE__*/React.createElement(DisplayHours, {
|
|
81
|
+
variant: "Body 2",
|
|
82
|
+
trimZeroMinutes: true,
|
|
83
|
+
value: project.hours
|
|
84
|
+
}) : null), /*#__PURE__*/React.createElement("span", {
|
|
85
|
+
className: "cell w-expenses"
|
|
86
|
+
}, project.expenses > 0 ? /*#__PURE__*/React.createElement(DisplayNumber, {
|
|
87
|
+
variant: "Body 2",
|
|
88
|
+
format: "short",
|
|
89
|
+
value: project.expenses
|
|
90
|
+
}) : null), /*#__PURE__*/React.createElement("span", {
|
|
91
|
+
className: "cell always w-uninvoiced"
|
|
92
|
+
}, project.uninvoiced > 0 ? /*#__PURE__*/React.createElement(DisplayNumber, {
|
|
93
|
+
variant: "Body 2",
|
|
94
|
+
format: "short",
|
|
95
|
+
value: project.uninvoiced
|
|
96
|
+
}) : null), /*#__PURE__*/React.createElement(UninvoicedActions, {
|
|
97
|
+
markAsPaid: project.type === "pay_as_you_go"
|
|
98
|
+
})));
|
|
99
|
+
};
|
|
100
|
+
const UninvoicedGroup = _ref3 => {
|
|
101
|
+
let company = _ref3.company;
|
|
102
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
103
|
+
className: "company"
|
|
104
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
105
|
+
className: "company-header"
|
|
106
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
107
|
+
className: "company-name"
|
|
108
|
+
}, /*#__PURE__*/React.createElement(Caption1, {
|
|
109
|
+
weight: "bold",
|
|
110
|
+
overflow: "truncate",
|
|
111
|
+
whitespace: "no-wrap"
|
|
112
|
+
}, company.name), /*#__PURE__*/React.createElement(Chip, {
|
|
113
|
+
label: String(company.total.count),
|
|
114
|
+
size: "small",
|
|
115
|
+
backgroundColor: "var(--color-theme-300)",
|
|
116
|
+
className: "company-chip",
|
|
117
|
+
typographyProps: {
|
|
118
|
+
variant: "Caption 1"
|
|
119
|
+
}
|
|
120
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
121
|
+
className: "cells"
|
|
122
|
+
}, /*#__PURE__*/React.createElement(Caption1, {
|
|
123
|
+
weight: "bold",
|
|
124
|
+
className: "cell w-type"
|
|
125
|
+
}, "Budget Type"), /*#__PURE__*/React.createElement(Caption1, {
|
|
126
|
+
weight: "bold",
|
|
127
|
+
className: "cell w-budget"
|
|
128
|
+
}, "Budget"), /*#__PURE__*/React.createElement(Caption1, {
|
|
129
|
+
weight: "bold",
|
|
130
|
+
className: "cell w-hours"
|
|
131
|
+
}, "Hours"), /*#__PURE__*/React.createElement(Caption1, {
|
|
132
|
+
weight: "bold",
|
|
133
|
+
className: "cell w-expenses"
|
|
134
|
+
}, "Expenses"), /*#__PURE__*/React.createElement(Caption1, {
|
|
135
|
+
weight: "bold",
|
|
136
|
+
className: "cell always w-uninvoiced"
|
|
137
|
+
}, "Uninvoiced"), /*#__PURE__*/React.createElement(Caption1, {
|
|
138
|
+
weight: "bold",
|
|
139
|
+
className: "cell always w-action"
|
|
140
|
+
}, "Action"))), company.projects.map((project, index) => /*#__PURE__*/React.createElement(UninvoicedRow, {
|
|
141
|
+
key: project.id,
|
|
142
|
+
project: project,
|
|
143
|
+
striped: index % 2 === 0
|
|
144
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
145
|
+
className: "company-footer"
|
|
146
|
+
}, /*#__PURE__*/React.createElement(Body2, {
|
|
147
|
+
weight: "bold",
|
|
148
|
+
overflow: "truncate",
|
|
149
|
+
whitespace: "no-wrap"
|
|
150
|
+
}, "Total:"), /*#__PURE__*/React.createElement("div", {
|
|
151
|
+
className: "cells"
|
|
152
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
153
|
+
className: "cell w-budget"
|
|
154
|
+
}, company.total.budget ? /*#__PURE__*/React.createElement(DisplayNumber, {
|
|
155
|
+
variant: "Body 2",
|
|
156
|
+
weight: "bold",
|
|
157
|
+
format: "short",
|
|
158
|
+
value: company.total.budget
|
|
159
|
+
}) : null), /*#__PURE__*/React.createElement("span", {
|
|
160
|
+
className: "cell w-hours"
|
|
161
|
+
}, company.total.hours ? /*#__PURE__*/React.createElement(DisplayHours, {
|
|
162
|
+
variant: "Body 2",
|
|
163
|
+
weight: "bold",
|
|
164
|
+
trimZeroMinutes: true,
|
|
165
|
+
value: company.total.hours
|
|
166
|
+
}) : null), /*#__PURE__*/React.createElement("span", {
|
|
167
|
+
className: "cell w-expenses"
|
|
168
|
+
}, company.total.expenses ? /*#__PURE__*/React.createElement(DisplayNumber, {
|
|
169
|
+
variant: "Body 2",
|
|
170
|
+
weight: "bold",
|
|
171
|
+
format: "short",
|
|
172
|
+
value: company.total.expenses
|
|
173
|
+
}) : null), /*#__PURE__*/React.createElement("span", {
|
|
174
|
+
className: "cell always w-uninvoiced"
|
|
175
|
+
}, /*#__PURE__*/React.createElement(DisplayNumber, {
|
|
176
|
+
variant: "Body 2",
|
|
177
|
+
weight: "bold",
|
|
178
|
+
format: "short",
|
|
179
|
+
value: company.total.uninvoiced
|
|
180
|
+
})), /*#__PURE__*/React.createElement(UninvoicedActions, {
|
|
181
|
+
markAsPaid: company.projects.some(project => project.type === "pay_as_you_go")
|
|
182
|
+
}))));
|
|
183
|
+
};
|
|
184
|
+
export const UninvoicedPage = () => /*#__PURE__*/React.createElement(PresentationShell, {
|
|
185
|
+
activeMenuItem: "Reports",
|
|
186
|
+
header: /*#__PURE__*/React.createElement(PageHeader, {
|
|
187
|
+
title: "Uninvoiced",
|
|
188
|
+
back: true
|
|
189
|
+
}),
|
|
190
|
+
floating: /*#__PURE__*/React.createElement(FloatingControls, null)
|
|
191
|
+
}, /*#__PURE__*/React.createElement(StyledReportToolbar, null, /*#__PURE__*/React.createElement(Body2, {
|
|
192
|
+
weight: "bold",
|
|
193
|
+
className: "toolbar-total"
|
|
194
|
+
}, /*#__PURE__*/React.createElement("span", null, "Total:"), /*#__PURE__*/React.createElement(DisplayCurrency, {
|
|
195
|
+
variant: "Body 2",
|
|
196
|
+
weight: "bold",
|
|
197
|
+
format: "short",
|
|
198
|
+
value: UNINVOICED_EUR.total,
|
|
199
|
+
currencyCode: "EUR"
|
|
200
|
+
})), /*#__PURE__*/React.createElement(ControlGroup, null, /*#__PURE__*/React.createElement(ControlGroup, {
|
|
201
|
+
divided: true
|
|
202
|
+
}, /*#__PURE__*/React.createElement(ExportButton, null)), /*#__PURE__*/React.createElement(ControlGroup, null, /*#__PURE__*/React.createElement(ReportFilter, {
|
|
203
|
+
data: UNINVOICED_FILTER_DATA
|
|
204
|
+
})))), /*#__PURE__*/React.createElement(StyledUninvoiced, null, UNINVOICED_EUR.companies.map(company => /*#__PURE__*/React.createElement(UninvoicedGroup, {
|
|
205
|
+
key: company.id,
|
|
206
|
+
company: company
|
|
207
|
+
}))));
|
|
208
|
+
//# sourceMappingURL=uninvoiced.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uninvoiced.js","names":["React","styled","toFilterData","StyledReportToolbar","ControlGroup","ReportFilter","ExportButton","UNINVOICED_EUR","Chip","DisplayCurrency","DisplayHours","DisplayNumber","IconButton","DollarCheckmarkIcon","DollarDocumentPlusIcon","Paper","Tooltip","Body2","Caption1","formatNumber","FloatingControls","LG","PageHeader","PresentationShell","UNINVOICED_FILTER_DATA","id","name","BUDGET_TYPE_NAMES","fixed","pay_as_you_go","StyledUninvoiced","withConfig","displayName","componentId","UninvoicedActions","_ref","markAsPaid","createElement","className","title","variant","UninvoicedRow","_ref2","project","striped","overflow","whitespace","color","type","budget","disable","interval","format","disableTooltip","value","hours","trimZeroMinutes","expenses","uninvoiced","UninvoicedGroup","_ref3","company","weight","label","String","total","count","size","backgroundColor","typographyProps","projects","map","index","key","some","UninvoicedPage","activeMenuItem","header","back","floating","currencyCode","divided","data","companies"],"sources":["../../../../src/presentation/reports/uninvoiced.tsx"],"sourcesContent":["import React, { ReactElement } from \"react\";\n\nimport styled from \"styled-components\";\n\nimport {\n toFilterData,\n StyledReportToolbar,\n ControlGroup,\n ReportFilter,\n ExportButton,\n} from \"./controls\";\nimport { UninvoicedCompany, UninvoicedProject, UNINVOICED_EUR } from \"./data\";\nimport { Chip } from \"../../components/Chip\";\nimport {\n DisplayCurrency,\n DisplayHours,\n DisplayNumber,\n} from \"../../components/Display\";\nimport { DataType } from \"../../components/Filter\";\nimport { IconButton } from \"../../components/IconButton\";\nimport {\n DollarCheckmarkIcon,\n DollarDocumentPlusIcon,\n} from \"../../components/Icons\";\nimport { Paper } from \"../../components/Paper\";\nimport { Tooltip } from \"../../components/Tooltip\";\nimport { Body2, Caption1 } from \"../../components/Typography\";\nimport { formatNumber } from \"../../utils\";\nimport { FloatingControls, LG, PageHeader, PresentationShell } from \"../shared\";\n\nconst UNINVOICED_FILTER_DATA: DataType[] = [\n toFilterData(\"status\", \"Status\", \"status\", [\n { id: 1, name: \"Active Projects\" },\n { id: 2, name: \"Recently Completed\" },\n ]),\n toFilterData(\"budget_type\", \"Budget Type\", \"budget type\", [\n { id: 1, name: \"Fixed Budget\" },\n { id: 2, name: \"Time and Expenses\" },\n ]),\n];\n\nconst BUDGET_TYPE_NAMES: Record<UninvoicedProject[\"type\"], string> = {\n fixed: \"Fixed Price\",\n pay_as_you_go: \"Time and Expenses\",\n};\n\nconst StyledUninvoiced = styled(Paper)`\n display: flex;\n flex-direction: column;\n height: 100%;\n margin-bottom: 32px;\n padding: 0 8px;\n\n .company {\n margin-bottom: 16px;\n }\n\n .company:first-child {\n padding-top: 8px;\n }\n\n .company-header,\n .company-footer {\n display: flex;\n align-items: center;\n justify-content: space-between;\n height: 40px;\n padding: 8px;\n box-sizing: border-box;\n overflow: hidden;\n }\n\n .company-name {\n display: flex;\n align-items: center;\n gap: 8px;\n min-width: 0;\n }\n\n .company-chip {\n flex-shrink: 0;\n }\n\n .row {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 16px;\n height: 40px;\n padding: 0 8px;\n border-radius: 8px;\n box-sizing: border-box;\n }\n\n .row.striped {\n background-color: var(--color-theme-200);\n }\n\n .row-name {\n display: flex;\n align-items: center;\n width: 100%;\n min-width: 0;\n overflow: hidden;\n text-decoration: none;\n cursor: pointer;\n }\n\n .cells {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n\n .cell {\n display: none;\n align-items: center;\n justify-content: flex-end;\n flex-shrink: 0;\n\n @media (min-width: ${LG}) {\n display: flex;\n }\n }\n\n .cell.always {\n display: flex;\n }\n\n .w-type {\n width: 140px;\n }\n\n .w-budget,\n .w-expenses {\n width: 112px;\n }\n\n .w-hours {\n width: 80px;\n }\n\n .w-uninvoiced {\n width: 120px;\n }\n\n .w-action {\n display: flex;\n width: 96px;\n }\n\n .action-button {\n color: var(--color-theme-600);\n }\n\n .action-button.spaced {\n margin-right: 4px;\n }\n`;\n\nconst UninvoicedActions = ({\n markAsPaid,\n}: {\n markAsPaid: boolean;\n}): ReactElement => (\n <span className=\"cell always w-action\">\n {markAsPaid ? (\n <Tooltip title=\"Mark as Paid\">\n <IconButton variant=\"text gray\" className=\"action-button spaced\">\n <DollarCheckmarkIcon />\n </IconButton>\n </Tooltip>\n ) : null}\n <Tooltip title=\"Create Invoice\">\n <IconButton variant=\"text gray\" className=\"action-button\">\n <DollarDocumentPlusIcon />\n </IconButton>\n </Tooltip>\n </span>\n);\n\nconst UninvoicedRow = ({\n project,\n striped,\n}: {\n project: UninvoicedProject;\n striped: boolean;\n}): ReactElement => (\n <div className={striped ? \"row striped\" : \"row\"}>\n <a className=\"row-name\">\n <Body2 overflow=\"truncate\" whitespace=\"no-wrap\" color=\"theme-primary\">\n {project.name}\n </Body2>\n </a>\n <div className=\"cells\">\n <span className=\"cell w-type\">\n <Body2>{BUDGET_TYPE_NAMES[project.type]}</Body2>\n </span>\n <span className=\"cell w-budget\">\n {project.budget > 0 ? (\n <Tooltip\n title={`${formatNumber(\n project.budget,\n \",\",\n \".\",\n false,\n 2\n )} per month`}\n disable={project.interval === \"whole_project\"}\n >\n <span className=\"cell always\">\n <DisplayNumber\n variant=\"Body 2\"\n format=\"short\"\n disableTooltip={project.interval !== \"whole_project\"}\n value={project.budget}\n />\n {project.type === \"pay_as_you_go\" &&\n project.interval !== \"whole_project\" ? (\n <Body2>/{project.interval[0]}</Body2>\n ) : null}\n </span>\n </Tooltip>\n ) : null}\n </span>\n <span className=\"cell w-hours\">\n {project.hours > 0 ? (\n <DisplayHours\n variant=\"Body 2\"\n trimZeroMinutes\n value={project.hours}\n />\n ) : null}\n </span>\n <span className=\"cell w-expenses\">\n {project.expenses > 0 ? (\n <DisplayNumber\n variant=\"Body 2\"\n format=\"short\"\n value={project.expenses}\n />\n ) : null}\n </span>\n <span className=\"cell always w-uninvoiced\">\n {project.uninvoiced > 0 ? (\n <DisplayNumber\n variant=\"Body 2\"\n format=\"short\"\n value={project.uninvoiced}\n />\n ) : null}\n </span>\n <UninvoicedActions markAsPaid={project.type === \"pay_as_you_go\"} />\n </div>\n </div>\n);\n\nconst UninvoicedGroup = ({\n company,\n}: {\n company: UninvoicedCompany;\n}): ReactElement => (\n <div className=\"company\">\n <div className=\"company-header\">\n <div className=\"company-name\">\n <Caption1 weight=\"bold\" overflow=\"truncate\" whitespace=\"no-wrap\">\n {company.name}\n </Caption1>\n <Chip\n label={String(company.total.count)}\n size=\"small\"\n backgroundColor=\"var(--color-theme-300)\"\n className=\"company-chip\"\n typographyProps={{ variant: \"Caption 1\" }}\n />\n </div>\n <div className=\"cells\">\n <Caption1 weight=\"bold\" className=\"cell w-type\">\n Budget Type\n </Caption1>\n <Caption1 weight=\"bold\" className=\"cell w-budget\">\n Budget\n </Caption1>\n <Caption1 weight=\"bold\" className=\"cell w-hours\">\n Hours\n </Caption1>\n <Caption1 weight=\"bold\" className=\"cell w-expenses\">\n Expenses\n </Caption1>\n <Caption1 weight=\"bold\" className=\"cell always w-uninvoiced\">\n Uninvoiced\n </Caption1>\n <Caption1 weight=\"bold\" className=\"cell always w-action\">\n Action\n </Caption1>\n </div>\n </div>\n {company.projects.map((project, index) => (\n <UninvoicedRow\n key={project.id}\n project={project}\n striped={index % 2 === 0}\n />\n ))}\n <div className=\"company-footer\">\n <Body2 weight=\"bold\" overflow=\"truncate\" whitespace=\"no-wrap\">\n Total:\n </Body2>\n <div className=\"cells\">\n <span className=\"cell w-budget\">\n {company.total.budget ? (\n <DisplayNumber\n variant=\"Body 2\"\n weight=\"bold\"\n format=\"short\"\n value={company.total.budget}\n />\n ) : null}\n </span>\n <span className=\"cell w-hours\">\n {company.total.hours ? (\n <DisplayHours\n variant=\"Body 2\"\n weight=\"bold\"\n trimZeroMinutes\n value={company.total.hours}\n />\n ) : null}\n </span>\n <span className=\"cell w-expenses\">\n {company.total.expenses ? (\n <DisplayNumber\n variant=\"Body 2\"\n weight=\"bold\"\n format=\"short\"\n value={company.total.expenses}\n />\n ) : null}\n </span>\n <span className=\"cell always w-uninvoiced\">\n <DisplayNumber\n variant=\"Body 2\"\n weight=\"bold\"\n format=\"short\"\n value={company.total.uninvoiced}\n />\n </span>\n <UninvoicedActions\n markAsPaid={company.projects.some(\n (project) => project.type === \"pay_as_you_go\"\n )}\n />\n </div>\n </div>\n </div>\n);\n\nexport const UninvoicedPage = (): ReactElement => (\n <PresentationShell\n activeMenuItem=\"Reports\"\n header={<PageHeader title=\"Uninvoiced\" back />}\n floating={<FloatingControls />}\n >\n <StyledReportToolbar>\n <Body2 weight=\"bold\" className=\"toolbar-total\">\n <span>Total:</span>\n <DisplayCurrency\n variant=\"Body 2\"\n weight=\"bold\"\n format=\"short\"\n value={UNINVOICED_EUR.total}\n currencyCode=\"EUR\"\n />\n </Body2>\n <ControlGroup>\n <ControlGroup divided>\n <ExportButton />\n </ControlGroup>\n <ControlGroup>\n <ReportFilter data={UNINVOICED_FILTER_DATA} />\n </ControlGroup>\n </ControlGroup>\n </StyledReportToolbar>\n <StyledUninvoiced>\n {UNINVOICED_EUR.companies.map((company) => (\n <UninvoicedGroup key={company.id} company={company} />\n ))}\n </StyledUninvoiced>\n </PresentationShell>\n);\n"],"mappings":"AAAA,OAAOA,KAAK,MAAwB,OAAO;AAE3C,OAAOC,MAAM,MAAM,mBAAmB;AAEtC,SACEC,YAAY,EACZC,mBAAmB,EACnBC,YAAY,EACZC,YAAY,EACZC,YAAY,QACP,YAAY;AACnB,SAA+CC,cAAc,QAAQ,QAAQ;AAC7E,SAASC,IAAI,QAAQ,uBAAuB;AAC5C,SACEC,eAAe,EACfC,YAAY,EACZC,aAAa,QACR,0BAA0B;AAEjC,SAASC,UAAU,QAAQ,6BAA6B;AACxD,SACEC,mBAAmB,EACnBC,sBAAsB,QACjB,wBAAwB;AAC/B,SAASC,KAAK,QAAQ,wBAAwB;AAC9C,SAASC,OAAO,QAAQ,0BAA0B;AAClD,SAASC,KAAK,EAAEC,QAAQ,QAAQ,6BAA6B;AAC7D,SAASC,YAAY,QAAQ,aAAa;AAC1C,SAASC,gBAAgB,EAAEC,EAAE,EAAEC,UAAU,EAAEC,iBAAiB,QAAQ,WAAW;AAE/E,MAAMC,sBAAk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/C,cAAc,CAAC0D,KAAM;EAC5Be,YAAY,EAAC;AAAK,CACnB,CACI,CAAC,eACRhF,KAAA,CAAAqC,aAAA,CAACjC,YAAY,qBACXJ,KAAA,CAAAqC,aAAA,CAACjC,YAAY;EAAC6E,OAAO;AAAA,gBACnBjF,KAAA,CAAAqC,aAAA,CAAC/B,YAAY,MAAE,CACH,CAAC,eACfN,KAAA,CAAAqC,aAAA,CAACjC,YAAY,qBACXJ,KAAA,CAAAqC,aAAA,CAAChC,YAAY;EAAC6E,IAAI,EAAE1D;AAAuB,CAAE,CACjC,CACF,CACK,CAAC,eACtBxB,KAAA,CAAAqC,aAAA,CAACP,gBAAgB,QACdvB,cAAc,CAAC4E,SAAS,CAACZ,GAAG,CAAEV,OAAO,iBACpC7D,KAAA,CAAAqC,aAAA,CAACsB,eAAe;EAACc,GAAG,EAAEZ,OAAO,CAACpC,EAAG;EAACoC,OAAO,EAAEA;AAAQ,CAAE,CACtD,CACe,CACD,CACpB","ignoreList":[]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactElement, ReactNode, RefObject } from "react";
|
|
2
|
+
export interface PageStickyHeaderProps {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
}
|
|
5
|
+
export declare const PageStickyHeader: {
|
|
6
|
+
({ children, }: PageStickyHeaderProps): ReactElement;
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const usePageStickyCover: (ref: RefObject<HTMLElement>, enabled?: boolean) => void;
|
|
10
|
+
//# sourceMappingURL=PageStickyHeader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PageStickyHeader.d.ts","sourceRoot":"","sources":["../../../../src/presentation/shared/PageStickyHeader.tsx"],"names":[],"mappings":"AAAA,OAAc,EACZ,YAAY,EACZ,SAAS,EACT,SAAS,EAGV,MAAM,OAAO,CAAC;AAgDf,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,eAAO,MAAM,gBAAgB;oBAE1B,qBAAqB,GAAG,YAAY;;CA8BtC,CAAC;AAIF,eAAO,MAAM,kBAAkB,GAC7B,KAAK,SAAS,CAAC,WAAW,CAAC,EAC3B,iBAAc,KACb,IAwBF,CAAC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import React, { useLayoutEffect, useRef } from "react";
|
|
2
|
+
import ResizeObserver from "resize-observer-polyfill";
|
|
3
|
+
import styled from "styled-components";
|
|
4
|
+
import { SM } from "./tokens";
|
|
5
|
+
const HEIGHT_PROPERTY = "--page-sticky-header-height";
|
|
6
|
+
const COVER_PROPERTY = "--page-sticky-cover-below";
|
|
7
|
+
const FADE_PROPERTY = "--page-sticky-fade";
|
|
8
|
+
const StyledPageStickyHeader = styled.div.withConfig({
|
|
9
|
+
displayName: "PageStickyHeader__StyledPageStickyHeader",
|
|
10
|
+
componentId: "sc-1cdgym5-0"
|
|
11
|
+
})(["position:sticky;top:0;z-index:10;margin:0 -16px;padding:0 16px 16px;background:linear-gradient( to top,var(--body-bg-main-transparent),var(--body-bg-main) var(", ",1rem) );@media (min-width:", "){margin-right:-32px;padding-right:32px;}&::after{content:\"\";position:absolute;top:100%;left:0;right:0;height:var(", ",0px);pointer-events:none;background:linear-gradient( to bottom,var(--body-bg-main),var(--body-bg-main-transparent) );}> :last-child{margin-bottom:0;}"], FADE_PROPERTY, SM, COVER_PROPERTY);
|
|
12
|
+
export const PageStickyHeader = _ref => {
|
|
13
|
+
let children = _ref.children;
|
|
14
|
+
const ref = useRef(null);
|
|
15
|
+
useLayoutEffect(() => {
|
|
16
|
+
const header = ref.current;
|
|
17
|
+
const page = header == null ? void 0 : header.parentElement;
|
|
18
|
+
if (!header || !page) {
|
|
19
|
+
return undefined;
|
|
20
|
+
}
|
|
21
|
+
const scroller = page.closest("#right-window");
|
|
22
|
+
const publishHeight = () => {
|
|
23
|
+
const height = header.getBoundingClientRect().height + "px";
|
|
24
|
+
page.style.setProperty(HEIGHT_PROPERTY, height);
|
|
25
|
+
scroller == null || scroller.style.setProperty(HEIGHT_PROPERTY, height);
|
|
26
|
+
};
|
|
27
|
+
publishHeight();
|
|
28
|
+
const observer = new ResizeObserver(publishHeight);
|
|
29
|
+
observer.observe(header);
|
|
30
|
+
return () => {
|
|
31
|
+
observer.disconnect();
|
|
32
|
+
page.style.removeProperty(HEIGHT_PROPERTY);
|
|
33
|
+
scroller == null || scroller.style.removeProperty(HEIGHT_PROPERTY);
|
|
34
|
+
};
|
|
35
|
+
}, []);
|
|
36
|
+
return /*#__PURE__*/React.createElement(StyledPageStickyHeader, {
|
|
37
|
+
ref: ref,
|
|
38
|
+
"data-page-sticky-header": true
|
|
39
|
+
}, children);
|
|
40
|
+
};
|
|
41
|
+
PageStickyHeader.displayName = "PageStickyHeader";
|
|
42
|
+
export const usePageStickyCover = function (ref, enabled) {
|
|
43
|
+
if (enabled === void 0) {
|
|
44
|
+
enabled = true;
|
|
45
|
+
}
|
|
46
|
+
useLayoutEffect(() => {
|
|
47
|
+
var _scroller$querySelect;
|
|
48
|
+
const contentHeader = ref.current;
|
|
49
|
+
const scroller = contentHeader == null ? void 0 : contentHeader.closest("#right-window");
|
|
50
|
+
const page = scroller == null || (_scroller$querySelect = scroller.querySelector("[data-page-sticky-header]")) == null ? void 0 : _scroller$querySelect.parentElement;
|
|
51
|
+
if (!enabled || !contentHeader || !page) {
|
|
52
|
+
return undefined;
|
|
53
|
+
}
|
|
54
|
+
const publishCover = () => {
|
|
55
|
+
const _contentHeader$getBou = contentHeader.getBoundingClientRect(),
|
|
56
|
+
height = _contentHeader$getBou.height;
|
|
57
|
+
page.style.setProperty(COVER_PROPERTY, height / 2 + "px");
|
|
58
|
+
};
|
|
59
|
+
publishCover();
|
|
60
|
+
page.style.setProperty(FADE_PROPERTY, "0px");
|
|
61
|
+
const observer = new ResizeObserver(publishCover);
|
|
62
|
+
observer.observe(contentHeader);
|
|
63
|
+
return () => {
|
|
64
|
+
observer.disconnect();
|
|
65
|
+
page.style.removeProperty(COVER_PROPERTY);
|
|
66
|
+
page.style.removeProperty(FADE_PROPERTY);
|
|
67
|
+
};
|
|
68
|
+
}, [enabled, ref]);
|
|
69
|
+
};
|
|
70
|
+
//# sourceMappingURL=PageStickyHeader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PageStickyHeader.js","names":["React","useLayoutEffect","useRef","ResizeObserver","styled","SM","HEIGHT_PROPERTY","COVER_PROPERTY","FADE_PROPERTY","StyledPageStickyHeader","div","withConfig","displayName","componentId","PageStickyHeader","_ref","children","ref","header","current","page","parentElement","undefined","scroller","closest","publishHeight","height","getBoundingClientRect","style","setProperty","observer","observe","disconnect","removeProperty","createElement","usePageStickyCover","enabled","_scroller$querySelect","contentHeader","querySelector","publishCover","_contentHeader$getBou"],"sources":["../../../../src/presentation/shared/PageStickyHeader.tsx"],"sourcesContent":["import React, {\n ReactElement,\n ReactNode,\n RefObject,\n useLayoutEffect,\n useRef,\n} from \"react\";\n\nimport ResizeObserver from \"resize-observer-polyfill\";\nimport styled from \"styled-components\";\n\nimport { SM } from \"./tokens\";\n\nconst HEIGHT_PROPERTY = \"--page-sticky-header-height\";\nconst COVER_PROPERTY = \"--page-sticky-cover-below\";\nconst FADE_PROPERTY = \"--page-sticky-fade\";\n\nconst StyledPageStickyHeader = styled.div`\n position: sticky;\n top: 0;\n z-index: 10;\n margin: 0 -16px;\n padding: 0 16px 16px;\n background: linear-gradient(\n to top,\n var(--body-bg-main-transparent),\n var(--body-bg-main) var(${FADE_PROPERTY}, 1rem)\n );\n\n @media (min-width: ${SM}) {\n margin-right: -32px;\n padding-right: 32px;\n }\n\n &::after {\n content: \"\";\n position: absolute;\n top: 100%;\n left: 0;\n right: 0;\n height: var(${COVER_PROPERTY}, 0px);\n pointer-events: none;\n background: linear-gradient(\n to bottom,\n var(--body-bg-main),\n var(--body-bg-main-transparent)\n );\n }\n\n > :last-child {\n margin-bottom: 0;\n }\n`;\n\nexport interface PageStickyHeaderProps {\n children: ReactNode;\n}\n\nexport const PageStickyHeader = ({\n children,\n}: PageStickyHeaderProps): ReactElement => {\n const ref = useRef<HTMLDivElement>(null);\n\n useLayoutEffect(() => {\n const header = ref.current;\n const page = header?.parentElement;\n if (!header || !page) {\n return undefined;\n }\n const scroller = page.closest<HTMLElement>(\"#right-window\");\n const publishHeight = (): void => {\n const height = `${header.getBoundingClientRect().height}px`;\n page.style.setProperty(HEIGHT_PROPERTY, height);\n scroller?.style.setProperty(HEIGHT_PROPERTY, height);\n };\n publishHeight();\n const observer = new ResizeObserver(publishHeight);\n observer.observe(header);\n return () => {\n observer.disconnect();\n page.style.removeProperty(HEIGHT_PROPERTY);\n scroller?.style.removeProperty(HEIGHT_PROPERTY);\n };\n }, []);\n\n return (\n <StyledPageStickyHeader ref={ref} data-page-sticky-header>\n {children}\n </StyledPageStickyHeader>\n );\n};\n\nPageStickyHeader.displayName = \"PageStickyHeader\";\n\nexport const usePageStickyCover = (\n ref: RefObject<HTMLElement>,\n enabled = true\n): void => {\n useLayoutEffect(() => {\n const contentHeader = ref.current;\n const scroller = contentHeader?.closest<HTMLElement>(\"#right-window\");\n const page = scroller?.querySelector<HTMLElement>(\n \"[data-page-sticky-header]\"\n )?.parentElement;\n if (!enabled || !contentHeader || !page) {\n return undefined;\n }\n const publishCover = (): void => {\n const { height } = contentHeader.getBoundingClientRect();\n page.style.setProperty(COVER_PROPERTY, `${height / 2}px`);\n };\n publishCover();\n page.style.setProperty(FADE_PROPERTY, \"0px\");\n const observer = new ResizeObserver(publishCover);\n observer.observe(contentHeader);\n return () => {\n observer.disconnect();\n page.style.removeProperty(COVER_PROPERTY);\n page.style.removeProperty(FADE_PROPERTY);\n };\n }, [enabled, ref]);\n};\n"],"mappings":"AAAA,OAAOA,KAAK,IAIVC,eAAe,EACfC,MAAM,QACD,OAAO;AAEd,OAAOC,cAAc,MAAM,0BAA0B;AACrD,OAAOC,MAAM,MAAM,mBAAmB;AAEtC,SAASC,EAAE,QA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ACXR,QAAQ,CAACE,UAAU,CAAC,CAAC;MACrBZ,IAAI,CAACQ,KAAK,CAACK,cAAc,CAAC1B,cAAc,CAAC;MACzCa,IAAI,CAACQ,KAAK,CAACK,cAAc,CAACzB,aAAa,CAAC;IAC1C,CAAC;EACH,CAAC,EAAE,CAAC4B,OAAO,EAAEnB,GAAG,CAAC,CAAC;AACpB,CAAC","ignoreList":[]}
|
|
@@ -10,6 +10,7 @@ export interface PresentationShellProps {
|
|
|
10
10
|
floating?: ReactNode;
|
|
11
11
|
/** Optional content pinned to the bottom of the main menu (e.g. <HelpAndSupportMenu />). */
|
|
12
12
|
menuFooter?: ReactNode;
|
|
13
|
+
activeMenuItem?: string;
|
|
13
14
|
}
|
|
14
15
|
/**
|
|
15
16
|
* The full application shell shared by every presentation mock-up: the main
|
|
@@ -18,7 +19,7 @@ export interface PresentationShellProps {
|
|
|
18
19
|
* `header` and the body via `children`.
|
|
19
20
|
*/
|
|
20
21
|
export declare const PresentationShell: {
|
|
21
|
-
({ header, children, floating, menuFooter, }: PresentationShellProps): ReactElement;
|
|
22
|
+
({ header, children, floating, menuFooter, activeMenuItem, }: PresentationShellProps): ReactElement;
|
|
22
23
|
displayName: string;
|
|
23
24
|
};
|
|
24
25
|
//# sourceMappingURL=PresentationShell.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PresentationShell.d.ts","sourceRoot":"","sources":["../../../../src/presentation/shared/PresentationShell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EACZ,YAAY,EACZ,SAAS,EAKV,MAAM,OAAO,CAAC;AAgWf,gFAAgF;AAChF,eAAO,MAAM,eAAe,wMAG3B,CAAC;
|
|
1
|
+
{"version":3,"file":"PresentationShell.d.ts","sourceRoot":"","sources":["../../../../src/presentation/shared/PresentationShell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EACZ,YAAY,EACZ,SAAS,EAKV,MAAM,OAAO,CAAC;AAgWf,gFAAgF;AAChF,eAAO,MAAM,eAAe,wMAG3B,CAAC;AAmJF,MAAM,WAAW,sBAAsB;IACrC,gFAAgF;IAChF,MAAM,EAAE,SAAS,CAAC;IAClB,kEAAkE;IAClE,QAAQ,EAAE,SAAS,CAAC;IACpB,2DAA2D;IAC3D,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,4FAA4F;IAC5F,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB;kEAM3B,sBAAsB,GAAG,YAAY;;CA2DvC,CAAC"}
|
|
@@ -14,8 +14,7 @@ const MENU_ITEMS = [{
|
|
|
14
14
|
text: "Getting Started"
|
|
15
15
|
}, {
|
|
16
16
|
icon: ProjectsIcon,
|
|
17
|
-
text: "Projects"
|
|
18
|
-
active: true
|
|
17
|
+
text: "Projects"
|
|
19
18
|
}, {
|
|
20
19
|
icon: MyWorkIcon,
|
|
21
20
|
text: "My Work"
|
|
@@ -103,7 +102,7 @@ const StyledIconRow = styled.div.withConfig({
|
|
|
103
102
|
const StyledTopRightControls = styled.div.withConfig({
|
|
104
103
|
displayName: "PresentationShell__StyledTopRightControls",
|
|
105
104
|
componentId: "sc-12j90o1-11"
|
|
106
|
-
})(["position:absolute;top:0;right:0;display:none;align-items:center;justify-content:flex-end;padding:12px 32px 12px 0;@media (min-width:", "){display:flex;}"], SM);
|
|
105
|
+
})(["position:absolute;top:0;right:0;z-index:11;display:none;align-items:center;justify-content:flex-end;padding:12px 32px 12px 0;@media (min-width:", "){display:flex;}"], SM);
|
|
107
106
|
const StyledHeaderAvatar = styled.div.withConfig({
|
|
108
107
|
displayName: "PresentationShell__StyledHeaderAvatar",
|
|
109
108
|
componentId: "sc-12j90o1-12"
|
|
@@ -134,7 +133,8 @@ export const StyledPagePaper = styled(Paper).withConfig({
|
|
|
134
133
|
|
|
135
134
|
const MenuItemsMock = _ref => {
|
|
136
135
|
let _ref$mobile = _ref.mobile,
|
|
137
|
-
mobile = _ref$mobile === void 0 ? false : _ref$mobile
|
|
136
|
+
mobile = _ref$mobile === void 0 ? false : _ref$mobile,
|
|
137
|
+
activeItem = _ref.activeItem;
|
|
138
138
|
return /*#__PURE__*/React.createElement(StyledMenuScroll, null, /*#__PURE__*/React.createElement(StyledMenuSection, {
|
|
139
139
|
className: "menu-section"
|
|
140
140
|
}, /*#__PURE__*/React.createElement(Caption1, {
|
|
@@ -142,15 +142,14 @@ const MenuItemsMock = _ref => {
|
|
|
142
142
|
color: "tertiary"
|
|
143
143
|
}, "MENU")), MENU_ITEMS.map(_ref2 => {
|
|
144
144
|
let Icon = _ref2.icon,
|
|
145
|
-
text = _ref2.text
|
|
146
|
-
active = _ref2.active;
|
|
145
|
+
text = _ref2.text;
|
|
147
146
|
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
148
147
|
key: text,
|
|
149
148
|
title: text,
|
|
150
149
|
placement: "right",
|
|
151
150
|
disable: mobile
|
|
152
151
|
}, /*#__PURE__*/React.createElement(StyledMenuItem, {
|
|
153
|
-
className:
|
|
152
|
+
className: text === activeItem ? "active" : undefined
|
|
154
153
|
}, /*#__PURE__*/React.createElement(Icon, null), /*#__PURE__*/React.createElement(Body2, {
|
|
155
154
|
weight: "medium",
|
|
156
155
|
color: "secondary",
|
|
@@ -162,7 +161,8 @@ const MenuItemsMock = _ref => {
|
|
|
162
161
|
const MainMenuMock = _ref3 => {
|
|
163
162
|
let collapsed = _ref3.collapsed,
|
|
164
163
|
onToggleCollapsed = _ref3.onToggleCollapsed,
|
|
165
|
-
footer = _ref3.footer
|
|
164
|
+
footer = _ref3.footer,
|
|
165
|
+
activeItem = _ref3.activeItem;
|
|
166
166
|
return /*#__PURE__*/React.createElement(StyledMainMenu, {
|
|
167
167
|
className: collapsed ? "collapsed" : undefined,
|
|
168
168
|
"data-testid": "main-menu"
|
|
@@ -174,12 +174,15 @@ const MainMenuMock = _ref3 => {
|
|
|
174
174
|
variant: "text gray",
|
|
175
175
|
size: "small",
|
|
176
176
|
onClick: onToggleCollapsed
|
|
177
|
-
}, /*#__PURE__*/React.createElement(CollapsIcon, null)))), /*#__PURE__*/React.createElement(MenuItemsMock,
|
|
177
|
+
}, /*#__PURE__*/React.createElement(CollapsIcon, null)))), /*#__PURE__*/React.createElement(MenuItemsMock, {
|
|
178
|
+
activeItem: activeItem
|
|
179
|
+
}), footer);
|
|
178
180
|
};
|
|
179
181
|
const MainMenuMobileMock = _ref4 => {
|
|
180
182
|
let open = _ref4.open,
|
|
181
183
|
close = _ref4.close,
|
|
182
|
-
footer = _ref4.footer
|
|
184
|
+
footer = _ref4.footer,
|
|
185
|
+
activeItem = _ref4.activeItem;
|
|
183
186
|
return open ? /*#__PURE__*/React.createElement(Modal, {
|
|
184
187
|
open: open,
|
|
185
188
|
onClose: close
|
|
@@ -192,7 +195,8 @@ const MainMenuMobileMock = _ref4 => {
|
|
|
192
195
|
onClick: close,
|
|
193
196
|
variant: "text gray"
|
|
194
197
|
}, /*#__PURE__*/React.createElement(CloseIcon, null))), /*#__PURE__*/React.createElement(MenuItemsMock, {
|
|
195
|
-
mobile: true
|
|
198
|
+
mobile: true,
|
|
199
|
+
activeItem: activeItem
|
|
196
200
|
}), footer)) : null;
|
|
197
201
|
};
|
|
198
202
|
const MobileMenuHeaderMock = _ref5 => {
|
|
@@ -231,7 +235,9 @@ export const PresentationShell = _ref6 => {
|
|
|
231
235
|
let header = _ref6.header,
|
|
232
236
|
children = _ref6.children,
|
|
233
237
|
floating = _ref6.floating,
|
|
234
|
-
menuFooter = _ref6.menuFooter
|
|
238
|
+
menuFooter = _ref6.menuFooter,
|
|
239
|
+
_ref6$activeMenuItem = _ref6.activeMenuItem,
|
|
240
|
+
activeMenuItem = _ref6$activeMenuItem === void 0 ? "Projects" : _ref6$activeMenuItem;
|
|
235
241
|
const _useState = useState(false),
|
|
236
242
|
mobileMenuOpen = _useState[0],
|
|
237
243
|
setMobileMenuOpen = _useState[1];
|
|
@@ -266,11 +272,13 @@ export const PresentationShell = _ref6 => {
|
|
|
266
272
|
}, /*#__PURE__*/React.createElement(StyledPage, null, header, /*#__PURE__*/React.createElement(StyledPageBody, null, children)), isMobileView === false ? /*#__PURE__*/React.createElement(TopRightControlsMock, null) : null), isMobileView ? /*#__PURE__*/React.createElement(MainMenuMobileMock, {
|
|
267
273
|
open: mobileMenuOpen,
|
|
268
274
|
close: handleCloseMobileMenu,
|
|
269
|
-
footer: menuFooter
|
|
275
|
+
footer: menuFooter,
|
|
276
|
+
activeItem: activeMenuItem
|
|
270
277
|
}) : /*#__PURE__*/React.createElement(MainMenuMock, {
|
|
271
278
|
collapsed: collapsed,
|
|
272
279
|
onToggleCollapsed: handleToggleCollapsed,
|
|
273
|
-
footer: menuFooter
|
|
280
|
+
footer: menuFooter,
|
|
281
|
+
activeItem: activeMenuItem
|
|
274
282
|
})), floating);
|
|
275
283
|
};
|
|
276
284
|
PresentationShell.displayName = "PresentationShell";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PresentationShell.js","names":["React","useCallback","useEffect","useRef","useState","styled","MainLogo","BREAKPOINT","SM","TRANSITION","XL","IconButton","ActivityIcon","CalendarIcon","ClockStopwatchIndicatorIcon","CloseIcon","CollapsIcon","EstimatesIcon","InvoicesIcon","MobileMenuIcon","MyWorkIcon","NotificationBellIcon","PeopleIcon","ProjectsIcon","ReportTimeIcon","ReportsIcon","RocketIcon","SearchIcon","Modal","Paper","Tooltip","Body2","Caption1","DARK_THEME_SELECTOR","useResizeObserver","MENU_ITEMS","icon","text","active","StyledLayout","div","withConfig","displayName","componentId","StyledContentRow","StyledRightWindow","StyledMainMenu","StyledMenuHeader","StyledMenuScroll","StyledMenuSection","StyledMenuItem","a","StyledMobileMenuClose","StyledMobileMenuHeader","StyledIconRow","StyledTopRightControls","StyledHeaderAvatar","StyledPage","StyledPageBody","StyledPagePaper","MenuItemsMock","_ref","_ref$mobile","mobile","createElement","className","weight","color","map","_ref2","Icon","key","title","placement","disable","undefined","whitespace","MainMenuMock","_ref3","collapsed","onToggleCollapsed","footer","variant","size","onClick","MainMenuMobileMock","_ref4","open","close","onClose","MobileMenuHeaderMock","_ref5","onOpenMobileMenu","TopRightControlsMock","PresentationShell","_ref6","header","children","floating","menuFooter","_useState","mobileMenuOpen","setMobileMenuOpen","_useState2","setCollapsed","_useState3","isMobileView","setIsMobileView","ref","dimensions","width","handleOpenMobileMenu","handleCloseMobileMenu","handleToggleCollapsed","prev","id"],"sources":["../../../../src/presentation/shared/PresentationShell.tsx"],"sourcesContent":["import React, {\n ReactElement,\n ReactNode,\n useCallback,\n useEffect,\n useRef,\n useState,\n} from \"react\";\n\nimport styled from \"styled-components\";\n\nimport { MainLogo } from \"./MainLogo\";\nimport { BREAKPOINT, SM, TRANSITION, XL } from \"./tokens\";\nimport { IconButton } from \"../../components/IconButton\";\nimport {\n ActivityIcon,\n CalendarIcon,\n ClockStopwatchIndicatorIcon,\n CloseIcon,\n CollapsIcon,\n EstimatesIcon,\n InvoicesIcon,\n MobileMenuIcon,\n MyWorkIcon,\n NotificationBellIcon,\n PeopleIcon,\n ProjectsIcon,\n ReportTimeIcon,\n ReportsIcon,\n RocketIcon,\n SearchIcon,\n} from \"../../components/Icons\";\nimport { Modal } from \"../../components/Modal\";\nimport { Paper } from \"../../components/Paper\";\nimport { Tooltip } from \"../../components/Tooltip\";\nimport { Body2, Caption1 } from \"../../components/Typography\";\nimport { DARK_THEME_SELECTOR, useResizeObserver } from \"../../utils\";\n\nconst MENU_ITEMS: {\n icon: React.FC<React.SVGProps<SVGSVGElement>>;\n text: string;\n active?: boolean;\n}[] = [\n { icon: RocketIcon, text: \"Getting Started\" },\n { icon: ProjectsIcon, text: \"Projects\", active: true },\n { icon: MyWorkIcon, text: \"My Work\" },\n { icon: ActivityIcon, text: \"Activity\" },\n { icon: CalendarIcon, text: \"Calendar\" },\n { icon: PeopleIcon, text: \"People\" },\n { icon: ReportTimeIcon, text: \"Time\" },\n { icon: ReportsIcon, text: \"Reports\" },\n { icon: InvoicesIcon, text: \"Invoices\" },\n { icon: EstimatesIcon, text: \"Estimates\" },\n];\n\n/* ------------------------------------------------------------------ */\n/* Layout shell (mirrors Layout.js) */\n/* ------------------------------------------------------------------ */\n\nconst StyledLayout = styled.div`\n height: 100vh;\n display: flex;\n flex-direction: column;\n background-color: var(--body-bg-main);\n`;\n\nconst StyledContentRow = styled.div`\n position: relative;\n display: flex;\n flex-direction: row-reverse;\n flex: 1 1 0%;\n flex-grow: 1;\n overflow-y: auto;\n`;\n\nconst StyledRightWindow = styled.div`\n position: relative;\n display: flex;\n flex-direction: column;\n flex: 1 1 0%;\n flex-grow: 1;\n width: 100%;\n height: 100%;\n overflow-y: auto;\n padding: 0 16px;\n\n @media (min-width: ${SM}) {\n padding-right: 32px;\n }\n`;\n\n/* ------------------------------------------------------------------ */\n/* Main menu (mirrors MainMenu.js + MainMenu.less) */\n/* ------------------------------------------------------------------ */\n\nconst StyledMainMenu = styled.div`\n position: relative;\n z-index: 1;\n display: none;\n flex-direction: column;\n height: 100%;\n margin-right: 4px;\n flex-shrink: 0;\n width: 240px;\n transition: width ${TRANSITION};\n\n @media (min-width: ${SM}) {\n display: flex;\n }\n\n &.collapsed {\n width: 72px;\n }\n\n .menu-item-text,\n .menu-section,\n #logotype {\n transition: all ${TRANSITION};\n }\n\n &.collapsed .menu-item-text {\n opacity: 0;\n visibility: hidden;\n width: 0;\n margin-left: 0;\n }\n\n &.collapsed .menu-section {\n transform: scaleY(0);\n opacity: 0;\n max-height: 0;\n margin-bottom: 0;\n }\n\n &.collapsed #logotype {\n transform: translateX(-5%);\n opacity: 0;\n }\n\n &.collapsed .collapse-expand-menu svg {\n transform: rotate(180deg);\n }\n\n &:not(.mobile) {\n @media (max-width: 1279.98px) {\n width: 72px;\n\n .menu-item-text {\n opacity: 0;\n visibility: hidden;\n width: 0;\n margin-left: 0;\n }\n\n .menu-section {\n transform: scaleY(0);\n opacity: 0;\n max-height: 0;\n margin-bottom: 0;\n }\n\n #logotype {\n transform: translateX(-5%);\n opacity: 0;\n }\n }\n }\n\n &.mobile {\n display: flex;\n position: absolute;\n left: 0;\n top: 0;\n width: 240px;\n background-color: var(--page-paper-main);\n }\n`;\n\nconst StyledMenuHeader = styled.div`\n position: relative;\n height: 68px;\n display: flex;\n align-items: center;\n flex-shrink: 0;\n overflow: hidden;\n\n .main-logo {\n position: absolute;\n left: 20px;\n color: var(--color-secondary);\n\n path {\n fill: var(--color-secondary);\n }\n }\n\n .collapse-expand-menu {\n position: absolute;\n right: 4px;\n display: none;\n\n @media (min-width: ${XL}) {\n display: flex;\n }\n }\n`;\n\nconst StyledMenuScroll = styled.div`\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n min-height: 0;\n margin: 12px 0;\n overflow-y: auto;\n overflow-x: hidden;\n`;\n\nconst StyledMenuSection = styled.div`\n display: flex;\n align-items: center;\n margin: 0 12px 8px;\n padding: 0 4px 0 12px;\n`;\n\nconst StyledMenuItem = styled.a`\n display: flex;\n align-items: center;\n height: 40px;\n padding: 0 4px 0 12px;\n margin: 0 12px 2px;\n border-radius: 8px;\n cursor: pointer;\n text-decoration: none;\n\n svg {\n flex-shrink: 0;\n fill: var(--color-theme-700);\n opacity: 0.7;\n }\n\n .menu-item-text {\n margin-left: 12px;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n &:hover {\n transition: all ${TRANSITION};\n background-color: var(--color-theme-300);\n\n svg {\n fill: var(--color-theme-900);\n opacity: 1;\n }\n\n .menu-item-text {\n color: var(--color-theme-900);\n }\n }\n\n &.active {\n background-color: var(--color-secondary-200);\n\n svg {\n fill: var(--color-secondary);\n opacity: 1;\n }\n\n .menu-item-text {\n color: var(--color-secondary);\n }\n }\n`;\n\nconst StyledMobileMenuClose = styled(IconButton)`\n position: absolute;\n right: 16px;\n`;\n\n/* ------------------------------------------------------------------ */\n/* Top bars */\n/* ------------------------------------------------------------------ */\n\nconst StyledMobileMenuHeader = styled.div`\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 8px 16px;\n background-color: var(--color-primary);\n z-index: 50;\n\n @media (min-width: ${SM}) {\n display: none;\n }\n\n .mobile-menu-icon {\n fill: var(--color-theme-300);\n }\n`;\n\nconst StyledIconRow = styled.div`\n display: flex;\n align-items: center;\n`;\n\nconst StyledTopRightControls = styled.div`\n position: absolute;\n top: 0;\n right: 0;\n display: none;\n align-items: center;\n justify-content: flex-end;\n padding: 12px 32px 12px 0;\n\n @media (min-width: ${SM}) {\n display: flex;\n }\n`;\n\nconst StyledHeaderAvatar = styled.div`\n width: 28px;\n height: 28px;\n border-radius: 50%;\n background-color: var(--color-secondary);\n color: var(--only-white);\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 11px;\n font-weight: 600;\n margin: 0 8px;\n flex-shrink: 0;\n cursor: pointer;\n\n /* dark themes: use paper colour for the initials */\n ${DARK_THEME_SELECTOR} & {\n color: var(--page-paper-main);\n }\n`;\n\n/* ------------------------------------------------------------------ */\n/* Page region (mirrors Page.jsx / PageBody.jsx) */\n/* ------------------------------------------------------------------ */\n\nconst StyledPage = styled.div`\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n`;\n\nconst StyledPageBody = styled.div`\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n margin-bottom: 32px;\n min-height: 0;\n`;\n\n/** The paper card that holds page content (used by list view & empty pages). */\nexport const StyledPagePaper = styled(Paper)`\n flex-grow: 1;\n width: 100%;\n`;\n\n/* ------------------------------------------------------------------ */\n/* Mocked layout building blocks */\n/* ------------------------------------------------------------------ */\n\ninterface MenuItemsProps {\n mobile?: boolean;\n}\n\nconst MenuItemsMock = ({ mobile = false }: MenuItemsProps): ReactElement => (\n <StyledMenuScroll>\n <StyledMenuSection className=\"menu-section\">\n <Caption1 weight=\"bold\" color=\"tertiary\">\n MENU\n </Caption1>\n </StyledMenuSection>\n {MENU_ITEMS.map(({ icon: Icon, text, active }) => (\n <Tooltip key={text} title={text} placement=\"right\" disable={mobile}>\n <StyledMenuItem className={active ? \"active\" : undefined}>\n <Icon />\n <Body2\n weight=\"medium\"\n color=\"secondary\"\n whitespace=\"no-wrap\"\n className=\"menu-item-text\"\n >\n {text}\n </Body2>\n </StyledMenuItem>\n </Tooltip>\n ))}\n </StyledMenuScroll>\n);\n\ninterface MainMenuMockProps {\n collapsed: boolean;\n onToggleCollapsed: () => void;\n footer?: ReactNode;\n}\n\nconst MainMenuMock = ({\n collapsed,\n onToggleCollapsed,\n footer,\n}: MainMenuMockProps): ReactElement => (\n <StyledMainMenu\n className={collapsed ? \"collapsed\" : undefined}\n data-testid=\"main-menu\"\n >\n <StyledMenuHeader>\n <a className=\"main-logo\">\n <MainLogo />\n </a>\n <div className=\"collapse-expand-menu\">\n <IconButton\n variant=\"text gray\"\n size=\"small\"\n onClick={onToggleCollapsed}\n >\n <CollapsIcon />\n </IconButton>\n </div>\n </StyledMenuHeader>\n <MenuItemsMock />\n {footer}\n </StyledMainMenu>\n);\n\ninterface MainMenuMobileMockProps {\n open: boolean;\n close: () => void;\n footer?: ReactNode;\n}\n\nconst MainMenuMobileMock = ({\n open,\n close,\n footer,\n}: MainMenuMobileMockProps): ReactElement | null =>\n open ? (\n <Modal open={open} onClose={close}>\n <StyledMainMenu className=\"mobile\" data-testid=\"main-menu-mobile\">\n <StyledMenuHeader>\n <a className=\"main-logo\">\n <MainLogo />\n </a>\n <StyledMobileMenuClose onClick={close} variant=\"text gray\">\n <CloseIcon />\n </StyledMobileMenuClose>\n </StyledMenuHeader>\n <MenuItemsMock mobile />\n {footer}\n </StyledMainMenu>\n </Modal>\n ) : null;\n\ninterface MobileMenuHeaderMockProps {\n onOpenMobileMenu: () => void;\n}\n\nconst MobileMenuHeaderMock = ({\n onOpenMobileMenu,\n}: MobileMenuHeaderMockProps): ReactElement => (\n <StyledMobileMenuHeader>\n <IconButton size=\"big\" variant=\"circle raised\" onClick={onOpenMobileMenu}>\n <MobileMenuIcon className=\"mobile-menu-icon\" />\n </IconButton>\n <StyledIconRow>\n <IconButton variant=\"text gray\">\n <SearchIcon />\n </IconButton>\n <StyledHeaderAvatar>JS</StyledHeaderAvatar>\n <IconButton variant=\"text gray\">\n <NotificationBellIcon />\n </IconButton>\n </StyledIconRow>\n </StyledMobileMenuHeader>\n);\n\nconst TopRightControlsMock = (): ReactElement => (\n <StyledTopRightControls>\n <IconButton variant=\"text gray\">\n <ClockStopwatchIndicatorIcon />\n </IconButton>\n <IconButton variant=\"text gray\">\n <SearchIcon />\n </IconButton>\n <StyledHeaderAvatar>JS</StyledHeaderAvatar>\n <IconButton variant=\"text gray\">\n <NotificationBellIcon />\n </IconButton>\n </StyledTopRightControls>\n);\n\n/* ------------------------------------------------------------------ */\n/* PresentationShell */\n/* ------------------------------------------------------------------ */\n\nexport interface PresentationShellProps {\n /** Page header row (e.g. <ProjectPageHeader /> or <PageHeader title=\"…\" />). */\n header: ReactNode;\n /** Page body content rendered inside the scrollable page area. */\n children: ReactNode;\n /** Optional fixed controls (e.g. <FloatingControls />). */\n floating?: ReactNode;\n /** Optional content pinned to the bottom of the main menu (e.g. <HelpAndSupportMenu />). */\n menuFooter?: ReactNode;\n}\n\n/**\n * The full application shell shared by every presentation mock-up: the main\n * menu on the left (auto-collapsing below 1280px, modal below 640px), the\n * top-right controls and the scrollable page area. Pass the page header via\n * `header` and the body via `children`.\n */\nexport const PresentationShell = ({\n header,\n children,\n floating,\n menuFooter,\n}: PresentationShellProps): ReactElement => {\n const [mobileMenuOpen, setMobileMenuOpen] = useState(false);\n const [collapsed, setCollapsed] = useState(false);\n const [isMobileView, setIsMobileView] = useState<boolean>();\n\n const ref = useRef<HTMLDivElement>(null);\n const dimensions = useResizeObserver(ref);\n const width = dimensions?.width;\n\n useEffect(() => {\n if (width) {\n if (width < BREAKPOINT) {\n setIsMobileView(true);\n } else {\n setIsMobileView(false);\n setMobileMenuOpen(false);\n }\n }\n }, [width]);\n\n const handleOpenMobileMenu = useCallback(() => setMobileMenuOpen(true), []);\n const handleCloseMobileMenu = useCallback(() => setMobileMenuOpen(false), []);\n const handleToggleCollapsed = useCallback(\n () => setCollapsed((prev) => !prev),\n []\n );\n\n return (\n <StyledLayout ref={ref}>\n {isMobileView ? (\n <MobileMenuHeaderMock onOpenMobileMenu={handleOpenMobileMenu} />\n ) : null}\n <StyledContentRow>\n <StyledRightWindow id=\"right-window\">\n <StyledPage>\n {header}\n <StyledPageBody>{children}</StyledPageBody>\n </StyledPage>\n {isMobileView === false ? <TopRightControlsMock /> : null}\n </StyledRightWindow>\n {isMobileView ? (\n <MainMenuMobileMock\n open={mobileMenuOpen}\n close={handleCloseMobileMenu}\n footer={menuFooter}\n />\n ) : (\n <MainMenuMock\n collapsed={collapsed}\n onToggleCollapsed={handleToggleCollapsed}\n footer={menuFooter}\n />\n )}\n </StyledContentRow>\n {floating}\n </StyledLayout>\n );\n};\n\nPresentationShell.displayName = \"PresentationShell\";\n"],"mappings":"AAAA,OAAOA,KAAK,IAGVC,WAAW,EACXC,SAAS,EACTC,MAAM,EACNC,QAAQ,QACH,OAAO;AAEd,OAAOC,MAAM,MAAM,mBAAmB;AAEtC,SAASC,QAAQ,QAAQ,YAAY;AACrC,SAASC,UAAU,EAAEC,EAAE,EAAEC,UAAU,EAAEC,EAAE,QAAQ,UAAU;AACzD,SAASC,UAAU,QAAQ,6BAA6B;AACxD,SACEC,YAAY,EACZC,YAAY,EACZC,2BAA2B,EAC3BC,SAAS,EACTC,WAAW,EACXC,aAAa,EACbC,YAAY,EACZC,cAAc,EACdC,UAAU,EACVC,oBAAoB,EACpBC,UAAU,EACVC,YAAY,EACZC,cAAc,EACdC,WAAW,EACXC,UAAU,EACVC,UAAU,QACL,wBAAwB;AAC/B,SAASC,KAAK,QAAQ,wBAAwB;AAC9C,SAASC,KAAK,QAAQ,wBAAwB;AAC9C,SAASC,OAAO,QAAQ,0BAA0B;AAClD,SAASC,KAAK,EAAEC,QAAQ,QAAQ,6BAA6B;AAC7D,SAASC,mBAAmB,EAAEC,iBAAiB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AAC,EAClBD,QACW,CAAC;AAEnB,CAAC;AAEDJ,iBAAiB,CAACpD,WAAW,GAAG,mBAAmB","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"PresentationShell.js","names":["React","useCallback","useEffect","useRef","useState","styled","MainLogo","BREAKPOINT","SM","TRANSITION","XL","IconButton","ActivityIcon","CalendarIcon","ClockStopwatchIndicatorIcon","CloseIcon","CollapsIcon","EstimatesIcon","InvoicesIcon","MobileMenuIcon","MyWorkIcon","NotificationBellIcon","PeopleIcon","ProjectsIcon","ReportTimeIcon","ReportsIcon","RocketIcon","SearchIcon","Modal","Paper","Tooltip","Body2","Caption1","DARK_THEME_SELECTOR","useResizeObserver","MENU_ITEMS","icon","text","StyledLayout","div","withConfig","displayName","componentId","StyledContentRow","StyledRightWindow","StyledMainMenu","StyledMenuHeader","StyledMenuScroll","StyledMenuSection","StyledMenuItem","a","StyledMobileMenuClose","StyledMobileMenuHeader","StyledIconRow","StyledTopRightControls","StyledHeaderAvatar","StyledPage","StyledPageBody","StyledPagePaper","MenuItemsMock","_ref","_ref$mobile","mobile","activeItem","createElement","className","weight","color","map","_ref2","Icon","key","title","placement","disable","undefined","whitespace","MainMenuMock","_ref3","collapsed","onToggleCollapsed","footer","variant","size","onClick","MainMenuMobileMock","_ref4","open","close","onClose","MobileMenuHeaderMock","_ref5","onOpenMobileMenu","TopRightControlsMock","PresentationShell","_ref6","header","children","floating","menuFooter","_ref6$activeMenuItem","activeMenuItem","_useState","mobileMenuOpen","setMobileMenuOpen","_useState2","setCollapsed","_useState3","isMobileView","setIsMobileView","ref","dimensions","width","handleOpenMobileMenu","handleCloseMobileMenu","handleToggleCollapsed","prev","id"],"sources":["../../../../src/presentation/shared/PresentationShell.tsx"],"sourcesContent":["import React, {\n ReactElement,\n ReactNode,\n useCallback,\n useEffect,\n useRef,\n useState,\n} from \"react\";\n\nimport styled from \"styled-components\";\n\nimport { MainLogo } from \"./MainLogo\";\nimport { BREAKPOINT, SM, TRANSITION, XL } from \"./tokens\";\nimport { IconButton } from \"../../components/IconButton\";\nimport {\n ActivityIcon,\n CalendarIcon,\n ClockStopwatchIndicatorIcon,\n CloseIcon,\n CollapsIcon,\n EstimatesIcon,\n InvoicesIcon,\n MobileMenuIcon,\n MyWorkIcon,\n NotificationBellIcon,\n PeopleIcon,\n ProjectsIcon,\n ReportTimeIcon,\n ReportsIcon,\n RocketIcon,\n SearchIcon,\n} from \"../../components/Icons\";\nimport { Modal } from \"../../components/Modal\";\nimport { Paper } from \"../../components/Paper\";\nimport { Tooltip } from \"../../components/Tooltip\";\nimport { Body2, Caption1 } from \"../../components/Typography\";\nimport { DARK_THEME_SELECTOR, useResizeObserver } from \"../../utils\";\n\nconst MENU_ITEMS: {\n icon: React.FC<React.SVGProps<SVGSVGElement>>;\n text: string;\n}[] = [\n { icon: RocketIcon, text: \"Getting Started\" },\n { icon: ProjectsIcon, text: \"Projects\" },\n { icon: MyWorkIcon, text: \"My Work\" },\n { icon: ActivityIcon, text: \"Activity\" },\n { icon: CalendarIcon, text: \"Calendar\" },\n { icon: PeopleIcon, text: \"People\" },\n { icon: ReportTimeIcon, text: \"Time\" },\n { icon: ReportsIcon, text: \"Reports\" },\n { icon: InvoicesIcon, text: \"Invoices\" },\n { icon: EstimatesIcon, text: \"Estimates\" },\n];\n\n/* ------------------------------------------------------------------ */\n/* Layout shell (mirrors Layout.js) */\n/* ------------------------------------------------------------------ */\n\nconst StyledLayout = styled.div`\n height: 100vh;\n display: flex;\n flex-direction: column;\n background-color: var(--body-bg-main);\n`;\n\nconst StyledContentRow = styled.div`\n position: relative;\n display: flex;\n flex-direction: row-reverse;\n flex: 1 1 0%;\n flex-grow: 1;\n overflow-y: auto;\n`;\n\nconst StyledRightWindow = styled.div`\n position: relative;\n display: flex;\n flex-direction: column;\n flex: 1 1 0%;\n flex-grow: 1;\n width: 100%;\n height: 100%;\n overflow-y: auto;\n padding: 0 16px;\n\n @media (min-width: ${SM}) {\n padding-right: 32px;\n }\n`;\n\n/* ------------------------------------------------------------------ */\n/* Main menu (mirrors MainMenu.js + MainMenu.less) */\n/* ------------------------------------------------------------------ */\n\nconst StyledMainMenu = styled.div`\n position: relative;\n z-index: 1;\n display: none;\n flex-direction: column;\n height: 100%;\n margin-right: 4px;\n flex-shrink: 0;\n width: 240px;\n transition: width ${TRANSITION};\n\n @media (min-width: ${SM}) {\n display: flex;\n }\n\n &.collapsed {\n width: 72px;\n }\n\n .menu-item-text,\n .menu-section,\n #logotype {\n transition: all ${TRANSITION};\n }\n\n &.collapsed .menu-item-text {\n opacity: 0;\n visibility: hidden;\n width: 0;\n margin-left: 0;\n }\n\n &.collapsed .menu-section {\n transform: scaleY(0);\n opacity: 0;\n max-height: 0;\n margin-bottom: 0;\n }\n\n &.collapsed #logotype {\n transform: translateX(-5%);\n opacity: 0;\n }\n\n &.collapsed .collapse-expand-menu svg {\n transform: rotate(180deg);\n }\n\n &:not(.mobile) {\n @media (max-width: 1279.98px) {\n width: 72px;\n\n .menu-item-text {\n opacity: 0;\n visibility: hidden;\n width: 0;\n margin-left: 0;\n }\n\n .menu-section {\n transform: scaleY(0);\n opacity: 0;\n max-height: 0;\n margin-bottom: 0;\n }\n\n #logotype {\n transform: translateX(-5%);\n opacity: 0;\n }\n }\n }\n\n &.mobile {\n display: flex;\n position: absolute;\n left: 0;\n top: 0;\n width: 240px;\n background-color: var(--page-paper-main);\n }\n`;\n\nconst StyledMenuHeader = styled.div`\n position: relative;\n height: 68px;\n display: flex;\n align-items: center;\n flex-shrink: 0;\n overflow: hidden;\n\n .main-logo {\n position: absolute;\n left: 20px;\n color: var(--color-secondary);\n\n path {\n fill: var(--color-secondary);\n }\n }\n\n .collapse-expand-menu {\n position: absolute;\n right: 4px;\n display: none;\n\n @media (min-width: ${XL}) {\n display: flex;\n }\n }\n`;\n\nconst StyledMenuScroll = styled.div`\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n min-height: 0;\n margin: 12px 0;\n overflow-y: auto;\n overflow-x: hidden;\n`;\n\nconst StyledMenuSection = styled.div`\n display: flex;\n align-items: center;\n margin: 0 12px 8px;\n padding: 0 4px 0 12px;\n`;\n\nconst StyledMenuItem = styled.a`\n display: flex;\n align-items: center;\n height: 40px;\n padding: 0 4px 0 12px;\n margin: 0 12px 2px;\n border-radius: 8px;\n cursor: pointer;\n text-decoration: none;\n\n svg {\n flex-shrink: 0;\n fill: var(--color-theme-700);\n opacity: 0.7;\n }\n\n .menu-item-text {\n margin-left: 12px;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n &:hover {\n transition: all ${TRANSITION};\n background-color: var(--color-theme-300);\n\n svg {\n fill: var(--color-theme-900);\n opacity: 1;\n }\n\n .menu-item-text {\n color: var(--color-theme-900);\n }\n }\n\n &.active {\n background-color: var(--color-secondary-200);\n\n svg {\n fill: var(--color-secondary);\n opacity: 1;\n }\n\n .menu-item-text {\n color: var(--color-secondary);\n }\n }\n`;\n\nconst StyledMobileMenuClose = styled(IconButton)`\n position: absolute;\n right: 16px;\n`;\n\n/* ------------------------------------------------------------------ */\n/* Top bars */\n/* ------------------------------------------------------------------ */\n\nconst StyledMobileMenuHeader = styled.div`\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 8px 16px;\n background-color: var(--color-primary);\n z-index: 50;\n\n @media (min-width: ${SM}) {\n display: none;\n }\n\n .mobile-menu-icon {\n fill: var(--color-theme-300);\n }\n`;\n\nconst StyledIconRow = styled.div`\n display: flex;\n align-items: center;\n`;\n\nconst StyledTopRightControls = styled.div`\n position: absolute;\n top: 0;\n right: 0;\n z-index: 11;\n display: none;\n align-items: center;\n justify-content: flex-end;\n padding: 12px 32px 12px 0;\n\n @media (min-width: ${SM}) {\n display: flex;\n }\n`;\n\nconst StyledHeaderAvatar = styled.div`\n width: 28px;\n height: 28px;\n border-radius: 50%;\n background-color: var(--color-secondary);\n color: var(--only-white);\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 11px;\n font-weight: 600;\n margin: 0 8px;\n flex-shrink: 0;\n cursor: pointer;\n\n /* dark themes: use paper colour for the initials */\n ${DARK_THEME_SELECTOR} & {\n color: var(--page-paper-main);\n }\n`;\n\n/* ------------------------------------------------------------------ */\n/* Page region (mirrors Page.jsx / PageBody.jsx) */\n/* ------------------------------------------------------------------ */\n\nconst StyledPage = styled.div`\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n`;\n\nconst StyledPageBody = styled.div`\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n margin-bottom: 32px;\n min-height: 0;\n`;\n\n/** The paper card that holds page content (used by list view & empty pages). */\nexport const StyledPagePaper = styled(Paper)`\n flex-grow: 1;\n width: 100%;\n`;\n\n/* ------------------------------------------------------------------ */\n/* Mocked layout building blocks */\n/* ------------------------------------------------------------------ */\n\ninterface MenuItemsProps {\n mobile?: boolean;\n activeItem: string;\n}\n\nconst MenuItemsMock = ({\n mobile = false,\n activeItem,\n}: MenuItemsProps): ReactElement => (\n <StyledMenuScroll>\n <StyledMenuSection className=\"menu-section\">\n <Caption1 weight=\"bold\" color=\"tertiary\">\n MENU\n </Caption1>\n </StyledMenuSection>\n {MENU_ITEMS.map(({ icon: Icon, text }) => (\n <Tooltip key={text} title={text} placement=\"right\" disable={mobile}>\n <StyledMenuItem className={text === activeItem ? \"active\" : undefined}>\n <Icon />\n <Body2\n weight=\"medium\"\n color=\"secondary\"\n whitespace=\"no-wrap\"\n className=\"menu-item-text\"\n >\n {text}\n </Body2>\n </StyledMenuItem>\n </Tooltip>\n ))}\n </StyledMenuScroll>\n);\n\ninterface MainMenuMockProps {\n collapsed: boolean;\n onToggleCollapsed: () => void;\n footer?: ReactNode;\n activeItem: string;\n}\n\nconst MainMenuMock = ({\n collapsed,\n onToggleCollapsed,\n footer,\n activeItem,\n}: MainMenuMockProps): ReactElement => (\n <StyledMainMenu\n className={collapsed ? \"collapsed\" : undefined}\n data-testid=\"main-menu\"\n >\n <StyledMenuHeader>\n <a className=\"main-logo\">\n <MainLogo />\n </a>\n <div className=\"collapse-expand-menu\">\n <IconButton\n variant=\"text gray\"\n size=\"small\"\n onClick={onToggleCollapsed}\n >\n <CollapsIcon />\n </IconButton>\n </div>\n </StyledMenuHeader>\n <MenuItemsMock activeItem={activeItem} />\n {footer}\n </StyledMainMenu>\n);\n\ninterface MainMenuMobileMockProps {\n open: boolean;\n close: () => void;\n footer?: ReactNode;\n activeItem: string;\n}\n\nconst MainMenuMobileMock = ({\n open,\n close,\n footer,\n activeItem,\n}: MainMenuMobileMockProps): ReactElement | null =>\n open ? (\n <Modal open={open} onClose={close}>\n <StyledMainMenu className=\"mobile\" data-testid=\"main-menu-mobile\">\n <StyledMenuHeader>\n <a className=\"main-logo\">\n <MainLogo />\n </a>\n <StyledMobileMenuClose onClick={close} variant=\"text gray\">\n <CloseIcon />\n </StyledMobileMenuClose>\n </StyledMenuHeader>\n <MenuItemsMock mobile activeItem={activeItem} />\n {footer}\n </StyledMainMenu>\n </Modal>\n ) : null;\n\ninterface MobileMenuHeaderMockProps {\n onOpenMobileMenu: () => void;\n}\n\nconst MobileMenuHeaderMock = ({\n onOpenMobileMenu,\n}: MobileMenuHeaderMockProps): ReactElement => (\n <StyledMobileMenuHeader>\n <IconButton size=\"big\" variant=\"circle raised\" onClick={onOpenMobileMenu}>\n <MobileMenuIcon className=\"mobile-menu-icon\" />\n </IconButton>\n <StyledIconRow>\n <IconButton variant=\"text gray\">\n <SearchIcon />\n </IconButton>\n <StyledHeaderAvatar>JS</StyledHeaderAvatar>\n <IconButton variant=\"text gray\">\n <NotificationBellIcon />\n </IconButton>\n </StyledIconRow>\n </StyledMobileMenuHeader>\n);\n\nconst TopRightControlsMock = (): ReactElement => (\n <StyledTopRightControls>\n <IconButton variant=\"text gray\">\n <ClockStopwatchIndicatorIcon />\n </IconButton>\n <IconButton variant=\"text gray\">\n <SearchIcon />\n </IconButton>\n <StyledHeaderAvatar>JS</StyledHeaderAvatar>\n <IconButton variant=\"text gray\">\n <NotificationBellIcon />\n </IconButton>\n </StyledTopRightControls>\n);\n\n/* ------------------------------------------------------------------ */\n/* PresentationShell */\n/* ------------------------------------------------------------------ */\n\nexport interface PresentationShellProps {\n /** Page header row (e.g. <ProjectPageHeader /> or <PageHeader title=\"…\" />). */\n header: ReactNode;\n /** Page body content rendered inside the scrollable page area. */\n children: ReactNode;\n /** Optional fixed controls (e.g. <FloatingControls />). */\n floating?: ReactNode;\n /** Optional content pinned to the bottom of the main menu (e.g. <HelpAndSupportMenu />). */\n menuFooter?: ReactNode;\n activeMenuItem?: string;\n}\n\n/**\n * The full application shell shared by every presentation mock-up: the main\n * menu on the left (auto-collapsing below 1280px, modal below 640px), the\n * top-right controls and the scrollable page area. Pass the page header via\n * `header` and the body via `children`.\n */\nexport const PresentationShell = ({\n header,\n children,\n floating,\n menuFooter,\n activeMenuItem = \"Projects\",\n}: PresentationShellProps): ReactElement => {\n const [mobileMenuOpen, setMobileMenuOpen] = useState(false);\n const [collapsed, setCollapsed] = useState(false);\n const [isMobileView, setIsMobileView] = useState<boolean>();\n\n const ref = useRef<HTMLDivElement>(null);\n const dimensions = useResizeObserver(ref);\n const width = dimensions?.width;\n\n useEffect(() => {\n if (width) {\n if (width < BREAKPOINT) {\n setIsMobileView(true);\n } else {\n setIsMobileView(false);\n setMobileMenuOpen(false);\n }\n }\n }, [width]);\n\n const handleOpenMobileMenu = useCallback(() => setMobileMenuOpen(true), []);\n const handleCloseMobileMenu = useCallback(() => setMobileMenuOpen(false), []);\n const handleToggleCollapsed = useCallback(\n () => setCollapsed((prev) => !prev),\n []\n );\n\n return (\n <StyledLayout ref={ref}>\n {isMobileView ? (\n <MobileMenuHeaderMock onOpenMobileMenu={handleOpenMobileMenu} />\n ) : null}\n <StyledContentRow>\n <StyledRightWindow id=\"right-window\">\n <StyledPage>\n {header}\n <StyledPageBody>{children}</StyledPageBody>\n </StyledPage>\n {isMobileView === false ? <TopRightControlsMock /> : null}\n </StyledRightWindow>\n {isMobileView ? (\n <MainMenuMobileMock\n open={mobileMenuOpen}\n close={handleCloseMobileMenu}\n footer={menuFooter}\n activeItem={activeMenuItem}\n />\n ) : (\n <MainMenuMock\n collapsed={collapsed}\n onToggleCollapsed={handleToggleCollapsed}\n footer={menuFooter}\n activeItem={activeMenuItem}\n />\n )}\n </StyledContentRow>\n {floating}\n </StyledLayout>\n );\n};\n\nPresentationShell.displayName = \"PresentationShell\";\n"],"mappings":"AAAA,OAAOA,KAAK,IAGVC,WAAW,EACXC,SAAS,EACTC,MAAM,EACNC,QAAQ,QACH,OAAO;AAEd,OAAOC,MAAM,MAAM,mBAAmB;AAEtC,SAASC,QAAQ,QAAQ,YAAY;AACrC,SAASC,UAAU,EAAEC,EAAE,EAAEC,UAAU,EAAEC,EAAE,QAAQ,UAAU;AACzD,SAASC,UAAU,QAAQ,6BAA6B;AACxD,SACEC,YAAY,EACZC,YAAY,EACZC,2BAA2B,EAC3BC,SAAS,EACTC,WAAW,EACXC,aAAa,EACbC,YAAY,EACZC,cAAc,EACdC,UAAU,EACVC,oBAAoB,EACpBC,UAAU,EACVC,YAAY,EACZC,cAAc,EACdC,WAAW,EACXC,UAAU,EACVC,UAAU,QACL,wBAAwB;AAC/B,SAASC,KAAK,QAAQ,wBAAwB;AAC9C,SAASC,KAAK,QAAQ,wBAAwB;AAC9C,SAASC,OAAO,QAAQ,0BAA0B;AAClD,SAASC,KAAK,EAAEC,QAAQ,QAAQ,6BAA6B;AAC7D,SAASC,mBAAmB,EAAEC,iBAAiB,QAAQ,aAAa;AAEpE,MAAMC,UAGH,GAAG,CACJ;EAAEC,IAAI,EAAEV,UAAU;EAAEW,IAAI,EAAE;AAAkB,CAAC,EAC7C;EAAED,IAAI,EAAEb,YAAY;EAAEc,IAAI,EAAE;AAAW,CAAC,EACxC;EAAED,IAAI,EAAEhB,UAAU;EAAEiB,IAAI,EAAE;AAAU,CAAC,EACrC;EAAED,IAAI,EAAExB,YAAY;EAAEyB,IAAI,EAAE;AAAW,CAAC,EACxC;EAAED,IAAI,EAAEvB,YAAY;EAAEwB,IAAI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