@qoretechnologies/reqraft 0.10.78-pr.145.gd7ed5ee → 0.10.78-pr.167.g3a5e6dd

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 (452) hide show
  1. package/dist/components/Description/AllowedValuesHelp.d.ts +4 -4
  2. package/dist/components/Description/AllowedValuesHelp.d.ts.map +1 -1
  3. package/dist/components/Description/AllowedValuesHelp.js +7 -10
  4. package/dist/components/Description/AllowedValuesHelp.js.map +1 -1
  5. package/dist/components/Description/index.d.ts.map +1 -1
  6. package/dist/components/Description/index.js +4 -22
  7. package/dist/components/Description/index.js.map +1 -1
  8. package/dist/components/FocusedEditing/index.d.ts.map +1 -1
  9. package/dist/components/FocusedEditing/index.js +1 -3
  10. package/dist/components/FocusedEditing/index.js.map +1 -1
  11. package/dist/components/codeSize/index.d.ts +0 -6
  12. package/dist/components/codeSize/index.d.ts.map +1 -1
  13. package/dist/components/codeSize/index.js +2 -12
  14. package/dist/components/codeSize/index.js.map +1 -1
  15. package/dist/components/colorValue/colorValue.d.ts.map +1 -1
  16. package/dist/components/colorValue/colorValue.js +36 -27
  17. package/dist/components/colorValue/colorValue.js.map +1 -1
  18. package/dist/components/composer/Composer.d.ts +2 -18
  19. package/dist/components/composer/Composer.d.ts.map +1 -1
  20. package/dist/components/composer/Composer.js +29 -57
  21. package/dist/components/composer/Composer.js.map +1 -1
  22. package/dist/components/dpqlEditor/dpqlTags.js +1 -1
  23. package/dist/components/dpqlEditor/dpqlTags.js.map +1 -1
  24. package/dist/components/form/engine/CompactRow.d.ts.map +1 -1
  25. package/dist/components/form/engine/CompactRow.js +32 -168
  26. package/dist/components/form/engine/CompactRow.js.map +1 -1
  27. package/dist/components/form/engine/CompactToolbar.d.ts.map +1 -1
  28. package/dist/components/form/engine/CompactToolbar.js +21 -73
  29. package/dist/components/form/engine/CompactToolbar.js.map +1 -1
  30. package/dist/components/form/engine/FormEngine.d.ts +2 -66
  31. package/dist/components/form/engine/FormEngine.d.ts.map +1 -1
  32. package/dist/components/form/engine/FormEngine.js +208 -595
  33. package/dist/components/form/engine/FormEngine.js.map +1 -1
  34. package/dist/components/form/engine/OptionFieldMessages.d.ts +2 -35
  35. package/dist/components/form/engine/OptionFieldMessages.d.ts.map +1 -1
  36. package/dist/components/form/engine/OptionFieldMessages.js +7 -43
  37. package/dist/components/form/engine/OptionFieldMessages.js.map +1 -1
  38. package/dist/components/form/engine/_structuredData/SchemaDataView.d.ts.map +1 -1
  39. package/dist/components/form/engine/_structuredData/SchemaDataView.js +1 -27
  40. package/dist/components/form/engine/_structuredData/SchemaDataView.js.map +1 -1
  41. package/dist/components/form/engine/compactRowContext.d.ts +0 -5
  42. package/dist/components/form/engine/compactRowContext.d.ts.map +1 -1
  43. package/dist/components/form/engine/compactRowContext.js.map +1 -1
  44. package/dist/components/form/engine/compactRowStyles.d.ts +0 -17
  45. package/dist/components/form/engine/compactRowStyles.d.ts.map +1 -1
  46. package/dist/components/form/engine/compactRowStyles.js +52 -99
  47. package/dist/components/form/engine/compactRowStyles.js.map +1 -1
  48. package/dist/components/form/engine/compactToolbarContext.d.ts +0 -9
  49. package/dist/components/form/engine/compactToolbarContext.d.ts.map +1 -1
  50. package/dist/components/form/engine/compactToolbarContext.js.map +1 -1
  51. package/dist/components/form/engine/readFirst.d.ts +2 -38
  52. package/dist/components/form/engine/readFirst.d.ts.map +1 -1
  53. package/dist/components/form/engine/readFirst.js +6 -31
  54. package/dist/components/form/engine/readFirst.js.map +1 -1
  55. package/dist/components/form/engine/revealRow.d.ts +0 -13
  56. package/dist/components/form/engine/revealRow.d.ts.map +1 -1
  57. package/dist/components/form/engine/revealRow.js +1 -24
  58. package/dist/components/form/engine/revealRow.js.map +1 -1
  59. package/dist/components/form/engine/rowFocus.d.ts +1 -9
  60. package/dist/components/form/engine/rowFocus.d.ts.map +1 -1
  61. package/dist/components/form/engine/rowFocus.js +4 -17
  62. package/dist/components/form/engine/rowFocus.js.map +1 -1
  63. package/dist/components/form/expressions/DpqlRendering.d.ts.map +1 -1
  64. package/dist/components/form/expressions/DpqlRendering.js +2 -4
  65. package/dist/components/form/expressions/DpqlRendering.js.map +1 -1
  66. package/dist/components/form/expressions/ExpressionField.d.ts +8 -6
  67. package/dist/components/form/expressions/ExpressionField.d.ts.map +1 -1
  68. package/dist/components/form/expressions/ExpressionField.js +11 -13
  69. package/dist/components/form/expressions/ExpressionField.js.map +1 -1
  70. package/dist/components/form/expressions/builder/argumentDetail.d.ts.map +1 -1
  71. package/dist/components/form/expressions/builder/argumentDetail.js +1 -4
  72. package/dist/components/form/expressions/builder/argumentDetail.js.map +1 -1
  73. package/dist/components/form/expressions/builder/argumentLabel.d.ts +1 -3
  74. package/dist/components/form/expressions/builder/argumentLabel.d.ts.map +1 -1
  75. package/dist/components/form/expressions/builder/argumentLabel.js +26 -66
  76. package/dist/components/form/expressions/builder/argumentLabel.js.map +1 -1
  77. package/dist/components/form/expressions/builder/argumentSlot.d.ts.map +1 -1
  78. package/dist/components/form/expressions/builder/argumentSlot.js +2 -3
  79. package/dist/components/form/expressions/builder/argumentSlot.js.map +1 -1
  80. package/dist/components/form/expressions/builder/argumentWrapper.d.ts.map +1 -1
  81. package/dist/components/form/expressions/builder/argumentWrapper.js +6 -10
  82. package/dist/components/form/expressions/builder/argumentWrapper.js.map +1 -1
  83. package/dist/components/form/expressions/builder/confirmMismatchedTypesModal.d.ts.map +1 -1
  84. package/dist/components/form/expressions/builder/confirmMismatchedTypesModal.js +8 -13
  85. package/dist/components/form/expressions/builder/confirmMismatchedTypesModal.js.map +1 -1
  86. package/dist/components/form/expressions/builder/confirmUnsupportedTypeModal.d.ts.map +1 -1
  87. package/dist/components/form/expressions/builder/confirmUnsupportedTypeModal.js +2 -4
  88. package/dist/components/form/expressions/builder/confirmUnsupportedTypeModal.js.map +1 -1
  89. package/dist/components/form/expressions/builder/index.d.ts +1 -6
  90. package/dist/components/form/expressions/builder/index.d.ts.map +1 -1
  91. package/dist/components/form/expressions/builder/index.js +64 -110
  92. package/dist/components/form/expressions/builder/index.js.map +1 -1
  93. package/dist/components/form/expressions/builder/item.d.ts.map +1 -1
  94. package/dist/components/form/expressions/builder/item.js +2 -4
  95. package/dist/components/form/expressions/builder/item.js.map +1 -1
  96. package/dist/components/form/expressions/builder/moveToPositionStrip.d.ts +1 -1
  97. package/dist/components/form/expressions/builder/moveToPositionStrip.d.ts.map +1 -1
  98. package/dist/components/form/expressions/builder/moveToPositionStrip.js +7 -8
  99. package/dist/components/form/expressions/builder/moveToPositionStrip.js.map +1 -1
  100. package/dist/components/form/expressions/builder/renderTemplate.d.ts.map +1 -1
  101. package/dist/components/form/expressions/builder/renderTemplate.js +1 -3
  102. package/dist/components/form/expressions/builder/renderTemplate.js.map +1 -1
  103. package/dist/components/form/expressions/expressionOperands.js +1 -1
  104. package/dist/components/form/expressions/renderExpressionToText.d.ts.map +1 -1
  105. package/dist/components/form/expressions/renderExpressionToText.js +0 -15
  106. package/dist/components/form/expressions/renderExpressionToText.js.map +1 -1
  107. package/dist/components/form/expressions/types.d.ts +1 -1
  108. package/dist/components/form/fields/Field.d.ts.map +1 -1
  109. package/dist/components/form/fields/Field.js +5 -9
  110. package/dist/components/form/fields/Field.js.map +1 -1
  111. package/dist/components/form/fields/allowed-values/AllowedValues.d.ts +0 -7
  112. package/dist/components/form/fields/allowed-values/AllowedValues.d.ts.map +1 -1
  113. package/dist/components/form/fields/allowed-values/AllowedValues.js +10 -34
  114. package/dist/components/form/fields/allowed-values/AllowedValues.js.map +1 -1
  115. package/dist/components/form/fields/array/ArrayAuto.d.ts.map +1 -1
  116. package/dist/components/form/fields/array/ArrayAuto.js +14 -31
  117. package/dist/components/form/fields/array/ArrayAuto.js.map +1 -1
  118. package/dist/components/form/fields/array/ArrayAutoField.d.ts.map +1 -1
  119. package/dist/components/form/fields/array/ArrayAutoField.js +19 -21
  120. package/dist/components/form/fields/array/ArrayAutoField.js.map +1 -1
  121. package/dist/components/form/fields/auto/AutoFormField.d.ts +1 -5
  122. package/dist/components/form/fields/auto/AutoFormField.d.ts.map +1 -1
  123. package/dist/components/form/fields/auto/AutoFormField.js +19 -42
  124. package/dist/components/form/fields/auto/AutoFormField.js.map +1 -1
  125. package/dist/components/form/fields/binary/Binary.d.ts.map +1 -1
  126. package/dist/components/form/fields/binary/Binary.js +1 -6
  127. package/dist/components/form/fields/binary/Binary.js.map +1 -1
  128. package/dist/components/form/fields/boolean/Boolean.d.ts +1 -7
  129. package/dist/components/form/fields/boolean/Boolean.d.ts.map +1 -1
  130. package/dist/components/form/fields/boolean/Boolean.js +2 -8
  131. package/dist/components/form/fields/boolean/Boolean.js.map +1 -1
  132. package/dist/components/form/fields/color/Color.d.ts.map +1 -1
  133. package/dist/components/form/fields/color/Color.js +6 -9
  134. package/dist/components/form/fields/color/Color.js.map +1 -1
  135. package/dist/components/form/fields/file/File.d.ts +1 -1
  136. package/dist/components/form/fields/file/File.d.ts.map +1 -1
  137. package/dist/components/form/fields/file/File.js +6 -18
  138. package/dist/components/form/fields/file/File.js.map +1 -1
  139. package/dist/components/form/fields/long-string/LongString.d.ts +1 -7
  140. package/dist/components/form/fields/long-string/LongString.d.ts.map +1 -1
  141. package/dist/components/form/fields/long-string/LongString.js +5 -15
  142. package/dist/components/form/fields/long-string/LongString.js.map +1 -1
  143. package/dist/components/form/fields/markdown/Markdown.d.ts.map +1 -1
  144. package/dist/components/form/fields/markdown/Markdown.js +1 -3
  145. package/dist/components/form/fields/markdown/Markdown.js.map +1 -1
  146. package/dist/components/form/fields/number/Number.d.ts +1 -4
  147. package/dist/components/form/fields/number/Number.d.ts.map +1 -1
  148. package/dist/components/form/fields/number/Number.js +7 -21
  149. package/dist/components/form/fields/number/Number.js.map +1 -1
  150. package/dist/components/form/fields/object/Object.d.ts +1 -9
  151. package/dist/components/form/fields/object/Object.d.ts.map +1 -1
  152. package/dist/components/form/fields/object/Object.js +8 -24
  153. package/dist/components/form/fields/object/Object.js.map +1 -1
  154. package/dist/components/form/fields/radio-group/RadioGroup.d.ts.map +1 -1
  155. package/dist/components/form/fields/radio-group/RadioGroup.js +7 -13
  156. package/dist/components/form/fields/radio-group/RadioGroup.js.map +1 -1
  157. package/dist/components/form/fields/rich-text/RichText.d.ts.map +1 -1
  158. package/dist/components/form/fields/rich-text/RichText.js +3 -6
  159. package/dist/components/form/fields/rich-text/RichText.js.map +1 -1
  160. package/dist/components/form/fields/rich-text/useTemplateTags.d.ts +0 -2
  161. package/dist/components/form/fields/rich-text/useTemplateTags.d.ts.map +1 -1
  162. package/dist/components/form/fields/rich-text/useTemplateTags.js +1 -7
  163. package/dist/components/form/fields/rich-text/useTemplateTags.js.map +1 -1
  164. package/dist/components/form/fields/schema-definition/CatalogLeafForm.d.ts.map +1 -1
  165. package/dist/components/form/fields/schema-definition/CatalogLeafForm.js +8 -10
  166. package/dist/components/form/fields/schema-definition/CatalogLeafForm.js.map +1 -1
  167. package/dist/components/form/fields/schema-definition/CatalogNodeEditor.d.ts +1 -1
  168. package/dist/components/form/fields/schema-definition/CatalogNodeEditor.d.ts.map +1 -1
  169. package/dist/components/form/fields/schema-definition/CatalogNodeEditor.js +27 -39
  170. package/dist/components/form/fields/schema-definition/CatalogNodeEditor.js.map +1 -1
  171. package/dist/components/form/fields/schema-definition/Hint.d.ts +3 -4
  172. package/dist/components/form/fields/schema-definition/Hint.d.ts.map +1 -1
  173. package/dist/components/form/fields/schema-definition/Hint.js +2 -10
  174. package/dist/components/form/fields/schema-definition/Hint.js.map +1 -1
  175. package/dist/components/form/fields/schema-definition/InlineValidationBanner.d.ts.map +1 -1
  176. package/dist/components/form/fields/schema-definition/InlineValidationBanner.js +1 -3
  177. package/dist/components/form/fields/schema-definition/InlineValidationBanner.js.map +1 -1
  178. package/dist/components/form/fields/schema-definition/Loader.d.ts.map +1 -1
  179. package/dist/components/form/fields/schema-definition/Loader.js +2 -4
  180. package/dist/components/form/fields/schema-definition/Loader.js.map +1 -1
  181. package/dist/components/form/fields/schema-definition/MigrationsTab.d.ts.map +1 -1
  182. package/dist/components/form/fields/schema-definition/MigrationsTab.js +26 -31
  183. package/dist/components/form/fields/schema-definition/MigrationsTab.js.map +1 -1
  184. package/dist/components/form/fields/schema-definition/TableEditor.d.ts.map +1 -1
  185. package/dist/components/form/fields/schema-definition/TableEditor.js +1 -3
  186. package/dist/components/form/fields/schema-definition/TableEditor.js.map +1 -1
  187. package/dist/components/form/fields/schema-definition/TablesTab.d.ts.map +1 -1
  188. package/dist/components/form/fields/schema-definition/TablesTab.js +23 -25
  189. package/dist/components/form/fields/schema-definition/TablesTab.js.map +1 -1
  190. package/dist/components/form/fields/schema-definition/index.d.ts.map +1 -1
  191. package/dist/components/form/fields/schema-definition/index.js +14 -20
  192. package/dist/components/form/fields/schema-definition/index.js.map +1 -1
  193. package/dist/components/form/fields/select/Select.d.ts +1 -1
  194. package/dist/components/form/fields/select/Select.d.ts.map +1 -1
  195. package/dist/components/form/fields/select/Select.js +6 -13
  196. package/dist/components/form/fields/select/Select.js.map +1 -1
  197. package/dist/components/form/fields/select/SelectCollection.d.ts +2 -2
  198. package/dist/components/form/fields/select/SelectCollection.d.ts.map +1 -1
  199. package/dist/components/form/fields/select/SelectCollection.js +3 -11
  200. package/dist/components/form/fields/select/SelectCollection.js.map +1 -1
  201. package/dist/components/form/fields/template/ExampleValueModal.d.ts.map +1 -1
  202. package/dist/components/form/fields/template/ExampleValueModal.js +1 -4
  203. package/dist/components/form/fields/template/ExampleValueModal.js.map +1 -1
  204. package/dist/components/form/fields/template/TemplateBrowser.d.ts.map +1 -1
  205. package/dist/components/form/fields/template/TemplateBrowser.js +1 -3
  206. package/dist/components/form/fields/template/TemplateBrowser.js.map +1 -1
  207. package/dist/components/form/fields/template/TemplateField.d.ts +2 -12
  208. package/dist/components/form/fields/template/TemplateField.d.ts.map +1 -1
  209. package/dist/components/form/fields/template/TemplateField.js +60 -71
  210. package/dist/components/form/fields/template/TemplateField.js.map +1 -1
  211. package/dist/components/form/fields/template/TemplatePicker.d.ts +1 -7
  212. package/dist/components/form/fields/template/TemplatePicker.d.ts.map +1 -1
  213. package/dist/components/form/fields/template/TemplatePicker.js +27 -55
  214. package/dist/components/form/fields/template/TemplatePicker.js.map +1 -1
  215. package/dist/components/form/index.d.ts +0 -2
  216. package/dist/components/form/index.d.ts.map +1 -1
  217. package/dist/components/form/index.js +0 -2
  218. package/dist/components/form/index.js.map +1 -1
  219. package/dist/components/imageLightbox/ImageLightbox.d.ts.map +1 -1
  220. package/dist/components/imageLightbox/ImageLightbox.js +6 -10
  221. package/dist/components/imageLightbox/ImageLightbox.js.map +1 -1
  222. package/dist/components/log/Log.d.ts +1 -1
  223. package/dist/components/log/Log.d.ts.map +1 -1
  224. package/dist/components/log/Log.js +18 -21
  225. package/dist/components/log/Log.js.map +1 -1
  226. package/dist/components/menu/Menu.d.ts.map +1 -1
  227. package/dist/components/menu/Menu.js +1 -3
  228. package/dist/components/menu/Menu.js.map +1 -1
  229. package/dist/components/qonsoleSmartInput/useQonsoleSession.d.ts.map +1 -1
  230. package/dist/components/qonsoleSmartInput/useQonsoleSession.js +2 -3
  231. package/dist/components/qonsoleSmartInput/useQonsoleSession.js.map +1 -1
  232. package/dist/components/smartEditor/CompletionMenu.d.ts.map +1 -1
  233. package/dist/components/smartEditor/CompletionMenu.js +6 -13
  234. package/dist/components/smartEditor/CompletionMenu.js.map +1 -1
  235. package/dist/components/smartEditor/SmartEditor.d.ts.map +1 -1
  236. package/dist/components/smartEditor/SmartEditor.js +1 -3
  237. package/dist/components/smartEditor/SmartEditor.js.map +1 -1
  238. package/dist/components/smartEditor/completionStyle.d.ts +6 -21
  239. package/dist/components/smartEditor/completionStyle.d.ts.map +1 -1
  240. package/dist/components/smartEditor/completionStyle.js +21 -44
  241. package/dist/components/smartEditor/completionStyle.js.map +1 -1
  242. package/dist/components/smartEditor/templateCompletions.js +1 -1
  243. package/dist/components/smartEditor/templateCompletions.js.map +1 -1
  244. package/dist/components/smartEditor/types.d.ts +1 -1
  245. package/dist/components/smartEditor/useLspAutocomplete.d.ts +0 -5
  246. package/dist/components/smartEditor/useLspAutocomplete.d.ts.map +1 -1
  247. package/dist/components/smartEditor/useLspAutocomplete.js +20 -76
  248. package/dist/components/smartEditor/useLspAutocomplete.js.map +1 -1
  249. package/dist/components/supportTicket/AttachmentChips.d.ts.map +1 -1
  250. package/dist/components/supportTicket/AttachmentChips.js +2 -4
  251. package/dist/components/supportTicket/AttachmentChips.js.map +1 -1
  252. package/dist/components/supportTicket/InterfaceReferenceTags.d.ts +2 -3
  253. package/dist/components/supportTicket/InterfaceReferenceTags.d.ts.map +1 -1
  254. package/dist/components/supportTicket/InterfaceReferenceTags.js +6 -6
  255. package/dist/components/supportTicket/InterfaceReferenceTags.js.map +1 -1
  256. package/dist/components/supportTicket/ReferencePicker.d.ts +2 -3
  257. package/dist/components/supportTicket/ReferencePicker.d.ts.map +1 -1
  258. package/dist/components/supportTicket/ReferencePicker.js +25 -35
  259. package/dist/components/supportTicket/ReferencePicker.js.map +1 -1
  260. package/dist/components/supportTicket/TicketHeader.d.ts.map +1 -1
  261. package/dist/components/supportTicket/TicketHeader.js +1 -4
  262. package/dist/components/supportTicket/TicketHeader.js.map +1 -1
  263. package/dist/components/supportTicket/TicketMetaTags.d.ts +12 -19
  264. package/dist/components/supportTicket/TicketMetaTags.d.ts.map +1 -1
  265. package/dist/components/supportTicket/TicketMetaTags.js +6 -57
  266. package/dist/components/supportTicket/TicketMetaTags.js.map +1 -1
  267. package/dist/components/supportTicket/TicketReplyBox.d.ts +2 -3
  268. package/dist/components/supportTicket/TicketReplyBox.d.ts.map +1 -1
  269. package/dist/components/supportTicket/TicketReplyBox.js +19 -41
  270. package/dist/components/supportTicket/TicketReplyBox.js.map +1 -1
  271. package/dist/components/supportTicket/WorkspaceAccessStatus.d.ts +2 -10
  272. package/dist/components/supportTicket/WorkspaceAccessStatus.d.ts.map +1 -1
  273. package/dist/components/supportTicket/WorkspaceAccessStatus.js +17 -45
  274. package/dist/components/supportTicket/WorkspaceAccessStatus.js.map +1 -1
  275. package/dist/components/supportTicket/accessMeta.d.ts +1 -6
  276. package/dist/components/supportTicket/accessMeta.d.ts.map +1 -1
  277. package/dist/components/supportTicket/accessMeta.js +65 -83
  278. package/dist/components/supportTicket/accessMeta.js.map +1 -1
  279. package/dist/components/supportTicket/attachmentAccess.d.ts.map +1 -1
  280. package/dist/components/supportTicket/attachmentAccess.js +26 -14
  281. package/dist/components/supportTicket/attachmentAccess.js.map +1 -1
  282. package/dist/components/supportTicket/fileToAttachment.d.ts.map +1 -1
  283. package/dist/components/supportTicket/fileToAttachment.js +1 -4
  284. package/dist/components/supportTicket/fileToAttachment.js.map +1 -1
  285. package/dist/components/supportTicket/meta.d.ts +4 -31
  286. package/dist/components/supportTicket/meta.d.ts.map +1 -1
  287. package/dist/components/supportTicket/meta.js +72 -98
  288. package/dist/components/supportTicket/meta.js.map +1 -1
  289. package/dist/components/supportTicket/ticketModel.d.ts +1 -5
  290. package/dist/components/supportTicket/ticketModel.d.ts.map +1 -1
  291. package/dist/components/supportTicket/useLoadedImages.d.ts +0 -10
  292. package/dist/components/supportTicket/useLoadedImages.d.ts.map +1 -1
  293. package/dist/components/supportTicket/useLoadedImages.js +1 -64
  294. package/dist/components/supportTicket/useLoadedImages.js.map +1 -1
  295. package/dist/components/ticketReferences/TicketReferences.d.ts.map +1 -1
  296. package/dist/components/ticketReferences/TicketReferences.js +45 -56
  297. package/dist/components/ticketReferences/TicketReferences.js.map +1 -1
  298. package/dist/components/ticketThread/TicketThread.d.ts +2 -22
  299. package/dist/components/ticketThread/TicketThread.d.ts.map +1 -1
  300. package/dist/components/ticketThread/TicketThread.js +36 -58
  301. package/dist/components/ticketThread/TicketThread.js.map +1 -1
  302. package/dist/components/ticketThread/index.d.ts +1 -1
  303. package/dist/components/ticketThread/index.d.ts.map +1 -1
  304. package/dist/components/ticketThread/index.js +1 -2
  305. package/dist/components/ticketThread/index.js.map +1 -1
  306. package/dist/helpers/allowedValues.d.ts.map +1 -1
  307. package/dist/helpers/allowedValues.js +4 -11
  308. package/dist/helpers/allowedValues.js.map +1 -1
  309. package/dist/helpers/expressions.d.ts.map +1 -1
  310. package/dist/helpers/expressions.js +12 -7
  311. package/dist/helpers/expressions.js.map +1 -1
  312. package/dist/helpers/markdownText.d.ts +0 -9
  313. package/dist/helpers/markdownText.d.ts.map +1 -1
  314. package/dist/helpers/markdownText.js +2 -49
  315. package/dist/helpers/markdownText.js.map +1 -1
  316. package/dist/helpers/noDescription.d.ts +4 -4
  317. package/dist/helpers/noDescription.d.ts.map +1 -1
  318. package/dist/helpers/noDescription.js +6 -8
  319. package/dist/helpers/noDescription.js.map +1 -1
  320. package/dist/helpers/optionUiTypes.d.ts +3 -3
  321. package/dist/helpers/options.d.ts +2 -2
  322. package/dist/helpers/options.d.ts.map +1 -1
  323. package/dist/helpers/options.js +8 -11
  324. package/dist/helpers/options.js.map +1 -1
  325. package/dist/helpers/qorusTypeCatalogue.d.ts +1 -1
  326. package/dist/helpers/qorusTypeCatalogue.js +1 -1
  327. package/dist/helpers/readableColors.d.ts +0 -8
  328. package/dist/helpers/readableColors.d.ts.map +1 -1
  329. package/dist/helpers/readableColors.js +1 -12
  330. package/dist/helpers/readableColors.js.map +1 -1
  331. package/dist/helpers/reqraftLabels.d.ts +0 -83
  332. package/dist/helpers/reqraftLabels.d.ts.map +1 -1
  333. package/dist/helpers/reqraftLabels.js +18 -63
  334. package/dist/helpers/reqraftLabels.js.map +1 -1
  335. package/dist/helpers/singleLineString.d.ts.map +1 -1
  336. package/dist/helpers/singleLineString.js +0 -1
  337. package/dist/helpers/singleLineString.js.map +1 -1
  338. package/dist/helpers/templateItems.d.ts +1 -14
  339. package/dist/helpers/templateItems.d.ts.map +1 -1
  340. package/dist/helpers/templateItems.js +2 -58
  341. package/dist/helpers/templateItems.js.map +1 -1
  342. package/dist/helpers/templates.d.ts.map +1 -1
  343. package/dist/helpers/templates.js +2 -5
  344. package/dist/helpers/templates.js.map +1 -1
  345. package/dist/helpers/validations.d.ts +2 -14
  346. package/dist/helpers/validations.d.ts.map +1 -1
  347. package/dist/helpers/validations.js +178 -165
  348. package/dist/helpers/validations.js.map +1 -1
  349. package/dist/hooks/useWebSocket/useWebSocket.d.ts.map +1 -1
  350. package/dist/hooks/useWebSocket/useWebSocket.js +5 -6
  351. package/dist/hooks/useWebSocket/useWebSocket.js.map +1 -1
  352. package/dist/index.d.ts +0 -2
  353. package/dist/index.d.ts.map +1 -1
  354. package/dist/index.js +2 -12
  355. package/dist/index.js.map +1 -1
  356. package/dist/tracking/ui/ExperimentCard.d.ts +3 -3
  357. package/dist/tracking/ui/ExperimentCard.d.ts.map +1 -1
  358. package/dist/tracking/ui/ExperimentCard.js +45 -33
  359. package/dist/tracking/ui/ExperimentCard.js.map +1 -1
  360. package/dist/tracking/ui/ExperimentsOverlay.d.ts +3 -3
  361. package/dist/tracking/ui/ExperimentsOverlay.d.ts.map +1 -1
  362. package/dist/tracking/ui/ExperimentsOverlay.js +6 -8
  363. package/dist/tracking/ui/ExperimentsOverlay.js.map +1 -1
  364. package/dist/tracking/ui/card.d.ts +13 -9
  365. package/dist/tracking/ui/card.d.ts.map +1 -1
  366. package/dist/tracking/ui/card.js +107 -96
  367. package/dist/tracking/ui/card.js.map +1 -1
  368. package/dist/tracking/ui/client.d.ts +6 -0
  369. package/dist/tracking/ui/client.d.ts.map +1 -1
  370. package/dist/tracking/ui/client.js +2 -9
  371. package/dist/tracking/ui/client.js.map +1 -1
  372. package/package.json +1 -2
  373. package/dist/components/composer/labels.d.ts +0 -24
  374. package/dist/components/composer/labels.d.ts.map +0 -1
  375. package/dist/components/composer/labels.js +0 -16
  376. package/dist/components/composer/labels.js.map +0 -1
  377. package/dist/components/form/engine/ItemAttention.d.ts +0 -12
  378. package/dist/components/form/engine/ItemAttention.d.ts.map +0 -1
  379. package/dist/components/form/engine/ItemAttention.js +0 -33
  380. package/dist/components/form/engine/ItemAttention.js.map +0 -1
  381. package/dist/components/form/engine/formAppearance.d.ts +0 -96
  382. package/dist/components/form/engine/formAppearance.d.ts.map +0 -1
  383. package/dist/components/form/engine/formAppearance.js +0 -156
  384. package/dist/components/form/engine/formAppearance.js.map +0 -1
  385. package/dist/components/form/engine/rowLabelled.d.ts +0 -9
  386. package/dist/components/form/engine/rowLabelled.d.ts.map +0 -1
  387. package/dist/components/form/engine/rowLabelled.js +0 -12
  388. package/dist/components/form/engine/rowLabelled.js.map +0 -1
  389. package/dist/components/form/engine/rowPlaces.d.ts +0 -43
  390. package/dist/components/form/engine/rowPlaces.d.ts.map +0 -1
  391. package/dist/components/form/engine/rowPlaces.js +0 -163
  392. package/dist/components/form/engine/rowPlaces.js.map +0 -1
  393. package/dist/components/form/expressions/labels.d.ts +0 -143
  394. package/dist/components/form/expressions/labels.d.ts.map +0 -1
  395. package/dist/components/form/expressions/labels.js +0 -123
  396. package/dist/components/form/expressions/labels.js.map +0 -1
  397. package/dist/components/form/fields/ChoiceGroupHeading.d.ts +0 -22
  398. package/dist/components/form/fields/ChoiceGroupHeading.d.ts.map +0 -1
  399. package/dist/components/form/fields/ChoiceGroupHeading.js +0 -40
  400. package/dist/components/form/fields/ChoiceGroupHeading.js.map +0 -1
  401. package/dist/components/form/fields/allowed-values/savedValues.d.ts +0 -30
  402. package/dist/components/form/fields/allowed-values/savedValues.d.ts.map +0 -1
  403. package/dist/components/form/fields/allowed-values/savedValues.js +0 -39
  404. package/dist/components/form/fields/allowed-values/savedValues.js.map +0 -1
  405. package/dist/components/form/fields/codeFont.d.ts +0 -12
  406. package/dist/components/form/fields/codeFont.d.ts.map +0 -1
  407. package/dist/components/form/fields/codeFont.js +0 -26
  408. package/dist/components/form/fields/codeFont.js.map +0 -1
  409. package/dist/components/form/fields/labels.d.ts +0 -72
  410. package/dist/components/form/fields/labels.d.ts.map +0 -1
  411. package/dist/components/form/fields/labels.js +0 -47
  412. package/dist/components/form/fields/labels.js.map +0 -1
  413. package/dist/components/form/fields/schema-definition/labels.d.ts +0 -123
  414. package/dist/components/form/fields/schema-definition/labels.d.ts.map +0 -1
  415. package/dist/components/form/fields/schema-definition/labels.js +0 -113
  416. package/dist/components/form/fields/schema-definition/labels.js.map +0 -1
  417. package/dist/components/form/fields/template/templatesListProps.d.ts +0 -11
  418. package/dist/components/form/fields/template/templatesListProps.d.ts.map +0 -1
  419. package/dist/components/form/fields/template/templatesListProps.js +0 -37
  420. package/dist/components/form/fields/template/templatesListProps.js.map +0 -1
  421. package/dist/components/log/labels.d.ts +0 -25
  422. package/dist/components/log/labels.d.ts.map +0 -1
  423. package/dist/components/log/labels.js +0 -22
  424. package/dist/components/log/labels.js.map +0 -1
  425. package/dist/components/supportTicket/labels.d.ts +0 -159
  426. package/dist/components/supportTicket/labels.d.ts.map +0 -1
  427. package/dist/components/supportTicket/labels.js +0 -216
  428. package/dist/components/supportTicket/labels.js.map +0 -1
  429. package/dist/components/supportTicket/ticketAttentionInks.d.ts +0 -23
  430. package/dist/components/supportTicket/ticketAttentionInks.d.ts.map +0 -1
  431. package/dist/components/supportTicket/ticketAttentionInks.js +0 -42
  432. package/dist/components/supportTicket/ticketAttentionInks.js.map +0 -1
  433. package/dist/helpers/fieldDescription.d.ts +0 -16
  434. package/dist/helpers/fieldDescription.d.ts.map +0 -1
  435. package/dist/helpers/fieldDescription.js +0 -40
  436. package/dist/helpers/fieldDescription.js.map +0 -1
  437. package/dist/helpers/sentenceCase.d.ts +0 -9
  438. package/dist/helpers/sentenceCase.d.ts.map +0 -1
  439. package/dist/helpers/sentenceCase.js +0 -22
  440. package/dist/helpers/sentenceCase.js.map +0 -1
  441. package/dist/helpers/validationLabels.d.ts +0 -190
  442. package/dist/helpers/validationLabels.d.ts.map +0 -1
  443. package/dist/helpers/validationLabels.js +0 -210
  444. package/dist/helpers/validationLabels.js.map +0 -1
  445. package/dist/hooks/useDestructiveButtonProps.d.ts +0 -22
  446. package/dist/hooks/useDestructiveButtonProps.d.ts.map +0 -1
  447. package/dist/hooks/useDestructiveButtonProps.js +0 -46
  448. package/dist/hooks/useDestructiveButtonProps.js.map +0 -1
  449. package/dist/tracking/ui/labels.d.ts +0 -198
  450. package/dist/tracking/ui/labels.d.ts.map +0 -1
  451. package/dist/tracking/ui/labels.js +0 -171
  452. package/dist/tracking/ui/labels.js.map +0 -1
