@declarion/react 0.142.0 → 0.147.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 (459) hide show
  1. package/dist-lib/{Icons-Dzl-AkD_.d.ts → Icons-BdXCxyw3.d.ts} +0 -4
  2. package/dist-lib/api/access-expiry.js +1 -2
  3. package/dist-lib/api/agents.js +1 -2
  4. package/dist-lib/api/audience.js +1 -2
  5. package/dist-lib/api/auth-redirect.js +1 -2
  6. package/dist-lib/api/auth.js +1 -2
  7. package/dist-lib/api/batch.js +1 -2
  8. package/dist-lib/api/client.js +27 -28
  9. package/dist-lib/api/data.js +23 -24
  10. package/dist-lib/api/entities.js +36 -37
  11. package/dist-lib/api/events.js +6 -7
  12. package/dist-lib/api/fileReferences.js +1 -2
  13. package/dist-lib/api/params.js +1 -2
  14. package/dist-lib/api/properties.js +1 -2
  15. package/dist-lib/api/request-bounds.js +1 -2
  16. package/dist-lib/api/schema.js +5 -6
  17. package/dist-lib/api/session-renewal.js +6 -7
  18. package/dist-lib/api/status.js +1 -2
  19. package/dist-lib/app.js +154 -155
  20. package/dist-lib/components/actions/ActionButton.js +32 -33
  21. package/dist-lib/components/actions/ActionDialog.js +85 -86
  22. package/dist-lib/components/actions/ActionResultDialog.impl.js +48 -49
  23. package/dist-lib/components/actions/ActionResultDialog.js +1 -2
  24. package/dist-lib/components/actions/ActionRunner.js +96 -97
  25. package/dist-lib/components/actions/ObjectActionBar.js +49 -50
  26. package/dist-lib/components/actions/PropertyGridEditor.js +50 -51
  27. package/dist-lib/components/actions/ResponsiveActionBar.js +127 -128
  28. package/dist-lib/components/actions/RowActionsKebab.js +27 -28
  29. package/dist-lib/components/agents/AgentChatPanel.impl.js +317 -318
  30. package/dist-lib/components/agents/AgentChatPanel.js +1 -2
  31. package/dist-lib/components/agents/AgentConversationDrawer.js +6 -7
  32. package/dist-lib/components/agents/AgentElicitForm.js +13 -14
  33. package/dist-lib/components/agents/AgentOpenFollower.impl.js +1 -2
  34. package/dist-lib/components/agents/AgentOpenFollower.js +1 -2
  35. package/dist-lib/components/agents/AgentPicker.js +1 -2
  36. package/dist-lib/components/agents/ChatAttachments.js +22 -23
  37. package/dist-lib/components/agents/transcript-runs.js +1 -2
  38. package/dist-lib/components/chrome/AssociationTabs.js +44 -45
  39. package/dist-lib/components/chrome/AuditMetaStrip.js +1 -2
  40. package/dist-lib/components/chrome/Breadcrumbs.js +1 -2
  41. package/dist-lib/components/chrome/HighlightsStrip.js +1 -2
  42. package/dist-lib/components/chrome/PageHeader.js +12 -13
  43. package/dist-lib/components/chrome/PageShell.js +1 -2
  44. package/dist-lib/components/chrome/RecordHeader.js +1 -2
  45. package/dist-lib/components/chrome/headerActionZone.js +0 -1
  46. package/dist-lib/components/detail-layout/AssociatedBlock.js +463 -464
  47. package/dist-lib/components/detail-layout/AssociatedToolbar.js +43 -44
  48. package/dist-lib/components/detail-layout/ChildrenBlock.js +24 -25
  49. package/dist-lib/components/detail-layout/ChildrenCards.js +29 -30
  50. package/dist-lib/components/detail-layout/ChildrenList.js +23 -24
  51. package/dist-lib/components/detail-layout/ChildrenTable.js +50 -51
  52. package/dist-lib/components/detail-layout/ChildrenTimeline.js +164 -165
  53. package/dist-lib/components/detail-layout/DetailAuditStrip.js +14 -15
  54. package/dist-lib/components/detail-layout/DetailHighlights.js +23 -24
  55. package/dist-lib/components/detail-layout/DraggableChildrenTable.js +76 -77
  56. package/dist-lib/components/detail-layout/EditableChildrenTable.js +90 -91
  57. package/dist-lib/components/detail-layout/ErrorSummary.js +7 -8
  58. package/dist-lib/components/detail-layout/EvidenceBlock.js +15 -16
  59. package/dist-lib/components/detail-layout/FieldRow.js +11 -12
  60. package/dist-lib/components/detail-layout/FieldsBlock.js +31 -32
  61. package/dist-lib/components/detail-layout/LayoutColumn.js +1 -2
  62. package/dist-lib/components/detail-layout/LayoutRenderer.js +11 -12
  63. package/dist-lib/components/detail-layout/LayoutRow.js +1 -2
  64. package/dist-lib/components/detail-layout/LayoutTabs.js +23 -24
  65. package/dist-lib/components/detail-layout/PropertiesBlock.js +38 -39
  66. package/dist-lib/components/detail-layout/QuickAddForm.js +28 -29
  67. package/dist-lib/components/detail-layout/SectionBlock.js +9 -10
  68. package/dist-lib/components/detail-layout/StatusesBlock.js +1 -2
  69. package/dist-lib/components/detail-layout/TimelineComposer.js +19 -20
  70. package/dist-lib/components/detail-layout/blockMeta.js +1 -2
  71. package/dist-lib/components/detail-layout/useManualColumnResize.js +1 -2
  72. package/dist-lib/components/detail-layout/useQuickAdd.js +21 -22
  73. package/dist-lib/components/detail-layout/visibility.js +1 -2
  74. package/dist-lib/components/detail-layout/widgets/EntityScorecardWidget.js +25 -26
  75. package/dist-lib/components/detail-layout/widgets/JsonDiffWidget.js +18 -19
  76. package/dist-lib/components/detail-layout/widgets/MonacoJson.js +1 -2
  77. package/dist-lib/components/detail-layout/widgets/WidgetHost.js +10 -11
  78. package/dist-lib/components/detail-layout/widgets/builtins.js +1 -2
  79. package/dist-lib/components/detail-layout/widgets/canonicalizeJson.js +1 -2
  80. package/dist-lib/components/detail-layout/widgets/monacoBootstrap.js +1 -2
  81. package/dist-lib/components/detail-layout/widgets/registry.js +1 -2
  82. package/dist-lib/components/fields/BoolField.js +1 -2
  83. package/dist-lib/components/fields/EmailField.js +5 -6
  84. package/dist-lib/components/fields/EnumField.js +7 -8
  85. package/dist-lib/components/fields/FileReferenceField.js +18 -19
  86. package/dist-lib/components/fields/IntArrayField.js +11 -12
  87. package/dist-lib/components/fields/JsonEditor.js +1 -2
  88. package/dist-lib/components/fields/JsonField.js +1 -2
  89. package/dist-lib/components/fields/MultilangArrayField.js +22 -23
  90. package/dist-lib/components/fields/MultilangField.js +13 -14
  91. package/dist-lib/components/fields/MultilangTextField.js +13 -14
  92. package/dist-lib/components/fields/NumberField.js +5 -6
  93. package/dist-lib/components/fields/PasswordField.js +1 -2
  94. package/dist-lib/components/fields/PhoneField.js +24 -25
  95. package/dist-lib/components/fields/RefCombobox.js +42 -43
  96. package/dist-lib/components/fields/RefField.js +14 -15
  97. package/dist-lib/components/fields/RichTextField.js +29 -30
  98. package/dist-lib/components/fields/SecretField.js +1 -2
  99. package/dist-lib/components/fields/StringArrayField.js +29 -30
  100. package/dist-lib/components/fields/StringField.js +12 -13
  101. package/dist-lib/components/fields/StructureField.js +60 -61
  102. package/dist-lib/components/fields/TextField.js +18 -19
  103. package/dist-lib/components/fields/TimestampField.js +17 -18
  104. package/dist-lib/components/fields/UrlField.js +5 -6
  105. package/dist-lib/components/fields/cells/factories/badge.js +5 -6
  106. package/dist-lib/components/fields/cells/factories/boolPill.js +1 -2
  107. package/dist-lib/components/fields/cells/factories/code.js +1 -2
  108. package/dist-lib/components/fields/cells/factories/date.js +1 -2
  109. package/dist-lib/components/fields/cells/factories/email.js +1 -2
  110. package/dist-lib/components/fields/cells/factories/emptyCell.js +0 -1
  111. package/dist-lib/components/fields/cells/factories/fileReference.js +1 -2
  112. package/dist-lib/components/fields/cells/factories/host-icons.js +1 -2
  113. package/dist-lib/components/fields/cells/factories/json.js +1 -2
  114. package/dist-lib/components/fields/cells/factories/link.js +10 -11
  115. package/dist-lib/components/fields/cells/factories/markdown.js +14 -15
  116. package/dist-lib/components/fields/cells/factories/markdownPreview.js +1 -2
  117. package/dist-lib/components/fields/cells/factories/money.js +1 -2
  118. package/dist-lib/components/fields/cells/factories/multilangInline.js +1 -2
  119. package/dist-lib/components/fields/cells/factories/nextRun.js +8 -9
  120. package/dist-lib/components/fields/cells/factories/number.js +1 -2
  121. package/dist-lib/components/fields/cells/factories/passwordMask.js +1 -2
  122. package/dist-lib/components/fields/cells/factories/phone.js +1 -2
  123. package/dist-lib/components/fields/cells/factories/refLink.js +13 -14
  124. package/dist-lib/components/fields/cells/factories/richTextPreview.js +16 -17
  125. package/dist-lib/components/fields/cells/factories/statusPill.js +5 -6
  126. package/dist-lib/components/fields/cells/factories/tagList.js +6 -7
  127. package/dist-lib/components/fields/cells/factories/text.js +1 -2
  128. package/dist-lib/components/fields/cells/factories/timestamp.js +1 -2
  129. package/dist-lib/components/fields/cells/factories/url-helpers.js +1 -2
  130. package/dist-lib/components/fields/cells/factories/url.js +13 -14
  131. package/dist-lib/components/fields/cells/registry.js +1 -2
  132. package/dist-lib/components/fields/index.js +19 -20
  133. package/dist-lib/components/fields/langMap.js +1 -2
  134. package/dist-lib/components/fields/secretValue.js +1 -2
  135. package/dist-lib/components/file-widgets/CircleImage.js +1 -2
  136. package/dist-lib/components/file-widgets/DocumentCard.js +101 -102
  137. package/dist-lib/components/file-widgets/FileList.js +35 -36
  138. package/dist-lib/components/file-widgets/Grid.js +119 -120
  139. package/dist-lib/components/file-widgets/GridLazy.js +1 -2
  140. package/dist-lib/components/file-widgets/ImageWidget.js +189 -190
  141. package/dist-lib/components/file-widgets/LabeledSlots.js +14 -15
  142. package/dist-lib/components/file-widgets/SquareImage.js +1 -2
  143. package/dist-lib/components/file-widgets/UnknownFileWidget.js +1 -2
  144. package/dist-lib/components/file-widgets/UploadFailureText.js +1 -2
  145. package/dist-lib/components/file-widgets/WideBanner.js +1 -2
  146. package/dist-lib/components/file-widgets/builtins.js +1 -2
  147. package/dist-lib/components/file-widgets/cropper.js +1 -2
  148. package/dist-lib/components/file-widgets/draft-scope.js +1 -2
  149. package/dist-lib/components/file-widgets/helpers.js +1 -2
  150. package/dist-lib/components/file-widgets/host.js +33 -34
  151. package/dist-lib/components/file-widgets/payload.js +1 -2
  152. package/dist-lib/components/file-widgets/registry.js +1 -2
  153. package/dist-lib/components/file-widgets/upload.js +41 -42
  154. package/dist-lib/components/file-widgets/useEmbedFileSrc.js +12 -13
  155. package/dist-lib/components/file-widgets/useFileSelection.js +1 -2
  156. package/dist-lib/components/file-widgets/value.js +1 -2
  157. package/dist-lib/components/filters/FilterChips.js +15 -16
  158. package/dist-lib/components/filters/FilterConditionValue.js +15 -16
  159. package/dist-lib/components/filters/FilterDrawer.js +141 -142
  160. package/dist-lib/components/filters/FilterOmittedNotice.js +1 -2
  161. package/dist-lib/components/filters/filter-op-label.js +1 -2
  162. package/dist-lib/components/layout/CommandPalette.impl.js +24 -25
  163. package/dist-lib/components/layout/CommandPalette.js +1 -2
  164. package/dist-lib/components/layout/DirtyTabsCloseDialog.impl.js +15 -16
  165. package/dist-lib/components/layout/DirtyTabsCloseDialog.js +1 -2
  166. package/dist-lib/components/layout/ImpersonationBanner.impl.js +6 -7
  167. package/dist-lib/components/layout/ImpersonationBanner.js +1 -2
  168. package/dist-lib/components/layout/ImpersonationFrame.js +4 -5
  169. package/dist-lib/components/layout/ImpersonationStartModal.impl.js +4 -5
  170. package/dist-lib/components/layout/ImpersonationStartModal.js +1 -2
  171. package/dist-lib/components/layout/Layout.js +132 -140
  172. package/dist-lib/components/layout/Rail.js +11 -12
  173. package/dist-lib/components/layout/Sidebar.js +60 -61
  174. package/dist-lib/components/layout/TabStrip.js +66 -67
  175. package/dist-lib/components/layout/TenantChip.js +21 -22
  176. package/dist-lib/components/layout/TopBar.js +89 -90
  177. package/dist-lib/components/layout/tab-close.js +1 -2
  178. package/dist-lib/components/list/ColumnPicker.js +35 -36
  179. package/dist-lib/components/list/InlineEditCell.js +22 -23
  180. package/dist-lib/components/list/PeekFieldCell.js +7 -8
  181. package/dist-lib/components/list/QuickPeek.js +29 -30
  182. package/dist-lib/components/list/ViewSwitcher.js +44 -45
  183. package/dist-lib/components/list/peekDraftStore.js +1 -2
  184. package/dist-lib/components/pages/AdminCatalogPage.impl.js +59 -60
  185. package/dist-lib/components/pages/AdminCatalogPage.js +1 -2
  186. package/dist-lib/components/pages/DocumentsMenu.js +53 -54
  187. package/dist-lib/components/pages/ExportMenu.js +37 -38
  188. package/dist-lib/components/pages/NoScreensPage.impl.js +5 -6
  189. package/dist-lib/components/pages/NoScreensPage.js +1 -2
  190. package/dist-lib/components/pages/NotFoundPage.impl.js +7 -8
  191. package/dist-lib/components/pages/NotFoundPage.js +1 -2
  192. package/dist-lib/components/pages/RecordDocumentsPanel.js +40 -41
  193. package/dist-lib/components/pages/RecordNotesPanel.js +43 -44
  194. package/dist-lib/components/pages/RecordPanels.js +1 -2
  195. package/dist-lib/components/pages/SSOCallbackPage.impl.js +6 -7
  196. package/dist-lib/components/pages/SSOCallbackPage.js +1 -2
  197. package/dist-lib/components/pages/SmartDetailPage.impl.js +501 -502
  198. package/dist-lib/components/pages/SmartDetailPage.js +1 -2
  199. package/dist-lib/components/pages/SmartListPage.impl.js +316 -317
  200. package/dist-lib/components/pages/SmartListPage.js +1 -2
  201. package/dist-lib/components/pages/SmartRecordListPage.impl.js +316 -317
  202. package/dist-lib/components/pages/SmartRecordListPage.js +1 -2
  203. package/dist-lib/components/pages/auth/AuthShell.js +14 -15
  204. package/dist-lib/components/pages/auth/CodeInput.js +0 -1
  205. package/dist-lib/components/pages/auth/Forgot.impl.js +12 -13
  206. package/dist-lib/components/pages/auth/Forgot.js +1 -2
  207. package/dist-lib/components/pages/auth/Reset.impl.js +20 -21
  208. package/dist-lib/components/pages/auth/Reset.js +1 -2
  209. package/dist-lib/components/pages/auth/SignIn.js +44 -45
  210. package/dist-lib/components/pages/auth/SignUp.impl.js +35 -36
  211. package/dist-lib/components/pages/auth/SignUp.js +1 -2
  212. package/dist-lib/components/pages/auth/SignUpCode.js +17 -18
  213. package/dist-lib/components/pages/auth/TwoFA.impl.js +9 -10
  214. package/dist-lib/components/pages/auth/TwoFA.js +1 -2
  215. package/dist-lib/components/pages/auth/icons.js +1 -2
  216. package/dist-lib/components/pages/exportRequest.js +1 -2
  217. package/dist-lib/components/pages/list/DataCell.js +1 -2
  218. package/dist-lib/components/pages/list/DeleteViewDialog.js +5 -6
  219. package/dist-lib/components/pages/list/ListCardRow.js +53 -54
  220. package/dist-lib/components/pages/list/ListCardsBody.js +1 -2
  221. package/dist-lib/components/pages/list/ListFloatbar.js +25 -26
  222. package/dist-lib/components/pages/list/ListFooter.js +17 -18
  223. package/dist-lib/components/pages/list/ListHeader.js +31 -32
  224. package/dist-lib/components/pages/list/ListNoRows.js +32 -33
  225. package/dist-lib/components/pages/list/ListTable.js +29 -30
  226. package/dist-lib/components/pages/list/ListTableRow.js +1 -2
  227. package/dist-lib/components/pages/list/ListToolbar.js +58 -59
  228. package/dist-lib/components/pages/list/ListUrlBanner.js +1 -2
  229. package/dist-lib/components/pages/list/RowActionsCell.js +6 -7
  230. package/dist-lib/components/pages/list/RowContextMenu.js +1 -2
  231. package/dist-lib/components/pages/list/SaveViewDialog.js +5 -6
  232. package/dist-lib/components/pages/list/SortHeaderMenu.js +25 -26
  233. package/dist-lib/components/pages/list/cardProjection.js +16 -17
  234. package/dist-lib/components/pages/list/column-sizing.js +1 -2
  235. package/dist-lib/components/pages/list/columns.js +74 -75
  236. package/dist-lib/components/pages/list/filter-meta.js +1 -2
  237. package/dist-lib/components/pages/list/page-size.js +1 -2
  238. package/dist-lib/components/pages/list/sortable-header.js +1 -2
  239. package/dist-lib/components/pages/list/table-features.js +1 -2
  240. package/dist-lib/components/pages/list/use-filter-value-labels.js +15 -16
  241. package/dist-lib/components/pages/list/useActiveView.js +1 -2
  242. package/dist-lib/components/pages/list/useHeaderReorder.js +1 -2
  243. package/dist-lib/components/pages/list/useListColumnLayout.js +6 -7
  244. package/dist-lib/components/pages/list/useListFilterPresentation.js +1 -2
  245. package/dist-lib/components/pages/list/useListQuery.js +1 -2
  246. package/dist-lib/components/pages/list/useListRowInteraction.js +37 -38
  247. package/dist-lib/components/pages/list/useListSelection.js +16 -17
  248. package/dist-lib/components/pages/list/useListSort.js +1 -2
  249. package/dist-lib/components/pages/list/useListViews.js +31 -32
  250. package/dist-lib/components/pages/list/useRowMenu.js +20 -21
  251. package/dist-lib/components/pages/list/visible-filters.js +1 -2
  252. package/dist-lib/components/pages/profile/Preferences.impl.js +44 -45
  253. package/dist-lib/components/pages/profile/Preferences.js +1 -2
  254. package/dist-lib/components/pages/profile/Profile.impl.js +223 -224
  255. package/dist-lib/components/pages/profile/Profile.js +1 -2
  256. package/dist-lib/components/pages/tenant-params/TenantParamsPage.impl.js +133 -134
  257. package/dist-lib/components/pages/tenant-params/TenantParamsPage.js +1 -2
  258. package/dist-lib/components/params/ParamsBlock.js +30 -31
  259. package/dist-lib/components/params/param-editors.js +58 -59
  260. package/dist-lib/components/primitives/Avatar.js +1 -2
  261. package/dist-lib/components/primitives/BoolToggle.js +1 -2
  262. package/dist-lib/components/primitives/BrandGlyph.js +1 -2
  263. package/dist-lib/components/primitives/BrandLogo.js +1 -2
  264. package/dist-lib/components/primitives/Btn.js +1 -2
  265. package/dist-lib/components/primitives/Check.js +1 -2
  266. package/dist-lib/components/primitives/Chip.js +1 -2
  267. package/dist-lib/components/primitives/ClassifiedFieldLocked.js +1 -2
  268. package/dist-lib/components/primitives/Dropdown.js +2 -3
  269. package/dist-lib/components/primitives/Fields.js +128 -129
  270. package/dist-lib/components/primitives/HoverCard.js +2 -3
  271. package/dist-lib/components/primitives/IconBtn.js +1 -2
  272. package/dist-lib/components/primitives/Icons.js +1 -2
  273. package/dist-lib/components/primitives/Kbd.js +1 -2
  274. package/dist-lib/components/primitives/MenuItem.js +1 -2
  275. package/dist-lib/components/primitives/Pill.js +1 -2
  276. package/dist-lib/components/primitives/RecordIdBadge.js +1 -2
  277. package/dist-lib/components/primitives/RetryButton.js +5 -6
  278. package/dist-lib/components/primitives/RowField.js +1 -2
  279. package/dist-lib/components/primitives/SectionCard.js +1 -2
  280. package/dist-lib/components/primitives/Spinner.js +1 -2
  281. package/dist-lib/components/primitives/StatTile.js +1 -2
  282. package/dist-lib/components/primitives/Tooltip.js +1 -2
  283. package/dist-lib/components/primitives/dataTableStyles.js +1 -2
  284. package/dist-lib/components/shared/BlankScreen.js +1 -2
  285. package/dist-lib/components/shared/ChangePasswordDialog.impl.js +20 -21
  286. package/dist-lib/components/shared/ChangePasswordDialog.js +1 -2
  287. package/dist-lib/components/shared/ConfirmDialog.js +7 -8
  288. package/dist-lib/components/shared/ConnectionNotice.js +1 -2
  289. package/dist-lib/components/shared/CopyButton.js +1 -2
  290. package/dist-lib/components/shared/DynamicIcon.js +1 -2
  291. package/dist-lib/components/shared/EmptyState.js +1 -2
  292. package/dist-lib/components/shared/ErrorBoundary.js +10 -11
  293. package/dist-lib/components/shared/LoadingSkeleton.js +1 -2
  294. package/dist-lib/components/shared/LucideIcon.js +1 -2
  295. package/dist-lib/components/shared/Markdown.js +1 -2
  296. package/dist-lib/components/shared/MarkdownRenderer.js +22 -23
  297. package/dist-lib/components/shared/ModalFrame.js +1 -2
  298. package/dist-lib/components/shared/RefreshControl.js +6 -7
  299. package/dist-lib/components/shared/StatusGroupsDisplay.js +16 -17
  300. package/dist-lib/components/shared/StatusStepper.js +1 -2
  301. package/dist-lib/components/shared/toast/DeclarionToast.js +1 -2
  302. package/dist-lib/components/shared/useOwnRefresh.js +1 -2
  303. package/dist-lib/embed/EmbedAuthBootstrap.js +30 -31
  304. package/dist-lib/embed/EmbedContext.js +1 -2
  305. package/dist-lib/embed/EmbedDirtyReporter.js +6 -7
  306. package/dist-lib/embed/EmbedHistoryTracker.js +1 -2
  307. package/dist-lib/embed/EmbedLocationReporter.js +11 -12
  308. package/dist-lib/embed/EmbedResizeReporter.js +9 -10
  309. package/dist-lib/embed/EmbedUnsavedGuard.js +5 -6
  310. package/dist-lib/embed/embed-dirty.js +1 -2
  311. package/dist-lib/embed/embed-history.js +1 -2
  312. package/dist-lib/embed/embed-nav-guard.js +1 -2
  313. package/dist-lib/embed/file-src.js +12 -13
  314. package/dist-lib/embed/handshake.js +1 -2
  315. package/dist-lib/embed/params.js +1 -2
  316. package/dist-lib/embed/protocol.js +1 -2
  317. package/dist-lib/embed/screen-location.js +1 -2
  318. package/dist-lib/embed/theme.js +1 -2
  319. package/dist-lib/embed/token.js +1 -2
  320. package/dist-lib/embed/useEmbedNavigate.js +25 -26
  321. package/dist-lib/embed/useGlobalLinkInterceptor.js +9 -10
  322. package/dist-lib/hooks/useActionData.js +1 -2
  323. package/dist-lib/hooks/useActiveTabFollowsRoute.js +7 -8
  324. package/dist-lib/hooks/useAgentConversation.js +122 -123
  325. package/dist-lib/hooks/useAggregate.js +1 -2
  326. package/dist-lib/hooks/useAllEntityData.js +9 -10
  327. package/dist-lib/hooks/useAssociatedData.js +1 -2
  328. package/dist-lib/hooks/useAuth.js +26 -27
  329. package/dist-lib/hooks/useBranding.js +1 -2
  330. package/dist-lib/hooks/useBrandingChrome.js +16 -17
  331. package/dist-lib/hooks/useChildrenData.js +4 -5
  332. package/dist-lib/hooks/useColumns.js +1 -2
  333. package/dist-lib/hooks/useConnectionNotice.js +16 -17
  334. package/dist-lib/hooks/useCurrentLocation.js +1 -2
  335. package/dist-lib/hooks/useCurrentScreen.js +1 -2
  336. package/dist-lib/hooks/useCursorEntityData.js +1 -2
  337. package/dist-lib/hooks/useDebounce.js +1 -2
  338. package/dist-lib/hooks/useDisplayTimeZone.js +4 -5
  339. package/dist-lib/hooks/useDocumentTitle.js +5 -6
  340. package/dist-lib/hooks/useEntity.js +1 -2
  341. package/dist-lib/hooks/useEntityData.js +1 -2
  342. package/dist-lib/hooks/useFileReferenceJSON.js +9 -10
  343. package/dist-lib/hooks/useFilters.js +5 -6
  344. package/dist-lib/hooks/useFollowAgentOpen.js +40 -41
  345. package/dist-lib/hooks/useImpersonation.js +15 -16
  346. package/dist-lib/hooks/useIntentPrefetch.js +6 -7
  347. package/dist-lib/hooks/useJsonSnapshot.js +1 -2
  348. package/dist-lib/hooks/useLanguage.js +11 -12
  349. package/dist-lib/hooks/useLiveObject.js +6 -7
  350. package/dist-lib/hooks/useLongPress.js +1 -2
  351. package/dist-lib/hooks/useMutations.js +31 -32
  352. package/dist-lib/hooks/useObject.js +1 -2
  353. package/dist-lib/hooks/useObjectStatus.js +4 -5
  354. package/dist-lib/hooks/usePageState.js +9 -10
  355. package/dist-lib/hooks/usePageStateRuntime.js +16 -17
  356. package/dist-lib/hooks/usePageStateTtl.js +1 -2
  357. package/dist-lib/hooks/useParams.js +58 -59
  358. package/dist-lib/hooks/useProperties.js +5 -6
  359. package/dist-lib/hooks/useRealtimeThresholds.js +4 -5
  360. package/dist-lib/hooks/useRefRecords.js +31 -32
  361. package/dist-lib/hooks/useRegisterScreenTab.js +12 -13
  362. package/dist-lib/hooks/useResponsiveMode.js +1 -2
  363. package/dist-lib/hooks/useRowTenant.js +1 -2
  364. package/dist-lib/hooks/useSSE.js +100 -101
  365. package/dist-lib/hooks/useSchema.js +16 -17
  366. package/dist-lib/hooks/useScreen.js +1 -2
  367. package/dist-lib/hooks/useScreenBack.js +17 -18
  368. package/dist-lib/hooks/useScreenTab.js +1 -2
  369. package/dist-lib/hooks/useTabNavigate.js +25 -26
  370. package/dist-lib/hooks/useTabSearchMirror.js +6 -7
  371. package/dist-lib/hooks/useTabTitle.js +10 -11
  372. package/dist-lib/hooks/useText.js +6 -7
  373. package/dist-lib/hooks/useTimelineData.js +5 -6
  374. package/dist-lib/hooks/useUiPreferences.js +31 -32
  375. package/dist-lib/hooks/useUnsavedInput.js +1 -2
  376. package/dist-lib/hooks/useVersionWatcher.js +16 -17
  377. package/dist-lib/hooks/useViews.js +16 -17
  378. package/dist-lib/hooks/useWindowConversation.js +1 -2
  379. package/dist-lib/{icon-registry-CUT4eF63.d.ts → icon-registry-BY2tt-GF.d.ts} +0 -2
  380. package/dist-lib/icons.d.ts +2 -4
  381. package/dist-lib/icons.js +5 -5
  382. package/dist-lib/index.d.ts +4 -272
  383. package/dist-lib/index.js +129 -129
  384. package/dist-lib/lib/action-dispatch.js +1 -2
  385. package/dist-lib/lib/actions.js +26 -27
  386. package/dist-lib/lib/anchor.js +1 -2
  387. package/dist-lib/lib/brand-tokens.js +1 -2
  388. package/dist-lib/lib/branding.js +1 -2
  389. package/dist-lib/lib/canonical-url.js +1 -2
  390. package/dist-lib/lib/capabilityPrefetch.js +1 -2
  391. package/dist-lib/lib/child-config.js +1 -2
  392. package/dist-lib/lib/children-validation.js +2 -3
  393. package/dist-lib/lib/date-text.js +1 -2
  394. package/dist-lib/lib/decimal-text.js +1 -2
  395. package/dist-lib/lib/display-value.js +1 -2
  396. package/dist-lib/lib/document-templates.js +1 -2
  397. package/dist-lib/lib/download.js +13 -14
  398. package/dist-lib/lib/evidence-verdict.js +1 -2
  399. package/dist-lib/lib/failure.js +4 -5
  400. package/dist-lib/lib/field-classification.js +1 -2
  401. package/dist-lib/lib/field-regions.js +1 -2
  402. package/dist-lib/lib/filter-evaluator.js +1 -2
  403. package/dist-lib/lib/filters.js +1 -2
  404. package/dist-lib/lib/format-count.js +1 -2
  405. package/dist-lib/lib/html-state.js +1 -2
  406. package/dist-lib/lib/language.js +1 -2
  407. package/dist-lib/lib/longPressGesture.js +0 -1
  408. package/dist-lib/lib/mass-edit.js +1 -2
  409. package/dist-lib/lib/money-text.js +1 -2
  410. package/dist-lib/lib/number-text.js +1 -2
  411. package/dist-lib/lib/page-inset.js +1 -2
  412. package/dist-lib/lib/phone.js +1 -2
  413. package/dist-lib/lib/profile.js +1 -2
  414. package/dist-lib/lib/query-retry.js +1 -2
  415. package/dist-lib/lib/quick-add.js +1 -2
  416. package/dist-lib/lib/read-display-state.js +1 -2
  417. package/dist-lib/lib/realtime-query-keys.js +2 -3
  418. package/dist-lib/lib/realtime-reconcile.js +32 -33
  419. package/dist-lib/lib/realtime-resync.js +40 -41
  420. package/dist-lib/lib/record-documents-key.js +1 -2
  421. package/dist-lib/lib/ref-choices.js +1 -2
  422. package/dist-lib/lib/refetch-when-idle.js +1 -2
  423. package/dist-lib/lib/rich-text.js +1 -2
  424. package/dist-lib/lib/role-label.js +1 -2
  425. package/dist-lib/lib/rowClickGesture.js +1 -2
  426. package/dist-lib/lib/safe-url.js +1 -2
  427. package/dist-lib/lib/schema-routing.js +1 -2
  428. package/dist-lib/lib/screen-back.js +1 -2
  429. package/dist-lib/lib/scroll-restoration.js +21 -22
  430. package/dist-lib/lib/shortcut.js +1 -2
  431. package/dist-lib/lib/size-value.js +1 -2
  432. package/dist-lib/lib/sort.js +1 -2
  433. package/dist-lib/lib/timestamp.js +1 -2
  434. package/dist-lib/lib/toast.js +1 -2
  435. package/dist-lib/lib/ui-actions.js +43 -44
  436. package/dist-lib/lib/utils.js +1 -2
  437. package/dist-lib/lib/variants.js +1 -2
  438. package/dist-lib/lib/versionTracker.js +26 -27
  439. package/dist-lib/lib/viewport-category.js +1 -2
  440. package/dist-lib/lib/window-election.js +1 -2
  441. package/dist-lib/stores/auth.js +32 -33
  442. package/dist-lib/stores/icon-registry.js +1 -2
  443. package/dist-lib/stores/list-layout.js +0 -1
  444. package/dist-lib/stores/page-state.js +1 -2
  445. package/dist-lib/stores/preferences.js +1 -2
  446. package/dist-lib/stores/realtime.js +1 -2
  447. package/dist-lib/stores/screen-registry.js +1 -2
  448. package/dist-lib/stores/tabs.js +1 -2
  449. package/dist-lib/test/seed-schema.js +4 -5
  450. package/dist-lib/testing.d.ts +2 -4
  451. package/dist-lib/testing.js +49 -50
  452. package/dist-lib/types/api.js +1 -2
  453. package/dist-lib/types/fieldType.js +1 -2
  454. package/dist-lib/types/ordmap.js +1 -2
  455. package/dist-lib/types/schema.js +1 -2
  456. package/dist-lib/{useResponsiveMode-C4MeAgoS.d.ts → useResponsiveMode-BElw02Gh.d.ts} +1 -19
  457. package/dist-lib/vite/index.d.ts +0 -2
  458. package/dist-lib/vite/index.js +1 -2
  459. package/package.json +11 -11
