@nivaro/react 0.3.114 → 0.3.116

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 (293) hide show
  1. package/dist/components/ScreenShareHost.js +24 -0
  2. package/dist/full.css +50 -2
  3. package/dist/hooks/useSessionRecorder.js +61 -60
  4. package/dist/index.d.ts +1728 -22
  5. package/dist/index.js +1091 -950
  6. package/dist/shared/components/ActivityEntry.js +209 -97
  7. package/dist/shared/components/AgentPresenceChip.js +51 -0
  8. package/dist/shared/components/AnnouncementBanner.js +56 -41
  9. package/dist/shared/components/AutolinkedText.js +98 -85
  10. package/dist/shared/components/BroadcastView.js +149 -141
  11. package/dist/shared/components/CacheStamp.js +78 -30
  12. package/dist/shared/components/CollectionBrowserView.js +4909 -4182
  13. package/dist/shared/components/ConfigChangeStrip.js +63 -0
  14. package/dist/shared/components/ConfigReachNote.js +107 -0
  15. package/dist/shared/components/ConformanceView.js +389 -319
  16. package/dist/shared/components/DataTable.js +612 -551
  17. package/dist/shared/components/DelegateCoverLine.js +164 -0
  18. package/dist/shared/components/EnvironmentNotice.js +56 -65
  19. package/dist/shared/components/FilePreviewLightbox.js +89 -43
  20. package/dist/shared/components/FindingFixedMark.js +23 -0
  21. package/dist/shared/components/GridPresenceLine.js +100 -0
  22. package/dist/shared/components/IdleReloadWatcher.js +82 -43
  23. package/dist/shared/components/InStep.js +46 -0
  24. package/dist/shared/components/ItemEditForm.js +5504 -4889
  25. package/dist/shared/components/LiveAnnouncer.js +62 -0
  26. package/dist/shared/components/LiveCount.js +54 -0
  27. package/dist/shared/components/LiveFigure.js +28 -0
  28. package/dist/shared/components/LiveListControls.js +114 -0
  29. package/dist/shared/components/LiveNewMatchesPill.js +25 -0
  30. package/dist/shared/components/LiveOffNote.js +44 -0
  31. package/dist/shared/components/LivePreferenceHost.js +42 -0
  32. package/dist/shared/components/LiveRowMark.js +25 -20
  33. package/dist/shared/components/LiveTraceView.js +257 -0
  34. package/dist/shared/components/MapView.js +30 -29
  35. package/dist/shared/components/MatrixEditor.js +497 -462
  36. package/dist/shared/components/MyWorkView.js +346 -272
  37. package/dist/shared/components/NotificationBell.js +215 -201
  38. package/dist/shared/components/OverflowRail.js +326 -0
  39. package/dist/shared/components/PageRenderer.js +636 -599
  40. package/dist/shared/components/PresenceDot.js +21 -0
  41. package/dist/shared/components/ProfileView.js +656 -536
  42. package/dist/shared/components/RealtimeStatusBanner.js +25 -25
  43. package/dist/shared/components/RecentRecordsRail.js +51 -48
  44. package/dist/shared/components/RecordCompare.js +241 -150
  45. package/dist/shared/components/RecordDrilldownSheet.js +66 -64
  46. package/dist/shared/components/RecordGridEditor.js +350 -311
  47. package/dist/shared/components/RecordHoverCard.js +147 -0
  48. package/dist/shared/components/RecordPeekHost.js +111 -0
  49. package/dist/shared/components/RecordReadView.js +414 -412
  50. package/dist/shared/components/RelativeTime.js +16 -0
  51. package/dist/shared/components/ReportView.js +1396 -1304
  52. package/dist/shared/components/ScreenRefreshButton.js +77 -0
  53. package/dist/shared/components/TabCountHost.js +10 -0
  54. package/dist/shared/components/TickerNumber.js +19 -18
  55. package/dist/shared/components/TipLayer.js +70 -58
  56. package/dist/shared/components/WidgetImageMenu.js +59 -0
  57. package/dist/shared/components/WidgetSlot.js +571 -524
  58. package/dist/shared/components/activity/RecordActivityStream.js +317 -0
  59. package/dist/shared/components/bulk/BulkSelectionNotices.js +220 -0
  60. package/dist/shared/components/cbv/approval-changed.js +20 -0
  61. package/dist/shared/components/cbv/changed-by-others.js +251 -0
  62. package/dist/shared/components/change-proposals/ChangeProposalsPanel.js +320 -0
  63. package/dist/shared/components/change-proposals/ProposalValue.js +28 -0
  64. package/dist/shared/components/change-proposals/ProposeChangeButton.js +44 -0
  65. package/dist/shared/components/change-proposals/ProposeChangeDialog.js +359 -0
  66. package/dist/shared/components/change-proposals/types.js +4 -0
  67. package/dist/shared/components/chat/ChatPanel.js +1571 -1528
  68. package/dist/shared/components/chat/Composer.js +276 -298
  69. package/dist/shared/components/chat/room-due.js +13 -0
  70. package/dist/shared/components/collections-directory/CollectionRow.js +76 -75
  71. package/dist/shared/components/collections-directory/CollectionsDirectory.js +415 -395
  72. package/dist/shared/components/collections-directory/directory-data.js +75 -63
  73. package/dist/shared/components/imports/ImportConsole.js +159 -155
  74. package/dist/shared/components/imports/ImportDuplicatesNotice.js +46 -31
  75. package/dist/shared/components/integrations/SendStatus.js +202 -0
  76. package/dist/shared/components/integrations/console/IntegrationsConsole.js +45 -36
  77. package/dist/shared/components/integrations/console/ReadyToSendView.js +453 -0
  78. package/dist/shared/components/integrations/console/SignalCard.js +84 -77
  79. package/dist/shared/components/integrations/console/api.js +161 -117
  80. package/dist/shared/components/integrations/console/tone.js +15 -12
  81. package/dist/shared/components/item-edit/CatalogPickerField.js +1353 -1245
  82. package/dist/shared/components/item-edit/ChangedAfterApprovalBadge.js +162 -0
  83. package/dist/shared/components/item-edit/CloneDialog.js +208 -206
  84. package/dist/shared/components/item-edit/DerivedCauseNote.js +57 -0
  85. package/dist/shared/components/item-edit/DraftRecoveryBanner.js +81 -70
  86. package/dist/shared/components/item-edit/DuplicateNotice.js +169 -101
  87. package/dist/shared/components/item-edit/FieldAffordances.js +294 -385
  88. package/dist/shared/components/item-edit/FieldComments.js +159 -116
  89. package/dist/shared/components/item-edit/FieldPointer.js +132 -0
  90. package/dist/shared/components/item-edit/FieldRenderer.js +277 -273
  91. package/dist/shared/components/item-edit/FieldRow.js +519 -439
  92. package/dist/shared/components/item-edit/FieldSourceBadge.js +88 -0
  93. package/dist/shared/components/item-edit/FilePickerField.js +454 -369
  94. package/dist/shared/components/item-edit/GroupSection.js +618 -567
  95. package/dist/shared/components/item-edit/HeldEditsChip.js +113 -0
  96. package/dist/shared/components/item-edit/InlineTableField.js +2891 -2723
  97. package/dist/shared/components/item-edit/ListNeighborNav.js +79 -0
  98. package/dist/shared/components/item-edit/LiveTraceSheet.js +26 -0
  99. package/dist/shared/components/item-edit/M2MCombobox.js +284 -273
  100. package/dist/shared/components/item-edit/OutboxReviewTray.js +313 -0
  101. package/dist/shared/components/item-edit/PickerBadges.js +52 -0
  102. package/dist/shared/components/item-edit/PlanGrid.js +434 -439
  103. package/dist/shared/components/item-edit/RecalcValue.js +55 -0
  104. package/dist/shared/components/item-edit/RecordChatActions.js +76 -64
  105. package/dist/shared/components/item-edit/RecordChatMentionsChip.js +103 -0
  106. package/dist/shared/components/item-edit/RecordGrantTools.js +87 -86
  107. package/dist/shared/components/item-edit/RecordHelpChip.js +70 -0
  108. package/dist/shared/components/item-edit/RecordLiveSync.js +230 -217
  109. package/dist/shared/components/item-edit/RecordOutbox.js +53 -52
  110. package/dist/shared/components/item-edit/RecordRecapStrip.js +109 -36
  111. package/dist/shared/components/item-edit/RelationCombobox.js +229 -217
  112. package/dist/shared/components/item-edit/RelationGroupedCombobox.js +105 -100
  113. package/dist/shared/components/item-edit/RemoteChangeUi.js +454 -0
  114. package/dist/shared/components/item-edit/RemoteUploads.js +55 -0
  115. package/dist/shared/components/item-edit/RemovedLineNote.js +92 -0
  116. package/dist/shared/components/item-edit/RichTextEditorImpl.js +298 -223
  117. package/dist/shared/components/item-edit/ScheduledChangeChip.js +244 -0
  118. package/dist/shared/components/item-edit/SectionPresence.js +78 -0
  119. package/dist/shared/components/item-edit/SplitLinesButton.js +166 -0
  120. package/dist/shared/components/item-edit/catalog-line-watch.js +94 -0
  121. package/dist/shared/components/item-edit/coedit/collab.js +84 -0
  122. package/dist/shared/components/item-edit/coedit/context.js +24 -0
  123. package/dist/shared/components/item-edit/coedit/cursors.js +103 -0
  124. package/dist/shared/components/item-edit/coedit/safe-link.js +15 -0
  125. package/dist/shared/components/item-edit/coedit/session.js +382 -0
  126. package/dist/shared/components/item-edit/coedit/useCoedit.js +49 -0
  127. package/dist/shared/components/item-edit/file-live.js +77 -0
  128. package/dist/shared/components/item-edit/file-processing.js +87 -0
  129. package/dist/shared/components/item-edit/layout-switch.js +148 -0
  130. package/dist/shared/components/item-edit/live-related.js +23 -0
  131. package/dist/shared/components/item-edit/live-title.js +66 -0
  132. package/dist/shared/components/item-edit/partner-needs.js +142 -0
  133. package/dist/shared/components/item-edit/removed-line.js +58 -0
  134. package/dist/shared/components/item-edit/render-stability.js +70 -59
  135. package/dist/shared/components/layout-editor/ChangeNote.js +36 -34
  136. package/dist/shared/components/layout-editor/CollabParts.js +72 -70
  137. package/dist/shared/components/layout-editor/LayoutEditor.js +306 -303
  138. package/dist/shared/components/list/InlineEdit.js +504 -208
  139. package/dist/shared/components/list/ListViewers.js +81 -0
  140. package/dist/shared/components/list/PhonePager.js +50 -0
  141. package/dist/shared/components/merge/MergeRecordsDialog.js +1227 -0
  142. package/dist/shared/components/merge/MergeWithFlow.js +290 -0
  143. package/dist/shared/components/merge/merge-values.js +110 -0
  144. package/dist/shared/components/monitoring/InactiveUserLinksView.js +285 -258
  145. package/dist/shared/components/notifications/NotificationCenterView.js +389 -323
  146. package/dist/shared/components/notifications/NotificationDetailBits.js +205 -130
  147. package/dist/shared/components/notifications/NotificationRulesEditor.js +72 -52
  148. package/dist/shared/components/notifications/bundles.js +21 -19
  149. package/dist/shared/components/notifications/resolved-line.js +25 -0
  150. package/dist/shared/components/ops/OpsTasksView.js +45 -44
  151. package/dist/shared/components/panels/AccessGrantedNote.js +85 -0
  152. package/dist/shared/components/panels/AlertBanners.js +132 -0
  153. package/dist/shared/components/panels/AsyncUserPicker.js +54 -45
  154. package/dist/shared/components/panels/BranchLanes.js +82 -54
  155. package/dist/shared/components/panels/CommentAwareness.js +332 -0
  156. package/dist/shared/components/panels/CommentImages.js +219 -0
  157. package/dist/shared/components/panels/CommentPanel.js +649 -530
  158. package/dist/shared/components/panels/ExternalRequestsChip.js +98 -80
  159. package/dist/shared/components/panels/NewSinceChip.js +16 -0
  160. package/dist/shared/components/panels/OwnerOpenedLine.js +85 -0
  161. package/dist/shared/components/panels/PipelinePanel.js +1644 -1494
  162. package/dist/shared/components/panels/ResubmissionDiff.js +293 -0
  163. package/dist/shared/components/panels/SlaBreachBanner.js +30 -29
  164. package/dist/shared/components/panels/SlaClock.js +130 -99
  165. package/dist/shared/components/panels/TaskPanel.js +308 -287
  166. package/dist/shared/components/panels/unseen-move-check.js +101 -0
  167. package/dist/shared/components/pipeline/OwnerMatrix.js +80 -71
  168. package/dist/shared/components/pipeline/OwnerMatrixSheet.js +495 -0
  169. package/dist/shared/components/pipeline/PipelineEditorView.js +2050 -1942
  170. package/dist/shared/components/profile/AgentNameField.js +141 -0
  171. package/dist/shared/components/profile/AgentsPanel.js +55 -46
  172. package/dist/shared/components/profile/PersonAccess.js +398 -330
  173. package/dist/shared/components/profile/PersonAdminTools.js +127 -113
  174. package/dist/shared/components/profile/PersonProfile.js +81 -73
  175. package/dist/shared/components/profile/SignInTroubleshooter.js +361 -0
  176. package/dist/shared/components/queue/OwnerAvatars.js +9 -9
  177. package/dist/shared/components/queue/QueueBulkBar.js +101 -84
  178. package/dist/shared/components/queue/QueueItemSheet.js +66 -66
  179. package/dist/shared/components/queue/QueueTeamStrip.js +279 -0
  180. package/dist/shared/components/queue/QueueWorklist.js +2407 -1950
  181. package/dist/shared/components/queue/worklist-helpers.js +10 -6
  182. package/dist/shared/components/send-view/SendViewButton.js +136 -0
  183. package/dist/shared/components/send-view/SentViewCards.js +147 -0
  184. package/dist/shared/components/support/ReportProblem.js +1 -0
  185. package/dist/shared/components/support/ScreenShare.js +554 -0
  186. package/dist/shared/components/support/SupportView.js +160 -129
  187. package/dist/shared/components/support/TicketDetailSheet.js +101 -89
  188. package/dist/shared/components/ui/popover.js +53 -29
  189. package/dist/shared/components/watch-list/WatchDock.js +1044 -0
  190. package/dist/shared/components/watch-list/WatchExtras.js +723 -0
  191. package/dist/shared/components/watch-list/WatchListButton.js +46 -0
  192. package/dist/shared/components/watch-list/WatchPinButton.js +67 -0
  193. package/dist/shared/components/watch-list/WatchRows.js +348 -0
  194. package/dist/shared/lib/activity-sentence.js +87 -75
  195. package/dist/shared/lib/agent-presence.js +46 -0
  196. package/dist/shared/lib/approval-progress.js +49 -0
  197. package/dist/shared/lib/attention-prefs.js +27 -0
  198. package/dist/shared/lib/cell-locks.js +56 -0
  199. package/dist/shared/lib/co-edit.js +166 -0
  200. package/dist/shared/lib/coedit-registry.js +44 -0
  201. package/dist/shared/lib/comment-awareness.js +124 -0
  202. package/dist/shared/lib/comment-images.js +45 -0
  203. package/dist/shared/lib/config-watch.js +94 -0
  204. package/dist/shared/lib/copy-rules.js +65 -0
  205. package/dist/shared/lib/count-step.js +30 -0
  206. package/dist/shared/lib/deadline-ticker.js +68 -0
  207. package/dist/shared/lib/derived-causes.js +115 -0
  208. package/dist/shared/lib/draft-store.js +114 -85
  209. package/dist/shared/lib/error-hints.js +1 -0
  210. package/dist/shared/lib/field-merge.js +126 -0
  211. package/dist/shared/lib/filter-sentence.js +10 -10
  212. package/dist/shared/lib/focus-mode.js +16 -12
  213. package/dist/shared/lib/grid-cursors.js +77 -0
  214. package/dist/shared/lib/grid-presence.js +182 -0
  215. package/dist/shared/lib/idle-reload.js +100 -73
  216. package/dist/shared/lib/in-step.js +45 -0
  217. package/dist/shared/lib/integration-chip.js +19 -18
  218. package/dist/shared/lib/keep-row-focus.js +43 -0
  219. package/dist/shared/lib/line-locks.js +141 -0
  220. package/dist/shared/lib/line-split.js +41 -0
  221. package/dist/shared/lib/linked-changes.js +150 -0
  222. package/dist/shared/lib/list-return.js +231 -0
  223. package/dist/shared/lib/list-viewers.js +52 -0
  224. package/dist/shared/lib/live-announcer.js +86 -0
  225. package/dist/shared/lib/live-counts.js +85 -0
  226. package/dist/shared/lib/live-data-changed.js +108 -0
  227. package/dist/shared/lib/live-deltas.js +81 -0
  228. package/dist/shared/lib/live-findings.js +113 -0
  229. package/dist/shared/lib/live-groups.js +122 -0
  230. package/dist/shared/lib/live-link-labels.js +162 -0
  231. package/dist/shared/lib/live-list-flow.js +334 -0
  232. package/dist/shared/lib/live-list.js +143 -129
  233. package/dist/shared/lib/live-moves.js +51 -0
  234. package/dist/shared/lib/live-ops.js +26 -26
  235. package/dist/shared/lib/live-pickers.js +7 -0
  236. package/dist/shared/lib/live-preference.js +184 -0
  237. package/dist/shared/lib/live-queries.js +226 -181
  238. package/dist/shared/lib/live-screen.js +333 -0
  239. package/dist/shared/lib/live-search.js +108 -0
  240. package/dist/shared/lib/live-seen.js +35 -0
  241. package/dist/shared/lib/live-views.js +100 -0
  242. package/dist/shared/lib/live.js +159 -133
  243. package/dist/shared/lib/missed-updates.js +198 -0
  244. package/dist/shared/lib/newer-file.js +56 -0
  245. package/dist/shared/lib/notification-sound.js +42 -20
  246. package/dist/shared/lib/obligation-banner.js +17 -17
  247. package/dist/shared/lib/own-writes.js +59 -41
  248. package/dist/shared/lib/picker-badges.js +94 -0
  249. package/dist/shared/lib/presence-signals.js +131 -84
  250. package/dist/shared/lib/rail-menu-context.js +9 -0
  251. package/dist/shared/lib/realtime.js +49 -24
  252. package/dist/shared/lib/record-gaps.js +85 -0
  253. package/dist/shared/lib/record-outbox.js +369 -222
  254. package/dist/shared/lib/record-peek.js +75 -0
  255. package/dist/shared/lib/record-tabs.js +92 -72
  256. package/dist/shared/lib/relative-ticker.js +42 -0
  257. package/dist/shared/lib/request-gate.js +119 -119
  258. package/dist/shared/lib/rollup-recalc.js +107 -0
  259. package/dist/shared/lib/room-gaps.js +40 -36
  260. package/dist/shared/lib/row-surface.js +7 -0
  261. package/dist/shared/lib/rum.js +137 -87
  262. package/dist/shared/lib/save-progress.js +20 -0
  263. package/dist/shared/lib/scheduled-countdown.js +67 -0
  264. package/dist/shared/lib/screen-refresh.js +160 -0
  265. package/dist/shared/lib/screen-share.js +234 -0
  266. package/dist/shared/lib/seen-since.js +74 -0
  267. package/dist/shared/lib/selection-watch.js +205 -0
  268. package/dist/shared/lib/send-status.js +132 -0
  269. package/dist/shared/lib/send-view.js +23 -0
  270. package/dist/shared/lib/socket-liveness.js +155 -0
  271. package/dist/shared/lib/socket-realtime.js +168 -140
  272. package/dist/shared/lib/state-census.js +53 -0
  273. package/dist/shared/lib/summary-mode.js +61 -39
  274. package/dist/shared/lib/tab-attention.js +143 -32
  275. package/dist/shared/lib/table-density.js +64 -0
  276. package/dist/shared/lib/table-pins.js +20 -18
  277. package/dist/shared/lib/track-travel.js +40 -0
  278. package/dist/shared/lib/unseen-changes.js +68 -0
  279. package/dist/shared/lib/upload-file.js +62 -0
  280. package/dist/shared/lib/upload-presence.js +127 -0
  281. package/dist/shared/lib/urgent-chime.js +65 -0
  282. package/dist/shared/lib/use-below-md.js +29 -0
  283. package/dist/shared/lib/use-online-users.js +32 -11
  284. package/dist/shared/lib/user-sync.js +155 -39
  285. package/dist/shared/lib/waiting-count.js +44 -0
  286. package/dist/shared/lib/watch-desktop.js +83 -0
  287. package/dist/shared/lib/watch-list.js +447 -0
  288. package/dist/shared/lib/widget-image-render.js +64 -0
  289. package/dist/shared/lib/widget-image.js +111 -0
  290. package/dist/shared/lib/worker-socket.js +130 -104
  291. package/dist/shared/lib/write-to-screen.js +133 -0
  292. package/package.json +1 -1
  293. package/styles.css +49 -1
