@wildo-ai/saas-frontend-lib 1.1.16 → 1.1.17

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 (156) hide show
  1. package/dist/esm/components/compliance/EmbeddedSigningFrame.d.ts.map +1 -1
  2. package/dist/esm/components/compliance/EmbeddedSigningFrame.js +17 -6
  3. package/dist/esm/components/compliance/EmbeddedSigningFrame.js.map +1 -1
  4. package/dist/esm/components/data-display/approval-seal.d.ts +7 -5
  5. package/dist/esm/components/data-display/approval-seal.d.ts.map +1 -1
  6. package/dist/esm/components/data-display/approval-seal.js +10 -4
  7. package/dist/esm/components/data-display/approval-seal.js.map +1 -1
  8. package/dist/esm/components/data-display/signature-requests.d.ts +81 -0
  9. package/dist/esm/components/data-display/signature-requests.d.ts.map +1 -0
  10. package/dist/esm/components/data-display/signature-requests.js +123 -0
  11. package/dist/esm/components/data-display/signature-requests.js.map +1 -0
  12. package/dist/esm/components/flows-actors/approval.d.ts.map +1 -1
  13. package/dist/esm/components/flows-actors/approval.js +8 -15
  14. package/dist/esm/components/flows-actors/approval.js.map +1 -1
  15. package/dist/esm/components/form/automated/ResourceAutomatedForm.d.ts.map +1 -1
  16. package/dist/esm/components/form/automated/ResourceAutomatedForm.js +44 -29
  17. package/dist/esm/components/form/automated/ResourceAutomatedForm.js.map +1 -1
  18. package/dist/esm/components/navigation/NavigationItemBadge.d.ts +16 -0
  19. package/dist/esm/components/navigation/NavigationItemBadge.d.ts.map +1 -1
  20. package/dist/esm/components/navigation/NavigationItemBadge.js +14 -2
  21. package/dist/esm/components/navigation/NavigationItemBadge.js.map +1 -1
  22. package/dist/esm/components/navigation/app-level/ApplicationLevel_NavigationBack.d.ts +3 -3
  23. package/dist/esm/components/navigation/app-level/ApplicationLevel_NavigationBack.js +3 -3
  24. package/dist/esm/components/navigation/app-level/ApplicationLevel_NavigationBack.js.map +1 -1
  25. package/dist/esm/components/navigation/app-level/SidebarResourceBrowser.d.ts +5 -13
  26. package/dist/esm/components/navigation/app-level/SidebarResourceBrowser.d.ts.map +1 -1
  27. package/dist/esm/components/navigation/app-level/SidebarResourceBrowser.js +30 -255
  28. package/dist/esm/components/navigation/app-level/SidebarResourceBrowser.js.map +1 -1
  29. package/dist/esm/components/navigation/app-level/useCommandMenuBehavior.d.ts +22 -1
  30. package/dist/esm/components/navigation/app-level/useCommandMenuBehavior.d.ts.map +1 -1
  31. package/dist/esm/components/navigation/app-level/useCommandMenuBehavior.js +57 -26
  32. package/dist/esm/components/navigation/app-level/useCommandMenuBehavior.js.map +1 -1
  33. package/dist/esm/components/navigation/app-level/useMenuBarBehavior.d.ts +1 -1
  34. package/dist/esm/components/navigation/app-level/useMenuBarBehavior.d.ts.map +1 -1
  35. package/dist/esm/components/navigation/app-level/useMenuBarBehavior.js +35 -1
  36. package/dist/esm/components/navigation/app-level/useMenuBarBehavior.js.map +1 -1
  37. package/dist/esm/components/navigation/app-level/useMenuUserOrgBehavior.d.ts +1 -1
  38. package/dist/esm/components/navigation/app-level/useMenuUserOrgBehavior.d.ts.map +1 -1
  39. package/dist/esm/components/navigation/app-level/useMenuUserOrgBehavior.js +26 -4
  40. package/dist/esm/components/navigation/app-level/useMenuUserOrgBehavior.js.map +1 -1
  41. package/dist/esm/components/navigation/app-level/useNavigationBackBehavior.d.ts +31 -0
  42. package/dist/esm/components/navigation/app-level/useNavigationBackBehavior.d.ts.map +1 -0
  43. package/dist/esm/components/navigation/app-level/useNavigationBackBehavior.js +42 -0
  44. package/dist/esm/components/navigation/app-level/useNavigationBackBehavior.js.map +1 -0
  45. package/dist/esm/components/navigation/app-level/useSidebarResourceBrowser.d.ts +76 -0
  46. package/dist/esm/components/navigation/app-level/useSidebarResourceBrowser.d.ts.map +1 -0
  47. package/dist/esm/components/navigation/app-level/useSidebarResourceBrowser.js +268 -0
  48. package/dist/esm/components/navigation/app-level/useSidebarResourceBrowser.js.map +1 -0
  49. package/dist/esm/components/navigation/command.d.ts +5 -0
  50. package/dist/esm/components/navigation/command.d.ts.map +1 -1
  51. package/dist/esm/components/navigation/command.js.map +1 -1
  52. package/dist/esm/components/resources/ResourceLayout_DangerZone.d.ts.map +1 -1
  53. package/dist/esm/components/resources/ResourceLayout_DangerZone.js +5 -2
  54. package/dist/esm/components/resources/ResourceLayout_DangerZone.js.map +1 -1
  55. package/dist/esm/components/resources/ResourceLayout_InsertedViews.d.ts.map +1 -1
  56. package/dist/esm/components/resources/ResourceLayout_InsertedViews.js +5 -1
  57. package/dist/esm/components/resources/ResourceLayout_InsertedViews.js.map +1 -1
  58. package/dist/esm/components/resources/ResourceLayout_List.d.ts.map +1 -1
  59. package/dist/esm/components/resources/ResourceLayout_List.js +4 -1
  60. package/dist/esm/components/resources/ResourceLayout_List.js.map +1 -1
  61. package/dist/esm/components/resources/ResourceLayout_RecordSharing.d.ts.map +1 -1
  62. package/dist/esm/components/resources/ResourceLayout_RecordSharing.js +4 -1
  63. package/dist/esm/components/resources/ResourceLayout_RecordSharing.js.map +1 -1
  64. package/dist/esm/components/resources/collection/board/ResourceCollectionBody_Board.d.ts.map +1 -1
  65. package/dist/esm/components/resources/collection/board/ResourceCollectionBody_Board.js +4 -1
  66. package/dist/esm/components/resources/collection/board/ResourceCollectionBody_Board.js.map +1 -1
  67. package/dist/esm/components/resources/collection/calendar/ResourceCollectionBody_Calendar.d.ts.map +1 -1
  68. package/dist/esm/components/resources/collection/calendar/ResourceCollectionBody_Calendar.js +4 -1
  69. package/dist/esm/components/resources/collection/calendar/ResourceCollectionBody_Calendar.js.map +1 -1
  70. package/dist/esm/components/resources/collection/timeline/ResourceCollectionBody_Timeline.d.ts.map +1 -1
  71. package/dist/esm/components/resources/collection/timeline/ResourceCollectionBody_Timeline.js +4 -1
  72. package/dist/esm/components/resources/collection/timeline/ResourceCollectionBody_Timeline.js.map +1 -1
  73. package/dist/esm/components/resources/skeleton/Group.d.ts.map +1 -1
  74. package/dist/esm/components/resources/skeleton/Group.js +4 -1
  75. package/dist/esm/components/resources/skeleton/Group.js.map +1 -1
  76. package/dist/esm/components/sections/ContentSectionContainer.d.ts.map +1 -1
  77. package/dist/esm/components/sections/ContentSectionContainer.js +11 -7
  78. package/dist/esm/components/sections/ContentSectionContainer.js.map +1 -1
  79. package/dist/esm/components/sections/content-section.d.ts +1 -3
  80. package/dist/esm/components/sections/content-section.d.ts.map +1 -1
  81. package/dist/esm/components/sections/content-section.js.map +1 -1
  82. package/dist/esm/components/settings/AppPage_AgentActivitySettings.d.ts.map +1 -1
  83. package/dist/esm/components/settings/AppPage_AgentActivitySettings.js +2 -1
  84. package/dist/esm/components/settings/AppPage_AgentActivitySettings.js.map +1 -1
  85. package/dist/esm/components/settings/AppPage_ConnectedAccountsSettings.d.ts +12 -0
  86. package/dist/esm/components/settings/AppPage_ConnectedAccountsSettings.d.ts.map +1 -1
  87. package/dist/esm/components/settings/AppPage_ConnectedAccountsSettings.js +28 -6
  88. package/dist/esm/components/settings/AppPage_ConnectedAccountsSettings.js.map +1 -1
  89. package/dist/esm/components/typography/document-heading-level.d.ts +28 -0
  90. package/dist/esm/components/typography/document-heading-level.d.ts.map +1 -0
  91. package/dist/esm/components/typography/document-heading-level.js +63 -0
  92. package/dist/esm/components/typography/document-heading-level.js.map +1 -0
  93. package/dist/esm/components/views/chart-view/ChartView.d.ts.map +1 -1
  94. package/dist/esm/components/views/chart-view/ChartView.js +20 -16
  95. package/dist/esm/components/views/chart-view/ChartView.js.map +1 -1
  96. package/dist/esm/components/views/chart-view/ChartView.labels.d.ts.map +1 -1
  97. package/dist/esm/components/views/chart-view/ChartView.labels.js +7 -0
  98. package/dist/esm/components/views/chart-view/ChartView.labels.js.map +1 -1
  99. package/dist/esm/components/views/chart-view/option-builder/builder-utils.d.ts +12 -3
  100. package/dist/esm/components/views/chart-view/option-builder/builder-utils.d.ts.map +1 -1
  101. package/dist/esm/components/views/chart-view/option-builder/builder-utils.js +18 -11
  102. package/dist/esm/components/views/chart-view/option-builder/builder-utils.js.map +1 -1
  103. package/dist/esm/components/views/chart-view/option-builder/builders/bar-family.builder.d.ts.map +1 -1
  104. package/dist/esm/components/views/chart-view/option-builder/builders/bar-family.builder.js +2 -1
  105. package/dist/esm/components/views/chart-view/option-builder/builders/bar-family.builder.js.map +1 -1
  106. package/dist/esm/components/views/chart-view/option-builder/builders/funnel.builder.d.ts.map +1 -1
  107. package/dist/esm/components/views/chart-view/option-builder/builders/funnel.builder.js +7 -3
  108. package/dist/esm/components/views/chart-view/option-builder/builders/funnel.builder.js.map +1 -1
  109. package/dist/esm/components/views/chart-view/option-builder/builders/gauge.builder.d.ts.map +1 -1
  110. package/dist/esm/components/views/chart-view/option-builder/builders/gauge.builder.js +6 -2
  111. package/dist/esm/components/views/chart-view/option-builder/builders/gauge.builder.js.map +1 -1
  112. package/dist/esm/components/views/chart-view/option-builder/builders/heatmap.builder.d.ts.map +1 -1
  113. package/dist/esm/components/views/chart-view/option-builder/builders/heatmap.builder.js +7 -1
  114. package/dist/esm/components/views/chart-view/option-builder/builders/heatmap.builder.js.map +1 -1
  115. package/dist/esm/components/views/chart-view/option-builder/builders/hierarchical-family.builder.d.ts.map +1 -1
  116. package/dist/esm/components/views/chart-view/option-builder/builders/hierarchical-family.builder.js +13 -9
  117. package/dist/esm/components/views/chart-view/option-builder/builders/hierarchical-family.builder.js.map +1 -1
  118. package/dist/esm/components/views/chart-view/option-builder/builders/line-family.builder.d.ts.map +1 -1
  119. package/dist/esm/components/views/chart-view/option-builder/builders/line-family.builder.js +2 -1
  120. package/dist/esm/components/views/chart-view/option-builder/builders/line-family.builder.js.map +1 -1
  121. package/dist/esm/components/views/chart-view/option-builder/builders/parallel.builder.d.ts.map +1 -1
  122. package/dist/esm/components/views/chart-view/option-builder/builders/parallel.builder.js +2 -1
  123. package/dist/esm/components/views/chart-view/option-builder/builders/parallel.builder.js.map +1 -1
  124. package/dist/esm/components/views/chart-view/option-builder/builders/pie-family.builder.d.ts.map +1 -1
  125. package/dist/esm/components/views/chart-view/option-builder/builders/pie-family.builder.js +4 -3
  126. package/dist/esm/components/views/chart-view/option-builder/builders/pie-family.builder.js.map +1 -1
  127. package/dist/esm/components/views/chart-view/option-builder/builders/radar.builder.d.ts.map +1 -1
  128. package/dist/esm/components/views/chart-view/option-builder/builders/radar.builder.js +2 -1
  129. package/dist/esm/components/views/chart-view/option-builder/builders/radar.builder.js.map +1 -1
  130. package/dist/esm/components/views/chart-view/option-builder/builders/sankey.builder.d.ts.map +1 -1
  131. package/dist/esm/components/views/chart-view/option-builder/builders/sankey.builder.js +5 -1
  132. package/dist/esm/components/views/chart-view/option-builder/builders/sankey.builder.js.map +1 -1
  133. package/dist/esm/components/views/chart-view/option-builder/builders/statistical-family.builder.d.ts.map +1 -1
  134. package/dist/esm/components/views/chart-view/option-builder/builders/statistical-family.builder.js +4 -3
  135. package/dist/esm/components/views/chart-view/option-builder/builders/statistical-family.builder.js.map +1 -1
  136. package/dist/esm/core/app-shell/app-shell.schemas.d.ts +87 -16
  137. package/dist/esm/core/app-shell/app-shell.schemas.d.ts.map +1 -1
  138. package/dist/esm/core/app-shell/app-shell.schemas.js +16 -0
  139. package/dist/esm/core/app-shell/app-shell.schemas.js.map +1 -1
  140. package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.d.ts +39 -4
  141. package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.d.ts.map +1 -1
  142. package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.js +33 -1
  143. package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.js.map +1 -1
  144. package/dist/esm/core/resources/hooks/useOperationEnabled.d.ts.map +1 -1
  145. package/dist/esm/core/resources/hooks/useOperationEnabled.js +41 -3
  146. package/dist/esm/core/resources/hooks/useOperationEnabled.js.map +1 -1
  147. package/dist/esm/core/search/command-score.d.ts +33 -0
  148. package/dist/esm/core/search/command-score.d.ts.map +1 -0
  149. package/dist/esm/core/search/command-score.js +109 -0
  150. package/dist/esm/core/search/command-score.js.map +1 -0
  151. package/dist/esm/index.d.ts +5 -0
  152. package/dist/esm/index.d.ts.map +1 -1
  153. package/dist/esm/index.js +5 -0
  154. package/dist/esm/index.js.map +1 -1
  155. package/dist/tsconfig.build.tsbuildinfo +1 -1
  156. package/package.json +6 -6
