@qoretechnologies/reqraft 0.10.76-pr.145.gb1f8f29 → 0.10.76

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 (430) 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 -7
  19. package/dist/components/composer/Composer.d.ts.map +1 -1
  20. package/dist/components/composer/Composer.js +13 -18
  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 +200 -548
  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 +6 -42
  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 -12
  45. package/dist/components/form/engine/compactRowStyles.d.ts.map +1 -1
  46. package/dist/components/form/engine/compactRowStyles.js +46 -94
  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 +1 -3
  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 +14 -37
  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 -3
  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/file/File.d.ts +1 -1
  133. package/dist/components/form/fields/file/File.d.ts.map +1 -1
  134. package/dist/components/form/fields/file/File.js +6 -18
  135. package/dist/components/form/fields/file/File.js.map +1 -1
  136. package/dist/components/form/fields/long-string/LongString.d.ts +1 -7
  137. package/dist/components/form/fields/long-string/LongString.d.ts.map +1 -1
  138. package/dist/components/form/fields/long-string/LongString.js +5 -15
  139. package/dist/components/form/fields/long-string/LongString.js.map +1 -1
  140. package/dist/components/form/fields/markdown/Markdown.d.ts.map +1 -1
  141. package/dist/components/form/fields/markdown/Markdown.js +1 -3
  142. package/dist/components/form/fields/markdown/Markdown.js.map +1 -1
  143. package/dist/components/form/fields/number/Number.d.ts +1 -4
  144. package/dist/components/form/fields/number/Number.d.ts.map +1 -1
  145. package/dist/components/form/fields/number/Number.js +7 -21
  146. package/dist/components/form/fields/number/Number.js.map +1 -1
  147. package/dist/components/form/fields/object/Object.d.ts +1 -9
  148. package/dist/components/form/fields/object/Object.d.ts.map +1 -1
  149. package/dist/components/form/fields/object/Object.js +8 -21
  150. package/dist/components/form/fields/object/Object.js.map +1 -1
  151. package/dist/components/form/fields/radio-group/RadioGroup.d.ts.map +1 -1
  152. package/dist/components/form/fields/radio-group/RadioGroup.js +7 -13
  153. package/dist/components/form/fields/radio-group/RadioGroup.js.map +1 -1
  154. package/dist/components/form/fields/rich-text/RichText.d.ts.map +1 -1
  155. package/dist/components/form/fields/rich-text/RichText.js +3 -6
  156. package/dist/components/form/fields/rich-text/RichText.js.map +1 -1
  157. package/dist/components/form/fields/rich-text/useTemplateTags.d.ts +0 -2
  158. package/dist/components/form/fields/rich-text/useTemplateTags.d.ts.map +1 -1
  159. package/dist/components/form/fields/rich-text/useTemplateTags.js +1 -7
  160. package/dist/components/form/fields/rich-text/useTemplateTags.js.map +1 -1
  161. package/dist/components/form/fields/schema-definition/CatalogLeafForm.d.ts.map +1 -1
  162. package/dist/components/form/fields/schema-definition/CatalogLeafForm.js +8 -10
  163. package/dist/components/form/fields/schema-definition/CatalogLeafForm.js.map +1 -1
  164. package/dist/components/form/fields/schema-definition/CatalogNodeEditor.d.ts +1 -1
  165. package/dist/components/form/fields/schema-definition/CatalogNodeEditor.d.ts.map +1 -1
  166. package/dist/components/form/fields/schema-definition/CatalogNodeEditor.js +27 -39
  167. package/dist/components/form/fields/schema-definition/CatalogNodeEditor.js.map +1 -1
  168. package/dist/components/form/fields/schema-definition/Hint.d.ts +3 -4
  169. package/dist/components/form/fields/schema-definition/Hint.d.ts.map +1 -1
  170. package/dist/components/form/fields/schema-definition/Hint.js +2 -10
  171. package/dist/components/form/fields/schema-definition/Hint.js.map +1 -1
  172. package/dist/components/form/fields/schema-definition/InlineValidationBanner.d.ts.map +1 -1
  173. package/dist/components/form/fields/schema-definition/InlineValidationBanner.js +1 -3
  174. package/dist/components/form/fields/schema-definition/InlineValidationBanner.js.map +1 -1
  175. package/dist/components/form/fields/schema-definition/Loader.d.ts.map +1 -1
  176. package/dist/components/form/fields/schema-definition/Loader.js +2 -4
  177. package/dist/components/form/fields/schema-definition/Loader.js.map +1 -1
  178. package/dist/components/form/fields/schema-definition/MigrationsTab.d.ts.map +1 -1
  179. package/dist/components/form/fields/schema-definition/MigrationsTab.js +26 -31
  180. package/dist/components/form/fields/schema-definition/MigrationsTab.js.map +1 -1
  181. package/dist/components/form/fields/schema-definition/TableEditor.d.ts.map +1 -1
  182. package/dist/components/form/fields/schema-definition/TableEditor.js +1 -3
  183. package/dist/components/form/fields/schema-definition/TableEditor.js.map +1 -1
  184. package/dist/components/form/fields/schema-definition/TablesTab.d.ts.map +1 -1
  185. package/dist/components/form/fields/schema-definition/TablesTab.js +23 -25
  186. package/dist/components/form/fields/schema-definition/TablesTab.js.map +1 -1
  187. package/dist/components/form/fields/schema-definition/index.d.ts.map +1 -1
  188. package/dist/components/form/fields/schema-definition/index.js +14 -20
  189. package/dist/components/form/fields/schema-definition/index.js.map +1 -1
  190. package/dist/components/form/fields/select/Select.d.ts +1 -1
  191. package/dist/components/form/fields/select/Select.d.ts.map +1 -1
  192. package/dist/components/form/fields/select/Select.js +6 -13
  193. package/dist/components/form/fields/select/Select.js.map +1 -1
  194. package/dist/components/form/fields/select/SelectCollection.d.ts +2 -2
  195. package/dist/components/form/fields/select/SelectCollection.d.ts.map +1 -1
  196. package/dist/components/form/fields/select/SelectCollection.js +3 -11
  197. package/dist/components/form/fields/select/SelectCollection.js.map +1 -1
  198. package/dist/components/form/fields/template/TemplateBrowser.d.ts.map +1 -1
  199. package/dist/components/form/fields/template/TemplateBrowser.js +1 -3
  200. package/dist/components/form/fields/template/TemplateBrowser.js.map +1 -1
  201. package/dist/components/form/fields/template/TemplateField.d.ts +2 -2
  202. package/dist/components/form/fields/template/TemplateField.d.ts.map +1 -1
  203. package/dist/components/form/fields/template/TemplateField.js +57 -63
  204. package/dist/components/form/fields/template/TemplateField.js.map +1 -1
  205. package/dist/components/form/fields/template/TemplatePicker.d.ts +1 -7
  206. package/dist/components/form/fields/template/TemplatePicker.d.ts.map +1 -1
  207. package/dist/components/form/fields/template/TemplatePicker.js +16 -35
  208. package/dist/components/form/fields/template/TemplatePicker.js.map +1 -1
  209. package/dist/components/form/index.d.ts +0 -2
  210. package/dist/components/form/index.d.ts.map +1 -1
  211. package/dist/components/form/index.js +0 -2
  212. package/dist/components/form/index.js.map +1 -1
  213. package/dist/components/imageLightbox/ImageLightbox.d.ts.map +1 -1
  214. package/dist/components/imageLightbox/ImageLightbox.js +6 -10
  215. package/dist/components/imageLightbox/ImageLightbox.js.map +1 -1
  216. package/dist/components/log/Log.d.ts +1 -1
  217. package/dist/components/log/Log.d.ts.map +1 -1
  218. package/dist/components/log/Log.js +18 -21
  219. package/dist/components/log/Log.js.map +1 -1
  220. package/dist/components/menu/Menu.d.ts.map +1 -1
  221. package/dist/components/menu/Menu.js +1 -3
  222. package/dist/components/menu/Menu.js.map +1 -1
  223. package/dist/components/qonsoleSmartInput/useQonsoleSession.d.ts.map +1 -1
  224. package/dist/components/qonsoleSmartInput/useQonsoleSession.js +2 -3
  225. package/dist/components/qonsoleSmartInput/useQonsoleSession.js.map +1 -1
  226. package/dist/components/smartEditor/CompletionMenu.d.ts.map +1 -1
  227. package/dist/components/smartEditor/CompletionMenu.js +6 -13
  228. package/dist/components/smartEditor/CompletionMenu.js.map +1 -1
  229. package/dist/components/smartEditor/SmartEditor.d.ts.map +1 -1
  230. package/dist/components/smartEditor/SmartEditor.js +1 -3
  231. package/dist/components/smartEditor/SmartEditor.js.map +1 -1
  232. package/dist/components/smartEditor/completionStyle.d.ts +2 -17
  233. package/dist/components/smartEditor/completionStyle.d.ts.map +1 -1
  234. package/dist/components/smartEditor/completionStyle.js +4 -32
  235. package/dist/components/smartEditor/completionStyle.js.map +1 -1
  236. package/dist/components/smartEditor/templateCompletions.js +1 -1
  237. package/dist/components/smartEditor/templateCompletions.js.map +1 -1
  238. package/dist/components/smartEditor/useLspAutocomplete.d.ts +0 -5
  239. package/dist/components/smartEditor/useLspAutocomplete.d.ts.map +1 -1
  240. package/dist/components/smartEditor/useLspAutocomplete.js +20 -76
  241. package/dist/components/smartEditor/useLspAutocomplete.js.map +1 -1
  242. package/dist/components/supportTicket/AttachmentChips.d.ts.map +1 -1
  243. package/dist/components/supportTicket/AttachmentChips.js +2 -4
  244. package/dist/components/supportTicket/AttachmentChips.js.map +1 -1
  245. package/dist/components/supportTicket/InterfaceReferenceTags.d.ts +2 -3
  246. package/dist/components/supportTicket/InterfaceReferenceTags.d.ts.map +1 -1
  247. package/dist/components/supportTicket/InterfaceReferenceTags.js +6 -6
  248. package/dist/components/supportTicket/InterfaceReferenceTags.js.map +1 -1
  249. package/dist/components/supportTicket/ReferencePicker.d.ts +2 -3
  250. package/dist/components/supportTicket/ReferencePicker.d.ts.map +1 -1
  251. package/dist/components/supportTicket/ReferencePicker.js +25 -35
  252. package/dist/components/supportTicket/ReferencePicker.js.map +1 -1
  253. package/dist/components/supportTicket/TicketHeader.d.ts.map +1 -1
  254. package/dist/components/supportTicket/TicketHeader.js +1 -4
  255. package/dist/components/supportTicket/TicketHeader.js.map +1 -1
  256. package/dist/components/supportTicket/TicketMetaTags.d.ts +12 -19
  257. package/dist/components/supportTicket/TicketMetaTags.d.ts.map +1 -1
  258. package/dist/components/supportTicket/TicketMetaTags.js +6 -57
  259. package/dist/components/supportTicket/TicketMetaTags.js.map +1 -1
  260. package/dist/components/supportTicket/TicketReplyBox.d.ts +2 -3
  261. package/dist/components/supportTicket/TicketReplyBox.d.ts.map +1 -1
  262. package/dist/components/supportTicket/TicketReplyBox.js +18 -39
  263. package/dist/components/supportTicket/TicketReplyBox.js.map +1 -1
  264. package/dist/components/supportTicket/WorkspaceAccessStatus.d.ts +2 -10
  265. package/dist/components/supportTicket/WorkspaceAccessStatus.d.ts.map +1 -1
  266. package/dist/components/supportTicket/WorkspaceAccessStatus.js +17 -45
  267. package/dist/components/supportTicket/WorkspaceAccessStatus.js.map +1 -1
  268. package/dist/components/supportTicket/accessMeta.d.ts +1 -6
  269. package/dist/components/supportTicket/accessMeta.d.ts.map +1 -1
  270. package/dist/components/supportTicket/accessMeta.js +65 -83
  271. package/dist/components/supportTicket/accessMeta.js.map +1 -1
  272. package/dist/components/supportTicket/attachmentAccess.d.ts.map +1 -1
  273. package/dist/components/supportTicket/attachmentAccess.js +26 -14
  274. package/dist/components/supportTicket/attachmentAccess.js.map +1 -1
  275. package/dist/components/supportTicket/fileToAttachment.d.ts.map +1 -1
  276. package/dist/components/supportTicket/fileToAttachment.js +1 -4
  277. package/dist/components/supportTicket/fileToAttachment.js.map +1 -1
  278. package/dist/components/supportTicket/meta.d.ts +0 -22
  279. package/dist/components/supportTicket/meta.d.ts.map +1 -1
  280. package/dist/components/supportTicket/meta.js +72 -91
  281. package/dist/components/supportTicket/meta.js.map +1 -1
  282. package/dist/components/supportTicket/ticketModel.d.ts +1 -5
  283. package/dist/components/supportTicket/ticketModel.d.ts.map +1 -1
  284. package/dist/components/supportTicket/useLoadedImages.d.ts +0 -10
  285. package/dist/components/supportTicket/useLoadedImages.d.ts.map +1 -1
  286. package/dist/components/supportTicket/useLoadedImages.js +1 -64
  287. package/dist/components/supportTicket/useLoadedImages.js.map +1 -1
  288. package/dist/components/ticketReferences/TicketReferences.d.ts.map +1 -1
  289. package/dist/components/ticketReferences/TicketReferences.js +45 -56
  290. package/dist/components/ticketReferences/TicketReferences.js.map +1 -1
  291. package/dist/components/ticketThread/TicketThread.d.ts +2 -22
  292. package/dist/components/ticketThread/TicketThread.d.ts.map +1 -1
  293. package/dist/components/ticketThread/TicketThread.js +36 -57
  294. package/dist/components/ticketThread/TicketThread.js.map +1 -1
  295. package/dist/components/ticketThread/index.d.ts +1 -1
  296. package/dist/components/ticketThread/index.d.ts.map +1 -1
  297. package/dist/components/ticketThread/index.js +1 -2
  298. package/dist/components/ticketThread/index.js.map +1 -1
  299. package/dist/helpers/allowedValues.d.ts.map +1 -1
  300. package/dist/helpers/allowedValues.js +4 -11
  301. package/dist/helpers/allowedValues.js.map +1 -1
  302. package/dist/helpers/expressions.d.ts.map +1 -1
  303. package/dist/helpers/expressions.js +12 -7
  304. package/dist/helpers/expressions.js.map +1 -1
  305. package/dist/helpers/markdownText.d.ts +0 -9
  306. package/dist/helpers/markdownText.d.ts.map +1 -1
  307. package/dist/helpers/markdownText.js +2 -49
  308. package/dist/helpers/markdownText.js.map +1 -1
  309. package/dist/helpers/noDescription.d.ts +4 -4
  310. package/dist/helpers/noDescription.d.ts.map +1 -1
  311. package/dist/helpers/noDescription.js +6 -8
  312. package/dist/helpers/noDescription.js.map +1 -1
  313. package/dist/helpers/optionUiTypes.d.ts +3 -3
  314. package/dist/helpers/options.d.ts +2 -2
  315. package/dist/helpers/options.d.ts.map +1 -1
  316. package/dist/helpers/options.js +8 -11
  317. package/dist/helpers/options.js.map +1 -1
  318. package/dist/helpers/qorusTypeCatalogue.d.ts +1 -1
  319. package/dist/helpers/qorusTypeCatalogue.js +1 -1
  320. package/dist/helpers/reqraftLabels.d.ts +0 -83
  321. package/dist/helpers/reqraftLabels.d.ts.map +1 -1
  322. package/dist/helpers/reqraftLabels.js +11 -56
  323. package/dist/helpers/reqraftLabels.js.map +1 -1
  324. package/dist/helpers/singleLineString.d.ts.map +1 -1
  325. package/dist/helpers/singleLineString.js +0 -1
  326. package/dist/helpers/singleLineString.js.map +1 -1
  327. package/dist/helpers/templateItems.d.ts +1 -1
  328. package/dist/helpers/templateItems.js +1 -1
  329. package/dist/helpers/templates.js +1 -1
  330. package/dist/helpers/templates.js.map +1 -1
  331. package/dist/helpers/validations.d.ts +2 -14
  332. package/dist/helpers/validations.d.ts.map +1 -1
  333. package/dist/helpers/validations.js +178 -165
  334. package/dist/helpers/validations.js.map +1 -1
  335. package/dist/hooks/useWebSocket/useWebSocket.d.ts.map +1 -1
  336. package/dist/hooks/useWebSocket/useWebSocket.js +5 -6
  337. package/dist/hooks/useWebSocket/useWebSocket.js.map +1 -1
  338. package/dist/tracking/ui/ExperimentCard.d.ts +3 -3
  339. package/dist/tracking/ui/ExperimentCard.d.ts.map +1 -1
  340. package/dist/tracking/ui/ExperimentCard.js +45 -33
  341. package/dist/tracking/ui/ExperimentCard.js.map +1 -1
  342. package/dist/tracking/ui/ExperimentsOverlay.d.ts +3 -3
  343. package/dist/tracking/ui/ExperimentsOverlay.d.ts.map +1 -1
  344. package/dist/tracking/ui/ExperimentsOverlay.js +6 -8
  345. package/dist/tracking/ui/ExperimentsOverlay.js.map +1 -1
  346. package/dist/tracking/ui/card.d.ts +13 -9
  347. package/dist/tracking/ui/card.d.ts.map +1 -1
  348. package/dist/tracking/ui/card.js +107 -96
  349. package/dist/tracking/ui/card.js.map +1 -1
  350. package/dist/tracking/ui/client.d.ts +6 -0
  351. package/dist/tracking/ui/client.d.ts.map +1 -1
  352. package/dist/tracking/ui/client.js +2 -9
  353. package/dist/tracking/ui/client.js.map +1 -1
  354. package/package.json +2 -2
  355. package/dist/components/composer/labels.d.ts +0 -22
  356. package/dist/components/composer/labels.d.ts.map +0 -1
  357. package/dist/components/composer/labels.js +0 -15
  358. package/dist/components/composer/labels.js.map +0 -1
  359. package/dist/components/form/engine/ItemAttention.d.ts +0 -12
  360. package/dist/components/form/engine/ItemAttention.d.ts.map +0 -1
  361. package/dist/components/form/engine/ItemAttention.js +0 -33
  362. package/dist/components/form/engine/ItemAttention.js.map +0 -1
  363. package/dist/components/form/engine/formAppearance.d.ts +0 -96
  364. package/dist/components/form/engine/formAppearance.d.ts.map +0 -1
  365. package/dist/components/form/engine/formAppearance.js +0 -156
  366. package/dist/components/form/engine/formAppearance.js.map +0 -1
  367. package/dist/components/form/engine/rowLabelled.d.ts +0 -9
  368. package/dist/components/form/engine/rowLabelled.d.ts.map +0 -1
  369. package/dist/components/form/engine/rowLabelled.js +0 -12
  370. package/dist/components/form/engine/rowLabelled.js.map +0 -1
  371. package/dist/components/form/engine/rowPlaces.d.ts +0 -43
  372. package/dist/components/form/engine/rowPlaces.d.ts.map +0 -1
  373. package/dist/components/form/engine/rowPlaces.js +0 -163
  374. package/dist/components/form/engine/rowPlaces.js.map +0 -1
  375. package/dist/components/form/expressions/labels.d.ts +0 -143
  376. package/dist/components/form/expressions/labels.d.ts.map +0 -1
  377. package/dist/components/form/expressions/labels.js +0 -123
  378. package/dist/components/form/expressions/labels.js.map +0 -1
  379. package/dist/components/form/fields/ChoiceGroupHeading.d.ts +0 -22
  380. package/dist/components/form/fields/ChoiceGroupHeading.d.ts.map +0 -1
  381. package/dist/components/form/fields/ChoiceGroupHeading.js +0 -40
  382. package/dist/components/form/fields/ChoiceGroupHeading.js.map +0 -1
  383. package/dist/components/form/fields/allowed-values/savedValues.d.ts +0 -30
  384. package/dist/components/form/fields/allowed-values/savedValues.d.ts.map +0 -1
  385. package/dist/components/form/fields/allowed-values/savedValues.js +0 -39
  386. package/dist/components/form/fields/allowed-values/savedValues.js.map +0 -1
  387. package/dist/components/form/fields/labels.d.ts +0 -72
  388. package/dist/components/form/fields/labels.d.ts.map +0 -1
  389. package/dist/components/form/fields/labels.js +0 -47
  390. package/dist/components/form/fields/labels.js.map +0 -1
  391. package/dist/components/form/fields/schema-definition/labels.d.ts +0 -123
  392. package/dist/components/form/fields/schema-definition/labels.d.ts.map +0 -1
  393. package/dist/components/form/fields/schema-definition/labels.js +0 -113
  394. package/dist/components/form/fields/schema-definition/labels.js.map +0 -1
  395. package/dist/components/form/fields/template/templatesListProps.d.ts +0 -11
  396. package/dist/components/form/fields/template/templatesListProps.d.ts.map +0 -1
  397. package/dist/components/form/fields/template/templatesListProps.js +0 -37
  398. package/dist/components/form/fields/template/templatesListProps.js.map +0 -1
  399. package/dist/components/log/labels.d.ts +0 -25
  400. package/dist/components/log/labels.d.ts.map +0 -1
  401. package/dist/components/log/labels.js +0 -22
  402. package/dist/components/log/labels.js.map +0 -1
  403. package/dist/components/supportTicket/labels.d.ts +0 -155
  404. package/dist/components/supportTicket/labels.d.ts.map +0 -1
  405. package/dist/components/supportTicket/labels.js +0 -214
  406. package/dist/components/supportTicket/labels.js.map +0 -1
  407. package/dist/components/supportTicket/ticketAttentionInks.d.ts +0 -23
  408. package/dist/components/supportTicket/ticketAttentionInks.d.ts.map +0 -1
  409. package/dist/components/supportTicket/ticketAttentionInks.js +0 -42
  410. package/dist/components/supportTicket/ticketAttentionInks.js.map +0 -1
  411. package/dist/helpers/fieldDescription.d.ts +0 -16
  412. package/dist/helpers/fieldDescription.d.ts.map +0 -1
  413. package/dist/helpers/fieldDescription.js +0 -40
  414. package/dist/helpers/fieldDescription.js.map +0 -1
  415. package/dist/helpers/sentenceCase.d.ts +0 -9
  416. package/dist/helpers/sentenceCase.d.ts.map +0 -1
  417. package/dist/helpers/sentenceCase.js +0 -22
  418. package/dist/helpers/sentenceCase.js.map +0 -1
  419. package/dist/helpers/validationLabels.d.ts +0 -190
  420. package/dist/helpers/validationLabels.d.ts.map +0 -1
  421. package/dist/helpers/validationLabels.js +0 -210
  422. package/dist/helpers/validationLabels.js.map +0 -1
  423. package/dist/hooks/useDestructiveButtonProps.d.ts +0 -22
  424. package/dist/hooks/useDestructiveButtonProps.d.ts.map +0 -1
  425. package/dist/hooks/useDestructiveButtonProps.js +0 -46
  426. package/dist/hooks/useDestructiveButtonProps.js.map +0 -1
  427. package/dist/tracking/ui/labels.d.ts +0 -198
  428. package/dist/tracking/ui/labels.d.ts.map +0 -1
  429. package/dist/tracking/ui/labels.js +0 -171
  430. 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,7 +826,7 @@ 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
