@dcs-tech/ui 0.2.0 → 0.3.0

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 (283) hide show
  1. package/README.md +31 -0
  2. package/dist/ChartImageMenu-gvNAYVkY.js +2938 -0
  3. package/dist/Charts-COljjy0x.js +1759 -0
  4. package/dist/SummaryChart-D4jcOv-K.js +31 -0
  5. package/dist/SummaryImage-BSbatHym.js +19 -0
  6. package/dist/SummarySeeAll-vnaL3pdy.js +97 -0
  7. package/dist/defaults-BbLB8QmD.js +709 -0
  8. package/dist/exportContext-CAX8VPrP.js +243 -0
  9. package/dist/exportEngine-C4n1MiOw.js +891 -0
  10. package/dist/fuseSearch-vLQR3O5a.js +37 -0
  11. package/dist/index.js +19289 -9411
  12. package/dist/style.css +1 -1
  13. package/dist/summaryChartData-CU_W5ocv.js +82 -0
  14. package/dist/types/published/dcs-ui/src/index.d.ts +0 -28
  15. package/dist/types/published/dcs-ui/src/publicLogic.d.ts +0 -33
  16. package/dist/types/published/dcs-ui/src/publicTypes.d.ts +0 -12
  17. package/dist/types/shared-logic/src/report/aggregate.d.ts +0 -21
  18. package/dist/types/shared-logic/src/report/canvas.d.ts +0 -55
  19. package/dist/types/shared-logic/src/report/conditions.d.ts +0 -14
  20. package/dist/types/shared-logic/src/report/constants.d.ts +0 -39
  21. package/dist/types/shared-logic/src/report/dataset.d.ts +0 -26
  22. package/dist/types/shared-logic/src/report/edit.d.ts +0 -62
  23. package/dist/types/shared-logic/src/report/fields.d.ts +0 -51
  24. package/dist/types/shared-logic/src/report/format.d.ts +0 -22
  25. package/dist/types/shared-logic/src/report/fromColumns.d.ts +0 -30
  26. package/dist/types/shared-logic/src/report/layout.d.ts +1 -55
  27. package/dist/types/shared-logic/src/report/metrics.d.ts +0 -45
  28. package/dist/types/shared-logic/src/report/migrate.d.ts +0 -60
  29. package/dist/types/shared-logic/src/report/paginate.d.ts +0 -32
  30. package/dist/types/shared-logic/src/report/renderers/html.d.ts +0 -21
  31. package/dist/types/shared-logic/src/report/renderers/pdfmake.d.ts +0 -27
  32. package/dist/types/shared-logic/src/report/resolve.d.ts +0 -29
  33. package/dist/types/shared-logic/src/report/scope.d.ts +0 -28
  34. package/dist/types/shared-logic/src/report/storage.d.ts +0 -76
  35. package/dist/types/shared-logic/src/report/validate.d.ts +0 -18
  36. package/dist/types/shared-logic/src/ui/cellRules.logic.d.ts +0 -35
  37. package/dist/types/shared-logic/src/ui/chipinput.logic.d.ts +0 -12
  38. package/dist/types/shared-logic/src/ui/collapsible.logic.d.ts +0 -7
  39. package/dist/types/shared-logic/src/ui/colorScheme.d.ts +0 -14
  40. package/dist/types/shared-logic/src/ui/columnOrder.logic.d.ts +0 -11
  41. package/dist/types/shared-logic/src/ui/datePicker.logic.d.ts +136 -0
  42. package/dist/types/shared-logic/src/ui/editableTable.logic.d.ts +0 -27
  43. package/dist/types/shared-logic/src/ui/fieldControl.logic.d.ts +2 -14
  44. package/dist/types/shared-logic/src/ui/form.logic.d.ts +0 -8
  45. package/dist/types/shared-logic/src/ui/index.d.ts +3 -29
  46. package/dist/types/shared-logic/src/ui/keyboard.logic.d.ts +0 -60
  47. package/dist/types/shared-logic/src/ui/navigation.logic.d.ts +0 -24
  48. package/dist/types/shared-logic/src/ui/popover.logic.d.ts +22 -20
  49. package/dist/types/shared-logic/src/ui/popupList.logic.d.ts +0 -35
  50. package/dist/types/shared-logic/src/ui/quickAddGrid.logic.d.ts +183 -0
  51. package/dist/types/shared-logic/src/ui/select.logic.d.ts +0 -14
  52. package/dist/types/shared-logic/src/ui/tableLayout.logic.d.ts +0 -34
  53. package/dist/types/shared-logic/src/ui/tableSummary.logic.d.ts +0 -19
  54. package/dist/types/shared-logic/src/ui/timeField.logic.d.ts +26 -0
  55. package/dist/types/shared-logic/src/ui/tooltip.logic.d.ts +0 -24
  56. package/dist/types/shared-logic/src/ui/useMergeRefs.d.ts +0 -8
  57. package/dist/types/shared-types/src/report/bands.d.ts +0 -20
  58. package/dist/types/shared-types/src/report/blocks.d.ts +0 -59
  59. package/dist/types/shared-types/src/report/conditions.d.ts +0 -13
  60. package/dist/types/shared-types/src/report/dataset.d.ts +0 -53
  61. package/dist/types/shared-types/src/report/document.d.ts +0 -80
  62. package/dist/types/shared-types/src/report/primitives.d.ts +0 -40
  63. package/dist/types/shared-types/src/report/registry.d.ts +0 -46
  64. package/dist/types/shared-types/src/report/storage.d.ts +0 -31
  65. package/dist/types/shared-types/src/report/template.d.ts +0 -60
  66. package/dist/types/shared-types/src/ui/button.types.d.ts +0 -11
  67. package/dist/types/shared-types/src/ui/checkbox.types.d.ts +0 -4
  68. package/dist/types/shared-types/src/ui/chipinput.types.d.ts +0 -10
  69. package/dist/types/shared-types/src/ui/collapsible.types.d.ts +0 -18
  70. package/dist/types/shared-types/src/ui/common.types.d.ts +0 -11
  71. package/dist/types/shared-types/src/ui/control.types.d.ts +0 -97
  72. package/dist/types/shared-types/src/ui/datePicker.types.d.ts +46 -0
  73. package/dist/types/shared-types/src/ui/editableTable.types.d.ts +0 -79
  74. package/dist/types/shared-types/src/ui/field.types.d.ts +4 -124
  75. package/dist/types/shared-types/src/ui/fieldWrapper.types.d.ts +0 -10
  76. package/dist/types/shared-types/src/ui/fields.types.d.ts +0 -45
  77. package/dist/types/shared-types/src/ui/form.types.d.ts +0 -30
  78. package/dist/types/shared-types/src/ui/index.d.ts +1 -16
  79. package/dist/types/shared-types/src/ui/input.types.d.ts +0 -4
  80. package/dist/types/shared-types/src/ui/keyboard.types.d.ts +2 -109
  81. package/dist/types/shared-types/src/ui/navigation.types.d.ts +0 -22
  82. package/dist/types/shared-types/src/ui/radio.types.d.ts +0 -6
  83. package/dist/types/shared-types/src/ui/select.types.d.ts +0 -41
  84. package/dist/types/shared-types/src/ui/suggest.types.d.ts +0 -10
  85. package/dist/types/shared-types/src/ui/switch.types.d.ts +0 -4
  86. package/dist/types/shared-types/src/ui/table.types.d.ts +0 -59
  87. package/dist/types/shared-types/src/ui/tooltip.types.d.ts +0 -25
  88. package/dist/types/shared-types/src/ui/typography.types.d.ts +0 -4
  89. package/dist/types/shared-web-ui/src/AppBar/AppBar.d.ts +0 -9
  90. package/dist/types/shared-web-ui/src/ArrowKeyFocus/useArrowKeyFocus.d.ts +0 -19
  91. package/dist/types/shared-web-ui/src/Avatar/Avatar.d.ts +0 -14
  92. package/dist/types/shared-web-ui/src/Badge/Badge.d.ts +0 -11
  93. package/dist/types/shared-web-ui/src/Breadcrumbs/Breadcrumbs.d.ts +0 -52
  94. package/dist/types/shared-web-ui/src/Card/Card.d.ts +0 -16
  95. package/dist/types/shared-web-ui/src/Charts/AnchoredMenu.d.ts +17 -0
  96. package/dist/types/shared-web-ui/src/Charts/BarList.d.ts +12 -0
  97. package/dist/types/shared-web-ui/src/Charts/CalendarHeatmap.d.ts +17 -0
  98. package/dist/types/shared-web-ui/src/Charts/Chart.d.ts +20 -0
  99. package/dist/types/shared-web-ui/src/Charts/ChartIcon.d.ts +5 -0
  100. package/dist/types/shared-web-ui/src/Charts/ChartImageMenu.d.ts +4 -0
  101. package/dist/types/shared-web-ui/src/Charts/ChartTable.d.ts +8 -0
  102. package/dist/types/shared-web-ui/src/Charts/ChartTooltip.d.ts +44 -0
  103. package/dist/types/shared-web-ui/src/Charts/ChartView.d.ts +15 -0
  104. package/dist/types/shared-web-ui/src/Charts/ColumnChart.d.ts +15 -0
  105. package/dist/types/shared-web-ui/src/Charts/Donut.d.ts +14 -0
  106. package/dist/types/shared-web-ui/src/Charts/Funnel.d.ts +10 -0
  107. package/dist/types/shared-web-ui/src/Charts/Gauge.d.ts +15 -0
  108. package/dist/types/shared-web-ui/src/Charts/Legend.d.ts +6 -0
  109. package/dist/types/shared-web-ui/src/Charts/LineChart.d.ts +13 -0
  110. package/dist/types/shared-web-ui/src/Charts/NumberTrend.d.ts +21 -0
  111. package/dist/types/shared-web-ui/src/Charts/Progress.d.ts +12 -0
  112. package/dist/types/shared-web-ui/src/Charts/StackedBar.d.ts +11 -0
  113. package/dist/types/shared-web-ui/src/Charts/Treemap.d.ts +12 -0
  114. package/dist/types/shared-web-ui/src/Charts/chartData.d.ts +69 -0
  115. package/dist/types/shared-web-ui/src/Charts/chartImage.d.ts +121 -0
  116. package/dist/types/shared-web-ui/src/Charts/geometry.d.ts +178 -0
  117. package/dist/types/shared-web-ui/src/Charts/index.d.ts +32 -0
  118. package/dist/types/shared-web-ui/src/Charts/labels.d.ts +46 -0
  119. package/dist/types/shared-web-ui/src/Charts/menuPlacement.d.ts +25 -0
  120. package/dist/types/shared-web-ui/src/Charts/palette.d.ts +81 -0
  121. package/dist/types/shared-web-ui/src/Charts/parts.d.ts +24 -0
  122. package/dist/types/shared-web-ui/src/Charts/pointer.d.ts +41 -0
  123. package/dist/types/shared-web-ui/src/Charts/types.d.ts +51 -0
  124. package/dist/types/shared-web-ui/src/Charts/ui.d.ts +3 -0
  125. package/dist/types/shared-web-ui/src/Charts/useBoxSize.d.ts +6 -0
  126. package/dist/types/shared-web-ui/src/Charts/useLegendFit.d.ts +1 -0
  127. package/dist/types/shared-web-ui/src/Collapsible/CollapsibleItem.d.ts +0 -2
  128. package/dist/types/shared-web-ui/src/ColorSchemeSelect/ColorSchemeSelect.d.ts +0 -15
  129. package/dist/types/shared-web-ui/src/CommandPalette/CommandPalette.d.ts +0 -27
  130. package/dist/types/shared-web-ui/src/DataTable/DataTable.d.ts +16 -0
  131. package/dist/types/shared-web-ui/src/DataTable/DisplayPopover.d.ts +22 -0
  132. package/dist/types/shared-web-ui/src/DataTable/HeaderMenu.d.ts +31 -0
  133. package/dist/types/shared-web-ui/src/DataTable/ManageModal.d.ts +31 -0
  134. package/dist/types/shared-web-ui/src/DataTable/SingleRowView.d.ts +9 -0
  135. package/dist/types/shared-web-ui/src/DataTable/SortModal.d.ts +16 -0
  136. package/dist/types/shared-web-ui/src/DataTable/StatusRow.d.ts +49 -0
  137. package/dist/types/shared-web-ui/src/DataTable/TableColumnModal.d.ts +18 -0
  138. package/dist/types/shared-web-ui/src/DataTable/TableControls.d.ts +48 -0
  139. package/dist/types/shared-web-ui/src/DataTable/TablePagination.d.ts +38 -0
  140. package/dist/types/shared-web-ui/src/DataTable/TableScrollStrip.d.ts +2 -0
  141. package/dist/types/shared-web-ui/src/DataTable/TableToolbar.d.ts +69 -0
  142. package/dist/types/shared-web-ui/src/DataTable/TableView.d.ts +61 -0
  143. package/dist/types/shared-web-ui/src/DataTable/bulk/BulkConfirmDialog.d.ts +13 -0
  144. package/dist/types/shared-web-ui/src/DataTable/bulk/TableToast.d.ts +13 -0
  145. package/dist/types/shared-web-ui/src/DataTable/bulk/bulkActions.d.ts +23 -0
  146. package/dist/types/shared-web-ui/src/DataTable/cards/CardFieldsEditor.d.ts +16 -0
  147. package/dist/types/shared-web-ui/src/DataTable/cards/CardView.d.ts +50 -0
  148. package/dist/types/shared-web-ui/src/DataTable/cards/cardFields.d.ts +32 -0
  149. package/dist/types/shared-web-ui/src/DataTable/cards/rowParts.d.ts +38 -0
  150. package/dist/types/shared-web-ui/src/DataTable/data/useServerData.d.ts +28 -0
  151. package/dist/types/shared-web-ui/src/DataTable/defaults.d.ts +18 -0
  152. package/dist/types/shared-web-ui/src/DataTable/detail/BuiltInDetail.d.ts +10 -0
  153. package/dist/types/shared-web-ui/src/DataTable/detail/DetailHost.d.ts +13 -0
  154. package/dist/types/shared-web-ui/src/DataTable/export/ExportPopover.d.ts +18 -0
  155. package/dist/types/shared-web-ui/src/DataTable/export/ExportPreviewModal.d.ts +11 -0
  156. package/dist/types/shared-web-ui/src/DataTable/export/ExportSettingsModal.d.ts +31 -0
  157. package/dist/types/shared-web-ui/src/DataTable/export/ExportTemplateCards.d.ts +19 -0
  158. package/dist/types/shared-web-ui/src/DataTable/export/exportContext.d.ts +10 -0
  159. package/dist/types/shared-web-ui/src/DataTable/export/exportEngine.d.ts +77 -0
  160. package/dist/types/shared-web-ui/src/DataTable/export/exportRows.d.ts +10 -0
  161. package/dist/types/shared-web-ui/src/DataTable/export/templateDisplay.d.ts +7 -0
  162. package/dist/types/shared-web-ui/src/DataTable/export/templateOptions.d.ts +6 -0
  163. package/dist/types/shared-web-ui/src/DataTable/export/useTableExport.d.ts +53 -0
  164. package/dist/types/shared-web-ui/src/DataTable/filters/ColumnFilterPopover.d.ts +14 -0
  165. package/dist/types/shared-web-ui/src/DataTable/filters/FilterConditionRow.d.ts +11 -0
  166. package/dist/types/shared-web-ui/src/DataTable/filters/FilterGroup.d.ts +12 -0
  167. package/dist/types/shared-web-ui/src/DataTable/filters/FilterModal.d.ts +14 -0
  168. package/dist/types/shared-web-ui/src/DataTable/filters/FilterRow.d.ts +20 -0
  169. package/dist/types/shared-web-ui/src/DataTable/filters/columnFilterModel.d.ts +29 -0
  170. package/dist/types/shared-web-ui/src/DataTable/filters/filterEngine.d.ts +16 -0
  171. package/dist/types/shared-web-ui/src/DataTable/filters/filterRowModel.d.ts +28 -0
  172. package/dist/types/shared-web-ui/src/DataTable/filters/quickFilterMatch.d.ts +3 -0
  173. package/dist/types/shared-web-ui/src/DataTable/grouping/GroupUi.d.ts +36 -0
  174. package/dist/types/shared-web-ui/src/DataTable/grouping/groupModel.d.ts +82 -0
  175. package/dist/types/shared-web-ui/src/DataTable/grouping/useGrouping.d.ts +39 -0
  176. package/dist/types/shared-web-ui/src/DataTable/host.d.ts +14 -0
  177. package/dist/types/shared-web-ui/src/DataTable/index.d.ts +18 -0
  178. package/dist/types/shared-web-ui/src/DataTable/keyboard/ShortcutsDialog.d.ts +14 -0
  179. package/dist/types/shared-web-ui/src/DataTable/keyboard/shortcuts.d.ts +22 -0
  180. package/dist/types/shared-web-ui/src/DataTable/keyboard/useGridKeyboard.d.ts +48 -0
  181. package/dist/types/shared-web-ui/src/DataTable/labels.d.ts +618 -0
  182. package/dist/types/shared-web-ui/src/DataTable/layout/LayoutSwitcher.d.ts +9 -0
  183. package/dist/types/shared-web-ui/src/DataTable/layout/layouts.d.ts +20 -0
  184. package/dist/types/shared-web-ui/src/DataTable/layout/scrollArea.d.ts +2 -0
  185. package/dist/types/shared-web-ui/src/DataTable/layout/useFillHeight.d.ts +11 -0
  186. package/dist/types/shared-web-ui/src/DataTable/menu/RowMenu.d.ts +56 -0
  187. package/dist/types/shared-web-ui/src/DataTable/menu/buildRowMenu.d.ts +35 -0
  188. package/dist/types/shared-web-ui/src/DataTable/menu/clipboard.d.ts +4 -0
  189. package/dist/types/shared-web-ui/src/DataTable/menu/valueFilter.d.ts +15 -0
  190. package/dist/types/shared-web-ui/src/DataTable/motion/useRowMotion.d.ts +32 -0
  191. package/dist/types/shared-web-ui/src/DataTable/persistence/adapters.d.ts +6 -0
  192. package/dist/types/shared-web-ui/src/DataTable/persistence/reconcile.d.ts +64 -0
  193. package/dist/types/shared-web-ui/src/DataTable/persistence/useColumnPersistence.d.ts +51 -0
  194. package/dist/types/shared-web-ui/src/DataTable/persistence/useManagePrefs.d.ts +23 -0
  195. package/dist/types/shared-web-ui/src/DataTable/persistence/useOrphanPrefs.d.ts +3 -0
  196. package/dist/types/shared-web-ui/src/DataTable/pinning.d.ts +10 -0
  197. package/dist/types/shared-web-ui/src/DataTable/rows/RowActions.d.ts +15 -0
  198. package/dist/types/shared-web-ui/src/DataTable/rows/rowPress.d.ts +35 -0
  199. package/dist/types/shared-web-ui/src/DataTable/sharing/Sharing.d.ts +21 -0
  200. package/dist/types/shared-web-ui/src/DataTable/split/SplitView.d.ts +29 -0
  201. package/dist/types/shared-web-ui/src/DataTable/summary/ManageSummaryCards.d.ts +18 -0
  202. package/dist/types/shared-web-ui/src/DataTable/summary/SummaryChart.d.ts +11 -0
  203. package/dist/types/shared-web-ui/src/DataTable/summary/SummaryControls.d.ts +33 -0
  204. package/dist/types/shared-web-ui/src/DataTable/summary/SummaryImage.d.ts +12 -0
  205. package/dist/types/shared-web-ui/src/DataTable/summary/SummarySeeAll.d.ts +17 -0
  206. package/dist/types/shared-web-ui/src/DataTable/summary/TableSummary.d.ts +34 -0
  207. package/dist/types/shared-web-ui/src/DataTable/summary/summaryCatalogue.d.ts +64 -0
  208. package/dist/types/shared-web-ui/src/DataTable/summary/summaryChartData.d.ts +9 -0
  209. package/dist/types/shared-web-ui/src/DataTable/summary/summaryModel.d.ts +152 -0
  210. package/dist/types/shared-web-ui/src/DataTable/summary/summaryWidth.d.ts +22 -0
  211. package/dist/types/shared-web-ui/src/DataTable/summary/useTableSummary.d.ts +18 -0
  212. package/dist/types/shared-web-ui/src/DataTable/types.d.ts +1145 -0
  213. package/dist/types/shared-web-ui/src/DataTable/ui-local/AutoHeight.d.ts +9 -0
  214. package/dist/types/shared-web-ui/src/DataTable/ui-local/DateRangePicker.d.ts +16 -0
  215. package/dist/types/shared-web-ui/src/DataTable/ui-local/DragAndDropList/DragAndDropList.d.ts +4 -0
  216. package/dist/types/shared-web-ui/src/DataTable/ui-local/DragAndDropList/index.d.ts +3 -0
  217. package/dist/types/shared-web-ui/src/DataTable/ui-local/DragAndDropList/types.d.ts +70 -0
  218. package/dist/types/shared-web-ui/src/DataTable/ui-local/ReactModal.d.ts +20 -0
  219. package/dist/types/shared-web-ui/src/DataTable/ui.d.ts +13 -0
  220. package/dist/types/shared-web-ui/src/DataTable/useDataChangeTracker.d.ts +11 -0
  221. package/dist/types/shared-web-ui/src/DataTable/useTable.d.ts +12 -0
  222. package/dist/types/shared-web-ui/src/DataTable/vendor/columnOrder.d.ts +1 -0
  223. package/dist/types/shared-web-ui/src/DataTable/vendor/diff.d.ts +5 -0
  224. package/dist/types/shared-web-ui/src/DataTable/vendor/fileActions.d.ts +19 -0
  225. package/dist/types/shared-web-ui/src/DataTable/vendor/index.d.ts +3 -0
  226. package/dist/types/shared-web-ui/src/DataTable/virtual/useVirtualLines.d.ts +27 -0
  227. package/dist/types/shared-web-ui/src/DatePicker/Calendar.d.ts +14 -0
  228. package/dist/types/shared-web-ui/src/DatePicker/DatePicker.d.ts +5 -0
  229. package/dist/types/shared-web-ui/src/DatePicker/TimeField.d.ts +16 -0
  230. package/dist/types/shared-web-ui/src/DatePicker/index.d.ts +4 -0
  231. package/dist/types/shared-web-ui/src/DatePicker/useOneMonthPane.d.ts +2 -0
  232. package/dist/types/shared-web-ui/src/Dialog/Dialog.d.ts +0 -45
  233. package/dist/types/shared-web-ui/src/Dialog/DialogHost.d.ts +0 -36
  234. package/dist/types/shared-web-ui/src/DropdownMenu/DropdownMenu.d.ts +24 -24
  235. package/dist/types/shared-web-ui/src/EditableTable/EditableTable.d.ts +0 -5
  236. package/dist/types/shared-web-ui/src/EditableTable/EditableTableCell.d.ts +0 -18
  237. package/dist/types/shared-web-ui/src/EditableTable/EditableTableRow.d.ts +0 -11
  238. package/dist/types/shared-web-ui/src/EditableTable/EditableTableSummary.d.ts +0 -11
  239. package/dist/types/shared-web-ui/src/EditableTable/useRowAnimation.d.ts +0 -32
  240. package/dist/types/shared-web-ui/src/FieldContext/FieldContext.d.ts +0 -15
  241. package/dist/types/shared-web-ui/src/FieldContext/FieldProvider.d.ts +0 -9
  242. package/dist/types/shared-web-ui/src/FieldContext/useField.d.ts +0 -27
  243. package/dist/types/shared-web-ui/src/FieldContext/useFieldSurface.d.ts +0 -23
  244. package/dist/types/shared-web-ui/src/FieldContext/useFormKeyboard.d.ts +0 -3
  245. package/dist/types/shared-web-ui/src/Fields/FieldButton.d.ts +0 -15
  246. package/dist/types/shared-web-ui/src/Floating/index.d.ts +3 -0
  247. package/dist/types/shared-web-ui/src/Floating/layers.d.ts +4 -0
  248. package/dist/types/shared-web-ui/src/Floating/scrollLock.d.ts +2 -0
  249. package/dist/types/shared-web-ui/src/Floating/useFloatingLayer.d.ts +20 -0
  250. package/dist/types/shared-web-ui/src/Popover/Popover.d.ts +6 -25
  251. package/dist/types/shared-web-ui/src/Popover/floatingPosition.d.ts +17 -0
  252. package/dist/types/shared-web-ui/src/ReportDesigner/BandList.d.ts +0 -8
  253. package/dist/types/shared-web-ui/src/ReportDesigner/BlockEditor.d.ts +0 -11
  254. package/dist/types/shared-web-ui/src/ReportDesigner/ConditionEditor.d.ts +0 -2
  255. package/dist/types/shared-web-ui/src/ReportDesigner/FieldPicker.d.ts +0 -13
  256. package/dist/types/shared-web-ui/src/ReportDesigner/Inspector.d.ts +0 -7
  257. package/dist/types/shared-web-ui/src/ReportDesigner/ReportDesigner.d.ts +0 -22
  258. package/dist/types/shared-web-ui/src/ReportDesigner/TableEditor.d.ts +0 -8
  259. package/dist/types/shared-web-ui/src/ReportDesigner/chipSources.d.ts +0 -1
  260. package/dist/types/shared-web-ui/src/ReportDesigner/labels.d.ts +0 -12
  261. package/dist/types/shared-web-ui/src/ReportDesigner/parts.d.ts +0 -30
  262. package/dist/types/shared-web-ui/src/ReportDesigner/types.d.ts +0 -39
  263. package/dist/types/shared-web-ui/src/ReportPreview/ReportPreview.d.ts +0 -24
  264. package/dist/types/shared-web-ui/src/Scroll/ScrollRule.d.ts +2 -0
  265. package/dist/types/shared-web-ui/src/Scroll/ScrollStrip.d.ts +9 -0
  266. package/dist/types/shared-web-ui/src/Scroll/index.d.ts +4 -0
  267. package/dist/types/shared-web-ui/src/Scroll/labels.d.ts +5 -0
  268. package/dist/types/shared-web-ui/src/Scroll/scrollActivity.d.ts +14 -0
  269. package/dist/types/shared-web-ui/src/Scroll/ui.d.ts +1 -0
  270. package/dist/types/shared-web-ui/src/Sidebar/Sidebar.d.ts +0 -31
  271. package/dist/types/shared-web-ui/src/Skeleton/Skeleton.d.ts +0 -15
  272. package/dist/types/shared-web-ui/src/Tabs/Tabs.d.ts +0 -43
  273. package/dist/types/shared-web-ui/src/Toast/ToastHost.d.ts +0 -14
  274. package/dist/types/shared-web-ui/src/Toast/ToastItem.d.ts +0 -9
  275. package/dist/types/shared-web-ui/src/Toast/toast.types.d.ts +0 -13
  276. package/dist/types/shared-web-ui/src/Tooltip/Tooltip.d.ts +0 -16
  277. package/dist/types/shared-web-ui/src/Tooltip/useTooltip.d.ts +0 -9
  278. package/dist/types/shared-web-ui/src/UIProvider/UIPortalContext.d.ts +0 -14
  279. package/dist/types/shared-web-ui/src/UIProvider/UIProvider.d.ts +0 -41
  280. package/dist/types/shared-web-ui/src/UIProvider/UIThemeContext.d.ts +0 -8
  281. package/dist/types/shared-web-ui/src/index.d.ts +5 -0
  282. package/dist/ui-DJFwpPdX.js +4997 -0
  283. package/package.json +9 -7
