@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
@@ -1,11 +1,11 @@
1
1
  import type { TooltipProps } from './tooltip-props';
2
2
  import type { TooltipTarget } from './tooltip-target';
3
3
  /**
4
- * Adds a tooltip to `target`, created on first use, so it is efficient for many elements.
5
- * Returns a function that removes it. For a component, it is removed along with the component.
4
+ * Adds a tooltip to the component `target`, created on first use, so it is efficient for many components.
5
+ * Returns a function that removes it. It is also removed along with the component.
6
6
  *
7
7
  * @example
8
8
  * for (const cell of row.cells) addTooltip(cell, cell.title);
9
9
  * const remove = addTooltip(this.help, { text: 'Opens the guide', placement: 'end' });
10
10
  */
11
- export declare function addTooltip(target: TooltipTarget, options: string | Omit<TooltipProps, 'target'>): () => void;
11
+ export declare function addTooltip(anchor: TooltipTarget, options: string | Omit<TooltipProps, 'target'>): () => void;
@@ -1,12 +1,14 @@
1
+ import type { ComponentBase } from '@motifx/core';
1
2
  import type { Tooltip } from './Tooltip';
2
3
  type Source = Tooltip | (() => Tooltip);
3
4
  type Cause = 'pointer' | 'focus' | 'code';
4
5
  export declare const tooltipTiming: {
5
6
  skipDelay: number;
6
7
  };
7
- export declare function linkTooltip(element: Element, source: Source): void;
8
- export declare function unlinkTooltip(element: Element, source: Source): void;
8
+ /** Links a target to its tooltip, or to a function that makes it on first use. */
9
+ export declare function linkTooltip(anchor: ComponentBase, source: Source): void;
10
+ export declare function unlinkTooltip(anchor: ComponentBase, source: Source): void;
9
11
  export declare function isTooltipShown(tooltip: Tooltip): boolean;
10
- export declare function showTooltip(tooltip: Tooltip, anchor: Element, cause: Cause, described?: Element): void;
12
+ export declare function showTooltip(tooltip: Tooltip, anchor: ComponentBase, cause: Cause, described?: ComponentBase): void;
11
13
  export declare function hideTooltip(tooltip: Tooltip): void;
12
14
  export {};
@@ -8,7 +8,7 @@ import type { TooltipTarget } from './tooltip-target';
8
8
  * is also a settable, reactive property.
9
9
  */