832
  var compactNarrow = !!compactWrapWidth && (0, compactRowStyles_1.isCompactNarrow)(compactWrapWidth, compactLabelColumn);
@@ -871,7 +844,7 @@ var FormEngineImpl = function (_a) {
871
844
  a search row and a field picker that each hide themselves when they have
872
845
  nothing to say, and what is left wraps differently at every form width.
873
846
  Zero when this form draws no toolbar at all. */
874
- var _12 = (0, react_2.useState)(0), compactToolbarHeight = _12[0], setCompactToolbarHeight = _12[1];
847
+ var _10 = (0, react_2.useState)(0), compactToolbarHeight = _10[0], setCompactToolbarHeight = _10[1];
875
848
  (0, react_2.useLayoutEffect)(function () {
876
849
  var wrap = compactWrapNode;
877
850
  if (!compact || !wrap || compactNested || !compactStickyBoxHeaders) {
@@ -911,38 +884,6 @@ var FormEngineImpl = function (_a) {
911
884
  the ResizeObserver never fires and a stale 124px would go on offsetting
912
885
  the box headers below a toolbar that is no longer there. */
913
886
  }, [compact, compactNested, compactStickyBoxHeaders, compactNarrow, compactWrapNode, options]);
914
- /* The colour a calm form sits on, for its pinned toolbar's glass.
915
-
916
- A calm form has no surface of its own, so the toolbar has to paint one to
917
- keep the rows that scroll under it from showing through the meter and the
918
- search — and it has to be the host's colour, or it draws a band across the
919
- form before anything has moved. The host is whatever paints first above the
920
- form: the page, a drawer's panel surface, a card. Read once it mounts (and
921
- when the theme changes), not assumed from the theme's main colour. */
922
- var _13 = (0, react_2.useState)(), compactHostColour = _13[0], setCompactHostColour = _13[1];
923
- (0, react_2.useLayoutEffect)(function () {
924
- if (!calm || !compact || compactNested || !compactWrapNode) {
925
- setCompactHostColour(undefined);
926
- return;
927
- }
928
- var _loop_1 = function (node) {
929
- var _a = (getComputedStyle(node).backgroundColor.match(/[\d.]+/g) || [])
930
- .slice(0, 4)
931
- .map(Number), r = _a[0], g = _a[1], b = _a[2], _b = _a[3], alpha = _b === void 0 ? 1 : _b;
932
- if (alpha > 0 && b !== undefined) {
933
- setCompactHostColour(function (prev) {
934
- 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];
935
- });
936
- return { value: void 0 };
937
- }
938
- };
939
- for (var node = compactWrapNode.parentElement; node; node = node.parentElement) {
940
- var state_1 = _loop_1(node);
941
- if (typeof state_1 === "object")
942
- return state_1.value;
943
- }
944
- setCompactHostColour(undefined);
945
- }, [calm, compact, compactNested, compactWrapNode, theme]);
946
887
  // Global label-column sizing: size the label column to the WIDEST field label
947
888
  // across the whole form, clamped to [MIN, MAX], and publish it as a CSS var on
948
889
  // the scroll wrap. Both the grid column and the value-surface offsets read the
@@ -991,8 +932,8 @@ var FormEngineImpl = function (_a) {
991
932
  var readRowHeights = (0, react_2.useRef)({});
992
933
  // Required-groups linkage: hovering a group chip highlights every member row;
993
934
  // clicking a sibling in the chip's popover scrolls to it and flashes it.
994
- var _14 = (0, react_2.useState)([]), highlightedOptions = _14[0], setHighlightedOptions = _14[1];
995
- var _15 = (0, react_2.useState)([]), flashedOptions = _15[0], setFlashedOptions = _15[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];
996
937
  var flashTimeout = (0, react_2.useRef)();
997
938
  var flashOptions = (0, react_2.useCallback)(function (optionNames, scrollToFirst) {
998
939
  if (scrollToFirst === void 0) { scrollToFirst = false; }
@@ -1027,34 +968,33 @@ var FormEngineImpl = function (_a) {
1027
968
  // Follow a field across panels: when its status bucket changes — e.g. you fill
1028
969
  // an optional field and it jumps to Set / Needs attention — scroll to its new
1029
970
  // row and flash it so it's easy to keep track of. `settledBucket` holds each
1030
- // field's current panel, so diffing it after every render catches the move the
1031
- // instant it lands in the new panel. A field being edited moves as its value
1032
- // does - the first character typed into an empty required field takes it to Set,
1033
- // the caret with it (`rowPlaces`) - and is followed the same way. Runs every
1034
- // 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.
1035
975
  var prevSettledBucket = (0, react_2.useRef)({});
1036
976
  (0, react_2.useEffect)(function () {
1037
977
  if (!compact)
1038
978
  return;
1039
979
  var cur = settledBucket.current;
1040
980
  var prev = prevSettledBucket.current;
1041
- 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); });
1042
982
  prevSettledBucket.current = __assign({}, cur);
1043
983
  if (moved) {
1044
984
  flashOptions([moved], true);
1045
985
  }
1046
986
  });
1047
987
  // Info panels auto-open on Tier-1 content; the per-row user override sticks.
1048
- var _16 = (0, react_2.useState)({}), infoPanelOverrides = _16[0], setInfoPanelOverrides = _16[1];
988
+ var _13 = (0, react_2.useState)({}), infoPanelOverrides = _13[0], setInfoPanelOverrides = _13[1];
1049
989
  // Toolbar filters affect the listed rows only — the meter reflects the full set.
1050
- var _17 = (0, react_2.useState)(false), requiredOnly = _17[0], setRequiredOnly = _17[1];
1051
- var _18 = (0, react_2.useState)(''), compactQuery = _18[0], setCompactQuery = _18[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];
1052
992
  // Compact field sort (Fields menu → "Sort by"); 'schema' = declared order.
1053
- var _19 = (0, react_2.useState)('schema'), compactSort = _19[0], setCompactSort = _19[1];
1054
- var _20 = (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 ({
1055
995
  fields: (0, exports.fixOptions)(value, options || {}, undefined, isRendererOnly),
1056
996
  meta: undefined,
1057
- }); }), localValue = _20[0], setLocalValue = _20[1];
997
+ }); }), localValue = _17[0], setLocalValue = _17[1];
1058
998
  var originalValue = (0, react_2.useRef)();
