@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,169 @@
1
+ import type { data } from '@motifx-community/data';
2
+ import type { PivotSiblings } from './PivotDisplay';
3
+ import type { PivotHeaderCell } from './pivot-header-cell';
4
+ import type { PivotLine } from './pivot-line';
5
+ /** A line of an axis loaded in parts: a `PivotLine`, or a member not read yet (`loading`, the last key of its path `{ loading: place }`). */
6
+ export interface PivotWindowLine extends Omit<PivotLine, 'kind'> {
7
+ readonly kind: PivotLine['kind'] | 'loading';
8
+ }
9
+ /** A header cell of an axis loaded in parts: a `PivotHeaderCell`, or that of a member not read yet. */
10
+ export interface PivotWindowHeader extends Omit<PivotHeaderCell, 'kind'> {
11
+ readonly kind: PivotHeaderCell['kind'] | 'loading';
12
+ }
13
+ /** A level of an axis loaded in parts: how the data layer reads and orders it, and how its members open. */
14
+ export interface PivotWindowLevel<T = unknown> {
15
+ readonly level: data.PivotLevel<T>;
16
+ /** Orders the members of the level here, as the axis shows them; their parent's children then come whole. */
17
+ readonly order?: (a: data.PivotMember, b: data.PivotMember) => number;
18
+ /** Orders them on the data layer by a data field. */
19
+ readonly summary?: data.PivotSummarySort<T>;
20
+ /** An open member of the level has a total line. */
21
+ readonly totals: boolean;
22
+ /** The members of the level are open unless they are closed one by one. */
23
+ readonly open: boolean;
24
+ }
25
+ /** The members and numbers an axis loaded in parts reads; the pivot adds its filter, kept members and data fields. */
26
+ export interface PivotAxisSource<T = unknown> {
27
+ members(levels: readonly data.PivotLevel<T>[], slices: readonly data.PivotSlice[], more: {
28
+ childCounts?: boolean;
29
+ find?: readonly (readonly unknown[])[];
30
+ sortBySummary?: data.PivotSummarySort<T>;
31
+ }, signal: AbortSignal): Promise<data.PivotMembersResult>;
32
+ counts(levels: readonly data.PivotLevel<T>[], paths: readonly (readonly unknown[])[], signal: AbortSignal): Promise<data.PivotCountsResult>;
33
+ }
34
+ /** How an axis loaded in parts lays out its lines, as `PivotLayout` lays out a whole axis. */
35
+ export interface PivotAxisWindowOptions<T = unknown> {
36
+ readonly levels: readonly PivotWindowLevel<T>[];
37
+ /** The lines of one member: the data fields, where they run along the axis; else 1. */
38
+ readonly unit: number;
39
+ /** Totals come before the members they total. */
40
+ readonly prior: boolean;
41
+ /** The row headers stand in one column, an open member heading its children. */
42
+ readonly tree: boolean;
43
+ /** The axis has a grand total line. */
44
+ readonly grand: boolean;
45
+ /** The members a part loads at once. */
46
+ readonly block: number;
47
+ /** The parts kept: those used longest ago go first. */
48
+ readonly cacheBlocks: number;
49
+ /** The members opened or closed one by one, by their paths. */
50
+ readonly explicit: readonly {
51
+ readonly path: readonly unknown[];
52
+ readonly open: boolean;
53
+ }[];
54
+ }
55
+ /**
56
+ * An axis of a pivot loaded in parts, for a view that shows a part of a large result: the members open and the number of
57
+ * every open member's children are known from the start, the members themselves are read in parts as the view reaches
58
+ * them. Its lines are those `PivotLayout` gives once every part is read; a member not read yet stands as a `loading`
59
+ * line. A level opened whole, or ordered here, has its members read whole: the members open must be known to place the
60
+ * others.
61
+ */
62
+ export declare class PivotAxisWindow<T = unknown> {
63
+ private readonly options;
64
+ private readonly source;
65
+ private readonly read;
66
+ private readonly root;
67
+ /** The members opened or closed one by one, by their paths' keys, with their paths as given. */
68
+ private readonly explicit;
69
+ private readonly loading;
70
+ /** The reads of parts on their way. */
71
+ private readonly flying;
72
+ /** The members known, by their paths as `JSON` text. */
73
+ private readonly byPath;
74
+ /** The paths of the members kept through `cacheBlocks`, as `JSON` text. */
75
+ private readonly pinned;
76
+ private readonly controller;
77
+ /** What stops the parts on their way: a new one after each `drop`. */
78
+ private parts;
79
+ private used;
80
+ /** The copies and exports keeping every part read now. */
81
+ private holds;
82
+ /** Members opened whose children are all left out (`nonEmpty`), by path: they stand as ones that do not open. */
83
+ private readonly bare;
84
+ constructor(options: PivotAxisWindowOptions<T>, source: PivotAxisSource<T>, read?: (path: readonly unknown[], values: readonly unknown[]) => void);
85
+ /** The number of lines. */
86
+ get length(): number;
87
+ /** The levels of headers: one per level (and one for data field titles), or one in the tree layout (two with titles). */
88
+ get depth(): number;
89
+ /** Reads the number of the top members and of every open member's children, level by level. */
90
+ prepare(): Promise<void>;
91
+ /** The line at a place. */
92
+ line(i: number): PivotWindowLine;
93
+ /** The lines from `first` up to `end`. */
94
+ lines(first: number, end: number): PivotWindowLine[];
95
+ /** The header cells over the lines from `first` up to `end`, each with all of its lines (as `PivotLayout` gives them). */
96
+ headers(first: number, end: number): PivotWindowHeader[];
97
+ /**
98
+ * Reads the parts the lines from `first` up to `end` wait for; resolves once they came, to whether it read any (a part
99
+ * already on its way is read by the call that asked for it).
100
+ */
101
+ want(first: number, end: number): Promise<boolean>;
102
+ /**
103
+ * Reads the parts that hold the siblings just before and after these members, where they are not known: what a
104
+ * variation or a calculation of a data field reads. Resolves to whether it read any.
105
+ */
106
+ wantSiblings(paths: readonly (readonly unknown[])[]): Promise<boolean>;
107
+ /** A member's siblings as the axis orders them, and its place among them; `null` for the grand total and a member not known. */
108
+ siblings(path: readonly unknown[]): PivotSiblings | null;
109
+ /** How the members of a level are ordered here, where the axis orders them itself (`order`). */
110
+ orderOf(depth: number): PivotWindowLevel<T>['order'];
111
+ /** Whether a member's siblings stand in an order of the axis's own (`order`): they are all known, and added up here. */
112
+ orderedHere(path: readonly unknown[]): boolean;
113
+ /** Reads the parts of these parents' children, one request per level; whether it read any. */
114
+ private readParts;
115
+ /** Resolves once the parts on their way now have come: `want` passes over the parts another call reads. */
116
+ idle(): Promise<void>;
117
+ /** Lets go of the parts on their way, unless a copy holds them: the view moved far from them. */
118
+ drop(): void;
119
+ /** Opens or closes a member one by one; a member opened has the number of its children (and its open children) read. */
120
+ setOpen(path: readonly unknown[], open: boolean): Promise<void>;
121
+ /** Closes for good the open members found to have no children: only `nonEmpty` leaves a member none. */
122
+ private shut;
123
+ /**
124
+ * The place of the line a key names (`placeKey`): a member known, its total, the grand total, or the member at a place
125
+ * not read yet (its key holds `{ loading: place }`); -1 for a member not known.
126
+ */
127
+ indexOf(key: string): number;
128
+ /**
129
+ * Keeps every part read (`true`) until it is let go of as often (`false`): the parts of a copy stay until it is made,
130
+ * those of an export's run until it is written. Let go of by all, the parts past `cacheBlocks` go.
131
+ */
132
+ hold(on: boolean): void;
133
+ /** Keeps the members these keys name through `cacheBlocks`: the active cell, the corners of the cell ranges. */
134
+ pin(keys: readonly string[]): void;
135
+ /** Stops what it reads. */
136
+ dispose(): void;
137
+ /** The first line of a member: its parent's first line of children and the lines of the children before it. */
138
+ private startOf;
139
+ /** Where the child at a place of an open member starts. */
140
+ private childStart;
141
+ /** The data layer's levels down to `n`. */
142
+ private dataLevels;
143
+ private isOpen;
144
+ /**
145
+ * The number of children and the open children of members of one depth: their children come whole where their level
146
+ * opens whole or is ordered here, else they are counted and the children opened one by one are found by their paths.
147
+ */
148
+ private expand;
149
+ /** The children of a member opened one by one, on the parent's own keys. */
150
+ private openedBelow;
151
+ /** Takes the members of a slice read from `skip`: whole, they are every child, in the order the level gives here. */
152
+ private fill;
153
+ /** Lets go of the parts used longest ago, past `cacheBlocks`: their closed members are read again when wanted. */
154
+ private forget;
155
+ /** A member known by its path. */
156
+ private nodeAt;
157
+ /** Takes a member as known under its parent, at its place. */
158
+ private know;
159
+ /** The lines and places of a member and of what it shows below it, its open children measured first. */
160
+ private measure;
161
+ /** The lines a member shows before its children: the grand total first, an open member's heading line or total. */
162
+ private before;
163
+ /** The lines a member shows after its children: its total, the grand total last. */
164
+ private after;
165
+ /** Where a line stands, found down from the top through the open members. */
166
+ private locate;
167
+ /** Whether a member's own cell opens: `false` for a closed member with a level below; `null` otherwise. */
168
+ private openOf;
169
+ }
@@ -0,0 +1,63 @@
1
+ import type { PivotAxisLines } from './PivotTable';
2
+ /** A data cell by the keys of its row line and its column line (`placeKey`). */
3
+ export interface PivotCellKey {
4
+ row: string;
5
+ column: string;
6
+ }
7
+ /** A range of data cells, from the cell where it started to its far corner. */
8
+ export interface PivotCellRangeKeys {
9
+ from: PivotCellKey;
10
+ to: PivotCellKey;
11
+ }
12
+ /** A range as places of the lines of a layout, both ends in. */
13
+ export interface PivotCellRect {
14
+ top: number;
15
+ bottom: number;
16
+ start: number;
17
+ end: number;
18
+ }
19
+ /** The lines of both axes, as a table has them. */
20
+ interface Lines {
21
+ readonly rows: PivotAxisLines;
22
+ readonly columns: PivotAxisLines;
23
+ }
24
+ /**
25
+ * The cell ranges of a pivot, kept by the keys of their lines: a range stays on its cells through a new layout, as a
26
+ * rectangle of the lines between its corners, and leaves once a corner is gone.
27
+ */
28
+ export declare class PivotCellRanges {
29
+ private list;
30
+ private placed;
31
+ get ranges(): readonly PivotCellRangeKeys[];
32
+ get empty(): boolean;
33
+ /** Takes these ranges in place of the others; returns whether they are others. */
34
+ set(list: readonly PivotCellRangeKeys[]): boolean;
35
+ clear(): boolean;
36
+ /** A range of one cell, in place of the others or after them (`add`). */
37
+ start(at: PivotCellKey, add: boolean): boolean;
38
+ /** Moves the far corner of the last range, or starts one there. */
39
+ extend(to: PivotCellKey): boolean;
40
+ /** The ranges as rectangles of the lines of `lines`; those with a corner gone leave. */
41
+ rects(lines: Lines): readonly PivotCellRect[];
42
+ /** The corners of the ranges as places of the lines of `lines`; those with a corner gone leave. */
43
+ ends(lines: Lines): {
44
+ from: {
45
+ row: number;
46
+ column: number;
47
+ };
48
+ to: {
49
+ row: number;
50
+ column: number;
51
+ };
52
+ }[];
53
+ /** Whether the cell of row line `row` and column line `column` of `lines` is in a range. */
54
+ has(lines: Lines, row: number, column: number): boolean;
55
+ /** The number of cells in the ranges, each once. */
56
+ size(lines: Lines): number;
57
+ /** The cells in a range, each once, row by row and in each row by column: places of the lines of `lines`. */
58
+ cells(lines: Lines): {
59
+ row: number;
60
+ column: number;
61
+ }[];
62
+ }
63
+ export {};
@@ -0,0 +1,47 @@
1
+ import type { data } from '@motifx-community/data';
2
+ /** The crossings a cell window reads, with running totals; the pivot adds its filter, kept members, levels and data fields. */
3
+ export type PivotCellSource = (rowPaths: readonly (readonly unknown[])[], columnPaths: readonly (readonly unknown[])[], running: readonly data.PivotRunningTotal<any>[], signal: AbortSignal) => Promise<data.PivotCellsResult>;
4
+ /** A running total a data field shows, under the name its values are kept by. */
5
+ export interface PivotCellRunning {
6
+ readonly key: string;
7
+ readonly total: data.PivotRunningTotal<any>;
8
+ }
9
+ /**
10
+ * The values of a pivot loaded in parts, for the cells a view shows: the crossings of the row and column members in
11
+ * view are read where they are missing, those read stay (up to `limit`, the first read going first), and the members'
12
+ * own values at the other axis's total come with the members. Running totals are read with them where asked for.
13
+ */
14
+ export declare class PivotCellWindow {
15
+ private readonly source;
16
+ private readonly limit;
17
+ /** The values of crossings by their paths; `null` for a crossing no row falls in. */
18
+ private readonly cells;
19
+ /** The running totals of crossings, by the running total's name; `null` for none. */
20
+ private readonly runs;
21
+ private readonly asked;
22
+ /** The reads on their way. */
23
+ private readonly flying;
24
+ private controller;
25
+ constructor(source: PivotCellSource, limit?: number);
26
+ /** The values where a row member and a column member cross: `undefined` while not read, `null` for no rows. */
27
+ values(rowPath: readonly unknown[], columnPath: readonly unknown[]): readonly unknown[] | null | undefined;
28
+ /** Takes values read with the members (a member's at the other axis's total). */
29
+ seed(rowPath: readonly unknown[], columnPath: readonly unknown[], values: readonly unknown[]): void;
30
+ /** A running total read where a row member and a column member cross: `{ value }`, `undefined` while not read. */
31
+ running(key: string, rowPath: readonly unknown[], columnPath: readonly unknown[]): {
32
+ value: unknown;
33
+ } | undefined;
34
+ /**
35
+ * Reads the crossings of these members not read yet, and their running totals asked for; resolves once they came, to
36
+ * whether this call read any (`false` at once when none is missing, or when they were let go of).
37
+ */
38
+ want(rowPaths: readonly (readonly unknown[])[], columnPaths: readonly (readonly unknown[])[], running?: readonly PivotCellRunning[]): Promise<boolean>;
39
+ /** Resolves once the reads on their way now have ended: `want` passes over the crossings they read. */
40
+ idle(): Promise<void>;
41
+ /** Lets go of the values on their way: the view moved far from them. */
42
+ drop(): void;
43
+ /** Forgets every value and stops what it reads: the pivot's rows changed. */
44
+ clear(): void;
45
+ private put;
46
+ private putRun;
47
+ }
@@ -0,0 +1,49 @@
1
+ import type { ChartSeries } from '../../chart/chart-series';
2
+ import type { PivotGridChartOptions } from '../pivot-grid-chart-options';
3
+ import type { PivotGridChartRow } from '../pivot-grid-chart-data';
4
+ import type { data } from '@motifx-community/data';
5
+ import type { PivotWindowLine } from './PivotAxisWindow';
6
+ import type { PivotLayout } from './PivotLayout';
7
+ import type { PivotTable } from './PivotTable';
8
+ import type { PivotTexts } from './PivotTexts';
9
+ type Axis = 'row' | 'column';
10
+ type Range = {
11
+ first: number;
12
+ end: number;
13
+ };
14
+ /** A line of an axis as a chart draws it: one member (or total), and its lines, one per data field where they run along it. */
15
+ interface Entry {
16
+ readonly key: string;
17
+ readonly text: string;
18
+ /** The line of a data field; the member's only line where the data fields do not run along the axis. */
19
+ line(measure: number): PivotWindowLine | undefined;
20
+ }
21
+ /** A row of the chart: its text, and its value where it meets a line of the other axis in a data field. */
22
+ export interface PivotChartArgument {
23
+ readonly text: string;
24
+ value(other: PivotWindowLine, measure: number): unknown;
25
+ }
26
+ /** The chart of a pivot: its rows and its series. */
27
+ export interface PivotChart {
28
+ readonly rows: PivotGridChartRow[];
29
+ readonly series: ChartSeries<PivotGridChartRow>[];
30
+ }
31
+ /** The data fields a chart draws, by their places. */
32
+ export declare function chartMeasures<T>(table: PivotTable<T>, o: PivotGridChartOptions): number[];
33
+ /**
34
+ * The lines of an axis a chart draws, one entry per member: those the table shows (in view where it is read in parts),
35
+ * members and, as asked, totals and grand totals.
36
+ */
37
+ export declare function chartEntries<T>(table: PivotTable<T>, texts: PivotTexts<T>, axis: Axis, o: PivotGridChartOptions, view: Range | null): Entry[];
38
+ /** The rows of a chart from the lines the table shows on the argument axis. */
39
+ export declare function shownArguments<T>(table: PivotTable<T>, texts: PivotTexts<T>, axis: Axis, o: PivotGridChartOptions, view: Range | null): PivotChartArgument[];
40
+ /** A member as a chart's row names it: its keys from the top down, or the grand total. */
41
+ export declare function memberArgument<T>(texts: PivotTexts<T>, axis: Axis, member: data.PivotMember, value: PivotChartArgument['value']): PivotChartArgument;
42
+ /**
43
+ * The rows of a chart from every member of a level of a whole result, in the order the table shows them, each with its
44
+ * summaries; the grand total after them, as asked.
45
+ */
46
+ export declare function levelArguments<T>(layout: PivotLayout<T>, texts: PivotTexts<T>, axis: Axis, level: number, o: PivotGridChartOptions): PivotChartArgument[];
47
+ /** The chart: a row per argument, a series per line of the other axis and data field drawn. */
48
+ export declare function chartOf<T>(table: PivotTable<T>, texts: PivotTexts<T>, args: readonly PivotChartArgument[], others: readonly Entry[], o: PivotGridChartOptions): PivotChart;
49
+ export {};
@@ -0,0 +1,61 @@
1
+ import type { PivotGridField } from '../pivot-grid-field';
2
+ import type { PivotFields } from './PivotFields';
3
+ type Axis = 'row' | 'column';
4
+ type Path = readonly unknown[];
5
+ type Kind = 'member' | 'total' | 'grand';
6
+ /** A member's siblings, itself among them, in the order its axis shows them. */
7
+ export interface PivotSiblings {
8
+ /** The member's place among them. */
9
+ readonly index: number;
10
+ readonly count: number;
11
+ /** The path of the sibling at a place; `undefined` while it is not read. */
12
+ at(i: number): Path | undefined;
13
+ }
14
+ /** What display calculations read. */
15
+ export interface PivotDisplaySource {
16
+ /** The summaries where two members cross: `undefined` while not read, `null` where no row falls. */
17
+ values(rowPath: Path, columnPath: Path): readonly unknown[] | null | undefined;
18
+ /** A member's siblings; `null` for the grand total. */
19
+ siblings(axis: Axis, path: Path): PivotSiblings | null;
20
+ /**
21
+ * A running total read with the values (a pivot read in parts): `{ value }`, `undefined` while not read, or `'here'`
22
+ * where it is added up here from the siblings' values. Without it, every running total is added up here.
23
+ */
24
+ running?(axis: Axis, rowPath: Path, columnPath: Path, measure: number): {
25
+ value: unknown;
26
+ } | 'here' | undefined;
27
+ }
28
+ /** What a cell shows of its data field, and whether everything it is worked out from is read. */
29
+ export interface PivotShown {
30
+ readonly value: unknown;
31
+ readonly ready: boolean;
32
+ }
33
+ /** Whether a data field works out what it shows from other cells, not from its own summary alone. */
34
+ export declare function computes(field: PivotGridField | undefined): boolean;
35
+ /** Whether a data field shows a share: a percentage, unless it has a format of its own. */
36
+ export declare function shows(field: PivotGridField | undefined): 'percent' | 'value';
37
+ /**
38
+ * The display calculations of the data fields over a result: shares of totals and of parents, variations from the
39
+ * member before, running totals among siblings, and a field's own calculation. A value not read yet makes the cell wait.
40
+ */
41
+ export declare class PivotDisplay<T> {
42
+ private readonly fields;
43
+ private readonly source;
44
+ /** Running totals of a whole result, by axis, the other line, the parent and the data field: one sum per sibling. */
45
+ private readonly sums;
46
+ constructor(fields: PivotFields<T>, source: PivotDisplaySource);
47
+ /** What the cell where two members cross shows of a data field. */
48
+ shown(rowPath: Path, columnPath: Path, rowKind: Kind, columnKind: Kind, measure: number): PivotShown;
49
+ private display;
50
+ /** A field's value before its display calculation: its summary, or its running total. */
51
+ private base;
52
+ /** The running total added up from the siblings' values, up to the member. */
53
+ private sum;
54
+ /** The summary of a data field where two members cross; `undefined` where no row falls, or while not read. */
55
+ private read;
56
+ /** The path of a member's sibling a step before or after it; `null` for none, and while it is not read. */
57
+ private neighbour;
58
+ /** A cell as `calculateSummaryValue` reads it. */
59
+ private cell;
60
+ }
61
+ export {};
@@ -0,0 +1,19 @@
1
+ import { data } from '@motifx-community/data';
2
+ import type { PivotFields } from './PivotFields';
3
+ type Path = readonly unknown[];
4
+ /**
5
+ * The rows of a cell as filters: its row's and its column's members on every level, and the rows the fields'
6
+ * filters keep. A condition on a field read with `value` can only be tested in memory: it reads the field by a name of
7
+ * its own, through `reads`.
8
+ */
9
+ export interface PivotDrill<T> {
10
+ /** Conditions on the rows' own fields, one per part: a backend applies those it can. */
11
+ readonly parts: data.FilterExpression[];
12
+ /** Conditions on fields read with `value`. */
13
+ readonly memory: data.FilterExpression[];
14
+ /** How the conditions in `memory` read their fields, by name. */
15
+ readonly reads: ReadonlyMap<string, (row: T) => unknown>;
16
+ }
17
+ /** The filters of a cell's rows, by its members' paths. */
18
+ export declare function drillOf<T>(fields: PivotFields<T>, rowPath: Path, columnPath: Path): PivotDrill<T>;
19
+ export {};
@@ -0,0 +1,44 @@
1
+ import type { data } from '@motifx-community/data';
2
+ import type { PivotGridAxisState } from '../pivot-grid-state';
3
+ type Axis = 'row' | 'column';
4
+ type Levels = readonly {
5
+ readonly field: {
6
+ readonly expanded?: boolean;
7
+ };
8
+ }[];
9
+ /**
10
+ * Which members are open on each axis: those the user opened or closed, else their level's `expandAll` /
11
+ * `collapseAll`, else the axis's, else their field's `expanded`.
12
+ */
13
+ export declare class PivotExpansion {
14
+ private readonly own;
15
+ private readonly all;
16
+ /** The levels opened or closed whole, by their place from the top (0). */
17
+ private readonly whole;
18
+ isOpen(axis: Axis, member: data.PivotMember, levels: Levels): boolean;
19
+ /** Whether the members of a level (0 is the top) are open unless opened or closed one by one. */
20
+ levelOpen(axis: Axis, level: number, levels: Levels): boolean;
21
+ /** The members of an axis opened or closed one by one. */
22
+ explicit(axis: Axis): {
23
+ path: unknown[];
24
+ open: boolean;
25
+ }[];
26
+ set(axis: Axis, path: readonly unknown[], open: boolean): void;
27
+ /**
28
+ * Opens or closes every member of the axis, or of one of its levels (0 is the top); what the user opened or closed one
29
+ * by one there is forgotten.
30
+ */
31
+ setAll(axis: Axis, open: boolean, level?: number): void;
32
+ /**
33
+ * Forgets the members opened or closed one by one deeper than `depth` levels on the axis, and the levels opened or
34
+ * closed whole from there: the levels from there down are others now, and a path through them names another member.
35
+ */
36
+ keep(axis: Axis, depth: number): void;
37
+ /** What an axis opened or closed, as `PivotGridState` keeps it. */
38
+ stateOf(axis: Axis): PivotGridAxisState;
39
+ /** Takes what an axis opened or closed from a state, in place of what it had. */
40
+ takeState(axis: Axis, state: PivotGridAxisState): void;
41
+ /** What a server is asked for on an axis: every member while members open by default, else the paths opened. */
42
+ request(axis: Axis, levels: Levels): true | unknown[][];
43
+ }
44
+ export {};
@@ -0,0 +1,55 @@
1
+ import { data } from '@motifx-community/data';
2
+ import type { PivotGridArea } from '../pivot-grid-area';
3
+ import type { PivotGridField } from '../pivot-grid-field';
4
+ /** A level of an axis: its field, and the interval it groups by (a field with a list of intervals makes a level each). */
5
+ export interface PivotAxisLevel<T> {
6
+ readonly field: PivotGridField<T>;
7
+ readonly interval: data.PivotInterval | undefined;
8
+ /** The level's place in its field's list of intervals (0 for a field with one). */
9
+ readonly part: number;
10
+ }
11
+ /**
12
+ * The fields of a pivot by area, and what they ask of the data layer: the levels of both axes, the measures of the
13
+ * data fields and the filter of `filterValues`.
14
+ */
15
+ export declare class PivotFields<T> {
16
+ readonly fields: readonly PivotGridField<T>[];
17
+ readonly rows: readonly PivotAxisLevel<T>[];
18
+ readonly columns: readonly PivotAxisLevel<T>[];
19
+ readonly data: readonly PivotGridField<T>[];
20
+ constructor(fields: readonly PivotGridField<T>[]);
21
+ /** The visible fields of an area, by `areaIndex` and then as given. */
22
+ inArea(area: PivotGridArea): PivotGridField<T>[];
23
+ /** The name the data layer knows a field by: its `field`, or for a field read with `value` alone its place in `fields`. */
24
+ nameOf(field: PivotGridField<T>): string;
25
+ title(field: PivotGridField<T>): string;
26
+ /**
27
+ * The data field `sortBySummaryField` names: by its `name`, its title, its `field` or its place among the data fields;
28
+ * -1 for none.
29
+ */
30
+ dataIndex(name: string | number | undefined): number;
31
+ /** How `sortBySummaryField` names a data field so that it finds that one: its `name`, title or `field`, else its place. */
32
+ dataRef(at: number): string | number;
33
+ /** What the data layer is asked: the levels, the measures, the filter and the members kept, with those open on each axis. */
34
+ options(expandedRows: true | unknown[][], expandedColumns: true | unknown[][]): data.PivotLoadOptions<T>;
35
+ /**
36
+ * The rows the `filterValues` of the fields read from `field` as they are keep: one of the values or a row a filter
37
+ * expression among them passes (`include`), or none of them (`exclude`); `null` among them stands for empty values.
38
+ * The others are kept by their members (`keep`).
39
+ */
40
+ filter(): data.FilterExpression | null;
41
+ /**
42
+ * The members the `filterValues` of the fields grouped by an interval or read with `value` keep: a value names a
43
+ * member of the field's first level, a list of values a member from the first level down (`[2024, 2]`); the rows the
44
+ * filter expressions among them pass count as members.
45
+ */
46
+ keep(): data.PivotKeep<T>[];
47
+ /** A field's `filterValues` as the members they name and the filter expressions among them, joined with `or`. */
48
+ private splitFilter;
49
+ /** A field's levels, one per interval of its list, wherever it stands. */
50
+ levelsOf(field: PivotGridField<T>): PivotAxisLevel<T>[];
51
+ /** A level as the data layer is asked for it. */
52
+ level(l: PivotAxisLevel<T>): data.PivotLevel<T>;
53
+ private levels;
54
+ private measure;
55
+ }
@@ -0,0 +1,36 @@
1
+ import { data } from '@motifx-community/data';
2
+ import { type FilterTreeNode } from '../../../parts/table/filter-tree-node';
3
+ import type { ValueList } from '../../../parts/table/value-list';
4
+ import type { PivotGridField } from '../pivot-grid-field';
5
+ import type { PivotFields } from './PivotFields';
6
+ import type { PivotTexts } from './PivotTexts';
7
+ /** What the values of a field's header filter are read from. */
8
+ export interface PivotFilterSource<T> {
9
+ /** The field's members over every row the source's query passes, with their row counts. */
10
+ members(field: PivotGridField<T>, signal: AbortSignal): Promise<data.PivotLoadResult>;
11
+ /** The fields as arranged now. */
12
+ fields(): PivotFields<T>;
13
+ /** The texts of members, as the pivot writes them now. */
14
+ texts(): PivotTexts<T>;
15
+ }
16
+ /**
17
+ * The values a field's header filter offers: the members of its level over every row, with their row counts, as a
18
+ * list; for a field grouped in more than one level, as a tree (a year over its quarters). A value the filter keeps is
19
+ * what `filterValues` takes: a member's key on the first level, its path below it. A field's `headerFilterItems` take
20
+ * the place of its members, and its `compare` orders them.
21
+ */
22
+ export declare class PivotFilterValues<T> {
23
+ private readonly from;
24
+ constructor(from: PivotFilterSource<T>);
25
+ kind(field: PivotGridField<T>): 'list' | 'tree';
26
+ /** The list of a field's values, made for one opening of its window. */
27
+ list(field: PivotGridField<T>): ValueList;
28
+ /** The tree of a field's values: the members of its first level over those of the next, each with its row count. */
29
+ tree(field: PivotGridField<T>, signal: AbortSignal): Promise<FilterTreeNode[]>;
30
+ /** The members of a field's first level over every row, with their texts and rows, in the field's order. */
31
+ private members;
32
+ /** Members as the data layer orders them, or by the field's `compare`, those without a value last. */
33
+ private ordered;
34
+ /** The entries a field gives itself, by their place in the list; a kept value is found by what it is. */
35
+ private ownList;
36
+ }
@@ -0,0 +1,75 @@
1
+ import { data } from '@motifx-community/data';
2
+ import type { PivotSiblings } from './PivotDisplay';
3
+ import type { PivotExpansion } from './PivotExpansion';
4
+ import type { PivotFields } from './PivotFields';
5
+ import type { PivotHeaderCell } from './pivot-header-cell';
6
+ import type { PivotLine } from './pivot-line';
7
+ type Axis = 'row' | 'column';
8
+ /** How a result is laid out (the pivot's settings as they read now). */
9
+ export interface PivotLayoutOptions {
10
+ rowHeaderLayout: 'tree' | 'tabular';
11
+ /** Where the data fields run when there are several. */
12
+ dataFieldArea: 'column' | 'row';
13
+ showRowTotals: boolean;
14
+ showColumnTotals: boolean;
15
+ showRowGrandTotals: boolean;
16
+ showColumnGrandTotals: boolean;
17
+ showTotalsPrior: 'none' | 'rows' | 'columns' | 'both';
18
+ /** `false` leaves out the members of an axis whose data fields' values over their own rows are all empty. */
19
+ showEmptyRows?: boolean;
20
+ showEmptyColumns?: boolean;
21
+ }
22
+ /**
23
+ * A pivot result laid out: the lines of both axes in order, the totals where the options put them, and each axis's
24
+ * header cells with what they span. Members open as `PivotExpansion` says; their order is the data layer's (by value),
25
+ * or by their text (`sortBy: 'text'`), or the field's own (`compare`), or by a data field's grand total
26
+ * (`sortBySummaryField`) or its value in a member of the other axis (`sortBySummaryPath`).
27
+ */
28
+ export declare class PivotLayout<T> {
29
+ readonly result: data.PivotLoadResult;
30
+ readonly fields: PivotFields<T>;
31
+ private readonly expansion;
32
+ readonly options: PivotLayoutOptions;
33
+ private readonly textOf;
34
+ private readonly collator;
35
+ readonly rows: readonly PivotLine[];
36
+ readonly columns: readonly PivotLine[];
37
+ readonly rowHeaders: readonly PivotHeaderCell[];
38
+ readonly columnHeaders: readonly PivotHeaderCell[];
39
+ /** The levels of row headers: a column per level (and one for data field titles), or one in the tree layout (two with titles). */
40
+ readonly rowDepth: number;
41
+ /** The rows of column headers: one per level, and one for data field titles. */
42
+ readonly columnDepth: number;
43
+ private readonly members;
44
+ /** Each member laid out, by axis and path: its siblings in the order shown and its place among them. */
45
+ private readonly places;
46
+ constructor(result: data.PivotLoadResult, fields: PivotFields<T>, expansion: PivotExpansion, options: PivotLayoutOptions, textOf: (axis: Axis, member: data.PivotMember) => string, collator: Intl.Collator);
47
+ /** The data field a cell shows: the row's, else the column's, else the only one; -1 without data fields. */
48
+ measureOf(row: PivotLine, column: PivotLine): number;
49
+ /** The value where a row line and a column line cross; `undefined` for none and on a tree layout's heading line. */
50
+ value(row: PivotLine, column: PivotLine): unknown;
51
+ /** Whether the data fields run along an axis: there are several, placed on it. */
52
+ measuresOn(axis: Axis): boolean;
53
+ /** Members of one parent in the order the axis shows them, those it leaves out left out. */
54
+ ordered(axis: Axis, members: readonly data.PivotMember[]): readonly data.PivotMember[];
55
+ /** The summaries where two members cross, by their paths; `null` where no row falls or a member is not laid out. */
56
+ valuesAt(rowPath: readonly unknown[], columnPath: readonly unknown[]): readonly unknown[] | null;
57
+ /** A member's siblings in the order shown, and its place among them; `null` for the grand total and a member not laid out. */
58
+ siblings(axis: Axis, path: readonly unknown[]): PivotSiblings | null;
59
+ private levelsOf;
60
+ /** The member of an axis at a path of keys, if the result has it. */
61
+ private memberAt;
62
+ private lines;
63
+ /**
64
+ * The members an axis shows of a list: with `showEmpty…: false`, those whose data fields' values over their own rows
65
+ * (at the other axis's grand total) are not all empty.
66
+ */
67
+ private shown;
68
+ private sorted;
69
+ private headers;
70
+ /** The data field titles, one per line, at level `depth`. */
71
+ private titles;
72
+ /** Whether a member's own cell opens: `false` for a closed member that has a level below and children to show; `null` otherwise. */
73
+ private openOf;
74
+ }
75
+ export {};