@@ -112,7 +112,6 @@ var typeChoices_1 = require("./typeChoices");
112
112
  var optionActions_1 = require("./optionActions");
113
113
  var rendererTypes_1 = require("./rendererTypes");
114
114
  var revealRow_1 = require("./revealRow");
115
- var rowFocus_1 = require("./rowFocus");
116
115
  var emittedValues_1 = require("../fields/emittedValues");
117
116
  var lodash_1 = require("lodash");
118
117
  var map_1 = __importDefault(require("lodash/map"));
@@ -121,7 +120,6 @@ var size_1 = __importDefault(require("lodash/size"));
121
120
  var react_2 = __importStar(require("react"));
122
121
  var react_use_1 = require("react-use");
123
122
  var styled_components_1 = __importStar(require("styled-components"));
124
- var fieldDescription_1 = require("../../../helpers/fieldDescription");
125
123
  var common_1 = require("../../../helpers/common");
126
124
  var options_1 = require("../../../helpers/options");
127
125
  var validations_1 = require("../../../helpers/validations");
@@ -145,15 +143,13 @@ var OptionFieldMessages_1 = require("./OptionFieldMessages");
145
143
  var optionsContext_1 = require("./optionsContext");
146
144
  var markdownRendererContext_1 = require("../../Description/markdownRendererContext");