1059
999
  // Track the last value we emitted via onChange so we can skip re-applying fixOptions
1060
1000
  // when the parent echoes it back as the new value prop (controlled component loop prevention)
@@ -1112,7 +1052,7 @@ var FormEngineImpl = function (_a) {
1112
1052
  originalValue.current = localValue.fields;
1113
1053
  }
1114
1054
  var unavailableOptionsCount = (0, react_2.useRef)(0);
1115
- var _21 = (0, useQorusTypes_1.useQorusTypes)(), compactValue = _21.compactValue, typesLoading = _21.loading;
1055
+ var _18 = (0, useQorusTypes_1.useQorusTypes)(), compactValue = _18.compactValue, typesLoading = _18.loading;
1116
1056
  // an option's type in words, while the form shows field types (qorus#646: it said the type's code, `<string>`)
1117
1057
  var typeName = (0, typeSentenceForm_1.useTypeName)();
1118
1058
  var templates = (0, useTemplates_1.useTemplates)(allowTemplates, stringTemplates, interfaceContext);
@@ -1855,11 +1795,6 @@ var FormEngineImpl = function (_a) {
1855
1795
  return newValue;
1856
1796
  }
1857
1797
  if (showInvalidOptionsOnly &&
1858
- // An open row stays while the reader is in it, as its box does
1859
- // (`stableBucketOf`): the first character typed into an empty required
1860
- // field makes it valid, and hiding it then would pull the field out
1861
- // from under the caret mid-word.
1862
- !expandedOptions.includes(optionName) &&
1863
1798
  isOptionValid(optionName, (0, exports.getOptionFieldStorageType)(optionName, option.type, options, operators, option.op, isRendererOnly, optionHoldsExpression(option)), option.value)) {
1864
1799
  return newValue;
1865
1800
  }
