@motifx-community/ui 0.1.0-beta.13 → 0.1.0-beta.14

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 (459) hide show
  1. package/CHANGELOG.md +379 -0
  2. package/README.md +2 -0
  3. package/dist/components/chart/Chart.d.ts +6 -4
  4. package/dist/components/chart/ChartPlot.d.ts +2 -1
  5. package/dist/components/chart/plot-view.d.ts +10 -2
  6. package/dist/components/chat/Chat.d.ts +276 -0
  7. package/dist/components/chat/ChatComposer.d.ts +172 -0
  8. package/dist/components/chat/ChatReply.d.ts +53 -0
  9. package/dist/components/chat/ChatWriter.d.ts +119 -0
  10. package/dist/components/chat/chat-ask-form.d.ts +64 -0
  11. package/dist/components/chat/chat-asked-entry.d.ts +21 -0
  12. package/dist/components/chat/chat-attachment-entry.d.ts +18 -0
  13. package/dist/components/chat/chat-choices-view.d.ts +40 -0
  14. package/dist/components/chat/chat-command.d.ts +7 -0
  15. package/dist/components/chat/chat-compaction-entry.d.ts +19 -0
  16. package/dist/components/chat/chat-composer-props.d.ts +63 -0
  17. package/dist/components/chat/chat-context-changed-event-args.d.ts +8 -0
  18. package/dist/components/chat/chat-context-item.d.ts +14 -0
  19. package/dist/components/chat/chat-copy-button.d.ts +11 -0
  20. package/dist/components/chat/chat-entry.d.ts +20 -0
  21. package/dist/components/chat/chat-flow-view.d.ts +32 -0
  22. package/dist/components/chat/chat-form-entry.d.ts +24 -0
  23. package/dist/components/chat/chat-form-view.d.ts +48 -0
  24. package/dist/components/chat/chat-history-event-args.d.ts +31 -0
  25. package/dist/components/chat/chat-load-older-event-args.d.ts +17 -0
  26. package/dist/components/chat/chat-look.d.ts +33 -0
  27. package/dist/components/chat/chat-mention.d.ts +21 -0
  28. package/dist/components/chat/chat-message-status.d.ts +2 -0
  29. package/dist/components/chat/chat-message.d.ts +23 -0
  30. package/dist/components/chat/chat-notice-entry.d.ts +20 -0
  31. package/dist/components/chat/chat-option.d.ts +7 -0
  32. package/dist/components/chat/chat-part.d.ts +110 -0
  33. package/dist/components/chat/chat-plan-entry.d.ts +25 -0
  34. package/dist/components/chat/chat-props.d.ts +70 -0
  35. package/dist/components/chat/chat-question-view.d.ts +41 -0
  36. package/dist/components/chat/chat-request.d.ts +173 -0
  37. package/dist/components/chat/chat-role.d.ts +2 -0
  38. package/dist/components/chat/chat-search-bar.d.ts +27 -0
  39. package/dist/components/chat/chat-search.d.ts +33 -0
  40. package/dist/components/chat/chat-send-event-args.d.ts +12 -0
  41. package/dist/components/chat/chat-sources-entry.d.ts +22 -0
  42. package/dist/components/chat/chat-text-entry.d.ts +20 -0
  43. package/dist/components/chat/chat-text-part.d.ts +5 -0
  44. package/dist/components/chat/chat-thinking-entry.d.ts +32 -0
  45. package/dist/components/chat/chat-todo-entry.d.ts +15 -0
  46. package/dist/components/chat/chat-tool-entry.d.ts +66 -0
  47. package/dist/components/chat/chat-tool-init.d.ts +18 -0
  48. package/dist/components/chat/chat-turn-view.d.ts +53 -0
  49. package/dist/components/chat/chat-turn.d.ts +8 -0
  50. package/dist/components/chat/chat-value-changed-event-args.d.ts +6 -0
  51. package/dist/components/chat/index.d.ts +22 -0
  52. package/dist/components/contextmenu/ContextMenu.d.ts +4 -0
  53. package/dist/components/contextmenu/context-menu-props.d.ts +6 -0
  54. package/dist/components/datagrid/DataGrid.d.ts +0 -12
  55. package/dist/components/datagrid/column-type.d.ts +2 -1
  56. package/dist/components/datagrid/grid-column.d.ts +4 -1
  57. package/dist/components/datagrid/grid-date-interval.d.ts +2 -1
  58. package/dist/components/datagrid/grid-filter-value.d.ts +2 -7
  59. package/dist/components/datagrid/grid-header-filter-interval.d.ts +2 -2
  60. package/dist/components/datagrid/grid-settings.d.ts +6 -3
  61. package/dist/components/datagrid/grid-sheet-cell.d.ts +3 -6
  62. package/dist/components/datagrid/grid-sheet-column.d.ts +2 -9
  63. package/dist/components/datagrid/grid-sheet-merge.d.ts +2 -7
  64. package/dist/components/datagrid/grid-sheet-row.d.ts +2 -5
  65. package/dist/components/datagrid/grid-sheet.d.ts +3 -2
  66. package/dist/components/datagrid/grid-summary-item.d.ts +5 -2
  67. package/dist/components/datagrid/grid-summary-texts.d.ts +2 -0
  68. package/dist/components/datagrid/grid-summary-type.d.ts +5 -2
  69. package/dist/components/datagrid/grid-summary.d.ts +3 -2
  70. package/dist/components/datagrid/list-option.d.ts +2 -4
  71. package/dist/components/datagrid/model/ColumnModel.d.ts +21 -3
  72. package/dist/components/datagrid/model/FilterValues.d.ts +15 -7
  73. package/dist/components/datagrid/model/GridExport.d.ts +1 -1
  74. package/dist/components/datagrid/model/GridModel.d.ts +2 -2
  75. package/dist/components/datagrid/model/LookupTexts.d.ts +1 -1
  76. package/dist/components/datagrid/view/CellEditor.d.ts +1 -1
  77. package/dist/components/datagrid/view/ColumnStyles.d.ts +1 -1
  78. package/dist/components/datagrid/view/GridBody.d.ts +1 -1
  79. package/dist/components/datagrid/view/HeaderRow.d.ts +3 -1
  80. package/dist/components/draggable/Draggable.d.ts +14 -3
  81. package/dist/components/form/MxForm.d.ts +1 -1
  82. package/dist/components/markdown/Markdown.d.ts +87 -0
  83. package/dist/components/markdown/code-block.d.ts +57 -0
  84. package/dist/components/markdown/code-colorer.d.ts +11 -0
  85. package/dist/components/markdown/code-highlighter.d.ts +9 -0
  86. package/dist/components/markdown/code-run.d.ts +6 -0
  87. package/dist/components/markdown/diagram-renderer.d.ts +21 -0
  88. package/dist/components/markdown/entities.d.ts +2 -0
  89. package/dist/components/markdown/index.d.ts +8 -0
  90. package/dist/components/markdown/inline-writer.d.ts +85 -0
  91. package/dist/components/markdown/markdown-context.d.ts +53 -0
  92. package/dist/components/markdown/markdown-link-click-event-args.d.ts +9 -0
  93. package/dist/components/markdown/markdown-props.d.ts +40 -0
  94. package/dist/components/markdown/markdown-writer.d.ts +95 -0
  95. package/dist/components/markdown/math-block.d.ts +22 -0
  96. package/dist/components/markdown/math-renderer.d.ts +18 -0
  97. package/dist/components/markdown/safe-href.d.ts +5 -0
  98. package/dist/components/markdown/text-run.d.ts +7 -0
  99. package/dist/components/menubar/MenuBar.d.ts +4 -0
  100. package/dist/components/menubar/menu-bar-props.d.ts +6 -0
  101. package/dist/components/pivotgrid/PivotGrid.d.ts +415 -0
  102. package/dist/components/pivotgrid/index.d.ts +44 -0
  103. package/dist/components/pivotgrid/model/PivotArrangement.d.ts +29 -0
  104. package/dist/components/pivotgrid/model/PivotAxisWindow.d.ts +169 -0
  105. package/dist/components/pivotgrid/model/PivotCellRanges.d.ts +63 -0
  106. package/dist/components/pivotgrid/model/PivotCellWindow.d.ts +47 -0
  107. package/dist/components/pivotgrid/model/PivotChart.d.ts +49 -0
  108. package/dist/components/pivotgrid/model/PivotDisplay.d.ts +61 -0
  109. package/dist/components/pivotgrid/model/PivotDrill.d.ts +19 -0
  110. package/dist/components/pivotgrid/model/PivotExpansion.d.ts +44 -0
  111. package/dist/components/pivotgrid/model/PivotFields.d.ts +55 -0
  112. package/dist/components/pivotgrid/model/PivotFilterValues.d.ts +36 -0
  113. package/dist/components/pivotgrid/model/PivotLayout.d.ts +75 -0
  114. package/dist/components/pivotgrid/model/PivotLoader.d.ts +29 -0
  115. package/dist/components/pivotgrid/model/PivotSheet.d.ts +44 -0
  116. package/dist/components/pivotgrid/model/PivotStateStore.d.ts +19 -0
  117. package/dist/components/pivotgrid/model/PivotTable.d.ts +78 -0
  118. package/dist/components/pivotgrid/model/PivotTexts.d.ts +47 -0
  119. package/dist/components/pivotgrid/model/PivotWindows.d.ts +120 -0
  120. package/dist/components/pivotgrid/model/pivot-copy.d.ts +26 -0
  121. package/dist/components/pivotgrid/model/pivot-csv.d.ts +9 -0
  122. package/dist/components/pivotgrid/model/pivot-header-cell.d.ts +19 -0
  123. package/dist/components/pivotgrid/model/pivot-line-key.d.ts +17 -0
  124. package/dist/components/pivotgrid/model/pivot-line.d.ts +14 -0
  125. package/dist/components/pivotgrid/pivot-grid-area.d.ts +2 -0
  126. package/dist/components/pivotgrid/pivot-grid-cell-click-event-args.d.ts +5 -0
  127. package/dist/components/pivotgrid/pivot-grid-cell-context.d.ts +19 -0
  128. package/dist/components/pivotgrid/pivot-grid-cell-dbl-click-event-args.d.ts +5 -0
  129. package/dist/components/pivotgrid/pivot-grid-cell-range.d.ts +16 -0
  130. package/dist/components/pivotgrid/pivot-grid-cell-selection-changed-event-args.d.ts +6 -0
  131. package/dist/components/pivotgrid/pivot-grid-chart-data.d.ts +15 -0
  132. package/dist/components/pivotgrid/pivot-grid-chart-options.d.ts +19 -0
  133. package/dist/components/pivotgrid/pivot-grid-column-resized-event-args.d.ts +8 -0
  134. package/dist/components/pivotgrid/pivot-grid-column-resizing.d.ts +15 -0
  135. package/dist/components/pivotgrid/pivot-grid-column.d.ts +19 -0
  136. package/dist/components/pivotgrid/pivot-grid-content-ready-event-args.d.ts +6 -0
  137. package/dist/components/pivotgrid/pivot-grid-context-menu-preparing-event-args.d.ts +22 -0
  138. package/dist/components/pivotgrid/pivot-grid-copying-event-args.d.ts +10 -0
  139. package/dist/components/pivotgrid/pivot-grid-custom-summary-info.d.ts +15 -0
  140. package/dist/components/pivotgrid/pivot-grid-data-error-event-args.d.ts +5 -0
  141. package/dist/components/pivotgrid/pivot-grid-drill-down.d.ts +14 -0
  142. package/dist/components/pivotgrid/pivot-grid-expanded-event-args.d.ts +6 -0
  143. package/dist/components/pivotgrid/pivot-grid-expanding-event-args.d.ts +9 -0
  144. package/dist/components/pivotgrid/pivot-grid-export-cell.d.ts +21 -0
  145. package/dist/components/pivotgrid/pivot-grid-export-options.d.ts +16 -0
  146. package/dist/components/pivotgrid/pivot-grid-export.d.ts +17 -0
  147. package/dist/components/pivotgrid/pivot-grid-exported-event-args.d.ts +9 -0
  148. package/dist/components/pivotgrid/pivot-grid-exporting-event-args.d.ts +17 -0
  149. package/dist/components/pivotgrid/pivot-grid-field-chooser.d.ts +20 -0
  150. package/dist/components/pivotgrid/pivot-grid-field-panel.d.ts +16 -0
  151. package/dist/components/pivotgrid/pivot-grid-field.d.ts +110 -0
  152. package/dist/components/pivotgrid/pivot-grid-fields-changed-event-args.d.ts +8 -0
  153. package/dist/components/pivotgrid/pivot-grid-filter-value.d.ts +4 -0
  154. package/dist/components/pivotgrid/pivot-grid-group-interval.d.ts +7 -0
  155. package/dist/components/pivotgrid/pivot-grid-header-filter-items-request.d.ts +9 -0
  156. package/dist/components/pivotgrid/pivot-grid-header-filter-items.d.ts +7 -0
  157. package/dist/components/pivotgrid/pivot-grid-load-panel.d.ts +11 -0
  158. package/dist/components/pivotgrid/pivot-grid-props.d.ts +121 -0
  159. package/dist/components/pivotgrid/pivot-grid-sheet-options.d.ts +14 -0
  160. package/dist/components/pivotgrid/pivot-grid-sheet.d.ts +19 -0
  161. package/dist/components/pivotgrid/pivot-grid-state.d.ts +54 -0
  162. package/dist/components/pivotgrid/pivot-grid-summary-cell.d.ts +29 -0
  163. package/dist/components/pivotgrid/pivot-grid-summary-display-mode.d.ts +5 -0
  164. package/dist/components/pivotgrid/pivot-grid-summary-type.d.ts +5 -0
  165. package/dist/components/pivotgrid/view/PivotFieldChooser.d.ts +71 -0
  166. package/dist/components/pivotgrid/view/PivotFieldPanel.d.ts +92 -0
  167. package/dist/components/pivotgrid/view/PivotView.d.ts +263 -0
  168. package/dist/components/resizable/Resizable.d.ts +2 -0
  169. package/dist/components/ribbonmenu/RibbonKeyHints.d.ts +4 -0
  170. package/dist/components/ribbonmenu/RibbonMenu.d.ts +4 -1
  171. package/dist/components/ribbonmenu/ribbon-menu-custom-menu-opening-event-args.d.ts +8 -4
  172. package/dist/components/ribbonmenu/ribbon-menu-props.d.ts +6 -0
  173. package/dist/components/scheduler/view/TimeView.d.ts +2 -0
  174. package/dist/components/scrollview/ScrollView.d.ts +48 -1
  175. package/dist/components/scrollview/index.d.ts +1 -0
  176. package/dist/components/scrollview/scroll-end-changed-event-args.d.ts +7 -0
  177. package/dist/components/scrollview/scroll-view-props.d.ts +9 -0
  178. package/dist/components/splitter/Splitter.d.ts +1 -3
  179. package/dist/components/tabdocs/TabDocumentManager.d.ts +3 -2
  180. package/dist/components/textarea/TextArea.d.ts +11 -0
  181. package/dist/components/textarea/text-area-props.d.ts +12 -1
  182. package/dist/components/textbox/TextBox.d.ts +3 -0
  183. package/dist/components/textbox/text-box-props.d.ts +3 -0
  184. package/dist/components/toolbar/Toolbar.d.ts +70 -1
  185. package/dist/components/toolbar/index.d.ts +5 -0
  186. package/dist/components/toolbar/toolbar-added-item.d.ts +9 -0
  187. package/dist/components/toolbar/toolbar-custom-menu-opening-event-args.d.ts +23 -0
  188. package/dist/components/toolbar/toolbar-customization.d.ts +18 -0
  189. package/dist/components/toolbar/toolbar-customized-event-args.d.ts +7 -0
  190. package/dist/components/toolbar/toolbar-item-display.d.ts +2 -0
  191. package/dist/components/toolbar/toolbar-item.d.ts +11 -1
  192. package/dist/components/toolbar/toolbar-props.d.ts +26 -0
  193. package/dist/components/toolbar/toolbar-targets.d.ts +22 -0
  194. package/dist/core/clipboard.d.ts +11 -0
  195. package/dist/core/enter-key-hint.d.ts +2 -0
  196. package/dist/core/look-watch.d.ts +2 -2
  197. package/dist/core/measure/look.d.ts +1 -1
  198. package/dist/core/measure/on-layout.d.ts +1 -1
  199. package/dist/core/measure/scroll.d.ts +3 -1
  200. package/dist/core/save-text.d.ts +2 -0
  201. package/dist/core/ui-strings.d.ts +190 -0
  202. package/dist/excel/excel-pivot-customize-cell-args.d.ts +8 -0
  203. package/dist/excel/excel-pivot-export-options.d.ts +44 -0
  204. package/dist/excel/excel-pivot-export-result.d.ts +6 -0
  205. package/dist/excel/export-pivot-grid.d.ts +35 -0
  206. package/dist/excel/index.d.ts +4 -0
  207. package/dist/excel/index.js +190 -56
  208. package/dist/excel/index.js.map +1 -1
  209. package/dist/excel/write-sheet.d.ts +16 -0
  210. package/dist/{formula-guard-NYlpoA-t.js → formula-guard-Bx48S0u3.js} +2 -2
  211. package/dist/formula-guard-Bx48S0u3.js.map +1 -0
  212. package/dist/generated/tokens.d.ts +7527 -4097
  213. package/dist/index.d.ts +6 -0
  214. package/dist/index.js +65982 -49896
  215. package/dist/index.js.map +1 -1
  216. package/dist/locales/en.json +179 -1
  217. package/dist/locales/tr.json +179 -1
  218. package/dist/parts/customizer/Customizer.d.ts +12 -6
  219. package/dist/parts/customizer/customizer-display.d.ts +2 -0
  220. package/dist/parts/customizer/customizer-node.d.ts +5 -0
  221. package/dist/parts/customizer/customizer-source.d.ts +15 -3
  222. package/dist/parts/item-layout/layout-added-item.d.ts +2 -2
  223. package/dist/parts/menu/MenuList.d.ts +5 -0
  224. package/dist/parts/popup/Popup.d.ts +2 -0
  225. package/dist/{components/datagrid/model → parts/table}/CellFormatter.d.ts +8 -8
  226. package/dist/{components/datagrid/view → parts/table}/HeaderFilter.d.ts +16 -11
  227. package/dist/parts/table/OffsetList.d.ts +21 -0
  228. package/dist/parts/table/ScaledOffsets.d.ts +32 -0
  229. package/dist/{components/datagrid/model → parts/table}/ValueIntervals.d.ts +12 -5
  230. package/dist/{components/datagrid/model → parts/table}/ValueListAdapter.d.ts +4 -4
  231. package/dist/parts/table/date-interval.d.ts +2 -0
  232. package/dist/parts/table/date-type.d.ts +3 -0
  233. package/dist/{components/datagrid/model → parts/table}/filter-tree-node.d.ts +3 -1
  234. package/dist/parts/table/filter-value.d.ts +9 -0
  235. package/dist/parts/table/format-column.d.ts +14 -0
  236. package/dist/parts/table/header-filter-host.d.ts +27 -0
  237. package/dist/parts/table/option-of.d.ts +6 -0
  238. package/dist/parts/table/slice-sheet.d.ts +8 -0
  239. package/dist/parts/table/table-sheet-cell.d.ts +13 -0
  240. package/dist/parts/table/table-sheet-column.d.ts +11 -0
  241. package/dist/parts/table/table-sheet-merge.d.ts +9 -0
  242. package/dist/parts/table/table-sheet-row.d.ts +8 -0
  243. package/dist/parts/table/table-sheet.d.ts +24 -0
  244. package/dist/parts/table/value-interval.d.ts +6 -0
  245. package/dist/{components/datagrid/model → parts/table}/value-list.d.ts +7 -2
  246. package/dist/parts/table/value-loader.d.ts +8 -0
  247. package/dist/parts/table/value-option.d.ts +5 -0
  248. package/dist/parts/table/value-type.d.ts +5 -0
  249. package/dist/parts/table/values-result.d.ts +6 -0
  250. package/dist/parts/window/follow-pointer.d.ts +9 -3
  251. package/dist/parts/window-list/WindowList.d.ts +105 -0
  252. package/dist/parts/window-list/window-list-source.d.ts +10 -0
  253. package/dist/pdf/export-pivot-grid.d.ts +21 -0
  254. package/dist/pdf/index.d.ts +3 -0
  255. package/dist/pdf/index.js +143 -16
  256. package/dist/pdf/index.js.map +1 -1
  257. package/dist/pdf/pdf-customize-cell-args.d.ts +1 -1
  258. package/dist/pdf/pdf-pivot-cell-args.d.ts +25 -0
  259. package/dist/pdf/pdf-pivot-export-options.d.ts +61 -0
  260. package/dist/pdf/pdf-table.d.ts +38 -6
  261. package/dist/slice-sheet-C116M42H.js +43 -0
  262. package/dist/slice-sheet-C116M42H.js.map +1 -0
  263. package/dist/styles.css +4484 -177
  264. package/dist/tokens/index.d.ts +7527 -4097
  265. package/dist/tokens/index.js +7527 -4097
  266. package/dist/tokens/index.js.map +1 -1
  267. package/dist/{tr-BvKE8jSF.js → tr-BGbF9uCs.js} +359 -3
  268. package/dist/tr-BGbF9uCs.js.map +1 -0
  269. package/docs/accordion.md +1 -1
  270. package/docs/actionsheet.md +1 -1
  271. package/docs/appbar.md +1 -1
  272. package/docs/appmenu-api.md +1 -1
  273. package/docs/appmenu-programmatic.md +1 -1
  274. package/docs/appmenu-search.md +1 -1
  275. package/docs/appmenu.md +1 -1
  276. package/docs/avatar.md +1 -1
  277. package/docs/badge.md +1 -1
  278. package/docs/bar-gauge-angles.md +1 -1
  279. package/docs/bar-gauge-data.md +1 -1
  280. package/docs/bar-gauge-labels.md +1 -1
  281. package/docs/bar-gauge.md +1 -1
  282. package/docs/barcode.md +1 -1
  283. package/docs/bottomnavigation.md +1 -1
  284. package/docs/bottomsheet.md +1 -1
  285. package/docs/breadcrumb.md +1 -1
  286. package/docs/button.md +1 -1
  287. package/docs/buttongroup.md +1 -1
  288. package/docs/buttons.md +1 -1
  289. package/docs/calendar.md +1 -1
  290. package/docs/card.md +1 -1
  291. package/docs/chart-bars.md +1 -1
  292. package/docs/chart-candles.md +1 -1
  293. package/docs/chart-funnel.md +1 -1
  294. package/docs/chart-heatmap.md +1 -1
  295. package/docs/chart-lines.md +1 -1
  296. package/docs/chart-live.md +1 -1
  297. package/docs/chart-pie.md +1 -1
  298. package/docs/chart-radar.md +1 -1
  299. package/docs/chart-ranges.md +1 -1
  300. package/docs/chart-references.md +1 -1
  301. package/docs/chart-scatter.md +1 -1
  302. package/docs/chart-waterfall.md +1 -1
  303. package/docs/chart-zoom.md +1 -1
  304. package/docs/chart.md +1 -1
  305. package/docs/chat.md +1512 -0
  306. package/docs/checkbox.md +1 -1
  307. package/docs/chip.md +2 -2
  308. package/docs/choice.md +1 -1
  309. package/docs/colorbox.md +1 -1
  310. package/docs/combobox.md +1 -1
  311. package/docs/commands.md +1 -1
  312. package/docs/control.md +1 -1
  313. package/docs/data.md +1 -1
  314. package/docs/datagrid-api.md +3 -3
  315. package/docs/datagrid-bands.md +1 -1
  316. package/docs/datagrid-drag-select.md +1 -1
  317. package/docs/datagrid-drag.md +1 -1
  318. package/docs/datagrid-editing.md +1 -1
  319. package/docs/datagrid-filtering.md +2 -2
  320. package/docs/datagrid-forms.md +1 -1
  321. package/docs/datagrid-grouping.md +7 -7
  322. package/docs/datagrid-layout.md +2 -2
  323. package/docs/datagrid-lookups.md +1 -1
  324. package/docs/datagrid-master-detail.md +1 -1
  325. package/docs/datagrid-scrolling.md +1 -1
  326. package/docs/datagrid-selection.md +1 -1
  327. package/docs/datagrid.md +1 -1
  328. package/docs/datebox.md +1 -1
  329. package/docs/daterangebox.md +1 -1
  330. package/docs/display.md +1 -1
  331. package/docs/draggable.md +2 -2
  332. package/docs/drawer.md +1 -1
  333. package/docs/dropdown.md +1 -1
  334. package/docs/editors.md +1 -1
  335. package/docs/feedback.md +1 -1
  336. package/docs/fileuploader.md +1 -1
  337. package/docs/filterbuilder.md +1 -1
  338. package/docs/formlayout.md +1 -1
  339. package/docs/foundations.md +1 -1
  340. package/docs/gallery.md +1 -1
  341. package/docs/gauge-base.md +1 -1
  342. package/docs/gauge-circular.md +1 -1
  343. package/docs/gauge-dashboards.md +1 -1
  344. package/docs/gauge-linear.md +1 -1
  345. package/docs/gauge-markers.md +1 -1
  346. package/docs/gauge-marks.md +1 -1
  347. package/docs/gauge-ranges.md +1 -1
  348. package/docs/gauge-scales.md +1 -1
  349. package/docs/gauge.md +1 -1
  350. package/docs/home.md +1 -1
  351. package/docs/keyboard.md +1 -1
  352. package/docs/language.md +1 -1
  353. package/docs/layout.md +1 -1
  354. package/docs/listbox.md +1 -1
  355. package/docs/loadpanel.md +1 -1
  356. package/docs/lookup.md +1 -1
  357. package/docs/markdown.md +343 -0
  358. package/docs/menus-api.md +3 -1
  359. package/docs/menus-context.md +2 -1
  360. package/docs/menus-customization.md +5 -1
  361. package/docs/menus-merging.md +1 -1
  362. package/docs/menus-programmatic.md +1 -1
  363. package/docs/menus.md +1 -1
  364. package/docs/multiview.md +1 -1
  365. package/docs/navigation.md +1 -1
  366. package/docs/numberbox.md +1 -1
  367. package/docs/otpinput.md +1 -1
  368. package/docs/pagination.md +1 -1
  369. package/docs/pivotgrid-api.md +180 -0
  370. package/docs/pivotgrid-chart.md +132 -0
  371. package/docs/pivotgrid-drilldown.md +142 -0
  372. package/docs/pivotgrid-export.md +207 -0
  373. package/docs/pivotgrid-fields.md +245 -0
  374. package/docs/pivotgrid-keyboard.md +223 -0
  375. package/docs/pivotgrid-layout.md +663 -0
  376. package/docs/pivotgrid-panel.md +223 -0
  377. package/docs/pivotgrid-remote.md +397 -0
  378. package/docs/pivotgrid-sorting.md +379 -0
  379. package/docs/pivotgrid-state.md +245 -0
  380. package/docs/pivotgrid-summaries.md +330 -0
  381. package/docs/pivotgrid.md +295 -0
  382. package/docs/popover.md +1 -1
  383. package/docs/progress.md +1 -1
  384. package/docs/qrcode.md +1 -1
  385. package/docs/radiogroup.md +1 -1
  386. package/docs/rating.md +1 -1
  387. package/docs/resizable.md +1 -1
  388. package/docs/ribbonmenu-api.md +2 -1
  389. package/docs/ribbonmenu-commands.md +1 -1
  390. package/docs/ribbonmenu-customization.md +3 -2
  391. package/docs/ribbonmenu-display.md +1 -1
  392. package/docs/ribbonmenu-layouts.md +1 -1
  393. package/docs/ribbonmenu-programmatic.md +1 -1
  394. package/docs/ribbonmenu.md +3 -1
  395. package/docs/scheduler-agenda.md +1 -1
  396. package/docs/scheduler-big-data.md +1 -1
  397. package/docs/scheduler-editing.md +1 -1
  398. package/docs/scheduler-form.md +1 -1
  399. package/docs/scheduler-icalendar.md +1 -1
  400. package/docs/scheduler-mobile.md +1 -1
  401. package/docs/scheduler-recurrence.md +1 -1
  402. package/docs/scheduler-resources.md +1 -1
  403. package/docs/scheduler-timeline.md +1 -1
  404. package/docs/scheduler.md +1 -1
  405. package/docs/scrollview.md +1 -1
  406. package/docs/shortcuteditor.md +1 -1
  407. package/docs/showcase-home.md +1 -1
  408. package/docs/showcase-mail.md +39 -0
  409. package/docs/showcase.md +1 -1
  410. package/docs/signature.md +1 -1
  411. package/docs/skeleton.md +1 -1
  412. package/docs/slider.md +1 -1
  413. package/docs/sortable.md +3 -6
  414. package/docs/sparkline.md +1 -1
  415. package/docs/speeddial.md +1 -1
  416. package/docs/splitter.md +1 -1
  417. package/docs/stepper.md +1 -1
  418. package/docs/switch.md +1 -1
  419. package/docs/tabdocs-dock.md +1 -1
  420. package/docs/tabdocs-drag.md +1 -1
  421. package/docs/tabdocs-menus.md +1 -1
  422. package/docs/tabdocs-mobile.md +1 -1
  423. package/docs/tabdocs-tabs.md +1 -1
  424. package/docs/tabdocs-windows.md +1 -1
  425. package/docs/tabdocs-workspace.md +1 -1
  426. package/docs/tabdocs.md +1 -1
  427. package/docs/tabs.md +1 -1
  428. package/docs/tagbox.md +1 -1
  429. package/docs/textarea.md +4 -1
  430. package/docs/textbox.md +2 -1
  431. package/docs/tileview.md +1 -1
  432. package/docs/timeline.md +1 -1
  433. package/docs/toast.md +1 -1
  434. package/docs/tokens.md +687 -1
  435. package/docs/toolbar-api.md +80 -0
  436. package/docs/toolbar-customization.md +261 -0
  437. package/docs/toolbar.md +4 -52
  438. package/docs/tooltip.md +1 -1
  439. package/docs/treeview.md +1 -1
  440. package/docs/validationsummary.md +1 -1
  441. package/docs/window.md +1 -1
  442. package/docs/wizard.md +1 -1
  443. package/llms-full.txt +18989 -12344
  444. package/llms.txt +29 -2
  445. package/package.json +2 -2
  446. package/dist/components/datagrid/model/date-type.d.ts +0 -3
  447. package/dist/components/datagrid/model/option-of.d.ts +0 -6
  448. package/dist/components/datagrid/model/value-loader.d.ts +0 -8
  449. package/dist/formula-guard-NYlpoA-t.js.map +0 -1
  450. package/dist/tr-BvKE8jSF.js.map +0 -1
  451. /package/dist/{components/datagrid/model → core}/text-ranges.d.ts +0 -0
  452. /package/dist/{components/datagrid/model → parts/table}/ExtraHeights.d.ts +0 -0
  453. /package/dist/{components/datagrid/model → parts/table}/ScrollGeometry.d.ts +0 -0
  454. /package/dist/{components/datagrid/model → parts/table}/cell-list.d.ts +0 -0
  455. /package/dist/{components/datagrid/model → parts/table}/date-like.d.ts +0 -0
  456. /package/dist/{components/datagrid/view → parts/table}/editor-value.d.ts +0 -0
  457. /package/dist/{components/datagrid/model → parts/table}/formula-guard.d.ts +0 -0
  458. /package/dist/{components/datagrid/model → parts/table}/parse-date-text.d.ts +0 -0
  459. /package/dist/{components/datagrid/model → parts/table}/same-value.d.ts +0 -0
