@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,3 +1,4 @@
1
+ import { type Component } from '@motifx/core';
1
2
  import type { GridModel } from '../model/GridModel';
2
3
  import type { GroupNode } from '../model/group-node';
3
4
  /**
@@ -9,12 +10,17 @@ import type { GroupNode } from '../model/group-node';
9
10
  */
10
11
  export declare class GroupFooterRow<T> {
11
12
  private readonly model;
13
+ /** The row's component, a child of the body. */
14
+ readonly part: Component<HTMLDivElement>;
12
15
  readonly element: HTMLDivElement;
13
- readonly cells: Map<string, HTMLDivElement>;
16
+ /** Cell components by field. */
17
+ readonly cells: Map<string, Component<HTMLDivElement, any>>;
14
18
  /** Grid index; -1 while the row is not used. */
15
19
  index: number;
16
20
  node: GroupNode | null;
17
21
  constructor(model: GridModel<T>);
22
+ /** The cell component of `field`, while the row has that cell. */
23
+ cellPart(field: string): Component<HTMLDivElement> | undefined;
18
24
  /** A column's cell (one added at run time too; placed by the next `arrange`). */
19
25
  addColumn(field: string): void;
20
26
  removeColumn(field: string): void;
@@ -1,4 +1,6 @@
1
+ import { type Component, type ComponentBase } from '@motifx/core';
1
2
  import type { GridModel } from '../model/GridModel';
3
+ import type { GroupDrop } from './group-drop';
2
4
  import type { GroupPanelHost } from './group-panel-host';
3
5
  /**
4
6
  * The group panel at the start of the toolbar: a chip per grouped column, in order, or a line that
@@ -10,9 +12,12 @@ import type { GroupPanelHost } from './group-panel-host';
10
12
  export declare class GroupPanel<T> {
11
13
  private readonly model;
12
14
  private readonly host;
13
- readonly element: HTMLDivElement;
15
+ /** The panel's component; the toolbar holds it while `groupPanel` is on. */
16
+ readonly part: Component<HTMLDivElement>;
14
17
  private readonly empty;
15
18
  private readonly hint;
19
+ /** The id of the hint, which describes every chip. */
20
+ private readonly hintId;
16
21
  private readonly drop;
17
22
  private readonly chips;
18
23
  private suppressClick;
@@ -20,22 +25,35 @@ export declare class GroupPanel<T> {
20
25
  constructor(model: GridModel<T>, host: GroupPanelHost);
21
26
  /** Whether headers can be dropped here now: the panel shows and dragging is on. */
22
27
  get accepts(): boolean;
23
- /** Where drops for the panel are taken: the whole toolbar it sits in, not only its chips. */
24
- get dropArea(): HTMLElement;
28
+ /** Where drops for the panel are taken: the whole toolbar it sits in (its parent), not only its chips. */
29
+ get dropArea(): ComponentBase;
25
30
  /** Marks the drop area while a header that can be grouped is dragged. */
26
31
  showReady(on: boolean): void;
27
- /** The place among the chips a point drops at, or -1 when it is not over the drop area. */
28
- dropIndexAt(x: number, y: number): number;
29
- /** Marks where a drop at place `index` lands; -1 hides the mark. */
30
- showDrop(index: number): void;
32
+ /**
33
+ * Where a point drops among the chips, and where its mark goes; reads only. Read it in a read, or first in a
34
+ * handler, then write it with `showDropAt`.
35
+ */
36
+ dropAt(x: number, y: number): GroupDrop;
37
+ /** Marks where a drop read with `dropAt` lands; one at -1 hides the mark. */
38
+ showDropAt(drop: GroupDrop): void;
31
39
  /** The chip of a grouped column, while it shows. */
32
- chipOf(field: string): HTMLButtonElement | undefined;
40
+ chipOf(field: string): Component<HTMLButtonElement> | undefined;
33
41
  dispose(): void;
42
+ /** Where each grouped column's chip is on the screen, in group order. */
43
+ private chipRects;
44
+ /** Pixels from the panel's inline start to the edge a drop at place `index` lands on. */
45
+ private markOffset;
34
46
  private draw;
35
47
  private drawPanel;
48
+ /** A chip, not placed yet: the panel puts it in order. */
36
49
  private makeChip;
37
50
  /** Delete ungroups; Shift + Left / Right moves the chip (Enter and Space press it). */
38
51
  private onChipKey;
52
+ /**
53
+ * Focus leaves a chip about to go, before anything is written for it (a focused element taken out of the page
54
+ * makes the browser work out styles at once): to the chip that takes its place, else back to the rows.
55
+ */
56
+ private passFocus;
39
57
  /** Dragging a chip: along the panel moves it, onto the headers ungroups it (the column lands where it is dropped). */
40
58
  private pressChip;
41
59
  }
@@ -1,4 +1,4 @@
1
- import { ComponentBase } from '@motifx/core';
1
+ import { Component, ComponentBase } from '@motifx/core';
2
2
  import type { GridModel } from '../model/GridModel';
3
3
  import type { GroupNode } from '../model/group-node';
4
4
  /**
@@ -8,32 +8,39 @@ import type { GroupNode } from '../model/group-node';
8
8
  * the first of them. Like the data rows it is created once and shows other groups while the user
9
9
  * scrolls; a column's own `groupCell` content is created the first time the row shows a group of that
10
10
  * column, and kept. It follows nothing: it is drawn when it shows another group, and the body draws
11
- * again the parts that read what the grid tells (`drawLook`, `drawText`, `drawSummary`).
11
+ * again the parts that read what the grid tells (`drawLook`, `drawText`, `drawSummary`). The row,
12
+ * its cell and the places a `groupCell` content goes are components, so that content is a child of
13
+ * its place.
12
14
  */
13
15
  export declare class GroupRow<T> {
14
16
  private readonly model;
15
- /** Holds the components of `groupCell` contents, so they live and go with it. */
16
- private readonly host;
17
+ /** The row's component, a child of the body. */
18
+ readonly part: Component<HTMLDivElement>;
17
19
  readonly element: HTMLDivElement;
18
20
  readonly cell: HTMLDivElement;
21
+ /** The group's cell, which spans the columns up to the first aligned item. */
22
+ readonly cellPart: Component<HTMLDivElement>;
23
+ /** The arrow that opens and closes the group. */
24
+ readonly arrowPart: Component<HTMLSpanElement>;
19
25
  /** Grid index; -1 while the row is not used. */
20
26
  index: number;
21
27
  node: GroupNode | null;
22
28
  /** Grows with each other group shown: what a column's own content reads of its context follows it. */
23
29
  private readonly shown;
24
- private readonly text;
30
+ /** Holds the arrow, the columns' own contents and the text, in that order. */
31
+ private readonly contentPart;
32
+ private readonly textPart;
25
33
  private readonly caption;
26
34
  private readonly count;
27
35
  private readonly summary;
28
36
  /** Cells of the items aligned by column, by field; made when first needed. */
29
37
  private readonly aligned;
30
38
  private visible;
31
- /** Columns' own contents, by field, and those that are components. */
39
+ /** The places of the columns' own contents, by field. */
32
40
  private readonly own;
33
- private readonly contents;
34
- constructor(model: GridModel<T>,
35
- /** Holds the components of `groupCell` contents, so they live and go with it. */
36
- host: ComponentBase);
41
+ constructor(model: GridModel<T>);
42
+ /** The cell of items aligned by column that an event came from. */
43
+ alignedFrom(e: Event): ComponentBase | undefined;
37
44
  /** Draws the whole row as the grid is now. */
38
45
  draw(): void;
39
46
  /** Shows the group at grid row `index`, at `top`. */
@@ -36,7 +36,8 @@ export declare class HeaderFilter<T> {
36
36
  get tree(): TreeView<FilterTreeNode> | null;
37
37
  /** The column of the open window. */
38
38
  get column(): string;
39
- open(field: string, anchor: HTMLElement, returnTo: HTMLElement): void;
39
+ /** Opens the window for `field` next to `anchor`; focus goes back to `returnTo` when it closes. */
40
+ open(field: string, anchor: ComponentBase, returnTo: ComponentBase): void;
40
41
  close(): void;
41
42
  /** Applies the chosen values: none, or every one of them, is no value filter. */
42
43
  apply(): Promise<void>;
@@ -1,6 +1,7 @@
1
1
  import { Component, ComponentBase } from '@motifx/core';
2
2
  import { type GridModel } from '../model/GridModel';
3
3
  import type { HeaderHost } from './header-host';
4
+ import type { GroupDrop } from './group-drop';
4
5
  /**
5
6
  * The header row: a header per column with its title, sort mark, filter and menu buttons and resize
6
7
  * handle. A click sorts (Shift adds to the sort), dragging a header moves the column inside its
@@ -14,6 +15,8 @@ export declare class HeaderRow<T> extends Component<HTMLDivElement> {
14
15
  readonly cells: Map<string, ComponentBase<any, any>>;
15
16
  /** The columns' own header contents (`headerCell`) that are components, by field. */
16
17
  private readonly titles;
18
+ /** The title of each header, a component: a column's own `headerCell` content is added to it. */
19
+ private readonly titleParts;
17
20
  private indicator;
18
21
  private suppressClick;
19
22
  /** The parts of each header that show what changes, by field. */
@@ -30,7 +33,12 @@ export declare class HeaderRow<T> extends Component<HTMLDivElement> {
30
33
  arrange(visible: string[]): void;
31
34
  /** A column's own `headerCell` content in place of the title text. */
32
35
  private ownTitle;
33
- cellElement(field: string): HTMLElement | undefined;
36
+ /** The header of a column, while it has one. */
37
+ cellPart(field: string): ComponentBase | undefined;
38
+ /** The title of a column's header, which holds its own header content; the selection column's header has none. */
39
+ titlePart(field: string): Component<HTMLSpanElement> | undefined;
40
+ /** The text a column's header title shows; `undefined` when the column has header content of its own, or a title only assistive technology reads. */
41
+ titleText(field: string): string | undefined;
34
42
  /** A column added at run time gets its header (placed by the next `arrange`). */
35
43
  addColumn(field: string): void;
36
44
  /** A column removed loses its header, and its own header content. */
@@ -46,6 +54,8 @@ export declare class HeaderRow<T> extends Component<HTMLDivElement> {
46
54
  /** The sort position, shown next to the arrow when more than one column is sorted. */
47
55
  private sortMark;
48
56
  private clickHeader;
57
+ /** Whether an event started on a header's filter or menu button, or on its resize handle. */
58
+ private fromButton;
49
59
  /**
50
60
  * Drag a header to move the column within its zone and its band, not across columns that cannot
51
61
  * move; onto the group panel to group by it.
@@ -63,8 +73,13 @@ export declare class HeaderRow<T> extends Component<HTMLDivElement> {
63
73
  };
64
74
  /** Where a column's header sits on the screen; a column without cells (virtual, out of view) by the widths. */
65
75
  private placeOf;
66
- /** Marks where a grouped column dragged over the headers lands; whether the point is over them (NaN hides the mark). */
67
- showChipDrop(field: string, x: number, y: number): boolean;
76
+ /**
77
+ * Where a grouped column dragged over the headers lands, and where its mark goes (from the row's left); reads
78
+ * only, -1 when the point is not over them (NaN). Read it first in a handler, then write it with `showChipDrop`.
79
+ */
80
+ chipDropAt(field: string, x: number, y: number): GroupDrop;
81
+ /** Marks where a drop read with `chipDropAt` lands; one at -1 hides the mark. */
82
+ showChipDrop(drop: GroupDrop): void;
68
83
  /** Width the column takes on screen; more than its setting while it flexes. */
69
84
  shownWidth(field: string): number;
70
85
  /** Drag the edge to resize: the column alone, or against the next one. */
@@ -1,4 +1,4 @@
1
- import type { ComponentBase } from '@motifx/core';
1
+ import { type ComponentBase } from '@motifx/core';
2
2
  import { MenuList } from '../../../parts/menu/MenuList';
3
3
  import type { MenuItem } from '../../../parts/menu/menu-item';
4
4
  import { Popup } from '../../../parts/popup/Popup';
@@ -12,7 +12,8 @@ export declare class MenuPopup {
12
12
  readonly list: MenuList;
13
13
  constructor(owner: ComponentBase, className: string, placement?: Popup['placement']);
14
14
  get opened(): boolean;
15
- open(items: readonly MenuItem[], anchor: HTMLElement, label: string, returnTo?: HTMLElement): void;
15
+ /** Opens next to `anchor` (the button that asks); focus goes back to `returnTo` when it closes. */
16
+ open(items: readonly MenuItem[], anchor: ComponentBase, label: string, returnTo?: ComponentBase): void;
16
17
  /** Focuses the item that is checked (a condition), else the first. */
17
18
  focusChecked(): void;
18
19
  close(): void;
@@ -1,4 +1,6 @@
1
+ import type { Component, ComponentBase } from '@motifx/core';
1
2
  import type { ActionWidths } from './ActionWidths';
3
+ import type { CellTipTarget } from './cell-tip-target';
2
4
  import type { ResolvedAction } from './resolved-action';
3
5
  /**
4
6
  * The buttons of one pooled row's actions cell. The first actions that fit the column show as
@@ -7,7 +9,7 @@ import type { ResolvedAction } from './resolved-action';
7
9
  * row shows other rows.
8
10
  */
9
11
  export declare class RowActions<T> {
10
- readonly cell: HTMLElement;
12
+ readonly cell: Component<HTMLDivElement>;
11
13
  private readonly widths;
12
14
  /** Actions shown as buttons, in order. */
13
15
  shown: ResolvedAction<T>[];
@@ -15,15 +17,21 @@ export declare class RowActions<T> {
15
17
  overflow: ResolvedAction<T>[];
16
18
  private readonly buttons;
17
19
  private more;
18
- constructor(cell: HTMLElement, widths: ActionWidths);
20
+ private moreHint;
21
+ constructor(cell: Component<HTMLDivElement>, widths: ActionWidths);
19
22
  draw(list: ResolvedAction<T>[], width: number, more: {
20
23
  label: string;
21
24
  hint: string;
22
25
  }, display: 'auto' | 'menu'): void;
23
- /** The buttons that show, the "more" button last: what Left and Right move between. */
24
- focusables(): HTMLButtonElement[];
26
+ /** The buttons that show, in order, the "more" button last: what Left and Right move between. */
27
+ buttonParts(): Component<HTMLButtonElement>[];
25
28
  /** The action of a button; `'more'` for the "more" button. */
26
- actionOf(el: Element): ResolvedAction<T> | 'more' | null;
29
+ actionOfPart(part: ComponentBase): ResolvedAction<T> | 'more' | null;
30
+ /** What the cell tip shows for a button of the cell: its hint, read when the tip opens; `null` for a part that is no shown button or has no hint. */
31
+ tipOf(part: ComponentBase): CellTipTarget | null;
32
+ /** The tip of the button an event came from; `null` when it came from none, or from one with no hint. */
33
+ tipFrom(e: Event): CellTipTarget | null;
34
+ private hintOf;
27
35
  private createMore;
28
36
  /** The actions that show as buttons in `width` pixels: all when they fit, else the ones kept as buttons and, in order, as many others as fit next to the "more" button. */
29
37
  private fit;
@@ -21,9 +21,13 @@ export declare class RowDrag<T> {
21
21
  constructor(model: GridModel<T>, body: GridBody<T>, host: RowDragHost<T>);
22
22
  get options(): import("../model/RowDragOptions").RowDragOptions<T>;
23
23
  get grid(): import("..").DataGrid<T>;
24
+ /** The part that scrolls the rows: the body's parent. */
25
+ private get viewport();
24
26
  dispose(): void;
25
27
  /** A click on a row: a drag may start once the pointer moves far enough. Returns whether it is watched. */
26
28
  press(e: PointerEvent): boolean;
29
+ /** Whether a press on a row started on one of its own controls: an action button, the details arrow, the "…" or the editor. */
30
+ private fromControl;
27
31
  /** A key on a row: Ctrl+Shift+Up / Down (`moveUpKeys`, `moveDownKeys`) move it a place. Returns whether it was one. */
28
32
  onKey(e: KeyboardEvent, index: number): boolean;
29
33
  /**
@@ -34,9 +38,16 @@ export declare class RowDrag<T> {
34
38
  move(fromIndex: number, toIndex: number, event?: Event): Promise<boolean>;
35
39
  private onMove;
36
40
  private onUp;
37
- /** The drag passed the threshold: `onDragStart`, then the copy and the marks. Returns whether it goes on. */
41
+ /** The drag passed the threshold: `onDragStart`, then the marks; the copy shows with the next frame. Returns whether it goes on. */
38
42
  private start;
39
- /** The pointer moved while dragging: the copy follows, the grid under it shows the place, the rows scroll near the edges. */
43
+ /** The grids of the drag that it may land in (this one, then those of its group in the page), by the parts that scroll their rows. */
44
+ private readonly aimable;
45
+ /** Something scrolled under the dragged row: where it would land is worked out again. */
46
+ private readonly rowsScrolled;
47
+ private readonly readFrame;
48
+ /** The frame of a drag: the copy shows (the first time) and follows, the grid under it shows the place, the grid there scrolls near its edges. */
49
+ private readonly drawFrame;
50
+ /** The pointer moved while dragging: the copy follows, the grid under it shows the place. */
40
51
  private track;
41
52
  /** Ends the drag: drops when `drop` and the place takes it, then clears the copy and the marks. */
42
53
  private end;
@@ -49,23 +60,26 @@ export declare class RowDrag<T> {
49
60
  private tell;
50
61
  /** Where a row dragged to the point would land in a grid of the drag (this one, or one of its group), or `null`. */
51
62
  private aimAt;
52
- /** Where a row dragged to `y` would land among this grid's rows; `source` is the drag when it comes from this grid. */
63
+ /** Where a row dragged to `y` would land among this grid's rows (`view`: the part of them on the screen); `source` is the drag when it comes from this grid. */
53
64
  private placeAt;
54
65
  /** Draws the marks of every grid of the drag: the place it would land, the room made for it, the row it came from. */
55
66
  private paint;
56
67
  /** Shows where a row would land in this grid (`aim`), and, while it comes from here, where it was. */
57
68
  private markAim;
58
- /** How far the dragged row moves to stand at the place it would land: to the bottom (`down`) or the top of the row there. */
59
- private offsetBetween;
60
69
  private clearMarks;
61
- /** Scrolls the grid under the pointer (or this one) while the pointer is near its top or bottom edge, frame by frame. */
62
- private autoScroll;
63
- /** The height of the sticky header over the rows. */
64
- private headHeight;
65
- /** The point kept inside `boundary`. */
70
+ /**
71
+ * Scrolls the grid under the pointer (or this one) while the pointer is near its top or bottom edge, below its sticky
72
+ * header, frame by frame; the scroll tells where the row would land again.
73
+ */
74
+ private followEdges;
75
+ /** The pointer kept inside `boundary`; read with the window's reads. */
66
76
  private clamp;
77
+ /** What the copy of the row takes from the grid: its columns, its width and sideways scroll, the row height, and the box it stays in. */
78
+ private readGhost;
67
79
  /** The copy of the row (or the drag template) under the pointer. */
68
80
  private showGhost;
81
+ /** The app's `boundary` or `container` as a component: the one it gives, or the one its selector finds. */
82
+ private appPart;
69
83
  /** `cursorOffset` as `{ x, y }`, or `null` when it is not given. */
70
84
  private cursorOffset;
71
85
  /** The data row at grid index `i`, `undefined` for a group row, a footer, a new row or one still loading. */
@@ -9,14 +9,16 @@ import type { GridModel } from '../model/GridModel';
9
9
  */
10
10
  export declare class TotalRow<T> extends Component<HTMLDivElement> {
11
11
  private readonly grid;
12
- /** Cell elements by field. */
13
- readonly cells: Map<string, HTMLDivElement>;
12
+ /** Cell components by field. */
13
+ readonly cells: Map<string, Component<HTMLDivElement, any>>;
14
14
  /** What the cells show, as last written: `''` writes them again. */
15
15
  private drawnKey;
16
16
  constructor(grid: GridModel<T>);
17
17
  onConfigured(): void;
18
18
  /** Writes the items again (`grid.repaint()`). */
19
19
  redraw(): void;
20
+ /** The cell of a column, while the row has one. */
21
+ cellPart(field: string): Component<HTMLDivElement> | undefined;
20
22
  /** A column's cell (one added at run time too; placed by the next `arrange`). */
21
23
  addColumn(field: string): void;
22
24
  private makeCell;
@@ -1,10 +1,16 @@
1
+ import type { Component, ComponentBase } from '@motifx/core';
1
2
  import type { ResolvedAction } from './resolved-action';
2
3
  /** What a button shows: the action, its text and its look. Equal keys draw the same button. */
3
4
  export declare function actionKey<T>(a: ResolvedAction<T>): string;
5
+ /** The hint (tooltip) a button shows now, `''` for none: what the grid's cell tip says for it. */
6
+ export declare function actionHint(button: ComponentBase): string;
4
7
  /**
5
- * A button of a row's actions: a plain element with the kit button's classes (ghost, small), so a
6
- * row costs no component. Disabled buttons stay focusable (`aria-disabled`) for the arrow keys.
8
+ * A button of a row's actions: a part with the kit button's classes (ghost, small), so a row costs no
9
+ * Button control. Disabled buttons stay focusable (`aria-disabled`) for the arrow keys.
7
10
  */
8
- export declare function createActionButton(): HTMLButtonElement;
9
- /** Shows an action on a button; the content is built again only when the action or its text changes. */
10
- export declare function fillActionButton<T>(button: HTMLButtonElement, a: ResolvedAction<T>): void;
11
+ export declare function createActionButton(): Component<HTMLButtonElement>;
12
+ /**
13
+ * Shows an action on a button. Its icon holder and text are made once and written in place; the icon itself
14
+ * is shown again only when it is another one.
15
+ */
16
+ export declare function fillActionButton<T>(button: Component<HTMLButtonElement>, a: ResolvedAction<T>): void;
@@ -0,0 +1,11 @@
1
+ import type { Bind, ComponentBase } from '@motifx/core';
2
+ /** A part of the grid the cell tip is for (a cell, a header title, a button), and what the tip says for it. */
3
+ export interface CellTipTarget {
4
+ part: ComponentBase;
5
+ /** The message of a cell with an error. */
6
+ message?: Bind<string>;
7
+ /** The hint of a button, or of a lookup cell. */
8
+ hint?: Bind<string>;
9
+ /** The full text, shown when it is cut off; a cell that holds buttons gives none. */
10
+ text?: Bind<string>;
11
+ }
@@ -1,4 +1,5 @@
1
- /** A check box drawn as plain DOM (`role="checkbox"`) for the selection column; the cell holds focus, not the box. */
2
- export declare function createCheck(label: string): HTMLSpanElement;
1
+ import type { Component, ComponentBase } from '@motifx/core';
2
+ /** A check box part (`role="checkbox"`) for the selection column; the cell holds focus, not the box. */
3
+ export declare function createCheck(label: string): Component<HTMLSpanElement>;
3
4
  /** Shows a state on a check box; only what changed is written. */
4
- export declare function setCheck(box: HTMLElement, state: boolean | 'mixed', label: string, enabled?: boolean): void;
5
+ export declare function drawCheck(box: ComponentBase, state: boolean | 'mixed', label: string, enabled?: boolean): void;
@@ -0,0 +1,9 @@
1
+ /** What fitting a column to its content found: the width it takes, and the column that gives or takes the difference. */
2
+ export interface ColumnFit {
3
+ field: string;
4
+ width: number;
5
+ /** The next column in `'nextColumn'` resize mode, else `undefined`. */
6
+ next: string | undefined;
7
+ /** The widths the column and `next` had together on screen; 0 without `next`. */
8
+ total: number;
9
+ }
@@ -1,2 +1,3 @@
1
- /** The drag icon of a row (`rowDragging.showDragIcons`): plain DOM, the cell holds focus and the name. */
2
- export declare function createDragHandle(): HTMLSpanElement;
1
+ import type { Component } from '@motifx/core';
2
+ /** The drag icon of a row (`rowDragging.showDragIcons`): the cell holds focus and the name. */
3
+ export declare function createDragHandle(): Component<HTMLSpanElement>;
@@ -1,10 +1,10 @@
1
+ import type { ComponentBase } from '@motifx/core';
1
2
  /** What selecting by dragging asks of the grid it works in. */
2
3
  export interface DragSelectHost {
3
- /** The grid's own element. */
4
- root(): HTMLElement;
5
- viewport(): HTMLElement | null;
6
- /** The header cell of a column, to find the column under the pointer. */
7
- headerCell(field: string): HTMLElement | undefined;
4
+ /** The grid itself, marked while a drag selection runs. */
5
+ readonly grid?: ComponentBase;
6
+ /** The header cell part of a column, to find the column under the pointer. */
7
+ headerCellPart?(field: string): ComponentBase | undefined;
8
8
  isRtl(): boolean;
9
9
  /** The rows scrolled sideways: virtual columns follow. */
10
10
  columnsScrolled(): void;
@@ -1,4 +1,5 @@
1
- /** The arrow of the expand column, drawn as plain DOM (`role="button"`, `aria-expanded`); the cell holds focus, not the arrow. */
2
- export declare function createExpandButton(label: string): HTMLSpanElement;
1
+ import type { Component, ComponentBase } from '@motifx/core';
2
+ /** The arrow of the expand column (`role="button"`, `aria-expanded`); the cell holds focus, not the arrow. */
3
+ export declare function createExpandButton(label: string, className?: string, icon?: string): Component<HTMLSpanElement>;
3
4
  /** Shows a row's details state on its arrow (hidden for a row without details); only what changed is written. */
4
- export declare function setExpandButton(button: HTMLElement, shown: boolean, open: boolean, label: string, controls: string | null): void;
5
+ export declare function drawExpandButton(button: ComponentBase, shown: boolean, open: boolean, label: string, controls: string | null): void;
@@ -0,0 +1,7 @@
1
+ /** Where a point drops on the group panel (or a chip on the headers): its place among the chips (or columns), and where the mark goes. */
2
+ export interface GroupDrop {
3
+ /** The place among the chips (or columns); -1 when the point is not over the drop area. */
4
+ readonly index: number;
5
+ /** Pixels from the panel's inline start (the header row's left) to the mark. */
6
+ readonly offset: number;
7
+ }
@@ -1,13 +1,16 @@
1
1
  import type { DragGhost } from '../../../parts/drag/DragGhost';
2
+ import type { GroupDrop } from './group-drop';
2
3
  /** What the group panel asks the grid: the headers it drops chips on, and where focus goes. */
3
4
  export interface GroupPanelHost {
4
5
  isRtl(): boolean;
5
6
  /** The picture that follows a dragged chip. */
6
7
  readonly ghost: DragGhost;
7
- /** Marks where a chip dragged over the headers lands (NaN hides the mark); whether the point is over them. */
8
- showHeaderDrop(field: string, x: number, y: number): boolean;
9
- /** A chip was dropped on the headers at `x`: the column is ungrouped and put there. */
10
- dropOnHeaders(field: string, x: number): void;
8
+ /** Where a chip dragged over the headers lands (index -1: not over them, or NaN); reads only. */
9
+ headerDropAt(field: string, x: number, y: number): GroupDrop;
10
+ /** Marks where a drop read with `headerDropAt` lands; one at -1 hides the mark. */
11
+ showHeaderDrop(drop: GroupDrop): void;
12
+ /** A chip was dropped on the headers at place `index` (read with `headerDropAt`): the column is ungrouped and put there. */
13
+ dropOnHeaders(field: string, index: number): void;
11
14
  /** The last chip went away: focus goes back to the rows. */
12
15
  focusRows(): void;
13
16
  /** A key on a chip, before the panel handles it: `false` when the app takes it (`onKeyHandling`). */
@@ -1,16 +1,17 @@
1
+ import type { ComponentBase } from '@motifx/core';
1
2
  import type { DragGhost } from '../../../parts/drag/DragGhost';
2
3
  import type { GroupPanel } from './GroupPanel';
3
4
  /** What the header and the column menu ask the grid to do; the grid owns menus, focus and measuring. */
4
5
  export interface HeaderHost {
5
6
  /** Whether the column has a menu (the feature is on and the menu would not be empty). */
6
7
  hasMenu(field: string): boolean;
7
- openMenu(field: string, anchor: HTMLElement): void;
8
+ openMenu(field: string, anchor: ComponentBase): void;
8
9
  autoSize(field: string): void;
9
10
  autoSizeAll(): void;
10
11
  startAdjust(kind: 'move' | 'resize', field: string): void;
11
12
  isRtl(): boolean;
12
13
  /** Opens the column's header filter next to `anchor`. */
13
- openHeaderFilter(field: string, anchor: HTMLElement): void;
14
+ openHeaderFilter(field: string, anchor: ComponentBase): void;
14
15
  /** The header check box: select every row, or none. */
15
16
  toggleAll(): void;
16
17
  /** The state of the header check box. */
@@ -1,12 +1,14 @@
1
+ import type { ComponentBase } from '@motifx/core';
1
2
  import type { DataGrid } from '../DataGrid';
2
3
  import type { DragGhost } from '../../../parts/drag/DragGhost';
3
4
  /** What row dragging asks of the grid it works in. */
4
5
  export interface RowDragHost<T> {
5
6
  readonly grid: DataGrid<T>;
6
7
  readonly ghost: DragGhost;
7
- /** The grid's own element. */
8
- root(): HTMLElement;
9
- viewport(): HTMLElement | null;
8
+ /** Id of the grid, for the ghost's rows to read the grid's column styles. */
9
+ readonly gridId?: string;
10
+ /** The part over the rows (headers and filter row) once the grid has drawn it, else `null`. */
11
+ head?(): ComponentBase | null;
10
12
  /** Makes grid row `index` the active row, focus along while the grid has it. */
11
13
  focusRow(index: number): void;
12
14
  /** The grid's accessible name. */
@@ -1,8 +1,10 @@
1
+ import type { ComponentBase } from '@motifx/core';
1
2
  import type { SummaryPart } from '../model/summary-part';
2
3
  /**
3
- * Writes summary items into a cell: one element per item, stacked, or on one line with `separator`
4
+ * Writes summary items into a cell: one part per item, stacked, or on one line with `separator`
4
5
  * between them. An item whose text does not name its column ("Sum: 1,234" under Amount) is read
5
6
  * as one that does ("Sum of Amount: 1,234"): the shown text is hidden from assistive technology
6
- * and the naming one is there, hidden from sight. Nothing is touched when the cell shows the same.
7
+ * and the naming one is there, hidden from sight. Nothing is touched when the cell shows the same; a changed
8
+ * text is written into the parts the cell has, and items are added or taken away at the end.
7
9
  */
8
- export declare function fillSummaryCell(cell: HTMLElement, parts: readonly SummaryPart[], separator: string | null): void;
10
+ export declare function fillSummaryCell(cell: ComponentBase, parts: readonly SummaryPart[], separator: string | null): void;
@@ -1,3 +1,4 @@
1
+ import type { ComponentBase } from '@motifx/core';
1
2
  import type { DataGrid } from '../DataGrid';
2
3
  import type { GridToolbarItem } from '../grid-toolbar-item';
3
4
  import type { GridToolbarItemName } from '../grid-toolbar-item-name';
@@ -13,8 +14,8 @@ export interface ToolbarHost {
13
14
  exportCommands(): ExportCommand[];
14
15
  /** The export button's name ("Export", or `export.texts.exportTo`). Reactive. */
15
16
  exportName(): string;
16
- /** Opens the list of columns under `anchor`. */
17
- openColumns(anchor: HTMLElement): void;
17
+ /** Opens the list of columns under `anchor`, the toolbar's button. */
18
+ openColumns(anchor: ComponentBase): void;
18
19
  /** Whether the list of columns has a column to show or hide. */
19
20
  hasColumns(): boolean;
20
21
  /** The group panel, which the toolbar holds while `groupPanel` is on. */
@@ -1,4 +1,4 @@
1
- import { type Bind, type Event as MotifEvent, type IBaseProp } from '@motifx/core';
1
+ import { type Bind, type ComponentBase, type Event as MotifEvent, type IBaseProp } from '@motifx/core';
2
2
  import type { DateKind } from '../../parts/dates/date-kind';
3
3
  import { Field } from '../../parts/field/Field';
4
4
  import type { PopupCloseReason } from '../../parts/popup/popup-close-reason';
@@ -42,7 +42,8 @@ export declare class DateBox extends Field<Date | null, DateBoxProps> {
42
42
  set showTodayButton(value: Bind<boolean>);
43
43
  get showPickerButton(): boolean;
44
44
  set showPickerButton(value: Bind<boolean>);
45
- get inputElement(): HTMLInputElement;
45
+ /** The text input as a component: write its attributes with `put` and call its methods through `attr`. */
46
+ get inputPart(): ComponentBase<HTMLInputElement>;
46
47
  /** Indicates that the typed text is not yet a complete, valid date. */
47
48
  get unfinished(): boolean;
48
49
  get opened(): boolean;
@@ -53,7 +54,8 @@ export declare class DateBox extends Field<Date | null, DateBoxProps> {
53
54
  open(): boolean;
54
55
  close(): void;
55
56
  clear(): void;
56
- protected createControl(): HTMLElement;
57
+ protected get controlTag(): string;
58
+ protected createControl(): ComponentBase;
57
59
  protected emptyValue(): Date | null;
58
60
  protected normalizeValue(value: Date | null): Date | null;
59
61
  protected sameValue(a: Date | null, b: Date | null): boolean;