@@ -1868,7 +1803,6 @@ var FormEngineImpl = function (_a) {
1868
1803
  }, [
1869
1804
  dependencyLockedNames,
1870
1805
  showInvalidOptionsOnly,
1871
- expandedOptions,
1872
1806
  isRendererOnly,
1873
1807
  JSON.stringify(availableOptions),
1874
1808
  JSON.stringify(options),
@@ -1924,17 +1858,8 @@ var FormEngineImpl = function (_a) {
1924
1858
  covered: covered,
1925
1859
  invalid: invalid,
1926
1860
  warned: msgIntent === 'warning',
1927
- // a one-of member, once anyone has been to its group (`hasBeenToTheField`)
1928
- visited: (0, readFirst_1.hasBeenToTheField)(name, {
1929
- visitedOptions: visitedOptions,
1930
- revealRequired: revealRequired,
1931
- requiredGroups: reqGroups,
1932
- groupMembers: requiredGroupsInfo.members,
1933
- }),
1934
1861
  });
1935
1862
  }, [
1936
- revealRequired,
1937
- visitedOptions,
1938
1863
  isRendererOnly,
1939
1864
  JSON.stringify(options),
1940
1865
  JSON.stringify(availableOptions),
@@ -1964,37 +1889,6 @@ var FormEngineImpl = function (_a) {
1964
1889
  // a hidden field (its `depends_on` does not hold) is not in the form, nor in its counts
1965
1890
  function (name) { return !dependencyLockedNames.includes(name) && getOptionBucket(name) === 'attention'; }).length;
1966
1891
  }, [JSON.stringify(availableOptions), getOptionBucket, dependencyLockedNames]);
