@declarion/react 0.141.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
package/dist-lib/app.js CHANGED
@@ -1,57 +1,57 @@
1
- import { backoffDelayMs as e } from "./api/request-bounds.js";
2
- import { EmbedProvider as t, useEmbed as n } from "./embed/EmbedContext.js";
3
- import { SmartDetailPage as r } from "./components/pages/SmartDetailPage.js";
4
- import { SmartListPage as i } from "./components/pages/SmartListPage.js";
5
- import { SmartRecordListPage as a } from "./components/pages/SmartRecordListPage.js";
6
- import { useFirstScreenSettledOnInput as o } from "./lib/capabilityPrefetch.js";
7
- import { usePreferencesStore as s } from "./stores/preferences.js";
8
- import { useAuthStore as c } from "./stores/auth.js";
9
- import { useSchema as l } from "./hooks/useSchema.js";
10
- import { useLanguage as ee } from "./hooks/useLanguage.js";
11
- import { ResponsiveModeProvider as u } from "./hooks/useResponsiveMode.js";
12
- import { usePublicParams as d } from "./hooks/useParams.js";
13
- import { setIconRegistry as f } from "./stores/icon-registry.js";
14
- import { isValidLogoUrl as p } from "./lib/branding.js";
15
- import { useBranding as m } from "./hooks/useBranding.js";
16
- import { EmbedAuthBootstrap as h } from "./embed/EmbedAuthBootstrap.js";
17
- import { schemaDefaultRoute as g } from "./lib/schema-routing.js";
18
- import { DEFAULT_PAGE_STATE_TTL_MS as _ } from "./stores/page-state.js";
19
- import { applyRetainedReadGcTime as v } from "./hooks/usePageStateRuntime.js";
20
- import { useBrandingBreakpoints as y, useBrandingViewport as b } from "./hooks/useBrandingChrome.js";
21
- import { Layout as x } from "./components/layout/Layout.js";
22
- import { BlankScreen as S } from "./components/shared/BlankScreen.js";
23
- import { SignIn as C } from "./components/pages/auth/SignIn.js";
24
- import { SignUp as te } from "./components/pages/auth/SignUp.js";
25
- import { Forgot as w } from "./components/pages/auth/Forgot.js";
26
- import { Reset as T } from "./components/pages/auth/Reset.js";
27
- import { TwoFA as E } from "./components/pages/auth/TwoFA.js";
28
- import { SSOCallbackPage as D } from "./components/pages/SSOCallbackPage.js";
29
- import { NotFoundPage as O } from "./components/pages/NotFoundPage.js";
30
- import { NoScreensPage as ne } from "./components/pages/NoScreensPage.js";
31
- import { Profile as k } from "./components/pages/profile/Profile.js";
32
- import { TenantParamsPage as A } from "./components/pages/tenant-params/TenantParamsPage.js";
33
- import { Preferences as re } from "./components/pages/profile/Preferences.js";
34
- import { AdminCatalogPage as ie } from "./components/pages/AdminCatalogPage.js";
35
- import { ErrorBoundary as j } from "./components/shared/ErrorBoundary.js";
36
- import { useVersionWatcher as M } from "./hooks/useVersionWatcher.js";
37
- import { ConnectionNotice as N } from "./components/shared/ConnectionNotice.js";
38
- import { shouldRetryQuery as P } from "./lib/query-retry.js";
39
- import { getRegisteredScreen as F, registerScreen as I } from "./stores/screen-registry.js";
40
- import { CurrentScreenProvider as L } from "./hooks/useCurrentScreen.js";
41
- import { CONSUMER_BRAND_CSS_ID as R, applyBrandTokens as z, brandTokenCss as B } from "./lib/brand-tokens.js";
42
- import { useEffect as V, useMemo as H } from "react";
43
- import { QueryClient as U, QueryClientProvider as W } from "@tanstack/react-query";
44
- import { Fragment as G, jsx as K, jsxs as q } from "react/jsx-runtime";
45
- import { BrowserRouter as J, Navigate as Y, Route as X, Routes as ae } from "react-router";
46
- import { Toaster as oe } from "sonner";
47
- I("Profile", k), I("TenantParameters", A);
48
- var Z = "declarion-managed-favicon", Q = new U({ defaultOptions: { queries: {
1
+ import { useLanguage as e } from "./hooks/useLanguage.js";
2
+ import { Layout as t } from "./components/layout/Layout.js";
3
+ import { SignIn as n } from "./components/pages/auth/SignIn.js";
4
+ import { SignUp as r } from "./components/pages/auth/SignUp.js";
5
+ import { Forgot as i } from "./components/pages/auth/Forgot.js";
6
+ import { Reset as ee } from "./components/pages/auth/Reset.js";
7
+ import { TwoFA as a } from "./components/pages/auth/TwoFA.js";
8
+ import { SSOCallbackPage as te } from "./components/pages/SSOCallbackPage.js";
9
+ import { NotFoundPage as ne } from "./components/pages/NotFoundPage.js";
10
+ import { NoScreensPage as re } from "./components/pages/NoScreensPage.js";
11
+ import { Profile as o } from "./components/pages/profile/Profile.js";
12
+ import { TenantParamsPage as s } from "./components/pages/tenant-params/TenantParamsPage.js";
13
+ import { Preferences as c } from "./components/pages/profile/Preferences.js";
14
+ import { AdminCatalogPage as l } from "./components/pages/AdminCatalogPage.js";
15
+ import { SmartListPage as u } from "./components/pages/SmartListPage.js";
16
+ import { SmartDetailPage as d } from "./components/pages/SmartDetailPage.js";
17
+ import { SmartRecordListPage as f } from "./components/pages/SmartRecordListPage.js";
18
+ import { ErrorBoundary as p } from "./components/shared/ErrorBoundary.js";
19
+ import { useAuthStore as m } from "./stores/auth.js";
20
+ import { usePreferencesStore as h } from "./stores/preferences.js";
21
+ import { useSchema as g } from "./hooks/useSchema.js";
22
+ import { usePublicParams as _ } from "./hooks/useParams.js";
23
+ import { useBranding as ie } from "./hooks/useBranding.js";
24
+ import { useBrandingBreakpoints as v, useBrandingViewport as y } from "./hooks/useBrandingChrome.js";
25
+ import { useVersionWatcher as b } from "./hooks/useVersionWatcher.js";
26
+ import { ConnectionNotice as x } from "./components/shared/ConnectionNotice.js";
27
+ import { shouldRetryQuery as S } from "./lib/query-retry.js";
28
+ import { backoffDelayMs as C } from "./api/request-bounds.js";
29
+ import { ResponsiveModeProvider as w } from "./hooks/useResponsiveMode.js";
30
+ import { isValidLogoUrl as T } from "./lib/branding.js";
31
+ import { useFirstScreenSettledOnInput as E } from "./lib/capabilityPrefetch.js";
32
+ import { schemaDefaultRoute as D } from "./lib/schema-routing.js";
33
+ import { getRegisteredScreen as O, registerScreen as k } from "./stores/screen-registry.js";
34
+ import { CurrentScreenProvider as A } from "./hooks/useCurrentScreen.js";
35
+ import { setIconRegistry as ae } from "./stores/icon-registry.js";
36
+ import { applyRetainedReadGcTime as j } from "./hooks/usePageStateRuntime.js";
37
+ import { DEFAULT_PAGE_STATE_TTL_MS as M } from "./stores/page-state.js";
38
+ import { EmbedProvider as N, useEmbed as P } from "./embed/EmbedContext.js";
39
+ import { EmbedAuthBootstrap as F } from "./embed/EmbedAuthBootstrap.js";
40
+ import { BlankScreen as I } from "./components/shared/BlankScreen.js";
41
+ import { CONSUMER_BRAND_CSS_ID as L, applyBrandTokens as R, brandTokenCss as z } from "./lib/brand-tokens.js";
42
+ import { useEffect as B, useMemo as V } from "react";
43
+ import { QueryClient as H, QueryClientProvider as U } from "@tanstack/react-query";
44
+ import { Fragment as W, jsx as G, jsxs as K } from "react/jsx-runtime";
45
+ import { BrowserRouter as q, Navigate as J, Route as Y, Routes as oe } from "react-router";
46
+ import { Toaster as se } from "sonner";
47
+ k("Profile", o), k("TenantParameters", s);
48
+ var X = "declarion-managed-favicon", Z = new H({ defaultOptions: { queries: {
49
49
  staleTime: 3e5,
50
- retry: P,
51
- retryDelay: e
50
+ retry: S,
51
+ retryDelay: C
52
52
  } } });
53
- v(Q, _);
54
- function $(e) {
53
+ j(Z, M);
54
+ function Q(e) {
55
55
  if (typeof window > "u") return null;
56
56
  try {
57
57
  let t = new URL(e, window.location.origin);
@@ -60,46 +60,46 @@ function $(e) {
60
60
  return null;
61
61
  }
62
62
  }
63
- function se({ component: e, screenCode: t }) {
64
- return o(), /* @__PURE__ */ K(e, { screenCode: t });
63
+ function ce({ component: e, screenCode: t }) {
64
+ return E(), /* @__PURE__ */ G(e, { screenCode: t });
65
65
  }
66
- function ce() {
67
- let { data: e } = l();
66
+ function le() {
67
+ let { data: e } = g();
68
68
  return {
69
- routes: H(() => {
69
+ routes: V(() => {
70
70
  if (!e) return [];
71
71
  let t = [];
72
- for (let [n, o] of Object.entries(e.screens ?? {})) if (o.type === "list") {
73
- let r = o.entity;
74
- if ((r ? e.entities?.[r] : void 0)?.singleton) continue;
75
- t.push(/* @__PURE__ */ K(X, {
76
- path: o.route,
77
- element: /* @__PURE__ */ K(j, { children: /* @__PURE__ */ K(L, {
72
+ for (let [n, r] of Object.entries(e.screens ?? {})) if (r.type === "list") {
73
+ let i = r.entity;
74
+ if ((i ? e.entities?.[i] : void 0)?.singleton) continue;
75
+ t.push(/* @__PURE__ */ G(Y, {
76
+ path: r.route,
77
+ element: /* @__PURE__ */ G(p, { children: /* @__PURE__ */ G(A, {
78
78
  code: n,
79
- children: /* @__PURE__ */ K(i, { screenCode: n })
79
+ children: /* @__PURE__ */ G(u, { screenCode: n })
80
80
  }) })
81
81
  }, n));
82
- } else if (o.type === "detail") t.push(/* @__PURE__ */ K(X, {
83
- path: o.route,
84
- element: /* @__PURE__ */ K(j, { children: /* @__PURE__ */ K(L, {
82
+ } else if (r.type === "detail") t.push(/* @__PURE__ */ G(Y, {
83
+ path: r.route,
84
+ element: /* @__PURE__ */ G(p, { children: /* @__PURE__ */ G(A, {
85
85
  code: n,
86
- children: /* @__PURE__ */ K(r, { screenCode: n })
86
+ children: /* @__PURE__ */ G(d, { screenCode: n })
87
87
  }) })
88
88
  }, n));
89
- else if (o.type === "record_list") t.push(/* @__PURE__ */ K(X, {
90
- path: o.route,
91
- element: /* @__PURE__ */ K(j, { children: /* @__PURE__ */ K(L, {
89
+ else if (r.type === "record_list") t.push(/* @__PURE__ */ G(Y, {
90
+ path: r.route,
91
+ element: /* @__PURE__ */ G(p, { children: /* @__PURE__ */ G(A, {
92
92
  code: n,
93
- children: /* @__PURE__ */ K(a, { screenCode: n })
93
+ children: /* @__PURE__ */ G(f, { screenCode: n })
94
94
  }) })
95
95
  }, n));
96
- else if (o.type === "custom") {
97
- let e = o.component ? F(o.component) : void 0;
98
- e && t.push(/* @__PURE__ */ K(X, {
99
- path: o.route,
100
- element: /* @__PURE__ */ K(j, { children: /* @__PURE__ */ K(L, {
96
+ else if (r.type === "custom") {
97
+ let e = r.component ? O(r.component) : void 0;
98
+ e && t.push(/* @__PURE__ */ G(Y, {
99
+ path: r.route,
100
+ element: /* @__PURE__ */ G(p, { children: /* @__PURE__ */ G(A, {
101
101
  code: n,
102
- children: /* @__PURE__ */ K(se, {
102
+ children: /* @__PURE__ */ G(ce, {
103
103
  component: e,
104
104
  screenCode: n
105
105
  })
@@ -108,133 +108,133 @@ function ce() {
108
108
  }
109
109
  return t;
110
110
  }, [e]),
111
- defaultRoute: H(() => g(e), [e])
111
+ defaultRoute: V(() => D(e), [e])
112
112
  };
113
113
  }
114
- function le() {
115
- let e = c((e) => e.initialize), t = c((e) => e.isLoading), r = c((e) => e.isAuthenticated), { data: i, isError: a } = l(), o = ee(), { data: s, isLoading: u } = d(), { branding: h, isLoading: g } = m(), { routes: _, defaultRoute: v } = ce(), y = n();
116
- V(() => {
117
- document.documentElement.lang = o;
118
- }, [o]);
119
- let b = typeof window < "u" && window.self !== window.top && !y.enabled;
120
- V(() => {
121
- y.enabled || b || e();
114
+ function $() {
115
+ let o = m((e) => e.initialize), s = m((e) => e.isLoading), u = m((e) => e.isAuthenticated), { data: d, isError: f } = g(), p = e(), { data: h, isLoading: v } = _(), { branding: y, isLoading: b } = ie(), { routes: x, defaultRoute: S } = le(), C = P();
116
+ B(() => {
117
+ document.documentElement.lang = p;
118
+ }, [p]);
119
+ let w = typeof window < "u" && window.self !== window.top && !C.enabled;
120
+ B(() => {
121
+ C.enabled || w || o();
122
122
  }, [
123
- y.enabled,
124
- b,
125
- e
123
+ C.enabled,
124
+ w,
125
+ o
126
126
  ]);
127
- let k = i?.icons;
128
- V(() => {
129
- f(k ?? {});
130
- }, [k]);
131
- let A = h?.identity, j = h?.theme;
132
- V(() => {
127
+ let E = d?.icons;
128
+ B(() => {
129
+ ae(E ?? {});
130
+ }, [E]);
131
+ let D = y?.identity, O = y?.theme;
132
+ B(() => {
133
133
  if (typeof document > "u") return;
134
- let e = A?.app_name?.trim();
134
+ let e = D?.app_name?.trim();
135
135
  e && (document.title = e);
136
- }, [A?.app_name]), V(() => {
136
+ }, [D?.app_name]), B(() => {
137
137
  if (typeof document > "u") return;
138
- let e = A?.app_logo, t = p(e) ? $(e.trim()) : null, n = document.getElementById(Z);
138
+ let e = D?.app_logo, t = T(e) ? Q(e.trim()) : null, n = document.getElementById(X);
139
139
  if (!t) n && n.remove();
140
140
  else if (n) n.href !== t && (n.href = t);
141
141
  else {
142
142
  document.querySelectorAll("link[rel=\"icon\"], link[rel=\"shortcut icon\"]").forEach((e) => e.remove());
143
143
  let e = document.createElement("link");
144
- e.id = Z, e.rel = "icon", e.href = t, document.head.appendChild(e);
144
+ e.id = X, e.rel = "icon", e.href = t, document.head.appendChild(e);
145
145
  }
146
- }, [A?.app_logo]);
147
- let M = j?.css_url ?? null, N = H(() => B(j), [j]);
148
- V(() => {
149
- z(N);
150
- }, [N]), V(() => {
146
+ }, [D?.app_logo]);
147
+ let k = O?.css_url ?? null, A = V(() => z(O), [O]);
148
+ B(() => {
149
+ R(A);
150
+ }, [A]), B(() => {
151
151
  if (typeof document > "u") return;
152
- let e = document.getElementById(R);
153
- if (!M) {
152
+ let e = document.getElementById(L);
153
+ if (!k) {
154
154
  e && e.remove();
155
155
  return;
156
156
  }
157
- let t = $(M);
157
+ let t = Q(k);
158
158
  if (!t) {
159
- e && e.remove(), console.error(`[declarion] branding.theme.css_url rejected: ${M}. Only same-origin, relative URLs are allowed (e.g. /modules/crm/public/brand.css).`);
159
+ e && e.remove(), console.error(`[declarion] branding.theme.css_url rejected: ${k}. Only same-origin, relative URLs are allowed (e.g. /modules/crm/public/brand.css).`);
160
160
  return;
161
161
  }
162
162
  if (e && e.href === t) return;
163
163
  e && e.remove();
164
164
  let n = document.createElement("link");
165
- n.id = R, n.rel = "stylesheet", n.href = t, document.head.appendChild(n);
166
- }, [M]);
167
- let P = y.enabled && !r;
168
- return b || P || t || u && !s || g || !i && (r || !a) ? /* @__PURE__ */ K(S, {}) : /* @__PURE__ */ q(ae, { children: [
169
- /* @__PURE__ */ K(X, {
165
+ n.id = L, n.rel = "stylesheet", n.href = t, document.head.appendChild(n);
166
+ }, [k]);
167
+ let j = C.enabled && !u;
168
+ return w || j || s || v && !h || b || !d && (u || !f) ? /* @__PURE__ */ G(I, {}) : /* @__PURE__ */ K(oe, { children: [
169
+ /* @__PURE__ */ G(Y, {
170
170
  path: "/login",
171
- element: /* @__PURE__ */ K(C, {})
171
+ element: /* @__PURE__ */ G(n, {})
172
172
  }),
173
- /* @__PURE__ */ K(X, {
173
+ /* @__PURE__ */ G(Y, {
174
174
  path: "/login/sso-callback",
175
- element: /* @__PURE__ */ K(D, {})
175
+ element: /* @__PURE__ */ G(te, {})
176
176
  }),
177
- /* @__PURE__ */ K(X, {
177
+ /* @__PURE__ */ G(Y, {
178
178
  path: "/signup",
179
- element: /* @__PURE__ */ K(te, {})
179
+ element: /* @__PURE__ */ G(r, {})
180
180
  }),
181
- /* @__PURE__ */ K(X, {
181
+ /* @__PURE__ */ G(Y, {
182
182
  path: "/forgot",
183
- element: /* @__PURE__ */ K(w, {})
183
+ element: /* @__PURE__ */ G(i, {})
184
184
  }),
185
- /* @__PURE__ */ K(X, {
185
+ /* @__PURE__ */ G(Y, {
186
186
  path: "/reset",
187
- element: /* @__PURE__ */ K(T, {})
187
+ element: /* @__PURE__ */ G(ee, {})
188
188
  }),
189
- /* @__PURE__ */ K(X, {
189
+ /* @__PURE__ */ G(Y, {
190
190
  path: "/2fa",
191
- element: /* @__PURE__ */ K(E, {})
191
+ element: /* @__PURE__ */ G(a, {})
192
192
  }),
193
- /* @__PURE__ */ q(X, {
194
- element: /* @__PURE__ */ K(x, {}),
193
+ /* @__PURE__ */ K(Y, {
194
+ element: /* @__PURE__ */ G(t, {}),
195
195
  children: [
196
- i && !v && /* @__PURE__ */ K(X, {
196
+ d && !S && /* @__PURE__ */ G(Y, {
197
197
  index: !0,
198
- element: /* @__PURE__ */ K(ne, {})
198
+ element: /* @__PURE__ */ G(re, {})
199
199
  }),
200
- v && /* @__PURE__ */ q(G, { children: [/* @__PURE__ */ K(X, {
200
+ S && /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G(Y, {
201
201
  index: !0,
202
- element: /* @__PURE__ */ K(Y, {
203
- to: v,
202
+ element: /* @__PURE__ */ G(J, {
203
+ to: S,
204
204
  replace: !0
205
205
  })
206
- }), /* @__PURE__ */ K(X, {
206
+ }), /* @__PURE__ */ G(Y, {
207
207
  path: "/admin",
208
- element: /* @__PURE__ */ K(Y, {
209
- to: v,
208
+ element: /* @__PURE__ */ G(J, {
209
+ to: S,
210
210
  replace: !0
211
211
  })
212
212
  })] }),
213
- _,
214
- /* @__PURE__ */ K(X, {
213
+ x,
214
+ /* @__PURE__ */ G(Y, {
215
215
  path: "/preferences",
216
- element: /* @__PURE__ */ K(re, {})
216
+ element: /* @__PURE__ */ G(c, {})
217
217
  }),
218
- /* @__PURE__ */ K(X, {
218
+ /* @__PURE__ */ G(Y, {
219
219
  path: "/admin/catalog",
220
- element: /* @__PURE__ */ K(ie, {})
220
+ element: /* @__PURE__ */ G(l, {})
221
221
  }),
222
- /* @__PURE__ */ K(X, {
222
+ /* @__PURE__ */ G(Y, {
223
223
  path: "*",
224
- element: /* @__PURE__ */ K(O, {})
224
+ element: /* @__PURE__ */ G(ne, {})
225
225
  })
226
226
  ]
227
227
  })
228
228
  ] });
229
229
  }
230
230
  function ue() {
231
- M();
232
- let e = s((e) => e.toastPosition);
233
- return /* @__PURE__ */ q(J, { children: [
234
- /* @__PURE__ */ K(h, {}),
235
- /* @__PURE__ */ K(N, {}),
236
- /* @__PURE__ */ K(le, {}),
237
- /* @__PURE__ */ K(oe, {
231
+ b();
232
+ let e = h((e) => e.toastPosition);
233
+ return /* @__PURE__ */ K(q, { children: [
234
+ /* @__PURE__ */ G(F, {}),
235
+ /* @__PURE__ */ G(x, {}),
236
+ /* @__PURE__ */ G($, {}),
237
+ /* @__PURE__ */ G(se, {
238
238
  position: e,
239
239
  toastOptions: { unstyled: !0 },
240
240
  expand: !0,
@@ -250,18 +250,17 @@ function ue() {
250
250
  ] });
251
251
  }
252
252
  function de({ children: e }) {
253
- let t = b(), n = y();
254
- return /* @__PURE__ */ K(u, {
253
+ let t = y(), n = v();
254
+ return /* @__PURE__ */ G(w, {
255
255
  viewport: t,
256
256
  breakpoints: n,
257
257
  children: e
258
258
  });
259
259
  }
260
260
  function fe() {
261
- return /* @__PURE__ */ K(j, { children: /* @__PURE__ */ K(W, {
262
- client: Q,
263
- children: /* @__PURE__ */ K(t, { children: /* @__PURE__ */ K(de, { children: /* @__PURE__ */ K(ue, {}) }) })
261
+ return /* @__PURE__ */ G(p, { children: /* @__PURE__ */ G(U, {
262
+ client: Z,
263
+ children: /* @__PURE__ */ G(N, { children: /* @__PURE__ */ G(de, { children: /* @__PURE__ */ G(ue, {}) }) })
264
264
  }) });
265
265
  }
266
- //#endregion
267
266
  export { fe as App };
@@ -1,43 +1,43 @@
1
- import { useSchema as e } from "../../hooks/useSchema.js";
2
- import { buildActionBody as t, executeAction as n, resolveAssociation as r } from "../../api/data.js";
3
- import { failureTitle as i } from "../../lib/failure.js";
4
- import { Icon as a } from "../primitives/Icons.js";
5
- import { Btn as o } from "../primitives/Btn.js";
6
- import { IconBtn as s } from "../primitives/IconBtn.js";
7
- import { useText as c } from "../../hooks/useText.js";
8
- import { toast as l } from "../../lib/toast.js";
9
- import { DynamicIcon as u } from "../shared/DynamicIcon.js";
10
- import { useTabNavigate as d } from "../../hooks/useTabNavigate.js";
11
- import { evaluateConditions as f, findListScreenForEntity as p, isAssociationAction as m, rowDetailId as h } from "../../lib/actions.js";
12
- import { useActionRunner as g } from "./ActionRunner.js";
13
- import { executeUISteps as _, isUIAction as v } from "../../lib/ui-actions.js";
14
- import { useConditionCaller as y } from "../../hooks/useRowTenant.js";
1
+ import { useConditionCaller as e } from "../../hooks/useRowTenant.js";
2
+ import { Btn as t } from "../primitives/Btn.js";
3
+ import { Icon as n } from "../primitives/Icons.js";
4
+ import { IconBtn as r } from "../primitives/IconBtn.js";
5
+ import { DynamicIcon as i } from "../shared/DynamicIcon.js";
6
+ import { useActionRunner as a } from "./ActionRunner.js";
7
+ import { buildActionBody as o, executeAction as s, resolveAssociation as c } from "../../api/data.js";
8
+ import { evaluateConditions as l, findListScreenForEntity as u, isAssociationAction as d, rowDetailId as f } from "../../lib/actions.js";
9
+ import { useSchema as p } from "../../hooks/useSchema.js";
10
+ import { useTabNavigate as m } from "../../hooks/useTabNavigate.js";
11
+ import { toast as h } from "../../lib/toast.js";
12
+ import { executeUISteps as g, isUIAction as _ } from "../../lib/ui-actions.js";
13
+ import { useText as v } from "../../hooks/useText.js";
14
+ import { failureTitle as y } from "../../lib/failure.js";
15
15
  import { useCallback as b, useState as x } from "react";
16
16
  import { jsx as S } from "react/jsx-runtime";
17
- //#region src/components/actions/ActionButton.tsx
17
+ // src/components/actions/ActionButton.tsx
18
18
  function C({ actionCode: C, action: w, entityCode: T, objectIds: E = [], row: D, variant: O = "outline", size: k = "default", onSuccess: A }) {
19
- let j = c(), M = c("errors"), [N, P] = x(!1), [F, I] = x(!1), { data: L } = e(), R = d(), { run: z } = g(), B = m(w), V = y(), H = !D || f(w.conditions, D, V), U = b(async () => {
19
+ let j = v(), M = v("errors"), [N, P] = x(!1), [F, I] = x(!1), { data: L } = p(), R = m(), { run: z } = a(), B = d(w), V = e(), H = !D || l(w.conditions, D, V), U = b(async () => {
20
20
  if (w.association && E.length !== 0) {
21
21
  P(!0);
22
22
  try {
23
- let e = T ? `${T}.${w.association}` : w.association, t = await r(e, E), n = p(L, t.target_entity);
23
+ let e = T ? `${T}.${w.association}` : w.association, t = await c(e, E), n = u(L, t.target_entity);
24
24
  if (!n) {
25
- l.error(M("action.list_screen_missing", "No list screen is declared for this entity."), t.target_entity);
25
+ h.error(M("action.list_screen_missing", "No list screen is declared for this entity."), t.target_entity);
26
26
  return;
27
27
  }
28
- let i = L?.entities[t.target_entity], a = j(w.display?.name) || t.target_entity;
28
+ let r = L?.entities[t.target_entity], i = j(w.display?.name) || t.target_entity;
29
29
  if (t.ids.length === 0) {
30
- l.info(j("action.association.none_related", "No related {name} found", { name: a }));
30
+ h.info(j("action.association.none_related", "No related {name} found", { name: i }));
31
31
  return;
32
32
  }
33
- let o = i?.fields.names().find((e) => i.fields.get(e)?.primary) ?? "id", s = new URLSearchParams();
34
- s.set(`filter_${o}`, t.ids.join(",")), R(n.route, {
35
- title: a,
33
+ let a = r?.fields.names().find((e) => r.fields.get(e)?.primary) ?? "id", o = new URLSearchParams();
34
+ o.set(`filter_${a}`, t.ids.join(",")), R(n.route, {
35
+ title: i,
36
36
  icon: w.display?.icon || n.icon,
37
- search: s.toString()
37
+ search: o.toString()
38
38
  }), A?.();
39
39
  } catch (e) {
40
- l.error(i(M, e));
40
+ h.error(y(M, e));
41
41
  } finally {
42
42
  P(!1);
43
43
  }
@@ -57,7 +57,7 @@ function C({ actionCode: C, action: w, entityCode: T, objectIds: E = [], row: D,
57
57
  title: j(w.display?.name) || C,
58
58
  row: D,
59
59
  entity: T,
60
- execute: (e) => n(W, t(e, G)),
60
+ execute: (e) => s(W, o(e, G)),
61
61
  onSuccess: () => A?.()
62
62
  }).finally(() => I(!1));
63
63
  }, [
@@ -71,10 +71,10 @@ function C({ actionCode: C, action: w, entityCode: T, objectIds: E = [], row: D,
71
71
  G,
72
72
  A
73
73
  ]), q = b(() => {
74
- if (v(w)) _(M, w.ui_steps, { row: D }).then(() => A?.());
74
+ if (_(w)) g(M, w.ui_steps, { row: D }).then(() => A?.());
75
75
  else if (B) U();
76
76
  else if (w.href && !w.handler && !w.association) {
77
- let e = T ? L?.entities[T] : void 0, t = h(D, e), n = w.href;
77
+ let e = T ? L?.entities[T] : void 0, t = f(D, e), n = w.href;
78
78
  T && (n = n.replaceAll("${entity}", T)), t && (n = n.replaceAll("${id}", encodeURIComponent(t))), R(n, {
79
79
  title: j(w.display?.name) || C,
80
80
  icon: w.display?.icon
@@ -93,15 +93,15 @@ function C({ actionCode: C, action: w, entityCode: T, objectIds: E = [], row: D,
93
93
  U,
94
94
  K,
95
95
  A
96
- ]), J = j(w.display?.name), Y = w.display?.icon, X = Y && a[Y], Z = X ? /* @__PURE__ */ S(X, { size: 13 }) : Y ? /* @__PURE__ */ S(u, {
96
+ ]), J = j(w.display?.name), Y = w.display?.icon, X = Y && n[Y], Z = X ? /* @__PURE__ */ S(X, { size: 13 }) : Y ? /* @__PURE__ */ S(i, {
97
97
  name: Y,
98
98
  size: 13
99
99
  }) : null, Q = !H || F || N;
100
- return k === "icon" ? /* @__PURE__ */ S(s, {
101
- icon: Z ?? /* @__PURE__ */ S(a.bolt, { size: 13 }),
100
+ return k === "icon" ? /* @__PURE__ */ S(r, {
101
+ icon: Z ?? /* @__PURE__ */ S(n.bolt, { size: 13 }),
102
102
  onClick: q,
103
103
  title: J
104
- }) : /* @__PURE__ */ S(o, {
104
+ }) : /* @__PURE__ */ S(t, {
105
105
  kind: O === "default" ? "primary" : O === "ghost" ? "ghost" : "default",
106
106
  size: "sm",
107
107
  icon: Z,
@@ -113,5 +113,4 @@ function C({ actionCode: C, action: w, entityCode: T, objectIds: E = [], row: D,
113
113
  children: J
114
114
  });
115
115
  }
116
- //#endregion
117
116
  export { C as ActionButton };