@alepha/ui 0.34.0 → 0.35.0

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 (476) hide show
  1. package/dist/account/$pageAccount.js +1 -2
  2. package/dist/account/AccountBackToSiteMenuItem.js +1 -2
  3. package/dist/account/AccountBrand.js +1 -2
  4. package/dist/account/AccountConnections.js +1 -2
  5. package/dist/account/AccountDeleteDialog.js +2 -3
  6. package/dist/account/AccountKeys.js +3 -4
  7. package/dist/account/AccountLayout.js +4 -5
  8. package/dist/account/AccountMfaDialog.js +2 -3
  9. package/dist/account/AccountPage.js +1 -2
  10. package/dist/account/AccountPasswordDialog.js +2 -3
  11. package/dist/account/AccountProfile.js +3 -4
  12. package/dist/account/AccountRecoveryCodes.js +2 -3
  13. package/dist/account/AccountRecoveryCodesDialog.js +1 -2
  14. package/dist/account/AccountRouter.js +1 -2
  15. package/dist/account/AccountRouterOptions.js +1 -2
  16. package/dist/account/AccountSecurity.js +6 -7
  17. package/dist/account/AccountSessions.js +1 -2
  18. package/dist/account/ApiKeyCreateDialog.js +2 -3
  19. package/dist/account/ApiKeyScopeMatrix.js +1 -2
  20. package/dist/account/ApiKeyScopeSummary.js +1 -2
  21. package/dist/account/ApiKeyStatusBadge.js +1 -2
  22. package/dist/account/index.js +5 -5
  23. package/dist/admin/$pageAdmin.js +1 -2
  24. package/dist/admin/AdminAnalytics.js +1 -2
  25. package/dist/admin/AdminAudits.js +2 -3
  26. package/dist/admin/AdminAudits.js.map +1 -1
  27. package/dist/admin/AdminDashboard.js +2 -3
  28. package/dist/admin/AdminDashboardCountCard.js +1 -2
  29. package/dist/admin/AdminFiles.js +5 -6
  30. package/dist/admin/AdminFiles.js.map +1 -1
  31. package/dist/admin/AdminFilesUsage.d.ts.map +1 -1
  32. package/dist/admin/AdminFilesUsage.js +1 -2
  33. package/dist/admin/AdminFilesUsage.js.map +1 -1
  34. package/dist/admin/AdminFilesUsageCard.js +2 -3
  35. package/dist/admin/AdminJobDetail.js +1 -2
  36. package/dist/admin/AdminJobDetailAside.js +1 -2
  37. package/dist/admin/AdminJobDetailExecutions.js +2 -3
  38. package/dist/admin/AdminJobExecutionLogs.js +1 -2
  39. package/dist/admin/AdminJobExecutionSheet.js +3 -4
  40. package/dist/admin/AdminJobs.js +2 -3
  41. package/dist/admin/AdminJobsPayloadBody.js +1 -2
  42. package/dist/admin/AdminJobsPayloadDialog.js +1 -2
  43. package/dist/admin/AdminJobsStatusBadge.js +1 -2
  44. package/dist/admin/AdminJobsTypeIcon.js +1 -2
  45. package/dist/admin/AdminKeys.js +6 -7
  46. package/dist/admin/AdminKeysTokenDialog.js +2 -3
  47. package/dist/admin/AdminLayout.js +1 -2
  48. package/dist/admin/AdminNotifications.d.ts.map +1 -1
  49. package/dist/admin/AdminNotifications.js +6 -7
  50. package/dist/admin/AdminNotifications.js.map +1 -1
  51. package/dist/admin/AdminNotificationsDetail.js +1 -2
  52. package/dist/admin/AdminNotificationsDetailTabs.js +1 -2
  53. package/dist/admin/AdminNotificationsPreviewBody.js +1 -2
  54. package/dist/admin/AdminNotificationsPreviewTab.js +1 -2
  55. package/dist/admin/AdminNotificationsPreviewTab.js.map +1 -1
  56. package/dist/admin/AdminNotificationsRawTab.js +1 -2
  57. package/dist/admin/AdminNotificationsStatusBadge.js +1 -2
  58. package/dist/admin/AdminPage.js +1 -2
  59. package/dist/admin/AdminParameters.d.ts.map +1 -1
  60. package/dist/admin/AdminParameters.js +5 -6
  61. package/dist/admin/AdminParameters.js.map +1 -1
  62. package/dist/admin/AdminParametersEditorForm.js +1 -2
  63. package/dist/admin/AdminParametersEditorForm.js.map +1 -1
  64. package/dist/admin/AdminParametersEditorPane.js +3 -4
  65. package/dist/admin/AdminParametersEditorPane.js.map +1 -1
  66. package/dist/admin/AdminParametersHistoryPane.js +2 -3
  67. package/dist/admin/AdminParametersTreeFooterActions.js +1 -2
  68. package/dist/admin/AdminParametersTreeNodeView.js +2 -3
  69. package/dist/admin/AdminParametersTreePane.js +1 -2
  70. package/dist/admin/AdminPayments.js +2 -3
  71. package/dist/admin/AdminPaymentsStatusBadge.js +1 -2
  72. package/dist/admin/AdminRouter.d.ts +3 -2
  73. package/dist/admin/AdminRouter.d.ts.map +1 -1
  74. package/dist/admin/AdminRouter.js +1 -2
  75. package/dist/admin/AdminRouterOptions.js +1 -2
  76. package/dist/admin/AdminSessions.js +1 -2
  77. package/dist/admin/AdminUserAvatarControl.js +1 -2
  78. package/dist/admin/AdminUserCell.js +1 -2
  79. package/dist/admin/AdminUserDetail.js +2 -3
  80. package/dist/admin/AdminUserDetailAuditsTab.js +2 -3
  81. package/dist/admin/AdminUserDetailIdentityAside.js +1 -2
  82. package/dist/admin/AdminUserDetailOverviewTab.js +1 -2
  83. package/dist/admin/AdminUserDetailPasswordDialog.js +1 -2
  84. package/dist/admin/AdminUserDetailSecurityTab.js +3 -4
  85. package/dist/admin/AdminUserDetailSessionsTab.js +1 -2
  86. package/dist/admin/AdminUsers.js +3 -4
  87. package/dist/admin/AdminUsersRolesPicker.js +1 -2
  88. package/dist/admin/AdminUsersStatusBadge.js +1 -2
  89. package/dist/admin/EmailBodyFrame.js +1 -2
  90. package/dist/admin/ParameterDiffDialog.js +2 -3
  91. package/dist/admin/ParameterHistoryItem.d.ts.map +1 -1
  92. package/dist/admin/ParameterHistoryItem.js +4 -5
  93. package/dist/admin/ParameterHistoryItem.js.map +1 -1
  94. package/dist/admin/ParameterJsonDialog.js +2 -3
  95. package/dist/admin/ParameterSaveDialog.js +1 -2
  96. package/dist/admin/adminJobsStatusTones.js +1 -2
  97. package/dist/admin/adminNotificationsChannelLabel.js +1 -2
  98. package/dist/admin/adminNotificationsStatusTones.js +1 -2
  99. package/dist/admin/adminNotificationsTemplateLabel.js +1 -2
  100. package/dist/admin/adminParametersTree.js +1 -2
  101. package/dist/admin/adminPaymentsStatusTones.js +1 -2
  102. package/dist/admin/adminUserDetailPasswordSchema.d.ts +2 -1
  103. package/dist/admin/adminUserDetailPasswordSchema.d.ts.map +1 -1
  104. package/dist/admin/adminUserDetailPasswordSchema.js +1 -2
  105. package/dist/admin/adminUserDetailProfilePolicy.js +1 -2
  106. package/dist/admin/adminUserDetailProfileSchema.d.ts +7 -7
  107. package/dist/admin/adminUserDetailProfileSchema.d.ts.map +1 -1
  108. package/dist/admin/adminUserDetailProfileSchema.js +1 -2
  109. package/dist/admin/analytics/AdvancedSection.js +2 -3
  110. package/dist/admin/analytics/AnalyticsChart.js +1 -2
  111. package/dist/admin/analytics/AnalyticsChartBars.js +1 -2
  112. package/dist/admin/analytics/AnalyticsChartDonut.js +1 -2
  113. package/dist/admin/analytics/AnalyticsChartHeader.js +1 -2
  114. package/dist/admin/analytics/AnalyticsChartHeat.js +1 -2
  115. package/dist/admin/analytics/AnalyticsChartLegend.js +1 -2
  116. package/dist/admin/analytics/AnalyticsChartLine.js +1 -2
  117. package/dist/admin/analytics/AnalyticsChartRank.js +1 -2
  118. package/dist/admin/analytics/AnalyticsChartTicks.js +1 -2
  119. package/dist/admin/analytics/AnalyticsEmpty.js +1 -2
  120. package/dist/admin/analytics/ClauseLabel.js +1 -2
  121. package/dist/admin/analytics/CoarsenedBadge.js +1 -2
  122. package/dist/admin/analytics/CompareNote.js +1 -2
  123. package/dist/admin/analytics/DatasetSelect.js +1 -2
  124. package/dist/admin/analytics/FilterEditor.js +1 -2
  125. package/dist/admin/analytics/FilterValuePicker.js +2 -3
  126. package/dist/admin/analytics/GroupByChips.js +1 -2
  127. package/dist/admin/analytics/MeasureChips.js +1 -2
  128. package/dist/admin/analytics/QueryPanel.js +2 -3
  129. package/dist/admin/analytics/RangeControl.js +2 -3
  130. package/dist/admin/analytics/RequestDialog.js +1 -2
  131. package/dist/admin/analytics/ResultsPane.js +6 -7
  132. package/dist/admin/analytics/ResultsTable.js +3 -4
  133. package/dist/admin/analytics/RunFooter.js +1 -2
  134. package/dist/admin/analytics/SamplingBadge.js +1 -2
  135. package/dist/admin/analytics/ToggleChip.js +2 -3
  136. package/dist/admin/analytics/TotalsCards.js +1 -2
  137. package/dist/admin/analytics/TruncationBanner.js +1 -2
  138. package/dist/admin/analytics/analyticsModel.js +1 -2
  139. package/dist/admin/analytics/chartModel.js +1 -2
  140. package/dist/admin/analytics/instantRangeSchema.d.ts +3 -2
  141. package/dist/admin/analytics/instantRangeSchema.d.ts.map +1 -1
  142. package/dist/admin/analytics/instantRangeSchema.js +1 -2
  143. package/dist/admin/analytics/useAnalyticsQuery.js +1 -2
  144. package/dist/admin/analytics/useDismissable.js +1 -2
  145. package/dist/admin/analytics/useFilterValues.js +1 -2
  146. package/dist/admin/analytics/usePanelWidth.js +1 -2
  147. package/dist/admin/analytics/useShapeLabels.js +1 -2
  148. package/dist/admin/diffLines.js +1 -2
  149. package/dist/admin/downloadJson.js +1 -2
  150. package/dist/admin/index.js +5 -5
  151. package/dist/admin/useConfirmedAction.js +1 -2
  152. package/dist/admin/useJobRetentionLabels.js +1 -2
  153. package/dist/admin/useJobStatusLabels.js +1 -2
  154. package/dist/admin/useNotificationStatusLabels.js +1 -2
  155. package/dist/admin/useParameterHistoryCollapsed.js +1 -2
  156. package/dist/ai/AiChat.js +3 -4
  157. package/dist/ai/AiChatConfirmCard.js +1 -2
  158. package/dist/ai/AiChatHistory.js +2 -3
  159. package/dist/ai/AiChatMessage.js +1 -2
  160. package/dist/ai/AiFormRegistry.js +1 -2
  161. package/dist/ai/aiChatMessageFormSchema.d.ts +2 -1
  162. package/dist/ai/aiChatMessageFormSchema.d.ts.map +1 -1
  163. package/dist/ai/aiChatMessageFormSchema.js +1 -2
  164. package/dist/ai/aiContextAtom.d.ts +6 -5
  165. package/dist/ai/aiContextAtom.d.ts.map +1 -1
  166. package/dist/ai/aiContextAtom.js +1 -2
  167. package/dist/ai/index.js +1 -1
  168. package/dist/ai/useAiChat.js +1 -2
  169. package/dist/ai/useAiContext.js +1 -2
  170. package/dist/auth/AuthLogin.js +5 -6
  171. package/dist/auth/AuthMfaStep.js +2 -3
  172. package/dist/auth/AuthRegister.d.ts.map +1 -1
  173. package/dist/auth/AuthRegister.js +4 -5
  174. package/dist/auth/AuthRegister.js.map +1 -1
  175. package/dist/auth/AuthRegisterCentered.js +1 -2
  176. package/dist/auth/AuthRegisterFormPhase.js +5 -6
  177. package/dist/auth/AuthRegisterPasswordRules.js +1 -2
  178. package/dist/auth/AuthRegisterRealmHeader.js +1 -2
  179. package/dist/auth/AuthRegisterRealmLogo.js +1 -2
  180. package/dist/auth/AuthResetPassword.js +4 -5
  181. package/dist/auth/AuthRouter.js +1 -2
  182. package/dist/auth/AuthVerifyEmail.js +2 -3
  183. package/dist/auth/AuthVerifyEmailStateful.js +1 -2
  184. package/dist/auth/AuthVerifyEmailView.js +2 -3
  185. package/dist/auth/TurnstileWidget.js +1 -2
  186. package/dist/auth/index.js +3 -3
  187. package/dist/auth/providerLabels.js +1 -2
  188. package/dist/auth/safeRedirect.js +1 -2
  189. package/dist/calendar/Calendar.js +2 -3
  190. package/dist/calendar/LazyCalendar.js +1 -2
  191. package/dist/calendar/index.js +1 -2
  192. package/dist/chart/Chart.js +1 -2
  193. package/dist/chart/index.js +1 -2
  194. package/dist/command/Command.js +2 -3
  195. package/dist/command/commandScore.js +1 -2
  196. package/dist/command/index.js +1 -1
  197. package/dist/command/rankCommandItems.js +1 -2
  198. package/dist/core/Alert.js +1 -2
  199. package/dist/core/AlertDialog.js +2 -3
  200. package/dist/core/Avatar.js +1 -2
  201. package/dist/core/Badge.js +1 -2
  202. package/dist/core/BrandIcon.js +1 -2
  203. package/dist/core/Breadcrumb.js +1 -2
  204. package/dist/core/Button.js +1 -2
  205. package/dist/core/ButtonGroup.js +2 -3
  206. package/dist/core/Card.js +1 -2
  207. package/dist/core/Checkbox.js +1 -2
  208. package/dist/core/Combobox.js +2 -3
  209. package/dist/core/ContextMenu.js +1 -2
  210. package/dist/core/Dialog.js +2 -3
  211. package/dist/core/Drawer.js +1 -2
  212. package/dist/core/DropdownMenu.js +1 -2
  213. package/dist/core/Empty.js +1 -2
  214. package/dist/core/FileImage.js +1 -2
  215. package/dist/core/FilterSlot.js +1 -2
  216. package/dist/core/Highlight.js +2 -3
  217. package/dist/core/HoverCard.js +1 -2
  218. package/dist/core/Input.js +1 -2
  219. package/dist/core/InputGroup.js +2 -3
  220. package/dist/core/Kbd.js +1 -2
  221. package/dist/core/Label.js +1 -2
  222. package/dist/core/Menubar.js +2 -3
  223. package/dist/core/Pagination.js +2 -3
  224. package/dist/core/PaneRail.js +1 -2
  225. package/dist/core/Popover.js +1 -2
  226. package/dist/core/Progress.js +1 -2
  227. package/dist/core/Segmented.js +1 -2
  228. package/dist/core/Separator.js +1 -2
  229. package/dist/core/Sheet.js +2 -3
  230. package/dist/core/Sidebar.js +5 -6
  231. package/dist/core/Skeleton.js +1 -2
  232. package/dist/core/Slider.js +1 -2
  233. package/dist/core/Spinner.js +1 -2
  234. package/dist/core/Switch.js +1 -2
  235. package/dist/core/Table.js +1 -2
  236. package/dist/core/Tabs.js +1 -2
  237. package/dist/core/Textarea.js +1 -2
  238. package/dist/core/TimeAgo.js +1 -2
  239. package/dist/core/Toaster.js +1 -2
  240. package/dist/core/Tooltip.js +1 -2
  241. package/dist/core/UserAvatar.js +2 -3
  242. package/dist/core/highlightRanges.js +1 -2
  243. package/dist/core/index.js +37 -37
  244. package/dist/core/useDialog.js +1 -2
  245. package/dist/core/useIsMobile.js +1 -2
  246. package/dist/core/useToast.js +1 -2
  247. package/dist/core/utils.js +1 -2
  248. package/dist/form/AutoForm.js +6 -7
  249. package/dist/form/AutoFormBottomBar.js +2 -3
  250. package/dist/form/AutoFormErrorPopover.js +1 -2
  251. package/dist/form/AutoFormGroupBlock.js +3 -4
  252. package/dist/form/AutoFormGroupGridField.js +2 -3
  253. package/dist/form/Control.js +5 -6
  254. package/dist/form/ControlArray.js +2 -3
  255. package/dist/form/ControlArray.js.map +1 -1
  256. package/dist/form/ControlDate.js +1 -2
  257. package/dist/form/ControlDatePopover.js +3 -4
  258. package/dist/form/ControlDateRange.js +2 -3
  259. package/dist/form/ControlMonthPopover.js +2 -3
  260. package/dist/form/ControlNumber.js +2 -3
  261. package/dist/form/ControlObject.js +2 -3
  262. package/dist/form/ControlObject.js.map +1 -1
  263. package/dist/form/ControlPassword.js +1 -2
  264. package/dist/form/ControlSelect.js +3 -4
  265. package/dist/form/ControlSelectCombobox.js +3 -4
  266. package/dist/form/ControlUpload.js +4 -5
  267. package/dist/form/ControlUpload.js.map +1 -1
  268. package/dist/form/ControlUploadItemThumb.js +1 -2
  269. package/dist/form/FormField.js +2 -3
  270. package/dist/form/FormFieldAutoSaveProvider.js +1 -2
  271. package/dist/form/FormFieldLayoutProvider.js +1 -2
  272. package/dist/form/FormFieldRequiredMarkerProvider.js +1 -2
  273. package/dist/form/autoFormGroups.js +1 -2
  274. package/dist/form/controlSelectOptions.js +1 -2
  275. package/dist/form/dateOnly.js +1 -2
  276. package/dist/form/fieldI18n.js +1 -2
  277. package/dist/form/fieldTrigger.js +1 -2
  278. package/dist/form/grid.js +1 -2
  279. package/dist/form/iconHint.js +1 -2
  280. package/dist/form/index.js +7 -7
  281. package/dist/form/resizeImage.js +1 -2
  282. package/dist/i18n/fr/index.js +1 -2
  283. package/dist/i18n/fr/uiFr.js +1 -2
  284. package/dist/markdown/MarkdownView.js +1 -2
  285. package/dist/markdown/SpoilerSpan.js +1 -2
  286. package/dist/markdown/diagram/DiagramErrorBoundary.js +1 -2
  287. package/dist/markdown/diagram/DiagramLabel.js +1 -2
  288. package/dist/markdown/diagram/FlowchartDiagram.js +2 -3
  289. package/dist/markdown/diagram/FlowchartDiagramCluster.js +2 -3
  290. package/dist/markdown/diagram/FlowchartDiagramEdge.js +1 -2
  291. package/dist/markdown/diagram/FlowchartDiagramNode.js +1 -2
  292. package/dist/markdown/diagram/MermaidFence.js +3 -4
  293. package/dist/markdown/diagram/SequenceDiagram.js +2 -3
  294. package/dist/markdown/diagram/SequenceDiagramFragment.js +1 -2
  295. package/dist/markdown/diagram/SequenceDiagramMessage.js +1 -2
  296. package/dist/markdown/diagram/SequenceDiagramNote.js +1 -2
  297. package/dist/markdown/diagram/SequenceDiagramParticipant.js +1 -2
  298. package/dist/markdown/diagram/SequenceDiagramParticipantActor.js +2 -3
  299. package/dist/markdown/diagram/diagramKind.js +1 -2
  300. package/dist/markdown/diagram/flowchartParser.js +1 -2
  301. package/dist/markdown/diagram/layoutFlowchart.js +1 -2
  302. package/dist/markdown/diagram/layoutFlowchart.js.map +1 -1
  303. package/dist/markdown/diagram/layoutSequence.js +1 -2
  304. package/dist/markdown/diagram/sequenceParser.js +1 -2
  305. package/dist/markdown/diagram/textMetrics.js +1 -2
  306. package/dist/markdown/index.js +1 -1
  307. package/dist/markdown/rehypeHighlight.js +1 -2
  308. package/dist/markdown/remarkSpoiler.js +1 -2
  309. package/dist/organizations/MyOrganizationInvitations.js +2 -3
  310. package/dist/organizations/MyOrganizations.js +2 -3
  311. package/dist/organizations/OrganizationInviteDialog.js +2 -3
  312. package/dist/organizations/OrganizationMemberIdentity.js +2 -3
  313. package/dist/organizations/OrganizationMemberRankPicker.js +1 -2
  314. package/dist/organizations/OrganizationMembers.js +3 -4
  315. package/dist/organizations/OrganizationPendingInvitations.js +3 -4
  316. package/dist/organizations/OrganizationRankColumnHeader.js +2 -3
  317. package/dist/organizations/OrganizationRanks.js +5 -6
  318. package/dist/organizations/OrganizationTransferOwnershipDialog.js +2 -3
  319. package/dist/organizations/index.js +6 -6
  320. package/dist/organizations/useInviteOrganizationMember.js +1 -2
  321. package/dist/organizations/useRevokeOrganizationInvitation.js +1 -2
  322. package/dist/otp/InputOTP.js +1 -2
  323. package/dist/otp/index.js +1 -2
  324. package/dist/resizable/Resizable.js +1 -2
  325. package/dist/resizable/index.js +1 -2
  326. package/dist/settings/SettingsDangerSection.js +2 -3
  327. package/dist/settings/SettingsHeading.js +1 -2
  328. package/dist/settings/SettingsLayout.js +1 -2
  329. package/dist/settings/SettingsNav.js +1 -2
  330. package/dist/settings/SettingsRow.js +2 -3
  331. package/dist/settings/SettingsSection.js +3 -4
  332. package/dist/settings/index.js +3 -3
  333. package/dist/settings/settingsCardEdge.js +1 -2
  334. package/dist/shell/$pageNav.js +1 -2
  335. package/dist/shell/ActionErrorToaster.js +1 -2
  336. package/dist/shell/AppActions.js +2 -3
  337. package/dist/shell/AppShell.js +3 -4
  338. package/dist/shell/AppShellNavCollapse.js +1 -2
  339. package/dist/shell/AppShellNavDropdownItems.js +1 -2
  340. package/dist/shell/AppShellSidebarNavItem.d.ts.map +1 -1
  341. package/dist/shell/AppShellSidebarNavItem.js +4 -3
  342. package/dist/shell/AppShellSidebarNavItem.js.map +1 -1
  343. package/dist/shell/AppShellStatefulSidebarTrigger.js +1 -2
  344. package/dist/shell/ButtonDark.js +1 -2
  345. package/dist/shell/ButtonInbox.js +3 -4
  346. package/dist/shell/ButtonLanguage.js +2 -3
  347. package/dist/shell/ButtonLanguage.js.map +1 -1
  348. package/dist/shell/ButtonSettings.js +2 -3
  349. package/dist/shell/ButtonSettingsColorModeMenu.js +1 -2
  350. package/dist/shell/ButtonSettingsLanguageMenu.js +1 -2
  351. package/dist/shell/ButtonSettingsLanguageMenu.js.map +1 -1
  352. package/dist/shell/ButtonSettingsThemeMenu.js +1 -2
  353. package/dist/shell/ButtonTheme.js +3 -4
  354. package/dist/shell/ButtonThemeSwatch.js +1 -2
  355. package/dist/shell/ButtonUser.js +2 -3
  356. package/dist/shell/ButtonUserAccountMenuItem.js +1 -2
  357. package/dist/shell/ButtonUserAdminMenuItem.js +1 -2
  358. package/dist/shell/ButtonUserContent.js +3 -4
  359. package/dist/shell/ButtonUserDefaultMenu.js +1 -2
  360. package/dist/shell/ButtonUserEmail.js +1 -2
  361. package/dist/shell/ButtonUserLogoutMenuItem.js +1 -2
  362. package/dist/shell/ButtonUserPlaceholder.js +1 -2
  363. package/dist/shell/DetailAside.js +3 -4
  364. package/dist/shell/DetailLayout.js +2 -3
  365. package/dist/shell/NavShell.js +1 -2
  366. package/dist/shell/NavigationProgress.js +1 -2
  367. package/dist/shell/PlateLayout.js +1 -2
  368. package/dist/shell/PlateTabBar.d.ts +5 -0
  369. package/dist/shell/PlateTabBar.d.ts.map +1 -1
  370. package/dist/shell/PlateTabBar.js +2 -2
  371. package/dist/shell/PlateTabBar.js.map +1 -1
  372. package/dist/shell/SidebarNavAutoClose.js +1 -2
  373. package/dist/shell/Spotlight.js +2 -3
  374. package/dist/shell/appShellNav.d.ts +6 -0
  375. package/dist/shell/appShellNav.d.ts.map +1 -1
  376. package/dist/shell/appShellNav.js +1 -2
  377. package/dist/shell/appShellNav.js.map +1 -1
  378. package/dist/shell/inboxUnreadAtom.js +1 -2
  379. package/dist/shell/index.js +10 -10
  380. package/dist/shell/navTreeUtil.js +1 -2
  381. package/dist/shell/spotlightSearchText.js +1 -2
  382. package/dist/shell/useDetailTab.js +1 -2
  383. package/dist/shell/useNavBreadcrumbs.js +1 -2
  384. package/dist/shell/useNavEntries.js +1 -2
  385. package/dist/shell/useNavTree.js +1 -2
  386. package/dist/table/DataTable.js +2 -3
  387. package/dist/table/DataTableBody.js +3 -4
  388. package/dist/table/DataTableBulkBar.js +1 -2
  389. package/dist/table/DataTableBulkMenu.js +2 -3
  390. package/dist/table/DataTableColumnPicker.js +3 -4
  391. package/dist/table/DataTableFilterAdd.js +2 -3
  392. package/dist/table/DataTableFilterBar.js +2 -3
  393. package/dist/table/DataTableFilterBar.js.map +1 -1
  394. package/dist/table/DataTableFilterControl.js +2 -3
  395. package/dist/table/DataTableFilterDialog.js +1 -2
  396. package/dist/table/DataTableFilterMenu.js +2 -3
  397. package/dist/table/DataTableFilterOperator.js +1 -2
  398. package/dist/table/DataTableFooter.js +2 -3
  399. package/dist/table/DataTableHeaderRow.js +3 -4
  400. package/dist/table/DataTableHelpButton.js +1 -2
  401. package/dist/table/DataTableRowActionItem.js +1 -2
  402. package/dist/table/DataTableRowActionsMenu.js +2 -3
  403. package/dist/table/DataTableSkeletonRows.js +2 -3
  404. package/dist/table/DataTableSummaryCard.js +1 -2
  405. package/dist/table/DataTableSummaryPanel.js +2 -3
  406. package/dist/table/DataTableToolbar.js +2 -3
  407. package/dist/table/PermissionMatrix.js +2 -3
  408. package/dist/table/PermissionMatrixGroupRows.js +3 -4
  409. package/dist/table/PermissionMatrixRowLabel.js +1 -2
  410. package/dist/table/dataTableCellPadding.js +1 -2
  411. package/dist/table/dataTableFilterFields.js +1 -2
  412. package/dist/table/dataTablePersistence.js +1 -2
  413. package/dist/table/dataTableSquareRight.js +1 -2
  414. package/dist/table/index.js +4 -4
  415. package/dist/table/paginateLocal.js +1 -2
  416. package/dist/table/queryFilters.js +1 -2
  417. package/dist/table/queryFilters.js.map +1 -1
  418. package/dist/table/useDataTableColumns.js +1 -2
  419. package/dist/table/useDataTableData.d.ts +2 -2
  420. package/dist/table/useDataTableData.d.ts.map +1 -1
  421. package/dist/table/useDataTableData.js +1 -2
  422. package/dist/table/useDataTableFilterForm.js +2 -3
  423. package/dist/table/useDataTableFilterVisibility.js +1 -2
  424. package/dist/table/useDataTableRefresh.js +1 -2
  425. package/dist/table/useDataTableSummary.js +1 -2
  426. package/dist/table/useTableSelection.js +1 -2
  427. package/dist/tree/TreeView.js +1 -2
  428. package/dist/tree/TreeViewRenameInput.js +1 -2
  429. package/dist/tree/TreeViewResizer.js +1 -2
  430. package/dist/tree/TreeViewRow.js +2 -3
  431. package/dist/tree/index.js +1 -1
  432. package/dist/tree/treeModel.js +1 -2
  433. package/dist/tree/useTreeState.js +1 -2
  434. package/package.json +16 -16
  435. package/src/account/__tests__/AccountLayout.browser.spec.tsx +2 -2
  436. package/src/account/__tests__/AccountRouter.spec.ts +1 -1
  437. package/src/admin/AdminAudits.tsx +1 -1
  438. package/src/admin/AdminFiles.tsx +1 -1
  439. package/src/admin/AdminFilesUsage.tsx +1 -2
  440. package/src/admin/AdminNotifications.tsx +2 -5
  441. package/src/admin/AdminNotificationsPreviewTab.tsx +2 -2
  442. package/src/admin/AdminParameters.tsx +1 -3
  443. package/src/admin/AdminParametersEditorForm.tsx +1 -1
  444. package/src/admin/AdminParametersEditorPane.tsx +1 -1
  445. package/src/admin/ParameterHistoryItem.tsx +1 -3
  446. package/src/admin/__tests__/AdminNavI18n.browser.spec.tsx +1 -1
  447. package/src/admin/__tests__/AdminStatusLabels.browser.spec.tsx +1 -1
  448. package/src/admin/analytics/analyticsModel.spec.ts +6 -6
  449. package/src/auth/AuthRegister.tsx +1 -3
  450. package/src/form/ControlArray.tsx +1 -1
  451. package/src/form/ControlObject.tsx +1 -1
  452. package/src/form/ControlUpload.tsx +1 -1
  453. package/src/form/__tests__/ControlDateLanguage.browser.spec.tsx +1 -1
  454. package/src/form/__tests__/ControlDateRange.browser.spec.tsx +1 -1
  455. package/src/form/__tests__/ControlObjectClear.browser.spec.tsx +2 -2
  456. package/src/form/__tests__/ControlSelectClearLabel.browser.spec.tsx +1 -1
  457. package/src/form/__tests__/ControlSelectDeselect.browser.spec.tsx +1 -3
  458. package/src/form/__tests__/ControlSelectMulti.browser.spec.tsx +2 -2
  459. package/src/form/__tests__/ControlSelectSearchable.browser.spec.tsx +1 -1
  460. package/src/form/__tests__/ControlSelectSizeMinimal.browser.spec.tsx +2 -2
  461. package/src/form/__tests__/ControlSelectTriggerProps.browser.spec.tsx +1 -3
  462. package/src/markdown/diagram/layoutFlowchart.ts +1 -1
  463. package/src/organizations/__tests__/OrganizationRanks.browser.spec.tsx +1 -1
  464. package/src/organizations/__tests__/OrganizationTransferOwnershipDialog.browser.spec.tsx +1 -1
  465. package/src/shell/AppShellSidebarNavItem.tsx +8 -0
  466. package/src/shell/ButtonLanguage.tsx +1 -1
  467. package/src/shell/ButtonSettingsLanguageMenu.tsx +1 -1
  468. package/src/shell/PlateTabBar.tsx +6 -0
  469. package/src/shell/__tests__/AppActions.browser.spec.tsx +1 -1
  470. package/src/shell/__tests__/ButtonInbox.browser.spec.tsx +1 -1
  471. package/src/shell/__tests__/ButtonSettings.browser.spec.tsx +1 -1
  472. package/src/shell/__tests__/ButtonUserAvatar.browser.spec.tsx +1 -1
  473. package/src/shell/__tests__/SidebarNavAutoClose.browser.spec.tsx +1 -1
  474. package/src/shell/appShellNav.tsx +6 -0
  475. package/src/table/DataTableFilterBar.tsx +1 -1
  476. package/src/table/queryFilters.ts +1 -1
