@declarion/react 0.60.0 → 0.63.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 (487) hide show
  1. package/dist-lib/ActionDialog-uiuse5W8.js +374 -0
  2. package/dist-lib/ActionResultDialog.impl-BUBm9Ck3.js +273 -0
  3. package/dist-lib/ActionRunner-DAxgnKB3.js +1440 -0
  4. package/dist-lib/AdminCatalogPage.impl-BJGn7EvA.js +441 -0
  5. package/dist-lib/{AgentChatPanel.impl-BY-Ir7Sh.js → AgentChatPanel.impl-8bw8J-xV.js} +358 -319
  6. package/dist-lib/AgentOpenFollower.impl-Cga1q7_e.js +81 -0
  7. package/dist-lib/AssociatedBlock-D6qDYmRO.js +1515 -0
  8. package/dist-lib/AuthShell-DdiughRT.js +361 -0
  9. package/dist-lib/ChangePasswordDialog-DFe7lVQg.js +12 -0
  10. package/dist-lib/ChangePasswordDialog.impl-DtSIaP-A.js +194 -0
  11. package/dist-lib/CommandPalette.impl-Db3AFA5w.js +383 -0
  12. package/dist-lib/CopyButton-C0iEvaT1.js +119 -0
  13. package/dist-lib/DirtyTabsCloseDialog.impl-DWaFaWKn.js +191 -0
  14. package/dist-lib/{DraggableChildrenTable-CtL7rdT6.js → DraggableChildrenTable-Cy8uevS_.js} +45 -44
  15. package/dist-lib/DynamicIcon-DuBSz6TZ.js +133 -0
  16. package/dist-lib/FieldRow-BXBBFOZh.js +157 -0
  17. package/dist-lib/FilterChips-8fMDBXHp.js +1031 -0
  18. package/dist-lib/Forgot.impl-CmT5A__V.js +105 -0
  19. package/dist-lib/{Grid-CYERLdXO.js → Grid-Cg29k0jv.js} +98 -99
  20. package/dist-lib/Icons-Dzl-AkD_.d.ts +159 -0
  21. package/dist-lib/Icons-lt-7lhYR.js +151 -0
  22. package/dist-lib/ImpersonationBanner.impl-CBJJx6an.js +76 -0
  23. package/dist-lib/ImpersonationStartModal.impl-RaZcsJpG.js +158 -0
  24. package/dist-lib/Kbd-CNttVu0z.js +23 -0
  25. package/dist-lib/{LayoutRenderer-B08IJKsZ.js → LayoutRenderer-DEHtYtzV.js} +965 -942
  26. package/dist-lib/{ListCardsBody-Dje_rays.js → ListCardsBody-BAwFR3yO.js} +46 -52
  27. package/dist-lib/{MarkdownRenderer-N0IWjTH5.js → MarkdownRenderer-kNEMr6K_.js} +15 -16
  28. package/dist-lib/MenuItem-CfkVXPvC.js +140 -0
  29. package/dist-lib/NotFoundPage.impl-ZSBn4WWb.js +68 -0
  30. package/dist-lib/PageHeader-tw4pX3lI.js +71 -0
  31. package/dist-lib/PageShell-tI-mm0C5.js +47 -0
  32. package/dist-lib/Pill-D-wsfRhx.js +42 -0
  33. package/dist-lib/Preferences.impl-BG9XBZDf.js +162 -0
  34. package/dist-lib/Profile.impl-CbzSzxyG.js +527 -0
  35. package/dist-lib/PropertyGridEditor-BTjscqfz.js +4378 -0
  36. package/dist-lib/RecordHeader-Bv9nJXnG.js +217 -0
  37. package/dist-lib/RecordIdBadge-C3MgoZvt.js +25 -0
  38. package/dist-lib/RefreshControl-Ce-T_wSQ.js +195 -0
  39. package/dist-lib/Reset.impl-Cesyqt5p.js +168 -0
  40. package/dist-lib/SSOCallbackPage.impl-BC_W9nQA.js +31 -0
  41. package/dist-lib/SectionCard-VonaiLrx.js +150 -0
  42. package/dist-lib/SignUp.impl-C1KCQbfZ.js +212 -0
  43. package/dist-lib/SmartDetailPage.impl-8iOAMYQh.js +1609 -0
  44. package/dist-lib/SmartListPage.impl-Cc4Zwz5f.js +2818 -0
  45. package/dist-lib/SmartRecordListPage.impl-xTSohkqG.js +795 -0
  46. package/dist-lib/{SortHeaderMenu-DKKeCGTH.js → SortHeaderMenu-BKTrq0Wb.js} +23 -23
  47. package/dist-lib/TenantParamsPage.impl-DMuSs3eP.js +306 -0
  48. package/dist-lib/TwoFA.impl-BClZ3ndk.js +125 -0
  49. package/dist-lib/{cardProjection-nveYLvHR.js → cardProjection-Cr7fG6wJ.js} +134 -133
  50. package/dist-lib/declarion-react.css +1 -1
  51. package/dist-lib/format-count-CSEFw2ht.js +943 -0
  52. package/dist-lib/headerActionZone-bef-tZZ7.js +14 -0
  53. package/dist-lib/{stores/icon-registry.d.ts → icon-registry-CUT4eF63.d.ts} +14 -11
  54. package/dist-lib/icons.d.ts +20 -4
  55. package/dist-lib/icons.js +3 -2
  56. package/dist-lib/index.d.ts +2516 -150
  57. package/dist-lib/index.js +1532 -5053
  58. package/dist-lib/page-inset-D_kkVwwN.js +9 -0
  59. package/dist-lib/page-state-eA6J_KIR.js +124 -0
  60. package/dist-lib/param-editors-9yJr7xmN.js +201 -0
  61. package/dist-lib/payload-B2wODLAX.js +86 -0
  62. package/dist-lib/{peekDraftStore-DSExeoAh.js → peekDraftStore-D4GRsRKW.js} +44 -43
  63. package/dist-lib/registry-BpzE8-h8.js +119 -0
  64. package/dist-lib/screen-back-Cs4kzeqD.js +44 -0
  65. package/dist-lib/testing.d.ts +53 -56
  66. package/dist-lib/testing.js +54 -55
  67. package/dist-lib/use-filter-value-labels-DuqvAIVG.js +413 -0
  68. package/dist-lib/{useAgentConversation-BavrHfrU.js → useAgentConversation-D210VDCQ.js} +158 -169
  69. package/dist-lib/useAuth-CR2YKKXb.js +49 -0
  70. package/dist-lib/useBranding-Ckp_AuJb.js +41 -0
  71. package/dist-lib/useBrandingChrome-bKTXXDLy.js +170 -0
  72. package/dist-lib/useCurrentLocation-BdngVeQv.js +22 -0
  73. package/dist-lib/useCurrentScreen--UovgvRj.js +2511 -0
  74. package/dist-lib/useImpersonation-DNV23Ks1.js +35 -0
  75. package/dist-lib/useObject-1OCeV34A.js +26 -0
  76. package/dist-lib/useOwnRefresh-DkOuM4yo.js +435 -0
  77. package/dist-lib/useParams-ei6w4I7w.js +133 -0
  78. package/dist-lib/useProperties-CbdhlhZd.js +81 -0
  79. package/dist-lib/useResponsiveMode-DIR1bZfo.d.ts +1786 -0
  80. package/dist-lib/useScreenBack-J861tbwn.js +71 -0
  81. package/dist-lib/useTabNavigate-BZiW4q3M.js +78 -0
  82. package/dist-lib/useTabTitle-CZZnWIQi.js +22 -0
  83. package/dist-lib/utils-D_QDpB8_.js +11 -0
  84. package/dist-lib/{value-By1-WJ8J.js → value-CDCeHgOv.js} +8 -22
  85. package/dist-lib/{action-dispatch-DbiOpvd6.js → variants-CbAwl3Mn.js} +734 -740
  86. package/dist-lib/vite/index.d.ts +42 -16
  87. package/dist-lib/window-election-CHIvIZwx.js +45 -0
  88. package/package.json +17 -24
  89. package/dist-lib/DetailAuditStrip-B9p1XhjC.js +0 -288
  90. package/dist-lib/DynamicIcon-DW5krHuX.js +0 -280
  91. package/dist-lib/RefreshControl-BEWSHtAC.js +0 -399
  92. package/dist-lib/SmartDetailPage.impl-CYiM-ITJ.js +0 -1565
  93. package/dist-lib/SmartListPage.impl-Db_Pv9Xc.js +0 -3051
  94. package/dist-lib/SmartRecordListPage.impl-hbbLglC1.js +0 -780
  95. package/dist-lib/api/agents.d.ts +0 -140
  96. package/dist-lib/api/auth-redirect.d.ts +0 -3
  97. package/dist-lib/api/auth.d.ts +0 -26
  98. package/dist-lib/api/batch.d.ts +0 -25
  99. package/dist-lib/api/client.d.ts +0 -51
  100. package/dist-lib/api/data.d.ts +0 -153
  101. package/dist-lib/api/entities.d.ts +0 -149
  102. package/dist-lib/api/events.d.ts +0 -91
  103. package/dist-lib/api/params.d.ts +0 -28
  104. package/dist-lib/api/properties.d.ts +0 -3
  105. package/dist-lib/api/schema.d.ts +0 -2
  106. package/dist-lib/api/status.d.ts +0 -2
  107. package/dist-lib/app.d.ts +0 -1
  108. package/dist-lib/components/actions/ActionButton.d.ts +0 -18
  109. package/dist-lib/components/actions/ActionDialog.d.ts +0 -20
  110. package/dist-lib/components/actions/ActionResultDialog.d.ts +0 -22
  111. package/dist-lib/components/actions/ActionRunner.d.ts +0 -62
  112. package/dist-lib/components/actions/ObjectActionBar.d.ts +0 -29
  113. package/dist-lib/components/actions/PropertyGridEditor.d.ts +0 -20
  114. package/dist-lib/components/actions/ResponsiveActionBar.d.ts +0 -259
  115. package/dist-lib/components/actions/RowActionsKebab.d.ts +0 -20
  116. package/dist-lib/components/agents/AgentChatPanel.d.ts +0 -3
  117. package/dist-lib/components/agents/AgentChatPanel.impl.d.ts +0 -14
  118. package/dist-lib/components/agents/AgentConversationDrawer.d.ts +0 -11
  119. package/dist-lib/components/agents/AgentElicitForm.d.ts +0 -27
  120. package/dist-lib/components/agents/AgentPicker.d.ts +0 -8
  121. package/dist-lib/components/agents/transcript-runs.d.ts +0 -29
  122. package/dist-lib/components/chrome/AssociationTabs.d.ts +0 -9
  123. package/dist-lib/components/chrome/AuditMetaStrip.d.ts +0 -11
  124. package/dist-lib/components/chrome/Breadcrumbs.d.ts +0 -14
  125. package/dist-lib/components/chrome/HighlightsStrip.d.ts +0 -10
  126. package/dist-lib/components/chrome/PageHeader.d.ts +0 -16
  127. package/dist-lib/components/chrome/PageShell.d.ts +0 -7
  128. package/dist-lib/components/chrome/RecordHeader.d.ts +0 -17
  129. package/dist-lib/components/chrome/headerActionZone.d.ts +0 -27
  130. package/dist-lib/components/detail-layout/AssociatedBlock.d.ts +0 -20
  131. package/dist-lib/components/detail-layout/AssociatedToolbar.d.ts +0 -13
  132. package/dist-lib/components/detail-layout/ChildrenBlock.d.ts +0 -16
  133. package/dist-lib/components/detail-layout/ChildrenCards.d.ts +0 -2
  134. package/dist-lib/components/detail-layout/ChildrenList.d.ts +0 -2
  135. package/dist-lib/components/detail-layout/ChildrenTable.d.ts +0 -2
  136. package/dist-lib/components/detail-layout/ChildrenTimeline.d.ts +0 -2
  137. package/dist-lib/components/detail-layout/DetailAuditStrip.d.ts +0 -12
  138. package/dist-lib/components/detail-layout/DetailHighlights.d.ts +0 -14
  139. package/dist-lib/components/detail-layout/DraggableChildrenTable.d.ts +0 -16
  140. package/dist-lib/components/detail-layout/EditableChildrenTable.d.ts +0 -16
  141. package/dist-lib/components/detail-layout/ErrorSummary.d.ts +0 -11
  142. package/dist-lib/components/detail-layout/EvidenceBlock.d.ts +0 -6
  143. package/dist-lib/components/detail-layout/FieldRow.d.ts +0 -23
  144. package/dist-lib/components/detail-layout/FieldsBlock.d.ts +0 -8
  145. package/dist-lib/components/detail-layout/LayoutColumn.d.ts +0 -9
  146. package/dist-lib/components/detail-layout/LayoutRenderer.d.ts +0 -46
  147. package/dist-lib/components/detail-layout/LayoutRow.d.ts +0 -8
  148. package/dist-lib/components/detail-layout/LayoutTabs.d.ts +0 -8
  149. package/dist-lib/components/detail-layout/PropertiesBlock.d.ts +0 -8
  150. package/dist-lib/components/detail-layout/QuickAddForm.d.ts +0 -10
  151. package/dist-lib/components/detail-layout/SectionBlock.d.ts +0 -8
  152. package/dist-lib/components/detail-layout/StatusesBlock.d.ts +0 -8
  153. package/dist-lib/components/detail-layout/TimelineComposer.d.ts +0 -10
  154. package/dist-lib/components/detail-layout/blockMeta.d.ts +0 -5
  155. package/dist-lib/components/detail-layout/index.d.ts +0 -21
  156. package/dist-lib/components/detail-layout/useManualColumnResize.d.ts +0 -25
  157. package/dist-lib/components/detail-layout/useQuickAdd.d.ts +0 -16
  158. package/dist-lib/components/detail-layout/widgets/EntityScorecardWidget.d.ts +0 -2
  159. package/dist-lib/components/detail-layout/widgets/JsonDiffWidget.d.ts +0 -2
  160. package/dist-lib/components/detail-layout/widgets/MonacoJson.d.ts +0 -9
  161. package/dist-lib/components/detail-layout/widgets/WidgetHost.d.ts +0 -9
  162. package/dist-lib/components/detail-layout/widgets/builtins.d.ts +0 -1
  163. package/dist-lib/components/detail-layout/widgets/canonicalizeJson.d.ts +0 -1
  164. package/dist-lib/components/detail-layout/widgets/monacoBootstrap.d.ts +0 -1
  165. package/dist-lib/components/detail-layout/widgets/registry.d.ts +0 -14
  166. package/dist-lib/components/fields/BoolField.d.ts +0 -2
  167. package/dist-lib/components/fields/EmailField.d.ts +0 -2
  168. package/dist-lib/components/fields/EnumField.d.ts +0 -2
  169. package/dist-lib/components/fields/IntArrayField.d.ts +0 -2
  170. package/dist-lib/components/fields/JsonEditor.d.ts +0 -10
  171. package/dist-lib/components/fields/JsonField.d.ts +0 -3
  172. package/dist-lib/components/fields/MultilangArrayField.d.ts +0 -2
  173. package/dist-lib/components/fields/MultilangField.d.ts +0 -2
  174. package/dist-lib/components/fields/MultilangTextField.d.ts +0 -2
  175. package/dist-lib/components/fields/NumberField.d.ts +0 -2
  176. package/dist-lib/components/fields/PasswordField.d.ts +0 -2
  177. package/dist-lib/components/fields/PhoneField.d.ts +0 -2
  178. package/dist-lib/components/fields/RefCombobox.d.ts +0 -45
  179. package/dist-lib/components/fields/RefField.d.ts +0 -2
  180. package/dist-lib/components/fields/RichTextField.d.ts +0 -2
  181. package/dist-lib/components/fields/SecretField.d.ts +0 -2
  182. package/dist-lib/components/fields/StringArrayField.d.ts +0 -2
  183. package/dist-lib/components/fields/StringField.d.ts +0 -2
  184. package/dist-lib/components/fields/StructureField.d.ts +0 -2
  185. package/dist-lib/components/fields/TextField.d.ts +0 -2
  186. package/dist-lib/components/fields/TimestampField.d.ts +0 -2
  187. package/dist-lib/components/fields/UrlField.d.ts +0 -2
  188. package/dist-lib/components/fields/cells/factories/badge.d.ts +0 -2
  189. package/dist-lib/components/fields/cells/factories/boolPill.d.ts +0 -2
  190. package/dist-lib/components/fields/cells/factories/code.d.ts +0 -2
  191. package/dist-lib/components/fields/cells/factories/date.d.ts +0 -2
  192. package/dist-lib/components/fields/cells/factories/email.d.ts +0 -2
  193. package/dist-lib/components/fields/cells/factories/emptyCell.d.ts +0 -2
  194. package/dist-lib/components/fields/cells/factories/host-icons.d.ts +0 -17
  195. package/dist-lib/components/fields/cells/factories/json.d.ts +0 -2
  196. package/dist-lib/components/fields/cells/factories/link.d.ts +0 -2
  197. package/dist-lib/components/fields/cells/factories/markdown.d.ts +0 -2
  198. package/dist-lib/components/fields/cells/factories/markdownPreview.d.ts +0 -9
  199. package/dist-lib/components/fields/cells/factories/money.d.ts +0 -2
  200. package/dist-lib/components/fields/cells/factories/multilangInline.d.ts +0 -2
  201. package/dist-lib/components/fields/cells/factories/nextRun.d.ts +0 -2
  202. package/dist-lib/components/fields/cells/factories/number.d.ts +0 -2
  203. package/dist-lib/components/fields/cells/factories/passwordMask.d.ts +0 -2
  204. package/dist-lib/components/fields/cells/factories/phone.d.ts +0 -2
  205. package/dist-lib/components/fields/cells/factories/refLink.d.ts +0 -2
  206. package/dist-lib/components/fields/cells/factories/richTextPreview.d.ts +0 -2
  207. package/dist-lib/components/fields/cells/factories/statusPill.d.ts +0 -2
  208. package/dist-lib/components/fields/cells/factories/tagList.d.ts +0 -2
  209. package/dist-lib/components/fields/cells/factories/text.d.ts +0 -2
  210. package/dist-lib/components/fields/cells/factories/timestamp.d.ts +0 -3
  211. package/dist-lib/components/fields/cells/factories/url-helpers.d.ts +0 -12
  212. package/dist-lib/components/fields/cells/factories/url.d.ts +0 -2
  213. package/dist-lib/components/fields/cells/registry.d.ts +0 -21
  214. package/dist-lib/components/fields/index.d.ts +0 -28
  215. package/dist-lib/components/fields/langMap.d.ts +0 -2
  216. package/dist-lib/components/fields/secretValue.d.ts +0 -2
  217. package/dist-lib/components/file-widgets/CircleImage.d.ts +0 -2
  218. package/dist-lib/components/file-widgets/DocumentCard.d.ts +0 -2
  219. package/dist-lib/components/file-widgets/FileList.d.ts +0 -2
  220. package/dist-lib/components/file-widgets/Grid.d.ts +0 -2
  221. package/dist-lib/components/file-widgets/GridLazy.d.ts +0 -2
  222. package/dist-lib/components/file-widgets/ImageWidget.d.ts +0 -12
  223. package/dist-lib/components/file-widgets/LabeledSlots.d.ts +0 -2
  224. package/dist-lib/components/file-widgets/SquareImage.d.ts +0 -2
  225. package/dist-lib/components/file-widgets/UnknownFileWidget.d.ts +0 -3
  226. package/dist-lib/components/file-widgets/UploadFailureText.d.ts +0 -4
  227. package/dist-lib/components/file-widgets/WideBanner.d.ts +0 -2
  228. package/dist-lib/components/file-widgets/builtins.d.ts +0 -1
  229. package/dist-lib/components/file-widgets/cropper.d.ts +0 -14
  230. package/dist-lib/components/file-widgets/draft-scope.d.ts +0 -22
  231. package/dist-lib/components/file-widgets/helpers.d.ts +0 -15
  232. package/dist-lib/components/file-widgets/host.d.ts +0 -28
  233. package/dist-lib/components/file-widgets/index.d.ts +0 -16
  234. package/dist-lib/components/file-widgets/payload.d.ts +0 -21
  235. package/dist-lib/components/file-widgets/registry.d.ts +0 -5
  236. package/dist-lib/components/file-widgets/types.d.ts +0 -17
  237. package/dist-lib/components/file-widgets/upload.d.ts +0 -45
  238. package/dist-lib/components/file-widgets/useEmbedFileSrc.d.ts +0 -42
  239. package/dist-lib/components/file-widgets/value.d.ts +0 -4
  240. package/dist-lib/components/filters/FilterChips.d.ts +0 -14
  241. package/dist-lib/components/filters/FilterDrawer.d.ts +0 -32
  242. package/dist-lib/components/filters/filter-op-label.d.ts +0 -3
  243. package/dist-lib/components/layout/CommandPalette.d.ts +0 -21
  244. package/dist-lib/components/layout/DirtyTabsCloseDialog.d.ts +0 -9
  245. package/dist-lib/components/layout/ImpersonationBanner.d.ts +0 -11
  246. package/dist-lib/components/layout/ImpersonationFrame.d.ts +0 -11
  247. package/dist-lib/components/layout/ImpersonationStartModal.d.ts +0 -22
  248. package/dist-lib/components/layout/Layout.d.ts +0 -6
  249. package/dist-lib/components/layout/Rail.d.ts +0 -22
  250. package/dist-lib/components/layout/Sidebar.d.ts +0 -12
  251. package/dist-lib/components/layout/TabStrip.d.ts +0 -6
  252. package/dist-lib/components/layout/TenantChip.d.ts +0 -26
  253. package/dist-lib/components/layout/TopBar.d.ts +0 -22
  254. package/dist-lib/components/layout/tab-close.d.ts +0 -13
  255. package/dist-lib/components/list/ColumnPicker.d.ts +0 -20
  256. package/dist-lib/components/list/InlineEditCell.d.ts +0 -15
  257. package/dist-lib/components/list/PeekFieldCell.d.ts +0 -16
  258. package/dist-lib/components/list/QuickPeek.d.ts +0 -59
  259. package/dist-lib/components/list/ViewSwitcher.d.ts +0 -24
  260. package/dist-lib/components/list/peekDraftStore.d.ts +0 -6
  261. package/dist-lib/components/pages/AdminCatalogPage.d.ts +0 -1
  262. package/dist-lib/components/pages/DocumentsMenu.d.ts +0 -21
  263. package/dist-lib/components/pages/ExportMenu.d.ts +0 -30
  264. package/dist-lib/components/pages/NotFoundPage.d.ts +0 -1
  265. package/dist-lib/components/pages/RecordDocumentsPanel.d.ts +0 -41
  266. package/dist-lib/components/pages/SSOCallbackPage.d.ts +0 -1
  267. package/dist-lib/components/pages/SmartDetailPage.d.ts +0 -2
  268. package/dist-lib/components/pages/SmartDetailPage.impl.d.ts +0 -4
  269. package/dist-lib/components/pages/SmartListPage.d.ts +0 -2
  270. package/dist-lib/components/pages/SmartListPage.impl.d.ts +0 -4
  271. package/dist-lib/components/pages/SmartRecordListPage.d.ts +0 -2
  272. package/dist-lib/components/pages/SmartRecordListPage.impl.d.ts +0 -4
  273. package/dist-lib/components/pages/auth/AuthShell.d.ts +0 -18
  274. package/dist-lib/components/pages/auth/Forgot.d.ts +0 -1
  275. package/dist-lib/components/pages/auth/Reset.d.ts +0 -1
  276. package/dist-lib/components/pages/auth/SignIn.d.ts +0 -1
  277. package/dist-lib/components/pages/auth/SignUp.d.ts +0 -1
  278. package/dist-lib/components/pages/auth/TwoFA.d.ts +0 -1
  279. package/dist-lib/components/pages/auth/icons.d.ts +0 -6
  280. package/dist-lib/components/pages/exportRequest.d.ts +0 -69
  281. package/dist-lib/components/pages/list/DataCell.d.ts +0 -4
  282. package/dist-lib/components/pages/list/DeleteViewDialog.d.ts +0 -8
  283. package/dist-lib/components/pages/list/ListCardRow.d.ts +0 -39
  284. package/dist-lib/components/pages/list/ListCardsBody.d.ts +0 -33
  285. package/dist-lib/components/pages/list/ListFloatbar.d.ts +0 -29
  286. package/dist-lib/components/pages/list/ListFooter.d.ts +0 -26
  287. package/dist-lib/components/pages/list/ListHeader.d.ts +0 -26
  288. package/dist-lib/components/pages/list/ListNoRows.d.ts +0 -31
  289. package/dist-lib/components/pages/list/ListTable.d.ts +0 -33
  290. package/dist-lib/components/pages/list/ListTableRow.d.ts +0 -17
  291. package/dist-lib/components/pages/list/ListToolbar.d.ts +0 -46
  292. package/dist-lib/components/pages/list/ListUrlBanner.d.ts +0 -10
  293. package/dist-lib/components/pages/list/RowActionsCell.d.ts +0 -34
  294. package/dist-lib/components/pages/list/RowContextMenu.d.ts +0 -28
  295. package/dist-lib/components/pages/list/SaveViewDialog.d.ts +0 -10
  296. package/dist-lib/components/pages/list/SortHeaderMenu.d.ts +0 -14
  297. package/dist-lib/components/pages/list/cardProjection.d.ts +0 -67
  298. package/dist-lib/components/pages/list/column-sizing.d.ts +0 -14
  299. package/dist-lib/components/pages/list/columns.d.ts +0 -46
  300. package/dist-lib/components/pages/list/filter-meta.d.ts +0 -25
  301. package/dist-lib/components/pages/list/page-size.d.ts +0 -3
  302. package/dist-lib/components/pages/list/sortable-header.d.ts +0 -2
  303. package/dist-lib/components/pages/list/table-features.d.ts +0 -14
  304. package/dist-lib/components/pages/list/use-filter-value-labels.d.ts +0 -24
  305. package/dist-lib/components/pages/list/useActiveView.d.ts +0 -45
  306. package/dist-lib/components/pages/list/useHeaderReorder.d.ts +0 -26
  307. package/dist-lib/components/pages/list/useListColumnLayout.d.ts +0 -38
  308. package/dist-lib/components/pages/list/useListQuery.d.ts +0 -67
  309. package/dist-lib/components/pages/list/useListRowInteraction.d.ts +0 -61
  310. package/dist-lib/components/pages/list/useListSelection.d.ts +0 -31
  311. package/dist-lib/components/pages/list/useListSort.d.ts +0 -46
  312. package/dist-lib/components/pages/list/useListViews.d.ts +0 -57
  313. package/dist-lib/components/pages/list/useRowMenu.d.ts +0 -46
  314. package/dist-lib/components/pages/profile/Preferences.d.ts +0 -1
  315. package/dist-lib/components/pages/profile/Profile.d.ts +0 -7
  316. package/dist-lib/components/pages/tenant-params/TenantParamsPage.d.ts +0 -2
  317. package/dist-lib/components/params/ParamsBlock.d.ts +0 -13
  318. package/dist-lib/components/params/param-editors.d.ts +0 -20
  319. package/dist-lib/components/primitives/Avatar.d.ts +0 -6
  320. package/dist-lib/components/primitives/BoolToggle.d.ts +0 -7
  321. package/dist-lib/components/primitives/BrandGlyph.d.ts +0 -8
  322. package/dist-lib/components/primitives/BrandLogo.d.ts +0 -12
  323. package/dist-lib/components/primitives/Btn.d.ts +0 -19
  324. package/dist-lib/components/primitives/Check.d.ts +0 -7
  325. package/dist-lib/components/primitives/Chip.d.ts +0 -9
  326. package/dist-lib/components/primitives/ClassifiedFieldLocked.d.ts +0 -9
  327. package/dist-lib/components/primitives/Dropdown.d.ts +0 -20
  328. package/dist-lib/components/primitives/Fields.d.ts +0 -109
  329. package/dist-lib/components/primitives/HoverCard.d.ts +0 -15
  330. package/dist-lib/components/primitives/IconBtn.d.ts +0 -11
  331. package/dist-lib/components/primitives/Icons.d.ts +0 -136
  332. package/dist-lib/components/primitives/Kbd.d.ts +0 -4
  333. package/dist-lib/components/primitives/MenuItem.d.ts +0 -14
  334. package/dist-lib/components/primitives/Pill.d.ts +0 -11
  335. package/dist-lib/components/primitives/RecordIdBadge.d.ts +0 -8
  336. package/dist-lib/components/primitives/RowField.d.ts +0 -10
  337. package/dist-lib/components/primitives/SectionCard.d.ts +0 -24
  338. package/dist-lib/components/primitives/Spinner.d.ts +0 -3
  339. package/dist-lib/components/primitives/Tooltip.d.ts +0 -34
  340. package/dist-lib/components/primitives/dataTableStyles.d.ts +0 -4
  341. package/dist-lib/components/primitives/index.d.ts +0 -37
  342. package/dist-lib/components/shared/ChangePasswordDialog.d.ts +0 -9
  343. package/dist-lib/components/shared/ConfirmDialog.d.ts +0 -11
  344. package/dist-lib/components/shared/CopyButton.d.ts +0 -8
  345. package/dist-lib/components/shared/DynamicIcon.d.ts +0 -20
  346. package/dist-lib/components/shared/EmptyState.d.ts +0 -9
  347. package/dist-lib/components/shared/ErrorBoundary.d.ts +0 -17
  348. package/dist-lib/components/shared/LoadingSkeleton.d.ts +0 -6
  349. package/dist-lib/components/shared/LucideIcon.d.ts +0 -16
  350. package/dist-lib/components/shared/Markdown.d.ts +0 -3
  351. package/dist-lib/components/shared/MarkdownRenderer.d.ts +0 -11
  352. package/dist-lib/components/shared/RefreshControl.d.ts +0 -25
  353. package/dist-lib/components/shared/StatusGroupsDisplay.d.ts +0 -11
  354. package/dist-lib/components/shared/StatusStepper.d.ts +0 -13
  355. package/dist-lib/components/shared/toast/DeclarionToast.d.ts +0 -31
  356. package/dist-lib/components/shared/useOwnRefresh.d.ts +0 -9
  357. package/dist-lib/embed/EmbedAuthBootstrap.d.ts +0 -8
  358. package/dist-lib/embed/EmbedContext.d.ts +0 -50
  359. package/dist-lib/embed/EmbedDirtyReporter.d.ts +0 -10
  360. package/dist-lib/embed/EmbedHistoryTracker.d.ts +0 -1
  361. package/dist-lib/embed/EmbedLocationReporter.d.ts +0 -8
  362. package/dist-lib/embed/EmbedResizeReporter.d.ts +0 -6
  363. package/dist-lib/embed/EmbedUnsavedGuard.d.ts +0 -7
  364. package/dist-lib/embed/embed-dirty.d.ts +0 -24
  365. package/dist-lib/embed/embed-history.d.ts +0 -19
  366. package/dist-lib/embed/embed-nav-guard.d.ts +0 -20
  367. package/dist-lib/embed/file-src.d.ts +0 -63
  368. package/dist-lib/embed/handshake.d.ts +0 -57
  369. package/dist-lib/embed/index.d.ts +0 -19
  370. package/dist-lib/embed/params.d.ts +0 -75
  371. package/dist-lib/embed/protocol.d.ts +0 -165
  372. package/dist-lib/embed/screen-location.d.ts +0 -50
  373. package/dist-lib/embed/theme.d.ts +0 -34
  374. package/dist-lib/embed/token.d.ts +0 -57
  375. package/dist-lib/embed/useEmbedNavigate.d.ts +0 -48
  376. package/dist-lib/embed/useGlobalLinkInterceptor.d.ts +0 -66
  377. package/dist-lib/failure-BT54OLHy.js +0 -158
  378. package/dist-lib/format-count-DLFCdtME.js +0 -1771
  379. package/dist-lib/hooks/useActionData.d.ts +0 -61
  380. package/dist-lib/hooks/useAgentConversation.d.ts +0 -24
  381. package/dist-lib/hooks/useAllEntityData.d.ts +0 -16
  382. package/dist-lib/hooks/useAssociatedData.d.ts +0 -10
  383. package/dist-lib/hooks/useAuth.d.ts +0 -22
  384. package/dist-lib/hooks/useBranding.d.ts +0 -8
  385. package/dist-lib/hooks/useBrandingChrome.d.ts +0 -59
  386. package/dist-lib/hooks/useChildrenData.d.ts +0 -3
  387. package/dist-lib/hooks/useColumns.d.ts +0 -13
  388. package/dist-lib/hooks/useCurrentScreen.d.ts +0 -34
  389. package/dist-lib/hooks/useCursorEntityData.d.ts +0 -79
  390. package/dist-lib/hooks/useDebounce.d.ts +0 -1
  391. package/dist-lib/hooks/useEntity.d.ts +0 -2
  392. package/dist-lib/hooks/useEntityData.d.ts +0 -41
  393. package/dist-lib/hooks/useFilters.d.ts +0 -14
  394. package/dist-lib/hooks/useImpersonation.d.ts +0 -23
  395. package/dist-lib/hooks/useLanguage.d.ts +0 -4
  396. package/dist-lib/hooks/useLiveObject.d.ts +0 -9
  397. package/dist-lib/hooks/useLongPress.d.ts +0 -29
  398. package/dist-lib/hooks/useMutations.d.ts +0 -13
  399. package/dist-lib/hooks/useObject.d.ts +0 -11
  400. package/dist-lib/hooks/useObjectStatus.d.ts +0 -5
  401. package/dist-lib/hooks/usePageState.d.ts +0 -32
  402. package/dist-lib/hooks/usePageStateRuntime.d.ts +0 -27
  403. package/dist-lib/hooks/usePageStateTtl.d.ts +0 -11
  404. package/dist-lib/hooks/useParams.d.ts +0 -49
  405. package/dist-lib/hooks/useProperties.d.ts +0 -5
  406. package/dist-lib/hooks/useRealtimeThresholds.d.ts +0 -1
  407. package/dist-lib/hooks/useRegisterScreenTab.d.ts +0 -11
  408. package/dist-lib/hooks/useResponsiveMode.d.ts +0 -27
  409. package/dist-lib/hooks/useSSE.d.ts +0 -31
  410. package/dist-lib/hooks/useSchema.d.ts +0 -1
  411. package/dist-lib/hooks/useScreen.d.ts +0 -2
  412. package/dist-lib/hooks/useScreenBack.d.ts +0 -21
  413. package/dist-lib/hooks/useScreenTab.d.ts +0 -10
  414. package/dist-lib/hooks/useTabNavigate.d.ts +0 -34
  415. package/dist-lib/hooks/useTabSearchMirror.d.ts +0 -1
  416. package/dist-lib/hooks/useTabTitle.d.ts +0 -2
  417. package/dist-lib/hooks/useText.d.ts +0 -3
  418. package/dist-lib/hooks/useTimelineData.d.ts +0 -10
  419. package/dist-lib/hooks/useVersionWatcher.d.ts +0 -30
  420. package/dist-lib/hooks/useViews.d.ts +0 -26
  421. package/dist-lib/lib/action-dispatch.d.ts +0 -8
  422. package/dist-lib/lib/actions.d.ts +0 -254
  423. package/dist-lib/lib/anchor.d.ts +0 -36
  424. package/dist-lib/lib/brand-tokens.d.ts +0 -43
  425. package/dist-lib/lib/branding.d.ts +0 -20
  426. package/dist-lib/lib/canonical-url.d.ts +0 -27
  427. package/dist-lib/lib/capabilityPrefetch.d.ts +0 -6
  428. package/dist-lib/lib/child-config.d.ts +0 -24
  429. package/dist-lib/lib/children-validation.d.ts +0 -5
  430. package/dist-lib/lib/decimal-text.d.ts +0 -1
  431. package/dist-lib/lib/display-value.d.ts +0 -1
  432. package/dist-lib/lib/document-templates.d.ts +0 -11
  433. package/dist-lib/lib/download.d.ts +0 -21
  434. package/dist-lib/lib/evidence-verdict.d.ts +0 -11
  435. package/dist-lib/lib/failure.d.ts +0 -2
  436. package/dist-lib/lib/field-classification.d.ts +0 -61
  437. package/dist-lib/lib/field-regions.d.ts +0 -8
  438. package/dist-lib/lib/filter-evaluator.d.ts +0 -16
  439. package/dist-lib/lib/filters.d.ts +0 -93
  440. package/dist-lib/lib/format-count.d.ts +0 -41
  441. package/dist-lib/lib/html-state.d.ts +0 -11
  442. package/dist-lib/lib/language.d.ts +0 -19
  443. package/dist-lib/lib/longPressGesture.d.ts +0 -55
  444. package/dist-lib/lib/mass-edit.d.ts +0 -32
  445. package/dist-lib/lib/page-inset.d.ts +0 -3
  446. package/dist-lib/lib/quick-add.d.ts +0 -2
  447. package/dist-lib/lib/realtime-query-keys.d.ts +0 -22
  448. package/dist-lib/lib/realtime-reconcile.d.ts +0 -33
  449. package/dist-lib/lib/realtime-resync.d.ts +0 -23
  450. package/dist-lib/lib/record-documents-key.d.ts +0 -1
  451. package/dist-lib/lib/rich-text.d.ts +0 -14
  452. package/dist-lib/lib/rowClickGesture.d.ts +0 -26
  453. package/dist-lib/lib/safe-url.d.ts +0 -15
  454. package/dist-lib/lib/schema-routing.d.ts +0 -3
  455. package/dist-lib/lib/screen-back.d.ts +0 -70
  456. package/dist-lib/lib/scroll-restoration.d.ts +0 -90
  457. package/dist-lib/lib/size-value.d.ts +0 -16
  458. package/dist-lib/lib/sort.d.ts +0 -72
  459. package/dist-lib/lib/timestamp.d.ts +0 -53
  460. package/dist-lib/lib/toast.d.ts +0 -49
  461. package/dist-lib/lib/ui-actions.d.ts +0 -12
  462. package/dist-lib/lib/utils.d.ts +0 -9
  463. package/dist-lib/lib/variants.d.ts +0 -7
  464. package/dist-lib/lib/versionTracker.d.ts +0 -72
  465. package/dist-lib/lib/viewport-category.d.ts +0 -44
  466. package/dist-lib/main.d.ts +0 -1
  467. package/dist-lib/registry-CRPxNbkk.js +0 -1956
  468. package/dist-lib/safe-url-oSJw5pzO.js +0 -34
  469. package/dist-lib/stores/auth.d.ts +0 -16
  470. package/dist-lib/stores/list-layout.d.ts +0 -85
  471. package/dist-lib/stores/page-state.d.ts +0 -61
  472. package/dist-lib/stores/preferences.d.ts +0 -37
  473. package/dist-lib/stores/realtime.d.ts +0 -96
  474. package/dist-lib/stores/screen-registry.d.ts +0 -17
  475. package/dist-lib/stores/tabs.d.ts +0 -73
  476. package/dist-lib/types/api.d.ts +0 -580
  477. package/dist-lib/types/fieldType.d.ts +0 -2
  478. package/dist-lib/types/files.d.ts +0 -79
  479. package/dist-lib/types/ordmap.d.ts +0 -39
  480. package/dist-lib/types/schema.d.ts +0 -1089
  481. package/dist-lib/useCurrentScreen-BPq7HMF1.js +0 -7840
  482. package/dist-lib/useListQuery-CG1WM4cv.js +0 -103
  483. package/dist-lib/useOwnRefresh-C18iWRgr.js +0 -1167
  484. package/dist-lib/useProperties-C35JrjwQ.js +0 -83
  485. package/dist-lib/useTabSearchMirror-DKktWWLB.js +0 -175
  486. package/dist-lib/useText-BFDCTUSo.js +0 -952
  487. package/dist-lib/vite/fingerprint-plugin.d.ts +0 -44