@@ -1 +1 @@
1
- {"version":3,"file":"ResourceCollectionBody_Timeline.js","sourceRoot":"","sources":["../../../../../../src/components/resources/collection/timeline/ResourceCollectionBody_Timeline.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAc,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACjE,OAAO,EAAE,EAAE,EAAE,MAAM,gCAAgC,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,sBAAsB,EAAE,MAAM,+CAA+C,CAAC;AAC/F,OAAO,EAAE,eAAe,EAAE,MAAM,gDAAgD,CAAC;AACjF,OAAO,EAAE,QAAQ,EAAE,qBAAqB,EAAE,MAAM,+DAA+D,CAAC;AAChH,OAAO,EAAE,kBAAkB,EAAE,MAAM,iGAAiG,CAAC;AACrI,OAAO,EAAE,cAAc,EAA0B,MAAM,iGAAiG,CAAC;AAgCzJ,mHAAmH;AACnH,SAAS,eAAe,CAAC,QAAgB;IACvC,OAAO,EAAE,mBAAmB,EAAE,8BAA8B,QAAQ,wBAAwB,EAAE,CAAC;AACjG,CAAC;AAED,MAAM,UAAU,+BAA+B,CAAwC,EACrF,IAAI,EACJ,UAAU,EACV,KAAK,EACL,KAAK,EACL,aAAa,EACb,YAAY,EACZ,cAAc,EACd,SAAS,EACT,YAAY,EACZ,QAAQ,EACR,WAAW,EACX,UAAU,EACV,aAAa,EACb,kBAAkB,EAClB,cAAc,EACd,UAAU,EACV,eAAe,GAC6B;IAC5C,MAAM,EAAE,UAAU,EAAE,GAAG,eAAe,EAAE,CAAC;IACzC,MAAM,OAAO,GAAG,MAAM,CAAmB,IAAI,CAAC,CAAC;IAC/C,MAAM,QAA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AU,CAAC,EAAE,uBACA,MAAM,gBACb,cAAc,EAC1B,KAAK,EAAE,cAAc,EACrB,SAAS,EAAE,EAAE,CAAC,YAAY,EAAE,+CAA+C,CAAC,EAC5E,KAAK,EAAE,QAAQ,EACf,OAAO,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,EAC/B,SAAS,EAAE,YAAY,YAEtB,KAAK,GACC,CACV,CAAC,CAAC,CAAC,CACF,eACE,IAAI,EAAC,KAAK,uBACS,MAAM,EACzB,QAAQ,EAAE,CAAC,gBACC,cAAc,EAC1B,KAAK,EAAE,cAAc,EACrB,SAAS,EAAE,EAAE,CAAC,YAAY,EAAE,mBAAmB,CAAC,EAChD,KAAK,EAAE,QAAQ,EACf,SAAS,EAAE,YAAY,YAEtB,KAAK,GACD,CACR,KAnCI,MAAM,CAoCR,CACN,CAAC;4BACJ,CAAC,CAAC,GACC,CACN,IACG,GACF,IACF,CACP,CAAC;AACJ,CAAC","sourcesContent":["/**\n * The TIMELINE body of a resource collection (`CollectionDisplayMode.TIMELINE`, #2298): one row per record, a bar from\n * its start to its end over the days of the displayed month.\n *\n * Like the other bodies, the list host owns the fetch (whose windows on the two date fields ARE the displayed month, so\n * another month refetches), the placement (`placeTimelineItems`), the row's name and what opening it does. This\n * component owns the axis, the bars, the month navigation and the keyboard.\n *\n * ## Keyboard\n *\n * Each bar is a button in the tab order, named with the row and its full dates (not the clipped ones), and opens the\n * row. Up and Down on a bar move to the bar of the previous or next row, so a long timeline is walked without tabbing\n * through every row's other controls. A row that cannot be opened is shown, not offered.\n */\n\nimport React, { useRef } from 'react';\nimport { ButtonSize } from '@wildo-ai/presets-components-models';\nimport { cn } from '~wildo-frontend-lib/core/ui/cn';\nimport { Button, ButtonVariants_Variant } from '~wildo-frontend-lib/components/actions/button';\nimport { useIconRegistry } from '~wildo-frontend-lib/core/icons/useIconRegistry';\nimport { IconSize, StandardIconReference } from '~wildo-frontend-lib/core/icons/icon-registry.frontend.schemas';\nimport { shiftCalendarMonth } from '~wildo-frontend-lib/components/resources/collection/calendar/collection-calendar.frontend.utils';\nimport { timelineDayKey, type TimelinePlacement } from '~wildo-frontend-lib/components/resources/collection/timeline/collection-timeline.frontend.utils';\n\nexport interface ResourceCollectionBody_TimelineProps<TItem extends Record<string, unknown>> {\n /** The days of the displayed month (`timelineMonthDays`). */\n days: readonly Date[];\n /** The rows placed on those days (`placeTimelineItems`). */\n placements: readonly TimelinePlacement<TItem>[];\n /** The first day of the displayed month, as UTC midnight. */\n month: Date;\n /** Today, as UTC midnight of the reader's day. */\n today: Date;\n /** Show another month (the host moves its fetch windows with it). */\n onMonthChange: (month: Date) => void;\n /** The heading of the displayed month (\"November 2026\"). */\n monthHeading: string;\n /** The day number shown above a day column. */\n dayNumberLabel: (day: Date) => string;\n getItemId: (item: TItem) => string;\n /** The row's name as a list shows it. */\n getItemLabel: (item: TItem) => string;\n /** A bar's accessible name: the row's name and its full first and last day. */\n barLabel: (item: TItem, startDay: Date, endDay: Date) => string;\n canOpenItem: (item: TItem) => boolean;\n onOpenItem: (item: TItem) => void;\n timelineLabel: string;\n previousMonthLabel: string;\n nextMonthLabel: string;\n todayLabel: string;\n /** Shown when no row overlaps the displayed month. */\n emptyMonthLabel: string;\n}\n\n/** The row-label column, then one column per day: every row lays out on the same template, so the days line up. */\nfunction timelineColumns(dayCount: number): React.CSSProperties {\n return { gridTemplateColumns: `minmax(8rem, 12rem) repeat(${dayCount}, minmax(1.5rem, 1fr))` };\n}\n\nexport function ResourceCollectionBody_Timeline<TItem extends Record<string, unknown>>({\n days,\n placements,\n month,\n today,\n onMonthChange,\n monthHeading,\n dayNumberLabel,\n getItemId,\n getItemLabel,\n barLabel,\n canOpenItem,\n onOpenItem,\n timelineLabel,\n previousMonthLabel,\n nextMonthLabel,\n todayLabel,\n emptyMonthLabel,\n}: ResourceCollectionBody_TimelineProps<TItem>): React.JSX.Element {\n const { renderIcon } = useIconRegistry();\n const listRef = useRef<HTMLUListElement>(null);\n const todayKey = timelineDayKey(today);\n const columns = timelineColumns(days.length);\n\n const onBarKeyDown = (event: React.KeyboardEvent<HTMLElement>) => {\n const direction = event.key === 'ArrowDown' ? 1 : event.key === 'ArrowUp' ? -1 : 0;\n if (direction === 0) return;\n const bars = Array.from(listRef.current?.querySelectorAll<HTMLElement>('[data-timeline-bar]') ?? []);\n const next = bars[bars.indexOf(event.currentTarget) + direction];\n if (!next) return;\n event.preventDefault();\n next.focus();\n };\n\n return (\n <div className=\"flex flex-col gap-item-sm\" data-slot=\"collection-timeline\">\n <div className=\"flex items-center gap-item-sm\">\n <Button\n variant={ButtonVariants_Variant.OUTLINE}\n size={ButtonSize.ICON_SM}\n aria-label={previousMonthLabel}\n title={previousMonthLabel}\n onClick={() => onMonthChange(shiftCalendarMonth(month, -1))}\n >\n <span aria-hidden=\"true\">{renderIcon(StandardIconReference.CHEVRON_LEFT, { size: IconSize.SM })}</span>\n </Button>\n <Button\n variant={ButtonVariants_Variant.OUTLINE}\n size={ButtonSize.ICON_SM}\n aria-label={nextMonthLabel}\n title={nextMonthLabel}\n onClick={() => onMonthChange(shiftCalendarMonth(month, 1))}\n >\n <span aria-hidden=\"true\">{renderIcon(StandardIconReference.CHEVRON_RIGHT, { size: IconSize.SM })}</span>\n </Button>\n <h3 className=\"text-sm font-medium\" aria-live=\"polite\">{monthHeading}</h3>\n <Button variant={ButtonVariants_Variant.GHOST} size={ButtonSize.SM} className=\"ms-auto\" onClick={() => onMonthChange(today)}>\n {todayLabel}\n </Button>\n </div>\n <div className=\"overflow-x-auto\">\n <div className=\"min-w-max\">\n {/* The axis is decoration for sighted readers: every bar is named with its own dates. */}\n <div className=\"grid border-b pb-item-xs\" style={columns} aria-hidden=\"true\">\n <span />\n {days.map((day) => {\n const key = timelineDayKey(day);\n return (\n <span\n key={key}\n data-timeline-day={key}\n data-today={key === todayKey ? 'true' : undefined}\n className={cn('text-center text-xs text-muted-foreground', key === todayKey && 'font-semibold text-foreground')}\n >\n {dayNumberLabel(day)}\n </span>\n );\n })}\n </div>\n {placements.length === 0 ? (\n <p role=\"status\" className=\"py-section text-center text-sm text-muted-foreground\">{emptyMonthLabel}</p>\n ) : (\n <ul ref={listRef} role=\"list\" aria-label={timelineLabel} className=\"flex flex-col\">\n {placements.map((placement) => {\n const { item, startDay, endDay, startColumn, endColumn, continuesBefore, continuesAfter } = placement;\n const itemId = getItemId(item);\n const label = getItemLabel(item);\n const accessibleName = barLabel(item, startDay, endDay);\n const barClassName = cn(\n 'h-6 min-w-0 truncate rounded-md bg-primary/15 px-item-xs text-start text-xs text-foreground',\n continuesBefore && 'rounded-s-none',\n continuesAfter && 'rounded-e-none',\n );\n const barStyle: React.CSSProperties = { gridColumn: `${startColumn + 1} / ${endColumn + 2}`, gridRow: 1 };\n return (\n <li\n key={itemId}\n className=\"grid list-none items-center border-b py-px\"\n style={columns}\n data-timeline-item={itemId}\n data-continues-before={continuesBefore ? 'true' : undefined}\n data-continues-after={continuesAfter ? 'true' : undefined}\n >\n <span aria-hidden=\"true\" className=\"truncate pe-item-sm text-sm\" style={{ gridColumn: 1, gridRow: 1 }} title={label}>{label}</span>\n {canOpenItem(item) ? (\n <Button\n variant={ButtonVariants_Variant.GHOST}\n size={ButtonSize.XS}\n data-timeline-bar={itemId}\n aria-label={accessibleName}\n title={accessibleName}\n className={cn(barClassName, 'justify-start font-normal hover:bg-primary/25')}\n style={barStyle}\n onClick={() => onOpenItem(item)}\n onKeyDown={onBarKeyDown}\n >\n {label}\n </Button>\n ) : (\n <span\n role=\"img\"\n data-timeline-bar={itemId}\n tabIndex={0}\n aria-label={accessibleName}\n title={accessibleName}\n className={cn(barClassName, 'flex items-center')}\n style={barStyle}\n onKeyDown={onBarKeyDown}\n >\n {label}\n </span>\n )}\n </li>\n );\n })}\n </ul>\n )}\n </div>\n </div>\n </div>\n );\n}\n"]}
1
+ {"version":3,"file":"ResourceCollectionBody_Timeline.js","sourceRoot":"","sources":["../../../../../../src/components/resources/collection/timeline/ResourceCollectionBody_Time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AAY,EAAE,+CAA+C,CAAC,EAC5E,KAAK,EAAE,QAAQ,EACf,OAAO,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,EAC/B,SAAS,EAAE,YAAY,YAEtB,KAAK,GACC,CACV,CAAC,CAAC,CAAC,CACF,eACE,IAAI,EAAC,KAAK,uBACS,MAAM,EACzB,QAAQ,EAAE,CAAC,gBACC,cAAc,EAC1B,KAAK,EAAE,cAAc,EACrB,SAAS,EAAE,EAAE,CAAC,YAAY,EAAE,mBAAmB,CAAC,EAChD,KAAK,EAAE,QAAQ,EACf,SAAS,EAAE,YAAY,YAEtB,KAAK,GACD,CACR,KAnCI,MAAM,CAoCR,CACN,CAAC;4BACJ,CAAC,CAAC,GACC,CACN,IACG,GACF,IACF,CACP,CAAC;AACJ,CAAC","sourcesContent":["/**\n * The TIMELINE body of a resource collection (`CollectionDisplayMode.TIMELINE`, #2298): one row per record, a bar from\n * its start to its end over the days of the displayed month.\n *\n * Like the other bodies, the list host owns the fetch (whose windows on the two date fields ARE the displayed month, so\n * another month refetches), the placement (`placeTimelineItems`), the row's name and what opening it does. This\n * component owns the axis, the bars, the month navigation and the keyboard.\n *\n * ## Keyboard\n *\n * Each bar is a button in the tab order, named with the row and its full dates (not the clipped ones), and opens the\n * row. Up and Down on a bar move to the bar of the previous or next row, so a long timeline is walked without tabbing\n * through every row's other controls. A row that cannot be opened is shown, not offered.\n */\n\nimport React, { useRef } from 'react';\nimport { documentHeadingTag, useDocumentHeadingLevel } from '~wildo-frontend-lib/components/typography/document-heading-level';\nimport { ButtonSize } from '@wildo-ai/presets-components-models';\nimport { cn } from '~wildo-frontend-lib/core/ui/cn';\nimport { Button, ButtonVariants_Variant } from '~wildo-frontend-lib/components/actions/button';\nimport { useIconRegistry } from '~wildo-frontend-lib/core/icons/useIconRegistry';\nimport { IconSize, StandardIconReference } from '~wildo-frontend-lib/core/icons/icon-registry.frontend.schemas';\nimport { shiftCalendarMonth } from '~wildo-frontend-lib/components/resources/collection/calendar/collection-calendar.frontend.utils';\nimport { timelineDayKey, type TimelinePlacement } from '~wildo-frontend-lib/components/resources/collection/timeline/collection-timeline.frontend.utils';\n\nexport interface ResourceCollectionBody_TimelineProps<TItem extends Record<string, unknown>> {\n /** The days of the displayed month (`timelineMonthDays`). */\n days: readonly Date[];\n /** The rows placed on those days (`placeTimelineItems`). */\n placements: readonly TimelinePlacement<TItem>[];\n /** The first day of the displayed month, as UTC midnight. */\n month: Date;\n /** Today, as UTC midnight of the reader's day. */\n today: Date;\n /** Show another month (the host moves its fetch windows with it). */\n onMonthChange: (month: Date) => void;\n /** The heading of the displayed month (\"November 2026\"). */\n monthHeading: string;\n /** The day number shown above a day column. */\n dayNumberLabel: (day: Date) => string;\n getItemId: (item: TItem) => string;\n /** The row's name as a list shows it. */\n getItemLabel: (item: TItem) => string;\n /** A bar's accessible name: the row's name and its full first and last day. */\n barLabel: (item: TItem, startDay: Date, endDay: Date) => string;\n canOpenItem: (item: TItem) => boolean;\n onOpenItem: (item: TItem) => void;\n timelineLabel: string;\n previousMonthLabel: string;\n nextMonthLabel: string;\n todayLabel: string;\n /** Shown when no row overlaps the displayed month. */\n emptyMonthLabel: string;\n}\n\n/** The row-label column, then one column per day: every row lays out on the same template, so the days line up. */\nfunction timelineColumns(dayCount: number): React.CSSProperties {\n return { gridTemplateColumns: `minmax(8rem, 12rem) repeat(${dayCount}, minmax(1.5rem, 1fr))` };\n}\n\nexport function ResourceCollectionBody_Timeline<TItem extends Record<string, unknown>>({\n days,\n placements,\n month,\n today,\n onMonthChange,\n monthHeading,\n dayNumberLabel,\n getItemId,\n getItemLabel,\n barLabel,\n canOpenItem,\n onOpenItem,\n timelineLabel,\n previousMonthLabel,\n nextMonthLabel,\n todayLabel,\n emptyMonthLabel,\n}: ResourceCollectionBody_TimelineProps<TItem>): React.JSX.Element {\n // The month heading takes the outline's level under the page's `h1`; a fixed `h3` skipped one (#3867).\n const MonthHeadingTag = documentHeadingTag(useDocumentHeadingLevel());\n const { renderIcon } = useIconRegistry();\n const listRef = useRef<HTMLUListElement>(null);\n const todayKey = timelineDayKey(today);\n const columns = timelineColumns(days.length);\n\n const onBarKeyDown = (event: React.KeyboardEvent<HTMLElement>) => {\n const direction = event.key === 'ArrowDown' ? 1 : event.key === 'ArrowUp' ? -1 : 0;\n if (direction === 0) return;\n const bars = Array.from(listRef.current?.querySelectorAll<HTMLElement>('[data-timeline-bar]') ?? []);\n const next = bars[bars.indexOf(event.currentTarget) + direction];\n if (!next) return;\n event.preventDefault();\n next.focus();\n };\n\n return (\n <div className=\"flex flex-col gap-item-sm\" data-slot=\"collection-timeline\">\n <div className=\"flex items-center gap-item-sm\">\n <Button\n variant={ButtonVariants_Variant.OUTLINE}\n size={ButtonSize.ICON_SM}\n aria-label={previousMonthLabel}\n title={previousMonthLabel}\n onClick={() => onMonthChange(shiftCalendarMonth(month, -1))}\n >\n <span aria-hidden=\"true\">{renderIcon(StandardIconReference.CHEVRON_LEFT, { size: IconSize.SM })}</span>\n </Button>\n <Button\n variant={ButtonVariants_Variant.OUTLINE}\n size={ButtonSize.ICON_SM}\n aria-label={nextMonthLabel}\n title={nextMonthLabel}\n onClick={() => onMonthChange(shiftCalendarMonth(month, 1))}\n >\n <span aria-hidden=\"true\">{renderIcon(StandardIconReference.CHEVRON_RIGHT, { size: IconSize.SM })}</span>\n </Button>\n <MonthHeadingTag className=\"text-sm font-medium\" aria-live=\"polite\">{monthHeading}</MonthHeadingTag>\n <Button variant={ButtonVariants_Variant.GHOST} size={ButtonSize.SM} className=\"ms-auto\" onClick={() => onMonthChange(today)}>\n {todayLabel}\n </Button>\n </div>\n <div className=\"overflow-x-auto\">\n <div className=\"min-w-max\">\n {/* The axis is decoration for sighted readers: every bar is named with its own dates. */}\n <div className=\"grid border-b pb-item-xs\" style={columns} aria-hidden=\"true\">\n <span />\n {days.map((day) => {\n const key = timelineDayKey(day);\n return (\n <span\n key={key}\n data-timeline-day={key}\n data-today={key === todayKey ? 'true' : undefined}\n className={cn('text-center text-xs text-muted-foreground', key === todayKey && 'font-semibold text-foreground')}\n >\n {dayNumberLabel(day)}\n </span>\n );\n })}\n </div>\n {placements.length === 0 ? (\n <p role=\"status\" className=\"py-section text-center text-sm text-muted-foreground\">{emptyMonthLabel}</p>\n ) : (\n <ul ref={listRef} role=\"list\" aria-label={timelineLabel} className=\"flex flex-col\">\n {placements.map((placement) => {\n const { item, startDay, endDay, startColumn, endColumn, continuesBefore, continuesAfter } = placement;\n const itemId = getItemId(item);\n const label = getItemLabel(item);\n const accessibleName = barLabel(item, startDay, endDay);\n const barClassName = cn(\n 'h-6 min-w-0 truncate rounded-md bg-primary/15 px-item-xs text-start text-xs text-foreground',\n continuesBefore && 'rounded-s-none',\n continuesAfter && 'rounded-e-none',\n );\n const barStyle: React.CSSProperties = { gridColumn: `${startColumn + 1} / ${endColumn + 2}`, gridRow: 1 };\n return (\n <li\n key={itemId}\n className=\"grid list-none items-center border-b py-px\"\n style={columns}\n data-timeline-item={itemId}\n data-continues-before={continuesBefore ? 'true' : undefined}\n data-continues-after={continuesAfter ? 'true' : undefined}\n >\n <span aria-hidden=\"true\" className=\"truncate pe-item-sm text-sm\" style={{ gridColumn: 1, gridRow: 1 }} title={label}>{label}</span>\n {canOpenItem(item) ? (\n <Button\n variant={ButtonVariants_Variant.GHOST}\n size={ButtonSize.XS}\n data-timeline-bar={itemId}\n aria-label={accessibleName}\n title={accessibleName}\n className={cn(barClassName, 'justify-start font-normal hover:bg-primary/25')}\n style={barStyle}\n onClick={() => onOpenItem(item)}\n onKeyDown={onBarKeyDown}\n >\n {label}\n </Button>\n ) : (\n <span\n role=\"img\"\n data-timeline-bar={itemId}\n tabIndex={0}\n aria-label={accessibleName}\n title={accessibleName}\n className={cn(barClassName, 'flex items-center')}\n style={barStyle}\n onKeyDown={onBarKeyDown}\n >\n {label}\n </span>\n )}\n </li>\n );\n })}\n </ul>\n )}\n </div>\n </div>\n </div>\n );\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"Group.d.ts","sourceRoot":"","sources":["../../../../../src/components/resources/skeleton/Group.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAOvC,MAAM,WAAW,UAAU;IACzB;;;;;OAKG;IACH,IAAI,EAAE,MAAM,CAAC;IACb,sDAAsD;IACtD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,KAAK,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,UAAU,GAAG,SAAS,CAiC1E;yBAjCe,KAAK"}
1
+ {"version":3,"file":"Group.d.ts","sourceRoot":"","sources":["../../../../../src/components/resources/skeleton/Group.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAQvC,MAAM,WAAW,UAAU;IACzB;;;;;OAKG;IACH,IAAI,EAAE,MAAM,CAAC;IACb,sDAAsD;IACtD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,KAAK,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,UAAU,GAAG,SAAS,CAsC1E;yBAtCe,KAAK"}
@@ -5,6 +5,7 @@ import { useOptionalDisplayTemplateContext } from '../../data-display/DisplayTem
5
5
  import { TypographyVariant, UIBehavior } from '@wildo-ai/presets-components-models';
6
6
  import { cn } from '../../../core/ui/cn.js';
7
7
  import { useUI } from '../../../core/ui/useUI.js';
8
+ import { documentHeadingTag, NestedDocumentHeadingLevel, useDocumentHeadingLevel } from '../../../components/typography/document-heading-level.js';
8
9
  /**
9
10
  * Visual grouping for form and display templates.
10
11
  *
@@ -29,9 +30,11 @@ export function Group({ name, className, children }) {
29
30
  const formCtx = useOptionalFormTemplateContext();
30
31
  const displayCtx = useOptionalDisplayTemplateContext();
31
32
  const { getRecipe } = useUI();
33
+ const headingLevel = useDocumentHeadingLevel();
34
+ const HeadingTag = documentHeadingTag(headingLevel);
32
35
  const title = formCtx?.groupLabels?.[name] ??
33
36
  displayCtx?.groupLabels?.[name];
34
- return (_jsxs("div", { className: className, "data-guidance-group": name, children: [title && _jsx("h3", { className: cn('col-span-full mb-element', getRecipe(UIBehavior.TYPOGRAPHY, TypographyVariant.EYEBROW).base), children: title }), children] }));
37
+ return (_jsxs("div", { className: className, "data-guidance-group": name, children: [title && _jsx(HeadingTag, { className: cn('col-span-full mb-element', getRecipe(UIBehavior.TYPOGRAPHY, TypographyVariant.EYEBROW).base), children: title }), title ? _jsx(NestedDocumentHeadingLevel, { children: children }) : children] }));
35
38
  }
36
39
  Group.displayName = 'Group';
37
40
  //# sourceMappingURL=Group.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Group.js","sourceRoot":"","sources":["../../../../../src/components/resources/skeleton/Group.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAGb,OAAO,EAAE,8BAA8B,EAAE,MAAM,0CAA0C,CAAC;AAC1F,OAAO,EAAE,iCAAiC,EAAE,MAAM,2CAA2C,CAAC;AAC9F,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACpF,OAAO,EAAE,EAAE,EAAE,MAAM,gCAAgC,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,mCAAmC,CAAC;AAe1D;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,UAAU,KAAK,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAc;IAC7D,MAAM,OAAO,GAAG,8BAA8B,EAAE,CAAC;IACjD,MAAM,UAAU,GAAG,iCAAiC,EAAE,CAAC;IACvD,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,CAAC;IAE9B,MAAM,KAAK,GACT,OAAO,EAAE,WAAW,EAAE,CAAC,IAAI,CAAC;QAC5B,UAAU,EAAE,WAAW,EAAE,CAAC,IAAI,CAAC,CAAC;IAElC,OAAO,CACL,eAAK,SAAS,EAAE,SAAS,yBAAuB,IAAI,aAmBjD,KAAK,IAAI,aAAI,SAAS,EAAE,EAAE,CAAC,0BAA0B,EAAE,SAAS,CAAC,UAAU,CAAC,UAAU,EAAE,iBAAiB,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,YAAG,KAAK,GAAM,EACtI,QAAQ,IACL,CACP,CAAC;AACJ,CAAC;AAED,KAAK,CAAC,WAAW,GAAG,OAAO,CAAC","sourcesContent":["'use client';\n\nimport type { ReactNode } from 'react';\nimport { useOptionalFormTemplateContext } from '../../form/automated/FormTemplateContext';\nimport { useOptionalDisplayTemplateContext } from '../../data-display/DisplayTemplateContext';\nimport { TypographyVariant, UIBehavior } from '@wildo-ai/presets-components-models';\nimport { cn } from '~wildo-frontend-lib/core/ui/cn';\nimport { useUI } from '~wildo-frontend-lib/core/ui/useUI';\n\nexport interface GroupProps {\n /**\n * Structural ref — maps to i18n keys for title:\n * - `resources.{type}.groups.{name}.title`\n *\n * Must match an entry in `layout.refs.groups`.\n */\n name: string;\n /** Additional CSS classes for the group container. */\n className?: string;\n children: ReactNode;\n}\n\n/**\n * Visual grouping for form and display templates.\n *\n * Groups fields with an optional i18n title resolved from:\n * formCtx.groupLabels → displayCtx.groupLabels\n *\n * Groups and sections are distinct concepts with separate i18n namespaces\n * (`resources.{type}.groups.{ref}.title` vs `resources.{type}.sections.{ref}.title`).\n * No cross-pollination between the two.\n *\n * @example\n * ```tsx\n * <DisplayLayout>\n * <Group name=\"contact\" className=\"hidden md:block\">\n * <DisplayField name=\"email\" />\n * <DisplayField name=\"phone\" />\n * </Group>\n * </DisplayLayout>\n * ```\n */\nexport function Group({ name, className, children }: GroupProps): ReactNode {\n const formCtx = useOptionalFormTemplateContext();\n const displayCtx = useOptionalDisplayTemplateContext();\n const { getRecipe } = useUI();\n\n const title =\n formCtx?.groupLabels?.[name] ??\n displayCtx?.groupLabels?.[name];\n\n return (\n <div className={className} data-guidance-group={name}>\n {/*\n * `col-span-full` because `className` is where callers put the group's LAYOUT, and the heading\n * shares that element with the fields. Under `grid grid-cols-2` the heading took the first\n * cell and pushed every field one cell over — measured on the Wonder Todos edit template,\n * where \"Workflow\" sat BESIDE Status instead of above it, and each field after it landed in\n * the other column from the one its neighbours implied. Spanning the full row gives the\n * heading its own line in any grid and does nothing at all in a flex or block layout.\n *\n * Not solved by moving `className` onto an inner wrapper around the fields: the documented\n * use `className=\"hidden md:block\"` means \"hide this GROUP\", heading included, and that\n * would start hiding the fields while leaving an orphaned heading on screen.\n */}\n {/*\n * The EYEBROW voice, in forms and read bodies alike: a group names a handful of fields that belong\n * together (\"Workflow\"), which is a label for the cluster, not a heading that orders the page. As a\n * `Subheading` it was 16px/500 in the foreground, as loud as the inputs it introduced (measured on the\n * Wonder Todos todo edit form, 2026-09-30). Still a real `h3` for the document outline.\n */}\n {title && <h3 className={cn('col-span-full mb-element', getRecipe(UIBehavior.TYPOGRAPHY, TypographyVariant.EYEBROW).base)}>{title}</h3>}\n {children}\n </div>\n );\n}\n\nGroup.displayName = 'Group';\n"]}
1
+ {"version":3,"file":"Group.js","sourceRoot":"","sources":["../../../../../src/components/resources/skeleton/Group.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAGb,OAAO,EAAE,8BAA8B,EAAE,MAAM,0CAA0C,CAAC;AAC1F,OAAO,EAAE,iCAAiC,EAAE,MAAM,2CAA2C,CAAC;AAC9F,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACpF,OAAO,EAAE,EAAE,EAAE,MAAM,gCAAgC,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,mCAAmC,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,0BAA0B,EAAE,uBAAuB,EAAE,MAAM,kEAAkE,CAAC;AAe3J;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,UAAU,KAAK,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAc;IAC7D,MAAM,OAAO,GAAG,8BAA8B,EAAE,CAAC;IACjD,MAAM,UAAU,GAAG,iCAAiC,EAAE,CAAC;IACvD,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,CAAC;IAC9B,MAAM,YAAY,GAAG,uBAAuB,EAAE,CAAC;IAC/C,MAAM,UAAU,GAAG,kBAAkB,CAAC,YAAY,CAAC,CAAC;IAEpD,MAAM,KAAK,GACT,OAAO,EAAE,WAAW,EAAE,CAAC,IAAI,CAAC;QAC5B,UAAU,EAAE,WAAW,EAAE,CAAC,IAAI,CAAC,CAAC;IAElC,OAAO,CACL,eAAK,SAAS,EAAE,SAAS,yBAAuB,IAAI,aAsBjD,KAAK,IAAI,KAAC,UAAU,IAAC,SAAS,EAAE,EAAE,CAAC,0BAA0B,EAAE,SAAS,CAAC,UAAU,CAAC,UAAU,EAAE,iBAAiB,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,YAAG,KAAK,GAAc,EACtJ,KAAK,CAAC,CAAC,CAAC,KAAC,0BAA0B,cAAE,QAAQ,GAA8B,CAAC,CAAC,CAAC,QAAQ,IACnF,CACP,CAAC;AACJ,CAAC;AAED,KAAK,CAAC,WAAW,GAAG,OAAO,CAAC","sourcesContent":["'use client';\n\nimport type { ReactNode } from 'react';\nimport { useOptionalFormTemplateContext } from '../../form/automated/FormTemplateContext';\nimport { useOptionalDisplayTemplateContext } from '../../data-display/DisplayTemplateContext';\nimport { TypographyVariant, UIBehavior } from '@wildo-ai/presets-components-models';\nimport { cn } from '~wildo-frontend-lib/core/ui/cn';\nimport { useUI } from '~wildo-frontend-lib/core/ui/useUI';\nimport { documentHeadingTag, NestedDocumentHeadingLevel, useDocumentHeadingLevel } from '~wildo-frontend-lib/components/typography/document-heading-level';\n\nexport interface GroupProps {\n /**\n * Structural ref — maps to i18n keys for title:\n * - `resources.{type}.groups.{name}.title`\n *\n * Must match an entry in `layout.refs.groups`.\n */\n name: string;\n /** Additional CSS classes for the group container. */\n className?: string;\n children: ReactNode;\n}\n\n/**\n * Visual grouping for form and display templates.\n *\n * Groups fields with an optional i18n title resolved from:\n * formCtx.groupLabels → displayCtx.groupLabels\n *\n * Groups and sections are distinct concepts with separate i18n namespaces\n * (`resources.{type}.groups.{ref}.title` vs `resources.{type}.sections.{ref}.title`).\n * No cross-pollination between the two.\n *\n * @example\n * ```tsx\n * <DisplayLayout>\n * <Group name=\"contact\" className=\"hidden md:block\">\n * <DisplayField name=\"email\" />\n * <DisplayField name=\"phone\" />\n * </Group>\n * </DisplayLayout>\n * ```\n */\nexport function Group({ name, className, children }: GroupProps): ReactNode {\n const formCtx = useOptionalFormTemplateContext();\n const displayCtx = useOptionalDisplayTemplateContext();\n const { getRecipe } = useUI();\n const headingLevel = useDocumentHeadingLevel();\n const HeadingTag = documentHeadingTag(headingLevel);\n\n const title =\n formCtx?.groupLabels?.[name] ??\n displayCtx?.groupLabels?.[name];\n\n return (\n <div className={className} data-guidance-group={name}>\n {/*\n * `col-span-full` because `className` is where callers put the group's LAYOUT, and the heading\n * shares that element with the fields. Under `grid grid-cols-2` the heading took the first\n * cell and pushed every field one cell over — measured on the Wonder Todos edit template,\n * where \"Workflow\" sat BESIDE Status instead of above it, and each field after it landed in\n * the other column from the one its neighbours implied. Spanning the full row gives the\n * heading its own line in any grid and does nothing at all in a flex or block layout.\n *\n * Not solved by moving `className` onto an inner wrapper around the fields: the documented\n * use `className=\"hidden md:block\"` means \"hide this GROUP\", heading included, and that\n * would start hiding the fields while leaving an orphaned heading on screen.\n */}\n {/*\n * The EYEBROW voice, in forms and read bodies alike: a group names a handful of fields that belong\n * together (\"Workflow\"), which is a label for the cluster, not a heading that orders the page. As a\n * `Subheading` it was 16px/500 in the foreground, as loud as the inputs it introduced (measured on the\n * Wonder Todos todo edit form, 2026-09-30). Still a real heading for the document outline, at the level its\n * place in the outline gives it (`useDocumentHeadingLevel`): a hard-coded `h3` straight under the record\n * title's `h1` skipped a level on every create form (#3867). With a title, the fields it owns nest one level\n * deeper, so a heading inside one of them sits under this one.\n */}\n {title && <HeadingTag className={cn('col-span-full mb-element', getRecipe(UIBehavior.TYPOGRAPHY, TypographyVariant.EYEBROW).base)}>{title}</HeadingTag>}\n {title ? <NestedDocumentHeadingLevel>{children}</NestedDocumentHeadingLevel> : children}\n </div>\n );\n}\n\nGroup.displayName = 'Group';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"ContentSectionContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/sections/ContentSectionContainer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAA0D,MAAM,OAAO,CAAC;AAE/E,OAAO,KAAK,EAEV,aAAa,EAgBd,MAAM,qCAAqC,CAAC;AAK7C,OAAO,EAAoG,gBAAgB,EAAqB,MAAM,qCAAqC,CAAC;AA0B5L,MAAM,WAAW,wBAAwB;IACvC,wCAAwC;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,wCAAwC;IACxC,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,2BAA2B;IAC3B,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,wBAAwB;IACxB,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,oBAAoB;IACpB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,2FAA2F;IAC3F,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,gBAAgB,CAAC;IAC7B,kCAAkC;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,4BAA4B;IAC3C,kCAAkC;IAClC,QAAQ,EAAE,wBAAwB,EAAE,CAAC;IACrC,qEAAqE;IACrE,MAAM,EAAE,aAAa,CAAC;IACtB,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2CAA2C;IAC3C,eAAe,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,EAAE,KAAK,IAAI,CAAC;CAC1D;AAkLD,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,4BAA4B,CAgE1E,CAAC;AA+7BF,eAAe,uBAAuB,CAAC"}
1
+ {"version":3,"file":"ContentSectionContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/sections/ContentSectionContainer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAA0D,MAAM,OAAO,CAAC;AAE/E,OAAO,KAAK,EAEV,aAAa,EAgBd,MAAM,qCAAqC,CAAC;AAK7C,OAAO,EAAoG,gBAAgB,EAAqB,MAAM,qCAAqC,CAAC;AA2B5L,MAAM,WAAW,wBAAwB;IACvC,wCAAwC;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,wCAAwC;IACxC,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,2BAA2B;IAC3B,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,wBAAwB;IACxB,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,oBAAoB;IACpB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,2FAA2F;IAC3F,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,gBAAgB,CAAC;IAC7B,kCAAkC;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,4BAA4B;IAC3C,kCAAkC;IAClC,QAAQ,EAAE,wBAAwB,EAAE,CAAC;IACrC,qEAAqE;IACrE,MAAM,EAAE,aAAa,CAAC;IACtB,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2CAA2C;IAC3C,eAAe,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,EAAE,KAAK,IAAI,CAAC;CAC1D;AAgLD,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,4BAA4B,CAgE1E,CAAC;AAo8BF,eAAe,uBAAuB,CAAC"}
@@ -39,6 +39,7 @@ import { Button, ButtonVariants_Variant } from '../../components/actions/button.
39
39
  import { Badge } from '../../components/data-display/badge.js';
40
40
  import { Surface } from '../../components/sections/surface.js';
41
41
  import { ContentSection } from '../../components/sections/content-section.js';
42
+ import { documentHeadingTag, NestedDocumentHeadingLevel, useDocumentHeadingLevel } from '../../components/typography/document-heading-level.js';
42
43
  import { EmptyState } from '../../components/feedback/empty-state.js';
43
44
  import { DEFAULT_EXPANDABLE_INITIAL_VISIBLE_COUNT } from '../../components/sections/section-grouping.shared.js';
44
45
  import { fieldRevealPanelAttributes, useFieldRevealRequests, useKeepsHiddenPanelsMounted } from '../../components/form/validation-errors/field-reveal.js';
@@ -62,7 +63,7 @@ function resolveSectionWrapMode(value) {
62
63
  * - `separator-only` → DEFAULT + a bottom-divider className
63
64
  *
64
65
  * Container panels render through ContentSection's PANEL mode: a titled card with a
65
- * header band (an `<h3>` with icon over a `border-b` divider, content in a `p-card`
66
+ * header band (a heading at the outline's level, with icon, over a `border-b` divider, content in a `p-card`
66
67
  * area) for CARD, a flat group otherwise.
67
68
  */
68
69
  function wrapModeToAppearance(wrapMode) {
@@ -104,20 +105,20 @@ const GroupedSectionsCard = ({ sections, className }) => {
104
105
  };
105
106
  /**
106
107
  * Renders a section panel WITH its heading through `ContentSection` in PANEL mode:
107
- * the heading renders as an `<h3>`/`<h4>` band (icon + title, level per `titleTag`,
108
- * default `h3`) with a `border-b` divider above the `p-card` content area (the
108
+ * the heading renders as a heading band (icon + title, at the level the outline gives it —
109
+ * `useDocumentHeadingLevel`) with a `border-b` divider above the `p-card` content area (the
109
110
  * titled-card-with-header look), framed per `wrapMode` via a `<fieldset>` that
110
111
  * carries the disabled cascade (a `card-each` panel always paints its card, a flat
111
112
  * one never frames). Used by the panel-heading
112
113
  * modes (single / inline / grid / columns / collapsible / expandable). Collapsible
113
- * panels pass `titleTag: 'h4'` since they nest under the collapsible-all `<h3>`.
114
+ * panels nest one level under the collapsible-all heading through `NestedDocumentHeadingLevel`.
114
115
  * The explicit `section.disabled` flows to the panel `<fieldset disabled>` for the
115
116
  * content cascade (plan Decision 4: panel content disabling is explicit/form-driven,
116
117
  * distinct from nav-trigger gating).
117
118
  */
118
119
  function renderPanelSection(section, params) {
119
120
  const { appearance, className } = wrapModeToAppearance(params?.wrapMode ?? 'card-each');
120
- return (_jsx(ContentSection, { panel: true, appearance: appearance, headingTag: params?.titleTag, legend: section.title, icon: section.icon, description: section.description, disabled: section.disabled, className: className, children: section.content }, section.id));
121
+ return (_jsx(ContentSection, { panel: true, appearance: appearance, legend: section.title, icon: section.icon, description: section.description, disabled: section.disabled, className: className, children: section.content }, section.id));
121
122
  }
122
123
  /**
123
124
  * Renders a section panel WITHOUT a panel heading through `ContentSection` — used
@@ -494,13 +495,15 @@ const CollapsibleMode = ({ sections, config, className, sectionWrapMode }) => {
494
495
  const closedLabel = config.triggerLabel?.closed ?? getLabel('accordionExpandAll');
495
496
  const sectionCountLabel = getLabel('accordionSectionCount', { count: sections.length });
496
497
  const keepPanelsMounted = useKeepsHiddenPanelsMounted();
498
+ // The collapsible-all heading takes the outline's level; the panels it folds nest one level under it.
499
+ const CountHeadingTag = documentHeadingTag(useDocumentHeadingLevel());
497
500
  const revealContainerId = useFieldRevealRequests(() => {
498
501
  if (isOpen)
499
502
  return false;
500
503
  setIsOpen(true);
501
504
  return true;
502
505
  });
503
- return (_jsxs(Collapsible, { open: isOpen, onOpenChange: setIsOpen, className: className, children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsx("h3", { className: "font-semibold", children: sectionCountLabel }), _jsx(CollapsibleTrigger, { asChild: true, children: _jsx(Button, { type: "button", variant: ButtonVariants_Variant.GHOST, size: ButtonSize.SM, "aria-expanded": isOpen, children: isOpen ? openLabel : closedLabel }) })] }), _jsx(CollapsibleContent, { className: "space-y-field mt-field", ...(keepPanelsMounted ? { forceMount: true, hidden: !isOpen } : {}), ...fieldRevealPanelAttributes(revealContainerId, COLLAPSIBLE_PANEL_ID), children: sections.map((section) => renderPanelSection(section, { titleTag: 'h4', wrapMode: sectionWrapMode })) })] }));
506
+ return (_jsxs(Collapsible, { open: isOpen, onOpenChange: setIsOpen, className: className, children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsx(CountHeadingTag, { className: "font-semibold", children: sectionCountLabel }), _jsx(CollapsibleTrigger, { asChild: true, children: _jsx(Button, { type: "button", variant: ButtonVariants_Variant.GHOST, size: ButtonSize.SM, "aria-expanded": isOpen, children: isOpen ? openLabel : closedLabel }) })] }), _jsx(CollapsibleContent, { className: "space-y-field mt-field", ...(keepPanelsMounted ? { forceMount: true, hidden: !isOpen } : {}), ...fieldRevealPanelAttributes(revealContainerId, COLLAPSIBLE_PANEL_ID), children: _jsx(NestedDocumentHeadingLevel, { children: sections.map((section) => renderPanelSection(section, { wrapMode: sectionWrapMode })) }) })] }));
504
507
  };
505
508
  /** The panel EXPANDABLE folds behind "show more": every section past the first `initialVisibleCount`. */
506
509
  const EXPANDABLE_FOLDED_PANEL_ID = 'folded';
@@ -573,12 +576,13 @@ const StepperMode = ({ sections, config, className, sectionWrapMode, onSectionCh
573
576
  };
574
577
  const TimelineMode = ({ sections, config, className, sectionWrapMode }) => {
575
578
  const getLabel = useContentSectionContainerLabel();
579
+ const StepHeadingTag = documentHeadingTag(useDocumentHeadingLevel());
576
580
  /*
577
581
  * Drawn on the framework's own `Timeline` since #1317 — this mode used to draw a private rail and
578
582
  * dot of its own, the first of three hand-drawn timelines the one component replaced. Each section
579
583
  * is an entry; a section step has no status, so the marker is the NEUTRAL tone.
580
584
  */
581
- return (_jsx("div", { className: className, role: "region", "aria-label": config.ariaLabel ?? getLabel('timelineRegion'), children: _jsx(Timeline, { className: "gap-section", children: sections.map((section, index) => (_jsx(TimelineEntry, { children: _jsx(TimelineBody, { children: renderSectionContentChrome(section, _jsxs(_Fragment, { children: [_jsxs("div", { className: "flex items-center gap-element mb-element", children: [section.icon, _jsx("h3", { className: "font-semibold", children: section.title }), _jsx(Badge, { variant: "outline", className: "ms-auto", children: getLabel('timelineStep', { step: index + 1 }) })] }), section.description && (_jsx("p", { className: "text-sm text-muted-foreground mb-element", children: section.description })), section.content] }), sectionWrapMode) }) }, section.id))) }) }));
585
+ return (_jsx("div", { className: className, role: "region", "aria-label": config.ariaLabel ?? getLabel('timelineRegion'), children: _jsx(Timeline, { className: "gap-section", children: sections.map((section, index) => (_jsx(TimelineEntry, { children: _jsx(TimelineBody, { children: renderSectionContentChrome(section, _jsxs(_Fragment, { children: [_jsxs("div", { className: "flex items-center gap-element mb-element", children: [section.icon, _jsx(StepHeadingTag, { className: "font-semibold", children: section.title }), _jsx(Badge, { variant: "outline", className: "ms-auto", children: getLabel('timelineStep', { step: index + 1 }) })] }), section.description && (_jsx("p", { className: "text-sm text-muted-foreground mb-element", children: section.description })), _jsx(NestedDocumentHeadingLevel, { children: section.content })] }), sectionWrapMode) }) }, section.id))) }) }));
582
586
  };
583
587
  const stagesWithoutRecordWarned = new Set();
584
588
  /**