@@ -1,93 +1,44 @@
1
- /**
2
- * Report engine — the two documents downstream of a template.
3
- *
4
- * A template is a design. Resolving it against data gives a **layout document**: every
5
- * placeholder substituted, every table expanded into its heading, rows, sections and closing rows,
6
- * every block reduced to rows of cells of already-wrapped lines, each carrying its measured height.
7
- * Paginating that gives a **paged document**: the same bands, dealt onto pages.
8
- *
9
- * The split is what lets a 2-inch till roll and an A4 invoice come out of one model. A continuous
10
- * roll stops at layout — it has no pages to assign anything to. See `docs/REPORT_ENGINE.md` §5.
11
- *
12
- * Renderers consume these, never the template. Nothing here mentions pdfmake, HTML or ESC/POS.
13
- */
14
1
  import type { BandKind } from './bands';
15
2
  import type { Alignment, PageConfig, StrokeStyle, TextStyle } from './primitives';
16
- /**
17
- * One wrapped line. It carries its own style because a template's segments are line-level in
18
- * practice — a bold label above a plain value — and flattening that to one style per cell would
19
- * lose it.
20
- */
21
3
  export interface LayoutLine {
22
4
  text: string;
23
5
  style?: TextStyle;
24
6
  }
25
- /** One cell, with its text already wrapped to `widthPt`. */
26
7
  export interface LayoutCell {
27
8
  widthPt: number;
28
9
  align?: Alignment;
29
- /** The template column this cell prints for, so a designer can point at one column of a table. */
30
10
  columnId?: string;
31
11
  style?: TextStyle;
32
- /** Wrapped lines. An empty array is an empty cell that still occupies its row. */
33
12
  lines: LayoutLine[];
34
- /**
35
- * Measured content height, padding excluded.
36
- *
37
- * Carried rather than recomputed from `lines`, because the line count is not always the whole
38
- * story — shaped text that had to be force-broken costs more than its lines suggest, and a
39
- * consumer counting lines would silently lose that.
40
- */
41
13
  heightPt: number;
42
- /** Drawn at the left of the cell; `heightPt` already covers it, the lines sit beside it. */
43
14
  image?: {
44
15
  src: string;
45
16
  widthPt: number;
46
17
  heightPt: number;
47
18
  gapPt: number;
48
19
  };
49
- /** The row's bottom line is not drawn under this cell — a heading that spans two rows. */
50
20
  noBottomLine?: boolean;
51
21
  }