1967
- // How many of those are faults rather than only still to fill in (`pending`). Zero
1968
- // on a new form, so its first box reads "To fill in" without amber.
1969
- var readFirstAttentionFaultCount = (0, react_2.useMemo)(function () {
1970
- return Object.keys(availableOptions || {}).filter(function (name) { return getOptionBucket(name) === 'attention' && getOptionStatus(name) !== 'pending'; }).length;
1971
- }, [JSON.stringify(availableOptions), getOptionBucket, getOptionStatus]);
1972
- /* Fields whose value fails but that are not in the first box: an optional field its host says is wrong
1973
- (`invalid_reason`) stays among the optional ones. They make the form "Incomplete", so the readiness line counts
1974
- them with the faults: it said "Incomplete" and nothing else, with nothing to tell the reader what. */
1975
- var readFirstFaultsOutsideBox = (0, react_2.useMemo)(function () {
1976
- return validityData.invalidFields.filter(function (_a) {
1977
- var fieldName = _a.fieldName;
1978
- return !!(availableOptions === null || availableOptions === void 0 ? void 0 : availableOptions[fieldName]) &&
1979
- !dependencyLockedNames.includes(fieldName) &&
1980
- getOptionBucket(fieldName) !== 'attention';
1981
- }).length;
1982
- }, [validityData, JSON.stringify(availableOptions), dependencyLockedNames, getOptionBucket]);
1983
- // The same two numbers, to a host that draws its own submit control from them.
1984
- var onAttentionChangeRef = (0, react_2.useRef)(onAttentionChange);
1985
- onAttentionChangeRef.current = onAttentionChange;
1986
- // What the host found wrong outside the fields: in the line and in what the host is told.
1987
- var outsideAttentionCount = Math.max(0, (_b = outsideAttention === null || outsideAttention === void 0 ? void 0 : outsideAttention.count) !== null && _b !== void 0 ? _b : 0);
1988
- (0, react_2.useEffect)(function () {
1989
- var _a;
1990
- /* The line's numbers, to the one: a field its host says is wrong outside the first box (`readFirstFaultsOutsideBox`)
1991
- is counted in the line, and so in what the host is told - the host's submit read ready while the line said
1992
- "Incomplete · 1 need attention". */
1993
- (_a = onAttentionChangeRef.current) === null || _a === void 0 ? void 0 : _a.call(onAttentionChangeRef, {
1994
- count: readFirstAttentionCount + readFirstFaultsOutsideBox + outsideAttentionCount,
1995
- faults: readFirstAttentionFaultCount + readFirstFaultsOutsideBox + outsideAttentionCount,
1996
- });
1997
- }, [readFirstAttentionCount, readFirstAttentionFaultCount, readFirstFaultsOutsideBox, outsideAttentionCount]);
1998
1892
  var getIntent = (0, react_2.useCallback)(
1999
1893
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
2000
1894
  function (optName, type, optValue, _op) {
@@ -2265,7 +2159,7 @@ var FormEngineImpl = function (_a) {
2265
2159
  }
2266
2160
  hasAutoFocusedRef.current = true;
2267
2161
  var entered = event.target;
2268
- if ((0, rowFocus_2.isTypingControl)(entered)) {
2162
+ if ((0, rowFocus_1.isTypingControl)(entered)) {
2269
2163
  return;
2270
2164
  }
2271
2165
  var target = firstAttentionRow();
@@ -2293,48 +2187,6 @@ var FormEngineImpl = function (_a) {
2293
2187
  compactWrapNode.removeEventListener('focusin', onFocusIn);
2294
2188
  };
2295
2189
  }, [autoFocusFirstRequired, compact, compactWrapNode]);
2296
- // A submit that could not go is answered with where to type: each new
2297
- // `focusAttentionRequest` opens the first field that needs attention and puts the
2298
- // caret in it. The host's submit button holds the caret at that moment, and an open
2299
- // row never takes a caret held outside it (CompactRow), so the button lets go of it
2300
- // here first; the person asked to submit, and this is the answer to that. It picks
2301
- // the field the arrival scan above would (`firstAttentionRow`), and spends that scan:
2302
- // the person has been taken to a field now.
2303
- var lastFocusRequest = (0, react_2.useRef)(focusAttentionRequest);
2304
- (0, react_2.useEffect)(function () {
2305
- var _a;
2306
- if (focusAttentionRequest === lastFocusRequest.current) {
2307
- return;
2308
- }
2309
- lastFocusRequest.current = focusAttentionRequest;
2310
- if (!focusAttentionRequest || !compact || !options) {
2311
- return;
2312
- }
2313
- var target = firstAttentionRow();
2314
- if (!target) {
2315
- return;
2316
- }
2317
- hasAutoFocusedRef.current = true;
2318
- var wrap = compactWrapNodeRef.current;
2319
- var active = document.activeElement;
2320
- if (active && active !== document.body && !(wrap === null || wrap === void 0 ? void 0 : wrap.contains(active))) {
2321
- active.blur();
2322
- }
2323
- if (!expandedOptions.includes(target)) {
2324
- // The row's own open effect reveals it and takes the caret.
2325
- openFirstAttentionRow(target);
2326
- return;
2327
- }
2328
- // Already open (the field the form opened on arrival): its open effect has run,
2329
- // so the caret goes to its control here.
2330
- var row = wrap === null || wrap === void 0 ? void 0 : wrap.querySelector("[data-field=\"".concat(target, "\"]"));
2331
- if (row) {
2332
- (0, revealRow_1.revealRow)(row, 'auto');
2333
- (_a = (0, rowFocus_1.findRowFocusTarget)(row.querySelector('.options-readfirst-row-editor'), {
2334
- textEntryOnly: row.classList.contains('options-readfirst-card'),
2335
- })) === null || _a === void 0 ? void 0 : _a.focus({ preventScroll: true });
2336
- }
2337
- }, [focusAttentionRequest]);
2338
2190
  // Read-first completion summary (how many shown options have a value set),
2339
2191
  // surfaced as a progress meter at the top of the compact form.
2340
2192
  var readFirstCompletion = (0, react_2.useMemo)(function () {
@@ -2510,7 +2362,7 @@ var FormEngineImpl = function (_a) {
2510
2362
  return null;
2511
2363
  var items = schemaMsgs.map(function (_a, index) {
2512
2364
  var intent = _a.intent, title = _a.title, content = _a.content;
2513
- 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',
2514
2366
  // Compact: flat (no border) to match the read-row info panels;
2515
2367
  // classic forms keep the bordered, bottom-margined message.
2516
2368
  flat: compact || undefined, margin: compact ? undefined : 'bottom', children: content }, title || index));
@@ -2610,10 +2462,7 @@ var FormEngineImpl = function (_a) {
2610
2462
  readOnly ||
2611
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) ?
2612
2464
  getCustomMenuTemplateItems(optionName)
2613
- : 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,
2614
- // Open is not left: a field the form opened for typing (the first empty
2615
- // one, on a new form) says what it needs without already being wrong.
2616
- 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) ?
2617
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)({
2618
2467
  label: (optionSchema === null || optionSchema === void 0 ? void 0 : optionSchema.display_name) || optionName,
2619
2468
  operatorKeys: operatorParts,
@@ -2647,12 +2496,10 @@ var FormEngineImpl = function (_a) {
2647
2496
  getTypeForOption,
2648
2497
  inheritedScopes,
2649
2498
  inheritedFromParent,
2650
- revealRequired,
2651
- visitedOptions,
2652
2499
  ]);
2653
2500
  // Compact (read-first) rendering.
2654
2501
  // Theme-derived colors so the flat-row layout adapts to light/dark/custom themes.
2655
- 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';
2656
2503
  // Text emphasis tiers via reqore's readable-color helper (key = full readable
2657
2504
  // text, muted = its dimmed variant, faint = the dimmed variant softened
2658
2505
  // further) instead of hand-rolled hex-alpha suffixes on the raw text color.
@@ -2661,10 +2508,8 @@ var FormEngineImpl = function (_a) {
2661
2508
  var cFaint = "".concat(cMuted, "99");
2662
2509
  var cDivider = "".concat(cText, "14");
2663
2510
  var cHover = "".concat(cText, "0d");
2664
- // Calm: the intents as words that read on the section surface, not the
2665
- // theme's fills (see `getCalmIntentText`). Dots and edges take them too.
2666
- 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';
2667
- 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';
2668
2513
  var cInfo = ((_f = theme === null || theme === void 0 ? void 0 : theme.intents) === null || _f === void 0 ? void 0 : _f.info) || '#3b8eea';
2669
2514
  var cSuccess = ((_g = theme === null || theme === void 0 ? void 0 : theme.intents) === null || _g === void 0 ? void 0 : _g.success) || '#36b37e';
2670
2515
  // the rows' own words and marks, in colors that read on every surface a row is drawn on
@@ -2682,10 +2527,6 @@ var FormEngineImpl = function (_a) {
2682
2527
  // The "N more fields" row's dashed edge. Well above the divider tint: this
2683
2528
  // one is an affordance the reader has to notice, not a hairline between rows.
2684
2529
  var cMoreBorder = "".concat(cText, "4d");
2685
- // Calm: the section surface and its hairline, from the theme's panel (the
2686
- // same surface and edge Reqore gives the section panels themselves).
2687
- var cPanel = (0, formAppearance_1.getCalmPanelSurface)(theme);
2688
- var cHairline = (0, formAppearance_1.getCalmPanelHairline)(theme);
2689
2530
  // The closure surface the extracted CompactRow reads through context. Refs and
2690
2531
  // setters are stable; the state/memo/handler fields change identity as they do
2691
2532
  // today, so a row re-renders exactly when its inputs do.
@@ -2705,8 +2546,6 @@ var FormEngineImpl = function (_a) {
2705
2546
  cardEditorTypes: cardEditorTypes,
2706
2547
  showAllDescriptions: showAllDescriptions,
2707
2548
  expandedOptions: expandedOptions,
2708
- visitedOptions: visitedOptions,
2709
- revealRequired: revealRequired,
2710
2549
  highlightedOptions: highlightedOptions,
2711
2550
  flashedOptions: flashedOptions,
2712
2551
  infoPanelOverrides: infoPanelOverrides,
@@ -2759,8 +2598,6 @@ var FormEngineImpl = function (_a) {
2759
2598
  cardEditorTypes,
2760
2599
  showAllDescriptions,
2761
2600
  expandedOptions,
2762
- visitedOptions,
2763
- revealRequired,
2764
2601
  highlightedOptions,
2765
2602
  flashedOptions,
2766
2603
  infoPanelOverrides,
@@ -2804,22 +2641,13 @@ var FormEngineImpl = function (_a) {
2804
2641
  var compactToolbarParts = (0, react_2.useMemo)(function () {
2805
2642
  if (compactToolbar === false)
2806
2643
  return null;
2807
- // A calm sub-form nested in a row (a list item, a hash field) draws only its
2808
- // fields. Its readiness is said once, by the item it sits in, and each row
2809
- // says what it lacks; a search over two to six fields helps nobody, and one
2810
- // per item stacked a second search box under the form's own for every item.
2811
- if (calm && compactNested)
2812
- return null;
2813
2644
  var all = { completion: true, search: true, fields: true, help: true };
2814
2645
  return compactToolbar === true ? all : __assign(__assign({}, all), compactToolbar);
2815
- }, [JSON.stringify(compactToolbar), calm, compactNested]);
2646
+ }, [JSON.stringify(compactToolbar)]);
2816
2647
  var compactToolbarContextValue = (0, react_2.useMemo)(function () { return ({
2817
2648
  readOnly: readOnly,
2818
2649
  invalidCount: (0, size_1.default)(validityData.invalidFields),
2819
- attentionCount: readFirstAttentionCount + readFirstFaultsOutsideBox,
2820
- attentionFaultCount: readFirstAttentionFaultCount + readFirstFaultsOutsideBox,
2821
- outsideAttentionCount: outsideAttentionCount,
2822
- onRevealOutside: outsideAttention === null || outsideAttention === void 0 ? void 0 : outsideAttention.onReveal,
2650
+ attentionCount: readFirstAttentionCount,
2823
2651
  completion: readFirstCompletion,
2824
2652
  showInvalidOnly: showInvalidOptionsOnly,
2825
2653
  onToggleInvalidOnly: handleToggleInvalidOnly,
@@ -2866,8 +2694,6 @@ var FormEngineImpl = function (_a) {
2866
2694
  onReadOnlyActivate,
2867
2695
  validityData,
2868
2696
  readFirstAttentionCount,
2869
- readFirstAttentionFaultCount,
2870
- readFirstFaultsOutsideBox,
2871
2697
  readFirstCompletion,
2872
2698
  showInvalidOptionsOnly,
2873
2699
  handleToggleInvalidOnly,
@@ -2897,22 +2723,8 @@ var FormEngineImpl = function (_a) {
2897
2723
  // removes it, and then the header carries just the consumer's own actions.
2898
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]);
2899
2725
  var renderCompact = function () {
2900
- var _a, _b, _c, _d, _f;
2901
- /* The rows of this render, each drawn at the stage into its own node; the boxes draw places for them
2902
- (`renderRow`). A row that changes box is moved, not drawn anew (`rowPlaces`). */
2903
- var stagedRows = new Map();
2904
- // Whether the box being drawn shows its rows: a collapsed one keeps only their places (`useOpenBoxes`)
2905
- var drawingRows = true;
2906
- // Calm: the host's own colour (see `compactHostColour`), so the pinned
2907
- // toolbar is invisible until something scrolls under it - and opaque, so
2908
- // what scrolls under it does not read through. At 88% with a blur the rows
2909
- // still showed through crisply around the readiness line and the search
2910
- // wherever the blur did not apply (headless captures, a browser or a
2911
- // compositor without backdrop-filter): the blur was never something to
2912
- // count on, the host's color is.
2913
- var headerBg = calm && compactHostColour ? "rgb(".concat(compactHostColour.join(', '), ")")
2914
- : calm ? (0, colors_1.getMainBackgroundColor)(theme)
2915
- : "".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));
2916
2728
  // Toolbar filters narrow the listed rows; the meter reflects the full set.
2917
2729
  var query = compactQuery.trim().toLowerCase();
2918
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); };
@@ -3046,32 +2858,20 @@ var FormEngineImpl = function (_a) {
3046
2858
  set: [],
3047
2859
  optional: [],
3048
2860
  };
3049
- /* A box a row being edited cannot move into: a closed one - collapsed on screen, by the form or the reader,
3050
- or not drawn yet and to be drawn collapsed (Optional, with no search). The row's place there is not in the
3051
- page, so the row would leave it, and the caret with it. */
3052
- var boxIsClosed = function (box) {
3053
- var _a;
3054
- if (readOnly || (calm && compactNested))
3055
- return false;
3056
- if ((_a = statusBoxRefs.current[box]) === null || _a === void 0 ? void 0 : _a.isConnected)
3057
- return !openBoxes.isShown(box);
3058
- return (compactCollapsedGroupsProp !== null && compactCollapsedGroupsProp !== void 0 ? compactCollapsedGroupsProp : ['optional']).includes(box) && !query;
3059
- };
3060
- /* A row's box is what it holds now - the one rule the box headers, the readiness line, the meter and the
3061
- host's numbers count by (`getOptionBucket`). A row being edited moves with it: it is the same row in its new
3062
- box, its editor and caret kept (`rowPlaces`), where it was kept in the box it was opened in, and counted
3063
- elsewhere (Qlip build 489). Into a closed box it does not move until it is closed: an optional value cleared
3064
- as it is edited stays under the caret, not in a collapsed Optional box. `settledBucket` is the box a row is
3065
- 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.
3066
2864
  var stableBucketOf = function (entry) {
2865
+ var _a;
3067
2866
  var fresh = getOptionBucket(entry.name, entry.hidden);
3068
- var shownIn = settledBucket.current[entry.name];
3069
- if (shownIn &&
3070
- shownIn !== fresh &&
3071
- !entry.hidden &&
3072
- expandedOptions.includes(entry.name) &&
3073
- boxIsClosed(fresh)) {
3074
- 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;
3075
2875
  }
3076
2876
  settledBucket.current[entry.name] = fresh;
3077
2877
  return fresh;
@@ -3153,29 +2953,21 @@ var FormEngineImpl = function (_a) {
3153
2953
  var stickyBoxHeaders = compactStickyBoxHeaders && !compactNested;
3154
2954
  var boxStickyOffset = compactStickyOffset + compactToolbarHeight;
3155
2955
  var STATUS_BOXES = [
3156
- // The first box is amber only once something in it is a fault. On a new form it
3157
- // holds the required fields still to fill in, which is not yet anything wrong.
3158
- readFirstAttentionFaultCount ?
3159
- {
3160
- key: 'attention',
3161
- label: (_a = compactBoxLabels === null || compactBoxLabels === void 0 ? void 0 : compactBoxLabels.attention) !== null && _a !== void 0 ? _a : feWords.boxAttention,
3162
- intent: 'warning',
3163
- icon: 'ErrorWarningLine',
3164
- }
3165
- : {
3166
- key: 'attention',
3167
- label: (_b = compactBoxLabels === null || compactBoxLabels === void 0 ? void 0 : compactBoxLabels.pending) !== null && _b !== void 0 ? _b : feWords.boxPending,
3168
- icon: 'CheckboxBlankCircleLine',
3169
- },
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
+ },
3170
2962
  {
3171
2963
  key: 'set',
3172
- 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,
3173
2965
  intent: 'success',
3174
2966
  icon: 'CheckLine',
3175
2967
  },
3176
2968
  {
3177
2969
  key: 'optional',
3178
- 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,
3179
2971
  icon: 'CheckboxBlankCircleLine',
3180
2972
  },
3181
2973
  ];
@@ -3189,17 +2981,7 @@ var FormEngineImpl = function (_a) {
3189
2981
  return Object.keys(absorbedBy).filter(function (absorbedName) { return absorbedBy[absorbedName] === hostName; });
3190
2982
  };
3191
2983
  var renderGroupRows = function (names) {
3192
- var renderRow = function (entry, clustered, clusterFirst, clusterLast) {
3193
- // a row is in one place at a time
3194
- if (stagedRows.has(entry.name))
3195
- return null;
3196
- var host = rowHosts.hostFor(entry.name);
3197
- if (drawingRows) {
3198
- stagedRows.set(entry.name, (0, rowPlaces_1.stagedRow)(drawRow(entry, clustered, clusterFirst, clusterLast), host, entry.name));
3199
- }
3200
- return (0, jsx_runtime_1.jsx)(rowPlaces_1.RowPlace, { host: host }, entry.name);
3201
- };
3202
- 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 ?
3203
2985
  {
3204
2986
  type: getOptionSchemaStorageType(options === null || options === void 0 ? void 0 : options[entry.name], isRendererOnly),
3205
2987
  value: undefined,
@@ -3235,13 +3017,7 @@ var FormEngineImpl = function (_a) {
3235
3017
  // "Covers"/"Covered by" chips already say which member satisfies it.
3236
3018
  if (requiredGroupsInfo.satisfiedBy[grp])
3237
3019
  return railed;
3238
- // Amber once someone has been to the group (or a submit was attempted); until
3239
- // then it is still to fill in, in the quiet colour, like its members.
3240
- var clusterVisited = memberEntries.some(function (e) { return getOptionStatus(e.name) !== 'pending'; });
3241
- var clusterColor = clusterVisited ? cWarning : cMuted;
3242
- // its words and mark: the same colour, in the shade of it that reads on the tint
3243
- var clusterInk = clusterVisited ? rowInks.warning : rowInks.mutedReason;
3244
- 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));
3245
3021
  });
3246
3022
  };
3247
3023
  // One schema group inside a status box: its thin sub-label, the group's
@@ -3252,114 +3028,32 @@ var FormEngineImpl = function (_a) {
3252
3028
  can be split across the shown and folded halves of a capped box, and its
3253
3029
  label must appear above whichever half holds its first row. */
3254
3030
  var renderBoxGroup = function (boxKey, groupName, only) {
3031
+ var groupConfig = groups === null || groups === void 0 ? void 0 : groups[groupName];
3255
3032
  var rows = only ?
3256
3033
  (buckets[boxKey][groupName] || []).filter(function (entry) { return only.has(entry.name); })
3257
3034
  : buckets[boxKey][groupName];
3258
3035
  if (only && !rows.length) {
3259
3036
  return null;
3260
3037
  }
3261
- return renderGroupBlock(groupName, rows);
3262
- };
3263
- /** A group's sub-label, subtitle and rows. `key` tells two halves of one
3264
- group apart when both render in the same body. */
3265
- var renderGroupBlock = function (groupName, rows, key) {
3266
- if (key === void 0) { key = groupName; }
3267
- var groupConfig = groups === null || groups === void 0 ? void 0 : groups[groupName];
3268
3038
  return ((0, jsx_runtime_1.jsxs)(react_2.default.Fragment, { children: [showGroupSubLabel(groupName) ?
3269
- (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) })
3270
3040
  : null, showGroupSubLabel(groupName) && (groupConfig === null || groupConfig === void 0 ? void 0 : groupConfig.subtitle) ?
3271
- (0, jsx_runtime_1.jsx)(reqore_1.ReqoreP, { className: 'options-readfirst-group-subtitle', size: 'small', effect: { opacity: 0.6 }, style: calm ?
3272
- // Under the calm heading, at the rows' inset; the space below
3273
- // it is the next row's own padding.
3274
- { margin: 0, padding: "2px ".concat(compactRowStyles_1.CALM_SECTION_INSET, "px 4px") }
3275
- : {
3276
- marginTop: 2,
3277
- marginBottom: 8,
3278
- marginLeft: compactRowStyles_1.GROUP_INDENT,
3279
- paddingRight: 10,
3280
- }, children: groupConfig.subtitle })
3281
- : null, renderGroupRows(rows)] }, key));
3282
- };
3283
- /** The "N more fields" control: a quiet last row of the body it folds. */
3284
- 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 () {
3285
- return setExpandedMoreBoxes(function (prev) {
3286
- return prev.includes(boxKey) ? prev.filter(function (k) { return k !== boxKey; }) : __spreadArray(__spreadArray([], prev, true), [boxKey], false);
3287
- });
3288
- }, 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 } })] })); };
3289
- var groupBodyProps = {
3290
- $calm: calm,
3291
- $hairline: cHairline,
3292
- $divider: cDivider,
3293
- $hover: cHover,
3294
- $focus: cWarning,
3295
- // Calm: the text color's wash, as a hovered row has; amber would say the group is wrong (a satisfied one
3296
- // stayed amber under the pointer)
3297
- $groupHighlight: calm ? cHover : "".concat(cWarning, "1f"),
3298
- $success: cSuccess,
3299
- $rowBg: cRowBg,
3300
- $lineColor: cGroupLine,
3301
- $moreBorder: cMoreBorder,
3302
- };
3303
- /* Calm, nested in a row (a list item, a hash field's sub-form): the item is
3304
- already the card, so its fields sit in it directly instead of in status
3305
- boxes, which drew a card inside the card. In schema order, so a row does
3306
- not move to another box under the caret as it is filled; a row that lacks
3307
- a value still says so where the value would be. The fields nobody has
3308
- added fold behind one quiet last row, the same control a capped box ends
3309
- with — and when nothing else is listed they ARE the form, so they show. */
3310
- var renderNestedRows = function () {
3311
- // Fields with no named group are one list here. The engine files them under
3312
- // two synthetic keys (the required ones and the rest), which the boxes
3313
- // never showed; in one list that split put a set Description above an
3314
- // empty Method Name. Named groups keep their sub-labels and their order.
3315
- var UNLABELLED = '';
3316
- var keyOf = function (groupName) { return (showGroupSubLabel(groupName) ? groupName : UNLABELLED); };
3317
- var nestedKeys = (0, lodash_1.uniq)(groupKeys.map(keyOf));
3318
- var listedByGroup = {};
3319
- var addableByGroup = {};
3320
- groupKeys.forEach(function (groupName) {
3321
- grouped[groupName].forEach(function (entry) {
3322
- var _a;
3323
- var target = entry.hidden ? addableByGroup : listedByGroup;
3324
- (target[_a = keyOf(groupName)] || (target[_a] = [])).push(entry);
3325
- });
3326
- });
3327
- // In the schema's order, not the order the values arrived in.
3328
- var schemaOrder = Object.keys(options || {});
3329
- var bySchema = function (a, b) {
3330
- return schemaOrder.indexOf(a.name) - schemaOrder.indexOf(b.name);
3331
- };
3332
- (0, lodash_1.forEach)(listedByGroup, function (rows) { return rows.sort(bySchema); });
3333
- (0, lodash_1.forEach)(addableByGroup, function (rows) { return rows.sort(bySchema); });
3334
- var renderNestedGroup = function (key, rows, half) {
3335
- return key === UNLABELLED ?
3336
- (0, jsx_runtime_1.jsx)(react_2.default.Fragment, { children: renderGroupRows(rows) }, "".concat(half, "-fields"))
3337
- : renderGroupBlock(key, rows, "".concat(half, "-").concat(key));
3338
- };
3339
- var listedGroups = nestedKeys.filter(function (key) { var _a; return (_a = listedByGroup[key]) === null || _a === void 0 ? void 0 : _a.length; });
3340
- var addableGroups = nestedKeys.filter(function (key) { var _a; return (_a = addableByGroup[key]) === null || _a === void 0 ? void 0 : _a.length; });
3341
- var addableCount = addableGroups.reduce(function (total, key) { return total + addableByGroup[key].length; }, 0);
3342
- var folds = listedGroups.length > 0;
3343
- var addableOpen = !folds || expandedMoreBoxes.includes('optional');
3344
- 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 ?
3345
- addableGroups.map(function (key) { return renderNestedGroup(key, addableByGroup[key], 'addable'); })
3346
- : 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));
3347
3048
  };
