@motifx-community/ui 0.1.0-beta.13 → 0.1.0-beta.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (459) hide show
  1. package/CHANGELOG.md +379 -0
  2. package/README.md +2 -0
  3. package/dist/components/chart/Chart.d.ts +6 -4
  4. package/dist/components/chart/ChartPlot.d.ts +2 -1
  5. package/dist/components/chart/plot-view.d.ts +10 -2
  6. package/dist/components/chat/Chat.d.ts +276 -0
  7. package/dist/components/chat/ChatComposer.d.ts +172 -0
  8. package/dist/components/chat/ChatReply.d.ts +53 -0
  9. package/dist/components/chat/ChatWriter.d.ts +119 -0
  10. package/dist/components/chat/chat-ask-form.d.ts +64 -0
  11. package/dist/components/chat/chat-asked-entry.d.ts +21 -0
  12. package/dist/components/chat/chat-attachment-entry.d.ts +18 -0
  13. package/dist/components/chat/chat-choices-view.d.ts +40 -0
  14. package/dist/components/chat/chat-command.d.ts +7 -0
  15. package/dist/components/chat/chat-compaction-entry.d.ts +19 -0
  16. package/dist/components/chat/chat-composer-props.d.ts +63 -0
  17. package/dist/components/chat/chat-context-changed-event-args.d.ts +8 -0
  18. package/dist/components/chat/chat-context-item.d.ts +14 -0
  19. package/dist/components/chat/chat-copy-button.d.ts +11 -0
  20. package/dist/components/chat/chat-entry.d.ts +20 -0
  21. package/dist/components/chat/chat-flow-view.d.ts +32 -0
  22. package/dist/components/chat/chat-form-entry.d.ts +24 -0
  23. package/dist/components/chat/chat-form-view.d.ts +48 -0
  24. package/dist/components/chat/chat-history-event-args.d.ts +31 -0
  25. package/dist/components/chat/chat-load-older-event-args.d.ts +17 -0
  26. package/dist/components/chat/chat-look.d.ts +33 -0
  27. package/dist/components/chat/chat-mention.d.ts +21 -0
  28. package/dist/components/chat/chat-message-status.d.ts +2 -0
  29. package/dist/components/chat/chat-message.d.ts +23 -0
  30. package/dist/components/chat/chat-notice-entry.d.ts +20 -0
  31. package/dist/components/chat/chat-option.d.ts +7 -0
  32. package/dist/components/chat/chat-part.d.ts +110 -0
  33. package/dist/components/chat/chat-plan-entry.d.ts +25 -0
  34. package/dist/components/chat/chat-props.d.ts +70 -0
  35. package/dist/components/chat/chat-question-view.d.ts +41 -0
  36. package/dist/components/chat/chat-request.d.ts +173 -0
  37. package/dist/components/chat/chat-role.d.ts +2 -0
  38. package/dist/components/chat/chat-search-bar.d.ts +27 -0
  39. package/dist/components/chat/chat-search.d.ts +33 -0
  40. package/dist/components/chat/chat-send-event-args.d.ts +12 -0
  41. package/dist/components/chat/chat-sources-entry.d.ts +22 -0
  42. package/dist/components/chat/chat-text-entry.d.ts +20 -0
  43. package/dist/components/chat/chat-text-part.d.ts +5 -0
  44. package/dist/components/chat/chat-thinking-entry.d.ts +32 -0
  45. package/dist/components/chat/chat-todo-entry.d.ts +15 -0
  46. package/dist/components/chat/chat-tool-entry.d.ts +66 -0
  47. package/dist/components/chat/chat-tool-init.d.ts +18 -0
  48. package/dist/components/chat/chat-turn-view.d.ts +53 -0
  49. package/dist/components/chat/chat-turn.d.ts +8 -0
  50. package/dist/components/chat/chat-value-changed-event-args.d.ts +6 -0
  51. package/dist/components/chat/index.d.ts +22 -0
  52. package/dist/components/contextmenu/ContextMenu.d.ts +4 -0
  53. package/dist/components/contextmenu/context-menu-props.d.ts +6 -0
  54. package/dist/components/datagrid/DataGrid.d.ts +0 -12
  55. package/dist/components/datagrid/column-type.d.ts +2 -1
  56. package/dist/components/datagrid/grid-column.d.ts +4 -1
  57. package/dist/components/datagrid/grid-date-interval.d.ts +2 -1
  58. package/dist/components/datagrid/grid-filter-value.d.ts +2 -7
  59. package/dist/components/datagrid/grid-header-filter-interval.d.ts +2 -2
  60. package/dist/components/datagrid/grid-settings.d.ts +6 -3
  61. package/dist/components/datagrid/grid-sheet-cell.d.ts +3 -6
  62. package/dist/components/datagrid/grid-sheet-column.d.ts +2 -9
  63. package/dist/components/datagrid/grid-sheet-merge.d.ts +2 -7
  64. package/dist/components/datagrid/grid-sheet-row.d.ts +2 -5
  65. package/dist/components/datagrid/grid-sheet.d.ts +3 -2
  66. package/dist/components/datagrid/grid-summary-item.d.ts +5 -2
  67. package/dist/components/datagrid/grid-summary-texts.d.ts +2 -0
  68. package/dist/components/datagrid/grid-summary-type.d.ts +5 -2
  69. package/dist/components/datagrid/grid-summary.d.ts +3 -2
  70. package/dist/components/datagrid/list-option.d.ts +2 -4
  71. package/dist/components/datagrid/model/ColumnModel.d.ts +21 -3
  72. package/dist/components/datagrid/model/FilterValues.d.ts +15 -7
  73. package/dist/components/datagrid/model/GridExport.d.ts +1 -1
  74. package/dist/components/datagrid/model/GridModel.d.ts +2 -2
  75. package/dist/components/datagrid/model/LookupTexts.d.ts +1 -1
  76. package/dist/components/datagrid/view/CellEditor.d.ts +1 -1
  77. package/dist/components/datagrid/view/ColumnStyles.d.ts +1 -1
  78. package/dist/components/datagrid/view/GridBody.d.ts +1 -1
  79. package/dist/components/datagrid/view/HeaderRow.d.ts +3 -1
  80. package/dist/components/draggable/Draggable.d.ts +14 -3
  81. package/dist/components/form/MxForm.d.ts +1 -1
  82. package/dist/components/markdown/Markdown.d.ts +87 -0
  83. package/dist/components/markdown/code-block.d.ts +57 -0
  84. package/dist/components/markdown/code-colorer.d.ts +11 -0
  85. package/dist/components/markdown/code-highlighter.d.ts +9 -0
  86. package/dist/components/markdown/code-run.d.ts +6 -0
  87. package/dist/components/markdown/diagram-renderer.d.ts +21 -0
  88. package/dist/components/markdown/entities.d.ts +2 -0
  89. package/dist/components/markdown/index.d.ts +8 -0
  90. package/dist/components/markdown/inline-writer.d.ts +85 -0
  91. package/dist/components/markdown/markdown-context.d.ts +53 -0
  92. package/dist/components/markdown/markdown-link-click-event-args.d.ts +9 -0
  93. package/dist/components/markdown/markdown-props.d.ts +40 -0
  94. package/dist/components/markdown/markdown-writer.d.ts +95 -0
  95. package/dist/components/markdown/math-block.d.ts +22 -0
  96. package/dist/components/markdown/math-renderer.d.ts +18 -0
  97. package/dist/components/markdown/safe-href.d.ts +5 -0
  98. package/dist/components/markdown/text-run.d.ts +7 -0
  99. package/dist/components/menubar/MenuBar.d.ts +4 -0
  100. package/dist/components/menubar/menu-bar-props.d.ts +6 -0
  101. package/dist/components/pivotgrid/PivotGrid.d.ts +415 -0
  102. package/dist/components/pivotgrid/index.d.ts +44 -0
  103. package/dist/components/pivotgrid/model/PivotArrangement.d.ts +29 -0
  104. package/dist/components/pivotgrid/model/PivotAxisWindow.d.ts +169 -0
  105. package/dist/components/pivotgrid/model/PivotCellRanges.d.ts +63 -0
  106. package/dist/components/pivotgrid/model/PivotCellWindow.d.ts +47 -0
  107. package/dist/components/pivotgrid/model/PivotChart.d.ts +49 -0
  108. package/dist/components/pivotgrid/model/PivotDisplay.d.ts +61 -0
  109. package/dist/components/pivotgrid/model/PivotDrill.d.ts +19 -0
  110. package/dist/components/pivotgrid/model/PivotExpansion.d.ts +44 -0
  111. package/dist/components/pivotgrid/model/PivotFields.d.ts +55 -0
  112. package/dist/components/pivotgrid/model/PivotFilterValues.d.ts +36 -0
  113. package/dist/components/pivotgrid/model/PivotLayout.d.ts +75 -0
  114. package/dist/components/pivotgrid/model/PivotLoader.d.ts +29 -0
  115. package/dist/components/pivotgrid/model/PivotSheet.d.ts +44 -0
  116. package/dist/components/pivotgrid/model/PivotStateStore.d.ts +19 -0
  117. package/dist/components/pivotgrid/model/PivotTable.d.ts +78 -0
  118. package/dist/components/pivotgrid/model/PivotTexts.d.ts +47 -0
  119. package/dist/components/pivotgrid/model/PivotWindows.d.ts +120 -0
  120. package/dist/components/pivotgrid/model/pivot-copy.d.ts +26 -0
  121. package/dist/components/pivotgrid/model/pivot-csv.d.ts +9 -0
  122. package/dist/components/pivotgrid/model/pivot-header-cell.d.ts +19 -0
  123. package/dist/components/pivotgrid/model/pivot-line-key.d.ts +17 -0
  124. package/dist/components/pivotgrid/model/pivot-line.d.ts +14 -0
  125. package/dist/components/pivotgrid/pivot-grid-area.d.ts +2 -0
  126. package/dist/components/pivotgrid/pivot-grid-cell-click-event-args.d.ts +5 -0
  127. package/dist/components/pivotgrid/pivot-grid-cell-context.d.ts +19 -0
  128. package/dist/components/pivotgrid/pivot-grid-cell-dbl-click-event-args.d.ts +5 -0
  129. package/dist/components/pivotgrid/pivot-grid-cell-range.d.ts +16 -0
  130. package/dist/components/pivotgrid/pivot-grid-cell-selection-changed-event-args.d.ts +6 -0
  131. package/dist/components/pivotgrid/pivot-grid-chart-data.d.ts +15 -0
  132. package/dist/components/pivotgrid/pivot-grid-chart-options.d.ts +19 -0
  133. package/dist/components/pivotgrid/pivot-grid-column-resized-event-args.d.ts +8 -0
  134. package/dist/components/pivotgrid/pivot-grid-column-resizing.d.ts +15 -0
  135. package/dist/components/pivotgrid/pivot-grid-column.d.ts +19 -0
  136. package/dist/components/pivotgrid/pivot-grid-content-ready-event-args.d.ts +6 -0
  137. package/dist/components/pivotgrid/pivot-grid-context-menu-preparing-event-args.d.ts +22 -0
  138. package/dist/components/pivotgrid/pivot-grid-copying-event-args.d.ts +10 -0
  139. package/dist/components/pivotgrid/pivot-grid-custom-summary-info.d.ts +15 -0
  140. package/dist/components/pivotgrid/pivot-grid-data-error-event-args.d.ts +5 -0
  141. package/dist/components/pivotgrid/pivot-grid-drill-down.d.ts +14 -0
  142. package/dist/components/pivotgrid/pivot-grid-expanded-event-args.d.ts +6 -0
  143. package/dist/components/pivotgrid/pivot-grid-expanding-event-args.d.ts +9 -0
  144. package/dist/components/pivotgrid/pivot-grid-export-cell.d.ts +21 -0
  145. package/dist/components/pivotgrid/pivot-grid-export-options.d.ts +16 -0
  146. package/dist/components/pivotgrid/pivot-grid-export.d.ts +17 -0
  147. package/dist/components/pivotgrid/pivot-grid-exported-event-args.d.ts +9 -0
  148. package/dist/components/pivotgrid/pivot-grid-exporting-event-args.d.ts +17 -0
  149. package/dist/components/pivotgrid/pivot-grid-field-chooser.d.ts +20 -0
  150. package/dist/components/pivotgrid/pivot-grid-field-panel.d.ts +16 -0
  151. package/dist/components/pivotgrid/pivot-grid-field.d.ts +110 -0
  152. package/dist/components/pivotgrid/pivot-grid-fields-changed-event-args.d.ts +8 -0
  153. package/dist/components/pivotgrid/pivot-grid-filter-value.d.ts +4 -0
  154. package/dist/components/pivotgrid/pivot-grid-group-interval.d.ts +7 -0
  155. package/dist/components/pivotgrid/pivot-grid-header-filter-items-request.d.ts +9 -0
  156. package/dist/components/pivotgrid/pivot-grid-header-filter-items.d.ts +7 -0
  157. package/dist/components/pivotgrid/pivot-grid-load-panel.d.ts +11 -0
  158. package/dist/components/pivotgrid/pivot-grid-props.d.ts +121 -0
  159. package/dist/components/pivotgrid/pivot-grid-sheet-options.d.ts +14 -0
  160. package/dist/components/pivotgrid/pivot-grid-sheet.d.ts +19 -0
  161. package/dist/components/pivotgrid/pivot-grid-state.d.ts +54 -0
  162. package/dist/components/pivotgrid/pivot-grid-summary-cell.d.ts +29 -0
  163. package/dist/components/pivotgrid/pivot-grid-summary-display-mode.d.ts +5 -0
  164. package/dist/components/pivotgrid/pivot-grid-summary-type.d.ts +5 -0
  165. package/dist/components/pivotgrid/view/PivotFieldChooser.d.ts +71 -0
  166. package/dist/components/pivotgrid/view/PivotFieldPanel.d.ts +92 -0
  167. package/dist/components/pivotgrid/view/PivotView.d.ts +263 -0
  168. package/dist/components/resizable/Resizable.d.ts +2 -0
  169. package/dist/components/ribbonmenu/RibbonKeyHints.d.ts +4 -0
  170. package/dist/components/ribbonmenu/RibbonMenu.d.ts +4 -1
  171. package/dist/components/ribbonmenu/ribbon-menu-custom-menu-opening-event-args.d.ts +8 -4
  172. package/dist/components/ribbonmenu/ribbon-menu-props.d.ts +6 -0
  173. package/dist/components/scheduler/view/TimeView.d.ts +2 -0
  174. package/dist/components/scrollview/ScrollView.d.ts +48 -1
  175. package/dist/components/scrollview/index.d.ts +1 -0
  176. package/dist/components/scrollview/scroll-end-changed-event-args.d.ts +7 -0
  177. package/dist/components/scrollview/scroll-view-props.d.ts +9 -0
  178. package/dist/components/splitter/Splitter.d.ts +1 -3
  179. package/dist/components/tabdocs/TabDocumentManager.d.ts +3 -2
  180. package/dist/components/textarea/TextArea.d.ts +11 -0
  181. package/dist/components/textarea/text-area-props.d.ts +12 -1
  182. package/dist/components/textbox/TextBox.d.ts +3 -0
  183. package/dist/components/textbox/text-box-props.d.ts +3 -0
  184. package/dist/components/toolbar/Toolbar.d.ts +70 -1
  185. package/dist/components/toolbar/index.d.ts +5 -0
  186. package/dist/components/toolbar/toolbar-added-item.d.ts +9 -0
  187. package/dist/components/toolbar/toolbar-custom-menu-opening-event-args.d.ts +23 -0
  188. package/dist/components/toolbar/toolbar-customization.d.ts +18 -0
  189. package/dist/components/toolbar/toolbar-customized-event-args.d.ts +7 -0
  190. package/dist/components/toolbar/toolbar-item-display.d.ts +2 -0
  191. package/dist/components/toolbar/toolbar-item.d.ts +11 -1
  192. package/dist/components/toolbar/toolbar-props.d.ts +26 -0
  193. package/dist/components/toolbar/toolbar-targets.d.ts +22 -0
  194. package/dist/core/clipboard.d.ts +11 -0
  195. package/dist/core/enter-key-hint.d.ts +2 -0
  196. package/dist/core/look-watch.d.ts +2 -2
  197. package/dist/core/measure/look.d.ts +1 -1
  198. package/dist/core/measure/on-layout.d.ts +1 -1
  199. package/dist/core/measure/scroll.d.ts +3 -1
  200. package/dist/core/save-text.d.ts +2 -0
  201. package/dist/core/ui-strings.d.ts +190 -0
  202. package/dist/excel/excel-pivot-customize-cell-args.d.ts +8 -0
  203. package/dist/excel/excel-pivot-export-options.d.ts +44 -0
  204. package/dist/excel/excel-pivot-export-result.d.ts +6 -0
  205. package/dist/excel/export-pivot-grid.d.ts +35 -0
  206. package/dist/excel/index.d.ts +4 -0
  207. package/dist/excel/index.js +190 -56
  208. package/dist/excel/index.js.map +1 -1
  209. package/dist/excel/write-sheet.d.ts +16 -0
  210. package/dist/{formula-guard-NYlpoA-t.js → formula-guard-Bx48S0u3.js} +2 -2
  211. package/dist/formula-guard-Bx48S0u3.js.map +1 -0
  212. package/dist/generated/tokens.d.ts +7527 -4097
  213. package/dist/index.d.ts +6 -0
  214. package/dist/index.js +65982 -49896
  215. package/dist/index.js.map +1 -1
  216. package/dist/locales/en.json +179 -1
  217. package/dist/locales/tr.json +179 -1
  218. package/dist/parts/customizer/Customizer.d.ts +12 -6
  219. package/dist/parts/customizer/customizer-display.d.ts +2 -0
  220. package/dist/parts/customizer/customizer-node.d.ts +5 -0
  221. package/dist/parts/customizer/customizer-source.d.ts +15 -3
  222. package/dist/parts/item-layout/layout-added-item.d.ts +2 -2
  223. package/dist/parts/menu/MenuList.d.ts +5 -0
  224. package/dist/parts/popup/Popup.d.ts +2 -0
  225. package/dist/{components/datagrid/model → parts/table}/CellFormatter.d.ts +8 -8
  226. package/dist/{components/datagrid/view → parts/table}/HeaderFilter.d.ts +16 -11
  227. package/dist/parts/table/OffsetList.d.ts +21 -0
  228. package/dist/parts/table/ScaledOffsets.d.ts +32 -0
  229. package/dist/{components/datagrid/model → parts/table}/ValueIntervals.d.ts +12 -5
  230. package/dist/{components/datagrid/model → parts/table}/ValueListAdapter.d.ts +4 -4
  231. package/dist/parts/table/date-interval.d.ts +2 -0
  232. package/dist/parts/table/date-type.d.ts +3 -0
  233. package/dist/{components/datagrid/model → parts/table}/filter-tree-node.d.ts +3 -1
  234. package/dist/parts/table/filter-value.d.ts +9 -0
  235. package/dist/parts/table/format-column.d.ts +14 -0
  236. package/dist/parts/table/header-filter-host.d.ts +27 -0
  237. package/dist/parts/table/option-of.d.ts +6 -0
  238. package/dist/parts/table/slice-sheet.d.ts +8 -0
  239. package/dist/parts/table/table-sheet-cell.d.ts +13 -0
  240. package/dist/parts/table/table-sheet-column.d.ts +11 -0
  241. package/dist/parts/table/table-sheet-merge.d.ts +9 -0
  242. package/dist/parts/table/table-sheet-row.d.ts +8 -0
  243. package/dist/parts/table/table-sheet.d.ts +24 -0
  244. package/dist/parts/table/value-interval.d.ts +6 -0
  245. package/dist/{components/datagrid/model → parts/table}/value-list.d.ts +7 -2
  246. package/dist/parts/table/value-loader.d.ts +8 -0
  247. package/dist/parts/table/value-option.d.ts +5 -0
  248. package/dist/parts/table/value-type.d.ts +5 -0
  249. package/dist/parts/table/values-result.d.ts +6 -0
  250. package/dist/parts/window/follow-pointer.d.ts +9 -3
  251. package/dist/parts/window-list/WindowList.d.ts +105 -0
  252. package/dist/parts/window-list/window-list-source.d.ts +10 -0
  253. package/dist/pdf/export-pivot-grid.d.ts +21 -0
  254. package/dist/pdf/index.d.ts +3 -0
  255. package/dist/pdf/index.js +143 -16
  256. package/dist/pdf/index.js.map +1 -1
  257. package/dist/pdf/pdf-customize-cell-args.d.ts +1 -1
  258. package/dist/pdf/pdf-pivot-cell-args.d.ts +25 -0
  259. package/dist/pdf/pdf-pivot-export-options.d.ts +61 -0
  260. package/dist/pdf/pdf-table.d.ts +38 -6
  261. package/dist/slice-sheet-C116M42H.js +43 -0
  262. package/dist/slice-sheet-C116M42H.js.map +1 -0
  263. package/dist/styles.css +4484 -177
  264. package/dist/tokens/index.d.ts +7527 -4097
  265. package/dist/tokens/index.js +7527 -4097
  266. package/dist/tokens/index.js.map +1 -1
  267. package/dist/{tr-BvKE8jSF.js → tr-BGbF9uCs.js} +359 -3
  268. package/dist/tr-BGbF9uCs.js.map +1 -0
  269. package/docs/accordion.md +1 -1
  270. package/docs/actionsheet.md +1 -1
  271. package/docs/appbar.md +1 -1
  272. package/docs/appmenu-api.md +1 -1
  273. package/docs/appmenu-programmatic.md +1 -1
  274. package/docs/appmenu-search.md +1 -1
  275. package/docs/appmenu.md +1 -1
  276. package/docs/avatar.md +1 -1
  277. package/docs/badge.md +1 -1
  278. package/docs/bar-gauge-angles.md +1 -1
  279. package/docs/bar-gauge-data.md +1 -1
  280. package/docs/bar-gauge-labels.md +1 -1
  281. package/docs/bar-gauge.md +1 -1
  282. package/docs/barcode.md +1 -1
  283. package/docs/bottomnavigation.md +1 -1
  284. package/docs/bottomsheet.md +1 -1
  285. package/docs/breadcrumb.md +1 -1
  286. package/docs/button.md +1 -1
  287. package/docs/buttongroup.md +1 -1
  288. package/docs/buttons.md +1 -1
  289. package/docs/calendar.md +1 -1
  290. package/docs/card.md +1 -1
  291. package/docs/chart-bars.md +1 -1
  292. package/docs/chart-candles.md +1 -1
  293. package/docs/chart-funnel.md +1 -1
  294. package/docs/chart-heatmap.md +1 -1
  295. package/docs/chart-lines.md +1 -1
  296. package/docs/chart-live.md +1 -1
  297. package/docs/chart-pie.md +1 -1
  298. package/docs/chart-radar.md +1 -1
  299. package/docs/chart-ranges.md +1 -1
  300. package/docs/chart-references.md +1 -1
  301. package/docs/chart-scatter.md +1 -1
  302. package/docs/chart-waterfall.md +1 -1
  303. package/docs/chart-zoom.md +1 -1
  304. package/docs/chart.md +1 -1
  305. package/docs/chat.md +1512 -0
  306. package/docs/checkbox.md +1 -1
  307. package/docs/chip.md +2 -2
  308. package/docs/choice.md +1 -1
  309. package/docs/colorbox.md +1 -1
  310. package/docs/combobox.md +1 -1
  311. package/docs/commands.md +1 -1
  312. package/docs/control.md +1 -1
  313. package/docs/data.md +1 -1
  314. package/docs/datagrid-api.md +3 -3
  315. package/docs/datagrid-bands.md +1 -1
  316. package/docs/datagrid-drag-select.md +1 -1
  317. package/docs/datagrid-drag.md +1 -1
  318. package/docs/datagrid-editing.md +1 -1
  319. package/docs/datagrid-filtering.md +2 -2
  320. package/docs/datagrid-forms.md +1 -1
  321. package/docs/datagrid-grouping.md +7 -7
  322. package/docs/datagrid-layout.md +2 -2
  323. package/docs/datagrid-lookups.md +1 -1
  324. package/docs/datagrid-master-detail.md +1 -1
  325. package/docs/datagrid-scrolling.md +1 -1
  326. package/docs/datagrid-selection.md +1 -1
  327. package/docs/datagrid.md +1 -1
  328. package/docs/datebox.md +1 -1
  329. package/docs/daterangebox.md +1 -1
  330. package/docs/display.md +1 -1
  331. package/docs/draggable.md +2 -2
  332. package/docs/drawer.md +1 -1
  333. package/docs/dropdown.md +1 -1
  334. package/docs/editors.md +1 -1
  335. package/docs/feedback.md +1 -1
  336. package/docs/fileuploader.md +1 -1
  337. package/docs/filterbuilder.md +1 -1
  338. package/docs/formlayout.md +1 -1
  339. package/docs/foundations.md +1 -1
  340. package/docs/gallery.md +1 -1
  341. package/docs/gauge-base.md +1 -1
  342. package/docs/gauge-circular.md +1 -1
  343. package/docs/gauge-dashboards.md +1 -1
  344. package/docs/gauge-linear.md +1 -1
  345. package/docs/gauge-markers.md +1 -1
  346. package/docs/gauge-marks.md +1 -1
  347. package/docs/gauge-ranges.md +1 -1
  348. package/docs/gauge-scales.md +1 -1
  349. package/docs/gauge.md +1 -1
  350. package/docs/home.md +1 -1
  351. package/docs/keyboard.md +1 -1
  352. package/docs/language.md +1 -1
  353. package/docs/layout.md +1 -1
  354. package/docs/listbox.md +1 -1
  355. package/docs/loadpanel.md +1 -1
  356. package/docs/lookup.md +1 -1
  357. package/docs/markdown.md +343 -0
  358. package/docs/menus-api.md +3 -1
  359. package/docs/menus-context.md +2 -1
  360. package/docs/menus-customization.md +5 -1
  361. package/docs/menus-merging.md +1 -1
  362. package/docs/menus-programmatic.md +1 -1
  363. package/docs/menus.md +1 -1
  364. package/docs/multiview.md +1 -1
  365. package/docs/navigation.md +1 -1
  366. package/docs/numberbox.md +1 -1
  367. package/docs/otpinput.md +1 -1
  368. package/docs/pagination.md +1 -1
  369. package/docs/pivotgrid-api.md +180 -0
  370. package/docs/pivotgrid-chart.md +132 -0
  371. package/docs/pivotgrid-drilldown.md +142 -0
  372. package/docs/pivotgrid-export.md +207 -0
  373. package/docs/pivotgrid-fields.md +245 -0
  374. package/docs/pivotgrid-keyboard.md +223 -0
  375. package/docs/pivotgrid-layout.md +663 -0
  376. package/docs/pivotgrid-panel.md +223 -0
  377. package/docs/pivotgrid-remote.md +397 -0
  378. package/docs/pivotgrid-sorting.md +379 -0
  379. package/docs/pivotgrid-state.md +245 -0
  380. package/docs/pivotgrid-summaries.md +330 -0
  381. package/docs/pivotgrid.md +295 -0
  382. package/docs/popover.md +1 -1
  383. package/docs/progress.md +1 -1
  384. package/docs/qrcode.md +1 -1
  385. package/docs/radiogroup.md +1 -1
  386. package/docs/rating.md +1 -1
  387. package/docs/resizable.md +1 -1
  388. package/docs/ribbonmenu-api.md +2 -1
  389. package/docs/ribbonmenu-commands.md +1 -1
  390. package/docs/ribbonmenu-customization.md +3 -2
  391. package/docs/ribbonmenu-display.md +1 -1
  392. package/docs/ribbonmenu-layouts.md +1 -1
  393. package/docs/ribbonmenu-programmatic.md +1 -1
  394. package/docs/ribbonmenu.md +3 -1
  395. package/docs/scheduler-agenda.md +1 -1
  396. package/docs/scheduler-big-data.md +1 -1
  397. package/docs/scheduler-editing.md +1 -1
  398. package/docs/scheduler-form.md +1 -1
  399. package/docs/scheduler-icalendar.md +1 -1
  400. package/docs/scheduler-mobile.md +1 -1
  401. package/docs/scheduler-recurrence.md +1 -1
  402. package/docs/scheduler-resources.md +1 -1
  403. package/docs/scheduler-timeline.md +1 -1
  404. package/docs/scheduler.md +1 -1
  405. package/docs/scrollview.md +1 -1
  406. package/docs/shortcuteditor.md +1 -1
  407. package/docs/showcase-home.md +1 -1
  408. package/docs/showcase-mail.md +39 -0
  409. package/docs/showcase.md +1 -1
  410. package/docs/signature.md +1 -1
  411. package/docs/skeleton.md +1 -1
  412. package/docs/slider.md +1 -1
  413. package/docs/sortable.md +3 -6
  414. package/docs/sparkline.md +1 -1
  415. package/docs/speeddial.md +1 -1
  416. package/docs/splitter.md +1 -1
  417. package/docs/stepper.md +1 -1
  418. package/docs/switch.md +1 -1
  419. package/docs/tabdocs-dock.md +1 -1
  420. package/docs/tabdocs-drag.md +1 -1
  421. package/docs/tabdocs-menus.md +1 -1
  422. package/docs/tabdocs-mobile.md +1 -1
  423. package/docs/tabdocs-tabs.md +1 -1
  424. package/docs/tabdocs-windows.md +1 -1
  425. package/docs/tabdocs-workspace.md +1 -1
  426. package/docs/tabdocs.md +1 -1
  427. package/docs/tabs.md +1 -1
  428. package/docs/tagbox.md +1 -1
  429. package/docs/textarea.md +4 -1
  430. package/docs/textbox.md +2 -1
  431. package/docs/tileview.md +1 -1
  432. package/docs/timeline.md +1 -1
  433. package/docs/toast.md +1 -1
  434. package/docs/tokens.md +687 -1
  435. package/docs/toolbar-api.md +80 -0
  436. package/docs/toolbar-customization.md +261 -0
  437. package/docs/toolbar.md +4 -52
  438. package/docs/tooltip.md +1 -1
  439. package/docs/treeview.md +1 -1
  440. package/docs/validationsummary.md +1 -1
  441. package/docs/window.md +1 -1
  442. package/docs/wizard.md +1 -1
  443. package/llms-full.txt +18989 -12344
  444. package/llms.txt +29 -2
  445. package/package.json +2 -2
  446. package/dist/components/datagrid/model/date-type.d.ts +0 -3
  447. package/dist/components/datagrid/model/option-of.d.ts +0 -6
  448. package/dist/components/datagrid/model/value-loader.d.ts +0 -8
  449. package/dist/formula-guard-NYlpoA-t.js.map +0 -1
  450. package/dist/tr-BvKE8jSF.js.map +0 -1
  451. /package/dist/{components/datagrid/model → core}/text-ranges.d.ts +0 -0
  452. /package/dist/{components/datagrid/model → parts/table}/ExtraHeights.d.ts +0 -0
  453. /package/dist/{components/datagrid/model → parts/table}/ScrollGeometry.d.ts +0 -0
  454. /package/dist/{components/datagrid/model → parts/table}/cell-list.d.ts +0 -0
  455. /package/dist/{components/datagrid/model → parts/table}/date-like.d.ts +0 -0
  456. /package/dist/{components/datagrid/view → parts/table}/editor-value.d.ts +0 -0
  457. /package/dist/{components/datagrid/model → parts/table}/formula-guard.d.ts +0 -0
  458. /package/dist/{components/datagrid/model → parts/table}/parse-date-text.d.ts +0 -0
  459. /package/dist/{components/datagrid/model → parts/table}/same-value.d.ts +0 -0
