@declarion/react 0.142.0 → 0.146.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,6 +1,6 @@
1
1
  import { Suspense as e, lazy as t } from "react";
2
2
  import { jsx as n } from "react/jsx-runtime";
3
- //#region src/components/fields/JsonField.tsx
3
+ // src/components/fields/JsonField.tsx
4
4
  var r = t(() => import("./JsonEditor.js").then((e) => ({ default: e.JsonEditor })));
5
5
  function i() {
6
6
  return /* @__PURE__ */ n("div", { className: "h-20 rounded-md border border-border bg-muted animate-pulse" });
@@ -47,5 +47,4 @@ function s({ value: t, mode: s, onChange: c, fieldId: l }) {
47
47
  })
48
48
  });
49
49
  }
50
- //#endregion
51
50
  export { s as JsonField, a as isEmptyJsonValue };
@@ -1,13 +1,13 @@
1
- import { Icon as e } from "../primitives/Icons.js";
2
- import { Btn as t } from "../primitives/Btn.js";
3
- import { IconBtn as n } from "../primitives/IconBtn.js";
4
- import { Chip as r } from "../primitives/Chip.js";
5
- import { parseLangMap as i } from "./langMap.js";
6
- import { MultilangField as a } from "./MultilangField.js";
1
+ import { Btn as e } from "../primitives/Btn.js";
2
+ import { Chip as t } from "../primitives/Chip.js";
3
+ import { Icon as n } from "../primitives/Icons.js";
4
+ import { IconBtn as r } from "../primitives/IconBtn.js";
5
+ import { MultilangField as i } from "./MultilangField.js";
6
+ import { parseLangMap as a } from "./langMap.js";
7
7
  import { jsx as o, jsxs as s } from "react/jsx-runtime";
8
- //#region src/components/fields/MultilangArrayField.tsx
8
+ // src/components/fields/MultilangArrayField.tsx
9
9
  function c(e) {
10
- return Array.isArray(e) ? e.map(i) : [];
10
+ return Array.isArray(e) ? e.map(a) : [];
11
11
  }
12
12
  function l(l) {
13
13
  let { value: u, mode: d, onChange: f, fieldId: p, fieldName: m, t: h } = l, g = c(u);
@@ -16,41 +16,40 @@ function l(l) {
16
16
  children: "—"
17
17
  }) : /* @__PURE__ */ o("div", {
18
18
  className: "flex flex-wrap gap-1",
19
- children: g.map((e, t) => /* @__PURE__ */ o(r, {
19
+ children: g.map((e, n) => /* @__PURE__ */ o(t, {
20
20
  tone: "slate",
21
21
  children: h(e) || "—"
22
- }, t))
22
+ }, n))
23
23
  });
24
24
  let _ = (e, t) => {
25
- f?.(g.map((n, r) => r === e ? i(t) : n));
25
+ f?.(g.map((n, r) => r === e ? a(t) : n));
26
26
  };