3348
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
3349
3050
  // Mirrors the toolbar's own search-row gate: when no search
3350
3051
  // row renders, the header is a thin strip and sits tight to
3351
3052
  // the first status box (see StyledCompactPanel).
3352
- , __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 &&
3353
3054
  !!((compactPanelProps === null || compactPanelProps === void 0 ? void 0 : compactPanelProps.label) ||
3354
3055
  (compactPanelProps === null || compactPanelProps === void 0 ? void 0 : compactPanelProps.icon) ||
3355
- ((_f = compactPanelProps === null || compactPanelProps === void 0 ? void 0 : compactPanelProps.actions) === null || _f === void 0 ? void 0 : _f.length)), flat: true,
3356
- // Calm: no surface and no lift at all. A theme that gives
3357
- // panels a surface of their own (Reqore's `theme.panel`) would
3358
- // otherwise paint this wrapper as a card around the section
3359
- // cards inside it. Transparent and un-raised, Reqore also drops
3360
- // the wrapper's horizontal padding, so the readiness line, the
3361
- // search and the sections share one left edge with the host.
3362
- 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,
3363
3057
  // No panel background: the form sits transparently on whatever
3364
3058
  // hosts it (page, drawer, or — for an arg_schema field — the
3365
3059
  // parent's edit card) instead of stacking its own dark surface.