@@ -0,0 +1,9 @@
1
+ //#region src/lib/page-inset.ts
2
+ function e(e) {
3
+ return {
4
+ paddingLeft: `calc(${e}px + var(--safe-area-left))`,
5
+ paddingRight: `calc(${e}px + var(--safe-area-right))`
6
+ };
7
+ }
8
+ //#endregion
9
+ export { e as t };
@@ -0,0 +1,124 @@
1
+ import { create as e } from "zustand";
2
+ //#region src/stores/page-state.ts
3
+ var t = 18e5, n = null;
4
+ function r(e) {
5
+ n = e;
6
+ }
7
+ function i(e) {
8
+ if (e && n) for (let t of e.queryKeys) n.removeQueries({
9
+ queryKey: t,
10
+ exact: !0
11
+ });
12
+ }
13
+ function a(e, t) {
14
+ let n = e[t];
15
+ if (!n) return e;
16
+ i(n);
17
+ let r = { ...e };
18
+ return delete r[t], r;
19
+ }
20
+ function o(e, t) {
21
+ let n = e;
22
+ for (; Object.keys(n).length > 64;) {
23
+ let e = null, r = Infinity;
24
+ for (let [i, a] of Object.entries(n)) i !== t && a.lastActiveAt < r && (r = a.lastActiveAt, e = i);
25
+ if (e === null) break;
26
+ n = a(n, e);
27
+ }
28
+ return n;
29
+ }
30
+ var s = e((e, n) => ({
31
+ entries: {},
32
+ ttlMs: t,
33
+ setTtl: (t) => {
34
+ if (t <= 0) {
35
+ let { entries: r } = n();
36
+ for (let e of Object.keys(r)) i(r[e]);
37
+ e({
38
+ ttlMs: t,
39
+ entries: {}
40
+ });
41
+ } else e({ ttlMs: t });
42
+ },
43
+ set: (t, r, i) => {
44
+ let a = n();
45
+ if (a.ttlMs <= 0) return;
46
+ let s = Date.now(), c = a.entries[t], l = c ? {
47
+ ...c,
48
+ bag: {
49
+ ...c.bag,
50
+ [r]: i
51
+ },
52
+ lastActiveAt: s
53
+ } : {
54
+ bag: { [r]: i },
55
+ lastActiveAt: s,
56
+ queryKeys: []
57
+ };
58
+ e({ entries: o({
59
+ ...a.entries,
60
+ [t]: l
61
+ }, t) });
62
+ },
63
+ read: (e, t) => {
64
+ let r = n();
65
+ if (!(r.ttlMs <= 0)) return r.entries[e]?.bag[t];
66
+ },
67
+ touch: (t) => {
68
+ let r = n();
69
+ if (r.ttlMs <= 0) return;
70
+ let i = r.entries[t];
71
+ i && e({ entries: {
72
+ ...r.entries,
73
+ [t]: {
74
+ ...i,
75
+ lastActiveAt: Date.now()
76
+ }
77
+ } });
78
+ },
79
+ registerQueryKey: (t, r) => {
80
+ let i = n();
81
+ if (i.ttlMs <= 0) return;
82
+ let a = Date.now(), s = i.entries[t], l = s?.queryKeys.some((e) => c(e, r));
83
+ if (s && l) return;
84
+ let u = s ? {
85
+ ...s,
86
+ queryKeys: [...s.queryKeys, r],
87
+ lastActiveAt: a
88
+ } : {
89
+ bag: {},
90
+ lastActiveAt: a,
91
+ queryKeys: [r]
92
+ };
93
+ e({ entries: o({
94
+ ...i.entries,
95
+ [t]: u
96
+ }, t) });
97
+ },
98
+ kill: (t) => {
99
+ let r = n(), i = a(r.entries, t);
100
+ i !== r.entries && e({ entries: i });
101
+ },
102
+ sweep: (t) => {
103
+ let { ttlMs: r, entries: i } = n(), o = i;
104
+ for (let [e, n] of Object.entries(i)) (r <= 0 || t - n.lastActiveAt > r) && (o = a(o, e));
105
+ o !== i && e({ entries: o });
106
+ },
107
+ clear: () => {
108
+ let { entries: t } = n();
109
+ if (Object.keys(t).length !== 0) {
110
+ for (let e of Object.keys(t)) i(t[e]);
111
+ e({ entries: {} });
112
+ }
113
+ }
114
+ }));
115
+ function c(e, t) {
116
+ if (e === t) return !0;
117
+ try {
118
+ return JSON.stringify(e) === JSON.stringify(t);
119
+ } catch {
120
+ return !1;
121
+ }
122
+ }
123
+ //#endregion
124
+ export { r as n, s as r, t };
@@ -0,0 +1,201 @@
1
+ import { Nt as e, wn as t, wt as n } from "./useCurrentScreen--UovgvRj.js";
2
+ import { t as r } from "./Icons-lt-7lhYR.js";
3
+ import { r as i } from "./CopyButton-C0iEvaT1.js";
4
+ import { Q as a, V as o, f as s } from "./PropertyGridEditor-BTjscqfz.js";
5
+ import { useState as c } from "react";
6
+ import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
7
+ //#region src/components/params/param-editors.tsx
8
+ var f = {
9
+ object: ["params.source.object", "Record"],
10
+ user: ["params.source.user", "User"],
11
+ role: ["params.source.role", "Role"],
12
+ tenant: ["params.source.tenant", "Tenant"],
13
+ env: ["params.source.env", "Environment"],
14
+ yaml: ["params.source.yaml", "Default"],
15
+ none: ["params.source.none", "Not set"]
16
+ };
17
+ function p(e, t) {
18
+ let n = f[t];
19
+ return n ? e(n[0], n[1]) : t;
20
+ }
21
+ function m({ text: e }) {
22
+ return /* @__PURE__ */ d("div", {
23
+ style: {
24
+ padding: "8px 10px",
25
+ background: "var(--danger-soft)",
26
+ borderRadius: 6,
27
+ fontSize: 11.5,
28
+ color: "var(--danger)",
29
+ display: "flex",
30
+ gap: 6
31
+ },
32
+ children: [/* @__PURE__ */ u(r.info, { size: 13 }), /* @__PURE__ */ u("span", { children: e })]
33
+ });
34
+ }
35
+ function h({ type: r, value: i, structure: a }) {
36
+ let o = n(), s;
37
+ if (i == null) s = "—";
38
+ else if (r === "bool") s = i ? o("params.value.on", "On") : o("params.value.off", "Off");
39
+ else if (r === "multilang" || r === "multilang_text") s = o(i) || "—";
40
+ else if (r === "multilang_array" && Array.isArray(i)) s = i.map((e) => o(e)).join(", ") || "—";
41
+ else if (r === "json" || r === "structure") {
42
+ if (i && typeof i == "object") {
43
+ let t = Array.isArray(i) ? i.length : Object.keys(i).length;
44
+ s = a || `{${e(o, "params.value.keys", t, {
45
+ one: "{count} key",
46
+ other: "{count} keys"
47
+ })}}`;
48
+ } else s = t(i);
49
+ } else s = t(i);
50
+ return /* @__PURE__ */ u("span", {
51
+ className: "mono",
52
+ style: {
53
+ fontSize: 11.5,
54
+ color: "var(--text-2)",
55
+ maxWidth: 180,
56
+ overflow: "hidden",
57
+ textOverflow: "ellipsis",
58
+ whiteSpace: "nowrap"
59
+ },
60
+ children: s
61
+ });
62
+ }
63
+ function g({ param: e, current: t, error: s, onCancel: f, onSave: p }) {
64
+ let h = n(), [g, b] = c(() => v(e, t)), [x, S] = c(!1), [C, w] = c(null);
65
+ async function T() {
66
+ w(null);
67
+ let e;
68
+ try {
69
+ e = y(h, g);
70
+ } catch (e) {
71
+ w(String(e instanceof Error ? e.message : e));
72
+ return;
73
+ }
74
+ S(!0);
75
+ try {
76
+ await p(e);
77
+ } finally {
78
+ S(!1);
79
+ }
80
+ }
81
+ return /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u("div", {
82
+ onClick: f,
83
+ style: {
84
+ position: "fixed",
85
+ inset: 0,
86
+ background: "var(--scrim)",
87
+ zIndex: 60
88
+ }
89
+ }), /* @__PURE__ */ d("div", {
90
+ "data-testid": "param-edit-dialog",
91
+ style: {
92
+ position: "fixed",
93
+ top: "50%",
94
+ left: "50%",
95
+ transform: "translate(-50%, -50%)",
96
+ zIndex: 61,
97
+ width: 440,
98
+ maxWidth: "calc(100vw - 24px)",
99
+ background: "var(--surface)",
100
+ borderRadius: 12,
101
+ boxShadow: "var(--shadow-lg)",
102
+ border: "1px solid var(--border)",
103
+ overflow: "hidden"
104
+ },
105
+ children: [
106
+ /* @__PURE__ */ d("div", {
107
+ style: { padding: "14px 18px 0" },
108
+ children: [/* @__PURE__ */ u("div", {
109
+ style: {
110
+ fontSize: 14,
111
+ fontWeight: 600
112
+ },
113
+ children: h(e.name) || e.code
114
+ }), e.description && /* @__PURE__ */ u("div", {
115
+ style: {
116
+ fontSize: 11.5,
117
+ color: "var(--text-3)",
118
+ marginTop: 2
119
+ },
120
+ children: h(e.description)
121
+ })]
122
+ }),
123
+ /* @__PURE__ */ d("div", {
124
+ style: {
125
+ padding: "12px 18px 16px",
126
+ display: "flex",
127
+ flexDirection: "column",
128
+ gap: 10
129
+ },
130
+ children: [
131
+ /* @__PURE__ */ u(o, { children: h("params.value", "Value") }),
132
+ /* @__PURE__ */ u(_, {
133
+ param: e,
134
+ value: g,
135
+ onChange: b
136
+ }),
137
+ (C || s) && /* @__PURE__ */ u(m, { text: C || s })
138
+ ]
139
+ }),
140
+ /* @__PURE__ */ d("div", {
141
+ style: {
142
+ padding: "10px 16px",
143
+ borderTop: "1px solid var(--divider)",
144
+ display: "flex",
145
+ gap: 8,
146
+ background: "var(--surface-2)"
147
+ },
148
+ children: [
149
+ /* @__PURE__ */ u("div", { style: { flex: 1 } }),
150
+ /* @__PURE__ */ u(i, {
151
+ onClick: f,
152
+ children: h("dialog.cancel", "Cancel")
153
+ }),
154
+ /* @__PURE__ */ u(i, {
155
+ kind: "primary",
156
+ icon: u(x ? a : r.check, { size: 13 }),
157
+ onClick: T,
158
+ disabled: x,
159
+ children: x ? h("dialog.saving", "Saving…") : h("dialog.save", "Save")
160
+ })
161
+ ]
162
+ })
163
+ ]
164
+ })] });
165
+ }
166
+ function _({ param: e, value: t, onChange: r }) {
167
+ let i = n(), a = {
168
+ type: e.type,
169
+ structure: e.structure,
170
+ values: e.values,
171
+ ref: e.ref
172
+ };
173
+ return /* @__PURE__ */ u(l, { children: s({
174
+ field: a,
175
+ fieldName: e.code,
176
+ value: t,
177
+ mode: "edit",
178
+ onChange: r,
179
+ t: i
180
+ }) });
181
+ }
182
+ function v(e, t) {
183
+ return e.type === "bool" ? t === !0 : e.type === "structure" ? t ?? {} : t ?? null;
184
+ }
185
+ function y(e, t) {
186
+ if (t == null) throw Error(e("params.value.required", "Enter a value."));
187
+ return t;
188
+ }
189
+ var b = /* @__PURE__ */ new Set([
190
+ "server",
191
+ "database",
192
+ "auth",
193
+ "sso",
194
+ "seeder"
195
+ ]);
196
+ function x(e) {
197
+ let t = e.scopes ?? [];
198
+ return t.length === 0 ? !b.has(e.category ?? "") : t.includes("tenant");
199
+ }
200
+ //#endregion
201
+ export { x as a, p as i, m as n, h as r, g as t };
@@ -0,0 +1,86 @@
1
+ import { D as e, O as t } from "./PropertyGridEditor-BTjscqfz.js";
2
+ import { d as n, f as r, u as i } from "./variants-CbAwl3Mn.js";
3
+ //#region src/components/file-widgets/payload.ts
4
+ function a(e) {
5
+ return !e || Array.isArray(e) ? null : e;
6
+ }
7
+ function o(e) {
8
+ return Array.isArray(e) ? e : [];
9
+ }
10
+ function s(e) {
11
+ return !e || Array.isArray(e) || typeof e != "object" ? {} : e;
12
+ }
13
+ function c(e, t) {
14
+ return e.mode === "array" ? o(t) : e.mode === "named_map" ? s(t) : a(t);
15
+ }
16
+ function l(e, t, n, r) {
17
+ let i = {
18
+ file_id: e.id,
19
+ filename: e.filename
20
+ };
21
+ return r && (i.slot = r), n && (i.position = t), e.metadata !== void 0 && (i.metadata = e.metadata), i;
22
+ }
23
+ function u(e, t) {
24
+ if (e.mode === "array") {
25
+ let e = o(t);
26
+ return e.length === 0 ? { clear: !0 } : { set: e.map((e, t) => l(e, t, !0)) };
27
+ }
28
+ if (e.mode === "named_map") {
29
+ let e = s(t), n = Object.entries(e).filter(([, e]) => e != null).map(([e, t]) => l(t, 0, !1, e));
30
+ return n.length === 0 ? { clear: !0 } : { set: n };
31
+ }
32
+ let n = a(t);
33
+ return n ? { set: [l(n, 0, !0)] } : { clear: !0 };
34
+ }
35
+ function d(e) {
36
+ return JSON.stringify(e);
37
+ }
38
+ function f(e) {
39
+ let { entity: t, formData: l, record: f, isNew: p } = e, h = {};
40
+ for (let e of t.files?.names() ?? []) {
41
+ if (!Object.prototype.hasOwnProperty.call(l, e)) continue;
42
+ let r = i(t, e);
43
+ if (!r) continue;
44
+ let m = c(r, l[e]);
45
+ if (p) {
46
+ if (r.mode === "array" ? o(m).length === 0 : r.mode === "named_map" ? Object.values(s(m)).every((e) => e == null) : a(m) == null) continue;
47
+ h[e] = u(r, m);
48
+ continue;
49
+ }
50
+ let g = c(r, f ? n(f, e) : null), _ = u(r, m), v = u(r, g);
51
+ d(_) !== d(v) && (h[e] = _);
52
+ }
53
+ let g = t.fields;
54
+ if (!g) return h;
55
+ for (let e of g.names()) {
56
+ let n = g.get(e)?.files;
57
+ if (!n || n.mode !== "rich_text_inline" || !Object.prototype.hasOwnProperty.call(l, e)) continue;
58
+ let i = m(n, l[e]);
59
+ if (p) {
60
+ if (i.clear) continue;
61
+ h[e] = i;
62
+ continue;
63
+ }
64
+ let a = m(n, f ? r({
65
+ ...t,
66
+ fields: g
67
+ }, f, e) : null);
68
+ d(i) !== d(a) && (h[e] = i);
69
+ }
70
+ return h;
71
+ }
72
+ function p(e) {
73
+ let t = [];
74
+ for (let n of Object.values(e)) for (let e of n.set ?? []) t.push(e.file_id);
75
+ return t;
76
+ }
77
+ function m(n, r) {
78
+ if (n.mode !== "rich_text_inline") return { clear: !0 };
79
+ let i = e(t(r));
80
+ return i.length === 0 ? { clear: !0 } : { set: i.map((e, t) => ({
81
+ file_id: e,
82
+ position: t
83
+ })) };
84
+ }
85
+ //#endregion
86
+ export { p as n, f as t };
@@ -1,7 +1,8 @@
1
- import { s as e } from "./DynamicIcon-DW5krHuX.js";
2
- import { Jn as t, Wn as n, gn as r, i, pn as a } from "./useCurrentScreen-BPq7HMF1.js";
3
- import { A as o, t as s } from "./useText-BFDCTUSo.js";
4
- import { t as c, u as l } from "./failure-BT54OLHy.js";
1
+ import { Q as e, Tn as t, ut as n, wt as r, xt as i } from "./useCurrentScreen--UovgvRj.js";
2
+ import { t as a } from "./Icons-lt-7lhYR.js";
3
+ import { r as o } from "./CopyButton-C0iEvaT1.js";
4
+ import { n as s, t as c } from "./MenuItem-CfkVXPvC.js";
5
+ import { n as l } from "./ActionRunner-DAxgnKB3.js";
5
6
  import { useMemo as u, useRef as d, useState as f } from "react";
