@motifx-community/ui 0.1.0-beta.6 → 0.1.0-beta.9

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 (598) hide show
  1. package/CHANGELOG.md +324 -0
  2. package/dist/components/accordion/Accordion.d.ts +3 -0
  3. package/dist/components/accordion/AccordionItem.d.ts +9 -7
  4. package/dist/components/appbar/AppBar.d.ts +9 -3
  5. package/dist/components/appbar/app-bar-props.d.ts +2 -2
  6. package/dist/components/appmenu/AppMenu.d.ts +204 -0
  7. package/dist/components/appmenu/app-menu-item-click-event-args.d.ts +11 -0
  8. package/dist/components/appmenu/app-menu-item.d.ts +46 -0
  9. package/dist/components/appmenu/app-menu-items-changed-event-args.d.ts +7 -0
  10. package/dist/components/appmenu/app-menu-props.d.ts +38 -0
  11. package/dist/components/appmenu/app-menu-search-text-changed-event-args.d.ts +5 -0
  12. package/dist/components/appmenu/app-menu-selecting-event-args.d.ts +5 -0
  13. package/dist/components/appmenu/app-menu-selection-changed-event-args.d.ts +13 -0
  14. package/dist/components/appmenu/index.d.ts +8 -0
  15. package/dist/components/avatar/Avatar.d.ts +2 -0
  16. package/dist/components/avatar/AvatarGroup.d.ts +18 -2
  17. package/dist/components/badge/Badge.d.ts +4 -1
  18. package/dist/components/barcode/Barcode.d.ts +7 -1
  19. package/dist/components/bargauge/BarGauge.d.ts +35 -22
  20. package/dist/components/bottomnavigation/BottomNavigation.d.ts +44 -12
  21. package/dist/components/bottomnavigation/bottom-navigation-item.d.ts +1 -1
  22. package/dist/components/bottomnavigation/bottom-navigation-props.d.ts +2 -2
  23. package/dist/components/breadcrumb/Breadcrumb.d.ts +12 -8
  24. package/dist/components/button/Button.d.ts +24 -3
  25. package/dist/components/button/button-props.d.ts +1 -0
  26. package/dist/components/button/menu-item-of.d.ts +4 -0
  27. package/dist/components/buttongroup/ButtonGroup.d.ts +2 -1
  28. package/dist/components/calendar/Calendar.d.ts +11 -3
  29. package/dist/components/calendar/calendar-props.d.ts +2 -0
  30. package/dist/components/card/Card.d.ts +10 -0
  31. package/dist/components/card/card-props.d.ts +1 -1
  32. package/dist/components/chart/Chart.d.ts +30 -17
  33. package/dist/components/chart/ChartLegend.d.ts +10 -7
  34. package/dist/components/chart/ChartPlot.d.ts +40 -31
  35. package/dist/components/chart/ChartTable.d.ts +0 -1
  36. package/dist/components/chart/ChartTooltip.d.ts +23 -4
  37. package/dist/components/chart/PartsPlot.d.ts +19 -7
  38. package/dist/components/chart/RadarPlot.d.ts +23 -9
  39. package/dist/components/chart/chart-export.d.ts +3 -3
  40. package/dist/components/chart/chart-look.d.ts +7 -5
  41. package/dist/components/chart/chart-tooltip-options.d.ts +3 -2
  42. package/dist/components/chart/plot-room.d.ts +9 -0
  43. package/dist/components/chart/plot-view.d.ts +12 -2
  44. package/dist/components/chart/text-parts.d.ts +12 -0
  45. package/dist/components/checkbox/ToggleField.d.ts +6 -4
  46. package/dist/components/chip/Chip.d.ts +16 -7
  47. package/dist/components/chip/ChipGroup.d.ts +14 -1
  48. package/dist/components/chip/chip-props.d.ts +1 -1
  49. package/dist/components/colorbox/ColorBox.d.ts +5 -3
  50. package/dist/components/colorpicker/ColorPicker.d.ts +3 -0
  51. package/dist/components/combobox/ComboBox.d.ts +8 -4
  52. package/dist/components/combobox/combo-box-props.d.ts +2 -2
  53. package/dist/components/contextmenu/ContextMenu.d.ts +26 -15
  54. package/dist/components/contextmenu/attach-context-menu.d.ts +3 -3
  55. package/dist/components/contextmenu/context-menu-opening-event-args.d.ts +8 -4
  56. package/dist/components/contextmenu/context-menu-props.d.ts +2 -2
  57. package/dist/components/contextmenu/context-menu-target.d.ts +2 -2
  58. package/dist/components/datagrid/DataGrid.d.ts +104 -31
  59. package/dist/components/datagrid/filter-editor-context.d.ts +22 -0
  60. package/dist/components/datagrid/grid-action.d.ts +2 -2
  61. package/dist/components/datagrid/grid-cell-click-event-args.d.ts +3 -3
  62. package/dist/components/datagrid/grid-cell-prepared-event-args.d.ts +6 -4
  63. package/dist/components/datagrid/grid-column.d.ts +10 -2
  64. package/dist/components/datagrid/grid-editor-prepared-event-args.d.ts +2 -2
  65. package/dist/components/datagrid/grid-lookup.d.ts +4 -4
  66. package/dist/components/datagrid/grid-master-detail.d.ts +1 -1
  67. package/dist/components/datagrid/grid-row-click-event-args.d.ts +3 -3
  68. package/dist/components/datagrid/grid-row-drag-event-args.d.ts +3 -2
  69. package/dist/components/datagrid/grid-row-dragging.d.ts +8 -8
  70. package/dist/components/datagrid/grid-row-prepared-event-args.d.ts +4 -2
  71. package/dist/components/datagrid/grid-visible-row.d.ts +3 -1
  72. package/dist/components/datagrid/index.d.ts +1 -0
  73. package/dist/components/datagrid/model/CellFormatter.d.ts +8 -1
  74. package/dist/components/datagrid/model/ChoiceListAdapter.d.ts +23 -0
  75. package/dist/components/datagrid/model/GridExport.d.ts +1 -1
  76. package/dist/components/datagrid/model/GridModel.d.ts +5 -0
  77. package/dist/components/datagrid/model/ListChoices.d.ts +28 -0
  78. package/dist/components/datagrid/model/row-dragging-values.d.ts +3 -2
  79. package/dist/components/datagrid/view/ActionWidths.d.ts +16 -4
  80. package/dist/components/datagrid/view/BandRows.d.ts +12 -14
  81. package/dist/components/datagrid/view/CellEditor.d.ts +3 -5
  82. package/dist/components/datagrid/view/CellTip.d.ts +20 -8
  83. package/dist/components/datagrid/view/ColumnMenu.d.ts +4 -2
  84. package/dist/components/datagrid/view/ColumnStyles.d.ts +3 -2
  85. package/dist/components/datagrid/view/DetailRow.d.ts +9 -4
  86. package/dist/components/datagrid/view/DragSelect.d.ts +19 -7
  87. package/dist/components/datagrid/view/EditForm.d.ts +4 -0
  88. package/dist/components/datagrid/view/FilterCell.d.ts +30 -7
  89. package/dist/components/datagrid/view/FilterPanel.d.ts +1 -1
  90. package/dist/components/datagrid/view/FilterRow.d.ts +10 -6
  91. package/dist/components/datagrid/view/GridBody.d.ts +87 -43
  92. package/dist/components/datagrid/view/GridPager.d.ts +8 -1
  93. package/dist/components/datagrid/view/GridRow.d.ts +32 -17
  94. package/dist/components/datagrid/view/GridToolbar.d.ts +6 -5
  95. package/dist/components/datagrid/view/GroupFooterRow.d.ts +7 -1
  96. package/dist/components/datagrid/view/GroupPanel.d.ts +26 -8
  97. package/dist/components/datagrid/view/GroupRow.d.ts +17 -10
  98. package/dist/components/datagrid/view/HeaderFilter.d.ts +2 -1
  99. package/dist/components/datagrid/view/HeaderRow.d.ts +18 -3
  100. package/dist/components/datagrid/view/MenuPopup.d.ts +3 -2
  101. package/dist/components/datagrid/view/RowActions.d.ts +13 -5
  102. package/dist/components/datagrid/view/RowDrag.d.ts +24 -10
  103. package/dist/components/datagrid/view/TotalRow.d.ts +4 -2
  104. package/dist/components/datagrid/view/action-button.d.ts +11 -5
  105. package/dist/components/datagrid/view/cell-tip-target.d.ts +11 -0
  106. package/dist/components/datagrid/view/check-mark.d.ts +4 -3
  107. package/dist/components/datagrid/view/column-fit.d.ts +9 -0
  108. package/dist/components/datagrid/view/drag-handle.d.ts +3 -2
  109. package/dist/components/datagrid/view/drag-select-host.d.ts +5 -5
  110. package/dist/components/datagrid/view/expand-button.d.ts +4 -3
  111. package/dist/components/datagrid/view/group-drop.d.ts +7 -0
  112. package/dist/components/datagrid/view/group-panel-host.d.ts +7 -4
  113. package/dist/components/datagrid/view/header-host.d.ts +3 -2
  114. package/dist/components/datagrid/view/row-drag-host.d.ts +5 -3
  115. package/dist/components/datagrid/view/summary-cell.d.ts +5 -3
  116. package/dist/components/datagrid/view/toolbar-host.d.ts +3 -2
  117. package/dist/components/datebox/DateBox.d.ts +5 -3
  118. package/dist/components/daterangebox/DateRangeBox.d.ts +12 -9
  119. package/dist/components/draggable/Draggable.d.ts +24 -11
  120. package/dist/components/draggable/draggable-props.d.ts +3 -3
  121. package/dist/components/drawer/Drawer.d.ts +18 -10
  122. package/dist/components/drawer/drawer-props.d.ts +2 -2
  123. package/dist/components/dropdown/DropDown.d.ts +12 -3
  124. package/dist/components/dropdown/drop-down-props.d.ts +3 -3
  125. package/dist/components/fileuploader/FileUploader.d.ts +9 -6
  126. package/dist/components/filterbuilder/FilterBuilder.d.ts +42 -13
  127. package/dist/components/form/MxForm.d.ts +33 -12
  128. package/dist/components/form/form-props.d.ts +1 -1
  129. package/dist/components/form/message-box-options.d.ts +1 -1
  130. package/dist/components/formlayout/FormLayout.d.ts +26 -5
  131. package/dist/components/gallery/Gallery.d.ts +30 -17
  132. package/dist/components/gauge/Gauge.d.ts +51 -37
  133. package/dist/components/layout/ChildSettings.d.ts +2 -2
  134. package/dist/components/layout/GroupBox.d.ts +7 -5
  135. package/dist/components/layout/Panel.d.ts +1 -0
  136. package/dist/components/layout/SplitContainer.d.ts +8 -8
  137. package/dist/components/layout/set-padding.d.ts +2 -1
  138. package/dist/components/layout/set-space.d.ts +2 -1
  139. package/dist/components/listbox/ListBox.d.ts +7 -5
  140. package/dist/components/listbox/item-template.d.ts +7 -2
  141. package/dist/components/listbox/list-rows.d.ts +2 -0
  142. package/dist/components/loadpanel/LoadPanel.d.ts +7 -3
  143. package/dist/components/loadpanel/load-panel-props.d.ts +1 -1
  144. package/dist/components/loadpanel/load-panel-target.d.ts +2 -2
  145. package/dist/components/lookup/Lookup.d.ts +1 -1
  146. package/dist/components/menubar/MenuBar.d.ts +115 -5
  147. package/dist/components/menubar/index.d.ts +7 -0
  148. package/dist/components/menubar/menu-bar-added-item.d.ts +11 -0
  149. package/dist/components/menubar/menu-bar-custom-menu-opening-event-args.d.ts +19 -0
  150. package/dist/components/menubar/menu-bar-customization.d.ts +18 -0
  151. package/dist/components/menubar/menu-bar-customized-event-args.d.ts +7 -0
  152. package/dist/components/menubar/menu-bar-items-changed-event-args.d.ts +7 -0
  153. package/dist/components/menubar/menu-bar-merge-when.d.ts +5 -0
  154. package/dist/components/menubar/menu-bar-merged-event-args.d.ts +7 -0
  155. package/dist/components/menubar/menu-bar-props.d.ts +43 -1
  156. package/dist/components/menubar/menu-merge.d.ts +10 -0
  157. package/dist/components/menubar/menu-node.d.ts +4 -0
  158. package/dist/components/menubar/merge-hosts.d.ts +9 -0
  159. package/dist/components/menubar/merged-item.d.ts +18 -0
  160. package/dist/components/numberbox/NumberBox.d.ts +13 -4
  161. package/dist/components/numberbox/number-box-props.d.ts +1 -1
  162. package/dist/components/otpinput/OtpInput.d.ts +19 -8
  163. package/dist/components/pagination/Pagination.d.ts +9 -4
  164. package/dist/components/popover/Popover.d.ts +24 -7
  165. package/dist/components/popover/popover-props.d.ts +1 -1
  166. package/dist/components/progress/ProgressBar.d.ts +1 -0
  167. package/dist/components/progress/ProgressWave.d.ts +13 -12
  168. package/dist/components/progress/Spinner.d.ts +5 -5
  169. package/dist/components/progress/progress-bar-props.d.ts +1 -1
  170. package/dist/components/qrcode/QRCode.d.ts +5 -1
  171. package/dist/components/radiogroup/RadioGroup.d.ts +8 -6
  172. package/dist/components/rating/Rating.d.ts +2 -2
  173. package/dist/components/resizable/Resizable.d.ts +19 -17
  174. package/dist/components/resizable/resizable-props.d.ts +3 -3
  175. package/dist/components/resizable/resize-start.d.ts +11 -0
  176. package/dist/components/ribbonmenu/RibbonGallery.d.ts +32 -0
  177. package/dist/components/ribbonmenu/RibbonKeyHints.d.ts +61 -0
  178. package/dist/components/ribbonmenu/RibbonMenu.d.ts +419 -0
  179. package/dist/components/ribbonmenu/index.d.ts +22 -0
  180. package/dist/components/ribbonmenu/ribbon-app-button-event-args.d.ts +8 -0
  181. package/dist/components/ribbonmenu/ribbon-command-click-event-args.d.ts +15 -0
  182. package/dist/components/ribbonmenu/ribbon-command-size.d.ts +2 -0
  183. package/dist/components/ribbonmenu/ribbon-command-type.d.ts +7 -0
  184. package/dist/components/ribbonmenu/ribbon-command.d.ts +63 -0
  185. package/dist/components/ribbonmenu/ribbon-gallery-item.d.ts +18 -0
  186. package/dist/components/ribbonmenu/ribbon-group-more-event-args.d.ts +12 -0
  187. package/dist/components/ribbonmenu/ribbon-group.d.ts +31 -0
  188. package/dist/components/ribbonmenu/ribbon-menu-custom-menu-opening-event-args.d.ts +22 -0
  189. package/dist/components/ribbonmenu/ribbon-menu-customization.d.ts +18 -0
  190. package/dist/components/ribbonmenu/ribbon-menu-customized-event-args.d.ts +7 -0
  191. package/dist/components/ribbonmenu/ribbon-menu-display-changed-event-args.d.ts +8 -0
  192. package/dist/components/ribbonmenu/ribbon-menu-display.d.ts +5 -0
  193. package/dist/components/ribbonmenu/ribbon-menu-items-changed-event-args.d.ts +7 -0
  194. package/dist/components/ribbonmenu/ribbon-menu-layout-changed-event-args.d.ts +8 -0
  195. package/dist/components/ribbonmenu/ribbon-menu-layout.d.ts +2 -0
  196. package/dist/components/ribbonmenu/ribbon-menu-props.d.ts +79 -0
  197. package/dist/components/ribbonmenu/ribbon-quick-bar-position.d.ts +2 -0
  198. package/dist/components/ribbonmenu/ribbon-tab-selecting-event-args.d.ts +5 -0
  199. package/dist/components/ribbonmenu/ribbon-tab-selection-changed-event-args.d.ts +10 -0
  200. package/dist/components/ribbonmenu/ribbon-tab.d.ts +24 -0
  201. package/dist/components/scheduler/AppointmentEditor.d.ts +16 -7
  202. package/dist/components/scheduler/Scheduler.d.ts +23 -9
  203. package/dist/components/scheduler/view/AgendaView.d.ts +7 -2
  204. package/dist/components/scheduler/view/AppointmentDrag.d.ts +26 -3
  205. package/dist/components/scheduler/view/CellAttributes.d.ts +1 -0
  206. package/dist/components/scheduler/view/CellWriter.d.ts +6 -3
  207. package/dist/components/scheduler/view/KeyedParts.d.ts +2 -0
  208. package/dist/components/scheduler/view/MonthView.d.ts +18 -7
  209. package/dist/components/scheduler/view/SchedulerTouch.d.ts +8 -2
  210. package/dist/components/scheduler/view/TimeView.d.ts +23 -11
  211. package/dist/components/scheduler/view/TimelineLine.d.ts +19 -2
  212. package/dist/components/scheduler/view/TimelineView.d.ts +27 -16
  213. package/dist/components/scheduler/view/scheduler-host.d.ts +4 -4
  214. package/dist/components/scheduler/view/shown-view.d.ts +11 -0
  215. package/dist/components/scheduler/view/touch-host.d.ts +6 -2
  216. package/dist/components/scrollview/ScrollView.d.ts +27 -8
  217. package/dist/components/sheet/BottomSheet.d.ts +13 -6
  218. package/dist/components/shortcuteditor/ShortcutEditor.d.ts +82 -0
  219. package/dist/components/shortcuteditor/index.d.ts +3 -0
  220. package/dist/components/shortcuteditor/shortcut-editor-keys-changed-event-args.d.ts +9 -0
  221. package/dist/components/shortcuteditor/shortcut-editor-props.d.ts +21 -0
  222. package/dist/components/signature/Signature.d.ts +18 -13
  223. package/dist/components/slider/Slider.d.ts +7 -6
  224. package/dist/components/slider/slider-props.d.ts +1 -1
  225. package/dist/components/sortable/Sortable.d.ts +24 -12
  226. package/dist/components/sortable/sortable-props.d.ts +1 -1
  227. package/dist/components/sparkline/Sparkline.d.ts +17 -19
  228. package/dist/components/speeddial/SpeedDial.d.ts +8 -2
  229. package/dist/components/speeddial/speed-dial-action.d.ts +1 -1
  230. package/dist/components/splitter/SplitPane.d.ts +3 -0
  231. package/dist/components/splitter/Splitter.d.ts +11 -5
  232. package/dist/components/stepper/Stepper.d.ts +30 -12
  233. package/dist/components/tabdocs/AutoHideStrip.d.ts +10 -4
  234. package/dist/components/tabdocs/DockGuides.d.ts +6 -4
  235. package/dist/components/tabdocs/DocumentList.d.ts +19 -7
  236. package/dist/components/tabdocs/DocumentTab.d.ts +12 -9
  237. package/dist/components/tabdocs/DropMarks.d.ts +8 -3
  238. package/dist/components/tabdocs/MoveByKeys.d.ts +2 -1
  239. package/dist/components/tabdocs/PhoneBar.d.ts +2 -1
  240. package/dist/components/tabdocs/PhoneList.d.ts +14 -4
  241. package/dist/components/tabdocs/PhoneTools.d.ts +8 -1
  242. package/dist/components/tabdocs/SplitSash.d.ts +3 -5
  243. package/dist/components/tabdocs/TabBrowserWindow.d.ts +3 -2
  244. package/dist/components/tabdocs/TabDockArea.d.ts +5 -2
  245. package/dist/components/tabdocs/TabDocumentManager.d.ts +51 -25
  246. package/dist/components/tabdocs/TabDrag.d.ts +27 -12
  247. package/dist/components/tabdocs/TabGroup.d.ts +30 -16
  248. package/dist/components/tabdocs/TabMenus.d.ts +11 -4
  249. package/dist/components/tabdocs/TabPresenter.d.ts +21 -5
  250. package/dist/components/tabdocs/TabSplit.d.ts +10 -4
  251. package/dist/components/tabdocs/TabWindow.d.ts +7 -4
  252. package/dist/components/tabdocs/item-part.d.ts +4 -0
  253. package/dist/components/tabdocs/layout-item.d.ts +4 -1
  254. package/dist/components/tabdocs/place-node.d.ts +11 -4
  255. package/dist/components/tabdocs/strip-room.d.ts +13 -0
  256. package/dist/components/tabdocs/tab-header.d.ts +3 -0
  257. package/dist/components/tabs/PanelContent.d.ts +1 -1
  258. package/dist/components/tabs/Tab.d.ts +4 -4
  259. package/dist/components/tabs/Tabs.d.ts +11 -6
  260. package/dist/components/tagbox/TagBox.d.ts +24 -6
  261. package/dist/components/textarea/TextArea.d.ts +9 -5
  262. package/dist/components/textbox/TextBox.d.ts +13 -4
  263. package/dist/components/tileview/TileView.d.ts +15 -5
  264. package/dist/components/timeline/Timeline.d.ts +11 -0
  265. package/dist/components/toast/Toaster.d.ts +9 -2
  266. package/dist/components/toolbar/Toolbar.d.ts +18 -5
  267. package/dist/components/toolbar/toolbar-item.d.ts +5 -0
  268. package/dist/components/tooltip/Tooltip.d.ts +10 -2
  269. package/dist/components/tooltip/add-tooltip.d.ts +3 -3
  270. package/dist/components/tooltip/tooltip-hub.d.ts +5 -3
  271. package/dist/components/tooltip/tooltip-props.d.ts +1 -1
  272. package/dist/components/tooltip/tooltip-target.d.ts +2 -2
  273. package/dist/components/treeview/TreeView.d.ts +34 -9
  274. package/dist/components/treeview/tree-row-parts.d.ts +13 -0
  275. package/dist/components/treeview/tree-view-item-template.d.ts +7 -2
  276. package/dist/components/treeview/tree-view-props.d.ts +1 -1
  277. package/dist/components/validationsummary/ValidationSummary.d.ts +1 -1
  278. package/dist/core/access-key-entry.d.ts +10 -0
  279. package/dist/core/access-key.d.ts +24 -12
  280. package/dist/core/chord.d.ts +9 -0
  281. package/dist/core/command-fields.d.ts +17 -0
  282. package/dist/core/command-registry.d.ts +37 -0
  283. package/dist/core/command-run-event-args.d.ts +11 -0
  284. package/dist/core/command.d.ts +41 -0
  285. package/dist/core/commands-changed-event-args.d.ts +4 -0
  286. package/dist/core/component-tree.d.ts +10 -0
  287. package/dist/core/container.d.ts +8 -5
  288. package/dist/core/control.d.ts +44 -15
  289. package/dist/core/cover-record.d.ts +9 -0
  290. package/dist/core/cover.d.ts +11 -0
  291. package/dist/core/draw-parts.d.ts +12 -20
  292. package/dist/core/flow-home.d.ts +7 -4
  293. package/dist/core/focus-mark.d.ts +8 -0
  294. package/dist/core/focus.d.ts +109 -10
  295. package/dist/core/glyphs.d.ts +42 -40
  296. package/dist/core/icon-source.d.ts +15 -2
  297. package/dist/core/key-windows.d.ts +8 -0
  298. package/dist/core/keyboard.d.ts +25 -30
  299. package/dist/core/keymap-changed-event-args.d.ts +7 -0
  300. package/dist/core/keymap.d.ts +6 -0
  301. package/dist/core/language-look.d.ts +20 -7
  302. package/dist/core/live-controls.d.ts +12 -0
  303. package/dist/core/look-watch.d.ts +4 -1
  304. package/dist/core/measure/box.d.ts +21 -0
  305. package/dist/core/measure/element-of.d.ts +12 -0
  306. package/dist/core/measure/every-frame.d.ts +8 -0
  307. package/dist/core/measure/hit-cover.d.ts +8 -0
  308. package/dist/core/measure/hit-options.d.ts +12 -0
  309. package/dist/core/measure/hits.d.ts +18 -0
  310. package/dist/core/measure/index.d.ts +27 -0
  311. package/dist/core/measure/job.d.ts +9 -0
  312. package/dist/core/measure/layout-change.d.ts +2 -0
  313. package/dist/core/measure/layout-options.d.ts +11 -0
  314. package/dist/core/measure/lengths.d.ts +13 -0
  315. package/dist/core/measure/look.d.ts +11 -0
  316. package/dist/core/measure/loop.d.ts +10 -0
  317. package/dist/core/measure/media.d.ts +8 -0
  318. package/dist/core/measure/motion.d.ts +10 -0
  319. package/dist/core/measure/observers.d.ts +13 -0
  320. package/dist/core/measure/on-layout.d.ts +23 -0
  321. package/dist/core/measure/page-events.d.ts +6 -0
  322. package/dist/core/measure/page.d.ts +11 -0
  323. package/dist/core/measure/pending-scroll.d.ts +9 -0
  324. package/dist/core/measure/pending-scrolls.d.ts +7 -0
  325. package/dist/core/measure/point.d.ts +5 -0
  326. package/dist/core/measure/probe-set.d.ts +35 -0
  327. package/dist/core/measure/read.d.ts +54 -0
  328. package/dist/core/measure/rect.d.ts +9 -0
  329. package/dist/core/measure/reveal-options.d.ts +20 -0
  330. package/dist/core/measure/reveal-range.d.ts +7 -0
  331. package/dist/core/measure/round-reads.d.ts +14 -0
  332. package/dist/core/measure/rounds.d.ts +36 -0
  333. package/dist/core/measure/scroll-motion.d.ts +5 -0
  334. package/dist/core/measure/scroll-place.d.ts +5 -0
  335. package/dist/core/measure/scroll.d.ts +41 -0
  336. package/dist/core/measure/size-box.d.ts +2 -0
  337. package/dist/core/measure/size.d.ts +5 -0
  338. package/dist/core/measure/text-probes.d.ts +19 -0
  339. package/dist/core/measure/text-widths.d.ts +14 -0
  340. package/dist/core/measure/view.d.ts +2 -0
  341. package/dist/core/measure/viewport-rect.d.ts +10 -0
  342. package/dist/core/measure/viewport.d.ts +12 -0
  343. package/dist/core/measure/watch.d.ts +35 -0
  344. package/dist/core/measure/watcher.d.ts +41 -0
  345. package/dist/core/measure/window-bound.d.ts +11 -0
  346. package/dist/core/measure/window-frame.d.ts +25 -0
  347. package/dist/core/order-controls.d.ts +7 -0
  348. package/dist/core/page-documents.d.ts +13 -0
  349. package/dist/core/page-layer.d.ts +18 -0
  350. package/dist/core/parsed-access-key.d.ts +9 -0
  351. package/dist/core/part-writes.d.ts +25 -0
  352. package/dist/core/press-origin.d.ts +3 -0
  353. package/dist/core/shortcut-conflict.d.ts +12 -0
  354. package/dist/core/shortcut-handler.d.ts +2 -0
  355. package/dist/core/shortcut-info.d.ts +19 -0
  356. package/dist/core/shortcut-options.d.ts +33 -0
  357. package/dist/core/shortcut-registration.d.ts +21 -0
  358. package/dist/core/shortcut-registry.d.ts +46 -0
  359. package/dist/core/shortcut-text.d.ts +2 -0
  360. package/dist/core/show-icon.d.ts +7 -0
  361. package/dist/core/stacked-window.d.ts +9 -0
  362. package/dist/core/ui-locale.d.ts +2 -2
  363. package/dist/core/ui-strings.d.ts +128 -0
  364. package/dist/core/window-events.d.ts +14 -0
  365. package/dist/core/window-stack.d.ts +11 -11
  366. package/dist/generated/tokens.d.ts +1391 -11
  367. package/dist/index.d.ts +16 -1
  368. package/dist/index.js +35277 -22566
  369. package/dist/index.js.map +1 -1
  370. package/dist/locales/en.json +121 -2
  371. package/dist/locales/tr.json +121 -2
  372. package/dist/parts/chart/chart-text.d.ts +29 -5
  373. package/dist/parts/chart/svg-parts.d.ts +11 -7
  374. package/dist/parts/chart/value-motion.d.ts +3 -2
  375. package/dist/parts/code/code-image.d.ts +6 -9
  376. package/dist/parts/customizer/Customizer.d.ts +64 -0
  377. package/dist/parts/customizer/NameForm.d.ts +10 -0
  378. package/dist/parts/customizer/customizer-command.d.ts +5 -0
  379. package/dist/parts/customizer/customizer-names.d.ts +9 -0
  380. package/dist/parts/customizer/customizer-node.d.ts +15 -0
  381. package/dist/parts/customizer/customizer-source.d.ts +27 -0
  382. package/dist/parts/data/DataItems.d.ts +2 -0
  383. package/dist/parts/data/KeyedItems.d.ts +2 -1
  384. package/dist/parts/data/empty-key.d.ts +2 -0
  385. package/dist/parts/drag/DragGhost.d.ts +23 -16
  386. package/dist/parts/drag/auto-scroll-options.d.ts +19 -0
  387. package/dist/parts/drag/auto-scroll.d.ts +11 -0
  388. package/dist/parts/drag/drag-boxes.d.ts +33 -0
  389. package/dist/parts/drag/stack-cover.d.ts +7 -0
  390. package/dist/parts/field/Field.d.ts +37 -9
  391. package/dist/parts/field/pressed-focusable.d.ts +3 -0
  392. package/dist/parts/item-layout/ItemLayout.d.ts +61 -0
  393. package/dist/parts/item-layout/item-layout-options.d.ts +17 -0
  394. package/dist/parts/item-layout/layout-added-item.d.ts +13 -0
  395. package/dist/parts/item-layout/layout-customization.d.ts +13 -0
  396. package/dist/parts/item-layout/layout-node.d.ts +24 -0
  397. package/dist/parts/item-tree/ItemTree.d.ts +34 -0
  398. package/dist/parts/item-tree/children-at.d.ts +2 -0
  399. package/dist/parts/item-tree/item-paths.d.ts +18 -0
  400. package/dist/parts/item-tree/ordered.d.ts +2 -0
  401. package/dist/parts/list/OptionList.d.ts +73 -17
  402. package/dist/parts/list/item-source.d.ts +4 -0
  403. package/dist/parts/list/option-parts.d.ts +10 -0
  404. package/dist/parts/mask/InputMask.d.ts +11 -4
  405. package/dist/parts/menu/MenuList.d.ts +35 -11
  406. package/dist/parts/menu/menu-item-merge-at.d.ts +6 -0
  407. package/dist/parts/menu/menu-item-merge.d.ts +6 -0
  408. package/dist/parts/menu/menu-item.d.ts +17 -2
  409. package/dist/parts/overlay/OverlayPanel.d.ts +21 -12
  410. package/dist/parts/overlay/inert-around.d.ts +6 -3
  411. package/dist/parts/overlay/overlay-container.d.ts +2 -2
  412. package/dist/parts/overlay/overlay-panel-props.d.ts +2 -2
  413. package/dist/parts/popup/Popup.d.ts +17 -2
  414. package/dist/parts/popup/place-near.d.ts +10 -0
  415. package/dist/parts/popup/place-options.d.ts +10 -0
  416. package/dist/parts/popup/place-popup.d.ts +4 -1
  417. package/dist/parts/popup/placed.d.ts +7 -0
  418. package/dist/parts/popup/popup-anchor.d.ts +4 -0
  419. package/dist/parts/popup/popup-open-options.d.ts +9 -4
  420. package/dist/parts/slide/slide-track-host.d.ts +3 -2
  421. package/dist/parts/slide/slide-track.d.ts +10 -4
  422. package/dist/parts/validation/validate-fields.d.ts +6 -2
  423. package/dist/parts/validation/validation-target.d.ts +3 -1
  424. package/dist/parts/window/follow-pointer.d.ts +2 -1
  425. package/dist/parts/window/resize-frame-parts.d.ts +7 -0
  426. package/dist/parts/window/resize-frame.d.ts +3 -2
  427. package/dist/styles.css +2144 -12
  428. package/dist/tokens/index.d.ts +14836 -13454
  429. package/dist/tokens/index.js +1397 -12
  430. package/dist/tokens/index.js.map +1 -1
  431. package/dist/{tr-DhIFcH3c.js → tr-BvKE8jSF.js} +241 -3
  432. package/dist/tr-BvKE8jSF.js.map +1 -0
  433. package/docs/accordion.md +2 -2
  434. package/docs/actionsheet.md +4 -3
  435. package/docs/appbar.md +3 -3
  436. package/docs/appmenu-api.md +83 -0
  437. package/docs/appmenu-programmatic.md +76 -0
  438. package/docs/appmenu-search.md +66 -0
  439. package/docs/appmenu.md +150 -0
  440. package/docs/avatar.md +2 -2
  441. package/docs/badge.md +1 -1
  442. package/docs/bar-gauge-angles.md +1 -1
  443. package/docs/bar-gauge-data.md +1 -1
  444. package/docs/bar-gauge-labels.md +1 -1
  445. package/docs/bar-gauge.md +1 -1
  446. package/docs/barcode.md +1 -1
  447. package/docs/bottomnavigation.md +3 -3
  448. package/docs/bottomsheet.md +3 -3
  449. package/docs/breadcrumb.md +1 -1
  450. package/docs/button.md +4 -4
  451. package/docs/buttongroup.md +1 -1
  452. package/docs/buttons.md +1 -1
  453. package/docs/calendar.md +1 -1
  454. package/docs/card.md +2 -2
  455. package/docs/chart-bars.md +1 -1
  456. package/docs/chart-candles.md +1 -1
  457. package/docs/chart-funnel.md +1 -1
  458. package/docs/chart-heatmap.md +1 -1
  459. package/docs/chart-lines.md +1 -1
  460. package/docs/chart-live.md +1 -1
  461. package/docs/chart-pie.md +1 -1
  462. package/docs/chart-radar.md +1 -1
  463. package/docs/chart-ranges.md +1 -1
  464. package/docs/chart-references.md +1 -1
  465. package/docs/chart-scatter.md +1 -1
  466. package/docs/chart-waterfall.md +1 -1
  467. package/docs/chart-zoom.md +1 -1
  468. package/docs/chart.md +1 -1
  469. package/docs/checkbox.md +2 -2
  470. package/docs/chip.md +7 -8
  471. package/docs/choice.md +1 -1
  472. package/docs/colorbox.md +1 -1
  473. package/docs/combobox.md +1 -1
  474. package/docs/control.md +2 -2
  475. package/docs/data.md +1 -1
  476. package/docs/datagrid-api.md +7 -4
  477. package/docs/datagrid-bands.md +1 -1
  478. package/docs/datagrid-drag-select.md +1 -1
  479. package/docs/datagrid-drag.md +4 -4
  480. package/docs/datagrid-editing.md +1 -1
  481. package/docs/datagrid-filtering.md +106 -1
  482. package/docs/datagrid-forms.md +2 -2
  483. package/docs/datagrid-grouping.md +1 -1
  484. package/docs/datagrid-layout.md +7 -7
  485. package/docs/datagrid-lookups.md +3 -3
  486. package/docs/datagrid-master-detail.md +3 -3
  487. package/docs/datagrid-scrolling.md +1 -1
  488. package/docs/datagrid-selection.md +1 -1
  489. package/docs/datagrid.md +1 -1
  490. package/docs/datebox.md +2 -2
  491. package/docs/daterangebox.md +2 -2
  492. package/docs/display.md +1 -1
  493. package/docs/draggable.md +4 -4
  494. package/docs/drawer.md +2 -2
  495. package/docs/dropdown.md +5 -5
  496. package/docs/editors.md +1 -1
  497. package/docs/feedback.md +1 -1
  498. package/docs/fileuploader.md +1 -1
  499. package/docs/filterbuilder.md +2 -2
  500. package/docs/formlayout.md +1 -1
  501. package/docs/foundations.md +1 -1
  502. package/docs/gallery.md +1 -1
  503. package/docs/gauge-base.md +1 -1
  504. package/docs/gauge-circular.md +1 -1
  505. package/docs/gauge-dashboards.md +1 -1
  506. package/docs/gauge-linear.md +1 -1
  507. package/docs/gauge-markers.md +1 -1
  508. package/docs/gauge-marks.md +1 -1
  509. package/docs/gauge-ranges.md +1 -1
  510. package/docs/gauge-scales.md +1 -1
  511. package/docs/gauge.md +1 -1
  512. package/docs/home.md +1 -1
  513. package/docs/keyboard.md +2 -4
  514. package/docs/language.md +2 -2
  515. package/docs/layout.md +3 -3
  516. package/docs/listbox.md +5 -5
  517. package/docs/loadpanel.md +4 -4
  518. package/docs/lookup.md +1 -1
  519. package/docs/menus.md +17 -16
  520. package/docs/multiview.md +1 -1
  521. package/docs/navigation.md +1 -1
  522. package/docs/numberbox.md +5 -4
  523. package/docs/otpinput.md +1 -1
  524. package/docs/pagination.md +1 -1
  525. package/docs/popover.md +10 -9
  526. package/docs/progress.md +5 -5
  527. package/docs/qrcode.md +1 -1
  528. package/docs/radiogroup.md +3 -3
  529. package/docs/rating.md +1 -1
  530. package/docs/resizable.md +4 -4
  531. package/docs/ribbonmenu-api.md +130 -0
  532. package/docs/ribbonmenu-commands.md +118 -0
  533. package/docs/ribbonmenu-customization.md +93 -0
  534. package/docs/ribbonmenu-display.md +96 -0
  535. package/docs/ribbonmenu-layouts.md +59 -0
  536. package/docs/ribbonmenu-programmatic.md +91 -0
  537. package/docs/ribbonmenu.md +233 -0
  538. package/docs/scheduler-agenda.md +1 -1
  539. package/docs/scheduler-big-data.md +1 -1
  540. package/docs/scheduler-editing.md +1 -1
  541. package/docs/scheduler-form.md +1 -1
  542. package/docs/scheduler-icalendar.md +1 -1
  543. package/docs/scheduler-mobile.md +1 -1
  544. package/docs/scheduler-recurrence.md +1 -1
  545. package/docs/scheduler-resources.md +1 -1
  546. package/docs/scheduler-timeline.md +1 -1
  547. package/docs/scheduler.md +1 -1
  548. package/docs/scrollview.md +7 -6
  549. package/docs/showcase-home.md +1 -1
  550. package/docs/showcase.md +2 -2
  551. package/docs/signature.md +1 -1
  552. package/docs/skeleton.md +1 -1
  553. package/docs/slider.md +4 -4
  554. package/docs/sortable.md +2 -2
  555. package/docs/sparkline.md +1 -1
  556. package/docs/speeddial.md +2 -2
  557. package/docs/splitter.md +1 -1
  558. package/docs/stepper.md +6 -8
  559. package/docs/switch.md +2 -2
  560. package/docs/tabdocs-dock.md +2 -2
  561. package/docs/tabdocs-drag.md +1 -1
  562. package/docs/tabdocs-menus.md +1 -1
  563. package/docs/tabdocs-mobile.md +1 -1
  564. package/docs/tabdocs-tabs.md +1 -1
  565. package/docs/tabdocs-windows.md +1 -2
  566. package/docs/tabdocs-workspace.md +1 -1
  567. package/docs/tabdocs.md +1 -1
  568. package/docs/tabs.md +2 -2
  569. package/docs/tagbox.md +9 -10
  570. package/docs/textarea.md +2 -2
  571. package/docs/textbox.md +6 -3
  572. package/docs/tileview.md +1 -1
  573. package/docs/timeline.md +1 -1
  574. package/docs/toast.md +1 -1
  575. package/docs/tokens.md +265 -1
  576. package/docs/toolbar.md +1 -1
  577. package/docs/tooltip.md +3 -3
  578. package/docs/treeview.md +15 -24
  579. package/docs/validationsummary.md +1 -1
  580. package/docs/window.md +3 -3
  581. package/docs/wizard.md +1 -1
  582. package/llms-full.txt +1904 -290
  583. package/llms.txt +18 -1
  584. package/package.json +4 -4
  585. package/dist/components/datagrid/view/next-frame.d.ts +0 -4
  586. package/dist/components/datagrid/view/place-in-order.d.ts +0 -6
  587. package/dist/components/tabdocs/keep-scroll.d.ts +0 -6
  588. package/dist/core/control-map.d.ts +0 -7
  589. package/dist/core/document-watch.d.ts +0 -10
  590. package/dist/core/enable.d.ts +0 -16
  591. package/dist/core/fonts-loaded.d.ts +0 -2
  592. package/dist/core/icon-node.d.ts +0 -10
  593. package/dist/core/next-frame.d.ts +0 -6
  594. package/dist/core/resize-watch.d.ts +0 -21
  595. package/dist/core/scroll-watch.d.ts +0 -13
  596. package/dist/parts/chart/token-lengths.d.ts +0 -16
  597. package/dist/parts/overlay/css-length.d.ts +0 -2
  598. package/dist/tr-DhIFcH3c.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -6,6 +6,330 @@ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.1.0-beta.9] - 2026-11-13