@@ -0,0 +1,13 @@
1
+ import { dueInText as u, liveDeadlineStatus as r } from "../../lib/deadline-ticker.js";
2
+ function l(t, e) {
3
+ if (!t) return null;
4
+ const n = u(t, e);
5
+ return n ? n.charAt(0).toUpperCase() + n.slice(1) : null;
6
+ }
7
+ function o(t, e) {
8
+ return t ? r(t, e) : null;
9
+ }
10
+ export {
11
+ o as dueStatus,
12
+ l as dueText
13
+ };
@@ -1,14 +1,15 @@
1
- import { jsx as r, jsxs as u, Fragment as V } from "react/jsx-runtime";
2
- import { Pencil as Y, Pin as q, Star as W, AlertTriangle as G, EyeOff as Q, Code2 as X, Link2 as z, Workflow as J, LayoutTemplate as Z, Download as A, Square as ee } from "lucide-react";
3
- import { forwardRef as te, useState as ne } from "react";
4
- import { useNavigation as re } from "../../context.js";
5
- import { titleCase as ae, cn as l, resolveCollectionIcon as oe, formatNumber as j, formatDateTime as ie } from "../../lib/utils.js";
6
- import { Checkbox as se } from "../ui/checkbox.js";
7
- import { useHoverIntent as le, CollectionHoverCard as ce } from "./CollectionHoverCard.js";
8
- import { CollectionRowMenu as de } from "./CollectionRowMenu.js";
9
- import { recordCollectionOpen as ue } from "./directory-data.js";
10
- const me = (t) => `/collections/${encodeURIComponent(t)}`, P = te(function({ to: e, onClick: n, ...a }, i) {
11
- const { navigate: m } = re();
1
+ import { jsx as r, jsxs as u, Fragment as Y } from "react/jsx-runtime";
2
+ import { Pencil as q, Pin as W, Star as G, AlertTriangle as Q, EyeOff as X, Code2 as z, Link2 as J, Workflow as Z, LayoutTemplate as A, Download as ee, Square as te } from "lucide-react";
3
+ import { forwardRef as ne, useState as re } from "react";
4
+ import { useNavigation as ae } from "../../context.js";
5
+ import { titleCase as oe, cn as l, resolveCollectionIcon as ie, formatNumber as S, formatDateTime as se } from "../../lib/utils.js";
6
+ import { LiveCount as P } from "../LiveCount.js";
7
+ import { Checkbox as le } from "../ui/checkbox.js";
8
+ import { useHoverIntent as ce, CollectionHoverCard as de } from "./CollectionHoverCard.js";
9
+ import { CollectionRowMenu as ue } from "./CollectionRowMenu.js";
10
+ import { recordCollectionOpen as me } from "./directory-data.js";
11
+ const pe = (t) => `/collections/${encodeURIComponent(t)}`, E = ne(function({ to: e, onClick: n, ...a }, i) {
12
+ const { navigate: m } = ae();
12
13
  return /* @__PURE__ */ r(
13
14
  "a",
14
15
  {
@@ -20,14 +21,14 @@ const me = (t) => `/collections/${encodeURIComponent(t)}`, P = te(function({ to:
20
21
  }
21
22
  }
22
23
  );
23
- }), E = 3;
24
- function pe({
24
+ }), j = 3;
25
+ function fe({
25
26
  color: t,
26
27
  name: e,
27
28
  icon: n,
28
29
  size: a = "md"
29
30
  }) {
30
- const i = oe(n);
31
+ const i = ie(n);
31
32
  return /* @__PURE__ */ r(
32
33
  "div",
33
34
  {
@@ -41,35 +42,35 @@ function pe({
41
42
  }
42
43
  );
43
44
  }
44
- function fe(t) {
45
- return `The list opens on ${t.fields.map((n) => `${n.label} (up to ${j(n.max)} per record)`).join(" and ")} — slow and unreadable. Fix it in Data model → Collection Browser.`;
45
+ function he(t) {
46
+ return `The list opens on ${t.fields.map((n) => `${n.label} (up to ${S(n.max)} per record)`).join(" and ")} — slow and unreadable. Fix it in Data model → Collection Browser.`;
46
47
  }
47
- function he(t, e, n) {
48
+ function xe(t, e, n) {
48
49
  const a = [];
49
50
  return n && n.fields.length > 0 && a.push({
50
51
  key: "heavy-list",
51
52
  label: "Heavy list",
52
- icon: G,
53
- tip: fe(n),
53
+ icon: Q,
54
+ tip: he(n),
54
55
  warn: !0
55
- }), t.hidden && !(e != null && e.link) && a.push({ key: "hidden", label: "Hidden", icon: Q, tip: "Hidden from navigation" }), e != null && e.virtual && a.push({
56
+ }), t.hidden && !(e != null && e.link) && a.push({ key: "hidden", label: "Hidden", icon: X, tip: "Hidden from navigation" }), e != null && e.virtual && a.push({
56
57
  key: "virtual",
57
58
  label: "Virtual",
58
- icon: X,
59
+ icon: z,
59
60
  tip: "Backed by SQL — read-only"
60
- }), e != null && e.link && a.push({ key: "link", label: "Link table", icon: z, tip: "Links two collections" }), e != null && e.pipeline && a.push({ key: "pipeline", label: "Pipeline", icon: J, tip: e.pipeline }), e && e.forms > 0 && a.push({
61
+ }), e != null && e.link && a.push({ key: "link", label: "Link table", icon: J, tip: "Links two collections" }), e != null && e.pipeline && a.push({ key: "pipeline", label: "Pipeline", icon: Z, tip: e.pipeline }), e && e.forms > 0 && a.push({
61
62
  key: "forms",
62
63
  label: e.forms > 1 ? `Form ×${e.forms}` : "Form",
63
- icon: Z,
64
+ icon: A,
64
65
  tip: `${e.forms} form layout${e.forms === 1 ? "" : "s"}`
65
66
  }), e && e.imports > 0 && a.push({
66
67
  key: "imports",
67
68
  label: "Imports",
68
- icon: A,
69
+ icon: ee,
69
70
  tip: `${e.imports} import${e.imports === 1 ? "" : "s"} feed this collection`
70
- }), t.singleton && a.push({ key: "singleton", label: "Singleton", icon: ee, tip: "Holds a single record" }), a;
71
+ }), t.singleton && a.push({ key: "singleton", label: "Singleton", icon: te, tip: "Holds a single record" }), a;
71
72
  }
72
- function xe({ spec: t }) {
73
+ function be({ spec: t }) {
73
74
  const e = t.icon;
74
75
  return /* @__PURE__ */ u(
75
76
  "span",
@@ -87,11 +88,11 @@ function xe({ spec: t }) {
87
88
  }
88
89
  );
89
90
  }
90
- function be({ items: t }) {
91
+ function ve({ items: t }) {
91
92
  if (t.length === 0) return null;
92
- const e = t.slice(0, E), n = t.slice(E);
93
+ const e = t.slice(0, j), n = t.slice(j);
93
94
  return /* @__PURE__ */ u("span", { "data-cdr": "", className: "hidden shrink-0 items-center gap-1 sm:[&[data-cdr]]:flex", children: [
94
- e.map((a) => /* @__PURE__ */ r(xe, { spec: a }, a.key)),
95
+ e.map((a) => /* @__PURE__ */ r(be, { spec: a }, a.key)),
95
96
  n.length > 0 && /* @__PURE__ */ u(
96
97
  "span",
97
98
  {
@@ -105,13 +106,13 @@ function be({ items: t }) {
105
106
  )
106
107
  ] });
107
108
  }
108
- function ve(t, e) {
109
+ function ke(t, e) {
109
110
  const n = e == null ? void 0 : e.trim().toLowerCase();
110
111
  return n ? t.toLowerCase().indexOf(n) : -1;
111
112
  }
112
- function ke({ text: t, at: e, len: n }) {
113
+ function ye({ text: t, at: e, len: n }) {
113
114
  let a = t;
114
- return e >= 0 && n > 0 && (a = /* @__PURE__ */ u(V, { children: [
115
+ return e >= 0 && n > 0 && (a = /* @__PURE__ */ u(Y, { children: [
115
116
  t.slice(0, e),
116
117
  /* @__PURE__ */ r("mark", { className: "rounded-sm bg-nvr-cyan/15 text-slate-700 dark:bg-nvr-cyan/25 dark:text-slate-200", children: t.slice(e, e + n) }),
117
118
  t.slice(e + n)
@@ -124,7 +125,7 @@ function ke({ text: t, at: e, len: n }) {
124
125
  }
125
126
  );
126
127
  }
127
- function ye(t, e = Date.now()) {
128
+ function we(t, e = Date.now()) {
128
129
  const n = new Date(t), a = n.getTime();
129
130
  if (Number.isNaN(a)) return "—";
130
131
  const i = Math.floor((e - a) / 6e4);
@@ -141,11 +142,11 @@ function ye(t, e = Date.now()) {
141
142
  ...h ? {} : { year: "numeric" }
142
143
  });
143
144
  }
144
- function we({ stat: t }) {
145
- const e = t.rows == null ? /* @__PURE__ */ r("span", { "data-tip": "Record count unknown", className: "text-slate-400 dark:text-slate-500", children: "—" }) : t.rows === 0 ? /* @__PURE__ */ r("span", { className: "text-slate-400 dark:text-slate-500", children: "Empty" }) : /* @__PURE__ */ r("span", { "data-tip": "Approximate record count", children: j(t.rows) });
145
+ function ge({ stat: t }) {
146
+ const e = t.rows == null ? /* @__PURE__ */ r("span", { "data-tip": "Record count unknown", className: "text-slate-400 dark:text-slate-500", children: "—" }) : t.rows === 0 ? /* @__PURE__ */ r("span", { className: "text-slate-400 dark:text-slate-500", children: "Empty" }) : /* @__PURE__ */ r("span", { "data-tip": "Approximate record count", children: /* @__PURE__ */ r(P, { value: t.rows, format: (n) => S(Number(n)) }) });
146
147
  return /* @__PURE__ */ u("span", { className: "flex shrink-0 items-center gap-3 text-[11px] tabular-nums text-slate-500 dark:text-slate-400", children: [
147
148
  /* @__PURE__ */ r("span", { className: "w-16 text-right", children: e }),
148
- /* @__PURE__ */ r("span", { "data-cdr": "", className: "hidden w-16 whitespace-nowrap text-right md:[&[data-cdr]]:block", children: t.changed_at ? /* @__PURE__ */ r("span", { "data-tip": `Last change ${ie(t.changed_at)}`, children: ye(t.changed_at) }) : /* @__PURE__ */ r(
149
+ /* @__PURE__ */ r("span", { "data-cdr": "", className: "hidden w-16 whitespace-nowrap text-right md:[&[data-cdr]]:block", children: t.changed_at ? /* @__PURE__ */ r("span", { "data-tip": `Last change ${se(t.changed_at)}`, children: /* @__PURE__ */ r(P, { value: we(t.changed_at) }) }) : /* @__PURE__ */ r(
149
150
  "span",
150
151
  {
151
152
  "data-tip": "No change seen since the database last started",
@@ -156,14 +157,14 @@ function we({ stat: t }) {
156
157
  ] });
157
158
  }
158
159
  const k = "opacity-0 transition-opacity duration-150 group-hover/row:opacity-100 group-focus-within/row:opacity-100 focus-visible:opacity-100 data-[state=open]:opacity-100 motion-reduce:transition-none";
159
- function ge(t) {
160
+ function Ne(t) {
160
161
  try {
161
162
  return t.matches(":focus-visible");
162
163
  } catch {
163
164
  return !1;
164
165
  }
165
166
  }
166
- function He({
167
+ function Be({
167
168
  col: t,
168
169
  stat: e,
169
170
  heavyList: n,
@@ -172,23 +173,23 @@ function He({
172
173
  onToggleFavorite: m,
173
174
  pinnedForAll: o = !1,
174
175
  onTogglePinned: h,
175
- onMoveUp: S,
176
- onMoveDown: H,
177
- quietPin: R = !1,
178
- folders: B,
179
- onMove: I,
180
- recordsPath: M,
176
+ onMoveUp: H,
177
+ onMoveDown: R,
178
+ quietPin: B = !1,
179
+ folders: I,
180
+ onMove: M,
181
+ recordsPath: T,
181
182
  editPath: y,
182
- menuExtra: T,
183
+ menuExtra: _,
183
184
  selecting: w,
184
185
  selected: g,
185
186
  onSelect: N,
186
187
  dragHandle: C,
187
188
  highlight: b,
188
189
  isAdmin: p,
189
- indent: _
190
+ indent: K
190
191
  }) {
191
- const f = t.collection, c = t.display_name ?? ae(f), x = a === "compact", [K, v] = ne(!1), d = le(p), $ = M ?? me(f), L = ve(f, b), U = K || L >= 0, F = he(t, e, p ? n : void 0), O = (s) => {
192
+ const f = t.collection, c = t.display_name ?? oe(f), x = a === "compact", [U, v] = re(!1), d = ce(p), $ = T ?? pe(f), L = ke(f, b), F = U || L >= 0, O = xe(t, e, p ? n : void 0), V = (s) => {
192
193
  s.currentTarget.contains(s.relatedTarget) || v(!1);
193
194
  }, D = /* @__PURE__ */ r(
194
195
  "span",
@@ -209,16 +210,16 @@ function He({
209
210
  "group/row relative flex w-full items-center gap-2 transition-colors duration-150 hover:bg-nvr-cyan/[0.04] focus-within:bg-nvr-cyan/[0.04] motion-reduce:transition-none dark:hover:bg-nvr-cyan/[0.06] dark:focus-within:bg-nvr-cyan/[0.06]",
210
211
  g && "bg-nvr-cyan/[0.07] dark:bg-nvr-cyan/[0.1]",
211
212
  x ? "h-7" : "min-h-10 py-1",
212
- _ ? "pl-2 pr-2" : C ? "pr-2" : "pl-4 pr-2"
213
+ K ? "pl-2 pr-2" : C ? "pr-2" : "pl-4 pr-2"
213
214
  ),
214
215
  onMouseEnter: () => v(!0),
215
216
  onMouseLeave: () => v(!1),
216
217
  onFocus: () => v(!0),
217
- onBlur: O,
218
+ onBlur: V,
218
219
  children: [
219
220
  C,
220
221
  w && /* @__PURE__ */ r(
221
- se,
222
+ le,
222
223
  {
223
224
  checked: g,
224
225
  onCheckedChange: () => N(),
@@ -228,7 +229,7 @@ function He({
228
229
  }
229
230
  ),
230
231
  /* @__PURE__ */ u(
231
- P,
232
+ E,
232
233
  {
233
234
  to: $,
234
235
  onClick: (s) => {
@@ -236,10 +237,10 @@ function He({
236
237
  s.preventDefault(), N();
237
238
  return;
238
239
  }
239
- ue(f);
240
+ me(f);
240
241
  },
241
242
  onFocus: (s) => {
242
- ge(s.currentTarget) && d.show();
243
+ Ne(s.currentTarget) && d.show();
243
244
  },
244
245
  onBlur: d.hide,
245
246
  className: l(
@@ -248,7 +249,7 @@ function He({
248
249
  ),
249
250
  children: [
250
251
  /* @__PURE__ */ r(
251
- pe,
252
+ fe,
252
253
  {
253
254
  color: t.color,
254
255
  name: c,
@@ -259,7 +260,7 @@ function He({
259
260
  /* @__PURE__ */ u("span", { className: "flex min-w-0 flex-1 flex-col justify-center", children: [
260
261
  /* @__PURE__ */ u("span", { className: "flex min-w-0 items-baseline gap-2", children: [
261
262
  p ? /* @__PURE__ */ r(
262
- ce,
263
+ de,
263
264
  {
264
265
  collection: f,
265
266
  title: c,
@@ -271,18 +272,18 @@ function He({
271
272
  children: D
272
273
  }
273
274
  ) : D,
274
- U && /* @__PURE__ */ r(ke, { text: f, at: L, len: (b == null ? void 0 : b.trim().length) ?? 0 }),
275
+ F && /* @__PURE__ */ r(ye, { text: f, at: L, len: (b == null ? void 0 : b.trim().length) ?? 0 }),
275
276
  x && t.note && /* @__PURE__ */ r("span", { className: "min-w-0 flex-1 truncate text-[12px] text-slate-500 dark:text-slate-400", children: t.note })
276
277
  ] }),
277
278
  !x && t.note && /* @__PURE__ */ r("span", { className: "truncate text-[12px] leading-4 text-slate-500 dark:text-slate-400", children: t.note })
278
279
  ] }),
279
- /* @__PURE__ */ r(be, { items: F }),
280
- e && /* @__PURE__ */ r(we, { stat: e })
280
+ /* @__PURE__ */ r(ve, { items: O }),
281
+ e && /* @__PURE__ */ r(ge, { stat: e })
281
282
  ]
282
283
  }
283
284
  ),
284
285
  p && y && /* @__PURE__ */ r(
285
- P,
286
+ E,
286
287
  {
287
288
  to: y,
288
289
  "aria-label": `Edit ${c}`,
@@ -295,7 +296,7 @@ function He({
295
296
  "hidden h-6 w-6 shrink-0 items-center justify-center rounded text-slate-400 hover:bg-slate-100 hover:text-slate-600 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-nvr-cyan/50 sm:[&[data-cdr]]:flex dark:text-slate-500 dark:hover:bg-white/10 dark:hover:text-slate-300",
296
297
  k
297
298
  ),
298
- children: /* @__PURE__ */ r(Y, { className: "h-3.5 w-3.5" })
299
+ children: /* @__PURE__ */ r(q, { className: "h-3.5 w-3.5" })
299
300
  }
300
301
  ),
301
302
  p && h && /* @__PURE__ */ r(
@@ -313,12 +314,12 @@ function He({
313
314
  className: l(
314
315
  // Phones: Pin for everyone stays in the ⋯ menu.
315
316
  "hidden sm:[&[data-cdr]]:flex h-6 w-6 shrink-0 items-center justify-center rounded hover:bg-slate-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-nvr-cyan/50 dark:hover:bg-white/10",
316
- o && !R ? "text-slate-600 hover:text-slate-800 dark:text-slate-300 dark:hover:text-slate-100" : l(
317
+ o && !B ? "text-slate-600 hover:text-slate-800 dark:text-slate-300 dark:hover:text-slate-100" : l(
317
318
  k,
318
319
  "text-slate-400 hover:text-slate-600 dark:text-slate-500 dark:hover:text-slate-300"
319
320
  )
320
321
  ),
321
- children: /* @__PURE__ */ r(q, { className: l("h-3.5 w-3.5", o && "fill-current") })
322
+ children: /* @__PURE__ */ r(W, { className: l("h-3.5 w-3.5", o && "fill-current") })
322
323
  }
323
324
  ),
324
325
  /* @__PURE__ */ r(
@@ -338,25 +339,25 @@ function He({
338
339
  "text-slate-400 hover:text-slate-600 dark:text-slate-500 dark:hover:text-slate-300"
339
340
  )
340
341
  ),
341
- children: /* @__PURE__ */ r(W, { className: l("h-3.5 w-3.5", i && "fill-current") })
342
+ children: /* @__PURE__ */ r(G, { className: l("h-3.5 w-3.5", i && "fill-current") })
342
343
  }
343
344
  ),
344
345
  /* @__PURE__ */ r(
345
- de,
346
+ ue,
346
347
  {
347
348
  col: t,
348
349
  displayName: c,
349
350
  isAdmin: p,
350
351
  recordsPath: $,
351
- extra: p ? T : void 0,
352
+ extra: p ? _ : void 0,
352
353
  favorite: i,
353
354
  onToggleFavorite: m,
354
355
  pinnedForAll: o,
355
356
  onTogglePinned: h,
356
- onMoveUp: S,
357
- onMoveDown: H,
358
- folders: B,
359
- onMove: I,
357
+ onMoveUp: H,
358
+ onMoveDown: R,
359
+ folders: I,
360
+ onMove: M,
360
361
  className: l(k, "[@media(hover:none)]:[&[data-cdr]]:opacity-100")
361
362
  }
362
363
  )
@@ -366,10 +367,10 @@ function He({
366
367
  );
367
368
  }
368
369
  export {
369
- pe as CollectionAvatar,
370
- He as CollectionRow,
371
- P as HostLink,
372
- me as defaultCollectionPath,
373
- fe as heavyListTip,
374
- ye as shortWhen
370
+ fe as CollectionAvatar,
371
+ Be as CollectionRow,
372
+ E as HostLink,
373
+ pe as defaultCollectionPath,
374
+ he as heavyListTip,
375
+ we as shortWhen
375
376
  };