@@ -5,7 +5,7 @@ import { useNavTree } from "./useNavTree.js";
5
5
  import { useRouterState } from "alepha/react/router";
6
6
  import { useMemo } from "react";
7
7
  import { jsx } from "react/jsx-runtime";
8
- //#region src/shell/NavShell.tsx
8
+ // src/shell/NavShell.tsx
9
9
  /**
10
10
  * Data-driven {@link AppShell}: the sidebar nav and breadcrumb trail are
11
11
  * derived from the route tree under `root` (via each `$page`'s `nav`
@@ -47,7 +47,6 @@ function markActive(items, current) {
47
47
  children: item.children ? markActive(item.children, current) : item.children
48
48
  }));
49
49
  }
50
- //#endregion
51
50
  export { NavShell };
52
51
 
53
52
  //# sourceMappingURL=NavShell.js.map
@@ -1,7 +1,7 @@
1
1
  import { useEffect, useRef, useState } from "react";
2
2
  import { jsx } from "react/jsx-runtime";
3
3
  import { useEvents } from "alepha/react";
4
- //#region src/shell/NavigationProgress.tsx
4
+ // src/shell/NavigationProgress.tsx
5
5
  const NavigationProgress = (props) => {
6
6
  const [progress, setProgress] = useState(0);
7
7
  const [isLoading, setIsLoading] = useState(false);
@@ -53,7 +53,6 @@ const NavigationProgress = (props) => {
53
53
  })
54
54
  });
55
55
  };
56
- //#endregion
57
56
  export { NavigationProgress, NavigationProgress as default };
58
57
 
59
58
  //# sourceMappingURL=NavigationProgress.js.map
@@ -1,7 +1,7 @@
1
1
  import { cn } from "../core/utils.js";
2
2
  import { PlateTabBar } from "./PlateTabBar.js";
3
3
  import { jsx, jsxs } from "react/jsx-runtime";
4
- //#region src/shell/PlateLayout.tsx
4
+ // src/shell/PlateLayout.tsx
5
5
  /**
6
6
  * A full-width plate over a tab strip, and a body that scrolls under both.
7
7
  *
@@ -32,7 +32,6 @@ const PlateLayout = (props) => /* @__PURE__ */ jsxs("div", {
32
32
  children: props.children
33
33
  })]