10
+
11
+ ### Fixed
12
+
13
+ - `TabDocumentManager`: dragging a tab no longer lays the page out again in each move ("A layout read in the write of a
14
+ measure" in development); the drop marks are measured with the rest of the aim. A place `onDragOver` changes gets
15
+ its marks with the next round.
16
+ - `DataGrid` group chip dragged back onto the headers no longer forces a reflow on the drop (Chrome's "Forced reflow"
17
+ violation): focus moves to the next chip (or the rows) before the chip goes, as with Delete, and the drop place is the
18
+ one the drag marked. `onGroupDropping` is asked once per drop.
19
+ - `DataGrid` with `rows` and no `rowKey` shows its rows: a row is known by itself. It used to throw MJD303 from its
20
+ change tracker and stay empty.
21
+ - `DataGrid`: grouping, sorting or changing the data with the rows already at the top no longer writes a scroll to the top, which made the browser lay the page out right after the rows were written (the forced reflow of 40-60 ms Chrome reported on a drop to the group panel or a chip click); the header drag also copies the cell's size before marking the drag.
22
+ - `DataGrid`: dragging a column header to the group panel no longer lays the page out again in each move; the panel's
23
+ drop mark is measured with the rest of the aim.
24
+ - `RibbonMenu` gallery: built once; a change updates only the tile, the label or the columns it touches, and a
25
+ component icon given as is stays in its grid tile instead of being disposed. `ContextMenu`, the message box, the
26
+ tab browser window title and the grid's edit window name follow their props with a core `bindings.watch`.
27
+ - `DropDown` and `Lookup` with a `dataSource`: an empty text as `value` (`''`) is no value, as the data layer counts
28
+ it. The field shows empty and asks the data source for nothing; it used to ask again and again and freeze the page.
29
+ - Components the kit places stay where they belong when their own root is shown or hidden (`x-display`, `x-wait`).
30
+ The kit no longer moves a component's element by hand: every part that holds one is a component, and the component
31
+ is added to it. `DataGrid` content from `cell`, `groupCell`, `headerCell`, a band's `headerCell` and the detail
32
+ `template` used to land under the grid body, more of them on every page change, and a root hidden from the start
33
+ showed anyway. The same holds now for the cell editor and the edit form row, `FormLayout` items and tabs, the
34
+ content and footer of `MxForm`, `Drawer`, `BottomSheet` and `ActionSheet`, a `Button`'s JSX children with a menu,
35
+ icons given as components, the search boxes of `ListBox` and `TreeView`, `Sortable` items and the groups of
36
+ `TabDocumentManager`. A place is given as a component (`container`, `minimizeTarget`, `Spinner.cover`); popups,
37
+ toasts and message boxes outside a component tree go to the app's page layer.
38
+ - `TabDocumentManager`: the tab strip's keys and the splitters' keys (arrows, Home, End) no longer count as shortcuts
39
+ in each other's way: each works only on its own part. Its keys are registered once.
40
+ - `Accordion` and `Tabs`: a section's `content` function is not followed by what builds the section, so reactive
41
+ values it reads or writes do not run it again.
42
+ - `AvatarGroup` no longer throws when it is disposed: the avatars going with it redrew a group already taken apart,
43
+ an error nobody caught.
44
+ - `DropDown`, `ComboBox`, `TagBox`, `ListBox` and `Lookup`: an empty list from a data source keeps its "No items" text
45
+ when the design language changes.
46
+ - `Gauge` and `BarGauge` on a page of another browser window stop their value motion in that window.
47
+ - `MenuBar` merging when shown (`mergeWhen: 'shown'`): a bar that merges is no longer drawn in its own place for a
48
+ frame before its items move to the main bar. It waits hidden until its place is read, and is shown there only when
49
+ no main bar takes it.
50
+ - `Toolbar`: a bar that does not show (a hidden panel, a closed drawer) moves nothing into its "more" menu; its size
51
+ notice fits it once it shows. It used to fit into less than no room, and a page of such bars laid itself out more
52
+ than 16 times in one run. The "more" button is measured once, and again only after a change of look.
53
+ - `TabDocumentManager`: a new width that changes the presentation moves the dock areas and windows back home in a
54
+ measure, their scrolls read in its read; a floating window kept in view takes the room its measure read. Neither
55
+ lays the page out from a size notice or a write any more.
56
+ - `Toaster`: toasters on one page with the same `hotkey` share one shortcut, which goes to the newest toast of any of
57
+ them and back. A toaster of the app beside `Toaster.default` used to clash with it on F8 (only the first one ran).
58
+
59
+ ### Changed
60
+
61
+ - `Tabs` and `TabDocumentManager` hide the panels of the tabs and documents not shown the MotifJS way
62
+ (`motif.hide`): out of the page, in their place, kept whole with their content, scroll and focus. Core knows a hidden
63
+ panel (`isVisible`, `x:deactivated`); only the shown tab writes `aria-controls`, since only its panel is in the page.
64
+ - Update in place instead of drawing their parts again: `MenuList` (every menu), the buttons of every field
65
+ (`TextBox`, `DropDown`, ...), the `Lookup` column header. A changed field changes only what shows it; the list keeps
66
+ the parts of the items it keeps. `DropDown` draws its value and its open list again only when they change.
67
+ `OptionList` (the list of `DropDown`, `ComboBox`, `TagBox`, `ListBox`, `DateBox`...) keeps one option per item, in a
68
+ long list over the rows in view too: items given again keep the options of the items they keep, and an option's
69
+ text, selection, highlight and enabled state change in place. Options now appear in the next microtask after
70
+ `setItems`, as other bound lists do. An `itemTemplate` draws each option once, and again only when the template
71
+ itself changes: what it shows changes through its own bindings, not through `refresh()`. `TreeView` keeps the row
72
+ of every key whose look stays when the items are read again or filtered, the rows in open groups too; only a row
73
+ whose template item, icon or parent changed is drawn anew. A `TreeView` row's group is built when it first opens;
74
+ closing it hides the group with its rows (`hidden`), opening it shows the same rows again, kept by key if the
75
+ children changed meanwhile. A search that leaves a long `OptionList` scrolled past its end keeps the options of the
76
+ items that stay instead of making them again. `Breadcrumb` keeps a step per item: a changed text, link or icon
77
+ changes only what shows it, and only a step that turns between link, button and current page gets a new face.
78
+ `BottomNavigation` keeps an item per given item when items are added or removed; only an item that turns between
79
+ button and link is made anew. `MenuBar` keeps a top item's part per key: a changed text, hint, icon, enabled state
80
+ or submenu changes only what shows it, and a merge or an unmerge keeps the parts of the main bar's items it keeps.
81
+ The main bar also keeps, hidden, the parts of a merged bar's items after it leaves and of its own items a merged
82
+ bar takes away (`merge: 'remove'`), and shows the same parts when that bar merges again or leaves; those of a bar
83
+ that is disposed or given other items go with it. `AppMenu` keeps an item's part per key when items are added,
84
+ removed or moved; only an item that moves between the top and the bottom list or turns between button and link
85
+ gets a new part, and a change of one item's text, hint, icon, badge or link changes only that item's part.
86
+ `SpeedDial` keeps an action's button per key (else per action) when the actions change. `Stepper` (and so
87
+ `Wizard`) keeps a step per index when steps are added or removed: a new item at an index changes what that step
88
+ says, a changed value only the steps' states, and `clickable` gives the steps new faces in the same steps. `Gallery`
89
+ keeps a slide per item (its `content` is made once) and a dot per index when items are added, removed or moved, and
90
+ a changed item or value changes only what shows it. Their parts that hide (a step's number, mark, description and
91
+ line; a slide's caption) are kept aside in their place, out of the page, instead of `hidden`, and their steps,
92
+ slides and states now change in the next microtask after the items or the value, as other bound lists do.
93
+ `FormLayout` is no longer made again when its `data` or `items` change: a new data object reaches the editors and
94
+ the templates through their bindings (a template's `context.data` is the form's data now), and new items keep the
95
+ cell, editor and typed text of every item that stays (by field, else by kind and place, in groups and tabs too), so
96
+ only the items added, removed or made another way (another editor, template or editor function) are made or taken
97
+ out. An item that is not shown is kept aside in its place, out of the page, instead of `hidden`.
98
+ `FilterBuilder` keeps a row per condition and group: a changed field, operation, value or group operation changes
99
+ only that item's buttons, an item added or removed leaves the other rows alone, and a new `value` keeps the rows of
100
+ the items in the same places (the tree is updated in place, so `root` stays the same object). Its rows now change in
101
+ the next microtask after a change; `openEditor` on a condition added just now opens the editor once its row is
102
+ there. The `DataGrid` toolbar keeps an item's part when the items are given again as new objects under the same
103
+ names. The titles of a folded dock area (`TabDocumentManager`) keep their buttons, and a changed title or icon
104
+ changes only that title. `Timeline` keeps an event's row while the event stays when events are added, removed or
105
+ changed; only turning the timeline or making it collapsible makes the rows again. `RibbonMenu` keeps a tab's part
106
+ per key when tabs are added, removed or moved, and a command's part when it is changed by path (given anew under
107
+ its key): a changed text, icon, state or menu changes only what shows it, and only a command of another kind is made
108
+ anew. Groups and commands the user hides are kept out of sight and shown again as they were. A text with an access
109
+ key (tabs, labels, menus) keeps its parts when it changes, the key's part kept aside while there is none.
110
+ `TagBox` keeps a tag per value: adding or removing one leaves the other tags (and the "+N" tag) alone, and a tag's
111
+ label is drawn again only when its item or the `tagTemplate` changes; the tags now change in the next microtask
112
+ after the value, as other bound lists do. `DropDown` writes its value into the same text part (now
113
+ `.mx-drop-down__value`); the wait's text and what a template draws (in `.mx-drop-down__drawn`) are kept aside while
114
+ not shown. `Slider` ticks, `OtpInput` boxes and separators, and `ColorPicker` swatches stay in their places when
115
+ their settings or the palette change. The `DataGrid` summary items and row action buttons write a new text into the
116
+ parts they have (an action's text is now in `.mx-button__text`); the phone list and tools of `TabDocumentManager`
117
+ write a changed title, description, icon or state into a row's parts. The chart tooltip writes each point into the
118
+ same title and rows, a pie or funnel keeps a slice per row key, and a radar keeps each series' shape, hidden
119
+ series kept aside.
120
+ `Calendar` builds its grid once per view: another month, year, value or focus changes the cells' texts and marks.
121
+ `Scheduler` keeps the cells of its day, week, month and timeline grids when `dataCellTemplate` (or a view's own)
122
+ changes: the same cells are filled again by the new template, where the grid was made again before.
123
+ - Every component draws its parts as MotifJS components and listens through them: no part is made, moved or taken
124
+ out by hand, and no listener is added to an element directly. Listeners go with their component when it is
125
+ disposed, so none stays behind; the window and the document are listened to in one place. A part hidden by a
126
+ component stays its child and is disposed with it.
127
+ - Warnings about a setting that cannot work (no exporter for a format, a data source that does not load everything, a
128
+ shortcut that takes keys already taken, an unknown time zone) go through core's `errorHandler`: shown in development,
129
+ seen by the devtools. An error thrown by an action that nobody listens to goes to `errorHandler.report`.
130
+ - `TabDocumentManager` moves groups between splits, windows and dock areas through the component tree; what scrolled
131
+ inside a moved group keeps its place, and a frame inside it loads again.
132
+ - `TabDocumentManager.focusPart(by)` is now `focusNextPart(by)`.
133
+ - Access keys are the kit's own: Alt and a letter reach only a component that declares the key. An element of the app
134
+ with an `aria-keyshortcuts` of its own no longer takes part, and while Alt is held the kit marks the components that
135
+ show the keys (`data-mx-alt`) instead of `<html>`.
136
+ - Focus, Tab and the keys stop at the kit's windows: `MxForm` and the panels over the page (`Drawer`, `BottomSheet`,
137
+ `ActionSheet`, `AppMenu`). An app's own `<dialog>` is no window to the kit.
138
+ - What depends on the size of a part (room, overflow, scroll position, which rows are seen) is measured once per
139
+ frame for all that ask and drawn on the next frame, instead of at once. Code that reads the result right after a
140
+ change waits a frame; `DataGrid.measure()` still measures at once. Element calls the kit makes through a
141
+ component's `attr` run a microtask later, with the component's other writes.
142
+ - `ContextMenu`: a component as `target` covers what is inside it.
143
+ - `DataGrid` row drag: the `container` and `boundary` selectors match only components in the page's component tree.
144
+ - The kit no longer writes `data-mx-tabindex`; `tabIndex` is read from the controls.
145
+ - `CellTip` of `DataGrid`: the tip for cut-off text opens a frame after the pointer comes, and only on cells whose
146
+ text the row draws itself, not on content from `cell`. Its error text is the cell's message as the grid holds it.
147
+ - `Gallery` and `MultiView`: motion comes back one frame after a slide without it; a slide asked for meanwhile waits
148
+ its turn instead of jumping.
149
+ - `Scheduler`: selecting by dragging over an appointment selects the cell under it.
150
+ - `TabDocumentManager`: an element of the app in the tab strip's actions area that belongs to no control counts as
151
+ strip space when the tabs measure their room. The tools of the presentation mode and
152
+ `OverlayPanel`'s `data-open` are set on the next frame; `TreeView` scrolls a microtask after the change that asked.
153
+ - Breaking for subclasses of `Control` and `Field`: `focusElement` is now `focusPart`, a component (public, `null` for
154
+ a control that takes no focus). `Field.createControl()` returns a component, and `area(name)` gives one. A `Field`
155
+ whose control is a native field says so with `controlTag` (`'input'`, `'textarea'`, `'button'`); without it the
156
+ label gets no `for` and the control no `readonly`.
157
+ - The kit's language (`uiLocale`) starts with the browser's language (`navigator.language`), English without one; the
158
+ page's `<html lang>` is no longer read. The app gives its own with `connectI18n(i18n)` or `uiLocale.use(locale)`.
159
+ - `Scheduler.print()` and `LoadPanel` over the page mark the app's root in their window (the `run()` host, an app
160
+ window's host, or the body when no app runs) instead of `<html>` and `<body>`: `data-mx-print-one` while printing
161
+ one scheduler, `aria-busy` while the panel shows. The print styles read the mark there; the rest of the page is
162
+ left off the paper where the browser has `:has()`.
163
+ - `DataGrid` drag selection: the rows cancel their own `selectstart` and are not selectable (`data-drag-select`,
164
+ `user-select: none`) from the press until it ends; a text selection made before elsewhere in the page is kept.
165
+ - `DataGrid` copy goes through the clipboard API where the window has it (a secure page): text and HTML table where
166
+ the browser takes a `ClipboardItem`, else the text. Elsewhere, or when the API refuses, through the copy command,
167
+ from a hidden text area placed for a moment in the app's layer; focus comes back where it was.
168
+ - Media queries (pointer, reduced motion, installed app) and the visual viewport (`BottomSheet` over the on-screen
169
+ keyboard) are asked of the window the component is in; a window without `matchMedia` or `visualViewport` counts
170
+ as no match and as the whole window.
171
+ - `DataGrid` column fit (`autoSize`, `autoSizeColumns`, a double click on the resize handle), `Gauge`, `BarGauge`
172
+ and `Chart` measure their texts in hidden probes in their own font, with the window's next reads. A column fit
173
+ settles one round later in the same frame; gauge and chart labels are drawn first at an estimate and settle a frame
174
+ later at the measured widths. Header or cell content of your own is fitted to the parts it holds.
175
+ - Fonts that finish loading in any window of the page count as a change of the look: everything that measured with
176
+ the look (sizes, rows, text widths) measures again, not only `Gauge`, `BarGauge` and `Chart`.
177
+ - `DataGrid` filter row: a character typed on a filter cell starts the box's text the way typing does
178
+ (`typeText`); a number filter takes only what a number is written with.
179
+ - `TabDocumentManager`: a new window takes the token values the manager has where its own differ, set on the
180
+ manager or on a part around it, instead of only the custom properties written on the manager's element.
181
+
182
+ ### Added
183
+
184
+ - `TextBox.typeText(text)`, `NumberBox.typeText(text)` and `ComboBox.typeText(text)`: put a text in the field as if
185
+ the user typed it. `DataGrid`'s cell editor starts a typed edit with it.
186
+ - `addShortcut(keys, handler, { within })`: limits a shortcut to parts of its `scope`, such as the tabs of a strip or
187
+ the splitters: a component, a list of components, or a function that returns them. Shortcuts of different parts may
188
+ share keys and are not reported as conflicts.
189
+ - `Control.isWindow`: whether a control is a window of its own (`MxForm`, the panels over the page); focus, Tab and
190
+ the keys stop at it.
191
+ - `Control.focusPart`: the part that takes focus, as a component (the main part of a `Button` with a menu).
192
+ - Parts as components: `AccordionItem.headerPart` and `regionPart`, `TextBox.inputPart`, `DateBox.inputPart`,
193
+ `AvatarGroup.members`; `ContextMenu.open()` and `ScrollView.scrollToElement()` take components.
194
+ - `contentPart` on `Drawer`, `BottomSheet`, `ActionSheet` and `AppMenu`: the content area as a component, for code
195
+ that places components itself.
196
+ - More parts as components: `inputPart` on `CheckBox`, `Switch`, `ColorBox`, `ComboBox`, `NumberBox`, `TagBox`,
197
+ `DateRangeBox` (with `endInputPart`) and `OtpInput`; `TextArea.textAreaPart`, `ContextMenu.targetPart`,
198
+ `DataGrid.getRowPart()` and `getCellPart()`, `treePart` on `FilterBuilder` and `TreeView`, `MxForm.contentPart`,
199
+ `panelPart` on the panels over the page, `GroupBox.legendPart`, `SplitContainer.splitterPart`,
200
+ `RadioGroup.listPart` and `Signature.padPart`; `Tab.headerPart` is public.
201
+ - `RadioGroup.inputParts` and `Slider.thumbParts`: the radios and the thumbs as components. `Sortable.itemParts()`
202
+ is documented: the components of the items, in order. `ValidationTarget.part`: the component that stands for a
203
+ target (a field is its own).
204
+
205
+ ### Removed
206
+
207
+ Breaking: the members that took or gave elements are gone; each has a component form.
208
+
209
+ - `Popup.open(element)` and an element as `PopupOpenOptions.toggle` or `returnFocus`. Give components:
210
+ `open(anchorPart, { toggle, returnFocus })`.
211
+ - `ContextMenu.open(element, element)`. Give components: `open(atPart, targetPart)`, or a point.
212
+ - `placePopup(popup, element, …)`. `placePopup` now takes the popup and the anchor as components.
213
+ - `DragGhost.copyOf(element)` and the element forms of `DragGhost`: an element as the place (`root`, and the
214
+ constructor's fourth argument), as `show` source, as `showAt` content or root, and as `copyPart` source. Give
215
+ components: `copyPart(part)`, `show(part, …)`, `showAt(part, …)`.
216
+ - `ResizeWatch`, with no replacement: no component used it. An app that needs it uses a `ResizeObserver` of the
217
+ element's own window.
218
+ - `AccordionItem.headerElement` and `regionElement`: use `headerPart` and `regionPart`.
219
+ - `TextBox.inputElement` and `DateBox.inputElement`: use `inputPart`.
220
+ - `AvatarGroup.avatars`: use `members`, the avatars themselves.
221
+ - `ScrollView.scrollToElement(element)`: give the component.
222
+ - `inputElement` on `CheckBox`, `Switch`, `ColorBox`, `ComboBox`, `NumberBox`, `TagBox` and `DateRangeBox`, and
223
+ `DateRangeBox.endInputElement`: use `inputPart` and `endInputPart`. `OtpInput.input`: use `inputPart`.
224
+ - `TextArea.textAreaElement`: use `textAreaPart`.
225
+ - `Tab.headerElement`: use `headerPart`.
226
+ - `ContextMenu.targetElement`: use `targetPart`, the component the menu opened on. `ContextMenu.target` (the prop and
227
+ the property) and `attachContextMenu` take a component only, and `target` reads back the component; wrap an
228
+ element of your own once in `new Component(element)`.
229
+ - `target` (the element) in `ContextMenu`'s `onOpening` and in the items function of `attachContextMenu`: use `part`,
230
+ the component the menu opens for, the same as `targetPart`.
231
+ - `DataGrid.getRowElement()` and `getCellElement()`: use `getRowPart()` and `getCellPart()`.
232
+ - `element` in the `DataGrid` events `onCellClick`, `onCellDblClick`, `onRowClick`, `onRowDblClick`, `onCellPrepared`,
233
+ `onRowPrepared` and `onEditorPrepared`, and in `getVisibleRows()`: use `part`. `itemElement` in the row drag
234
+ events and in `dragTemplate`: use `itemPart`.
235
+ - `target` in `RibbonMenu`'s `onAppButtonClick` and `onGroupMore`: use `part`.
236
+ - `Draggable.handleElement`: use `handlePart` (`null` when the draggable itself is the handle).
237
+ - `FilterBuilder.treeElement` and `TreeView.treeElement`: use `treePart`.
238
+ - `MxForm.contentElement`, and `panelElement` and `contentElement` on `Drawer`, `BottomSheet`, `ActionSheet` and
239
+ `AppMenu`: use `contentPart` and `panelPart`.
240
+ - `GroupBox.legendElement`: use `legendPart`. `SplitContainer.splitterElement`: use `splitterPart`.
241
+ - `RadioGroup.listElement`: use `listPart`. `Signature.padElement`: use `padPart`.
242
+ - `Resizable.gripElement`: use `grip`. `SpeedDial.mainElement`: use `main`.
243
+ - `element` on `TabWindow`, `TabDockArea` and `TabBrowserWindow`: use `part`.
244
+ - The element passed to the `changed` and `left` handlers of `ChildSettings`: they get the child only.
245
+ - `OverlayPanel.overElement` (protected): use `overPart()`, the container or the root of the app in its window.
246
+ - An element as a place or a target: `scrollTarget` of `AppBar` and `BottomNavigation`, `Draggable.boundary`,
247
+ `Resizable.area`, `Drawer.pushTarget`, `MxForm.minimizeTarget`, `MenuBar.mergeScope`, `container` of the panels
248
+ over the page (`OverlayContainer`), `LoadPanel.target` (`LoadPanelTarget`), `target` of `Tooltip` and `Popover`
249
+ and `addTooltip` (`TooltipTarget`), `DataGrid`'s `rowDragging.boundary` and `container`, `Spinner.cover(target)`,
250
+ `Scheduler.showTooltip(appointment, anchor)` and `new InputMask(input)`. Give the component; the property reads it
251
+ back. The `rowDragging` selectors stay, matched in the component tree.
252
+ - The element given to item templates: `itemTemplate` of `ListBox`, `TagBox`, `TreeView`, `ComboBox` and `DropDown`,
253
+ `DropDown.fieldTemplate` and `TagBox.tagTemplate` get `(item, host)`, `host` the component the item goes in; put
254
+ content in it with `controls.add`, or its text with `setText`. The third argument of `ItemTemplate` and
255
+ `TreeViewItemTemplate` is gone: it was the same place.
256
+ - An element returned as content: from `cell`, `groupCell`, `headerCell`, a band's `headerCell`, the detail `template`
257
+ and a toolbar item's `content` of `DataGrid`, from `rowDragging.dragTemplate`, and from a chart's `tooltip.format`.
258
+ Return a component or a text.
259
+ - An element as an icon: `IconSource` is an image address or a component (`icon`, `logo`, `media`, `activeIcon` and
260
+ the icons of menu, toolbar, ribbon, gallery and grid items). Where an icon is shown a second time (the "more" menu
261
+ of `Toolbar` and `RibbonMenu`, a ribbon gallery's row and grid), give a component as a function
262
+ (`icon={() => <svg …/>}`): each copy calls it again. The menus no longer copy an icon's element; a component given
263
+ as is stays where it is, and the copy has none.
264
+ - `ValidationTarget.element`: give `part`, a component. `ValidationSummary` names a target with no `label` by its
265
+ part's `aria-label`.
266
+ - `RadioGroup.inputs`: use `inputParts`. `Slider.thumbElements`: use `thumbParts`. `Sortable.elements`: use
267
+ `itemParts()`.
268
+
269
+ ## [0.1.0-beta.8] - 2026-11-08
270
+
271
+ ### New components
272
+
273
+ - `AppMenu`: the main menu of an application. A list of items slides in from the start edge, and each item shows its
274
+ own page beside the list (`page`, made the first time it is shown and kept), runs a command (`click`) or opens a
275
+ link (`href`). Half the window on a wide screen (`app-menu.share`), the whole window on a narrow one, and when the
276
+ panel is too narrow for both, the list and the page take turns, with the back button where the close button stands.
277
+ Items with `group`, `bottom`, `badge`, `dot`, `enabled`, `visible` and access keys; `selected`, `onSelecting` may
278
+ refuse, `onSelectionChanged`, `onItemClick`; `select()`, `openAt()`, `pageOf()`. The app's own content above and
279
+ under the items (`listHeader`, `listFooter`) and a search over them (`searchEnabled`, `searchText`,
280
+ `onSearchTextChanged`). Items change by key (`addItem`, `removeItem`, `moveItem`, `updateItem`, `findItem`,
281
+ `beginUpdate`, `endUpdate`) without changing the list given; `onItemsChanged` reports the new list. Every item,
282
+ page and command comes from the app.
283
+ - `RibbonMenu`: the commands of an application in tabs of named groups. Large, medium and small commands of every
284
+ kind: buttons, toggles, split buttons, menus, rows of small commands, galleries and the app's own content. When
285
+ room runs short, groups give way step by step and fold into a button that opens them, then the commands scroll
286
+ (`adaptive`). A classic and a simplified layout (`layout`, `layoutSwitch`), and a compact one with a tab picker on a
287
+ narrow screen. `display` shows the commands always, only the tabs, or hides the menu behind a strip. Key hints
288
+ (`keyHints`) reach every tab and command, also inside a folded group. Quick commands (`quickCommands`, `quickBar`),
289
+ an app button (`appButton`, `onAppButton`) and the app's own content at both ends of the row of tabs (`barStart`,
290
+ `barEnd`). Users hide, move and add commands from the context menu (`customizable`), kept as one object
291
+ (`customization`, `onCustomized`). Tabs, groups and commands change by path (`addTab`, `addGroup`, `addCommand`,
292
+ `remove`, `move`, `update`, `find*`, `beginUpdate`, `endUpdate`), and `onItemsChanged` reports the new tabs.
293
+
294
+ ### Added
295
+
296
+ - `DataGrid`: a column's `filterEditor` replaces the filter row's editor of its type: a `Field` is bound to the filter
297
+ both ways, any other component writes it through `FilterEditorContext` (`setValue`, `clear`, `onChanged`,
298
+ `operator`).
299
+ - `DataGrid`: a list column whose `options` is a function is read everywhere outside a row too: the cell text, the
300
+ filter row, the search panel, the filter builder and pasted text. The function is called once with `row` `null`,
301
+ its answer is kept until `refresh()`, and the filter row's list says it is loading until it arrives.
302
+
303
+ ### Changed
304
+
305
+ - `GridColumn.options` as a function takes `row: T | null`. TypeScript code that reads a field of the row directly
306
+ must handle `null`, when the function is called outside a row and returns every choice.
307
+ - Lookup texts asked in batches (`lookup.resolve: 'batch'`) go `parallelRequests` batches at a time (6 by default)
308
+ instead of one after another: a list of a few hundred keys is ready in about a second instead of several.
309
+
310
+ ### Fixed
311
+
312
+ - `DataGrid`: the first frame lays out the columns; the cells of a row no longer pile up in the top-left corner and
313
+ then jump into place.
314
+ - `DropDown`: a list from a data source says it is loading while its rows arrive, instead of saying there are no
315
+ items. This covers the filter row of `DataGrid` and lookup editors.
316
+ - `TabDocumentManager`: a press on text or empty space in a panel makes its group the active one, as a press on its
317
+ tab does.
318
+
319
+ ## [0.1.0-beta.7] - 2026-11-08
320
+
321
+ ### Fixed
322
+
323
+ - Lookup texts are asked 20 keys at a time instead of 100 (`lookup.batchSize`), so a request that carries the keys in
324
+ its URL stays within common server limits.
325
+ - A row of a list that failed to load, and a whole list that failed, say that they could not load and load again when
326
+ pressed or with Enter, instead of staying on Loading or showing an empty list. This covers `DropDown`, `ComboBox`,
327
+ `ListBox`, `TagBox` and the header filter of `DataGrid`.
328
+ - `DataGrid`: searching the header filter of a lookup column whose `textFrom` is a field searches that field on the
329
+ server, instead of turning the matching texts into a long list of keys.
330
+ - `DataGrid`: a lookup column grouped by its own field (`calculateGroupValue` naming it, with `textFrom`) shows the text
331
+ of the key in its group rows and in an export, not the key.
332
+
9
333
  ## [0.1.0-beta.6] - 2026-11-07
10
334
 
11
335
  ### New components
@@ -74,6 +74,8 @@ export declare class Accordion extends Control<HTMLDivElement, AccordionProps> {
74
74
  protected applyProperty(name: string, value: unknown): void;
75
75
  /** @internal The user pressed an item's header. */
76
76
  itemClicked(item: AccordionItem, event?: Event): void;
77
+ /** @internal A key pressed on an item's header. */
78
+ headerKeyDown(item: AccordionItem, e: KeyboardEvent): void;
77
79
  /** @internal An item opened or closed. */
78
80
  itemToggled(item: AccordionItem): void;
79
81
  /** @internal An item's visibility, `enabled` or `key` changed. */
@@ -92,6 +94,7 @@ export declare class Accordion extends Control<HTMLDivElement, AccordionProps> {
92
94
  private applyValue;
93
95
  /** Keeps the `value` storage in step, without dropping a bound getter. */
94
96
  private syncValue;
97
+ /** Up, Down, Home and End on a header move between the headers. */
95
98
  private onKeyDown;
96
99
  private get parts();
97
100
  private renderLook;
@@ -1,4 +1,4 @@
1
- import { type Bind, type IBaseProp } from '@motifx/core';
1
+ import { type Bind, type Component, type ComponentBase, type IBaseProp } from '@motifx/core';
2
2
  import { Control } from '../../core/control';
3
3
  import type { IconSource } from '../../core/icon-source';
4
4
  import type { Accordion } from './Accordion';
@@ -36,16 +36,16 @@ export declare class AccordionItem extends Control<HTMLDivElement, AccordionItem
36
36
  get owner(): Accordion | null;
37
37
  /** Indicates whether the section content has been created (see `lazy`). */
38
38
  get contentBuilt(): boolean;
39
- /** The header button. */
40
- get headerElement(): HTMLButtonElement;
41
- /** The region the header opens. */
42
- get regionElement(): HTMLDivElement;
39
+ /** The header button, as a component. */
40
+ get headerPart(): Component<HTMLButtonElement>;
41
+ /** The region the header opens, as a component. */
42
+ get regionPart(): Component<HTMLDivElement>;
43
43
  /** Opens the section as a click would, so `onExpanding` can cancel it. */
44
44
  expand(): boolean;
45
45
  /** Closes the section as a click would, so `onCollapsing` can cancel it. */
46
46
  collapse(): boolean;
47
- protected get focusElement(): HTMLElement;
48
- /** The access key moves focus to the header and clicks it. */
47
+ get focusPart(): ComponentBase;
48
+ /** The access key moves focus to the header and opens or closes the section, as a click does. */
49
49
  onAccessKey(): boolean;
50
50
  protected applyProperty(name: string, value: unknown): void;
51
51
  /** @internal Joins or leaves an `Accordion`. */
@@ -60,6 +60,8 @@ export declare class AccordionItem extends Control<HTMLDivElement, AccordionItem
60
60
  private lazyNow;
61
61
  private keepAliveNow;
62
62
  private renderExpanded;
63
+ private readonly readClosing;
64
+ private readonly dropContent;
63
65
  private renderIcon;
64
66
  private get parts();
65
67
  private createParts;
@@ -38,9 +38,13 @@ export declare class AppBar extends Control<HTMLElement, AppBarProps> {
38
38
  navigationButton: Button | null;
39
39
  logoPart: ComponentBase | null;
40
40
  placed: ComponentBase | null;
41
+ /** What `scrollBehavior` watches when the app gives it (`scrollTarget`). */
42
+ scrollPart: ComponentBase | null;
41
43
  stopScroll: (() => void) | null;
44
+ /** What scrolled at the last look and how far, to tell which way it moved; undefined before the first. */
45
+ lastScroller: ComponentBase | null | undefined;
46
+ lastTop: number;
42
47
  constructor(props?: IBaseProp<AppBarProps>);
43
- onMounted(): void;
44
48
  get title(): string;
45
49
  set title(value: Bind<string>);
46
50
  get subtitle(): string;
@@ -74,8 +78,8 @@ export declare class AppBar extends Control<HTMLElement, AppBarProps> {
74
78
  set position(value: Bind<AppBarPosition>);
75
79
  get scrollBehavior(): AppBarScrollBehavior;
76
80
  set scrollBehavior(value: Bind<AppBarScrollBehavior>);
77
- get scrollTarget(): HTMLElement | null;
78
- set scrollTarget(value: Bind<HTMLElement | null>);
81
+ get scrollTarget(): ComponentBase | null;
82
+ set scrollTarget(value: Bind<ComponentBase | null>);
79
83
  get onNavigationClick(): MotifEvent<AppBarNavigationClickEventArgs>;
80
84
  drawTitles(): void;
81
85
  drawNavigation(): void;
@@ -85,4 +89,6 @@ export declare class AppBar extends Control<HTMLElement, AppBarProps> {
85
89
  placeContent(): void;
86
90
  drawLook(): void;
87
91
  followScroll(): void;
92
+ private readonly readScroll;
93
+ private readonly drawScroll;
88
94
  }
@@ -18,7 +18,7 @@ export interface AppBarProps extends ControlProps {
18
18
  titleAlign?: Bind<AppBarTitleAlign>;
19
19
  /** Makes the title a heading of this level. By default, it is plain text. */
20
20
  headingLevel?: Bind<number | null>;
21
- /** An image, an element or a component before the title. */
21
+ /** An image address or a component before the title. */
22
22
  logo?: Bind<IconSource | null | undefined>;
23
23
  /** The button at the start of the bar. The default is `'none'`. */
24
24
  navigation?: Bind<AppBarNavigation>;
@@ -43,7 +43,7 @@ export interface AppBarProps extends ControlProps {
43
43
  /** The default is `'none'`. */
44
44
  scrollBehavior?: Bind<AppBarScrollBehavior>;
45
45
  /** What `scrollBehavior` watches. By default, the nearest ancestor that scrolls, else the page. */
46
- scrollTarget?: Bind<HTMLElement | null>;
46
+ scrollTarget?: Bind<ComponentBase | null>;
47
47
  /** Occurs when the button at the start of the bar is pressed. */
48
48
  onNavigationClick?: (e: AppBarNavigationClickEventArgs) => void;
49
49
  }
@@ -0,0 +1,204 @@
1
+ import { Component, Emitter, type Bind, type ComponentBase, type Event as MotifEvent, type IBaseProp, type Signal } from "@motifx/core";
2
+ import type { IconSource } from "../../core/icon-source";
3
+ import { OverlayPanel } from "../../parts/overlay/OverlayPanel";
4
+ import { Badge } from "../badge/Badge";
5
+ import { Button } from "../button/Button";
6
+ import { TextBox } from "../textbox/TextBox";
7
+ import type { AppMenuItemsChangedEventArgs } from "./app-menu-items-changed-event-args";
8
+ import type { AppMenuSearchTextChangedEventArgs } from "./app-menu-search-text-changed-event-args";
9
+ import type { AppMenuItem } from "./app-menu-item";
10
+ import type { AppMenuItemClickEventArgs } from "./app-menu-item-click-event-args";
11
+ import type { AppMenuProps } from "./app-menu-props";
12
+ import type { AppMenuSelectingEventArgs } from "./app-menu-selecting-event-args";
13
+ import type { AppMenuSelectionChangedEventArgs } from "./app-menu-selection-changed-event-args";
14
+ type Key = string | number;
15
+ /** What of an item the lists, the lines between the groups, the icon room, the search and the selection depend on. */
16
+ interface Look {
17
+ item: AppMenuItem;
18
+ key: Key;
19
+ /** Has an `href`: made as a link. */
20
+ link: boolean;
21
+ /** Has an icon or a glyph. */
22
+ pictured: boolean;
23
+ enabled: boolean;
24
+ visible: boolean;
25
+ group: string;
26
+ bottom: boolean;
27
+ page: boolean;
28
+ text: string;
29
+ hint: string;
30
+ }
31
+ interface ItemPart {
32
+ /** The item the part shows: its own fields are followed from it. */
33
+ item: Signal<AppMenuItem>;
34
+ key: Key;
35
+ bottom: boolean;
36
+ /** Made as a link (`a`), else as a button. */
37
+ link: boolean;
38
+ separator: Component<HTMLDivElement>;
39
+ host: Component<HTMLElement>;
40
+ iconHost: Component<HTMLSpanElement>;
41
+ glyph: Component<HTMLSpanElement>;
42
+ icon: ComponentBase | null;
43
+ iconSource: IconSource | null;
44
+ label: Component<HTMLSpanElement>;
45
+ badge: Badge | null;
46
+ accessKey: string | null;
47
+ }
48
+ interface View {
49
+ item: AppMenuItem;
50
+ host: Component<HTMLDivElement>;
51
+ }
52
+ /** The room of the menu and its layout's lengths, as read. */
53
+ interface Room {
54
+ width: number;
55
+ share: number;
56
+ least: number;
57
+ split: number;
58
+ }
59
+ /**
60
+ * The main menu of an application: a list of items at the side and, beside it, the page of the item chosen. On a wide
61
+ * screen it is a panel over half of the window, from the start edge; on a narrow one it takes the whole window. When
62
+ * the panel is too narrow for both, the list and the page take turns: a page item opens its page in place of the list,
63
+ * and the back button or Escape returns to it.
64
+ *
65
+ * Nothing is in it until it is given: every item comes from `items`, and every page from an item's `page`. An item
66
+ * without a page is a command (`click`, `onItemClick`) or a link (`href`), and closes the menu unless it says otherwise.
67
+ * It is a dialog: modal, closed by Escape, a click outside and the browser's back action; focus goes to the chosen item
68
+ * when it opens and comes back when it closes. In the list the arrow keys, Home and End move, Enter chooses, and a
69
+ * letter goes to the item it starts, or chooses the item whose access key it is.
70
+ *
71
+ * @example
72
+ * <AppMenu label="File" x-model={() => this.menuOpen} items={[
73
+ * { key: 'home', text: '&Home', glyph: 'home', page: () => new HomePage() },
74
+ * { key: 'save', text: '&Save', glyph: 'save', click: () => this.save() },
75
+ * { key: 'options', text: 'O&ptions', glyph: 'settings', bottom: true, page: () => new OptionsPage() },
76
+ * ]} />
77
+ */
78
+ export declare class AppMenu extends OverlayPanel<AppMenuProps> {
79
+ static overlayClass: string;
80
+ selecting: Emitter<AppMenuSelectingEventArgs>;
81
+ selectionChanged: Emitter<AppMenuSelectionChangedEventArgs>;
82
+ itemClick: Emitter<AppMenuItemClickEventArgs>;
83
+ itemsChanged: Emitter<AppMenuItemsChangedEventArgs>;
84
+ searchTextChanged: Emitter<AppMenuSearchTextChangedEventArgs>;
85
+ headerHost: Component<HTMLDivElement>;
86
+ footerHost: Component<HTMLDivElement>;
87
+ searchHost: Component<HTMLDivElement>;
88
+ search: TextBox | null;
89
+ noMatch: Component<HTMLDivElement>;
90
+ headerControl: ComponentBase | null;
91
+ footerControl: ComponentBase | null;
92
+ batch: number;
93
+ pending: AppMenuItem[] | null;
94
+ nav: Component<HTMLElement>;
95
+ closer: Button;
96
+ topList: Component<HTMLDivElement>;
97
+ bottomList: Component<HTMLDivElement>;
98
+ pageArea: Component<HTMLDivElement>;
99
+ pageHead: Component<HTMLDivElement>;
100
+ backer: Button;
101
+ entries: ItemPart[];
102
+ slots: Map<string, ItemPart>;
103
+ drawn: {
104
+ count: number;
105
+ };
106
+ looks: Look[];
107
+ views: Map<Key, View>;
108
+ stopItems: (() => void) | null;
109
+ showing: boolean;
110
+ stacked: boolean;
111
+ turnedTo: 'list' | 'page';
112
+ listStop: number;
113
+ typed: string;
114
+ typedAt: number;
115
+ constructor(props?: IBaseProp<AppMenuProps>);
116
+ get items(): readonly AppMenuItem[];
117
+ set items(value: Bind<readonly AppMenuItem[]>);
118
+ get selected(): Key | null;
119
+ set selected(value: Bind<Key | null>);
120
+ get closeOnCommand(): boolean;
121
+ set closeOnCommand(value: Bind<boolean>);
122
+ get listHeader(): ComponentBase | null;
123
+ set listHeader(value: Bind<ComponentBase | null>);
124
+ get listFooter(): ComponentBase | null;
125
+ set listFooter(value: Bind<ComponentBase | null>);
126
+ get searchEnabled(): boolean;
127
+ set searchEnabled(value: Bind<boolean>);
128
+ get searchText(): string;
129
+ set searchText(value: Bind<string>);
130
+ get onSearchTextChanged(): MotifEvent<AppMenuSearchTextChangedEventArgs>;
131
+ get onItemsChanged(): MotifEvent<AppMenuItemsChangedEventArgs>;
132
+ get onSelecting(): MotifEvent<AppMenuSelectingEventArgs>;
133
+ get onSelectionChanged(): MotifEvent<AppMenuSelectionChangedEventArgs>;
134
+ get onItemClick(): MotifEvent<AppMenuItemClickEventArgs>;
135
+ /** The key of the page shown: `selected`, else the first page item that can be chosen. */
136
+ get shownKey(): Key | null;
137
+ /** The page of an item, once it has been shown. */
138
+ pageOf(key: Key): ComponentBase | null;
139
+ /** Shows the page of the item with `key`, as a click on it does. Returns `false` when `onSelecting` refused. */
140
+ select(key: Key): boolean;
141
+ /** The item with `key`, as it is now. */
142
+ findItem(key: Key): AppMenuItem | null;
143
+ /** Adds an item at `index`, the end by default. */
144
+ addItem(item: AppMenuItem, index?: number): boolean;
145
+ /** Removes the item with `key`. Returns `false` when there is none. */
146
+ removeItem(key: Key): boolean;
147
+ /** Moves the item with `key` to `index`. */
148
+ moveItem(key: Key, index: number): boolean;
149
+ /** Changes fields of the item with `key`; the others stay as they are. */
150
+ updateItem(key: Key, changes: Partial<AppMenuItem>): boolean;
151
+ /** Holds the changes by key until `endUpdate()`, which applies them at once. */
152
+ beginUpdate(): void;
153
+ endUpdate(): void;
154
+ changeItems(change: (list: readonly AppMenuItem[]) => AppMenuItem[] | null): boolean;
155
+ applyItems(next: AppMenuItem[]): void;
156
+ indexOfKey(list: readonly AppMenuItem[], key: Key): number;
157
+ /** Opens the menu on the page of the item with `key`. */
158
+ openAt(key: Key): boolean;
159
+ protected placePanel(): void;
160
+ protected panelClosed(): void;
161
+ renderItems(): void;
162
+ lookOf(item: AppMenuItem, index: number, searching: boolean): Look;
163
+ /** Whether an item closes the menu when it is pressed, when it says so. */
164
+ closesOf(look: Look): boolean | null;
165
+ /** An item's text as it is now. */
166
+ textOf(look: Look): string;
167
+ drawItems(): void;
168
+ makeItem(look: Look): ItemPart;
169
+ drawIcon(p: ItemPart, icon: IconSource | null, name: string): void;
170
+ drawBadge(p: ItemPart, dot: boolean, badge: number | null): void;
171
+ dropViews(): void;
172
+ drawSelection(): void;
173
+ showView(key: Key): void;
174
+ /** The items Tab and the arrows reach, in the order they stand: the list at the top, then the one at the bottom. */
175
+ stops(): number[];
176
+ query(): string;
177
+ shows(look: Look): boolean;
178
+ drawSearch(): void;
179
+ searchKeyDown(e: KeyboardEvent): void;
180
+ searchBy(text: string): void;
181
+ placeSlot(side: 'header' | 'footer'): void;
182
+ drawNames(): void;
183
+ askLayout(): void;
184
+ readonly readRoom: () => Room;
185
+ readonly layout: ({ width: room, share, least, split }: Room) => void;
186
+ pageShownAlone(): boolean;
187
+ showPage(): void;
188
+ showList(): void;
189
+ turn(view: 'list' | 'page'): void;
190
+ readonly readAnimation: () => string;
191
+ readonly endStillTurn: (animation: string) => void;
192
+ /** The item an event came from, -1 for none. */
193
+ indexOfEvent(e: Event): number;
194
+ navClick(e: MouseEvent): void;
195
+ press(look: Look, e: Event): void;
196
+ /** Shows the page of `look` unless `onSelecting` refuses. Returns `false` when it was refused. */
197
+ choose(look: Look, originalEvent: Event | null): boolean;
198
+ navKeyDown(e: KeyboardEvent): void;
199
+ byLetter(e: KeyboardEvent, stops: number[], at: number): number;
200
+ /** Moves focus to an item and clicks it: its access key, or its letter in the list. */
201
+ pressItem(p: ItemPart): boolean;
202
+ moveTo(index: number): void;
203
+ }
204
+ export {};