@declarion/react 0.61.1 → 0.63.1

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-rgkewyMl.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-DruYOxKm.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-Dsf3I0xG.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-QN7Wp2W6.js → LayoutRenderer-DEHtYtzV.js} +965 -942
  26. package/dist-lib/{ListCardsBody-CNaZ0xwz.js → ListCardsBody-BAwFR3yO.js} +46 -52
  27. package/dist-lib/{MarkdownRenderer-BuO5hYJh.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-BV-aQbPy.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-BnmWukxk.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 +1588 -5117
  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-Dk1Ha5u3.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-nT5UypJX.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-Dwfyghtj.js → value-CDCeHgOv.js} +8 -22
  85. package/dist-lib/{action-dispatch-gWmOYjOP.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 +16 -23
  89. package/dist-lib/DetailAuditStrip-CSXZoy7v.js +0 -288
  90. package/dist-lib/DynamicIcon-DW5krHuX.js +0 -280
  91. package/dist-lib/RefreshControl-DO9rYcdq.js +0 -399
  92. package/dist-lib/SmartDetailPage.impl-DFIIx80b.js +0 -1565
  93. package/dist-lib/SmartListPage.impl-D694R32H.js +0 -3051
  94. package/dist-lib/SmartRecordListPage.impl-CB5cuQJV.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 -111
  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-BUxXuP4c.js +0 -158
  378. package/dist-lib/format-count-bXVfHzbI.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-nSeHd5si.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 -579
  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-0WBj7wT6.js +0 -7860
  482. package/dist-lib/useListQuery-C7dq_sEo.js +0 -103
  483. package/dist-lib/useOwnRefresh-q80kCMMh.js +0 -1167
  484. package/dist-lib/useProperties-CeGKtq7Q.js +0 -83
  485. package/dist-lib/useTabSearchMirror-CzNAj82Q.js +0 -175
  486. package/dist-lib/useText-BsedsJ-J.js +0 -952
  487. package/dist-lib/vite/fingerprint-plugin.d.ts +0 -44
@@ -0,0 +1,162 @@
1
+ import { Pt 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 { t as i } from "./Kbd-CNttVu0z.js";
5
+ import { $ as a, z as o } from "./PropertyGridEditor-BTjscqfz.js";
6
+ import { t as s } from "./SectionCard-VonaiLrx.js";
7
+ import { i as c, t as l } from "./useBranding-Ckp_AuJb.js";
8
+ import { t as u } from "./utils-D_QDpB8_.js";
9
+ import { t as d } from "./PageHeader-tw4pX3lI.js";
10
+ import { n as f, t as p } from "./FieldRow-BXBBFOZh.js";
11
+ import { t as m } from "./PageShell-tI-mm0C5.js";
12
+ import { jsx as h, jsxs as g } from "react/jsx-runtime";
13
+ //#region src/components/pages/profile/Preferences.impl.tsx
14
+ var _ = [
15
+ "violet",
16
+ "blue",
17
+ "teal",
18
+ "amber",
19
+ "rose"
20
+ ], v = [
21
+ [
22
+ "compact",
23
+ "profile.preferences.density.compact",
24
+ "Compact"
25
+ ],
26
+ [
27
+ "comfortable",
28
+ "profile.preferences.density.comfortable",
29
+ "Comfortable"
30
+ ],
31
+ [
32
+ "cozy",
33
+ "profile.preferences.density.cozy",
34
+ "Cozy"
35
+ ]
36
+ ], y = "px", b = [
37
+ [
38
+ "profile.preferences.shortcut.command_palette",
39
+ "Command palette",
40
+ "⌘ K"
41
+ ],
42
+ [
43
+ "profile.preferences.shortcut.assistant",
44
+ "Toggle AI assistant",
45
+ "⌘ /"
46
+ ],
47
+ [
48
+ "profile.preferences.shortcut.sidebar",
49
+ "Collapse sidebar",
50
+ "⌘ B"
51
+ ],
52
+ [
53
+ "profile.preferences.shortcut.close_tab",
54
+ "Close current tab",
55
+ "⌘ W"
56
+ ],
57
+ [
58
+ "profile.preferences.shortcut.search",
59
+ "Quick search",
60
+ "/"
61
+ ],
62
+ [
63
+ "profile.preferences.shortcut.escape",
64
+ "Escape / close",
65
+ "Esc"
66
+ ]
67
+ ];
68
+ function x() {
69
+ let x = o((e) => e.colorScheme), C = o((e) => e.accent), w = o((e) => e.density), T = o((e) => e.radius), E = o((e) => e.zebra), D = o((e) => e.set), O = o((e) => e.resetToDefaults), { branding: k } = l(), A = t();
70
+ return /* @__PURE__ */ g(m, {
71
+ header: /* @__PURE__ */ h(d, {
72
+ title: A("profile.preferences", "Preferences"),
73
+ actions: /* @__PURE__ */ h(r, {
74
+ icon: /* @__PURE__ */ h(n.refresh, { size: 13 }),
75
+ onClick: () => O(k?.preferences),
76
+ children: A("profile.preferences.reset", "Reset to defaults")
77
+ })
78
+ }),
79
+ children: [/* @__PURE__ */ h(s, {
80
+ title: A("profile.preferences.appearance", "Appearance"),
81
+ icon: /* @__PURE__ */ h(n.moon, { size: 14 }),
82
+ footer: e(A("profile.preferences.subtitle", "These settings apply for this session; a reload returns to your workspace defaults, which admins set through the {parameter} parameter."), { parameter: /* @__PURE__ */ h("span", {
83
+ className: "mono",
84
+ children: c
85
+ }) }),
86
+ children: /* @__PURE__ */ g(f, { children: [
87
+ /* @__PURE__ */ h(p, {
88
+ label: A("profile.preferences.theme", "Theme"),
89
+ children: /* @__PURE__ */ h(S, { children: [["light", A("profile.preferences.theme.light", "Light")], ["dark", A("profile.preferences.theme.dark", "Dark")]].map(([e, t]) => /* @__PURE__ */ h(r, {
90
+ kind: x === e ? "primary" : "default",
91
+ "aria-pressed": x === e,
92
+ onClick: () => D("colorScheme", e),
93
+ children: t
94
+ }, e)) })
95
+ }),
96
+ /* @__PURE__ */ h(p, {
97
+ label: A("profile.preferences.accent", "Accent color"),
98
+ hint: A("profile.preferences.accent_hint", "Your personal accent across the app"),
99
+ children: /* @__PURE__ */ h(S, { children: _.map((e) => /* @__PURE__ */ h("button", {
100
+ type: "button",
101
+ "data-accent": e,
102
+ "data-color-scheme": x,
103
+ onClick: () => D("accent", e),
104
+ "aria-label": A(`profile.preferences.accent.${e}`, `Accent ${e}`),
105
+ "aria-pressed": C === e,
106
+ style: { background: "var(--accent)" },
107
+ className: u("size-6 cursor-pointer rounded-md border-2", C === e ? "border-foreground" : "border-transparent")
108
+ }, e)) })
109
+ }),
110
+ /* @__PURE__ */ h(p, {
111
+ label: A("profile.preferences.density", "Density"),
112
+ hint: A("profile.preferences.density_hint", "Compact saves space; cozy is easier on the eyes"),
113
+ children: /* @__PURE__ */ h(S, { children: v.map(([e, t, n]) => /* @__PURE__ */ h(r, {
114
+ kind: w === e ? "primary" : "default",
115
+ "aria-pressed": w === e,
116
+ onClick: () => D("density", e),
117
+ children: A(t, n)
118
+ }, e)) })
119
+ }),
120
+ /* @__PURE__ */ h(p, {
121
+ label: A("profile.preferences.radius", "Border radius"),
122
+ children: /* @__PURE__ */ g(S, { children: [/* @__PURE__ */ h("input", {
123
+ type: "range",
124
+ min: 0,
125
+ max: 14,
126
+ value: T,
127
+ onChange: (e) => D("radius", Number(e.target.value)),
128
+ className: "w-44"
129
+ }), /* @__PURE__ */ g("span", {
130
+ className: "mono num text-xs text-muted-foreground",
131
+ children: [T, y]
132
+ })] })
133
+ }),
134
+ /* @__PURE__ */ h(p, {
135
+ label: A("profile.preferences.zebra", "Zebra rows"),
136
+ labelId: "preferences-zebra",
137
+ hint: A("profile.preferences.zebra_hint", "Alternating row backgrounds on tables"),
138
+ children: /* @__PURE__ */ h(a, {
139
+ value: E,
140
+ ariaLabelledby: "preferences-zebra",
141
+ onChange: (e) => D("zebra", e)
142
+ })
143
+ })
144
+ ] })
145
+ }), /* @__PURE__ */ h(s, {
146
+ title: A("profile.preferences.keyboard", "Keyboard"),
147
+ icon: /* @__PURE__ */ h(n.command, { size: 14 }),
148
+ children: /* @__PURE__ */ h(f, { children: b.map(([e, t, n]) => /* @__PURE__ */ h(p, {
149
+ label: A(e, t),
150
+ children: /* @__PURE__ */ h(i, { children: n })
151
+ }, e)) })
152
+ })]
153
+ });
154
+ }
155
+ function S({ children: e }) {
156
+ return /* @__PURE__ */ h("div", {
157
+ className: "flex flex-wrap items-center gap-1.5",
158
+ children: e
159
+ });
160
+ }
161
+ //#endregion
162
+ export { x as Preferences };
@@ -0,0 +1,527 @@
1
+ import { Ft as e, It as t, Lt as n, Nt as r, Ot as i, Q as a, U as o, n as s, wt as c, xt as l, yt as u } from "./useCurrentScreen--UovgvRj.js";
2
+ import { t as d } from "./Icons-lt-7lhYR.js";
3
+ import { n as f, r as p } from "./CopyButton-C0iEvaT1.js";
4
+ import { t as m } from "./Pill-D-wsfRhx.js";
5
+ import { Q as h, V as g, X as _, _ as v, et as y, h as b, m as x, q as S } from "./PropertyGridEditor-BTjscqfz.js";
6
+ import { n as C } from "./useBrandingChrome-bKTXXDLy.js";
7
+ import { t as w } from "./SectionCard-VonaiLrx.js";
8
+ import { t as T } from "./DynamicIcon-DuBSz6TZ.js";
9
+ import { n as E, t as D } from "./useParams-ei6w4I7w.js";
10
+ import { n as O } from "./value-CDCeHgOv.js";
11
+ import { n as k } from "./useTabNavigate-BZiW4q3M.js";
12
+ import { n as ee } from "./useObject-1OCeV34A.js";
13
+ import { d as A, p as j } from "./variants-CbAwl3Mn.js";
14
+ import { t as M } from "./payload-B2wODLAX.js";
15
+ import { t as N } from "./ChangePasswordDialog-DFe7lVQg.js";
16
+ import { t as P } from "./AssociatedBlock-D6qDYmRO.js";
17
+ import { n as F, t as I } from "./FieldRow-BXBBFOZh.js";
18
+ import { n as L, t as R } from "./RecordHeader-Bv9nJXnG.js";
19
+ import { t as te } from "./PageShell-tI-mm0C5.js";
20
+ import { i as z, n as B, r as V, t as H } from "./param-editors-9yJr7xmN.js";
21
+ import { Fragment as U, useId as W, useMemo as G, useState as K } from "react";
22
+ import { Fragment as q, jsx as J, jsxs as Y } from "react/jsx-runtime";
23
+ //#region src/components/params/ParamsBlock.tsx
24
+ function X(e) {
25
+ return e === "tenant" || e === "role" || e === "user" ? e : "object";
26
+ }
27
+ function ne(e, t) {
28
+ return e ? e.filter((e) => e.scopes?.includes(t)) : [];
29
+ }
30
+ function re({ carrierEntityCode: e, carrierScope: t, rowId: n, title: r, icon: i }) {
31
+ let a = c(), o = c("errors"), s = D(), l = G(() => ne(s.data, t), [s.data, t]), [u, g] = K(null), { overrideByCode: _, missingParams: v, isLoading: y, error: b, clearError: x, save: S, reset: C } = E({
32
+ carrierEntityCode: e,
33
+ rowId: n,
34
+ enabled: l.length > 0,
35
+ onWritten: () => g(null)
36
+ });
37
+ return l.length === 0 ? null : /* @__PURE__ */ Y(w, {
38
+ title: r ?? a("params.title", "Parameters"),
39
+ icon: i ?? /* @__PURE__ */ J(d.settings, { size: 14 }),
40
+ children: [v ? /* @__PURE__ */ J(B, { text: o("param.overrides_unreadable", "The current parameter overrides could not be read.") }) : y ? /* @__PURE__ */ J("div", {
41
+ style: { padding: "8px 0" },
42
+ children: /* @__PURE__ */ J(h, { size: 16 })
43
+ }) : /* @__PURE__ */ Y("div", {
44
+ style: {
45
+ display: "flex",
46
+ flexDirection: "column",
47
+ gap: 10
48
+ },
49
+ children: [b && !u && /* @__PURE__ */ J(B, { text: b }), l.map((e) => {
50
+ let n = _.get(e.code), r = n !== void 0, i = r && e.source === X(t);
51
+ return /* @__PURE__ */ Y("div", {
52
+ "data-testid": `param-row-${e.code}`,
53
+ style: {
54
+ display: "flex",
55
+ alignItems: "center",
56
+ gap: 10
57
+ },
58
+ children: [
59
+ /* @__PURE__ */ Y("div", {
60
+ style: {
61
+ flex: 1,
62
+ minWidth: 0
63
+ },
64
+ children: [/* @__PURE__ */ J("div", {
65
+ style: {
66
+ fontSize: 12.5,
67
+ fontWeight: 500
68
+ },
69
+ children: a(e.name) || e.code
70
+ }), /* @__PURE__ */ J("div", {
71
+ className: "mono",
72
+ style: {
73
+ fontSize: 11,
74
+ color: "var(--text-3)"
75
+ },
76
+ children: e.code
77
+ })]
78
+ }),
79
+ /* @__PURE__ */ J(V, {
80
+ type: e.type,
81
+ value: e.value,
82
+ structure: e.structure
83
+ }),
84
+ i && /* @__PURE__ */ J(m, {
85
+ tone: "violet",
86
+ size: "xs",
87
+ children: a("params.overridden", "overridden")
88
+ }),
89
+ r && !i && /* @__PURE__ */ J("span", {
90
+ "data-testid": `param-not-applied-${e.code}`,
91
+ title: a("params.block.not_applied_hint", "You set {value}, and it no longer satisfies this parameter's declaration. Source of the value in effect: {source}. Reset to remove what you set, or edit it to a value the declaration accepts.", {
92
+ value: JSON.stringify(n.value),
93
+ source: z(a, e.source)
94
+ }),
95
+ children: /* @__PURE__ */ J(m, {
96
+ tone: "amber",
97
+ size: "xs",
98
+ children: a("params.not_applied", "not applied")
99
+ })
100
+ }),
101
+ /* @__PURE__ */ J(p, {
102
+ size: "xs",
103
+ icon: /* @__PURE__ */ J(d.edit, { size: 12 }),
104
+ onClick: () => {
105
+ x(), g(e);
106
+ },
107
+ children: a("params.edit", "Edit")
108
+ }),
109
+ r && /* @__PURE__ */ J(f, {
110
+ icon: /* @__PURE__ */ J(d.refresh, { size: 13 }),
111
+ title: a("params.reset", "Reset to default"),
112
+ onClick: () => C(e)
113
+ })
114
+ ]
115
+ }, e.code);
116
+ })]
117
+ }), u && /* @__PURE__ */ J(H, {
118
+ param: u,
119
+ current: _.get(u.code)?.value ?? u.value,
120
+ error: b,
121
+ onCancel: () => {
122
+ g(null), x();
123
+ },
124
+ onSave: (e) => S(u, e)
125
+ })]
126
+ });
127
+ }
128
+ //#endregion
129
+ //#region src/components/pages/profile/Profile.impl.tsx
130
+ var Z = "profile", Q = "avatar";
131
+ function ie() {
132
+ let i = k(), a = t((e) => e.user), l = t((e) => e.activeTenant), u = t((e) => e.refreshMe), { data: f } = e(), h = s(), g = C("custom"), _ = c(), v = ee(Z, a?.id), S = v.data?.data, [E, D] = K(!1), [O, A] = K(!1), M = f?.entities[Z], P = a?.display_name || a?.email || _("profile.user_fallback", "User"), z = a?.roles && a.roles[0] || _("profile.role_fallback", "Member"), B = l?.env ? `${l.name} · ${l.env}` : l?.name ?? "—", V = (e) => M && j({
133
+ entity: M,
134
+ entityCode: Z,
135
+ fieldName: e,
136
+ record: {
137
+ email: a?.email,
138
+ display_name: a?.display_name
139
+ },
140
+ mode: "display",
141
+ t: _
142
+ });
143
+ return /* @__PURE__ */ Y(q, { children: [
144
+ /* @__PURE__ */ Y(te, {
145
+ header: /* @__PURE__ */ J("div", {
146
+ "data-testid": "profile-hero",
147
+ children: /* @__PURE__ */ J(R, {
148
+ icon: M?.display.icon ? /* @__PURE__ */ J(T, {
149
+ name: M.display.icon,
150
+ size: 16
151
+ }) : void 0,
152
+ title: P,
153
+ recordId: a?.id,
154
+ mode: "display",
155
+ showTitle: g.isVisible("show_title"),
156
+ highlights: /* @__PURE__ */ Y("div", {
157
+ className: "flex flex-wrap gap-1",
158
+ children: [
159
+ /* @__PURE__ */ J(m, {
160
+ tone: "violet",
161
+ size: "xs",
162
+ dot: !0,
163
+ children: z
164
+ }),
165
+ /* @__PURE__ */ J(m, {
166
+ tone: "slate",
167
+ size: "xs",
168
+ children: B
169
+ }),
170
+ a?.is_active && /* @__PURE__ */ J(m, {
171
+ tone: "emerald",
172
+ size: "xs",
173
+ dot: !0,
174
+ children: _("profile.status.active", "Active")
175
+ })
176
+ ]
177
+ }),
178
+ right: g.isVisible("show_actions") && /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ J(p, {
179
+ icon: /* @__PURE__ */ J(d.edit, { size: 13 }),
180
+ onClick: () => A(!0),
181
+ children: _("profile.edit", "Edit profile")
182
+ }), /* @__PURE__ */ J(p, {
183
+ icon: /* @__PURE__ */ J(d.settings, { size: 13 }),
184
+ onClick: () => i("/preferences", { topLevel: !0 }),
185
+ children: _("profile.preferences", "Preferences")
186
+ })] })
187
+ })
188
+ }),
189
+ children: [
190
+ /* @__PURE__ */ J(w, {
191
+ title: _("profile.personal.title", "Personal info"),
192
+ icon: /* @__PURE__ */ J(d.users, { size: 14 }),
193
+ children: /* @__PURE__ */ J("div", {
194
+ "data-testid": "profile-personal-info-grid",
195
+ children: /* @__PURE__ */ Y(F, { children: [
196
+ a && M && S && /* @__PURE__ */ J(I, {
197
+ label: _("profile.avatar", "Avatar"),
198
+ children: /* @__PURE__ */ J(b, { children: /* @__PURE__ */ J(ae, {
199
+ userId: a.id,
200
+ entity: M,
201
+ record: S,
202
+ onCommitted: async () => {
203
+ await v.refetch();
204
+ }
205
+ }, $(S)) })
206
+ }),
207
+ /* @__PURE__ */ J(I, {
208
+ label: _("profile.display_name", "Display name"),
209
+ children: V("display_name")
210
+ }),
211
+ /* @__PURE__ */ J(I, {
212
+ label: _("profile.personal.email", "Email"),
213
+ "data-testid": "profile-email",
214
+ children: V("email")
215
+ }),
216
+ /* @__PURE__ */ J(I, {
217
+ label: _("profile.personal.timezone", "Timezone"),
218
+ children: se()
219
+ }),
220
+ a?.id && /* @__PURE__ */ J(le, { userId: a.id })
221
+ ] })
222
+ })
223
+ }),
224
+ /* @__PURE__ */ J(w, {
225
+ title: _("profile.security.title", "Security"),
226
+ icon: /* @__PURE__ */ J(d.shield, { size: 14 }),
227
+ children: /* @__PURE__ */ J(F, { children: /* @__PURE__ */ J(I, {
228
+ label: _("profile.security.password", "Password"),
229
+ hint: _("profile.security.password_hint", "Update at any time"),
230
+ children: /* @__PURE__ */ J(p, {
231
+ size: "xs",
232
+ onClick: () => D(!0),
233
+ children: _("profile.security.password_change", "Change")
234
+ })
235
+ }) })
236
+ }),
237
+ /* @__PURE__ */ J(w, {
238
+ title: _("profile.access.title", "Access"),
239
+ icon: /* @__PURE__ */ J(d.key, { size: 14 }),
240
+ children: /* @__PURE__ */ Y(F, { children: [
241
+ /* @__PURE__ */ J(I, {
242
+ label: _("profile.access.role", "Role"),
243
+ children: /* @__PURE__ */ J(m, {
244
+ tone: "violet",
245
+ size: "xs",
246
+ dot: !0,
247
+ children: z
248
+ })
249
+ }),
250
+ /* @__PURE__ */ J(I, {
251
+ label: _("profile.access.groups", "Groups"),
252
+ children: a?.roles && a.roles.length > 0 ? /* @__PURE__ */ J("div", {
253
+ className: "flex flex-wrap gap-1",
254
+ children: a.roles.map((e) => /* @__PURE__ */ J(y, { children: e }, e))
255
+ }) : x
256
+ }),
257
+ /* @__PURE__ */ J(I, {
258
+ label: _("profile.access.permissions", "Permissions"),
259
+ children: r(_, "profile.access.permissions_explicit", a?.permissions?.length ?? 0, {
260
+ one: "{count} explicit",
261
+ other: "{count} explicit"
262
+ })
263
+ })
264
+ ] })
265
+ }),
266
+ /* @__PURE__ */ J(ue, { userId: a?.id }),
267
+ a?.id && /* @__PURE__ */ J(ce, { userId: a.id }),
268
+ h?.screen && f && M && S && /* @__PURE__ */ J(L, {
269
+ screen: h.screen,
270
+ entity: M,
271
+ entityCode: Z,
272
+ record: S,
273
+ schema: f
274
+ })
275
+ ]
276
+ }),
277
+ /* @__PURE__ */ J(oe, {
278
+ open: O,
279
+ initialName: a?.display_name ?? "",
280
+ userId: a?.id ?? "",
281
+ onClose: () => A(!1),
282
+ onSaved: async () => {
283
+ await u(), A(!1);
284
+ }
285
+ }),
286
+ /* @__PURE__ */ J(N, {
287
+ open: E,
288
+ onClose: () => D(!1),
289
+ onSubmit: async ({ current: e, next: t }) => {
290
+ await n(e, t), o.success(_("profile.password.changed", "Password changed. Sign in again to continue."));
291
+ }
292
+ })
293
+ ] });
294
+ }
295
+ function $(e) {
296
+ return O(A(e, Q))?.id ?? "";
297
+ }
298
+ function ae({ userId: e, entity: t, record: n, onCommitted: r }) {
299
+ let i = c(), s = c("errors"), l = v(), [d, f] = K(!1), [p, m] = K(0), h = async (c) => {
300
+ let d = M({
301
+ entity: t,
302
+ formData: { [Q]: c },
303
+ record: n,
304
+ isNew: !1
305
+ });
306
+ if (Object.keys(d).length !== 0) {
307
+ f(!0);
308
+ try {
309
+ await u(Z, { id: e }, { $files: d });
310
+ let t = $({ [Q]: c });
311
+ t && l.markCommitted(t), await r(), o.success(i("profile.avatar.updated", "Avatar updated."));
312
+ } catch (e) {
313
+ await l.flushAllDrafts(), m((e) => e + 1), o.error(a(s, e));
314
+ } finally {
315
+ f(!1);
316
+ }
317
+ }
318
+ };
319
+ return /* @__PURE__ */ J(U, { children: j({
320
+ entity: t,
321
+ entityCode: Z,
322
+ fieldName: Q,
323
+ record: n,
324
+ mode: "edit",
325
+ onChange: (e) => void h(e),
326
+ disabled: d,
327
+ t: i,
328
+ fieldId: "profile-avatar"
329
+ }) }, p);
330
+ }
331
+ function oe({ open: e, initialName: t, userId: n, onClose: r, onSaved: i }) {
332
+ let o = l().isPhone, s = c(), m = c("errors"), v = W(), [y, b] = K(t), [x, S] = K(!1), [C, w] = K(null);
333
+ if (!e) return null;
334
+ let T = () => {
335
+ b(t), w(null), r();
336
+ };
337
+ return /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ J("div", {
338
+ onClick: T,
339
+ style: {
340
+ position: "fixed",
341
+ inset: 0,
342
+ background: "var(--scrim)",
343
+ zIndex: 60,
344
+ backdropFilter: "blur(2px)"
345
+ }
346
+ }), /* @__PURE__ */ Y("div", {
347
+ "data-testid": "edit-profile-dialog",
348
+ style: {
349
+ position: "fixed",
350
+ top: "50%",
351
+ left: "50%",
352
+ transform: "translate(-50%, -50%)",
353
+ zIndex: 61,
354
+ width: o ? "calc(100vw - 24px)" : 420,
355
+ maxWidth: "calc(100vw - 24px)",
356
+ background: "var(--surface)",
357
+ borderRadius: 12,
358
+ boxShadow: "var(--shadow-lg)",
359
+ border: "1px solid var(--border)",
360
+ overflow: "hidden"
361
+ },
362
+ children: [
363
+ /* @__PURE__ */ Y("div", {
364
+ style: {
365
+ padding: "14px 18px 0",
366
+ display: "flex",
367
+ alignItems: "center",
368
+ gap: 10
369
+ },
370
+ children: [
371
+ /* @__PURE__ */ J("span", {
372
+ style: {
373
+ width: 28,
374
+ height: 28,
375
+ borderRadius: 7,
376
+ background: "var(--accent-soft)",
377
+ color: "var(--accent)",
378
+ display: "inline-flex",
379
+ alignItems: "center",
380
+ justifyContent: "center"
381
+ },
382
+ children: /* @__PURE__ */ J(d.edit, { size: 15 })
383
+ }),
384
+ /* @__PURE__ */ Y("div", {
385
+ style: { flex: 1 },
386
+ children: [/* @__PURE__ */ J("div", {
387
+ style: {
388
+ fontSize: 14,
389
+ fontWeight: 600,
390
+ color: "var(--text)"
391
+ },
392
+ children: s("profile.edit", "Edit profile")
393
+ }), /* @__PURE__ */ J("div", {
394
+ style: {
395
+ fontSize: 11.5,
396
+ color: "var(--text-3)"
397
+ },
398
+ children: s("profile.edit.subtitle", "Update your display name.")
399
+ })]
400
+ }),
401
+ /* @__PURE__ */ J(f, {
402
+ icon: /* @__PURE__ */ J(d.x, { size: 14 }),
403
+ title: s("profile.edit.close", "Close"),
404
+ onClick: T
405
+ })
406
+ ]
407
+ }),
408
+ /* @__PURE__ */ Y("div", {
409
+ style: {
410
+ padding: "12px 18px 16px",
411
+ display: "flex",
412
+ flexDirection: "column",
413
+ gap: 12
414
+ },
415
+ children: [/* @__PURE__ */ Y("div", { children: [/* @__PURE__ */ J(g, {
416
+ required: !0,
417
+ htmlFor: v,
418
+ children: s("profile.display_name", "Display name")
419
+ }), /* @__PURE__ */ J(_, {
420
+ id: v,
421
+ value: y,
422
+ onChange: b,
423
+ placeholder: s("profile.edit.name_placeholder", "Your name"),
424
+ autoFocus: !0
425
+ })] }), C && /* @__PURE__ */ J(B, { text: C })]
426
+ }),
427
+ /* @__PURE__ */ Y("div", {
428
+ style: {
429
+ padding: "10px 16px",
430
+ borderTop: "1px solid var(--divider)",
431
+ display: "flex",
432
+ alignItems: "center",
433
+ gap: 8,
434
+ background: "var(--surface-2)",
435
+ flexWrap: o ? "wrap" : "nowrap"
436
+ },
437
+ children: [
438
+ /* @__PURE__ */ J("div", { style: { flex: 1 } }),
439
+ /* @__PURE__ */ J(p, {
440
+ onClick: T,
441
+ children: s("dialog.cancel", "Cancel")
442
+ }),
443
+ /* @__PURE__ */ J(p, {
444
+ kind: "primary",
445
+ icon: J(x ? h : d.check, { size: 13 }),
446
+ onClick: async () => {
447
+ if (!y.trim()) w(s("profile.edit.name_required", "Display name is required."));
448
+ else {
449
+ w(null), S(!0);
450
+ try {
451
+ await u(Z, { id: n }, { display_name: y.trim() }), await i();
452
+ } catch (e) {
453
+ w(a(m, e));
454
+ } finally {
455
+ S(!1);
456
+ }
457
+ }
458
+ },
459
+ disabled: !y.trim() || x,
460
+ children: x ? s("dialog.saving", "Saving…") : s("dialog.save", "Save")
461
+ })
462
+ ]
463
+ })
464
+ ]
465
+ })] });
466
+ }
467
+ function se() {
468
+ try {
469
+ return Intl.DateTimeFormat().resolvedOptions().timeZone || "—";
470
+ } catch {
471
+ return "—";
472
+ }
473
+ }
474
+ function ce({ userId: t }) {
475
+ let { data: n } = e(), r = n?.entities[Z]?.params_scope ?? Z;
476
+ return /* @__PURE__ */ J(re, {
477
+ carrierEntityCode: Z,
478
+ carrierScope: r,
479
+ rowId: t
480
+ });
481
+ }
482
+ function le({ userId: t }) {
483
+ let n = c(), { data: r } = e(), a = D().data?.find((e) => e.code === i), o = r?.entities[Z]?.params_scope ?? Z, s = !!a?.scopes?.includes(o), { save: l, error: u, isLoading: d } = E({
484
+ carrierEntityCode: Z,
485
+ rowId: t,
486
+ enabled: s
487
+ }), [f, p] = K(!1), m = (r?.languages ?? []).map((e) => ({
488
+ value: e.code,
489
+ label: e.name[e.code] || n(e.name) || e.code
490
+ })), g = typeof a?.value == "string" ? a.value : n.language, _ = async (e) => {
491
+ a && e !== g && (p(!0), await l(a, e), p(!1));
492
+ };
493
+ return /* @__PURE__ */ J(I, {
494
+ label: n(a?.name),
495
+ mode: s ? "edit" : "display",
496
+ error: u ?? void 0,
497
+ children: !a || d ? /* @__PURE__ */ J(h, { size: 12 }) : s ? /* @__PURE__ */ J(S, {
498
+ "data-testid": "profile-language",
499
+ value: g,
500
+ options: m,
501
+ disabled: f,
502
+ onChange: (e) => void _(e)
503
+ }) : m.find((e) => e.value === g)?.label ?? g
504
+ });
505
+ }
506
+ function ue({ userId: t }) {
507
+ let { data: n } = e();
508
+ if (!t || !n) return null;
509
+ let r = n.entities[Z];
510
+ return r ? /* @__PURE__ */ J(P, {
511
+ node: {
512
+ associated: "api_key",
513
+ foreign_key: "user_id"
514
+ },
515
+ ctx: {
516
+ schema: n,
517
+ entity: r,
518
+ entityCode: Z,
519
+ recordId: t,
520
+ record: { id: t },
521
+ isNew: !1,
522
+ mode: "display"
523
+ }
524
+ }) : null;
525
+ }
526
+ //#endregion
527
+ export { ie as Profile };