@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
@@ -1,219 +1,219 @@
1
- import { coerceDisplayString as e } from "../../lib/display-value.js";
2
- import { buildDetailHrefFromId as t, entityAllowsMutation as n, getDisplayValue as ee, pkValuesToDetailId as r } from "../../types/schema.js";
3
- import { useEmbed as i } from "../../embed/EmbedContext.js";
4
- import { useFirstScreenSettled as a } from "../../lib/capabilityPrefetch.js";
5
- import { usePreferencesStore as te } from "../../stores/preferences.js";
6
- import { useAuthStore as ne } from "../../stores/auth.js";
7
- import { useSchema as re } from "../../hooks/useSchema.js";
8
- import { executeAction as ie } from "../../api/data.js";
9
- import { useText as ae } from "../../hooks/useText.js";
10
- import { useResponsiveMode as oe } from "../../hooks/useResponsiveMode.js";
11
- import { useTabStore as se } from "../../stores/tabs.js";
12
- import { useTabNavigate as ce } from "../../hooks/useTabNavigate.js";
13
- import { filterUnavailableMutationActions as o, getScreenActions as le } from "../../lib/actions.js";
14
- import { useScreenIsLive as ue } from "../../stores/realtime.js";
15
- import { useDebounce as de } from "../../hooks/useDebounce.js";
16
- import { FileDraftScope as s, useFileDraftScope as fe } from "../file-widgets/draft-scope.js";
17
- import { getSchemaFieldValue as pe, serializeSchemaFieldValue as me } from "../file-widgets/host.js";
18
- import { buildFilesPayload as he, collectCommittedFileIds as ge } from "../file-widgets/payload.js";
19
- import { resolveCellRenderer as _e } from "../fields/cells/registry.js";
20
- import { useUpdateObject as ve } from "../../hooks/useMutations.js";
1
+ import { useFirstScreenSettled as e } from "../../lib/capabilityPrefetch.js";
2
+ import { useSchema as t } from "../../hooks/useSchema.js";
3
+ import { useAuthStore as n } from "../../stores/auth.js";
4
+ import { useSavedScrollOffset as r, useVirtualScrollRestoration as i } from "../../lib/scroll-restoration.js";
5
+ import { useUpdateObject as a } from "../../hooks/useMutations.js";
6
+ import { useDebounce as o } from "../../hooks/useDebounce.js";
7
+ import { useResponsiveMode as ee } from "../../hooks/useResponsiveMode.js";
8
+ import { useTabNavigate as te } from "../../hooks/useTabNavigate.js";
9
+ import { useTabSearchMirror as ne } from "../../hooks/useTabSearchMirror.js";
10
+ import { useRegisterScreenTab as re } from "../../hooks/useRegisterScreenTab.js";
11
+ import { useEmbed as ie } from "../../embed/EmbedContext.js";
12
+ import { useTabStore as ae } from "../../stores/tabs.js";
13
+ import { usePreferencesStore as oe } from "../../stores/preferences.js";
14
+ import { useScreenIsLive as se } from "../../stores/realtime.js";
15
+ import { filterUnavailableMutationActions as ce, getScreenActions as le } from "../../lib/actions.js";
16
+ import { buildDetailHrefFromId as ue, entityAllowsMutation as de, getDisplayValue as fe, pkValuesToDetailId as pe } from "../../types/schema.js";
17
+ import { useFilters as me } from "../../hooks/useFilters.js";
18
+ import { useActiveView as he } from "./list/useActiveView.js";
19
+ import { QuickPeek as ge } from "../list/QuickPeek.js";
20
+ import { clearPeekDraft as _e } from "../list/peekDraftStore.js";
21
+ import { executeAction as ve } from "../../api/data.js";
21
22
  import { countActiveFilters as ye, parseFilterURLState as be, removeFilterAtPath as xe } from "../../lib/filters.js";
22
- import { useFilters as Se } from "../../hooks/useFilters.js";
23
- import { useRegisterScreenTab as Ce } from "../../hooks/useRegisterScreenTab.js";
24
- import { useTabSearchMirror as we } from "../../hooks/useTabSearchMirror.js";
25
- import { useSavedScrollOffset as Te, useVirtualScrollRestoration as Ee } from "../../lib/scroll-restoration.js";
26
- import { FilterDrawer as De } from "../filters/FilterDrawer.js";
27
- import { FilterChips as Oe } from "../filters/FilterChips.js";
28
- import { effectiveScreenForRecord as ke } from "../../lib/variants.js";
29
- import { QuickPeek as Ae } from "../list/QuickPeek.js";
30
- import { clearPeekDraft as je } from "../list/peekDraftStore.js";
31
- import { resolveCard as Me, resolveListProjection as Ne, resolveVariantRenderFields as Pe } from "./list/cardProjection.js";
32
- import { useActiveView as Fe } from "./list/useActiveView.js";
33
- import { listTableFeatures as Ie } from "./list/table-features.js";
23
+ import { effectiveScreenForRecord as Se } from "../../lib/variants.js";
24
+ import { coerceDisplayString as Ce } from "../../lib/display-value.js";
25
+ import { FilterChips as we } from "../filters/FilterChips.js";
26
+ import { FilterDrawer as Te } from "../filters/FilterDrawer.js";
27
+ import { listTableFeatures as Ee } from "./list/table-features.js";
34
28
  import "./list/page-size.js";
