@activecollab/components 2.0.576 → 2.0.578
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/presentation/myWork/MyWorkTasks.js +83 -30
- package/dist/cjs/presentation/myWork/MyWorkTasks.js.map +1 -1
- package/dist/cjs/presentation/myWork/agendaGrid.js +1095 -0
- package/dist/cjs/presentation/myWork/agendaGrid.js.map +1 -0
- package/dist/cjs/presentation/reports/allReports.js +6 -0
- package/dist/cjs/presentation/reports/allReports.js.map +1 -1
- package/dist/cjs/presentation/reports/controls.js +6 -3
- package/dist/cjs/presentation/reports/controls.js.map +1 -1
- package/dist/cjs/presentation/reports/expenses.js +946 -0
- package/dist/cjs/presentation/reports/expenses.js.map +1 -0
- package/dist/cjs/presentation/shared/settings.js +6 -2
- package/dist/cjs/presentation/shared/settings.js.map +1 -1
- package/dist/cjs/presentation/shared/tokens.js +8 -1
- package/dist/cjs/presentation/shared/tokens.js.map +1 -1
- package/dist/cjs/presentation/timeboxes/AdjustmentList.js +31 -0
- package/dist/cjs/presentation/timeboxes/AdjustmentList.js.map +1 -0
- package/dist/cjs/presentation/timeboxes/AgendaDayView.js +1722 -0
- package/dist/cjs/presentation/timeboxes/AgendaDayView.js.map +1 -0
- package/dist/cjs/presentation/timeboxes/CapacityBar.js +54 -0
- package/dist/cjs/presentation/timeboxes/CapacityBar.js.map +1 -0
- package/dist/cjs/presentation/timeboxes/SimulationCard.js +47 -0
- package/dist/cjs/presentation/timeboxes/SimulationCard.js.map +1 -0
- package/dist/cjs/presentation/timeboxes/SimulationPanel.js +319 -0
- package/dist/cjs/presentation/timeboxes/SimulationPanel.js.map +1 -0
- package/dist/cjs/presentation/timeboxes/TimeRecordsSection.js +206 -0
- package/dist/cjs/presentation/timeboxes/TimeRecordsSection.js.map +1 -0
- package/dist/cjs/presentation/timeboxes/WorkloadView.js +887 -0
- package/dist/cjs/presentation/timeboxes/WorkloadView.js.map +1 -0
- package/dist/cjs/presentation/timeboxes/__tests__/timeboxes.test.js +699 -0
- package/dist/cjs/presentation/timeboxes/__tests__/timeboxes.test.js.map +1 -0
- package/dist/cjs/presentation/timeboxes/changes.js +293 -0
- package/dist/cjs/presentation/timeboxes/changes.js.map +1 -0
- package/dist/cjs/presentation/timeboxes/mockData.js +320 -0
- package/dist/cjs/presentation/timeboxes/mockData.js.map +1 -0
- package/dist/cjs/presentation/timeboxes/model.js +186 -0
- package/dist/cjs/presentation/timeboxes/model.js.map +1 -0
- package/dist/cjs/presentation/timeboxes/pillLook.js +72 -0
- package/dist/cjs/presentation/timeboxes/pillLook.js.map +1 -0
- package/dist/cjs/presentation/timeboxes/plan.js +181 -0
- package/dist/cjs/presentation/timeboxes/plan.js.map +1 -0
- package/dist/cjs/presentation/timeboxes/reducer.js +763 -0
- package/dist/cjs/presentation/timeboxes/reducer.js.map +1 -0
- package/dist/cjs/presentation/timeboxes/scheduler.js +147 -0
- package/dist/cjs/presentation/timeboxes/scheduler.js.map +1 -0
- package/dist/cjs/presentation/timeboxes/store.js +65 -0
- package/dist/cjs/presentation/timeboxes/store.js.map +1 -0
- package/dist/cjs/presentation/timeboxes/timeBlocks.js +1931 -0
- package/dist/cjs/presentation/timeboxes/timeBlocks.js.map +1 -0
- package/dist/cjs/presentation/timeboxes/timeboxSettings.js +369 -0
- package/dist/cjs/presentation/timeboxes/timeboxSettings.js.map +1 -0
- package/dist/cjs/presentation/timeboxes/tracked.js +189 -0
- package/dist/cjs/presentation/timeboxes/tracked.js.map +1 -0
- package/dist/esm/presentation/myWork/MyWorkTasks.d.ts +81 -1
- package/dist/esm/presentation/myWork/MyWorkTasks.d.ts.map +1 -1
- package/dist/esm/presentation/myWork/MyWorkTasks.js +76 -23
- package/dist/esm/presentation/myWork/MyWorkTasks.js.map +1 -1
- package/dist/esm/presentation/myWork/agendaGrid.d.ts +341 -0
- package/dist/esm/presentation/myWork/agendaGrid.d.ts.map +1 -0
- package/dist/esm/presentation/myWork/agendaGrid.js +1001 -0
- package/dist/esm/presentation/myWork/agendaGrid.js.map +1 -0
- package/dist/esm/presentation/reports/allReports.d.ts.map +1 -1
- package/dist/esm/presentation/reports/allReports.js +6 -0
- package/dist/esm/presentation/reports/allReports.js.map +1 -1
- package/dist/esm/presentation/reports/controls.d.ts +3 -1
- package/dist/esm/presentation/reports/controls.d.ts.map +1 -1
- package/dist/esm/presentation/reports/controls.js +6 -3
- package/dist/esm/presentation/reports/controls.js.map +1 -1
- package/dist/esm/presentation/reports/expenses.d.ts +62 -0
- package/dist/esm/presentation/reports/expenses.d.ts.map +1 -0
- package/dist/esm/presentation/reports/expenses.js +849 -0
- package/dist/esm/presentation/reports/expenses.js.map +1 -0
- package/dist/esm/presentation/shared/settings.d.ts +2 -0
- package/dist/esm/presentation/shared/settings.d.ts.map +1 -1
- package/dist/esm/presentation/shared/settings.js +5 -1
- package/dist/esm/presentation/shared/settings.js.map +1 -1
- package/dist/esm/presentation/shared/tokens.d.ts +6 -0
- package/dist/esm/presentation/shared/tokens.d.ts.map +1 -1
- package/dist/esm/presentation/shared/tokens.js +7 -0
- package/dist/esm/presentation/shared/tokens.js.map +1 -1
- package/dist/esm/presentation/timeboxes/AdjustmentList.d.ts +11 -0
- package/dist/esm/presentation/timeboxes/AdjustmentList.d.ts.map +1 -0
- package/dist/esm/presentation/timeboxes/AdjustmentList.js +22 -0
- package/dist/esm/presentation/timeboxes/AdjustmentList.js.map +1 -0
- package/dist/esm/presentation/timeboxes/AgendaDayView.d.ts +15 -0
- package/dist/esm/presentation/timeboxes/AgendaDayView.d.ts.map +1 -0
- package/dist/esm/presentation/timeboxes/AgendaDayView.js +1524 -0
- package/dist/esm/presentation/timeboxes/AgendaDayView.js.map +1 -0
- package/dist/esm/presentation/timeboxes/CapacityBar.d.ts +15 -0
- package/dist/esm/presentation/timeboxes/CapacityBar.d.ts.map +1 -0
- package/dist/esm/presentation/timeboxes/CapacityBar.js +48 -0
- package/dist/esm/presentation/timeboxes/CapacityBar.js.map +1 -0
- package/dist/esm/presentation/timeboxes/SimulationCard.d.ts +13 -0
- package/dist/esm/presentation/timeboxes/SimulationCard.d.ts.map +1 -0
- package/dist/esm/presentation/timeboxes/SimulationCard.js +41 -0
- package/dist/esm/presentation/timeboxes/SimulationCard.js.map +1 -0
- package/dist/esm/presentation/timeboxes/SimulationPanel.d.ts +18 -0
- package/dist/esm/presentation/timeboxes/SimulationPanel.d.ts.map +1 -0
- package/dist/esm/presentation/timeboxes/SimulationPanel.js +267 -0
- package/dist/esm/presentation/timeboxes/SimulationPanel.js.map +1 -0
- package/dist/esm/presentation/timeboxes/TimeRecordsSection.d.ts +14 -0
- package/dist/esm/presentation/timeboxes/TimeRecordsSection.d.ts.map +1 -0
- package/dist/esm/presentation/timeboxes/TimeRecordsSection.js +159 -0
- package/dist/esm/presentation/timeboxes/TimeRecordsSection.js.map +1 -0
- package/dist/esm/presentation/timeboxes/WorkloadView.d.ts +9 -0
- package/dist/esm/presentation/timeboxes/WorkloadView.d.ts.map +1 -0
- package/dist/esm/presentation/timeboxes/WorkloadView.js +761 -0
- package/dist/esm/presentation/timeboxes/WorkloadView.js.map +1 -0
- package/dist/esm/presentation/timeboxes/__tests__/timeboxes.test.d.ts +2 -0
- package/dist/esm/presentation/timeboxes/__tests__/timeboxes.test.d.ts.map +1 -0
- package/dist/esm/presentation/timeboxes/__tests__/timeboxes.test.js +640 -0
- package/dist/esm/presentation/timeboxes/__tests__/timeboxes.test.js.map +1 -0
- package/dist/esm/presentation/timeboxes/changes.d.ts +72 -0
- package/dist/esm/presentation/timeboxes/changes.d.ts.map +1 -0
- package/dist/esm/presentation/timeboxes/changes.js +224 -0
- package/dist/esm/presentation/timeboxes/changes.js.map +1 -0
- package/dist/esm/presentation/timeboxes/mockData.d.ts +16 -0
- package/dist/esm/presentation/timeboxes/mockData.d.ts.map +1 -0
- package/dist/esm/presentation/timeboxes/mockData.js +297 -0
- package/dist/esm/presentation/timeboxes/mockData.js.map +1 -0
- package/dist/esm/presentation/timeboxes/model.d.ts +136 -0
- package/dist/esm/presentation/timeboxes/model.d.ts.map +1 -0
- package/dist/esm/presentation/timeboxes/model.js +129 -0
- package/dist/esm/presentation/timeboxes/model.js.map +1 -0
- package/dist/esm/presentation/timeboxes/pillLook.d.ts +40 -0
- package/dist/esm/presentation/timeboxes/pillLook.d.ts.map +1 -0
- package/dist/esm/presentation/timeboxes/pillLook.js +65 -0
- package/dist/esm/presentation/timeboxes/pillLook.js.map +1 -0
- package/dist/esm/presentation/timeboxes/plan.d.ts +62 -0
- package/dist/esm/presentation/timeboxes/plan.d.ts.map +1 -0
- package/dist/esm/presentation/timeboxes/plan.js +116 -0
- package/dist/esm/presentation/timeboxes/plan.js.map +1 -0
- package/dist/esm/presentation/timeboxes/reducer.d.ts +203 -0
- package/dist/esm/presentation/timeboxes/reducer.d.ts.map +1 -0
- package/dist/esm/presentation/timeboxes/reducer.js +616 -0
- package/dist/esm/presentation/timeboxes/reducer.js.map +1 -0
- package/dist/esm/presentation/timeboxes/scheduler.d.ts +63 -0
- package/dist/esm/presentation/timeboxes/scheduler.d.ts.map +1 -0
- package/dist/esm/presentation/timeboxes/scheduler.js +120 -0
- package/dist/esm/presentation/timeboxes/scheduler.js.map +1 -0
- package/dist/esm/presentation/timeboxes/store.d.ts +23 -0
- package/dist/esm/presentation/timeboxes/store.d.ts.map +1 -0
- package/dist/esm/presentation/timeboxes/store.js +46 -0
- package/dist/esm/presentation/timeboxes/store.js.map +1 -0
- package/dist/esm/presentation/timeboxes/timeBlocks.d.ts +10 -0
- package/dist/esm/presentation/timeboxes/timeBlocks.d.ts.map +1 -0
- package/dist/esm/presentation/timeboxes/timeBlocks.js +1767 -0
- package/dist/esm/presentation/timeboxes/timeBlocks.js.map +1 -0
- package/dist/esm/presentation/timeboxes/timeboxSettings.d.ts +71 -0
- package/dist/esm/presentation/timeboxes/timeboxSettings.d.ts.map +1 -0
- package/dist/esm/presentation/timeboxes/timeboxSettings.js +302 -0
- package/dist/esm/presentation/timeboxes/timeboxSettings.js.map +1 -0
- package/dist/esm/presentation/timeboxes/tracked.d.ts +51 -0
- package/dist/esm/presentation/timeboxes/tracked.d.ts.map +1 -0
- package/dist/esm/presentation/timeboxes/tracked.js +136 -0
- package/dist/esm/presentation/timeboxes/tracked.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"expenses.js","names":["React","forwardRef","useMemo","useState","moment","styled","ExportButton","IntervalStepper","SortableColumnHeader","StyledControlGroup","StyledReportToolbar","toFilterData","CURRENCIES","PROJECT_FILTER_OPTIONS","Chip","Filter","HeaderControls","IconButton","ArrowCollapseMultipleIcon","ArrowExpandeMultipleIcon","CollapseExpandSingleIcon","DollarIcon","GroupByIcon","NoResultsSlate","Paper","Select","Tooltip","Body2","Caption1","ValueButton","formatNumber","AVATAR_COLORS","FloatingControls","MD","PageHeader","PresentationShell","RoundAvatar","BILLABLE_STATUS_LABELS","EXPENSE_CATEGORIES","id","name","EXPENSE_PEOPLE","initials","color","blue","purple","green","orange","EXPENSE_PROJECTS","client_id","client_name","currency_id","EXPENSES_2026","value","category_id","user_id","project_id","parent_type","parent_name","task_number","summary","billable_status","record_date","attachments_count","invoice_number","EXPENSE_GROUP_BY_OPTIONS","EXPENSE_INTERVAL_OPTIONS","EXPENSES_FILTER_DATA","map","_ref","client","_ref2","Object","keys","Number","projectOf","_EXPENSE_PROJECTS$fin","find","project","personOf","_EXPENSE_PEOPLE$find","person","categoryOf","_EXPENSE_CATEGORIES$f","_EXPENSE_CATEGORIES$f2","category","selectedIds","filter","key","_filter$key","matchesFilter","row","checks","every","_ref3","ids","length","includes","money","currencyId","code","decimal_spaces","sumByCurrency","rows","reduce","totals","_totals$currencyId","totalsText","entries","_ref4","join","groupKeyAndLabel","groupBy","sortExpenses","sortBy","direction","sign","text","_row$invoice_number","sort","a","b","result","localeCompare","groupExpenses","groups","Map","forEach","_groups$get","_groupKeyAndLabel","label","group","get","records","push","set","list","Array","from","values","_extends","StyledExpenses","withConfig","displayName","componentId","StyledCollapsingValueButton","div","CollapsingValueButton","_ref5","ref","active","icon","_ref5$open","open","rest","_objectWithoutPropertiesLoose","_excluded","createElement","className","variant","title","ExpenseRow","_ref6","striped","columns","weight","align","$bg","$size","overflow","whitespace","utc","format","task","invoice","GroupBlock","_ref7","expanded","onToggle","onSort","_ref7$flat","flat","onClick","undefined","String","size","backgroundColor","typographyProps","position","index","ExpensesPage","_ref8","_EXPENSE_GROUP_BY_OPT","_EXPENSE_GROUP_BY_OPT2","_currencyOptions$find","_currencyOptions$find2","look","_ref8$initialGroupBy","initialGroupBy","initialExpanded","_ref8$records","_useState","setGroupBy","_useState2","groupByOpen","setGroupByOpen","_useState3","currency","setCurrency","_useState4","currencyOpen","setCurrencyOpen","_useState5","setFilter","_useState6","setSortBy","_useState7","setDirection","_useState8","collapsed","setCollapsed","_useState9","initialised","setInitialised","visible","byStatus","statuses","nonBillable","grandTotals","hasFilter","some","allExpanded","toggleAll","toggleGroup","item","handleSort","currencyOptions","_ref9","activeMenuItem","header","back","floating","options","pill","selected","onChange","onSelectOpen","onSelectClose","forceCloseMenu","disableSearch","keepSameOptionsOrder","disabledInternalSort","target","option","data","clearAllText","resetLabel","noResultText","description","clearLabel","onClear","style","margin","Fragment","_ref0"],"sources":["../../../../src/presentation/reports/expenses.tsx"],"sourcesContent":["import React, { forwardRef, ReactElement, useMemo, useState } from \"react\";\n\nimport moment from \"moment-timezone\";\nimport styled from \"styled-components\";\n\nimport {\n ExportButton,\n IntervalStepper,\n SortableColumnHeader,\n Step,\n StyledControlGroup,\n StyledReportToolbar,\n toFilterData,\n} from \"./controls\";\nimport { CURRENCIES, PROJECT_FILTER_OPTIONS } from \"./data\";\nimport { Chip } from \"../../components/Chip\";\nimport { DataType, Filter, SelectedType } from \"../../components/Filter\";\nimport { HeaderControls } from \"../../components/HeaderControls\";\nimport { IconButton } from \"../../components/IconButton\";\nimport {\n ArrowCollapseMultipleIcon,\n ArrowExpandeMultipleIcon,\n CollapseExpandSingleIcon,\n DollarIcon,\n GroupByIcon,\n} from \"../../components/Icons\";\nimport { NoResultsSlate } from \"../../components/NoResultsSlate\";\nimport { Paper } from \"../../components/Paper\";\nimport { Select } from \"../../components/Select\";\nimport { Tooltip } from \"../../components/Tooltip\";\nimport { Body2, Caption1 } from \"../../components/Typography\";\nimport { ValueButton } from \"../../components/ValueButton\";\nimport { formatNumber } from \"../../utils\";\nimport {\n AVATAR_COLORS,\n FloatingControls,\n MD,\n PageHeader,\n PresentationLook,\n PresentationShell,\n RoundAvatar,\n} from \"../shared\";\n\n/* ------------------------------------------------------------------ */\n/* Mock data */\n/* ------------------------------------------------------------------ */\n\n/**\n * mirrors: `/reports/run?type=TrackingFilter&type_filter=expenses` records\n * (TrackingFilter::run): `group_id`/`group_name` carry the expense category,\n * `value` is in the project currency, `billable_status` 0..3.\n */\nexport type BillableStatus = 0 | 1 | 2 | 3;\n\nexport const BILLABLE_STATUS_LABELS: Record<BillableStatus, string> = {\n 0: \"Non-Billable\",\n 1: \"Billable\",\n 2: \"Pending Payment\",\n 3: \"Paid\",\n};\n\nexport interface ExpenseCategory {\n id: number;\n name: string;\n}\n\nexport const EXPENSE_CATEGORIES: ExpenseCategory[] = [\n { id: 1, name: \"General\" },\n { id: 2, name: \"Travel\" },\n { id: 3, name: \"Software\" },\n { id: 4, name: \"Equipment\" },\n { id: 5, name: \"Meals\" },\n];\n\ninterface ExpensePerson {\n id: number;\n name: string;\n initials: string;\n color: string;\n}\n\nexport const EXPENSE_PEOPLE: ExpensePerson[] = [\n { id: 5, name: \"Daniel Osei\", initials: \"DO\", color: AVATAR_COLORS.blue },\n {\n id: 6,\n name: \"Sofia Marchetti\",\n initials: \"SM\",\n color: AVATAR_COLORS.purple,\n },\n { id: 3, name: \"Joshua Reyes\", initials: \"JR\", color: AVATAR_COLORS.green },\n { id: 4, name: \"Priya Anand\", initials: \"PA\", color: AVATAR_COLORS.orange },\n];\n\ninterface ExpenseProject {\n id: number;\n name: string;\n client_id: number;\n client_name: string;\n currency_id: number;\n}\n\nexport const EXPENSE_PROJECTS: ExpenseProject[] = [\n {\n id: 131,\n name: \"Website Redesign\",\n client_id: 3,\n client_name: \"Lumière Coffee\",\n currency_id: 1,\n },\n {\n id: 140,\n name: \"Brand Refresh 2026\",\n client_id: 4,\n client_name: \"Verdano\",\n currency_id: 1,\n },\n {\n id: 152,\n name: \"Spring Campaign\",\n client_id: 14,\n client_name: \"Northwind Outfitters\",\n currency_id: 2,\n },\n {\n id: 160,\n name: \"Office & Operations\",\n client_id: 1,\n client_name: \"Internal\",\n currency_id: 1,\n },\n];\n\nexport interface ExpenseRecord {\n id: number;\n value: number;\n category_id: number;\n user_id: number;\n project_id: number;\n parent_type: \"Task\" | \"Project\";\n parent_name: string;\n task_number?: number;\n summary: string;\n billable_status: BillableStatus;\n record_date: string;\n attachments_count: number;\n invoice_number?: string;\n}\n\nexport const EXPENSES_2026: ExpenseRecord[] = [\n {\n id: 1,\n value: 49,\n category_id: 3,\n user_id: 5,\n project_id: 131,\n parent_type: \"Task\",\n parent_name: \"Design the icon set\",\n task_number: 48,\n summary: \"Icon font license for one year\",\n billable_status: 1,\n record_date: \"2026-09-28\",\n attachments_count: 1,\n },\n {\n id: 2,\n value: 420,\n category_id: 2,\n user_id: 6,\n project_id: 131,\n parent_type: \"Task\",\n parent_name: \"On-site workshop with the client\",\n task_number: 51,\n summary: \"Train tickets Milan – Paris, return\",\n billable_status: 1,\n record_date: \"2026-09-24\",\n attachments_count: 2,\n },\n {\n id: 3,\n value: 86.4,\n category_id: 5,\n user_id: 6,\n project_id: 131,\n parent_type: \"Task\",\n parent_name: \"On-site workshop with the client\",\n task_number: 51,\n summary: \"Lunch with the client team\",\n billable_status: 0,\n record_date: \"2026-09-24\",\n attachments_count: 1,\n },\n {\n id: 4,\n value: 1250,\n category_id: 1,\n user_id: 5,\n project_id: 131,\n parent_type: \"Project\",\n parent_name: \"Website Redesign\",\n summary: \"Stock photography bundle\",\n billable_status: 2,\n record_date: \"2026-09-10\",\n attachments_count: 1,\n invoice_number: \"27-2026\",\n },\n {\n id: 5,\n value: 2400,\n category_id: 1,\n user_id: 3,\n project_id: 140,\n parent_type: \"Task\",\n parent_name: \"Print the brand book\",\n task_number: 12,\n summary: \"Print run, 200 copies\",\n billable_status: 3,\n record_date: \"2026-09-16\",\n attachments_count: 1,\n invoice_number: \"25-2026\",\n },\n {\n id: 6,\n value: 180,\n category_id: 3,\n user_id: 3,\n project_id: 140,\n parent_type: \"Task\",\n parent_name: \"Typeface selection\",\n task_number: 7,\n summary: \"Font family license, desktop + web\",\n billable_status: 1,\n record_date: \"2026-09-21\",\n attachments_count: 0,\n },\n {\n id: 7,\n value: 64,\n category_id: 2,\n user_id: 4,\n project_id: 140,\n parent_type: \"Project\",\n parent_name: \"Brand Refresh 2026\",\n summary: \"Taxi to the photo shoot\",\n billable_status: 1,\n record_date: \"2026-09-22\",\n attachments_count: 1,\n },\n {\n id: 8,\n value: 3200,\n category_id: 4,\n user_id: 4,\n project_id: 152,\n parent_type: \"Task\",\n parent_name: \"Product photo shoot\",\n task_number: 23,\n summary: \"Camera and lighting rental, 2 days\",\n billable_status: 1,\n record_date: \"2026-09-25\",\n attachments_count: 3,\n },\n {\n id: 9,\n value: 540,\n category_id: 2,\n user_id: 4,\n project_id: 152,\n parent_type: \"Task\",\n parent_name: \"Product photo shoot\",\n task_number: 23,\n summary: \"Flight to Portland\",\n billable_status: 2,\n record_date: \"2026-09-12\",\n attachments_count: 1,\n invoice_number: \"26-2026\",\n },\n {\n id: 10,\n value: 29,\n category_id: 3,\n user_id: 5,\n project_id: 160,\n parent_type: \"Project\",\n parent_name: \"Office & Operations\",\n summary: \"Team password manager, monthly\",\n billable_status: 0,\n record_date: \"2026-09-01\",\n attachments_count: 0,\n },\n {\n id: 11,\n value: 312.5,\n category_id: 4,\n user_id: 6,\n project_id: 160,\n parent_type: \"Project\",\n parent_name: \"Office & Operations\",\n summary: \"Second monitor for the design desk\",\n billable_status: 0,\n record_date: \"2026-09-08\",\n attachments_count: 1,\n },\n];\n\n/* ------------------------------------------------------------------ */\n/* Lookups & grouping */\n/* ------------------------------------------------------------------ */\n\nexport type ExpenseGroupBy =\n | \"dont\"\n | \"project\"\n | \"project_client\"\n | \"expense_category\"\n | \"user\"\n | \"billable_status\";\n\n/* mirrors: TrackingFilter group_by values that apply to expenses (\"dont\" = DataFilter::DONT_GROUP) */\nexport const EXPENSE_GROUP_BY_OPTIONS: { id: ExpenseGroupBy; name: string }[] =\n [\n { id: \"dont\", name: \"No Grouping\" },\n { id: \"project\", name: \"Project\" },\n { id: \"project_client\", name: \"Client\" },\n { id: \"expense_category\", name: \"Category\" },\n { id: \"user\", name: \"Person\" },\n { id: \"billable_status\", name: \"Status\" },\n ];\n\nconst EXPENSE_INTERVAL_OPTIONS: { id: Step; name: string }[] = [\n { id: \"monthly\", name: \"Monthly\" },\n { id: \"quarterly\", name: \"Quarterly\" },\n { id: \"yearly\", name: \"Yearly\" },\n { id: \"custom\", name: \"Custom\" },\n];\n\nexport const EXPENSES_FILTER_DATA: DataType[] = [\n toFilterData(\n \"project\",\n \"Project\",\n \"projects\",\n EXPENSE_PROJECTS.map(({ id, name }) => ({ id, name }))\n ),\n toFilterData(\"client\", \"Client\", \"clients\", PROJECT_FILTER_OPTIONS.client),\n toFilterData(\"category\", \"Category\", \"categories\", EXPENSE_CATEGORIES),\n toFilterData(\n \"user\",\n \"Person\",\n \"people\",\n EXPENSE_PEOPLE.map(({ id, name }) => ({ id, name }))\n ),\n toFilterData(\n \"status\",\n \"Status\",\n \"status\",\n (Object.keys(BILLABLE_STATUS_LABELS) as unknown as BillableStatus[]).map(\n (id) => ({ id: Number(id), name: BILLABLE_STATUS_LABELS[id] })\n )\n ),\n];\n\nconst projectOf = (id: number): ExpenseProject =>\n EXPENSE_PROJECTS.find((project) => project.id === id) ?? EXPENSE_PROJECTS[0];\nconst personOf = (id: number): ExpensePerson =>\n EXPENSE_PEOPLE.find((person) => person.id === id) ?? EXPENSE_PEOPLE[0];\nconst categoryOf = (id: number): string =>\n EXPENSE_CATEGORIES.find((category) => category.id === id)?.name ?? \"\";\n\n/* The DS Filter keeps the selected option ids as strings per filter id. */\nconst selectedIds = (filter: SelectedType, key: string): number[] =>\n (filter[key] ?? []).map(Number);\n\nconst matchesFilter = (\n row: ExpenseRecord,\n project: ExpenseProject,\n filter: SelectedType\n): boolean => {\n const checks: [string, number][] = [\n [\"project\", row.project_id],\n [\"client\", project.client_id],\n [\"category\", row.category_id],\n [\"user\", row.user_id],\n [\"status\", row.billable_status],\n ];\n return checks.every(([key, value]) => {\n const ids = selectedIds(filter, key);\n return ids.length === 0 || ids.includes(value);\n });\n};\n\ntype CurrencyTotals = Record<number, number>;\n\nconst money = (value: number, currencyId: number): string =>\n `${CURRENCIES[currencyId].code} ${formatNumber(\n value,\n \",\",\n \".\",\n false,\n CURRENCIES[currencyId].decimal_spaces,\n \"short\",\n 10000\n )}`;\n\nconst sumByCurrency = (rows: ExpenseRecord[]): CurrencyTotals =>\n rows.reduce<CurrencyTotals>((totals, row) => {\n const currencyId = projectOf(row.project_id).currency_id;\n totals[currencyId] = (totals[currencyId] ?? 0) + row.value;\n return totals;\n }, {});\n\nconst totalsText = (totals: CurrencyTotals): string =>\n Object.entries(totals)\n .map(([currencyId, value]) => money(value, Number(currencyId)))\n .join(\" + \");\n\ninterface ExpenseGroup {\n key: string;\n label: string;\n records: ExpenseRecord[];\n totals: CurrencyTotals;\n}\n\nconst groupKeyAndLabel = (\n row: ExpenseRecord,\n groupBy: ExpenseGroupBy\n): [string, string] => {\n const project = projectOf(row.project_id);\n switch (groupBy) {\n case \"dont\":\n return [\"all\", \"All Expenses\"];\n case \"project\":\n return [`project-${project.id}`, project.name];\n case \"project_client\":\n return [`client-${project.client_id}`, project.client_name];\n case \"expense_category\":\n return [\n `expense-category-${row.category_id}`,\n categoryOf(row.category_id),\n ];\n case \"user\":\n return [`user-${row.user_id}`, personOf(row.user_id).name];\n case \"billable_status\":\n default:\n return [\n `billable-status-${row.billable_status}`,\n BILLABLE_STATUS_LABELS[row.billable_status],\n ];\n }\n};\n\nexport type ExpenseSort =\n | \"value\"\n | \"category\"\n | \"summary\"\n | \"record_date\"\n | \"client\"\n | \"project\"\n | \"task\"\n | \"invoice\"\n | \"status\";\n\n/* mirrors: client-side sortReportData of the Time/Payments reports */\nconst sortExpenses = (\n rows: ExpenseRecord[],\n sortBy: ExpenseSort,\n direction: \"asc\" | \"desc\"\n): ExpenseRecord[] => {\n const sign = direction === \"asc\" ? 1 : -1;\n const text = (row: ExpenseRecord): string => {\n const project = projectOf(row.project_id);\n switch (sortBy) {\n case \"category\":\n return categoryOf(row.category_id);\n case \"summary\":\n return row.summary;\n case \"client\":\n return project.client_name;\n case \"project\":\n return project.name;\n case \"task\":\n return row.parent_type === \"Task\" ? row.parent_name : \"\";\n case \"invoice\":\n return row.invoice_number ?? \"\";\n case \"record_date\":\n default:\n return row.record_date;\n }\n };\n return [...rows].sort((a, b) => {\n if (sortBy === \"value\") {\n return sign * (a.value - b.value);\n }\n if (sortBy === \"status\") {\n return sign * (a.billable_status - b.billable_status);\n }\n const result = text(a).localeCompare(text(b));\n return result !== 0\n ? sign * result\n : b.record_date.localeCompare(a.record_date);\n });\n};\n\nconst groupExpenses = (\n rows: ExpenseRecord[],\n groupBy: ExpenseGroupBy,\n sortBy: ExpenseSort,\n direction: \"asc\" | \"desc\"\n): ExpenseGroup[] => {\n const groups = new Map<string, ExpenseGroup>();\n rows.forEach((row) => {\n const [key, label] = groupKeyAndLabel(row, groupBy);\n const group = groups.get(key) ?? { key, label, records: [], totals: {} };\n group.records.push(row);\n groups.set(key, group);\n });\n const list = Array.from(groups.values()).map((group) => ({\n ...group,\n records: sortExpenses(group.records, sortBy, direction),\n totals: sumByCurrency(group.records),\n }));\n if (groupBy === \"billable_status\") {\n return list.sort((a, b) => a.key.localeCompare(b.key));\n }\n return list.sort((a, b) => a.label.localeCompare(b.label));\n};\n\n/* ------------------------------------------------------------------ */\n/* Styles */\n/* ------------------------------------------------------------------ */\n\nconst StyledExpenses = styled(Paper)`\n display: flex;\n flex-direction: column;\n height: 100%;\n margin-bottom: 32px;\n\n /* Sticky results toolbar (TimeFilterResults: total + expand all) */\n .results-toolbar {\n position: sticky;\n top: 0;\n z-index: 2;\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 8px;\n height: 40px;\n margin: 8px 8px 0;\n padding: 0 8px;\n box-sizing: border-box;\n border-bottom: 1px solid var(--border-primary);\n background-color: var(--page-paper-main);\n }\n\n .results-toolbar-left {\n display: flex;\n align-items: center;\n gap: 8px;\n min-width: 0;\n }\n\n /* ExpandAllToggler: a text-gray IconButton, pulled in like the app's Page.ControlGroup buttons */\n .expand-all {\n margin-left: calc(var(--c-btn-inset) * -1);\n }\n\n /* One column as wide as the widest group (or the box): the groups and the grand total share it, so the total reaches the scrolled-to right edge. */\n .scroll {\n position: relative;\n display: grid;\n grid-template-columns: minmax(max-content, 1fr);\n align-content: start;\n max-height: 100%;\n margin: 4px 8px;\n overflow: auto;\n }\n\n .group {\n width: max-content;\n min-width: 100%;\n margin-bottom: 8px;\n }\n\n .head,\n .row,\n .group-total {\n display: flex;\n align-items: center;\n gap: 8px;\n height: 40px;\n box-sizing: border-box;\n }\n\n .row {\n border-radius: 8px;\n background-color: var(--page-paper-main);\n }\n\n .row.striped {\n background-color: var(--color-theme-200);\n }\n\n /* first cell: sticky on the left (TimeFilter first column: value + who) */\n .first {\n position: sticky;\n left: 0;\n z-index: 1;\n display: flex;\n align-items: center;\n gap: 8px;\n width: 168px;\n flex-shrink: 0;\n height: 40px;\n padding: 0 8px;\n box-sizing: border-box;\n border-radius: 8px;\n background-color: inherit;\n }\n\n .head .first {\n background-color: var(--page-paper-main);\n cursor: pointer;\n }\n\n .head .first.static {\n cursor: default;\n }\n\n /* TimeReportResultGroup collapsed: the name cell grows (tw:w-8/12) since there are no column headers to share the row with */\n .head .first.collapsed {\n flex: 1;\n width: auto;\n min-width: 168px;\n }\n\n .head .first.collapsed .group-label .c-typography {\n max-width: none;\n }\n\n .head .first:hover .expander {\n fill: var(--color-primary);\n }\n\n /* ExpandToggle: CollapseExpandSingleIcon, rotated 180° while collapsed */\n .expander {\n width: 24px;\n height: 24px;\n flex-shrink: 0;\n fill: var(--color-theme-600);\n transition: transform 200ms;\n }\n\n .expander.collapsed {\n transform: rotate(180deg);\n }\n\n .group-label {\n display: flex;\n align-items: center;\n gap: 8px;\n min-width: 0;\n }\n\n .count-chip {\n flex-shrink: 0;\n }\n\n .cols {\n display: flex;\n align-items: center;\n gap: 8px;\n height: 40px;\n padding-right: 8px;\n }\n\n .link {\n overflow: hidden;\n text-decoration: none;\n cursor: pointer;\n }\n\n .amount {\n display: flex;\n justify-content: flex-end;\n width: 96px;\n flex-shrink: 0;\n }\n\n .avatar {\n flex-shrink: 0;\n }\n\n .w-category {\n width: 120px;\n flex-shrink: 0;\n }\n\n .w-description {\n display: flex;\n align-items: center;\n gap: 4px;\n width: 240px;\n flex: 1;\n min-width: 0;\n }\n\n .w-date {\n width: 88px;\n flex-shrink: 0;\n }\n\n .w-client,\n .w-project {\n width: 144px;\n flex-shrink: 0;\n }\n\n .w-task {\n width: 184px;\n flex-shrink: 0;\n }\n\n .w-invoice {\n width: 96px;\n flex-shrink: 0;\n }\n\n .w-status {\n display: flex;\n justify-content: flex-end;\n width: 128px;\n flex-shrink: 0;\n margin-left: auto;\n }\n\n /* TimeFilterResults SubgroupTotal: a striped full row, \"Total: …\" at the left */\n .group-total {\n padding: 0 8px;\n border-radius: 8px;\n background-color: var(--page-paper-main);\n }\n\n .group-total.striped {\n background-color: var(--color-theme-200);\n }\n\n .group-total-label {\n position: sticky;\n left: 8px;\n }\n\n /* TimeReportResultGroup collapsed: the total takes the place of the column headers, pinned right */\n .group-sum {\n position: sticky;\n right: 8px;\n margin-left: auto;\n padding-right: 8px;\n }\n\n .grand-total {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 12px 8px;\n border-top: 1px solid var(--border-primary);\n }\n\n .grand-total-label {\n position: sticky;\n left: 8px;\n }\n\n .totals {\n display: flex;\n align-items: center;\n gap: 16px;\n }\n`;\n\n/* ------------------------------------------------------------------ */\n/* Pieces */\n/* ------------------------------------------------------------------ */\n\n/* UserProfileProjectsSortByPicker.js: a ValueButton that gives way to an icon button on narrow screens.\n It collapses at MD, where the Filter CounterButton drops its label too. */\nconst StyledCollapsingValueButton = styled.div`\n display: flex;\n flex-shrink: 0;\n\n .collapsed-trigger {\n display: none;\n }\n\n @media (max-width: ${MD}) {\n .c-value-button {\n display: none;\n }\n\n .collapsed-trigger {\n display: flex;\n }\n }\n`;\n\nconst CollapsingValueButton = forwardRef<\n HTMLDivElement,\n {\n active: boolean;\n label: string;\n value: string;\n icon: ReactElement;\n /** Passed by the Select menu to its target: the menu is open. */\n open?: boolean;\n onClick?: (event: React.MouseEvent) => void;\n }\n>(({ active, label, value, icon, open = false, ...rest }, ref) => (\n <StyledCollapsingValueButton ref={ref} {...rest}>\n <ValueButton active={active || open} label={label} value={value} />\n <IconButton\n className=\"collapsed-trigger\"\n variant=\"text gray\"\n active={active || open}\n title={label}\n aria-label={`${label}: ${value}`}\n >\n {icon}\n </IconButton>\n </StyledCollapsingValueButton>\n));\n\nCollapsingValueButton.displayName = \"CollapsingValueButton\";\n\ninterface ColumnVisibility {\n category: boolean;\n client: boolean;\n project: boolean;\n task: boolean;\n invoice: boolean;\n}\n\nconst ExpenseRow = ({\n row,\n striped,\n columns,\n}: {\n row: ExpenseRecord;\n striped: boolean;\n columns: ColumnVisibility;\n}): ReactElement => {\n const project = projectOf(row.project_id);\n const person = personOf(row.user_id);\n return (\n <div className={striped ? \"row striped\" : \"row\"}>\n <div className=\"first\">\n <Caption1\n weight=\"bold\"\n color=\"secondary\"\n align=\"right\"\n className=\"amount\"\n title={formatNumber(row.value, \",\", \".\", false, 2)}\n >\n {money(row.value, project.currency_id)}\n </Caption1>\n <Tooltip title={person.name}>\n <RoundAvatar $bg={person.color} $size={24} className=\"avatar\">\n {person.initials}\n </RoundAvatar>\n </Tooltip>\n </div>\n <div className=\"cols\">\n {columns.category ? (\n <Body2\n overflow=\"truncate\"\n whitespace=\"no-wrap\"\n className=\"w-category\"\n >\n {categoryOf(row.category_id)}\n </Body2>\n ) : null}\n <span className=\"w-description\">\n <Body2 overflow=\"truncate\" whitespace=\"no-wrap\">\n {row.summary}\n </Body2>\n </span>\n <Caption1\n align=\"right\"\n overflow=\"truncate\"\n whitespace=\"no-wrap\"\n className=\"w-date\"\n >\n {moment.utc(row.record_date).format(\"MMM D.\")}\n </Caption1>\n {columns.client ? (\n <Body2 overflow=\"truncate\" whitespace=\"no-wrap\" className=\"w-client\">\n {project.client_name}\n </Body2>\n ) : null}\n {columns.project ? (\n <a className=\"link w-project\">\n <Body2\n color=\"theme-primary\"\n overflow=\"truncate\"\n whitespace=\"no-wrap\"\n >\n {project.name}\n </Body2>\n </a>\n ) : null}\n {columns.task ? (\n row.parent_type === \"Task\" ? (\n <a className=\"link w-task\">\n <Body2\n color=\"theme-primary\"\n overflow=\"truncate\"\n whitespace=\"no-wrap\"\n >\n {`#${row.task_number} ${row.parent_name}`}\n </Body2>\n </a>\n ) : (\n <Body2 color=\"tertiary\" className=\"w-task\">\n Project\n </Body2>\n )\n ) : null}\n {columns.invoice ? (\n row.invoice_number ? (\n <a className=\"link w-invoice\">\n <Body2\n color=\"theme-primary\"\n overflow=\"truncate\"\n whitespace=\"no-wrap\"\n >\n {row.invoice_number}\n </Body2>\n </a>\n ) : (\n <span className=\"w-invoice\" />\n )\n ) : null}\n <span className=\"w-status\">\n <Body2 align=\"right\" overflow=\"truncate\" whitespace=\"no-wrap\">\n {BILLABLE_STATUS_LABELS[row.billable_status]}\n </Body2>\n </span>\n </div>\n </div>\n );\n};\n\nconst GroupBlock = ({\n group,\n expanded,\n onToggle,\n columns,\n sortBy,\n direction,\n onSort,\n flat = false,\n}: {\n group: ExpenseGroup;\n expanded: boolean;\n onToggle: () => void;\n /** \"No Grouping\": one block, no expander and no subtotal (the grand total is enough). */\n flat?: boolean;\n columns: ColumnVisibility;\n sortBy: string;\n direction: \"asc\" | \"desc\";\n onSort: (id: string) => void;\n}): ReactElement => (\n <div className=\"group\">\n <div className=\"head\">\n <div\n className={[\n \"first\",\n flat ? \"static\" : \"\",\n !flat && !expanded ? \"collapsed\" : \"\",\n ].join(\" \")}\n onClick={flat ? undefined : onToggle}\n >\n {flat ? null : (\n <CollapseExpandSingleIcon\n className={expanded ? \"expander\" : \"expander collapsed\"}\n />\n )}\n <span className=\"group-label\">\n {flat ? (\n <SortableColumnHeader\n id=\"value\"\n title=\"Amount\"\n sortBy={sortBy}\n direction={direction}\n onSort={onSort}\n />\n ) : (\n <Caption1 weight=\"bold\" overflow=\"truncate\" whitespace=\"no-wrap\">\n {group.label}\n </Caption1>\n )}\n <Chip\n label={String(group.records.length)}\n size=\"small\"\n backgroundColor=\"var(--color-theme-300)\"\n className=\"count-chip\"\n typographyProps={{\n variant: \"Caption 1\",\n weight: \"medium\",\n color: \"secondary\",\n }}\n />\n </span>\n </div>\n {!expanded && !flat ? (\n <Caption1 weight=\"bold\" whitespace=\"no-wrap\" className=\"group-sum\">\n {totalsText(group.totals)}\n </Caption1>\n ) : (\n <div className=\"cols\">\n {columns.category ? (\n <SortableColumnHeader\n id=\"category\"\n title=\"Category\"\n sortBy={sortBy}\n direction={direction}\n onSort={onSort}\n className=\"w-category\"\n />\n ) : null}\n <SortableColumnHeader\n id=\"summary\"\n title=\"Description\"\n sortBy={sortBy}\n direction={direction}\n onSort={onSort}\n className=\"w-description\"\n />\n <SortableColumnHeader\n id=\"record_date\"\n title=\"Date\"\n sortBy={sortBy}\n direction={direction}\n onSort={onSort}\n position=\"left\"\n className=\"w-date\"\n />\n {columns.client ? (\n <SortableColumnHeader\n id=\"client\"\n title=\"Client\"\n sortBy={sortBy}\n direction={direction}\n onSort={onSort}\n className=\"w-client\"\n />\n ) : null}\n {columns.project ? (\n <SortableColumnHeader\n id=\"project\"\n title=\"Project\"\n sortBy={sortBy}\n direction={direction}\n onSort={onSort}\n className=\"w-project\"\n />\n ) : null}\n {columns.task ? (\n <SortableColumnHeader\n id=\"task\"\n title=\"Task\"\n sortBy={sortBy}\n direction={direction}\n onSort={onSort}\n className=\"w-task\"\n />\n ) : null}\n {columns.invoice ? (\n <SortableColumnHeader\n id=\"invoice\"\n title=\"Invoice #\"\n sortBy={sortBy}\n direction={direction}\n onSort={onSort}\n className=\"w-invoice\"\n />\n ) : null}\n <SortableColumnHeader\n id=\"status\"\n title=\"Status\"\n sortBy={sortBy}\n direction={direction}\n onSort={onSort}\n position=\"left\"\n className=\"w-status\"\n />\n </div>\n )}\n </div>\n {expanded || flat\n ? group.records.map((row, index) => (\n <ExpenseRow\n key={row.id}\n row={row}\n striped={index % 2 === 0}\n columns={columns}\n />\n ))\n : null}\n {flat || !expanded ? null : (\n <div\n className={\n group.records.length % 2 === 0 ? \"group-total striped\" : \"group-total\"\n }\n >\n <Caption1\n weight=\"bold\"\n className=\"group-total-label\"\n overflow=\"truncate\"\n whitespace=\"no-wrap\"\n >\n {`Total: ${totalsText(group.totals)}`}\n </Caption1>\n </div>\n )}\n </div>\n);\n\n/* ------------------------------------------------------------------ */\n/* Page */\n/* ------------------------------------------------------------------ */\n\nexport const ExpensesPage = ({\n look,\n initialGroupBy = \"dont\",\n initialExpanded,\n records = EXPENSES_2026,\n}: {\n look?: PresentationLook;\n initialGroupBy?: ExpenseGroupBy;\n /** Group keys that start expanded; all when omitted. */\n initialExpanded?: string[];\n records?: ExpenseRecord[];\n}): ReactElement => {\n const [groupBy, setGroupBy] = useState<ExpenseGroupBy>(initialGroupBy);\n const [groupByOpen, setGroupByOpen] = useState(false);\n const [currency, setCurrency] = useState<number>(0);\n const [currencyOpen, setCurrencyOpen] = useState(false);\n const [filter, setFilter] = useState<SelectedType>({});\n const [sortBy, setSortBy] = useState<ExpenseSort>(\"record_date\");\n const [direction, setDirection] = useState<\"asc\" | \"desc\">(\"desc\");\n const [collapsed, setCollapsed] = useState<string[]>([]);\n const [initialised, setInitialised] = useState(false);\n\n const visible = useMemo(\n () =>\n records.filter((row) => {\n const project = projectOf(row.project_id);\n if (currency && project.currency_id !== currency) {\n return false;\n }\n return matchesFilter(row, project, filter);\n }),\n [records, currency, filter]\n );\n const groups = useMemo(\n () => groupExpenses(visible, groupBy, sortBy, direction),\n [visible, groupBy, sortBy, direction]\n );\n\n if (!initialised && initialExpanded) {\n setCollapsed(\n groups\n .map((group) => group.key)\n .filter((key) => !initialExpanded.includes(key))\n );\n setInitialised(true);\n }\n\n const byStatus = (statuses: BillableStatus[]): ExpenseRecord[] =>\n visible.filter((row) => statuses.includes(row.billable_status));\n const nonBillable = byStatus([0]);\n const grandTotals = sumByCurrency(visible);\n const hasFilter =\n currency !== 0 || Object.values(filter).some((ids) => ids.length > 0);\n\n const flat = groupBy === \"dont\";\n const columns: ColumnVisibility = {\n category: groupBy !== \"expense_category\",\n client: groupBy !== \"project_client\",\n project: groupBy !== \"project\",\n task: true,\n invoice: true,\n };\n\n const allExpanded = collapsed.length === 0;\n const toggleAll = (): void =>\n setCollapsed(allExpanded ? groups.map((group) => group.key) : []);\n const toggleGroup = (key: string): void =>\n setCollapsed(\n collapsed.includes(key)\n ? collapsed.filter((item) => item !== key)\n : [...collapsed, key]\n );\n const handleSort = (id: string): void => {\n if (id === sortBy) {\n setDirection(direction === \"asc\" ? \"desc\" : \"asc\");\n return;\n }\n setSortBy(id as ExpenseSort);\n setDirection(id === \"record_date\" || id === \"value\" ? \"desc\" : \"asc\");\n };\n\n const currencyOptions = [\n { id: 0, name: \"Any\" },\n ...Object.entries(CURRENCIES).map(([id, value]) => ({\n id: Number(id),\n name: value.code,\n })),\n ];\n\n return (\n <PresentationShell\n look={look}\n activeMenuItem=\"Reports\"\n header={<PageHeader title=\"Expenses\" back />}\n floating={<FloatingControls />}\n >\n <StyledReportToolbar>\n <StyledControlGroup className=\"toolbar-left\">\n <IntervalStepper options={EXPENSE_INTERVAL_OPTIONS} pill />\n </StyledControlGroup>\n <HeaderControls>\n <HeaderControls>\n <ExportButton />\n </HeaderControls>\n <HeaderControls>\n <Select\n options={EXPENSE_GROUP_BY_OPTIONS}\n selected={groupBy}\n onChange={(value) => setGroupBy(String(value) as ExpenseGroupBy)}\n onSelectOpen={() => setGroupByOpen(true)}\n onSelectClose={() => setGroupByOpen(false)}\n forceCloseMenu\n disableSearch\n keepSameOptionsOrder\n disabledInternalSort\n target={\n <CollapsingValueButton\n active={groupByOpen}\n icon={<GroupByIcon />}\n label=\"Group by\"\n value={\n EXPENSE_GROUP_BY_OPTIONS.find(\n (option) => option.id === groupBy\n )?.name ?? \"No Grouping\"\n }\n />\n }\n />\n <Filter\n data={EXPENSES_FILTER_DATA}\n selected={filter}\n label=\"Filter\"\n clearAllText=\"Clear All\"\n resetLabel=\"Reset\"\n noResultText=\"No results\"\n onChange={setFilter}\n />\n <Select\n options={currencyOptions}\n selected={currency}\n onChange={(value) => setCurrency(Number(value))}\n onSelectOpen={() => setCurrencyOpen(true)}\n onSelectClose={() => setCurrencyOpen(false)}\n forceCloseMenu\n disableSearch\n keepSameOptionsOrder\n disabledInternalSort\n target={\n <CollapsingValueButton\n active={currencyOpen}\n icon={<DollarIcon />}\n label=\"Currency\"\n value={\n currencyOptions.find((option) => option.id === currency)\n ?.name ?? \"Any\"\n }\n />\n }\n />\n </HeaderControls>\n </HeaderControls>\n </StyledReportToolbar>\n <StyledExpenses>\n {visible.length === 0 ? (\n <NoResultsSlate\n title=\"No Expenses\"\n description={\n hasFilter\n ? \"No expenses match the filter.\"\n : \"No expenses were recorded in this period.\"\n }\n clearLabel={hasFilter ? \"Clear Filter\" : undefined}\n onClear={\n hasFilter\n ? () => {\n setFilter({});\n setCurrency(0);\n }\n : undefined\n }\n style={{ margin: \"auto\" }}\n />\n ) : (\n <>\n <div className=\"results-toolbar\">\n <div className=\"results-toolbar-left\">\n {flat ? null : (\n <Tooltip title={allExpanded ? \"Collapse all\" : \"Expand all\"}>\n <IconButton\n variant=\"text gray\"\n className=\"expand-all\"\n onClick={toggleAll}\n >\n {allExpanded ? (\n <ArrowCollapseMultipleIcon />\n ) : (\n <ArrowExpandeMultipleIcon />\n )}\n </IconButton>\n </Tooltip>\n )}\n <Caption1\n weight=\"bold\"\n overflow=\"truncate\"\n whitespace=\"no-wrap\"\n >\n {`Total: ${totalsText(grandTotals)}`}\n </Caption1>\n <Caption1\n color=\"secondary\"\n overflow=\"truncate\"\n whitespace=\"no-wrap\"\n >\n {`(${totalsText(\n sumByCurrency(byStatus([1, 2, 3]))\n )} Billable / ${\n totalsText(sumByCurrency(nonBillable)) || \"0\"\n } Non-Billable)`}\n </Caption1>\n </div>\n </div>\n <div className=\"scroll\">\n {groups.map((group) => (\n <GroupBlock\n key={group.key}\n group={group}\n expanded={!collapsed.includes(group.key)}\n onToggle={() => toggleGroup(group.key)}\n columns={columns}\n sortBy={sortBy}\n direction={direction}\n onSort={handleSort}\n flat={flat}\n />\n ))}\n <div className=\"grand-total\">\n <Caption1 weight=\"bold\" className=\"grand-total-label\">\n Total:\n </Caption1>\n <div className=\"totals\">\n {Object.entries(grandTotals).map(([currencyId, value]) => (\n <Caption1 key={currencyId} weight=\"bold\" align=\"right\">\n {money(value, Number(currencyId))}\n </Caption1>\n ))}\n </div>\n </div>\n </div>\n </>\n )}\n </StyledExpenses>\n </PresentationShell>\n );\n};\n"],"mappings":";;;AAAA,OAAOA,KAAK,IAAIC,UAAU,EAAgBC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AAE1E,OAAOC,MAAM,MAAM,iBAAiB;AACpC,OAAOC,MAAM,MAAM,mBAAmB;AAEtC,SACEC,YAAY,EACZC,eAAe,EACfC,oBAAoB,EAEpBC,kBAAkB,EAClBC,mBAAmB,EACnBC,YAAY,QACP,YAAY;AACnB,SAASC,UAAU,EAAEC,sBAAsB,QAAQ,QAAQ;AAC3D,SAASC,IAAI,QAAQ,uBAAuB;AAC5C,SAAmBC,MAAM,QAAsB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;IACjBlD,MAAM,EAAEA,MAAO;IACfC,SAAS,EAAEA,SAAU;IACrBgE,MAAM,EAAEwD,UAAW;IACnBtD,IAAI,EAAEA;EAAK,CACZ,CACF,CAAC,eACFrL,KAAA,CAAA6J,aAAA;IAAKC,SAAS,EAAC;EAAa,gBAC1B9J,KAAA,CAAA6J,aAAA,CAACjI,QAAQ;IAACyI,MAAM,EAAC,MAAM;IAACP,SAAS,EAAC;EAAmB,GAAC,QAE5C,CAAC,eACX9J,KAAA,CAAA6J,aAAA;IAAKC,SAAS,EAAC;EAAQ,GACpBtF,MAAM,CAACoC,OAAO,CAACwH,WAAW,CAAC,CAAChK,GAAG,CAACoM,KAAA;IAAA,IAAErK,UAAU,GAAAqK,KAAA;MAAEnN,KAAK,GAAAmN,KAAA;IAAA,oBAClDxQ,KAAA,CAAA6J,aAAA,CAACjI,QAAQ;MAAC4D,GAAG,EAAEW,UAAW;MAACkE,MAAM,EAAC,MAAM;MAACC,KAAK,EAAC;IAAO,GACnDpE,KAAK,CAAC7C,KAAK,EAAEqB,MAAM,CAACyB,UAAU,CAAC,CACxB,CAAC;EAAA,CACZ,CACE,CACF,CACF,CACL,CAEU,CACC,CAAC;AAExB,CAAC","ignoreList":[]}
|
|
@@ -28,6 +28,8 @@ export interface SettingGroupProps {
|
|
|
28
28
|
export declare const SettingGroupInserts: React.Context<Record<string, React.ReactNode>>;
|
|
29
29
|
/** Rows drawn in place of the rows of the group with this label. A Redesign story gives an older page its new_task rows with it. */
|
|
30
30
|
export declare const SettingGroupRows: React.Context<Record<string, React.ReactNode>>;
|
|
31
|
+
/** Rows drawn after the rows of the group with this label. A concept adds its rows to an existing group with it. */
|
|
32
|
+
export declare const SettingGroupAppends: React.Context<Record<string, React.ReactNode>>;
|
|
31
33
|
export declare const SettingGroup: ({ label, children, className, }: SettingGroupProps) => ReactElement;
|
|
32
34
|
/** A settings row card: title + description on the left, control on the right. */
|
|
33
35
|
export declare const StyledSettingRow: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement> & import("../..").ICardProps, "ref"> & React.RefAttributes<HTMLDivElement>>, any, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../../src/presentation/shared/settings.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,KAAK,EAAE,EAEZ,YAAY,EACZ,SAAS,EAKV,MAAM,OAAO,CAAC;AAIf,OAAO,EAEL,uBAAuB,EACxB,MAAM,wBAAwB,CAAC;AAuFhC,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,cAAc,GAAI,uBAG5B,mBAAmB,KAAG,YAaxB,CAAC;AAMF,8EAA8E;AAC9E,eAAO,MAAM,eAAe,oEAM3B,CAAC;AAiBF,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wHAAwH;AACxH,eAAO,MAAM,mBAAmB,gDAA+C,CAAC;AAEhF,oIAAoI;AACpI,eAAO,MAAM,gBAAgB,gDAA+C,CAAC;AAE7E,eAAO,MAAM,YAAY,GAAI,iCAI1B,iBAAiB,KAAG,
|
|
1
|
+
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../../src/presentation/shared/settings.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,KAAK,EAAE,EAEZ,YAAY,EACZ,SAAS,EAKV,MAAM,OAAO,CAAC;AAIf,OAAO,EAEL,uBAAuB,EACxB,MAAM,wBAAwB,CAAC;AAuFhC,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,cAAc,GAAI,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mBAAmB,GAAI,YAEjC,wBAAwB,KAAG,YA2D7B,CAAC"}
|
|
@@ -73,6 +73,9 @@ export const SettingGroupInserts = /*#__PURE__*/createContext({});
|
|
|
73
73
|
|
|
74
74
|
/** Rows drawn in place of the rows of the group with this label. A Redesign story gives an older page its new_task rows with it. */
|
|
75
75
|
export const SettingGroupRows = /*#__PURE__*/createContext({});
|
|
76
|
+
|
|
77
|
+
/** Rows drawn after the rows of the group with this label. A concept adds its rows to an existing group with it. */
|
|
78
|
+
export const SettingGroupAppends = /*#__PURE__*/createContext({});
|
|
76
79
|
export const SettingGroup = _ref2 => {
|
|
77
80
|
var _rows$label;
|
|
78
81
|
let label = _ref2.label,
|
|
@@ -80,11 +83,12 @@ export const SettingGroup = _ref2 => {
|
|
|
80
83
|
className = _ref2.className;
|
|
81
84
|
const inserts = useContext(SettingGroupInserts);
|
|
82
85
|
const rows = useContext(SettingGroupRows);
|
|
86
|
+
const appends = useContext(SettingGroupAppends);
|
|
83
87
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StyledSettingGroup, {
|
|
84
88
|
className: className
|
|
85
89
|
}, /*#__PURE__*/React.createElement(Label, {
|
|
86
90
|
className: "group-label"
|
|
87
|
-
}, label), (_rows$label = rows[label]) != null ? _rows$label : children), inserts[label]);
|
|
91
|
+
}, label), (_rows$label = rows[label]) != null ? _rows$label : children, appends[label]), inserts[label]);
|
|
88
92
|
};
|
|
89
93
|
|
|
90
94
|
/** A settings row card: title + description on the left, control on the right. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings.js","names":["React","createContext","useContext","useEffect","useRef","useState","styled","SYSTEM_SETTINGS_GROUPS","MD","SM","Card","Chip","ComboBox","IconButton","ArrowLeftIcon","CollapseExpandSingleIcon","SearchIcon","Label","Select","SelectTrigger","Body2","Caption1","Header2","Title2","StyledSettingsHeader","div","withConfig","displayName","componentId","SettingsHeader","_ref","title","backTitle","createElement","className","variant","SettingsContent","StyledSettingGroup","SettingGroupInserts","SettingGroupRows","SettingGroup","_ref2","_rows$label","label","children","inserts","rows","Fragment","StyledSettingRow","_ref3","$clickable","RowText","SettingRow","_ref4","description","control","onClick","_ref4$wrapDescription","wrapDescription","Boolean","color","CaretRow","SettingCount","_ref5","count","String","backgroundColor","size","SettingValue","_ref6","value","StyledNewSettingGroup","StyledIdentityControl","StyledListFieldsControl","PROJECT_LIST_FIELDS_OPTION","list","cards","PROJECT_LIST_FIELD_LABELS","name","number","icon","client","category","leader","people","progress","tracked","estimate","budget","overdue","activity","created","open_tasks","LIST_FIELD_KEYS","LIST_OFF_ORDER","CARD_FIELD_KEYS","CARD_OFF_ORDER","offFields","keys","preferred","chosen","last","off","filter","key","includes","settingsOrder","option","field","listOff","length","slice","grid","ProjectListSettingGroup","_ref7","_ref7$value","_useState","order","_useState2","selected","setSelected","map","view","type","options","id","onChange","next","prev","_extends","Array","isArray","disableSearch","keepSameOptionsOrder","disabledInternalSort","target","PROJECT_IDENTITY_OPTIONS","default_client_color_mode","default_project_color_mode","default_project_icon_mode","IDENTITY_ROWS","choices","ProjectIdentitySettingGroup","_ref8","_ref8$value","_useState3","saved","setSaved","row","_row$choices$find","find","choice","forceCloseMenu","sectionEntry","section","isSection","projectEntries","groups","flatMap","_ref9","groupId","groupName","index","SETTINGS_SEARCH_INDEX","searchSettings","query","terms","toLocaleLowerCase","split","matches","entry","every","term","sections","Set","seen","has","add","sectionIconOf","_SYSTEM_SETTINGS_GROU","group","item","StyledSettingsSearch","SettingsSearchField","_ref0","fieldRef","_useState4","setOptions","_fieldRef$current","_Object$getOwnPropert","input","current","querySelector","setValue","Object","getOwnPropertyDescriptor","HTMLInputElement","prototype","set","focus","call","dispatchEvent","Event","bubbles","ref","onInputChange","text","renderOption","weight","placeholder","noResultText","startAdornment","width","height","style","fill","inputWrapperClassName","optionsAreFinal","keepFilterOnClose","listWidth","listPlacement"],"sources":["../../../../src/presentation/shared/settings.tsx"],"sourcesContent":["/**\n * Shared building blocks for the System Settings presentation stories\n * (`Presentation/System Settings/*`). The section group (a Label above its\n * rows) and the \"row\" card (title + description on the left, a control on the\n * right) are defined once here and reused by every section story so the chrome\n * stays identical and in one place.\n *\n * Mirrors the app: components/Settings/SettingRow.jsx (`SettingGroup` and\n * `SettingRow`). The legacy page header/body (`SettingsHeader`,\n * `SettingsContent`) predate the dialog redesign and are kept for any page-\n * style story that still needs them.\n */\nimport React, {\n createContext,\n ReactElement,\n ReactNode,\n useContext,\n useEffect,\n useRef,\n useState,\n} from \"react\";\n\nimport styled from \"styled-components\";\n\nimport {\n SYSTEM_SETTINGS_GROUPS,\n SystemSettingsSectionId,\n} from \"./systemSettingsDialog\";\nimport { MD, SM } from \"./tokens\";\nimport { Card } from \"../../components/Card\";\nimport { Chip } from \"../../components/Chip\";\nimport { ComboBox } from \"../../components/ComboBox\";\nimport { IconButton } from \"../../components/IconButton\";\nimport {\n ArrowLeftIcon,\n CollapseExpandSingleIcon,\n SearchIcon,\n} from \"../../components/Icons\";\nimport { Label } from \"../../components/Label\";\nimport { Select } from \"../../components/Select\";\nimport { SelectTrigger } from \"../../components/SelectTrigger\";\nimport { Body2, Caption1, Header2, Title2 } from \"../../components/Typography\";\n\n/* ------------------------------------------------------------------ */\n/* Settings page header (mirrors PageHeader.jsx + BackButton.js) */\n/* ------------------------------------------------------------------ */\n\nconst StyledSettingsHeader = styled.div`\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin: 12px 0;\n width: 100%;\n height: 40px;\n flex-shrink: 0;\n\n .header-left {\n display: flex;\n align-items: center;\n width: 100%;\n max-width: 100%;\n\n @media (min-width: ${SM}) {\n min-width: 0;\n }\n }\n\n .back-button {\n flex-shrink: 0;\n margin-right: 4px;\n\n @media (min-width: ${MD}) {\n margin-right: 8px;\n }\n }\n\n .page-title-desktop {\n display: none;\n margin-right: 8px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n\n @media (min-width: ${MD}) {\n display: block;\n }\n }\n\n .page-title-mobile {\n display: block;\n margin-right: 8px;\n font-weight: 300;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n\n @media (min-width: ${MD}) {\n display: none;\n }\n }\n\n /* keeps the title clear of the absolutely-positioned top-right controls */\n .page-header-spacer {\n display: none;\n height: 100%;\n width: 208px;\n flex-shrink: 0;\n\n @media (min-width: ${SM}) {\n display: flex;\n }\n }\n`;\n\nexport interface SettingsHeaderProps {\n title: string;\n backTitle?: string;\n}\n\nexport const SettingsHeader = ({\n title,\n backTitle,\n}: SettingsHeaderProps): ReactElement => (\n <StyledSettingsHeader>\n <div className=\"header-left\">\n {backTitle ? (\n <IconButton variant=\"text gray\" className=\"back-button\">\n <ArrowLeftIcon />\n </IconButton>\n ) : null}\n <Title2 className=\"page-title-desktop\">{title}</Title2>\n <Header2 className=\"page-title-mobile\">{title}</Header2>\n </div>\n <div className=\"page-header-spacer\" />\n </StyledSettingsHeader>\n);\n\n/* ------------------------------------------------------------------ */\n/* Shared layout pieces */\n/* ------------------------------------------------------------------ */\n\n/** The page body, max-width 850px and left-aligned (mirrors the app Page). */\nexport const SettingsContent = styled.div`\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n width: 100%;\n max-width: 850px;\n`;\n\n/**\n * A section group: a Label above its rows, 24px below the block (tw-mb-6) and\n * 8px below the label (tw-mb-2). Mirrors app SettingRow.jsx `SettingGroup`.\n */\nconst StyledSettingGroup = styled.div`\n display: flex;\n flex-direction: column;\n margin-bottom: 24px;\n\n .group-label {\n display: block;\n margin-bottom: 8px;\n }\n`;\n\nexport interface SettingGroupProps {\n label: string;\n children: ReactNode;\n className?: string;\n}\n\n/** Groups drawn after the group with this label. A Redesign story adds the new_task groups to an older page with it. */\nexport const SettingGroupInserts = createContext<Record<string, ReactNode>>({});\n\n/** Rows drawn in place of the rows of the group with this label. A Redesign story gives an older page its new_task rows with it. */\nexport const SettingGroupRows = createContext<Record<string, ReactNode>>({});\n\nexport const SettingGroup = ({\n label,\n children,\n className,\n}: SettingGroupProps): ReactElement => {\n const inserts = useContext(SettingGroupInserts);\n const rows = useContext(SettingGroupRows);\n\n return (\n <>\n <StyledSettingGroup className={className}>\n <Label className=\"group-label\">{label}</Label>\n {rows[label] ?? children}\n </StyledSettingGroup>\n {inserts[label]}\n </>\n );\n};\n\n/** A settings row card: title + description on the left, control on the right. */\nexport const StyledSettingRow = styled(Card)<{ $clickable?: boolean }>`\n box-sizing: border-box;\n display: flex;\n align-items: center;\n justify-content: space-between;\n min-height: 68px;\n padding: 12px 16px 12px 20px;\n margin-bottom: 4px;\n\n ${({ $clickable }) =>\n $clickable\n ? `\n cursor: pointer;\n\n &:hover {\n background-color: var(--color-theme-200);\n }\n `\n : \"\"}\n`;\n\nexport const RowText = styled.div`\n display: flex;\n flex-direction: column;\n flex: 1 1 0%;\n min-width: 0;\n padding-right: 12px;\n\n .row-title {\n margin-bottom: 2px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n\n .row-description {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n\n /* Long descriptions that are allowed to wrap onto multiple lines. */\n .row-description-wrap {\n white-space: normal;\n }\n`;\n\nexport interface SettingRowProps {\n title: string;\n description?: ReactNode;\n control?: ReactNode;\n onClick?: () => void;\n /** Let a long description wrap onto multiple lines instead of truncating. */\n wrapDescription?: boolean;\n}\n\nexport const SettingRow = ({\n title,\n description,\n control,\n onClick,\n wrapDescription = false,\n}: SettingRowProps): ReactElement => (\n <StyledSettingRow\n variant=\"paper-2\"\n $clickable={Boolean(onClick)}\n onClick={onClick}\n >\n <RowText>\n <Body2 className=\"row-title\">{title}</Body2>\n {description ? (\n <Caption1\n className={\n wrapDescription ? \"row-description-wrap\" : \"row-description\"\n }\n color=\"tertiary\"\n >\n {description}\n </Caption1>\n ) : null}\n </RowText>\n {control}\n </StyledSettingRow>\n);\n\n/* ------------------------------------------------------------------ */\n/* Collapsible-row right controls — a count Chip or a value, plus a */\n/* caret. Used by the Workday, Time & Expenses and Invoices sections */\n/* for rows that expand in the app; the stories show them collapsed, */\n/* so the caret is decorative. Mirrors the app's `Chip` + ExpandToggle */\n/* / `Caption1` + ExpandToggle pattern. */\n/* ------------------------------------------------------------------ */\n\nconst CaretRow = styled.div`\n display: flex;\n align-items: center;\n gap: 12px;\n\n .caret {\n display: inline-flex;\n transform: rotate(180deg);\n }\n`;\n\nexport const SettingCount = ({\n count,\n}: {\n count: number | string;\n}): ReactElement => (\n <CaretRow>\n <Chip\n label={String(count)}\n backgroundColor=\"var(--color-theme-300)\"\n color=\"var(--color-theme-900)\"\n size=\"regular\"\n />\n <span className=\"caret\">\n <CollapseExpandSingleIcon />\n </span>\n </CaretRow>\n);\n\nexport const SettingValue = ({ value }: { value: string }): ReactElement => (\n <CaretRow>\n <Caption1 color=\"tertiary\">{value}</Caption1>\n <span className=\"caret\">\n <CollapseExpandSingleIcon />\n </span>\n </CaretRow>\n);\n\n/* ------------------------------------------------------------------ */\n/* new_task groups of the Projects section of System Settings: */\n/* Project List (ProjectSettingsPage.js + ProjectListFieldsSetting.jsx) */\n/* and Colors and Icons (ProjectIdentitySettings.jsx). Labels and */\n/* descriptions come from SystemSettings/search/entries.js. */\n/* ------------------------------------------------------------------ */\n\n/* The frontend group has no bottom margin; its last row keeps tw:mb-6. The\n shared rows keep 4px, so 20px more on the group gives the same 24px. */\nconst StyledNewSettingGroup = styled(SettingGroup)`\n margin-bottom: 20px;\n`;\n\n/* SelectTrigger widths: 300px (DS default) below sm, then the frontend classes. */\nconst StyledIdentityControl = styled.div`\n max-width: 100%;\n margin-top: 8px;\n\n @media (min-width: ${SM}) {\n margin-top: 0;\n\n .setting-select-trigger {\n width: auto;\n }\n }\n\n .setting-select-trigger {\n max-width: 100%;\n\n @media (min-width: ${MD}) {\n width: 200px;\n }\n }\n`;\n\nconst StyledListFieldsControl = styled.div`\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n margin-top: 8px;\n\n @media (min-width: ${SM}) {\n margin-top: 0;\n }\n\n .setting-select-trigger {\n max-width: 100%;\n\n @media (min-width: ${MD}) {\n width: 200px;\n }\n }\n`;\n\ntype ProjectListField =\n | \"name\"\n | \"number\"\n | \"icon\"\n | \"client\"\n | \"category\"\n | \"label\"\n | \"leader\"\n | \"people\"\n | \"progress\"\n | \"tracked\"\n | \"estimate\"\n | \"budget\"\n | \"overdue\"\n | \"activity\"\n | \"created\"\n | \"description\"\n | \"open_tasks\";\n\n/** mirrors: config option `projects_list_fields` (projectListFields.js defaults, `list` keeps the `name` marker). */\nexport interface ProjectListFieldsOption {\n list: ProjectListField[];\n cards: ProjectListField[];\n}\n\nexport const PROJECT_LIST_FIELDS_OPTION: ProjectListFieldsOption = {\n list: [\n \"icon\",\n \"number\",\n \"name\",\n \"progress\",\n \"leader\",\n \"client\",\n \"label\",\n \"tracked\",\n \"estimate\",\n \"category\",\n \"activity\",\n ],\n cards: [\n \"icon\",\n \"number\",\n \"client\",\n \"description\",\n \"category\",\n \"label\",\n \"leader\",\n \"people\",\n \"progress\",\n \"open_tasks\",\n \"tracked\",\n \"estimate\",\n \"budget\",\n \"activity\",\n ],\n};\n\nconst PROJECT_LIST_FIELD_LABELS: Record<ProjectListField, string> = {\n name: \"Name\",\n number: \"Project ID\",\n icon: \"Project Icon\",\n client: \"Client\",\n category: \"Category\",\n label: \"Label\",\n leader: \"Leader\",\n people: \"People\",\n progress: \"Progress\",\n tracked: \"Tracked\",\n estimate: \"Estimated\",\n budget: \"Budget Used\",\n overdue: \"Overdue Tasks\",\n activity: \"Last Activity\",\n created: \"Creation Date\",\n description: \"Description\",\n open_tasks: \"Open Tasks\",\n};\n\n/* projectListFields.js: the fields each view offers, and the order of the\n fields that are off (LIST_OFF_ORDER, CARD_OFF_ORDER). */\nconst LIST_FIELD_KEYS: ProjectListField[] = [\n \"number\",\n \"icon\",\n \"client\",\n \"category\",\n \"label\",\n \"leader\",\n \"people\",\n \"progress\",\n \"tracked\",\n \"estimate\",\n \"budget\",\n \"activity\",\n \"created\",\n];\nconst LIST_OFF_ORDER: ProjectListField[] = [\n \"tracked\",\n \"estimate\",\n \"budget\",\n \"people\",\n \"created\",\n];\nconst CARD_FIELD_KEYS: ProjectListField[] = [\n \"icon\",\n \"number\",\n \"client\",\n \"description\",\n \"category\",\n \"label\",\n \"leader\",\n \"people\",\n \"progress\",\n \"open_tasks\",\n \"tracked\",\n \"estimate\",\n \"budget\",\n \"activity\",\n \"created\",\n];\nconst CARD_OFF_ORDER: ProjectListField[] = [\n \"tracked\",\n \"estimate\",\n \"budget\",\n \"activity\",\n \"category\",\n \"people\",\n \"created\",\n \"description\",\n];\n\nconst offFields = (\n keys: ProjectListField[],\n preferred: ProjectListField[],\n chosen: ProjectListField[],\n last: ProjectListField[] = []\n): ProjectListField[] => {\n const off = keys.filter((key) => !chosen.includes(key));\n\n return [\n ...preferred.filter((key) => off.includes(key)),\n ...off.filter((key) => !preferred.includes(key) && !last.includes(key)),\n ...last.filter((key) => off.includes(key)),\n ];\n};\n\n/* ProjectListFieldsSetting.jsx: the chosen fields first, then the others; the list keeps Last Activity last. */\nconst settingsOrder = (option: ProjectListFieldsOption) => {\n const list = option.list.filter((field) => field !== \"name\");\n const listOff = offFields(LIST_FIELD_KEYS, LIST_OFF_ORDER, list, [\n \"activity\",\n ]);\n const cards = CARD_FIELD_KEYS.filter((key) => option.cards.includes(key));\n\n return {\n list:\n list[list.length - 1] === \"activity\"\n ? [...list.slice(0, -1), ...listOff, \"activity\" as ProjectListField]\n : [...list, ...listOff],\n grid: [...cards, ...offFields(CARD_FIELD_KEYS, CARD_OFF_ORDER, cards)],\n };\n};\n\nexport interface ProjectListSettingGroupProps {\n value?: ProjectListFieldsOption;\n}\n\n/** The Project List group: one row with the List and Cards field pickers. */\nexport const ProjectListSettingGroup = ({\n value = PROJECT_LIST_FIELDS_OPTION,\n}: ProjectListSettingGroupProps): ReactElement => {\n const [order] = useState(() => settingsOrder(value));\n const [selected, setSelected] = useState({\n list: value.list.filter((field) => field !== \"name\"),\n grid: value.cards,\n });\n\n return (\n <StyledNewSettingGroup label=\"Project List\">\n <SettingRow\n title=\"Default Project List Fields\"\n description=\"The fields that a project row and a project card show. A person who changes them keeps that choice.\"\n control={\n <StyledListFieldsControl>\n {([\"list\", \"grid\"] as const).map((view) => (\n <Select\n key={view}\n type=\"multiple\"\n options={order[view].map((id) => ({\n id,\n name: PROJECT_LIST_FIELD_LABELS[id],\n }))}\n selected={selected[view]}\n onChange={(next) =>\n setSelected((prev) => ({\n ...prev,\n [view]: (Array.isArray(next)\n ? next\n : [next]) as ProjectListField[],\n }))\n }\n disableSearch\n keepSameOptionsOrder\n disabledInternalSort\n target={\n <SelectTrigger className=\"setting-select-trigger\">\n {/* The en translation keeps \"field\" for every count. */}\n {view === \"grid\"\n ? `Cards: ${selected.grid.length} field`\n : `List: ${selected.list.length} field`}\n </SelectTrigger>\n }\n />\n ))}\n </StyledListFieldsControl>\n }\n />\n </StyledNewSettingGroup>\n );\n};\n\n/** mirrors: config options `default_client_color_mode`, `default_project_color_mode`, `default_project_icon_mode` (normalizeIdentityDefaults). */\nexport interface ProjectIdentityOptions {\n default_client_color_mode: \"auto\" | \"off\";\n default_project_color_mode: \"client\" | \"label\" | \"none\";\n default_project_icon_mode: \"monogram\" | \"client\";\n}\n\nexport const PROJECT_IDENTITY_OPTIONS: ProjectIdentityOptions = {\n default_client_color_mode: \"auto\",\n default_project_color_mode: \"client\",\n default_project_icon_mode: \"monogram\",\n};\n\nconst IDENTITY_ROWS: {\n option: keyof ProjectIdentityOptions;\n title: string;\n description: string;\n choices: { id: string; name: string }[];\n}[] = [\n {\n option: \"default_client_color_mode\",\n title: \"Color of New Clients\",\n description:\n \"A new client company gets the next color of the palette, or no color.\",\n choices: [\n { id: \"auto\", name: \"Next Palette Color\" },\n { id: \"off\", name: \"No Color\" },\n ],\n },\n {\n option: \"default_project_color_mode\",\n title: \"Color of New Projects\",\n description:\n \"A new project follows the color of its client or its label, or has no color.\",\n choices: [\n { id: \"client\", name: \"Client Color\" },\n { id: \"label\", name: \"Label Color\" },\n { id: \"none\", name: \"No Color\" },\n ],\n },\n {\n option: \"default_project_icon_mode\",\n title: \"Icon of New Projects\",\n description:\n \"A new project shows its initials on its color, or the logo of its client.\",\n choices: [\n { id: \"monogram\", name: \"Monogram\" },\n { id: \"client\", name: \"Client Logo\" },\n ],\n },\n];\n\nexport interface ProjectIdentitySettingGroupProps {\n value?: ProjectIdentityOptions;\n}\n\n/** The Colors and Icons group: the defaults for new clients and new projects. */\nexport const ProjectIdentitySettingGroup = ({\n value = PROJECT_IDENTITY_OPTIONS,\n}: ProjectIdentitySettingGroupProps): ReactElement => {\n const [saved, setSaved] = useState(value);\n\n return (\n <StyledNewSettingGroup label=\"Colors and Icons\">\n {IDENTITY_ROWS.map((row) => (\n <SettingRow\n key={row.option}\n title={row.title}\n description={row.description}\n control={\n <StyledIdentityControl>\n <Select\n target={\n <SelectTrigger className=\"setting-select-trigger\">\n {\n row.choices.find(\n (choice) => choice.id === saved[row.option]\n )?.name\n }\n </SelectTrigger>\n }\n options={row.choices}\n selected={saved[row.option]}\n onChange={(next) =>\n setSaved((prev) => ({ ...prev, [row.option]: String(next) }))\n }\n disableSearch\n forceCloseMenu\n keepSameOptionsOrder\n disabledInternalSort\n />\n </StyledIdentityControl>\n }\n />\n ))}\n </StyledNewSettingGroup>\n );\n};\n\n/* ------------------------------------------------------------------ */\n/* Settings search (pages/SystemSettings/search): the ComboBox above */\n/* the SideNav, with the sections and the setting groups and rows that */\n/* the typed words match. */\n/* ------------------------------------------------------------------ */\n\n/** mirrors: one entry of useSettingsSearchIndex, built from SECTION_GROUPS and entries.js. */\nexport interface SettingsSearchEntry {\n id: string;\n name: string;\n section: SystemSettingsSectionId;\n isSection: boolean;\n}\n\nconst sectionEntry = (\n section: SystemSettingsSectionId,\n name: string\n): SettingsSearchEntry => ({ id: section, name, section, isSection: true });\n\nconst projectEntries = (\n groups: [string, string, string[]][]\n): SettingsSearchEntry[] =>\n groups.flatMap(([groupId, groupName, rows]) => [\n {\n id: `project.${groupId}`,\n name: groupName,\n section: \"project\" as const,\n isSection: false,\n },\n ...rows.map((row, index) => ({\n id: `project.${groupId}.${index}`,\n name: row,\n section: \"project\" as const,\n isSection: false,\n })),\n ]);\n\n/**\n * The index with the flag on, the version control off: every section, and the\n * groups and rows of the Projects section. The other sections keep their rows\n * out of the mock, and no row of theirs has \"color\" in its name.\n */\nexport const SETTINGS_SEARCH_INDEX: SettingsSearchEntry[] = [\n sectionEntry(\"general\", \"General\"),\n sectionEntry(\"security\", \"Security\"),\n sectionEntry(\"project\", \"Projects\"),\n ...projectEntries([\n [\n \"general\",\n \"General\",\n [\n \"Default Task List Name\",\n \"Default Comment Order\",\n \"Show History of Changes in Comments\",\n \"Default Add Task Form\",\n \"Show Project's Content to Clients\",\n \"Task Completion Notifications\",\n ],\n ],\n [\n \"permissions\",\n \"Permissions\",\n [\n \"Client+ Role\",\n \"Member Permissions\",\n \"Limit Comment Editing Period\",\n \"Lock Comments When a Discussion Is Archived\",\n ],\n ],\n [\"lists\", \"Project List\", [\"Default Project List Fields\"]],\n [\n \"identity\",\n \"Colors and Icons\",\n [\"Color of New Clients\", \"Color of New Projects\", \"Icon of New Projects\"],\n ],\n [\"identifiers\", \"Identifiers\", [\"Task ID in Lists\", \"Project ID in Lists\"]],\n [\n \"labels\",\n \"Labels & Categories\",\n [\n \"Task Label Order\",\n \"Global Task Labels\",\n \"Project Labels\",\n \"Project Categories\",\n ],\n ],\n ]),\n sectionEntry(\"workday\", \"Workday\"),\n sectionEntry(\"calendar\", \"Calendar\"),\n sectionEntry(\"tracking\", \"Time & Expenses\"),\n sectionEntry(\"invoice\", \"Invoices & Estimates\"),\n sectionEntry(\"invoice-designer\", \"Invoice Designer\"),\n];\n\n/** useSettingsSearch: every word must match; a section heads its matches; a repeated name in a section shows once. */\nexport const searchSettings = (\n query: string,\n index: SettingsSearchEntry[] = SETTINGS_SEARCH_INDEX\n): SettingsSearchEntry[] => {\n const terms = query.toLocaleLowerCase().split(/\\s+/).filter(Boolean);\n\n if (!terms.length) {\n return [];\n }\n\n const matches = index.filter((entry) =>\n terms.every((term) => entry.name.toLocaleLowerCase().includes(term))\n );\n const sections = new Set(matches.map((entry) => entry.section));\n const seen = new Set<string>();\n\n return index\n .filter((entry) =>\n entry.isSection ? sections.has(entry.section) : matches.includes(entry)\n )\n .filter((entry) => {\n const key = `${entry.section}|${entry.name.toLocaleLowerCase()}`;\n\n if (seen.has(key)) {\n return false;\n }\n\n seen.add(key);\n\n return true;\n });\n};\n\n// A function, not a constant: systemSettingsDialog.tsx imports this file, so the groups are not ready at load.\nconst sectionIconOf = (\n section: SystemSettingsSectionId\n): ReactElement | undefined =>\n SYSTEM_SETTINGS_GROUPS.flatMap((group) => group.sections).find(\n (item) => item.id === section\n )?.icon;\n\n/* SettingsSearchField.jsx: \"tw:relative tw:mb-[30px] tw:w-[calc(100%-5px)]\", the list stretched to listWidth. */\nconst StyledSettingsSearch = styled.div`\n position: relative;\n width: calc(100% - 5px);\n margin-bottom: 30px;\n\n .settings-search-input {\n width: 100%;\n }\n\n .c-combo-box--list {\n width: 100%;\n }\n\n .search-section {\n display: flex;\n align-items: center;\n gap: 10px;\n min-width: 0;\n fill: var(--color-theme-700);\n }\n\n .search-section > svg {\n width: 16px;\n height: 16px;\n }\n\n .search-name {\n display: block;\n min-width: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n\n .search-row {\n padding-left: 26px;\n }\n`;\n\nexport interface SettingsSearchFieldProps {\n /** Types these words into the field when it mounts, so the list opens with their results. */\n query?: string;\n}\n\n/** The settings search of the System Settings rail: a ComboBox with the search icon as its start adornment. */\nexport const SettingsSearchField = ({\n query,\n}: SettingsSearchFieldProps): ReactElement => {\n const fieldRef = useRef<HTMLDivElement>(null);\n const [options, setOptions] = useState<SettingsSearchEntry[]>([]);\n\n useEffect(() => {\n const input = fieldRef.current?.querySelector(\"input\");\n const setValue = Object.getOwnPropertyDescriptor(\n HTMLInputElement.prototype,\n \"value\"\n )?.set;\n\n if (!query || !input || !setValue) {\n return;\n }\n\n // The ComboBox keeps its text inside, so the story types like a reader does.\n input.focus();\n setValue.call(input, query);\n input.dispatchEvent(new Event(\"input\", { bubbles: true }));\n }, [query]);\n\n return (\n <StyledSettingsSearch ref={fieldRef}>\n <ComboBox\n options={options}\n onInputChange={(text) => setOptions(searchSettings(text))}\n onChange={() => setOptions([])}\n renderOption={(option) => {\n const entry = options.find((item) => item.id === option.id);\n\n return entry?.isSection ? (\n <span className=\"search-section\">\n {sectionIconOf(entry.section)}\n <Body2 weight=\"bold\" className=\"search-name\">\n {entry.name}\n </Body2>\n </span>\n ) : (\n <Body2 className=\"search-name search-row\">{option.name}</Body2>\n );\n }}\n placeholder=\"Search settings\"\n noResultText=\"No settings found\"\n startAdornment={\n <SearchIcon\n width={14}\n height={14}\n style={{ fill: \"var(--color-theme-700)\" }}\n />\n }\n inputWrapperClassName=\"settings-search-input\"\n forceCloseMenu\n optionsAreFinal\n keepFilterOnClose\n listWidth={330}\n listPlacement=\"bottom-start\"\n />\n </StyledSettingsSearch>\n );\n};\n"],"mappings":";AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAOA,KAAK,IACVC,aAAa,EAGbC,UAAU,EACVC,SAAS,EACTC,MAAM,EACNC,QAAQ,QACH,OAAO;AAEd,OAAOC,MAAM,MAAM,mBAAmB;AAEtC,SACEC,sBAAsB,QAEjB,wBAAwB;AAC/B,SAASC,EAAE,EAAEC,EAAE,QAAQ,UAAU;AACjC,SAASC,IAAI,QAAQ,uBAAuB;AAC5C,SAASC,IAAI,QAAQ,uBAAuB;AAC5C,SAASC,QAAQ,QAAQ,2BAA2B;AACpD,SAASC,UAAU,QAAQ,6BAA6B;AACxD,SACEC,aAAa,EACbC,wBAAwB,EACxBC,UAAU,QACL,wBAAwB;AAC/B,SAASC,KAAK,QAAQ,wBAAwB;AAC9C,SAASC,MAAM,QAAQ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S,gBACrB3J,KAAA,CAAAiC,aAAA;QAAMC,SAAS,EAAC;MAAgB,GAC7BgJ,aAAa,CAACR,KAAK,CAAChB,OAAO,CAAC,eAC7B1J,KAAA,CAAAiC,aAAA,CAACb,KAAK;QAAC4L,MAAM,EAAC,MAAM;QAAC9K,SAAS,EAAC;MAAa,GACzCwI,KAAK,CAAC5F,IACF,CACH,CAAC,gBAEP9E,KAAA,CAAAiC,aAAA,CAACb,KAAK;QAACc,SAAS,EAAC;MAAwB,GAAEyE,MAAM,CAAC7B,IAAY,CAC/D;IACH,CAAE;IACFmI,WAAW,EAAC,iBAAiB;IAC7BC,YAAY,EAAC,mBAAmB;IAChCC,cAAc,eACZnN,KAAA,CAAAiC,aAAA,CAACjB,UAAU;MACToM,KAAK,EAAE,EAAG;MACVC,MAAM,EAAE,EAAG;MACXC,KAAK,EAAE;QAAEC,IAAI,EAAE;MAAyB;IAAE,CAC3C,CACF;IACDC,qBAAqB,EAAC,uBAAuB;IAC7ChE,cAAc;IACdiE,eAAe;IACfC,iBAAiB;IACjBC,SAAS,EAAE,GAAI;IACfC,aAAa,EAAC;EAAc,CAC7B,CACmB,CAAC;AAE3B,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"settings.js","names":["React","createContext","useContext","useEffect","useRef","useState","styled","SYSTEM_SETTINGS_GROUPS","MD","SM","Card","Chip","ComboBox","IconButton","ArrowLeftIcon","CollapseExpandSingleIcon","SearchIcon","Label","Select","SelectTrigger","Body2","Caption1","Header2","Title2","StyledSettingsHeader","div","withConfig","displayName","componentId","SettingsHeader","_ref","title","backTitle","createElement","className","variant","SettingsContent","StyledSettingGroup","SettingGroupInserts","SettingGroupRows","SettingGroupAppends","SettingGroup","_ref2","_rows$label","label","children","inserts","rows","appends","Fragment","StyledSettingRow","_ref3","$clickable","RowText","SettingRow","_ref4","description","control","onClick","_ref4$wrapDescription","wrapDescription","Boolean","color","CaretRow","SettingCount","_ref5","count","String","backgroundColor","size","SettingValue","_ref6","value","StyledNewSettingGroup","StyledIdentityControl","StyledListFieldsControl","PROJECT_LIST_FIELDS_OPTION","list","cards","PROJECT_LIST_FIELD_LABELS","name","number","icon","client","category","leader","people","progress","tracked","estimate","budget","overdue","activity","created","open_tasks","LIST_FIELD_KEYS","LIST_OFF_ORDER","CARD_FIELD_KEYS","CARD_OFF_ORDER","offFields","keys","preferred","chosen","last","off","filter","key","includes","settingsOrder","option","field","listOff","length","slice","grid","ProjectListSettingGroup","_ref7","_ref7$value","_useState","order","_useState2","selected","setSelected","map","view","type","options","id","onChange","next","prev","_extends","Array","isArray","disableSearch","keepSameOptionsOrder","disabledInternalSort","target","PROJECT_IDENTITY_OPTIONS","default_client_color_mode","default_project_color_mode","default_project_icon_mode","IDENTITY_ROWS","choices","ProjectIdentitySettingGroup","_ref8","_ref8$value","_useState3","saved","setSaved","row","_row$choices$find","find","choice","forceCloseMenu","sectionEntry","section","isSection","projectEntries","groups","flatMap","_ref9","groupId","groupName","index","SETTINGS_SEARCH_INDEX","searchSettings","query","terms","toLocaleLowerCase","split","matches","entry","every","term","sections","Set","seen","has","add","sectionIconOf","_SYSTEM_SETTINGS_GROU","group","item","StyledSettingsSearch","SettingsSearchField","_ref0","fieldRef","_useState4","setOptions","_fieldRef$current","_Object$getOwnPropert","input","current","querySelector","setValue","Object","getOwnPropertyDescriptor","HTMLInputElement","prototype","set","focus","call","dispatchEvent","Event","bubbles","ref","onInputChange","text","renderOption","weight","placeholder","noResultText","startAdornment","width","height","style","fill","inputWrapperClassName","optionsAreFinal","keepFilterOnClose","listWidth","listPlacement"],"sources":["../../../../src/presentation/shared/settings.tsx"],"sourcesContent":["/**\n * Shared building blocks for the System Settings presentation stories\n * (`Presentation/System Settings/*`). The section group (a Label above its\n * rows) and the \"row\" card (title + description on the left, a control on the\n * right) are defined once here and reused by every section story so the chrome\n * stays identical and in one place.\n *\n * Mirrors the app: components/Settings/SettingRow.jsx (`SettingGroup` and\n * `SettingRow`). The legacy page header/body (`SettingsHeader`,\n * `SettingsContent`) predate the dialog redesign and are kept for any page-\n * style story that still needs them.\n */\nimport React, {\n createContext,\n ReactElement,\n ReactNode,\n useContext,\n useEffect,\n useRef,\n useState,\n} from \"react\";\n\nimport styled from \"styled-components\";\n\nimport {\n SYSTEM_SETTINGS_GROUPS,\n SystemSettingsSectionId,\n} from \"./systemSettingsDialog\";\nimport { MD, SM } from \"./tokens\";\nimport { Card } from \"../../components/Card\";\nimport { Chip } from \"../../components/Chip\";\nimport { ComboBox } from \"../../components/ComboBox\";\nimport { IconButton } from \"../../components/IconButton\";\nimport {\n ArrowLeftIcon,\n CollapseExpandSingleIcon,\n SearchIcon,\n} from \"../../components/Icons\";\nimport { Label } from \"../../components/Label\";\nimport { Select } from \"../../components/Select\";\nimport { SelectTrigger } from \"../../components/SelectTrigger\";\nimport { Body2, Caption1, Header2, Title2 } from \"../../components/Typography\";\n\n/* ------------------------------------------------------------------ */\n/* Settings page header (mirrors PageHeader.jsx + BackButton.js) */\n/* ------------------------------------------------------------------ */\n\nconst StyledSettingsHeader = styled.div`\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin: 12px 0;\n width: 100%;\n height: 40px;\n flex-shrink: 0;\n\n .header-left {\n display: flex;\n align-items: center;\n width: 100%;\n max-width: 100%;\n\n @media (min-width: ${SM}) {\n min-width: 0;\n }\n }\n\n .back-button {\n flex-shrink: 0;\n margin-right: 4px;\n\n @media (min-width: ${MD}) {\n margin-right: 8px;\n }\n }\n\n .page-title-desktop {\n display: none;\n margin-right: 8px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n\n @media (min-width: ${MD}) {\n display: block;\n }\n }\n\n .page-title-mobile {\n display: block;\n margin-right: 8px;\n font-weight: 300;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n\n @media (min-width: ${MD}) {\n display: none;\n }\n }\n\n /* keeps the title clear of the absolutely-positioned top-right controls */\n .page-header-spacer {\n display: none;\n height: 100%;\n width: 208px;\n flex-shrink: 0;\n\n @media (min-width: ${SM}) {\n display: flex;\n }\n }\n`;\n\nexport interface SettingsHeaderProps {\n title: string;\n backTitle?: string;\n}\n\nexport const SettingsHeader = ({\n title,\n backTitle,\n}: SettingsHeaderProps): ReactElement => (\n <StyledSettingsHeader>\n <div className=\"header-left\">\n {backTitle ? (\n <IconButton variant=\"text gray\" className=\"back-button\">\n <ArrowLeftIcon />\n </IconButton>\n ) : null}\n <Title2 className=\"page-title-desktop\">{title}</Title2>\n <Header2 className=\"page-title-mobile\">{title}</Header2>\n </div>\n <div className=\"page-header-spacer\" />\n </StyledSettingsHeader>\n);\n\n/* ------------------------------------------------------------------ */\n/* Shared layout pieces */\n/* ------------------------------------------------------------------ */\n\n/** The page body, max-width 850px and left-aligned (mirrors the app Page). */\nexport const SettingsContent = styled.div`\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n width: 100%;\n max-width: 850px;\n`;\n\n/**\n * A section group: a Label above its rows, 24px below the block (tw-mb-6) and\n * 8px below the label (tw-mb-2). Mirrors app SettingRow.jsx `SettingGroup`.\n */\nconst StyledSettingGroup = styled.div`\n display: flex;\n flex-direction: column;\n margin-bottom: 24px;\n\n .group-label {\n display: block;\n margin-bottom: 8px;\n }\n`;\n\nexport interface SettingGroupProps {\n label: string;\n children: ReactNode;\n className?: string;\n}\n\n/** Groups drawn after the group with this label. A Redesign story adds the new_task groups to an older page with it. */\nexport const SettingGroupInserts = createContext<Record<string, ReactNode>>({});\n\n/** Rows drawn in place of the rows of the group with this label. A Redesign story gives an older page its new_task rows with it. */\nexport const SettingGroupRows = createContext<Record<string, ReactNode>>({});\n\n/** Rows drawn after the rows of the group with this label. A concept adds its rows to an existing group with it. */\nexport const SettingGroupAppends = createContext<Record<string, ReactNode>>({});\n\nexport const SettingGroup = ({\n label,\n children,\n className,\n}: SettingGroupProps): ReactElement => {\n const inserts = useContext(SettingGroupInserts);\n const rows = useContext(SettingGroupRows);\n const appends = useContext(SettingGroupAppends);\n\n return (\n <>\n <StyledSettingGroup className={className}>\n <Label className=\"group-label\">{label}</Label>\n {rows[label] ?? children}\n {appends[label]}\n </StyledSettingGroup>\n {inserts[label]}\n </>\n );\n};\n\n/** A settings row card: title + description on the left, control on the right. */\nexport const StyledSettingRow = styled(Card)<{ $clickable?: boolean }>`\n box-sizing: border-box;\n display: flex;\n align-items: center;\n justify-content: space-between;\n min-height: 68px;\n padding: 12px 16px 12px 20px;\n margin-bottom: 4px;\n\n ${({ $clickable }) =>\n $clickable\n ? `\n cursor: pointer;\n\n &:hover {\n background-color: var(--color-theme-200);\n }\n `\n : \"\"}\n`;\n\nexport const RowText = styled.div`\n display: flex;\n flex-direction: column;\n flex: 1 1 0%;\n min-width: 0;\n padding-right: 12px;\n\n .row-title {\n margin-bottom: 2px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n\n .row-description {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n\n /* Long descriptions that are allowed to wrap onto multiple lines. */\n .row-description-wrap {\n white-space: normal;\n }\n`;\n\nexport interface SettingRowProps {\n title: string;\n description?: ReactNode;\n control?: ReactNode;\n onClick?: () => void;\n /** Let a long description wrap onto multiple lines instead of truncating. */\n wrapDescription?: boolean;\n}\n\nexport const SettingRow = ({\n title,\n description,\n control,\n onClick,\n wrapDescription = false,\n}: SettingRowProps): ReactElement => (\n <StyledSettingRow\n variant=\"paper-2\"\n $clickable={Boolean(onClick)}\n onClick={onClick}\n >\n <RowText>\n <Body2 className=\"row-title\">{title}</Body2>\n {description ? (\n <Caption1\n className={\n wrapDescription ? \"row-description-wrap\" : \"row-description\"\n }\n color=\"tertiary\"\n >\n {description}\n </Caption1>\n ) : null}\n </RowText>\n {control}\n </StyledSettingRow>\n);\n\n/* ------------------------------------------------------------------ */\n/* Collapsible-row right controls — a count Chip or a value, plus a */\n/* caret. Used by the Workday, Time & Expenses and Invoices sections */\n/* for rows that expand in the app; the stories show them collapsed, */\n/* so the caret is decorative. Mirrors the app's `Chip` + ExpandToggle */\n/* / `Caption1` + ExpandToggle pattern. */\n/* ------------------------------------------------------------------ */\n\nconst CaretRow = styled.div`\n display: flex;\n align-items: center;\n gap: 12px;\n\n .caret {\n display: inline-flex;\n transform: rotate(180deg);\n }\n`;\n\nexport const SettingCount = ({\n count,\n}: {\n count: number | string;\n}): ReactElement => (\n <CaretRow>\n <Chip\n label={String(count)}\n backgroundColor=\"var(--color-theme-300)\"\n color=\"var(--color-theme-900)\"\n size=\"regular\"\n />\n <span className=\"caret\">\n <CollapseExpandSingleIcon />\n </span>\n </CaretRow>\n);\n\nexport const SettingValue = ({ value }: { value: string }): ReactElement => (\n <CaretRow>\n <Caption1 color=\"tertiary\">{value}</Caption1>\n <span className=\"caret\">\n <CollapseExpandSingleIcon />\n </span>\n </CaretRow>\n);\n\n/* ------------------------------------------------------------------ */\n/* new_task groups of the Projects section of System Settings: */\n/* Project List (ProjectSettingsPage.js + ProjectListFieldsSetting.jsx) */\n/* and Colors and Icons (ProjectIdentitySettings.jsx). Labels and */\n/* descriptions come from SystemSettings/search/entries.js. */\n/* ------------------------------------------------------------------ */\n\n/* The frontend group has no bottom margin; its last row keeps tw:mb-6. The\n shared rows keep 4px, so 20px more on the group gives the same 24px. */\nconst StyledNewSettingGroup = styled(SettingGroup)`\n margin-bottom: 20px;\n`;\n\n/* SelectTrigger widths: 300px (DS default) below sm, then the frontend classes. */\nconst StyledIdentityControl = styled.div`\n max-width: 100%;\n margin-top: 8px;\n\n @media (min-width: ${SM}) {\n margin-top: 0;\n\n .setting-select-trigger {\n width: auto;\n }\n }\n\n .setting-select-trigger {\n max-width: 100%;\n\n @media (min-width: ${MD}) {\n width: 200px;\n }\n }\n`;\n\nconst StyledListFieldsControl = styled.div`\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n margin-top: 8px;\n\n @media (min-width: ${SM}) {\n margin-top: 0;\n }\n\n .setting-select-trigger {\n max-width: 100%;\n\n @media (min-width: ${MD}) {\n width: 200px;\n }\n }\n`;\n\ntype ProjectListField =\n | \"name\"\n | \"number\"\n | \"icon\"\n | \"client\"\n | \"category\"\n | \"label\"\n | \"leader\"\n | \"people\"\n | \"progress\"\n | \"tracked\"\n | \"estimate\"\n | \"budget\"\n | \"overdue\"\n | \"activity\"\n | \"created\"\n | \"description\"\n | \"open_tasks\";\n\n/** mirrors: config option `projects_list_fields` (projectListFields.js defaults, `list` keeps the `name` marker). */\nexport interface ProjectListFieldsOption {\n list: ProjectListField[];\n cards: ProjectListField[];\n}\n\nexport const PROJECT_LIST_FIELDS_OPTION: ProjectListFieldsOption = {\n list: [\n \"icon\",\n \"number\",\n \"name\",\n \"progress\",\n \"leader\",\n \"client\",\n \"label\",\n \"tracked\",\n \"estimate\",\n \"category\",\n \"activity\",\n ],\n cards: [\n \"icon\",\n \"number\",\n \"client\",\n \"description\",\n \"category\",\n \"label\",\n \"leader\",\n \"people\",\n \"progress\",\n \"open_tasks\",\n \"tracked\",\n \"estimate\",\n \"budget\",\n \"activity\",\n ],\n};\n\nconst PROJECT_LIST_FIELD_LABELS: Record<ProjectListField, string> = {\n name: \"Name\",\n number: \"Project ID\",\n icon: \"Project Icon\",\n client: \"Client\",\n category: \"Category\",\n label: \"Label\",\n leader: \"Leader\",\n people: \"People\",\n progress: \"Progress\",\n tracked: \"Tracked\",\n estimate: \"Estimated\",\n budget: \"Budget Used\",\n overdue: \"Overdue Tasks\",\n activity: \"Last Activity\",\n created: \"Creation Date\",\n description: \"Description\",\n open_tasks: \"Open Tasks\",\n};\n\n/* projectListFields.js: the fields each view offers, and the order of the\n fields that are off (LIST_OFF_ORDER, CARD_OFF_ORDER). */\nconst LIST_FIELD_KEYS: ProjectListField[] = [\n \"number\",\n \"icon\",\n \"client\",\n \"category\",\n \"label\",\n \"leader\",\n \"people\",\n \"progress\",\n \"tracked\",\n \"estimate\",\n \"budget\",\n \"activity\",\n \"created\",\n];\nconst LIST_OFF_ORDER: ProjectListField[] = [\n \"tracked\",\n \"estimate\",\n \"budget\",\n \"people\",\n \"created\",\n];\nconst CARD_FIELD_KEYS: ProjectListField[] = [\n \"icon\",\n \"number\",\n \"client\",\n \"description\",\n \"category\",\n \"label\",\n \"leader\",\n \"people\",\n \"progress\",\n \"open_tasks\",\n \"tracked\",\n \"estimate\",\n \"budget\",\n \"activity\",\n \"created\",\n];\nconst CARD_OFF_ORDER: ProjectListField[] = [\n \"tracked\",\n \"estimate\",\n \"budget\",\n \"activity\",\n \"category\",\n \"people\",\n \"created\",\n \"description\",\n];\n\nconst offFields = (\n keys: ProjectListField[],\n preferred: ProjectListField[],\n chosen: ProjectListField[],\n last: ProjectListField[] = []\n): ProjectListField[] => {\n const off = keys.filter((key) => !chosen.includes(key));\n\n return [\n ...preferred.filter((key) => off.includes(key)),\n ...off.filter((key) => !preferred.includes(key) && !last.includes(key)),\n ...last.filter((key) => off.includes(key)),\n ];\n};\n\n/* ProjectListFieldsSetting.jsx: the chosen fields first, then the others; the list keeps Last Activity last. */\nconst settingsOrder = (option: ProjectListFieldsOption) => {\n const list = option.list.filter((field) => field !== \"name\");\n const listOff = offFields(LIST_FIELD_KEYS, LIST_OFF_ORDER, list, [\n \"activity\",\n ]);\n const cards = CARD_FIELD_KEYS.filter((key) => option.cards.includes(key));\n\n return {\n list:\n list[list.length - 1] === \"activity\"\n ? [...list.slice(0, -1), ...listOff, \"activity\" as ProjectListField]\n : [...list, ...listOff],\n grid: [...cards, ...offFields(CARD_FIELD_KEYS, CARD_OFF_ORDER, cards)],\n };\n};\n\nexport interface ProjectListSettingGroupProps {\n value?: ProjectListFieldsOption;\n}\n\n/** The Project List group: one row with the List and Cards field pickers. */\nexport const ProjectListSettingGroup = ({\n value = PROJECT_LIST_FIELDS_OPTION,\n}: ProjectListSettingGroupProps): ReactElement => {\n const [order] = useState(() => settingsOrder(value));\n const [selected, setSelected] = useState({\n list: value.list.filter((field) => field !== \"name\"),\n grid: value.cards,\n });\n\n return (\n <StyledNewSettingGroup label=\"Project List\">\n <SettingRow\n title=\"Default Project List Fields\"\n description=\"The fields that a project row and a project card show. A person who changes them keeps that choice.\"\n control={\n <StyledListFieldsControl>\n {([\"list\", \"grid\"] as const).map((view) => (\n <Select\n key={view}\n type=\"multiple\"\n options={order[view].map((id) => ({\n id,\n name: PROJECT_LIST_FIELD_LABELS[id],\n }))}\n selected={selected[view]}\n onChange={(next) =>\n setSelected((prev) => ({\n ...prev,\n [view]: (Array.isArray(next)\n ? next\n : [next]) as ProjectListField[],\n }))\n }\n disableSearch\n keepSameOptionsOrder\n disabledInternalSort\n target={\n <SelectTrigger className=\"setting-select-trigger\">\n {/* The en translation keeps \"field\" for every count. */}\n {view === \"grid\"\n ? `Cards: ${selected.grid.length} field`\n : `List: ${selected.list.length} field`}\n </SelectTrigger>\n }\n />\n ))}\n </StyledListFieldsControl>\n }\n />\n </StyledNewSettingGroup>\n );\n};\n\n/** mirrors: config options `default_client_color_mode`, `default_project_color_mode`, `default_project_icon_mode` (normalizeIdentityDefaults). */\nexport interface ProjectIdentityOptions {\n default_client_color_mode: \"auto\" | \"off\";\n default_project_color_mode: \"client\" | \"label\" | \"none\";\n default_project_icon_mode: \"monogram\" | \"client\";\n}\n\nexport const PROJECT_IDENTITY_OPTIONS: ProjectIdentityOptions = {\n default_client_color_mode: \"auto\",\n default_project_color_mode: \"client\",\n default_project_icon_mode: \"monogram\",\n};\n\nconst IDENTITY_ROWS: {\n option: keyof ProjectIdentityOptions;\n title: string;\n description: string;\n choices: { id: string; name: string }[];\n}[] = [\n {\n option: \"default_client_color_mode\",\n title: \"Color of New Clients\",\n description:\n \"A new client company gets the next color of the palette, or no color.\",\n choices: [\n { id: \"auto\", name: \"Next Palette Color\" },\n { id: \"off\", name: \"No Color\" },\n ],\n },\n {\n option: \"default_project_color_mode\",\n title: \"Color of New Projects\",\n description:\n \"A new project follows the color of its client or its label, or has no color.\",\n choices: [\n { id: \"client\", name: \"Client Color\" },\n { id: \"label\", name: \"Label Color\" },\n { id: \"none\", name: \"No Color\" },\n ],\n },\n {\n option: \"default_project_icon_mode\",\n title: \"Icon of New Projects\",\n description:\n \"A new project shows its initials on its color, or the logo of its client.\",\n choices: [\n { id: \"monogram\", name: \"Monogram\" },\n { id: \"client\", name: \"Client Logo\" },\n ],\n },\n];\n\nexport interface ProjectIdentitySettingGroupProps {\n value?: ProjectIdentityOptions;\n}\n\n/** The Colors and Icons group: the defaults for new clients and new projects. */\nexport const ProjectIdentitySettingGroup = ({\n value = PROJECT_IDENTITY_OPTIONS,\n}: ProjectIdentitySettingGroupProps): ReactElement => {\n const [saved, setSaved] = useState(value);\n\n return (\n <StyledNewSettingGroup label=\"Colors and Icons\">\n {IDENTITY_ROWS.map((row) => (\n <SettingRow\n key={row.option}\n title={row.title}\n description={row.description}\n control={\n <StyledIdentityControl>\n <Select\n target={\n <SelectTrigger className=\"setting-select-trigger\">\n {\n row.choices.find(\n (choice) => choice.id === saved[row.option]\n )?.name\n }\n </SelectTrigger>\n }\n options={row.choices}\n selected={saved[row.option]}\n onChange={(next) =>\n setSaved((prev) => ({ ...prev, [row.option]: String(next) }))\n }\n disableSearch\n forceCloseMenu\n keepSameOptionsOrder\n disabledInternalSort\n />\n </StyledIdentityControl>\n }\n />\n ))}\n </StyledNewSettingGroup>\n );\n};\n\n/* ------------------------------------------------------------------ */\n/* Settings search (pages/SystemSettings/search): the ComboBox above */\n/* the SideNav, with the sections and the setting groups and rows that */\n/* the typed words match. */\n/* ------------------------------------------------------------------ */\n\n/** mirrors: one entry of useSettingsSearchIndex, built from SECTION_GROUPS and entries.js. */\nexport interface SettingsSearchEntry {\n id: string;\n name: string;\n section: SystemSettingsSectionId;\n isSection: boolean;\n}\n\nconst sectionEntry = (\n section: SystemSettingsSectionId,\n name: string\n): SettingsSearchEntry => ({ id: section, name, section, isSection: true });\n\nconst projectEntries = (\n groups: [string, string, string[]][]\n): SettingsSearchEntry[] =>\n groups.flatMap(([groupId, groupName, rows]) => [\n {\n id: `project.${groupId}`,\n name: groupName,\n section: \"project\" as const,\n isSection: false,\n },\n ...rows.map((row, index) => ({\n id: `project.${groupId}.${index}`,\n name: row,\n section: \"project\" as const,\n isSection: false,\n })),\n ]);\n\n/**\n * The index with the flag on, the version control off: every section, and the\n * groups and rows of the Projects section. The other sections keep their rows\n * out of the mock, and no row of theirs has \"color\" in its name.\n */\nexport const SETTINGS_SEARCH_INDEX: SettingsSearchEntry[] = [\n sectionEntry(\"general\", \"General\"),\n sectionEntry(\"security\", \"Security\"),\n sectionEntry(\"project\", \"Projects\"),\n ...projectEntries([\n [\n \"general\",\n \"General\",\n [\n \"Default Task List Name\",\n \"Default Comment Order\",\n \"Show History of Changes in Comments\",\n \"Default Add Task Form\",\n \"Show Project's Content to Clients\",\n \"Task Completion Notifications\",\n ],\n ],\n [\n \"permissions\",\n \"Permissions\",\n [\n \"Client+ Role\",\n \"Member Permissions\",\n \"Limit Comment Editing Period\",\n \"Lock Comments When a Discussion Is Archived\",\n ],\n ],\n [\"lists\", \"Project List\", [\"Default Project List Fields\"]],\n [\n \"identity\",\n \"Colors and Icons\",\n [\"Color of New Clients\", \"Color of New Projects\", \"Icon of New Projects\"],\n ],\n [\"identifiers\", \"Identifiers\", [\"Task ID in Lists\", \"Project ID in Lists\"]],\n [\n \"labels\",\n \"Labels & Categories\",\n [\n \"Task Label Order\",\n \"Global Task Labels\",\n \"Project Labels\",\n \"Project Categories\",\n ],\n ],\n ]),\n sectionEntry(\"workday\", \"Workday\"),\n sectionEntry(\"calendar\", \"Calendar\"),\n sectionEntry(\"tracking\", \"Time & Expenses\"),\n sectionEntry(\"invoice\", \"Invoices & Estimates\"),\n sectionEntry(\"invoice-designer\", \"Invoice Designer\"),\n];\n\n/** useSettingsSearch: every word must match; a section heads its matches; a repeated name in a section shows once. */\nexport const searchSettings = (\n query: string,\n index: SettingsSearchEntry[] = SETTINGS_SEARCH_INDEX\n): SettingsSearchEntry[] => {\n const terms = query.toLocaleLowerCase().split(/\\s+/).filter(Boolean);\n\n if (!terms.length) {\n return [];\n }\n\n const matches = index.filter((entry) =>\n terms.every((term) => entry.name.toLocaleLowerCase().includes(term))\n );\n const sections = new Set(matches.map((entry) => entry.section));\n const seen = new Set<string>();\n\n return index\n .filter((entry) =>\n entry.isSection ? sections.has(entry.section) : matches.includes(entry)\n )\n .filter((entry) => {\n const key = `${entry.section}|${entry.name.toLocaleLowerCase()}`;\n\n if (seen.has(key)) {\n return false;\n }\n\n seen.add(key);\n\n return true;\n });\n};\n\n// A function, not a constant: systemSettingsDialog.tsx imports this file, so the groups are not ready at load.\nconst sectionIconOf = (\n section: SystemSettingsSectionId\n): ReactElement | undefined =>\n SYSTEM_SETTINGS_GROUPS.flatMap((group) => group.sections).find(\n (item) => item.id === section\n )?.icon;\n\n/* SettingsSearchField.jsx: \"tw:relative tw:mb-[30px] tw:w-[calc(100%-5px)]\", the list stretched to listWidth. */\nconst StyledSettingsSearch = styled.div`\n position: relative;\n width: calc(100% - 5px);\n margin-bottom: 30px;\n\n .settings-search-input {\n width: 100%;\n }\n\n .c-combo-box--list {\n width: 100%;\n }\n\n .search-section {\n display: flex;\n align-items: center;\n gap: 10px;\n min-width: 0;\n fill: var(--color-theme-700);\n }\n\n .search-section > svg {\n width: 16px;\n height: 16px;\n }\n\n .search-name {\n display: block;\n min-width: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n\n .search-row {\n padding-left: 26px;\n }\n`;\n\nexport interface SettingsSearchFieldProps {\n /** Types these words into the field when it mounts, so the list opens with their results. */\n query?: string;\n}\n\n/** The settings search of the System Settings rail: a ComboBox with the search icon as its start adornment. */\nexport const SettingsSearchField = ({\n query,\n}: SettingsSearchFieldProps): ReactElement => {\n const fieldRef = useRef<HTMLDivElement>(null);\n const [options, setOptions] = useState<SettingsSearchEntry[]>([]);\n\n useEffect(() => {\n const input = fieldRef.current?.querySelector(\"input\");\n const setValue = Object.getOwnPropertyDescriptor(\n HTMLInputElement.prototype,\n \"value\"\n )?.set;\n\n if (!query || !input || !setValue) {\n return;\n }\n\n // The ComboBox keeps its text inside, so the story types like a reader does.\n input.focus();\n setValue.call(input, query);\n input.dispatchEvent(new Event(\"input\", { bubbles: true }));\n }, [query]);\n\n return (\n <StyledSettingsSearch ref={fieldRef}>\n <ComboBox\n options={options}\n onInputChange={(text) => setOptions(searchSettings(text))}\n onChange={() => setOptions([])}\n renderOption={(option) => {\n const entry = options.find((item) => item.id === option.id);\n\n return entry?.isSection ? (\n <span className=\"search-section\">\n {sectionIconOf(entry.section)}\n <Body2 weight=\"bold\" className=\"search-name\">\n {entry.name}\n </Body2>\n </span>\n ) : (\n <Body2 className=\"search-name search-row\">{option.name}</Body2>\n );\n }}\n placeholder=\"Search settings\"\n noResultText=\"No settings found\"\n startAdornment={\n <SearchIcon\n width={14}\n height={14}\n style={{ fill: \"var(--color-theme-700)\" }}\n />\n }\n inputWrapperClassName=\"settings-search-input\"\n forceCloseMenu\n optionsAreFinal\n keepFilterOnClose\n listWidth={330}\n listPlacement=\"bottom-start\"\n />\n </StyledSettingsSearch>\n );\n};\n"],"mappings":";AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAOA,KAAK,IACVC,aAAa,EAGbC,UAAU,EACVC,SAAS,EACTC,MAAM,EACNC,QAAQ,QACH,OAAO;AAEd,OAAOC,MAAM,MAAM,mBAAmB;AAEtC,SACEC,sBAAsB,QAEjB,wBAAwB;AAC/B,SAASC,EAAE,EAAEC,EAAE,QAAQ,UAAU;AACjC,SAASC,IAAI,QAAQ,uBAAuB;AAC5C,SAASC,IAAI,QAAQ,uBAAuB;AAC5C,SAASC,QAAQ,QAAQ,2BAA2B;AACpD,SAASC,UAAU,QAAQ,6BAA6B;AACxD,SACEC,aAAa,EACbC,wBAAwB,EACxBC,UAAU,QACL,wBAAwB;AAC/B,SAASC,KAAK,QAAQ,wBAAwB;AAC9C,SAASC,MAAM,QAAQ,yBAAyB;AAChD,SAASC,aAAa,QAAQ,gCAAgC;AAC9D,SAASC,KAAK,EAAEC,QAAQ,EAAEC,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AE,KAAKlB,MAAM,CAACkB,EAAE,CAAC;MAE3D,OAAO6C,KAAK,YAALA,KAAK,CAAEf,SAAS,gBACrB7J,KAAA,CAAAiC,aAAA;QAAMC,SAAS,EAAC;MAAgB,GAC7BkJ,aAAa,CAACR,KAAK,CAAChB,OAAO,CAAC,eAC7B5J,KAAA,CAAAiC,aAAA,CAACb,KAAK;QAAC8L,MAAM,EAAC,MAAM;QAAChL,SAAS,EAAC;MAAa,GACzC0I,KAAK,CAAC5F,IACF,CACH,CAAC,gBAEPhF,KAAA,CAAAiC,aAAA,CAACb,KAAK;QAACc,SAAS,EAAC;MAAwB,GAAE2E,MAAM,CAAC7B,IAAY,CAC/D;IACH,CAAE;IACFmI,WAAW,EAAC,iBAAiB;IAC7BC,YAAY,EAAC,mBAAmB;IAChCC,cAAc,eACZrN,KAAA,CAAAiC,aAAA,CAACjB,UAAU;MACTsM,KAAK,EAAE,EAAG;MACVC,MAAM,EAAE,EAAG;MACXC,KAAK,EAAE;QAAEC,IAAI,EAAE;MAAyB;IAAE,CAC3C,CACF;IACDC,qBAAqB,EAAC,uBAAuB;IAC7ChE,cAAc;IACdiE,eAAe;IACfC,iBAAiB;IACjBC,SAAS,EAAE,GAAI;IACfC,aAAa,EAAC;EAAc,CAC7B,CACmB,CAAC;AAE3B,CAAC","ignoreList":[]}
|
|
@@ -40,4 +40,10 @@ export declare const AVATAR_COLORS: {
|
|
|
40
40
|
*/
|
|
41
41
|
export declare const SANS = "-apple-system, BlinkMacSystemFont, \"Inter\", \"Roboto\", \"Helvetica Neue\", Arial, sans-serif";
|
|
42
42
|
export declare const MONO = "ui-monospace, SFMono-Regular, Menlo, Consolas, monospace";
|
|
43
|
+
/** A DS SelectTrigger sized to its content instead of its fixed 300px (the
|
|
44
|
+
System Settings rows). Stories that still declare their own autoTrigger
|
|
45
|
+
are cleanup debt. */
|
|
46
|
+
export declare const AUTO_TRIGGER: {
|
|
47
|
+
width: "auto";
|
|
48
|
+
};
|
|
43
49
|
//# sourceMappingURL=tokens.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../../../src/presentation/shared/tokens.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,UAAU,MAAM,CAAC;AAC9B,eAAO,MAAM,EAAE,UAAU,CAAC;AAC1B,eAAO,MAAM,EAAE,UAAU,CAAC;AAC1B,eAAO,MAAM,EAAE,WAAW,CAAC;AAC3B,eAAO,MAAM,EAAE,WAAW,CAAC;AAC3B,eAAO,MAAM,UAAU,eAAe,CAAC;AAEvC;;;;GAIG;AACH;;;GAGG;AACH,eAAO,MAAM,aAAa,4HACiG,CAAC;AAE5H,eAAO,MAAM,iBAAiB,kKAM1B,CAAC;AAEL,wEAAwE;AACxE,eAAO,MAAM,aAAa;;;;;;;CAOzB,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,IAAI,oGAC4E,CAAC;AAC9F,eAAO,MAAM,IAAI,6DAA6D,CAAC"}
|
|
1
|
+
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../../../src/presentation/shared/tokens.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,UAAU,MAAM,CAAC;AAC9B,eAAO,MAAM,EAAE,UAAU,CAAC;AAC1B,eAAO,MAAM,EAAE,UAAU,CAAC;AAC1B,eAAO,MAAM,EAAE,WAAW,CAAC;AAC3B,eAAO,MAAM,EAAE,WAAW,CAAC;AAC3B,eAAO,MAAM,UAAU,eAAe,CAAC;AAEvC;;;;GAIG;AACH;;;GAGG;AACH,eAAO,MAAM,aAAa,4HACiG,CAAC;AAE5H,eAAO,MAAM,iBAAiB,kKAM1B,CAAC;AAEL,wEAAwE;AACxE,eAAO,MAAM,aAAa;;;;;;;CAOzB,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,IAAI,oGAC4E,CAAC;AAC9F,eAAO,MAAM,IAAI,6DAA6D,CAAC;AAE/E;;wBAEwB;AACxB,eAAO,MAAM,YAAY;;CAA6B,CAAC"}
|
|
@@ -43,4 +43,11 @@ export const AVATAR_COLORS = {
|
|
|
43
43
|
*/
|
|
44
44
|
export const SANS = '-apple-system, BlinkMacSystemFont, "Inter", "Roboto", "Helvetica Neue", Arial, sans-serif';
|
|
45
45
|
export const MONO = "ui-monospace, SFMono-Regular, Menlo, Consolas, monospace";
|
|
46
|
+
|
|
47
|
+
/** A DS SelectTrigger sized to its content instead of its fixed 300px (the
|
|
48
|
+
System Settings rows). Stories that still declare their own autoTrigger
|
|
49
|
+
are cleanup debt. */
|
|
50
|
+
export const AUTO_TRIGGER = {
|
|
51
|
+
width: "auto"
|
|
52
|
+
};
|
|
46
53
|
//# sourceMappingURL=tokens.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.js","names":["BREAKPOINT","SM","MD","LG","XL","TRANSITION","DUE_BAR_TRACK","NON_WORKING_HATCH","AVATAR_COLORS","yellow","purple","blue","orange","green","teal","SANS","MONO"],"sources":["../../../../src/presentation/shared/tokens.ts"],"sourcesContent":["/**\n * Shared constants for the Presentation mock-ups.\n *\n * Breakpoints mirror new-activecollab-front (Tailwind sm / md / lg / xl).\n */\nexport const BREAKPOINT = 640;\nexport const SM = \"640px\";\nexport const MD = \"768px\";\nexport const LG = \"1024px\";\nexport const XL = \"1280px\";\nexport const TRANSITION = \"200ms ease\";\n\n/**\n * The hatch the app draws over weekends and global days off (calendar.less,\n * also on .project-calendar-week). Multiples of 1/sqrt(2) px keep every\n * stripe on the pixel grid.\n */\n/**\n * The track of the list's estimate bar (ListTimeDetails.jsx), which the\n * project calendar's WeekDueBar reuses under each day of the week.\n */\nexport const DUE_BAR_TRACK =\n \"light-dark(var(--color-theme-transparent-300), color-mix(in srgb, var(--color-theme-transparent-500) 37%, transparent))\";\n\nexport const NON_WORKING_HATCH = `repeating-linear-gradient(\n -45deg,\n transparent,\n transparent 4.95px,\n var(--border-primary) 4.95px,\n var(--border-primary) 5.657px\n )`;\n\n/** Mock avatar background colours (stand-ins for real user avatars). */\nexport const AVATAR_COLORS = {\n yellow: \"#F5B041\",\n purple: \"#A569BD\",\n blue: \"#5499C7\",\n orange: \"#E67E22\",\n green: \"#32B370\",\n teal: \"#48C9B0\",\n};\n\n/**\n * Font stacks for the mock-ups.\n *\n * `SANS` mirrors the DS `FontStyle` stack. Presentation containers set it so raw\n * text that is not wrapped in Typography does not fall back to serif (there is\n * no global CSS reset in Storybook); text itself still goes through Typography.\n *\n * `MONO` is the monospace face the app uses for SHAs and inline code.\n */\nexport const SANS =\n '-apple-system, BlinkMacSystemFont, \"Inter\", \"Roboto\", \"Helvetica Neue\", Arial, sans-serif';\nexport const MONO = \"ui-monospace, SFMono-Regular, Menlo, Consolas, monospace\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMA,UAAU,GAAG,GAAG;AAC7B,OAAO,MAAMC,EAAE,GAAG,OAAO;AACzB,OAAO,MAAMC,EAAE,GAAG,OAAO;AACzB,OAAO,MAAMC,EAAE,GAAG,QAAQ;AAC1B,OAAO,MAAMC,EAAE,GAAG,QAAQ;AAC1B,OAAO,MAAMC,UAAU,GAAG,YAAY;;AAEtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,aAAa,GACxB,yHAAyH;AAE3H,OAAO,MAAMC,iBAAiB,kKAM1B;;AAEJ;AACA,OAAO,MAAMC,aAAa,GAAG;EAC3BC,MAAM,EAAE,SAAS;EACjBC,MAAM,EAAE,SAAS;EACjBC,IAAI,EAAE,SAAS;EACfC,MAAM,EAAE,SAAS;EACjBC,KAAK,EAAE,SAAS;EAChBC,IAAI,EAAE;AACR,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,IAAI,GACf,2FAA2F;AAC7F,OAAO,MAAMC,IAAI,GAAG,0DAA0D","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"tokens.js","names":["BREAKPOINT","SM","MD","LG","XL","TRANSITION","DUE_BAR_TRACK","NON_WORKING_HATCH","AVATAR_COLORS","yellow","purple","blue","orange","green","teal","SANS","MONO","AUTO_TRIGGER","width"],"sources":["../../../../src/presentation/shared/tokens.ts"],"sourcesContent":["/**\n * Shared constants for the Presentation mock-ups.\n *\n * Breakpoints mirror new-activecollab-front (Tailwind sm / md / lg / xl).\n */\nexport const BREAKPOINT = 640;\nexport const SM = \"640px\";\nexport const MD = \"768px\";\nexport const LG = \"1024px\";\nexport const XL = \"1280px\";\nexport const TRANSITION = \"200ms ease\";\n\n/**\n * The hatch the app draws over weekends and global days off (calendar.less,\n * also on .project-calendar-week). Multiples of 1/sqrt(2) px keep every\n * stripe on the pixel grid.\n */\n/**\n * The track of the list's estimate bar (ListTimeDetails.jsx), which the\n * project calendar's WeekDueBar reuses under each day of the week.\n */\nexport const DUE_BAR_TRACK =\n \"light-dark(var(--color-theme-transparent-300), color-mix(in srgb, var(--color-theme-transparent-500) 37%, transparent))\";\n\nexport const NON_WORKING_HATCH = `repeating-linear-gradient(\n -45deg,\n transparent,\n transparent 4.95px,\n var(--border-primary) 4.95px,\n var(--border-primary) 5.657px\n )`;\n\n/** Mock avatar background colours (stand-ins for real user avatars). */\nexport const AVATAR_COLORS = {\n yellow: \"#F5B041\",\n purple: \"#A569BD\",\n blue: \"#5499C7\",\n orange: \"#E67E22\",\n green: \"#32B370\",\n teal: \"#48C9B0\",\n};\n\n/**\n * Font stacks for the mock-ups.\n *\n * `SANS` mirrors the DS `FontStyle` stack. Presentation containers set it so raw\n * text that is not wrapped in Typography does not fall back to serif (there is\n * no global CSS reset in Storybook); text itself still goes through Typography.\n *\n * `MONO` is the monospace face the app uses for SHAs and inline code.\n */\nexport const SANS =\n '-apple-system, BlinkMacSystemFont, \"Inter\", \"Roboto\", \"Helvetica Neue\", Arial, sans-serif';\nexport const MONO = \"ui-monospace, SFMono-Regular, Menlo, Consolas, monospace\";\n\n/** A DS SelectTrigger sized to its content instead of its fixed 300px (the\n System Settings rows). Stories that still declare their own autoTrigger\n are cleanup debt. */\nexport const AUTO_TRIGGER = { width: \"auto\" as const };\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMA,UAAU,GAAG,GAAG;AAC7B,OAAO,MAAMC,EAAE,GAAG,OAAO;AACzB,OAAO,MAAMC,EAAE,GAAG,OAAO;AACzB,OAAO,MAAMC,EAAE,GAAG,QAAQ;AAC1B,OAAO,MAAMC,EAAE,GAAG,QAAQ;AAC1B,OAAO,MAAMC,UAAU,GAAG,YAAY;;AAEtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,aAAa,GACxB,yHAAyH;AAE3H,OAAO,MAAMC,iBAAiB,kKAM1B;;AAEJ;AACA,OAAO,MAAMC,aAAa,GAAG;EAC3BC,MAAM,EAAE,SAAS;EACjBC,MAAM,EAAE,SAAS;EACjBC,IAAI,EAAE,SAAS;EACfC,MAAM,EAAE,SAAS;EACjBC,KAAK,EAAE,SAAS;EAChBC,IAAI,EAAE;AACR,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,IAAI,GACf,2FAA2F;AAC7F,OAAO,MAAMC,IAAI,GAAG,0DAA0D;;AAE9E;AACA;AACA;AACA,OAAO,MAAMC,YAAY,GAAG;EAAEC,KAAK,EAAE;AAAgB,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactElement } from "react";
|
|
2
|
+
/** A confirm's body: its text, then one line per timebox the change would
|
|
3
|
+
shorten or delete (adjustmentLines). */
|
|
4
|
+
export declare const AdjustmentList: {
|
|
5
|
+
({ text, lines, }: {
|
|
6
|
+
text?: string;
|
|
7
|
+
lines: string[];
|
|
8
|
+
}): ReactElement;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=AdjustmentList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AdjustmentList.d.ts","sourceRoot":"","sources":["../../../../src/presentation/timeboxes/AdjustmentList.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAkB5C;2CAC2C;AAC3C,eAAO,MAAM,cAAc;uBAGxB;QACD,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,EAAE,CAAC;KACjB,GAAG,YAAY;;CAaf,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import styled from "styled-components";
|
|
3
|
+
import { Body2 } from "../../components/Typography";
|
|
4
|
+
const StyledAdjustments = styled.div.withConfig({
|
|
5
|
+
displayName: "AdjustmentList__StyledAdjustments",
|
|
6
|
+
componentId: "sc-ekvyea-0"
|
|
7
|
+
})(["display:flex;flex-direction:column;gap:8px;.adjustment-lines{display:flex;flex-direction:column;gap:4px;}"]);
|
|
8
|
+
|
|
9
|
+
/** A confirm's body: its text, then one line per timebox the change would
|
|
10
|
+
shorten or delete (adjustmentLines). */
|
|
11
|
+
export const AdjustmentList = _ref => {
|
|
12
|
+
let text = _ref.text,
|
|
13
|
+
lines = _ref.lines;
|
|
14
|
+
return /*#__PURE__*/React.createElement(StyledAdjustments, null, text ? /*#__PURE__*/React.createElement(Body2, null, text) : null, lines.length > 0 ? /*#__PURE__*/React.createElement("div", {
|
|
15
|
+
className: "adjustment-lines"
|
|
16
|
+
}, lines.map(line => /*#__PURE__*/React.createElement(Body2, {
|
|
17
|
+
key: line,
|
|
18
|
+
color: "secondary"
|
|
19
|
+
}, line))) : null);
|
|
20
|
+
};
|
|
21
|
+
AdjustmentList.displayName = "AdjustmentList";
|
|
22
|
+
//# sourceMappingURL=AdjustmentList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AdjustmentList.js","names":["React","styled","Body2","StyledAdjustments","div","withConfig","displayName","componentId","AdjustmentList","_ref","text","lines","createElement","length","className","map","line","key","color"],"sources":["../../../../src/presentation/timeboxes/AdjustmentList.tsx"],"sourcesContent":["import React, { ReactElement } from \"react\";\n\nimport styled from \"styled-components\";\n\nimport { Body2 } from \"../../components/Typography\";\n\nconst StyledAdjustments = styled.div`\n display: flex;\n flex-direction: column;\n gap: 8px;\n\n .adjustment-lines {\n display: flex;\n flex-direction: column;\n gap: 4px;\n }\n`;\n\n/** A confirm's body: its text, then one line per timebox the change would\n shorten or delete (adjustmentLines). */\nexport const AdjustmentList = ({\n text,\n lines,\n}: {\n text?: string;\n lines: string[];\n}): ReactElement => (\n <StyledAdjustments>\n {text ? <Body2>{text}</Body2> : null}\n {lines.length > 0 ? (\n <div className=\"adjustment-lines\">\n {lines.map((line) => (\n <Body2 key={line} color=\"secondary\">\n {line}\n </Body2>\n ))}\n </div>\n ) : null}\n </StyledAdjustments>\n);\n\nAdjustmentList.displayName = \"AdjustmentList\";\n"],"mappings":"AAAA,OAAOA,KAAK,MAAwB,OAAO;AAE3C,OAAOC,MAAM,MAAM,mBAAmB;AAEtC,SAASC,KAAK,QAAQ,6BAA6B;AAEnD,MAAMC,iBAAiB,GAAGF,MAAM,CAACG,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,iHAUnC;;AAED;AACA;AACA,OAAO,MAAMC,cAAc,GAAGC,IAAA;EAAA,IAC5BC,IAAI,GAAAD,IAAA,CAAJC,IAAI;IACJC,KAAK,GAAAF,IAAA,CAALE,KAAK;EAAA,oBAKLX,KAAA,CAAAY,aAAA,CAACT,iBAAiB,QACfO,IAAI,gBAAGV,KAAA,CAAAY,aAAA,CAACV,KAAK,QAAEQ,IAAY,CAAC,GAAG,IAAI,EACnCC,KAAK,CAACE,MAAM,GAAG,CAAC,gBACfb,KAAA,CAAAY,aAAA;IAAKE,SAAS,EAAC;EAAkB,GAC9BH,KAAK,CAACI,GAAG,CAAEC,IAAI,iBACdhB,KAAA,CAAAY,aAAA,CAACV,KAAK;IAACe,GAAG,EAAED,IAAK;IAACE,KAAK,EAAC;EAAW,GAChCF,IACI,CACR,CACE,CAAC,GACJ,IACa,CAAC;AAAA,CACrB;AAEDR,cAAc,CAACF,WAAW,GAAG,gBAAgB","ignoreList":[]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ReactElement } from "react";
|
|
2
|
+
import { DateKey } from "./model";
|
|
3
|
+
export declare const AgendaDayView: {
|
|
4
|
+
({ date, onDateChange, onMessage, trackedColumn, }: {
|
|
5
|
+
date: DateKey;
|
|
6
|
+
onDateChange: (date: DateKey) => void;
|
|
7
|
+
/** An action's outcome or refusal, for the Simulation panel. */
|
|
8
|
+
onMessage: (message: string) => void;
|
|
9
|
+
/** A "Tracked" column beside the plan, the day's time records laid out
|
|
10
|
+
on the hours ("Timeboxes – Plan and Tracked"). */
|
|
11
|
+
trackedColumn?: boolean;
|
|
12
|
+
}): ReactElement;
|
|
13
|
+
displayName: string;
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=AgendaDayView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgendaDayView.d.ts","sourceRoot":"","sources":["../../../../src/presentation/timeboxes/AgendaDayView.tsx"],"names":[],"mappings":"AAAA,OAAc,EAEZ,YAAY,EAMb,MAAM,OAAO,CAAC;AAyDf,OAAO,EACL,OAAO,EAYR,MAAM,SAAS,CAAC;AA46BjB,eAAO,MAAM,aAAa;wDAKvB;QACD,IAAI,EAAE,OAAO,CAAC;QACd,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;QACtC,gEAAgE;QAChE,SAAS,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;QACrC;6DACqD;QACrD,aAAa,CAAC,EAAE,OAAO,CAAC;KACzB,GAAG,YAAY;;CAszCf,CAAC"}
|