34
34
  });
35
- //#endregion
36
35
  export { PlateLayout };
37
36
 
38
37
  //# sourceMappingURL=PlateLayout.js.map
@@ -28,6 +28,11 @@ export interface PlateTab {
28
28
  * middle-click, copy-link and the back button all depend on it.
29
29
  */
30
30
  href?: string;
31
+ /**
32
+ * When to fetch a tab that is a link ahead of the click. Loader data comes
33
+ * with the code when the page's `prefetch` says it may.
34
+ */
35
+ prefetch?: "hover" | "visible";
31
36
  }
32
37
  export interface PlateTabBarProps {
33
38
  tabs: PlateTab[];
@@ -1 +1 @@
1
- {"version":3,"file":"PlateTabBar.d.ts","sourceRoot":"","sources":["../../src/shell/PlateTabBar.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D,MAAM,WAAW,QAAQ;IACvB;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB;;;;;;;;;OASG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;;;OAOG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,QAAQ,EAAE,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;;;;;OAQG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,UAAW,gBAAgB,gCAiFlD,CAAC"}
1
+ {"version":3,"file":"PlateTabBar.d.ts","sourceRoot":"","sources":["../../src/shell/PlateTabBar.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D,MAAM,WAAW,QAAQ;IACvB;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB;;;;;;;;;OASG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;;;OAOG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAChC;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,QAAQ,EAAE,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;;;;;OAQG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,UAAW,gBAAgB,gCAkFlD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { cn } from "../core/utils.js";
2
2
  import { Link } from "alepha/react/router";
3
3
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
4
- //#region src/shell/PlateTabBar.tsx
4
+ // src/shell/PlateTabBar.tsx
5
5
  /**
6
6
  * Underlined tabs along the bottom edge of a {@link PlateLayout}'s plate.
7
7
  *
@@ -32,6 +32,7 @@ const PlateTabBar = (props) => {
32
32
  ] });
33
33
  return tab.href !== void 0 ? /* @__PURE__ */ jsx(Link, {
34
34
  href: tab.href,
35
+ prefetch: tab.prefetch,
35
36
  "aria-current": active ? "page" : void 0,
36
37
  className,
37
38
  children: body
@@ -46,7 +47,6 @@ const PlateTabBar = (props) => {
46
47
  })
47
48
  });
48
49
  };
49
- //#endregion
50
50
  export { PlateTabBar };
51
51
 
52
52
  //# sourceMappingURL=PlateTabBar.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PlateTabBar.js","names":[],"sources":["../../src/shell/PlateTabBar.tsx"],"sourcesContent":["import { Link } from \"alepha/react/router\";\n\nimport { cn } from \"../core/utils.ts\";\nimport type { IconComponent } from \"../form/iconHint.tsx\";\n\nexport interface PlateTab {\n /**\n * Identifies the tab. Compared against {@link PlateTabBarProps.active}, and\n * handed back to {@link PlateTabBarProps.onSelect}. For a router-driven bar\n * this is the route name.\n */\n key: string;\n label: string;\n icon?: IconComponent;\n /**\n * A trailing count, in a pill of its own rather than folded into the label.\n * The pill's colour follows the tab's state - `text-foreground` active,\n * `text-muted-foreground` not - and a count written into the label would\n * carry one fixed class that is wrong on one of the two. Same reason\n * `Segmented` has a `count` prop.\n *\n * Show it only once its collection has resolved: `undefined` renders the\n * bare label rather than a confident \"0\".\n */\n count?: number;\n /**\n * Makes this tab a NAVIGATION rather than a state change. Present, the tab\n * is a router `Link` and `onSelect` is not called; absent, it is a button.\n *\n * Both shapes exist because both are real: a tab that swaps a panel inside\n * one route is state, and a tab that is its own route has to be a link -\n * middle-click, copy-link and the back button all depend on it.\n */\n href?: string;\n}\n\nexport interface PlateTabBarProps {\n tabs: PlateTab[];\n active: string;\n /**\n * Called for a tab with no `href`. A router-driven bar passes nothing.\n */\n onSelect?: (key: string) => void;\n /**\n * Marks the bar for tests. Worth setting: tab labels are ordinary words\n * (\"Overview\", \"Settings\") that a page-wide `getByRole` finds in the tab\n * BODIES too, and \"Settings\" is also a project-level nav entry.\n */\n testId?: string;\n /**\n * Whether to rule off the top edge. Default `true`.\n *\n * The line separates the tabs from the plate above them, so it is only\n * right when there IS one. `PlateLayout` derives this from its own `plate`\n * slot; a bar with no plate above it would otherwise draw a stray line\n * immediately under the container's top edge, which is what a caller\n * omitting the plate for the first time discovered (feedback #2095).\n */\n divided?: boolean;\n}\n\n/**\n * Underlined tabs along the bottom edge of a {@link PlateLayout}'s plate.\n *\n * Underlines rather than `Segmented`, which sits inside a toolbar as a\n * control. This bar IS the bottom edge of a full-width band, and a pill group\n * floating on that edge reads as a widget dropped onto the header rather than\n * as the header's own last row.\n */\nexport const PlateTabBar = (props: PlateTabBarProps) => {\n // A bar of links is a NAVIGATION, not a tablist, and its items are links\n // rather than tabs. `role=\"tab\"` on an anchor overrides the implicit link\n // role, which takes it out of `getByRole(\"link\")` and tells a screen reader\n // it swaps a panel when it actually leaves the page. `aria-current=\"page\"`\n // is what marks the current one in a set of navigation links.\n const navigates = props.tabs.every((tab) => tab.href !== undefined);\n\n return (\n <div\n data-testid={props.testId}\n className={cn(\n // The table header's surface, and for the same reason: this strip is\n // chrome, not body. `bg-muted` under a `--bevel` line laid just inside\n // the top edge - two adjacent lines of opposite polarity read as a\n // fold - so the band looks raised out of the page rather than painted\n // onto it. Opaque like the sticky table header, not the base header's\n // `bg-muted/50`: the plate above is already translucent over the page,\n // and stacking a second wash on it makes the two bands differ by a\n // couple of percent instead of reading as one raised object.\n //\n // The border above the bevel is whichever line closes the top edge:\n // the bar's own `border-t` when there is a plate, and the shell\n // header's bottom border when there is not. Both are `--border`, so\n // the fold reads the same either way.\n // `overflow-x-auto` so a bar wider than a phone scrolls sideways\n // instead of widening the page; the tabs never wrap or shrink.\n \"bg-muted border-border flex gap-5 overflow-x-auto px-6 shadow-[inset_0_1px_0_0_var(--bevel)]\",\n props.divided !== false && \"border-t\",\n )}\n role={navigates ? \"navigation\" : \"tablist\"}\n >\n {props.tabs.map((tab) => {\n const active = tab.key === props.active;\n const className = cn(\n \"-mb-px inline-flex h-[42px] shrink-0 items-center gap-[7px] border-b-2 text-[13.5px] font-medium whitespace-nowrap transition-colors\",\n active\n ? \"border-primary text-foreground\"\n : \"text-muted-foreground hover:text-foreground border-transparent\",\n );\n const body = (\n <>\n {tab.icon && <tab.icon className=\"size-[14px]\" aria-hidden />}\n {tab.label}\n {tab.count !== undefined && (\n <span\n className={cn(\n \"bg-foreground/10 inline-flex h-[18px] min-w-[18px] items-center justify-center rounded-full px-[5px] font-mono text-[10.5px]\",\n active ? \"text-foreground\" : \"text-muted-foreground\",\n )}\n >\n {tab.count}\n </span>\n )}\n </>\n );\n\n return tab.href !== undefined ? (\n <Link\n key={tab.key}\n href={tab.href}\n aria-current={active ? \"page\" : undefined}\n className={className}\n >\n {body}\n </Link>\n ) : (\n <button\n key={tab.key}\n type=\"button\"\n role=\"tab\"\n aria-selected={active}\n onClick={() => props.onSelect?.(tab.key)}\n className={className}\n >\n {body}\n </button>\n );\n })}\n </div>\n );\n};\n"],"mappings":";;;;;;;;;;;;AAqEA,MAAa,eAAe,UAA4B;CAMtD,MAAM,YAAY,MAAM,KAAK,OAAO,QAAQ,IAAI,SAAS,KAAA,CAAS;CAElE,OACE,oBAAC,OAAD;EACE,eAAa,MAAM;EACnB,WAAW,GAgBT,gGACA,MAAM,YAAY,SAAS,UAC7B;EACA,MAAM,YAAY,eAAe;EAEhC,UAAA,MAAM,KAAK,KAAK,QAAQ;GACvB,MAAM,SAAS,IAAI,QAAQ,MAAM;GACjC,MAAM,YAAY,GAChB,wIACA,SACI,mCACA,gEACN;GACA,MAAM,OACJ,qBAAA,UAAA,EAAA,UAAA;IACG,IAAI,QAAQ,oBAAC,IAAI,MAAL;KAAU,WAAU;KAAc,eAAA;IAAa,CAAA;IAC3D,IAAI;IACJ,IAAI,UAAU,KAAA,KACb,oBAAC,QAAD;KACE,WAAW,GACT,gIACA,SAAS,oBAAoB,uBAC/B;KAEC,UAAA,IAAI;IACD,CAAA;GAER,EAAA,CAAA;GAGJ,OAAO,IAAI,SAAS,KAAA,IAClB,oBAAC,MAAD;IAEE,MAAM,IAAI;IACV,gBAAc,SAAS,SAAS,KAAA;IACrB;IAEV,UAAA;GACG,GANC,IAAI,GAML,IAEN,oBAAC,UAAD;IAEE,MAAK;IACL,MAAK;IACL,iBAAe;IACf,eAAe,MAAM,WAAW,IAAI,GAAG;IAC5B;IAEV,UAAA;GACK,GARD,IAAI,GAQH;EAEZ,CAAC;CACE,CAAA;AAET"}
1
+ {"version":3,"file":"PlateTabBar.js","names":[],"sources":["../../src/shell/PlateTabBar.tsx"],"sourcesContent":["import { Link } from \"alepha/react/router\";\n\nimport { cn } from \"../core/utils.ts\";\nimport type { IconComponent } from \"../form/iconHint.tsx\";\n\nexport interface PlateTab {\n /**\n * Identifies the tab. Compared against {@link PlateTabBarProps.active}, and\n * handed back to {@link PlateTabBarProps.onSelect}. For a router-driven bar\n * this is the route name.\n */\n key: string;\n label: string;\n icon?: IconComponent;\n /**\n * A trailing count, in a pill of its own rather than folded into the label.\n * The pill's colour follows the tab's state - `text-foreground` active,\n * `text-muted-foreground` not - and a count written into the label would\n * carry one fixed class that is wrong on one of the two. Same reason\n * `Segmented` has a `count` prop.\n *\n * Show it only once its collection has resolved: `undefined` renders the\n * bare label rather than a confident \"0\".\n */\n count?: number;\n /**\n * Makes this tab a NAVIGATION rather than a state change. Present, the tab\n * is a router `Link` and `onSelect` is not called; absent, it is a button.\n *\n * Both shapes exist because both are real: a tab that swaps a panel inside\n * one route is state, and a tab that is its own route has to be a link -\n * middle-click, copy-link and the back button all depend on it.\n */\n href?: string;\n /**\n * When to fetch a tab that is a link ahead of the click. Loader data comes\n * with the code when the page's `prefetch` says it may.\n */\n prefetch?: \"hover\" | \"visible\";\n}\n\nexport interface PlateTabBarProps {\n tabs: PlateTab[];\n active: string;\n /**\n * Called for a tab with no `href`. A router-driven bar passes nothing.\n */\n onSelect?: (key: string) => void;\n /**\n * Marks the bar for tests. Worth setting: tab labels are ordinary words\n * (\"Overview\", \"Settings\") that a page-wide `getByRole` finds in the tab\n * BODIES too, and \"Settings\" is also a project-level nav entry.\n */\n testId?: string;\n /**\n * Whether to rule off the top edge. Default `true`.\n *\n * The line separates the tabs from the plate above them, so it is only\n * right when there IS one. `PlateLayout` derives this from its own `plate`\n * slot; a bar with no plate above it would otherwise draw a stray line\n * immediately under the container's top edge, which is what a caller\n * omitting the plate for the first time discovered (feedback #2095).\n */\n divided?: boolean;\n}\n\n/**\n * Underlined tabs along the bottom edge of a {@link PlateLayout}'s plate.\n *\n * Underlines rather than `Segmented`, which sits inside a toolbar as a\n * control. This bar IS the bottom edge of a full-width band, and a pill group\n * floating on that edge reads as a widget dropped onto the header rather than\n * as the header's own last row.\n */\nexport const PlateTabBar = (props: PlateTabBarProps) => {\n // A bar of links is a NAVIGATION, not a tablist, and its items are links\n // rather than tabs. `role=\"tab\"` on an anchor overrides the implicit link\n // role, which takes it out of `getByRole(\"link\")` and tells a screen reader\n // it swaps a panel when it actually leaves the page. `aria-current=\"page\"`\n // is what marks the current one in a set of navigation links.\n const navigates = props.tabs.every((tab) => tab.href !== undefined);\n\n return (\n <div\n data-testid={props.testId}\n className={cn(\n // The table header's surface, and for the same reason: this strip is\n // chrome, not body. `bg-muted` under a `--bevel` line laid just inside\n // the top edge - two adjacent lines of opposite polarity read as a\n // fold - so the band looks raised out of the page rather than painted\n // onto it. Opaque like the sticky table header, not the base header's\n // `bg-muted/50`: the plate above is already translucent over the page,\n // and stacking a second wash on it makes the two bands differ by a\n // couple of percent instead of reading as one raised object.\n //\n // The border above the bevel is whichever line closes the top edge:\n // the bar's own `border-t` when there is a plate, and the shell\n // header's bottom border when there is not. Both are `--border`, so\n // the fold reads the same either way.\n // `overflow-x-auto` so a bar wider than a phone scrolls sideways\n // instead of widening the page; the tabs never wrap or shrink.\n \"bg-muted border-border flex gap-5 overflow-x-auto px-6 shadow-[inset_0_1px_0_0_var(--bevel)]\",\n props.divided !== false && \"border-t\",\n )}\n role={navigates ? \"navigation\" : \"tablist\"}\n >\n {props.tabs.map((tab) => {\n const active = tab.key === props.active;\n const className = cn(\n \"-mb-px inline-flex h-[42px] shrink-0 items-center gap-[7px] border-b-2 text-[13.5px] font-medium whitespace-nowrap transition-colors\",\n active\n ? \"border-primary text-foreground\"\n : \"text-muted-foreground hover:text-foreground border-transparent\",\n );\n const body = (\n <>\n {tab.icon && <tab.icon className=\"size-[14px]\" aria-hidden />}\n {tab.label}\n {tab.count !== undefined && (\n <span\n className={cn(\n \"bg-foreground/10 inline-flex h-[18px] min-w-[18px] items-center justify-center rounded-full px-[5px] font-mono text-[10.5px]\",\n active ? \"text-foreground\" : \"text-muted-foreground\",\n )}\n >\n {tab.count}\n </span>\n )}\n </>\n );\n\n return tab.href !== undefined ? (\n <Link\n key={tab.key}\n href={tab.href}\n prefetch={tab.prefetch}\n aria-current={active ? \"page\" : undefined}\n className={className}\n >\n {body}\n </Link>\n ) : (\n <button\n key={tab.key}\n type=\"button\"\n role=\"tab\"\n aria-selected={active}\n onClick={() => props.onSelect?.(tab.key)}\n className={className}\n >\n {body}\n </button>\n );\n })}\n </div>\n );\n};\n"],"mappings":";;;;;;;;;;;;AA0EA,MAAa,eAAe,UAA4B;CAMtD,MAAM,YAAY,MAAM,KAAK,OAAO,QAAQ,IAAI,SAAS,KAAA,CAAS;CAElE,OACE,oBAAC,OAAD;EACE,eAAa,MAAM;EACnB,WAAW,GAgBT,gGACA,MAAM,YAAY,SAAS,UAC7B;EACA,MAAM,YAAY,eAAe;EAEhC,UAAA,MAAM,KAAK,KAAK,QAAQ;GACvB,MAAM,SAAS,IAAI,QAAQ,MAAM;GACjC,MAAM,YAAY,GAChB,wIACA,SACI,mCACA,gEACN;GACA,MAAM,OACJ,qBAAA,UAAA,EAAA,UAAA;IACG,IAAI,QAAQ,oBAAC,IAAI,MAAL;KAAU,WAAU;KAAc,eAAA;IAAa,CAAA;IAC3D,IAAI;IACJ,IAAI,UAAU,KAAA,KACb,oBAAC,QAAD;KACE,WAAW,GACT,gIACA,SAAS,oBAAoB,uBAC/B;KAEC,UAAA,IAAI;IACD,CAAA;GAER,EAAA,CAAA;GAGJ,OAAO,IAAI,SAAS,KAAA,IAClB,oBAAC,MAAD;IAEE,MAAM,IAAI;IACV,UAAU,IAAI;IACd,gBAAc,SAAS,SAAS,KAAA;IACrB;IAEV,UAAA;GACG,GAPC,IAAI,GAOL,IAEN,oBAAC,UAAD;IAEE,MAAK;IACL,MAAK;IACL,iBAAe;IACf,eAAe,MAAM,WAAW,IAAI,GAAG;IAC5B;IAEV,UAAA;GACK,GARD,IAAI,GAQH;EAEZ,CAAC;CACE,CAAA;AAET"}
@@ -1,7 +1,7 @@
1
1
  import { useSidebar } from "../core/Sidebar.js";
2
2
  import "react";
3
3
  import { jsx } from "react/jsx-runtime";
4
- //#region src/shell/SidebarNavAutoClose.tsx
4
+ // src/shell/SidebarNavAutoClose.tsx
5
5
  /**
6
6
  * Closes the mobile nav sheet when a link inside it is followed.
7
7
  *
@@ -42,7 +42,6 @@ const SidebarNavAutoClose = (props) => {
42
42
  children: props.children
43
43
  });
44
44
  };
45
- //#endregion
46
45
  export { SidebarNavAutoClose };
47
46
 
48
47
  //# sourceMappingURL=SidebarNavAutoClose.js.map
@@ -1,11 +1,11 @@
1
- import { useNavEntries } from "./useNavEntries.js";
2
1
  import { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList } from "../command/Command.js";
3
2
  import { spotlightSearchText } from "./spotlightSearchText.js";
3
+ import { useNavEntries } from "./useNavEntries.js";
4
4
  import { useRouter } from "alepha/react/router";
5
5
  import { useI18n } from "alepha/react/i18n";
6
6
  import { useCallback, useEffect, useMemo, useState } from "react";
7
7
  import { jsx, jsxs } from "react/jsx-runtime";
8
- //#region src/shell/Spotlight.tsx
8
+ // src/shell/Spotlight.tsx
9
9
  /**
10
10
  * Command palette over the navigation tree. Opens on ⌘K / Ctrl+K (or via
11
11
  * controlled `open`), searches page labels / keywords / descriptions, and
@@ -96,7 +96,6 @@ const Spotlight = (props) => {
96
96
  })
97
97
  });
98
98
  };
99
- //#endregion
100
99
  export { Spotlight };
101
100
 
102
101
  //# sourceMappingURL=Spotlight.js.map
@@ -6,6 +6,12 @@ export interface NavItem {
6
6
  * Required for leaf items. Ignored when `children` is provided (the parent becomes a toggle group).
7
7
  */
8
8
  href?: string;
9
+ /**
10
+ * When to fetch the page's code ahead of the click. `false` turns it off.
11
+ *
12
+ * @default "hover"
13
+ */
14
+ prefetch?: "hover" | "visible" | false;
9
15
  /**
10
16
  * Either an icon *component* (e.g. a lucide `Users`) which is instantiated
11
17
  * with the row's sizing className, or an already-rendered ReactNode element
@@ -1 +1 @@
1
- {"version":3,"file":"appShellNav.d.ts","sourceRoot":"","sources":["../../src/shell/appShellNav.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEhE,KAAK,QAAQ,GAAG,aAAa,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC;AAEvD,MAAM,WAAW,OAAO;IACtB,KAAK,EAAE,SAAS,CAAC;IACjB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;;OAKG;IACH,IAAI,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IAC5B;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC;IACrB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;CACrB;AAED,MAAM,WAAW,QAAQ;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,OAAO,EAAE,CAAC;CAClB;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO,CAG1D;AAED;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;CACvC;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,OAAO,CAG5E;AAED,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,GAAG,OAAO,CAE1D;AAED;;;;;;;;GAQG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,QAAQ,EAAE,GAAG,MAAM,EAAE,CAuBtD;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC,EACrB,SAAS,EAAE,MAAM,GAChB,SAAS,CAgBX"}
1
+ {"version":3,"file":"appShellNav.d.ts","sourceRoot":"","sources":["../../src/shell/appShellNav.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEhE,KAAK,QAAQ,GAAG,aAAa,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC;AAEvD,MAAM,WAAW,OAAO;IACtB,KAAK,EAAE,SAAS,CAAC;IACjB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,KAAK,CAAC;IACvC;;;;;OAKG;IACH,IAAI,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IAC5B;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC;IACrB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;CACrB;AAED,MAAM,WAAW,QAAQ;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,OAAO,EAAE,CAAC;CAClB;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO,CAG1D;AAED;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;CACvC;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,OAAO,CAG5E;AAED,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,GAAG,OAAO,CAE1D;AAED;;;;;;;;GAQG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,QAAQ,EAAE,GAAG,MAAM,EAAE,CAuBtD;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC,EACrB,SAAS,EAAE,MAAM,GAChB,SAAS,CAgBX"}
@@ -1,6 +1,6 @@
1
1
  import * as React from "react";
2
2
  import { jsx } from "react/jsx-runtime";
3
- //#region src/shell/appShellNav.tsx
3
+ // src/shell/appShellNav.tsx
4
4
  function hasActiveDescendant(item) {
5
5
  if (item.active) return true;
6
6
  return (item.children ?? []).some(hasActiveDescendant);
@@ -57,7 +57,6 @@ function renderNavIcon(icon, className) {
57
57
  }
58
58
  return /* @__PURE__ */ jsx(icon, { className });
59
59
  }
60
- //#endregion
61
60
  export { findOpenPath, hasActiveDescendant, isOpenPathPrefix, renderNavIcon, samePath };
62
61
 
63
62
  //# sourceMappingURL=appShellNav.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"appShellNav.js","names":["Icon"],"sources":["../../src/shell/appShellNav.tsx"],"sourcesContent":["import * as React from \"react\";\n\nvoid React;\n\nimport type { ComponentType, ReactNode, SVGProps } from \"react\";\n\ntype IconType = ComponentType<SVGProps<SVGSVGElement>>;\n\nexport interface NavItem {\n label: ReactNode;\n /**\n * Required for leaf items. Ignored when `children` is provided (the parent becomes a toggle group).\n */\n href?: string;\n /**\n * Either an icon *component* (e.g. a lucide `Users`) which is instantiated\n * with the row's sizing className, or an already-rendered ReactNode element\n * (e.g. `<Users />`). The latter lets nav metadata declared on a `$page`\n * (which is pure React) carry its icon as a node — see `useNavTree`.\n */\n icon?: IconType | ReactNode;\n /**\n * When provided, renders as the active marker. Compare against current path.\n */\n active?: boolean;\n /**\n * Nested items. When set, the parent becomes a collapsible group.\n */\n children?: NavItem[];\n /**\n * Initial open state for groups. Defaults to true if any descendant is active.\n */\n defaultOpen?: boolean;\n /**\n * Optional trailing badge (e.g. unread count). Hidden when the sidebar is collapsed to icons.\n */\n badge?: ReactNode;\n /**\n * When true the item is rendered muted, navigation is blocked, and the\n * `tooltip` (if any) explains why. Use for paywalled / unavailable entries.\n */\n disabled?: boolean;\n /**\n * Hover tooltip shown on the row regardless of sidebar state. When the\n * item is `disabled`, this is the explanation surface (HoverCard, with\n * room to breathe). When the item is enabled, it surfaces as a regular\n * Tooltip on the trigger.\n */\n tooltip?: ReactNode;\n}\n\nexport interface NavGroup {\n label?: string;\n items: NavItem[];\n}\n\nexport function hasActiveDescendant(item: NavItem): boolean {\n if (item.active) return true;\n return (item.children ?? []).some(hasActiveDescendant);\n}\n\n/**\n * The one open branch of the nav tree, when `navAccordion` is on.\n *\n * A single path rather than a set of open ids, because \"one group open\" has to\n * mean one group open PER LEVEL: a nested group closing its own parent to open\n * itself would be a bug, not exclusivity. A path says both things at once - a\n * group is open exactly when its path is a prefix of this one, so opening a\n * sibling replaces the path (the sibling closes) while opening a child extends\n * it (the parent stays).\n *\n * Paths are indices into `nav`: `[groupIndex, itemIndex, ...childIndex]`.\n */\nexport interface NavAccordion {\n openPath: number[];\n setOpenPath: (path: number[]) => void;\n}\n\nexport function isOpenPathPrefix(path: number[], openPath: number[]): boolean {\n if (path.length === 0 || path.length > openPath.length) return false;\n return path.every((index, depth) => openPath[depth] === index);\n}\n\nexport function samePath(a: number[], b: number[]): boolean {\n return a.length === b.length && a.every((index, i) => b[i] === index);\n}\n\n/**\n * The path the accordion should be showing: the DEEPEST group holding the\n * active page, or failing that the first group asking for `defaultOpen`.\n *\n * Computed here, from the tree, rather than reported upwards by the item that\n * notices it is active. An item cannot set its parent's state during render\n * (React refuses to update another component mid-render), and doing it in an\n * effect costs a frame of the wrong group being open on every navigation.\n */\nexport function findOpenPath(nav: NavGroup[]): number[] {\n let fallback: number[] = [];\n\n const walk = (item: NavItem, path: number[]): number[] | undefined => {\n const children = item.children ?? [];\n if (children.length === 0) return undefined;\n for (let ci = 0; ci < children.length; ci++) {\n const deeper = walk(children[ci]!, [...path, ci]);\n if (deeper) return deeper;\n }\n if (hasActiveDescendant(item)) return path;\n if (fallback.length === 0 && item.defaultOpen) fallback = path;\n return undefined;\n };\n\n for (let gi = 0; gi < nav.length; gi++) {\n const items = nav[gi]?.items ?? [];\n for (let ii = 0; ii < items.length; ii++) {\n const found = walk(items[ii]!, [gi, ii]);\n if (found) return found;\n }\n }\n return fallback;\n}\n\n/**\n * Render a NavItem icon. An already-created element (e.g. `<Users />`, which\n * `React.isValidElement` recognises) is returned as-is; anything else is\n * treated as a component *type* — including lucide's `forwardRef` icons, which\n * are objects rather than plain functions — and instantiated with the row's\n * sizing className.\n */\nexport function renderNavIcon(\n icon: NavItem[\"icon\"],\n className: string,\n): ReactNode {\n if (icon == null || icon === false) return null;\n if (React.isValidElement(icon)) {\n // Already an element (e.g. `<Users />`): clone it to apply the row's sizing\n // className so element icons render at the same size as component icons,\n // merging with any className the caller already set.\n const existing = (icon.props as { className?: string })?.className;\n return React.cloneElement(\n icon as React.ReactElement<{ className?: string }>,\n {\n className: existing ? `${existing} ${className}` : className,\n },\n );\n }\n const Icon = icon as IconType;\n return <Icon className={className} />;\n}\n"],"mappings":";;;AAwDA,SAAgB,oBAAoB,MAAwB;CAC1D,IAAI,KAAK,QAAQ,OAAO;CACxB,QAAQ,KAAK,YAAY,CAAC,EAAA,CAAG,KAAK,mBAAmB;AACvD;AAmBA,SAAgB,iBAAiB,MAAgB,UAA6B;CAC5E,IAAI,KAAK,WAAW,KAAK,KAAK,SAAS,SAAS,QAAQ,OAAO;CAC/D,OAAO,KAAK,OAAO,OAAO,UAAU,SAAS,WAAW,KAAK;AAC/D;AAEA,SAAgB,SAAS,GAAa,GAAsB;CAC1D,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,OAAO,MAAM,EAAE,OAAO,KAAK;AACtE;;;;;;;;;;AAWA,SAAgB,aAAa,KAA2B;CACtD,IAAI,WAAqB,CAAC;CAE1B,MAAM,QAAQ,MAAe,SAAyC;EACpE,MAAM,WAAW,KAAK,YAAY,CAAC;EACnC,IAAI,SAAS,WAAW,GAAG,OAAO,KAAA;EAClC,KAAK,IAAI,KAAK,GAAG,KAAK,SAAS,QAAQ,MAAM;GAC3C,MAAM,SAAS,KAAK,SAAS,KAAM,CAAC,GAAG,MAAM,EAAE,CAAC;GAChD,IAAI,QAAQ,OAAO;EACrB;EACA,IAAI,oBAAoB,IAAI,GAAG,OAAO;EACtC,IAAI,SAAS,WAAW,KAAK,KAAK,aAAa,WAAW;CAE5D;CAEA,KAAK,IAAI,KAAK,GAAG,KAAK,IAAI,QAAQ,MAAM;EACtC,MAAM,QAAQ,IAAI,GAAG,EAAE,SAAS,CAAC;EACjC,KAAK,IAAI,KAAK,GAAG,KAAK,MAAM,QAAQ,MAAM;GACxC,MAAM,QAAQ,KAAK,MAAM,KAAM,CAAC,IAAI,EAAE,CAAC;GACvC,IAAI,OAAO,OAAO;EACpB;CACF;CACA,OAAO;AACT;;;;;;;;AASA,SAAgB,cACd,MACA,WACW;CACX,IAAI,QAAQ,QAAQ,SAAS,OAAO,OAAO;CAC3C,IAAI,MAAM,eAAe,IAAI,GAAG;EAI9B,MAAM,WAAY,KAAK,OAAkC;EACzD,OAAO,MAAM,aACX,MACA,EACE,WAAW,WAAW,GAAG,SAAS,GAAG,cAAc,UACrD,CACF;CACF;CAEA,OAAO,oBAACA,MAAD,EAAiB,UAAY,CAAA;AACtC"}
1
+ {"version":3,"file":"appShellNav.js","names":["Icon"],"sources":["../../src/shell/appShellNav.tsx"],"sourcesContent":["import * as React from \"react\";\n\nvoid React;\n\nimport type { ComponentType, ReactNode, SVGProps } from \"react\";\n\ntype IconType = ComponentType<SVGProps<SVGSVGElement>>;\n\nexport interface NavItem {\n label: ReactNode;\n /**\n * Required for leaf items. Ignored when `children` is provided (the parent becomes a toggle group).\n */\n href?: string;\n /**\n * When to fetch the page's code ahead of the click. `false` turns it off.\n *\n * @default \"hover\"\n */\n prefetch?: \"hover\" | \"visible\" | false;\n /**\n * Either an icon *component* (e.g. a lucide `Users`) which is instantiated\n * with the row's sizing className, or an already-rendered ReactNode element\n * (e.g. `<Users />`). The latter lets nav metadata declared on a `$page`\n * (which is pure React) carry its icon as a node — see `useNavTree`.\n */\n icon?: IconType | ReactNode;\n /**\n * When provided, renders as the active marker. Compare against current path.\n */\n active?: boolean;\n /**\n * Nested items. When set, the parent becomes a collapsible group.\n */\n children?: NavItem[];\n /**\n * Initial open state for groups. Defaults to true if any descendant is active.\n */\n defaultOpen?: boolean;\n /**\n * Optional trailing badge (e.g. unread count). Hidden when the sidebar is collapsed to icons.\n */\n badge?: ReactNode;\n /**\n * When true the item is rendered muted, navigation is blocked, and the\n * `tooltip` (if any) explains why. Use for paywalled / unavailable entries.\n */\n disabled?: boolean;\n /**\n * Hover tooltip shown on the row regardless of sidebar state. When the\n * item is `disabled`, this is the explanation surface (HoverCard, with\n * room to breathe). When the item is enabled, it surfaces as a regular\n * Tooltip on the trigger.\n */\n tooltip?: ReactNode;\n}\n\nexport interface NavGroup {\n label?: string;\n items: NavItem[];\n}\n\nexport function hasActiveDescendant(item: NavItem): boolean {\n if (item.active) return true;\n return (item.children ?? []).some(hasActiveDescendant);\n}\n\n/**\n * The one open branch of the nav tree, when `navAccordion` is on.\n *\n * A single path rather than a set of open ids, because \"one group open\" has to\n * mean one group open PER LEVEL: a nested group closing its own parent to open\n * itself would be a bug, not exclusivity. A path says both things at once - a\n * group is open exactly when its path is a prefix of this one, so opening a\n * sibling replaces the path (the sibling closes) while opening a child extends\n * it (the parent stays).\n *\n * Paths are indices into `nav`: `[groupIndex, itemIndex, ...childIndex]`.\n */\nexport interface NavAccordion {\n openPath: number[];\n setOpenPath: (path: number[]) => void;\n}\n\nexport function isOpenPathPrefix(path: number[], openPath: number[]): boolean {\n if (path.length === 0 || path.length > openPath.length) return false;\n return path.every((index, depth) => openPath[depth] === index);\n}\n\nexport function samePath(a: number[], b: number[]): boolean {\n return a.length === b.length && a.every((index, i) => b[i] === index);\n}\n\n/**\n * The path the accordion should be showing: the DEEPEST group holding the\n * active page, or failing that the first group asking for `defaultOpen`.\n *\n * Computed here, from the tree, rather than reported upwards by the item that\n * notices it is active. An item cannot set its parent's state during render\n * (React refuses to update another component mid-render), and doing it in an\n * effect costs a frame of the wrong group being open on every navigation.\n */\nexport function findOpenPath(nav: NavGroup[]): number[] {\n let fallback: number[] = [];\n\n const walk = (item: NavItem, path: number[]): number[] | undefined => {\n const children = item.children ?? [];\n if (children.length === 0) return undefined;\n for (let ci = 0; ci < children.length; ci++) {\n const deeper = walk(children[ci]!, [...path, ci]);\n if (deeper) return deeper;\n }\n if (hasActiveDescendant(item)) return path;\n if (fallback.length === 0 && item.defaultOpen) fallback = path;\n return undefined;\n };\n\n for (let gi = 0; gi < nav.length; gi++) {\n const items = nav[gi]?.items ?? [];\n for (let ii = 0; ii < items.length; ii++) {\n const found = walk(items[ii]!, [gi, ii]);\n if (found) return found;\n }\n }\n return fallback;\n}\n\n/**\n * Render a NavItem icon. An already-created element (e.g. `<Users />`, which\n * `React.isValidElement` recognises) is returned as-is; anything else is\n * treated as a component *type* — including lucide's `forwardRef` icons, which\n * are objects rather than plain functions — and instantiated with the row's\n * sizing className.\n */\nexport function renderNavIcon(\n icon: NavItem[\"icon\"],\n className: string,\n): ReactNode {\n if (icon == null || icon === false) return null;\n if (React.isValidElement(icon)) {\n // Already an element (e.g. `<Users />`): clone it to apply the row's sizing\n // className so element icons render at the same size as component icons,\n // merging with any className the caller already set.\n const existing = (icon.props as { className?: string })?.className;\n return React.cloneElement(\n icon as React.ReactElement<{ className?: string }>,\n {\n className: existing ? `${existing} ${className}` : className,\n },\n );\n }\n const Icon = icon as IconType;\n return <Icon className={className} />;\n}\n"],"mappings":";;;AA8DA,SAAgB,oBAAoB,MAAwB;CAC1D,IAAI,KAAK,QAAQ,OAAO;CACxB,QAAQ,KAAK,YAAY,CAAC,EAAA,CAAG,KAAK,mBAAmB;AACvD;AAmBA,SAAgB,iBAAiB,MAAgB,UAA6B;CAC5E,IAAI,KAAK,WAAW,KAAK,KAAK,SAAS,SAAS,QAAQ,OAAO;CAC/D,OAAO,KAAK,OAAO,OAAO,UAAU,SAAS,WAAW,KAAK;AAC/D;AAEA,SAAgB,SAAS,GAAa,GAAsB;CAC1D,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,OAAO,MAAM,EAAE,OAAO,KAAK;AACtE;;;;;;;;;;AAWA,SAAgB,aAAa,KAA2B;CACtD,IAAI,WAAqB,CAAC;CAE1B,MAAM,QAAQ,MAAe,SAAyC;EACpE,MAAM,WAAW,KAAK,YAAY,CAAC;EACnC,IAAI,SAAS,WAAW,GAAG,OAAO,KAAA;EAClC,KAAK,IAAI,KAAK,GAAG,KAAK,SAAS,QAAQ,MAAM;GAC3C,MAAM,SAAS,KAAK,SAAS,KAAM,CAAC,GAAG,MAAM,EAAE,CAAC;GAChD,IAAI,QAAQ,OAAO;EACrB;EACA,IAAI,oBAAoB,IAAI,GAAG,OAAO;EACtC,IAAI,SAAS,WAAW,KAAK,KAAK,aAAa,WAAW;CAE5D;CAEA,KAAK,IAAI,KAAK,GAAG,KAAK,IAAI,QAAQ,MAAM;EACtC,MAAM,QAAQ,IAAI,GAAG,EAAE,SAAS,CAAC;EACjC,KAAK,IAAI,KAAK,GAAG,KAAK,MAAM,QAAQ,MAAM;GACxC,MAAM,QAAQ,KAAK,MAAM,KAAM,CAAC,IAAI,EAAE,CAAC;GACvC,IAAI,OAAO,OAAO;EACpB;CACF;CACA,OAAO;AACT;;;;;;;;AASA,SAAgB,cACd,MACA,WACW;CACX,IAAI,QAAQ,QAAQ,SAAS,OAAO,OAAO;CAC3C,IAAI,MAAM,eAAe,IAAI,GAAG;EAI9B,MAAM,WAAY,KAAK,OAAkC;EACzD,OAAO,MAAM,aACX,MACA,EACE,WAAW,WAAW,GAAG,SAAS,GAAG,cAAc,UACrD,CACF;CACF;CAEA,OAAO,oBAACA,MAAD,EAAiB,UAAY,CAAA;AACtC"}
@@ -1,5 +1,5 @@
1
1
  import { $atom, z } from "alepha";
2
- //#region src/shell/inboxUnreadAtom.ts
2
+ // src/shell/inboxUnreadAtom.ts
3
3
  /**
4
4
  * How many messages the signed-in viewer has not read, **across every
5
5
  * scope**.
@@ -23,7 +23,6 @@ const inboxUnreadAtom = $atom({
23
23
  schema: z.object({ count: z.integer() }),
24
24
  default: { count: 0 }
25
25
  });
26
- //#endregion
27
26
  export { inboxUnreadAtom };
28
27
 
29
28
  //# sourceMappingURL=inboxUnreadAtom.js.map
@@ -1,20 +1,20 @@
1
+ import { ActionErrorToaster } from "./ActionErrorToaster.js";
1
2
  import { $pageNav } from "./$pageNav.js";
3
+ import { AppActions } from "./AppActions.js";
4
+ import { AppShell } from "./AppShell.js";
2
5
  import { ButtonDark } from "./ButtonDark.js";
6
+ import { ButtonInbox } from "./ButtonInbox.js";
3
7
  import { ButtonLanguage } from "./ButtonLanguage.js";
8
+ import { ButtonSettings } from "./ButtonSettings.js";
4
9
  import { ButtonTheme } from "./ButtonTheme.js";
5
10
  import { ButtonUser } from "./ButtonUser.js";
6
- import { ButtonSettings } from "./ButtonSettings.js";
7
- import { ActionErrorToaster } from "./ActionErrorToaster.js";
11
+ import { DetailAside } from "./DetailAside.js";
12
+ import { DetailLayout } from "./DetailLayout.js";
13
+ import { inboxUnreadAtom } from "./inboxUnreadAtom.js";
8
14
  import { NavigationProgress } from "./NavigationProgress.js";
9
- import { SidebarNavAutoClose } from "./SidebarNavAutoClose.js";
10
- import { AppShell } from "./AppShell.js";
11
15
  import { NavShell } from "./NavShell.js";
16
+ import { PlateLayout } from "./PlateLayout.js";
17
+ import { SidebarNavAutoClose } from "./SidebarNavAutoClose.js";
12
18
  import { Spotlight } from "./Spotlight.js";
13
- import { DetailLayout } from "./DetailLayout.js";
14
19
  import { useDetailTab } from "./useDetailTab.js";
15
- import { DetailAside } from "./DetailAside.js";
16
- import { AppActions } from "./AppActions.js";
17
- import { inboxUnreadAtom } from "./inboxUnreadAtom.js";
18
- import { ButtonInbox } from "./ButtonInbox.js";
19
- import { PlateLayout } from "./PlateLayout.js";
20
20
  export { $pageNav, ActionErrorToaster, AppActions, AppShell, ButtonDark, ButtonInbox, ButtonLanguage, ButtonSettings, ButtonTheme, ButtonUser, DetailAside, DetailLayout, NavShell, NavigationProgress, PlateLayout, SidebarNavAutoClose, Spotlight, inboxUnreadAtom, useDetailTab };
@@ -1,4 +1,4 @@
1
- //#region src/shell/navTreeUtil.ts
1
+ // src/shell/navTreeUtil.ts
2
2
  /**
3
3
  * A page's nav metadata, widened to the shell's own {@link NavMeta}.
4
4
  *
@@ -104,7 +104,6 @@ function keepDeepestActive(entries) {
104
104
  for (const entry of entries) if (entry.active && entry.href.length < deepest) entry.active = false;
105
105
  return entries;
106
106
  }
107
- //#endregion
108
107
  export { hasNavPermission, isActivePath, isDescendantOf, keepDeepestActive, navGroupLabel, navLabel, navMeta };
109
108
 
110
109
  //# sourceMappingURL=navTreeUtil.js.map
@@ -1,4 +1,4 @@
1
- //#region src/shell/spotlightSearchText.ts
1
+ // src/shell/spotlightSearchText.ts
2
2
  /**
3
3
  * A `ReactNode` label as searchable text. A component label contributes
4
4
  * nothing, which is what `nav.keywords` is for.
@@ -22,7 +22,6 @@ const spotlightSearchText = (entry) => {
22
22
  const value = `${entry.name} ${toText(entry.label)}`;
23
23
  return keywords.length > 0 ? `${value} ${keywords.join(" ")}` : value;
24
24
  };
25
- //#endregion
26
25
  export { spotlightSearchText };
27
26
 
28
27
  //# sourceMappingURL=spotlightSearchText.js.map
@@ -1,7 +1,7 @@
1
1
  import { z } from "alepha";
2
2
  import { useQueryParams } from "alepha/react/router";
3
3
  import { useCallback } from "react";
4
- //#region src/shell/useDetailTab.tsx
4
+ // src/shell/useDetailTab.tsx
5
5
  /**
6
6
  * `.tsx` despite holding no JSX, like `useConfirmedAction.tsx`: both were named
7
7
  * when the package exported one wildcard subpath per component, which resolved
@@ -31,7 +31,6 @@ const useDetailTab = (defaultTab) => {
31
31
  const setTab = useCallback((next) => setQuery({ tab: next }), [setQuery]);
32
32
  return [query.tab ?? defaultTab, setTab];
33
33
  };
34
- //#endregion
35
34
  export { useDetailTab };
36
35
 
37
36
  //# sourceMappingURL=useDetailTab.js.map
@@ -2,7 +2,7 @@ import { navLabel } from "./navTreeUtil.js";
2
2
  import { useRouterState } from "alepha/react/router";
3
3
  import { useI18n } from "alepha/react/i18n";
4
4
  import { useMemo } from "react";
5
- //#region src/shell/useNavBreadcrumbs.ts
5
+ // src/shell/useNavBreadcrumbs.ts
6
6
  /**
7
7
  * Derive the breadcrumb trail from the active route layers. Each rendered
8
8
  * layer that carries a route becomes a crumb (labelled via {@link navLabel});
@@ -37,7 +37,6 @@ function useNavBreadcrumbs(options) {
37
37
  lang
38
38
  ]);
39
39
  }
40
- //#endregion
41
40
  export { useNavBreadcrumbs };
42
41
 
43
42
  //# sourceMappingURL=useNavBreadcrumbs.js.map
@@ -3,7 +3,7 @@ import { useRouter, useRouterState } from "alepha/react/router";
3
3
  import { useI18n } from "alepha/react/i18n";
4
4
  import { useMemo } from "react";
5
5
  import { useAuth } from "alepha/react/auth";
6
- //#region src/shell/useNavEntries.ts
6
+ // src/shell/useNavEntries.ts
7
7
  /**
8
8
  * Flat, filtered, sorted list of nav entries for the subtree under `root`.
9
9
  * Filtering (hidden / permission / `can`), labelling and active-state matching
@@ -59,7 +59,6 @@ function useNavEntries(options) {
59
59
  lang
60
60
  ]);
61
61
  }
62
- //#endregion
63
62
  export { useNavEntries };
64
63
 
65
64
  //# sourceMappingURL=useNavEntries.js.map
@@ -1,6 +1,6 @@
1
1
  import { useNavEntries } from "./useNavEntries.js";
2
2
  import { useMemo } from "react";
3
- //#region src/shell/useNavTree.ts
3
+ // src/shell/useNavTree.ts
4
4
  /**
5
5
  * Derive sidebar navigation groups from the route tree. Built on the shared
6
6
  * {@link useNavEntries} (which handles filtering, permissions, `can`, labelling
@@ -42,7 +42,6 @@ function toNavItem(entry) {
42
42
  active: entry.active
43
43
  };
44
44
  }
45
- //#endregion
46
45
  export { useNavTree };
47
46
 
48
47
  //# sourceMappingURL=useNavTree.js.map
@@ -1,7 +1,7 @@
1
- import { cn } from "../core/utils.js";
2
1
  import { Table, TableHeader } from "../core/Table.js";
3
2
  import { useIsMobile } from "../core/useIsMobile.js";
4
3
  import { useToast } from "../core/useToast.js";
4
+ import { cn } from "../core/utils.js";
5
5
  import { DataTableBody } from "./DataTableBody.js";
6
6
  import { DataTableBulkBar } from "./DataTableBulkBar.js";
7
7
  import { DATA_TABLE_CELL_PADDING } from "./dataTableCellPadding.js";
@@ -23,7 +23,7 @@ import { useI18n } from "alepha/react/i18n";
23
23
  import { useCallback, useMemo, useRef, useState } from "react";
24
24
  import { jsx, jsxs } from "react/jsx-runtime";
25
25
  import { ClientOnly, useAlepha } from "alepha/react";
26
- //#region src/table/DataTable.tsx
26
+ // src/table/DataTable.tsx
27
27
  /**
28
28
  * A data table: server-side or static rows, sorting, filters, row and bulk
29
29
  * actions, persisted preferences.
@@ -358,7 +358,6 @@ const DataTable = (props) => {
358
358
  ]
359
359
  }) });
360
360
  };
361
- //#endregion
362
361
  export { DataTable };
363
362
 
364
363
  //# sourceMappingURL=DataTable.js.map
@@ -1,12 +1,12 @@
1
- import { cn } from "../core/utils.js";
2
- import { TableBody, TableCell, TableRow } from "../core/Table.js";
3
1
  import { Checkbox } from "../core/Checkbox.js";
2
+ import { TableBody, TableCell, TableRow } from "../core/Table.js";
3
+ import { cn } from "../core/utils.js";
4
4
  import { DataTableRowActionsMenu } from "./DataTableRowActionsMenu.js";
5
5
  import { DataTableSkeletonRows } from "./DataTableSkeletonRows.js";
6
6
  import { useI18n } from "alepha/react/i18n";
7
7
  import { Inbox, SearchX } from "lucide-react";
8
8
  import { jsx, jsxs } from "react/jsx-runtime";
9
- //#region src/table/DataTableBody.tsx
9
+ // src/table/DataTableBody.tsx
10
10
  /**
11
11
  * The table body: skeleton rows while the first page loads, the empty state
12
12
  * when the page came back empty, the rows otherwise.
@@ -82,7 +82,6 @@ const DataTableBody = (props) => {
82
82
  }, key);
83
83
  }) });
84
84
  };
85
- //#endregion
86
85
  export { DataTableBody };
87
86
 
88
87
  //# sourceMappingURL=DataTableBody.js.map
@@ -4,7 +4,7 @@ import { useI18n } from "alepha/react/i18n";
4
4
  import { Loader2, X } from "lucide-react";
5
5
  import { useState } from "react";
6
6
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
7
- //#region src/table/DataTableBulkBar.tsx
7
+ // src/table/DataTableBulkBar.tsx
8
8
  /**
9
9
  * The floating pill of bulk actions, shown while rows are selected.
10
10
  *
@@ -78,7 +78,6 @@ const DataTableBulkBar = (props) => {
78
78
  })
79
79
  });
80
80
  };
81
- //#endregion
82
81
  export { DataTableBulkBar };
83
82
 
84
83
  //# sourceMappingURL=DataTableBulkBar.js.map
@@ -1,10 +1,10 @@
1
- import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger } from "../core/DropdownMenu.js";
2
1
  import { Button } from "../core/Button.js";
2
+ import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger } from "../core/DropdownMenu.js";
3
3
  import { useI18n } from "alepha/react/i18n";
4
4
  import { ChevronUp, Loader2 } from "lucide-react";
5
5
  import { useCallback, useRef, useState } from "react";
6
6
  import { jsx, jsxs } from "react/jsx-runtime";
7
- //#region src/table/DataTableBulkMenu.tsx
7
+ // src/table/DataTableBulkMenu.tsx
8
8
  /**
9
9
  * The menu form of a bulk action, rendered in the selection pill.
10
10
  *
@@ -113,7 +113,6 @@ const DataTableBulkMenu = (props) => {
113
113
  })]
114
114
  });
115
115
  };
116
- //#endregion
117
116
  export { DataTableBulkMenu };
118
117
 
119
118
  //# sourceMappingURL=DataTableBulkMenu.js.map
@@ -1,12 +1,12 @@
1
- import { cn } from "../core/utils.js";
2
- import { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger } from "../core/DropdownMenu.js";
3
1
  import { Button } from "../core/Button.js";
2
+ import { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger } from "../core/DropdownMenu.js";
4
3
  import { Tooltip, TooltipContent, TooltipTrigger } from "../core/Tooltip.js";
4
+ import { cn } from "../core/utils.js";
5
5
  import { useI18n } from "alepha/react/i18n";
6
6
  import { ChevronDown, ChevronUp, Columns3, GripVertical } from "lucide-react";
7
7
  import { useState } from "react";
8
8
  import { jsx, jsxs } from "react/jsx-runtime";
9
- //#region src/table/DataTableColumnPicker.tsx
9
+ // src/table/DataTableColumnPicker.tsx
10
10
  /**
11
11
  * The single home for column state: what is shown, and in what order.
12
12
  *
@@ -85,7 +85,6 @@ const DataTableColumnPicker = (props) => {
85
85
  ] })
86
86
  })] });
87
87
  };
88
- //#endregion
89
88
  export { DataTableColumnPicker };
90
89
 
91
90
  //# sourceMappingURL=DataTableColumnPicker.js.map
@@ -1,10 +1,10 @@
1
- import { DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuShortcut, DropdownMenuTrigger } from "../core/DropdownMenu.js";
2
1
  import { Button } from "../core/Button.js";
2
+ import { DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuShortcut, DropdownMenuTrigger } from "../core/DropdownMenu.js";
3
3
  import { Tooltip, TooltipContent, TooltipTrigger } from "../core/Tooltip.js";
4
4
  import { useI18n } from "alepha/react/i18n";
5
5
  import { Plus } from "lucide-react";
6
6
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
7
- //#region src/table/DataTableFilterAdd.tsx
7
+ // src/table/DataTableFilterAdd.tsx
8
8
  /**
9
9
  * The small "+" at the end of a filter bar: what a reader presses to bring a
10
10
  * filter they are not currently using into view. Its tooltip and accessible
@@ -78,7 +78,6 @@ const DataTableFilterAdd = (props) => {
78
78
  })] })
79
79
  })] });
80
80
  };
81
- //#endregion
82
81
  export { DataTableFilterAdd };
83
82
 
84
83
  //# sourceMappingURL=DataTableFilterAdd.js.map
@@ -1,5 +1,5 @@
1
- import { Control } from "../form/Control.js";
2
1
  import { FilterSlot } from "../core/FilterSlot.js";
2
+ import { Control } from "../form/Control.js";
3
3
  import { DataTableFilterAdd } from "./DataTableFilterAdd.js";
4
4
  import { DataTableFilterControl } from "./DataTableFilterControl.js";
5
5
  import { DATA_TABLE_FILTER_OPERATORS, DataTableFilterOperator } from "./DataTableFilterOperator.js";
@@ -9,7 +9,7 @@ import { Calendar, List, Search, Type } from "lucide-react";
9
9
  import { useEffect, useLayoutEffect, useRef } from "react";
10
10
  import { jsx, jsxs } from "react/jsx-runtime";
11
11
  import { useFormValues } from "alepha/react/form";
12
- //#region src/table/DataTableFilterBar.tsx
12
+ // src/table/DataTableFilterBar.tsx
13
13
  /**
14
14
  * The filter bar `DataTable` draws from `filters.fields`: the locked filters
15
15
  * (the search box), then the filters the reader put on the bar, then the menu
@@ -231,7 +231,6 @@ const DataTableFilterBar = (props) => {
231
231
  })]
232
232
  });
233
233
  };
234
- //#endregion
235
234
  export { DataTableFilterBar };
236
235
 
237
236
  //# sourceMappingURL=DataTableFilterBar.js.map