@activecollab/components 2.0.577 → 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.
Files changed (139) hide show
  1. package/dist/cjs/presentation/myWork/MyWorkTasks.js +83 -30
  2. package/dist/cjs/presentation/myWork/MyWorkTasks.js.map +1 -1
  3. package/dist/cjs/presentation/myWork/agendaGrid.js +1095 -0
  4. package/dist/cjs/presentation/myWork/agendaGrid.js.map +1 -0
  5. package/dist/cjs/presentation/shared/settings.js +6 -2
  6. package/dist/cjs/presentation/shared/settings.js.map +1 -1
  7. package/dist/cjs/presentation/shared/tokens.js +8 -1
  8. package/dist/cjs/presentation/shared/tokens.js.map +1 -1
  9. package/dist/cjs/presentation/timeboxes/AdjustmentList.js +31 -0
  10. package/dist/cjs/presentation/timeboxes/AdjustmentList.js.map +1 -0
  11. package/dist/cjs/presentation/timeboxes/AgendaDayView.js +1722 -0
  12. package/dist/cjs/presentation/timeboxes/AgendaDayView.js.map +1 -0
  13. package/dist/cjs/presentation/timeboxes/CapacityBar.js +54 -0
  14. package/dist/cjs/presentation/timeboxes/CapacityBar.js.map +1 -0
  15. package/dist/cjs/presentation/timeboxes/SimulationCard.js +47 -0
  16. package/dist/cjs/presentation/timeboxes/SimulationCard.js.map +1 -0
  17. package/dist/cjs/presentation/timeboxes/SimulationPanel.js +319 -0
  18. package/dist/cjs/presentation/timeboxes/SimulationPanel.js.map +1 -0
  19. package/dist/cjs/presentation/timeboxes/TimeRecordsSection.js +206 -0
  20. package/dist/cjs/presentation/timeboxes/TimeRecordsSection.js.map +1 -0
  21. package/dist/cjs/presentation/timeboxes/WorkloadView.js +887 -0
  22. package/dist/cjs/presentation/timeboxes/WorkloadView.js.map +1 -0
  23. package/dist/cjs/presentation/timeboxes/__tests__/timeboxes.test.js +699 -0
  24. package/dist/cjs/presentation/timeboxes/__tests__/timeboxes.test.js.map +1 -0
  25. package/dist/cjs/presentation/timeboxes/changes.js +293 -0
  26. package/dist/cjs/presentation/timeboxes/changes.js.map +1 -0
  27. package/dist/cjs/presentation/timeboxes/mockData.js +320 -0
  28. package/dist/cjs/presentation/timeboxes/mockData.js.map +1 -0
  29. package/dist/cjs/presentation/timeboxes/model.js +186 -0
  30. package/dist/cjs/presentation/timeboxes/model.js.map +1 -0
  31. package/dist/cjs/presentation/timeboxes/pillLook.js +72 -0
  32. package/dist/cjs/presentation/timeboxes/pillLook.js.map +1 -0
  33. package/dist/cjs/presentation/timeboxes/plan.js +181 -0
  34. package/dist/cjs/presentation/timeboxes/plan.js.map +1 -0
  35. package/dist/cjs/presentation/timeboxes/reducer.js +763 -0
  36. package/dist/cjs/presentation/timeboxes/reducer.js.map +1 -0
  37. package/dist/cjs/presentation/timeboxes/scheduler.js +147 -0
  38. package/dist/cjs/presentation/timeboxes/scheduler.js.map +1 -0
  39. package/dist/cjs/presentation/timeboxes/store.js +65 -0
  40. package/dist/cjs/presentation/timeboxes/store.js.map +1 -0
  41. package/dist/cjs/presentation/timeboxes/timeBlocks.js +1931 -0
  42. package/dist/cjs/presentation/timeboxes/timeBlocks.js.map +1 -0
  43. package/dist/cjs/presentation/timeboxes/timeboxSettings.js +369 -0
  44. package/dist/cjs/presentation/timeboxes/timeboxSettings.js.map +1 -0
  45. package/dist/cjs/presentation/timeboxes/tracked.js +189 -0
  46. package/dist/cjs/presentation/timeboxes/tracked.js.map +1 -0
  47. package/dist/esm/presentation/myWork/MyWorkTasks.d.ts +81 -1
  48. package/dist/esm/presentation/myWork/MyWorkTasks.d.ts.map +1 -1
  49. package/dist/esm/presentation/myWork/MyWorkTasks.js +76 -23
  50. package/dist/esm/presentation/myWork/MyWorkTasks.js.map +1 -1
  51. package/dist/esm/presentation/myWork/agendaGrid.d.ts +341 -0
  52. package/dist/esm/presentation/myWork/agendaGrid.d.ts.map +1 -0
  53. package/dist/esm/presentation/myWork/agendaGrid.js +1001 -0
  54. package/dist/esm/presentation/myWork/agendaGrid.js.map +1 -0
  55. package/dist/esm/presentation/shared/settings.d.ts +2 -0
  56. package/dist/esm/presentation/shared/settings.d.ts.map +1 -1
  57. package/dist/esm/presentation/shared/settings.js +5 -1
  58. package/dist/esm/presentation/shared/settings.js.map +1 -1
  59. package/dist/esm/presentation/shared/tokens.d.ts +6 -0
  60. package/dist/esm/presentation/shared/tokens.d.ts.map +1 -1
  61. package/dist/esm/presentation/shared/tokens.js +7 -0
  62. package/dist/esm/presentation/shared/tokens.js.map +1 -1
  63. package/dist/esm/presentation/timeboxes/AdjustmentList.d.ts +11 -0
  64. package/dist/esm/presentation/timeboxes/AdjustmentList.d.ts.map +1 -0
  65. package/dist/esm/presentation/timeboxes/AdjustmentList.js +22 -0
  66. package/dist/esm/presentation/timeboxes/AdjustmentList.js.map +1 -0
  67. package/dist/esm/presentation/timeboxes/AgendaDayView.d.ts +15 -0
  68. package/dist/esm/presentation/timeboxes/AgendaDayView.d.ts.map +1 -0
  69. package/dist/esm/presentation/timeboxes/AgendaDayView.js +1524 -0
  70. package/dist/esm/presentation/timeboxes/AgendaDayView.js.map +1 -0
  71. package/dist/esm/presentation/timeboxes/CapacityBar.d.ts +15 -0
  72. package/dist/esm/presentation/timeboxes/CapacityBar.d.ts.map +1 -0
  73. package/dist/esm/presentation/timeboxes/CapacityBar.js +48 -0
  74. package/dist/esm/presentation/timeboxes/CapacityBar.js.map +1 -0
  75. package/dist/esm/presentation/timeboxes/SimulationCard.d.ts +13 -0
  76. package/dist/esm/presentation/timeboxes/SimulationCard.d.ts.map +1 -0
  77. package/dist/esm/presentation/timeboxes/SimulationCard.js +41 -0
  78. package/dist/esm/presentation/timeboxes/SimulationCard.js.map +1 -0
  79. package/dist/esm/presentation/timeboxes/SimulationPanel.d.ts +18 -0
  80. package/dist/esm/presentation/timeboxes/SimulationPanel.d.ts.map +1 -0
  81. package/dist/esm/presentation/timeboxes/SimulationPanel.js +267 -0
  82. package/dist/esm/presentation/timeboxes/SimulationPanel.js.map +1 -0
  83. package/dist/esm/presentation/timeboxes/TimeRecordsSection.d.ts +14 -0
  84. package/dist/esm/presentation/timeboxes/TimeRecordsSection.d.ts.map +1 -0
  85. package/dist/esm/presentation/timeboxes/TimeRecordsSection.js +159 -0
  86. package/dist/esm/presentation/timeboxes/TimeRecordsSection.js.map +1 -0
  87. package/dist/esm/presentation/timeboxes/WorkloadView.d.ts +9 -0
  88. package/dist/esm/presentation/timeboxes/WorkloadView.d.ts.map +1 -0
  89. package/dist/esm/presentation/timeboxes/WorkloadView.js +761 -0
  90. package/dist/esm/presentation/timeboxes/WorkloadView.js.map +1 -0
  91. package/dist/esm/presentation/timeboxes/__tests__/timeboxes.test.d.ts +2 -0
  92. package/dist/esm/presentation/timeboxes/__tests__/timeboxes.test.d.ts.map +1 -0
  93. package/dist/esm/presentation/timeboxes/__tests__/timeboxes.test.js +640 -0
  94. package/dist/esm/presentation/timeboxes/__tests__/timeboxes.test.js.map +1 -0
  95. package/dist/esm/presentation/timeboxes/changes.d.ts +72 -0
  96. package/dist/esm/presentation/timeboxes/changes.d.ts.map +1 -0
  97. package/dist/esm/presentation/timeboxes/changes.js +224 -0
  98. package/dist/esm/presentation/timeboxes/changes.js.map +1 -0
  99. package/dist/esm/presentation/timeboxes/mockData.d.ts +16 -0
  100. package/dist/esm/presentation/timeboxes/mockData.d.ts.map +1 -0
  101. package/dist/esm/presentation/timeboxes/mockData.js +297 -0
  102. package/dist/esm/presentation/timeboxes/mockData.js.map +1 -0
  103. package/dist/esm/presentation/timeboxes/model.d.ts +136 -0
  104. package/dist/esm/presentation/timeboxes/model.d.ts.map +1 -0
  105. package/dist/esm/presentation/timeboxes/model.js +129 -0
  106. package/dist/esm/presentation/timeboxes/model.js.map +1 -0
  107. package/dist/esm/presentation/timeboxes/pillLook.d.ts +40 -0
  108. package/dist/esm/presentation/timeboxes/pillLook.d.ts.map +1 -0
  109. package/dist/esm/presentation/timeboxes/pillLook.js +65 -0
  110. package/dist/esm/presentation/timeboxes/pillLook.js.map +1 -0
  111. package/dist/esm/presentation/timeboxes/plan.d.ts +62 -0
  112. package/dist/esm/presentation/timeboxes/plan.d.ts.map +1 -0
  113. package/dist/esm/presentation/timeboxes/plan.js +116 -0
  114. package/dist/esm/presentation/timeboxes/plan.js.map +1 -0
  115. package/dist/esm/presentation/timeboxes/reducer.d.ts +203 -0
  116. package/dist/esm/presentation/timeboxes/reducer.d.ts.map +1 -0
  117. package/dist/esm/presentation/timeboxes/reducer.js +616 -0
  118. package/dist/esm/presentation/timeboxes/reducer.js.map +1 -0
  119. package/dist/esm/presentation/timeboxes/scheduler.d.ts +63 -0
  120. package/dist/esm/presentation/timeboxes/scheduler.d.ts.map +1 -0
  121. package/dist/esm/presentation/timeboxes/scheduler.js +120 -0
  122. package/dist/esm/presentation/timeboxes/scheduler.js.map +1 -0
  123. package/dist/esm/presentation/timeboxes/store.d.ts +23 -0
  124. package/dist/esm/presentation/timeboxes/store.d.ts.map +1 -0
  125. package/dist/esm/presentation/timeboxes/store.js +46 -0
  126. package/dist/esm/presentation/timeboxes/store.js.map +1 -0
  127. package/dist/esm/presentation/timeboxes/timeBlocks.d.ts +10 -0
  128. package/dist/esm/presentation/timeboxes/timeBlocks.d.ts.map +1 -0
  129. package/dist/esm/presentation/timeboxes/timeBlocks.js +1767 -0
  130. package/dist/esm/presentation/timeboxes/timeBlocks.js.map +1 -0
  131. package/dist/esm/presentation/timeboxes/timeboxSettings.d.ts +71 -0
  132. package/dist/esm/presentation/timeboxes/timeboxSettings.d.ts.map +1 -0
  133. package/dist/esm/presentation/timeboxes/timeboxSettings.js +302 -0
  134. package/dist/esm/presentation/timeboxes/timeboxSettings.js.map +1 -0
  135. package/dist/esm/presentation/timeboxes/tracked.d.ts +51 -0
  136. package/dist/esm/presentation/timeboxes/tracked.d.ts.map +1 -0
  137. package/dist/esm/presentation/timeboxes/tracked.js +136 -0
  138. package/dist/esm/presentation/timeboxes/tracked.js.map +1 -0
  139. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agendaGrid.js","names":["React","useCallback","useLayoutEffect","useMemo","useState","styled","Checkbox","Chip","DrilldownMenu","Filter","Header","IconButton","CalendarDateIcon","CalendarIcon","CalendarMonthIcon","CheckboxCircleBlankIcon","ClockIcon","ProjectIcon","SettingsIcon","ViewDayIcon","ViewGridIcon","ViewListIcon","Label","List","ListItem","ListSeparator","Item","Nav","Tooltip","Body2","Caption1","Typography","ViewSwitcher","SubViewSwitcher","DUE_BAR_TRACK","LG","NON_WORKING_HATCH","StyledPagePaper","TRANSITION","SECONDS_PER_DAY","utcMidnight","year","month","day","Date","UTC","toDayNumber","seconds","Math","floor","toDate","dayNumber","isoToDayNumber","iso","_iso$split$map","split","map","Number","clockToMinutes","clock","_clock$split$map","hours","minutes","formatTimeOfDay","suffix","twelve","String","padStart","mondayOf","getUTCDay","isoWeekNumber","thursday","yearStart","getUTCFullYear","SHORT_DAYS","LONG_DAYS","SHORT_MONTHS","LONG_MONTHS","longDayOf","shortDayOf","isWeekendDay","weekday","isTimed","entry","startMinute","undefined","KIND_RANK","event","task","subtask","segmentOrder","a","b","_a$startMinute","_b$startMinute","from","kind","lengthDifference","to","assignLanes","entries","firstDay","dayCount","lastDay","laneEnds","filter","endDay","startDay","_extends","max","min","continuesPrior","continuesAfter","lane","sort","segment","findIndex","end","length","WEEK_NUMBER_GUTTER","TIME_GUTTER","LANE_STEP","MONTH_VISIBLE_LANES","ALL_DAY_VISIBLE_LANES","MONTH_ROW_MIN_HEIGHT","HOUR_HEIGHT","SCROLL_TO_HOUR","CALENDAR_TOOLBAR_HEIGHT","StyledMyWorkTabs","withConfig","displayName","componentId","StyledMyCalendarPaper","StyledMyCalendarToolbar","div","StyledDayHeaders","StyledLaneRow","StyledPill","StyledTextTrigger","StyledHourGrid","StyledTimedEvent","StyledDaySplit","DAY_GRID_MIN_WIDTH","DAY_GRID_MAX_WIDTH","DAY_GRID_WIDTH_STORAGE_KEY","StyledMyOptionsList","StyledMyOptionsItem","percentOf","part","whole","EventGlyph","_ref","color","createElement","width","height","style","fill","flexShrink","MEETING_SERVICE_NAMES","zoom","meet","teams","webex","meetingServiceOf","url","host","URL","hostname","toLowerCase","_unused","on","domain","endsWith","MEETING_LOGOS","viewBox","rx","x","y","d","cx","cy","r","fillOpacity","stroke","strokeWidth","MeetingServiceIcon","_ref2","service","title","className","CalendarPill","_ref3","_ref3$showTaskId","showTaskId","resizable","completed","Boolean","join","Fragment","decoration","name","taskNumber","important","meetingUrl","variant","weight","participant","TimedEventBox","_ref4","_entry$startMinute","_entry$endMinute","compact","start","endMinute","LaneRow","_ref5","days","today","isNonWorking","dayOffNameOf","gutterWidth","gutter","renderSegment","maxLanes","onShowMore","_ref5$showTaskIds","showTaskIds","segments","visible","hidden","laneCount","reduce","count","shownLanes","laneAreaHeight","classes","getUTCMonth","key","_dayOffNameOf","getUTCDate","left","top","custom","position","onClick","DatedHeaders","_ref6","todayDay","renderBar","nonWorking","date","placeSideBySide","items","startOf","endOf","sorted","columnEnds","placed","item","column","columns","other","MY_CALENDAR_OPTION_ROWS","label","MY_CALENDAR_DEV_ROWS","MyCalendarOptionsMenu","_ref7","options","onToggle","onOpenListSettings","_ref7$actions","actions","_useState","open","setOpen","close","settingsActions","icon","onSelect","onOpen","onClose","target","type","size","active","tabIndex","row","index","action","htmlFor","id","checked","onChange","MODE_SWITCH","mode","transform","MY_WORK_TABS","TabCountChip","_ref8","backgroundColor","typographyProps","tabularNums","MyWorkTabs","_ref9","tasksCount","controls","tab","periodLabelFor","anchor","monday","sunday","mondayDate","stepAnchor","direction","PAGE_BOTTOM_GAP","useViewportFillHeight","ref","_useState2","setHeight","update","element","current","getBoundingClientRect","window","innerHeight","addEventListener","removeEventListener","AGENDA_MAIN_VIEWS","AGENDA_SECOND_VIEWS","dates","calendar","agendaMainViewOf","view","isCalendarView","AgendaViewSwitch","_ref0","_useState3","lastDate","setLastDate","_useState4","lastCalendar","setLastCalendar","mainView","selectSecondView","next","selectMainView","display","alignItems","gap","value","views","AgendaFilter","_useState5","search","setSearch","data","selected","clearAllText","resetLabel","noResultText","placeholder","clearLabel"],"sources":["../../../../src/presentation/myWork/agendaGrid.tsx"],"sourcesContent":["import React, {\n ReactElement,\n ReactNode,\n useCallback,\n useLayoutEffect,\n useMemo,\n useState,\n} from \"react\";\n\nimport styled from \"styled-components\";\n\nimport { MyTasksGroupBy } from \"./MyWorkTasks\";\nimport { Checkbox } from \"../../components/Checkbox\";\nimport { Chip } from \"../../components/Chip\";\nimport { DrilldownMenu } from \"../../components/DrilldownMenu\";\nimport { Filter } from \"../../components/Filter\";\nimport { Header } from \"../../components/Header\";\nimport { IconButton } from \"../../components/IconButton\";\nimport {\n CalendarDateIcon,\n CalendarIcon,\n CalendarMonthIcon,\n CheckboxCircleBlankIcon,\n ClockIcon,\n ProjectIcon,\n SettingsIcon,\n ViewDayIcon,\n ViewGridIcon,\n ViewListIcon,\n} from \"../../components/Icons\";\nimport { Label } from \"../../components/Label\";\nimport { List, ListItem, ListSeparator } from \"../../components/List\";\nimport { Item, Nav } from \"../../components/Nav\";\nimport { Tooltip } from \"../../components/Tooltip\";\nimport { Body2, Caption1 } from \"../../components/Typography\";\nimport { Typography } from \"../../components/Typography/Typography\";\nimport {\n ViewSwitcher,\n SubViewSwitcher,\n ViewSwitcherView,\n} from \"../../components/ViewSwitcher\";\nimport {\n DUE_BAR_TRACK,\n LG,\n NON_WORKING_HATCH,\n StyledPagePaper,\n TRANSITION,\n} from \"../shared\";\n\n/**\n * The My Work Agenda's calendar pieces, shared by the \"My work calendar\" and\n * the time blocks presentations (timeboxes/timeBlocks): dates, the in-paper\n * toolbar, the week/day header cells, the All Day lane row and its pills, the hour grid,\n * the timed event box, the day split, the options menu and the My Work tab\n * bar with the Agenda view menu.\n *\n * Mirrors src/components/MyWork/Agenda (AgendaToolbar, AgendaDayHeader,\n * AgendaTimeGrid, agendaCalendarProps) and src/styles/calendar.less.\n */\n\n/* ================================================================== */\n/* Dates */\n/* ================================================================== */\n\nexport const SECONDS_PER_DAY = 86400;\n\n/** Unix seconds at UTC midnight — the shape task `start_on` / `due_on` take. */\nexport const utcMidnight = (year: number, month: number, day: number): number =>\n Date.UTC(year, month - 1, day) / 1000;\n\n/** Whole days since the epoch; every grid position is one of these. */\nexport const toDayNumber = (seconds: number): number =>\n Math.floor(seconds / SECONDS_PER_DAY);\n\nexport const toDate = (dayNumber: number): Date =>\n new Date(dayNumber * SECONDS_PER_DAY * 1000);\n\n/** An event's \"YYYY-MM-DD\" (for-screen payload), read for placement only. */\nexport const isoToDayNumber = (iso: string): number => {\n const [year, month, day] = iso.split(\"-\").map(Number);\n return toDayNumber(utcMidnight(year, month, day));\n};\n\n/** An event's \"HH:mm:ss\", as minutes after midnight, for placement only. */\nexport const clockToMinutes = (clock: string): number => {\n const [hours, minutes] = clock.split(\":\").map(Number);\n return hours * 60 + minutes;\n};\n\n/** The app's 12-hour clock: \"09:00 AM\". */\nexport const formatTimeOfDay = (minutes: number): string => {\n const hours = Math.floor(minutes / 60) % 24;\n const suffix = hours < 12 ? \"AM\" : \"PM\";\n const twelve = hours % 12 === 0 ? 12 : hours % 12;\n return `${String(twelve).padStart(2, \"0\")}:${String(minutes % 60).padStart(\n 2,\n \"0\"\n )} ${suffix}`;\n};\n\n/** Weeks start on Monday, as the user's Calendar page does. */\nexport const mondayOf = (dayNumber: number): number =>\n dayNumber - ((toDate(dayNumber).getUTCDay() + 6) % 7);\n\nexport const isoWeekNumber = (dayNumber: number): number => {\n const thursday = mondayOf(dayNumber) + 3;\n const yearStart = toDayNumber(\n utcMidnight(toDate(thursday).getUTCFullYear(), 1, 1)\n );\n return Math.floor((thursday - yearStart) / 7) + 1;\n};\n\nexport const SHORT_DAYS = [\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"];\nexport const LONG_DAYS = [\n \"Monday\",\n \"Tuesday\",\n \"Wednesday\",\n \"Thursday\",\n \"Friday\",\n \"Saturday\",\n \"Sunday\",\n];\nexport const SHORT_MONTHS = [\n \"Jan\",\n \"Feb\",\n \"Mar\",\n \"Apr\",\n \"May\",\n \"Jun\",\n \"Jul\",\n \"Aug\",\n \"Sep\",\n \"Oct\",\n \"Nov\",\n \"Dec\",\n];\nexport const LONG_MONTHS = [\n \"January\",\n \"February\",\n \"March\",\n \"April\",\n \"May\",\n \"June\",\n \"July\",\n \"August\",\n \"September\",\n \"October\",\n \"November\",\n \"December\",\n];\n\nexport const longDayOf = (dayNumber: number): string =>\n LONG_DAYS[(toDate(dayNumber).getUTCDay() + 6) % 7];\n\nexport const shortDayOf = (dayNumber: number): string =>\n SHORT_DAYS[(toDate(dayNumber).getUTCDay() + 6) % 7];\n\nexport const isWeekendDay = (dayNumber: number): boolean => {\n const weekday = toDate(dayNumber).getUTCDay();\n return weekday === 0 || weekday === 6;\n};\n\n/* ================================================================== */\n/* Events */\n/* ================================================================== */\n\nexport interface MockCalendarEvent {\n /* mirrors: GET /calendars/events/for-screen events[]\n (src/repository/__tests__/useEvents.test.js) */\n id: number;\n class: \"CalendarEvent\";\n name: string;\n calendar_id: number;\n calendar_name: string;\n /** The calendar's colour, as the payload carries it on each event. */\n color: string;\n /** \"YYYY-MM-DD\"; both ends inclusive. */\n starts_on: string;\n ends_on: string;\n /** \"HH:mm:ss\"; both null on an all-day event. */\n starts_on_time: string | null;\n ends_on_time: string | null;\n repeat_event: \"dont\" | \"daily\" | \"weekly\" | \"monthly\" | \"yearly\";\n is_participant: boolean;\n /** The event's Meeting Link (CalendarEvent.jsx), or null. */\n meeting_url: string | null;\n}\n\n/* ================================================================== */\n/* Grid items */\n/* ================================================================== */\n\nexport interface ViewOptions {\n showTasks: boolean;\n showEvents: boolean;\n showCompleted: boolean;\n showSubtasks: boolean;\n showNonWorking: boolean;\n showWeekNumbers: boolean;\n /* Dev switch, not in the app's menu: stands in for the system setting\n show_task_id_mode — on is \"show_sequential_id\" (the task's #number),\n off is \"off\". */\n showTaskIds: boolean;\n}\n\n/** A task, a subtask or an event, placed on the grid's day axis. */\nexport interface GridEntry {\n key: string;\n kind: \"task\" | \"subtask\" | \"event\";\n name: string;\n startDay: number;\n endDay: number;\n /** Project colour for a task or subtask, calendar colour for an event\n (data colours). */\n color: string;\n completed: boolean;\n important: boolean;\n /** Event only: is the logged user taking part (medium name) or not (grey). */\n participant: boolean;\n /** Task only: the \"#ID\" it shows (the Tasks tab's show_id mode). */\n taskNumber?: number;\n /** Event only: the Meeting Link, when the event has one. */\n meetingUrl?: string;\n /** Event only: minutes after midnight; undefined on an all-day event. */\n startMinute?: number;\n endMinute?: number;\n}\n\nexport const isTimed = (entry: GridEntry): boolean =>\n entry.startMinute !== undefined;\n\n/** On one day: events, then tasks, then subtasks. */\nexport const KIND_RANK: Record<GridEntry[\"kind\"], number> = {\n event: 0,\n task: 1,\n subtask: 2,\n};\n\n/** One entry inside one row of days, clamped to it and given a lane. */\nexport interface LaneSegment extends GridEntry {\n from: number;\n to: number;\n continuesPrior: boolean;\n continuesAfter: boolean;\n lane: number;\n}\n\n/**\n * The order rbc's month row packs in, cut to the row: earlier first, then —\n * on the same day — events, tasks, then subtasks, all-day before timed, longer before\n * shorter, earlier time first. Events lead a cell without starving the tasks\n * that began earlier in the week of a lane.\n */\nexport const segmentOrder = (a: LaneSegment, b: LaneSegment): number => {\n if (a.from !== b.from) return a.from - b.from;\n if (a.kind !== b.kind) return KIND_RANK[a.kind] - KIND_RANK[b.kind];\n if (isTimed(a) !== isTimed(b)) return isTimed(a) ? 1 : -1;\n const lengthDifference = b.to - b.from - (a.to - a.from);\n if (lengthDifference !== 0) return lengthDifference;\n return (a.startMinute ?? 0) - (b.startMinute ?? 0);\n};\n\n/** Lanes per row, not per day, so a span keeps its lane across the week. */\nexport const assignLanes = (\n entries: GridEntry[],\n firstDay: number,\n dayCount: number\n): LaneSegment[] => {\n const lastDay = firstDay + dayCount - 1;\n const laneEnds: number[] = [];\n return entries\n .filter((entry) => entry.endDay >= firstDay && entry.startDay <= lastDay)\n .map((entry) => ({\n ...entry,\n from: Math.max(entry.startDay, firstDay),\n to: Math.min(entry.endDay, lastDay),\n continuesPrior: entry.startDay < firstDay,\n continuesAfter: entry.endDay > lastDay,\n lane: 0,\n }))\n .sort(segmentOrder)\n .map((segment) => {\n let lane = laneEnds.findIndex((end) => end < segment.from);\n if (lane === -1) lane = laneEnds.length;\n laneEnds[lane] = segment.to;\n return { ...segment, lane };\n });\n};\n\n/* ================================================================== */\n/* Geometry */\n/* ================================================================== */\n\n/** Month: week-number gutter (.show-week-number in calendar.less). */\nexport const WEEK_NUMBER_GUTTER = 50;\n/** Week / day: the hour gutter (.rbc-time-gutter). */\nexport const TIME_GUTTER = 96;\n/** A lane, as on the Calendar page: the 22px pill, its 2px margin-bottom\n (.rbc-event) and the segment's 1px bottom padding (.rbc-row-segment).\n Tasks and subtasks take the same lane, so every row lines up. */\nexport const LANE_STEP = 25;\n/** Month cells show four lanes, then \"+N more\" (ProjectCalendar.jsx). */\nexport const MONTH_VISIBLE_LANES = 4;\n/** The week / day All Day row shows ten lanes, then \"+N more\" (rbc's\n allDayMaxRows, which the Calendar page sets to 2 for events alone). */\nexport const ALL_DAY_VISIBLE_LANES = 10;\n/** 24px date line + four lanes + the 20px \"+N more\" line. */\nexport const MONTH_ROW_MIN_HEIGHT = 24 + MONTH_VISIBLE_LANES * LANE_STEP + 20;\n/** The Calendar page's hour: 73px per two-hour slot group, rounded down. */\nexport const HOUR_HEIGHT = 36;\n/** The hour the week and day grids open on (calendar_starting_hours). */\nexport const SCROLL_TO_HOUR = 7;\nexport const CALENDAR_TOOLBAR_HEIGHT = 40;\n\n/* ================================================================== */\n/* Styles */\n/* ================================================================== */\n\n/* The My Work tab bar (MyWorkPageShell.jsx): DS Header, Nav of Body2 items,\n section controls and the add button on the right. */\nexport const StyledMyWorkTabs = styled(Header)`\n justify-content: space-between;\n align-items: center;\n margin-bottom: 16px;\n min-height: 64px;\n flex-shrink: 0;\n\n .section-controls {\n display: flex;\n align-items: center;\n flex-shrink: 0;\n gap: 4px;\n }\n\n .filter-button {\n display: flex;\n align-items: center;\n gap: 6px;\n }\n\n .tab-label {\n display: flex;\n align-items: center;\n gap: 6px;\n }\n\n .c-nav__item--active .tab-text {\n color: var(--color-primary);\n }\n\n /* PageControlGroup's divider: 1px, 20px tall, theme-300. */\n .control-divider {\n width: 1px;\n height: 20px;\n margin: 0 12px 0 8px;\n background-color: var(--color-theme-300);\n }\n`;\n\nexport const StyledMyCalendarPaper = styled(StyledPagePaper)`\n display: flex;\n flex-direction: column;\n padding: 0;\n overflow: hidden;\n\n /* Day view from lg up: down to the viewport's bottom, less the page's own\n bottom padding (--fill-height, measured), as the Calendar page's paper. */\n @media (min-width: ${LG}) {\n &.fill-height {\n flex: none;\n height: var(--fill-height);\n }\n }\n`;\n\n/* ProjectCalendarToolbar.jsx: 40px, border-bottom, 13px left padding. */\nexport const StyledMyCalendarToolbar = styled.div`\n box-sizing: border-box;\n display: flex;\n flex-shrink: 0;\n align-items: center;\n gap: 4px;\n height: ${CALENDAR_TOOLBAR_HEIGHT}px;\n padding: 0 4px 0 13px;\n background-color: var(--page-paper-main);\n border-bottom: 1px solid var(--border-primary);\n\n .period-label {\n margin: 0 8px 0 4px;\n white-space: nowrap;\n }\n\n .toolbar-spacer {\n flex: 1 1 auto;\n }\n\n .view-switch {\n display: flex;\n gap: 2px;\n }\n\n .options-target {\n display: flex;\n margin-left: 4px;\n }\n`;\n\n/* A row of day headers: Month's weekday names, Week/Day's 64px date cells. */\nexport const StyledDayHeaders = styled.div`\n display: flex;\n flex-shrink: 0;\n background-color: var(--page-paper-main);\n border-bottom: 1px solid var(--border-primary);\n\n .header-gutter {\n flex-shrink: 0;\n }\n\n .header-cell {\n box-sizing: border-box;\n flex: 1 1 0;\n min-width: 0;\n height: 40px;\n display: flex;\n align-items: center;\n justify-content: center;\n border-left: 1px solid var(--border-primary);\n }\n\n .header-cell.non-working {\n background-color: var(--color-theme-200);\n }\n\n /* The project calendar's WeekDayHeader.jsx: a 64px cell set flush left —\n the weekday in Body 2 bold, the date in Caption 1 medium, then the 4px\n due bar 6px below. Today takes the primary tint and its text the primary\n colour; a non-working day (not today) the theme-200 grey. */\n &.dated .header-cell {\n height: 64px;\n flex-direction: column;\n align-items: stretch;\n justify-content: flex-start;\n padding: 8px 8px 0;\n }\n\n &.dated .header-cell.today {\n background-color: var(--color-primary-300);\n }\n\n .header-line {\n display: block;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n /* Full names from lg up, short ones below (tw:hidden tw:lg:inline). */\n .day-full {\n display: none;\n }\n\n @media (min-width: ${LG}) {\n .day-full {\n display: inline;\n }\n\n .day-short {\n display: none;\n }\n }\n\n /* WeekDueBar.jsx: a 4px rounded track, done part in theme-700, red when an\n earlier day still has work open. A day with nothing due keeps the room. */\n .due-bar {\n display: block;\n height: 4px;\n margin-top: 6px;\n border-radius: var(--ac-br-4);\n overflow: hidden;\n background-color: ${DUE_BAR_TRACK};\n }\n\n .due-bar.empty {\n background-color: transparent;\n }\n\n .due-bar-fill {\n display: block;\n height: 100%;\n background-color: var(--color-theme-700);\n }\n\n .due-bar-fill.overdue {\n background-color: var(--red-alert);\n }\n`;\n\n/* One row of days with lanes: a month week, or week/day's All Day row. */\nexport const StyledLaneRow = styled.div`\n display: flex;\n flex-shrink: 0;\n border-bottom: 1px solid var(--border-primary);\n\n /* Every week the same height: an equal share of the paper (basis 0, not\n the content), never less than the tallest a week can get — the date\n line, four lanes and \"+N more\" — so no week outgrows the others. */\n &.month-row {\n flex: 1 0 0;\n min-height: ${MONTH_ROW_MIN_HEIGHT}px;\n }\n\n .row-gutter {\n box-sizing: border-box;\n flex-shrink: 0;\n display: flex;\n align-items: flex-start;\n justify-content: center;\n padding-top: 6px;\n }\n\n .row-body {\n position: relative;\n flex: 1 1 0;\n min-width: 0;\n }\n\n .day-backgrounds {\n position: absolute;\n inset: 0;\n display: flex;\n }\n\n .day-bg {\n box-sizing: border-box;\n flex: 1 1 0;\n border-left: 1px solid var(--border-primary);\n }\n\n .day-bg.off-range {\n background-color: var(--color-theme-200);\n }\n\n .day-bg.today {\n background-color: var(--color-primary-300);\n }\n\n .day-bg.non-working {\n background-image: ${NON_WORKING_HATCH};\n }\n\n .row-content {\n position: relative;\n height: 100%;\n }\n\n /* MonthDateHeader.jsx: 24px, day-off name left, day number right. */\n .date-line {\n display: flex;\n }\n\n .date-cell {\n box-sizing: border-box;\n flex: 1 1 0;\n min-width: 0;\n height: 24px;\n display: flex;\n align-items: baseline;\n justify-content: space-between;\n gap: 4px;\n padding: 4px 8px 2px;\n }\n\n .day-off-name {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .lane-area {\n position: relative;\n }\n\n &.all-day-row .lane-area {\n margin: 4px 0;\n }\n`;\n\n/* The pill both screens draw (calendar.less .rbc-event): the item's colour\n mixed into the paper, a transparent border, 4px radius. Every\n pill — event, task, subtask — is the Calendar page's 22px: the 20px\n .month-event content and its 1px borders. (The project calendar's task pill\n is 20px; here it takes the Calendar page's height so the rows line up.) */\nexport const StyledPill = styled.div`\n box-sizing: border-box;\n position: absolute;\n height: 22px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 4px;\n padding: 0 4px;\n border-radius: 4px;\n border-style: solid;\n border-width: 1px 1px 1px 3px;\n border-color: transparent;\n background-color: light-dark(\n color-mix(\n in srgb,\n var(--event-color, var(--color-theme-500)) 40%,\n var(--page-paper-main)\n ),\n color-mix(\n in srgb,\n var(--event-color, var(--color-theme-500)) 38%,\n var(--page-paper-main)\n )\n );\n cursor: pointer;\n overflow: hidden;\n transition: padding 0.2s ease;\n\n &.completed {\n opacity: 0.4;\n }\n\n /* calendar.less: a resizable item's content steps 8px in from each end on\n hover, clear of the resize handles. */\n &.resizable:hover {\n padding-left: 12px;\n padding-right: 12px;\n }\n\n /* .rbc-addons-dnd-resize-ew-icon: a 10px double rule at each end, shown on\n hover. Drawn, not wired. */\n .resize-handle {\n box-sizing: border-box;\n position: absolute;\n top: 50%;\n display: none;\n height: 10px;\n border-left: 3px double var(--border-primary);\n transform: translateY(-50%);\n cursor: ew-resize;\n }\n\n .resize-handle.start {\n left: 4px;\n }\n\n .resize-handle.end {\n right: 4px;\n }\n\n &:hover .resize-handle {\n display: block;\n }\n\n &.continues-prior {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n border-left-width: 1px;\n border-left-style: dashed;\n border-left-color: var(--event-color);\n }\n\n &.continues-after {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n border-right-style: dashed;\n border-right-color: var(--event-color);\n }\n\n /* A subtask is the project calendar's subtask line (MonthPill.jsx): no\n pill, the circle in the project colour and the name as plain text. */\n &.subtask {\n justify-content: flex-start;\n padding: 0 2px;\n border: none;\n background-color: transparent;\n }\n\n /* The event's calendar glyph and name, ahead of the start time. */\n .pill-lead {\n display: flex;\n align-items: center;\n gap: 4px;\n min-width: 0;\n }\n\n .pill-name {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .pill-time {\n flex-shrink: 0;\n }\n\n .meeting-icon {\n display: flex;\n flex-shrink: 0;\n }\n`;\n\n/* ds-exception: the app's \"+N more\" (calendar.less .rbc-show-more) and the\n week number are bare 12px text, not a button shape; DS Button cannot be\n bare text at that size. The text itself is Caption1. */\nexport const StyledTextTrigger = styled.div`\n display: inline-flex;\n align-items: center;\n height: 20px;\n padding: 0 6px;\n border-radius: 4px;\n cursor: pointer;\n transition: background-color ${TRANSITION};\n\n &:hover {\n background-color: var(--color-theme-200);\n }\n`;\n\n/* The hour grid (week / day): gutter labels, hour lines, timed events. */\nexport const StyledHourGrid = styled.div`\n flex: 1 1 auto;\n min-height: 320px;\n height: calc(100vh - 360px);\n overflow-y: auto;\n\n .time-canvas {\n position: relative;\n display: flex;\n height: ${24 * HOUR_HEIGHT}px;\n }\n\n .time-gutter {\n flex-shrink: 0;\n position: relative;\n }\n\n .hour-label {\n position: absolute;\n right: 0;\n left: 0;\n padding: 0 5px;\n text-align: right;\n transform: translateY(-50%);\n }\n\n .time-columns {\n position: relative;\n flex: 1 1 0;\n display: flex;\n min-width: 0;\n }\n\n .time-column {\n box-sizing: border-box;\n position: relative;\n flex: 1 1 0;\n min-width: 0;\n border-left: 1px solid var(--border-primary);\n background-image: repeating-linear-gradient(\n to bottom,\n transparent 0,\n transparent ${HOUR_HEIGHT - 1}px,\n var(--border-primary) ${HOUR_HEIGHT - 1}px,\n var(--border-primary) ${HOUR_HEIGHT}px\n );\n }\n\n /* Today takes the primary tint it has in the All Day row and the month —\n never theme-200, which is the non-working days' grey. */\n .time-column.today {\n background-color: var(--color-primary-300);\n }\n\n .time-column.non-working::before {\n content: \"\";\n position: absolute;\n inset: 0;\n background-image: ${NON_WORKING_HATCH};\n pointer-events: none;\n }\n\n /* calendar.less: today's now-line, 2px in the primary colour. */\n .now-line {\n position: absolute;\n left: 0;\n right: 0;\n height: 2px;\n background-color: var(--color-primary);\n z-index: 2;\n }\n`;\n\n/* DayEvent.jsx: the timed event box — name, then \"start – end\". */\nexport const StyledTimedEvent = styled.div`\n box-sizing: border-box;\n position: absolute;\n display: flex;\n flex-direction: column;\n min-height: 20px;\n padding: 3px 4px;\n border-radius: 4px;\n border-style: solid;\n border-width: 1px 1px 1px 3px;\n border-color: transparent;\n background-color: light-dark(\n color-mix(\n in srgb,\n var(--event-color, var(--color-theme-500)) 40%,\n var(--page-paper-main)\n ),\n color-mix(\n in srgb,\n var(--event-color, var(--color-theme-500)) 38%,\n var(--page-paper-main)\n )\n );\n box-shadow: 0 0 0 1px var(--page-paper-main);\n overflow: hidden;\n cursor: pointer;\n z-index: 1;\n transition: padding 0.2s ease;\n\n /* calendar.less (.rbc-time-content, resizable.with-drag): the content\n steps 8px in from top and bottom on hover, clear of the handles. */\n &:not(.compact):hover {\n padding-top: 11px;\n padding-bottom: 11px;\n }\n\n /* .with-drag .rbc-addons-dnd-resize-ns-icon: a 24px double rule 6px in\n from the top and the bottom, shown on hover. Drawn, not wired. */\n .resize-handle {\n box-sizing: border-box;\n position: absolute;\n left: 50%;\n display: none;\n width: 24px;\n height: 2px;\n border-top: 3px double var(--border-primary);\n transform: translateX(-50%);\n cursor: ns-resize;\n }\n\n .resize-handle.top {\n top: 6px;\n }\n\n .resize-handle.bottom {\n bottom: 6px;\n }\n\n /* A box too short for the name and two handles shows neither handle. */\n &:not(.compact):hover .resize-handle {\n display: block;\n }\n\n /* Under 36px there is room for the name only (DayEvent.jsx). */\n &.compact {\n justify-content: center;\n padding-top: 0;\n padding-bottom: 0;\n }\n\n &.compact .event-time {\n display: none;\n }\n\n .event-name-line {\n display: flex;\n align-items: center;\n gap: 4px;\n min-width: 0;\n }\n\n .event-name-line .meeting-icon {\n display: flex;\n flex-shrink: 0;\n }\n\n .event-line {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n`;\n\n/* The day view: grid at 40%, the tasks agenda at 60% from lg up. */\nexport const StyledDaySplit = styled.div`\n display: flex;\n flex-direction: column;\n flex: 1 1 auto;\n min-height: 0;\n\n .day-grid {\n display: flex;\n flex-direction: column;\n min-width: 0;\n }\n\n .day-agenda {\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n gap: 20px;\n min-width: 0;\n padding: 20px 24px 32px;\n border-top: 1px solid var(--border-primary);\n }\n\n /* Agenda/CalendarTasks.jsx: \"Tasks\" and the add button above the list. */\n .agenda-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n }\n\n /* The grip shows only where the two sit side by side. */\n .day-resizer {\n display: none;\n }\n\n /* Side by side from lg up: the grid takes the width the user dragged it to\n (--day-grid-width), else the Calendar page's 40%; the agenda the rest. */\n @media (min-width: ${LG}) {\n flex-direction: row;\n\n /* As the Calendar page: the paper holds the viewport's height and each\n side scrolls on its own — the hour grid in the calendar, the list in\n the agenda. */\n .day-grid {\n position: relative;\n flex-shrink: 0;\n min-height: 0;\n width: var(--day-grid-width, 40%);\n }\n\n .day-grid .hour-grid {\n flex: 1 1 0;\n min-height: 0;\n height: auto;\n }\n\n .day-agenda {\n flex: 1 1 0;\n min-height: 0;\n overflow-y: auto;\n border-top: none;\n border-left: 1px solid var(--border-primary);\n }\n\n .day-resizer {\n display: block;\n }\n }\n`;\n\n/* The day view's grid, resized like the Timeline outline: the same bounds as\n every resizable panel in the product (260–780px). */\nexport const DAY_GRID_MIN_WIDTH = 260;\nexport const DAY_GRID_MAX_WIDTH = 780;\nexport const DAY_GRID_WIDTH_STORAGE_KEY =\n \"presentation.myWorkCalendar.dayGridWidth\";\n\nexport const StyledMyOptionsList = styled(List)`\n padding: 8px 0;\n`;\n\n/* DS Label paired with the DS Checkbox by `htmlFor` — one change per press. */\nexport const StyledMyOptionsItem = styled(ListItem)`\n && {\n justify-content: space-between;\n align-items: center;\n gap: 12px;\n min-height: 28px;\n cursor: pointer;\n }\n\n .option-label {\n flex: 1;\n min-width: 0;\n cursor: pointer;\n }\n`;\n\n/* ================================================================== */\n/* Pieces */\n/* ================================================================== */\n\nexport const percentOf = (part: number, whole: number): string =>\n `${(part / whole) * 100}%`;\n\nexport interface PillProps {\n segment: LaneSegment;\n style: React.CSSProperties;\n /** The task's #number ahead of its name (WeekTaskNumber). */\n showTaskId?: boolean;\n}\n\n/**\n * Marks an event apart from a task at a glance: the DS calendar icon at 12px,\n * in the event's calendar colour (a data colour, through style, as the\n * project calendar tints its subtask glyph).\n */\nexport const EventGlyph = ({ color }: { color: string }): ReactElement => (\n <CalendarIcon\n width={12}\n height={12}\n style={{ fill: color, flexShrink: 0 }}\n aria-hidden\n />\n);\n\nEventGlyph.displayName = \"EventGlyph\";\n\nexport type MeetingService = \"zoom\" | \"meet\" | \"teams\" | \"webex\";\n\nexport const MEETING_SERVICE_NAMES: Record<MeetingService, string> = {\n zoom: \"Zoom\",\n meet: \"Google Meet\",\n teams: \"Microsoft Teams\",\n webex: \"Webex\",\n};\n\n/** Which service a Meeting Link points at, read off its host at render time;\n null for a link to anything else. */\nexport const meetingServiceOf = (url: string): MeetingService | null => {\n let host: string;\n try {\n host = new URL(url).hostname.toLowerCase();\n } catch {\n return null;\n }\n const on = (domain: string): boolean =>\n host === domain || host.endsWith(`.${domain}`);\n if (on(\"zoom.us\")) return \"zoom\";\n if (on(\"meet.google.com\")) return \"meet\";\n if (on(\"teams.microsoft.com\") || on(\"teams.live.com\")) return \"teams\";\n if (on(\"webex.com\")) return \"webex\";\n return null;\n};\n\n/* ds-exception: the DS has no meeting-service logos; these simplified 12px\n marks live in this story only. Brand colours are data, hardcoded. */\nexport const MEETING_LOGOS: Record<MeetingService, ReactElement> = {\n zoom: (\n <svg width={12} height={12} viewBox=\"0 0 12 12\" aria-hidden>\n <rect width={12} height={12} rx={3} fill=\"#2D8CFF\" />\n <rect x={2.25} y={4} width={5} height={4} rx={1} fill=\"#FFFFFF\" />\n <path d=\"M7.75 5.4 9.75 4.1v3.8L7.75 6.6Z\" fill=\"#FFFFFF\" />\n </svg>\n ),\n meet: (\n <svg width={12} height={12} viewBox=\"0 0 12 12\" aria-hidden>\n <path d=\"M1 4.5 3.5 2H8v3.5H1Z\" fill=\"#00AC47\" />\n <path d=\"M1 4.5h3V10H2a1 1 0 0 1-1-1Z\" fill=\"#2684FC\" />\n <path d=\"M4 5.5h4V9a1 1 0 0 1-1 1H4Z\" fill=\"#00832D\" />\n <path d=\"M8 5 11 2.75v6.5L8 7Z\" fill=\"#00AC47\" />\n <path d=\"M1 4.5 3.5 2v2.5Z\" fill=\"#EA4335\" />\n </svg>\n ),\n teams: (\n <svg width={12} height={12} viewBox=\"0 0 12 12\" aria-hidden>\n <circle cx={9.25} cy={3.25} r={1.75} fill=\"#7B83EB\" />\n <rect x={6.5} y={5.5} width={5} height={4.5} rx={1.25} fill=\"#7B83EB\" />\n <rect x={0.5} y={2.5} width={7.5} height={7.5} rx={1.25} fill=\"#5059C9\" />\n <path d=\"M2.4 4.6h3.7v1H4.75v3.1h-1.1V5.6H2.4Z\" fill=\"#FFFFFF\" />\n </svg>\n ),\n webex: (\n <svg width={12} height={12} viewBox=\"0 0 12 12\" aria-hidden>\n <circle cx={6} cy={6} r={5.5} fill=\"#07C160\" />\n <circle cx={6} cy={6} r={5.5} fill=\"#00BCEB\" fillOpacity={0.65} />\n <circle\n cx={6}\n cy={6}\n r={2.25}\n fill=\"none\"\n stroke=\"#FFFFFF\"\n strokeWidth={1.5}\n />\n </svg>\n ),\n};\n\n/** The meeting service's logo, with its name on hover; nothing when the link\n is not a known service. */\nexport const MeetingServiceIcon = ({\n url,\n}: {\n url: string;\n}): ReactElement | null => {\n const service = meetingServiceOf(url);\n if (service === null) return null;\n return (\n <Tooltip title={`${MEETING_SERVICE_NAMES[service]} meeting`}>\n <span className=\"meeting-icon\">{MEETING_LOGOS[service]}</span>\n </Tooltip>\n );\n};\n\nMeetingServiceIcon.displayName = \"MeetingServiceIcon\";\n\n/**\n * A task is MonthPill.jsx: the name in Caption 1, red when important, struck\n * through and faded when completed. An event is MonthEvent.jsx: the name in\n * Caption 1 medium (tertiary when the user is not a participant) and the\n * start time on the right when it is timed.\n */\nexport const CalendarPill = ({\n segment,\n style,\n showTaskId = false,\n}: PillProps): ReactElement => {\n /* Tasks and events resize; a subtask carries one date and does not. */\n const resizable = segment.kind !== \"subtask\";\n const className = [\n segment.kind === \"subtask\" ? \"subtask\" : \"\",\n resizable ? \"resizable\" : \"\",\n segment.completed ? \"completed\" : \"\",\n segment.continuesPrior ? \"continues-prior\" : \"\",\n segment.continuesAfter ? \"continues-after\" : \"\",\n ]\n .filter(Boolean)\n .join(\" \");\n\n /* No tooltip with the name: the pill already shows it. */\n return (\n <StyledPill\n className={className || undefined}\n style={\n { ...style, \"--event-color\": segment.color } as React.CSSProperties\n }\n >\n {segment.kind === \"subtask\" ? (\n <>\n {/* Tinted through style, as every icon fill here is. */}\n <CheckboxCircleBlankIcon\n width={14}\n height={14}\n style={{ fill: segment.color, flexShrink: 0 }}\n aria-hidden\n />\n <Caption1\n className=\"pill-name\"\n decoration={segment.completed ? \"line-through\" : undefined}\n >\n {segment.name}\n </Caption1>\n </>\n ) : segment.kind === \"task\" ? (\n <span className=\"pill-lead\">\n {/* WeekTaskNumber: the list row's id, greyed so the name leads. */}\n {showTaskId && segment.taskNumber !== undefined ? (\n <Caption1 color=\"tertiary\" className=\"pill-time\">\n {`#${segment.taskNumber}`}\n </Caption1>\n ) : null}\n <Caption1\n className=\"pill-name\"\n color={segment.important ? \"alert\" : \"primary\"}\n decoration={segment.completed ? \"line-through\" : undefined}\n >\n {segment.name}\n </Caption1>\n </span>\n ) : (\n <>\n <span className=\"pill-lead\">\n <EventGlyph color={segment.color} />\n {/* The service logo between the calendar glyph and the name,\n whenever the event has a Meeting Link. */}\n {segment.meetingUrl ? (\n <MeetingServiceIcon url={segment.meetingUrl} />\n ) : null}\n <Typography\n variant=\"Caption 1\"\n weight=\"medium\"\n color={segment.participant ? \"primary\" : \"tertiary\"}\n className=\"pill-name\"\n >\n {segment.name}\n </Typography>\n </span>\n {segment.startMinute !== undefined ? (\n <Caption1 color=\"secondary\" className=\"pill-time\">\n {formatTimeOfDay(segment.startMinute)}\n </Caption1>\n ) : null}\n </>\n )}\n {/* rbc draws an end's anchor only where the item really ends, not\n where the row cuts it. */}\n {resizable && !segment.continuesPrior ? (\n <span className=\"resize-handle start\" />\n ) : null}\n {resizable && !segment.continuesAfter ? (\n <span className=\"resize-handle end\" />\n ) : null}\n </StyledPill>\n );\n};\n\nCalendarPill.displayName = \"CalendarPill\";\n\n/**\n * A timed event in the hour grid (DayEvent.jsx with the agenda's leading\n * glyph): the name, then \"start – end\". The caller places it; under 36px\n * there is room for the name only.\n */\nexport const TimedEventBox = ({\n entry,\n style,\n compact,\n className,\n}: {\n entry: GridEntry;\n style: React.CSSProperties;\n compact: boolean;\n className?: string;\n}): ReactElement => {\n const start = entry.startMinute ?? 0;\n const end = entry.endMinute ?? start;\n return (\n <StyledTimedEvent\n className={[compact ? \"compact\" : \"\", className ?? \"\"]\n .filter(Boolean)\n .join(\" \")}\n style={{ ...style, [\"--event-color\" as string]: entry.color }}\n >\n <span className=\"event-name-line\">\n <EventGlyph color={entry.color} />\n {entry.meetingUrl ? (\n <MeetingServiceIcon url={entry.meetingUrl} />\n ) : null}\n <Typography\n variant=\"Caption 1\"\n weight=\"medium\"\n color={entry.participant ? \"primary\" : \"tertiary\"}\n className=\"event-line\"\n >\n {entry.name}\n </Typography>\n </span>\n <Caption1 color=\"secondary\" className=\"event-line event-time\">\n {`${formatTimeOfDay(start)} – ${formatTimeOfDay(end)}`}\n </Caption1>\n <span className=\"resize-handle top\" />\n <span className=\"resize-handle bottom\" />\n </StyledTimedEvent>\n );\n};\n\nTimedEventBox.displayName = \"TimedEventBox\";\n\nexport interface LaneRowProps {\n days: number[];\n entries: GridEntry[];\n /** The day the today tint goes on. */\n today: number;\n /** Weekend or global day off, when the view shows non-working days. */\n isNonWorking: (day: number) => boolean;\n /** Month: the day-off name on a date line, when shown. */\n dayOffNameOf?: (day: number) => string | undefined;\n gutterWidth: number;\n gutter: ReactNode;\n /** Draws a segment instead of the default CalendarPill; null keeps the\n default. */\n renderSegment?: (\n segment: LaneSegment,\n style: React.CSSProperties\n ) => ReactNode;\n /** Month: the month shown, so other days read as off-range, and dates. */\n month?: number;\n /** Lanes shown before \"+N more\": four in a month cell, ten in the All Day\n row. */\n maxLanes?: number;\n /** \"+N more\" opens the day view of the day it sits under. */\n onShowMore?: (day: number) => void;\n /** Task pills carry their #number, as the project calendar's week does.\n The month shows it too — a departure from the app's month, which shows\n the name alone. */\n showTaskIds?: boolean;\n className: string;\n}\n\nexport const LaneRow = ({\n days,\n entries,\n today,\n isNonWorking,\n dayOffNameOf,\n gutterWidth,\n gutter,\n renderSegment,\n month,\n maxLanes,\n onShowMore,\n showTaskIds = false,\n className,\n}: LaneRowProps): ReactElement => {\n const firstDay = days[0];\n const segments = useMemo(\n () => assignLanes(entries, firstDay, days.length),\n [entries, firstDay, days.length]\n );\n const visible =\n maxLanes === undefined\n ? segments\n : segments.filter((segment) => segment.lane < maxLanes);\n const hidden =\n maxLanes === undefined\n ? []\n : segments.filter((segment) => segment.lane >= maxLanes);\n const laneCount = segments.reduce(\n (count, segment) => Math.max(count, segment.lane + 1),\n 0\n );\n const shownLanes =\n maxLanes === undefined ? laneCount : Math.min(laneCount, maxLanes);\n const laneAreaHeight =\n Math.max(shownLanes, 1) * LANE_STEP + (hidden.length > 0 ? 20 : 0);\n\n return (\n <StyledLaneRow className={className}>\n <div className=\"row-gutter\" style={{ width: gutterWidth }}>\n {gutter}\n </div>\n <div className=\"row-body\">\n <div className=\"day-backgrounds\">\n {days.map((day) => {\n const classes = [\n \"day-bg\",\n month !== undefined && toDate(day).getUTCMonth() + 1 !== month\n ? \"off-range\"\n : \"\",\n day === today ? \"today\" : \"\",\n isNonWorking(day) ? \"non-working\" : \"\",\n ]\n .filter(Boolean)\n .join(\" \");\n return <div className={classes} key={day} />;\n })}\n </div>\n <div className=\"row-content\">\n {month !== undefined ? (\n <div className=\"date-line\">\n {days.map((day) => (\n <div className=\"date-cell\" key={day}>\n <Caption1 color=\"secondary\" className=\"day-off-name\">\n {dayOffNameOf?.(day) ?? \"\"}\n </Caption1>\n <Caption1 color=\"secondary\">\n {String(toDate(day).getUTCDate()).padStart(2, \"0\")}\n </Caption1>\n </div>\n ))}\n </div>\n ) : null}\n <div className=\"lane-area\" style={{ height: laneAreaHeight }}>\n {visible.map((segment) => {\n const style: React.CSSProperties = {\n /* 2px of air either side (.rbc-row-segment px-[2px]). */\n left: `calc(${percentOf(\n segment.from - firstDay,\n days.length\n )} + 2px)`,\n width: `calc(${percentOf(\n segment.to - segment.from + 1,\n days.length\n )} - 4px)`,\n top: segment.lane * LANE_STEP,\n };\n const custom = renderSegment?.(segment, style);\n return custom ? (\n <React.Fragment key={segment.key}>{custom}</React.Fragment>\n ) : (\n <CalendarPill\n key={segment.key}\n segment={segment}\n showTaskId={showTaskIds}\n style={style}\n />\n );\n })}\n {days.map((day) => {\n const count = hidden.filter(\n (segment) => segment.from <= day && segment.to >= day\n ).length;\n if (count === 0) return null;\n return (\n <Tooltip title=\"Show this day\" key={day}>\n <StyledTextTrigger\n style={{\n position: \"absolute\",\n left: percentOf(day - firstDay, days.length),\n top: shownLanes * LANE_STEP,\n }}\n onClick={() => onShowMore?.(day)}\n >\n <Caption1 color=\"secondary\">{`+${count} more`}</Caption1>\n </StyledTextTrigger>\n </Tooltip>\n );\n })}\n </div>\n </div>\n </div>\n </StyledLaneRow>\n );\n};\n\nLaneRow.displayName = \"LaneRow\";\n\n/** Week / day header cells, as the project calendar's WeekDayHeader; the\n bar under the date is the caller's (WeekDueBar on the Agenda). */\nexport const DatedHeaders = ({\n days,\n today: todayDay,\n isNonWorking,\n renderBar,\n}: {\n days: number[];\n today: number;\n isNonWorking: (day: number) => boolean;\n renderBar: (day: number) => ReactNode;\n}): ReactElement => (\n <StyledDayHeaders className=\"dated\">\n <div className=\"header-gutter\" style={{ width: TIME_GUTTER }} />\n {days.map((day) => {\n const today = day === todayDay;\n const nonWorking = !today && isNonWorking(day);\n const date = toDate(day);\n const classes = [\n \"header-cell\",\n today ? \"today\" : \"\",\n nonWorking ? \"non-working\" : \"\",\n ]\n .filter(Boolean)\n .join(\" \");\n return (\n <div\n className={classes}\n key={day}\n aria-current={today ? \"date\" : undefined}\n >\n <Body2\n weight=\"bold\"\n color={today ? \"theme-primary\" : \"primary\"}\n className=\"header-line\"\n >\n <span className=\"day-full\">{longDayOf(day)}</span>\n <span className=\"day-short\">{shortDayOf(day)}</span>\n </Body2>\n {/* Caption1 offers regular and bold only; medium goes through the\n base Typography. */}\n <Typography\n variant=\"Caption 1\"\n weight=\"medium\"\n color={today ? \"theme-primary\" : \"secondary\"}\n className=\"header-line\"\n >\n <span className=\"day-full\">{`${\n SHORT_MONTHS[date.getUTCMonth()]\n } ${date.getUTCDate()}`}</span>\n <span className=\"day-short\">{date.getUTCDate()}</span>\n </Typography>\n {renderBar(day)}\n </div>\n );\n })}\n </StyledDayHeaders>\n);\n\nDatedHeaders.displayName = \"DatedHeaders\";\n\nexport interface Placed<T> {\n item: T;\n column: number;\n columns: number;\n}\n\n/** Side-by-side columns for overlapping timed items in one day\n (react-big-calendar's overlap layout). */\nexport const placeSideBySide = <T,>(\n items: T[],\n startOf: (item: T) => number,\n endOf: (item: T) => number\n): Placed<T>[] => {\n const sorted = [...items].sort((a, b) => startOf(a) - startOf(b));\n const columnEnds: number[] = [];\n const placed = sorted.map((item) => {\n let column = columnEnds.findIndex((end) => end <= startOf(item));\n if (column === -1) column = columnEnds.length;\n columnEnds[column] = endOf(item);\n return { item, column, columns: 1 };\n });\n return placed.map((entry) => ({\n ...entry,\n columns: Math.max(\n 1,\n ...placed\n .filter(\n (other) =>\n startOf(other.item) < endOf(entry.item) &&\n endOf(other.item) > startOf(entry.item)\n )\n .map((other) => other.column + 1)\n ),\n }));\n};\n\n/* ================================================================== */\n/* Toolbar pieces */\n/* ================================================================== */\n\nexport type CalendarMode = \"day\" | \"week\" | \"month\";\n\nexport const MY_CALENDAR_OPTION_ROWS: {\n key: keyof ViewOptions;\n label: string;\n}[] = [\n { key: \"showTasks\", label: \"Show Tasks\" },\n { key: \"showEvents\", label: \"Show Events\" },\n { key: \"showCompleted\", label: \"Show Completed\" },\n { key: \"showSubtasks\", label: \"Show Subtasks\" },\n { key: \"showNonWorking\", label: \"Show Non-Working Days\" },\n { key: \"showWeekNumbers\", label: \"Show Week Numbers\" },\n];\n\n/* Below their own separator, as the Calendar view story fences off its story\n switches: dev rows, not part of the app's menu. */\nexport const MY_CALENDAR_DEV_ROWS: { key: keyof ViewOptions; label: string }[] =\n [{ key: \"showTaskIds\", label: \"Dev: Show Task IDs\" }];\n\n/** ProjectCalendarOptionsMenu: the gear, 260px, Label + Checkbox rows. */\nexport interface CalendarOptionsAction {\n key: string;\n label: string;\n icon: ReactElement;\n onSelect: () => void;\n}\n\nexport const MyCalendarOptionsMenu = ({\n options,\n onToggle,\n onOpenListSettings,\n actions = [],\n}: {\n options: ViewOptions;\n onToggle: (key: keyof ViewOptions) => void;\n /** Day view only: the day list's List Settings, as on the My Work lists. */\n onOpenListSettings?: () => void;\n /** More settings entries, listed after List Settings. */\n actions?: CalendarOptionsAction[];\n}): ReactElement => {\n const [open, setOpen] = useState(false);\n const close = useCallback(() => setOpen(false), []);\n const settingsActions: CalendarOptionsAction[] = [\n ...(onOpenListSettings\n ? [\n {\n key: \"list-settings\",\n label: \"List Settings\",\n icon: <SettingsIcon />,\n onSelect: onOpenListSettings,\n },\n ]\n : []),\n ...actions,\n ];\n\n return (\n <DrilldownMenu\n open={open}\n onOpen={() => setOpen(true)}\n onClose={close}\n position=\"bottom-end\"\n width={260}\n target={\n <div className=\"options-target\">\n <Tooltip title=\"Calendar Options\">\n <IconButton\n type=\"button\"\n size=\"small\"\n variant=\"text gray\"\n aria-label=\"Calendar Options\"\n active={open}\n >\n <SettingsIcon />\n </IconButton>\n </Tooltip>\n </div>\n }\n >\n {() => (\n <StyledMyOptionsList tabIndex={0}>\n {[...MY_CALENDAR_OPTION_ROWS, ...MY_CALENDAR_DEV_ROWS].map(\n (row, index) => (\n <React.Fragment key={row.key}>\n {/* Tasks / Events are this tab's own rows, then the project\n calendar's, then List Settings (day view), then the dev\n switches. */}\n {row === MY_CALENDAR_DEV_ROWS[0] &&\n settingsActions.length > 0 ? (\n <>\n <ListSeparator />\n {settingsActions.map((action) => (\n <ListItem\n key={action.key}\n onClick={() => {\n close();\n action.onSelect();\n }}\n >\n {action.icon}\n {action.label}\n </ListItem>\n ))}\n </>\n ) : null}\n {index === 2 || row === MY_CALENDAR_DEV_ROWS[0] ? (\n <ListSeparator />\n ) : null}\n <StyledMyOptionsItem>\n <Label\n htmlFor={`my-calendar-option-${row.key}`}\n weight=\"regular\"\n className=\"option-label\"\n >\n {row.label}\n </Label>\n <Checkbox\n id={`my-calendar-option-${row.key}`}\n checked={options[row.key]}\n onChange={() => onToggle(row.key)}\n />\n </StyledMyOptionsItem>\n </React.Fragment>\n )\n )}\n </StyledMyOptionsList>\n )}\n </DrilldownMenu>\n );\n};\n\nMyCalendarOptionsMenu.displayName = \"MyCalendarOptionsMenu\";\n\nexport const MODE_SWITCH: {\n mode: CalendarMode;\n label: string;\n icon: ReactElement;\n}[] = [\n { mode: \"day\", label: \"Day\", icon: <ViewDayIcon /> },\n {\n mode: \"week\",\n label: \"Week\",\n icon: <ViewListIcon style={{ transform: \"rotate(90deg)\" }} />,\n },\n { mode: \"month\", label: \"Month\", icon: <ViewGridIcon /> },\n];\n\nexport type MyWorkTab =\n | \"tasks\"\n | \"timesheet\"\n | \"teams\"\n | \"activity\"\n | \"availability\"\n | \"agenda\";\n\nexport const MY_WORK_TABS: { key: MyWorkTab; label: string }[] = [\n { key: \"tasks\", label: \"Tasks\" },\n { key: \"agenda\", label: \"Agenda\" },\n { key: \"timesheet\", label: \"Timesheet\" },\n { key: \"teams\", label: \"Teams\" },\n { key: \"activity\", label: \"Activity\" },\n { key: \"availability\", label: \"Availability\" },\n];\n\n/* The open-tasks count as a Chip instead of \"Tasks (61)\"; primary-tinted on\n the active tab. */\nexport const TabCountChip = ({\n count,\n active,\n}: {\n count: number;\n active: boolean;\n}): ReactElement => (\n <Chip\n label={`${count}`}\n size=\"small\"\n backgroundColor={\n active\n ? \"color-mix(in srgb, var(--color-primary) 12%, transparent)\"\n : \"color-mix(in srgb, var(--color-theme-300) 60%, transparent)\"\n }\n color={active ? \"var(--color-primary)\" : \"var(--color-theme-700)\"}\n typographyProps={{\n variant: \"Caption 1\",\n weight: \"medium\",\n tabularNums: true,\n }}\n />\n);\n\nexport interface MyWorkTabsProps {\n active: MyWorkTab;\n onSelect: (tab: MyWorkTab) => void;\n tasksCount: number;\n controls?: ReactNode;\n}\n\n/** MyWorkPageShell.jsx's tab bar, with Agenda after Tasks; the calendar\n views live in the Agenda tab's view menu. */\nexport const MyWorkTabs = ({\n active,\n onSelect,\n tasksCount,\n controls,\n}: MyWorkTabsProps): ReactElement => (\n <StyledMyWorkTabs>\n <Nav onSelect={(index) => onSelect(MY_WORK_TABS[index].key)}>\n {MY_WORK_TABS.map((tab) => (\n <Item active={tab.key === active} key={tab.key} name={tab.label}>\n <span className=\"tab-label\">\n <Body2 color=\"secondary\" weight=\"medium\" className=\"tab-text\">\n {tab.label}\n </Body2>\n {tab.key === \"tasks\" ? (\n <TabCountChip count={tasksCount} active={tab.key === active} />\n ) : null}\n </span>\n </Item>\n ))}\n </Nav>\n <div className=\"section-controls\">{controls}</div>\n </StyledMyWorkTabs>\n);\n\nMyWorkTabs.displayName = \"MyWorkTabs\";\n\nexport const periodLabelFor = (mode: CalendarMode, anchor: number): string => {\n const date = toDate(anchor);\n if (mode === \"month\") {\n return `${LONG_MONTHS[date.getUTCMonth()]} ${date.getUTCFullYear()}`;\n }\n if (mode === \"day\") {\n return `${shortDayOf(anchor)}, ${\n SHORT_MONTHS[date.getUTCMonth()]\n } ${date.getUTCDate()}`;\n }\n const monday = mondayOf(anchor);\n const sunday = toDate(monday + 6);\n const mondayDate = toDate(monday);\n const end =\n sunday.getUTCMonth() === mondayDate.getUTCMonth()\n ? `${sunday.getUTCDate()}`\n : `${SHORT_MONTHS[sunday.getUTCMonth()]} ${sunday.getUTCDate()}`;\n return `${\n SHORT_MONTHS[mondayDate.getUTCMonth()]\n } ${mondayDate.getUTCDate()} – ${end}`;\n};\n\nexport const stepAnchor = (\n mode: CalendarMode,\n anchor: number,\n direction: 1 | -1\n): number => {\n if (mode === \"day\") return anchor + direction;\n if (mode === \"week\") return anchor + 7 * direction;\n const date = toDate(anchor);\n return toDayNumber(\n utcMidnight(date.getUTCFullYear(), date.getUTCMonth() + 1 + direction, 1)\n );\n};\n\n/** The page's bottom padding under the paper (StyledPageBody). */\nexport const PAGE_BOTTOM_GAP = 32;\n\n/**\n * The height that takes an element from where it starts down to the\n * viewport's bottom, less the page's bottom padding; null while inactive.\n * The shell lets a page grow with its content, so a paper that must hold the\n * viewport's height measures it.\n */\nexport const useViewportFillHeight = (\n ref: React.RefObject<HTMLElement>,\n active: boolean\n): number | null => {\n const [height, setHeight] = useState<number | null>(null);\n useLayoutEffect(() => {\n if (!active) {\n setHeight(null);\n return undefined;\n }\n const update = (): void => {\n const element = ref.current;\n if (!element) return;\n const top = element.getBoundingClientRect().top;\n setHeight(Math.max(320, window.innerHeight - top - PAGE_BOTTOM_GAP));\n };\n update();\n window.addEventListener(\"resize\", update);\n return () => window.removeEventListener(\"resize\", update);\n }, [ref, active]);\n return height;\n};\n\n/* ================================================================== */\n/* Agenda: Tasks and Calendar views behind one view switch */\n/* ================================================================== */\n\nexport type AgendaView = MyTasksGroupBy | CalendarMode;\n\ntype AgendaMainView = \"project\" | \"dates\" | \"calendar\";\n\nexport const AGENDA_MAIN_VIEWS: ViewSwitcherView[] = [\n {\n id: \"project\",\n label: \"Tasks by Project\",\n icon: <ProjectIcon />,\n },\n {\n id: \"dates\",\n label: \"Tasks by Date\",\n icon: <CalendarDateIcon />,\n },\n {\n id: \"calendar\",\n label: \"Calendar\",\n icon: <CalendarMonthIcon />,\n },\n];\n\nexport const AGENDA_SECOND_VIEWS: Record<\n Exclude<AgendaMainView, \"project\">,\n { id: AgendaView; label: string; icon: ReactElement }[]\n> = {\n dates: [\n { id: \"start_date\", label: \"Start Date\", icon: <ClockIcon /> },\n { id: \"date\", label: \"Due Date\", icon: <CalendarIcon /> },\n ],\n calendar: [\n { id: \"day\", label: \"Day\", icon: <ViewDayIcon /> },\n {\n id: \"week\",\n label: \"Week\",\n icon: <ViewListIcon style={{ transform: \"rotate(90deg)\" }} />,\n },\n { id: \"month\", label: \"Month\", icon: <ViewGridIcon /> },\n ],\n};\n\nexport const agendaMainViewOf = (view: AgendaView): AgendaMainView =>\n view === \"project\"\n ? \"project\"\n : view === \"start_date\" || view === \"date\"\n ? \"dates\"\n : \"calendar\";\n\nexport const isCalendarView = (view: AgendaView): view is CalendarMode =>\n view === \"day\" || view === \"week\" || view === \"month\";\n\n/** MyWork/Agenda/AgendaViewSwitch.jsx: the second menu remembers the last view of its group. */\nexport const AgendaViewSwitch = ({\n view,\n onChange,\n}: {\n view: AgendaView;\n onChange: (view: AgendaView) => void;\n}): ReactElement => {\n const [lastDate, setLastDate] = useState<AgendaView>(\"date\");\n const [lastCalendar, setLastCalendar] = useState<AgendaView>(\"day\");\n const mainView = agendaMainViewOf(view);\n\n const selectSecondView = (next: string): void => {\n (mainView === \"dates\" ? setLastDate : setLastCalendar)(next as AgendaView);\n onChange(next as AgendaView);\n };\n\n const selectMainView = (next: string): void => {\n onChange(\n next === \"project\"\n ? \"project\"\n : next === \"dates\"\n ? lastDate\n : lastCalendar\n );\n };\n\n return (\n <div style={{ display: \"inline-flex\", alignItems: \"center\", gap: 8 }}>\n {mainView === \"project\" ? null : (\n <SubViewSwitcher\n aria-label={mainView === \"dates\" ? \"Group By\" : \"Calendar Range\"}\n options={AGENDA_SECOND_VIEWS[mainView]}\n value={view}\n onChange={selectSecondView}\n />\n )}\n <ViewSwitcher\n aria-label=\"View\"\n views={AGENDA_MAIN_VIEWS}\n value={mainView}\n onChange={selectMainView}\n />\n </div>\n );\n};\n\n/** MyWork/Agenda/AgendaFilters.jsx: one search and one filter for all views. */\nexport const AgendaFilter = (): ReactElement => {\n const [search, setSearch] = useState(\"\");\n\n return (\n <Filter\n data={[]}\n selected={{}}\n onChange={() => undefined}\n label=\"Filter\"\n clearAllText=\"Clear All\"\n resetLabel=\"Reset\"\n noResultText=\"No results\"\n search={{\n value: search,\n onChange: setSearch,\n placeholder: \"Search\",\n clearLabel: \"Clear Search\",\n }}\n />\n );\n};\n"],"mappings":";AAAA,OAAOA,KAAK,IAGVC,WAAW,EACXC,eAAe,EACfC,OAAO,EACPC,QAAQ,QACH,OAAO;AAEd,OAAOC,MAAM,MAAM,mBAAmB;AAGtC,SAASC,QAAQ,QAAQ,2BAA2B;AACpD,SAASC,IAAI,QAAQ,uBAAuB;AAC5C,SAASC,aAAa,QAAQ,gCAAgC;AAC9D,SAASC,MAAM,QAAQ,yBAAyB;AAChD,SAASC,MAAM,QAAQ,yBAAyB;AAChD,SAASC,UAAU,QAAQ,6BAA6B;AACxD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AAM;MACb7D,QAAQ,EAAE8D,SAAS;MACnBM,WAAW,EAAE,QAAQ;MACrBC,UAAU,EAAE;IACd;EAAE,CACH,CAAC;AAEN,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,wHAA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,CAAC;AAkDF,MAAM,WAAW,wBAAwB;IACvC,6FAA6F;IAC7F,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,+GAA+G;AAC/G,eAAO,MAAM,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,yBAAyB;AAChD,SAASC,aAAa,QAAQ,gCAAgC;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S,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,OAAO,EAAEC,MAAM,QAAQ,6BAA6B;;AAE9E;AACA;AAC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C,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