27
27
  return /* @__PURE__ */ s("div", {
28
28
  className: "flex flex-col gap-2",
29
29
  id: p,
30
30
  role: "group",
31
- children: [g.map((t, r) => /* @__PURE__ */ s("div", {
31
+ children: [g.map((e, t) => /* @__PURE__ */ s("div", {
32
32
  className: "flex items-start gap-2",
33
33
  children: [/* @__PURE__ */ o("div", {
34
34
  className: "flex-1",
35
- children: /* @__PURE__ */ o(a, {
35
+ children: /* @__PURE__ */ o(i, {
36
36
  ...l,
37
- fieldId: p ? `${p}-${r}` : void 0,
38
- fieldName: m && `${m}.${r}`,
39
- value: t,
40
- onChange: (e) => _(r, e)
37
+ fieldId: p ? `${p}-${t}` : void 0,
38
+ fieldName: m && `${m}.${t}`,
39
+ value: e,
40
+ onChange: (e) => _(t, e)
41
41
  })
42
- }), /* @__PURE__ */ o(n, {
42
+ }), /* @__PURE__ */ o(r, {
43
43
  size: 24,
44
- icon: /* @__PURE__ */ o(e.trash, { size: 12 }),
45
- onClick: () => f?.(g.filter((e, t) => t !== r)),
44
+ icon: /* @__PURE__ */ o(n.trash, { size: 12 }),
45
+ onClick: () => f?.(g.filter((e, n) => n !== t)),
46
46
  title: h("field.array.remove", "Remove")
47
47
  })]
48
- }, r)), /* @__PURE__ */ o("div", { children: /* @__PURE__ */ o(t, {
49
- icon: /* @__PURE__ */ o(e.plus, { size: 13 }),
48
+ }, t)), /* @__PURE__ */ o("div", { children: /* @__PURE__ */ o(e, {
49
+ icon: /* @__PURE__ */ o(n.plus, { size: 13 }),
50
50
  onClick: () => f?.([...g, {}]),
51
51
  children: h("field.array.add", "Add")
52
52
  }) })]
53
53
  });
54
54
  }
55
- //#endregion
56
55
  export { l as MultilangArrayField };
@@ -1,10 +1,10 @@
1
- import { useSchema as e } from "../../hooks/useSchema.js";
2
- import { TextInput as t } from "../primitives/Fields.js";
1
+ import { TextInput as e } from "../primitives/Fields.js";
2
+ import { useSchema as t } from "../../hooks/useSchema.js";
3
3
  import { parseLangMap as n } from "./langMap.js";
4
4
  import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
- //#region src/components/fields/MultilangField.tsx
5
+ // src/components/fields/MultilangField.tsx
6
6
  function a({ field: a, fieldName: o, value: s, mode: c, onChange: l, fieldId: u, t: d }) {
7
- let { data: f } = e(), p = f?.languages ?? [], m = n(s);
7
+ let { data: f } = t(), p = f?.languages ?? [], m = n(s);
8
8
  if (c === "display") {
9
9
  let e = d(m) || "—";
10
10
  return /* @__PURE__ */ r("span", {
@@ -26,8 +26,8 @@ function a({ field: a, fieldName: o, value: s, mode: c, onChange: l, fieldId: u,
26
26
  flexDirection: "column",
27
27
  gap: 6
28
28
  },
29
- children: p.map((e, n) => {
30
- let s = u ? n === 0 ? u : `${u}-${e.code}` : void 0;
29
+ children: p.map((t, n) => {
30
+ let s = u ? n === 0 ? u : `${u}-${t.code}` : void 0;
31
31
  return /* @__PURE__ */ i("div", {
32
32
  style: {
33
33
  display: "flex",
@@ -45,21 +45,20 @@ function a({ field: a, fieldName: o, value: s, mode: c, onChange: l, fieldId: u,
45
45
  letterSpacing: "0.04em",
46
46
  fontWeight: 500
47
47
  },
48
- children: e.code
48
+ children: t.code
49
49
  }), /* @__PURE__ */ r("div", {
50
50
  style: { flex: 1 },
51
- children: /* @__PURE__ */ r(t, {
51
+ children: /* @__PURE__ */ r(e, {
52
52
  id: s,
53
- name: o ? `${o}.${e.code}` : void 0,
53
+ name: o ? `${o}.${t.code}` : void 0,
54
54
  "aria-required": a.required && n === 0 ? !0 : void 0,
55
- value: m[e.code] ?? "",
56
- onChange: (t) => h(e.code, t),
57
- placeholder: d("field.multilang.value", "Value ({language})", { language: e.code })
55
+ value: m[t.code] ?? "",
56
+ onChange: (e) => h(t.code, e),
57
+ placeholder: d("field.multilang.value", "Value ({language})", { language: t.code })
58
58
  })
59
59
  })]
60
- }, e.code);
60
+ }, t.code);
61
61
  })
62
62
  });
63
63
  }
64
- //#endregion
65
64
  export { a as MultilangField };
@@ -1,10 +1,10 @@
1
- import { useSchema as e } from "../../hooks/useSchema.js";
2
- import { TextArea as t } from "../primitives/Fields.js";
1
+ import { TextArea as e } from "../primitives/Fields.js";
2
+ import { useSchema as t } from "../../hooks/useSchema.js";
3
3
  import { parseLangMap as n } from "./langMap.js";
4
4
  import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
- //#region src/components/fields/MultilangTextField.tsx
5
+ // src/components/fields/MultilangTextField.tsx
6
6
  function a({ field: a, fieldName: o, value: s, mode: c, onChange: l, fieldId: u, t: d }) {
7
- let { data: f } = e(), p = f?.languages ?? [], m = n(s);
7
+ let { data: f } = t(), p = f?.languages ?? [], m = n(s);
8
8
  if (c === "display") {
9
9
  let e = d(m) || "—";
10
10
  return /* @__PURE__ */ r("p", {
@@ -30,8 +30,8 @@ function a({ field: a, fieldName: o, value: s, mode: c, onChange: l, fieldId: u,
30
30
  flexDirection: "column",
31
31
  gap: 10
32
32
  },
33
- children: p.map((e, n) => {
34
- let s = u ? n === 0 ? u : `${u}-${e.code}` : void 0;
33
+ children: p.map((t, n) => {
34
+ let s = u ? n === 0 ? u : `${u}-${t.code}` : void 0;
35
35
  return /* @__PURE__ */ i("div", {
36
36
  style: {
37
37
  display: "flex",
@@ -47,19 +47,18 @@ function a({ field: a, fieldName: o, value: s, mode: c, onChange: l, fieldId: u,
47
47
  letterSpacing: "0.04em",
48
48
  fontWeight: 500
49
49
  },
50
- children: e.code
51
- }), /* @__PURE__ */ r(t, {
50
+ children: t.code
51
+ }), /* @__PURE__ */ r(e, {
52
52
  id: s,
53
- name: o ? `${o}.${e.code}` : void 0,
53
+ name: o ? `${o}.${t.code}` : void 0,
54
54
  ariaRequired: a.required && n === 0,
55
- value: m[e.code] ?? "",
56
- onChange: (t) => h(e.code, t),
57
- placeholder: d("field.multilang.value", "Value ({language})", { language: e.code }),
55
+ value: m[t.code] ?? "",
56
+ onChange: (e) => h(t.code, e),
57
+ placeholder: d("field.multilang.value", "Value ({language})", { language: t.code }),
58
58
  rows: 4
59
59
  })]
60
- }, e.code);
60
+ }, t.code);
61
61
  })
62
62
  });
63
63
  }
64
- //#endregion
65
64
  export { a as MultilangTextField };
@@ -1,12 +1,12 @@
1
- import { coerceDisplayString as e } from "../../lib/display-value.js";
2
- import { TextInput as t } from "../primitives/Fields.js";
1
+ import { TextInput as e } from "../primitives/Fields.js";
2
+ import { coerceDisplayString as t } from "../../lib/display-value.js";
3
3
  import { isNumberDraft as n, numberTextValue as r } from "../../lib/number-text.js";
4
4
  import { useState as i } from "react";
5
5
  import { jsx as a } from "react/jsx-runtime";
6
- //#region src/components/fields/NumberField.tsx
6
+ // src/components/fields/NumberField.tsx
7
7
  function o({ field: o, fieldName: l, value: u, onChange: d, fieldId: f }) {
8
- let p = o.type === "int", m = u == null ? "" : e(u), [h, g] = i(m), [_, v] = i(m);
9
- return m !== _ && (v(m), c(o, r(h), r(m)) || g(m)), /* @__PURE__ */ a(t, {
8
+ let p = o.type === "int", m = u == null ? "" : t(u), [h, g] = i(m), [_, v] = i(m);
9
+ return m !== _ && (v(m), c(o, r(h), r(m)) || g(m)), /* @__PURE__ */ a(e, {
10
10
  id: f,
11
11
  name: l,
12
12
  "aria-required": o.required || void 0,
@@ -33,5 +33,4 @@ function s(e, t) {
33
33
  function c(e, t, n) {
34
34
  return t == null || n == null || e.type === "decimal" ? t === n : Number(t) === Number(n);
35
35
  }
36
- //#endregion
37
36
  export { o as NumberField };
@@ -2,7 +2,7 @@ import { PasswordInput as e } from "../primitives/Fields.js";
2
2
  import { SECRET_SENTINEL as t, holdsSecret as n } from "./secretValue.js";
3
3
  import { useState as r } from "react";
4
4
  import { jsx as i } from "react/jsx-runtime";
5
- //#region src/components/fields/PasswordField.tsx
5
+ // src/components/fields/PasswordField.tsx
6
6
  function a({ field: a, fieldName: o, value: s, mode: c, onChange: l, record: u, fieldId: d, t: f }) {
7
7
  let [p, m] = r(""), h = u !== void 0, g = n(s);
8
8
  return c === "display" ? g ? /* @__PURE__ */ i("span", {
@@ -30,5 +30,4 @@ function a({ field: a, fieldName: o, value: s, mode: c, onChange: l, record: u,
30
30
  placeholder: h ? f("field.secret.keep_existing", "Leave blank to keep existing value") : f("field.password.placeholder", "Enter password")
31
31
  });
32
32
  }
33
- //#endregion
34
33
  export { a as PasswordField };
@@ -1,11 +1,11 @@
1
- import { coerceDisplayString as e } from "../../lib/display-value.js";
2
- import { useLanguage as t } from "../../hooks/useLanguage.js";
3
- import { useText as n } from "../../hooks/useText.js";
4
- import { Select as r, TextInput as i } from "../primitives/Fields.js";
1
+ import { Select as e, TextInput as t } from "../primitives/Fields.js";
2
+ import { useLanguage as n } from "../../hooks/useLanguage.js";
3
+ import { useText as r } from "../../hooks/useText.js";
4
+ import { coerceDisplayString as i } from "../../lib/display-value.js";
5
5
  import { flagOf as a, usePhoneLib as o } from "../../lib/phone.js";
6
6
  import { useMemo as s, useState as c } from "react";
7
7
  import { jsx as l, jsxs as u } from "react/jsx-runtime";
8
- //#region src/components/fields/PhoneField.tsx
8
+ // src/components/fields/PhoneField.tsx
9
9
  function d(e, t) {
10
10
  let n = t.startsWith("+") ? e.parsePhoneNumberFromString(t) : void 0;
11
11
  return n?.country ? {
@@ -20,19 +20,19 @@ function f(e, t, n) {
20
20
  let r = n.trim();
21
21
  return r === "" ? "" : r.startsWith("+") ? e.parsePhoneNumberFromString(r)?.number ?? r : t ? e.parsePhoneNumberFromString(r, t)?.number ?? `+${e.getCountryCallingCode(t)}${r.replace(/\D/g, "")}` : r;
22
22
  }
23
- function p({ lib: e, value: o, onChange: p, fieldId: m, fieldName: h, required: g }) {
24
- let _ = n(), v = t(), y = s(() => d(e, o), [e, o]), [b, x] = c(y.country), [S, C] = c(y.national), w = s(() => {
25
- let t = new Intl.DisplayNames([v], { type: "region" });
26
- return e.getCountries().map((e) => ({
27
- cc: e,
28
- name: t.of(e) ?? e
29
- })).sort((e, t) => e.name.localeCompare(t.name, v)).map(({ cc: t, name: n }) => ({
30
- value: t,
31
- label: `${a(t)} ${n} +${e.getCountryCallingCode(t)}`
23
+ function p({ lib: i, value: o, onChange: p, fieldId: m, fieldName: h, required: g }) {
24
+ let _ = r(), v = n(), y = s(() => d(i, o), [i, o]), [b, x] = c(y.country), [S, C] = c(y.national), w = s(() => {
25
+ let e = new Intl.DisplayNames([v], { type: "region" });
26
+ return i.getCountries().map((t) => ({
27
+ cc: t,
28
+ name: e.of(t) ?? t
29
+ })).sort((e, t) => e.name.localeCompare(t.name, v)).map(({ cc: e, name: t }) => ({
30
+ value: e,
31
+ label: `${a(e)} ${t} +${i.getCountryCallingCode(e)}`
32
32
  }));
33
- }, [e, v]), T = (t, n) => {
34
- let r = n.trim(), i = r.startsWith("+") ? e.parsePhoneNumberFromString(r) : void 0;
35
- i?.country && (t = i.country), x(t), C(n), p?.(f(e, t, n));
33
+ }, [i, v]), T = (e, t) => {
34
+ let n = t.trim(), r = n.startsWith("+") ? i.parsePhoneNumberFromString(n) : void 0;
35
+ r?.country && (e = r.country), x(e), C(t), p?.(f(i, e, t));
36
36
  }, E = S.trim() !== "" && !S.trim().startsWith("+") && !b;
37
37
  return /* @__PURE__ */ u("div", {
38
38
  className: "flex flex-col gap-1",
@@ -40,14 +40,14 @@ function p({ lib: e, value: o, onChange: p, fieldId: m, fieldName: h, required:
40
40
  className: "flex gap-1.5",
41
41
  children: [/* @__PURE__ */ l("div", {
42
42
  className: "w-44 shrink-0",
43
- children: /* @__PURE__ */ l(r, {
43
+ children: /* @__PURE__ */ l(e, {
44
44
  value: b,
45
45
  options: w,
46
46
  onChange: (e) => T(e, S),
47
47
  placeholder: _("field.phone.country", "Country"),
48
48
  "aria-label": _("field.phone.country", "Country")
49
49
  })
50
- }), /* @__PURE__ */ l(i, {
50
+ }), /* @__PURE__ */ l(t, {
51
51
  id: m,
52
52
  name: h,
53
53
  "aria-required": g || void 0,
@@ -62,23 +62,22 @@ function p({ lib: e, value: o, onChange: p, fieldId: m, fieldName: h, required:
62
62
  })]
63
63
  });
64
64
  }
65
- function m({ field: t, fieldName: n, value: r, onChange: a, fieldId: s }) {
66
- let c = o(), u = e(r);
65
+ function m({ field: e, fieldName: n, value: r, onChange: a, fieldId: s }) {
66
+ let c = o(), u = i(r);
67
67
  return c ? /* @__PURE__ */ l(p, {
68
68
  lib: c,
69
69
  value: u,
70
70
  onChange: a,
71
71
  fieldId: s,
72
72
  fieldName: n,
73
- required: t.required
74
- }) : /* @__PURE__ */ l(i, {
73
+ required: e.required
74
+ }) : /* @__PURE__ */ l(t, {
75
75
  id: s,
76
76
  name: n,
77
- "aria-required": t.required || void 0,
77
+ "aria-required": e.required || void 0,
78
78
  type: "tel",
79
79
  value: u,
80
80
  onChange: (e) => a?.(e)
81
81
  });
82
82
  }
83
- //#endregion
84
83
  export { m as PhoneField };
@@ -1,45 +1,45 @@
1
- import { coerceDisplayString as e } from "../../lib/display-value.js";
2
- import { getPrimaryKeyFields as t, resolveRefRecordLabel as n } from "../../types/schema.js";
3
- import { useText as r } from "../../hooks/useText.js";
4
- import { RetryButton as i } from "../primitives/RetryButton.js";
5
- import { Select as a } from "../primitives/Fields.js";
6
- import { readDisplayState as ee } from "../../lib/read-display-state.js";
7
- import { useEntityData as o } from "../../hooks/useEntityData.js";
8
- import { useEntity as s } from "../../hooks/useEntity.js";
9
- import { readableFilters as c, readableSort as l } from "../../lib/field-classification.js";
10
- import { useDebounce as u } from "../../hooks/useDebounce.js";
11
- import { refChoicesEntity as te } from "../../lib/ref-choices.js";
12
- import { useMemo as d, useRef as f, useState as p } from "react";
1
+ import { Select as e } from "../primitives/Fields.js";
2
+ import { RetryButton as t } from "../primitives/RetryButton.js";
3
+ import { useEntityData as n } from "../../hooks/useEntityData.js";
4
+ import { useDebounce as r } from "../../hooks/useDebounce.js";
5
+ import { useEntity as i } from "../../hooks/useEntity.js";
6
+ import { getPrimaryKeyFields as a, resolveRefRecordLabel as o } from "../../types/schema.js";
7
+ import { coerceDisplayString as s } from "../../lib/display-value.js";
8
+ import { readableFilters as ee, readableSort as c } from "../../lib/field-classification.js";
9
+ import { refChoicesEntity as l } from "../../lib/ref-choices.js";
10
+ import { useText as u } from "../../hooks/useText.js";
11
+ import { readDisplayState as d } from "../../lib/read-display-state.js";
12
+ import { useMemo as f, useRef as te, useState as p } from "react";
13
13
  import { jsx as m, jsxs as h } from "react/jsx-runtime";
14
- //#region src/components/fields/RefCombobox.tsx
15
- var g = 200;
16
- function _({ ref: _, value: v, onChange: y, refs: b, displayFieldOverride: ne, id: x, labelId: S, ariaLabel: C, required: w, placeholder: T, specialValues: E }) {
17
- let D = r(), O = r("errors"), k = _?.entity, A = te(k), j = s(A), M = ne ?? _?.display?.field ?? (j?.display?.display_template ? "$display" : j?.display?.display_field) ?? "$display", N = M === "$display" ? j?.display?.display_field : M, P = d(() => j ? t(j)[0] ?? "id" : "id", [j]), F = _?.field || P, [I, L] = p(""), R = u(I, 300), z = o(A, {
18
- per_page: g,
19
- sort: l(j, N ? `${N}:asc` : void 0),
14
+ // src/components/fields/RefCombobox.tsx
15
+ var ne = 200;
16
+ function g({ ref: g, value: _, onChange: v, refs: y, displayFieldOverride: b, id: x, labelId: S, ariaLabel: C, required: w, placeholder: T, specialValues: E }) {
17
+ let D = u(), O = u("errors"), k = g?.entity, A = l(k), j = i(A), M = b ?? g?.display?.field ?? (j?.display?.display_template ? "$display" : j?.display?.display_field) ?? "$display", N = M === "$display" ? j?.display?.display_field : M, P = f(() => j ? a(j)[0] ?? "id" : "id", [j]), F = g?.field || P, [I, L] = p(""), R = r(I, 300), z = n(A, {
18
+ per_page: ne,
19
+ sort: c(j, N ? `${N}:asc` : void 0),
20
20
  search: R || void 0,
21
- filters: _?.options_filter && c(j, _.options_filter)
22
- }), B = z.data, V = ee(z), H = V.loading, U = V.error !== null, W = d(() => B?.data ?? [], [B?.data]), G = U ? O("record.ref_choices_unreadable", "The choices could not be loaded.") : T ?? D("field.select_placeholder", "Select…"), K = v == null ? "" : e(v), q = d(() => W.some((e) => String(e[F]) === K), [
21
+ filters: g?.options_filter && ee(j, g.options_filter)
22
+ }), B = z.data, V = d(z), H = V.loading, U = V.error !== null, W = f(() => B?.data ?? [], [B?.data]), G = U ? O("record.ref_choices_unreadable", "The choices could not be loaded.") : T ?? D("field.select_placeholder", "Select…"), K = _ == null ? "" : s(_), q = f(() => W.some((e) => String(e[F]) === K), [
23
23
  W,
24
24
  F,
25
25
  K
26
- ]), J = b && k ? b[k]?.[K] : void 0, Y = !!E?.some((e) => e.code === K), { data: X } = o(K && !q && !Y && !J && !H ? A : void 0, {
26
+ ]), J = y && k ? y[k]?.[K] : void 0, Y = !!E?.some((e) => e.code === K), { data: X } = n(K && !q && !Y && !J && !H ? A : void 0, {
27
27
  per_page: 1,
28
28
  filters: [{
29
29
  field: F,
30
30
  op: "eq",
31
31
  value: K
32
32
  }]
33
- }), Z = f(null), Q = d(() => {
33
+ }), Z = te(null), Q = f(() => {
34
34
  if (!K) return "";
35
35
  let e;
36
- if (J) e = n(D, J, M, K);
36
+ if (J) e = o(D, J, M, K);
37
37
  else {
38
38
  let t = W.find((e) => String(e[F]) === K);
39
- if (t) e = n(D, t, M, K);
39
+ if (t) e = o(D, t, M, K);
40
40
  else {
41
41
  let t = X?.data?.find((e) => String(e[F]) === K);
42
- t && (e = n(D, t, M, K));
42
+ t && (e = o(D, t, M, K));
43
43
  }
44
44
  }
45
45
  return e === void 0 ? Z.current?.value === K ? Z.current.label : K : (Z.current = {
@@ -54,37 +54,37 @@ function _({ ref: _, value: v, onChange: y, refs: b, displayFieldOverride: ne, i
54
54
  F,
55
55
  M,
56
56
  X
57
- ]), re = d(() => {
58
- let t = (E ?? []).map((e) => ({
57
+ ]), re = f(() => {
58
+ let e = (E ?? []).map((e) => ({
59
59
  value: e.code,
60
60
  label: D(e.label) || e.code
61
- })), r = W.map((t) => {
62
- let r = e(t[F]);
61
+ })), t = W.map((e) => {
62
+ let t = s(e[F]);
63
63
  return {
64
- value: r,
65
- label: n(D, t, M, r)
64
+ value: t,
65
+ label: o(D, e, M, t)
66
66
  };
67
- }), i = K && !q && !Y ? [{
67
+ }), n = K && !q && !Y ? [{
68
68
  value: K,
69
69
  label: Q
70
- }] : [], a = r.length > 0 || i.length > 0;
70
+ }] : [], r = t.length > 0 || n.length > 0;
71
71
  return [
72
72
  {
73
73
  value: "",
74
74
  label: G
75
75
  },
76
- ...t.length > 0 ? [{
76
+ ...e.length > 0 ? [{
77
77
  value: "",
78
78
  label: D("field.ref.special_values", "Special values"),
79
79
  heading: !0
80
- }, ...t] : [],
81
- ...t.length > 0 && a ? [{
80
+ }, ...e] : [],
81
+ ...e.length > 0 && r ? [{
82
82
  value: "",
83
83
  label: "",
84
84
  divider: !0
85
85
  }] : [],
86
- ...i,
87
- ...r
86
+ ...n,
87
+ ...t
88
88
  ];
89
89
  }, [
90
90
  D,
@@ -97,21 +97,20 @@ function _({ ref: _, value: v, onChange: y, refs: b, displayFieldOverride: ne, i
97
97
  W,
98
98
  F,
99
99
  M
100
- ]), $ = /* @__PURE__ */ m(a, {
100
+ ]), $ = /* @__PURE__ */ m(e, {
101
101
  id: x,
102
102
  "aria-label": C,
103
103
  "aria-labelledby": S,
104
104
  "aria-required": w || void 0,
105
105
  value: K,
106
106
  options: re,
107
- onChange: (e) => y(e || null),
107
+ onChange: (e) => v(e || null),
108
108
  onSearchChange: L,
109
109
  placeholder: G
110
110
  });
111
111
  return U ? /* @__PURE__ */ h("span", {
112
112
  className: "inline-flex items-center gap-2",
113
- children: [$, /* @__PURE__ */ m(i, { onRetry: V.retry })]
113
+ children: [$, /* @__PURE__ */ m(t, { onRetry: V.retry })]
114
114
  }) : $;
115
115
  }
116
- //#endregion
117
- export { _ as RefCombobox };
116
+ export { g as RefCombobox };
@@ -1,19 +1,19 @@
1
- import { coerceDisplayString as e } from "../../lib/display-value.js";
2
- import { resolveRefRecordLabel as t, specialValueMarker as n, specialValueMarkerCode as r } from "../../types/schema.js";
3
- import { useText as i } from "../../hooks/useText.js";
4
- import { RefCombobox as a } from "./RefCombobox.js";
1
+ import { resolveRefRecordLabel as e, specialValueMarker as t, specialValueMarkerCode as n } from "../../types/schema.js";
2
+ import { coerceDisplayString as r } from "../../lib/display-value.js";
3
+ import { RefCombobox as i } from "./RefCombobox.js";
4
+ import { useText as a } from "../../hooks/useText.js";
5
5
  import { useMemo as o } from "react";
6
6
  import { jsx as s } from "react/jsx-runtime";
7
- //#region src/components/fields/RefField.tsx
7
+ // src/components/fields/RefField.tsx
8
8
  function c({ field: c, value: l, mode: u, onChange: d, refs: f, fieldId: p, labelId: m }) {
9
- let h = i(), g = c.ref?.entity, _ = c.display?.ref_display_field || "$display", v = o(() => {
9
+ let h = a(), g = c.ref?.entity, _ = c.display?.ref_display_field || "$display", v = o(() => {
10
10
  if (l == null) return "—";
11
- let n = e(l);
11
+ let t = r(l);
12
12
  if (f && g) {
13
- let e = f[g]?.[n];
14
- if (e) return t(h, e, _, n);
13
+ let n = f[g]?.[t];
14
+ if (n) return e(h, n, _, t);
15
15
  }
16
- return n;
16
+ return t;
17
17
  }, [
18
18
  h,
19
19
  l,
@@ -25,13 +25,13 @@ function c({ field: c, value: l, mode: u, onChange: d, refs: f, fieldId: p, labe
25
25
  style: { fontSize: 12.5 },
26
26
  children: v
27
27
  });
28
- let y = r(l);
29
- return /* @__PURE__ */ s(a, {
28
+ let y = n(l);
29
+ return /* @__PURE__ */ s(i, {
30
30
  ref: c.ref,
31
31
  value: y ?? l,
32
32
  onChange: (e) => {
33
- let t = typeof e == "string" && (c.special_values ?? []).some((t) => t.code === e);
34
- d?.(t ? n(e) : e);
33
+ let n = typeof e == "string" && (c.special_values ?? []).some((t) => t.code === e);
34
+ d?.(n ? t(e) : e);
35
35
  },
36
36
  refs: f,
37
37
  displayFieldOverride: c.display?.ref_display_field,
@@ -41,5 +41,4 @@ function c({ field: c, value: l, mode: u, onChange: d, refs: f, fieldId: p, labe
41
41
  required: c.required
42
42
  });
43
43
  }
44
- //#endregion
45
44
  export { c as RefField };