@@ -3411,151 +3105,117 @@ var FormEngineImpl = function (_a) {
3411
3105
  (0, jsx_runtime_1.jsx)(reqore_1.ReqoreMessage, { flat: true, opaque: false, size: 'small', children: readOnly && !query ? feWords.nothingSet : feWords.noFieldsMatch })
3412
3106
  : null, readOnly ?
3413
3107
  bucketCount('set') ?
3414
- (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); }) }) })
3415
3109
  : null
3416
- : calm && compactNested ? renderNestedRows()
3417
- : STATUS_BOXES.map(function (box) {
3418
- var groupsInBox = bucketGroups[box.key];
3419
- var count = bucketCount(box.key);
3420
- if (!count)
3421
- return null;
3422
- /* A row being edited is on show in the box it is in: neither the preselected split
3423
- nor a cap folds it away (it moves only into an open box - `boxIsClosed`). */
3424
- var isOpenRow = function (entry) { return expandedOptions.includes(entry.name); };
3425
- var hasPreselectedRows = boxHasPreselectedRows(box.key);
3426
- var wouldCollapse = compactCollapsedGroups.includes(box.key) &&
3427
- !query &&
3428
- !(box.key === 'optional' && onlyOptionalRows && !collapsedGroupsRequested);
3429
- // Only a box that was opened SOLELY to reveal a preselected
3430
- // row splits its body; a box that renders open anyway shows
3431
- // all of its groups as before.
3432
- var splitForPreselected = wouldCollapse && hasPreselectedRows;
3433
- var opensCollapsed = wouldCollapse && !hasPreselectedRows;
3434
- // Its rows are drawn while it is open: as the form opens it, or as the reader just
3435
- // did (the reveal below needs them in the box it scrolls to), or as its content says
3436
- drawingRows = openBoxes.drawsRows(box.key, !opensCollapsed || openedStatusBox === box.key);
3437
- // Which rows this box shows, and which fold away, decided at
3438
- // ROW level because `maxFieldsShown` counts fields — a
3439
- // group-level split can only ever cut at a group boundary.
3440
- // Group order is preserved so the visible rows read in the
3441
- // same order they would if nothing were folded.
3442
- var orderedRows = groupsInBox.flatMap(function (groupName) { return buckets[box.key][groupName] || []; });
3443
- // The number in the box's header counts the rows in it: what they
3444
- // hold now, as the line and the host count them (a field being
3445
- // edited moves box with its value - `stableBucketOf`).
3446
- var headerCount = readOnly ? count : (orderedRows.filter(function (entry) { return getOptionBucket(entry.name, entry.hidden) === box.key; }).length);
3447
- // Optional's own rule first: a box opened solely to reveal
3448
- // preselected rows offers those, not an arbitrary first-N.
3449
- var candidateRows = splitForPreselected ?
3450
- orderedRows.filter(function (entry) { return isPreselectedRow(entry) || isOpenRow(entry); })
3451
- : orderedRows;
3452
- // …then the cap applies to whatever that left - but for a row being edited.
3453
- var capped = maxFieldsShown !== undefined && candidateRows.length > maxFieldsShown;
3454
- var shownRows = capped ?
3455
- candidateRows.filter(function (entry, index) { return index < maxFieldsShown || isOpenRow(entry); })
3456
- : candidateRows;
3457
- var shownRowSet = new Set(shownRows.map(function (entry) { return entry.name; }));
3458
- // Everything the box holds that is not on show. Once the
3459
- // reader asks for more they get the whole box — withholding
3460
- // the non-preselected remainder behind a second control is
3461
- // the same defect one level down.
3462
- var deferredRowSet = new Set(orderedRows
3463
- .filter(function (entry) { return !shownRowSet.has(entry.name); })
3464
- .map(function (entry) { return entry.name; }));
3465
- var deferredCount = deferredRowSet.size;
3466
- var shownGroups = groupsInBox.filter(function (groupName) {
3467
- return (buckets[box.key][groupName] || []).some(function (entry) {
3468
- return shownRowSet.has(entry.name);
3469
- });
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);
3470
3147
  });
3471
- var deferredGroups = groupsInBox.filter(function (groupName) {
3472
- return (buckets[box.key][groupName] || []).some(function (entry) { return !shownRowSet.has(entry.name); });
3473
- });
3474
- var moreOpen = Boolean(query) || expandedMoreBoxes.includes(box.key);
3475
- var accent = box.key === 'attention' && readFirstAttentionFaultCount ? cWarning
3476
- : box.key === 'set' ? cSuccess
3477
- : cMuted;
3478
- // The muted "Optional" box reads as a quieter, recessed
3479
- // surface — a touch darker than the page rather than the
3480
- // faint grey tint the accent would give.
3481
- // Calm: every box is the same panel — no recessed one.
3482
- var boxBg = box.key === 'optional' && !calm ?
3483
- (0, colors_1.changeDarkness)((0, colors_1.getMainBackgroundColor)(theme), 0.06)
3484
- : undefined;
3485
- return ((0, jsx_runtime_1.jsxs)(compactRowStyles_1.StyledStatusBox, { "$accent": accent, "$bg": boxBg, "$calm": calm, "$surface": stickyBoxHeaders ?
3486
- calm ? cPanel
3487
- : (0, colors_1.getMainBackgroundColor)(theme)
3488
- : undefined, ref: function (node) {
3489
- statusBoxRefs.current[box.key] = node;
3490
- },
3491
- // Opening arms the reveal; collapsing disarms it, so a
3492
- // close never scrolls.
3493
- onCollapseChange: function (collapsed) {
3494
- return setOpenedStatusBox(collapsed ? undefined : box.key);
3495
- },
3496
- // Calm: an ordinary panel — Reqore paints the theme's
3497
- // panel surface and its hairline edge. The header stays
3498
- // minimal (no surface or rule of its own); the first
3499
- // row's hairline is the line under it.
3500
- flat: !calm, minimal: true,
3501
- /* The header stays on screen while its own box is
3502
- being read — see `compactStickyBoxHeaders`. Sticky
3503
- is bounded by its containing block, so the header
3504
- leaves with its box and only one is ever pinned. */
3505
- stickyHeader: stickyBoxHeaders, stickyHeaderOffset: stickyBoxHeaders ? boxStickyOffset : undefined, collapseButtonProps: { flat: true, minimal: true, size: 'small' }, collapsible: true,
3506
- // Which boxes start closed is the consumer's call
3507
- // (`compactCollapsedGroups`, default `['optional']`: the
3508
- // Optional box holds every not-yet-added field, so a form
3509
- // opens on what is in use). Two rules override it:
3510
- //
3511
- // A SEARCH forces every box open — ReqorePanel unmounts
3512
- // collapsed content, so a match inside a closed box would
3513
- // be unreachable. (isCollapsed is the panel's controllable
3514
- // state; manual toggling still works with no query set.)
3515
- //
3516
- // The Optional box stays open when it is the ONLY box,
3517
- // because collapsing it renders a card that looks empty and
3518
- // broken: an auth profile's Authorization block, whose nine
3519
- // requirement fields are all optional, showed as a titled
3520
- // card containing one collapsed "Optional 9" strip and
3521
- // nothing else. This does not generalise to the other two —
3522
- // a lone Set box collapsed is a deliberate ask, and its
3523
- // header still reports what is in there.
3524
- //
3525
- // A PRESELECTED row overrides it too: the schema asked
3526
- // for that field to be visible on a new form, so the
3527
- // box it lands in opens. The groups it does NOT appear
3528
- // in stay behind an inner collapse below, so opening
3529
- // the box reveals the preselected fields without also
3530
- // dumping every not-yet-added optional field on the
3531
- // author.
3532
- isCollapsed: opensCollapsed, label: calm ?
3533
- // One status dot and a word — and only where a
3534
- // person is needed. The count is a quiet number.
3535
- (0, jsx_runtime_1.jsxs)(compactRowStyles_1.StyledGroupHeader, { "$calm": true, children: [box.key === 'attention' && readFirstAttentionFaultCount ?
3536
- (0, jsx_runtime_1.jsx)(compactRowStyles_1.StyledStatusDot, { className: 'options-readfirst-group-dot', "$color": cWarning, "aria-hidden": true })
3537
- : null, (0, jsx_runtime_1.jsx)(reqore_1.ReqoreP, { effect: { weight: 'bold' }, size: 'normal', children: box.label }), headerCount ?
3538
- (0, jsx_runtime_1.jsx)(reqore_1.ReqoreSpan, { className: 'options-readfirst-group-count', size: 'small', effect: { opacity: 0.65 }, children: headerCount })
3539
- : null] })
3540
- : (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 ?
3541
- (0, jsx_runtime_1.jsx)(reqore_1.ReqoreTag, { size: 'small', minimal: true, compact: true, intent: box.intent, label: String(headerCount) })
3542
- : null] }), icon: calm ? undefined : box.icon, className: 'options-readfirst-group', padded: false,
3543
- // Calm: the last row's band meets the box's own corner, whatever
3544
- // the theme makes it (the body inherits it, `$boxCorners`)
3545
- contentStyle: calm ?
3546
- {
3547
- padding: 0,
3548
- borderBottomLeftRadius: 'inherit',
3549
- borderBottomRightRadius: 'inherit',
3550
- }
3551
- : { padding: '4px 4px 6px' }, 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) {
3552
- return renderBoxGroup(box.key, groupName, shownRowSet);
3553
- }), deferredCount ? renderMoreRow(box.key, deferredCount, moreOpen) : null, deferredCount && moreOpen ?
3554
- deferredGroups.map(function (groupName) {
3555
- return renderBoxGroup(box.key, groupName, deferredRowSet);
3556
- })
3557
- : null] }))] }, box.key));
3558
- })] })), (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 ?
3559
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 })] }) })
3560
3220
  : null] }) })] }) }) }));
