@qoretechnologies/reqraft 0.10.62 → 0.10.63-pr.142.g0b675cd

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 (736) hide show
  1. package/README.md +21 -1
  2. package/dist/components/Description/describedControl.d.ts +48 -0
  3. package/dist/components/Description/describedControl.d.ts.map +1 -0
  4. package/dist/components/Description/describedControl.js +81 -0
  5. package/dist/components/Description/describedControl.js.map +1 -0
  6. package/dist/components/Description/index.d.ts.map +1 -1
  7. package/dist/components/Description/index.js +3 -2
  8. package/dist/components/Description/index.js.map +1 -1
  9. package/dist/components/colorValue/colorValue.d.ts +59 -0
  10. package/dist/components/colorValue/colorValue.d.ts.map +1 -0
  11. package/dist/components/colorValue/colorValue.js +245 -0
  12. package/dist/components/colorValue/colorValue.js.map +1 -0
  13. package/dist/components/colorValue/index.d.ts +34 -0
  14. package/dist/components/colorValue/index.d.ts.map +1 -0
  15. package/dist/components/colorValue/index.js +136 -0
  16. package/dist/components/colorValue/index.js.map +1 -0
  17. package/dist/components/colorValue/labels.d.ts +12 -0
  18. package/dist/components/colorValue/labels.d.ts.map +1 -0
  19. package/dist/components/colorValue/labels.js +11 -0
  20. package/dist/components/colorValue/labels.js.map +1 -0
  21. package/dist/components/composer/Composer.d.ts +1 -1
  22. package/dist/components/composer/Composer.d.ts.map +1 -1
  23. package/dist/components/composer/Composer.js +2 -2
  24. package/dist/components/composer/Composer.js.map +1 -1
  25. package/dist/components/dpqlEditor/DpqlEditor.d.ts.map +1 -1
  26. package/dist/components/dpqlEditor/DpqlEditor.js +25 -5
  27. package/dist/components/dpqlEditor/DpqlEditor.js.map +1 -1
  28. package/dist/components/dpqlEditor/dpqlHelpers.d.ts +10 -1
  29. package/dist/components/dpqlEditor/dpqlHelpers.d.ts.map +1 -1
  30. package/dist/components/dpqlEditor/dpqlHelpers.js +30 -13
  31. package/dist/components/dpqlEditor/dpqlHelpers.js.map +1 -1
  32. package/dist/components/dpqlEditor/dpqlTags.d.ts +11 -7
  33. package/dist/components/dpqlEditor/dpqlTags.d.ts.map +1 -1
  34. package/dist/components/dpqlEditor/dpqlTags.js +11 -6
  35. package/dist/components/dpqlEditor/dpqlTags.js.map +1 -1
  36. package/dist/components/dpqlEditor/types.d.ts +47 -8
  37. package/dist/components/dpqlEditor/types.d.ts.map +1 -1
  38. package/dist/components/dpqlEditor/useDpqlSession.d.ts +2 -2
  39. package/dist/components/dpqlEditor/useDpqlSession.d.ts.map +1 -1
  40. package/dist/components/dpqlEditor/useDpqlSession.js +16 -7
  41. package/dist/components/dpqlEditor/useDpqlSession.js.map +1 -1
  42. package/dist/components/form/engine/CompactRow.d.ts.map +1 -1
  43. package/dist/components/form/engine/CompactRow.js +151 -83
  44. package/dist/components/form/engine/CompactRow.js.map +1 -1
  45. package/dist/components/form/engine/CompactToolbar.d.ts.map +1 -1
  46. package/dist/components/form/engine/CompactToolbar.js +29 -3
  47. package/dist/components/form/engine/CompactToolbar.js.map +1 -1
  48. package/dist/components/form/engine/FormEngine.d.ts +34 -1
  49. package/dist/components/form/engine/FormEngine.d.ts.map +1 -1
  50. package/dist/components/form/engine/FormEngine.js +487 -87
  51. package/dist/components/form/engine/FormEngine.js.map +1 -1
  52. package/dist/components/form/engine/HiddenFieldsNote.d.ts +28 -0
  53. package/dist/components/form/engine/HiddenFieldsNote.d.ts.map +1 -0
  54. package/dist/components/form/engine/HiddenFieldsNote.js +32 -0
  55. package/dist/components/form/engine/HiddenFieldsNote.js.map +1 -0
  56. package/dist/components/form/engine/OptionFieldMessages.d.ts.map +1 -1
  57. package/dist/components/form/engine/OptionFieldMessages.js +24 -3
  58. package/dist/components/form/engine/OptionFieldMessages.js.map +1 -1
  59. package/dist/components/form/engine/_structuredData/SchemaDataView.d.ts +2 -2
  60. package/dist/components/form/engine/_structuredData/SchemaDataView.d.ts.map +1 -1
  61. package/dist/components/form/engine/_structuredData/SchemaDataView.js +12 -6
  62. package/dist/components/form/engine/_structuredData/SchemaDataView.js.map +1 -1
  63. package/dist/components/form/engine/compactRowContext.d.ts +19 -0
  64. package/dist/components/form/engine/compactRowContext.d.ts.map +1 -1
  65. package/dist/components/form/engine/compactRowContext.js.map +1 -1
  66. package/dist/components/form/engine/compactRowStyles.d.ts +0 -1
  67. package/dist/components/form/engine/compactRowStyles.d.ts.map +1 -1
  68. package/dist/components/form/engine/compactRowStyles.js +12 -20
  69. package/dist/components/form/engine/compactRowStyles.js.map +1 -1
  70. package/dist/components/form/engine/compactToolbarColors.d.ts +16 -0
  71. package/dist/components/form/engine/compactToolbarColors.d.ts.map +1 -0
  72. package/dist/components/form/engine/compactToolbarColors.js +21 -0
  73. package/dist/components/form/engine/compactToolbarColors.js.map +1 -0
  74. package/dist/components/form/engine/readFirst.d.ts +24 -8
  75. package/dist/components/form/engine/readFirst.d.ts.map +1 -1
  76. package/dist/components/form/engine/readFirst.js +77 -109
  77. package/dist/components/form/engine/readFirst.js.map +1 -1
  78. package/dist/components/form/engine/readFirstColors.d.ts +30 -0
  79. package/dist/components/form/engine/readFirstColors.d.ts.map +1 -0
  80. package/dist/components/form/engine/readFirstColors.js +51 -0
  81. package/dist/components/form/engine/readFirstColors.js.map +1 -0
  82. package/dist/components/form/engine/rowFocus.d.ts +2 -0
  83. package/dist/components/form/engine/rowFocus.d.ts.map +1 -1
  84. package/dist/components/form/engine/rowFocus.js +26 -3
  85. package/dist/components/form/engine/rowFocus.js.map +1 -1
  86. package/dist/components/form/engine/typeChoices.d.ts +1 -1
  87. package/dist/components/form/engine/variants/VariantCalmTable.d.ts.map +1 -1
  88. package/dist/components/form/engine/variants/VariantCalmTable.js +2 -1
  89. package/dist/components/form/engine/variants/VariantCalmTable.js.map +1 -1
  90. package/dist/components/form/engine/variants/VariantCards.d.ts.map +1 -1
  91. package/dist/components/form/engine/variants/VariantCards.js +2 -1
  92. package/dist/components/form/engine/variants/VariantCards.js.map +1 -1
  93. package/dist/components/form/engine/variants/VariantFocus.js +1 -1
  94. package/dist/components/form/engine/variants/VariantFocus.js.map +1 -1
  95. package/dist/components/form/engine/variants/VariantMinimal.d.ts.map +1 -1
  96. package/dist/components/form/engine/variants/VariantMinimal.js +2 -1
  97. package/dist/components/form/engine/variants/VariantMinimal.js.map +1 -1
  98. package/dist/components/form/engine/variants/variantParts.d.ts +1 -1
  99. package/dist/components/form/engine/variants/variantParts.d.ts.map +1 -1
  100. package/dist/components/form/engine/variants/variantParts.js +25 -17
  101. package/dist/components/form/engine/variants/variantParts.js.map +1 -1
  102. package/dist/components/form/expressions/DpqlRendering.d.ts +1 -1
  103. package/dist/components/form/expressions/DpqlRendering.d.ts.map +1 -1
  104. package/dist/components/form/expressions/DpqlRendering.js +3 -3
  105. package/dist/components/form/expressions/DpqlRendering.js.map +1 -1
  106. package/dist/components/form/expressions/ExpressionField.d.ts +41 -3
  107. package/dist/components/form/expressions/ExpressionField.d.ts.map +1 -1
  108. package/dist/components/form/expressions/ExpressionField.js +396 -99
  109. package/dist/components/form/expressions/ExpressionField.js.map +1 -1
  110. package/dist/components/form/expressions/builder/argumentDetail.d.ts.map +1 -1
  111. package/dist/components/form/expressions/builder/argumentDetail.js +4 -1
  112. package/dist/components/form/expressions/builder/argumentDetail.js.map +1 -1
  113. package/dist/components/form/expressions/builder/argumentLabel.d.ts.map +1 -1
  114. package/dist/components/form/expressions/builder/argumentLabel.js +27 -9
  115. package/dist/components/form/expressions/builder/argumentLabel.js.map +1 -1
  116. package/dist/components/form/expressions/builder/argumentWrapper.d.ts.map +1 -1
  117. package/dist/components/form/expressions/builder/argumentWrapper.js +4 -2
  118. package/dist/components/form/expressions/builder/argumentWrapper.js.map +1 -1
  119. package/dist/components/form/expressions/builder/confirmMismatchedTypesModal.d.ts.map +1 -1
  120. package/dist/components/form/expressions/builder/confirmMismatchedTypesModal.js +5 -4
  121. package/dist/components/form/expressions/builder/confirmMismatchedTypesModal.js.map +1 -1
  122. package/dist/components/form/expressions/builder/confirmUnsupportedTypeModal.d.ts +1 -1
  123. package/dist/components/form/expressions/builder/confirmUnsupportedTypeModal.d.ts.map +1 -1
  124. package/dist/components/form/expressions/builder/confirmUnsupportedTypeModal.js +6 -3
  125. package/dist/components/form/expressions/builder/confirmUnsupportedTypeModal.js.map +1 -1
  126. package/dist/components/form/expressions/builder/index.d.ts +24 -2
  127. package/dist/components/form/expressions/builder/index.d.ts.map +1 -1
  128. package/dist/components/form/expressions/builder/index.js +121 -77
  129. package/dist/components/form/expressions/builder/index.js.map +1 -1
  130. package/dist/components/form/expressions/builder/item.d.ts +6 -2
  131. package/dist/components/form/expressions/builder/item.d.ts.map +1 -1
  132. package/dist/components/form/expressions/builder/item.js +19 -5
  133. package/dist/components/form/expressions/builder/item.js.map +1 -1
  134. package/dist/components/form/expressions/builder/renderTemplate.js +1 -1
  135. package/dist/components/form/expressions/builder/renderTemplate.js.map +1 -1
  136. package/dist/components/form/expressions/expressionOperands.d.ts +16 -0
  137. package/dist/components/form/expressions/expressionOperands.d.ts.map +1 -0
  138. package/dist/components/form/expressions/expressionOperands.js +97 -0
  139. package/dist/components/form/expressions/expressionOperands.js.map +1 -0
  140. package/dist/components/form/expressions/mockExpressions.d.ts.map +1 -1
  141. package/dist/components/form/expressions/mockExpressions.js +22 -5
  142. package/dist/components/form/expressions/mockExpressions.js.map +1 -1
  143. package/dist/components/form/expressions/renderExpressionToText.d.ts +2 -0
  144. package/dist/components/form/expressions/renderExpressionToText.d.ts.map +1 -1
  145. package/dist/components/form/expressions/renderExpressionToText.js +35 -9
  146. package/dist/components/form/expressions/renderExpressionToText.js.map +1 -1
  147. package/dist/components/form/expressions/textOfExpression.d.ts +18 -0
  148. package/dist/components/form/expressions/textOfExpression.d.ts.map +1 -0
  149. package/dist/components/form/expressions/textOfExpression.js +37 -0
  150. package/dist/components/form/expressions/textOfExpression.js.map +1 -0
  151. package/dist/components/form/expressions/useExpressionType.d.ts +26 -0
  152. package/dist/components/form/expressions/useExpressionType.d.ts.map +1 -0
  153. package/dist/components/form/expressions/useExpressionType.js +181 -0
  154. package/dist/components/form/expressions/useExpressionType.js.map +1 -0
  155. package/dist/components/form/expressions/useRenderExpression.d.ts.map +1 -1
  156. package/dist/components/form/expressions/useRenderExpression.js +7 -7
  157. package/dist/components/form/expressions/useRenderExpression.js.map +1 -1
  158. package/dist/components/form/fields/Field.d.ts.map +1 -1
  159. package/dist/components/form/fields/Field.js +20 -7
  160. package/dist/components/form/fields/Field.js.map +1 -1
  161. package/dist/components/form/fields/allowed-values/AllowedValues.d.ts.map +1 -1
  162. package/dist/components/form/fields/allowed-values/AllowedValues.js +17 -4
  163. package/dist/components/form/fields/allowed-values/AllowedValues.js.map +1 -1
  164. package/dist/components/form/fields/array/ArrayAuto.d.ts.map +1 -1
  165. package/dist/components/form/fields/array/ArrayAuto.js +24 -0
  166. package/dist/components/form/fields/array/ArrayAuto.js.map +1 -1
  167. package/dist/components/form/fields/array/ArrayAutoField.d.ts.map +1 -1
  168. package/dist/components/form/fields/array/ArrayAutoField.js +36 -13
  169. package/dist/components/form/fields/array/ArrayAutoField.js.map +1 -1
  170. package/dist/components/form/fields/auto/AutoFormField.d.ts +20 -1
  171. package/dist/components/form/fields/auto/AutoFormField.d.ts.map +1 -1
  172. package/dist/components/form/fields/auto/AutoFormField.js +81 -36
  173. package/dist/components/form/fields/auto/AutoFormField.js.map +1 -1
  174. package/dist/components/form/fields/auto/hostEditorValue.d.ts +30 -0
  175. package/dist/components/form/fields/auto/hostEditorValue.d.ts.map +1 -0
  176. package/dist/components/form/fields/auto/hostEditorValue.js +53 -0
  177. package/dist/components/form/fields/auto/hostEditorValue.js.map +1 -0
  178. package/dist/components/form/fields/binary/Binary.d.ts.map +1 -1
  179. package/dist/components/form/fields/binary/Binary.js +23 -3
  180. package/dist/components/form/fields/binary/Binary.js.map +1 -1
  181. package/dist/components/form/fields/boolean/Boolean.d.ts +5 -0
  182. package/dist/components/form/fields/boolean/Boolean.d.ts.map +1 -1
  183. package/dist/components/form/fields/boolean/Boolean.js +9 -1
  184. package/dist/components/form/fields/boolean/Boolean.js.map +1 -1
  185. package/dist/components/form/fields/color/Color.d.ts +103 -16
  186. package/dist/components/form/fields/color/Color.d.ts.map +1 -1
  187. package/dist/components/form/fields/color/Color.js +611 -16
  188. package/dist/components/form/fields/color/Color.js.map +1 -1
  189. package/dist/components/form/fields/emittedValues.d.ts +34 -3
  190. package/dist/components/form/fields/emittedValues.d.ts.map +1 -1
  191. package/dist/components/form/fields/emittedValues.js +24 -1
  192. package/dist/components/form/fields/emittedValues.js.map +1 -1
  193. package/dist/components/form/fields/file/File.d.ts +1 -1
  194. package/dist/components/form/fields/file/File.d.ts.map +1 -1
  195. package/dist/components/form/fields/file/File.js +4 -2
  196. package/dist/components/form/fields/file/File.js.map +1 -1
  197. package/dist/components/form/fields/long-string/LongString.d.ts.map +1 -1
  198. package/dist/components/form/fields/long-string/LongString.js +17 -3
  199. package/dist/components/form/fields/long-string/LongString.js.map +1 -1
  200. package/dist/components/form/fields/markdown/MarkdownView.js +1 -1
  201. package/dist/components/form/fields/multi-select/MultiSelectFormField.d.ts.map +1 -1
  202. package/dist/components/form/fields/multi-select/MultiSelectFormField.js +4 -1
  203. package/dist/components/form/fields/multi-select/MultiSelectFormField.js.map +1 -1
  204. package/dist/components/form/fields/number/Number.d.ts +6 -0
  205. package/dist/components/form/fields/number/Number.d.ts.map +1 -1
  206. package/dist/components/form/fields/number/Number.js +41 -6
  207. package/dist/components/form/fields/number/Number.js.map +1 -1
  208. package/dist/components/form/fields/object/Object.d.ts +1 -1
  209. package/dist/components/form/fields/object/Object.d.ts.map +1 -1
  210. package/dist/components/form/fields/object/Object.js +4 -2
  211. package/dist/components/form/fields/object/Object.js.map +1 -1
  212. package/dist/components/form/fields/pendingEdit.d.ts +52 -0
  213. package/dist/components/form/fields/pendingEdit.d.ts.map +1 -0
  214. package/dist/components/form/fields/pendingEdit.js +79 -0
  215. package/dist/components/form/fields/pendingEdit.js.map +1 -0
  216. package/dist/components/form/fields/rich-text/RichText.d.ts +8 -1
  217. package/dist/components/form/fields/rich-text/RichText.d.ts.map +1 -1
  218. package/dist/components/form/fields/rich-text/RichText.js +190 -81
  219. package/dist/components/form/fields/rich-text/RichText.js.map +1 -1
  220. package/dist/components/form/fields/rich-text/useTemplateTags.d.ts +18 -0
  221. package/dist/components/form/fields/rich-text/useTemplateTags.d.ts.map +1 -0
  222. package/dist/components/form/fields/rich-text/useTemplateTags.js +49 -0
  223. package/dist/components/form/fields/rich-text/useTemplateTags.js.map +1 -0
  224. package/dist/components/form/fields/schema-definition/CatalogLeafForm.d.ts.map +1 -1
  225. package/dist/components/form/fields/schema-definition/CatalogLeafForm.js +4 -1
  226. package/dist/components/form/fields/schema-definition/CatalogLeafForm.js.map +1 -1
  227. package/dist/components/form/fields/schema-definition/CatalogNodeEditor.d.ts.map +1 -1
  228. package/dist/components/form/fields/schema-definition/CatalogNodeEditor.js +20 -5
  229. package/dist/components/form/fields/schema-definition/CatalogNodeEditor.js.map +1 -1
  230. package/dist/components/form/fields/schema-definition/TableEditor.d.ts.map +1 -1
  231. package/dist/components/form/fields/schema-definition/TableEditor.js +10 -2
  232. package/dist/components/form/fields/schema-definition/TableEditor.js.map +1 -1
  233. package/dist/components/form/fields/schema-definition/index.d.ts.map +1 -1
  234. package/dist/components/form/fields/schema-definition/index.js +8 -4
  235. package/dist/components/form/fields/schema-definition/index.js.map +1 -1
  236. package/dist/components/form/fields/select/Select.d.ts +2 -0
  237. package/dist/components/form/fields/select/Select.d.ts.map +1 -1
  238. package/dist/components/form/fields/select/Select.js +19 -10
  239. package/dist/components/form/fields/select/Select.js.map +1 -1
  240. package/dist/components/form/fields/select/SelectCollection.d.ts.map +1 -1
  241. package/dist/components/form/fields/select/SelectCollection.js +8 -2
  242. package/dist/components/form/fields/select/SelectCollection.js.map +1 -1
  243. package/dist/components/form/fields/select/unavailableRow.d.ts +23 -0
  244. package/dist/components/form/fields/select/unavailableRow.d.ts.map +1 -0
  245. package/dist/components/form/fields/select/unavailableRow.js +55 -0
  246. package/dist/components/form/fields/select/unavailableRow.js.map +1 -0
  247. package/dist/components/form/fields/template/ReadOnlyTemplateTag.d.ts +5 -5
  248. package/dist/components/form/fields/template/ReadOnlyTemplateTag.d.ts.map +1 -1
  249. package/dist/components/form/fields/template/ReadOnlyTemplateTag.js +11 -4
  250. package/dist/components/form/fields/template/ReadOnlyTemplateTag.js.map +1 -1
  251. package/dist/components/form/fields/template/TemplateBrowser.d.ts +22 -0
  252. package/dist/components/form/fields/template/TemplateBrowser.d.ts.map +1 -0
  253. package/dist/components/form/fields/template/TemplateBrowser.js +54 -0
  254. package/dist/components/form/fields/template/TemplateBrowser.js.map +1 -0
  255. package/dist/components/form/fields/template/TemplateField.d.ts +83 -1
  256. package/dist/components/form/fields/template/TemplateField.d.ts.map +1 -1
  257. package/dist/components/form/fields/template/TemplateField.js +535 -85
  258. package/dist/components/form/fields/template/TemplateField.js.map +1 -1
  259. package/dist/components/form/fields/template/TemplateText.d.ts +0 -17
  260. package/dist/components/form/fields/template/TemplateText.d.ts.map +1 -1
  261. package/dist/components/form/fields/template/TemplateText.js +8 -4
  262. package/dist/components/form/fields/template/TemplateText.js.map +1 -1
  263. package/dist/components/form/fields/template/writtenAsText.d.ts +55 -0
  264. package/dist/components/form/fields/template/writtenAsText.d.ts.map +1 -0
  265. package/dist/components/form/fields/template/writtenAsText.js +188 -0
  266. package/dist/components/form/fields/template/writtenAsText.js.map +1 -0
  267. package/dist/components/form/index.d.ts +10 -0
  268. package/dist/components/form/index.d.ts.map +1 -1
  269. package/dist/components/form/index.js +23 -1
  270. package/dist/components/form/index.js.map +1 -1
  271. package/dist/components/imageLightbox/ImageLightbox.d.ts.map +1 -1
  272. package/dist/components/imageLightbox/ImageLightbox.js +19 -7
  273. package/dist/components/imageLightbox/ImageLightbox.js.map +1 -1
  274. package/dist/components/log/Log.d.ts.map +1 -1
  275. package/dist/components/log/Log.js +15 -7
  276. package/dist/components/log/Log.js.map +1 -1
  277. package/dist/components/menu/Menu.d.ts.map +1 -1
  278. package/dist/components/menu/Menu.js +19 -10
  279. package/dist/components/menu/Menu.js.map +1 -1
  280. package/dist/components/smartEditor/CompletionMenu.d.ts +43 -0
  281. package/dist/components/smartEditor/CompletionMenu.d.ts.map +1 -0
  282. package/dist/components/smartEditor/CompletionMenu.js +196 -0
  283. package/dist/components/smartEditor/CompletionMenu.js.map +1 -0
  284. package/dist/components/smartEditor/MarkdownDoc.d.ts +1 -1
  285. package/dist/components/smartEditor/MarkdownDoc.js +1 -1
  286. package/dist/components/smartEditor/MarkdownDoc.js.map +1 -1
  287. package/dist/components/smartEditor/SmartEditor.d.ts.map +1 -1
  288. package/dist/components/smartEditor/SmartEditor.js +51 -136
  289. package/dist/components/smartEditor/SmartEditor.js.map +1 -1
  290. package/dist/components/smartEditor/completionStyle.d.ts +27 -0
  291. package/dist/components/smartEditor/completionStyle.d.ts.map +1 -0
  292. package/dist/components/smartEditor/completionStyle.js +66 -0
  293. package/dist/components/smartEditor/completionStyle.js.map +1 -0
  294. package/dist/components/smartEditor/index.d.ts +5 -1
  295. package/dist/components/smartEditor/index.d.ts.map +1 -1
  296. package/dist/components/smartEditor/index.js +19 -1
  297. package/dist/components/smartEditor/index.js.map +1 -1
  298. package/dist/components/smartEditor/templateCompletions.d.ts +18 -0
  299. package/dist/components/smartEditor/templateCompletions.d.ts.map +1 -0
  300. package/dist/components/smartEditor/templateCompletions.js +94 -0
  301. package/dist/components/smartEditor/templateCompletions.js.map +1 -0
  302. package/dist/components/smartEditor/types.d.ts +12 -1
  303. package/dist/components/smartEditor/types.d.ts.map +1 -1
  304. package/dist/components/smartEditor/useLspAutocomplete.d.ts +32 -0
  305. package/dist/components/smartEditor/useLspAutocomplete.d.ts.map +1 -1
  306. package/dist/components/smartEditor/useLspAutocomplete.js +228 -118
  307. package/dist/components/smartEditor/useLspAutocomplete.js.map +1 -1
  308. package/dist/components/smartEditor/useLspHover.d.ts +22 -7
  309. package/dist/components/smartEditor/useLspHover.d.ts.map +1 -1
  310. package/dist/components/smartEditor/useLspHover.js +86 -17
  311. package/dist/components/smartEditor/useLspHover.js.map +1 -1
  312. package/dist/components/smartEditor/useLspSemanticTokens.js +1 -1
  313. package/dist/components/smartEditor/useLspSemanticTokens.js.map +1 -1
  314. package/dist/components/smartEditor/useLspSession.d.ts +6 -0
  315. package/dist/components/smartEditor/useLspSession.d.ts.map +1 -1
  316. package/dist/components/smartEditor/useLspSession.js +7 -6
  317. package/dist/components/smartEditor/useLspSession.js.map +1 -1
  318. package/dist/components/supportTicket/AttachmentChips.d.ts.map +1 -1
  319. package/dist/components/supportTicket/AttachmentChips.js +15 -5
  320. package/dist/components/supportTicket/AttachmentChips.js.map +1 -1
  321. package/dist/components/supportTicket/ReferencePicker.d.ts +9 -2
  322. package/dist/components/supportTicket/ReferencePicker.d.ts.map +1 -1
  323. package/dist/components/supportTicket/ReferencePicker.js +27 -6
  324. package/dist/components/supportTicket/ReferencePicker.js.map +1 -1
  325. package/dist/components/supportTicket/TicketHeader.d.ts +3 -4
  326. package/dist/components/supportTicket/TicketHeader.d.ts.map +1 -1
  327. package/dist/components/supportTicket/TicketHeader.js +20 -2
  328. package/dist/components/supportTicket/TicketHeader.js.map +1 -1
  329. package/dist/components/supportTicket/TicketMetaTags.d.ts +1 -1
  330. package/dist/components/ticketReferences/TicketReferences.d.ts.map +1 -1
  331. package/dist/components/ticketReferences/TicketReferences.js +9 -4
  332. package/dist/components/ticketReferences/TicketReferences.js.map +1 -1
  333. package/dist/components/ticketThread/TicketThread.d.ts.map +1 -1
  334. package/dist/components/ticketThread/TicketThread.js +36 -11
  335. package/dist/components/ticketThread/TicketThread.js.map +1 -1
  336. package/dist/helpers/descriptionTooltip.d.ts +43 -0
  337. package/dist/helpers/descriptionTooltip.d.ts.map +1 -0
  338. package/dist/helpers/descriptionTooltip.js +70 -0
  339. package/dist/helpers/descriptionTooltip.js.map +1 -0
  340. package/dist/helpers/domProps.d.ts +5 -0
  341. package/dist/helpers/domProps.d.ts.map +1 -0
  342. package/dist/helpers/domProps.js +47 -0
  343. package/dist/helpers/domProps.js.map +1 -0
  344. package/dist/helpers/expressions.d.ts +107 -2
  345. package/dist/helpers/expressions.d.ts.map +1 -1
  346. package/dist/helpers/expressions.js +223 -8
  347. package/dist/helpers/expressions.js.map +1 -1
  348. package/dist/helpers/hoveringPointer.d.ts +26 -0
  349. package/dist/helpers/hoveringPointer.d.ts.map +1 -0
  350. package/dist/helpers/hoveringPointer.js +29 -0
  351. package/dist/helpers/hoveringPointer.js.map +1 -0
  352. package/dist/helpers/markdownText.d.ts +14 -0
  353. package/dist/helpers/markdownText.d.ts.map +1 -0
  354. package/dist/helpers/markdownText.js +160 -0
  355. package/dist/helpers/markdownText.js.map +1 -0
  356. package/dist/helpers/qorusTypeCatalogue.d.ts +53 -0
  357. package/dist/helpers/qorusTypeCatalogue.d.ts.map +1 -0
  358. package/dist/helpers/qorusTypeCatalogue.js +262 -0
  359. package/dist/helpers/qorusTypeCatalogue.js.map +1 -0
  360. package/dist/helpers/readableColors.d.ts +36 -0
  361. package/dist/helpers/readableColors.d.ts.map +1 -0
  362. package/dist/helpers/readableColors.js +116 -0
  363. package/dist/helpers/readableColors.js.map +1 -0
  364. package/dist/helpers/templateItems.d.ts +2 -2
  365. package/dist/helpers/templateItems.d.ts.map +1 -1
  366. package/dist/helpers/templateItems.js +6 -4
  367. package/dist/helpers/templateItems.js.map +1 -1
  368. package/dist/helpers/templates.d.ts +26 -1
  369. package/dist/helpers/templates.d.ts.map +1 -1
  370. package/dist/helpers/templates.js +41 -6
  371. package/dist/helpers/templates.js.map +1 -1
  372. package/dist/helpers/validations.d.ts +9 -0
  373. package/dist/helpers/validations.d.ts.map +1 -1
  374. package/dist/helpers/validations.js +139 -33
  375. package/dist/helpers/validations.js.map +1 -1
  376. package/dist/hooks/useQorusTypes.d.ts +7 -15
  377. package/dist/hooks/useQorusTypes.d.ts.map +1 -1
  378. package/dist/hooks/useQorusTypes.js +25 -166
  379. package/dist/hooks/useQorusTypes.js.map +1 -1
  380. package/dist/hooks/useReadableIntentShade.d.ts +9 -0
  381. package/dist/hooks/useReadableIntentShade.d.ts.map +1 -0
  382. package/dist/hooks/useReadableIntentShade.js +23 -0
  383. package/dist/hooks/useReadableIntentShade.js.map +1 -0
  384. package/dist/hooks/useReadableOpacity.d.ts +6 -0
  385. package/dist/hooks/useReadableOpacity.d.ts.map +1 -0
  386. package/dist/hooks/useReadableOpacity.js +17 -0
  387. package/dist/hooks/useReadableOpacity.js.map +1 -0
  388. package/dist/index.d.ts +1 -0
  389. package/dist/index.d.ts.map +1 -1
  390. package/dist/index.js +1 -0
  391. package/dist/index.js.map +1 -1
  392. package/dist/tracking/ui/ExperimentCard.d.ts +1 -1
  393. package/dist/tracking/ui/ExperimentCard.d.ts.map +1 -1
  394. package/dist/tracking/ui/ExperimentCard.js +26 -10
  395. package/dist/tracking/ui/ExperimentCard.js.map +1 -1
  396. package/dist/tracking/ui/card.d.ts +2 -2
  397. package/dist/tracking/ui/card.d.ts.map +1 -1
  398. package/dist/tracking/ui/card.js +2 -2
  399. package/dist/tracking/ui/card.js.map +1 -1
  400. package/dist/tracking/ui/readable.d.ts +14 -0
  401. package/dist/tracking/ui/readable.d.ts.map +1 -0
  402. package/dist/tracking/ui/readable.js +60 -0
  403. package/dist/tracking/ui/readable.js.map +1 -0
  404. package/package.json +14 -5
  405. package/.claude/CLAUDE.md +0 -317
  406. package/.tasks/EXPORT_EXPRESSION_BUILDER.md +0 -38
  407. package/.tasks/EXPRESSION_BUILDER_REPORT.md +0 -149
  408. package/.tasks/EXPRESSION_FIELD_SEAMS.md +0 -66
  409. package/.tasks/FIELD_STACK_REPORT.md +0 -234
  410. package/.tasks/FORM_ENGINE_COMPACT_READ_FIRST.md +0 -558
  411. package/.tasks/FORM_ENGINE_EXPRESSIONS.md +0 -197
  412. package/.tasks/FORM_ENGINE_OPTIONS_SYNC.md +0 -95
  413. package/.tasks/FORM_FIELD_EXTRAS.md +0 -72
  414. package/.tasks/INDEX.md +0 -111
  415. package/.tasks/LSP_SHARED_CONNECTION.md +0 -75
  416. package/.tasks/QONSOLE_ASSIST_FEATURES.md +0 -306
  417. package/.tasks/RENDER_EXPRESSION_LSP.md +0 -159
  418. package/.tasks/REQRAFT_AUTO_FIELD.md +0 -176
  419. package/.tasks/SCHEMA_DEFINITION_FIELD.md +0 -250
  420. package/.tasks/SMART_EDITOR_CONTEXT_AND_POLISH.md +0 -340
  421. package/.tasks/SMART_EDITOR_LSP_FEATURES.md +0 -299
  422. package/.tasks/SMART_EDITOR_REVIEW_FOLLOWUPS.md +0 -280
  423. package/.tasks/SMART_EDITOR_UX_POLISH.md +0 -383
  424. package/.tasks/SMART_EDITOR_VISUAL_POLISH.md +0 -246
  425. package/.tasks/STORY_NETWORK_ISOLATION.md +0 -98
  426. package/.tasks/TEMPLATE_TOKEN_GRAMMAR.md +0 -72
  427. package/CODE_OF_CONDUCT.md +0 -105
  428. package/CONTRIBUTING.MD +0 -78
  429. package/SECURITY.md +0 -3
  430. package/chromatic.config.json +0 -5
  431. package/design/COMPACT_ENGINE_REDESIGN.md +0 -156
  432. package/design/COMPACT_INFO_DISPLAY.md +0 -87
  433. package/design/COMPACT_PARITY.md +0 -85
  434. package/design/EXPRESSION_BUILDER_REPORT_STRATEGY.md +0 -92
  435. package/design/FORM_ENGINE_COMPACT.md +0 -300
  436. package/design/FORM_ENGINE_COMPACT_UX_PLAN.md +0 -353
  437. package/design/FORM_ENGINE_EXPRESSIONS.md +0 -257
  438. package/design/FORM_ENGINE_FIELD_MIGRATION.md +0 -419
  439. package/design/IDE_INTEGRATION.md +0 -64
  440. package/design/RENDER_EXPRESSION_TRANSPORT.md +0 -156
  441. package/design/SELECT_DIALOG_FLOOR.md +0 -86
  442. package/design/SMART_EDITOR_UX.md +0 -438
  443. package/design/TRACKING.md +0 -290
  444. package/design/UNAVAILABLE_ALLOWED_VALUES.md +0 -226
  445. package/src/components/Description/index.tsx +0 -254
  446. package/src/components/Description/markdownRendererContext.tsx +0 -29
  447. package/src/components/FocusedEditing/index.tsx +0 -50
  448. package/src/components/codeSize/index.tsx +0 -79
  449. package/src/components/composer/Composer.stories.tsx +0 -238
  450. package/src/components/composer/Composer.tsx +0 -554
  451. package/src/components/composer/helpers.ts +0 -74
  452. package/src/components/composer/index.ts +0 -2
  453. package/src/components/dpqlEditor/DpqlEditor.stories.tsx +0 -1183
  454. package/src/components/dpqlEditor/DpqlEditor.tsx +0 -219
  455. package/src/components/dpqlEditor/dpqlHelpers.ts +0 -287
  456. package/src/components/dpqlEditor/dpqlInserter.ts +0 -121
  457. package/src/components/dpqlEditor/dpqlProbe.ts +0 -165
  458. package/src/components/dpqlEditor/dpqlTags.ts +0 -114
  459. package/src/components/dpqlEditor/index.ts +0 -41
  460. package/src/components/dpqlEditor/types.ts +0 -203
  461. package/src/components/dpqlEditor/useDpqlProbe.ts +0 -33
  462. package/src/components/dpqlEditor/useDpqlSession.ts +0 -411
  463. package/src/components/form/engine/CompactRow.tsx +0 -2620
  464. package/src/components/form/engine/CompactToolbar.tsx +0 -330
  465. package/src/components/form/engine/FormEngine.stories.tsx +0 -9920
  466. package/src/components/form/engine/FormEngine.tsx +0 -4569
  467. package/src/components/form/engine/FormEngineRemote.stories.tsx +0 -679
  468. package/src/components/form/engine/FormEngineStickyHeaders.stories.tsx +0 -331
  469. package/src/components/form/engine/FormFieldsSkeleton.tsx +0 -82
  470. package/src/components/form/engine/OptionFieldMessages.tsx +0 -477
  471. package/src/components/form/engine/OptionsHelpDialog.tsx +0 -29
  472. package/src/components/form/engine/__fixtures__/basicFormOptions.ts +0 -309
  473. package/src/components/form/engine/__fixtures__/fieldChromeOptions.ts +0 -45
  474. package/src/components/form/engine/_structuredData/SchemaDataView.stories.tsx +0 -233
  475. package/src/components/form/engine/_structuredData/SchemaDataView.tsx +0 -742
  476. package/src/components/form/engine/_structuredData/StructuredDataView.stories.tsx +0 -85
  477. package/src/components/form/engine/_structuredData/StructuredDataView.tsx +0 -75
  478. package/src/components/form/engine/_structuredData/structuredData.ts +0 -145
  479. package/src/components/form/engine/compactRowContext.ts +0 -148
  480. package/src/components/form/engine/compactRowStyles.ts +0 -898
  481. package/src/components/form/engine/compactToolbarContext.ts +0 -69
  482. package/src/components/form/engine/optionActions.ts +0 -128
  483. package/src/components/form/engine/optionsContext.ts +0 -24
  484. package/src/components/form/engine/readFirst.ts +0 -1077
  485. package/src/components/form/engine/rendererTypes.ts +0 -107
  486. package/src/components/form/engine/revealRow.ts +0 -123
  487. package/src/components/form/engine/rowFocus.ts +0 -101
  488. package/src/components/form/engine/rowMenuContext.ts +0 -159
  489. package/src/components/form/engine/rowOpenPicker.ts +0 -27
  490. package/src/components/form/engine/typeChoices.ts +0 -63
  491. package/src/components/form/engine/variants/FormEngineVariants.stories.tsx +0 -159
  492. package/src/components/form/engine/variants/VariantCalmTable.tsx +0 -244
  493. package/src/components/form/engine/variants/VariantCards.tsx +0 -212
  494. package/src/components/form/engine/variants/VariantFocus.tsx +0 -382
  495. package/src/components/form/engine/variants/VariantMinimal.tsx +0 -170
  496. package/src/components/form/engine/variants/focusDemo.ts +0 -145
  497. package/src/components/form/engine/variants/variantModel.ts +0 -223
  498. package/src/components/form/engine/variants/variantParts.tsx +0 -313
  499. package/src/components/form/expressions/DpqlRendering.tsx +0 -85
  500. package/src/components/form/expressions/ExpressionField.stories.tsx +0 -1395
  501. package/src/components/form/expressions/ExpressionField.tsx +0 -503
  502. package/src/components/form/expressions/argumentPresence.ts +0 -213
  503. package/src/components/form/expressions/builder/ExpressionBuilder.stories.tsx +0 -1683
  504. package/src/components/form/expressions/builder/argumentDetail.tsx +0 -17
  505. package/src/components/form/expressions/builder/argumentLabel.tsx +0 -146
  506. package/src/components/form/expressions/builder/argumentSlot.tsx +0 -101
  507. package/src/components/form/expressions/builder/argumentWrapper.tsx +0 -243
  508. package/src/components/form/expressions/builder/confirmMismatchedTypesModal.tsx +0 -120
  509. package/src/components/form/expressions/builder/confirmUnsupportedTypeModal.tsx +0 -69
  510. package/src/components/form/expressions/builder/index.tsx +0 -1545
  511. package/src/components/form/expressions/builder/item.tsx +0 -89
  512. package/src/components/form/expressions/builder/moveToPositionStrip.tsx +0 -156
  513. package/src/components/form/expressions/builder/renderTemplate.tsx +0 -42
  514. package/src/components/form/expressions/dpqlMockLanguage.ts +0 -566
  515. package/src/components/form/expressions/dpqlMockLsp.ts +0 -126
  516. package/src/components/form/expressions/mockExpressions.ts +0 -317
  517. package/src/components/form/expressions/renderExpressionToText.ts +0 -137
  518. package/src/components/form/expressions/types.ts +0 -110
  519. package/src/components/form/expressions/useExpressions.ts +0 -101
  520. package/src/components/form/expressions/useRenderExpression.ts +0 -165
  521. package/src/components/form/fields/Field.stories.tsx +0 -143
  522. package/src/components/form/fields/Field.tsx +0 -732
  523. package/src/components/form/fields/allowed-values/AllowedValues.tsx +0 -297
  524. package/src/components/form/fields/array/ArrayAuto.tsx +0 -237
  525. package/src/components/form/fields/array/ArrayAutoField.stories.tsx +0 -475
  526. package/src/components/form/fields/array/ArrayAutoField.tsx +0 -367
  527. package/src/components/form/fields/auto/AutoFormField.stories.tsx +0 -825
  528. package/src/components/form/fields/auto/AutoFormField.tsx +0 -1164
  529. package/src/components/form/fields/binary/Binary.stories.tsx +0 -122
  530. package/src/components/form/fields/binary/Binary.tsx +0 -91
  531. package/src/components/form/fields/boolean/Boolean.stories.tsx +0 -125
  532. package/src/components/form/fields/boolean/Boolean.tsx +0 -34
  533. package/src/components/form/fields/byte-size/ByteSize.stories.tsx +0 -87
  534. package/src/components/form/fields/byte-size/ByteSize.tsx +0 -58
  535. package/src/components/form/fields/color/Color.stories.tsx +0 -99
  536. package/src/components/form/fields/color/Color.tsx +0 -46
  537. package/src/components/form/fields/cron/Cron.stories.tsx +0 -68
  538. package/src/components/form/fields/cron/Cron.tsx +0 -80
  539. package/src/components/form/fields/date/Date.stories.tsx +0 -77
  540. package/src/components/form/fields/date/Date.tsx +0 -55
  541. package/src/components/form/fields/emittedValues.ts +0 -70
  542. package/src/components/form/fields/file/File.stories.tsx +0 -161
  543. package/src/components/form/fields/file/File.tsx +0 -227
  544. package/src/components/form/fields/long-string/LongString.stories.tsx +0 -120
  545. package/src/components/form/fields/long-string/LongString.tsx +0 -130
  546. package/src/components/form/fields/markdown/Markdown.stories.tsx +0 -76
  547. package/src/components/form/fields/markdown/Markdown.tsx +0 -81
  548. package/src/components/form/fields/markdown/MarkdownView.tsx +0 -222
  549. package/src/components/form/fields/multi-select/MultiSelectFormField.tsx +0 -139
  550. package/src/components/form/fields/number/Number.stories.tsx +0 -159
  551. package/src/components/form/fields/number/Number.tsx +0 -160
  552. package/src/components/form/fields/object/Object.stories.tsx +0 -398
  553. package/src/components/form/fields/object/Object.tsx +0 -255
  554. package/src/components/form/fields/radio-group/RadioGroup.stories.tsx +0 -95
  555. package/src/components/form/fields/radio-group/RadioGroup.tsx +0 -46
  556. package/src/components/form/fields/radio-group/images/java-96x128.png +0 -0
  557. package/src/components/form/fields/radio-group/images/python-129x128.png +0 -0
  558. package/src/components/form/fields/radio-group/images/qore-106x128.png +0 -0
  559. package/src/components/form/fields/rich-text/RichText.stories.tsx +0 -260
  560. package/src/components/form/fields/rich-text/RichText.tsx +0 -537
  561. package/src/components/form/fields/schema-definition/CatalogLeafForm.tsx +0 -242
  562. package/src/components/form/fields/schema-definition/CatalogNodeEditor.tsx +0 -758
  563. package/src/components/form/fields/schema-definition/Hint.tsx +0 -22
  564. package/src/components/form/fields/schema-definition/InlineValidationBanner.tsx +0 -138
  565. package/src/components/form/fields/schema-definition/Loader.tsx +0 -20
  566. package/src/components/form/fields/schema-definition/MigrationsTab.tsx +0 -187
  567. package/src/components/form/fields/schema-definition/SchemaDefinitionField.stories.tsx +0 -286
  568. package/src/components/form/fields/schema-definition/TableEditor.tsx +0 -155
  569. package/src/components/form/fields/schema-definition/TablesTab.tsx +0 -138
  570. package/src/components/form/fields/schema-definition/catalog.ts +0 -237
  571. package/src/components/form/fields/schema-definition/helpers.ts +0 -90
  572. package/src/components/form/fields/schema-definition/index.tsx +0 -418
  573. package/src/components/form/fields/schema-definition/mockCatalog.ts +0 -325
  574. package/src/components/form/fields/schema-definition/mockDefinition.ts +0 -111
  575. package/src/components/form/fields/schema-definition/referenceSuggestions.tsx +0 -152
  576. package/src/components/form/fields/schema-definition/starterTemplate.ts +0 -68
  577. package/src/components/form/fields/schema-definition/types.ts +0 -185
  578. package/src/components/form/fields/schema-definition/useSchemaOptionCatalog.ts +0 -49
  579. package/src/components/form/fields/select/Select.stories.tsx +0 -872
  580. package/src/components/form/fields/select/Select.tsx +0 -624
  581. package/src/components/form/fields/select/SelectCollection.tsx +0 -594
  582. package/src/components/form/fields/string/String.stories.tsx +0 -86
  583. package/src/components/form/fields/string/String.tsx +0 -43
  584. package/src/components/form/fields/template/ExampleValueModal.stories.tsx +0 -114
  585. package/src/components/form/fields/template/ExampleValueModal.tsx +0 -99
  586. package/src/components/form/fields/template/ReadOnlyTemplateTag.tsx +0 -47
  587. package/src/components/form/fields/template/TemplateField.stories.tsx +0 -1121
  588. package/src/components/form/fields/template/TemplateField.tsx +0 -1717
  589. package/src/components/form/fields/template/TemplateText.tsx +0 -115
  590. package/src/components/form/fields/template/__fixtures__/longExampleValue.ts +0 -7
  591. package/src/components/form/fields/template/__fixtures__/multiLevelTemplates.json +0 -147
  592. package/src/components/form/fields/template/__fixtures__/templates.json +0 -83
  593. package/src/components/form/fields/timeout/Timeout.stories.tsx +0 -228
  594. package/src/components/form/fields/timeout/Timeout.tsx +0 -87
  595. package/src/components/form/fields/url/Url.stories.tsx +0 -94
  596. package/src/components/form/fields/url/Url.tsx +0 -85
  597. package/src/components/form/index.tsx +0 -47
  598. package/src/components/imageLightbox/ImageLightbox.stories.tsx +0 -238
  599. package/src/components/imageLightbox/ImageLightbox.tsx +0 -236
  600. package/src/components/imageLightbox/index.ts +0 -1
  601. package/src/components/log/Log.stories.tsx +0 -333
  602. package/src/components/log/Log.tsx +0 -285
  603. package/src/components/menu/Menu.stories.tsx +0 -155
  604. package/src/components/menu/Menu.tsx +0 -312
  605. package/src/components/qonsoleSmartInput/QonsoleSmartInput.stories.tsx +0 -797
  606. package/src/components/qonsoleSmartInput/QonsoleSmartInput.tsx +0 -105
  607. package/src/components/qonsoleSmartInput/index.ts +0 -16
  608. package/src/components/qonsoleSmartInput/qonsoleInserter.ts +0 -77
  609. package/src/components/qonsoleSmartInput/types.ts +0 -133
  610. package/src/components/qonsoleSmartInput/useQonsoleSession.ts +0 -124
  611. package/src/components/searchFilterBar/SearchFilterBar.stories.tsx +0 -62
  612. package/src/components/searchFilterBar/SearchFilterBar.tsx +0 -144
  613. package/src/components/searchFilterBar/index.ts +0 -1
  614. package/src/components/smartEditor/MarkdownDoc.tsx +0 -190
  615. package/src/components/smartEditor/SmartEditor.stories.tsx +0 -475
  616. package/src/components/smartEditor/SmartEditor.tsx +0 -808
  617. package/src/components/smartEditor/__fixtures__/mockLspServer.ts +0 -205
  618. package/src/components/smartEditor/helpers.ts +0 -217
  619. package/src/components/smartEditor/index.ts +0 -35
  620. package/src/components/smartEditor/styling.ts +0 -45
  621. package/src/components/smartEditor/types.ts +0 -211
  622. package/src/components/smartEditor/useLspAutocomplete.ts +0 -758
  623. package/src/components/smartEditor/useLspDiagnosticDecorations.ts +0 -125
  624. package/src/components/smartEditor/useLspHover.ts +0 -230
  625. package/src/components/smartEditor/useLspSemanticTokens.ts +0 -298
  626. package/src/components/smartEditor/useLspSession.ts +0 -231
  627. package/src/components/smartEditor/useLspSignatureHelp.ts +0 -198
  628. package/src/components/supportTicket/AttachmentChips.stories.tsx +0 -171
  629. package/src/components/supportTicket/AttachmentChips.tsx +0 -147
  630. package/src/components/supportTicket/InterfaceReferenceTags.stories.tsx +0 -257
  631. package/src/components/supportTicket/InterfaceReferenceTags.tsx +0 -129
  632. package/src/components/supportTicket/ReferencePicker.stories.tsx +0 -584
  633. package/src/components/supportTicket/ReferencePicker.tsx +0 -563
  634. package/src/components/supportTicket/TicketConversation.stories.tsx +0 -121
  635. package/src/components/supportTicket/TicketHeader.stories.tsx +0 -183
  636. package/src/components/supportTicket/TicketHeader.tsx +0 -247
  637. package/src/components/supportTicket/TicketMetaTags.stories.tsx +0 -103
  638. package/src/components/supportTicket/TicketMetaTags.tsx +0 -85
  639. package/src/components/supportTicket/TicketReplyBox.stories.tsx +0 -354
  640. package/src/components/supportTicket/TicketReplyBox.tsx +0 -150
  641. package/src/components/supportTicket/__fixtures__/kindMarks.ts +0 -28
  642. package/src/components/supportTicket/attachmentAccess.ts +0 -97
  643. package/src/components/supportTicket/fileToAttachment.ts +0 -24
  644. package/src/components/supportTicket/index.ts +0 -10
  645. package/src/components/supportTicket/meta.ts +0 -206
  646. package/src/components/supportTicket/ticketModel.ts +0 -131
  647. package/src/components/supportTicket/useLoadedImages.ts +0 -73
  648. package/src/components/ticketReferences/TicketReferences.stories.tsx +0 -315
  649. package/src/components/ticketReferences/TicketReferences.tsx +0 -906
  650. package/src/components/ticketReferences/index.ts +0 -2
  651. package/src/components/ticketThread/TicketThread.stories.tsx +0 -829
  652. package/src/components/ticketThread/TicketThread.tsx +0 -719
  653. package/src/components/ticketThread/index.ts +0 -6
  654. package/src/contexts/FetchContext.tsx +0 -25
  655. package/src/contexts/ReqraftContext.tsx +0 -9
  656. package/src/contexts/StorageContext.tsx +0 -33
  657. package/src/global.d.ts +0 -4
  658. package/src/helpers/allowedValues.ts +0 -249
  659. package/src/helpers/choiceChip.ts +0 -227
  660. package/src/helpers/common.ts +0 -326
  661. package/src/helpers/dpqlDetection.ts +0 -209
  662. package/src/helpers/expressions.ts +0 -140
  663. package/src/helpers/optionUiTypes.ts +0 -199
  664. package/src/helpers/options.ts +0 -150
  665. package/src/helpers/providerValue.ts +0 -125
  666. package/src/helpers/scrollbar.ts +0 -32
  667. package/src/helpers/singleLineString.ts +0 -61
  668. package/src/helpers/templateItems.ts +0 -81
  669. package/src/helpers/templateText.ts +0 -350
  670. package/src/helpers/templates.ts +0 -602
  671. package/src/helpers/validations.ts +0 -2085
  672. package/src/hooks/useArgSchema.ts +0 -37
  673. package/src/hooks/useCoarsePointer.ts +0 -30
  674. package/src/hooks/useFetch/useFetch.stories.tsx +0 -379
  675. package/src/hooks/useFetch/useFetch.tsx +0 -154
  676. package/src/hooks/usePhoneViewport.ts +0 -34
  677. package/src/hooks/useQorusTypes.ts +0 -233
  678. package/src/hooks/useReqraftProperty.ts +0 -16
  679. package/src/hooks/useStorage/useStorage.stories.tsx +0 -168
  680. package/src/hooks/useStorage/useStorage.ts +0 -35
  681. package/src/hooks/useTemplates.ts +0 -123
  682. package/src/hooks/useValidation.ts +0 -9
  683. package/src/hooks/useWebSocket/useWebSocket.ts +0 -224
  684. package/src/hooks/useWebSocket/useWebsocket.stories.tsx +0 -640
  685. package/src/hooks/useWhyDidYouUpdate.ts +0 -38
  686. package/src/index.tsx +0 -86
  687. package/src/providers/FetchProvider.tsx +0 -40
  688. package/src/providers/ReqraftProvider.tsx +0 -52
  689. package/src/providers/StorageProvider.tsx +0 -131
  690. package/src/stores/currentUser/currentUser.stories.tsx +0 -100
  691. package/src/stores/currentUser/currentUser.tsx +0 -94
  692. package/src/stories/Data/fileFieldArgSchema.json +0 -86
  693. package/src/stories/Tests/utils.ts +0 -320
  694. package/src/stories/storyNetwork.ts +0 -92
  695. package/src/stories/tracking.tsx +0 -206
  696. package/src/tracking/browser/attach.ts +0 -186
  697. package/src/tracking/browser/env.ts +0 -78
  698. package/src/tracking/core/consent.ts +0 -37
  699. package/src/tracking/core/engagement.ts +0 -47
  700. package/src/tracking/core/experiments.ts +0 -258
  701. package/src/tracking/core/hash.ts +0 -26
  702. package/src/tracking/core/ids.ts +0 -25
  703. package/src/tracking/core/observable.ts +0 -23
  704. package/src/tracking/core/queue.ts +0 -131
  705. package/src/tracking/core/sections.ts +0 -166
  706. package/src/tracking/core/storage.ts +0 -69
  707. package/src/tracking/core/tracker.ts +0 -417
  708. package/src/tracking/core/types.ts +0 -162
  709. package/src/tracking/core/utm.ts +0 -23
  710. package/src/tracking/index.ts +0 -72
  711. package/src/tracking/markup.ts +0 -17
  712. package/src/tracking/react/Experiment.tsx +0 -44
  713. package/src/tracking/react/TrackingProvider.tsx +0 -56
  714. package/src/tracking/react/hooks.ts +0 -106
  715. package/src/tracking/react/index.ts +0 -13
  716. package/src/tracking/testing.ts +0 -108
  717. package/src/tracking/ui/ExperimentCard.stories.tsx +0 -296
  718. package/src/tracking/ui/ExperimentCard.tsx +0 -667
  719. package/src/tracking/ui/ExperimentsOverlay.stories.tsx +0 -155
  720. package/src/tracking/ui/ExperimentsOverlay.tsx +0 -437
  721. package/src/tracking/ui/anchor.ts +0 -180
  722. package/src/tracking/ui/card.ts +0 -464
  723. package/src/tracking/ui/client.ts +0 -117
  724. package/src/tracking/ui/index.ts +0 -77
  725. package/src/tracking/ui/types.ts +0 -110
  726. package/src/tracking/ui/useExperimentsAdmin.ts +0 -103
  727. package/src/types/Form.ts +0 -29
  728. package/src/types.ts +0 -14
  729. package/src/utils/datetime.ts +0 -10
  730. package/src/utils/fetch.ts +0 -457
  731. package/src/utils/lspClient.ts +0 -711
  732. package/src/utils/lspClient.types.ts +0 -211
  733. package/src/utils/queryUnlessCancelled.ts +0 -28
  734. package/src/utils/websocket.ts +0 -293
  735. package/vite.config.ts +0 -58
  736. package/vitest.config.ts +0 -69
