@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
@@ -0,0 +1,22 @@
1
+ import type { GridColumn } from './grid-column';
2
+ import type { GridFilterOperator } from './grid-filter-operator';
3
+ /**
4
+ * The context a custom filter row editor receives. An editor that is a `Field` is bound to the column's filter both
5
+ * ways by the grid. Any other component writes the value with `setValue` and hears the filter change elsewhere (the
6
+ * filters cleared, a saved layout given back) through `onChanged`.
7
+ */
8
+ export interface FilterEditorContext<T> {
9
+ readonly column: GridColumn<T>;
10
+ /** The condition of the filter row now, such as `'='` or `'contains'`. */
11
+ readonly operator: GridFilterOperator;
12
+ /** The value of the filter now (`undefined` when there is none). */
13
+ readonly value: unknown;
14
+ /** The upper end of `'between'`. */
15
+ readonly value2: unknown;
16
+ /** Filters by `value` (and `value2` for `'between'`); `undefined` or an empty value removes the condition. */
17
+ setValue(value: unknown, value2?: unknown): void;
18
+ /** Removes the column's filter row condition. */
19
+ clear(): void;
20
+ /** Calls `listener` with the value whenever the column's filter changes; returns what stops it. */
21
+ onChanged(listener: (value: unknown, value2: unknown) => void): () => void;
22
+ }
@@ -6,8 +6,8 @@ import type { GridSelection } from './grid-selection';
6
6
  import type { RowState } from './row-state';
7
7
  /**
8
8
  * A button among a row's actions. `text` is required: it is the button's accessible name even when
9
- * only the icon is displayed. Provide an element icon as a function (`() => myIcon()`), so that every
10
- * row has its own.
9
+ * only the icon is displayed. Provide a component icon as a function (`() => myIcon()`), so that
10
+ * every row has its own.
11
11
  *
12
12
  * An action appears in its row, or in the toolbar or the bottom bar for the selected rows (`location`),
13
13
  * where several rows share the actions they all have. On several rows, `onclickMany` runs once with
@@ -1,4 +1,4 @@
1
- import type { EventArgs } from '@motifx/core';
1
+ import type { ComponentBase, EventArgs } from '@motifx/core';
2
2
  import type { GridRowType } from './grid-row-type';
3
3
  /**
4
4
  * Occurs when a cell is clicked or double-clicked. Set `cancel = true` to prevent the grid's handling
@@ -13,7 +13,7 @@ export interface GridCellClickEventArgs<T> extends EventArgs {
13
13
  readonly rowType: GridRowType;
14
14
  /** On a group row, the group values from the top level down. */
15
15
  readonly groupKey?: readonly unknown[];
16
- /** The cell element. */
17
- readonly element: HTMLElement;
16
+ /** The cell's part. */
17
+ readonly part: ComponentBase;
18
18
  readonly event: MouseEvent;
19
19
  }
@@ -1,7 +1,8 @@
1
+ import type { ComponentBase } from '@motifx/core';
1
2
  /**
2
- * Occurs when a cell is rendered for a row, so that you can style or extend it. The element is reused
3
- * for other rows while scrolling, so always set and clear what you change (`classList.toggle`,
4
- * `dataset`).
3
+ * Occurs when a cell is rendered for a row, so that you can style or extend it. The part is reused
4
+ * for other rows while scrolling, so always set and clear what you change (`class.toggle`,
5
+ * `attr`).
5
6
  */