52
- /**
53
- * Lines drawn around one row, in points. `heightPt` of the row already includes `top` and
54
- * `bottom`, and the cells' widths already exclude `left`, `right` and `inner` — a renderer draws
55
- * these and adds nothing.
56
- */
57
22
  export interface RowBorder {
58
23
  top: number;
59
24
  bottom: number;
60
25
  left: number;
61
26
  right: number;
62
- /** Between cells. */
63
27
  inner: number;
64
28
  }
65
29
  export interface LayoutRow {
66
30
  cells: LayoutCell[];
67
- /** Includes `border.top` and `border.bottom`. */
68
31
  heightPt: number;
69
32
  border?: RowBorder;
70
- /**
71
- * Height added beyond the tallest cell to meet a row's minimum. Renderers that do not set a row
72
- * height themselves (pdfmake) add it under the first cell, so the row comes out as planned.
73
- */
74
33
  extraHeightPt?: number;
75
- /** Drawn under this row. Renderers without rules ignore it. */
76
34
  separator?: StrokeStyle;
77
35
  }
78
- /**
79
- * What a block became.
80
- *
81
- * `rows` covers text blocks and table rows — everything textual collapses to the same shape, so a
82
- * renderer implements it once. The rest are leaves with a height and their own payload.
83
- */
84
36
  export type LayoutBlockKind = 'rows' | 'image' | 'barcode' | 'qr' | 'separator' | 'spacer';