147
145
  var OptionsHelpDialog_1 = require("./OptionsHelpDialog");
148
- var formAppearance_1 = require("./formAppearance");
149
146
  var typeSentenceForm_1 = require("../typeSentenceForm");
150
147
  var referenceNames_1 = require("../fields/template/referenceNames");
151
148
  var qorusTypeCatalogue_1 = require("../../../helpers/qorusTypeCatalogue");
152
149
  var allowedValues_1 = require("../../../helpers/allowedValues");
153
- var rowFocus_2 = require("./rowFocus");
150
+ var rowFocus_1 = require("./rowFocus");
154
151
  var optionUiTypes_1 = require("../../../helpers/optionUiTypes");
155
152
  var readFirst_1 = require("./readFirst");
156
- var rowPlaces_1 = require("./rowPlaces");
157
153
  /** One shared "nothing came down from above" bag. See `inheritedScopeFor`. */
158
154
  var NO_INHERITED_SCOPE = Object.freeze({});
159
155
  /**
@@ -676,30 +672,27 @@ var FormEngineImpl = function (_a) {
676
672
  var name = _a.name, uniqueName = _a.uniqueName, value = _a.value, onChange = _a.onChange, onSingleOptionsChange = _a.onSingleOptionsChange, onDependableOptionChange = _a.onDependableOptionChange, placeholder = _a.placeholder, noValueString = _a.noValueString, // eslint-disable-line @typescript-eslint/no-unused-vars
677
673
  isValid = _a.isValid, // eslint-disable-line @typescript-eslint/no-unused-vars
678
674
  url = _a.url, customUrl = _a.customUrl, operatorsUrl = _a.operatorsUrl, onOptionsLoaded = _a.onOptionsLoaded, recordRequiresSearchOptions = _a.recordRequiresSearchOptions, readOnly = _a.readOnly, onReadOnlyActivate = _a.onReadOnlyActivate, _h = _a.allowTemplates, allowTemplates = _h === void 0 ? true : _h, interfaceContext = _a.interfaceContext, templateFieldProps = _a.templateFieldProps, forceDropdown = _a.forceDropdown, _j = _a.showTypeToggle, showTypeToggle = _j === void 0 ? true : _j, compact = _a.compact,
679
- // Read through the context `FormEngine` provides (resolved there against an
680
- // inherited appearance); destructured only to keep it out of `rest`.
681
- _appearance = _a.appearance, // eslint-disable-line @typescript-eslint/no-unused-vars
682
675
  // Destructured only to keep it out of `rest` (and so off the DOM). The gutter
683
676
  // this prop documents was never implemented: it was passed to the wrap as
684
677
  // `$flush`, whose styled template had no interpolation slot, so it has always
685
678
  // been a no-op. Removing it from the API is a separate, breaking change —
686
679
  // every consumer passing it today already gets the flush layout by default.
687
680
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
688
- _k = _a.compactFlush, // eslint-disable-line @typescript-eslint/no-unused-vars
681
+ _k = _a.compactFlush,
689
682
  // Destructured only to keep it out of `rest` (and so off the DOM). The gutter
690
683
  // this prop documents was never implemented: it was passed to the wrap as
691
684
  // `$flush`, whose styled template had no interpolation slot, so it has always
692
685
  // been a no-op. Removing it from the API is a separate, breaking change —
693
686
  // every consumer passing it today already gets the flush layout by default.
694
687
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
695
- compactFlush = _k === void 0 ? false : _k, _l = _a.compactNested, compactNested = _l === void 0 ? false : _l, _m = _a.compactScroll, compactScroll = _m === void 0 ? 'host' : _m, compactPanelProps = _a.compactPanelProps, compactCollapsedGroupsProp = _a.compactCollapsedGroups, compactBoxLabels = _a.compactBoxLabels, _o = _a.revealRequired, revealRequired = _o === void 0 ? false : _o, focusAttentionRequest = _a.focusAttentionRequest, onAttentionChange = _a.onAttentionChange, outsideAttention = _a.outsideAttention, _p = _a.compactStickyBoxHeaders, compactStickyBoxHeaders = _p === void 0 ? true : _p, _q = _a.compactStickyOffset, compactStickyOffset = _q === void 0 ? 0 : _q, _r = _a.compactToolbar, compactToolbar = _r === void 0 ? true : _r, _s = _a.commitMode, commitMode = _s === void 0 ? 'immediate' : _s, _t = _a.expandMode, expandMode = _t === void 0 ? 'single' : _t, onCommit = _a.onCommit, operatorsProp = _a.operators, groups = _a.groups, optionsLoader = _a.optionsLoader, onValidityChange = _a.onValidityChange, optionActions = _a.optionActions, _u = _a.optionActionsCollapse, optionActionsCollapse = _u === void 0 ? 'auto' : _u, componentOverrides = _a.componentOverrides, codePreviewRenderer = _a.codePreviewRenderer, readSummaries = _a.readSummaries, cardEditorTypes = _a.cardEditorTypes,
688
+ compactFlush = _k === void 0 ? false : _k, _l = _a.compactNested, compactNested = _l === void 0 ? false : _l, _m = _a.compactScroll, compactScroll = _m === void 0 ? 'host' : _m, compactPanelProps = _a.compactPanelProps, compactCollapsedGroupsProp = _a.compactCollapsedGroups, compactBoxLabels = _a.compactBoxLabels, _o = _a.compactStickyBoxHeaders, compactStickyBoxHeaders = _o === void 0 ? true : _o, _p = _a.compactStickyOffset, compactStickyOffset = _p === void 0 ? 0 : _p, _q = _a.compactToolbar, compactToolbar = _q === void 0 ? true : _q, _r = _a.commitMode, commitMode = _r === void 0 ? 'immediate' : _r, _s = _a.expandMode, expandMode = _s === void 0 ? 'single' : _s, onCommit = _a.onCommit, operatorsProp = _a.operators, groups = _a.groups, optionsLoader = _a.optionsLoader, onValidityChange = _a.onValidityChange, optionActions = _a.optionActions, _t = _a.optionActionsCollapse, optionActionsCollapse = _t === void 0 ? 'auto' : _t, componentOverrides = _a.componentOverrides, codePreviewRenderer = _a.codePreviewRenderer, readSummaries = _a.readSummaries, cardEditorTypes = _a.cardEditorTypes,
696
689
  // consumed by the wrapper below, which publishes it to every description this
697
690
  // form draws; destructured here only so it cannot reach `rest` and be spread
698
691
  // onto a DOM node
699
692
  _markdownRenderer = _a.markdownRenderer, // eslint-disable-line @typescript-eslint/no-unused-vars
700
693
  rendererOnlyUiTypes = _a.rendererOnlyUiTypes, templateAwareUiTypes = _a.templateAwareUiTypes, anyLikeUiTypes = _a.anyLikeUiTypes, inheritedFromParent = _a.inheritedFromParent, autoFocusFirstRequired = _a.autoFocusFirstRequired, expandFirstRequired = _a.expandFirstRequired, initialExpandedOptions = _a.initialExpandedOptions, expandOptionsRequest = _a.expandOptionsRequest, valueKey = _a.valueKey, maxFieldsShown = _a.maxFieldsShown,
701
694
  // The form's own props, read here and never handed on to the collection drawn below (`{...rest}`).
702
- optionsSchema = _a.options, stringTemplates = _a.stringTemplates, skeletonReason = _a.skeletonReason, rest = __rest(_a, ["name", "uniqueName", "value", "onChange", "onSingleOptionsChange", "onDependableOptionChange", "placeholder", "noValueString", "isValid", "url", "customUrl", "operatorsUrl", "onOptionsLoaded", "recordRequiresSearchOptions", "readOnly", "onReadOnlyActivate", "allowTemplates", "interfaceContext", "templateFieldProps", "forceDropdown", "showTypeToggle", "compact", "appearance", "compactFlush", "compactNested", "compactScroll", "compactPanelProps", "compactCollapsedGroups", "compactBoxLabels", "revealRequired", "focusAttentionRequest", "onAttentionChange", "outsideAttention", "compactStickyBoxHeaders", "compactStickyOffset", "compactToolbar", "commitMode", "expandMode", "onCommit", "operators", "groups", "optionsLoader", "onValidityChange", "optionActions", "optionActionsCollapse", "componentOverrides", "codePreviewRenderer", "readSummaries", "cardEditorTypes", "markdownRenderer", "rendererOnlyUiTypes", "templateAwareUiTypes", "anyLikeUiTypes", "inheritedFromParent", "autoFocusFirstRequired", "expandFirstRequired", "initialExpandedOptions", "expandOptionsRequest", "valueKey", "maxFieldsShown", "options", "stringTemplates", "skeletonReason"]);
695
+ optionsSchema = _a.options, stringTemplates = _a.stringTemplates, skeletonReason = _a.skeletonReason, rest = __rest(_a, ["name", "uniqueName", "value", "onChange", "onSingleOptionsChange", "onDependableOptionChange", "placeholder", "noValueString", "isValid", "url", "customUrl", "operatorsUrl", "onOptionsLoaded", "recordRequiresSearchOptions", "readOnly", "onReadOnlyActivate", "allowTemplates", "interfaceContext", "templateFieldProps", "forceDropdown", "showTypeToggle", "compact", "compactFlush", "compactNested", "compactScroll", "compactPanelProps", "compactCollapsedGroups", "compactBoxLabels", "compactStickyBoxHeaders", "compactStickyOffset", "compactToolbar", "commitMode", "expandMode", "onCommit", "operators", "groups", "optionsLoader", "onValidityChange", "optionActions", "optionActionsCollapse", "componentOverrides", "codePreviewRenderer", "readSummaries", "cardEditorTypes", "markdownRenderer", "rendererOnlyUiTypes", "templateAwareUiTypes", "anyLikeUiTypes", "inheritedFromParent", "autoFocusFirstRequired", "expandFirstRequired", "initialExpandedOptions", "expandOptionsRequest", "valueKey", "maxFieldsShown", "options", "stringTemplates", "skeletonReason"]);
703
696
  var feWords = (0, reqraftLabels_1.useReqraftLabels)().formEngine;
704
697
  // Built-ins + whatever the consumer declared for its own injected editors.
705
698
  var isRendererOnly = (0, react_2.useMemo)(function () { return (0, rendererTypes_1.createRendererOnlyUiTypeCheck)(rendererOnlyUiTypes); }, [JSON.stringify(rendererOnlyUiTypes)]);
@@ -725,7 +718,7 @@ var FormEngineImpl = function (_a) {
725
718
  enters the component, so the header, the chips, the messages, the meter and
726
719
  the read-first summary cannot disagree about it: every one of them reads
727
720
  `options`, and none of them has to know the rule. */
728
- var _v = (0, react_2.useState)(optionsSchema || undefined), servedOptions = _v[0], setOptions = _v[1];
721
+ var _u = (0, react_2.useState)(optionsSchema || undefined), servedOptions = _u[0], setOptions = _u[1];
729
722
  var options = (0, react_2.useMemo)(function () { return (0, options_1.resolveDegenerateRequiredGroups)(servedOptions); }, [servedOptions]);
730
723
  /* Whether the schema the form holds is the one in force: its host is not waiting behind the skeleton, and a
731
724
  schema the host hands down has been taken in (`servedOptions` follows the `options` prop a render later).
@@ -740,47 +733,31 @@ var FormEngineImpl = function (_a) {
740
733
  JSON.stringify(optionsSchema || undefined) !== JSON.stringify(servedOptions);
741
734
  var schemaInForce = !rest.skeleton && !hostSchemaPending;
742
735
  // optionsLoader lifecycle: loading feeds the skeleton gate, error the banner.
743
- var _w = (0, react_2.useState)(!!optionsLoader && !optionsSchema), optionsLoading = _w[0], setOptionsLoading = _w[1];
744
- var _x = (0, react_2.useState)(), optionsError = _x[0], setOptionsError = _x[1];
736
+ var _v = (0, react_2.useState)(!!optionsLoader && !optionsSchema), optionsLoading = _v[0], setOptionsLoading = _v[1];
737
+ var _w = (0, react_2.useState)(), optionsError = _w[0], setOptionsError = _w[1];
745
738
  // Operators: prop-provided (compact) or fetched via operatorsUrl (dpql,
746
739
  // ported from IDE Options) — the fetch overrides the seeded prop value.
747
- var _y = (0, react_2.useState)(operatorsProp), operators = _y[0], setOperators = _y[1];
740
+ var _x = (0, react_2.useState)(operatorsProp), operators = _x[0], setOperators = _x[1];
748
741
  // Remote-fetch loading (ported from IDE Options); only relevant when one of
749
742
  // the fetch urls is set — schema-as-props consumers never see the skeleton.
750
- var _z = (0, react_2.useState)(!!(url || customUrl || operatorsUrl)), loading = _z[0], setLoading = _z[1];
743
+ var _y = (0, react_2.useState)(!!(url || customUrl || operatorsUrl)), loading = _y[0], setLoading = _y[1];
751
744
  var confirmAction = (0, reqore_1.useReqoreProperty)('confirmAction');
752
745
  var theme = (0, reqore_1.useReqoreTheme)();
753
- var calm = (0, formAppearance_1.useIsCalmForm)();
754
- var _0 = (0, react_2.useState)(), focusedEditing = _0[0], setFocusedEditing = _0[1];
755
- var _1 = (0, react_2.useState)(false), showFieldTypes = _1[0], setShowFieldTypes = _1[1];
746
+ var _z = (0, react_2.useState)(), focusedEditing = _z[0], setFocusedEditing = _z[1];
747
+ var _0 = (0, react_2.useState)(false), showFieldTypes = _0[0], setShowFieldTypes = _0[1];
756
748
  // Global toggle (toolbar ⓘ): reveal the short-description info panel on every
757
749
  // field that has a short_desc. Per-row ⓘ overrides still win over it.
758
750
  // Global field-info visibility, tri-state: `undefined` = default (critical
759
751
  // messages auto-open, the rest closed); `true` = show all; `false` = hide all
760
752
  // (even message fields). The toolbar ⓘ drives it.
761
- var _2 = (0, react_2.useState)(undefined), showAllDescriptions = _2[0], setShowAllDescriptions = _2[1];
762
- var _3 = (0, react_2.useState)(), showHelpForOption = _3[0], setShowHelpForOption = _3[1];
763
- var _4 = (0, react_2.useState)(false), showInvalidOptionsOnly = _4[0], setShowInvalidOptionsOnly = _4[1];
753
+ var _1 = (0, react_2.useState)(undefined), showAllDescriptions = _1[0], setShowAllDescriptions = _1[1];
754
+ var _2 = (0, react_2.useState)(), showHelpForOption = _2[0], setShowHelpForOption = _2[1];
755
+ var _3 = (0, react_2.useState)(false), showInvalidOptionsOnly = _3[0], setShowInvalidOptionsOnly = _3[1];
764
756
  // Which options are expanded into their editor (several can be open at once).
765
- var _5 = (0, react_2.useState)([]), expandedOptions = _5[0], setExpandedOptions = _5[1];
766
- // The fields the person has opened and left. An empty required field becomes a
767
- // fault only then (or after a submit attempt, `revealRequired`): a form nobody has
768
- // touched is not already wrong.
769
- var _6 = (0, react_2.useState)([]), visitedOptions = _6[0], setVisitedOptions = _6[1];
770
- var lastExpandedOptions = (0, react_2.useRef)([]);
771
- (0, react_2.useEffect)(function () {
772
- var left = lastExpandedOptions.current.filter(function (name) { return !expandedOptions.includes(name); });
773
- lastExpandedOptions.current = expandedOptions;
774
- if (left.length) {
775
- setVisitedOptions(function (prev) {
776
- var added = left.filter(function (name) { return !prev.includes(name); });
777
- return added.length ? __spreadArray(__spreadArray([], prev, true), added, true) : prev;
778
- });
779
- }
780
- }, [expandedOptions]);
757
+ var _4 = (0, react_2.useState)([]), expandedOptions = _4[0], setExpandedOptions = _4[1];
781
758
  /** Status boxes whose "N more fields" control the reader has opened. Keyed by
782
759
  box so opening Optional does not also unfold Set. */
783
- var _7 = (0, react_2.useState)([]), expandedMoreBoxes = _7[0], setExpandedMoreBoxes = _7[1];
760
+ var _5 = (0, react_2.useState)([]), expandedMoreBoxes = _5[0], setExpandedMoreBoxes = _5[1];
784
761
  // --- Reveal a status box's content when it is opened ----------------------
785
762
  //
786
763
  // The status boxes stack, so the last one ("Optional", which holds every