6
7
  import { useQuery as p } from "@tanstack/react-query";
7
8
  import { Fragment as m, jsx as h, jsxs as g } from "react/jsx-runtime";
@@ -23,10 +24,10 @@ function y(e, t) {
23
24
  //#endregion
24
25
  //#region src/components/pages/DocumentsMenu.tsx
25
26
  var b = "document-templates-available";
26
- function x({ entityCode: o, scope: _, objectIds: y = [], viewState: x, selectedIds: T = [], capability: E, canManageTemplates: D = !1 }) {
27
- let O = s(), k = s("errors"), { run: A } = i(), j = d(null), [M, N] = f(!1), P = _ === "detail" ? !!E?.generate_one : !!E?.generate_many, F = D && !P, { data: I, isLoading: L, error: R } = p({
28
- queryKey: [b, o],
29
- queryFn: async () => (await l("document.templates.available", { entity: o })).result?.templates ?? [],
27
+ function x({ entityCode: t, scope: _, objectIds: y = [], viewState: x, selectedIds: T = [], capability: E, canManageTemplates: D = !1 }) {
28
+ let O = r(), k = r("errors"), { run: A } = l(), j = d(null), [M, N] = f(!1), P = _ === "detail" ? !!E?.generate_one : !!E?.generate_many, F = D && !P, { data: I, isLoading: L, error: R } = p({
29
+ queryKey: [b, t],
30
+ queryFn: async () => (await n("document.templates.available", { entity: t })).result?.templates ?? [],
30
31
  enabled: M || F,
31
32
  staleTime: 6e4
32
33
  }), z = L, B = u(() => (I ?? []).filter((e) => _ === "detail" ? e.input_mode === "one" || e.input_mode === "global" : e.input_mode === "many" || e.input_mode === "global"), [_, I]), V = F && B.length > 0, H = P || V;
@@ -51,82 +52,82 @@ function x({ entityCode: o, scope: _, objectIds: y = [], viewState: x, selectedI
51
52
  }
52
53
  return [];
53
54
  }
54
- function G(e, t, n) {
55
- let r = S(e), i = O(e.name) || e.code;
55
+ function G(e, t, r) {
56
+ let i = S(e), a = O(e.name) || e.code;
56
57
  N(!1), A({
57
- action: r,
58
- title: i,
59
- execute: (r) => {
60
- let i = {
58
+ action: i,
59
+ title: a,
60
+ execute: (i) => {
61
+ let a = {
61
62
  template_code: e.code,
62
63
  template_source: e.source,
63
- output_format: n
64
+ output_format: r
64
65
  };
65
- return Object.keys(r).length > 0 && (i.params = r), "objectIds" in t && (i.object_ids = t.objectIds), "query" in t && (i.query = {
66
+ return Object.keys(i).length > 0 && (a.params = i), "objectIds" in t && (a.object_ids = t.objectIds), "query" in t && (a.query = {
66
67
  scope: "current_view",
67
68
  query: t.query
68
- }), l("document.generate", i);
69
+ }), n("document.generate", a);
69
70
  }
70
71
  });
71
72
  }
72
- let { isPhone: K } = r();
73
+ let { isPhone: K } = i();
73
74
  if (!H) return null;
74
75
  let q = O("document.menu.generate", "Generate");
75
- return /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(t, {
76
+ return /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(o, {
76
77
  ref: j,
77
78
  kind: "ghost",
78
79
  size: "sm",
79
- icon: h(z ? e.loader : e.filePlus, { size: 12 }),
80
+ icon: h(z ? a.loader : a.filePlus, { size: 12 }),
80
81
  onClick: U,
81
82
  disabled: z,
82
83
  "aria-label": q,
83
84
  title: q,
84
85
  children: K ? null : q
85
- }), /* @__PURE__ */ g(n, {
86
+ }), /* @__PURE__ */ g(s, {
86
87
  open: M,
87
88
  anchor: j.current,
88
89
  onClose: () => N(!1),
89
90
  align: "end",
90
91
  width: 300,
91
92
  children: [
92
- z && /* @__PURE__ */ h(a, {
93
+ z && /* @__PURE__ */ h(c, {
93
94
  disabled: !0,
94
- icon: /* @__PURE__ */ h(e.loader, { size: 12 }),
95
+ icon: /* @__PURE__ */ h(a.loader, { size: 12 }),
95
96
  children: O("document.menu.loading", "Loading templates...")
96
97
  }),
97
- R && /* @__PURE__ */ h(a, {
98
+ R && /* @__PURE__ */ h(c, {
98
99
  disabled: !0,
99
- icon: /* @__PURE__ */ h(e.warning, { size: 12 }),
100
- children: c(k, R)
100
+ icon: /* @__PURE__ */ h(a.warning, { size: 12 }),
101
+ children: e(k, R)
101
102
  }),
102
- !z && !R && B.length === 0 && /* @__PURE__ */ h(a, {
103
+ !z && !R && B.length === 0 && /* @__PURE__ */ h(c, {
103
104
  disabled: !0,
104
- icon: /* @__PURE__ */ h(e.file, { size: 12 }),
105
+ icon: /* @__PURE__ */ h(a.file, { size: 12 }),
105
106
  children: O("document.menu.empty", "No document templates")
106
107
  }),
107
- !z && !R && B.map((t) => {
108
- let n = W(t);
109
- return n.length === 0 ? null : C(t).flatMap((r) => n.map((n) => r.available ? /* @__PURE__ */ h(a, {
110
- icon: /* @__PURE__ */ h(e.file, { size: 12 }),
111
- onClick: () => G(t, n, r.format),
112
- title: O(t.description),
113
- children: w(O, t, n, r.format)
114
- }, `${t.source}:${t.code}:${n.kind}:${r.format}`) : /* @__PURE__ */ g(a, {
108
+ !z && !R && B.map((e) => {
109
+ let t = W(e);
110
+ return t.length === 0 ? null : C(e).flatMap((n) => t.map((t) => n.available ? /* @__PURE__ */ h(c, {
111
+ icon: /* @__PURE__ */ h(a.file, { size: 12 }),
112
+ onClick: () => G(e, t, n.format),
113
+ title: O(e.description),
114
+ children: w(O, e, t, n.format)
115
+ }, `${e.source}:${e.code}:${t.kind}:${n.format}`) : /* @__PURE__ */ g(c, {
115
116
  disabled: !0,
116
- icon: /* @__PURE__ */ h(e.file, { size: 12 }),
117
- title: r.disabled_reason,
117
+ icon: /* @__PURE__ */ h(a.file, { size: 12 }),
118
+ title: n.disabled_reason,
118
119
  children: [
119
- w(O, t, n, r.format),
120
+ w(O, e, t, n.format),
120
121
  " - ",
121
- r.disabled_reason || O("document.not_available", "Unavailable")
122
+ n.disabled_reason || O("document.not_available", "Unavailable")
122
123
  ]
123
- }, `${t.source}:${t.code}:${n.kind}:${r.format}:disabled`)));
124
+ }, `${e.source}:${e.code}:${t.kind}:${n.format}:disabled`)));
124
125
  })
125
126
  ]
126
127
  })] });
127
128
  }
128
129
  function S(e) {
129
- let t = new o((e.params ?? []).map((e) => ({
130
+ let n = new t((e.params ?? []).map((e) => ({
130
131
  ...e,
131
132
  name: e.name ?? ""
132
133
  })));
@@ -137,7 +138,7 @@ function S(e) {
137
138
  icon: "file",
138
139
  description: e.description
139
140
  },
140
- resolved_params: t
141
+ resolved_params: n
141
142
  };
142
143
  }
143
144
  function C(e) {
@@ -0,0 +1,119 @@
1
+ import { At as e, wt as t } from "./useCurrentScreen--UovgvRj.js";
2
+ import { t as n } from "./Icons-lt-7lhYR.js";
3
+ import { r } from "./CopyButton-C0iEvaT1.js";
4
+ import { Component as i, useContext as a } from "react";
5
+ import { QueryClientContext as o } from "@tanstack/react-query";
6
+ import { jsx as s, jsxs as c } from "react/jsx-runtime";
7
+ //#region src/components/primitives/ClassifiedFieldLocked.tsx
8
+ function l({ tier: e, tierDef: r, requiredPermission: i, variant: a = "value" }) {
9
+ let o = t(), l = o(r?.name) || e, u = i ? o("control.locked.permission_hint", "Locked: requires permission \"{permission}\". Ask your administrator to grant it to your role.", { permission: i }) : o("control.locked.classification_hint", "Locked: {classification} classification — requires explicit grant.", { classification: l });
10
+ return /* @__PURE__ */ c("span", {
11
+ title: u,
12
+ "aria-label": u,
13
+ className: `inline-flex items-center gap-1 text-muted-foreground italic select-none ${a === "input" ? "border border-divider rounded-md px-2 py-1 bg-surface" : ""}`,
14
+ children: [/* @__PURE__ */ s(n.lock, { size: 12 }), /* @__PURE__ */ s("span", { children: l })]
15
+ });
16
+ }
17
+ //#endregion
18
+ //#region src/components/shared/ErrorBoundary.tsx
19
+ var u = class extends i {
20
+ constructor(e) {
21
+ super(e), this.state = {
22
+ hasError: !1,
23
+ error: null
24
+ };
25
+ }
26
+ static getDerivedStateFromError(e) {
27
+ return {
28
+ hasError: !0,
29
+ error: e
30
+ };
31
+ }
32
+ componentDidCatch(e, t) {
33
+ console.error("[ErrorBoundary]", e, t.componentStack);
34
+ }
35
+ handleRetry = () => {
36
+ this.setState({
37
+ hasError: !1,
38
+ error: null
39
+ });
40
+ };
41
+ render() {
42
+ return this.state.hasError ? this.props.fallback ? this.props.fallback : /* @__PURE__ */ s(f, {
43
+ message: this.state.error?.message,
44
+ onRetry: this.handleRetry
45
+ }) : this.props.children;
46
+ }
47
+ }, d = e(void 0, "en", "en");
48
+ function f(e) {
49
+ return a(o) ? /* @__PURE__ */ s(p, { ...e }) : /* @__PURE__ */ s(m, {
50
+ ...e,
51
+ t: d,
52
+ errorTitle: d
53
+ });
54
+ }
55
+ function p(e) {
56
+ let n = t(), r = t("errors");
57
+ return /* @__PURE__ */ s(m, {
58
+ ...e,
59
+ t: n,
60
+ errorTitle: r
61
+ });
62
+ }
63
+ function m({ message: e, onRetry: t, t: n, errorTitle: i }) {
64
+ return /* @__PURE__ */ s("div", {
65
+ style: {
66
+ display: "flex",
67
+ alignItems: "center",
68
+ justifyContent: "center",
69
+ minHeight: 200,
70
+ padding: 32
71
+ },
72
+ children: /* @__PURE__ */ c("div", {
73
+ style: {
74
+ textAlign: "center",
75
+ maxWidth: 420,
76
+ display: "flex",
77
+ flexDirection: "column",
78
+ gap: 10
79
+ },
80
+ children: [
81
+ /* @__PURE__ */ s("h2", {
82
+ style: {
83
+ fontSize: 16,
84
+ fontWeight: 600,
85
+ margin: 0,
86
+ color: "var(--text)"
87
+ },
88
+ children: i("ui.render_failed", "This part of the page could not be shown.")
89
+ }),
90
+ /* @__PURE__ */ s("p", {
91
+ style: {
92
+ fontSize: 12.5,
93
+ color: "var(--text-3)",
94
+ margin: 0
95
+ },
96
+ children: e || i("ui.render_failed_undescribed", "An unexpected error occurred.")
97
+ }),
98
+ /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(r, {
99
+ onClick: t,
100
+ children: n("control.try_again", "Try again")
101
+ }) })
102
+ ]
103
+ })
104
+ });
105
+ }
106
+ //#endregion
107
+ //#region src/components/detail-layout/widgets/registry.ts
108
+ var h = /* @__PURE__ */ new Map();
109
+ function g(e, t) {
110
+ h.set(e, t);
111
+ }
112
+ function _(e) {
113
+ return h.get(e);
114
+ }
115
+ function v(e) {
116
+ return h.has(e);
117
+ }
118
+ //#endregion
119
+ export { l as a, u as i, v as n, g as r, _ as t };