10
10
  export interface TooltipProps extends ControlProps {
11
- /** The element or component it describes. */
11
+ /** The component it describes. */
12
12
  target?: Bind<TooltipTarget | null | undefined>;
13
13
  /** Any content after `text`. Do not include interactive content, because a tooltip never takes focus. */
14
14
  content?: Bind<ComponentBase | null | undefined>;
@@ -1,3 +1,3 @@
1
1
  import type { ComponentBase } from '@motifx/core';
2
- /** The element a tooltip describes: an element, or a component (its element). */
3
- export type TooltipTarget = Element | ComponentBase;
2
+ /** The component a tooltip describes. */
3
+ export type TooltipTarget = ComponentBase;
@@ -1,4 +1,4 @@
1
- import { type Bind, type Event as MotifEvent, type IBaseProp } from '@motifx/core';
1
+ import { Component, type Bind, type ComponentBase, type Event as MotifEvent, type IBaseProp } from '@motifx/core';
2
2
  import { Control } from '../../core/control';
3
3
  import type { ControlSize } from '../../core/control-size';
4
4
  import type { ItemField } from '../../parts/list/item-field';
@@ -84,8 +84,8 @@ export declare class TreeView<T = unknown> extends Control<HTMLDivElement, TreeV
84
84
  set label(value: Bind<string>);
85
85
  get virtualFrom(): number;
86
86
  set virtualFrom(value: Bind<number>);
87
- /** The element with `role="tree"`. */
88
- get treeElement(): HTMLDivElement;
87
+ /** The part with `role="tree"`. */
88
+ get treePart(): Component<HTMLDivElement>;
89
89
  /** Occurs before a branch expands. Set `e.cancel = true` to keep it collapsed. */
90
90
  get onExpanding(): MotifEvent<TreeViewExpandingEventArgs<T>>;
91
91
  /** Occurs before a branch collapses. Set `e.cancel = true` to keep it expanded. */
@@ -132,7 +132,7 @@ export declare class TreeView<T = unknown> extends Control<HTMLDivElement, TreeV
132
132
  /** Reloads a row's children, or all loaded children when no key is given, and re-reads the items. */
133
133
  reload(key?: unknown): void;
134
134
  /** Focuses the row Tab reaches. */
135
- protected get focusElement(): HTMLElement;
135
+ get focusPart(): ComponentBase;
136
136
  protected applyProperty(name: string, value: unknown): void;
137
137
  private get parts();
138
138
  private fields;
@@ -184,16 +184,38 @@ export declare class TreeView<T = unknown> extends Control<HTMLDivElement, TreeV
184
184
  private redraw;
185
185
  private computeRows;
186
186
  private get windowFrom();
187
+ /** Draws the rows: a row whose key and look stay is kept, its text and states written in place. */
187
188
  private drawAll;
188
- /** Builds the rows from `from` on that sit at `level`, their open children nested in groups. */
189
+ /**
190
+ * Builds the rows from `from` on that sit at `level`, their open children nested in groups. With `old`, the rows
191
+ * drawn before: where `keep` says the host stayed, a row kept for its key stays in place, its group with it.
192
+ */
189
193
  private buildBranch;
190
- /** A row opened or closed: only its children are drawn again. */
194
+ /** Takes the rows drawn so far out of the tree's keeping, by key: `keepRow` gives those that stay back. */
195
+ private takeRows;
196
+ /** The row drawn before for `row`'s key, kept for its new node when what it was drawn with stays; null otherwise. */
197
+ private keepRow;
198
+ /** Lets go of the rows drawn before that were not kept. */
199
+ private dropRows;
200
+ private addGroup;
201
+ /**
202
+ * The rows inside `group`, taken out of `rows`, or without it out of the tree's keeping: `keepRow` gives back those
203
+ * that stay.
204
+ */
205
+ private takeWithin;
206
+ /** A group opens again: the rows hidden with it join `rows` for keeping, and it shows. */
207
+ private openGroup;
208
+ /** A row closes: its group hides with its rows in it, kept for when it opens again; a row left without children lets them go. */
209
+ private closeGroup;
210
+ /** A row opened or closed: its group is built on the first open, then shown and hidden; its rows kept by key. */
191
211
  private drawBranch;
192
212
  /** In a long tree: the rows in view (and the one Tab reaches), two empty blocks for the rest. */
193
213
  private drawWindow;
194
214
  private space;
195
215
  private measure;
196
- private itemElement;
216
+ private itemPart;
217
+ /** The parts of a row, not kept by the tree yet; what takes its icon and template away again goes to `releases`. */
218
+ private rowParts;
197
219
  /** A row's states: level and place, open, selected, checked, enabled, loading. */
198
220
  private renderItem;
199
221
  private renderError;
@@ -205,13 +227,16 @@ export declare class TreeView<T = unknown> extends Control<HTMLDivElement, TreeV
205
227
  private renderRoving;
206
228
  private renderLook;
207
229
  private renderSearch;
208
- /** The search box sits above the rows; building the tree places its controls again, so it is put back. */
209
- private placeSearch;
230
+ /** Lets go of the row drawn for `node`: what its icon and template hold is released, and the tree keeps it no longer. */
210
231
  private forget;
211
232
  private releaseAll;
212
233
  private scrollToRow;
213
234
  private focusRow;
214
235
  private listen;
236
+ /** The scrolled rows are drawn once a frame, however many scroll events came. */
237
+ private readScroll;
238
+ private writeScroll;
239
+ /** The node of the drawn row an event came from: the innermost one, as a row holds the rows of its open children. */
215
240
  private nodeOf;
216
241
  private clicked;
217
242
  private doubleClicked;
@@ -0,0 +1,13 @@
1
+ import type { Component } from '@motifx/core';
2
+ /** The parts of a drawn row: the item, its line with the expander and check box, the group of its open children and its load error. */
3
+ export interface TreeRowParts {
4
+ item: Component<HTMLDivElement>;
5
+ line: Component<HTMLDivElement>;
6
+ expander: Component<HTMLSpanElement>;
7
+ /** Drawn while check boxes show. */
8
+ check: Component<HTMLSpanElement> | null;
9
+ group: Component<HTMLDivElement> | null;
10
+ error: Component<HTMLSpanElement> | null;
11
+ /** The load error's retry button. */
12
+ retry: Component<HTMLButtonElement> | null;
13
+ }
@@ -1,2 +1,7 @@
1
- /** Draws the content of a row into `host`. It can return a cleanup function. */
2
- export type TreeViewItemTemplate<T> = (item: T, host: HTMLElement) => (() => void) | void;
1
+ import type { ComponentBase } from '@motifx/core';
2
+ /**
3
+ * Draws the content of a row instead of its text. It can return a cleanup function.
4
+ *
5
+ * @param host The place the content goes in: add your components to its `controls`, or give it a text.
6
+ */
7
+ export type TreeViewItemTemplate<T> = (item: T, host: ComponentBase<HTMLElement>) => (() => void) | void;
@@ -32,7 +32,7 @@ export interface TreeViewProps<T> extends ControlProps {
32
32
  * the list flat.
33
33
  */
34
34
  parentField?: Bind<ItemField<T>>;
35
- /** The default is `'icon'`: an image address, an element or a component. */
35
+ /** The default is `'icon'`: an image address or a component, a new one for each row (a function field builds it). */
36
36
  iconField?: Bind<ItemField<T>>;
37
37
  /** The default is `'enabled'`. With `false` in this field, the row cannot be selected or checked. */
38
38
  enabledField?: Bind<ItemField<T>>;
@@ -48,7 +48,7 @@ export declare class ValidationSummary extends Control<HTMLDivElement, Validatio
48
48
  refresh(): void;
49
49
  renderTargets(): void;
50
50
  messageOf(target: ValidationTarget): string;
51
- textOf(target: ValidationTarget): string;
51
+ textOf(row: Row): string;
52
52
  draw(): void;
53
53
  addLine(target: ValidationTarget, index: number): Row;
54
54
  drawHeader(): void;
@@ -0,0 +1,10 @@
1
+ import type { ComponentBase } from '@motifx/core';
2
+ /** A part that answers a key it declares in `aria-keyshortcuts`, as `setAccessKeyAttribute` keeps it. */
3
+ export interface AccessKeyEntry {
4
+ /** The part that carries the key. */
5
+ readonly part: ComponentBase;
6
+ /** The key with its modifiers, as `aria-keyshortcuts` writes it: `Alt+S`, `Control+Alt+S`. */
7
+ readonly token: string;
8
+ /** What pressing it does. Returns whether it did anything. */
9
+ readonly run: () => boolean;
10
+ }
@@ -1,12 +1,7 @@
1
- /** A control text with its access key: `&Dosya` → text `Dosya`, key `D` at index 0. */
2
- export interface ParsedAccessKey {
3
- /** The text without the marker (`&&` becomes `&`). */
4
- text: string;
5
- /** The access key as written (`D`), or `null` when the text has none. */
6
- key: string | null;
7
- /** The index of the access key in `text`, or -1 if there is none. */
8
- index: number;
9
- }
1
+ import { type ComponentBase } from '@motifx/core';
2
+ import type { AccessKeyEntry } from './access-key-entry';
3
+ import type { ParsedAccessKey } from './parsed-access-key';
4
+ export type { ParsedAccessKey } from './parsed-access-key';
10
5
  /**
11
6
  * Parses a control text. The character after a single `&` is the access key
12
7
  * (`&File` → F), and `&&` is a literal ampersand. Only the first marker counts.
@@ -18,7 +13,7 @@ export declare function parseAccessKey(source: string): ParsedAccessKey;
18
13
  * key modifiers are held (or always, with `data-mx-access-keys="always"` on
19
14
  * <html>). The accessible name stays the plain text.
20
15
  */
21
- export declare function renderAccessKey(host: Element, parsed: ParsedAccessKey): void;
16
+ export declare function renderAccessKey(host: ComponentBase, parsed: ParsedAccessKey): void;
22
17
  /**
23
18
  * The modifiers that press an access key on this platform, as written in
24
19
  * `aria-keyshortcuts`: `Alt`, or `Control+Alt` (Control + Option) on Apple
@@ -28,5 +23,22 @@ export declare function renderAccessKey(host: Element, parsed: ParsedAccessKey):
28
23
  export declare function accessKeyModifiers(): string;
29
24
  /** The `aria-keyshortcuts` token for an access key: `Alt+D`, or `Control+Alt+D` on Apple platforms. */
30
25
  export declare function accessKeyToken(key: string): string;
31
- /** Adds or replaces this package's access key token in an element's `aria-keyshortcuts`, keeping the app's own. */
32
- export declare function setAccessKeyAttribute(el: Element, previous: string | null, next: string | null): void;
26
+ /** Whether a key is an access key of this platform (`Alt+S`, `Control+Alt+S` on Apple platforms), not another shortcut. */
27
+ export declare function isAccessKeyToken(token: string): boolean;
28
+ /**
29
+ * Adds or replaces this package's key in a part's `aria-keyshortcuts`, keeping the app's own, and keeps what pressing
30
+ * it does: `run`, else focus and a click, as on a button. The key goes when it is replaced by `null` or the part is
31
+ * disposed.
32
+ */
33
+ export declare function setAccessKeyAttribute(target: ComponentBase, previous: string | null, next: string | null, run?: () => boolean): void;
34
+ /** @internal The keys the kit's parts declare now, each with its part and what pressing it does. */
35
+ export declare function accessKeyEntries(): AccessKeyEntry[];
36
+ /** @internal Whether a part of the kit declares `token` now. */
37
+ export declare function isAccessKeyTaken(token: string): boolean;
38
+ /**
39
+ * @internal Shows the access keys of `view` while Alt is held: marks `data-mx-alt` on each component a key was drawn
40
+ * in, and on each part with an access key with the control it belongs to.
41
+ */
42
+ export declare function showAccessKeyMarks(view: Window | null): void;
43
+ /** @internal Takes the access key marks away. */
44
+ export declare function hideAccessKeyMarks(): void;
@@ -0,0 +1,9 @@
1
+ /** One key with its modifiers, as `parseChord` reads it. */
2
+ export interface Chord {
3
+ ctrl: boolean;
4
+ alt: boolean;
5
+ shift: boolean;
6
+ meta: boolean;
7
+ /** Lower-case `KeyboardEvent.key`, or a single lower-case character. */
8
+ key: string;
9
+ }
@@ -0,0 +1,17 @@
1
+ import { type ComponentBase } from '@motifx/core';
2
+ import type { Command } from './command';
3
+ /** The command an item names, as it holds at `from` (the item's place). */
4
+ export declare function commandOf(item: unknown, from?: ComponentBase | null): Command | null;
5
+ /** A field of an item, from the command it names when the item has none. */
6
+ export declare function fieldOf<V>(item: unknown, name: string, from?: ComponentBase | null): V;
7
+ /**
8
+ * A field of an item as it is given (a function stays a function), from the command it names when the item has none:
9
+ * for a control that follows the value itself. `commandName` is the command's field when it is called otherwise.
10
+ */
11
+ export declare function valueOf<V>(item: unknown, name: string, from?: ComponentBase | null, commandName?: string): V;
12
+ /** The keys an item shows: its own `shortcut`, else the first keys of its command (the user's first), as they read here. */
13
+ export declare function shortcutOf(item: unknown, from?: ComponentBase | null): string;
14
+ /** Runs an item's own `click`, else the command it names, when the command is on. */
15
+ export declare function runItem<E>(item: unknown, args: E, source: ComponentBase | null, event: Event | null, from?: ComponentBase | null): void;
16
+ /** Whether any of the items names a command: such a list is drawn again when the commands change. */
17
+ export declare function namesCommands(items: readonly unknown[]): boolean;
@@ -0,0 +1,37 @@
1
+ import { type ComponentBase, type Event as MotifEvent } from '@motifx/core';
2
+ import type { Command } from './command';
3
+ import type { CommandsChangedEventArgs } from './commands-changed-event-args';
4
+ /**
5
+ * The commands of the app, by key. A command added here runs from its keys, and the items of menus, toolbars and
6
+ * ribbons that name it take what they are not given from it. One registry serves the whole app: `commands`.
7
+ */
8
+ export declare class CommandRegistry {
9
+ private byKey;
10
+ private changed;
11
+ /** What takes each command's keys away. */
12
+ private keyStops;
13
+ /** Occurs when a command is added or taken away. */
14
+ readonly onChanged: MotifEvent<CommandsChangedEventArgs>;
15
+ constructor();
16
+ /** The keys of a command: the user's (`shortcuts.keymap`), else its own `shortcut`. */
17
+ keysOf(command: Command): readonly string[];
18
+ /**
19
+ * Adds a command, with its keys. Returns a function that takes it away. A command limited to a component (`scope`) is
20
+ * taken away by itself when the component is disposed.
21
+ */
22
+ add(command: Command): () => void;
23
+ /**
24
+ * The command with `key` that holds here: of the scope that holds `from` (the component of the item that names it,
25
+ * such as its menu or toolbar), else of the scope that holds focus, else the app-wide one, else the last added.
26
+ */
27
+ get(key: string, from?: ComponentBase | null): Command | null;
28
+ has(key: string): boolean;
29
+ /** Every command added, in the order they came. */
30
+ list(): Command[];
31
+ /** Runs the command with `key` that holds here (see `get`). Returns `false` when there is none or it is off. */
32
+ run(key: string, from?: ComponentBase | null, event?: Event | null): boolean;
33
+ /** The command's keys, under its key: the user's keys for that name take the place of its own. */
34
+ private addKeys;
35
+ }
36
+ /** The commands of the app. */
37
+ export declare const commands: CommandRegistry;
@@ -0,0 +1,11 @@
1
+ import type { ComponentBase } from '@motifx/core';
2
+ import type { Command } from './command';
3
+ export interface CommandRunEventArgs {
4
+ command: Command;
5
+ /** The item that named it, `null` when its keys or `commands.run` ran it. */
6
+ item: unknown;
7
+ /** The component of that item, or the command's scope. */
8
+ source: ComponentBase | null;
9
+ /** The click or the key press; `null` when it ran programmatically. */
10
+ event: Event | null;
11
+ }
@@ -0,0 +1,41 @@
1
+ import type { Bind, ComponentBase } from '@motifx/core';
2
+ import type { CommandRunEventArgs } from './command-run-event-args';
3
+ import type { IconSource } from './icon-source';
4
+ /**
5
+ * A command of the app, defined once: menus, toolbars and ribbons name it by `key` (`command: 'save'`) and take from it
6
+ * what they are not given, and its `shortcut` runs it. Every field except `key`, `shortcut`, `run`, `scope` and `data`
7
+ * accepts a value or a function.
8
+ */
9
+ export interface Command {
10
+ /** Names the command. Several commands may share a key in different scopes, such as `'save'` in each document. */
11
+ key: string;
12
+ /** The text. `&` marks the access key. */
13
+ text?: Bind<string>;
14
+ /** A longer description, shown as a tooltip. */
15
+ hint?: Bind<string>;
16
+ /** An image address or a component; a component as a function, so a menu copy gets its own (see `IconSource`). */
17
+ icon?: Bind<IconSource | null | undefined>;
18
+ /** The name of a glyph, for the items that take one. */
19
+ glyph?: Bind<string>;
20
+ /** The keys that run it: `'Mod+S'`, or several. See `addShortcut` for the syntax. */
21
+ shortcut?: string | readonly string[];
22
+ /** `false` dims the items that name it, and its keys do nothing. The default is `true`. */
23
+ enabled?: Bind<boolean>;
24
+ /** Shows the items that name it checked or not; `undefined` makes them plain items. */
25
+ checked?: Bind<boolean | undefined>;
26
+ /** `false` hides the items that name it. The default is `true`. */
27
+ visible?: Bind<boolean>;
28
+ /** A heading that lists group commands under, such as `'File'`. */
29
+ category?: Bind<string>;
30
+ /**
31
+ * Limits the command and its keys to times when focus is inside this component, and takes the command away when the
32
+ * component is disposed. Without it, it is app-wide.
33
+ */
34
+ scope?: ComponentBase | null;
35
+ /** Its keys work in text fields too (see `addShortcut`). */
36
+ inEditable?: boolean;
37
+ /** Runs the command: from an item that names it, or from its keys. */
38
+ run?: (e: CommandRunEventArgs) => void;
39
+ /** Custom data for the command. */
40
+ data?: unknown;
41
+ }
@@ -0,0 +1,4 @@
1
+ export interface CommandsChangedEventArgs {
2
+ /** The key of the command added or taken away. */
3
+ key: string;
4
+ }
@@ -0,0 +1,10 @@
1
+ import type { ComponentBase } from '@motifx/core';
2
+ /** Whether `part` is `ancestor` or inside it. */
3
+ export declare function isWithin(part: ComponentBase, ancestor: ComponentBase): boolean;
4
+ /** How many components stand above `part`. */
5
+ export declare function treeDepth(part: ComponentBase): number;
6
+ /**
7
+ * Orders two components as the tree lists them: a parent before its children, children in the order of `controls`.
8
+ * Components of different trees keep the order they came in (0).
9
+ */
10
+ export declare function compareTreeOrder(a: ComponentBase, b: ComponentBase): number;
@@ -1,4 +1,4 @@
1
- import type { IBaseProp } from '@motifx/core';
1
+ import { type ComponentBase, type IBaseProp } from '@motifx/core';
2
2
  import { Control, type ControlProps } from './control';
3
3
  /**
4
4
  * A control that remembers which control inside it is active and acts as a scope
@@ -17,8 +17,8 @@ import { Control, type ControlProps } from './control';
17
17
  * inside. Tab order is calculated only when a Tab press needs it.
18
18
  */
19
19
  export declare class FocusContainer<TElement extends HTMLElement = HTMLElement, TProps extends ControlProps = ControlProps> extends Control<TElement, TProps> {
20
- /** The element that had focus last inside this container. */
21
- private lastFocused;
20
+ /** Where focus was last inside this container, and the control that held it then. */
21
+ private lastFocus;
22
22
  constructor(element: TElement | string, props?: IBaseProp<TProps>);
23
23
  constructor(props?: IBaseProp<TProps>);
24
24
  /**
@@ -39,14 +39,17 @@ export declare class FocusContainer<TElement extends HTMLElement = HTMLElement,
39
39
  * nothing inside can receive focus.
40
40
  */
41
41
  restoreFocus(): boolean;
42
+ /** Follows focus down the component tree: the outermost nested container inside, else the innermost control, is active. */
42
43
  private trackFocus;
43
44
  /** The outermost container of its page or window runs Tab. */
44
45
  private get runsTab();
46
+ /** Whether a control inside (not inside a window of its own) has a `tabIndex` other than 0: only then Tab needs help. */
47
+ private get hasTabIndexes();
45
48
  private onTabKey;
46
49
  }
47
50
  /**
48
51
  * The elements Tab visits in `root`: at each level of the control tree,
49
52
  * siblings by ascending `tabIndex`, ties (and plain elements, index 0) in
50
- * document order. One radio button per group, as browsers do.
53
+ * document order. One radio button per group, as browsers do. Focus layer only.
51
54
  */
52
- export declare function tabOrder(root: Element): HTMLElement[];
55
+ export declare function tabOrder(root: ComponentBase): HTMLElement[];
@@ -1,5 +1,6 @@
1
- import { Component, type Bind, type IBaseProp } from '@motifx/core';
2
- import { type ShortcutHandler, type ShortcutOptions } from './keyboard';
1
+ import { Component, type Bind, type ComponentBase, type IBaseProp } from '@motifx/core';
2
+ import type { ShortcutHandler } from './shortcut-handler';
3
+ import type { ShortcutOptions } from './shortcut-options';
3
4
  /** Props every {@link Control} understands. Each one is also a settable property. */
4
5
  export interface ControlProps {
5
6
  /** The text of the control (caption, label, title…). Where it appears depends on the control. */
@@ -80,17 +81,25 @@ export declare class Control<TElement extends HTMLElement = HTMLElement, TProps
80
81
  get tabIndex(): number;
81
82
  set tabIndex(value: Bind<number>);
82
83
  /**
83
- * The nearest ancestor that is a `Control`, without crossing a window (a window
84
- * opened inside a disabled control is not disabled by it).
84
+ * The nearest ancestor that is a `Control`; none for a window (a window opened inside a disabled control is
85
+ * not disabled by it).
85
86
  */
86
87
  get parentControl(): Control | null;
87
- /** The element that takes focus; the root by default. Composite controls override it. */
88
- protected get focusElement(): HTMLElement;
89
- /** Indicates whether {@link focus} can succeed now: enabled, on the page, visible and focusable. */
88
+ /**
89
+ * Indicates whether the control is a window of its own (a form, a panel over the page): what is inside does not take
90
+ * the enabled state of what is outside, and focus, Tab and the keys stop at it.
91
+ */
92
+ get isWindow(): boolean;
93
+ /**
94
+ * The part that takes focus, as a component: the control itself by default, `null` when it takes none.
95
+ * Composite controls override it. A child control given here answers `focus`, `canFocus` and `focused`.
96
+ */
97
+ get focusPart(): ComponentBase | null;
98
+ /** Indicates whether {@link focus} can succeed now: enabled, built, shown with every component above it, and its part takes focus. */
90
99
  get canFocus(): boolean;
91
- /** Indicates whether the control's focus element has focus. This is a DOM query and is not reactive. */
100
+ /** Indicates whether the control's focus part has focus. This is a DOM query and is not reactive. */
92
101
  get focused(): boolean;
93
- /** Indicates whether focus is on the control or inside it (CSS `:focus-within`). This is not reactive. */
102
+ /** Indicates whether focus is on the control or inside it (CSS `:focus-within`), or on a part standing for it. This is not reactive. */
94
103
  get focusWithin(): boolean;
95
104
  /** Sets focus on the control. Returns `false` if it cannot receive focus. */
96
105
  focus(): boolean;
@@ -101,17 +110,18 @@ export declare class Control<TElement extends HTMLElement = HTMLElement, TProps
101
110
  onAccessKey(): boolean;
102
111
  /**
103
112
  * Adds a keyboard shortcut that is active while focus is inside this control and
104
- * is removed when the control is disposed. See `addShortcut` for the chord syntax
105
- * and the rules. Returns a function that removes it.
113
+ * is removed when the control is disposed. See `addShortcut` for the chord syntax,
114
+ * several keys and the rules. Returns a function that removes it.
106
115
  *
107
116
  * @example
108
117
  * this.addShortcut('Ctrl+S', () => this.save());
109
118
  */
110
- addShortcut(chord: string, handler: ShortcutHandler, options?: Omit<ShortcutOptions, 'scope'>): () => void;
119
+ addShortcut(keys: string | readonly string[], handler: ShortcutHandler, options?: Omit<ShortcutOptions, 'scope'>): () => void;
111
120
  /**
112
121
  * Declares the control's access key (from a parsed `&Text`), or none with
113
122
  * `null`: written to `aria-keyshortcuts` on the focus element, next to any
114
- * shortcuts the app put there. Subclasses that render `text` call this.
123
+ * shortcuts the app put there, and pressed through {@link onAccessKey}.
124
+ * Subclasses that render `text` call this.
115
125
  */
116
126
  protected setAccessKey(key: string | null): void;
117
127
  /** Reads a property, tracked: reactive readers update when it changes. */
@@ -150,7 +160,26 @@ export declare class Control<TElement extends HTMLElement = HTMLElement, TProps
150
160
  protected applyProperty(name: string, value: unknown): void;
151
161
  /** A property's current value without tracking it. */
152
162
  protected peekProperty<T>(name: string): T | undefined;
153
- private applyEnabled;
163
+ private enabledChanged;
164
+ /** Draws whether the control can be used now ({@link isEnabled}) when that changed: focus inside moves on, and its area is covered or given back. */
165
+ private drawEnabled;
166
+ /** Called on the nearest parent control when a child control becomes usable or unusable. */
167
+ protected childEnabledChanged(_child: Control): void;
168
+ /** Walks the area from `component`: covers or gives back each component; a control met draws itself. */
169
+ private drawArea;
170
+ /** Covers one component and hears what is added to it or taken out of it while the control is disabled. */
171
+ private coverAt;
172
+ private giveBack;
173
+ /** What left the area is given back; a control in it draws itself once it is in its new place. */
174
+ private leaveArea;
175
+ /** Whether focus sits on a control inside `component` that stays focusable while disabled (a button can ask for that). */
176
+ private focusStays;
177
+ private blockPointer;
178
+ /** The windows inside `component`, not looking inside them. */
179
+ private windowsAt;
180
+ /** The focus part when it is the control's own part; a child control given as the focus part draws itself. */
181
+ private get ownFocusPart();
182
+ /** Takes the focus part out of the Tab order while `tabStop` is false; waits while a disabled control's cover holds its tabindex. */
183
+ private renderTabStop;
154
184
  private applyVisible;
155
- private applyTabStop;
156
185
  }
@@ -0,0 +1,9 @@
1
+ import type { IDisposable } from '@motifx/core';
2
+ /** What covering holds on one part of a disabled control's area. */
3
+ export interface CoverRecord {
4
+ holds: IDisposable[];
5
+ /** The names held: the part's own writes of them wait in core until the part is given back. */
6
+ names: Set<string>;
7
+ /** A part that stays focusable while disabled: only `aria-disabled` is held. */
8
+ keepsFocus: boolean;
9
+ }
@@ -0,0 +1,11 @@
1
+ import type { ComponentBase, IDisposable } from '@motifx/core';
2
+ /**
3
+ * Disables one component of a disabled control's area through core, over what the component has itself: `disabled`
4
+ * where the element has it, and out of the Tab order with `aria-disabled` where it takes focus. Disposing the result
5
+ * gives the component its own values back.
6
+ */
7
+ export declare function cover(part: ComponentBase): IDisposable;
8
+ /** Whether core holds `name` on the part now: its element shows the held value, not the part's own. */
9
+ export declare function isHeld(part: ComponentBase, name: string): boolean;
10
+ /** A covered part that was just given a tabindex, href or contenteditable leaves the Tab order as well. */
11
+ export declare function coverFocus(part: ComponentBase, name: string): void;
@@ -1,32 +1,24 @@
1
1
  import { Component, type ComponentBase } from '@motifx/core';
2
2
  import type { IconSource } from './icon-source';
3
- /** A mark written as `"true"`, or taken away. */
4
- export declare function flag(el: HTMLElement, name: string, on: unknown): void;
5
- /** An attribute there with no value, or taken away. */
6
- export declare function mark(el: HTMLElement, name: string, on: unknown): void;
7
- /** An attribute written as it is, or taken away when there is none. */
8
- export declare function put(el: HTMLElement, name: string, value: string | null | undefined): void;
9
- /** A style property (a custom one too); `''` takes it away. */
10
- export declare function css(el: HTMLElement, name: string, value: string): void;
11
- /** The text of a part that holds only text. */
12
- export declare function text(el: HTMLElement, value: string): void;
13
- /** Shown or not: `hidden` for what reads it, and `display: none` as well, since a part's own rules give it a display. */
14
- export declare function shown(el: HTMLElement | null, on: boolean): void;
15
3
  /** A part drawn by hand: a MotifJS component of a tag and a class, added to `parent`. */
16
4
  export declare function part<E extends HTMLElement = HTMLElement>(parent: ComponentBase, tag: string, className: string): Component<E>;
5
+ /** A text of `parent`, as a text node component: put before `before`, at the end without one. */
6
+ export declare function textPart(parent: ComponentBase, value: string, before?: ComponentBase | null): ComponentBase;
7
+ /** A part of a tag and a class, not placed yet: added to a parent later (`controls.add` / `insert`). */
8
+ export declare function loose<E extends HTMLElement = HTMLElement>(tag: string, className?: string): Component<E>;
9
+ /** A part of `parent` put before `before` (at the end for `null`). */
10
+ export declare function partBefore<E extends HTMLElement = HTMLElement>(parent: ComponentBase, before: ComponentBase | null, tag: string, className: string): Component<E>;
11
+ /** Takes a part out of its parent and disposes it (with what it holds), at once. */
12
+ export declare function removePart(c: ComponentBase | null | undefined): void;
13
+ /** Takes every part out of `parent` and disposes them. */
14
+ export declare function clearParts(parent: ComponentBase): void;
17
15
  /** A glyph of the kit's set (`span.mx-glyph`, see `glyph`) as a part of `parent`. */
18
16
  export declare function glyphPart(parent: ComponentBase, name: string, className?: string): Component<HTMLSpanElement>;
19
17
  /**
20
- * An icon as a child of `parent`: an `<img>` for an address (`alt` empty unless given), an element of your own
21
- * taken in as a component, or the component itself. It goes with `parent`; dispose the one returned when the
22
- * icon changes.
18
+ * An icon as a child of `parent`: an `<img>` for an address (`alt` empty unless given), or the component itself.
19
+ * It goes with `parent`; dispose the one returned when the icon changes.
23
20
  */
24
21
  export declare function iconPart(parent: ComponentBase, source: IconSource, alt?: string): ComponentBase;
25
- /**
26
- * In the page or not, in its place: removed, a placeholder keeps its place, and it comes back there. For a part
27
- * whose parent is not changed while it is out (what `x-display` does for JSX).
28
- */
29
- export declare function kept(el: HTMLElement, on: boolean): void;
30
22
  /**
31
23
  * The value of a control the user changes too (a box, a list, a check box): given only when it is not the one given
32
24
  * last, so what the user typed or picked since stays until the value itself changes.
@@ -1,6 +1,9 @@
1
+ import type { ComponentBase } from '@motifx/core';
1
2
  /**
2
- * Where a surface made programmatically goes for an anchor: the nearest container that may hold a `<div>` and is not named
3
- * by its content (a button would read the surface as part of its name). Near the anchor, it stays in the anchor's
4
- * landmark and window (a modal window makes the rest inert).
3
+ * Puts `surface`, made programmatically for `anchor`, right after it, so it shares the anchor's look, landmark and
4
+ * window (a modal window makes the rest inert). A kit control keeps its children for itself (a toolbar takes each one
5
+ * for an item of its bar), a list or a condition has no element, and an SVG part shows no HTML: the surface goes right
6
+ * after such a parent instead. In a kit window, which keeps only its areas, it goes into the area the anchor is in.
7
+ * Above the page when the anchor has no parent (an element of the app's, taken in as a component).
5
8
  */
6
- export declare function homeOf(anchor: Element): Element;
9
+ export declare function placeInTree(anchor: ComponentBase, surface: ComponentBase): void;
@@ -0,0 +1,8 @@
1
+ import type { ComponentBase } from '@motifx/core';
2
+ /** Where focus was, to give it back later (`rememberFocus`). It holds the place; nothing reads it as an element. */
3
+ export interface FocusMark {
4
+ /** Sets focus there again when that place can still take it. Returns whether focus is there now. */
5
+ restore(options?: FocusOptions): boolean;
6
+ /** Whether that place is `part` or inside it, or inside a part that stands for it (`standFor`). */
7
+ isIn(part: ComponentBase): boolean;
8
+ }