@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
@@ -18,9 +18,7 @@ interface Handle {
18
18
  afterGlyph: Component<HTMLSpanElement>;
19
19
  }
20
20
  interface Drag {
21
- pointer: number;
22
21
  handle: number;
23
- from: number;
24
22
  a: number;
25
23
  b: number;
26
24
  rtl: boolean;
@@ -119,7 +117,7 @@ export declare class Splitter extends Control<HTMLDivElement, SplitterProps> {
119
117
  foldFromHandle(handle: Handle, side: 'before' | 'after', event: Event): void;
120
118
  keyDown(e: KeyboardEvent, handle: Handle): void;
121
119
  pointerDown(e: PointerEvent, handle: Handle): void;
122
- pointerMove(e: PointerEvent): void;
120
+ pointerMove(moved: number, e: PointerEvent): void;
123
121
  pointerUp(e: PointerEvent): void;
124
122
  }
125
123
  export {};
@@ -1134,8 +1134,9 @@ export declare class TabDocumentManager extends FocusContainer<HTMLDivElement, T
1134
1134
  private renderTexts;
1135
1135
  private renderMinSizes;
1136
1136
  /**
1137
- * The sizes the props give a group and its tabs. Written on each group, not on the root, whose
1138
- * inline style is the app's to set (`style.cssText`).
1137
+ * The sizes the props give a group and its tabs, and how its strip lays them out. Written on each group, not on the
1138
+ * root, whose inline style is the app's to set (`style.cssText`); the group's own rules read them, so a manager in
1139
+ * one of its documents keeps its own.
1139
1140
  */
1140
1141
  private sizeGroup;
1141
1142
  /** The strip's look: where pinned ones go and wrapping. Each group writes how its tabs are sized and its scroll buttons. */
@@ -1,4 +1,5 @@
1
1
  import { type Bind, type Event as MotifEvent, type IBaseProp, type ComponentBase } from '@motifx/core';
2
+ import type { EnterKeyHint } from '../../core/enter-key-hint';
2
3
  import type { EnterKeyEventArgs } from '../../parts/field/enter-key-event-args';
3
4
  import { Field } from '../../parts/field/Field';
4
5
  import type { ValidationRule } from '../../parts/validation/validation-rule';
@@ -44,17 +45,27 @@ export declare class TextArea extends Field<string, TextAreaProps> {
44
45
  set selectOnFocus(value: Bind<boolean>);
45
46
  get spellcheck(): boolean | null;
46
47
  set spellcheck(value: Bind<boolean>);
48
+ get submitOnEnter(): boolean;
49
+ set submitOnEnter(value: Bind<boolean>);
47
50
  get wrap(): 'soft' | 'hard' | 'off';
48
51
  set wrap(value: Bind<'soft' | 'hard' | 'off'>);
49
52
  get name(): string;
50
53
  set name(value: Bind<string>);
51
54
  get autocomplete(): string;
52
55
  set autocomplete(value: Bind<string>);
56
+ get enterKeyHint(): EnterKeyHint | null;
57
+ set enterKeyHint(value: Bind<EnterKeyHint | null>);
53
58
  /** The `<textarea>` as a component: write its attributes with `put` and call its methods through `attr`. */
54
59
  get textAreaPart(): ComponentBase<HTMLTextAreaElement>;
55
60
  get onEnter(): MotifEvent<EnterKeyEventArgs<string>>;
56
61
  /** Selects all text. The selection is made a moment later, not before the call returns. */
57
62
  select(): void;
63
+ /** Where the selection starts in the text; the caret when nothing is selected. */
64
+ get selectionStart(): number;
65
+ /** Where the selection ends in the text; the caret when nothing is selected. */
66
+ get selectionEnd(): number;
67
+ /** Selects from `start` to `end`, or puts the caret at `start` alone. */
68
+ setSelectionRange(start: number, end?: number): void;
58
69
  /** Clears the field, as the clear button does. */
59
70
  clear(): void;
60
71
  protected get controlTag(): string;
@@ -1,4 +1,5 @@
1
1
  import type { Bind } from '@motifx/core';
2
+ import type { EnterKeyHint } from '../../core/enter-key-hint';
2
3
  import type { EnterKeyEventArgs } from '../../parts/field/enter-key-event-args';
3
4
  import type { FieldProps } from '../../parts/field/field-props';
4
5
  import type { TextAreaResize } from './text-area-resize';
@@ -37,6 +38,16 @@ export interface TextAreaProps extends FieldProps<string> {
37
38
  /** The name submitted with the form. */
38
39
  name?: Bind<string>;
39
40
  autocomplete?: Bind<string>;
40
- /** Occurs when the user presses Ctrl+Enter (Cmd+Enter on Apple platforms). Enter alone starts a new line. */
41
+ /** What the Enter key of an on-screen keyboard says (`send`, `enter` …); it does not change what Enter does. */
42
+ enterKeyHint?: Bind<EnterKeyHint>;
43
+ /**
44
+ * `true` makes Enter raise `onEnter` and Shift+Enter start a new line, as a chat's message box does. The default is
45
+ * `false`: Ctrl+Enter (Cmd+Enter) raises it and Enter starts a new line.
46
+ */
47
+ submitOnEnter?: Bind<boolean>;
48
+ /**
49
+ * Occurs when the user presses Ctrl+Enter (Cmd+Enter on Apple platforms), or Enter with `submitOnEnter`. Never while
50
+ * an input method is composing.
51
+ */
41
52
  onEnter?: (e: EnterKeyEventArgs<string>) => void;
42
53
  }
@@ -1,4 +1,5 @@
1
1
  import { type Bind, type Event as MotifEvent, type IBaseProp, type ComponentBase } from '@motifx/core';
2
+ import type { EnterKeyHint } from '../../core/enter-key-hint';
2
3
  import type { InputMode } from '../../core/input-mode';
3
4
  import type { EnterKeyEventArgs } from '../../parts/field/enter-key-event-args';
4
5
  import { Field } from '../../parts/field/Field';
@@ -42,6 +43,8 @@ export declare class TextBox extends Field<string, TextBoxProps> {
42
43
  set align(value: Bind<'start' | 'center' | 'end'>);
43
44
  get inputMode(): InputMode | null;
44
45
  set inputMode(value: Bind<InputMode | null>);
46
+ get enterKeyHint(): EnterKeyHint | null;
47
+ set enterKeyHint(value: Bind<EnterKeyHint | null>);
45
48
  get autocomplete(): string;
46
49
  set autocomplete(value: Bind<string>);
47
50
  get spellcheck(): boolean | null;
@@ -1,4 +1,5 @@
1
1
  import type { Bind } from '@motifx/core';
2
+ import type { EnterKeyHint } from '../../core/enter-key-hint';
2
3
  import type { InputMode } from '../../core/input-mode';
3
4
  import type { EnterKeyEventArgs } from '../../parts/field/enter-key-event-args';
4
5
  import type { FieldProps } from '../../parts/field/field-props';
@@ -27,6 +28,8 @@ export interface TextBoxProps extends FieldProps<string> {
27
28
  /** The text alignment. The default is `'start'`. */
28
29
  align?: Bind<'start' | 'center' | 'end'>;
29
30
  inputMode?: Bind<InputMode>;
31
+ /** What the Enter key of an on-screen keyboard says (`send`, `search`, `next` …); it does not change what Enter does. */
32
+ enterKeyHint?: Bind<EnterKeyHint>;
30
33
  autocomplete?: Bind<string>;
31
34
  spellcheck?: Bind<boolean>;
32
35
  /** The name submitted with the form. */
@@ -2,6 +2,9 @@ import { type Bind, type Event as MotifEvent, type IBaseProp } from '@motifx/cor
2
2
  import { Control } from '../../core/control';
3
3
  import type { ControlSize } from '../../core/control-size';
4
4
  import type { ButtonVariant } from '../button/button-variant';
5
+ import type { ToolbarCustomMenuOpeningEventArgs } from './toolbar-custom-menu-opening-event-args';
6
+ import type { ToolbarCustomization } from './toolbar-customization';
7
+ import type { ToolbarCustomizedEventArgs } from './toolbar-customized-event-args';
5
8
  import type { ToolbarItem } from './toolbar-item';
6
9
  import type { ToolbarItemClickEventArgs } from './toolbar-item-click-event-args';
7
10
  import type { ToolbarOrientation } from './toolbar-orientation';
@@ -40,12 +43,35 @@ export declare class Toolbar extends Control<HTMLDivElement, ToolbarProps> {
40
43
  set buttonVariant(value: Bind<ButtonVariant>);
41
44
  get overflow(): ToolbarOverflow;
42
45
  set overflow(value: Bind<ToolbarOverflow>);
46
+ get customizable(): boolean;
47
+ set customizable(value: Bind<boolean>);
48
+ /** What the user changed so far: a copy, to save. Give it back to restore the toolbar as the user left it. */
49
+ get customization(): ToolbarCustomization;
50
+ set customization(value: Bind<ToolbarCustomization | null>);
51
+ get commands(): readonly ToolbarItem[];
52
+ set commands(value: Bind<readonly ToolbarItem[]>);
53
+ get customizer(): boolean;
54
+ set customizer(value: Bind<boolean>);
55
+ get customizerKeyboard(): boolean;
56
+ set customizerKeyboard(value: Bind<boolean>);
57
+ get acceptCommands(): boolean;
58
+ set acceptCommands(value: Bind<boolean>);
43
59
  /** The controls currently in the overflow menu. Reactive. */
44
60
  get overflowed(): readonly Control[];
45
61
  /** Occurs when an item in `items` is clicked, after its own `click`. */
46
62
  get onItemClick(): MotifEvent<ToolbarItemClickEventArgs>;
63
+ /** Occurs when the user changed the toolbar, with everything changed so far. */
64
+ get onCustomized(): MotifEvent<ToolbarCustomizedEventArgs>;
65
+ /** Occurs before the menu of the right button opens: add commands of your own or leave some out. */
66
+ get onCustomMenuOpening(): MotifEvent<ToolbarCustomMenuOpeningEventArgs>;
47
67
  /** The control created for an item in `items`. */
48
68
  controlOf(item: ToolbarItem): Control | null;
69
+ /**
70
+ * Opens the customizer: the items of `items` with the commands and separators the user added, to show and hide, move,
71
+ * rename, add commands of `commands` and separators, and choose what a button shows. Returns `false` when it is
72
+ * already open.
73
+ */
74
+ openCustomizer(): boolean;
49
75
  /** Recalculates which items fit, for example after their content changes size. */
50
76
  updateOverflow(): void;
51
77
  /**
@@ -57,10 +83,20 @@ export declare class Toolbar extends Control<HTMLDivElement, ToolbarProps> {
57
83
  protected applyProperty(name: string, value: unknown): void;
58
84
  private get parts();
59
85
  private createParts;
60
- /** Makes the controls of `items` again when the list, an item's type or its overflow changes, or on `reState()`. */
86
+ /**
87
+ * Places the items again when the list, an item's type, overflow or display changes, the user changed the toolbar,
88
+ * or on `reState()`.
89
+ */
61
90
  private followItems;
91
+ /** What a button shows: the user's choice, else its own; a part it does not have is never the only one shown. */
92
+ private displayOf;
93
+ /** An item's name, without its access key mark. */
94
+ private textOf;
62
95
  private place;
96
+ /** Makes the control of an item: `drawn` gives its fields (the user's name too), `item` is what its clicks report. */
63
97
  private make;
98
+ /** The text, icon and tooltip of a button as it shows `display`: without its text, the text is its tooltip and name. */
99
+ private shownFields;
64
100
  /** Gives a made control the item's fields again, as they are now. */
65
101
  private fill;
66
102
  private itemPressed;
@@ -80,6 +116,11 @@ export declare class Toolbar extends Control<HTMLDivElement, ToolbarProps> {
80
116
  private stops;
81
117
  /** Neither the part nor a list or condition holding it in the bar is hidden or waiting (`x-wait`, `x-display`, `motif.hide`). */
82
118
  private shownInBar;
119
+ /**
120
+ * The toolbar's own helpers among its children: the "more" button, the room keeper, the menu of the right button and
121
+ * the customizer window opened over it.
122
+ */
123
+ private notOfBar;
83
124
  /** A control added to the bar or taken away: the arrows and the room follow. The "more" button is no part of the bar. */
84
125
  private childChanged;
85
126
  protected childEnabledChanged(): void;
@@ -124,6 +165,34 @@ export declare class Toolbar extends Control<HTMLDivElement, ToolbarProps> {
124
165
  private moreButton;
125
166
  /** The "more" menu: each moved button as a menu item, the separators as group lines. */
126
167
  private moreItems;
168
+ /** The commands the user can add: `commands` when given, else those of the app (`commands` registry) that have a text. */
169
+ private catalog;
170
+ private takeCustomization;
171
+ private remember;
172
+ /** Whether the user changed anything: the layout's part, or what a button shows. */
173
+ private touched;
174
+ private contextMenu;
175
+ private customMenuOpening;
176
+ private customCommands;
177
+ /** The name of an item as menus write it: its text, else its tooltip. */
178
+ private nameOfItem;
179
+ /** A button with both a text and an icon: the user can choose to show only one of them. */
180
+ private canShowEither;
181
+ /** The customization with `display` for the item; `null` when that is what it shows already. */
182
+ private displayed;
183
+ /** Applies a change made from the menu, and puts focus back on its item, else on the bar. */
184
+ private changeByUser;
185
+ /** The customizer's view of the toolbar: a flat list, separators instead of groups, and what each button shows. */
186
+ private customizerSource;
187
+ /** The toolbar's name in the menus: its label. */
188
+ private nameOf;
189
+ /** Takes commands from the menus while the user can change it and `acceptCommands` is on. */
190
+ private renderTarget;
191
+ /** The item that names the command `key`, hidden or shown. */
192
+ private nodeOfCommand;
193
+ private commandState;
194
+ /** Shows the command (its item shown again, else added) or takes it away (an item added removed, else hidden). */
195
+ private sendCommand;
127
196
  private listen;
128
197
  private onKeyDown;
129
198
  }
@@ -5,5 +5,10 @@ export type { ToolbarItem } from './toolbar-item';
5
5
  export type { ToolbarItemType } from './toolbar-item-type';
6
6
  export type { ToolbarItemOverflow } from './toolbar-item-overflow';
7
7
  export type { ToolbarItemClickEventArgs } from './toolbar-item-click-event-args';
8
+ export type { ToolbarItemDisplay } from './toolbar-item-display';
8
9
  export type { ToolbarOrientation } from './toolbar-orientation';
9
10
  export type { ToolbarOverflow } from './toolbar-overflow';
11
+ export type { ToolbarCustomization } from './toolbar-customization';
12
+ export type { ToolbarAddedItem } from './toolbar-added-item';
13
+ export type { ToolbarCustomizedEventArgs } from './toolbar-customized-event-args';
14
+ export type { ToolbarCustomMenuOpeningEventArgs } from './toolbar-custom-menu-opening-event-args';
@@ -0,0 +1,9 @@
1
+ /** An item the user added to a toolbar: a command, or a separator. */
2
+ export interface ToolbarAddedItem {
3
+ /** Given by the toolbar: `user:1`, `user:2`… */
4
+ id: string;
5
+ /** The key of the command. */
6
+ command?: string;
7
+ /** A separator. */
8
+ separator?: boolean;
9
+ }
@@ -0,0 +1,23 @@
1
+ import type { MenuItem } from '../../parts/menu/menu-item';
2
+ import type { Toolbar } from './Toolbar';
3
+ import type { ToolbarItem } from './toolbar-item';
4
+ export interface ToolbarCustomMenuOpeningEventArgs {
5
+ /**
6
+ * The item pressed with the right button or the menu key, as the app gave it (a command the user added: an item that
7
+ * names it); `null` on the bar outside the items, and on its JSX children.
8
+ */
9
+ item: ToolbarItem | null;
10
+ /** Its name in the customization: its key, its position or the id of an item the user added; `null` with `item`. */
11
+ path: string | null;
12
+ /**
13
+ * The commands of the menu about to open: the toolbar's own when `customizable` is on, else none. Change the list to
14
+ * add your own or to leave some out. The menu does not open when it is empty.
15
+ */
16
+ items: MenuItem[];
17
+ /** Set to `true` to keep the menu closed. */
18
+ cancel: boolean;
19
+ /** Whether a key opened it. */
20
+ byKeyboard: boolean;
21
+ event: Event;
22
+ source: Toolbar;
23
+ }
@@ -0,0 +1,18 @@
1
+ import type { ToolbarAddedItem } from './toolbar-added-item';
2
+ import type { ToolbarItemDisplay } from './toolbar-item-display';
3
+ /**
4
+ * What the user changed in a toolbar, to save and give back later. An item of the app is named by its `key` (else its
5
+ * position in `items`), an item the user added by its `id`.
6
+ */
7
+ export interface ToolbarCustomization {
8
+ /** The items the user hid. */
9
+ hidden?: readonly string[];
10
+ /** The order the user gave, by key, under `''`. */
11
+ order?: Readonly<Record<string, readonly string[]>>;
12
+ /** The names the user gave to items. */
13
+ texts?: Readonly<Record<string, string>>;
14
+ /** The commands and separators the user added. */
15
+ added?: readonly ToolbarAddedItem[];
16
+ /** What the user chose a button shows. */
17
+ display?: Readonly<Record<string, ToolbarItemDisplay>>;
18
+ }
@@ -0,0 +1,7 @@
1
+ import type { Toolbar } from './Toolbar';
2
+ import type { ToolbarCustomization } from './toolbar-customization';
3
+ export interface ToolbarCustomizedEventArgs {
4
+ /** Everything the user changed so far, to save. */
5
+ customization: ToolbarCustomization;
6
+ source: Toolbar;
7
+ }
@@ -0,0 +1,2 @@
1
+ /** What a toolbar button shows: its icon, its text, or both. */
2
+ export type ToolbarItemDisplay = 'icon' | 'text' | 'both';
@@ -3,13 +3,16 @@ import type { IconSource } from '../../core/icon-source';
3
3
  import type { ButtonTone } from '../button/button-tone';
4
4
  import type { MenuItem } from '../../parts/menu/menu-item';
5
5
  import type { ToolbarItemClickEventArgs } from './toolbar-item-click-event-args';
6
+ import type { ToolbarItemDisplay } from './toolbar-item-display';
6
7
  import type { ToolbarItemOverflow } from './toolbar-item-overflow';
7
8
  import type { ToolbarItemType } from './toolbar-item-type';
8
9
  /**
9
- * One item of `Toolbar.items`, drawn as a `Button` or a separator. Every field except `click` and
10
+ * One item of `Toolbar.items`, drawn as a `Button` or a separator. Every field except `key`, `command`, `click` and
10
11
  * `data` accepts a value or a function, and a function is tracked.
11
12
  */
12
13
  export interface ToolbarItem {
14
+ /** Names the item in what the user changed (`customization`), so that it keeps its changes when the items change. The default is its position. */
15
+ key?: string | number;
13
16
  /** The default is `'button'`. */
14
17
  type?: Bind<ToolbarItemType>;
15
18
  /**
@@ -34,6 +37,13 @@ export interface ToolbarItem {
34
37
  menu?: Bind<readonly MenuItem[]>;
35
38
  /** Controls whether the item can move into the overflow menu. The default is `'auto'`. */
36
39
  overflow?: Bind<ToolbarItemOverflow>;
40
+ /**
41
+ * What the button shows: its icon, its text, or both. The default is `'both'`: whatever it is given. The user's
42
+ * choice (`customization`) wins. With the text left out, the text names the button and shows as its tooltip.
43
+ */
44
+ display?: Bind<ToolbarItemDisplay>;
45
+ /** In a toolbar the user can change (`customizable`): `false` keeps the item where it is and shown. The default is `true`. */
46
+ customizable?: Bind<boolean>;
37
47
  /** Occurs when the item is clicked, in the bar or in the overflow menu. */
38
48
  click?: (e: ToolbarItemClickEventArgs) => void;
39
49
  /** A custom application value for the item. */
@@ -2,6 +2,9 @@ import type { Bind } from '@motifx/core';
2
2
  import type { ControlProps } from '../../core/control';
3
3
  import type { ControlSize } from '../../core/control-size';
4
4
  import type { ButtonVariant } from '../button/button-variant';
5
+ import type { ToolbarCustomMenuOpeningEventArgs } from './toolbar-custom-menu-opening-event-args';
6
+ import type { ToolbarCustomization } from './toolbar-customization';
7
+ import type { ToolbarCustomizedEventArgs } from './toolbar-customized-event-args';
5
8
  import type { ToolbarItem } from './toolbar-item';
6
9
  import type { ToolbarItemClickEventArgs } from './toolbar-item-click-event-args';
7
10
  import type { ToolbarOrientation } from './toolbar-orientation';
@@ -26,6 +29,29 @@ export interface ToolbarProps extends ControlProps {
26
29
  buttonVariant?: Bind<ButtonVariant>;
27
30
  /** How items that do not fit are handled. The default is `'menu'`. */
28
31
  overflow?: Bind<ToolbarOverflow>;
32
+ /**
33
+ * The user can hide, move and rename the items of `items`, add commands and separators, and choose what a button
34
+ * shows, from the menu of the right button or the menu key (Shift+F10) and in the customizer. Each item can say
35
+ * otherwise (`customizable`); JSX children stay as they are. The default is `false`.
36
+ */
37
+ customizable?: Bind<boolean>;
38
+ /** What the user changed, as `onCustomized` reported it, to give back. */
39
+ customization?: Bind<ToolbarCustomization | null>;
40
+ /** Commands the user can add, each with a `key`. Without it, the app's commands (`commands`) that have a text. */
41
+ commands?: Bind<readonly ToolbarItem[]>;
42
+ /** The menu of the right button offers the customizer when `customizable` is on. The default is `true`. */
43
+ customizer?: Bind<boolean>;
44
+ /** The customizer has a keyboard page (`ShortcutEditor`), to give the app's shortcuts other keys. The default is `true`. */
45
+ customizerKeyboard?: Bind<boolean>;
46
+ /**
47
+ * A customizable toolbar takes commands sent from the menus of the page: the menu of the right button on a menu bar
48
+ * item that names a command offers to add it here. The default is `true`.
49
+ */
50
+ acceptCommands?: Bind<boolean>;
29
51
  /** Occurs when an item in `items` is clicked, after its own `click`. */
30
52
  onItemClick?: (e: ToolbarItemClickEventArgs) => void;
53
+ /** Occurs when the user changed the toolbar, with everything changed so far, to save. */
54
+ onCustomized?: (e: ToolbarCustomizedEventArgs) => void;
55
+ /** Occurs before the menu of the right button opens, to add commands of your own or leave some out. */
56
+ onCustomMenuOpening?: (e: ToolbarCustomMenuOpeningEventArgs) => void;
31
57
  }
@@ -0,0 +1,22 @@
1
+ import type { MenuItem } from '../../parts/menu/menu-item';
2
+ import type { Toolbar } from './Toolbar';
3
+ /** Whether a toolbar shows a command now (`'shown'`), can take it (`'absent'`), or cannot (`'none'`). */
4
+ export type ToolbarTargetState = 'shown' | 'absent' | 'none';
5
+ /** A toolbar of the page as a place menus send commands to; the toolbar keeps it up to date. */
6
+ export interface ToolbarTarget {
7
+ toolbar: Toolbar;
8
+ /** The toolbar's name, as the menus write it. */
9
+ name(): string;
10
+ state(command: string): ToolbarTargetState;
11
+ /** Shows the command on the toolbar: its item shown again, else a new item the user added. */
12
+ add(command: string): boolean;
13
+ /** Takes the command away: an item the user added is removed, an item of the app hidden. */
14
+ remove(command: string): boolean;
15
+ }
16
+ export declare const toolbarTargets: {
17
+ add(target: ToolbarTarget): void;
18
+ remove(target: ToolbarTarget): void;
19
+ list(): readonly ToolbarTarget[];
20
+ /** What a menu offers for an item that names `command`: a line for each toolbar that takes it, to add it there or take it away. */
21
+ sendItems(command: string): MenuItem[];
22
+ };
@@ -0,0 +1,11 @@
1
+ import { type ComponentBase } from '@motifx/core';
2
+ /** What goes on the clipboard: plain text, and the same as HTML where it has one. */
3
+ export interface ClipboardText {
4
+ text: string;
5
+ html?: string;
6
+ }
7
+ /**
8
+ * Puts `content` on the clipboard of the window `owner` is in: through the Clipboard API where the page may use it,
9
+ * else through the copy command, which also works where the API is missing or refused (plain http, an older browser).
10
+ */
11
+ export declare function writeClipboard(owner: ComponentBase, content: ClipboardText): void;
@@ -0,0 +1,2 @@
1
+ /** What the Enter key of a touch device's on-screen keyboard says it does: it only labels the key. */
2
+ export type EnterKeyHint = 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Calls `changed` (once per microtask) after a design language, theme or density changes anywhere, or fonts of a
3
- * document of the page finish loading. Returns the function that stops it.
2
+ * Calls `changed` (once per microtask) after a design language, theme, density or reading direction (`dir`) changes
3
+ * anywhere, or fonts of a document of the page finish loading. Returns the function that stops it.
4
4
  */
5
5
  export declare function onLookChanged(changed: () => void): () => void;
@@ -1,6 +1,6 @@
1
1
  import { type ComponentBase } from '@motifx/core';
2
2
  /**
3
- * Calls `heard` after each change of the look (a design language, a theme, a density, fonts that finished loading) and when a length `component` reads
3
+ * Calls `heard` after each change of the look (a design language, a theme, a density, a reading direction, fonts that finished loading) and when a length `component` reads
4
4
  * came out another size. Nothing is followed per component: `heard` runs while it is out of the page too, so read through
5
5
  * `measure` and leave out what is not laid out. Returns what stops it.
6
6
  */
@@ -7,7 +7,7 @@ import type { Size } from './size';
7
7
  * browser laid it out (the first one too, and the one after it is shown again or moved), so nothing is laid out to
8
8
  * read it; where the window has no size observer (a test document), the layer reads those in the next run. A size
9
9
  * within half a pixel of the last one told is not told again.
10
- * - `look`: the design language, theme or density changed, fonts finished loading, a length it reads came out another size, or it moved into
10
+ * - `look`: the design language, theme, density or reading direction changed, fonts finished loading, a length it reads came out another size, or it moved into
11
11
  * another window.
12
12
  * - `page`: its window changed size. `scroll`: something scrolled in the page of its window, but inside `except`.
13
13
  * - `sight`: it came into the viewport of its window or left it; whether it is in sight comes with the call.
@@ -22,7 +22,9 @@ export declare function scrollIntoView(target: ComponentBase, options?: {
22
22
  }): boolean;
23
23
  /**
24
24
  * Scrolls `scroller`, and nothing else, only as far as it takes to bring `target` into view: one of its parts, or a
25
- * stretch of its content placed by the model. Read in the next round, written after it. Returns what takes it back.
25
+ * stretch of its content placed by the model. Read in the next round, written after it. A reveal asked for along the
26
+ * same axis of the same scroller before it ran takes its place: both read before either writes, so the older one would
27
+ * scroll to what is no longer wanted (a tab chosen, then another before the round). Returns what takes it back.
26
28
  */
27
29
  export declare function reveal(scroller: ComponentBase, target: ComponentBase | RevealRange, options?: RevealOptions): () => void;
28
30
  /**
@@ -0,0 +1,2 @@
1
+ /** Saves text as a file through a link the browser downloads; the link needs no place in the page. */
2
+ export declare function saveText(text: string, fileName: string, type: string): void;