85
37
  export interface LayoutBlock {
86
38
  id: string;
87
39
  kind: LayoutBlockKind;
88
40
  heightPt: number;
89
41
  style?: TextStyle;
90
- /** [top, right, bottom, left], points. */
91
42
  marginPt?: [number, number, number, number];
92
43
  rows?: LayoutRow[];
93
44
  image?: {
@@ -115,51 +66,27 @@ export interface LayoutBlock {
115
66
  thicknessPt: number;
116
67
  };
117
68
  }
118
- /**
119
- * `space` is not something a template can declare: it is vertical space pagination puts between a
120
- * page's content and its footer, so the footer sits at the foot of the page. It has its own kind
121
- * so nothing mistakes it for the footer it pushes down.
122
- */
123
69
  export type LayoutBandKind = BandKind | 'space';
124
- /**
125
- * One appearance of something with a height, in print order. A content band becomes one of these
126
- * — or several, when a table inside it flows: the blocks before the table, then one band per table
127
- * row, then the blocks after.
128
- */
129
70
  export interface LayoutBand {
130
71
  id: string;
131
72
  kind: LayoutBandKind;
132
73
  heightPt: number;
133
74
  keepTogether?: boolean;
134
- /** Must not end a page: moves on with the next band when that one does not fit here. */
135
75
  keepWithNext?: boolean;
136
- /**
137
- * Part of a flowing table: its rows, its section rows and its closing rows. Pagination repeats the
138
- * table's heading above these, closes the box after the last of them on a page, and fills below.
139
- */
140
76
  tableId?: string;
141
- /** The table's heading, re-emitted on each page. */
142
77
  tableHeader?: boolean;
143
- /** Rows that close the table. Pagination puts empty rows above these, not below. */
144
78
  tableFooter?: boolean;
145
- /** The block the table came from, so a designer can map a click on any row back to it. */
146
79
  blockId?: string;
147
80
  blocks: LayoutBlock[];
148
81
  }
149
- /** What pagination needs to head, close and fill one flowing table. */
150
82
  export interface LayoutTable {
151
- /** The template band the table sits in, for ids the engine mints later — the rows filling a page. */
152
83
  bandId: string;
153
- /** The heading band, repeated on every page the table continues onto when `repeat` allows. */
154
84
  header?: LayoutBand;
155
85
  repeatHeader: boolean;
156
- /** Box thickness; the last row of the table on a page is given at least this as its bottom line. */
157
86
  outerPt: number;
158
87
  fill: 'none' | 'lastPage' | 'everyPage';
159
- /** One empty row, bordered like a table row — what a filled page is made of. */
160
88
  emptyRow: LayoutRow;
161
89
  }
162
- /** A watermark with its placeholders resolved and its condition already decided. */
163
90
  export interface LayoutWatermark {
164
91
  text?: string;
165
92
  image?: string;
@@ -173,23 +100,16 @@ export interface LayoutWatermark {
173
100
  export interface LayoutDocument {
174
101
  page: PageConfig;
175
102
  contentWidthPt: number;
176
- /** Height available for flowing bands, page header and footer already deducted. */
177
103
  contentHeightPt: number;
178
- /** Bands in print order, tables already expanded. */
179
104
  flow: LayoutBand[];
180
- /** Repeated at the top of every page. */
181
105
  pageHeader: LayoutBand[];
182
- /** Repeated at the bottom of every page. */
183
106
  pageFooter: LayoutBand[];
184
- /** Flowing tables, by table id. */
185
107
  tables: Record<string, LayoutTable>;
186
108
  watermark?: LayoutWatermark;
187
109
  }
188
110
  export interface LayoutPage {
189
- /** 1-based. */
190
111
  number: number;
191
112
  bands: LayoutBand[];
192
- /** Height left unused after the last band — what filler rows would occupy. */
193
113
  freeHeightPt: number;
194
114
  }
195
115
  export interface PagedDocument {
@@ -1,14 +1,5 @@
1
- /**
2
- * Report engine — leaf types.
3
- *
4
- * Deliberately compatible with the equivalents in the client's `LabelDesigner/types.ts`, which is
5
- * live and stays where it is. When that folder is eventually pointed at this package (see
6
- * `docs/REPORT_ENGINE.md` §2) the change should be an import swap, not a redesign — so keep these
7
- * shapes identical unless there is a reason not to.
8
- */
9
1
  import type { ReportConditionGroup } from './conditions';
10
2
  export type Alignment = 'left' | 'center' | 'right';
11
- /** Applied to the printed text before it is measured, so it wraps exactly as it prints. */
12
3
  export type TextCase = 'upper' | 'lower' | 'title';
13
4
  export interface TextStyle {
14
5
  fontFamily?: string;
@@ -18,7 +9,6 @@ export interface TextStyle {
18
9
  underline?: boolean;
19
10
  strike?: boolean;
20
11
  color?: string;
21
- /** Cell/box background. Renderers without colour ignore it. */
22
12
  fill?: string;
23
13
  textCase?: TextCase;
24
14
  }
@@ -27,78 +17,48 @@ export type NumberFormatMode = 'none' | 'fixed' | 'round' | 'ceil' | 'floor';
27
17
  export interface NumberFormat {
28
18
  mode: NumberFormatMode;
29
19
  decimals: number;
30
- /** Digit grouping. 'in' = 1,23,456.00 (lakh/crore); 'en' = 123,456.00; absent = none. */
31
20
  grouping?: 'in' | 'en';
32
- /** A plus sign before a positive value — a round-off printed as "+0.24". */
33
21
  signed?: boolean;
34
22
  }
35
23
  export interface DateFormat {
36
- /** Pattern, e.g. `dd-mm-yyyy` or `dd-mm-yyyy hh:mm`. */
37
24
  format: string;
38
- /** Compute from today + offsetDays rather than reading the source value. */
39
25
  computed?: boolean;
40
26
  offsetDays?: number | string;
41
27
  }
42
- /**
43
- * How one placeholder renders. This is the whole of "date or date and time?", "two decimals or
44
- * three?", "show a dash when empty" — the questions that otherwise become format variants.
45
- */
46
28
  export interface PlaceholderFormat {
47
29
  type: 'text' | 'number' | 'date';
48
30
  numberFormat?: NumberFormat;
49
31
  dateFormat?: DateFormat;
50
32
  prefix?: string;
51
33
  suffix?: string;
52
- /** Printed when the value is empty. Absent means print nothing. */
53
34
  defaultValue?: string;
54
35
  }
55
- /** Keyed by the placeholder token, e.g. `'%row.total%'`. */
56
36
  export type PlaceholderFormats = Record<string, PlaceholderFormat>;
57
- /**
58
- * A run of text. `content` may mix literals and `%source.key%` placeholders; the resolver
59
- * substitutes them and applies `formats`.
60
- */
61
37
  export interface TextSegment {
62
38
  id: string;
63
39
  content: string;
64
- /** Inherit the enclosing block's style rather than carrying one. */
65
40
  useOwnStyle?: boolean;
66
41
  style?: TextStyle;
67
- /** Break to a new line after this segment. */
68
42
  newLine?: boolean;
69
43
  formats?: PlaceholderFormats;
70
- /** Printed only when this holds — a labelled line appears only when its value exists. */
71
44
  condition?: ReportConditionGroup;
72
45
  }
73
46
  export type PaperSize = 'A3' | 'A4' | 'A5' | 'A6' | 'Letter' | 'Legal' | 'Roll' | 'custom';
74
47
  export type PageOrientation = 'portrait' | 'landscape';
75
- /**
76
- * Drawn behind every page, centred. A page property rather than a band: it takes no room and
77
- * must never take part in pagination.
78
- */
79
48
  export interface Watermark {
80
- /** Text, placeholders allowed. Ignored when `image` resolves to something. */
81
49
  text?: string;
82
- /** A URL, a data URI, or a placeholder resolving to one. */
83
50
  image?: string;
84
- /** Width of the image in points. Defaults to half the page width. */
85
51
  imageWidthPt?: number;
86
- /** 0–1. Defaults to 0.15. */
87
52
  opacity?: number;
88
- /** Degrees, text only. Defaults to -45. */
89
53
  angle?: number;
90
- /** Text only. Defaults to 60. */
91
54
  fontSize?: number;
92
- /** Text only. Defaults to a dark blue. */
93
55
  color?: string;
94
56
  bold?: boolean;
95
- /** Drawn only when this holds — "only on a proforma", "only when the shop turned it on". */
96
57
  condition?: ReportConditionGroup;
97
58
  }
98
59
  export interface PageConfig {
99
60
  size: PaperSize;
100
61
  orientation: PageOrientation;
101
- /** Required for 'custom'; for 'Roll', `heightMm` is 'auto' — a continuous, unpaged document. */
102
62
  widthMm?: number;
103
63
  heightMm?: number | 'auto';
104
64
  marginTopMm: number;
@@ -1,85 +1,39 @@
1
- /**
2
- * Report engine — the contract between the engine and whatever app is using it.
3
- *
4
- * THIS FILE IS WHY THE ENGINE IS GENERIC. The engine knows there are named scalar sources and
5
- * named row sets; it does not know that one of them is an invoice. Every domain word — invoice,
6
- * item, customer, size, colour — arrives at runtime through a `ReportRegistry` the app declares.
7
- *
8
- * If a domain term ever appears in `packages/shared-types/src/report/` or
9
- * `shared-logic/src/report/`, the abstraction has failed and the engine is an invoice renderer
10
- * with extra steps. See `docs/REPORT_ENGINE.md` §6 and §14.
11
- */
12
1
  import type { PlaceholderFormat } from './primitives';
13
2
  export type FieldType = 'text' | 'number' | 'date' | 'boolean' | 'image';
14
- /**
15
- * One addressable value. The engine uses `type` and `format` to render it and `label` to show it
16
- * in a picker; it never interprets `key`.
17
- */
18
3
  export interface FieldDef {
19
4
  key: string;
20
5
  label: string;
21
6
  type: FieldType;
22
- /** Applied when a placeholder does not override it. */
23
7
  format?: PlaceholderFormat;
24
- /** Whether `agg.*` may be taken over this field. Validation rejects aggregates over the rest. */
25
8
  aggregatable?: boolean;
26
- /** Optional grouping for the field picker, e.g. 'Totals', 'Tax'. */
27
9
  group?: string;
28
10
  }
29
- /** A bag of scalars addressed as `%<key>.<field>%` — 'business', 'customer', 'summary'. */
30
11
  export interface SourceDef {
31
12
  key: string;
32
13
  label: string;
33
14
  fields: FieldDef[];
34
15
  }
35
- /**
36
- * How a row set serves as a LOOKUP — sizes, colours, dias — for a table that groups rows by an id.
37
- *
38
- * Only the app knows that `sizeid` "XL" sorts after "L"; it says so by passing the sizes as a row
39
- * set and naming which of its fields is the id, the name and the display order. The table then
40
- * points at it (`TableData.group.lookup`), and the designer offers it as a choice — which a
41
- * function in app code could never be.
42
- */
43
16
  export interface LookupDef {
44
- /** Field holding the id rows are grouped by. */
45
17
  key: string;
46
- /** Field printed as the value's name. */
47
18
  label: string;
48
- /** Numeric field giving the display order. Absent: the order the rows arrive in. */
49
19
  order?: string;
50
20
  }
51
- /** An iterable set of rows addressed as `%row.<field>%` inside a table. */
52
21
  export interface RowSetDef {
53
22
  key: string;
54
23
  label: string;
55
24
  fields: FieldDef[];
56
- /** Present when this row set can be used to name and order grouped values. */
57
25
  lookup?: LookupDef;
58
26
  }
59
- /**
60
- * Everything an app publishes about its data. Drives the field picker, validation, and resolution.
61
- * One registry per document kind ('invoice', 'stock-report', 'ageing', …).
62
- */
63
27
  export interface ReportRegistry {
64
28
  key: string;
65
29
  label: string;
66
30
  sources: SourceDef[];
67
31
  rowSets: RowSetDef[];
68
- /**
69
- * Named values computed in code and offered to templates as ordinary fields.
70
- *
71
- * This is the deliberate replacement for a formula language (`docs/REPORT_ENGINE.md` §7).
72
- * Anything a template cannot express with placeholders, conditions and the fixed aggregate
73
- * list becomes an entry here — reviewed, typed and testable — rather than a string a user
74
- * typed into a box.
75
- */
76
32
  computed?: FieldDef[];
77
33
  }
78
- /** The data itself, at render time. Shapes are opaque to the engine. */
79
34
  export interface ReportContext {
80
35
  sources: Record<string, Record<string, unknown>>;
81
36
  rowSets: Record<string, Array<Record<string, unknown>>>;
82
37
  computed?: Record<string, (ctx: ReportContext) => unknown>;
83
- /** What the user picked for the template's print options, by option key. */
84
38
  options?: Record<string, unknown>;
85
39
  }
@@ -1,41 +1,10 @@
1
- /**
2
- * Report engine — how a template is stored.
3
- *
4
- * A shipped format is a SEED that lives in code. What a customer saves is a DIFF against that
5
- * seed, so a seed can be improved later without overwriting their work, and "this shop wants the
6
- * lorry number under the address" never becomes a file in the repository. See
7
- * `docs/REPORT_ENGINE.md` §8.
8
- *
9
- * NO RUNTIME VALUES IN THIS FOLDER — see the note at the top of `template.ts`. The doc name, the
10
- * diff and the resolver all live in `shared-logic/report/storage`.
11
- */
12
1
  import type { ReportTemplate } from './template';
13
- /**
14
- * One entry in the templates settings document. The map key is the template id, so `id` is never
15
- * stored inside the entry — it would be a second copy of the same fact, free to disagree.
16
- */
17
2
  export interface StoredReportTemplate {
18
- /**
19
- * Id of the shipped seed this diffs against. Absent means the customer authored the whole
20
- * template, and `template` then holds all of it rather than a difference.
21
- */
22
3
  seed?: string;
23
- /**
24
- * `REPORT_SCHEMA_VERSION` when the diff was written. The diff is migrated to the current
25
- * version BEFORE it meets the seed — merging an old diff onto a new seed would produce a
26
- * document that is half one shape and half the other.
27
- */
28
4
  schemaVersion?: number;
29
- /** false hides a format from the pickers without deleting the customer's edits. */
30
5
  active?: boolean;
31
- /** Set by the app on write; the engine neither reads nor produces these. */
32
6
  createdts?: unknown;
33
7
  updatedts?: unknown;
34
- /**
35
- * The difference from the seed, by whole top-level key. A key absent here is taken from the
36
- * seed, which is how a seed improvement reaches a customer who never touched that key.
37
- */
38
8
  template?: Partial<ReportTemplate>;
39
9
  }
40
- /** The templates settings document: template id → entry. */
41
10
  export type ReportTemplatesStoredMap = Record<string, StoredReportTemplate>;
@@ -1,92 +1,32 @@
1
- /**
2
- * Report engine — the authored document.
3
- *
4
- * A `ReportTemplate` is data. It is stored, diffed against a shipped seed, and edited by people
5
- * who are not developers, which is why `schemaVersion` is not optional and never will be: the day
6
- * a customer saves one of these, the shape is frozen for everybody and the only way forward is a
7
- * migration ladder. See `docs/REPORT_ENGINE.md` §8 and §14.
8
- */
9
- /**
10
- * NO RUNTIME VALUES IN THIS FOLDER.
11
- *
12
- * `REPORT_SCHEMA_VERSION` and `REPORT_AGGREGATES` were declared here and took the client's dev
13
- * server down. The client resolves `shared-types` to its CommonJS `dist/index.js`, and Vite finds
14
- * that file's named exports by static analysis which follows one hop of `__exportStar`. The
15
- * report model is a nested barrel — `index.js` → `report/index.js` → `template.js` — so a value
16
- * declared here is two hops away and simply is not found. Types are unaffected: they are erased
17
- * and never ask the loader for anything.
18
- *
19
- * Both constants now live in `shared-logic/report/constants`, which is where the client already
20
- * gets its runtime code.
21
- */
22
1
  import type { Band } from './bands';
23
2
  import type { PageConfig } from './primitives';
24
3
  export type TemplateOptionType = 'boolean' | 'select' | 'text' | 'number';
25
- /**
26
- * A choice made when printing — "Tax table by HSN or by rate", "Show the summary". The template
27
- * declares it, the app's print dialog shows it, and conditions and text read it as `%option.key%`.
28
- */
29
4
  export interface TemplateOption {
30
5
  key: string;
31
6
  label: string;
32
7
  type: TemplateOptionType;
33
- /** For `select`. */
34
8
  choices?: Array<{
35
9
  value: string;
36
10
  label: string;
37
11
  }>;
38
- /** Used when the app passes no value. */
39
12
  default?: string | number | boolean;
40
13
  description?: string;
41
14
  }
42
15
  export interface ReportTemplate {
43
- /** `REPORT_SCHEMA_VERSION` at authoring time. Migrations run oldest → newest on read. */
44
16
  schemaVersion: number;
45
17
  id: string;
46
18
  name: string;
47
19
  description?: string;
48
- /** Which `ReportRegistry` this template is written against. */
49
20
  registry: string;
50
21
  page: PageConfig;
51
22
  options?: TemplateOption[];
52
- /** In print order. */
53
23
  bands: Band[];
54
24
  }
55
- /**
56
- * Line thicknesses for a table, in points. Absent or 0 draws nothing.
57
- *
58
- * Lines are GEOMETRY, not decoration: a 1pt line under a row makes that row 1pt taller, and a
59
- * vertical line makes the table 1pt wider. The engine budgets both, which is why this is four
60
- * numbers rather than a pdfmake `layout` callback — a callback can draw anything, and the planner
61
- * would have no way to know how tall it made the page.
62
- */
63
25
  export interface GridLines {
64
- /** The box: above the heading, down both sides, and closing the table on every page. */
65
26
  outer?: number;
66
- /** Between columns. */
67
27
  columns?: number;
68
- /** Under the heading. */
69
28
  header?: number;
70
- /** Between rows. */
71
29
  rows?: number;
72
30
  }
73
- /**
74
- * Empty rows added after a table's last row, so the box runs down to what follows.
75
- *
76
- * `lastPage` fills only the page the table ends on — the classic invoice, whose totals sit at the
77
- * foot of the page. `everyPage` also fills pages the table continues from, so a tall row that moved
78
- * to the next page does not leave a gap under the box.
79
- */
80
31
  export type GridFill = 'none' | 'lastPage' | 'everyPage';
81
- /**
82
- * The fixed aggregate set. There is no expression language and there will not be one; anything
83
- * beyond this becomes a field the app computes.
84
- *
85
- * Written `%agg.sum(row.total)%` inside a table's closing or section rows (that table's or section's
86
- * rows), `%agg.sum(group.qty)%` under a group column, or `%agg.sum(items.total)%` anywhere (a whole
87
- * row set as passed). `distinct` counts different values — `agg.distinct(items.sizeid)`.
88
- *
89
- * The matching runtime list lives in `shared-logic/report/constants` — see the note at the top of
90
- * this file for why it cannot live here.
91
- */
92
32
  export type ReportAggregate = 'sum' | 'count' | 'avg' | 'min' | 'max' | 'first' | 'last' | 'distinct';
@@ -2,11 +2,8 @@ import type { DataAttributes } from './common.types';
2
2
  import type { ControlSize, SemanticColor } from './control.types';
3
3
  import type { TooltipProp, TooltipTrigger } from './tooltip.types';
4
4
  import { CSSProperties, ReactNode, MouseEvent, PointerEvent, KeyboardEvent, FocusEvent, ElementType, Ref } from 'react';
5
- /** Button's own surface treatments — unrelated to the field variants. */
6
5
  export type ButtonVariant = 'filled' | 'outlined' | 'text' | 'elevated' | 'tonal';
7
- /** @see ControlSize — a Button sizes on the same scale as the fields beside it. */
8
6
  export type ButtonSize = ControlSize;
9
- /** Buttons take the full semantic axis, `neutral` included. */
10
7
  export type ButtonColor = SemanticColor;
11
8
  export type ButtonShape = 'rectangle' | 'rounded' | 'pill' | 'circle' | 'square';
12
9
  export type LoadingPosition = 'start' | 'end' | 'center' | 'overlay';
@@ -26,8 +23,6 @@ export interface ButtonProps extends DataAttributes {
26
23
  onBlur?: (event: FocusEvent<HTMLElement>) => void;
27
24
  onMouseEnter?: (event: MouseEvent<HTMLElement>) => void;
28
25
  onMouseLeave?: (event: MouseEvent<HTMLElement>) => void;
29
- /** Button has no rest-prop spread, so hover-driven wrappers (Tooltip clones
30
- its child) need these declared or they are silently dropped. */
31
26
  onPointerEnter?: (event: PointerEvent<HTMLElement>) => void;
32
27
  onPointerMove?: (event: PointerEvent<HTMLElement>) => void;
33
28
  onPointerLeave?: (event: PointerEvent<HTMLElement>) => void;
@@ -37,13 +32,7 @@ export interface ButtonProps extends DataAttributes {
37
32
  startIcon?: ReactNode;
38
33
  endIcon?: ReactNode;
39
34
  icon?: ReactNode;
40
- /** Same contract as every field's `tooltip`: bare content, or a config
41
- object when placement/delay matter. Button already routed this through
42
- `useTooltip`/`normalizeTooltip` at runtime — the type said `string`. */
43
35
  tooltip?: TooltipProp;
44
- /** Accepted for uniformity with the fields. A Button is its own trigger, so
45
- `icon` and `control` behave alike; the prop exists so a field and a
46
- button can be spread from the same props object. */
47
36
  tooltipTrigger?: TooltipTrigger;
48
37
  disabled?: boolean;
49
38
  loading?: boolean;
@@ -20,10 +20,6 @@ export interface CheckboxProps extends ToggleFieldProps<string | number, HTMLInp
20
20
  checked?: boolean;
21
21
  indeterminate?: boolean;
22
22
  defaultChecked?: boolean;
23
- /**
24
- * @deprecated Use `hint` — the shared name for this slot, which is what
25
- * FieldWrapper renders. Kept until the components migrate (step 0c).
26
- */
27
23
  helperText?: string | ReactNode;
28
24
  checkboxClassName?: string;
29
25
  checkedIcon?: ReactNode;
@@ -1,11 +1,6 @@
1
1
  import type { Ref } from 'react';
2
2
  import type { FieldSize, FieldVariant, FieldLayout } from './fieldWrapper.types';
3
3
  import type { TextFieldProps } from './field.types';
4
- /**
5
- * How a token is spelled. `braces` — `{invoice.number}` — is what ChipInput has always used.
6
- * `percent` — `%invoice.number%` — is the report engine's spelling, and it allows keys a brace token
7
- * cannot hold, such as `agg.sum(row.total)`.
8
- */
9
4
  export type ChipTokenSyntax = 'braces' | 'percent';
10
5
  export interface ChipKey {
11
6
  key: string;
@@ -37,7 +32,6 @@ export interface ParsedSegment {
37
32
  }
38
33
  export interface ResolveOptions {
39
34
  fallback?: string;
40
- /** Default `braces`. */
41
35
  syntax?: ChipTokenSyntax;
42
36
  undefinedBehavior?: 'keep' | 'remove' | 'fallback';
43
37
  }
@@ -52,12 +46,9 @@ export interface FormatValidationResult {
52
46
  }
53
47
  export type ChipInputSize = FieldSize;
54
48
  export type ChipInputVariant = FieldVariant;
55
- /** Was `'vertical' | 'horizontal' | 'inline'` — the same three arrangements
56
- every other field calls `'default' | 'horizontal' | 'inline'`. */
57
49
  export type ChipInputLayout = FieldLayout;
58
50
  export interface ChipInputProps extends TextFieldProps<string, HTMLDivElement> {
59
51
  sources: ChipSources;
60
- /** How tokens are spelled in `value`. Default `braces`. */
61
52
  syntax?: ChipTokenSyntax;
62
53
  inputClassName?: string;
63
54
  previewData?: Record<string, Record<string, any>>;
@@ -67,7 +58,6 @@ export interface ChipInputProps extends TextFieldProps<string, HTMLDivElement> {
67
58
  export interface UseChipSuggestionsOptions {
68
59
  sources: ChipSources;
69
60
  searchTerm: string;
70
- /** Spelling of the tokens suggestions insert. Default `braces`. */
71
61
  syntax?: ChipTokenSyntax;
72
62
  }
73
63
  export interface UseChipSuggestionsReturn {
@@ -3,20 +3,11 @@ import type { TooltipProp } from './tooltip.types';
3
3
  import type { ControlSize, SemanticColor } from './control.types';
4
4
  export type CollapsibleVariant = 'default' | 'bordered' | 'separated' | 'filled' | 'minimal';
5
5
  export type CollapsibleSize = ControlSize;
6
- /** A container tints from the surface end of the axis, not the state end —
7
- a "warning" accordion is a badge's job, not the panel's. */
8
6
  export type CollapsibleColor = Extract<SemanticColor, 'primary' | 'secondary' | 'neutral'>;
9
7
  export type CollapsibleIconPosition = 'start' | 'end';
10
8
  export type CollapsibleExpansionMode = 'single' | 'multiple';
11
- /** How the open/closed state is signalled: a rotating chevron, or + → −. */
12
9
  export type CollapsibleDisclosure = 'chevron' | 'plusminus';
13
- /** Tint applied to an item's leading icon (and its tile, when tiles are on). */
14
10
  export type CollapsibleTone = 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'info' | 'neutral';
15
- /**
16
- * Heading level the trigger is wrapped in. The accordion pattern requires the
17
- * button to sit inside a heading so the panels appear in the document outline —
18
- * the right level depends on the surrounding page, so it is a prop.
19
- */
20
11
  export type CollapsibleHeadingLevel = 2 | 3 | 4 | 5 | 6;
21
12
  export interface CollapsibleAuthorize {
22
13
  type: 'r' | 's' | 'b';
@@ -31,13 +22,9 @@ export interface CollapsibleAuthorize {
31
22
  export interface CollapsibleItemProps {
32
23
  id?: string;
33
24
  title: string | ReactNode;
34
- /** Leading icon, shown before the title — not the open/close chevron. */
35
25
  icon?: ReactNode;
36
- /** Tint for that leading icon and its tile. */
37
26
  iconTone?: CollapsibleTone;
38
- /** Trailing summary on the header row: "12 items", "₹1,25,000". */
39
27
  meta?: string | ReactNode;
40
- /** Shown on hover/focus of the header trigger. */
41
28
  tooltip?: TooltipProp;
42
29
  children?: ReactNode;
43
30
  Component?: ComponentType<any>;
@@ -70,11 +57,8 @@ export interface CollapsibleProps {
70
57
  size?: CollapsibleSize;
71
58
  color?: CollapsibleColor;
72
59
  iconPosition?: CollapsibleIconPosition;
73
- /** Chevron (default) or +/− for the open/close affordance. */
74
60
  disclosure?: CollapsibleDisclosure;
75
- /** Leading icons sit in a tinted rounded tile. Off = bare glyph. */
76
61
  iconTile?: boolean;
77
- /** Heading level wrapping each trigger. Default 3. */
78
62
  headingLevel?: CollapsibleHeadingLevel;
79
63
  disabled?: boolean;
80
64
  className?: string;
@@ -82,11 +66,9 @@ export interface CollapsibleProps {
82
66
  animated?: boolean;
83
67
  animationDuration?: number;
84
68
  showDividers?: boolean;
85
- /** Expanded headers stick to the top of the scroll container. */
86
69
  stickyHeaders?: boolean;
87
70
  collapsedIcon?: ReactNode;
88
71
  expandedIcon?: ReactNode;
89
- /** Arrow/Home/End move focus between headers, per the accordion pattern. */
90
72
  keyboardNavigation?: boolean;
91
73
  'aria-label'?: string;
92
74
  'aria-labelledby'?: string;
@@ -1,14 +1,3 @@
1
- /**
2
- * Shared contract every web component in @pdfinvoice/shared-web-ui satisfies.
3
- *
4
- * Each component enumerates the props it understands. Without this, anything not
5
- * on that allow-list is silently dropped — including `data-*` attributes, which
6
- * test harnesses (Storybook/Testing Library) and the editable-table cell
7
- * addressing both rely on.
8
- *
9
- * A `data-${string}` template index signature is used rather than
10
- * `[key: string]: any` so arbitrary misspelled props are still rejected.
11
- */
12
1
  export interface DataAttributes {
13
2
  [dataAttr: `data-${string}`]: unknown;
14
3
  }