@@ -0,0 +1,15 @@
1
+ import type { PivotGridField } from './pivot-grid-field';
2
+ /**
3
+ * What `calculateCustomSummary` receives, once per step of one cell (or total) over its rows: `'start'` (set the
4
+ * initial `totalValue`), `'calculate'` once per row (add `value` to `totalValue`), and `'finalize'` (adjust
5
+ * `totalValue`, which becomes the cell's value).
6
+ */
7
+ export interface PivotGridCustomSummaryInfo<T = any> {
8
+ readonly field: PivotGridField<T>;
9
+ readonly summaryProcess: 'start' | 'calculate' | 'finalize';
10
+ /** With `'calculate'`, the row's value of the field, or the row itself when the field has neither `field` nor `value`. */
11
+ readonly value: unknown;
12
+ /** With `'calculate'`, the row. */
13
+ readonly row: T | undefined;
14
+ totalValue: unknown;
15
+ }
@@ -0,0 +1,5 @@
1
+ import type { data } from '@motifx-community/data';
2
+ /** Occurs when the pivot fails to load. The pivot also shows the error, with a way to try again. */
3
+ export interface PivotGridDataErrorEventArgs {
4
+ readonly error: data.DataError;
5
+ }
@@ -0,0 +1,14 @@
1
+ import type { data } from '@motifx-community/data';
2
+ /** The rows a data cell sums up, as `drillDown` gives them. */
3
+ export interface PivotGridDrillDown<T = any> {
4
+ /**
5
+ * The rows as a filter of their fields: the cell's members on every level, through their intervals, and what the
6
+ * fields' filters keep. A condition on a field read with `value` is no filter: `dataSource` keeps it in memory.
7
+ */
8
+ readonly filter: data.FilterExpression | null;
9
+ /**
10
+ * A data source of the rows, for a `DataGrid` or anything that reads one: over the pivot's own source and query where
11
+ * its backend applies the filter, so a server reads them a part at a time; otherwise over the rows read and kept here.
12
+ */
13
+ readonly dataSource: data.DataSource<T, any>;
14
+ }
@@ -0,0 +1,6 @@
1
+ /** Occurs after a member opened or closed (and, on a server, its children arrived). */
2
+ export interface PivotGridExpandedEventArgs {
3
+ readonly area: 'row' | 'column';
4
+ readonly path: readonly unknown[];
5
+ readonly expanded: boolean;
6
+ }
@@ -0,0 +1,9 @@
1
+ /** Occurs before a member opens or closes; `cancel` keeps it as it is. */
2
+ export interface PivotGridExpandingEventArgs {
3
+ readonly area: 'row' | 'column';
4
+ /** The member's keys from the top level down. */
5
+ readonly path: readonly unknown[];
6
+ /** `true` when it opens. */
7
+ readonly expanded: boolean;
8
+ cancel: boolean;
9
+ }
@@ -0,0 +1,21 @@
1
+ import type { PivotGridField } from './pivot-grid-field';
2
+ /** A cell of an export, as the pivot shows it: what `exportPivotGrid`'s `customizeCell` receives as `pivotCell`. */
3
+ export interface PivotGridExportCell<T = any> {
4
+ /** Where it stands: the corner over the row headers, a column header, a row header, or a data cell. */
5
+ readonly area: 'corner' | 'column' | 'row' | 'data';
6
+ /** A header's kind: a member, the total of an open member, the grand total, or a data field's title. */
7
+ readonly kind?: 'member' | 'total' | 'grand' | 'dataField';
8
+ /** A header's member: the keys from the top level down; empty for the grand total. */
9
+ readonly path?: readonly unknown[];
10
+ /** A data cell's row and column, and a row header's line, as `onCellClick` names them. */
11
+ readonly rowPath?: readonly unknown[];
12
+ readonly columnPath?: readonly unknown[];
13
+ readonly rowKind?: 'member' | 'total' | 'grand';
14
+ readonly columnKind?: 'member' | 'total' | 'grand';
15
+ /** The data field of a data cell, or of a data field's title. */
16
+ readonly dataField?: PivotGridField<T>;
17
+ /** A data cell's value as it shows it (its display calculation done); a header's text. `null` for an empty cell. */
18
+ readonly value: unknown;
19
+ /** The cell's text as the pivot shows it. */
20
+ readonly text: string;
21
+ }
@@ -0,0 +1,16 @@
1
+ import type { PivotGridSheetOptions } from './pivot-grid-sheet-options';
2
+ /** How `exportCsv()` writes the pivot. Every field has a default. */
3
+ export interface PivotGridExportOptions extends Omit<PivotGridSheetOptions, 'format'> {
4
+ /** The cells' texts as the pivot shows them, or their values (numbers and dates in a neutral form). The default is `'shown'`. */
5
+ values?: 'shown' | 'raw';
6
+ /** The file name. The default is `export.fileName`, else the pivot's `label`, else `export`, with `.csv`. */
7
+ fileName?: string;
8
+ /** Saves the file. Otherwise only the text is returned. The default is `true`. */
9
+ download?: boolean;
10
+ /** The field separator. By default, `;` where the locale writes decimals with a comma, otherwise `,`. */
11
+ separator?: string;
12
+ /** Starts with a byte order mark so that spreadsheets read UTF-8. The default is `true`. */
13
+ bom?: boolean;
14
+ /** Prefixes text that a spreadsheet would run as a formula (`=`, `+`, `-`, `@`) with a `'`. The default is `true`. */
15
+ escapeFormulas?: boolean;
16
+ }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * The `export` prop: what the pivot offers to export. Given, a button at the end of the field panel (`fieldPanel`) and
3
+ * "Export" in the table's menu run it; with several formats they offer each. The pivot writes `'csv'` itself; any other
4
+ * format raises `onExporting` with that `format`, where you write the file (`exportPivotGrid` of
5
+ * `@motifx-community/ui/excel` for `'xlsx'`, of `@motifx-community/ui/pdf` for `'pdf'`).
6
+ *
7
+ * @example
8
+ * export={{ formats: ['xlsx', 'pdf', 'csv'], fileName: 'Sales' }}
9
+ */
10
+ export interface PivotGridExport {
11
+ /** Offers the export. The default is `true`. */
12
+ enabled?: boolean;
13
+ /** The formats offered, in order. The default is `['csv']`. */
14
+ formats?: readonly string[];
15
+ /** The name of the file the pivot saves (CSV), without its extension. The default is the pivot's `label`, else `export`. */
16
+ fileName?: string;
17
+ }
@@ -0,0 +1,9 @@
1
+ /** Occurs after an export is written (`exportCsv`, `exportSheet` and the functions that use it). */
2
+ export interface PivotGridExportedEventArgs {
3
+ /** `'csv'`, or the format the sheet was collected for (`'xlsx'`, `'pdf'`…). */
4
+ readonly format: string;
5
+ /** The rows of lines written, without the rows of column headers. */
6
+ readonly rows: number;
7
+ /** The CSV text, for `'csv'`. */
8
+ readonly text?: string;
9
+ }
@@ -0,0 +1,17 @@
1
+ import type { EventArgs } from '@motifx/core';
2
+ import type { PivotGrid } from './PivotGrid';
3
+ import type { PivotGridExportOptions } from './pivot-grid-export-options';
4
+ /**
5
+ * Occurs before an export starts (`exportCsv`, `exportTo`, the export button, "Export" in the menu). For `'csv'`, change
6
+ * `options` or set `cancel = true`. For a format the pivot does not write, write it here:
7
+ * `exportPivotGrid({ component: e.component, worksheet })` of `@motifx-community/ui/excel` for `'xlsx'`, of
8
+ * `@motifx-community/ui/pdf` for `'pdf'`.
9
+ */
10
+ export interface PivotGridExportingEventArgs extends EventArgs {
11
+ /** `'csv'`, or the format asked for (`'xlsx'`, `'pdf'`…). */
12
+ readonly format: 'csv' | 'xlsx' | 'pdf' | (string & {});
13
+ /** The pivot. */
14
+ readonly component: PivotGrid<any>;
15
+ /** How the CSV is written. */
16
+ options: PivotGridExportOptions;
17
+ }
@@ -0,0 +1,20 @@
1
+ /**
2
+ * The field chooser: a window with every field in a list that searches, each checked while it is in an area, and the
3
+ * four areas as the field panel has them. The user checks a field into an area or out of every area, and moves it with
4
+ * its chip as in the panel.
5
+ */
6
+ export interface PivotGridFieldChooser {
7
+ /** Whether the user can open it: from the field panel's button, and from the pivot's menu. The default is `true`. */
8
+ enabled?: boolean;
9
+ /** The list of every field beside the areas (`'side'`, the default) or over them (`'stacked'`). */
10
+ layout?: 'side' | 'stacked';
11
+ /** Changes apply at once (`'instantly'`, the default), or with OK (`'onDemand'`; Cancel leaves the pivot as it was). */
12
+ applyChangesMode?: 'instantly' | 'onDemand';
13
+ /** The list of every field has a search box. The default is `true`. */
14
+ allowSearch?: boolean;
15
+ /** The window's title. The default is the kit's “Field chooser”. */
16
+ title?: string;
17
+ /** The window's size, in pixels or as CSS. */
18
+ width?: number | string;
19
+ height?: number | string;
20
+ }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * The field panel over the table: an area of chips for each kind of field (filter, data, column and row fields). The
3
+ * user moves a chip from area to area and along its area, by dragging it or by the keys, and turns the order of a row
4
+ * or column field's members by pressing its chip.
5
+ */
6
+ export interface PivotGridFieldPanel {
7
+ /** The default is `false`. */
8
+ visible?: boolean;
9
+ /** Each area shows. The defaults are `true`. */
10
+ showFilterFields?: boolean;
11
+ showDataFields?: boolean;
12
+ showColumnFields?: boolean;
13
+ showRowFields?: boolean;
14
+ /** Whether the chips move. The default is `true`; a field's `allowDragging: false` keeps its chip in place anyway. */
15
+ allowFieldDragging?: boolean;
16
+ }
@@ -0,0 +1,110 @@
1
+ import type { PivotGridArea } from './pivot-grid-area';
2
+ import type { PivotGridCustomSummaryInfo } from './pivot-grid-custom-summary-info';
3
+ import type { PivotGridGroupInterval } from './pivot-grid-group-interval';
4
+ import type { PivotGridHeaderFilterItems } from './pivot-grid-header-filter-items';
5
+ import type { PivotGridSummaryCell } from './pivot-grid-summary-cell';
6
+ import type { PivotGridSummaryDisplayMode } from './pivot-grid-summary-display-mode';
7
+ import type { PivotGridSummaryType } from './pivot-grid-summary-type';
8
+ /**
9
+ * A field of the pivot: a value of the rows placed in an area. A row or column field makes a level of members (or
10
+ * several, with a list of intervals), a data field a value in every cell, a filter field only filters.
11
+ *
12
+ * @example
13
+ * { field: 'date', type: 'date', area: 'column', groupInterval: ['year', 'quarter'] }
14
+ * { field: 'amount', type: 'number', area: 'data', summaryType: 'sum', format: { style: 'currency', currency: 'EUR' } }
15
+ */
16
+ export interface PivotGridField<T = any> {
17
+ /** The key of the value in the row (a dotted path reads a nested value). */
18
+ field?: string;
19
+ /** The name `fieldOption` finds the field by before its `field` and its `title`: two fields of one `field` need it. */
20
+ name?: string;
21
+ /** Reads the value from the row instead of `field`. Such a field is grouped and summed in memory. */
22
+ value?: (row: T) => unknown;
23
+ /** The text in headers. The default is `field`. */
24
+ title?: string;
25
+ /** The value type, which determines the format and the order of members. The default is `'text'`. */
26
+ type?: 'text' | 'number' | 'date' | 'datetime' | 'boolean';
27
+ /** How values show: `Intl` options for numbers and dates, or a function of the value. */
28
+ format?: Intl.NumberFormatOptions | Intl.DateTimeFormatOptions | ((value: unknown) => string);
29
+ /** The area the field is in. Without one, the field is not used. */
30
+ area?: PivotGridArea;
31
+ /** The place in its area; fields without one follow, in the order of `fields`. */
32
+ areaIndex?: number;
33
+ /** Groups a row or column field's values by a part of a date or by ranges of numbers. */
34
+ groupInterval?: PivotGridGroupInterval;
35
+ /** Orders the members by their values (the default) or by their text. */
36
+ sortBy?: 'value' | 'text';
37
+ /**
38
+ * Orders the members by their keys with this function, as `Array.sort` takes one, instead of by their values or texts;
39
+ * members without a value stay last. `sortOrder: 'desc'` turns it around, `sortBySummaryField` comes before it, and
40
+ * the header filter lists the members in its order too.
41
+ */
42
+ compare?: (a: unknown, b: unknown) => number;
43
+ /** The default is `'asc'`. */
44
+ sortOrder?: 'asc' | 'desc';
45
+ /**
46
+ * Orders the members by a data field's grand total (its `name`, `title`, `field` or place among the data fields)
47
+ * instead of by themselves; members of the same total keep their order.
48
+ */
49
+ sortBySummaryField?: string | number;
50
+ /**
51
+ * With `sortBySummaryField`, orders the members by their values in one member of the other axis instead of by their
52
+ * grand totals: its keys from the top level down (`['East']`, `['East', 'Ankara']`).
53
+ */
54
+ sortBySummaryPath?: readonly unknown[];
55
+ /**
56
+ * Keeps only the rows with these values of the field (`'include'`), or every row but those (`'exclude'`); `null`
57
+ * stands for empty values. A field grouped by an interval keeps members: a value is a member of its first level (a
58
+ * year), a list a member from the first level down (`[2024, 2]`, the second quarter of 2024). A filter expression
59
+ * among them (`data.where('amount', '>', 1000)`) counts the rows it passes as one of the values. It applies in every
60
+ * area, and to a field read with `value` too.
61
+ */
62
+ filterValues?: readonly unknown[];
63
+ /** The default is `'include'`. */
64
+ filterType?: 'include' | 'exclude';
65
+ /**
66
+ * Entries of the field's header filter in place of its members: `{ text, value }` items, where a value is a member as
67
+ * `filterValues` takes it or a filter expression, or a function that returns them (and can start from the members).
68
+ */
69
+ headerFilterItems?: PivotGridHeaderFilterItems<T>;
70
+ /** Opens every member of the field's levels at first (a field with a list of intervals opens all of them). */
71
+ expanded?: boolean;
72
+ /** Shows the totals of the field's open members. The default is `true`; the pivot's `show…Totals` come first. */
73
+ showTotals?: boolean;
74
+ /** The default is `true`; a hidden field takes no part. */
75
+ visible?: boolean;
76
+ /** Whether the user can move the field from area to area and along its area. The default is `true`. */
77
+ allowDragging?: boolean;
78
+ /** Whether the user can turn the order of the field's members around. The default is `true`. */
79
+ allowSorting?: boolean;
80
+ /** Whether the user can choose the values the field keeps, in its header filter. The default is `true`. */
81
+ allowFiltering?: boolean;
82
+ /** Whether the user can resize the field's columns (`columnResizing`). The default is `true`. */
83
+ allowResizing?: boolean;
84
+ /**
85
+ * Whether the user can open and close the field's members: by their headers, Enter and Space, and the menu. The default
86
+ * is `true`; `expanded`, `expandAll`, `collapseAll` and the state open them either way.
87
+ */
88
+ allowExpanding?: boolean;
89
+ /** The width of the field's column of row headers in the tabular layout, or of a data field's cells, in pixels. */
90
+ width?: number;
91
+ /** How a data field sums up its rows. The default is `'count'`. */
92
+ summaryType?: PivotGridSummaryType;
93
+ /** The summary of a `custom` data field, computed in memory. */
94
+ calculateCustomSummary?: (info: PivotGridCustomSummaryInfo<T>) => void;
95
+ /**
96
+ * What a data field shows of its summary: the value (the default), its share of the row's, the column's or the grand
97
+ * total, or of its parent member's value on the rows or the columns, or how far it moved from the member before it
98
+ * along `displayAlong`, as a difference or a share. A share shows as a percentage unless the field has a `format`.
99
+ */
100
+ summaryDisplayMode?: PivotGridSummaryDisplayMode;
101
+ /** The axis a variation looks back along: the column before (`'column'`, the default) or the row before. */
102
+ displayAlong?: 'row' | 'column';
103
+ /**
104
+ * Adds up the values of a data field along the columns or the rows, among the members of one parent; the display mode
105
+ * works on the sums.
106
+ */
107
+ runningTotal?: 'row' | 'column';
108
+ /** What a data field shows, worked out from the cell and the cells around it; `null` shows nothing. */
109
+ calculateSummaryValue?: (cell: PivotGridSummaryCell<T>) => unknown;
110
+ }
@@ -0,0 +1,8 @@
1
+ import type { PivotGridField } from './pivot-grid-field';
2
+ /** Occurs after the fields are arranged anew: by the user in the field panel, or by `fieldOption`. */
3
+ export interface PivotGridFieldsChangedEventArgs<T = any> {
4
+ /** The fields as arranged now: `fields` with the changes made since it was given. */
5
+ readonly fields: readonly PivotGridField<T>[];
6
+ /** Whether the user made the change. */
7
+ readonly byUser: boolean;
8
+ }
@@ -0,0 +1,4 @@
1
+ import type { FilterValue } from '../../parts/table/filter-value';
2
+ /** One entry of a field's header filter: its value, its text and its rows. */
3
+ export interface PivotGridFilterValue extends FilterValue {
4
+ }
@@ -0,0 +1,7 @@
1
+ import type { data } from '@motifx-community/data';
2
+ /**
3
+ * How a row or column field groups its values: a part of a date (`'year'`, `'quarter'`, `'month'`, `'day'`,
4
+ * `'dayOfWeek'`, `'date'`), ranges of numbers of a width, or a list of them, which makes one level per entry, the
5
+ * largest first (`['year', 'quarter', 'month']`).
6
+ */
7
+ export type PivotGridGroupInterval = data.PivotInterval | readonly data.PivotInterval[];
@@ -0,0 +1,9 @@
1
+ import type { PivotGridField } from './pivot-grid-field';
2
+ import type { PivotGridFilterValue } from './pivot-grid-filter-value';
3
+ /** What a field's `headerFilterItems` function receives. */
4
+ export interface PivotGridHeaderFilterItemsRequest<T> {
5
+ field: PivotGridField<T>;
6
+ signal: AbortSignal;
7
+ /** Returns the members the header filter would list without the function, with their texts and rows. */
8
+ values(): Promise<PivotGridFilterValue[]>;
9
+ }
@@ -0,0 +1,7 @@
1
+ import type { PivotGridFilterValue } from './pivot-grid-filter-value';
2
+ import type { PivotGridHeaderFilterItemsRequest } from './pivot-grid-header-filter-items-request';
3
+ /**
4
+ * Entries of a field's header filter in place of its members: `{ text, value }` items, where a value is a member as
5
+ * `filterValues` takes it or a filter expression (`data.where('amount', '<', 100)`), or a function that returns them.
6
+ */
7
+ export type PivotGridHeaderFilterItems<T> = readonly PivotGridFilterValue[] | ((request: PivotGridHeaderFilterItemsRequest<T>) => readonly PivotGridFilterValue[] | Promise<readonly PivotGridFilterValue[]>);
@@ -0,0 +1,11 @@
1
+ /** The panel over the table while an export runs: its text, its progress and a button that stops it. */
2
+ export interface PivotGridLoadPanel {
3
+ /** Enables the panel. The default is `true`. */
4
+ enabled?: boolean;
5
+ /** The panel's text. The default is the `pivotExporting` text of `uiLocale`. */
6
+ text?: string;
7
+ /** Shows "1,000 of 25,000 rows" after the text, while a pivot read in parts is read. The default is `true`. */
8
+ showProgress?: boolean;
9
+ /** Shows a button that stops the export (its promise rejects with an `AbortError`). The default is `true`. */
10
+ cancelButton?: boolean;
11
+ }
@@ -0,0 +1,121 @@
1
+ import type { Bind } from '@motifx/core';
2
+ import type { data } from '@motifx-community/data';
3
+ import type { ControlProps } from '../../core/control';
4
+ import type { UiStrings } from '../../core/ui-strings';
5
+ import type { LayoutStorage } from '../datagrid/layout-storage';
6
+ import type { PivotGridCellClickEventArgs } from './pivot-grid-cell-click-event-args';
7
+ import type { PivotGridCellDblClickEventArgs } from './pivot-grid-cell-dbl-click-event-args';
8
+ import type { PivotGridCellContext } from './pivot-grid-cell-context';
9
+ import type { PivotGridContentReadyEventArgs } from './pivot-grid-content-ready-event-args';
10
+ import type { PivotGridCellSelectionChangedEventArgs } from './pivot-grid-cell-selection-changed-event-args';
11
+ import type { PivotGridColumnResizedEventArgs } from './pivot-grid-column-resized-event-args';
12
+ import type { PivotGridColumnResizing } from './pivot-grid-column-resizing';
13
+ import type { PivotGridContextMenuPreparingEventArgs } from './pivot-grid-context-menu-preparing-event-args';
14
+ import type { PivotGridCopyingEventArgs } from './pivot-grid-copying-event-args';
15
+ import type { PivotGridDataErrorEventArgs } from './pivot-grid-data-error-event-args';
16
+ import type { PivotGridExpandedEventArgs } from './pivot-grid-expanded-event-args';
17
+ import type { PivotGridExpandingEventArgs } from './pivot-grid-expanding-event-args';
18
+ import type { PivotGridExport } from './pivot-grid-export';
19
+ import type { PivotGridExportedEventArgs } from './pivot-grid-exported-event-args';
20
+ import type { PivotGridExportingEventArgs } from './pivot-grid-exporting-event-args';
21
+ import type { PivotGridField } from './pivot-grid-field';
22
+ import type { PivotGridFieldChooser } from './pivot-grid-field-chooser';
23
+ import type { PivotGridFieldPanel } from './pivot-grid-field-panel';
24
+ import type { PivotGridFieldsChangedEventArgs } from './pivot-grid-fields-changed-event-args';
25
+ import type { PivotGridState } from './pivot-grid-state';
26
+ /**
27
+ * Props of `PivotGrid`. Each prop is also a settable property, and a function is tracked, except the callbacks and
28
+ * `state`, `layoutKey` and `layoutStorage`, which are read once.
29
+ */
30
+ export interface PivotGridProps<T = any> extends ControlProps {
31
+ /** Rows in memory, pivoted in the browser. */
32
+ data?: Bind<readonly T[]>;
33
+ /**
34
+ * A data source: the pivot covers its query (filter, search). Its adapter computes the pivot on the server when it
35
+ * can (`capabilities.pivot`); otherwise the rows are loaded and pivoted in the browser.
36
+ */
37
+ dataSource?: Bind<data.DataSource<T, any> | null>;
38
+ /** The fields and the areas they are in. A new list drops what the user changed in them. */
39
+ fields?: Bind<readonly PivotGridField<T>[]>;
40
+ /** The field panel over the table, where the user moves the fields between the areas and along them. */
41
+ fieldPanel?: Bind<PivotGridFieldPanel>;
42
+ /** The field chooser window, where the user checks fields into the areas and out of them. */
43
+ fieldChooser?: Bind<PivotGridFieldChooser>;
44
+ /**
45
+ * Whether the user selects data cells, and how many ranges: none (the default), one (`'single'`), or several with Ctrl
46
+ * (`'multiple'`). Ctrl+C copies the ranges, and the active cell without them.
47
+ */
48
+ cellSelection?: Bind<'none' | 'single' | 'multiple'>;
49
+ /** What the user arranged, as `state` read it before, laid over `fields` at first. */
50
+ state?: PivotGridState;
51
+ /**
52
+ * Keeps the state (what the user arranged and opened) in the browser's `localStorage` under this name. A pivot made
53
+ * again with the same name takes it back, over `state`.
54
+ */
55
+ layoutKey?: string;
56
+ /** Where `layoutKey` keeps the state: `sessionStorage`, or any object with `getItem`, `setItem` and `removeItem`. The default is `localStorage`. */
57
+ layoutStorage?: LayoutStorage;
58
+ /**
59
+ * The members a part holds on each axis, where the source computes the parts of pivots (`capabilities.pivotWindow`)
60
+ * and the pivot is read as the view reaches it. The default is 100 rows and 40 columns; read at each load.
61
+ */
62
+ partSize?: {
63
+ rows?: number;
64
+ columns?: number;
65
+ };
66
+ /** Row headers as a tree in one column, indented by level (`'tree'`), or a column per level (`'tabular'`). The default is `'tree'`. */
67
+ rowHeaderLayout?: Bind<'tree' | 'tabular'>;
68
+ /** Where several data fields run: across the columns, or down the rows. The default is `'column'`. */
69
+ dataFieldArea?: Bind<'column' | 'row'>;
70
+ /** The totals of open row members. The default is `true`. */
71
+ showRowTotals?: Bind<boolean>;
72
+ showColumnTotals?: Bind<boolean>;
73
+ /** The grand total row. The default is `true`; an axis without fields shows its grand total anyway. */
74
+ showRowGrandTotals?: Bind<boolean>;
75
+ showColumnGrandTotals?: Bind<boolean>;
76
+ /** Puts totals before their members' children instead of after them, on rows, columns or both. The default is `'none'`. */
77
+ showTotalsPrior?: Bind<'none' | 'rows' | 'columns' | 'both'>;
78
+ /**
79
+ * `false` leaves out the rows (columns) whose data fields are all empty at the grand total of the other axis, with what
80
+ * is below them. A count or a sum is never empty, so it is about averages, minimums, maximums and custom summaries. The
81
+ * default is `true`.
82
+ */
83
+ showEmptyRows?: Bind<boolean>;
84
+ showEmptyColumns?: Bind<boolean>;
85
+ /** The text of a cell no row falls in. The default is none. */
86
+ emptyText?: Bind<string>;
87
+ /** The height of a row in pixels. By default it follows the design language and the density. */
88
+ rowHeight?: Bind<number>;
89
+ /** Content of a data cell in place of its text, made once per cell and given the cell's context. */
90
+ cellTemplate?: (ctx: PivotGridCellContext<T>) => unknown;
91
+ /** A class name for a data cell, read again whenever its value changes. */
92
+ cellClass?: (ctx: PivotGridCellContext<T>) => string | undefined;
93
+ /** The locale of numbers, dates and the order of texts. The default is the kit's language. */
94
+ locale?: Bind<string>;
95
+ /** Strings of its own over `uiLocale.strings`. */
96
+ texts?: Bind<Partial<UiStrings>>;
97
+ /** The accessible name. */
98
+ label?: Bind<string>;
99
+ /** What the pivot offers to export: a button at the end of the field panel and "Export" in the table's menu. */
100
+ export?: Bind<PivotGridExport | undefined>;
101
+ /** How the user resizes columns: by dragging a header's end, or with "Width" in its menu and the arrow keys. */
102
+ columnResizing?: Bind<PivotGridColumnResizing>;
103
+ /**
104
+ * Lets the text of the column headers and of the corner's titles wrap onto more lines, the rows of column headers as tall
105
+ * as it takes; row headers and cells keep one line. The default is `false`.
106
+ */
107
+ wrapColumnHeaders?: Bind<boolean>;
108
+ onCellClick?: (e: PivotGridCellClickEventArgs<T>) => void;
109
+ onCellDblClick?: (e: PivotGridCellDblClickEventArgs<T>) => void;
110
+ onExpanding?: (e: PivotGridExpandingEventArgs) => void;
111
+ onExpanded?: (e: PivotGridExpandedEventArgs) => void;
112
+ onContentReady?: (e: PivotGridContentReadyEventArgs) => void;
113
+ onDataErrorOccurred?: (e: PivotGridDataErrorEventArgs) => void;
114
+ onFieldsChanged?: (e: PivotGridFieldsChangedEventArgs<T>) => void;
115
+ onContextMenuPreparing?: (e: PivotGridContextMenuPreparingEventArgs<T>) => void;
116
+ onCellSelectionChanged?: (e: PivotGridCellSelectionChangedEventArgs) => void;
117
+ onCopying?: (e: PivotGridCopyingEventArgs) => void;
118
+ onExporting?: (e: PivotGridExportingEventArgs) => void;
119
+ onExported?: (e: PivotGridExportedEventArgs) => void;
120
+ onColumnResized?: (e: PivotGridColumnResizedEventArgs<T>) => void;
121
+ }
@@ -0,0 +1,14 @@
1
+ import type { PivotGridLoadPanel } from './pivot-grid-load-panel';
2
+ /** How `exportSheet()` collects the pivot. Every field has a default. */
3
+ export interface PivotGridSheetOptions {
4
+ /** The file format being written, told in `onExported`. The default is `'xlsx'`. */
5
+ format?: string;
6
+ /** Writes the rows of column headers and the corner. The default is `true`. */
7
+ headers?: boolean;
8
+ /** Called after each part of a pivot read in parts arrives, with the rows read and the rows there are. */
9
+ onProgress?: (loaded: number, total: number) => void;
10
+ /** Stops the export; its promise rejects with an `AbortError`. */
11
+ signal?: AbortSignal;
12
+ /** The panel over the table while the export runs; it shows only after a moment. It is enabled by default. */
13
+ loadPanel?: boolean | PivotGridLoadPanel;
14
+ }
@@ -0,0 +1,19 @@
1
+ import type { TableSheet } from '../../parts/table/table-sheet';
2
+ import type { TableSheetCell } from '../../parts/table/table-sheet-cell';
3
+ import type { PivotGridExportCell } from './pivot-grid-export-cell';
4
+ /** A cell of a pivot's sheet: its value and text, and the cell of the pivot it stands for. */
5
+ export interface PivotGridSheetCell<T = any> extends TableSheetCell {
6
+ readonly pivotCell: PivotGridExportCell<T>;
7
+ }
8
+ /**
9
+ * The pivot laid out as rows of cells for a file writer (`exportSheet`): the rows of column headers first, the corner
10
+ * over the columns of row headers, then a row per line of the table: every open member's, read whole where the pivot is
11
+ * read in parts. A header over several lines is merged over them; a number keeps the format its cell shows it with, and
12
+ * the cells of totals are bold.
13
+ */
14
+ export interface PivotGridSheet<T = any> extends TableSheet<PivotGridSheetCell<T>> {
15
+ /** The columns of row headers at the start. */
16
+ readonly headerColumns: number;
17
+ /** How the row headers are laid out: in the tree layout a row's outline level is its member's level. */
18
+ readonly rowHeaderLayout: 'tree' | 'tabular';
19
+ }
@@ -0,0 +1,54 @@
1
+ import type { PivotGridArea } from './pivot-grid-area';
2
+ /**
3
+ * What the user arranged in a pivot: the options of the fields changed over `fields`, and the members open on each
4
+ * axis. Read it from `pivot.state`, store it anywhere, and give it back with `pivot.state = …`; `layoutKey` keeps it in
5
+ * the browser's storage.
6
+ */
7
+ export interface PivotGridState {
8
+ /** The fields the user changed, each with the options changed; a field not listed is as `fields` gives it. */
9
+ fields: PivotGridFieldState[];
10
+ /** The members opened or closed on the rows and on the columns. */
11
+ expanded: {
12
+ row: PivotGridAxisState;
13
+ column: PivotGridAxisState;
14
+ };
15
+ /**
16
+ * The widths the user gave the columns of no field, in pixels: the column of row headers in the tree layout, the column
17
+ * of data field titles, and the data columns where each shows several data fields or none.
18
+ */
19
+ widths?: {
20
+ tree?: number;
21
+ titles?: number;
22
+ data?: number;
23
+ };
24
+ }
25
+ /** A field's options the user changed; `null` for one taken away (a field taken out of every area has `area: null`). */
26
+ export interface PivotGridFieldState {
27
+ /** The field: its `name`, else its `field`, else its `title`, else its place in `fields`. */
28
+ id: string | number;
29
+ area?: PivotGridArea | null;
30
+ areaIndex?: number | null;
31
+ visible?: boolean | null;
32
+ sortOrder?: 'asc' | 'desc' | null;
33
+ sortBySummaryField?: string | number | null;
34
+ sortBySummaryPath?: readonly unknown[] | null;
35
+ filterValues?: readonly unknown[] | null;
36
+ filterType?: 'include' | 'exclude' | null;
37
+ /** The width of the field's columns the user resized, in pixels. */
38
+ width?: number | null;
39
+ }
40
+ /** The members of an axis opened or closed: all at once, a level whole, or one by one. */
41
+ export interface PivotGridAxisState {
42
+ /** Every member opened (`true`) or closed (`false`) at once, by `expandAll(area)` or `collapseAll(area)`. */
43
+ all?: boolean;
44
+ /** The levels opened or closed whole, by their place from the top (0). */
45
+ levels: {
46
+ level: number;
47
+ expanded: boolean;
48
+ }[];
49
+ /** The members opened or closed one by one: their keys from the top level down. */
50
+ members: {
51
+ path: unknown[];
52
+ expanded: boolean;
53
+ }[];
54
+ }
@@ -0,0 +1,29 @@
1
+ import type { PivotGridField } from './pivot-grid-field';
2
+ /**
3
+ * A cell as a data field's `calculateSummaryValue` reads it: where it stands, and the cells around it. A value is what
4
+ * a data field shows before its display calculation: its summary, or with `runningTotal` the running total.
5
+ */
6
+ export interface PivotGridSummaryCell<T = any> {
7
+ /** The keys from the top row level down to the cell's row member; empty for the grand total. */
8
+ readonly rowPath: readonly unknown[];
9
+ readonly columnPath: readonly unknown[];
10
+ readonly rowKind: 'member' | 'total' | 'grand';
11
+ readonly columnKind: 'member' | 'total' | 'grand';
12
+ /** The data field the cell shows. */
13
+ readonly dataField: PivotGridField<T>;
14
+ /**
15
+ * The value of the cell's data field, or of another one (its `name`, `title`, `field` or place among the data fields);
16
+ * `undefined` where no row falls.
17
+ */
18
+ value(dataField?: string | number): unknown;
19
+ /** The cell of the member's parent on an axis: a top member's is the grand total's; `null` for the grand total. */
20
+ parent(axis: 'row' | 'column'): PivotGridSummaryCell<T> | null;
21
+ /** The cell of the member before it among its siblings on an axis; `null` for the first, or for the grand total. */
22
+ previous(axis: 'row' | 'column'): PivotGridSummaryCell<T> | null;
23
+ /** The cell of the member after it among its siblings on an axis; `null` for the last, or for the grand total. */
24
+ next(axis: 'row' | 'column'): PivotGridSummaryCell<T> | null;
25
+ /** The cell at the grand total of an axis, on the same line of the other: `total('column')` is the row's total. */
26
+ total(axis: 'row' | 'column'): PivotGridSummaryCell<T>;
27
+ /** The cell where both grand totals cross. */
28
+ grandTotal(): PivotGridSummaryCell<T>;
29
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * What a data field shows of its summary: the value itself, its share of a total or of its parent member's value, or
3
+ * how far it moved from the member before it (`displayAlong`).
4
+ */
5
+ export type PivotGridSummaryDisplayMode = 'value' | 'percentOfRowTotal' | 'percentOfColumnTotal' | 'percentOfGrandTotal' | 'percentOfRowParent' | 'percentOfColumnParent' | 'absoluteVariation' | 'percentVariation';
@@ -0,0 +1,5 @@
1
+ /**
2
+ * How a data field sums up the rows of a cell: the built-in functions (`countDistinct` counts the different values that
3
+ * are not empty), or `calculateCustomSummary`.
4
+ */
5
+ export type PivotGridSummaryType = 'count' | 'countDistinct' | 'sum' | 'avg' | 'min' | 'max' | 'custom';