@@ -0,0 +1,276 @@
1
+ import { type Bind, type Event as MotifEvent, type IBaseProp } from '@motifx/core';
2
+ import { Control } from '../../core/control';
3
+ import type { CodeHighlighter } from '../markdown/code-highlighter';
4
+ import type { DiagramRenderer } from '../markdown/diagram-renderer';
5
+ import type { MathRenderer } from '../markdown/math-renderer';
6
+ import { ChatComposer } from './ChatComposer';
7
+ import { ChatReply } from './ChatReply';
8
+ import type { ChatContextItem } from './chat-context-item';
9
+ import type { ChatFeedbackEventArgs, ChatForkEventArgs, ChatRetryEventArgs, ChatRewindEventArgs } from './chat-history-event-args';
10
+ import type { ChatLoadOlderEventArgs } from './chat-load-older-event-args';
11
+ import type { ChatMessage } from './chat-message';
12
+ import type { ChatProps } from './chat-props';
13
+ import type { ChatSendEventArgs } from './chat-send-event-args';
14
+ type ChatSent = ChatSendEventArgs & {
15
+ message: ChatMessage;
16
+ };
17
+ /**
18
+ * A conversation with a model, drawn by turn: the user's question, then what the model did, in order (its thinking,
19
+ * text, tool calls, to-do list), each with a dot at its start. Only the turns in and near the view are on the page: a
20
+ * turn far from it is its messages alone, drawn again when it comes back. The chat opens at its end, in one frame. The
21
+ * view stays at the end while it is there; scrolled up, it stays where it is and a button says how many messages came.
22
+ * Near the top, older messages are asked for (`hasOlder`, `onLoadOlder`) and the view keeps its place. While a reply is
23
+ * written a line under the conversation says what the model does and for how long, and what the user sends meanwhile
24
+ * waits above the box until the reply ends. A reply can wait for the user: a tool call asks before it runs, a plan asks
25
+ * to go on, questions ask, a form (an MCP server's elicitation) asks to be filled in. Each takes the composer's place
26
+ * until it is answered, one at a time, and the flow says it waits. A reply that ended can be copied, judged good or bad,
27
+ * and asked for again. Ctrl+F
28
+ * opens a search over every message, the turns off the page too. The turns are the articles of a feed: Page Down and
29
+ * Page Up go from one to the next, and screen readers hear when a reply ends or waits. The chat draws; the app talks
30
+ * to its model and writes through `reply()`.
31
+ *
32
+ * @example
33
+ * <Chat onSend={async e => {
34
+ * const reply = chat.reply();
35
+ * for await (const delta of this.model.ask(e.text, reply.signal)) reply.text(delta);
36
+ * reply.done();
37
+ * }} />
38
+ */
39
+ export declare class Chat extends Control<HTMLDivElement, ChatProps> {
40
+ /** The box the user writes in. */
41
+ readonly composer: ChatComposer;
42
+ private readonly scroller;
43
+ private readonly older;
44
+ private readonly olderButton;
45
+ /** The turns: only those in and near the view are on the page. */
46
+ private readonly window;
47
+ /** The line under the conversation while a reply is written. */
48
+ private readonly status;
49
+ private readonly statusText;
50
+ private readonly statusDetail;
51
+ private readonly jump;
52
+ private readonly queue;
53
+ private readonly queued;
54
+ /** The questions waiting for the user, in the composer's place. */
55
+ private readonly form;
56
+ /** A form waiting for the user to fill it in, in the composer's place. */
57
+ private readonly fill;
58
+ /** The choices of a tool call or a plan waiting for the user, in the composer's place. */
59
+ private readonly choices;
60
+ /** Tells screen readers what happened: a reply ended, or waits for the user. */
61
+ private readonly live;
62
+ /** The search at the top, made the first time it opens. */
63
+ private searchBar;
64
+ private readonly search;
65
+ /** The part that shows the result of the search shown, marked. */
66
+ private foundPart;
67
+ /** The requests of open replies waiting for the user. */
68
+ private readonly waiting;
69
+ /** The turns on the page and their parts; a turn off the page has none. */
70
+ private readonly views;
71
+ private items;
72
+ private turns;
73
+ private readonly turnOf;
74
+ private readonly replies;
75
+ /** Messages that came while the view was away from the end. */
76
+ private unseen;
77
+ private loading;
78
+ private failed;
79
+ /** Until the turns at the end are placed and the view stands at the end, the conversation is not shown. */
80
+ private opening;
81
+ /** Takes back the next look at whether a long message at the end is all drawn. */
82
+ private openWait;
83
+ /** Where the view stood at the last scroll: older messages are asked for on the way up. */
84
+ private lastTop;
85
+ private said;
86
+ private busySince;
87
+ private statusTimer;
88
+ private timeFormat;
89
+ private timeLocale;
90
+ private readonly sent;
91
+ private readonly stopped;
92
+ private readonly olderWanted;
93
+ private readonly rewound;
94
+ private readonly forked;
95
+ private readonly retried;
96
+ private readonly regenerated;
97
+ private readonly judged;
98
+ /** The app takes forks, retries, regenerations and feedback: their buttons show. */
99
+ private forks;
100
+ private retries;
101
+ private regenerations;
102
+ private feedbacks;
103
+ private readonly replyHost;
104
+ constructor(props?: IBaseProp<ChatProps>);
105
+ get messages(): ChatMessage[];
106
+ set messages(value: Bind<ChatMessage[]>);
107
+ get hasOlder(): boolean;
108
+ set hasOlder(value: Bind<boolean>);
109
+ get placeholder(): string;
110
+ set placeholder(value: Bind<string>);
111
+ get highlighter(): CodeHighlighter | null;
112
+ set highlighter(value: Bind<CodeHighlighter | null>);
113
+ get mathRenderer(): MathRenderer | null;
114
+ set mathRenderer(value: Bind<MathRenderer | null>);
115
+ get diagramRenderer(): DiagramRenderer | null;
116
+ set diagramRenderer(value: Bind<DiagramRenderer | null>);
117
+ get linkTarget(): string;
118
+ set linkTarget(value: Bind<string>);
119
+ get codeLines(): number;
120
+ set codeLines(value: Bind<number>);
121
+ get label(): string;
122
+ set label(value: Bind<string>);
123
+ /** A reply is being written. */
124
+ get isBusy(): boolean;
125
+ /** The messages sent while a reply was written, in order: they go when the replies end. */
126
+ get queuedTexts(): string[];
127
+ /** A reply waits for the user: a tool call asking before it runs, a plan, questions. */
128
+ get isWaiting(): boolean;
129
+ /** Occurs when a message of the user is sent. Set `e.cancel` to take it back; start the reply with `reply()`. */
130
+ get onSend(): MotifEvent<ChatSent>;
131
+ /** Occurs when the user stops the reply. */
132
+ get onStop(): MotifEvent<{
133
+ source: Chat;
134
+ }>;
135
+ /** Occurs when older messages are wanted. */
136
+ get onLoadOlder(): MotifEvent<ChatLoadOlderEventArgs>;
137
+ /** Occurs before the conversation goes back to before a message of the user. Set `e.cancel` to keep it. */
138
+ get onRewind(): MotifEvent<ChatRewindEventArgs>;
139
+ /** Occurs when the user starts another conversation from a message: open it with `e.messages`. */
140
+ get onFork(): MotifEvent<ChatForkEventArgs>;
141
+ /** Occurs when the user tries a failed or stopped reply again: it is gone, write the new one with `reply()`. */
142
+ get onRetry(): MotifEvent<ChatRetryEventArgs>;
143
+ /** Occurs when the user asks for another reply in the place of the last one: it is gone, write the new one with `reply()`. */
144
+ get onRegenerate(): MotifEvent<ChatRetryEventArgs>;
145
+ /** Occurs when the user says a reply was good or bad, or takes it back; it is in `message.feedback` already. */
146
+ get onFeedback(): MotifEvent<ChatFeedbackEventArgs>;
147
+ /** Adds a message at the end. A message of the user takes the view to the end; another one there keeps it there. */
148
+ add(message: ChatMessage): void;
149
+ /** Adds older messages before the first, oldest first; what is on screen stays where it is. */
150
+ prepend(messages: readonly ChatMessage[]): void;
151
+ /** Removes a message; its turn is drawn again from what is left. */
152
+ remove(message: ChatMessage): void;
153
+ /**
154
+ * Goes back to before `message`, a message of the user: it and everything after it go (`onRewind` can keep them),
155
+ * open replies among them stop, the queue empties, and its text is put back in the box. Returns whether it went back.
156
+ */
157
+ rewind(message: ChatMessage): boolean;
158
+ /** Sends `text` in place of `message`, with its files: back to before it, as `rewind()` goes, then sent. */
159
+ resend(message: ChatMessage, text: string): boolean;
160
+ /** Removes every message; open replies stop and the queue empties. */
161
+ clear(): void;
162
+ /** Sends `text`, and the files and context items given, as the user, as the box does when no reply is written. Returns whether it was added. */
163
+ send(text: string, attachments?: File[], context?: ChatContextItem[]): boolean;
164
+ /** Starts a reply of the model at the end of the conversation; write it through what it returns, end it with `done()`. */
165
+ reply(init?: Partial<ChatMessage>): ChatReply;
166
+ /** Stops every open reply, as the stop button does. */
167
+ stop(): void;
168
+ /** Asks for older messages now, as the button above the first message does. */
169
+ loadOlder(): boolean;
170
+ /**
171
+ * Goes to the end; while there, new messages keep the view at the end. Farther than two views away it jumps even when
172
+ * `smooth`: a smooth scroll would draw every turn on the way and stop where their estimates said the end was.
173
+ */
174
+ scrollToEnd(smooth?: boolean): void;
175
+ /** Gives the focus to where the user writes: the questions, the form or the choices waiting, or the composer. */
176
+ focus(): boolean;
177
+ /** Opens the search at the top, with `query` when given, and gives it the focus. Ctrl+F in the chat opens it too. */
178
+ openSearch(query?: string): void;
179
+ /** Closes the search; its mark goes, and the focus goes back to where the user writes when it was in the search. */
180
+ closeSearch(): void;
181
+ /**
182
+ * Searches every message for `query`, the turns off the page too (what the user wrote, the model's texts and plans,
183
+ * without case), and goes to the result nearest the end. Returns how many it found.
184
+ */
185
+ find(query: string): number;
186
+ /** Goes to the next result of the search, down towards the end, and from the last around to the first. */
187
+ findNext(): boolean;
188
+ /** Goes to the result before, up towards the start, and from the first around to the last. */
189
+ findPrevious(): boolean;
190
+ /** The part of a turn coming near the view, drawn from its messages; it forgets itself when the list disposes it. */
191
+ private makeTurn;
192
+ private flowOf;
193
+ /** A reply wrote its message: on the page the view stays at the end; off it, its turn's height is estimated again. */
194
+ private messageChanged;
195
+ /**
196
+ * The turns at the end are placed and the view stands at the end: the conversation shows, in that frame. A long
197
+ * message there is drawn a piece a frame first: the chat shows once it is all there, at its end.
198
+ */
199
+ private opened;
200
+ /** Splits messages into turns: each message of the user starts one. */
201
+ private group;
202
+ /** Another array, another conversation: it opens at its end. */
203
+ private reconcile;
204
+ /** A height for a turn not drawn yet: its texts in lines at a usual width, two lines a question, a frame each part. */
205
+ private estimate;
206
+ private lines;
207
+ private readonly formatTime;
208
+ /** The box sent: while a reply is written the text and its files wait in the queue, otherwise they go. */
209
+ private sendFromBox;
210
+ private enqueue;
211
+ /**
212
+ * A request waits: it takes the composer's place, one at a time, the next when it is answered; the focus goes with it
213
+ * when it was in the chat.
214
+ */
215
+ private wait;
216
+ /** The request in the composer's place; `null` while the composer is there. */
217
+ private get asking();
218
+ /** The user answered: the reply goes on, and the focus goes to what takes the request's place when it was on it. */
219
+ private answer;
220
+ private openForm;
221
+ /** The request is done with: the next one waiting takes its place, or the composer comes back. */
222
+ private closeForm;
223
+ /** `message` and what came after it go, once `onRewind` lets them; open replies among them stop. */
224
+ private cut;
225
+ /** Takes the messages from `at` on off the conversation, and their turns off the page. */
226
+ private drop;
227
+ private fork;
228
+ /** The turn's reply goes, from its first message of the model on; the app writes it again (`onRetry`, `onRegenerate`). */
229
+ private again;
230
+ /** The user said a reply was good or bad, or took it back: the message has it already. */
231
+ private judge;
232
+ private replyEnded;
233
+ private startStatus;
234
+ private stopStatus;
235
+ private drawStatus;
236
+ private askOlder;
237
+ /** Older messages came while the view was near the top: the next ones are asked for, after the layer's run. */
238
+ private checkTop;
239
+ private readonly readTop;
240
+ private readonly nearTop;
241
+ private drawTexts;
242
+ private drawOlder;
243
+ private drawJump;
244
+ /** How many turns the feed has; `-1` while older ones may still come. */
245
+ private feedSize;
246
+ /** The turns on the page take their places in the feed again: turns came before them, or went. */
247
+ private drawPlaces;
248
+ /**
249
+ * Keys in the conversation, as a feed takes them: in a turn, Page Down and Page Up go to the next and the one before
250
+ * (older messages are asked for above the first), Ctrl+End to where the user writes and Ctrl+Home to the view itself.
251
+ */
252
+ private feedKey;
253
+ /** The turn the focus is in, by its index; `-1` in none. */
254
+ private focusedTurn;
255
+ private searchKey;
256
+ private makeSearchBar;
257
+ private moveFound;
258
+ /** Another conversation, or none: an open search counts again, and shows nothing until it moves. */
259
+ private searchAgain;
260
+ /** The result shown: its count is written, its turn comes into view (made when it is off the page), and its part. */
261
+ private showFound;
262
+ /** The turn of the result shown is on the page: the part that shows it is marked, and brought into view. */
263
+ private markFound;
264
+ private unmarkFound;
265
+ /** Says `said` to screen readers; the same words twice are said twice. */
266
+ private announce;
267
+ /**
268
+ * How much of the chat an on-screen keyboard covers while the user writes in it: the part of the window in sight is
269
+ * smaller than the window, and the chat goes on under it.
270
+ */
271
+ private readonly readKeyboard;
272
+ /** The chat makes room for the keyboard at its end: the composer stands on it, the conversation above. */
273
+ private readonly writeKeyboard;
274
+ private drawLabel;
275
+ }
276
+ export {};
@@ -0,0 +1,172 @@
1
+ import { type Bind, type Event as MotifEvent, type IBaseProp } from '@motifx/core';
2
+ import { Control } from '../../core/control';
3
+ import { TextArea } from '../textarea/TextArea';
4
+ import type { ChatCommand } from './chat-command';
5
+ import type { ChatComposerProps } from './chat-composer-props';
6
+ import type { ChatContextChangedEventArgs } from './chat-context-changed-event-args';
7
+ import type { ChatContextItem } from './chat-context-item';
8
+ import type { ChatMentionEventArgs } from './chat-mention';
9
+ import type { ChatOption } from './chat-option';
10
+ import type { ChatSendEventArgs } from './chat-send-event-args';
11
+ import type { ChatValueChangedEventArgs } from './chat-value-changed-event-args';
12
+ /**
13
+ * The box a message is written in, in one frame with its tools under it: files to attach (`attachments`: the button,
14
+ * pasting and dropping; each a chip above the box), what the app adds by itself (`contextItems`: chips the user turns off or
15
+ * takes off), commands (`commands`: `/` at the start of the box, or its button, lists them) and what the app suggests
16
+ * after `@` (`onMention`), in a menu the arrow keys move in and Enter or Tab takes from, the way the model works (`modes`; Shift+Tab in the box goes to the
17
+ * next), the model and its thinking (`models`, `thinking`), how full the context is (`usage`), and the send button.
18
+ * Enter sends, Shift+Enter starts a new line, and an input method's Enter only ends its
19
+ * composition. On a touch screen Enter starts a new line, as in a phone's messages, and the button sends. Arrow Up at the start of the box brings back what was sent before, and Arrow Down goes forward again.
20
+ * While a reply is written (`busy`), the button stops it, as Escape does, and Enter still sends: the chat queues what
21
+ * is sent then.
22
+ *
23
+ * @example
24
+ * <ChatComposer busy={() => this.replying} onSend={e => this.ask(e.text)} onStop={() => this.cancel()} />
25
+ */
26
+ export declare class ChatComposer extends Control<HTMLDivElement, ChatComposerProps> {
27
+ /** The text box, for its value and focus. */
28
+ readonly box: TextArea;
29
+ /** The box and its tools: it shows where files can be dropped. */
30
+ private readonly field;
31
+ /** The files attached, as chips above the box. */
32
+ private readonly filesRow;
33
+ private readonly attached;
34
+ private readonly attachButton;
35
+ /** The browser's file input, hidden: the button opens its picker. */
36
+ private readonly fileInput;
37
+ private dragDepth;
38
+ /** The context items, a chip each. */
39
+ private readonly contextRow;
40
+ private readonly commandButton;
41
+ /** The menu of commands or mentions under the box, made the first time it opens, and what it would replace. */
42
+ private popup;
43
+ private list;
44
+ private suggesting;
45
+ /** Counts the mention queries: only the latest one's answer is shown. */
46
+ private asking;
47
+ /** The app suggests after `@` (`onMention` was given). */
48
+ private mentions;
49
+ private readonly modeButton;
50
+ private readonly modelButton;
51
+ /** How full the context is: a ring and the percent. */
52
+ private readonly meter;
53
+ private readonly meterRing;
54
+ private readonly meterText;
55
+ private readonly button;
56
+ private readonly sent;
57
+ private readonly contextChanged;
58
+ private readonly mentioned;
59
+ private readonly stopped;
60
+ private readonly modeChanged;
61
+ private readonly modelChanged;
62
+ private readonly thinkingChanged;
63
+ /** What was sent, oldest first; where Arrow Up stands in it (its length: the text being written), and that text. */
64
+ private past;
65
+ private pastAt;
66
+ private draft;
67
+ constructor(props?: IBaseProp<ChatComposerProps>);
68
+ get placeholder(): string;
69
+ set placeholder(value: Bind<string>);
70
+ get busy(): boolean;
71
+ set busy(value: Bind<boolean>);
72
+ get attachments(): boolean;
73
+ set attachments(value: Bind<boolean>);
74
+ get accept(): string;
75
+ set accept(value: Bind<string>);
76
+ get contextItems(): ChatContextItem[];
77
+ set contextItems(value: Bind<ChatContextItem[]>);
78
+ get commands(): readonly ChatCommand[];
79
+ set commands(value: Bind<readonly ChatCommand[]>);
80
+ /** The files attached, in order: they go with the next message. */
81
+ get files(): File[];
82
+ get maxRows(): number;
83
+ set maxRows(value: Bind<number>);
84
+ get modes(): readonly ChatOption[];
85
+ set modes(value: Bind<readonly ChatOption[]>);
86
+ /** The mode in use: the one set, or the first. */
87
+ get mode(): string;
88
+ set mode(value: Bind<string>);
89
+ get models(): readonly ChatOption[];
90
+ set models(value: Bind<readonly ChatOption[]>);
91
+ /** The model in use: the one set, or the first. */
92
+ get model(): string;
93
+ set model(value: Bind<string>);
94
+ get thinking(): boolean;
95
+ set thinking(value: Bind<boolean>);
96
+ get usage(): number | null;
97
+ set usage(value: Bind<number | null>);
98
+ /** What was sent before, oldest first, with what was sent since. */
99
+ get history(): readonly string[];
100
+ set history(value: Bind<readonly string[]>);
101
+ /** Occurs when the user sends the text. Set `e.cancel` to keep it in the box. */
102
+ get onSend(): MotifEvent<ChatSendEventArgs>;
103
+ /** Occurs when the user stops the reply. */
104
+ get onStop(): MotifEvent<{
105
+ source: ChatComposer;
106
+ }>;
107
+ /** Occurs when the user turns a context item on or off, or takes it off. */
108
+ get onContextChanged(): MotifEvent<ChatContextChangedEventArgs>;
109
+ /** Occurs when the user writes after `@`: give what fits `e.query` (`e.items`, or `e.promise`). */
110
+ get onMention(): MotifEvent<ChatMentionEventArgs>;
111
+ /** Occurs when the user picks another mode. */
112
+ get onModeChanged(): MotifEvent<ChatValueChangedEventArgs<string>>;
113
+ /** Occurs when the user picks another model. */
114
+ get onModelChanged(): MotifEvent<ChatValueChangedEventArgs<string>>;
115
+ /** Occurs when the user turns thinking on or off. */
116
+ get onThinkingChanged(): MotifEvent<ChatValueChangedEventArgs<boolean>>;
117
+ /** The text in the box. */
118
+ get value(): string;
119
+ set value(value: string);
120
+ focus(): boolean;
121
+ /** Sends the text in the box and the files attached, as Enter does: nothing when both are empty. */
122
+ send(): boolean;
123
+ /** Attaches files, as picking, pasting or dropping them does; those `accept` does not take are left out. */
124
+ attach(files: Iterable<File>): void;
125
+ /** Takes a file off, as its chip's remove button does. */
126
+ detach(file: File): void;
127
+ /** Opens the browser's file picker, as the attach button does. */
128
+ pick(): void;
129
+ /** Stops the reply, as the stop button does. */
130
+ stop(): void;
131
+ /** Goes to the next mode, as Shift+Tab in the box does. */
132
+ nextMode(): void;
133
+ /** `/` at the start of the box, as the commands button does: the menu lists the commands. */
134
+ private startCommand;
135
+ /** What is written before the caret: `/word` at the start of the box lists the commands, `@word` asks the app. */
136
+ private suggest;
137
+ /** Shows `items` under the box, the first one active; they would replace the text from `from` to `to`. */
138
+ private offer;
139
+ private menu;
140
+ /** Puts the line in place of what it was offered for, and the caret after it. */
141
+ private choose;
142
+ private closeMenu;
143
+ private pointAt;
144
+ /** While the menu is open: the arrows move in it, Enter or Tab takes the active line, Escape closes it. */
145
+ private menuKey;
146
+ private drawCommands;
147
+ /** Picked, pasted or dropped files, while `attachments` is on. */
148
+ private listenForFiles;
149
+ /** `accept` as the browser's file input reads it: extensions (`.pdf`), media types (`image/png`) and families (`image/*`). */
150
+ private accepts;
151
+ /** A chip for each context item: on while it goes with the message; its remove button takes it out of the array. */
152
+ private drawContext;
153
+ private drawAttach;
154
+ /** A button that shows its icon alone: its name for assistive technology, and its tooltip. */
155
+ private name;
156
+ private current;
157
+ private key;
158
+ private recall;
159
+ private pickMode;
160
+ private pickModel;
161
+ private toggleThinking;
162
+ /** Enter sends, and its key says so; on a touch screen it starts a new line. */
163
+ private drawEnter;
164
+ private drawButton;
165
+ private drawPlaceholder;
166
+ /** The mode in use on its button, the modes in its menu. */
167
+ private drawMode;
168
+ /** The model in use on its button; the models, and thinking when it is set, in its menu. */
169
+ private drawModel;
170
+ /** How full the context is: the ring's arc, the percent beside it, its name for assistive technology. */
171
+ private drawUsage;
172
+ }
@@ -0,0 +1,53 @@
1
+ import type { ChatFlowView } from './chat-flow-view';
2
+ import type { ChatMessage } from './chat-message';
3
+ import type { ChatWaiting } from './chat-request';
4
+ import { ChatWriter } from './ChatWriter';
5
+ /** What a reply asks of its chat. */
6
+ export interface ChatReplyHost {
7
+ /** The flow `message` is drawn in, while its turn is on the page. */
8
+ flowOf(message: ChatMessage): ChatFlowView | null;
9
+ /** `message` was written: the chat keeps the view at the end, or the height of its turn. */
10
+ changed(message: ChatMessage): void;
11
+ /** What the model is doing now, for the line under the conversation. */
12
+ status(reply: ChatReply, text: string): void;
13
+ /** A request of the reply waits for the user. */
14
+ wait(reply: ChatReply, waiting: ChatWaiting): void;
15
+ /** The reply ended: what still waits is answered with `null`. */
16
+ ended(reply: ChatReply): void;
17
+ }
18
+ /**
19
+ * A reply being written, as `Chat.reply()` returns it: its text, thinking, tool calls, to-do list and notices, in the
20
+ * order they happen. Each call writes the message object first, and draws at once while its turn is on the page; a
21
+ * turn drawn later is drawn from the message. `signal` is aborted when the user stops the reply or the chat goes: give
22
+ * it to the request.
23
+ *
24
+ * @example
25
+ * const reply = chat.reply();
26
+ * for await (const event of this.model.ask(text, reply.signal)) {
27
+ * if (event.type === 'thinking') reply.thinking(event.delta);
28
+ * else if (event.type === 'text') reply.text(event.delta);
29
+ * }
30
+ * reply.done();
31
+ */
32
+ export declare class ChatReply extends ChatWriter {
33
+ readonly message: ChatMessage;
34
+ private readonly host;
35
+ /** The chat's: it aborts it too when it is disposed. */
36
+ private readonly controller;
37
+ constructor(message: ChatMessage, host: ChatReplyHost,
38
+ /** The chat's: it aborts it too when it is disposed. */
39
+ controller: AbortController);
40
+ /** Aborted when the reply is stopped (the stop button, Escape, `stop()`) or the chat is disposed. */
41
+ get signal(): AbortSignal;
42
+ /** What the model is doing now, in a word or two ("Reading files"): the line under the conversation says it. */
43
+ status(text: string): void;
44
+ /** The reply is complete. */
45
+ done(): void;
46
+ /** Stops the reply where it is: `signal` is aborted, and the flow says it stopped. */
47
+ stop(): void;
48
+ /** The reply failed: the flow says `error`, or the kit's text. */
49
+ fail(error?: string | Error): void;
50
+ private finish;
51
+ /** The reply stopped or failed: a call that had not ended failed with it, a sub-agent's calls too. */
52
+ private cut;
53
+ }
@@ -0,0 +1,119 @@
1
+ import type { ChatFlowView } from './chat-flow-view';
2
+ import type { ChatNoticePart, ChatPart, ChatSource, ChatTodoItem, ChatToolPart } from './chat-part';
3
+ import type { ChatFormAnswer, ChatFormSchema, ChatPermissionAnswer, ChatPlanAnswer, ChatPlanChoice, ChatQuestion, ChatQuestionsAnswer, ChatRequestPart, ChatWaiting } from './chat-request';
4
+ import type { ChatToolInit } from './chat-tool-init';
5
+ /**
6
+ * Writes the parts of a reply, or of a sub-agent inside a tool call: each call writes the parts first, then draws into
7
+ * the flow while it is on the page. Thinking ends when anything else is written.
8
+ */
9
+ export declare class ChatWriter {
10
+ private readonly list;
11
+ /** The flow the parts are drawn in, while it is on the page. */
12
+ readonly flowOf: () => ChatFlowView | null;
13
+ /** Something was written: the chat keeps the view at the end, or the height of the turn. */
14
+ readonly changed: () => void;
15
+ private readonly opened;
16
+ /** A request waits for the user: the chat keeps it, in the composer's place, until they answer. */
17
+ readonly waits: (waiting: ChatWaiting) => void;
18
+ /** The time shown above the first text. */
19
+ private readonly time?;
20
+ private timed;
21
+ constructor(list: () => ChatPart[],
22
+ /** The flow the parts are drawn in, while it is on the page. */
23
+ flowOf: () => ChatFlowView | null,
24
+ /** Something was written: the chat keeps the view at the end, or the height of the turn. */
25
+ changed: () => void, opened: () => boolean,
26
+ /** A request waits for the user: the chat keeps it, in the composer's place, until they answer. */
27
+ waits: (waiting: ChatWaiting) => void,
28
+ /** The time shown above the first text. */
29
+ time?: Date | undefined);
30
+ /** `true` while it can be written. */
31
+ get isOpen(): boolean;
32
+ /** Adds markdown text: what it completes takes its form, the rest shows as text at once. */
33
+ text(delta: string): void;
34
+ /** Adds to the thinking being written, or starts one: called with nothing, it says the model thinks. */
35
+ thinking(delta?: string): void;
36
+ /** Adds a short note on what the thinking is about; it stands under the thinking's line while it runs. */
37
+ note(note: string): void;
38
+ /** Starts a tool call: write its arguments, output and end through what it returns. */
39
+ tool(init: ChatToolInit): ChatToolCall;
40
+ /** The to-do list as it stands now; right after another one, it takes its place. */
41
+ todo(items: ChatTodoItem[]): void;
42
+ /** A line in the flow: `retry` while a request is tried again, `info` for anything else. */
43
+ notice(tone: ChatNoticePart['tone'], text?: string): void;
44
+ /**
45
+ * The request failed and is tried again in `seconds`: the line counts down to it, says which try it is of how many,
46
+ * and why (`reason`, "Overloaded").
47
+ */
48
+ retrying(seconds: number, options?: {
49
+ attempt?: number;
50
+ attempts?: number;
51
+ reason?: string;
52
+ }): void;
53
+ /** The conversation so far was summed up for the model: a line across the flow, `summary` under it on a click. */
54
+ compaction(summary?: string): void;
55
+ /**
56
+ * Shows a plan (markdown) and waits for the user: one of `choices` (by default "Yes, go ahead", value `yes`), or `no`
57
+ * to keep planning, with what to change. When the reply ends first it resolves as `no`.
58
+ */
59
+ plan(text: string, choices?: ChatPlanChoice[]): Promise<ChatPlanAnswer>;
60
+ /**
61
+ * Asks the user questions: the form takes the composer's place until they answer or leave it to the model, and the
62
+ * flow keeps the questions and the answers. When the reply ends first it resolves as declined.
63
+ */
64
+ questions(questions: ChatQuestion[]): Promise<ChatQuestionsAnswer>;
65
+ /**
66
+ * Asks the user to fill in a form, as an MCP server's elicitation asks: `message` says what for, `schema` is its
67
+ * `requestedSchema`, `source` who asks. The form takes the composer's place until the user sends it, declines or
68
+ * dismisses it; the answer is the elicitation's result. When the reply ends first it resolves as `cancel`.
69
+ *
70
+ * @example
71
+ * client.setRequestHandler(ElicitRequestSchema, (request) => call.form(request.params.message, request.params.requestedSchema, { source: 'github' }));
72
+ */
73
+ form(message: string, schema: ChatFormSchema, options?: {
74
+ source?: string;
75
+ }): Promise<ChatFormAnswer>;
76
+ /**
77
+ * The sources the reply names, as numbered chips. Right after other sources they join them, each source once (by its
78
+ * address, or its title).
79
+ */
80
+ sources(items: ChatSource[]): void;
81
+ /** Ends the thinking being written, with its seconds. */
82
+ endThinking(): void;
83
+ /** Draws a part again: it changed. */
84
+ redraw(part: ChatPart): void;
85
+ /** Hands `part` to the chat until the user answers: `write` keeps the answer, `unanswered` is what a reply ending gives. */
86
+ protected wait<T extends object>(part: ChatRequestPart, unanswered: T, write: (answer: T) => void): Promise<T>;
87
+ private add;
88
+ private thought;
89
+ private last;
90
+ }
91
+ /**
92
+ * A tool call being written, as `reply.tool()` returns it. While its arguments arrive, `progress()` says the file and
93
+ * the bytes; `start()` gives what went in, `output()` adds what comes out, and `done()` or `fail()` ends it. A sub-agent
94
+ * the call runs writes its own text and calls into it, as a reply does: they are drawn inside the call.
95
+ */
96
+ export declare class ChatToolCall extends ChatWriter {
97
+ readonly part: ChatToolPart;
98
+ private readonly parent;
99
+ constructor(part: ChatToolPart, parent: ChatWriter);
100
+ /**
101
+ * Asks the user whether the call may run: it waits open, what goes in shown, and its choices take the composer's place
102
+ * ("Yes", `always` when given, "No" with what to do instead). Then it runs, or is denied. When the reply ends first it
103
+ * resolves as `no`.
104
+ */
105
+ permission(options?: {
106
+ always?: string;
107
+ }): Promise<ChatPermissionAnswer>;
108
+ /** While the arguments arrive: the file they name, and how many bytes came. */
109
+ progress(file?: string, bytes?: number): void;
110
+ /** The arguments are complete: what went in, and what the call does in a line. */
111
+ start(input?: string, title?: string): void;
112
+ /** Adds to what came out. */
113
+ output(delta: string): void;
114
+ /** The call ended; `output`, when given, is all it returned. */
115
+ done(output?: string): void;
116
+ /** The call failed; `error`, when given, is what it says. */
117
+ fail(error?: string): void;
118
+ private end;
119
+ }