@@ -97,10 +97,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
97
97
  return (mod && mod.__esModule) ? mod : { "default": mod };
98
98
  };
99
99
  Object.defineProperty(exports, "__esModule", { value: true });
100
- exports.FormEngine = exports.getTypeAndCanBeNull = exports.flattenOptions = exports.shouldEmitLocalValue = exports.agreementFromRebuild = exports.isMirrorOfValue = exports.fixOptions = exports.OptionsContext = exports.hasRequiredOptions = exports.getOptionFieldStorageType = exports.fixOperatorValue = exports.getType = exports.inheritedScopeFor = void 0;
100
+ exports.FormEngine = exports.getTypeAndCanBeNull = exports.flattenOptions = exports.shouldEmitLocalValue = exports.mergeOwnEdits = exports.takeHostsAttributes = exports.agreementFromRebuild = exports.isMirrorOfValue = exports.fixOptions = exports.OptionsContext = exports.hasRequiredOptions = exports.getOptionFieldStorageType = exports.fixOperatorValue = exports.getType = exports.inheritedScopeFor = void 0;
101
101
  var react_1 = require("react");
102
102
  var jsx_runtime_1 = require("react/jsx-runtime");
103
103
  var reqore_1 = require("@qoretechnologies/reqore");
104
+ var readFirstColors_1 = require("./readFirstColors");
105
+ var readableColors_1 = require("../../../helpers/readableColors");
104
106
  var colors_1 = require("@qoretechnologies/reqore/dist/helpers/colors");