@@ -1,16 +1,16 @@
1
- import { formatDateText as e, isDateDraft as t, parseDateText as n } from "../../lib/date-text.js";
2
- import { Icon as r } from "./Icons.js";
1
+ import { Icon as e } from "./Icons.js";
2
+ import { Dropdown as t } from "./Dropdown.js";
3
+ import { MenuItem as n } from "./MenuItem.js";
4
+ import { Chip as r } from "./Chip.js";
3
5
  import { Btn as i } from "./Btn.js";
4
6
  import { IconBtn as a } from "./IconBtn.js";
5
- import { Dropdown as o } from "./Dropdown.js";
6
- import { Chip as s } from "./Chip.js";
7
- import { useText as c } from "../../hooks/useText.js";
8
- import { BoolToggle as l } from "./BoolToggle.js";
9
- import { MenuItem as u } from "./MenuItem.js";
7
+ import { BoolToggle as o } from "./BoolToggle.js";
8
+ import { useText as s } from "../../hooks/useText.js";
9
+ import { formatDateText as c, isDateDraft as l, parseDateText as u } from "../../lib/date-text.js";
10
10
  import { useId as d, useMemo as f, useRef as p, useState as m } from "react";
11
11
  import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
12
- //#region src/components/primitives/Fields.tsx
13
- var v = ({ children: e, required: t, hint: n, htmlFor: i, id: a }) => /* @__PURE__ */ _("div", {
12
+ // src/components/primitives/Fields.tsx
13
+ var v = ({ children: t, required: n, hint: r, htmlFor: i, id: a }) => /* @__PURE__ */ _("div", {
14
14
  style: {
15
15
  display: "flex",
16
16
  alignItems: "center",
@@ -25,24 +25,24 @@ var v = ({ children: e, required: t, hint: n, htmlFor: i, id: a }) => /* @__PURE
25
25
  i ? /* @__PURE__ */ g("label", {
26
26
  id: a,
27
27
  htmlFor: i,
28
- children: e
28
+ children: t
29
29
  }) : /* @__PURE__ */ g("span", {
30
30
  id: a,
31
- children: e
31
+ children: t
32
32
  }),
33
- t && /* @__PURE__ */ g("span", {
33
+ n && /* @__PURE__ */ g("span", {
34
34
  "aria-hidden": "true",
35
35
  style: { color: "var(--danger)" },
36
36
  children: "*"
37
37
  }),
38
- n && /* @__PURE__ */ g("span", {
39
- title: n,
38
+ r && /* @__PURE__ */ g("span", {
39
+ title: r,
40
40
  style: {
41
41
  cursor: "help",
42
42
  color: "var(--text-4)",
43
43
  display: "flex"
44
44
  },
45
- children: /* @__PURE__ */ g(r.info, { size: 11 })
45
+ children: /* @__PURE__ */ g(e.info, { size: 11 })
46
46
  })
47
47
  ]
48
48
  }), y = {
@@ -146,20 +146,20 @@ var S = 20, C = 100;
146
146
  function w(e) {
147
147
  return typeof e.label == "string" || typeof e.label == "number" ? String(e.label) : e.value;
148
148
  }
149
- function T({ value: e, options: t, onChange: n, placeholder: i, onSearchChange: a, ...s }) {
150
- let l = c(), [d, v] = m(!1), [x, T] = m(""), E = p(null), D = t.find((t) => !t.heading && !t.divider && t.value === e), O = t.filter((e) => !e.heading && !e.divider).length, k = !!a, A = k || O > S, j = (e) => {
151
- T(e), a?.(e);
149
+ function T({ value: r, options: i, onChange: a, placeholder: o, onSearchChange: c, ...l }) {
150
+ let u = s(), [d, v] = m(!1), [x, T] = m(""), E = p(null), D = i.find((e) => !e.heading && !e.divider && e.value === r), O = i.filter((e) => !e.heading && !e.divider).length, k = !!c, A = k || O > S, j = (e) => {
151
+ T(e), c?.(e);
152
152
  }, M = f(() => {
153
- if (k) return t.slice(0, C);
153
+ if (k) return i.slice(0, C);
154
154
  let e = x.trim().toLowerCase();
155
- return e ? t.filter((t) => !t.heading && !t.divider && w(t).toLowerCase().includes(e)).slice(0, C) : t.slice(0, C);
155
+ return e ? i.filter((t) => !t.heading && !t.divider && w(t).toLowerCase().includes(e)).slice(0, C) : i.slice(0, C);
156
156
  }, [
157
- t,
157
+ i,
158
158
  x,
159
159
  k
160
160
  ]);
161
161
  return /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ _("button", {
162
- ...s,
162
+ ...l,
163
163
  type: "button",
164
164
  ref: E,
165
165
  "aria-haspopup": "listbox",
@@ -177,7 +177,7 @@ function T({ value: e, options: t, onChange: n, placeholder: i, onSearchChange:
177
177
  justifyContent: "space-between",
178
178
  textAlign: "left",
179
179
  cursor: "pointer",
180
- ...s.style,
180
+ ...l.style,
181
181
  color: D ? "var(--text)" : "var(--text-placeholder)"
182
182
  },
183
183
  children: [/* @__PURE__ */ g("span", {
@@ -189,8 +189,8 @@ function T({ value: e, options: t, onChange: n, placeholder: i, onSearchChange:
189
189
  textOverflow: "ellipsis",
190
190
  whiteSpace: "nowrap"
191
191
  },
192
- children: D ? D.label : i ?? l("control.select.placeholder", "Select…")
193
- }), /* @__PURE__ */ g(r.down, {
192
+ children: D ? D.label : o ?? u("control.select.placeholder", "Select…")
193
+ }), /* @__PURE__ */ g(e.down, {
194
194
  size: 12,
195
195
  cls: "",
196
196
  style: {
@@ -198,7 +198,7 @@ function T({ value: e, options: t, onChange: n, placeholder: i, onSearchChange:
198
198
  flexShrink: 0
199
199
  }
200
200
  })]
201
- }), /* @__PURE__ */ _(o, {
201
+ }), /* @__PURE__ */ _(t, {
202
202
  open: d,
203
203
  anchor: E.current,
204
204
  onClose: () => v(!1),
@@ -219,15 +219,15 @@ function T({ value: e, options: t, onChange: n, placeholder: i, onSearchChange:
219
219
  children: /* @__PURE__ */ g(b, {
220
220
  value: x,
221
221
  onChange: j,
222
- placeholder: l("control.search", "Search…"),
223
- prefix: /* @__PURE__ */ g(r.search, { size: 12 }),
222
+ placeholder: u("control.search", "Search…"),
223
+ prefix: /* @__PURE__ */ g(e.search, { size: 12 }),
224
224
  autoFocus: !0
225
225
  })
226
226
  }),
227
- M.map((t, r) => t.divider ? /* @__PURE__ */ g("div", { style: {
227
+ M.map((e, t) => e.divider ? /* @__PURE__ */ g("div", { style: {
228
228
  borderTop: "1px solid var(--divider)",
229
229
  margin: "4px 0"
230
- } }, `divider-${r}`) : t.heading ? /* @__PURE__ */ g("div", {
230
+ } }, `divider-${t}`) : e.heading ? /* @__PURE__ */ g("div", {
231
231
  style: {
232
232
  padding: "6px 10px 2px",
233
233
  fontSize: 10.5,
@@ -236,39 +236,39 @@ function T({ value: e, options: t, onChange: n, placeholder: i, onSearchChange:
236
236
  textTransform: "uppercase",
237
237
  letterSpacing: "0.06em"
238
238
  },
239
- children: t.label
240
- }, `heading-${r}`) : /* @__PURE__ */ g(u, {
239
+ children: e.label
240
+ }, `heading-${t}`) : /* @__PURE__ */ g(n, {
241
241
  onClick: () => {
242
- n(t.value), v(!1);
242
+ a(e.value), v(!1);
243
243
  },
244
- active: t.value === e,
245
- children: t.label
246
- }, t.value)),
244
+ active: e.value === r,
245
+ children: e.label
246
+ }, e.value)),
247
247
  M.length === 0 && /* @__PURE__ */ g("div", {
248
248
  style: {
249
249
  padding: "8px 10px",
250
250
  fontSize: 12.5,
251
251
  color: "var(--text-3)"
252
252
  },
253
- children: l("control.no_matches", "No matches")
253
+ children: u("control.no_matches", "No matches")
254
254
  })
255
255
  ]
256
256
  })] });
257
257
  }
258
- function E({ value: e = [], options: t, onChange: n, placeholder: i, ...a }) {
259
- let s = c(), [l, d] = m(!1), [v, x] = m(""), T = p(null), E = t.filter((e) => !e.heading && !e.divider), D = E.length > S, O = e.map((e) => E.find((t) => t.value === e) ?? {
258
+ function E({ value: r = [], options: i, onChange: a, placeholder: o, ...c }) {
259
+ let l = s(), [u, d] = m(!1), [v, x] = m(""), T = p(null), E = i.filter((e) => !e.heading && !e.divider), D = E.length > S, O = r.map((e) => E.find((t) => t.value === e) ?? {
260
260
  value: e,
261
261
  label: e
262
262
  }), k = f(() => {
263
263
  let e = v.trim().toLowerCase();
264
- return e ? t.filter((t) => !t.heading && !t.divider && w(t).toLowerCase().includes(e)).slice(0, C) : t.slice(0, C);
265
- }, [t, v]), A = (t) => n(e.includes(t) ? e.filter((e) => e !== t) : [...e, t]);
264
+ return e ? i.filter((t) => !t.heading && !t.divider && w(t).toLowerCase().includes(e)).slice(0, C) : i.slice(0, C);
265
+ }, [i, v]), A = (e) => a(r.includes(e) ? r.filter((t) => t !== e) : [...r, e]);
266
266
  return /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ _("button", {
267
- ...a,
267
+ ...c,
268
268
  type: "button",
269
269
  ref: T,
270
270
  "aria-haspopup": "listbox",
271
- "aria-expanded": l,
271
+ "aria-expanded": u,
272
272
  onClick: () => {
273
273
  d((e) => {
274
274
  let t = !e;
@@ -286,15 +286,15 @@ function E({ value: e = [], options: t, onChange: n, placeholder: i, ...a }) {
286
286
  padding: O.length ? "3px 8px" : "0 10px",
287
287
  textAlign: "left",
288
288
  cursor: "pointer",
289
- ...a.style
289
+ ...c.style
290
290
  },
291
291
  children: [O.length === 0 ? /* @__PURE__ */ g("span", {
292
292
  style: {
293
293
  flex: 1,
294
294
  color: "var(--text-placeholder)"
295
295
  },
296
- children: i ?? s("control.select.placeholder", "Select…")
297
- }) : O.map((e) => /* @__PURE__ */ _("span", {
296
+ children: o ?? l("control.select.placeholder", "Select…")
297
+ }) : O.map((t) => /* @__PURE__ */ _("span", {
298
298
  style: {
299
299
  display: "inline-flex",
300
300
  alignItems: "center",
@@ -314,12 +314,12 @@ function E({ value: e = [], options: t, onChange: n, placeholder: i, ...a }) {
314
314
  textOverflow: "ellipsis",
315
315
  whiteSpace: "nowrap"
316
316
  },
317
- children: e.label
317
+ children: t.label
318
318
  }), /* @__PURE__ */ g("span", {
319
319
  role: "button",
320
- "aria-label": s("control.remove_value", "Remove {value}", { value: w(e) }),
321
- onClick: (t) => {
322
- t.stopPropagation(), A(e.value);
320
+ "aria-label": l("control.remove_value", "Remove {value}", { value: w(t) }),
321
+ onClick: (e) => {
322
+ e.stopPropagation(), A(t.value);
323
323
  },
324
324
  style: {
325
325
  display: "flex",
@@ -327,9 +327,9 @@ function E({ value: e = [], options: t, onChange: n, placeholder: i, ...a }) {
327
327
  cursor: "pointer",
328
328
  flexShrink: 0
329
329
  },
330
- children: /* @__PURE__ */ g(r.x, { size: 12 })
330
+ children: /* @__PURE__ */ g(e.x, { size: 12 })
331
331
  })]
332
- }, e.value)), /* @__PURE__ */ g(r.down, {
332
+ }, t.value)), /* @__PURE__ */ g(e.down, {
333
333
  size: 12,
334
334
  cls: "",
335
335
  style: {
@@ -338,8 +338,8 @@ function E({ value: e = [], options: t, onChange: n, placeholder: i, ...a }) {
338
338
  flexShrink: 0
339
339
  }
340
340
  })]
341
- }), /* @__PURE__ */ _(o, {
342
- open: l,
341
+ }), /* @__PURE__ */ _(t, {
342
+ open: u,
343
343
  anchor: T.current,
344
344
  onClose: () => d(!1),
345
345
  width: T.current?.offsetWidth,
@@ -359,16 +359,16 @@ function E({ value: e = [], options: t, onChange: n, placeholder: i, ...a }) {
359
359
  children: /* @__PURE__ */ g(b, {
360
360
  value: v,
361
361
  onChange: x,
362
- placeholder: s("control.search", "Search…"),
363
- prefix: /* @__PURE__ */ g(r.search, { size: 12 }),
362
+ placeholder: l("control.search", "Search…"),
363
+ prefix: /* @__PURE__ */ g(e.search, { size: 12 }),
364
364
  autoFocus: !0
365
365
  })
366
366
  }),
367
- k.map((t, n) => {
367
+ k.map((t, i) => {
368
368
  if (t.divider) return /* @__PURE__ */ g("div", { style: {
369
369
  borderTop: "1px solid var(--divider)",
370
370
  margin: "4px 0"
371
- } }, `divider-${n}`);
371
+ } }, `divider-${i}`);
372
372
  if (t.heading) return /* @__PURE__ */ g("div", {
373
373
  style: {
374
374
  padding: "6px 10px 2px",
@@ -379,11 +379,11 @@ function E({ value: e = [], options: t, onChange: n, placeholder: i, ...a }) {
379
379
  letterSpacing: "0.06em"
380
380
  },
381
381
  children: t.label
382
- }, `heading-${n}`);
383
- let i = e.includes(t.value);
384
- return /* @__PURE__ */ g(u, {
385
- active: i,
386
- icon: i ? /* @__PURE__ */ g(r.check, { size: 13 }) : /* @__PURE__ */ g("span", { style: {
382
+ }, `heading-${i}`);
383
+ let a = r.includes(t.value);
384
+ return /* @__PURE__ */ g(n, {
385
+ active: a,
386
+ icon: a ? /* @__PURE__ */ g(e.check, { size: 13 }) : /* @__PURE__ */ g("span", { style: {
387
387
  display: "inline-block",
388
388
  width: 13
389
389
  } }),
@@ -397,15 +397,15 @@ function E({ value: e = [], options: t, onChange: n, placeholder: i, ...a }) {
397
397
  fontSize: 12.5,
398
398
  color: "var(--text-3)"
399
399
  },
400
- children: s("control.no_matches", "No matches")
400
+ children: l("control.no_matches", "No matches")
401
401
  })
402
402
  ]
403
403
  })] });
404
404
  }
405
- function D({ kind: i, value: o, onChange: s, id: l, name: u, ariaRequired: f }) {
406
- let h = c(), v = `${d()}-error`, y = p(null), x = o ? e(i, o) : "", [S, C] = m(x), [w, T] = m(o), [E, D] = m(!1);
407
- o !== w && (T(o), (o === null ? S !== "" : n(i, S) !== (o || null)) && (C(x), D(!1)));
408
- let O = i === "date" ? {
405
+ function D({ kind: t, value: n, onChange: r, id: i, name: o, ariaRequired: f }) {
406
+ let h = s(), v = `${d()}-error`, y = p(null), x = n ? c(t, n) : "", [S, C] = m(x), [w, T] = m(n), [E, D] = m(!1);
407
+ n !== w && (T(n), (n === null ? S !== "" : u(t, S) !== (n || null)) && (C(x), D(!1)));
408
+ let O = t === "date" ? {
409
409
  placeholder: h("control.date.placeholder", "DD-MM-YYYY"),
410
410
  invalid: h("control.date.invalid", "Enter the date as DD-MM-YYYY.")
411
411
  } : {
@@ -419,23 +419,23 @@ function D({ kind: i, value: o, onChange: s, id: l, name: u, ariaRequired: f })
419
419
  gap: 4
420
420
  },
421
421
  children: [/* @__PURE__ */ g(b, {
422
- id: l,
423
- name: u,
422
+ id: i,
423
+ name: o,
424
424
  "aria-required": f || void 0,
425
425
  "aria-invalid": E || void 0,
426
426
  "aria-describedby": E ? v : void 0,
427
427
  type: "text",
428
- inputMode: i === "date" ? "numeric" : void 0,
428
+ inputMode: t === "date" ? "numeric" : void 0,
429
429
  autoComplete: "off",
430
430
  placeholder: O.placeholder,
431
431
  value: S,
432
432
  onChange: (e) => {
433
- t(e) && (C(e), D(!1), s(e.trim() === "" ? null : n(i, e), e));
433
+ l(e) && (C(e), D(!1), r(e.trim() === "" ? null : u(t, e), e));
434
434
  },
435
435
  onBlur: () => {
436
436
  if (S.trim() === "") return;
437
- let t = n(i, S);
438
- t ? C(e(i, t)) : D(!0);
437
+ let e = u(t, S);
438
+ e ? C(c(t, e)) : D(!0);
439
439
  },
440
440
  suffix: /* @__PURE__ */ _("span", {
441
441
  style: {
@@ -443,7 +443,7 @@ function D({ kind: i, value: o, onChange: s, id: l, name: u, ariaRequired: f })
443
443
  display: "flex"
444
444
  },
445
445
  children: [/* @__PURE__ */ g(a, {
446
- icon: /* @__PURE__ */ g(r.calendar, { size: 13 }),
446
+ icon: /* @__PURE__ */ g(e.calendar, { size: 13 }),
447
447
  title: k,
448
448
  size: 22,
449
449
  onClick: () => {
@@ -456,13 +456,13 @@ function D({ kind: i, value: o, onChange: s, id: l, name: u, ariaRequired: f })
456
456
  }
457
457
  }), /* @__PURE__ */ g("input", {
458
458
  ref: y,
459
- type: i === "date" ? "date" : "datetime-local",
459
+ type: t === "date" ? "date" : "datetime-local",
460
460
  tabIndex: -1,
461
461
  "aria-hidden": "true",
462
- value: o ?? "",
463
- onChange: (t) => {
464
- let n = t.target.value, r = n ? e(i, n) : "";
465
- C(r), D(!1), s(n || null, r);
462
+ value: n ?? "",
463
+ onChange: (e) => {
464
+ let n = e.target.value, i = n ? c(t, n) : "";
465
+ C(i), D(!1), r(n || null, i);
466
466
  },
467
467
  style: {
468
468
  position: "absolute",
@@ -502,16 +502,16 @@ var k = [
502
502
  "var(--accent)",
503
503
  "var(--success, #3FBF8F)"
504
504
  ];
505
- function j({ value: e, onChange: t, placeholder: n, showStrength: i, id: a, name: o, ariaRequired: s }) {
506
- let l = c(), [u, d] = m(!1), f = e || "", p = O(f);
505
+ function j({ value: t, onChange: n, placeholder: r, showStrength: i, id: a, name: o, ariaRequired: c }) {
506
+ let l = s(), [u, d] = m(!1), f = t || "", p = O(f);
507
507
  return /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g(b, {
508
508
  id: a,
509
509
  name: o,
510
- "aria-required": s || void 0,
510
+ "aria-required": c || void 0,
511
511
  type: u ? "text" : "password",
512
512
  value: f,
513
- onChange: t,
514
- placeholder: n ?? l("control.password.placeholder", "Enter password"),
513
+ onChange: n,
514
+ placeholder: r ?? l("control.password.placeholder", "Enter password"),
515
515
  suffix: /* @__PURE__ */ g("button", {
516
516
  type: "button",
517
517
  "aria-label": u ? l("control.password.hide", "Hide password") : l("control.password.show", "Show password"),
@@ -524,7 +524,7 @@ function j({ value: e, onChange: t, placeholder: n, showStrength: i, id: a, name
524
524
  display: "flex"
525
525
  },
526
526
  onClick: () => d((e) => !e),
527
- children: g(u ? r.eyeOff : r.eye, { size: 14 })
527
+ children: g(u ? e.eyeOff : e.eye, { size: 14 })
528
528
  })
529
529
  }), i && /* @__PURE__ */ _("div", {
530
530
  style: {
@@ -563,7 +563,7 @@ function j({ value: e, onChange: t, placeholder: n, showStrength: i, id: a, name
563
563
  })] });
564
564
  }
565
565
  function M({ value: e = [], onChange: t }) {
566
- let n = c(), [r, i] = m("");
566
+ let n = s(), [i, a] = m("");
567
567
  return /* @__PURE__ */ _("div", {
568
568
  style: {
569
569
  ...y,
@@ -575,15 +575,15 @@ function M({ value: e = [], onChange: t }) {
575
575
  padding: "4px 6px",
576
576
  alignItems: "center"
577
577
  },
578
- children: [e.map((n, r) => /* @__PURE__ */ g(s, {
578
+ children: [e.map((n, i) => /* @__PURE__ */ g(r, {
579
579
  tone: "slate",
580
- onRemove: () => t(e.filter((e, t) => t !== r)),
580
+ onRemove: () => t(e.filter((e, t) => t !== i)),
581
581
  children: n
582
- }, r)), /* @__PURE__ */ g("input", {
583
- value: r,
584
- onChange: (e) => i(e.target.value),
582
+ }, i)), /* @__PURE__ */ g("input", {
583
+ value: i,
584
+ onChange: (e) => a(e.target.value),
585
585
  onKeyDown: (n) => {
586
- n.key === "Enter" && r.trim() && (t([...e, r.trim()]), i(""), n.preventDefault()), n.key === "Backspace" && !r && e.length && t(e.slice(0, -1));
586
+ n.key === "Enter" && i.trim() && (t([...e, i.trim()]), a(""), n.preventDefault()), n.key === "Backspace" && !i && e.length && t(e.slice(0, -1));
587
587
  },
588
588
  placeholder: e.length ? "" : n("control.tags.placeholder", "Add tag… (Enter)"),
589
589
  style: {
@@ -600,7 +600,7 @@ function M({ value: e = [], onChange: t }) {
600
600
  }
601
601
  var N = "JSON";
602
602
  function P({ value: e, onChange: t }) {
603
- let n = c();
603
+ let n = s();
604
604
  return /* @__PURE__ */ _("div", {
605
605
  style: {
606
606
  border: "1px solid var(--border)",
@@ -659,13 +659,13 @@ function P({ value: e, onChange: t }) {
659
659
  })]
660
660
  });
661
661
  }
662
- function F({ value: e, entity: t = "company", onChange: n, items: i = [], id: a, ariaLabelledby: s, ariaRequired: l }) {
663
- let d = c(), [f, v] = m(!1), x = p(null);
662
+ function F({ value: r, entity: i = "company", onChange: a, items: o = [], id: c, ariaLabelledby: l, ariaRequired: u }) {
663
+ let d = s(), [f, v] = m(!1), x = p(null);
664
664
  return /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ _("button", {
665
665
  type: "button",
666
- id: a,
667
- "aria-labelledby": s,
668
- "aria-required": l || void 0,
666
+ id: c,
667
+ "aria-labelledby": l,
668
+ "aria-required": u || void 0,
669
669
  ref: x,
670
670
  onClick: () => v(!0),
671
671
  style: {
@@ -694,17 +694,17 @@ function F({ value: e, entity: t = "company", onChange: n, items: i = [], id: a,
694
694
  alignItems: "center",
695
695
  justifyContent: "center"
696
696
  },
697
- children: /* @__PURE__ */ g(r.link, { size: 11 })
697
+ children: /* @__PURE__ */ g(e.link, { size: 11 })
698
698
  }), /* @__PURE__ */ g("span", {
699
- style: { color: e ? "var(--accent)" : "var(--text-placeholder)" },
700
- children: e || d("control.ref.link_to", "Link to {entity}…", { entity: t })
699
+ style: { color: r ? "var(--accent)" : "var(--text-placeholder)" },
700
+ children: r || d("control.ref.link_to", "Link to {entity}…", { entity: i })
701
701
  })]
702
- }), /* @__PURE__ */ g(r.search, {
702
+ }), /* @__PURE__ */ g(e.search, {
703
703
  size: 12,
704
704
  cls: "",
705
705
  style: { color: "var(--text-3)" }
706
706
  })]
707
- }), /* @__PURE__ */ _(o, {
707
+ }), /* @__PURE__ */ _(t, {
708
708
  open: f,
709
709
  anchor: x.current,
710
710
  onClose: () => v(!1),
@@ -712,17 +712,17 @@ function F({ value: e, entity: t = "company", onChange: n, items: i = [], id: a,
712
712
  children: [/* @__PURE__ */ g("div", {
713
713
  style: { padding: 4 },
714
714
  children: /* @__PURE__ */ g(b, {
715
- placeholder: d("control.ref.search", "Search {entity}…", { entity: t }),
716
- prefix: /* @__PURE__ */ g(r.search, { size: 12 }),
715
+ placeholder: d("control.ref.search", "Search {entity}…", { entity: i }),
716
+ prefix: /* @__PURE__ */ g(e.search, { size: 12 }),
717
717
  style: { marginBottom: 4 }
718
718
  })
719
- }), i.slice(0, 6).map((e) => /* @__PURE__ */ g(u, {
720
- icon: /* @__PURE__ */ g(r.building, { size: 13 }),
719
+ }), o.slice(0, 6).map((t) => /* @__PURE__ */ g(n, {
720
+ icon: /* @__PURE__ */ g(e.building, { size: 13 }),
721
721
  onClick: () => {
722
- n?.(e.name), v(!1);
722
+ a?.(t.name), v(!1);
723
723
  },
724
- children: e.name
725
- }, e.id))]
724
+ children: t.name
725
+ }, t.id))]
726
726
  })] });
727
727
  }
728
728
  function I({ label: e, children: t, mono: n, wide: r, empty: i }) {
@@ -758,13 +758,13 @@ function I({ label: e, children: t, mono: n, wide: r, empty: i }) {
758
758
  })]
759
759
  });
760
760
  }
761
- function L({ value: e, onChange: t, type: n = "text", options: i }) {
762
- let o = c(), [s, u] = m(!1), [d, f] = m(e), p = () => {
763
- d !== void 0 && t?.(d), u(!1);
761
+ function L({ value: t, onChange: n, type: r = "text", options: i }) {
762
+ let c = s(), [l, u] = m(!1), [d, f] = m(t), p = () => {
763
+ d !== void 0 && n?.(d), u(!1);
764
764
  }, v = () => {
765
- f(e), u(!1);
765
+ f(t), u(!1);
766
766
  };
767
- return s ? /* @__PURE__ */ _("div", {
767
+ return l ? /* @__PURE__ */ _("div", {
768
768
  style: {
769
769
  display: "flex",
770
770
  alignItems: "center",
@@ -773,32 +773,32 @@ function L({ value: e, onChange: t, type: n = "text", options: i }) {
773
773
  onKeyDown: (e) => {
774
774
  e.key === "Enter" && p(), e.key === "Escape" && v();
775
775
  },
776
- children: [n === "select" ? /* @__PURE__ */ g(T, {
776
+ children: [r === "select" ? /* @__PURE__ */ g(T, {
777
777
  value: d,
778
778
  options: i || [],
779
779
  onChange: (e) => {
780
- f(e), t?.(e), u(!1);
780
+ f(e), n?.(e), u(!1);
781
781
  }
782
- }) : n === "bool" ? /* @__PURE__ */ g(l, {
782
+ }) : r === "bool" ? /* @__PURE__ */ g(o, {
783
783
  value: d === "true",
784
784
  onChange: (e) => {
785
- let n = String(e);
786
- f(n), t?.(n), u(!1);
785
+ let t = String(e);
786
+ f(t), n?.(t), u(!1);
787
787
  }
788
788
  }) : /* @__PURE__ */ g(b, {
789
789
  value: d ?? "",
790
790
  onChange: f,
791
791
  autoFocus: !0
792
- }), n !== "select" && n !== "bool" && /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(a, {
792
+ }), r !== "select" && r !== "bool" && /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(a, {
793
793
  size: 24,
794
- icon: /* @__PURE__ */ g(r.check, { size: 13 }),
794
+ icon: /* @__PURE__ */ g(e.check, { size: 13 }),
795
795
  onClick: p,
796
- title: o("dialog.save", "Save")
796
+ title: c("dialog.save", "Save")
797
797
  }), /* @__PURE__ */ g(a, {
798
798
  size: 24,
799
- icon: /* @__PURE__ */ g(r.x, { size: 13 }),
799
+ icon: /* @__PURE__ */ g(e.x, { size: 13 }),
800
800
  onClick: v,
801
- title: o("dialog.cancel", "Cancel")
801
+ title: c("dialog.cancel", "Cancel")
802
802
  })] })]
803
803
  }) : /* @__PURE__ */ g("div", {
804
804
  onClick: () => u(!0),
@@ -819,11 +819,10 @@ function L({ value: e, onChange: t, type: n = "text", options: i }) {
819
819
  onMouseLeave: (e) => {
820
820
  e.currentTarget.style.borderColor = "transparent";
821
821
  },
822
- children: e || /* @__PURE__ */ g("span", {
822
+ children: t || /* @__PURE__ */ g("span", {
823
823
  style: { color: "var(--text-4)" },
824
- children: o("control.click_to_edit", "Click to edit")
824
+ children: c("control.click_to_edit", "Click to edit")
825
825
  })
826
826
  });
827
827
  }
828
- //#endregion
829
828
  export { D as DateInput, v as FieldLabel, P as JsonField, E as MultiSelect, j as PasswordInput, L as QuickEditCell, F as RefField, T as Select, M as TagsInput, x as TextArea, b as TextInput, I as ViewField };
@@ -1,7 +1,7 @@
1
1
  import { useCallback as e, useEffect as t, useRef as n, useState as r } from "react";
2
2
  import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
3
3
  import { createPortal as s } from "react-dom";
4
- //#region src/components/primitives/HoverCard.tsx
4
+ // src/components/primitives/HoverCard.tsx
5
5
  var c = 400, l = 150, u = 320, d = 240, f = 4, p = 4;
6
6
  function m({ content: m, children: h, width: g = u, align: _ = "center", style: v }) {
7
7
  let y = n(null), b = n(null), x = n(null), S = n(null), [C, w] = r(!1), [T, E] = r(null), [D, O] = r(!1), k = e(() => {
@@ -28,7 +28,7 @@ function m({ content: m, children: h, width: g = u, align: _ = "center", style:
28
28
  }, [k]), M = e(() => {
29
29
  x.current !== null && (window.clearTimeout(x.current), x.current = null), S.current !== null && (window.clearTimeout(S.current), S.current = null);
30
30
  }, []), N = () => {
31
- S.current !== null && (window.clearTimeout(S.current), S.current = null), !(C || x.current !== null) && (x.current = window.setTimeout(() => {
31
+ S.current !== null && (window.clearTimeout(S.current), S.current = null), C || x.current !== null || (x.current = window.setTimeout(() => {
32
32
  x.current = null, w(!0);
33
33
  }, c));
34
34
  }, P = e(() => {
@@ -111,5 +111,4 @@ function m({ content: m, children: h, width: g = u, align: _ = "center", style:
111
111
  children: h
112
112
  }), L] });
113
113
  }
114
- //#endregion
115
114
  export { m as HoverCard };
@@ -1,6 +1,6 @@
1
1
  import { forwardRef as e } from "react";
2
2
  import { jsx as t } from "react/jsx-runtime";
3
- //#region src/components/primitives/IconBtn.tsx
3
+ // src/components/primitives/IconBtn.tsx
4
4
  var n = e(function({ icon: e, onClick: n, title: r, size: i = 28, active: a, disabled: o, style: s }, c) {
5
5
  return /* @__PURE__ */ t("button", {
6
6
  type: "button",
@@ -33,5 +33,4 @@ var n = e(function({ icon: e, onClick: n, title: r, size: i = 28, active: a, dis
33
33
  children: e
34
34
  });
35
35
  });
36
- //#endregion
37
36
  export { n as IconBtn };
@@ -1,6 +1,6 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
2
  import { Activity as t, ArrowDown as n, ArrowLeft as r, ArrowUp as i, ArrowUpDown as ee, BadgeDollarSign as te, Ban as a, Bell as o, Bolt as ne, BookOpen as re, Box as s, Boxes as ie, Briefcase as ae, Building as c, Building2 as oe, Calendar as l, CalendarClock as u, Check as d, ChevronDown as f, ChevronLeft as p, ChevronRight as m, ChevronUp as h, CircleDot as g, ClipboardCheck as _, Clock as v, Code as y, Columns as b, Columns3 as x, Command as S, Copy as C, Cpu as w, CreditCard as T, Database as E, Dot as D, Download as O, Edit as k, ExternalLink as A, Eye as j, EyeOff as M, File as N, FileDiff as P, FilePlus as F, Filter as I, Fingerprint as L, Folder as R, FormInput as z, Gavel as B, GitBranch as V, Globe as H, Grid as U, Group as W, HandCoins as G, Hash as K, Home as q, Inbox as se, Info as ce, Key as le, KeyRound as J, Layers as ue, Layout as de, LayoutDashboard as fe, Link as pe, List as me, ListChecks as he, Loader as ge, Lock as _e, LogIn as ve, LogOut as ye, Mail as be, Menu as xe, MessagesSquare as Se, Minus as Ce, Moon as we, MoreHorizontal as Te, Package as Ee, Paperclip as De, Play as Oe, PlayCircle as ke, Plus as Ae, PlusCircle as je, ReceiptText as Me, RefreshCw as Ne, Repeat as Pe, Save as Fe, Scale as Ie, ScrollText as Le, Search as Re, Settings as ze, Settings2 as Be, Shield as Ve, ShieldCheck as He, ShieldPlus as Ue, ShoppingCart as We, Sliders as Ge, SlidersHorizontal as Ke, Smartphone as qe, Sparkle as Je, Sparkles as Ye, Star as Xe, Sun as Ze, Table2 as Qe, Tag as $e, Tags as et, ToggleRight as tt, Trash as nt, Trash2 as rt, TriangleAlert as it, Undo2 as at, Upload as Y, User as ot, UserPlus as st, Users as X, UsersRound as ct, WalletCards as lt, Webhook as ut, Workflow as dt, X as ft, Zap as Z } from "lucide-react";
3
- //#region src/components/primitives/Icons.tsx
3
+ // src/components/primitives/Icons.tsx
4
4
  var Q = (t) => function({ size: n = 14, cls: r = "", style: i = {} }) {
5
5
  return /* @__PURE__ */ e(t, {
6
6
  size: n,
@@ -147,5 +147,4 @@ var Q = (t) => function({ size: n = 14, cls: r = "", style: i = {} }) {
147
147
  x: Q(ft),
148
148
  zap: Q(Z)
149
149
  };
150
- //#endregion
151
150
  export { pt as Icon, $ as LinkedInBrandIcon };
@@ -1,5 +1,5 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- //#region src/components/primitives/Kbd.tsx
2
+ // src/components/primitives/Kbd.tsx
3
3
  function t({ children: t }) {
4
4
  return /* @__PURE__ */ e("span", {
5
5
  className: "mono",
@@ -19,5 +19,4 @@ function t({ children: t }) {
19
19
  children: t
20
20
  });
21
21
  }
22
- //#endregion
23
22
  export { t as Kbd };
@@ -1,6 +1,6 @@
1
1
  import { Kbd as e } from "./Kbd.js";
2
2
  import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
- //#region src/components/primitives/MenuItem.tsx
3
+ // src/components/primitives/MenuItem.tsx
4
4
  function r({ icon: r, children: i, onClick: a, danger: o, kbd: s, active: c, divider: l, disabled: u, title: d, "data-testid": f }) {
5
5
  return l ? /* @__PURE__ */ t("div", {
6
6
  role: "separator",
@@ -53,5 +53,4 @@ function r({ icon: r, children: i, onClick: a, danger: o, kbd: s, active: c, div
53
53
  ]
54
54
  });
55
55
  }
56
- //#endregion
57
56
  export { r as MenuItem };