6
7
  export interface GridCellPreparedEventArgs<T> {
7
8
  readonly field: string;
@@ -10,5 +11,6 @@ export interface GridCellPreparedEventArgs<T> {
10
11
  /** The displayed value, which is the unsaved value when there is one. */
11
12
  readonly value: unknown;
12
13
  readonly isNew: boolean;
13
- readonly element: HTMLElement;
14
+ /** The cell's part. */
15
+ readonly part: ComponentBase;
14
16
  }
@@ -4,6 +4,7 @@ import type { CellContext } from './cell-context';
4
4
  import type { ColumnResizeMode } from './column-resize-mode';
5
5
  import type { ColumnType } from './column-type';
6
6
  import type { EditorContext } from './editor-context';
7
+ import type { FilterEditorContext } from './filter-editor-context';
7
8
  import type { GroupCellContext } from './group-cell-context';
8
9
  import type { HeaderCellContext } from './header-cell-context';
9
10
  import type { GridFilterOperator } from './grid-filter-operator';
@@ -145,14 +146,21 @@ export interface GridColumn<T = any> {
145
146
  formItem?: GridColumnFormItem;
146
147
  /**
147
148
  * The choices of a `list` column: an array, or a function of the row and its entered values
148
- * (`context.getValue(field)`), which can return a promise.
149
+ * (`context.getValue(field)`), which can return a promise. Outside a row (the cell text, the filter
150
+ * row, the search, the filter builder and pasted text) it is called once with `row` `null`, and it
151
+ * returns every choice then; the answer is kept until `refresh()`.
149
152
  */
150
- options?: readonly ListOption[] | ((row: T, context: data.RowCheckContext<T>) => readonly ListOption[] | Promise<readonly ListOption[]>);
153
+ options?: readonly ListOption[] | ((row: T | null, context: data.RowCheckContext<T>) => readonly ListOption[] | Promise<readonly ListOption[]>);
151
154
  /**
152
155
  * A custom editor, created when the cell is edited: a `Field` (read through its `value`), or any
153
156
  * component that calls `ctx.setValue`.
154
157
  */
155
158
  editor?: (ctx: EditorContext<T>) => unknown;
159
+ /**
160
+ * A custom editor of the filter row's value, in place of the one of the column type: a `Field`, bound to the
161
+ * column's filter both ways, or any component that calls `ctx.setValue` and hears `ctx.onChanged`.
162
+ */
163
+ filterEditor?: (ctx: FilterEditorContext<T>) => unknown;
156
164
  /**
157
165
  * The cell holds a key and displays the text of its item from another source (a service, an array).
158
166
  * The column is displayed, edited, filtered, sorted, copied and exported as a lookup, and `type` still
@@ -11,8 +11,8 @@ export interface GridEditorPreparedEventArgs<T> {
11
11
  readonly isNew: boolean;
12
12
  /** The kit's editor, or the column's custom `editor` content when it is a component. */
13
13
  readonly editor: ComponentBase | null;
14
- /** The element that holds it. */
15
- readonly element: HTMLElement;
14
+ /** The part that holds it. */
15
+ readonly part: ComponentBase;
16
16
  /** `'cell'`, `'form'` for the edit form (`editMode` `'form'` and `'popup'`), or `'adaptive'` for a row's adaptive detail. */
17
17
  readonly place: 'cell' | 'form' | 'adaptive';
18
18
  }
@@ -33,7 +33,7 @@ export interface GridLookup<T = any> {
33
33
  * item by key.
34
34
  */
35
35
  resolve?: 'batch' | 'byKey';
36
- /** The keys per request in `'batch'` mode. The default is 100. */
36
+ /** The keys per request in `'batch'` mode. The default is 20, which keeps a request that carries the keys in its URL within common server limits. */
37
37
  batchSize?: number;
38
38
  /**
39
39
  * Sorts in-memory rows by the key (the default, as the service sorts) or by the displayed text (every
@@ -44,13 +44,13 @@ export interface GridLookup<T = any> {
44
44
  editor?: 'dropdown' | 'combobox' | 'lookup';
45
45
  /** The props passed to the editor, such as the `Lookup`'s `columns`. */
46
46
  editorOptions?: Record<string, unknown>;
47
- /** The maximum number of items containing the search panel's text that the search converts to keys. The default is 100. */
47
+ /** The maximum number of items containing the search panel's text that the search converts to keys (not used when `textFrom` is a field: the search reads that field). The default is 100. */
48
48
  searchLimit?: number;
49
49
  /** The items the editor's list loads per request while it scrolls (a data source). The default is 50. */
50
50
  pageSize?: number;
51
- /** The maximum number of items containing the header filter's search text that it converts to keys. The default is 1000. */
51
+ /** The maximum number of items containing the header filter's search text that it converts to keys (not used when `textFrom` is a field: the search reads that field). The default is 1000. */
52
52
  filterSearchLimit?: number;
53
- /** With `'byKey'`, the requests at the same time. The default is 6. */
53
+ /** The requests at the same time: of keys with `'byKey'`, of batches with `'batch'`. The default is 6. */
54
54
  parallelRequests?: number;
55
55
  /** The items searched for a pasted text. The default is 50. */
56
56
  pasteSearchLimit?: number;
@@ -14,7 +14,7 @@ export interface GridMasterDetail<T> {
14
14
  enabled?: Bind<boolean>;
15
15
  /** Every row starts open. Changing it, `enabled` or `template` reopens or closes them all. The default is `false`. */
16
16
  autoExpandAll?: Bind<boolean>;
17
- /** The content of a row's details: a component, an element or text, created the first time they appear. */
17
+ /** The content of a row's details: a component or text, created the first time they appear. */
18
18
  template?: (ctx: DetailContext<T>) => unknown;
19
19
  /** Indicates whether a row has details: a value, or a function of the row. The default is `true`. */
20
20
  canExpand?: Bind<boolean> | ((row: T) => boolean);
@@ -1,4 +1,4 @@
1
- import type { EventArgs } from '@motifx/core';
1
+ import type { ComponentBase, EventArgs } from '@motifx/core';
2
2
  import type { GridRowType } from './grid-row-type';
3
3
  /**
4
4
  * Occurs when a row is clicked or double-clicked, after its cell's event. Set `cancel = true` to prevent
@@ -10,7 +10,7 @@ export interface GridRowClickEventArgs<T> extends EventArgs {
10
10
  readonly rowIndex: number;
11
11
  readonly rowType: GridRowType;
12
12
  readonly groupKey?: readonly unknown[];
13
- /** The row element. */
14
- readonly element: HTMLElement;
13
+ /** The row's part. */
14
+ readonly part: ComponentBase;
15
15
  readonly event: MouseEvent;
16
16
  }
@@ -1,3 +1,4 @@
1
+ import type { ComponentBase } from '@motifx/core';
1
2
  import type { DataGrid } from './DataGrid';
2
3
  /**
3
4
  * Occurs while a row is dragged (`rowDragging`'s `onDragStart`, `onDragMove`, `onDragChange`,
@@ -18,8 +19,8 @@ export interface GridRowDragEventArgs<T = any> {
18
19
  readonly itemData: T;
19
20
  /** The row's key, when it has one. */
20
21
  readonly itemKey: unknown;
21
- /** The row's element in the grid it comes from. */
22
- readonly itemElement: HTMLElement;
22
+ /** The row's part in the grid it comes from. */
23
+ readonly itemPart: ComponentBase;
23
24
  readonly fromIndex: number;
24
25
  readonly toIndex: number;
25
26
  /**
@@ -1,4 +1,4 @@
1
- import type { Bind } from '@motifx/core';
1
+ import type { Bind, ComponentBase } from '@motifx/core';
2
2
  import type { GridRowDragEventArgs } from './grid-row-drag-event-args';
3
3
  import type { GridRowDropEventArgs } from './grid-row-drop-event-args';
4
4
  /**
@@ -28,10 +28,10 @@ export interface GridRowDragging<T = any> {
28
28
  data?: Bind<unknown>;
29
29
  /** The directions the copy of the row can move: `'vertical'`, `'horizontal'` or `'both'`. The default is `'both'`. */
30
30
  dragDirection?: Bind<'both' | 'vertical' | 'horizontal'>;
31
- /** An element or CSS selector the dragged row stays inside. By default, none. */
32
- boundary?: Bind<string | HTMLElement | undefined>;
33
- /** An element or CSS selector the copy of the row appears in. The default is the grid. */
34
- container?: Bind<string | HTMLElement | undefined>;
31
+ /** A component, or a CSS selector of one in the page's component tree, the dragged row stays inside. By default, none. */
32
+ boundary?: Bind<string | ComponentBase | undefined>;
33
+ /** A component, or a CSS selector of one in the page's component tree, the copy of the row appears in. The default is the grid. */
34
+ container?: Bind<string | ComponentBase | undefined>;
35
35
  /**
36
36
  * The offset of the copy from the pointer, `{ x, y }` or `'x y'`. By default, where the row was grabbed,
37
37
  * kept level with the rows.
@@ -40,11 +40,11 @@ export interface GridRowDragging<T = any> {
40
40
  x?: number;
41
41
  y?: number;
42
42
  } | string | undefined>;
43
- /** Custom content in place of the copy of the row: a component, an element or text. */
43
+ /** Custom content in place of the copy of the row: a component or text. */
44
44
  dragTemplate?: (e: {
45
45
  itemData: T;
46
- itemElement: HTMLElement;
47
- }) => unknown;
46
+ itemPart: ComponentBase;
47
+ }) => ComponentBase | string;
48
48
  /** The rows scroll while the pointer is near their top or bottom edge. The default is `true`. */