105
107
  var argumentPresence_1 = require("../expressions/argumentPresence");
106
108
  var typeChoices_1 = require("./typeChoices");
@@ -132,10 +134,12 @@ var compactRowContext_1 = require("./compactRowContext");
132
134
  var compactRowStyles_1 = require("./compactRowStyles");
133
135
  var CompactToolbar_1 = require("./CompactToolbar");
134
136
  var compactToolbarContext_1 = require("./compactToolbarContext");
137
+ var HiddenFieldsNote_1 = require("./HiddenFieldsNote");
135
138
  var OptionFieldMessages_1 = require("./OptionFieldMessages");
136
139
  var optionsContext_1 = require("./optionsContext");
137
140
  var markdownRendererContext_1 = require("../../Description/markdownRendererContext");
138
141
  var OptionsHelpDialog_1 = require("./OptionsHelpDialog");
142
+ var rowFocus_1 = require("./rowFocus");
139
143
  var optionUiTypes_1 = require("../../../helpers/optionUiTypes");
140
144
  var readFirst_1 = require("./readFirst");
141
145
  /**
@@ -228,7 +232,7 @@ var PositiveColorEffect = {
228
232
  glow: 'success',
229
233
  };
230
234
  // Compact (read-first) layout: flat label | value | action rows in collapsible
231
- // group panels; colours come in as props so the layout follows the Reqore theme.
235
+ // group panels; colors come in as props so the layout follows the Reqore theme.
232
236
  var StyledCompactWrap = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: flex;\n flex-flow: column;\n gap: 10px;\n width: 100%;\n /* Allow the wrap to shrink inside flex/grid parents so its rows' ellipsis can\n engage instead of overflowing the container horizontally. */\n min-width: 0;\n max-width: 100%;\n\n /* Scroll ownership \u2014 see `compactScroll`.\n\n 'host' (the default): the page or panel around us already scrolls, so we\n must not cap our height and scroll our own body, or the reader gets two\n scrollbars in two styles and cannot tell which moves what.\n\n `overflow-x: clip`, NOT `hidden`: CSS coerces an `overflow-y: visible`\n to `auto` whenever the other axis is neither visible nor clip, which would\n leave this box a scroll container \u2014 the element stops scrolling only\n because `max-height: none` means nothing overflows, while `position:\n sticky` inside it still resolves against US instead of the host, so the\n toolbar silently stops pinning. `clip` keeps the horizontal guard without\n that coercion. */\n ", "\n\n /* Option logos (e.g. language images) render as <img> inside ReqoreIcon's\n square box; constrain them so portrait PNGs don't overflow the row. */\n .reqore-icon img {\n width: 100%;\n height: 100%;\n object-fit: contain;\n }\n"], ["\n display: flex;\n flex-flow: column;\n gap: 10px;\n width: 100%;\n /* Allow the wrap to shrink inside flex/grid parents so its rows' ellipsis can\n engage instead of overflowing the container horizontally. */\n min-width: 0;\n max-width: 100%;\n\n /* Scroll ownership \u2014 see \\`compactScroll\\`.\n\n 'host' (the default): the page or panel around us already scrolls, so we\n must not cap our height and scroll our own body, or the reader gets two\n scrollbars in two styles and cannot tell which moves what.\n\n \\`overflow-x: clip\\`, NOT \\`hidden\\`: CSS coerces an \\`overflow-y: visible\\`\n to \\`auto\\` whenever the other axis is neither visible nor clip, which would\n leave this box a scroll container \u2014 the element stops scrolling only\n because \\`max-height: none\\` means nothing overflows, while \\`position:\n sticky\\` inside it still resolves against US instead of the host, so the\n toolbar silently stops pinning. \\`clip\\` keeps the horizontal guard without\n that coercion. */\n ", "\n\n /* Option logos (e.g. language images) render as <img> inside ReqoreIcon's\n square box; constrain them so portrait PNGs don't overflow the row. */\n .reqore-icon img {\n width: 100%;\n height: 100%;\n object-fit: contain;\n }\n"])), function (_a) {