@@ -796,7 +773,7 @@ var FormEngineImpl = function (_a) {
796
773
  // box has not grown and there is nothing to scroll to. A layout effect runs
797
774
  // after the DOM is updated and before paint, which makes the reveal
798
775
  // deterministic instead of a guessed delay.
799
- var _8 = (0, react_2.useState)(undefined), openedStatusBox = _8[0], setOpenedStatusBox = _8[1];
776
+ var _6 = (0, react_2.useState)(undefined), openedStatusBox = _6[0], setOpenedStatusBox = _6[1];
800
777
  var statusBoxRefs = (0, react_2.useRef)({});
801
778
  (0, react_2.useLayoutEffect)(function () {
802
779
  var _a, _b;
@@ -825,19 +802,15 @@ var FormEngineImpl = function (_a) {
825
802
  // stays put when its status flips (e.g. becomes valid) instead of jumping to
826
803
  // another box mid-edit and stealing focus. Keyed by option name.
827
804
  var settledBucket = (0, react_2.useRef)({});
828
- // Each row's own node, drawn into once and moved between the boxes (`rowPlaces`)
829
- var rowHosts = (0, rowPlaces_1.useRowHosts)();
830
- // Which boxes are open, so a collapsed box's rows are not drawn (`rowPlaces`)
831
- var openBoxes = (0, rowPlaces_1.useOpenBoxes)();
832
805
  // Measured form width (not viewport — the form lives in drawers/panels of
833
806
  // arbitrary width) drives the stacked narrow layout.
834
- var _9 = (0, react_use_1.useMeasure)(), compactWrapRef = _9[0], compactWrapWidth = _9[1].width;
807
+ var _7 = (0, react_use_1.useMeasure)(), compactWrapRef = _7[0], compactWrapWidth = _7[1].width;
835
808
  // Own handle on the scroll wrap (useMeasure's ref is a callback, no `.current`)
836
809
  // so the label-column measurement can publish its CSS var on the element. It's
837
810
  // STATE, not a ref: the wrap mounts only after the loading-skeleton gate
838
811
  // resolves, so the measurement effect must re-run when the node appears — a
839
812
  // ref wouldn't retrigger it.
840
- var _10 = (0, react_2.useState)(null), compactWrapNode = _10[0], setCompactWrapNode = _10[1];
813
+ var _8 = (0, react_2.useState)(null), compactWrapNode = _8[0], setCompactWrapNode = _8[1];
841
814
  // Ref mirror of the wrap node for callbacks that must not re-create when it
842
815
  // mounts (flashOptions reads it inside a rAF).
843
816
  var compactWrapNodeRef = (0, react_2.useRef)(null);
@@ -853,28 +826,10 @@ var FormEngineImpl = function (_a) {
853
826
  /* The label column the rows are laid out with: measured from the labels (see below), the
854
827
  default until it is. A form stacks its rows where its value column would be too narrow
855
828
  beside it (`isCompactNarrow`), not at one form width whatever its labels are. */
856
- var _11 = (0, react_2.useState)(compactRowStyles_1.COMPACT_LABEL_COL), compactLabelColumn = _11[0], setCompactLabelColumn = _11[1];
829
+ var _9 = (0, react_2.useState)(compactRowStyles_1.COMPACT_LABEL_COL), compactLabelColumn = _9[0], setCompactLabelColumn = _9[1];
857
830
  // the label column holds a finger's help button where the pointer is a finger (`labelAffordanceWidth`)
858
831
  var coarsePointer = (0, useCoarsePointer_1.useCoarsePointer)();
859
- /* The wrap's width as it is laid out the moment it mounts, read before it is first drawn.
860
- `useMeasure` reports only from a ResizeObserver, after the browser's next layout, so until
861
- then the width was 0 and a narrow form drew its first frames as a wide one: on a 190px form
862
- a 220px name column, and the editor of an open row in a 0px column past the row's right edge.
863
- Anything opened in those frames was laid out there - a picker focused as the form appeared
864
- had its list closed as hidden (board f63). The observer's figure takes over once it has one. */
865
- var _12 = (0, react_2.useState)(0), mountedWrapWidth = _12[0], setMountedWrapWidth = _12[1];
866
- (0, react_2.useLayoutEffect)(function () {
867
- if (!compactWrapNode) {
868
- return;
869
- }
870
- var style = getComputedStyle(compactWrapNode);
871
- var contentWidth = compactWrapNode.clientWidth -
872
- (parseFloat(style.paddingLeft) || 0) -
873
- (parseFloat(style.paddingRight) || 0);
874
- setMountedWrapWidth(function (current) { return (current === contentWidth ? current : contentWidth); });
875
- }, [compactWrapNode]);
876
- var compactLaidOutWidth = compactWrapWidth || mountedWrapWidth;
877
- var compactNarrow = !!compactLaidOutWidth && (0, compactRowStyles_1.isCompactNarrow)(compactLaidOutWidth, compactLabelColumn);
832
+ var compactNarrow = !!compactWrapWidth && (0, compactRowStyles_1.isCompactNarrow)(compactWrapWidth, compactLabelColumn);
878
833
  /* How much pinned chrome sits above a status-box header.
879
834
 
880
835
  Sticky offsets do not compose on their own: everything pinned in one
@@ -889,7 +844,7 @@ var FormEngineImpl = function (_a) {
889
844
  a search row and a field picker that each hide themselves when they have
890
845
  nothing to say, and what is left wraps differently at every form width.
891
846
  Zero when this form draws no toolbar at all. */
892
- var _13 = (0, react_2.useState)(0), compactToolbarHeight = _13[0], setCompactToolbarHeight = _13[1];
847
+ var _10 = (0, react_2.useState)(0), compactToolbarHeight = _10[0], setCompactToolbarHeight = _10[1];
893
848
  (0, react_2.useLayoutEffect)(function () {
894
849
  var wrap = compactWrapNode;
895
850
  if (!compact || !wrap || compactNested || !compactStickyBoxHeaders) {
@@ -910,11 +865,7 @@ var FormEngineImpl = function (_a) {
910
865
  header's height below the top edge with nothing under it. Read from
911
866
  the element rather than from the props that produced it, so every
912
867
  route to that decision is accounted for. */
913
- /* A Reqore that pins a header only while its panel is clearly taller than its scroller
914
- (decision 028, reqore#715) says whether it pins in `data-pins-header`, and decides it
915
- after it has measured, so the toolbar was not sticky yet when this first read it. */
916
- var says = header.getAttribute('data-pins-header');
917
- var pinned = says !== null ? says === 'true' : getComputedStyle(header).position === 'sticky';
868
+ var pinned = getComputedStyle(header).position === 'sticky';
918
869
  var next = pinned ? Math.round(header.getBoundingClientRect().height) : 0;
919
870
  return prev === next ? prev : next;
920
871
  });
@@ -922,53 +873,17 @@ var FormEngineImpl = function (_a) {
922
873
  read();
923
874
  /* jsdom and older engines have no ResizeObserver; the one-shot read above
924
875
  still gives the right answer for a form whose toolbar never reflows. */
925
- var observer = typeof ResizeObserver === 'undefined' ? undefined : new ResizeObserver(read);
926
- observer === null || observer === void 0 ? void 0 : observer.observe(header);
927
- /* The pin can change without the toolbar's size changing: Reqore measures first and pins
928
- after, and pins no more once the form is short. */
929
- var pinWatch = typeof MutationObserver === 'undefined' ? undefined : new MutationObserver(read);
930
- pinWatch === null || pinWatch === void 0 ? void 0 : pinWatch.observe(header, { attributes: true, attributeFilter: ['data-pins-header'] });
931
- return function () {
932
- observer === null || observer === void 0 ? void 0 : observer.disconnect();
933
- pinWatch === null || pinWatch === void 0 ? void 0 : pinWatch.disconnect();
934
- };
876
+ if (typeof ResizeObserver === 'undefined') {
877
+ return undefined;
878
+ }
879
+ var observer = new ResizeObserver(read);
880
+ observer.observe(header);
881
+ return function () { return observer.disconnect(); };
935
882
  /* `compactNarrow` is a dependency, not decoration: crossing the width
936
883
  breakpoint takes the pin OFF the toolbar without changing its height, so
937
884
  the ResizeObserver never fires and a stale 124px would go on offsetting
938
885
  the box headers below a toolbar that is no longer there. */
939
886
  }, [compact, compactNested, compactStickyBoxHeaders, compactNarrow, compactWrapNode, options]);
940
- /* The color a calm form sits on, for its pinned toolbar's glass.
941
-
942
- A calm form has no surface of its own, so the toolbar has to paint one to
943
- keep the rows that scroll under it from showing through the meter and the
944
- search — and it has to be the host's color, or it draws a band across the
945
- form before anything has moved. The host is whatever paints first above the
946
- form: the page, a drawer's panel surface, a card. Read once it mounts (and
947
- when the theme changes), not assumed from the theme's main color. */
948
- var _14 = (0, react_2.useState)(), compactHostColour = _14[0], setCompactHostColour = _14[1];
949
- (0, react_2.useLayoutEffect)(function () {
950
- if (!calm || !compact || compactNested || !compactWrapNode) {
951
- setCompactHostColour(undefined);
952
- return;
953
- }
954
- var _loop_1 = function (node) {
955
- var _a = (getComputedStyle(node).backgroundColor.match(/[\d.]+/g) || [])
956
- .slice(0, 4)
957
- .map(Number), r = _a[0], g = _a[1], b = _a[2], _b = _a[3], alpha = _b === void 0 ? 1 : _b;
958
- if (alpha > 0 && b !== undefined) {
959
- setCompactHostColour(function (prev) {
960
- return (prev === null || prev === void 0 ? void 0 : prev[0]) === r && (prev === null || prev === void 0 ? void 0 : prev[1]) === g && (prev === null || prev === void 0 ? void 0 : prev[2]) === b ? prev : [r, g, b];
961
- });
962
- return { value: void 0 };
963
- }
964
- };
965
- for (var node = compactWrapNode.parentElement; node; node = node.parentElement) {
966
- var state_1 = _loop_1(node);
967
- if (typeof state_1 === "object")
968
- return state_1.value;
969
- }
970
- setCompactHostColour(undefined);
971
- }, [calm, compact, compactNested, compactWrapNode, theme]);
972
887
  // Global label-column sizing: size the label column to the WIDEST field label
973
888
  // across the whole form, clamped to [MIN, MAX], and publish it as a CSS var on
974
889
  // the scroll wrap. Both the grid column and the value-surface offsets read the
@@ -1017,8 +932,8 @@ var FormEngineImpl = function (_a) {
1017
932
  var readRowHeights = (0, react_2.useRef)({});
1018
933
  // Required-groups linkage: hovering a group chip highlights every member row;
1019
934
  // clicking a sibling in the chip's popover scrolls to it and flashes it.
1020
- var _15 = (0, react_2.useState)([]), highlightedOptions = _15[0], setHighlightedOptions = _15[1];
1021
- var _16 = (0, react_2.useState)([]), flashedOptions = _16[0], setFlashedOptions = _16[1];
935
+ var _11 = (0, react_2.useState)([]), highlightedOptions = _11[0], setHighlightedOptions = _11[1];
936
+ var _12 = (0, react_2.useState)([]), flashedOptions = _12[0], setFlashedOptions = _12[1];
1022
937
  var flashTimeout = (0, react_2.useRef)();
1023
938
  var flashOptions = (0, react_2.useCallback)(function (optionNames, scrollToFirst) {
1024
939
  if (scrollToFirst === void 0) { scrollToFirst = false; }
@@ -1053,34 +968,33 @@ var FormEngineImpl = function (_a) {
1053
968
  // Follow a field across panels: when its status bucket changes — e.g. you fill
1054
969
  // an optional field and it jumps to Set / Needs attention — scroll to its new
1055
970
  // row and flash it so it's easy to keep track of. `settledBucket` holds each
1056
- // field's current panel, so diffing it after every render catches the move the
1057
- // instant it lands in the new panel. A field being edited moves as its value
1058
- // does - the first character typed into an empty required field takes it to Set,
1059
- // the caret with it (`rowPlaces`) - and is followed the same way. Runs every
1060
- // render; the diff is cheap and only fires a scroll on an ACTUAL move.
971
+ // field's current panel (frozen while the field is being edited, it re-buckets
972
+ // on collapse), so diffing it after every render catches the move the instant it
973
+ // lands in the new panel. Runs every render; the diff is cheap and only fires a
974
+ // scroll on an ACTUAL move of a non-expanded field.
1061
975
  var prevSettledBucket = (0, react_2.useRef)({});
1062
976
  (0, react_2.useEffect)(function () {
1063
977
  if (!compact)
1064
978
  return;
1065
979
  var cur = settledBucket.current;
1066
980
  var prev = prevSettledBucket.current;
1067
- var moved = Object.keys(cur).find(function (name) { return prev[name] && prev[name] !== cur[name]; });
981
+ var moved = Object.keys(cur).find(function (name) { return prev[name] && prev[name] !== cur[name] && !expandedOptions.includes(name); });
1068
982
  prevSettledBucket.current = __assign({}, cur);
1069
983
  if (moved) {
1070
984
  flashOptions([moved], true);
1071
985
  }
1072
986
  });
1073
987
  // Info panels auto-open on Tier-1 content; the per-row user override sticks.
1074
- var _17 = (0, react_2.useState)({}), infoPanelOverrides = _17[0], setInfoPanelOverrides = _17[1];
988
+ var _13 = (0, react_2.useState)({}), infoPanelOverrides = _13[0], setInfoPanelOverrides = _13[1];
1075
989
  // Toolbar filters affect the listed rows only — the meter reflects the full set.
1076
- var _18 = (0, react_2.useState)(false), requiredOnly = _18[0], setRequiredOnly = _18[1];
1077
- var _19 = (0, react_2.useState)(''), compactQuery = _19[0], setCompactQuery = _19[1];
990
+ var _14 = (0, react_2.useState)(false), requiredOnly = _14[0], setRequiredOnly = _14[1];
991
+ var _15 = (0, react_2.useState)(''), compactQuery = _15[0], setCompactQuery = _15[1];
1078
992
  // Compact field sort (Fields menu → "Sort by"); 'schema' = declared order.
1079
- var _20 = (0, react_2.useState)('schema'), compactSort = _20[0], setCompactSort = _20[1];
1080
- var _21 = (0, react_2.useState)(function () { return ({
993
+ var _16 = (0, react_2.useState)('schema'), compactSort = _16[0], setCompactSort = _16[1];
994
+ var _17 = (0, react_2.useState)(function () { return ({
1081
995
  fields: (0, exports.fixOptions)(value, options || {}, undefined, isRendererOnly),
1082
996
  meta: undefined,
1083
- }); }), localValue = _21[0], setLocalValue = _21[1];
997
+ }); }), localValue = _17[0], setLocalValue = _17[1];
1084
998
  var originalValue = (0, react_2.useRef)();
1085
999
  // Track the last value we emitted via onChange so we can skip re-applying fixOptions
1086
1000
  // when the parent echoes it back as the new value prop (controlled component loop prevention)
@@ -1138,7 +1052,7 @@ var FormEngineImpl = function (_a) {
1138
1052
  originalValue.current = localValue.fields;
1139
1053
  }
1140
1054
  var unavailableOptionsCount = (0, react_2.useRef)(0);
1141
- var _22 = (0, useQorusTypes_1.useQorusTypes)(), compactValue = _22.compactValue, typesLoading = _22.loading;
1055
+ var _18 = (0, useQorusTypes_1.useQorusTypes)(), compactValue = _18.compactValue, typesLoading = _18.loading;
1142
1056
  // an option's type in words, while the form shows field types (qorus#646: it said the type's code, `<string>`)
1143
1057
  var typeName = (0, typeSentenceForm_1.useTypeName)();
1144
1058
  var templates = (0, useTemplates_1.useTemplates)(allowTemplates, stringTemplates, interfaceContext);
@@ -1881,11 +1795,6 @@ var FormEngineImpl = function (_a) {
1881
1795
  return newValue;
1882
1796
  }
1883
1797
  if (showInvalidOptionsOnly &&
1884
- // An open row stays while the reader is in it, as its box does
1885
- // (`stableBucketOf`): the first character typed into an empty required
1886
- // field makes it valid, and hiding it then would pull the field out
1887
- // from under the caret mid-word.
1888
- !expandedOptions.includes(optionName) &&
1889
1798
  isOptionValid(optionName, (0, exports.getOptionFieldStorageType)(optionName, option.type, options, operators, option.op, isRendererOnly, optionHoldsExpression(option)), option.value)) {
1890
1799
  return newValue;
1891
1800
  }
@@ -1894,7 +1803,6 @@ var FormEngineImpl = function (_a) {
1894
1803
  }, [
1895
1804
  dependencyLockedNames,
1896
1805
  showInvalidOptionsOnly,
1897
- expandedOptions,
1898
1806
  isRendererOnly,
1899
1807
  JSON.stringify(availableOptions),
1900
1808
  JSON.stringify(options),
@@ -1950,17 +1858,8 @@ var FormEngineImpl = function (_a) {
1950
1858
  covered: covered,
1951
1859
  invalid: invalid,
1952
1860
  warned: msgIntent === 'warning',
1953
- // a one-of member, once anyone has been to its group (`hasBeenToTheField`)
1954
- visited: (0, readFirst_1.hasBeenToTheField)(name, {
1955
- visitedOptions: visitedOptions,
1956
- revealRequired: revealRequired,
1957
- requiredGroups: reqGroups,
1958
- groupMembers: requiredGroupsInfo.members,
1959
- }),
1960
1861
  });
1961
1862
  }, [
1962
- revealRequired,
1963
- visitedOptions,
1964
1863
  isRendererOnly,
1965
1864
  JSON.stringify(options),
1966
1865
  JSON.stringify(availableOptions),
@@ -1990,37 +1889,6 @@ var FormEngineImpl = function (_a) {
1990
1889
  // a hidden field (its `depends_on` does not hold) is not in the form, nor in its counts
1991
1890
  function (name) { return !dependencyLockedNames.includes(name) && getOptionBucket(name) === 'attention'; }).length;
1992
1891
  }, [JSON.stringify(availableOptions), getOptionBucket, dependencyLockedNames]);
1993
- // How many of those are faults rather than only still to fill in (`pending`). Zero
1994
- // on a new form, so its first box reads "To fill in" without amber.
1995
- var readFirstAttentionFaultCount = (0, react_2.useMemo)(function () {
1996
- return Object.keys(availableOptions || {}).filter(function (name) { return getOptionBucket(name) === 'attention' && getOptionStatus(name) !== 'pending'; }).length;
1997
- }, [JSON.stringify(availableOptions), getOptionBucket, getOptionStatus]);
1998
- /* Fields whose value fails but that are not in the first box: an optional field its host says is wrong
1999
- (`invalid_reason`) stays among the optional ones. They make the form "Incomplete", so the readiness line counts
2000
- them with the faults: it said "Incomplete" and nothing else, with nothing to tell the reader what. */
2001
- var readFirstFaultsOutsideBox = (0, react_2.useMemo)(function () {
2002
- return validityData.invalidFields.filter(function (_a) {
2003
- var fieldName = _a.fieldName;
2004
- return !!(availableOptions === null || availableOptions === void 0 ? void 0 : availableOptions[fieldName]) &&
2005
- !dependencyLockedNames.includes(fieldName) &&
2006
- getOptionBucket(fieldName) !== 'attention';
2007
- }).length;
2008
- }, [validityData, JSON.stringify(availableOptions), dependencyLockedNames, getOptionBucket]);
2009
- // The same two numbers, to a host that draws its own submit control from them.
2010
- var onAttentionChangeRef = (0, react_2.useRef)(onAttentionChange);
2011
- onAttentionChangeRef.current = onAttentionChange;
2012
- // What the host found wrong outside the fields: in the line and in what the host is told.
2013
- var outsideAttentionCount = Math.max(0, (_b = outsideAttention === null || outsideAttention === void 0 ? void 0 : outsideAttention.count) !== null && _b !== void 0 ? _b : 0);
2014
- (0, react_2.useEffect)(function () {
2015
- var _a;
2016
- /* The line's numbers, to the one: a field its host says is wrong outside the first box (`readFirstFaultsOutsideBox`)
2017
- is counted in the line, and so in what the host is told - the host's submit read ready while the line said
2018
- "Incomplete · 1 need attention". */
2019
- (_a = onAttentionChangeRef.current) === null || _a === void 0 ? void 0 : _a.call(onAttentionChangeRef, {
2020
- count: readFirstAttentionCount + readFirstFaultsOutsideBox + outsideAttentionCount,
2021
- faults: readFirstAttentionFaultCount + readFirstFaultsOutsideBox + outsideAttentionCount,
2022
- });
2023
- }, [readFirstAttentionCount, readFirstAttentionFaultCount, readFirstFaultsOutsideBox, outsideAttentionCount]);
2024
1892
  var getIntent = (0, react_2.useCallback)(
2025
1893
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
2026
1894
  function (optName, type, optValue, _op) {
@@ -2291,7 +2159,7 @@ var FormEngineImpl = function (_a) {
2291
2159
  }
2292
2160
  hasAutoFocusedRef.current = true;
2293
2161
  var entered = event.target;
2294
- if ((0, rowFocus_2.isTypingControl)(entered)) {
2162
+ if ((0, rowFocus_1.isTypingControl)(entered)) {
2295
2163
  return;
2296
2164
  }
2297
2165
  var target = firstAttentionRow();
@@ -2319,48 +2187,6 @@ var FormEngineImpl = function (_a) {
2319
2187
  compactWrapNode.removeEventListener('focusin', onFocusIn);
2320
2188
  };
2321
2189
  }, [autoFocusFirstRequired, compact, compactWrapNode]);
2322
- // A submit that could not go is answered with where to type: each new
2323
- // `focusAttentionRequest` opens the first field that needs attention and puts the
2324
- // caret in it. The host's submit button holds the caret at that moment, and an open
2325
- // row never takes a caret held outside it (CompactRow), so the button lets go of it
2326
- // here first; the person asked to submit, and this is the answer to that. It picks
2327
- // the field the arrival scan above would (`firstAttentionRow`), and spends that scan:
2328
- // the person has been taken to a field now.
2329
- var lastFocusRequest = (0, react_2.useRef)(focusAttentionRequest);
2330
- (0, react_2.useEffect)(function () {
2331
- var _a;
2332
- if (focusAttentionRequest === lastFocusRequest.current) {
2333
- return;
2334
- }
2335
- lastFocusRequest.current = focusAttentionRequest;
2336
- if (!focusAttentionRequest || !compact || !options) {
2337
- return;
2338
- }
2339
- var target = firstAttentionRow();
2340
- if (!target) {
2341
- return;
2342
- }
2343
- hasAutoFocusedRef.current = true;
2344
- var wrap = compactWrapNodeRef.current;
2345
- var active = document.activeElement;
2346
- if (active && active !== document.body && !(wrap === null || wrap === void 0 ? void 0 : wrap.contains(active))) {
2347
- active.blur();
2348
- }
2349
- if (!expandedOptions.includes(target)) {
2350
- // The row's own open effect reveals it and takes the caret.
2351
- openFirstAttentionRow(target);
2352
- return;
2353
- }
2354
- // Already open (the field the form opened on arrival): its open effect has run,
2355
- // so the caret goes to its control here.
2356
- var row = wrap === null || wrap === void 0 ? void 0 : wrap.querySelector("[data-field=\"".concat(target, "\"]"));
2357
- if (row) {
2358
- (0, revealRow_1.revealRow)(row, 'auto');
2359
- (_a = (0, rowFocus_1.findRowFocusTarget)(row.querySelector('.options-readfirst-row-editor'), {
2360
- textEntryOnly: row.classList.contains('options-readfirst-card'),
2361
- })) === null || _a === void 0 ? void 0 : _a.focus({ preventScroll: true });
2362
- }
2363
- }, [focusAttentionRequest]);
2364
2190
  // Read-first completion summary (how many shown options have a value set),
2365
2191
  // surfaced as a progress meter at the top of the compact form.
2366
2192
  var readFirstCompletion = (0, react_2.useMemo)(function () {
@@ -2536,7 +2362,7 @@ var FormEngineImpl = function (_a) {
2536
2362
  return null;
2537
2363
  var items = schemaMsgs.map(function (_a, index) {
2538
2364
  var intent = _a.intent, title = _a.title, content = _a.content;
2539
- return ((0, jsx_runtime_1.jsx)(reqore_1.ReqoreMessage, { intent: (0, formAppearance_1.calmNoteIntent)(intent, calm), title: title, opaque: false, size: 'small',
2365
+ return ((0, jsx_runtime_1.jsx)(reqore_1.ReqoreMessage, { intent: intent, title: title, opaque: false, size: 'small',
2540
2366
  // Compact: flat (no border) to match the read-row info panels;
2541
2367
  // classic forms keep the bordered, bottom-margined message.
2542
2368
  flat: compact || undefined, margin: compact ? undefined : 'bottom', children: content }, title || index));
@@ -2636,10 +2462,7 @@ var FormEngineImpl = function (_a) {
2636
2462
  readOnly ||
2637
2463
  !(0, validations_1.hasAllDependenciesFullfilled)((_v = options === null || options === void 0 ? void 0 : options[optionName]) === null || _v === void 0 ? void 0 : _v.depends_on, availableOptions, options || {}), readOnly: readOnly, size: editorSize || rest.size, menuItems: (0, typeChoices_1.offersTypeChoices)(options === null || options === void 0 ? void 0 : options[optionName], anyLikeUiTypes) ?
2638
2464
  getCustomMenuTemplateItems(optionName)
2639
- : undefined }, templateFieldProps, { forceDropdown: effectiveForceDropdown })), (0, jsx_runtime_1.jsx)(OptionFieldMessages_1.OptionFieldMessages, { schema: options || {}, allOptions: availableOptions, name: optionName, option: __assign({ type: resolvedType }, other), getType: getTypeForOption, isRendererOnly: isRendererOnly,
2640
- // Open is not left: a field the form opened for typing (the first empty
2641
- // one, on a new form) says what it needs without already being wrong.
2642
- requirementPending: !(revealRequired || visitedOptions.includes(optionName)) }), operators && (0, size_1.default)(operators) && (0, size_1.default)(other.op) ?
2465
+ : undefined }, templateFieldProps, { forceDropdown: effectiveForceDropdown })), (0, jsx_runtime_1.jsx)(OptionFieldMessages_1.OptionFieldMessages, { schema: options || {}, allOptions: availableOptions, name: optionName, option: __assign({ type: resolvedType }, other), getType: getTypeForOption, isRendererOnly: isRendererOnly }), operators && (0, size_1.default)(operators) && (0, size_1.default)(other.op) ?
2643
2466
  (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(reqore_1.ReqoreVerticalSpacer, { height: 5 }), (0, jsx_runtime_1.jsx)(reqore_1.ReqoreMessage, { size: 'small', className: 'options-operator-summary', children: (0, operatorSummary_1.operatorSummary)({
2644
2467
  label: (optionSchema === null || optionSchema === void 0 ? void 0 : optionSchema.display_name) || optionName,
2645
2468
  operatorKeys: operatorParts,
@@ -2673,12 +2496,10 @@ var FormEngineImpl = function (_a) {
2673
2496
  getTypeForOption,
2674
2497
  inheritedScopes,
2675
2498
  inheritedFromParent,
2676
- revealRequired,
2677
- visitedOptions,
2678
2499
  ]);
2679
2500
  // Compact (read-first) rendering.
2680
2501
  // Theme-derived colors so the flat-row layout adapts to light/dark/custom themes.
2681
- var cText = (0, formAppearance_1.getThemeTextColour)(theme, '#f1f0ee');
2502
+ var cText = ((_b = theme === null || theme === void 0 ? void 0 : theme.text) === null || _b === void 0 ? void 0 : _b.color) || '#f1f0ee';
2682
2503
  // Text emphasis tiers via reqore's readable-color helper (key = full readable
2683
2504
  // text, muted = its dimmed variant, faint = the dimmed variant softened
2684
2505
  // further) instead of hand-rolled hex-alpha suffixes on the raw text color.
@@ -2687,10 +2508,8 @@ var FormEngineImpl = function (_a) {
2687
2508
  var cFaint = "".concat(cMuted, "99");
2688
2509
  var cDivider = "".concat(cText, "14");
2689
2510
  var cHover = "".concat(cText, "0d");
2690
- // Calm: the intents as words that read on the section surface, not the
2691
- // theme's fills (see `getCalmIntentText`). Dots and edges take them too.
2692
- var cDanger = calm ? (0, formAppearance_1.getCalmIntentText)(theme, 'danger') : ((_c = theme === null || theme === void 0 ? void 0 : theme.intents) === null || _c === void 0 ? void 0 : _c.danger) || '#e35a5a';
2693
- var cWarning = calm ? (0, formAppearance_1.getCalmIntentText)(theme, 'warning') : ((_d = theme === null || theme === void 0 ? void 0 : theme.intents) === null || _d === void 0 ? void 0 : _d.warning) || '#ffdf34';
2511
+ var cDanger = ((_c = theme === null || theme === void 0 ? void 0 : theme.intents) === null || _c === void 0 ? void 0 : _c.danger) || '#e35a5a';
2512
+ var cWarning = ((_d = theme === null || theme === void 0 ? void 0 : theme.intents) === null || _d === void 0 ? void 0 : _d.warning) || '#ffdf34';
2694
2513
  var cInfo = ((_f = theme === null || theme === void 0 ? void 0 : theme.intents) === null || _f === void 0 ? void 0 : _f.info) || '#3b8eea';
2695
2514
  var cSuccess = ((_g = theme === null || theme === void 0 ? void 0 : theme.intents) === null || _g === void 0 ? void 0 : _g.success) || '#36b37e';
2696
2515
  // the rows' own words and marks, in colors that read on every surface a row is drawn on
@@ -2708,10 +2527,6 @@ var FormEngineImpl = function (_a) {
2708
2527
  // The "N more fields" row's dashed edge. Well above the divider tint: this
2709
2528
  // one is an affordance the reader has to notice, not a hairline between rows.
2710
2529
  var cMoreBorder = "".concat(cText, "4d");
2711
- // Calm: the section surface and its hairline, from the theme's panel (the
2712
- // same surface and edge Reqore gives the section panels themselves).
2713
- var cPanel = (0, formAppearance_1.getCalmPanelSurface)(theme);
2714
- var cHairline = (0, formAppearance_1.getCalmPanelHairline)(theme);
2715
2530
  // The closure surface the extracted CompactRow reads through context. Refs and
2716
2531
  // setters are stable; the state/memo/handler fields change identity as they do
2717
2532
  // today, so a row re-renders exactly when its inputs do.
@@ -2731,8 +2546,6 @@ var FormEngineImpl = function (_a) {
2731
2546
  cardEditorTypes: cardEditorTypes,
2732
2547
  showAllDescriptions: showAllDescriptions,
2733
2548
  expandedOptions: expandedOptions,
2734
- visitedOptions: visitedOptions,
2735
- revealRequired: revealRequired,
2736
2549
  highlightedOptions: highlightedOptions,
2737
2550
  flashedOptions: flashedOptions,
2738
2551
  infoPanelOverrides: infoPanelOverrides,
@@ -2785,8 +2598,6 @@ var FormEngineImpl = function (_a) {
2785
2598
  cardEditorTypes,
2786
2599
  showAllDescriptions,
2787
2600
  expandedOptions,
2788
- visitedOptions,
2789
- revealRequired,
2790
2601
  highlightedOptions,
2791
2602
  flashedOptions,
2792
2603
  infoPanelOverrides,
@@ -2830,22 +2641,13 @@ var FormEngineImpl = function (_a) {
2830
2641
  var compactToolbarParts = (0, react_2.useMemo)(function () {
2831
2642
  if (compactToolbar === false)
2832
2643
  return null;
2833
- // A calm sub-form nested in a row (a list item, a hash field) draws only its
2834
- // fields. Its readiness is said once, by the item it sits in, and each row
2835
- // says what it lacks; a search over two to six fields helps nobody, and one
2836
- // per item stacked a second search box under the form's own for every item.
2837
- if (calm && compactNested)
2838
- return null;
2839
2644
  var all = { completion: true, search: true, fields: true, help: true };
2840
2645
  return compactToolbar === true ? all : __assign(__assign({}, all), compactToolbar);
2841
- }, [JSON.stringify(compactToolbar), calm, compactNested]);
2646
+ }, [JSON.stringify(compactToolbar)]);
2842
2647
  var compactToolbarContextValue = (0, react_2.useMemo)(function () { return ({
2843
2648
  readOnly: readOnly,
2844
2649
  invalidCount: (0, size_1.default)(validityData.invalidFields),
2845
- attentionCount: readFirstAttentionCount + readFirstFaultsOutsideBox,
2846
- attentionFaultCount: readFirstAttentionFaultCount + readFirstFaultsOutsideBox,
2847
- outsideAttentionCount: outsideAttentionCount,
2848
- onRevealOutside: outsideAttention === null || outsideAttention === void 0 ? void 0 : outsideAttention.onReveal,
2650
+ attentionCount: readFirstAttentionCount,
2849
2651
  completion: readFirstCompletion,
2850
2652
  showInvalidOnly: showInvalidOptionsOnly,
2851
2653
  onToggleInvalidOnly: handleToggleInvalidOnly,
@@ -2892,8 +2694,6 @@ var FormEngineImpl = function (_a) {
2892
2694
  onReadOnlyActivate,
2893
2695
  validityData,
2894
2696
  readFirstAttentionCount,
2895
- readFirstAttentionFaultCount,
2896
- readFirstFaultsOutsideBox,
2897
2697
  readFirstCompletion,
2898
2698
  showInvalidOptionsOnly,
2899
2699
  handleToggleInvalidOnly,
@@ -2923,22 +2723,8 @@ var FormEngineImpl = function (_a) {
2923
2723
  // removes it, and then the header carries just the consumer's own actions.
2924
2724
  var compactHeaderActions = (0, react_2.useMemo)(function () { return __spreadArray(__spreadArray([], (compactToolbarParts ? [{ as: CompactToolbar_1.CompactToolbar, responsive: false }] : []), true), ((compactPanelProps === null || compactPanelProps === void 0 ? void 0 : compactPanelProps.actions) || []), true); }, [compactPanelProps === null || compactPanelProps === void 0 ? void 0 : compactPanelProps.actions, compactToolbarParts]);
2925
2725
  var renderCompact = function () {
2926
- var _a, _b, _c, _d, _f;
2927
- /* The rows of this render, each drawn at the stage into its own node; the boxes draw places for them
2928
- (`renderRow`). A row that changes box is moved, not drawn anew (`rowPlaces`). */
2929
- var stagedRows = new Map();
2930
- // Whether the box being drawn shows its rows: a collapsed one keeps only their places (`useOpenBoxes`)
2931
- var drawingRows = true;
2932
- // Calm: the host's own color (see `compactHostColour`), so the pinned
2933
- // toolbar is invisible until something scrolls under it - and opaque, so
2934
- // what scrolls under it does not read through. At 88% with a blur the rows
2935
- // still showed through crisply around the readiness line and the search
2936
- // wherever the blur did not apply (headless captures, a browser or a
2937
- // compositor without backdrop-filter): the blur was never something to
2938
- // count on, the host's color is.
2939
- var headerBg = calm && compactHostColour ? "rgb(".concat(compactHostColour.join(', '), ")")
2940
- : calm ? (0, colors_1.getMainBackgroundColor)(theme)
2941
- : "".concat((0, colors_1.changeDarkness)((0, colors_1.getMainBackgroundColor)(theme), 0.02)).concat((0, colors_1.percentToHexAlpha)(88));
2726
+ var _a, _b, _c, _d;
2727
+ var headerBg = "".concat((0, colors_1.changeDarkness)((0, colors_1.getMainBackgroundColor)(theme), 0.02)).concat((0, colors_1.percentToHexAlpha)(88));
2942
2728
  // Toolbar filters narrow the listed rows; the meter reflects the full set.
2943
2729
  var query = compactQuery.trim().toLowerCase();
2944
2730
  var matchesQuery = function (optionName) { var _a; return !query || (((_a = options === null || options === void 0 ? void 0 : options[optionName]) === null || _a === void 0 ? void 0 : _a.display_name) || optionName).toLowerCase().includes(query); };
@@ -3072,32 +2858,20 @@ var FormEngineImpl = function (_a) {
3072
2858
  set: [],
3073
2859
  optional: [],
3074
2860
  };
3075
- /* A box a row being edited cannot move into: a closed one - collapsed on screen, by the form or the reader,
3076
- or not drawn yet and to be drawn collapsed (Optional, with no search). The row's place there is not in the
3077
- page, so the row would leave it, and the caret with it. */
3078
- var boxIsClosed = function (box) {
3079
- var _a;
3080
- if (readOnly || (calm && compactNested))
3081
- return false;
3082
- if ((_a = statusBoxRefs.current[box]) === null || _a === void 0 ? void 0 : _a.isConnected)
3083
- return !openBoxes.isShown(box);
3084
- return (compactCollapsedGroupsProp !== null && compactCollapsedGroupsProp !== void 0 ? compactCollapsedGroupsProp : ['optional']).includes(box) && !query;
3085
- };
3086
- /* A row's box is what it holds now - the one rule the box headers, the readiness line, the meter and the
3087
- host's numbers count by (`getOptionBucket`). A row being edited moves with it: it is the same row in its new
3088
- box, its editor and caret kept (`rowPlaces`), where it was kept in the box it was opened in, and counted
3089
- elsewhere (Qlip build 489). Into a closed box it does not move until it is closed: an optional value cleared
3090
- as it is edited stays under the caret, not in a collapsed Optional box. `settledBucket` is the box a row is
3091
- shown in, which is what follows a field across the boxes (the flash below). */
2861
+ // Freeze the box of any field currently being edited (or whose one-of group
2862
+ // has an edited member) to its last settled box — so finishing an edit that
2863
+ // flips its status doesn't remount it in another box and steal focus.
3092
2864
  var stableBucketOf = function (entry) {
2865
+ var _a;
3093
2866
  var fresh = getOptionBucket(entry.name, entry.hidden);
3094
- var shownIn = settledBucket.current[entry.name];
3095
- if (shownIn &&
3096
- shownIn !== fresh &&
3097
- !entry.hidden &&
3098
- expandedOptions.includes(entry.name) &&
3099
- boxIsClosed(fresh)) {
3100
- return shownIn;
2867
+ var groupBeingEdited = !entry.hidden &&
2868
+ (((_a = options === null || options === void 0 ? void 0 : options[entry.name]) === null || _a === void 0 ? void 0 : _a.required_groups) || []).some(function (g) {
2869
+ return (requiredGroupsInfo.members[g] || []).some(function (m) { return expandedOptions.includes(m); });
2870
+ });
2871
+ if (!entry.hidden && (expandedOptions.includes(entry.name) || groupBeingEdited)) {
2872
+ var memo = settledBucket.current[entry.name];
2873
+ if (memo)
2874
+ return memo;
3101
2875
  }
3102
2876
  settledBucket.current[entry.name] = fresh;
3103
2877
  return fresh;
@@ -3179,29 +2953,21 @@ var FormEngineImpl = function (_a) {
3179
2953
  var stickyBoxHeaders = compactStickyBoxHeaders && !compactNested;
3180
2954
  var boxStickyOffset = compactStickyOffset + compactToolbarHeight;
3181
2955
  var STATUS_BOXES = [
3182
- // The first box is amber only once something in it is a fault. On a new form it
3183
- // holds the required fields still to fill in, which is not yet anything wrong.
3184
- readFirstAttentionFaultCount ?
3185
- {
3186
- key: 'attention',
3187
- label: (_a = compactBoxLabels === null || compactBoxLabels === void 0 ? void 0 : compactBoxLabels.attention) !== null && _a !== void 0 ? _a : feWords.boxAttention,
3188
- intent: 'warning',
3189
- icon: 'ErrorWarningLine',
3190
- }
3191
- : {
3192
- key: 'attention',
3193
- label: (_b = compactBoxLabels === null || compactBoxLabels === void 0 ? void 0 : compactBoxLabels.pending) !== null && _b !== void 0 ? _b : feWords.boxPending,
3194
- icon: 'CheckboxBlankCircleLine',
3195
- },
2956
+ {
2957
+ key: 'attention',
2958
+ label: (_a = compactBoxLabels === null || compactBoxLabels === void 0 ? void 0 : compactBoxLabels.attention) !== null && _a !== void 0 ? _a : feWords.boxAttention,
2959
+ intent: 'warning',
2960
+ icon: 'ErrorWarningLine',
2961
+ },
3196
2962
  {
3197
2963
  key: 'set',
3198
- label: (_c = compactBoxLabels === null || compactBoxLabels === void 0 ? void 0 : compactBoxLabels.set) !== null && _c !== void 0 ? _c : feWords.boxSet,
2964
+ label: (_b = compactBoxLabels === null || compactBoxLabels === void 0 ? void 0 : compactBoxLabels.set) !== null && _b !== void 0 ? _b : feWords.boxSet,
3199
2965
  intent: 'success',
3200
2966
  icon: 'CheckLine',
3201
2967
  },
3202
2968
  {
3203
2969
  key: 'optional',
3204
- label: (_d = compactBoxLabels === null || compactBoxLabels === void 0 ? void 0 : compactBoxLabels.optional) !== null && _d !== void 0 ? _d : feWords.boxOptional,
2970
+ label: (_c = compactBoxLabels === null || compactBoxLabels === void 0 ? void 0 : compactBoxLabels.optional) !== null && _c !== void 0 ? _c : feWords.boxOptional,
3205
2971
  icon: 'CheckboxBlankCircleLine',
3206
2972
  },
3207
2973
  ];
@@ -3215,17 +2981,7 @@ var FormEngineImpl = function (_a) {
3215
2981
  return Object.keys(absorbedBy).filter(function (absorbedName) { return absorbedBy[absorbedName] === hostName; });
3216
2982
  };
3217
2983
  var renderGroupRows = function (names) {
3218
- var renderRow = function (entry, clustered, clusterFirst, clusterLast) {
3219
- // a row is in one place at a time
3220
- if (stagedRows.has(entry.name))
3221
- return null;
3222
- var host = rowHosts.hostFor(entry.name);
3223
- if (drawingRows) {
3224
- stagedRows.set(entry.name, (0, rowPlaces_1.stagedRow)(drawRow(entry, clustered, clusterFirst, clusterLast), host, entry.name));
3225
- }
3226
- return (0, jsx_runtime_1.jsx)(rowPlaces_1.RowPlace, { host: host }, entry.name);
3227
- };
3228
- var drawRow = function (entry, clustered, clusterFirst, clusterLast) { return ((0, jsx_runtime_1.jsx)(CompactRow_1.CompactRow, { optionName: entry.name, optionField: entry.hidden ?
2984
+ var renderRow = function (entry, clustered, clusterFirst, clusterLast) { return ((0, jsx_runtime_1.jsx)(CompactRow_1.CompactRow, { optionName: entry.name, optionField: entry.hidden ?
3229
2985
  {
3230
2986
  type: getOptionSchemaStorageType(options === null || options === void 0 ? void 0 : options[entry.name], isRendererOnly),
3231
2987
  value: undefined,
@@ -3261,13 +3017,7 @@ var FormEngineImpl = function (_a) {
3261
3017
  // "Covers"/"Covered by" chips already say which member satisfies it.
3262
3018
  if (requiredGroupsInfo.satisfiedBy[grp])
3263
3019
  return railed;
3264
- // Amber once someone has been to the group (or a submit was attempted); until
3265
- // then it is still to fill in, in the quiet color, like its members.
3266
- var clusterVisited = memberEntries.some(function (e) { return getOptionStatus(e.name) !== 'pending'; });
3267
- var clusterColor = clusterVisited ? cWarning : cMuted;
3268
- // its words and mark: the same color, in the shade of it that reads on the tint
3269
- var clusterInk = clusterVisited ? rowInks.warning : rowInks.mutedReason;
3270
- return ((0, jsx_runtime_1.jsxs)(compactRowStyles_1.StyledRequiredClusterBox, { className: 'options-readfirst-required-cluster', "$border": "".concat(clusterColor, "33"), "$tint": "".concat(clusterColor, "0d"), "$calm": calm, children: [(0, jsx_runtime_1.jsxs)(compactRowStyles_1.StyledRequiredClusterHeader, { className: 'options-readfirst-required-cluster-header', "$color": clusterInk, "$calm": calm, children: [(0, jsx_runtime_1.jsx)(reqore_1.ReqoreIcon, { icon: 'LinkM', size: calm ? '13px' : '11px', style: { color: clusterInk } }), feWords.oneOfRequired] }), railed] }, grp));
3020
+ return ((0, jsx_runtime_1.jsxs)(compactRowStyles_1.StyledRequiredClusterBox, { className: 'options-readfirst-required-cluster', "$border": "".concat(cWarning, "33"), "$tint": "".concat(cWarning, "0d"), children: [(0, jsx_runtime_1.jsxs)(compactRowStyles_1.StyledRequiredClusterHeader, { "$color": rowInks.warning, children: [(0, jsx_runtime_1.jsx)(reqore_1.ReqoreIcon, { icon: 'LinkM', size: '11px', style: { color: rowInks.warning } }), feWords.oneOfRequired] }), railed] }, grp));
3271
3021
  });
3272
3022
  };
3273
3023
  // One schema group inside a status box: its thin sub-label, the group's
@@ -3278,115 +3028,32 @@ var FormEngineImpl = function (_a) {
3278
3028
  can be split across the shown and folded halves of a capped box, and its
3279
3029
  label must appear above whichever half holds its first row. */
3280
3030
  var renderBoxGroup = function (boxKey, groupName, only) {
3031
+ var groupConfig = groups === null || groups === void 0 ? void 0 : groups[groupName];
3281
3032
  var rows = only ?
3282
3033
  (buckets[boxKey][groupName] || []).filter(function (entry) { return only.has(entry.name); })
3283
3034
  : buckets[boxKey][groupName];
3284
3035
  if (only && !rows.length) {
3285
3036
  return null;
3286
3037
  }
3287
- return renderGroupBlock(groupName, rows);
3288
- };
3289
- /** A group's sub-label, subtitle and rows. `key` tells two halves of one
3290
- group apart when both render in the same body. */
3291
- var renderGroupBlock = function (groupName, rows, key) {
3292
- if (key === void 0) { key = groupName; }
3293
- var groupConfig = groups === null || groups === void 0 ? void 0 : groups[groupName];
3294
3038
  return ((0, jsx_runtime_1.jsxs)(react_2.default.Fragment, { children: [showGroupSubLabel(groupName) ?
3295
- (0, jsx_runtime_1.jsx)(compactRowStyles_1.StyledStatusBoxGroupLabel, { className: 'options-readfirst-group-label', "$calm": calm, "$color": cKey, children: (0, readFirst_1.getOptionGroupLabel)(groupName, groups) })
3039
+ (0, jsx_runtime_1.jsx)(compactRowStyles_1.StyledStatusBoxGroupLabel, { children: (0, readFirst_1.getOptionGroupLabel)(groupName, groups) })
3296
3040
  : null, showGroupSubLabel(groupName) && (groupConfig === null || groupConfig === void 0 ? void 0 : groupConfig.subtitle) ?
3297
- (0, jsx_runtime_1.jsx)(reqore_1.ReqoreP, { className: 'options-readfirst-group-subtitle', size: 'small', effect: { opacity: 0.6 }, style: calm ?
3298
- // Under the calm heading, at the rows' inset; the space below
3299
- // it is the next row's own padding.
3300
- { margin: 0, padding: "2px ".concat(compactRowStyles_1.CALM_INSET, " 4px") }
3301
- : {
3302
- marginTop: 2,
3303
- marginBottom: 8,
3304
- marginLeft: compactRowStyles_1.GROUP_INDENT,
3305
- paddingRight: 10,
3306
- }, children: groupConfig.subtitle })
3307
- : null, renderGroupRows(rows)] }, key));
3308
- };
3309
- /** The "N more fields" control: a quiet last row of the body it folds. */
3310
- var renderMoreRow = function (boxKey, count, open) { return ((0, jsx_runtime_1.jsxs)("button", { type: 'button', className: 'readfirst-row readfirst-more-row options-readfirst-more', "aria-expanded": open, onClick: function () {
3311
- return setExpandedMoreBoxes(function (prev) {
3312
- return prev.includes(boxKey) ? prev.filter(function (k) { return k !== boxKey; }) : __spreadArray(__spreadArray([], prev, true), [boxKey], false);
3313
- });
3314
- }, children: [(0, jsx_runtime_1.jsx)(reqore_1.ReqoreP, { size: 'small', effect: { opacity: 0.8 }, children: open ? feWords.showFewer : feWords.moreFields(count, boxKey === 'optional') }), (0, jsx_runtime_1.jsx)(reqore_1.ReqoreIcon, { icon: 'ArrowDownSLine', size: 'small', className: 'readfirst-more-chevron', effect: { opacity: 0.8 } })] })); };
3315
- var groupBodyProps = {
3316
- $calm: calm,
3317
- $hairline: cHairline,
3318
- $divider: cDivider,
3319
- $hover: cHover,
3320
- // The keyboard's ring in the one ring color (decision 030); amber said a good row was at fault
3321
- $focus: (0, readableColors_1.getFocusRingColor)(theme),
3322
- // Calm: the text color's wash, as a hovered row has; amber would say the group is wrong (a satisfied one
3323
- // stayed amber under the pointer)
3324
- $groupHighlight: calm ? cHover : "".concat(cWarning, "1f"),
3325
- $success: cSuccess,
3326
- $rowBg: cRowBg,
3327
- $lineColor: cGroupLine,
3328
- $moreBorder: cMoreBorder,
3329
- };
3330
- /* Calm, nested in a row (a list item, a hash field's sub-form): the item is
3331
- already the card, so its fields sit in it directly instead of in status
3332
- boxes, which drew a card inside the card. In schema order, so a row does
3333
- not move to another box under the caret as it is filled; a row that lacks
3334
- a value still says so where the value would be. The fields nobody has
3335
- added fold behind one quiet last row, the same control a capped box ends
3336
- with — and when nothing else is listed they ARE the form, so they show. */
3337
- var renderNestedRows = function () {
3338
- // Fields with no named group are one list here. The engine files them under
3339
- // two synthetic keys (the required ones and the rest), which the boxes
3340
- // never showed; in one list that split put a set Description above an
3341
- // empty Method Name. Named groups keep their sub-labels and their order.
3342
- var UNLABELLED = '';
3343
- var keyOf = function (groupName) { return (showGroupSubLabel(groupName) ? groupName : UNLABELLED); };
3344
- var nestedKeys = (0, lodash_1.uniq)(groupKeys.map(keyOf));
3345
- var listedByGroup = {};
3346
- var addableByGroup = {};
3347
- groupKeys.forEach(function (groupName) {
3348
- grouped[groupName].forEach(function (entry) {
3349
- var _a;
3350
- var target = entry.hidden ? addableByGroup : listedByGroup;
3351
- (target[_a = keyOf(groupName)] || (target[_a] = [])).push(entry);
3352
- });
3353
- });
3354
- // In the schema's order, not the order the values arrived in.
3355
- var schemaOrder = Object.keys(options || {});
3356
- var bySchema = function (a, b) {
3357
- return schemaOrder.indexOf(a.name) - schemaOrder.indexOf(b.name);
3358
- };
3359
- (0, lodash_1.forEach)(listedByGroup, function (rows) { return rows.sort(bySchema); });
3360
- (0, lodash_1.forEach)(addableByGroup, function (rows) { return rows.sort(bySchema); });
3361
- var renderNestedGroup = function (key, rows, half) {
3362
- return key === UNLABELLED ?
3363
- (0, jsx_runtime_1.jsx)(react_2.default.Fragment, { children: renderGroupRows(rows) }, "".concat(half, "-fields"))
3364
- : renderGroupBlock(key, rows, "".concat(half, "-").concat(key));
3365
- };
3366
- var listedGroups = nestedKeys.filter(function (key) { var _a; return (_a = listedByGroup[key]) === null || _a === void 0 ? void 0 : _a.length; });
3367
- var addableGroups = nestedKeys.filter(function (key) { var _a; return (_a = addableByGroup[key]) === null || _a === void 0 ? void 0 : _a.length; });
3368
- var addableCount = addableGroups.reduce(function (total, key) { return total + addableByGroup[key].length; }, 0);
3369
- var folds = listedGroups.length > 0;
3370
- var addableOpen = !folds || expandedMoreBoxes.includes('optional');
3371
- return ((0, jsx_runtime_1.jsxs)(compactRowStyles_1.StyledGroupBody, __assign({}, groupBodyProps, { className: "readfirst-nested-list".concat(compactNarrow ? ' readfirst-narrow' : ''), children: [listedGroups.map(function (key) { return renderNestedGroup(key, listedByGroup[key], 'listed'); }), folds && addableCount ? renderMoreRow('optional', addableCount, addableOpen) : null, addableOpen ?
3372
- addableGroups.map(function (key) { return renderNestedGroup(key, addableByGroup[key], 'addable'); })
3373
- : null] })));
3041
+ (0, jsx_runtime_1.jsx)(reqore_1.ReqoreP, { size: 'small', effect: { opacity: 0.6 }, style: {
3042
+ marginTop: 2,
3043
+ marginBottom: 8,
3044
+ marginLeft: compactRowStyles_1.GROUP_INDENT,
3045
+ paddingRight: 10,
3046
+ }, children: groupConfig.subtitle })
3047
+ : null, renderGroupRows(rows)] }, groupName));
3374
3048
  };
3375
3049
  return ((0, jsx_runtime_1.jsx)(optionsContext_1.OptionsContext.Provider, { value: { schema: options, value: availableOptions }, children: (0, jsx_runtime_1.jsx)(compactRowContext_1.CompactRowContext.Provider, { value: compactRowContextValue, children: (0, jsx_runtime_1.jsxs)(reqore_1.ReqoreErrorBoundary, { children: [showHelpForOption && ((0, jsx_runtime_1.jsx)(OptionsHelpDialog_1.OptionsHelpDialog, { onClose: function () { return setShowHelpForOption(undefined); }, option: options[showHelpForOption] })), (0, jsx_runtime_1.jsx)(compactToolbarContext_1.CompactToolbarContext.Provider, { value: compactToolbarContextValue, children: (0, jsx_runtime_1.jsxs)(StyledCompactWrap, { ref: setCompactWrap, className: 'options-readfirst-scroll', "$ownScroll": compactScroll === 'own' && !compactNested, children: [(0, jsx_runtime_1.jsxs)(compactRowStyles_1.StyledCompactPanel
3376
3050
  // Mirrors the toolbar's own search-row gate: when no search
3377
3051
  // row renders, the header is a thin strip and sits tight to
3378
3052
  // the first status box (see StyledCompactPanel).
3379
- , __assign({ "$tightHeader": !((compactToolbarParts === null || compactToolbarParts === void 0 ? void 0 : compactToolbarParts.search) && (0, size_1.default)(options) > 1), "$headerBg": compactNested ? 'transparent' : headerBg, "$nested": compactNested, "$calm": calm, "$stickyBoxes": compactStickyBoxHeaders && !compactNested, "$stackHeader": compactNarrow &&
3053
+ , __assign({ "$tightHeader": !((compactToolbarParts === null || compactToolbarParts === void 0 ? void 0 : compactToolbarParts.search) && (0, size_1.default)(options) > 1), "$headerBg": compactNested ? 'transparent' : headerBg, "$nested": compactNested, "$stickyBoxes": compactStickyBoxHeaders && !compactNested, "$stackHeader": compactNarrow &&
3380
3054
  !!((compactPanelProps === null || compactPanelProps === void 0 ? void 0 : compactPanelProps.label) ||
3381
3055
  (compactPanelProps === null || compactPanelProps === void 0 ? void 0 : compactPanelProps.icon) ||
3382
- ((_f = compactPanelProps === null || compactPanelProps === void 0 ? void 0 : compactPanelProps.actions) === null || _f === void 0 ? void 0 : _f.length)), flat: true,
3383
- // Calm: no surface and no lift at all. A theme that gives
3384
- // panels a surface of their own (Reqore's `theme.panel`) would
3385
- // otherwise paint this wrapper as a card around the section
3386
- // cards inside it. Transparent and un-raised, Reqore also drops
3387
- // the wrapper's horizontal padding, so the readiness line, the
3388
- // search and the sections share one left edge with the host.
3389
- raised: !calm, minimal: true, transparent: calm || undefined,
3056
+ ((_d = compactPanelProps === null || compactPanelProps === void 0 ? void 0 : compactPanelProps.actions) === null || _d === void 0 ? void 0 : _d.length)), flat: true, raised: true, minimal: true,
3390
3057
  // No panel background: the form sits transparently on whatever
3391
3058
  // hosts it (page, drawer, or — for an arg_schema field — the
3392
3059
  // parent's edit card) instead of stacking its own dark surface.
@@ -3438,163 +3105,117 @@ var FormEngineImpl = function (_a) {
3438
3105
  (0, jsx_runtime_1.jsx)(reqore_1.ReqoreMessage, { flat: true, opaque: false, size: 'small', children: readOnly && !query ? feWords.nothingSet : feWords.noFieldsMatch })
3439
3106
  : null, readOnly ?
3440
3107
  bucketCount('set') ?
3441
- (0, jsx_runtime_1.jsx)("div", { className: 'options-readfirst-read', style: { padding: calm ? 0 : '4px 4px 6px' }, children: (0, jsx_runtime_1.jsx)(compactRowStyles_1.StyledGroupBody, __assign({}, groupBodyProps, { className: "readfirst-read-list".concat(compactNarrow ? ' readfirst-narrow' : ''), children: bucketGroups.set.map(function (groupName) { return renderBoxGroup('set', groupName); }) })) })
3108
+ (0, jsx_runtime_1.jsx)("div", { className: 'options-readfirst-read', style: { padding: '4px 4px 6px' }, children: (0, jsx_runtime_1.jsx)(compactRowStyles_1.StyledGroupBody, { "$divider": cDivider, "$hover": cHover, "$focus": cWarning, "$success": cSuccess, "$rowBg": cRowBg, "$lineColor": cGroupLine, "$moreBorder": cMoreBorder, className: compactNarrow ? 'readfirst-narrow' : undefined, children: bucketGroups.set.map(function (groupName) { return renderBoxGroup('set', groupName); }) }) })
3442
3109
  : null
3443
- : calm && compactNested ? renderNestedRows()
3444
- : STATUS_BOXES.map(function (box) {
3445
- var groupsInBox = bucketGroups[box.key];
3446
- var count = bucketCount(box.key);
3447
- if (!count)
3448
- return null;
3449
- /* A row being edited is on show in the box it is in: neither the preselected split
3450
- nor a cap folds it away (it moves only into an open box - `boxIsClosed`). */
3451
- var isOpenRow = function (entry) { return expandedOptions.includes(entry.name); };
3452
- var hasPreselectedRows = boxHasPreselectedRows(box.key);
3453
- var wouldCollapse = compactCollapsedGroups.includes(box.key) &&
3454
- !query &&
3455
- !(box.key === 'optional' && onlyOptionalRows && !collapsedGroupsRequested);
3456
- // Only a box that was opened SOLELY to reveal a preselected
3457
- // row splits its body; a box that renders open anyway shows
3458
- // all of its groups as before.
3459
- var splitForPreselected = wouldCollapse && hasPreselectedRows;
3460
- var opensCollapsed = wouldCollapse && !hasPreselectedRows;
3461
- // Its rows are drawn while it is open: as the form opens it, or as the reader just
3462
- // did (the reveal below needs them in the box it scrolls to), or as its content says
3463
- drawingRows = openBoxes.drawsRows(box.key, !opensCollapsed || openedStatusBox === box.key);
3464
- // Which rows this box shows, and which fold away, decided at
3465
- // ROW level because `maxFieldsShown` counts fields — a
3466
- // group-level split can only ever cut at a group boundary.
3467
- // Group order is preserved so the visible rows read in the
3468
- // same order they would if nothing were folded.
3469
- var orderedRows = groupsInBox.flatMap(function (groupName) { return buckets[box.key][groupName] || []; });
3470
- // The number in the box's header counts the rows in it: what they
3471
- // hold now, as the line and the host count them (a field being
3472
- // edited moves box with its value - `stableBucketOf`).
3473
- var headerCount = readOnly ? count : (orderedRows.filter(function (entry) { return getOptionBucket(entry.name, entry.hidden) === box.key; }).length);
3474
- // Optional's own rule first: a box opened solely to reveal
3475
- // preselected rows offers those, not an arbitrary first-N.
3476
- var candidateRows = splitForPreselected ?
3477
- orderedRows.filter(function (entry) { return isPreselectedRow(entry) || isOpenRow(entry); })
3478
- : orderedRows;
3479
- // …then the cap applies to whatever that left - but for a row being edited.
3480
- var capped = maxFieldsShown !== undefined && candidateRows.length > maxFieldsShown;
3481
- var shownRows = capped ?
3482
- candidateRows.filter(function (entry, index) { return index < maxFieldsShown || isOpenRow(entry); })
3483
- : candidateRows;
3484
- var shownRowSet = new Set(shownRows.map(function (entry) { return entry.name; }));
3485
- // Everything the box holds that is not on show. Once the
3486
- // reader asks for more they get the whole box — withholding
3487
- // the non-preselected remainder behind a second control is
3488
- // the same defect one level down.
3489
- var deferredRowSet = new Set(orderedRows
3490
- .filter(function (entry) { return !shownRowSet.has(entry.name); })
3491
- .map(function (entry) { return entry.name; }));
3492
- var deferredCount = deferredRowSet.size;
3493
- var shownGroups = groupsInBox.filter(function (groupName) {
3494
- return (buckets[box.key][groupName] || []).some(function (entry) {
3495
- return shownRowSet.has(entry.name);
3496
- });
3497
- });
3498
- var deferredGroups = groupsInBox.filter(function (groupName) {
3499
- return (buckets[box.key][groupName] || []).some(function (entry) { return !shownRowSet.has(entry.name); });
3110
+ : STATUS_BOXES.map(function (box) {
3111
+ var groupsInBox = bucketGroups[box.key];
3112
+ var count = bucketCount(box.key);
3113
+ if (!count)
3114
+ return null;
3115
+ var hasPreselectedRows = boxHasPreselectedRows(box.key);
3116
+ var wouldCollapse = compactCollapsedGroups.includes(box.key) &&
3117
+ !query &&
3118
+ !(box.key === 'optional' && onlyOptionalRows && !collapsedGroupsRequested);
3119
+ // Only a box that was opened SOLELY to reveal a preselected
3120
+ // row splits its body; a box that renders open anyway shows
3121
+ // all of its groups as before.
3122
+ var splitForPreselected = wouldCollapse && hasPreselectedRows;
3123
+ // Which rows this box shows, and which fold away, decided at
3124
+ // ROW level because `maxFieldsShown` counts fields — a
3125
+ // group-level split can only ever cut at a group boundary.
3126
+ // Group order is preserved so the visible rows read in the
3127
+ // same order they would if nothing were folded.
3128
+ var orderedRows = groupsInBox.flatMap(function (groupName) { return buckets[box.key][groupName] || []; });
3129
+ // Optional's own rule first: a box opened solely to reveal
3130
+ // preselected rows offers those, not an arbitrary first-N.
3131
+ var candidateRows = splitForPreselected ? orderedRows.filter(isPreselectedRow) : orderedRows;
3132
+ // …then the cap applies to whatever that left.
3133
+ var capped = maxFieldsShown !== undefined && candidateRows.length > maxFieldsShown;
3134
+ var shownRows = capped ? candidateRows.slice(0, maxFieldsShown) : candidateRows;
3135
+ var shownRowSet = new Set(shownRows.map(function (entry) { return entry.name; }));
3136
+ // Everything the box holds that is not on show. Once the
3137
+ // reader asks for more they get the whole box — withholding
3138
+ // the non-preselected remainder behind a second control is
3139
+ // the same defect one level down.
3140
+ var deferredRowSet = new Set(orderedRows
3141
+ .filter(function (entry) { return !shownRowSet.has(entry.name); })
3142
+ .map(function (entry) { return entry.name; }));
3143
+ var deferredCount = deferredRowSet.size;
3144
+ var shownGroups = groupsInBox.filter(function (groupName) {
3145
+ return (buckets[box.key][groupName] || []).some(function (entry) {
3146
+ return shownRowSet.has(entry.name);
3500
3147
  });
3501
- var moreOpen = Boolean(query) || expandedMoreBoxes.includes(box.key);
3502
- var accent = box.key === 'attention' && readFirstAttentionFaultCount ? cWarning
3503
- : box.key === 'set' ? cSuccess
3504
- : cMuted;
3505
- // The muted "Optional" box reads as a quieter, recessed
3506
- // surface — a touch darker than the page rather than the
3507
- // faint grey tint the accent would give.
3508
- // Calm: every box is the same panel — no recessed one.
3509
- var boxBg = box.key === 'optional' && !calm ?
3510
- (0, colors_1.changeDarkness)((0, colors_1.getMainBackgroundColor)(theme), 0.06)
3511
- : undefined;
3512
- return ((0, jsx_runtime_1.jsxs)(compactRowStyles_1.StyledStatusBox, { "$accent": accent, "$bg": boxBg, "$calm": calm, "$surface": stickyBoxHeaders ?
3513
- calm ? cPanel
3514
- : (0, colors_1.getMainBackgroundColor)(theme)
3515
- : undefined, ref: function (node) {
3516
- statusBoxRefs.current[box.key] = node;
3517
- },
3518
- // Opening arms the reveal; collapsing disarms it, so a
3519
- // close never scrolls.
3520
- onCollapseChange: function (collapsed) {
3521
- return setOpenedStatusBox(collapsed ? undefined : box.key);
3522
- },
3523
- // Calm: an ordinary panel — Reqore paints the theme's
3524
- // panel surface and its hairline edge. The header stays
3525
- // minimal (no surface or rule of its own); the first
3526
- // row's hairline is the line under it.
3527
- flat: !calm, minimal: true,
3528
- /* The header stays on screen while its own box is
3529
- being read — see `compactStickyBoxHeaders`. Sticky
3530
- is bounded by its containing block, so the header
3531
- leaves with its box and only one is ever pinned. */
3532
- stickyHeader: stickyBoxHeaders, stickyHeaderOffset: stickyBoxHeaders ? boxStickyOffset : undefined, collapseButtonProps: { flat: true, minimal: true, size: 'small' }, collapsible: true,
3533
- // Which boxes start closed is the consumer's call
3534
- // (`compactCollapsedGroups`, default `['optional']`: the
3535
- // Optional box holds every not-yet-added field, so a form
3536
- // opens on what is in use). Two rules override it:
3537
- //
3538
- // A SEARCH forces every box open — ReqorePanel unmounts
3539
- // collapsed content, so a match inside a closed box would
3540
- // be unreachable. (isCollapsed is the panel's controllable
3541
- // state; manual toggling still works with no query set.)
3542
- //
3543
- // The Optional box stays open when it is the ONLY box,
3544
- // because collapsing it renders a card that looks empty and
3545
- // broken: an auth profile's Authorization block, whose nine
3546
- // requirement fields are all optional, showed as a titled
3547
- // card containing one collapsed "Optional 9" strip and
3548
- // nothing else. This does not generalise to the other two —
3549
- // a lone Set box collapsed is a deliberate ask, and its
3550
- // header still reports what is in there.
3551
- //
3552
- // A PRESELECTED row overrides it too: the schema asked
3553
- // for that field to be visible on a new form, so the
3554
- // box it lands in opens. The groups it does NOT appear
3555
- // in stay behind an inner collapse below, so opening
3556
- // the box reveals the preselected fields without also
3557
- // dumping every not-yet-added optional field on the
3558
- // author.
3559
- isCollapsed: opensCollapsed, label: calm ?
3560
- // One status dot and a word — and only where a
3561
- // person is needed. The count is a quiet number.
3562
- (0, jsx_runtime_1.jsxs)(compactRowStyles_1.StyledGroupHeader, { "$calm": true, children: [box.key === 'attention' && readFirstAttentionFaultCount ?
3563
- (0, jsx_runtime_1.jsx)(compactRowStyles_1.StyledStatusDot, { className: 'options-readfirst-group-dot', "$color": cWarning, "aria-hidden": true })
3564
- : null, (0, jsx_runtime_1.jsx)(reqore_1.ReqoreP, { effect: { weight: 'bold' }, size: 'normal', children: box.label }), headerCount ?
3565
- (0, jsx_runtime_1.jsx)(reqore_1.ReqoreSpan, { className: 'options-readfirst-group-count', size: 'small', effect: { opacity: 0.65 }, children: headerCount })
3566
- : null] })
3567
- : (0, jsx_runtime_1.jsxs)(compactRowStyles_1.StyledGroupHeader, { children: [(0, jsx_runtime_1.jsx)(reqore_1.ReqoreP, { effect: { weight: 'bold' }, size: 'normal', children: box.label }), headerCount ?
3568
- (0, jsx_runtime_1.jsx)(reqore_1.ReqoreTag, { size: 'small', minimal: true, compact: true, intent: box.intent, label: String(headerCount) })
3569
- : null] }), icon: calm ? undefined : box.icon,
3570
- /* ONE left edge: the title and the rows start where Reqore puts them.
3571
- Reqore pads the title bar and the padded content by the same amount
3572
- at their sides - its size's padding, or as much as clears the
3573
- corner (#715) - and the rows add nothing to it: a calm body draws
3574
- its rows full-bleed and takes their inset back (`$boxCorners`);
3575
- a classic row's text sits its own padding into its pill, and the
3576
- icon that starts the title moves in by as much. Neither knows what
3577
- Reqore pads by: a title padded for the corner and rows padded by a
3578
- number of their own were two edges (22px and 17px under a 14px
3579
- corner). */
3580
- iconProps: calm ? undefined : { style: { marginLeft: compactRowStyles_1.COMPACT_ROW_PAD_X } }, className: 'options-readfirst-group', contentStyle: calm ?
3581
- {
3582
- paddingTop: 0,
3583
- paddingBottom: 0,
3584
- // the rows' bands and hairlines reach the box's edges, its
3585
- // corners too, and no further
3586
- overflow: 'clip',
3587
- borderBottomLeftRadius: 'inherit',
3588
- borderBottomRightRadius: 'inherit',
3589
- }
3590
- : { paddingTop: 4, paddingBottom: 6 }, children: [(0, jsx_runtime_1.jsx)(rowPlaces_1.OpenBoxMark, { box: box.key, onShown: openBoxes.onShown }), (0, jsx_runtime_1.jsxs)(compactRowStyles_1.StyledGroupBody, __assign({}, groupBodyProps, { "$boxCorners": true, className: compactNarrow ? 'readfirst-narrow' : undefined, children: [shownGroups.map(function (groupName) {
3591
- return renderBoxGroup(box.key, groupName, shownRowSet);
3592
- }), deferredCount ? renderMoreRow(box.key, deferredCount, moreOpen) : null, deferredCount && moreOpen ?
3593
- deferredGroups.map(function (groupName) {
3594
- return renderBoxGroup(box.key, groupName, deferredRowSet);
3595
- })
3596
- : null] }))] }, box.key));
3597
- })] })), (0, jsx_runtime_1.jsx)(rowPlaces_1.RowStage, { rows: Array.from(stagedRows.values()) }), commitMode === 'batched' && !readOnly && dirtyOptionNames.length ?
3148
+ });
3149
+ var deferredGroups = groupsInBox.filter(function (groupName) {
3150
+ return (buckets[box.key][groupName] || []).some(function (entry) { return !shownRowSet.has(entry.name); });
3151
+ });
3152
+ var moreOpen = Boolean(query) || expandedMoreBoxes.includes(box.key);
3153
+ var accent = box.key === 'attention' ? cWarning
3154
+ : box.key === 'set' ? cSuccess
3155
+ : cMuted;
3156
+ // The muted "Optional" box reads as a quieter, recessed
3157
+ // surface — a touch darker than the page rather than the
3158
+ // faint grey tint the accent would give.
3159
+ var boxBg = box.key === 'optional' ?
3160
+ (0, colors_1.changeDarkness)((0, colors_1.getMainBackgroundColor)(theme), 0.06)
3161
+ : undefined;
3162
+ return ((0, jsx_runtime_1.jsx)(compactRowStyles_1.StyledStatusBox, { "$accent": accent, "$bg": boxBg, "$surface": stickyBoxHeaders ? (0, colors_1.getMainBackgroundColor)(theme) : undefined, ref: function (node) {
3163
+ statusBoxRefs.current[box.key] = node;
3164
+ },
3165
+ // Opening arms the reveal; collapsing disarms it, so a
3166
+ // close never scrolls.
3167
+ onCollapseChange: function (collapsed) {
3168
+ return setOpenedStatusBox(collapsed ? undefined : box.key);
3169
+ }, flat: true, minimal: true,
3170
+ /* The header stays on screen while its own box is
3171
+ being read — see `compactStickyBoxHeaders`. Sticky
3172
+ is bounded by its containing block, so the header
3173
+ leaves with its box and only one is ever pinned. */
3174
+ stickyHeader: stickyBoxHeaders, stickyHeaderOffset: stickyBoxHeaders ? boxStickyOffset : undefined, collapseButtonProps: { flat: true, minimal: true, size: 'small' }, collapsible: true,
3175
+ // Which boxes start closed is the consumer's call
3176
+ // (`compactCollapsedGroups`, default `['optional']`: the
3177
+ // Optional box holds every not-yet-added field, so a form
3178
+ // opens on what is in use). Two rules override it:
3179
+ //
3180
+ // A SEARCH forces every box open — ReqorePanel unmounts
3181
+ // collapsed content, so a match inside a closed box would
3182
+ // be unreachable. (isCollapsed is the panel's controllable
3183
+ // state; manual toggling still works with no query set.)
3184
+ //
3185
+ // The Optional box stays open when it is the ONLY box,
3186
+ // because collapsing it renders a card that looks empty and
3187
+ // broken: an auth profile's Authorization block, whose nine
3188
+ // requirement fields are all optional, showed as a titled
3189
+ // card containing one collapsed "Optional 9" strip and
3190
+ // nothing else. This does not generalise to the other two —
3191
+ // a lone Set box collapsed is a deliberate ask, and its
3192
+ // header still reports what is in there.
3193
+ //
3194
+ // A PRESELECTED row overrides it too: the schema asked
3195
+ // for that field to be visible on a new form, so the
3196
+ // box it lands in opens. The groups it does NOT appear
3197
+ // in stay behind an inner collapse below, so opening
3198
+ // the box reveals the preselected fields without also
3199
+ // dumping every not-yet-added optional field on the
3200
+ // author.
3201
+ isCollapsed: wouldCollapse && !hasPreselectedRows, label: (0, jsx_runtime_1.jsxs)(compactRowStyles_1.StyledGroupHeader, { children: [(0, jsx_runtime_1.jsx)(reqore_1.ReqoreP, { effect: { weight: 'bold' }, size: 'normal', children: box.label }), (0, jsx_runtime_1.jsx)(reqore_1.ReqoreTag, { size: 'small', minimal: true, compact: true, intent: box.intent, label: String(count) })] }), icon: box.icon, className: 'options-readfirst-group', padded: false, contentStyle: { padding: '4px 4px 6px' }, children: (0, jsx_runtime_1.jsxs)(compactRowStyles_1.StyledGroupBody, { "$divider": cDivider, "$hover": cHover, "$focus": cWarning, "$success": cSuccess, "$rowBg": cRowBg, "$lineColor": cGroupLine, "$moreBorder": cMoreBorder, className: compactNarrow ? 'readfirst-narrow' : undefined, children: [shownGroups.map(function (groupName) {
3202
+ return renderBoxGroup(box.key, groupName, shownRowSet);
3203
+ }), deferredCount ?
3204
+ (0, jsx_runtime_1.jsxs)("button", { type: 'button', className: 'readfirst-row readfirst-more-row options-readfirst-more', "aria-expanded": moreOpen, onClick: function () {
3205
+ return setExpandedMoreBoxes(function (prev) {
3206
+ return prev.includes(box.key) ?
3207
+ prev.filter(function (k) { return k !== box.key; })
3208
+ : __spreadArray(__spreadArray([], prev, true), [box.key], false);
3209
+ });
3210
+ }, children: [(0, jsx_runtime_1.jsx)(reqore_1.ReqoreP, { size: 'small', effect: { opacity: 0.8 }, children: moreOpen ?
3211
+ feWords.showFewer
3212
+ : feWords.moreFields(deferredCount, box.key === 'optional') }), (0, jsx_runtime_1.jsx)(reqore_1.ReqoreIcon, { icon: 'ArrowDownSLine', size: 'small', className: 'readfirst-more-chevron', effect: { opacity: 0.8 } })] })
3213
+ : null, deferredCount && moreOpen ?
3214
+ deferredGroups.map(function (groupName) {
3215
+ return renderBoxGroup(box.key, groupName, deferredRowSet);
3216
+ })
3217
+ : null] }) }, box.key));
3218
+ })] })), commitMode === 'batched' && !readOnly && dirtyOptionNames.length ?
3598
3219
  (0, jsx_runtime_1.jsx)(StyledCommitDock, { "$bg": cBg, "$border": cDivider, children: (0, jsx_runtime_1.jsxs)(reqore_1.ReqoreControlGroup, { className: 'options-readfirst-commitbar', verticalAlign: 'center', wrap: true, children: [(0, jsx_runtime_1.jsx)(reqore_1.ReqoreTag, { size: 'tiny', minimal: true, flat: true, compact: true, effect: { uppercase: true, spaced: 1 }, intent: 'warning', icon: 'EditLine', label: feWords.unsavedChanges(dirtyOptionNames.length) }), validityData.isValid ? null : ((0, jsx_runtime_1.jsx)(reqore_1.ReqoreTag, { size: 'tiny', minimal: true, flat: true, wrap: true, intent: 'danger', icon: 'ErrorWarningLine', className: 'options-readfirst-commit-blocked', label: (0, readFirst_1.describeBlockedSave)(validityData.invalidFields, options) })), (0, jsx_runtime_1.jsx)(reqore_1.ReqoreButton, { size: 'small', intent: 'success', icon: 'CheckLine', fixed: true, className: 'options-readfirst-save', disabled: !validityData.isValid, tooltip: validityData.isValid ? feWords.applyChanges : feWords.resolveInvalid, onClick: handleCommitClick, children: feWords.save }), (0, jsx_runtime_1.jsx)(reqore_1.ReqoreButton, { size: 'small', minimal: true, flat: true, fixed: true, icon: 'HistoryLine', className: 'options-readfirst-discard', onClick: handleRevertChangesClick, children: feWords.discard })] }) })
3599
3220
  : null] }) })] }) }) }));
3600
3221
  };
@@ -3631,7 +3252,7 @@ var FormEngineImpl = function (_a) {
3631
3252
  return renderCompact();
3632
3253
  }
3633
3254
  return ((0, jsx_runtime_1.jsx)(optionsContext_1.OptionsContext.Provider, { value: { schema: options, value: availableOptions }, children: (0, jsx_runtime_1.jsxs)(reqore_1.ReqoreErrorBoundary, { children: [showHelpForOption && ((0, jsx_runtime_1.jsx)(OptionsHelpDialog_1.OptionsHelpDialog, { onClose: function () { return setShowHelpForOption(undefined); }, option: options[showHelpForOption] })), recordRequiresSearchOptions && !readOnly ?
3634
- (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(reqore_1.ReqoreMessage, { intent: (0, formAppearance_1.calmNoteIntent)('info', calm), children: feWords.searchOptionsRequired }), (0, jsx_runtime_1.jsx)(reqore_1.ReqoreVerticalSpacer, { height: 10 })] })
3255
+ (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(reqore_1.ReqoreMessage, { intent: 'info', children: feWords.searchOptionsRequired }), (0, jsx_runtime_1.jsx)(reqore_1.ReqoreVerticalSpacer, { height: 10 })] })
3635
3256
  : null, (0, jsx_runtime_1.jsx)(reqore_1.ReqoreCollection, __assign({ minColumnWidth: '350px', flat: true, padded: false, minimal: true }, rest, { label: compact ? undefined : rest.label, responsiveTitle: false, inputProps: {
3636
3257
  disabled: (0, size_1.default)(availableOptions) < 2,
3637
3258
  }, labelSize: 4, filterable: 'filterable' in rest ? rest.filterable : !compact, sortable: 'sortable' in rest ? rest.sortable : !compact && (0, size_1.default)(availableOptions) > 1, defaultSortBy: null, contentRenderer: function (children) { return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, size_1.default)(validityData.invalidFields) && !readOnly ?
@@ -3643,7 +3264,7 @@ var FormEngineImpl = function (_a) {
3643
3264
  : null, (0, jsx_runtime_1.jsx)(HiddenFieldsNote_1.HiddenFieldsNote, { fields: hiddenFieldsWithValues }), children, (0, size_1.default)(filteredOptions) >= 1 && !readOnly ?
3644
3265
  (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(reqore_1.ReqoreVerticalSpacer, { height: 10 }), (0, jsx_runtime_1.jsx)(Select_1.SelectFormField, { items: optionalFields, onChange: function (val) { return handleAddOptionalFieldChange('options', val); }, placeholder: placeholder || feWords.moreOptions, minimal: true, icon: 'ListView', showDescription: false, fluid: true, size: rest.size })] })
3645
3266
  : null] })); }, sortButtonProps: { minimal: true }, showLayoutSwitch: false, style: { width: '100%' }, items: (0, map_1.default)(shownOptions, function (_a, optionName) {
3646
- var _b, _c, _d, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
3267
+ var _b, _c, _d, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
3647
3268
  var type = _a.type, other = __rest(_a, ["type"]);
3648
3269
  return ({
3649
3270
  label: ((_b = options[optionName]) === null || _b === void 0 ? void 0 : _b.display_name) || optionName,
@@ -3659,14 +3280,12 @@ var FormEngineImpl = function (_a) {
3659
3280
  cursor: 'help',
3660
3281
  }
3661
3282
  : undefined,
3662
- onClick: (0, fieldDescription_1.fieldHasLongDescription)(options[optionName]) ?
3663
- function () { return handleOptionLabelClick(optionName); }
3664
- : undefined,
3283
+ onClick: ((_f = options[optionName]) === null || _f === void 0 ? void 0 : _f.desc) ? function () { return handleOptionLabelClick(optionName); } : undefined,
3665
3284
  },
3666
- showLabelTooltip: !!((_f = options[optionName]) === null || _f === void 0 ? void 0 : _f.short_desc),
3285
+ showLabelTooltip: !!((_g = options[optionName]) === null || _g === void 0 ? void 0 : _g.short_desc),
3667
3286
  customLabelTooltip: {
3668
3287
  delay: 300,
3669
- content: ((0, jsx_runtime_1.jsx)(Description_1.Description, { longDescription: "".concat((_g = options[optionName]) === null || _g === void 0 ? void 0 : _g.short_desc).concat((0, fieldDescription_1.fieldHasLongDescription)(options[optionName]) ? feWords.clickToLearnMore : ''), margin: 'none' })),
3288
+ content: ((0, jsx_runtime_1.jsx)(Description_1.Description, { longDescription: "".concat((_h = options[optionName]) === null || _h === void 0 ? void 0 : _h.short_desc).concat(((_j = options[optionName]) === null || _j === void 0 ? void 0 : _j.desc) ? feWords.clickToLearnMore : ''), margin: 'none' })),
3670
3289
  },
3671
3290
  description: showFieldTypes ?
3672
3291
  [(0, qorusTypeCatalogue_1.optionTypeWords)(options[optionName], typeName), options[optionName].short_desc]
@@ -3676,7 +3295,7 @@ var FormEngineImpl = function (_a) {
3676
3295
  descriptionEffect: {
3677
3296
  textSize: '11px',
3678
3297
  opacity: optionDescOpacity,
3679
- underline: (0, fieldDescription_1.fieldHasLongDescription)(options[optionName]) ? 'underline dotted #878787' : undefined,
3298
+ underline: ((_k = options[optionName]) === null || _k === void 0 ? void 0 : _k.desc) ? 'underline dotted #878787' : undefined,
3680
3299
  },
3681
3300
  customTheme: {
3682
3301
  main: 'main:darken:1',
@@ -3713,7 +3332,7 @@ var FormEngineImpl = function (_a) {
3713
3332
  menu: [
3714
3333
  !readOnly &&
3715
3334
  type !== 'code-editor' &&
3716
- (((_h = options[optionName]) === null || _h === void 0 ? void 0 : _h.ui_type) || ((_j = options[optionName]) === null || _j === void 0 ? void 0 : _j.type)) !==
3335
+ (((_l = options[optionName]) === null || _l === void 0 ? void 0 : _l.ui_type) || ((_m = options[optionName]) === null || _m === void 0 ? void 0 : _m.type)) !==
3717
3336
  'code-editor' && {
3718
3337
  label: feWords.focusedEditing,
3719
3338
  icon: 'FullscreenLine',
@@ -3733,15 +3352,15 @@ var FormEngineImpl = function (_a) {
3733
3352
  !readOnly &&
3734
3353
  other.value &&
3735
3354
  !(0, lodash_1.isEqual)(other.value, (0, common_1.getDefaultValue)(options[optionName])) &&
3736
- !(((_k = options[optionName]) === null || _k === void 0 ? void 0 : _k.disabled) || ((_l = options[optionName]) === null || _l === void 0 ? void 0 : _l.readonly)) && {
3355
+ !(((_o = options[optionName]) === null || _o === void 0 ? void 0 : _o.disabled) || ((_p = options[optionName]) === null || _p === void 0 ? void 0 : _p.readonly)) && {
3737
3356
  label: feWords.removeValue,
3738
3357
  icon: 'CloseLine',
3739
3358
  className: 'options-item-remove',
3740
3359
  onClick: function () { return handleValueChange(optionName, undefined); },
3741
3360
  },
3742
3361
  !readOnly &&
3743
- !((_m = options[optionName]) === null || _m === void 0 ? void 0 : _m.preselected) &&
3744
- !((_o = options[optionName]) === null || _o === void 0 ? void 0 : _o.required) && {
3362
+ !((_q = options[optionName]) === null || _q === void 0 ? void 0 : _q.preselected) &&
3363
+ !((_r = options[optionName]) === null || _r === void 0 ? void 0 : _r.required) && {
3745
3364
  label: feWords.removeOption,
3746
3365
  icon: 'DeleteBinLine',
3747
3366
  intent: 'danger',
@@ -3757,8 +3376,8 @@ var FormEngineImpl = function (_a) {
3757
3376
  },
3758
3377
  ],
3759
3378
  }),
3760
- content: ((0, jsx_runtime_1.jsxs)(FocusedEditing_1.FocusedEditing, { isFullscreen: focusedEditing === optionName, onClose: function () { return setFocusedEditing(undefined); }, description: (_p = options[optionName]) === null || _p === void 0 ? void 0 : _p.display_name, intent: getIntent(optionName, type, other.value, other.op), children: [focusedEditing === optionName ?
3761
- (0, jsx_runtime_1.jsx)(Description_1.Description, { longDescription: (_q = options[optionName]) === null || _q === void 0 ? void 0 : _q.desc, shortDescription: (_r = options[optionName]) === null || _r === void 0 ? void 0 : _r.short_desc, longDescriptionShownByDefault: true })
3379
+ content: ((0, jsx_runtime_1.jsxs)(FocusedEditing_1.FocusedEditing, { isFullscreen: focusedEditing === optionName, onClose: function () { return setFocusedEditing(undefined); }, description: (_s = options[optionName]) === null || _s === void 0 ? void 0 : _s.display_name, intent: getIntent(optionName, type, other.value, other.op), children: [focusedEditing === optionName ?
3380
+ (0, jsx_runtime_1.jsx)(Description_1.Description, { longDescription: (_t = options[optionName]) === null || _t === void 0 ? void 0 : _t.desc, shortDescription: (_u = options[optionName]) === null || _u === void 0 ? void 0 : _u.short_desc, longDescriptionShownByDefault: true })
3762
3381
  : null, renderOption(optionName, __assign({ type: type }, other))] })),
3763
3382
  });
3764
3383
  }), defaultZoom: 1, zoomable: false, actions: __spreadArray(__spreadArray([], (rest.actions || []).map(function (action) { return (__assign(__assign({}, action), { minimal: true })); }), true), [
@@ -3796,15 +3415,9 @@ var FormEngineImpl = function (_a) {
3796
3415
  * hand is how one of them gets missed.
3797
3416
  */
3798
3417
  var FormEngine = function (props) {
3799
- var _a;
3800
- // The form's own `appearance` wins; without one it follows the form (or the
3801
- // host's provider) it sits in, so a nested sub-form never changes look
3802
- // halfway down its parent.
3803
- var inherited = (0, formAppearance_1.useFormAppearance)();
3804
- var appearance = (_a = props.appearance) !== null && _a !== void 0 ? _a : inherited;
3805
3418
  // what the host knows of references beyond the catalogue, for every chip the form draws (qorus#646)
3806
3419
  var referenceNames = (0, react_2.useMemo)(function () { var _a; return (_a = props.templateReferences) !== null && _a !== void 0 ? _a : NO_REFERENCE_NAMES; }, [props.templateReferences]);
3807
- return ((0, jsx_runtime_1.jsx)(markdownRendererContext_1.MarkdownRendererContext.Provider, { value: props.markdownRenderer, children: (0, jsx_runtime_1.jsx)(formAppearance_1.FormAppearanceProvider, { value: appearance, children: (0, jsx_runtime_1.jsx)(typeSentenceForm_1.TypeSentenceFormProvider, { children: (0, jsx_runtime_1.jsx)(referenceNames_1.TemplateReferenceNamesProvider, { value: referenceNames, children: (0, jsx_runtime_1.jsx)(FormEngineImpl, __assign({}, props)) }) }) }) }));
3420
+ return ((0, jsx_runtime_1.jsx)(markdownRendererContext_1.MarkdownRendererContext.Provider, { value: props.markdownRenderer, children: (0, jsx_runtime_1.jsx)(typeSentenceForm_1.TypeSentenceFormProvider, { children: (0, jsx_runtime_1.jsx)(referenceNames_1.TemplateReferenceNamesProvider, { value: referenceNames, children: (0, jsx_runtime_1.jsx)(FormEngineImpl, __assign({}, props)) }) }) }));
3808
3421
  };
3809
3422
  exports.FormEngine = FormEngine;
3810
3423
  var NO_REFERENCE_NAMES = {};