49
49
  autoScroll?: Bind<boolean>;
50
50
  /** The pixels scrolled per frame at the edge. The default is `30`. */
@@ -1,6 +1,7 @@
1
+ import type { ComponentBase } from '@motifx/core';
1
2
  import type { GridRowType } from './grid-row-type';
2
3
  /**
3
- * Occurs when a row is rendered, so that you can style or extend it. The element is reused for other
4
+ * Occurs when a row is rendered, so that you can style or extend it. The part is reused for other
4
5
  * rows while scrolling, so always set and clear what you change.
5
6
  */
6
7
  export interface GridRowPreparedEventArgs<T> {
@@ -10,5 +11,6 @@ export interface GridRowPreparedEventArgs<T> {
10
11
  readonly rowType: GridRowType;
11
12
  readonly groupKey?: readonly unknown[];
12
13
  readonly isSelected: boolean;
13
- readonly element: HTMLElement;
14
+ /** The row's part. */
15
+ readonly part: ComponentBase;
14
16
  }
@@ -1,3 +1,4 @@
1
+ import type { ComponentBase } from '@motifx/core';
1
2
  import type { GridRowType } from './grid-row-type';
2
3
  /** A currently rendered row (`getVisibleRows()`). */
3
4
  export interface GridVisibleRow<T> {
@@ -8,5 +9,6 @@ export interface GridVisibleRow<T> {
8
9
  /** The row's key, or `undefined` on a new row, a group row or while it loads. */
9
10
  readonly key: unknown;
10
11
  readonly groupKey?: readonly unknown[];
11
- readonly element: HTMLElement;
12
+ /** The row's part. */
13
+ readonly part: ComponentBase;
12
14
  }
@@ -31,6 +31,7 @@ export type { ColumnFeatures } from './column-features';
31
31
  export type { ColumnType } from './column-type';
32
32
  export type { CellContext } from './cell-context';
33
33
  export type { EditorContext } from './editor-context';
34
+ export type { FilterEditorContext } from './filter-editor-context';
34
35
  export type { ListOption } from './list-option';
35
36
  export type { GridLayout } from './grid-layout';
36
37
  export type { ColumnLayout } from './column-layout';
@@ -7,6 +7,8 @@ export declare class CellFormatter {
7
7
  private readonly messages;
8
8
  /** Texts read as yes and as no, besides the yes / no words. */
9
9
  private readonly boolTexts;
10
+ /** The choices of a list column outside a row; `null` while they are on their way. */
11
+ private readonly choicesOf;
10
12
  readonly collator: Intl.Collator;
11
13
  private readonly number;
12
14
  private readonly date;
@@ -18,7 +20,12 @@ export declare class CellFormatter {
18
20
  other: string;
19
21
  },
20
22
  /** Texts read as yes and as no, besides the yes / no words. */
21
- boolTexts?: () => [readonly string[], readonly string[]]);
23
+ boolTexts?: () => [readonly string[], readonly string[]],
24
+ /** The choices of a list column outside a row; `null` while they are on their way. */
25
+ choicesOf?: (col: GridColumn<any>) => {
26
+ value: unknown;
27
+ label: string;
28
+ }[] | null);
22
29
  /** A plain number: record counts, page numbers. */
23
30
  count(n: number): string;
24
31
  /** Display text of a cell; `v` is the value to show (the unsaved edit, when there is one). */
@@ -0,0 +1,23 @@
1
+ import { data } from '@motifx-community/data';
2
+ import type { GridColumn } from '../grid-column';
3
+ import type { ListChoices } from './ListChoices';
4
+ /** A choice as the lists show it. */
5
+ export interface ChoiceRow {
6
+ value: unknown;
7
+ text: string;
8
+ }
9
+ /**
10
+ * The choices of a list column as a data-layer adapter, so a drop-down or the filter builder says it is loading while
11
+ * a function's answer is on its way. `first` leads the list (the filter row's "(All)"). Searching, sorting and paging
12
+ * run over the choices in memory.
13
+ */
14
+ export declare class ChoiceListAdapter<T> extends data.DataAdapter<ChoiceRow, unknown> {
15
+ private readonly choices;
16
+ private readonly column;
17
+ private readonly first;
18
+ constructor(choices: ListChoices<T>, column: GridColumn<T>, first?: ChoiceRow | null);
19
+ protected backendCapabilities(): data.Capabilities;
20
+ protected loadRows(options: data.LoadOptions): Promise<data.LoadResult<ChoiceRow>>;
21
+ protected findRow(key: unknown): Promise<ChoiceRow | undefined>;
22
+ private rows;
23
+ }
@@ -61,7 +61,7 @@ export declare class GridExport<T> {
61
61
  private groupParts;
62
62
  /** Lookup cells and groups export their texts: every key of the rows is resolved first. */
63
63
  private loadTexts;
64
- /** Saves text as a file through a link the browser downloads. */
64
+ /** Saves text as a file through a link the browser downloads; the link needs no place in the page. */
65
65
  download(text: string, fileName: string): void;
66
66
  private rows;
67
67
  /** Selected rows that are loaded, when the key is not one field and the server cannot be asked for them. */
@@ -1,3 +1,4 @@
1
+ import { ListChoices } from './ListChoices';
1
2
  import { data } from '@motifx-community/data';
2
3
  import type { UiStrings } from '../../../core/ui-strings';
3
4
  import type { DataGridProps } from '../data-grid-props';
@@ -95,6 +96,8 @@ export declare class GridModel<T> {
95
96
  readonly values: FilterValues<T>;
96
97
  /** The texts of the lookup columns. */
97
98
  readonly lookups: LookupTexts<T>;
99
+ /** The choices of list columns outside a row (cell text, filter row, search, builder, pasted text). */
100
+ readonly choices: ListChoices<T>;
98
101
  /** What the rows are grouped by, and which groups are open. */
99
102
  readonly groups: GridGroups<T>;
100
103
  /** The summary items, their values and texts. */
@@ -436,6 +439,8 @@ export declare class GridModel<T> {
436
439
  * value, "(empty)"; a value of its own (`calculateGroupValue`, `textFrom`) as it is.
437
440
  */
438
441
  groupValue(node: GroupNode, ask?: boolean): LookupCell;
442
+ /** Whether a column's groups hold its own value: no value of their own, or `calculateGroupValue` naming the column's field (a lookup's key, whose text the group row shows). */
443
+ groupsByOwnValue(col: GridColumn<T>): boolean;
439
444
  /** "Title: value" of a group, as its row and an export show it. */
440
445
  groupCaption(node: GroupNode): string;
441
446
  /** Runs a change of the open groups and puts the active row back on the group or row it showed (or the group that hides it now). */
@@ -0,0 +1,28 @@
1
+ import { type Event as MotifEvent } from '@motifx/core';
2
+ import type { GridColumn } from '../grid-column';
3
+ /**
4
+ * The choices of `list` columns outside a row: the cell text, the filter row, the search, the filter builder and
5
+ * pasted text read them. An array is read as it is; a function is called once per column with no row (`null`), and
6
+ * its answer, a promise too, is kept until `clear()`. `onChanged` tells the column whose choices arrived.
7
+ */
8
+ export declare class ListChoices<T> {
9
+ private readonly entries;
10
+ private readonly changedEmitter;
11
+ readonly onChanged: MotifEvent<string>;
12
+ /** The choices now; `null` while a function's answer is on its way (asking for it the first time). */
13
+ of(col: GridColumn<T>): {
14
+ value: unknown;
15
+ label: string;
16
+ }[] | null;
17
+ /** The choices once they are there; a failed answer is asked for again. */
18
+ load(col: GridColumn<T>): Promise<{
19
+ value: unknown;
20
+ label: string;
21
+ }[]>;
22
+ /** Whether the last answer for the column failed. */
23
+ failed(col: GridColumn<T>): boolean;
24
+ /** Forgets every answer: the functions are asked again when their choices are next needed. */
25
+ clear(): void;
26
+ dispose(): void;
27
+ private ask;
28
+ }
@@ -1,3 +1,4 @@
1
+ import type { ComponentBase } from '@motifx/core';
1
2
  /** The `rowDragging` options as the grid reads them: values, not getters (the handlers are kept apart). */
2
3
  export interface RowDraggingValues {
3
4
  allowReordering: boolean;
@@ -8,8 +9,8 @@ export interface RowDraggingValues {
8
9
  group: string | undefined;
9
10
  data: unknown;
10
11
  dragDirection: 'both' | 'vertical' | 'horizontal';
11
- boundary: string | HTMLElement | undefined;
12
- container: string | HTMLElement | undefined;
12
+ boundary: string | ComponentBase | undefined;
13
+ container: string | ComponentBase | undefined;
13
14
  cursorOffset: {
14
15
  x?: number;
15
16
  y?: number;
@@ -1,23 +1,35 @@
1
+ import type { ComponentBase } from '@motifx/core';
1
2
  import type { ResolvedAction } from './resolved-action';
2
3
  /**
3
4
  * Widths of action buttons, measured once per action (its id, text and look) in a hidden cell and
4
- * kept, so fitting a row's buttons only adds numbers: scrolling triggers no layout. A width of 0
5
- * (the grid is not shown yet) is not kept.
5
+ * kept, so fitting a row's buttons only adds numbers: scrolling triggers no layout. An action not
6
+ * measured yet counts 0 and is measured with the window's next reads; `measured` then asks the rows
7
+ * to fit their buttons again. A width of 0 (the grid is not shown yet) is not kept.
6
8
  */
7
9
  export declare class ActionWidths {
8
10
  private readonly host;
11
+ /** Runs after new widths are kept. */
12
+ private readonly measured;
9
13
  private readonly widths;
10
14
  private frameSize;
11
15
  private box;
12
- constructor(host: () => HTMLElement | null);
16
+ /** Buttons waiting in the hidden cell for the next read, by what they show. */
17
+ private readonly probes;
18
+ /** The "more" button waiting for the next read, with the cell's padding and gap. */
19
+ private moreProbe;
20
+ constructor(host: () => ComponentBase | null,
21
+ /** Runs after new widths are kept. */
22
+ measured?: () => void);
13
23
  /** Measure again (the density changed). */
14
24
  clear(): void;
15
25
  width<T>(a: ResolvedAction<T>): number;
16
- /** The cell's padding (both sides), the gap between buttons and the width of the "more" button. */
26
+ /** The cell's padding (both sides), the gap between buttons and the width of the "more" button; zeros until measured. */
17
27
  frame(): {
18
28
  padding: number;
19
29
  gap: number;
20
30
  more: number;
21
31
  };
32
+ private readonly read;
33
+ private readonly write;
22
34
  private cell;
23
35
  }
@@ -1,12 +1,12 @@
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 { HeaderHost } from './header-host';
4
4
  import type { HeaderRow } from './HeaderRow';
5
5
  /**
6
6
  * The rows of band headers above the header row: a row per level of bands, each band's header over
7
7
  * its columns (`aria-colindex` of its first one, `aria-colspan`), the places over other columns
8
- * empty. Over a pinned column no band covers stands an empty piece that stays with it. Plain
9
- * elements in the head's row group, before the header row. Dragging a band's header moves the band,
8
+ * empty. Over a pinned column no band covers stands an empty piece that stays with it. Parts of
9
+ * the head's row group, before the header row. Dragging a band's header moves the band,
10
10
  * with its columns, among the columns and bands beside it; its menu button opens its menu. It
11
11
  * follows nothing: each band's header draws itself again whenever the grid tells a change.
12
12
  */
@@ -14,11 +14,11 @@ export declare class BandRows<T> {
14
14
  private readonly grid;
15
15
  private readonly host;
16
16
  private readonly header;
17
- /** Holds the components of the bands' own header contents. */
18
- private readonly owner;
19
- readonly rows: HTMLDivElement[];
17
+ /** The band rows, components of the head before the header row. */
18
+ readonly rows: Component<HTMLDivElement>[];
20
19
  /** The mark of where a dragged band lands, over every header row. */
21
- readonly indicator: HTMLDivElement;
20
+ readonly indicator: Component<HTMLDivElement>;
21
+ /** The bands' headers, by band: each a component of its row, its title a component holding a band's own content. */
22
22
  private readonly cells;
23
23
  /** The empty pieces over pinned columns, by row and field. */
24
24
  private readonly fillers;
@@ -26,15 +26,13 @@ export declare class BandRows<T> {
26
26
  /** What draws each band's header, by band. */
27
27
  private readonly drawers;
28
28
  private head;
29
- constructor(grid: GridModel<T>, host: HeaderHost, header: HeaderRow<T>,
30
- /** Holds the components of the bands' own header contents. */
31
- owner: ComponentBase);
29
+ constructor(grid: GridModel<T>, host: HeaderHost, header: HeaderRow<T>);
32
30
  /** Draws every band's header as the grid is now. */
33
31
  draw(): void;
34
- /** The header element of a band, while it shows. */
35
- cellElement(id: string): HTMLElement | undefined;
36
- /** Lays the rows out over the visible columns, in `head` before the header row. */
37
- arrange(visible: readonly string[], head: HTMLElement, before: Element): void;
32
+ /** The header of a band, while it is placed in its row. */
33
+ cellPart(id: string): Component<HTMLDivElement> | undefined;
34
+ /** Lays the rows out over the visible columns, in `head` before the header row (`before`). */
35
+ arrange(visible: readonly string[], head: ComponentBase, before: ComponentBase): void;
38
36
  dispose(): void;
39
37
  private makeRow;
40
38
  private makeCell;
@@ -5,7 +5,6 @@ import type { GridModel } from '../model/GridModel';
5
5
  import type { EditorHost } from './editor-host';
6
6
  import type { EditorKind } from './editor-kind';
7
7
  import type { EditorValue } from './editor-value';
8
- /** Rows of a lookup editor's list asked for at a time. */
9
8
  type Options = Record<string, unknown>;
10
9
  /**
11
10
  * The editor of the cell in edit mode: a kit field drawn without its frame inside the cell (a
@@ -27,7 +26,7 @@ export declare class CellEditor<T> {
27
26
  private readonly host;
28
27
  private readonly form;
29
28
  readonly kind: EditorKind;
30
- /** The element placed in the cell. */
29
+ /** The part placed in the cell. */
31
30
  readonly box: Component<HTMLDivElement>;
32
31
  /** The edit was called off before the editor was created. */
33
32
  readonly cancelled: boolean;
@@ -50,9 +49,8 @@ export declare class CellEditor<T> {
50
49
  entered: data.RowCheckContext<T>, value: unknown, initialText: string | undefined, host: EditorHost, owner: ComponentBase, prepare?: (options: Options) => boolean, form?: Options | null);
51
50
  /** The editor component: the kit field, or a custom editor's content. */
52
51
  get editor(): ComponentBase | null;
53
- get element(): HTMLElement;
54
- /** The element that takes the keys: the input, the check box, the list's field. */
55
- get input(): HTMLElement | null;
52
+ /** The part that takes the keys: the input, the check box, the list's field. */
53
+ get inputPart(): ComponentBase | null;
56
54
  /** A lookup's list is open. */
57
55
  get listOpen(): boolean;
58
56
  /** Focuses the editor; the text is selected, or the caret goes after what was typed to start editing (a lookup's list opens and searches it). */
@@ -1,24 +1,36 @@
1
- import type { ComponentBase } from '@motifx/core';
1
+ import { type ComponentBase } from '@motifx/core';
2
+ import type { CellTipTarget } from './cell-tip-target';
3
+ /** The tip of a header title or a summary cell: its `data-error` message, its `data-hint`, and its text unless it holds buttons. */
4
+ export declare function tipOfPart(part: ComponentBase): CellTipTarget;
2
5
  /**
3
6
  * The full text of a cell or header title cut off with an ellipsis, the message of a cell with an
4
7
  * error, or the hint of an action button, in the kit's `Tooltip`: after the pointer rests on it a
5
8
  * moment, or at once when it gets keyboard focus. Whether the text is cut off is measured only then.
6
9
  */
7
10
  export declare class CellTip {
11
+ private readonly owner;
8
12
  /** Milliseconds the pointer rests before the tip shows. */
9
13
  private readonly delay;
10
14
  private readonly tip;
11
15
  private timer;
12
16
  private current;
17
+ /** The part whose text is measured now, and whether its tip then waits for the pointer to rest. */
18
+ private checking;
19
+ private stopCheck;
13
20
  constructor(owner: ComponentBase,
14
21
  /** Milliseconds the pointer rests before the tip shows. */
15
22
  delay: () => number);
16
- /** The pointer moved over the grid. */
17
- hover(e: PointerEvent): void;
18
- /** A cell or a header got keyboard focus. */
19
- focus(el: HTMLElement): void;
23
+ /** The pointer is on a cell, a header title or a button of the grid; `null` when it is on none of them. */
24
+ hovered(target: CellTipTarget | null): void;
25
+ /** A cell or a header title got keyboard focus. */
26
+ focused(target: CellTipTarget | null): void;
27
+ /** A cell or a header got keyboard focus: a header shows the tip of its title. */
28
+ focus(part: ComponentBase): void;
20
29
  hide(): void;
21
- /** Whether there is something to show: a message, a hint, or text that is cut off. */
22
- private worth;
23
- private show;
30
+ /** Opens the tip of a part that has something to show: a message, a hint, or text that is cut off, measured with the window's next reads. */
31
+ private openIfWorth;
32
+ private readonly readCut;
33
+ private readonly writeCut;
34
+ private open;
35
+ private showTip;
24
36
  }
@@ -31,9 +31,9 @@ export declare class ColumnMenu<T> {
31
31
  * Opens the menu of a column or band under `anchor`; focus goes back to `returnTo` when it
32
32
  * closes. `prepare` may change the items, or return `null` to open nothing.
33
33
  */
34
- open(field: string, anchor: HTMLElement, returnTo: HTMLElement, prepare?: (items: MenuItem[]) => MenuItem[] | null): void;
34
+ open(field: string, anchor: ComponentBase, returnTo: ComponentBase, prepare?: (items: MenuItem[]) => MenuItem[] | null): void;
35
35
  /** Opens only the list of columns under `anchor` (the toolbar's button); focus goes back to it. */
36
- openColumns(anchor: HTMLElement): void;
36
+ openColumns(anchor: ComponentBase): void;
37
37
  /** Whether the list of columns would have a column the user can hide. Reactive. */
38
38
  hasColumns(): boolean;
39
39
  close(): void;
@@ -50,6 +50,8 @@ export declare class ColumnMenu<T> {
50
50
  private shownLeaves;
51
51
  /** What the tree's check boxes say: the columns checked show (with their bands), the others hide; the last shown one stays. */
52
52
  private choose;
53
+ /** The header filter of the column, under the header the menu was opened for. */
54
+ private openHeaderFilter;
53
55
  private hide;
54
56
  private chosen;
55
57
  /** The items of the menu of a column or band, in groups; an item whose feature is off is not visible. */
@@ -1,3 +1,4 @@
1
+ import type { ComponentBase } from '@motifx/core';
1
2
  import type { ColumnModel } from '../model/ColumnModel';
2
3
  import type { StickyOffset } from '../model/sticky-offset';
3
4
  /**
@@ -15,7 +16,7 @@ export declare class ColumnStyles<T> {
15
16
  private written;
16
17
  private sheet;
17
18
  private root;
18
- private styleEl;
19
+ private style;
19
20
  private stopWatch;
20
21
  constructor(columns: ColumnModel<T>, gridId: string);
21
22
  /** `placed`: every column's cells get their track by number, so a row may leave out the cells of columns not drawn (virtual columns). */
@@ -24,7 +25,7 @@ export declare class ColumnStyles<T> {
24
25
  first: number;
25
26
  count: number;
26
27
  }[], placed?: boolean): void;
27
- attach(host: HTMLElement): void;
28
+ attach(owner: ComponentBase): void;
28
29
  detach(): void;
29
30
  private drop;
30
31
  private apply;