35
- import { useListFilterPresentation as Le } from "./list/useListFilterPresentation.js";
36
- import { FilterOmittedNotice as Re } from "../filters/FilterOmittedNotice.js";
37
- import { useListQuery as ze } from "./list/useListQuery.js";
38
- import { useListSort as Be } from "./list/useListSort.js";
39
- import { rowSelectionKey as Ve, useListSelection as He } from "./list/useListSelection.js";
40
- import { useListColumnLayout as Ue } from "./list/useListColumnLayout.js";
41
- import { useListRowInteraction as We } from "./list/useListRowInteraction.js";
42
- import { buildColumnSizeVars as Ge } from "./list/column-sizing.js";
43
- import { ListTable as Ke } from "./list/ListTable.js";
44
- import { ListTableRow as qe } from "./list/ListTableRow.js";
45
- import { ListNoRows as Je } from "./list/ListNoRows.js";
46
- import { ListFooter as Ye } from "./list/ListFooter.js";
47
- import { ListToolbar as Xe } from "./list/ListToolbar.js";
48
- import { overwritableViewName as Ze, useListViews as Qe } from "./list/useListViews.js";
49
- import { DeleteViewDialog as $e } from "./list/DeleteViewDialog.js";
50
- import { ListUrlBanner as et } from "./list/ListUrlBanner.js";
51
- import { useFilterValueLabels as tt } from "./list/use-filter-value-labels.js";
52
- import { SaveViewDialog as nt } from "./list/SaveViewDialog.js";
53
- import { ListHeader as rt } from "./list/ListHeader.js";
54
- import { ListFloatbar as it } from "./list/ListFloatbar.js";
55
- import { buildListColumns as at } from "./list/columns.js";
56
- import { RowContextMenu as ot } from "./list/RowContextMenu.js";
57
- import { useHeaderReorder as st } from "./list/useHeaderReorder.js";
29
+ import { useListFilterPresentation as De } from "./list/useListFilterPresentation.js";
30
+ import { FilterOmittedNotice as Oe } from "../filters/FilterOmittedNotice.js";
31
+ import { useListQuery as ke } from "./list/useListQuery.js";
32
+ import { useListSort as Ae } from "./list/useListSort.js";
33
+ import { rowSelectionKey as je, useListSelection as Me } from "./list/useListSelection.js";
34
+ import { useListColumnLayout as Ne } from "./list/useListColumnLayout.js";
35
+ import { useListRowInteraction as Pe } from "./list/useListRowInteraction.js";
36
+ import { ListTable as Fe } from "./list/ListTable.js";
37
+ import { ListTableRow as Ie } from "./list/ListTableRow.js";
38
+ import { ListNoRows as Le } from "./list/ListNoRows.js";
39
+ import { ListFooter as Re } from "./list/ListFooter.js";
40
+ import { ListToolbar as ze } from "./list/ListToolbar.js";
41
+ import { overwritableViewName as Be, useListViews as Ve } from "./list/useListViews.js";
42
+ import { DeleteViewDialog as He } from "./list/DeleteViewDialog.js";
43
+ import { ListUrlBanner as Ue } from "./list/ListUrlBanner.js";
44
+ import { useFilterValueLabels as We } from "./list/use-filter-value-labels.js";
45
+ import { SaveViewDialog as Ge } from "./list/SaveViewDialog.js";
46
+ import { ListHeader as Ke } from "./list/ListHeader.js";
47
+ import { ListFloatbar as qe } from "./list/ListFloatbar.js";
48
+ import { buildListColumns as Je } from "./list/columns.js";
49
+ import { RowContextMenu as Ye } from "./list/RowContextMenu.js";
50
+ import { buildColumnSizeVars as Xe } from "./list/column-sizing.js";
51
+ import { useHeaderReorder as Ze } from "./list/useHeaderReorder.js";
52
+ import { resolveCard as Qe, resolveListProjection as $e, resolveVariantRenderFields as et } from "./list/cardProjection.js";
53
+ import { resolveCellRenderer as tt } from "../fields/cells/registry.js";
54
+ import { FileDraftScope as s, useFileDraftScope as nt } from "../file-widgets/draft-scope.js";
55
+ import { buildFilesPayload as rt, collectCommittedFileIds as it } from "../file-widgets/payload.js";
56
+ import { getSchemaFieldValue as at, serializeSchemaFieldValue as ot } from "../file-widgets/host.js";
57
+ import { useText as st } from "../../hooks/useText.js";
58
58
  import { Suspense as ct, lazy as c, useCallback as l, useEffect as u, useMemo as d, useRef as f, useState as lt } from "react";
59
59
  import { Fragment as ut, jsx as p, jsxs as dt } from "react/jsx-runtime";
60
60
  import { useSearchParams as ft } from "react-router";
61
61
  import { useTable as pt } from "@tanstack/react-table";
62
62
  import { useVirtualizer as mt } from "@tanstack/react-virtual";
63
- //#region src/components/pages/SmartListPage.impl.tsx
63
+ // src/components/pages/SmartListPage.impl.tsx
64
64
  var ht = c(() => import("./list/ListCardsBody.js").then((e) => ({ default: e.ListCardsBody })));
65
65
  function gt({ screenCode: e }) {
66
66
  return /* @__PURE__ */ p(s, { children: /* @__PURE__ */ p(m, { screenCode: e }) });
67
67
  }
68
68
  var _t = [];