233
237
  var $ownScroll = _a.$ownScroll;
234
238
  return $ownScroll ? (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n /* 'own': we are the scroller. The sticky toolbar pins to whatever\n scrolls, so a host whose scrollport carries top padding would\n resolve sticky `top: 0` against its padding box and leave an\n unblurred strip above the toolbar. Scrolling in this unpadded box\n pins it flush. Cap at the host's available height, but do not grow\n to fill it \u2014 short forms still hug their content.\n\n `min-height: 0` is what lets a flex item shrink below its content\n so there is something to scroll; it belongs to this branch only. */\n min-height: 0;\n max-height: 100%;\n overflow-y: auto;\n overflow-x: hidden;\n "], ["\n /* 'own': we are the scroller. The sticky toolbar pins to whatever\n scrolls, so a host whose scrollport carries top padding would\n resolve sticky \\`top: 0\\` against its padding box and leave an\n unblurred strip above the toolbar. Scrolling in this unpadded box\n pins it flush. Cap at the host's available height, but do not grow\n to fill it \u2014 short forms still hug their content.\n\n \\`min-height: 0\\` is what lets a flex item shrink below its content\n so there is something to scroll; it belongs to this branch only. */\n min-height: 0;\n max-height: 100%;\n overflow-y: auto;\n overflow-x: hidden;\n "]))) : (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n /* `min-height: auto` is load-bearing, not a default: inside a column\n flex parent the shrink allowance above collapses this box to zero\n height while its rows paint outside it, so the form looks right but\n contributes nothing to layout \u2014 the host cannot size or scroll to\n it and anything below it stacks against nothing. */\n min-height: auto;\n max-height: none;\n overflow-y: visible;\n overflow-x: clip;\n "], ["\n /* \\`min-height: auto\\` is load-bearing, not a default: inside a column\n flex parent the shrink allowance above collapses this box to zero\n height while its rows paint outside it, so the form looks right but\n contributes nothing to layout \u2014 the host cannot size or scroll to\n it and anything below it stacks against nothing. */\n min-height: auto;\n max-height: none;\n overflow-y: visible;\n overflow-x: clip;\n "])));