3561
3221
  };
@@ -3592,7 +3252,7 @@ var FormEngineImpl = function (_a) {
3592
3252
  return renderCompact();
3593
3253
  }
3594
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 ?
3595
- (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 })] })
3596
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: {
3597
3257
  disabled: (0, size_1.default)(availableOptions) < 2,
3598
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 ?
@@ -3604,7 +3264,7 @@ var FormEngineImpl = function (_a) {
3604
3264
  : null, (0, jsx_runtime_1.jsx)(HiddenFieldsNote_1.HiddenFieldsNote, { fields: hiddenFieldsWithValues }), children, (0, size_1.default)(filteredOptions) >= 1 && !readOnly ?
3605
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 })] })
3606
3266
  : null] })); }, sortButtonProps: { minimal: true }, showLayoutSwitch: false, style: { width: '100%' }, items: (0, map_1.default)(shownOptions, function (_a, optionName) {
3607
- 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;
3608
3268
  var type = _a.type, other = __rest(_a, ["type"]);
3609
3269
  return ({
3610
3270
  label: ((_b = options[optionName]) === null || _b === void 0 ? void 0 : _b.display_name) || optionName,
@@ -3620,14 +3280,12 @@ var FormEngineImpl = function (_a) {
3620
3280
  cursor: 'help',
3621
3281
  }
3622
3282
  : undefined,
3623
- onClick: (0, fieldDescription_1.fieldHasLongDescription)(options[optionName]) ?
3624
- function () { return handleOptionLabelClick(optionName); }
3625
- : undefined,
3283
+ onClick: ((_f = options[optionName]) === null || _f === void 0 ? void 0 : _f.desc) ? function () { return handleOptionLabelClick(optionName); } : undefined,
3626
3284
  },
3627
- 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),
3628
3286
  customLabelTooltip: {
3629
3287
  delay: 300,
3630
- 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' })),
3631
3289
  },
3632
3290
  description: showFieldTypes ?
3633
3291
  [(0, qorusTypeCatalogue_1.optionTypeWords)(options[optionName], typeName), options[optionName].short_desc]
@@ -3637,7 +3295,7 @@ var FormEngineImpl = function (_a) {
3637
3295
  descriptionEffect: {
3638
3296
  textSize: '11px',
3639
3297
  opacity: optionDescOpacity,
3640
- 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,
3641
3299
  },
3642
3300
  customTheme: {
3643
3301
  main: 'main:darken:1',
@@ -3674,7 +3332,7 @@ var FormEngineImpl = function (_a) {
3674
3332
  menu: [
3675
3333
  !readOnly &&
3676
3334
  type !== 'code-editor' &&
3677
- (((_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)) !==
3678
3336
  'code-editor' && {
3679
3337
  label: feWords.focusedEditing,
3680
3338
  icon: 'FullscreenLine',
@@ -3694,15 +3352,15 @@ var FormEngineImpl = function (_a) {
3694
3352
  !readOnly &&
3695
3353
  other.value &&
3696
3354
  !(0, lodash_1.isEqual)(other.value, (0, common_1.getDefaultValue)(options[optionName])) &&
3697
- !(((_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)) && {
3698
3356
  label: feWords.removeValue,
3699
3357
  icon: 'CloseLine',
3700
3358
  className: 'options-item-remove',
3701
3359
  onClick: function () { return handleValueChange(optionName, undefined); },
3702
3360
  },
3703
3361
  !readOnly &&
3704
- !((_m = options[optionName]) === null || _m === void 0 ? void 0 : _m.preselected) &&
3705
- !((_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) && {
3706
3364
  label: feWords.removeOption,
3707
3365
  icon: 'DeleteBinLine',
3708
3366
  intent: 'danger',
@@ -3718,8 +3376,8 @@ var FormEngineImpl = function (_a) {
3718
3376
  },
3719
3377
  ],
3720
3378
  }),
3721
- 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 ?
3722
- (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 })
3723
3381
  : null, renderOption(optionName, __assign({ type: type }, other))] })),
3724
3382
  });
3725
3383
  }), defaultZoom: 1, zoomable: false, actions: __spreadArray(__spreadArray([], (rest.actions || []).map(function (action) { return (__assign(__assign({}, action), { minimal: true })); }), true), [
@@ -3757,15 +3415,9 @@ var FormEngineImpl = function (_a) {
3757
3415
  * hand is how one of them gets missed.
3758
3416
  */
3759
3417
  var FormEngine = function (props) {
3760
- var _a;
3761
- // The form's own `appearance` wins; without one it follows the form (or the
3762
- // host's provider) it sits in, so a nested sub-form never changes look
3763
- // halfway down its parent.
3764
- var inherited = (0, formAppearance_1.useFormAppearance)();
3765
- var appearance = (_a = props.appearance) !== null && _a !== void 0 ? _a : inherited;
3766
3418
  // what the host knows of references beyond the catalogue, for every chip the form draws (qorus#646)
3767
3419
  var referenceNames = (0, react_2.useMemo)(function () { var _a; return (_a = props.templateReferences) !== null && _a !== void 0 ? _a : NO_REFERENCE_NAMES; }, [props.templateReferences]);
3768
- 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)) }) }) }));
3769
3421
  };
3770
3422
  exports.FormEngine = FormEngine;
3771
3423
  var NO_REFERENCE_NAMES = {};