69
69
  function m({ screenCode: s }) {
70
- let c = ae(), gt = ae("errors"), m = ce(), [h, g] = ft(), { data: _ } = re(), [vt, v] = lt(!1), [yt, y] = lt(!1), [bt, xt] = lt(null), St = ne((e) => e.user), Ct = ne((e) => e.activeTenant), wt = fe(), b = _?.screens[s], x = b?.entity ? _?.entities[b.entity] : void 0, S = b?.entity, Tt = n(x, "create"), Et = n(x, "update"), Dt = n(x, "delete"), C = _?.actions, w = d(() => o(le(x?.actions, b?.actions, "list_toolbar", C), x), [
71
- x,
72
- b?.actions,
73
- C
74
- ]), T = d(() => o(le(x?.actions, void 0, "list_floatbar", C), x), [x, C]), E = d(() => {
70
+ let c = st(), gt = st("errors"), m = te(), [h, g] = ft(), { data: _ } = t(), [vt, v] = lt(!1), [yt, y] = lt(!1), [bt, b] = lt(null), xt = n((e) => e.user), St = n((e) => e.activeTenant), Ct = nt(), x = _?.screens[s], S = x?.entity ? _?.entities[x.entity] : void 0, C = x?.entity, wt = de(S, "create"), Tt = de(S, "update"), Et = de(S, "delete"), w = _?.actions, T = d(() => ce(le(S?.actions, x?.actions, "list_toolbar", w), S), [
71
+ S,
72
+ x?.actions,
73
+ w
74
+ ]), E = d(() => ce(le(S?.actions, void 0, "list_floatbar", w), S), [S, w]), D = d(() => {
75
75
  let e = /* @__PURE__ */ new Map(), t = (t) => {
76
- for (let n of le(x?.actions, t, "list_row", C)) e.set(n.code, n);
76
+ for (let n of le(S?.actions, t, "list_row", w)) e.set(n.code, n);
77
77
  };
78
- t(b?.row_actions);
79
- for (let e of b?.variants?.items() ?? []) e.row_actions !== void 0 && t(e.row_actions);
80
- return o([...e.values()], x);
78
+ t(x?.row_actions);
79
+ for (let e of x?.variants?.items() ?? []) e.row_actions !== void 0 && t(e.row_actions);
80
+ return ce([...e.values()], S);
81
81
  }, [
82
+ S,
82
83
  x,
83
- b,
84
- C
85
- ]), Ot = b?.row_actions !== void 0, kt = d(() => T.length > 0 || x?.export?.enabled !== !1 && b?.export?.enabled !== !1, [
86
- T,
87
- x?.export?.enabled,
88
- b?.export?.enabled
89
- ]), At = !!x?.soft_delete, jt = At && (St?.permissions ?? []).some((e) => e === "feature:view_deleted" || e === "feature:*" || e === "*"), Mt = jt && h.get("include_deleted") === "true", Nt = i(), { openTab: Pt, updateTabSearch: Ft, findTabByPathname: It } = se();
90
- Ce(b, x, h.toString()), we(b?.route);
91
- let Lt = l((e) => {
92
- if (!b?.route || !x || Nt.enabled) return;
93
- let t = It(b.route);
94
- t ? Ft(t.id, e) : Pt({
95
- pathname: b.route,
84
+ w
85
+ ]), Dt = x?.row_actions !== void 0, Ot = d(() => E.length > 0 || S?.export?.enabled !== !1 && x?.export?.enabled !== !1, [
86
+ E,
87
+ S?.export?.enabled,
88
+ x?.export?.enabled
89
+ ]), kt = !!S?.soft_delete, At = kt && (xt?.permissions ?? []).some((e) => e === "feature:view_deleted" || e === "feature:*" || e === "*"), jt = At && h.get("include_deleted") === "true", Mt = ie(), { openTab: Nt, updateTabSearch: Pt, findTabByPathname: Ft } = ae();
90
+ re(x, S, h.toString()), ne(x?.route);
91
+ let It = l((e) => {
92
+ if (!x?.route || !S || Mt.enabled) return;
93
+ let t = Ft(x.route);
94
+ t ? Pt(t.id, e) : Nt({
95
+ pathname: x.route,
96
96
  search: e,
97
- title: c(b.display?.name) || c(x.display.name_plural),
98
- icon: b.display?.icon || x.display.icon,
97
+ title: c(x.display?.name) || c(S.display.name_plural),
98
+ icon: x.display?.icon || S.display.icon,
99
99
  closable: !0
100
100
  });
101
101
  }, [
102
102
  c,
103
- b,
104
103
  x,
105
- Nt.enabled,
106
- It,
104
+ S,
105
+ Mt.enabled,
107
106
  Ft,
108
- Pt
109
- ]), D = parseInt(h.get("page") ?? "1", 10), O = (() => {
107
+ Pt,
108
+ Nt
109
+ ]), O = parseInt(h.get("page") ?? "1", 10), Lt = (() => {
110
110
  let e = parseInt(h.get("per_page") ?? "", 10);
111
111
  return !Number.isFinite(e) || e <= 0 || e > 1e3 ? 200 : e;
112
112
  })(), Rt = h.get("search") ?? "", zt = d(() => {
113
113
  let e = be(h);
114
114
  return e.error === null ? null : gt(e.errorCode ?? "", e.error);
115
- }, [gt, h]), k = Fe({
115
+ }, [gt, h]), k = he({
116
116
  screenCode: s,
117
- screen: b,
118
- entity: x,
117
+ screen: x,
118
+ entity: S,
119
119
  searchParams: h,
120
120
  setSearchParams: g,
121
- userId: St?.id,
122
- tenantId: Ct?.id,
121
+ userId: xt?.id,
122
+ tenantId: St?.id,
123
123
  filterError: !!zt
124
- }), { filters: Bt, columns: Vt, sort: Ht } = k.defaults, { filters: Ut, setFilters: A, clearFilters: Wt } = Se({ defaults: Bt }), { visibleFilterState: Gt, filterFieldMeta: Kt, allFilterFieldMeta: qt, filterFieldName: Jt } = Le(b, x, _?.entities, Ut), j = Gt.filters, Yt = ye(j), Xt = l(() => A(_t), [A]), Zt = Be({
124
+ }), { filters: Bt, columns: Vt, sort: Ht } = k.defaults, { filters: Ut, setFilters: A, clearFilters: Wt } = me({ defaults: Bt }), { visibleFilterState: Gt, filterFieldMeta: Kt, allFilterFieldMeta: qt, filterFieldName: Jt } = De(x, S, _?.entities, Ut), j = Gt.filters, Yt = ye(j), Xt = l(() => A(_t), [A]), Zt = Ae({
125
125
  searchParams: h,
126
126
  setSearchParams: g,
127
127
  defaultSort: Ht,
128
- commitScreenTabSearch: Lt
129
- }), { cols: Qt, nullsByField: $t, value: en, forRequest: tn, tableSorting: nn, write: rn, applyColumn: an, shiftClickColumn: on, appendColumn: sn, clearColumn: cn, clearAll: ln } = Zt, un = Ue({
128
+ commitScreenTabSearch: It
129
+ }), { cols: M, nullsByField: Qt, value: $t, forRequest: en, tableSorting: tn, write: nn, applyColumn: rn, shiftClickColumn: an, appendColumn: on, clearColumn: sn, clearAll: cn } = Zt, ln = Ne({
130
130
  screenCode: s,
131
- screen: b,
131
+ screen: x,
132
132
  searchParams: h,
133
133
  setSearchParams: g,
134
134
  defaultColumns: Vt
135
- }), { visible: M, sizing: dn, setSizing: fn, apply: pn, commitResize: mn } = un, hn = Qe({
135
+ }), { visible: N, sizing: un, setSizing: dn, apply: fn, commitResize: pn } = ln, mn = Ve({
136
136
  screenCode: s,
137
- screen: b,
138
- entity: x,
137
+ screen: x,
138
+ entity: S,
139
139
  searchParams: h,
140
140
  setSearchParams: g,
141
- userId: St?.id,
142
- tenantId: Ct?.id,
141
+ userId: xt?.id,
142
+ tenantId: St?.id,
143
143
  all: k.all,
144
144
  activeId: k.activeId,
145
145
  active: k.active,
146
146
  clearedKey: k.clearedKey,
147
147
  filters: Ut,
148
- visibleColumns: M,
149
- sort: en
150
- }), { active: N, saveAsNew: gn, overwriteActive: _n, isSaving: vn } = hn, yn = de(Rt, 300), P = oe(), F = d(() => {
151
- let e = b?.responsive?.[P.category]?.presentation;
152
- return e === "table" || e === "cards" ? e : P.category === "phone" ? "cards" : "table";
153
- }, [b?.responsive, P.category]), bn = d(() => Me({
154
- entity: x,
155
- screen: b,
156
- savedViewColumns: N?.columns
148
+ visibleColumns: N,
149
+ sort: $t
150
+ }), { active: P, saveAsNew: hn, overwriteActive: gn, isSaving: _n } = mn, vn = o(Rt, 300), F = ee(), I = d(() => {
151
+ let e = x?.responsive?.[F.category]?.presentation;
152
+ return e === "table" || e === "cards" ? e : F.category === "phone" ? "cards" : "table";
153
+ }, [x?.responsive, F.category]), yn = d(() => Qe({
154
+ entity: S,
155
+ screen: x,
156
+ savedViewColumns: P?.columns
157
157
  }), [
158
+ S,
158
159
  x,
159
- b,
160
- N?.columns
161
- ]), xn = d(() => Ne({
162
- entity: x,
163
- screen: b,
164
- presentation: F,
165
- visibleColumns: M,
166
- card: bn,
167
- rowActions: E,
168
- toolbarActions: w,
169
- bulkActions: T,
170
- sort: Qt,
160
+ P?.columns
161
+ ]), bn = d(() => $e({
162
+ entity: S,
163
+ screen: x,
164
+ presentation: I,
165
+ visibleColumns: N,
166
+ card: yn,
167
+ rowActions: D,
168
+ toolbarActions: T,
169
+ bulkActions: E,
170
+ sort: M,
171
171
  screens: _?.screens
172
172
  }), [
173
+ S,
173
174
  x,
174
- b,
175
- F,
176
- M,
177
- bn,
178
- E,
179
- w,
175
+ I,
176
+ N,
177
+ yn,
178
+ D,
180
179
  T,
181
- Qt,
180
+ E,
181
+ M,
182
182
  _?.screens
183
- ]), Sn = ze({
184
- entity: x,
185
- entityCode: S,
186
- screen: b,
183
+ ]), xn = ke({
184
+ entity: S,
185
+ entityCode: C,
186
+ screen: x,
187
187
  screenCode: s,
188
- page: D,
189
- perPage: O,
190
- sortForRequest: tn,
191
- debouncedSearch: yn,
188
+ page: O,
189
+ perPage: Lt,
190
+ sortForRequest: en,
191
+ debouncedSearch: vn,
192
192
  filters: j,
193
193
  isHeld: k.isHeld,
194
194
  prefetchWhileHeld: k.prefetchWhileHeld,
195
195
  retryHeld: k.retryViews,
196
- includeDeleted: Mt,
197
- expand: xn.expandFields,
198
- select: xn.selectFields,
196
+ includeDeleted: jt,
197
+ expand: bn.expandFields,
198
+ select: bn.selectFields,
199
199
  runCountQuery: !0,
200
- urlKey: `${S ?? ""}|${h.toString()}`
201
- }), { rows: I, meta: Cn, refs: wn, isLoading: L, isFetching: Tn, isShowingPreviousRows: En, isError: Dn, error: On, isLoadingStale: kn, retry: An, countTotal: jn, countStrategy: Mn, countLoading: Nn, countError: Pn, totalPages: R, hasMorePages: Fn, isCursor: In, fetchNextPage: Ln, isFetchingNextPage: Rn } = Sn;
202
- a(!L);
203
- let zn = He(x, I, Tn), { state: Bn, setState: z, ids: B, pkValues: Vn, rows: Hn, keyOf: V } = zn, Un = ue(x?.realtime, S ?? ""), Wn = ve(S ?? ""), H = f(wn);
204
- H.current = wn;
200
+ urlKey: `${C ?? ""}|${h.toString()}`
201
+ }), { rows: L, meta: Sn, refs: Cn, isLoading: wn, isFetching: Tn, isShowingPreviousRows: En, isError: Dn, error: On, isLoadingStale: kn, retry: An, countTotal: jn, countStrategy: Mn, countLoading: Nn, countError: Pn, totalPages: R, hasMorePages: Fn, isCursor: In, fetchNextPage: Ln, isFetchingNextPage: Rn } = xn;
202
+ e(!wn);
203
+ let zn = Me(S, L, Tn), { state: Bn, setState: z, ids: B, pkValues: Vn, rows: Hn, keyOf: V } = zn, Un = se(S?.realtime, C ?? ""), Wn = a(C ?? ""), H = f(Cn);
204
+ H.current = Cn;
205
205
  let Gn = d(() => {
206
206
  let e = /* @__PURE__ */ new Map();
207
- if (!x) return e;
208
- for (let t of Pe(x, b, N?.columns)) {
209
- if (t.startsWith("$") || x.files?.get(t)) continue;
210
- let n = x.fields.get(t);
211
- n && e.set(t, _e({
207
+ if (!S) return e;
208
+ for (let t of et(S, x, P?.columns)) {
209
+ if (t.startsWith("$") || S.files?.get(t)) continue;
210
+ let n = S.fields.get(t);
211
+ n && e.set(t, tt({
212
212
  field: n,
213
213
  fieldName: t,
214
214
  surface: "list",
215
- entity: x,
216
- entityCode: S,
215
+ entity: S,
216
+ entityCode: C,
217
217
  entities: _?.entities,
218
218
  screens: _?.screens,
219
219
  refs: () => H.current,
@@ -222,104 +222,104 @@ function m({ screenCode: s }) {
222
222
  }
223
223
  return e;
224
224
  }, [
225
- x,
226
225
  S,
227
- b,
228
- N?.columns,
226
+ C,
227
+ x,
228
+ P?.columns,
229
229
  _?.entities,
230
230
  _?.screens,
231
231
  H,
232
232
  c
233
- ]), { labelFor: Kn, refs: qn } = tt(qt, j, wn, _?.entities), U = We({
234
- entity: x,
235
- screen: b,
233
+ ]), { labelFor: Kn, refs: qn } = We(qt, j, Cn, _?.entities), U = Pe({
234
+ entity: S,
235
+ screen: x,
236
236
  screens: _?.screens,
237
237
  entities: _?.entities,
238
238
  searchParams: h,
239
239
  tabNavigate: m,
240
- commitScreenTabSearch: Lt,
241
- isPhone: P.category === "phone",
242
- canUpdate: Et
243
- }), { peekAllowed: W, peekRow: G, setPeekRow: K, peekFields: Jn, peekActions: Yn, peekExecute: Xn, contextMenu: q, setContextMenu: Zn } = U, J = d(() => !b || !x ? !1 : t(b, "_", x, _?.screens) !== null, [
244
- b,
240
+ commitScreenTabSearch: It,
241
+ isPhone: F.category === "phone",
242
+ canUpdate: Tt
243
+ }), { peekAllowed: W, peekRow: G, setPeekRow: K, peekFields: Jn, peekActions: Yn, peekExecute: Xn, contextMenu: q, setContextMenu: Zn } = U, J = d(() => !x || !S ? !1 : ue(x, "_", S, _?.screens) !== null, [
245
244
  x,
245
+ S,
246
246
  _?.screens
247
- ]), Qn = d(() => at({
248
- visibleCols: M,
249
- entity: x,
250
- screen: b,
247
+ ]), Qn = d(() => Je({
248
+ visibleCols: N,
249
+ entity: S,
250
+ screen: x,
251
251
  schema: _,
252
- entityCode: S,
253
- rowActions: E,
254
- hasBatchActions: kt,
255
- hasExplicitRowActions: Ot,
256
- canUpdate: Et,
257
- canDelete: Dt,
252
+ entityCode: C,
253
+ rowActions: D,
254
+ hasBatchActions: Ot,
255
+ hasExplicitRowActions: Dt,
256
+ canUpdate: Tt,
257
+ canDelete: Et,
258
258
  peekEnabled: W,
259
259
  hasDetailTarget: J,
260
260
  t: c,
261
261
  tabNavigate: m,
262
262
  refsRef: H,
263
- rowSelectionKey: Ve,
263
+ rowSelectionKey: je,
264
264
  setPeekRow: K
265
265
  }), [
266
- b,
267
266
  x,
268
- M,
267
+ S,
268
+ N,
269
269
  m,
270
- kt,
271
- E,
272
270
  Ot,
273
- S,
271
+ D,
272
+ Dt,
273
+ C,
274
274
  W,
275
275
  J,
276
276
  _,
277
277
  c,
278
+ Tt,
278
279
  Et,
279
- Dt,
280
280
  H,
281
281
  K
282
282
  ]), Y = pt({
283
- features: Ie,
284
- data: I,
283
+ features: Ee,
284
+ data: L,
285
285
  columns: Qn,
286
286
  manualSorting: !0,
287
287
  enableColumnResizing: !0,
288
288
  columnResizeMode: "onChange",
289
- onColumnSizingChange: fn,
289
+ onColumnSizingChange: dn,
290
290
  state: {
291
- sorting: nn,
291
+ sorting: tn,
292
292
  rowSelection: Bn,
293
- columnSizing: dn
293
+ columnSizing: un
294
294
  },
295
295
  onSortingChange: (e) => {
296
- let t = (typeof e == "function" ? e(nn) : e).slice(0, 5);
296
+ let t = (typeof e == "function" ? e(tn) : e).slice(0, 5);
297
297
  if (t.length === 0) {
298
- rn([]);
298
+ nn([]);
299
299
  return;
300
300
  }
301
301
  let n = t.map((e) => {
302
- let t = $t.get(e.id);
302
+ let t = Qt.get(e.id);
303
303
  return {
304
304
  field: e.id,
305
305
  dir: e.desc ? "desc" : "asc",
306
306
  ...t ? { nulls: t } : {}
307
307
  };
308
308
  });
309
- rn(n);
309
+ nn(n);
310
310
  },
311
311
  onRowSelectionChange: z,
312
312
  getRowId: V
313
313
  }), X = Y.state.columnResizing.isResizingColumn, $n = f(!1);
314
314
  u(() => {
315
315
  let e = !!$n.current && !X;
316
- $n.current = X, e && mn(Y.state.columnSizing);
316
+ $n.current = X, e && pn(Y.state.columnSizing);
317
317
  }, [
318
318
  X,
319
- mn,
319
+ pn,
320
320
  Y
321
321
  ]);
322
- let er = Ge(Y), tr = Y.getTotalSize();
322
+ let er = Xe(Y), tr = Y.getTotalSize();
323
323
  u(() => {
324
324
  let e = (e) => {
325
325
  let t = e.target?.tagName;
@@ -327,19 +327,19 @@ function m({ screenCode: s }) {
327
327
  };
328
328
  return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
329
329
  }, []);
330
- let Z = f(null), { rows: Q } = Y.getRowModel(), nr = f(null), rr = st({
331
- visibleCols: M,
332
- onReorder: pn,
330
+ let Z = f(null), { rows: Q } = Y.getRowModel(), nr = f(null), rr = Ze({
331
+ visibleCols: N,
332
+ onReorder: fn,
333
333
  scrollElRef: Z,
334
334
  theadRef: nr
335
- }), ir = te((e) => e.density), ar = te((e) => e.zebra), or = Te(), $ = mt({
335
+ }), ir = oe((e) => e.density), ar = oe((e) => e.zebra), or = r(), $ = mt({
336
336
  count: Q.length,
337
337
  getScrollElement: () => Z.current,
338
- estimateSize: () => F === "cards" ? 142 : 48,
338
+ estimateSize: () => I === "cards" ? 142 : 48,
339
339
  overscan: 10,
340
340
  initialOffset: or
341
341
  }), sr = d(() => Q.map((e) => e.id), [Q]);
342
- Ee({
342
+ i({
343
343
  virtualizer: $,
344
344
  scrollElementRef: Z,
345
345
  rowKeys: sr
@@ -348,9 +348,9 @@ function m({ screenCode: s }) {
348
348
  }, [ir, $]), u(() => {
349
349
  $.measure();
350
350
  }, [
351
- P.width,
352
- P.height,
353
- F,
351
+ F.width,
352
+ F.height,
353
+ I,
354
354
  $
355
355
  ]);
356
356
  let cr = l((e) => {
@@ -370,10 +370,10 @@ function m({ screenCode: s }) {
370
370
  });
371
371
  }, [g]);
372
372
  u(() => {
373
- R !== void 0 && D > R && ur(R);
373
+ R !== void 0 && O > R && ur(R);
374
374
  }, [
375
375
  R,
376
- D,
376
+ O,
377
377
  ur
378
378
  ]);
379
379
  let dr = l((e) => {
@@ -382,12 +382,12 @@ function m({ screenCode: s }) {
382
382
  return n.set("per_page", String(e)), n.set("page", "1"), n;
383
383
  });
384
384
  }, [g]);
385
- if (!b || !x) return null;
386
- let fr = x.display, pr = c(b.display?.name) || c(fr.name), mr = b.display?.icon || fr.icon, hr = c(b.display?.description) || c(fr.description), gr = P.category === "phone", _r = F === "cards", vr = Vn.map((e) => r(x, e)), yr = {
387
- entity: x,
388
- entityCode: S ?? "",
389
- screen: b,
390
- screenRoute: b.route,
385
+ if (!x || !S) return null;
386
+ let fr = S.display, pr = c(x.display?.name) || c(fr.name), mr = x.display?.icon || fr.icon, hr = c(x.display?.description) || c(fr.description), gr = F.category === "phone", _r = I === "cards", vr = Vn.map((e) => pe(S, e)), yr = {
387
+ entity: S,
388
+ entityCode: C ?? "",
389
+ screen: x,
390
+ screenRoute: x.route,
391
391
  selectedRows: Hn,
392
392
  selectedIds: vr,
393
393
  t: c,
@@ -396,7 +396,7 @@ function m({ screenCode: s }) {
396
396
  icon: t?.icon,
397
397
  search: t?.search
398
398
  }),
399
- runActionApi: (e, t) => ie(e, t)
399
+ runActionApi: (e, t) => ve(e, t)
400
400
  };
401
401
  return /* @__PURE__ */ dt("div", {
402
402
  style: {
@@ -407,60 +407,60 @@ function m({ screenCode: s }) {
407
407
  },
408
408
  children: [
409
409
  /* @__PURE__ */ dt(ut, { children: [
410
- /* @__PURE__ */ p(rt, {
410
+ /* @__PURE__ */ p(Ke, {
411
411
  title: pr,
412
412
  description: hr,
413
- toolbarActions: w,
414
- screenActionLayout: b.action_layout,
415
- entityActionLayout: x.action_layout,
413
+ toolbarActions: T,
414
+ screenActionLayout: x.action_layout,
415
+ entityActionLayout: S.action_layout,
416
416
  selectedIds: B,
417
- data: I,
417
+ data: L,
418
418
  rowKey: V,
419
419
  onActionSuccess: () => z({}),
420
420
  widgetContext: yr
421
421
  }),
422
- /* @__PURE__ */ p(Xe, {
423
- screen: b,
424
- entity: x,
425
- entityCode: S,
422
+ /* @__PURE__ */ p(ze, {
423
+ screen: x,
424
+ entity: S,
425
+ entityCode: C,
426
426
  schema: _,
427
427
  screenCode: s,
428
428
  screenName: pr,
429
429
  isPhone: gr,
430
430
  isCardsPresentation: _r,
431
431
  sort: Zt,
432
- columns: un,
433
- views: hn,
434
- query: Sn,
432
+ columns: ln,
433
+ views: mn,
434
+ query: xn,
435
435
  selection: zn,
436
436
  filters: {
437
437
  json: j,
438
- debouncedSearch: yn,
438
+ debouncedSearch: vn,
439
439
  count: Yt,
440
440
  onOpen: () => v(!0)
441
441
  },
442
442
  searchValue: Rt,
443
443
  onSearchChange: cr,
444
444
  onSaveView: () => y(!0),
445
- onDeleteView: xt,
446
- page: D,
447
- perPage: O,
448
- includeDeleted: Mt,
449
- canViewDeleted: jt,
445
+ onDeleteView: b,
446
+ page: O,
447
+ perPage: Lt,
448
+ includeDeleted: jt,
449
+ canViewDeleted: At,
450
450
  onToggleDeleted: lr,
451
- realtime: x?.realtime === !0,
451
+ realtime: S?.realtime === !0,
452
452
  isLive: Un
453
453
  }),
454
- /* @__PURE__ */ p(et, {
454
+ /* @__PURE__ */ p(Ue, {
455
455
  filterError: zt,
456
456
  unresolvedViewId: k.isUnresolved ? k.activeId : null,
457
457
  onClearFilters: Wt,
458
458
  onClearView: k.clearActiveView
459
459
  }),
460
- Gt.omitted && /* @__PURE__ */ p(Re, { className: "px-5 pb-2.5" }),
460
+ Gt.omitted && /* @__PURE__ */ p(Oe, { className: "px-5 pb-2.5" }),
461
461
  j.length > 0 && /* @__PURE__ */ p("div", {
462
462
  style: { padding: "0 20px 10px" },
463
- children: /* @__PURE__ */ p(Oe, {
463
+ children: /* @__PURE__ */ p(we, {
464
464
  filters: j,
465
465
  resolveValue: Kn,
466
466
  onRemoveAtPath: (e) => A(xe(j, e)),
@@ -470,22 +470,22 @@ function m({ screenCode: s }) {
470
470
  })
471
471
  })
472
472
  ] }),
473
- /* @__PURE__ */ p(Je, {
474
- isLoading: L,
473
+ /* @__PURE__ */ p(Le, {
474
+ isLoading: wn,
475
475
  tableLoadingStale: kn,
476
476
  isError: Dn,
477
477
  error: On,
478
- rowCount: I.length,
479
- entity: x,
480
- screen: b,
478
+ rowCount: L.length,
479
+ entity: S,
480
+ screen: x,
481
481
  screenName: pr,
482
482
  screenIcon: mr,
483
- isFiltered: !!yn || Yt > 0,
484
- canCreate: Tt,
485
- toolbarActions: w,
483
+ isFiltered: !!vn || Yt > 0,
484
+ canCreate: wt,
485
+ toolbarActions: T,
486
486
  onRetry: An
487
487
  }),
488
- L || Dn || I.length === 0 ? null : /* @__PURE__ */ p("div", {
488
+ wn || Dn || L.length === 0 ? null : /* @__PURE__ */ p("div", {
489
489
  style: {
490
490
  flex: 1,
491
491
  minHeight: 0,
@@ -508,57 +508,57 @@ function m({ screenCode: s }) {
508
508
  children: [/* @__PURE__ */ p("div", {
509
509
  ref: Z,
510
510
  "data-testid": "list-scroll",
511
- "data-presentation": F,
511
+ "data-presentation": I,
512
512
  style: {
513
513
  overflow: "auto",
514
514
  flex: 1,
515
515
  minHeight: 0
516
516
  },
517
- children: F === "cards" ? /* @__PURE__ */ p(ct, {
517
+ children: I === "cards" ? /* @__PURE__ */ p(ct, {
518
518
  fallback: null,
519
519
  children: /* @__PURE__ */ p(ht, {
520
520
  rows: Q,
521
521
  virtualizer: $,
522
- entity: x,
523
- screen: b,
524
- entityCode: S,
522
+ entity: S,
523
+ screen: x,
524
+ entityCode: C,
525
525
  entities: _?.entities,
526
- savedViewColumns: N?.columns,
526
+ savedViewColumns: P?.columns,
527
527
  refs: H.current,
528
528
  renderers: Gn,
529
- rowActions: E,
529
+ rowActions: D,
530
530
  tabNavigate: m,
531
531
  interaction: U,
532
- hasSoftDelete: At,
532
+ hasSoftDelete: kt,
533
533
  zebra: ar,
534
- hasBatchActions: kt,
534
+ hasBatchActions: Ot,
535
535
  hasDetailTarget: J,
536
536
  rowKey: V
537
537
  })
538
- }) : /* @__PURE__ */ p(Ke, {
538
+ }) : /* @__PURE__ */ p(Fe, {
539
539
  showsPreviousRows: En,
540
540
  table: Y,
541
541
  columns: Qn,
542
542
  rows: Q,
543
- entity: x,
543
+ entity: S,
544
544
  columnSizeVars: er,
545
545
  totalColumnsWidth: tr,
546
546
  theadRef: nr,
547
547
  virtualizer: $,
548
- visibleCols: M,
548
+ visibleCols: N,
549
549
  headerReorder: rr,
550
- sortCols: Qt,
551
- sortNullsMap: $t,
552
- shiftClickColumn: on,
553
- applyColumnSort: an,
554
- appendColumnSort: sn,
555
- clearColumnSort: cn,
556
- clearAllSorts: ln,
557
- renderRow: (e, t) => /* @__PURE__ */ p(qe, {
550
+ sortCols: M,
551
+ sortNullsMap: Qt,
552
+ shiftClickColumn: an,
553
+ applyColumnSort: rn,
554
+ appendColumnSort: on,
555
+ clearColumnSort: sn,
556
+ clearAllSorts: cn,
557
+ renderRow: (e, t) => /* @__PURE__ */ p(Ie, {
558
558
  row: e,
559
559
  rowIndex: t,
560
- entity: x,
561
- hasSoftDelete: At,
560
+ entity: S,
561
+ hasSoftDelete: kt,
562
562
  zebra: ar,
563
563
  hasDetailTarget: J,
564
564
  interaction: U,
@@ -566,20 +566,20 @@ function m({ screenCode: s }) {
566
566
  }, e.id),
567
567
  isResizingColumn: X
568
568
  })
569
- }), /* @__PURE__ */ p(Ye, {
570
- meta: Cn,
569
+ }), /* @__PURE__ */ p(Re, {
570
+ meta: Sn,
571
571
  isCursor: In,
572
572
  isPhone: gr,
573
- rowsLoaded: I.length,
573
+ rowsLoaded: L.length,
574
574
  selectedCount: B.length,
575
575
  countTotal: jn,
576
576
  countStrategy: Mn,
577
577
  countLoading: Nn,
578
578
  countError: Pn,
579
- page: D,
579
+ page: O,
580
580
  totalPages: R,
581
581
  goToPage: ur,
582
- perPage: O,
582
+ perPage: Lt,
583
583
  setPerPage: dr,
584
584
  hasMorePages: Fn,
585
585
  fetchNextPage: Ln,
@@ -587,7 +587,7 @@ function m({ screenCode: s }) {
587
587
  })]
588
588
  })
589
589
  }),
590
- /* @__PURE__ */ p(De, {
590
+ /* @__PURE__ */ p(Te, {
591
591
  open: vt,
592
592
  onClose: () => v(!1),
593
593
  filters: j,
@@ -596,77 +596,77 @@ function m({ screenCode: s }) {
596
596
  allFields: qt,
597
597
  fieldLabel: Jt,
598
598
  resolveValue: Kn,
599
- defaultFilters: b?.default_filters,
599
+ defaultFilters: x?.default_filters,
600
600
  refs: qn
601
601
  }),
602
- /* @__PURE__ */ p($e, {
602
+ /* @__PURE__ */ p(He, {
603
603
  view: bt,
604
- onCancel: () => xt(null),
604
+ onCancel: () => b(null),
605
605
  onConfirm: (e) => {
606
- hn.deleteView(e).catch(() => void 0).finally(() => xt(null));
606
+ mn.deleteView(e).catch(() => void 0).finally(() => b(null));
607
607
  }
608
608
  }),
609
- /* @__PURE__ */ p(nt, {
609
+ /* @__PURE__ */ p(Ge, {
610
610
  open: yt,
611
- pending: vn,
611
+ pending: _n,
612
612
  onClose: () => y(!1),
613
- overwriteViewName: Ze(c, N),
613
+ overwriteViewName: Be(c, P),
614
614
  onOverwrite: async () => {
615
- await _n(), y(!1);
615
+ await gn(), y(!1);
616
616
  },
617
617
  onSave: async (e) => {
618
- await gn(e), y(!1);
618
+ await hn(e), y(!1);
619
619
  }
620
620
  }),
621
- B.length > 0 && /* @__PURE__ */ p(it, {
621
+ B.length > 0 && /* @__PURE__ */ p(qe, {
622
622
  selectedIds: B,
623
- floatbarActions: T,
624
- screenActionLayout: b.action_layout,
625
- entityActionLayout: x.action_layout,
626
- data: I,
623
+ floatbarActions: E,
624
+ screenActionLayout: x.action_layout,
625
+ entityActionLayout: S.action_layout,
626
+ data: L,
627
627
  rowKey: V,
628
- entityCode: S,
629
- entity: x,
630
- screen: b,
628
+ entityCode: C,
629
+ entity: S,
630
+ screen: x,
631
631
  onClear: () => z({}),
632
632
  onActionSuccess: () => z({}),
633
633
  widgetContext: yr
634
634
  }),
635
- q && x && b && /* @__PURE__ */ p(ot, {
635
+ q && S && x && /* @__PURE__ */ p(Ye, {
636
636
  x: q.x,
637
637
  y: q.y,
638
638
  row: q.row,
639
639
  rowId: V(q.row),
640
- screen: b,
641
- fullScreen: b,
642
- entity: x,
643
- entityCode: S,
644
- rowActions: E,
640
+ screen: x,
641
+ fullScreen: x,
642
+ entity: S,
643
+ entityCode: C,
644
+ rowActions: D,
645
645
  tabNavigate: m,
646
646
  peekAllowed: W,
647
647
  hasDetailTarget: J,
648
648
  onPeek: K,
649
649
  onClose: () => Zn(null)
650
650
  }),
651
- W && G && x && /* @__PURE__ */ p(Ae, {
652
- entity: x,
653
- entityCode: S,
651
+ W && G && S && /* @__PURE__ */ p(ge, {
652
+ entity: S,
653
+ entityCode: C,
654
654
  record: G,
655
- title: ee(c, G, x) || c(x.display.name),
655
+ title: fe(c, G, S) || c(S.display.name),
656
656
  recordId: (() => {
657
- let t = x.fields.names()?.find((e) => x.fields.get(e)?.primary);
658
- return t && x.fields.get(t)?.type !== "uuid" ? e(G[t]) : void 0;
657
+ let e = S.fields.names()?.find((e) => S.fields.get(e)?.primary);
658
+ return e && S.fields.get(e)?.type !== "uuid" ? Ce(G[e]) : void 0;
659
659
  })(),
660
660
  fields: Jn,
661
- screen: ke(x, b, G),
661
+ screen: Se(S, x, G),
662
662
  actions: Yn,
663
- screenActionLayout: ke(x, b, G)?.action_layout,
664
- entityActionLayout: x.action_layout,
663
+ screenActionLayout: Se(S, x, G)?.action_layout,
664
+ entityActionLayout: S.action_layout,
665
665
  executeAction: Xn,
666
666
  onClose: () => {
667
- if (x && G) {
668
- let t = x.fields.names()?.find((e) => x.fields.get(e)?.primary);
669
- t && je(e(G[t]));
667
+ if (S && G) {
668
+ let e = S.fields.names()?.find((e) => S.fields.get(e)?.primary);
669
+ e && _e(Ce(G[e]));
670
670
  }
671
671
  K(null);
672
672
  },
@@ -674,33 +674,32 @@ function m({ screenCode: s }) {
674
674
  let t = G;
675
675
  K(null), U.navigateToDetail(t, { draft: e });
676
676
  },
677
- onSave: (t) => {
678
- K(t);
679
- let n = x.fields.names()?.find((e) => x.fields.get(e)?.primary);
680
- if (!n) return;
681
- let ee = e(t[n]), r = {};
682
- for (let e of x.fields.names()) {
683
- let n = pe(x, t, e), ee = pe(x, G, e), i = me(x, e, n), a = me(x, e, ee);
684
- (i === "" ? null : i) !== (a === "" || a === void 0 ? null : a) && (r[e] = i);
677
+ onSave: (e) => {
678
+ K(e);
679
+ let t = S.fields.names()?.find((e) => S.fields.get(e)?.primary);
680
+ if (!t) return;
681
+ let n = Ce(e[t]), r = {};
682
+ for (let t of S.fields.names()) {
683
+ let n = at(S, e, t), i = at(S, G, t), a = ot(S, t, n), o = ot(S, t, i);
684
+ (a === "" ? null : a) !== (o === "" || o === void 0 ? null : o) && (r[t] = a);
685
685
  }
686
- let i = he({
687
- entity: x,
688
- formData: t,
686
+ let i = rt({
687
+ entity: S,
688
+ formData: e,
689
689
  record: G,
690
690
  isNew: !1
691
691
  });
692
692
  if (Object.keys(i).length > 0 && (r.$files = i), Object.keys(r).length === 0) return;
693
- let a = ge(i);
693
+ let a = it(i);
694
694
  Wn.mutate({
695
- pkValues: ee,
695
+ pkValues: n,
696
696
  data: r
697
697
  }, { onSuccess: () => {
698
- a.forEach((e) => wt.markCommitted(e));
698
+ a.forEach((e) => Ct.markCommitted(e));
699
699
  } });
700
700
  }
701
701
  })
702
702
  ]
703
703
  });
704
704
  }
705
- //#endregion
706
705
  export { gt as SmartListPage };