@@ -431,6 +435,34 @@ var normalizeEmptyFieldValues = function (fields) {
431
435
  return acc;
432
436
  }, {});
433
437
  };
438
+ /**
439
+ * The value as a host can hand it back: each field as its value, and the fields that hold nothing left out.
440
+ *
441
+ * A report of the form's is recognised by what it says, not by how the host writes it back. A host that
442
+ * stores only the fields holding a value (the Qorus IDE's editors) hands a report back without its empty
443
+ * fields; one that stores a field under its own type (the IDE stores what an `int` field reported as a
444
+ * `string`) hands it back with that type. Compared field for field, type and all, the report never came
445
+ * back as itself:
446
+ * - the form took it for the host's own change and went back to it, losing what had been typed since, and
447
+ * the two chased each other's reports on every echo;
448
+ * - an edit back to a value reported before (A, then B, then A again), made as the echo of B arrived, was
449
+ * held back as made before the host's change, and the field went back to B (qorus#646: a template
450
+ * field's text, deleted back to its reference, kept the text in the IDE).
451
+ *
452
+ * For recognising a value only. Whether a rebuild adds anything is still read with the empty fields in
453
+ * (`isMirrorOfValue`): a new schema's empty required field is a row the form has to add.
454
+ */
455
+ var reportedValues = function (fields) {
456
+ return (0, reduce_1.default)(fields || {}, function (acc, field, name) {
457
+ var fieldValue = comparableField(field);
458
+ if (fieldValue !== undefined) {
459
+ acc[name] = fieldValue;
460
+ }
461
+ return acc;
462
+ }, {});
463
+ };
464
+ /** The same value, as a report coming back from a host is recognised. */
465
+ var sameReportedValue = function (a, b) { return (0, lodash_1.isEqual)(reportedValues(a), reportedValues(b)); };
434
466
  /**
435
467
  * Does this rebuild say anything the parent does not already hold?
436
468
  *
@@ -460,6 +492,118 @@ var agreementFromRebuild = function (fixedValue, value) {
460
492
  return (0, exports.isMirrorOfValue)(fixedValue, value) ? fixedValue : undefined;
461
493
  };
462
494
  exports.agreementFromRebuild = agreementFromRebuild;
495
+ /**
496
+ * A field as the form compares one host value with another: an empty field ('' or none, whatever its type) is
497
+ * the same as no field, and a field is its value, however it is written (`{ type, value }` or the bare value).
498
+ */
499
+ var comparableField = function (field) {
500
+ var fieldValue = field !== null && typeof field === 'object' && !Array.isArray(field) && 'value' in field ?
501
+ field.value
502
+ : field !== null && typeof field === 'object' && !Array.isArray(field) && 'type' in field ?
503
+ undefined
504
+ : field;
505
+ return fieldValue === '' ? undefined : fieldValue;
506
+ };
507
+ var sameField = function (a, b) {
508
+ return (0, lodash_1.isEqual)(comparableField(a), comparableField(b));
509
+ };
510
+ /** A field written as `{ type, value }`, not a bare value. */
511
+ var isTypedField = function (field) {
512
+ return field !== null &&
513
+ typeof field === 'object' &&
514
+ !Array.isArray(field) &&
515
+ typeof field.type === 'string';
516
+ };
517
+ /**
518
+ * The form's copy of a field, with everything the host changed beside its value since `base`: its type, whether
519
+ * it is an expression, its operator, or anything else it says. `own` itself where the host changed nothing.
520
+ *
521
+ * A report of the form's is recognised by its values, and a field's value is merged by its value (see
522
+ * `reportedValues`, `mergeOwnEdits`), so a change the host made to a field's type alone said nothing: the form
523
+ * kept its own type. The Qorus IDE makes an added field's whole number true or false, holding the same field
524
+ * `pos`; the form kept the `int` and drew `pos` as text on the Value tab, where a true or false field shows it on
525
+ * its Expression tab (qorus#646).
526
+ *
527
+ * Every key but `value` is compared, not a list of the ones known today: whatever a host writes into a field
528
+ * beside its value, a change of it is the host's. A key the host writes as it always has is not a change, so a
529
+ * host that stores a field under its own type does not change the form's (that is why the value alone is what
530
+ * recognises a report).
531
+ */
532
+ var withHostsAttributes = function (own, host, base) {
533
+ if (!isTypedField(own) || !isTypedField(host)) {
534
+ return own;
535
+ }
536
+ var hostField = host;
537
+ var baseField = isTypedField(base) ? base : {};
538
+ var ownField = own;
539
+ var taken;
540
+ new Set(__spreadArray(__spreadArray([], Object.keys(hostField), true), Object.keys(baseField), true)).forEach(function (key) {
541
+ var hosts = hostField[key];
542
+ if (key === 'value' || (0, lodash_1.isEqual)(hosts, baseField[key]) || (0, lodash_1.isEqual)(ownField[key], hosts)) {
543
+ return;
544
+ }
545
+ taken = taken !== null && taken !== void 0 ? taken : __assign({}, ownField);
546
+ if (hosts === undefined) {
547
+ delete taken[key];
548
+ }
549
+ else {
550
+ taken[key] = hosts;
551
+ }
552
+ });
553
+ return taken !== null && taken !== void 0 ? taken : own;
554
+ };
555
+ /**
556
+ * The form's copy with what the host changed beside each field's value since `base` taken (see
557
+ * `withHostsAttributes`). Returns `ours` itself when there is nothing the form's copy does not have already.
558
+ */
559
+ var takeHostsAttributes = function (theirs, ours, base) {
560
+ var _a;
561
+ var typed;
562
+ (0, lodash_1.forEach)(theirs || {}, function (host, name) {
563
+ var own = ours === null || ours === void 0 ? void 0 : ours[name];
564
+ var taken = withHostsAttributes(own, host, base === null || base === void 0 ? void 0 : base[name]);
565
+ if (taken !== own) {
566
+ typed = typed !== null && typed !== void 0 ? typed : __assign({}, (ours || {}));
567
+ typed[name] = taken;
568
+ }
569
+ });
570
+ return (_a = typed) !== null && _a !== void 0 ? _a : ours;
571
+ };
572
+ exports.takeHostsAttributes = takeHostsAttributes;
573
+ /**
574
+ * The host's change, with the form's own edits kept: a three-way merge of `theirs` (the `value` the host
575
+ * hands down now) and `ours` (the form's copy) against `base` (the `value` the form last saw).
576
+ *
577
+ * A field the form changed and the host did not keeps the form's value; every other field takes the host's,
578
+ * a field both changed included. The host and the form can change the value in the same commit - a host
579
+ * renaming something as the user's edit reaches the form - and taking either side whole lost the other's
580
+ * change; sending the form's copy over the host's change made the two trade places forever (qorus#646).
581
+ *
582
+ * Returns `theirs` itself when the form has nothing of its own to keep.
583
+ */
584
+ var mergeOwnEdits = function (theirs, ours, base) {
585
+ var _a;
586
+ var merged;
587
+ var names = new Set(__spreadArray(__spreadArray([], Object.keys(ours || {}), true), Object.keys(base || {}), true));
588
+ names.forEach(function (name) {
589
+ var own = ours === null || ours === void 0 ? void 0 : ours[name];
590
+ var before = base === null || base === void 0 ? void 0 : base[name];
591
+ var host = theirs === null || theirs === void 0 ? void 0 : theirs[name];
592
+ if (sameField(own, before) || !sameField(host, before) || sameField(host, own)) {
593
+ return;
594
+ }
595
+ merged = merged !== null && merged !== void 0 ? merged : __assign({}, (theirs || {}));
596
+ if (own === undefined) {
597
+ delete merged[name];
598
+ }
599
+ else {
600
+ // the form's value, with what the host changed beside it (its type, say)
601
+ merged[name] = withHostsAttributes(own, host, before);
602
+ }
603
+ });
604
+ return (_a = merged) !== null && _a !== void 0 ? _a : theirs;
605
+ };
606
+ exports.mergeOwnEdits = mergeOwnEdits;
463
607
  /**
464
608
  * Should the form report `localValue` to its parent as an answer?
465
609
  *
@@ -516,6 +660,8 @@ var getTypeAndCanBeNull = function (type, allowed_values, operatorData, operator
516
660
  exports.getTypeAndCanBeNull = getTypeAndCanBeNull;
517
661
  // Option types rendered full-width (IDE Options parity, commit 8e6b7781).
518
662
  var STRECHABLE_TYPES = new Set(['tool-catalog']);
663
+ /** How faded reqore draws a panel's title icon. */
664
+ var PANEL_TITLE_ICON_ALPHA = 0.7;
519
665
  var FormEngineImpl = function (_a) {
520
666
  var _b, _c, _d, _f, _g;
521
667
  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
@@ -534,12 +680,14 @@ var FormEngineImpl = function (_a) {
534
680
  // been a no-op. Removing it from the API is a separate, breaking change —
535
681
  // every consumer passing it today already gets the flush layout by default.
536
682
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
537
- 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,
683
+ 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,
538
684
  // consumed by the wrapper below, which publishes it to every description this
539
685
  // form draws; destructured here only so it cannot reach `rest` and be spread
540
686
  // onto a DOM node
541
687
  _markdownRenderer = _a.markdownRenderer, // eslint-disable-line @typescript-eslint/no-unused-vars
542
- rendererOnlyUiTypes = _a.rendererOnlyUiTypes, templateAwareUiTypes = _a.templateAwareUiTypes, anyLikeUiTypes = _a.anyLikeUiTypes, inheritedFromParent = _a.inheritedFromParent, autoFocusFirstRequired = _a.autoFocusFirstRequired, expandFirstRequired = _a.expandFirstRequired, initialExpandedOptions = _a.initialExpandedOptions, maxFieldsShown = _a.maxFieldsShown, 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", "markdownRenderer", "rendererOnlyUiTypes", "templateAwareUiTypes", "anyLikeUiTypes", "inheritedFromParent", "autoFocusFirstRequired", "expandFirstRequired", "initialExpandedOptions", "maxFieldsShown"]);
688
+ rendererOnlyUiTypes = _a.rendererOnlyUiTypes, templateAwareUiTypes = _a.templateAwareUiTypes, anyLikeUiTypes = _a.anyLikeUiTypes, inheritedFromParent = _a.inheritedFromParent, autoFocusFirstRequired = _a.autoFocusFirstRequired, expandFirstRequired = _a.expandFirstRequired, initialExpandedOptions = _a.initialExpandedOptions, valueKey = _a.valueKey, maxFieldsShown = _a.maxFieldsShown,
689
+ // The form's own props, read here and never handed on to the collection drawn below (`{...rest}`).
690
+ 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", "markdownRenderer", "rendererOnlyUiTypes", "templateAwareUiTypes", "anyLikeUiTypes", "inheritedFromParent", "autoFocusFirstRequired", "expandFirstRequired", "initialExpandedOptions", "valueKey", "maxFieldsShown", "options", "stringTemplates", "skeletonReason"]);
543
691
  // Built-ins + whatever the consumer declared for its own injected editors.
544
692
  var isRendererOnly = (0, react_2.useMemo)(function () { return (0, rendererTypes_1.createRendererOnlyUiTypeCheck)(rendererOnlyUiTypes); }, [JSON.stringify(rendererOnlyUiTypes)]);
545
693
  // Pointer CAPABILITY and viewport WIDTH are different questions and both
@@ -564,10 +712,22 @@ var FormEngineImpl = function (_a) {
564
712
  enters the component, so the header, the chips, the messages, the meter and
565
713
  the read-first summary cannot disagree about it: every one of them reads
566
714
  `options`, and none of them has to know the rule. */
567
- var _u = (0, react_2.useState)((rest === null || rest === void 0 ? void 0 : rest.options) || undefined), servedOptions = _u[0], setOptions = _u[1];
715
+ var _u = (0, react_2.useState)(optionsSchema || undefined), servedOptions = _u[0], setOptions = _u[1];
568
716
  var options = (0, react_2.useMemo)(function () { return (0, options_1.resolveDegenerateRequiredGroups)(servedOptions); }, [servedOptions]);
717
+ /* Whether the schema the form holds is the one in force: its host is not waiting behind the skeleton, and a
718
+ schema the host hands down has been taken in (`servedOptions` follows the `options` prop a render later).
719
+ Until then the value is neither pruned against the schema nor emitted. A host loading the schema hands an
720
+ empty or an earlier one meanwhile; read against that, every stored field was "not on this instance" and
721
+ was removed, so a Qog state opened before its options had loaded showed them empty and, once emitted,
722
+ lost them (qorus#646). */
723
+ var hostSchemaPending = !optionsLoader &&
724
+ !url &&
725
+ !customUrl &&
726
+ optionsSchema !== servedOptions &&
727
+ JSON.stringify(optionsSchema || undefined) !== JSON.stringify(servedOptions);
728
+ var schemaInForce = !rest.skeleton && !hostSchemaPending;
569
729
  // optionsLoader lifecycle: loading feeds the skeleton gate, error the banner.
570
- var _v = (0, react_2.useState)(!!optionsLoader && !(rest === null || rest === void 0 ? void 0 : rest.options)), optionsLoading = _v[0], setOptionsLoading = _v[1];
730
+ var _v = (0, react_2.useState)(!!optionsLoader && !optionsSchema), optionsLoading = _v[0], setOptionsLoading = _v[1];
571
731
  var _w = (0, react_2.useState)(), optionsError = _w[0], setOptionsError = _w[1];
572
732
  // Operators: prop-provided (compact) or fetched via operatorsUrl (dpql,
573
733
  // ported from IDE Options) — the fetch overrides the seeded prop value.
@@ -636,6 +796,8 @@ var FormEngineImpl = function (_a) {
636
796
  // stays put when its status flips (e.g. becomes valid) instead of jumping to
637
797
  // another box mid-edit and stealing focus. Keyed by option name.
638
798
  var settledBucket = (0, react_2.useRef)({});
799
+ // the one field that says where it moves when it is closed: see `heldOptions`
800
+ var movesToNoteFor = (0, react_2.useRef)(undefined);
639
801
  // Measured form width (not viewport — the form lives in drawers/panels of
640
802
  // arbitrary width) drives the stacked narrow layout.
641
803
  var _7 = (0, react_use_1.useMeasure)(), compactWrapRef = _7[0], compactWrapWidth = _7[1].width;
@@ -857,16 +1019,50 @@ var FormEngineImpl = function (_a) {
857
1019
  * reset the form to it: the field under the cursor went back a step and the keys typed since were lost
858
1020
  * ("I have value" came out as "I he value" in a story under load).
859
1021
  */
860
- var inFlight = (0, emittedValues_1.useEmittedValues)(function (a, b) {
861
- return (0, lodash_1.isEqual)(normalizeEmptyFieldValues(a), normalizeEmptyFieldValues(b));
862
- });
1022
+ var inFlight = (0, emittedValues_1.useEmittedValues)(sameReportedValue);
1023
+ /**
1024
+ * The `value` (and `valueKey`) as of the last commit: what a new `value` is a change from. The sync-down
1025
+ * merges the host's change against it, and the emit effect tells by it that the host changed the value in
1026
+ * the very commit it runs in. Updated by the last effect of each commit (below the sync-down).
1027
+ */
1028
+ var seenValue = (0, react_2.useRef)(value);
1029
+ var seenValueKey = (0, react_2.useRef)(valueKey);
1030
+ /** Whether `value` is the host's own change, made since the last commit: neither seen before nor a report of
1031
+ * this form's coming back. */
1032
+ var isHostsOwnChange = function () {
1033
+ return valueKey !== seenValueKey.current ||
1034
+ (!sameReportedValue(value, seenValue.current) &&
1035
+ !inFlight.includes(value) &&
1036
+ !sameReportedValue(value, lastEmittedValue.current));
1037
+ };
863
1038
  if (originalValue.current === undefined && (0, size_1.default)(value)) {
864
1039
  originalValue.current = localValue.fields;
865
1040
  }
866
1041
  var unavailableOptionsCount = (0, react_2.useRef)(0);
867
1042
  var _17 = (0, useQorusTypes_1.useQorusTypes)(), compactValue = _17.compactValue, typesLoading = _17.loading;
868
- var templates = (0, useTemplates_1.useTemplates)(allowTemplates, rest.stringTemplates, interfaceContext);
1043
+ var templates = (0, useTemplates_1.useTemplates)(allowTemplates, stringTemplates, interfaceContext);
869
1044
  (0, react_2.useEffect)(function () {
1045
+ /* Nothing is emitted until the schema is in force (`schemaInForce`): read against the empty or earlier
1046
+ schema a host hands down while it loads its own, the value is no answer, and emitted it wiped a Qog
1047
+ state's stored options the moment the state was opened (qorus#646).
1048
+
1049
+ When it comes into force this check runs (it is a dependency). A host also shows the skeleton for other
1050
+ waits: qorus-ide shows it while the templates load, with the schema already there. The form completes the
1051
+ value meanwhile (a required field's default, e.g. the server's `created_by_user`), and nothing read it
1052
+ again when the skeleton cleared: the default was shown and never emitted, so never saved. A value that
1053
+ adds nothing still emits nothing. */
1054
+ if (!schemaInForce) {
1055
+ return;
1056
+ }
1057
+ /* The host changed the value in this same commit (effects run in order, and this one runs before the
1058
+ sync-down that takes the change in). The form's copy was made before that change: sent, it overwrote
1059
+ the host's change, the sync-down then took the host's value in, and the next commit sent that back -
1060
+ the form and the host traded places on every commit, forever (qorus#646: the Qorus IDE's OPC UA node
1061
+ editor, its namespace flipping between the old and the renamed one). The sync-down below merges the
1062
+ change with the form's own edits, and the next commit reports the result. */
1063
+ if (isHostsOwnChange()) {
1064
+ return;
1065
+ }
870
1066
  if (!(0, exports.shouldEmitLocalValue)({
871
1067
  localValue: localValue.fields,
872
1068
  value: value,
@@ -881,15 +1077,15 @@ var FormEngineImpl = function (_a) {
881
1077
  // Batched mode still emits every staged change (consumers may want to
882
1078
  // live-validate), but flags it as a draft — persistence waits for Save.
883
1079
  onChange === null || onChange === void 0 ? void 0 : onChange(name, toEmit, commitMode === 'batched' ? __assign(__assign({}, (meta || {})), { draft: true }) : meta);
884
- }, [JSON.stringify(localValue)]);
1080
+ }, [JSON.stringify(localValue), schemaInForce]);
885
1081
  (0, react_use_1.useUpdateEffect)(function () {
886
1082
  // When a loader owns the schema, ignore controlled `options` syncs so a
887
1083
  // late/undefined `options` prop can't clobber the loaded schema.
888
1084
  if (optionsLoader) {
889
1085
  return;
890
1086
  }
891
- setOptions(rest.options);
892
- }, [JSON.stringify(rest.options)]);
1087
+ setOptions(optionsSchema);
1088
+ }, [JSON.stringify(optionsSchema)]);
893
1089
  // Fetch the schema on mount and on loader identity change.
894
1090
  (0, react_2.useEffect)(function () {
895
1091
  if (!optionsLoader) {
@@ -1076,14 +1272,32 @@ var FormEngineImpl = function (_a) {
1076
1272
  // change and re-fixes forever (e.g. byte-size / expression / ruled string fields).
1077
1273
  // Note: compare fixedValue against value, not localValue.fields — localValue may have been
1078
1274
  // updated by nested FormEngine emissions, so comparing against it would never skip.
1079
- var normalizedValue = normalizeEmptyFieldValues(value);
1080
1275
  /* What this rebuild lets us agree with the parent on — `undefined` when it
1081
1276
  contributed something the parent has yet to learn. */
1082
1277
  var agreed = (0, exports.agreementFromRebuild)(fixedValue, value);
1278
+ // a different record: nothing of the previous one is carried into it (see `valueKey`)
1279
+ var sameRecord = valueKey === seenValueKey.current;
1083
1280
  // the echo of an emit still in flight - the last or an older one - is not the parent's change
1084
1281
  var echo = inFlight.isEcho(value);
1085
- if ((echo || (0, lodash_1.isEqual)(normalizedValue, normalizeEmptyFieldValues(lastEmittedValue.current))) &&
1086
- agreed !== undefined) {
1282
+ if (sameRecord && (echo || sameReportedValue(value, lastEmittedValue.current))) {
1283
+ /* The form's own report coming back. Whatever the rebuild adds - a schema that changed in the same
1284
+ commit, a field the host does not store - is added to the form's copy, never by going back to the
1285
+ report: the report may be older than edits made since (an echo of "a" arriving after "ab" was
1286
+ reported lost the "b"). Nothing changes when the form's copy has it all already. */
1287
+ var rebuild_1 = function (fields) {
1288
+ return (0, exports.fixOptions)(fields, options || {}, undefined, isRendererOnly);
1289
+ };
1290
+ if (!(0, lodash_1.isEqual)(rebuild_1(localValue.fields), localValue.fields)) {
1291
+ // the parent has to learn what the rebuild added
1292
+ mirroredValue.current = undefined;
1293
+ }
1294
+ /* What the host changed beside a field's value is taken (its type, say): the report is recognised by its
1295
+ values (see `takeHostsAttributes`). */
1296
+ var base_1 = seenValue.current;
1297
+ setLocalValue(function (current) {
1298
+ var rebuilt = rebuild_1((0, exports.takeHostsAttributes)(value, current.fields, base_1));
1299
+ return (0, lodash_1.isEqual)(rebuilt, current.fields) ? current : { fields: rebuilt, meta: current.meta };
1300
+ });
1087
1301
  return;
1088
1302
  }
1089
1303
  if (!originalValue.current && (0, size_1.default)(fixedValue)) {
@@ -1096,8 +1310,25 @@ var FormEngineImpl = function (_a) {
1096
1310
  if (agreed !== undefined) {
1097
1311
  lastEmittedValue.current = agreed;
1098
1312
  }
1099
- setLocalValue === null || setLocalValue === void 0 ? void 0 : setLocalValue({ fields: fixedValue, meta: undefined });
1100
- }, [JSON.stringify(options), JSON.stringify(value), isRendererOnly]);
1313
+ if (!sameRecord) {
1314
+ setLocalValue({ fields: fixedValue, meta: undefined });
1315
+ return;
1316
+ }
1317
+ // The host's change, with the form's own edits it did not touch kept (see `mergeOwnEdits`).
1318
+ var base = seenValue.current;
1319
+ setLocalValue(function (current) {
1320
+ var merged = (0, exports.mergeOwnEdits)(value, current.fields, base);
1321
+ return {
1322
+ fields: merged === value ? fixedValue : ((0, exports.fixOptions)(merged, options || {}, undefined, isRendererOnly)),
1323
+ meta: undefined,
1324
+ };
1325
+ });
1326
+ }, [JSON.stringify(options), JSON.stringify(value), isRendererOnly, valueKey]);
1327
+ // Last of the value effects: what the next commit's `value` is a change from.
1328
+ (0, react_2.useEffect)(function () {
1329
+ seenValue.current = value;
1330
+ seenValueKey.current = valueKey;
1331
+ });
1101
1332
  var handleValueChange = (0, react_2.useCallback)(function (optionName, val, _type, isFunction) {
1102
1333
  setLocalValue(function (_a) {
1103
1334
  var _b, _c;
@@ -1294,8 +1525,11 @@ var FormEngineImpl = function (_a) {
1294
1525
  var _a, _b;
1295
1526
  var option = fixedValue[optionName];
1296
1527
  if (!(options === null || options === void 0 ? void 0 : options[optionName])) {
1297
- unavailableOptionsCount.current += 1;
1298
- removeSelectedOption(optionName);
1528
+ // not on this instance - unless the schema is not yet the one in force (see `schemaInForce`)
1529
+ if (schemaInForce) {
1530
+ unavailableOptionsCount.current += 1;
1531
+ removeSelectedOption(optionName);
1532
+ }
1299
1533
  return newValue;
1300
1534
  }
1301
1535
  var rendererType = (0, exports.getType)((options[optionName].ui_type || options[optionName].type), operators, option === null || option === void 0 ? void 0 : option.op);
@@ -1315,6 +1549,7 @@ var FormEngineImpl = function (_a) {
1315
1549
  unavailableOptionsCount.current,
1316
1550
  JSON.stringify(operators),
1317
1551
  showInvalidOptionsOnly,
1552
+ schemaInForce,
1318
1553
  ]);
1319
1554
  // Per required-group: its member options, and which member (if any) already
1320
1555
  // satisfies it — drives the "One of" chips and the "covered by" notes.
@@ -1445,12 +1680,15 @@ var FormEngineImpl = function (_a) {
1445
1680
  }, [JSON.stringify(options), JSON.stringify(fixedValue), JSON.stringify(availableOptions)]);
1446
1681
  var isOptionValid = (0, react_2.useCallback)(function (optionName, type, optionValue) {
1447
1682
  var _a, _b, _c, _d;
1448
- var isEmpty = optionValue === undefined || optionValue === '';
1449
- // An empty field locked by an unmet `depends_on` does not apply, so it is
1450
- // not missing — the same rule the read-first status follows.
1451
- if (isEmpty &&
1452
- ((!((_a = options === null || options === void 0 ? void 0 : options[optionName]) === null || _a === void 0 ? void 0 : _a.required) && !((_b = options === null || options === void 0 ? void 0 : options[optionName]) === null || _b === void 0 ? void 0 : _b.required_groups)) ||
1453
- dependencyLockedNames.includes(optionName))) {
1683
+ // the same "not set" the row's status reads: an empty list is no value
1684
+ var isEmpty = (0, readFirst_1.isOptionValueEmpty)(optionValue);
1685
+ // A field whose `depends_on` does not hold does not apply: it is hidden, and nothing in it can make the
1686
+ // form invalid - a value it holds is kept, and said in the form's note, valid or not (qorus#646).
1687
+ if (dependencyLockedNames.includes(optionName)) {
1688
+ return true;
1689
+ }
1690
+ // An empty field that is not required is not missing.
1691
+ if (isEmpty && !((_a = options === null || options === void 0 ? void 0 : options[optionName]) === null || _a === void 0 ? void 0 : _a.required) && !((_b = options === null || options === void 0 ? void 0 : options[optionName]) === null || _b === void 0 ? void 0 : _b.required_groups)) {
1454
1692
  return true;
1455
1693
  }
1456
1694
  return (0, validations_1.validateField)((0, exports.getType)(type), optionValue, __assign(__assign({ has_to_have_value: true, optionSchema: options, options: availableOptions }, options === null || options === void 0 ? void 0 : options[optionName]), {
@@ -1469,28 +1707,41 @@ var FormEngineImpl = function (_a) {
1469
1707
  ]);
1470
1708
  var getValidityData = (0, react_2.useCallback)(function () {
1471
1709
  var fields = (0, reduce_1.default)(availableOptions, function (result, option, optionName) {
1472
- var _a, _b, _c;
1710
+ var _a, _b, _c, _d;
1473
1711
  var type = (0, exports.getOptionFieldStorageType)(optionName, option.type, options, operators, option.op, isRendererOnly, optionHoldsExpression(option));
1474
1712
  var optionValue = option.value;
1475
1713
  var isRequired = (_a = options === null || options === void 0 ? void 0 : options[optionName]) === null || _a === void 0 ? void 0 : _a.required;
1476
1714
  var hasRequiredGroups = !!((_b = options === null || options === void 0 ? void 0 : options[optionName]) === null || _b === void 0 ? void 0 : _b.required_groups);
1477
- var isEmpty = optionValue === undefined || optionValue === '';
1715
+ // the same "not set" the row's status reads: an empty list is no value
1716
+ var isEmpty = (0, readFirst_1.isOptionValueEmpty)(optionValue);
1478
1717
  var validation;
1479
- /* A required field locked by an unmet `depends_on` does not apply
1480
- while it is locked: it is not in "Needs attention", and an empty one
1481
- does not make the form incomplete either. Otherwise a check whose
1482
- kind is Equals could never be saved, because Minimum — required for
1483
- Between alone — is empty; and a form whose only gaps are fields
1484
- nobody can fill in would say Incomplete with nothing to act on. A
1485
- locked field that still HOLDS a value is validated as before. */
1486
- if (isEmpty &&
1487
- ((!isRequired && !hasRequiredGroups) || dependencyLockedNames.includes(optionName))) {
1488
- validation = { isValid: true, reasons: [] };
1718
+ /* A field whose host gives its own reason (`invalid_reason`) is invalid while it does, whatever the
1719
+ field makes of its value: the host knows something the field cannot - that a field it names
1720
+ is not in the record, that text around a field is not a whole number - and says it in the field,
1721
+ in place of the field's own message (`getOptionFieldMessages`). */
1722
+ var hostReason = (_c = options === null || options === void 0 ? void 0 : options[optionName]) === null || _c === void 0 ? void 0 : _c.invalid_reason;
1723
+ if (hostReason) {
1724
+ validation = { isValid: false, reason: hostReason, reasons: [hostReason] };
1489
1725
  }
1490
1726
  else {
1491
- validation = (0, validations_1.validateFieldWithResult)((0, exports.getType)(type), optionValue, __assign(__assign({ has_to_have_value: true, optionSchema: options, options: availableOptions }, options === null || options === void 0 ? void 0 : options[optionName]), {
1492
- // The expression flag lives on the field value, not the schema.
1493
- isFunction: option.is_expression, hasOwnEditor: isRendererOnly((_c = options === null || options === void 0 ? void 0 : options[optionName]) === null || _c === void 0 ? void 0 : _c.ui_type) }));
1727
+ /* A required field locked by an unmet `depends_on` does not apply
1728
+ while it is locked: it is not in "Needs attention", and an empty one
1729
+ does not make the form incomplete either. Otherwise a check whose
1730
+ kind is Equals could never be saved, because Minimum — required for
1731
+ Between alone — is empty; and a form whose only gaps are fields
1732
+ nobody can fill in would say Incomplete with nothing to act on. A
1733
+ locked field that still HOLDS a value is validated as before. */
1734
+ if (dependencyLockedNames.includes(optionName) ||
1735
+ (isEmpty && !isRequired && !hasRequiredGroups)) {
1736
+ /* A field whose `depends_on` does not hold is hidden and does not apply: nothing in it makes the
1737
+ form invalid, empty or holding a value (kept, and said in the form's note - qorus#646). */
1738
+ validation = { isValid: true, reasons: [] };
1739
+ }
1740
+ else {
1741
+ validation = (0, validations_1.validateFieldWithResult)((0, exports.getType)(type), optionValue, __assign(__assign({ has_to_have_value: true, optionSchema: options, options: availableOptions }, options === null || options === void 0 ? void 0 : options[optionName]), {
1742
+ // The expression flag lives on the field value, not the schema.
1743
+ isFunction: option.is_expression, hasOwnEditor: isRendererOnly((_d = options === null || options === void 0 ? void 0 : options[optionName]) === null || _d === void 0 ? void 0 : _d.ui_type) }));
1744
+ }
1494
1745
  }
1495
1746
  result.push({
1496
1747
  fieldName: optionName,
@@ -1519,9 +1770,16 @@ var FormEngineImpl = function (_a) {
1519
1770
  (0, react_2.useEffect)(function () {
1520
1771
  onValidityChange === null || onValidityChange === void 0 ? void 0 : onValidityChange(optionsAreValid, validityData);
1521
1772
  }, [JSON.stringify(validityData)]);
1773
+ /* A field whose `depends_on` does not hold is not shown (qorus#646, David): it is not of use until it applies,
1774
+ so it is left out of the form - not shown waiting, locked - and appears once its dependency holds (and
1775
+ flashes - see `dependencyLockedNames`). Its value is kept; one it holds meanwhile is said in the form's
1776
+ note (`hiddenFieldsWithValues`). */
1522
1777
  var shownOptions = (0, react_2.useMemo)(function () {
1523
1778
  return (0, reduce_1.default)(availableOptions, function (newValue, option, optionName) {
1524
1779
  var _a;
1780
+ if (dependencyLockedNames.includes(optionName)) {
1781
+ return newValue;
1782
+ }
1525
1783
  if (showInvalidOptionsOnly &&
1526
1784
  isOptionValid(optionName, (0, exports.getOptionFieldStorageType)(optionName, option.type, options, operators, option.op, isRendererOnly, optionHoldsExpression(option)), option.value)) {
1527
1785
  return newValue;
@@ -1529,6 +1787,7 @@ var FormEngineImpl = function (_a) {
1529
1787
  return __assign(__assign({}, newValue), (_a = {}, _a[optionName] = option, _a));
1530
1788
  }, {});
1531
1789
  }, [
1790
+ dependencyLockedNames,
1532
1791
  showInvalidOptionsOnly,
1533
1792
  isRendererOnly,
1534
1793
  JSON.stringify(availableOptions),
@@ -1542,7 +1801,7 @@ var FormEngineImpl = function (_a) {
1542
1801
  var schemaMsgIntent = (0, react_2.useCallback)(function (name) {
1543
1802
  var _a;
1544
1803
  // Filtered, not raw: a message hidden by its own `when`/`unless` must not
1545
- // colour the row or push the field into "Needs attention" — the whole point
1804
+ // color the row or push the field into "Needs attention" — the whole point
1546
1805
  // of a conditional warning is that it is absent while it does not apply.
1547
1806
  var msgs = (0, OptionFieldMessages_1.getShownSchemaMessages)((_a = options === null || options === void 0 ? void 0 : options[name]) === null || _a === void 0 ? void 0 : _a.messages, availableOptions, options);
1548
1807
  if (msgs.some(function (m) { return m.intent === 'danger'; }))
@@ -1612,9 +1871,10 @@ var FormEngineImpl = function (_a) {
1612
1871
  }, [JSON.stringify(options), requiredGroupsInfo, getOptionStatus, dependencyLockedNames]);
1613
1872
  // How many fields are in the "Needs attention" box — drives the header link.
1614
1873
  var readFirstAttentionCount = (0, react_2.useMemo)(function () {
1615
- return Object.keys(availableOptions || {}).filter(function (name) { return getOptionBucket(name) === 'attention'; })
1616
- .length;
1617
- }, [JSON.stringify(availableOptions), getOptionBucket]);
1874
+ return Object.keys(availableOptions || {}).filter(
1875
+ // a hidden field (its `depends_on` does not hold) is not in the form, nor in its counts
1876
+ function (name) { return !dependencyLockedNames.includes(name) && getOptionBucket(name) === 'attention'; }).length;
1877
+ }, [JSON.stringify(availableOptions), getOptionBucket, dependencyLockedNames]);
1618
1878
  var getIntent = (0, react_2.useCallback)(
1619
1879
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
1620
1880
  function (optName, type, optValue, _op) {
@@ -1663,7 +1923,12 @@ var FormEngineImpl = function (_a) {
1663
1923
  var handleOptionLabelClick = (0, react_2.useCallback)(function (optionName) {
1664
1924
  setShowHelpForOption(optionName);
1665
1925
  }, []);
1926
+ /** Whether the first-required scan below has run, or is spent (see it). Only a remount arms it again. */
1927
+ var hasAutoFocusedRef = (0, react_2.useRef)(false);
1666
1928
  var toggleExpandedOption = (0, react_2.useCallback)(function (optionName) {
1929
+ // A row the user opens or closes is where they have chosen to work: the first-required scan, if it is
1930
+ // still waiting for the focus to be free, does not run after it (qorus#646).
1931
+ hasAutoFocusedRef.current = true;
1667
1932
  setExpandedOptions(function (prev) {
1668
1933
  return prev.includes(optionName) ? prev.filter(function (name) { return name !== optionName; })
1669
1934
  // single (default): opening a row collapses any other open one.
@@ -1702,6 +1967,39 @@ var FormEngineImpl = function (_a) {
1702
1967
  setExpandedOptions(function (prev) { return __spreadArray(__spreadArray([], prev, true), toExpand.filter(function (name) { return !prev.includes(name); }), true); });
1703
1968
  }, [initialExpandedOptions, compact, availableOptions]);
1704
1969
  // --- First-attention-field autofocus (opt-in) -----------------------------
1970
+ /** The first row that needs an answer and can take one, if any: what the first-required scan opens. */
1971
+ var firstAttentionRow = function () {
1972
+ return (0, readFirst_1.getFirstAttentionOptionName)(Object.keys(availableOptions), function (fieldName) {
1973
+ var schema = options === null || options === void 0 ? void 0 : options[fieldName];
1974
+ if (!schema) {
1975
+ return undefined;
1976
+ }
1977
+ return {
1978
+ focusable: !readOnly &&
1979
+ !schema.disabled &&
1980
+ !schema.readonly &&
1981
+ !dependencyLockedNames.includes(fieldName),
1982
+ // Single source of truth: the same bucket the read-first status boxes
1983
+ // show, so a filled-but-invalid required row is a target too.
1984
+ needsAttention: getOptionBucket(fieldName) === 'attention',
1985
+ };
1986
+ });
1987
+ };
1988
+ var openFirstAttentionRow = function (target) {
1989
+ if (target) {
1990
+ setExpandedOptions(function (prev) {
1991
+ return prev.includes(target) ? prev
1992
+ : expandMode === 'multi' ? __spreadArray(__spreadArray([], prev, true), [target], false)
1993
+ // `expandMode: 'single'` is a rule about what a CLICK does: opening a
1994
+ // row closes the one the reader last opened. It is not a licence to
1995
+ // close a row the HOST named through `initialExpandedOptions`. That
1996
+ // is an address — a statement about what the page is FOR, made before
1997
+ // the reader did anything — and this scan is a convenience layered on
1998
+ // top of it. Keep the named rows; replace only what a click could.
1999
+ : __spreadArray(__spreadArray([], prev.filter(function (name) { return initialExpandedOptions === null || initialExpandedOptions === void 0 ? void 0 : initialExpandedOptions.includes(name); }), true), [target], false);
2000
+ });
2001
+ }
2002
+ };
1705
2003
  // With `autoFocusFirstRequired`, drop the user straight into the first field
1706
2004
  // they must fix. We reuse the engine's own ordering (`availableOptions`), the
1707
2005
  // very same `getOptionBucket` the status boxes use to decide "needs attention"
@@ -1717,7 +2015,12 @@ var FormEngineImpl = function (_a) {
1717
2015
  // field update or an in-place schema reload will NOT re-grab focus; only a
1718
2016
  // genuine remount (a fresh instance) auto-focuses again, which is the intended
1719
2017
  // on-mount behaviour.
1720
- var hasAutoFocusedRef = (0, react_2.useRef)(false);
2018
+ //
2019
+ // It waits only for the user's first move. A form opened from a button mounts while that button holds the
2020
+ // focus, and the scan waits for it to be free - but the user does not wait: they open a row (which spends
2021
+ // the scan, `toggleExpandedOption`) or come into the form from the keyboard (which runs it, below). Waiting
2022
+ // past that, the scan ran the first time the focus rested on nothing, which is the Done that closes the
2023
+ // user's row, and opened the next row that needed an answer by itself in the middle of their work.
1721
2024
  (0, react_2.useEffect)(function () {
1722
2025
  // Two decisions, one scan. Both open the row that needs attention;
1723
2026
  // `autoFocusFirstRequired` additionally promises the caret lands in it, and
@@ -1752,38 +2055,11 @@ var FormEngineImpl = function (_a) {
1752
2055
  if (wantsFocus && active && active !== document.body) {
1753
2056
  return;
1754
2057
  }
1755
- var target = (0, readFirst_1.getFirstAttentionOptionName)(orderedNames, function (fieldName) {
1756
- var schema = options[fieldName];
1757
- if (!schema) {
1758
- return undefined;
1759
- }
1760
- return {
1761
- focusable: !readOnly &&
1762
- !schema.disabled &&
1763
- !schema.readonly &&
1764
- !dependencyLockedNames.includes(fieldName),
1765
- // Single source of truth: the same bucket the read-first status boxes
1766
- // show, so a filled-but-invalid required row is a target too.
1767
- needsAttention: getOptionBucket(fieldName) === 'attention',
1768
- };
1769
- });
1770
2058
  // Mark done even when nothing needs attention, so later value edits or an
1771
2059
  // in-place schema reload never re-scan or re-focus. Only a remount arms it
1772
2060
  // again.
1773
2061
  hasAutoFocusedRef.current = true;
1774
- if (target) {
1775
- setExpandedOptions(function (prev) {
1776
- return prev.includes(target) ? prev
1777
- : expandMode === 'multi' ? __spreadArray(__spreadArray([], prev, true), [target], false)
1778
- // `expandMode: 'single'` is a rule about what a CLICK does: opening a
1779
- // row closes the one the reader last opened. It is not a licence to
1780
- // close a row the HOST named through `initialExpandedOptions`. That
1781
- // is an address — a statement about what the page is FOR, made before
1782
- // the reader did anything — and this scan is a convenience layered on
1783
- // top of it. Keep the named rows; replace only what a click could.
1784
- : __spreadArray(__spreadArray([], prev.filter(function (name) { return initialExpandedOptions === null || initialExpandedOptions === void 0 ? void 0 : initialExpandedOptions.includes(name); }), true), [target], false);
1785
- });
1786
- }
2062
+ openFirstAttentionRow(firstAttentionRow());
1787
2063
  }, [
1788
2064
  autoFocusFirstRequired,
1789
2065
  expandFirstRequired,
@@ -1796,11 +2072,84 @@ var FormEngineImpl = function (_a) {
1796
2072
  expandMode,
1797
2073
  initialExpandedOptions,
1798
2074
  ]);
2075
+ /* The two first moves a user makes in a form opened from a button, while the scan above waits for the
2076
+ focus to be free:
2077
+ - pointing into the form (a click on a row, a field, the toolbar) is choosing where to work, and spends
2078
+ the scan, as opening a row does (`toggleExpandedOption`);
2079
+ - coming into it from the keyboard (Tab from the button) chooses nothing, and runs the scan now: the user
2080
+ is put in the first row that needs an answer, once. Coming straight into a control they can type in
2081
+ (a field already open, the search box) is theirs, and spends the scan without moving them.
2082
+ Only while the scan still waits; it never runs twice. */
2083
+ var keyboardEntry = (0, react_2.useRef)();
2084
+ keyboardEntry.current = function (event) {
2085
+ if (hasAutoFocusedRef.current || !options || !Object.keys(availableOptions).length) {
2086
+ return;
2087
+ }
2088
+ var from = event.relatedTarget;
2089
+ if (from && (compactWrapNode === null || compactWrapNode === void 0 ? void 0 : compactWrapNode.contains(from))) {
2090
+ return;
2091
+ }
2092
+ hasAutoFocusedRef.current = true;
2093
+ var entered = event.target;
2094
+ if ((0, rowFocus_1.isTypingControl)(entered)) {
2095
+ return;
2096
+ }
2097
+ var target = firstAttentionRow();
2098
+ if (!target) {
2099
+ return;
2100
+ }
2101
+ // A row takes the caret only from nothing - never from an element the reader is on (see CompactRow) - so
2102
+ // the element the Tab landed on lets it go: the scan is what the reader came in for.
2103
+ entered.blur();
2104
+ openFirstAttentionRow(target);
2105
+ };
2106
+ (0, react_2.useEffect)(function () {
2107
+ if (!autoFocusFirstRequired || !compact || !compactWrapNode) {
2108
+ return undefined;
2109
+ }
2110
+ var onPointerDown = function () {
2111
+ hasAutoFocusedRef.current = true;
2112
+ };
2113
+ var onFocusIn = function (event) { var _a; return (_a = keyboardEntry.current) === null || _a === void 0 ? void 0 : _a.call(keyboardEntry, event); };
2114
+ // capture: the pointer is the user's choice before anything in the form answers it
2115
+ compactWrapNode.addEventListener('pointerdown', onPointerDown, true);
2116
+ compactWrapNode.addEventListener('focusin', onFocusIn);
2117
+ return function () {
2118
+ compactWrapNode.removeEventListener('pointerdown', onPointerDown, true);
2119
+ compactWrapNode.removeEventListener('focusin', onFocusIn);
2120
+ };
2121
+ }, [autoFocusFirstRequired, compact, compactWrapNode]);
1799
2122
  // Read-first completion summary (how many shown options have a value set),
1800
2123
  // surfaced as a progress meter at the top of the compact form.
1801
2124
  var readFirstCompletion = (0, react_2.useMemo)(function () {
1802
- return (0, readFirst_1.getReadFirstCompletion)(availableOptions, function (name) { return getOptionBucket(name) === 'attention'; });
1803
- }, [JSON.stringify(availableOptions), getOptionBucket]);
2125
+ return (0, readFirst_1.getReadFirstCompletion)(
2126
+ // a hidden field (its `depends_on` does not hold) is not in the form, nor in its meter
2127
+ (0, lodash_1.omit)(availableOptions, dependencyLockedNames), function (name) { return getOptionBucket(name) === 'attention'; });
2128
+ }, [JSON.stringify(availableOptions), getOptionBucket, dependencyLockedNames]);
2129
+ /* The hidden fields (their `depends_on` does not hold) that hold a value: kept, not dropped silently, so the form
2130
+ says so in a note - and whether the value is valid, as no field shows it (qorus#646, David). */
2131
+ var hiddenFieldsWithValues = (0, react_2.useMemo)(function () {
2132
+ return dependencyLockedNames
2133
+ .filter(function (name) { var _a; return !(0, readFirst_1.isOptionValueEmpty)((_a = availableOptions === null || availableOptions === void 0 ? void 0 : availableOptions[name]) === null || _a === void 0 ? void 0 : _a.value); })
2134
+ .map(function (name) {
2135
+ var field = availableOptions[name];
2136
+ var schema = options === null || options === void 0 ? void 0 : options[name];
2137
+ var type = (0, exports.getOptionFieldStorageType)(name, field.type, options, operators, field.op, isRendererOnly, optionHoldsExpression(field));
2138
+ var validation = (0, validations_1.validateFieldWithResult)((0, exports.getType)(type), field.value, __assign(__assign({ has_to_have_value: true, optionSchema: options, options: availableOptions }, schema), { isFunction: field.is_expression, hasOwnEditor: isRendererOnly(schema === null || schema === void 0 ? void 0 : schema.ui_type) }));
2139
+ return {
2140
+ name: name,
2141
+ label: (schema === null || schema === void 0 ? void 0 : schema.display_name) || name,
2142
+ conditions: (0, OptionFieldMessages_1.describeDependencies)(((schema === null || schema === void 0 ? void 0 : schema.depends_on) || []), options || {}),
2143
+ invalidReason: validation.isValid ? undefined : validation.reason,
2144
+ };
2145
+ });
2146
+ }, [
2147
+ dependencyLockedNames,
2148
+ JSON.stringify(availableOptions),
2149
+ JSON.stringify(options),
2150
+ JSON.stringify(operators),
2151
+ isRendererOnly,
2152
+ ]);
1804
2153
  var optionalFields = (0, react_2.useMemo)(function () {
1805
2154
  return Object.keys(filteredOptions).map(function (option) {
1806
2155
  var _a, _b, _c, _d, _f, _g;
@@ -1999,6 +2348,9 @@ var FormEngineImpl = function (_a) {
1999
2348
  // reqraft: form-level expression fields get the Visual/Text shell
2000
2349
  // (DPQL text mode); opt out per-form via `templateFieldProps`.
2001
2350
  allowTextExpressions: true,
2351
+ // a form's options enter their value on tabs: Value · Expression · Visual, or Value · Template
2352
+ // where only templates are taken (qorus#646); opt out per-form via `templateFieldProps`
2353
+ valueTabs: true,
2002
2354
  // A fixed allowed-value field still needs its selector even when
2003
2355
  // arbitrary custom values are forbidden. TemplateField uses this
2004
2356
  // flag to decide whether to mount AutoFormField at all; treating
@@ -2064,7 +2416,7 @@ var FormEngineImpl = function (_a) {
2064
2416
  fixedValue,
2065
2417
  // Depend on the specific `rest` values used, not the whole `rest` object
2066
2418
  // (which is a fresh `{...rest}` every render and would defeat the memo).
2067
- rest === null || rest === void 0 ? void 0 : rest.options,
2419
+ optionsSchema,
2068
2420
  rest === null || rest === void 0 ? void 0 : rest.size,
2069
2421
  handleValueChange,
2070
2422
  handleOperatorChange,
@@ -2076,11 +2428,11 @@ var FormEngineImpl = function (_a) {
2076
2428
  inheritedFromParent,
2077
2429
  ]);
2078
2430
  // Compact (read-first) rendering.
2079
- // Theme-derived colours so the flat-row layout adapts to light/dark/custom themes.
2431
+ // Theme-derived colors so the flat-row layout adapts to light/dark/custom themes.
2080
2432
  var cText = ((_b = theme === null || theme === void 0 ? void 0 : theme.text) === null || _b === void 0 ? void 0 : _b.color) || '#f1f0ee';
2081
- // Text emphasis tiers via reqore's readable-colour helper (key = full readable
2433
+ // Text emphasis tiers via reqore's readable-color helper (key = full readable
2082
2434
  // text, muted = its dimmed variant, faint = the dimmed variant softened
2083
- // further) instead of hand-rolled hex-alpha suffixes on the raw text colour.
2435
+ // further) instead of hand-rolled hex-alpha suffixes on the raw text color.
2084
2436
  var cKey = (0, colors_1.getReadableColor)(theme);
2085
2437
  var cMuted = (0, colors_1.getReadableColor)(theme, undefined, undefined, true);
2086
2438
  var cFaint = "".concat(cMuted, "99");
@@ -2090,6 +2442,15 @@ var FormEngineImpl = function (_a) {
2090
2442
  var cWarning = ((_d = theme === null || theme === void 0 ? void 0 : theme.intents) === null || _d === void 0 ? void 0 : _d.warning) || '#ffdf34';
2091
2443
  var cInfo = ((_f = theme === null || theme === void 0 ? void 0 : theme.intents) === null || _f === void 0 ? void 0 : _f.info) || '#3b8eea';
2092
2444
  var cSuccess = ((_g = theme === null || theme === void 0 ? void 0 : theme.intents) === null || _g === void 0 ? void 0 : _g.success) || '#36b37e';
2445
+ // the rows' own words and marks, in colors that read on every surface a row is drawn on
2446
+ var rowInks = (0, react_2.useMemo)(function () { return (0, readFirstColors_1.getReadFirstInks)(theme); }, [theme]);
2447
+ // an option panel's short description, faint: as faint as it still reads in the theme
2448
+ var optionDescOpacity = (0, react_2.useMemo)(function () { return (0, readableColors_1.getReadableTextOpacity)(theme, 0.3); }, [theme]);
2449
+ /* an invalid option's mark in its panel's title: the danger, in the shade of it that stands out as reqore draws a
2450
+ title icon, at 70% (danger:lighten:5 was 2.9:1) */
2451
+ var invalidOptionIconColor = (0, react_2.useMemo)(function () {
2452
+ return (0, readableColors_1.getReadableShade)(cDanger, (0, readableColors_1.getThemeSurfaces)(theme), readableColors_1.READABLE_ICON, PANEL_TITLE_ICON_ALPHA);
2453
+ }, [theme, cDanger]);
2093
2454
  var cBg = (theme === null || theme === void 0 ? void 0 : theme.main) || '#181818';
2094
2455
  var cRowBg = (0, colors_1.changeDarkness)((0, colors_1.getMainBackgroundColor)(theme), 0.01);
2095
2456
  var cGroupLine = "".concat(cText, "1f");
@@ -2099,8 +2460,39 @@ var FormEngineImpl = function (_a) {
2099
2460
  // The closure surface the extracted CompactRow reads through context. Refs and
2100
2461
  // setters are stable; the state/memo/handler fields change identity as they do
2101
2462
  // today, so a row re-renders exactly when its inputs do.
2463
+ /* An open field is held in the box it was opened in, so finishing an edit does not remount it elsewhere
2464
+ and take the focus (see `stableBucketOf`). Held, it says where it now belongs - otherwise a value
2465
+ already right sat under "Needs attention" until ✓ was pressed, with nothing saying why (David's review
2466
+ of qorus#646). Keyed by option name: the box it moves to when closed.
2467
+
2468
+ It is said once per form, on the first field held this way, and on no field once that one is closed:
2469
+ the user knows it from then on, and saying it on every field takes room (qlip build 20261008-083118;
2470
+ David's decision). `movesToNoteFor` is that field - undefined until one is held, null once it is
2471
+ closed. */
2472
+ var heldEntries = expandedOptions
2473
+ .map(function (name) { return [name, settledBucket.current[name], getOptionBucket(name)]; })
2474
+ .filter(function (_a) {
2475
+ var held = _a[1], now = _a[2];
2476
+ return !!held && held !== now;
2477
+ })
2478
+ .map(function (_a) {
2479
+ var name = _a[0], now = _a[2];
2480
+ return [name, now];
2481
+ });
2482
+ if (movesToNoteFor.current === undefined && heldEntries.length) {
2483
+ movesToNoteFor.current = heldEntries[0][0];
2484
+ }
2485
+ else if (movesToNoteFor.current && !expandedOptions.includes(movesToNoteFor.current)) {
2486
+ movesToNoteFor.current = null;
2487
+ }
2488
+ var heldOptionsKey = JSON.stringify(Object.fromEntries(heldEntries.filter(function (_a) {
2489
+ var name = _a[0];
2490
+ return name === movesToNoteFor.current;
2491
+ })));
2492
+ var heldOptions = (0, react_2.useMemo)(function () { return JSON.parse(heldOptionsKey); }, [heldOptionsKey]);
2102
2493
  var compactRowContextValue = (0, react_2.useMemo)(function () { return ({
2103
2494
  templates: templates.value,
2495
+ heldOptions: heldOptions,
2104
2496
  readOnly: readOnly,
2105
2497
  onReadOnlyActivate: onReadOnlyActivate,
2106
2498
  commitMode: commitMode,
@@ -2110,6 +2502,7 @@ var FormEngineImpl = function (_a) {
2110
2502
  focusedEditing: focusedEditing,
2111
2503
  showFieldTypes: showFieldTypes,
2112
2504
  codePreviewRenderer: codePreviewRenderer,
2505
+ readSummaries: readSummaries,
2113
2506
  showAllDescriptions: showAllDescriptions,
2114
2507
  expandedOptions: expandedOptions,
2115
2508
  highlightedOptions: highlightedOptions,
@@ -2147,8 +2540,10 @@ var FormEngineImpl = function (_a) {
2147
2540
  cWarning: cWarning,
2148
2541
  cInfo: cInfo,
2149
2542
  cBg: cBg,
2543
+ rowInks: rowInks,
2150
2544
  }); }, [
2151
2545
  templates.value,
2546
+ heldOptions,
2152
2547
  readOnly,
2153
2548
  commitMode,
2154
2549
  expandMode,
@@ -2157,6 +2552,7 @@ var FormEngineImpl = function (_a) {
2157
2552
  focusedEditing,
2158
2553
  showFieldTypes,
2159
2554
  codePreviewRenderer,
2555
+ readSummaries,
2160
2556
  showAllDescriptions,
2161
2557
  expandedOptions,
2162
2558
  highlightedOptions,
@@ -2194,6 +2590,7 @@ var FormEngineImpl = function (_a) {
2194
2590
  cWarning,
2195
2591
  cInfo,
2196
2592
  cBg,
2593
+ rowInks,
2197
2594
  ]);
2198
2595
  // `compactToolbar` resolved to a full object, so neither the context type nor
2199
2596
  // the toolbar itself has to re-default anything. `null` means no toolbar.
@@ -2571,7 +2968,7 @@ var FormEngineImpl = function (_a) {
2571
2968
  // "Covers"/"Covered by" chips already say which member satisfies it.
2572
2969
  if (requiredGroupsInfo.satisfiedBy[grp])
2573
2970
  return railed;
2574
- 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": cWarning, children: [(0, jsx_runtime_1.jsx)(reqore_1.ReqoreIcon, { icon: 'LinkM', size: '11px', style: { color: cWarning } }), "One of the below is required"] }), railed] }, grp));
2971
+ 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 } }), "One of the below is required"] }), railed] }, grp));
2575
2972
  });
2576
2973
  };
2577
2974
  // One schema group inside a status box: its thin sub-label, the group's
@@ -2655,7 +3052,7 @@ var FormEngineImpl = function (_a) {
2655
3052
  visible` to `auto` unless the other axis is visible or
2656
3053
  clip, which would put the scrollport straight back. `clip`
2657
3054
  keeps the horizontal guard the row ellipsis relies on. */
2658
- overflowY: 'visible', overflowX: 'clip' }, compactPanelProps === null || compactPanelProps === void 0 ? void 0 : compactPanelProps.contentStyle), children: [(0, size_1.default)(groupKeys) === 0 || (readOnly && !bucketCount('set')) ?
3055
+ overflowY: 'visible', overflowX: 'clip' }, compactPanelProps === null || compactPanelProps === void 0 ? void 0 : compactPanelProps.contentStyle), children: [(0, jsx_runtime_1.jsx)(HiddenFieldsNote_1.HiddenFieldsNote, { fields: hiddenFieldsWithValues }), (0, size_1.default)(groupKeys) === 0 || (readOnly && !bucketCount('set')) ?
2659
3056
  (0, jsx_runtime_1.jsx)(reqore_1.ReqoreMessage, { flat: true, opaque: false, size: 'small', children: readOnly && !query ?
2660
3057
  'Nothing is set.'
2661
3058
  : 'No fields match the current filters.' })
@@ -2772,7 +3169,7 @@ var FormEngineImpl = function (_a) {
2772
3169
  })
2773
3170
  : null] }) }, box.key));
2774
3171
  })] })), commitMode === 'batched' && !readOnly && dirtyOptionNames.length ?
2775
- (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: "".concat(dirtyOptionNames.length, " unsaved change").concat(dirtyOptionNames.length === 1 ? '' : 's') }), (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 ?
3172
+ (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: "".concat(dirtyOptionNames.length, " unsaved change").concat(dirtyOptionNames.length === 1 ? '' : 's') }), 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 ?
2776
3173
  'Apply the staged changes'
2777
3174
  : 'Resolve the invalid fields before saving', onClick: handleCommitClick, children: "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: "Discard" })] }) })
2778
3175
  : null] }) })] }) }) }));
@@ -2780,7 +3177,10 @@ var FormEngineImpl = function (_a) {
2780
3177
  /* Which of the seven waits is holding the form, in the order they are
2781
3178
  tested. Rendered as `data-wait` on the placeholder so a page can be asked
2782
3179
  what it is waiting FOR instead of only that it is waiting. */
2783
- var waitReason = rest.skeleton ? (rest.skeletonReason ? "host:".concat(rest.skeletonReason) : 'host')
3180
+ var waitReason = rest.skeleton ?
3181
+ skeletonReason ?
3182
+ "host:".concat(skeletonReason)
3183
+ : 'host'
2784
3184
  : templates.loading ? 'templates'
2785
3185
  : typesLoading ? 'types'
2786
3186
  : optionsLoading ? 'options'
@@ -2816,7 +3216,7 @@ var FormEngineImpl = function (_a) {
2816
3216
  : "".concat((0, size_1.default)(validityData.invalidFields) < 2 ? 'A field is not valid and requires' : "".concat((0, size_1.default)(validityData.invalidFields), " fields are not valid and require"), " attention. Click here to only show invalid fields.") })
2817
3217
  : null, unavailableOptionsCount.current ?
2818
3218
  (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(reqore_1.ReqoreMessage, { intent: 'warning', opaque: false, size: 'small', margin: 'bottom', children: "".concat(unavailableOptionsCount.current, " fields(s) hidden because they are not supported on the current instance") }), (0, jsx_runtime_1.jsx)(reqore_1.ReqoreVerticalSpacer, { height: 10 })] })
2819
- : null, children, (0, size_1.default)(filteredOptions) >= 1 && !readOnly ?
3219
+ : null, (0, jsx_runtime_1.jsx)(HiddenFieldsNote_1.HiddenFieldsNote, { fields: hiddenFieldsWithValues }), children, (0, size_1.default)(filteredOptions) >= 1 && !readOnly ?
2820
3220
  (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 || 'More Options Available', minimal: true, icon: 'ListView', showDescription: false, fluid: true, size: rest.size })] })
2821
3221
  : null] })); }, sortButtonProps: { minimal: true }, showLayoutSwitch: false, style: { width: '100%' }, items: (0, map_1.default)(shownOptions, function (_a, optionName) {
2822
3222
  var _b, _c, _d, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
@@ -2847,7 +3247,7 @@ var FormEngineImpl = function (_a) {
2847
3247
  : options[optionName].short_desc || '',
2848
3248
  descriptionEffect: {
2849
3249
  textSize: '11px',
2850
- opacity: 0.3,
3250
+ opacity: optionDescOpacity,
2851
3251
  underline: ((_l = options[optionName]) === null || _l === void 0 ? void 0 : _l.desc) ? 'underline dotted #878787' : undefined,
2852
3252
  },
2853
3253
  customTheme: {
@@ -2857,7 +3257,7 @@ var FormEngineImpl = function (_a) {
2857
3257
  icon: !isOptionValid(optionName, type, other.value) ? 'SpamFill'
2858
3258
  : undefined,
2859
3259
  iconColor: !isOptionValid(optionName, type, other.value) ?
2860
- 'danger:lighten:5'
3260
+ invalidOptionIconColor
2861
3261
  : undefined,
2862
3262
  transparent: false,
2863
3263
  intent: getIntent(optionName, type, other.value, other.op),