@nxgt/material 3.57.0 → 3.59.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 (471) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/README.md +33 -1
  3. package/dist/{async-slice-B3RMgJUn.js → async-slice-Cmvxrvn9.js} +2 -2
  4. package/dist/{background-BtSZsTvY.js → background-qdnet2A5.js} +124 -83
  5. package/dist/backgrounds.js +1 -1
  6. package/dist/barcode.js +440 -0
  7. package/dist/{button-hnUZpzYu.js → button-Deo7l4wM.js} +97 -74
  8. package/dist/{callout-view-C6voDS00.js → callout-view-C7UznnDW.js} +1 -1
  9. package/dist/charts.js +1531 -1489
  10. package/dist/{chip-kplPa8ZV.js → chip-BlmIjpiD.js} +2 -2
  11. package/dist/{code-editor-Ba61Cd-g.js → code-editor-BYEpBp_U.js} +312 -282
  12. package/dist/code-editor.js +14 -14
  13. package/dist/{code-language-items-CsDC4Ky4.js → code-language-items-Cqk4Fq61.js} +2 -2
  14. package/dist/components/components.css +1 -0
  15. package/dist/components/ui/widgets/barcode/barcode.css +112 -0
  16. package/dist/{components-BgckuX2C.js → components-BsKpeqVX.js} +28688 -25977
  17. package/dist/components.js +26 -26
  18. package/dist/{convert-XAkWyO8-.js → convert-7g-F5cNf.js} +1 -1
  19. package/dist/{dialog-DS8O4Kkb.js → dialog-1BstKBvt.js} +4 -4
  20. package/dist/dnd.js +1 -1
  21. package/dist/draw-animate.js +1 -1
  22. package/dist/{dropdown-menu-CvVQJpsn.js → dropdown-menu-hoaocAS7.js} +1 -1
  23. package/dist/editor-viewer.js +1 -1
  24. package/dist/editor.js +715 -607
  25. package/dist/empty-state-DEG9h7xk.js +139 -0
  26. package/dist/{escape-owner-BJvicDmr.js → escape-owner-BvLBo_Al.js} +22 -22
  27. package/dist/{field-blur-Cnjk0o9A.js → field-blur-BkeYPaWi.js} +1 -1
  28. package/dist/{field-blur-context-CYlx9KnB.js → field-blur-context-Ba7iZVm_.js} +1 -1
  29. package/dist/{headless-extensions-CvmdhANJ.js → headless-extensions-B1NAgmkE.js} +1 -1
  30. package/dist/hooks.js +2 -2
  31. package/dist/{hover-card-DW4XnExA.js → hover-card-C5DTU9P_.js} +2 -2
  32. package/dist/{i18n-provider-DBr59j1p.js → i18n-provider-BJDI-A5w.js} +1 -1
  33. package/dist/i18n.js +5 -5
  34. package/dist/{icon-badge-4FMy66AC.js → icon-badge-9ZE6k7cn.js} +3 -3
  35. package/dist/{icon-button-QF7smCoV.js → icon-button-AwJtCkV5.js} +59 -59
  36. package/dist/{illustration-B4_W-OUS.js → illustration-DjZXUFbz.js} +11 -11
  37. package/dist/illustrations.js +1 -1
  38. package/dist/lib/backgrounds/background/background.d.ts +1 -1
  39. package/dist/lib/backgrounds/background/partials/use-background-scenes.d.ts +22 -0
  40. package/dist/lib/backgrounds/background/partials/use-themed-background.d.ts +304 -0
  41. package/dist/lib/barcode/index.d.ts +15 -0
  42. package/dist/lib/components/ui/actions/action-card/action-card-semantics-branches.d.ts +63 -0
  43. package/dist/lib/components/ui/actions/action-card/action-card-semantics.d.ts +0 -4
  44. package/dist/lib/components/ui/actions/action-card/partials/action-card-text.d.ts +3 -1
  45. package/dist/lib/components/ui/actions/action-card/use-action-card.d.ts +80 -0
  46. package/dist/lib/components/ui/actions/button/button-busy.d.ts +8 -0
  47. package/dist/lib/components/ui/actions/button/button.classes.d.ts +7 -0
  48. package/dist/lib/components/ui/actions/index.d.ts +1 -0
  49. package/dist/lib/components/ui/actions/load-more-footer/index.d.ts +1 -0
  50. package/dist/lib/components/ui/actions/load-more-footer/load-more-footer.d.ts +24 -0
  51. package/dist/lib/components/ui/actions/toolbar/use-toolbar-state.d.ts +22 -0
  52. package/dist/lib/components/ui/collections/data-grid/columns/column-check.d.ts +15 -0
  53. package/dist/lib/components/ui/collections/data-grid/columns/column-edit.d.ts +1 -12
  54. package/dist/lib/components/ui/collections/data-grid/editors/editor-props.d.ts +20 -0
  55. package/dist/lib/components/ui/collections/data-grid/editors/editor-route-key.d.ts +11 -0
  56. package/dist/lib/components/ui/collections/data-grid/partials/grid-cell-access.d.ts +26 -0
  57. package/dist/lib/components/ui/collections/data-grid/partials/grid-header-name.d.ts +15 -0
  58. package/dist/lib/components/ui/collections/data-grid/partials/header-menu-button.d.ts +17 -0
  59. package/dist/lib/components/ui/collections/data-grid/partials/open-header-menu.d.ts +14 -0
  60. package/dist/lib/components/ui/collections/data-grid/partials/width-field.d.ts +18 -0
  61. package/dist/lib/components/ui/collections/data-grid/phone/phone-item.d.ts +2 -2
  62. package/dist/lib/components/ui/collections/data-table/partials/layouts/data-table-card-list.d.ts +17 -0
  63. package/dist/lib/components/ui/collections/data-table/partials/layouts/list-bar-clear.d.ts +10 -0
  64. package/dist/lib/components/ui/collections/data-table/partials/layouts/list-bar-in-row.d.ts +18 -0
  65. package/dist/lib/components/ui/collections/data-table/partials/page-button.d.ts +12 -0
  66. package/dist/lib/components/ui/collections/data-table/partials/page-icon-control.d.ts +21 -0
  67. package/dist/lib/components/ui/collections/data-table/partials/pager-buttons.d.ts +7 -0
  68. package/dist/lib/components/ui/collections/data-table/use-data-table-setup.d.ts +36 -0
  69. package/dist/lib/components/ui/collections/facet-group/partials/facet-group-header.d.ts +11 -0
  70. package/dist/lib/components/ui/collections/filter/filter-field-config-base.utils.d.ts +13 -0
  71. package/dist/lib/components/ui/collections/filter/filter-field-config-choice.utils.d.ts +5 -0
  72. package/dist/lib/components/ui/collections/filter/filter-field-config-value.utils.d.ts +5 -0
  73. package/dist/lib/components/ui/collections/filter/filter-field-config.utils.d.ts +6 -0
  74. package/dist/lib/components/ui/collections/filter/filter-legacy.d.ts +1 -1
  75. package/dist/lib/components/ui/collections/filter/filter-persistence-url-value.utils.d.ts +9 -0
  76. package/dist/lib/components/ui/collections/filter/filter-schema.utils.d.ts +1 -5
  77. package/dist/lib/components/ui/collections/filter/filter-validation-presets.utils.d.ts +24 -0
  78. package/dist/lib/components/ui/collections/filter/filter-validation-rules.utils.d.ts +11 -0
  79. package/dist/lib/components/ui/collections/filter/filter-validation.utils.d.ts +1 -23
  80. package/dist/lib/components/ui/collections/filter/partials/filter-field-special.d.ts +8 -0
  81. package/dist/lib/components/ui/collections/filter/partials/filter-form-field-variant.d.ts +10 -0
  82. package/dist/lib/components/ui/collections/filter/partials/filter-group-fields.d.ts +5 -0
  83. package/dist/lib/components/ui/collections/filter/partials/filter-legacy-variant.d.ts +3 -0
  84. package/dist/lib/components/ui/collections/filter/partials/filter-preset-fields.d.ts +9 -0
  85. package/dist/lib/components/ui/collections/filter/partials/filter-presets-menu-items.d.ts +13 -0
  86. package/dist/lib/components/ui/collections/filter/partials/filter-presets-menu.d.ts +5 -0
  87. package/dist/lib/components/ui/collections/filter/partials/filter-presets-save-dialog.d.ts +7 -0
  88. package/dist/lib/components/ui/collections/filter/partials/filter-presets-save-trigger.d.ts +7 -0
  89. package/dist/lib/components/ui/collections/filter/query/types.d.ts +3 -39
  90. package/dist/lib/components/ui/collections/filter/query/use-filter-query-options.d.ts +1 -1
  91. package/dist/lib/components/ui/collections/filter/query/use-filter-query-value.d.ts +2 -2
  92. package/dist/lib/components/ui/collections/filter/query/view-types.d.ts +40 -0
  93. package/dist/lib/components/ui/collections/filter/sections/use-filter-search.d.ts +14 -0
  94. package/dist/lib/components/ui/collections/filter/use-filter-field-config.d.ts +7483 -0
  95. package/dist/lib/components/ui/collections/list-pane/partials/list-pane-body.d.ts +12 -0
  96. package/dist/lib/components/ui/collections/list-pane/partials/list-pane-item-content.d.ts +15 -0
  97. package/dist/lib/components/ui/collections/list-pane/partials/list-pane-search.d.ts +8 -0
  98. package/dist/lib/components/ui/collections/pagination/pagination-bar-pages.d.ts +8 -0
  99. package/dist/lib/components/ui/collections/server-table/partials/server-table-bulk-action-button.d.ts +26 -0
  100. package/dist/lib/components/ui/collections/server-table/partials/server-table-bulk-buttons.d.ts +13 -11
  101. package/dist/lib/components/ui/collections/server-table/partials/server-table-bulk-entries.d.ts +11 -0
  102. package/dist/lib/components/ui/collections/server-table/partials/server-table-bulk-focus.d.ts +1 -28
  103. package/dist/lib/components/ui/collections/server-table/partials/server-table-bulk-keys.d.ts +37 -0
  104. package/dist/lib/components/ui/collections/server-table/partials/server-table-grid-paging.d.ts +8 -0
  105. package/dist/lib/components/ui/collections/server-table/types-filter.d.ts +70 -0
  106. package/dist/lib/components/ui/collections/server-table/types-states.d.ts +42 -0
  107. package/dist/lib/components/ui/collections/server-table/types.d.ts +4 -110
  108. package/dist/lib/components/ui/collections/tree/tree-expand-button.d.ts +6 -0
  109. package/dist/lib/components/ui/collections/tree/use-tree-keys.d.ts +14 -0
  110. package/dist/lib/components/ui/collections/tree/use-tree-select.d.ts +14 -0
  111. package/dist/lib/components/ui/collections/tree/use-tree.d.ts +5 -4
  112. package/dist/lib/components/ui/dates/calendar/calendar-year-button.d.ts +10 -0
  113. package/dist/lib/components/ui/dates/calendar/calendar-year-nav.d.ts +9 -0
  114. package/dist/lib/components/ui/dates/date-field/date-field-parts.d.ts +78 -0
  115. package/dist/lib/components/ui/dates/date-range-field/partials/date-range-body-scroll.d.ts +15 -0
  116. package/dist/lib/components/ui/dates/date-range-field/partials/preview-calendar-props.d.ts +11 -0
  117. package/dist/lib/components/ui/dates/date-range-field/partials/use-cancel-range.d.ts +6 -0
  118. package/dist/lib/components/ui/dates/date-range-field/use-end-on.d.ts +12 -0
  119. package/dist/lib/components/ui/dates/date-range-field/use-typed-range.d.ts +2 -3
  120. package/dist/lib/components/ui/dates/mini-month/partials/mini-month-day.d.ts +8 -0
  121. package/dist/lib/components/ui/dates/mini-month/partials/mini-month-head.d.ts +18 -0
  122. package/dist/lib/components/ui/dates/mini-month/partials/mini-month-markers.d.ts +5 -0
  123. package/dist/lib/components/ui/dates/mini-month/partials/use-grid-focus.d.ts +11 -0
  124. package/dist/lib/components/ui/dates/picker-trigger/typed-box-parts.d.ts +12 -0
  125. package/dist/lib/components/ui/dates/time-field/partials/use-time-field-model.d.ts +14 -5
  126. package/dist/lib/components/ui/dates/time-picker/partials/time-column.d.ts +13 -0
  127. package/dist/lib/components/ui/display/cards/cards.stories.data.detail.d.ts +9 -0
  128. package/dist/lib/components/ui/display/cards/cards.stories.data.feed.d.ts +7 -0
  129. package/dist/lib/components/ui/display/cards/cards.stories.data.intro.d.ts +11 -0
  130. package/dist/lib/components/ui/display/cards/types-detail.d.ts +74 -0
  131. package/dist/lib/components/ui/display/cards/types-feed.d.ts +41 -0
  132. package/dist/lib/components/ui/display/cards/types-intro.d.ts +76 -0
  133. package/dist/lib/components/ui/display/cards/types.d.ts +3 -187
  134. package/dist/lib/components/ui/display/code/code-block-parts.d.ts +16 -0
  135. package/dist/lib/components/ui/display/enrolment-secret/enrolment-secret-manual.d.ts +9 -0
  136. package/dist/lib/components/ui/display/entity-header/partials/entity-header-start.d.ts +11 -0
  137. package/dist/lib/components/ui/display/event-chip/event-chip-content.d.ts +12 -0
  138. package/dist/lib/components/ui/display/param-table/param-table-views.d.ts +19 -0
  139. package/dist/lib/components/ui/display/recovery-codes/partials/use-recovery-codes-actions.d.ts +22 -0
  140. package/dist/lib/components/ui/display/recovery-codes-status/partials/recovery-codes-status-plain.d.ts +13 -0
  141. package/dist/lib/components/ui/feedback/alert-dialog/alert-dialog-actions.d.ts +6 -0
  142. package/dist/lib/components/ui/feedback/alert-dialog/alert-dialog.d.ts +1 -3
  143. package/dist/lib/components/ui/feedback/confirm-dialog/use-confirm-action.d.ts +16 -0
  144. package/dist/lib/components/ui/feedback/confirmation-dialog/use-confirmation-form.d.ts +18 -0
  145. package/dist/lib/components/ui/feedback/countdown-timer/countdown-timer.d.ts +5 -3
  146. package/dist/lib/components/ui/feedback/index.d.ts +1 -0
  147. package/dist/lib/components/ui/feedback/notification-row/partials/notification-row-body.d.ts +10 -0
  148. package/dist/lib/components/ui/feedback/notification-row/partials/notification-row-dot.d.ts +2 -0
  149. package/dist/lib/components/ui/feedback/notification-row/partials/notification-row-open.d.ts +5 -0
  150. package/dist/lib/components/ui/feedback/notifications/notifications-model.d.ts +59 -0
  151. package/dist/lib/components/ui/feedback/notifications/use-notifications-chrome.d.ts +17 -0
  152. package/dist/lib/components/ui/feedback/notifications/use-notifications.d.ts +4 -38
  153. package/dist/lib/components/ui/feedback/page-load-failed/index.d.ts +1 -0
  154. package/dist/lib/components/ui/feedback/page-load-failed/page-load-failed.d.ts +15 -0
  155. package/dist/lib/components/ui/feedback/spinner/spinner-variants.d.ts +5 -0
  156. package/dist/lib/components/ui/feedback/spinner/spinner.d.ts +1 -5
  157. package/dist/lib/components/ui/feedback/state-frame/state-frame-text.d.ts +10 -0
  158. package/dist/lib/components/ui/feedback/state-frame/use-state-media.d.ts +14 -0
  159. package/dist/lib/components/ui/feedback/step-dots/step-dot.d.ts +13 -0
  160. package/dist/lib/components/ui/feedback/step-dots/step-dots.d.ts +2 -1
  161. package/dist/lib/components/ui/feedback/step-up-dialog/describe-by.d.ts +4 -0
  162. package/dist/lib/components/ui/feedback/step-up-dialog/use-step-up-view.d.ts +34 -0
  163. package/dist/lib/components/ui/fields/attributes/attribute-form/attribute-options-form-fields.d.ts +7 -0
  164. package/dist/lib/components/ui/fields/attributes/attributes-list/attribute-tile.d.ts +11 -0
  165. package/dist/lib/components/ui/fields/attributes/partials/editor-rows.d.ts +15 -0
  166. package/dist/lib/components/ui/fields/contacts/partials/contact-groups.d.ts +20 -0
  167. package/dist/lib/components/ui/fields/contacts/partials/contact-tile.d.ts +13 -0
  168. package/dist/lib/components/ui/fields/contacts/partials/dialog-actions.d.ts +14 -0
  169. package/dist/lib/components/ui/fields/contacts/partials/dialog-fields.d.ts +14 -0
  170. package/dist/lib/components/ui/fields/contacts/placeholders.d.ts +1 -1
  171. package/dist/lib/components/ui/fields/country-field/iso-codes-1.d.ts +2 -0
  172. package/dist/lib/components/ui/fields/country-field/iso-codes-2.d.ts +2 -0
  173. package/dist/lib/components/ui/fields/country-field/iso-codes-3.d.ts +2 -0
  174. package/dist/lib/components/ui/fields/currency-field/use-currency-amount.d.ts +17 -0
  175. package/dist/lib/components/ui/fields/field/render-choice-field.d.ts +3 -0
  176. package/dist/lib/components/ui/fields/inline-edit/inline-edit-display.d.ts +12 -0
  177. package/dist/lib/components/ui/fields/inline-edit/inline-edit-editor.d.ts +14 -0
  178. package/dist/lib/components/ui/fields/inline-edit/use-inline-edit.d.ts +19 -0
  179. package/dist/lib/components/ui/fields/opening-hours/logic/missing-days.d.ts +3 -0
  180. package/dist/lib/components/ui/fields/opening-hours/partials/day-switch.d.ts +14 -0
  181. package/dist/lib/components/ui/fields/opening-hours/partials/dialog-actions.d.ts +13 -0
  182. package/dist/lib/components/ui/fields/opening-hours/partials/dialog-fields.d.ts +14 -0
  183. package/dist/lib/components/ui/fields/opening-hours/partials/hours-actions.d.ts +9 -0
  184. package/dist/lib/components/ui/fields/opening-hours/partials/hours-tile.d.ts +11 -0
  185. package/dist/lib/components/ui/fields/opening-hours/partials/week-rows.d.ts +14 -0
  186. package/dist/lib/components/ui/fields/opening-hours/use-hours-editor.d.ts +1 -0
  187. package/dist/lib/components/ui/fields/phone-field/phone-country-list.d.ts +10 -0
  188. package/dist/lib/components/ui/fields/phone-field/phone-dial-button.d.ts +10 -0
  189. package/dist/lib/components/ui/fields/phone-field/phone-number-input.d.ts +19 -0
  190. package/dist/lib/components/ui/fields/phone-field/use-phone-value.d.ts +17 -0
  191. package/dist/lib/components/ui/fields/postal-address/postal-address-dialog-actions.d.ts +14 -0
  192. package/dist/lib/components/ui/fields/postal-address/postal-address-dialog-fields.d.ts +10 -0
  193. package/dist/lib/components/ui/fields/rating-field/rating-color.d.ts +4 -0
  194. package/dist/lib/components/ui/fields/rating-field/rating-field.d.ts +1 -4
  195. package/dist/lib/components/ui/fields/rating-field/rating-star.d.ts +22 -0
  196. package/dist/lib/components/ui/fields/rating-field/use-rating.d.ts +16 -0
  197. package/dist/lib/components/ui/fields/search-field/search-box.d.ts +11 -0
  198. package/dist/lib/components/ui/fields/search-field/use-search-value.d.ts +21 -0
  199. package/dist/lib/components/ui/fields/slider/slider-control-row.d.ts +10 -0
  200. package/dist/lib/components/ui/fields/slider/slider-group-props.d.ts +16 -0
  201. package/dist/lib/components/ui/fields/slider/slider-group.d.ts +14 -0
  202. package/dist/lib/components/ui/fields/slider/slider-horizontal.d.ts +3 -0
  203. package/dist/lib/components/ui/fields/slider/slider-vertical.d.ts +3 -0
  204. package/dist/lib/components/ui/fields/slider/slider.d.ts +1 -1
  205. package/dist/lib/components/ui/fields/slider/use-slider-value.d.ts +10 -0
  206. package/dist/lib/components/ui/fields/textarea-field/textarea-footer.d.ts +14 -0
  207. package/dist/lib/components/ui/layout/app-shell/activity-chrome.d.ts +17 -0
  208. package/dist/lib/components/ui/layout/app-shell/activity-content-header.d.ts +15 -0
  209. package/dist/lib/components/ui/layout/app-shell/app-header-menu.d.ts +5 -0
  210. package/dist/lib/components/ui/layout/app-shell/band-boxes.d.ts +3 -0
  211. package/dist/lib/components/ui/layout/app-shell/collect-content.d.ts +24 -0
  212. package/dist/lib/components/ui/layout/app-shell/keep-inside-checker.d.ts +10 -0
  213. package/dist/lib/components/ui/layout/app-shell/page-title-focus.d.ts +32 -0
  214. package/dist/lib/components/ui/layout/app-shell/page-title-scope.d.ts +53 -0
  215. package/dist/lib/components/ui/layout/app-shell/page-title.d.ts +2 -82
  216. package/dist/lib/components/ui/layout/app-shell/use-keep-shapes-inside.d.ts +3 -13
  217. package/dist/lib/components/ui/layout/app-shell/watch-content.d.ts +2 -18
  218. package/dist/lib/components/ui/layout/auth-card/auth-card-parts.d.ts +25 -0
  219. package/dist/lib/components/ui/layout/doc/partials/doc-header-parts.d.ts +18 -0
  220. package/dist/lib/components/ui/layout/doc/partials/doc-header.d.ts +2 -4
  221. package/dist/lib/components/ui/layout/doc/partials/doc-nav-parts.d.ts +11 -0
  222. package/dist/lib/components/ui/layout/doc/use-doc-effects.d.ts +23 -0
  223. package/dist/lib/components/ui/layout/index.d.ts +1 -0
  224. package/dist/lib/components/ui/layout/sidebar/sidebar-menu-item-content.d.ts +7 -0
  225. package/dist/lib/components/ui/layout/sidebar/sidebar-menu-item.d.ts +2 -47
  226. package/dist/lib/components/ui/layout/sidebar/sidebar-menu-item.types.d.ts +54 -0
  227. package/dist/lib/components/ui/layout/sticky-action-bar/index.d.ts +1 -0
  228. package/dist/lib/components/ui/layout/sticky-action-bar/keyboard-inset.d.ts +17 -0
  229. package/dist/lib/components/ui/layout/sticky-action-bar/sticky-action-bar.d.ts +17 -0
  230. package/dist/lib/components/ui/layout/sticky-action-bar/use-keyboard-inset.d.ts +8 -0
  231. package/dist/lib/components/ui/layout/toc/toc-list.d.ts +16 -0
  232. package/dist/lib/components/ui/media/compare-slider/partials/compare-slider-handle.d.ts +9 -0
  233. package/dist/lib/components/ui/media/compare-slider/use-compare-slider.d.ts +22 -0
  234. package/dist/lib/components/ui/media/file-list/file-list-field.d.ts +1 -1
  235. package/dist/lib/components/ui/media/file-list/partials/file-list-dropzone.d.ts +13 -0
  236. package/dist/lib/components/ui/media/file-list/partials/file-list-input.d.ts +11 -0
  237. package/dist/lib/components/ui/media/file-list/partials/file-list-items.d.ts +14 -0
  238. package/dist/lib/components/ui/media/file-list/partials/file-list-row-actions.d.ts +12 -0
  239. package/dist/lib/components/ui/media/file-list/use-file-list-field.d.ts +33 -0
  240. package/dist/lib/components/ui/media/galleries/partials/gallery-chrome-toolbar.d.ts +2 -6
  241. package/dist/lib/components/ui/media/galleries/partials/gallery-chrome-zoom.d.ts +2 -0
  242. package/dist/lib/components/ui/media/galleries/partials/gallery-featured-arrows.d.ts +2 -0
  243. package/dist/lib/components/ui/media/galleries/partials/gallery-tile-media.d.ts +17 -0
  244. package/dist/lib/components/ui/media/galleries/partials/gallery-viewer-button.d.ts +6 -0
  245. package/dist/lib/components/ui/media/galleries/use-gallery-navigation.d.ts +18 -0
  246. package/dist/lib/components/ui/media/galleries/use-gallery-sync.d.ts +15 -0
  247. package/dist/lib/components/ui/media/image-cropper/partials/image-cropper-actions.d.ts +12 -0
  248. package/dist/lib/components/ui/media/image-cropper/partials/image-cropper-controls.d.ts +8 -0
  249. package/dist/lib/components/ui/media/image-cropper/partials/image-cropper-stage.d.ts +12 -0
  250. package/dist/lib/components/ui/media/image-cropper/use-image-cropper.d.ts +34 -0
  251. package/dist/lib/components/ui/media/image-editor/image-editor.slice.d.ts +43 -43
  252. package/dist/lib/components/ui/media/image-editor/image-editor.stage-gestures.d.ts +29 -0
  253. package/dist/lib/components/ui/media/image-editor/image-editor.stage-paint.d.ts +17 -0
  254. package/dist/lib/components/ui/media/image-editor/partials/crop-aspect-picker.d.ts +2 -0
  255. package/dist/lib/components/ui/media/image-editor/partials/crop-orientation.d.ts +2 -0
  256. package/dist/lib/components/ui/media/image-editor/partials/editor-export-options.d.ts +2 -0
  257. package/dist/lib/components/ui/media/image-editor/partials/editor-file-info.d.ts +2 -0
  258. package/dist/lib/components/ui/media/image-editor/partials/editor-history-buttons.d.ts +2 -0
  259. package/dist/lib/components/ui/media/image-editor/partials/markup-brush-section.d.ts +2 -0
  260. package/dist/lib/components/ui/media/image-editor/partials/markup-tool-picker.d.ts +2 -0
  261. package/dist/lib/components/ui/media/image-editor/types-edits.d.ts +106 -0
  262. package/dist/lib/components/ui/media/image-editor/types-session.d.ts +58 -0
  263. package/dist/lib/components/ui/media/image-editor/types.d.ts +4 -163
  264. package/dist/lib/components/ui/media/image-editor/use-crop-frame.d.ts +26 -0
  265. package/dist/lib/components/ui/media/image-editor/use-image-editor-keys.d.ts +4 -0
  266. package/dist/lib/components/ui/media/image-editor/use-image-editor.d.ts +10 -10
  267. package/dist/lib/components/ui/media/image-editor/use-markup-text.d.ts +10 -0
  268. package/dist/lib/components/ui/media/image-editor/use-stage-layer-key.d.ts +6 -0
  269. package/dist/lib/components/ui/media/image-editor/use-stage-pointer.d.ts +2 -3
  270. package/dist/lib/components/ui/media/media-player/partials/panels/transcript-follow.d.ts +7 -0
  271. package/dist/lib/components/ui/media/media-player/partials/panels/transcript-notice.d.ts +7 -0
  272. package/dist/lib/components/ui/media/media-player/partials/panels/use-search-announcement.d.ts +6 -0
  273. package/dist/lib/components/ui/media/media-player/partials/playlist-item.d.ts +13 -0
  274. package/dist/lib/components/ui/media/pdf-reader/partials/search-nav-buttons.d.ts +4 -0
  275. package/dist/lib/components/ui/media/pdf-reader/use-reader-chrome-state.d.ts +35 -0
  276. package/dist/lib/components/ui/media/pdf-reader/use-reader-chrome-value.d.ts +14 -0
  277. package/dist/lib/components/ui/media/upload/network-upload-field/network-upload-dropzone-body.d.ts +8 -0
  278. package/dist/lib/components/ui/primitives/segmented-input/segmented-input-cells.d.ts +20 -0
  279. package/dist/lib/components/ui/primitives/segmented-input/use-segment-paste.d.ts +17 -0
  280. package/dist/lib/components/ui/primitives/segmented-input/use-segmented-keys.d.ts +17 -0
  281. package/dist/lib/components/ui/selection/autocomplete/autocomplete-equality.d.ts +7 -0
  282. package/dist/lib/components/ui/selection/autocomplete/partials/autocomplete-chips.d.ts +2 -19
  283. package/dist/lib/components/ui/selection/autocomplete/types.d.ts +19 -1
  284. package/dist/lib/components/ui/selection/autocomplete/use-autocomplete-handlers.d.ts +5 -6
  285. package/dist/lib/components/ui/selection/autocomplete/use-autocomplete-leave.d.ts +14 -0
  286. package/dist/lib/components/ui/selection/autocomplete/use-autocomplete-picks.d.ts +17 -0
  287. package/dist/lib/components/ui/selection/autocomplete/use-autocomplete-typing.d.ts +14 -0
  288. package/dist/lib/components/ui/selection/autocomplete/use-autocomplete.d.ts +3 -3
  289. package/dist/lib/components/ui/selection/checkbox-group/checkbox-group.d.ts +2 -23
  290. package/dist/lib/components/ui/selection/checkbox-group/partials/checkbox-group-options.d.ts +10 -0
  291. package/dist/lib/components/ui/selection/checkbox-group/types.d.ts +23 -0
  292. package/dist/lib/components/ui/selection/color-swatches/color-swatches.d.ts +2 -1
  293. package/dist/lib/components/ui/selection/color-swatches/color-swatches.utils.d.ts +3 -0
  294. package/dist/lib/components/ui/selection/color-swatches/partials/color-swatch-button.d.ts +13 -0
  295. package/dist/lib/components/ui/selection/color-swatches/partials/color-swatch-styles.d.ts +3 -0
  296. package/dist/lib/components/ui/selection/color-swatches/partials/custom-color-swatch.d.ts +11 -0
  297. package/dist/lib/components/ui/selection/color-swatches/types.d.ts +1 -0
  298. package/dist/lib/components/ui/selection/combobox-field/combobox-field.d.ts +3 -48
  299. package/dist/lib/components/ui/selection/combobox-field/partials/combobox-field-input.d.ts +4 -0
  300. package/dist/lib/components/ui/selection/combobox-field/types.d.ts +47 -0
  301. package/dist/lib/components/ui/selection/combobox-field/use-combobox-field-aria.d.ts +15 -0
  302. package/dist/lib/components/ui/selection/combobox-field/use-combobox-field-items.d.ts +1 -1
  303. package/dist/lib/components/ui/selection/combobox-field/use-typed-query.d.ts +8 -0
  304. package/dist/lib/components/ui/selection/option-tile/use-status-text.d.ts +3 -0
  305. package/dist/lib/components/ui/selection/radio-group/partials/radio-group-options.d.ts +7 -0
  306. package/dist/lib/components/ui/selection/radio-group/partials/radio-group-parts.d.ts +4 -0
  307. package/dist/lib/components/ui/selection/radio-group/radio-group.d.ts +3 -24
  308. package/dist/lib/components/ui/selection/radio-group/types.d.ts +22 -0
  309. package/dist/lib/components/ui/selection/sortable-list/partials/sortable-list-footer.d.ts +4 -0
  310. package/dist/lib/components/ui/selection/sortable-list/partials/sortable-list-frame.d.ts +20 -0
  311. package/dist/lib/components/ui/selection/sortable-list/partials/sortable-list-row-parts.d.ts +20 -0
  312. package/dist/lib/components/ui/selection/sortable-list/partials/sortable-list-row-props.d.ts +298 -0
  313. package/dist/lib/components/ui/selection/sortable-list/use-sortable-list-chrome.d.ts +20 -0
  314. package/dist/lib/components/ui/selection/sortable-list/use-sortable-list-data.d.ts +20 -0
  315. package/dist/lib/components/ui/selection/sortable-list/use-sortable-list-grab.d.ts +15 -0
  316. package/dist/lib/components/ui/selection/sortable-list/use-sortable-list-moves.d.ts +18 -0
  317. package/dist/lib/components/ui/selection/sortable-list/use-sortable-list.d.ts +7 -8
  318. package/dist/lib/components/ui/selection/switcher/partials/switcher-recent.d.ts +11 -0
  319. package/dist/lib/components/ui/selection/switcher/partials/switcher-row-body.d.ts +8 -0
  320. package/dist/lib/components/ui/selection/switcher/switcher-list-keys.d.ts +17 -0
  321. package/dist/lib/components/ui/selection/switcher/switcher.d.ts +1 -1
  322. package/dist/lib/components/ui/selection/switcher/use-switcher-clip.d.ts +9 -0
  323. package/dist/lib/components/ui/selection/switcher/use-switcher-list-focus.d.ts +14 -0
  324. package/dist/lib/components/ui/selection/switcher/use-switcher-open.d.ts +9 -0
  325. package/dist/lib/components/ui/selection/switcher/use-switcher-panel.d.ts +24 -0
  326. package/dist/lib/components/ui/selection/switcher/use-switcher.d.ts +326 -0
  327. package/dist/lib/components/ui/selection/transfer-list/partials/transfer-list-frame.d.ts +19 -0
  328. package/dist/lib/components/ui/selection/transfer-list/partials/transfer-list-item-row.d.ts +2 -3
  329. package/dist/lib/components/ui/selection/transfer-list/partials/transfer-list-listbox.d.ts +5 -0
  330. package/dist/lib/components/ui/selection/transfer-list/partials/transfer-list-row-parts.d.ts +16 -0
  331. package/dist/lib/components/ui/selection/transfer-list/partials/transfer-list-row-props.d.ts +283 -0
  332. package/dist/lib/components/ui/selection/transfer-list/transfer-list.keyboard.d.ts +3 -2
  333. package/dist/lib/components/ui/selection/transfer-list/use-transfer-list-actions.d.ts +3 -2
  334. package/dist/lib/components/ui/selection/transfer-list/use-transfer-list-checks.d.ts +18 -0
  335. package/dist/lib/components/ui/selection/transfer-list/use-transfer-list-derived.d.ts +14 -0
  336. package/dist/lib/components/ui/selection/transfer-list/use-transfer-list.d.ts +1 -1
  337. package/dist/lib/components/ui/selection/tree-select-field/partials/tree-select-chips.d.ts +9 -0
  338. package/dist/lib/components/ui/selection/tree-select-field/partials/tree-select-trigger-button.d.ts +15 -0
  339. package/dist/lib/components/ui/widgets/barcode/barcode-error.d.ts +4 -0
  340. package/dist/lib/components/ui/widgets/barcode/barcode-geometry.d.ts +22 -0
  341. package/dist/lib/components/ui/widgets/barcode/barcode.d.ts +31 -0
  342. package/dist/lib/components/ui/widgets/barcode/code128.d.ts +15 -0
  343. package/dist/lib/components/ui/widgets/barcode/datamatrix-placement.d.ts +7 -0
  344. package/dist/lib/components/ui/widgets/barcode/datamatrix-rs.d.ts +2 -0
  345. package/dist/lib/components/ui/widgets/barcode/datamatrix-tables.d.ts +13 -0
  346. package/dist/lib/components/ui/widgets/barcode/datamatrix.d.ts +10 -0
  347. package/dist/lib/components/ui/widgets/barcode/encode.d.ts +12 -0
  348. package/dist/lib/components/ui/widgets/barcode/index.d.ts +6 -0
  349. package/dist/lib/components/ui/widgets/barcode/label-length.d.ts +4 -0
  350. package/dist/lib/components/ui/widgets/barcode/label-sheet.d.ts +37 -0
  351. package/dist/lib/components/ui/widgets/chat/chat-message.d.ts +1 -1
  352. package/dist/lib/components/ui/widgets/chat/chat-message.view.d.ts +32 -0
  353. package/dist/lib/components/ui/widgets/chat/partials/chat-composer-notices.d.ts +8 -0
  354. package/dist/lib/components/ui/widgets/chat/partials/chat-composer-surface.d.ts +11 -0
  355. package/dist/lib/components/ui/widgets/chat/partials/chat-conversation-item-skeleton.d.ts +4 -0
  356. package/dist/lib/components/ui/widgets/chat/partials/chat-conversation-item-text.d.ts +10 -0
  357. package/dist/lib/components/ui/widgets/chat/partials/chat-inbox-list.d.ts +8 -0
  358. package/dist/lib/components/ui/widgets/chat/partials/chat-inbox-thread.d.ts +11 -0
  359. package/dist/lib/components/ui/widgets/chat/partials/chat-message-action-menus.d.ts +17 -0
  360. package/dist/lib/components/ui/widgets/chat/partials/chat-message-body.d.ts +6 -0
  361. package/dist/lib/components/ui/widgets/chat/partials/chat-scroll-to-latest.d.ts +7 -0
  362. package/dist/lib/components/ui/widgets/chat/partials/chat-typing-row.d.ts +9 -0
  363. package/dist/lib/components/ui/widgets/chat/use-chat-inbox-pane.d.ts +13 -0
  364. package/dist/lib/components/ui/widgets/chat/use-chat-widget-open.d.ts +19 -0
  365. package/dist/lib/components/ui/widgets/code-editor/toolbar/code-view-tools.d.ts +10 -0
  366. package/dist/lib/components/ui/widgets/code-editor/use-monaco-options.d.ts +9 -0
  367. package/dist/lib/components/ui/widgets/editor/extensions/custom/accordion/accordion-item-actions.d.ts +7 -0
  368. package/dist/lib/components/ui/widgets/editor/extensions/custom/action-card/action-card-tile.d.ts +10 -0
  369. package/dist/lib/components/ui/widgets/editor/extensions/custom/select-card/select-card-tile.d.ts +11 -0
  370. package/dist/lib/components/ui/widgets/editor/extensions/custom/select-card/toggle-selection.d.ts +3 -0
  371. package/dist/lib/components/ui/widgets/editor/extensions/custom/shared/use-node-list.d.ts +11 -0
  372. package/dist/lib/components/ui/widgets/editor/extensions/emoji/use-emoji-groups.d.ts +13 -0
  373. package/dist/lib/components/ui/widgets/editor/presets/compact-editor-parts.d.ts +10 -0
  374. package/dist/lib/components/ui/widgets/editor/presets/document-editor-frame-parts.d.ts +19 -0
  375. package/dist/lib/components/ui/widgets/editor/presets/document-editor-layout.d.ts +5 -0
  376. package/dist/lib/components/ui/widgets/editor/presets/document-editor-overlays.d.ts +6 -0
  377. package/dist/lib/components/ui/widgets/editor/presets/document-editor-page-parts.d.ts +25 -0
  378. package/dist/lib/components/ui/widgets/editor/presets/rich-chat-composer/composer-class.d.ts +8 -0
  379. package/dist/lib/components/ui/widgets/editor/presets/rich-chat-composer/partials/composer-toolbar.d.ts +6 -0
  380. package/dist/lib/components/ui/widgets/editor/presets/rich-chat-composer/partials/format-buttons.d.ts +8 -0
  381. package/dist/lib/components/ui/widgets/editor/presets/use-document-features.d.ts +15 -0
  382. package/dist/lib/components/ui/widgets/education/questions/partials/question-body.d.ts +5 -0
  383. package/dist/lib/components/ui/widgets/education/questions/partials/question-content.d.ts +3 -0
  384. package/dist/lib/components/ui/widgets/education/questions/partials/question-extras.d.ts +10 -0
  385. package/dist/lib/components/ui/widgets/education/questions/partials/question-outcome.d.ts +7 -0
  386. package/dist/lib/components/ui/widgets/education/questions/question-options.keyboard.d.ts +17 -0
  387. package/dist/lib/components/ui/widgets/education/questions/question.d.ts +1 -1
  388. package/dist/lib/components/ui/widgets/education/questions/types.d.ts +3 -2
  389. package/dist/lib/components/ui/widgets/education/quizzes/partials/quiz-shortcuts.d.ts +6 -0
  390. package/dist/lib/components/ui/widgets/education/quizzes/partials/results-actions.d.ts +7 -0
  391. package/dist/lib/components/ui/widgets/education/quizzes/partials/results-ring.d.ts +5 -0
  392. package/dist/lib/components/ui/widgets/education/quizzes/quiz.flow.d.ts +29 -0
  393. package/dist/lib/components/ui/widgets/education/quizzes/quiz.slice.d.ts +3 -0
  394. package/dist/lib/components/ui/widgets/education/quizzes/use-quiz-actions.d.ts +20 -0
  395. package/dist/lib/components/ui/widgets/education/quizzes/use-quiz-flow.d.ts +29 -0
  396. package/dist/lib/components/ui/widgets/education/quizzes/use-quiz-lifecycle.d.ts +12 -0
  397. package/dist/lib/components/ui/widgets/education/quizzes/use-quiz.d.ts +2 -1
  398. package/dist/lib/components/ui/widgets/event-calendar/partials/calendar-step-buttons.d.ts +2 -0
  399. package/dist/lib/components/ui/widgets/event-calendar/partials/month-day-cell-class.d.ts +9 -0
  400. package/dist/lib/components/ui/widgets/event-calendar/partials/month-day-parts.d.ts +12 -0
  401. package/dist/lib/components/ui/widgets/event-calendar/use-month-day.d.ts +26 -0
  402. package/dist/lib/components/ui/widgets/kanban/kanban.drag.d.ts +15 -0
  403. package/dist/lib/components/ui/widgets/kanban/partials/kanban-card-tile.d.ts +7 -0
  404. package/dist/lib/components/ui/widgets/kanban/partials/kanban-column-cards.d.ts +8 -0
  405. package/dist/lib/components/ui/widgets/kanban/partials/kanban-drag-preview.d.ts +8 -0
  406. package/dist/lib/components/ui/widgets/kanban/partials/kanban-group-header.d.ts +8 -0
  407. package/dist/lib/components/ui/widgets/kanban/use-kanban-item-actions.d.ts +20 -0
  408. package/dist/lib/components/ui/widgets/native-charts/core/base-props-types.d.ts +64 -0
  409. package/dist/lib/components/ui/widgets/native-charts/core/reference-geometry.d.ts +62 -0
  410. package/dist/lib/components/ui/widgets/native-charts/core/reference-types.d.ts +35 -0
  411. package/dist/lib/components/ui/widgets/native-charts/core/reference.d.ts +1 -56
  412. package/dist/lib/components/ui/widgets/native-charts/core/types.d.ts +2 -96
  413. package/dist/lib/components/ui/widgets/native-charts/hooks/use-model-parts.d.ts +20 -0
  414. package/dist/lib/components/ui/widgets/native-charts/hooks/use-model-shown.d.ts +23 -0
  415. package/dist/lib/components/ui/widgets/native-charts/line-chart/partials/line-strokes.d.ts +10 -0
  416. package/dist/lib/components/ui/widgets/native-charts/line-chart/partials/use-line-reveal.d.ts +9 -0
  417. package/dist/lib/i18n/resources/en/en.d.ts +12 -0
  418. package/dist/lib/i18n/resources/en/material.json.d.ts +13 -1
  419. package/dist/lib/i18n/resources/fr/fr.d.ts +12 -0
  420. package/dist/lib/i18n/resources/fr/material.json.d.ts +13 -1
  421. package/dist/lib/i18n/resources/resources.d.ts +24 -0
  422. package/dist/lib/i18n/translator.d.ts +1 -1
  423. package/dist/lib/map/components/partials/default-location.d.ts +2 -0
  424. package/dist/lib/map/components/partials/location-dialog.d.ts +17 -0
  425. package/dist/lib/print/components/print-document/print-document.d.ts +2 -37
  426. package/dist/lib/print/components/print-document/print-document.types.d.ts +37 -0
  427. package/dist/lib/print/components/print-document/use-print-context.d.ts +11 -0
  428. package/dist/lib/print/components/print-section.d.ts +8 -1
  429. package/dist/lib.js +55 -48
  430. package/dist/main.js +43 -43
  431. package/dist/map.js +91 -74
  432. package/dist/material.css +1 -1
  433. package/dist/{nxgt-theme-ivgNca3z.js → nxgt-theme-DA1IQe0O.js} +5 -5
  434. package/dist/pdf-reader.js +1 -1
  435. package/dist/print.js +123 -108
  436. package/dist/{public-DVZJVdxD.js → public-CLkf8uky.js} +368 -338
  437. package/dist/{render-json-BOhvPnSv.js → render-json-COvAkihK.js} +3 -3
  438. package/dist/{rich-code-block-DL5-9JIi.js → rich-code-block-hJexXOdk.js} +5 -5
  439. package/dist/{rich-text-viewer-W15XIwah.js → rich-text-viewer-CXJp584B.js} +3 -3
  440. package/dist/{sortable-provider-DrpBwx75.js → sortable-provider-DE-MSfeJ.js} +2 -2
  441. package/dist/{spinner-D4XGdse6.js → spinner-CquTUxzt.js} +3 -1
  442. package/dist/{stored-language-C89mti-z.js → stored-language-BDzGeEAm.js} +22 -2
  443. package/dist/theme-picker.js +3 -3
  444. package/dist/{theme-toggle-BFhqLmgx.js → theme-toggle-DBgsBw8S.js} +1 -1
  445. package/dist/themes.js +1 -1
  446. package/dist/{toolbar-items-SZ5pyAFz.js → toolbar-items-Bm1baIp6.js} +578 -567
  447. package/dist/{translate-material-BkqnImND.js → translate-material-Q67GD4co.js} +2 -2
  448. package/dist/{translator-B5fId5Rw.js → translator-CBhGdYun.js} +1 -1
  449. package/dist/{use-chat-composer-BG5B4DGB.js → use-chat-composer-Cx7Q_KOV.js} +8929 -8650
  450. package/dist/{use-heading-spy-51GQw8tH.js → use-heading-spy-COxCWqWF.js} +1 -1
  451. package/dist/{use-material-translation-BQOr4Oks.js → use-material-translation-BZAy_ffS.js} +2 -2
  452. package/dist/use-shape-morph-BKA_R5P5.js +35 -0
  453. package/dist/{youtube-node-OWSNlYCc.js → youtube-node-A3NPAPgK.js} +27 -27
  454. package/docs/README.md +1 -0
  455. package/docs/components/buttons-and-actions.md +37 -0
  456. package/docs/components/feedback-and-status.md +30 -4
  457. package/docs/components/navigation-and-layout.md +47 -0
  458. package/docs/components/rich-widgets.md +34 -3
  459. package/docs/guides/barcode.md +203 -0
  460. package/docs/guides/data-grid.md +11 -1
  461. package/docs/guides/printing.md +28 -3
  462. package/docs/previews/buttons-actions-loadmorefooter.webp +0 -0
  463. package/docs/previews/feedback-status-pageloadfailed.webp +0 -0
  464. package/docs/previews/navigation-layout-stickyactionbar.webp +0 -0
  465. package/docs/roadmap.md +18 -3
  466. package/docs/troubleshooting.md +62 -0
  467. package/lib/components/components.css +1 -0
  468. package/lib/components/ui/widgets/barcode/barcode.css +112 -0
  469. package/package.json +10 -3
  470. package/dist/empty-state-4gmbCkcw.js +0 -117
  471. package/dist/use-shape-morph-DXdy2X5g.js +0 -35
@@ -0,0 +1,12 @@
1
+ import { ReactNode } from 'react';
2
+ /**
3
+ * A list pane's scrolling body. Its height reaches it as a CSS custom
4
+ * property set from script, never as an inline `style` in server markup.
5
+ * `bordered`: something (a header, the filter) sits above it.
6
+ */
7
+ export declare function ListPaneBody({ height, bordered, className, children, }: {
8
+ height?: number | string;
9
+ bordered: boolean;
10
+ className?: string;
11
+ children?: ReactNode;
12
+ }): import("react").JSX.Element;
@@ -0,0 +1,15 @@
1
+ import { ReactNode } from 'react';
2
+ /**
3
+ * What a `ListPaneItem` holds when it is given no `children`: the leading
4
+ * control, the media tile, the title with its description (not when
5
+ * `compact`), the badge (from a 20rem pane) and the trailing buttons.
6
+ */
7
+ export declare function ListPaneItemContent({ title, description, media, leading, badge, trailing, compact, }: {
8
+ title?: ReactNode;
9
+ description?: ReactNode;
10
+ media?: ReactNode;
11
+ leading?: ReactNode;
12
+ badge?: ReactNode;
13
+ trailing?: ReactNode;
14
+ compact: boolean;
15
+ }): import("react").JSX.Element;
@@ -0,0 +1,8 @@
1
+ /** A list pane's filter box, under its header. `topSpace`: there is no header above it. */
2
+ export declare function ListPaneSearch({ value, label, disabled, topSpace, onChange, }: {
3
+ value?: string;
4
+ label: string;
5
+ disabled?: boolean;
6
+ topSpace: boolean;
7
+ onChange: (query: string) => void;
8
+ }): import("react").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { paginationItems } from './pagination-items.js';
2
+ /** The numbered buttons and gaps of a `PaginationBar`; the current page is filled and `aria-current`. */
3
+ export declare function PaginationBarPages({ items, current, disabled, onGo, }: {
4
+ items: ReturnType<typeof paginationItems>;
5
+ current: number;
6
+ disabled?: boolean;
7
+ onGo: (page: number) => void;
8
+ }): import("react").JSX.Element[];
@@ -0,0 +1,26 @@
1
+ import { RowData } from '@tanstack/react-table';
2
+ import { ServerTableBulkAction } from '../bulk-action.js';
3
+ import { ServerTableSelection } from '../types.js';
4
+ import { useBulkFocus } from './server-table-bulk-focus.js';
5
+ import { useBulkTexts } from './server-table-bulk-texts.js';
6
+ /**
7
+ * One declarative bulk action's button: "Label (n)" named "Label n rows" for
8
+ * assistive technology (or by the action's `name`, with a tooltip). Its
9
+ * `onClick` runs with the rows the action applies to, the selection and the
10
+ * focus context.
11
+ */
12
+ export declare function BulkActionButton<T extends RowData>({ action, target, count, text, selection, focus, shrink, }: {
13
+ action: ServerTableBulkAction<T>;
14
+ target: {
15
+ ids: string[];
16
+ rows: T[];
17
+ };
18
+ count: number;
19
+ text: ReturnType<typeof useBulkTexts<T>>;
20
+ selection: ServerTableSelection;
21
+ focus: ReturnType<typeof useBulkFocus>;
22
+ /** In the one-row phone bar the inline action gives way, its label
23
+ * truncated, so the More trigger and Cancel keep their 44px and their
24
+ * place (#1880). Buttons are `shrink-0` otherwise. */
25
+ shrink: boolean;
26
+ }): import("react").JSX.Element;
@@ -2,16 +2,7 @@ import { RowData } from '@tanstack/react-table';
2
2
  import { ServerTableBulkAction } from '../bulk-action.js';
3
3
  import { SelectedRows } from '../selected-rows.js';
4
4
  import { ServerTableSelection } from '../types.js';
5
- /**
6
- * The buttons of a declarative `bulkActions` list: "Label (n)", n being the
7
- * selected rows the action applies to, named "Label n rows" for assistive
8
- * technology (or by the action's `name`), and not rendered at all when n is
9
- * 0. Past the action's `max` its button gives way to its notice. An action
10
- * runs with the rows it applies to only, tested on the rows kept for the
11
- * selection (see `syncSelectedRows`), so the counts hold across pages. Its
12
- * `onClick` also gets the trigger and `focusTrigger()`.
13
- */
14
- export declare function ServerTableBulkButtons<T extends RowData>({ actions, ids, selectedRows, selection, onFocusLost, root, phone, }: {
5
+ type ServerTableBulkButtonsProps<T extends RowData> = {
15
6
  actions: readonly ServerTableBulkAction<T>[];
16
7
  /** The selected ids, of every page. */
17
8
  ids: string[];
@@ -28,4 +19,15 @@ export declare function ServerTableBulkButtons<T extends RowData>({ actions, ids
28
19
  * others go into a "More" menu, each with its count. A number is how
29
20
  * many keep their button (the selection band's one row on a phone). */
30
21
  phone?: boolean | number;
31
- }): import("react").JSX.Element;
22
+ };
23
+ /**
24
+ * The buttons of a declarative `bulkActions` list: "Label (n)", n being the
25
+ * selected rows the action applies to, named "Label n rows" for assistive
26
+ * technology (or by the action's `name`), and not rendered at all when n is
27
+ * 0. Past the action's `max` its button gives way to its notice. An action
28
+ * runs with the rows it applies to only, tested on the rows kept for the
29
+ * selection (see `syncSelectedRows`), so the counts hold across pages. Its
30
+ * `onClick` also gets the trigger and `focusTrigger()`.
31
+ */
32
+ export declare function ServerTableBulkButtons<T extends RowData>({ actions, ids, selectedRows, selection, onFocusLost, root, phone, }: ServerTableBulkButtonsProps<T>): import("react").JSX.Element;
33
+ export {};
@@ -0,0 +1,11 @@
1
+ import { ReactNode } from 'react';
2
+ import { bulkEntries } from '../bulk-action-targets.js';
3
+ import { BulkMoreEntry } from './server-table-bulk-more.js';
4
+ import { useBulkTexts } from './server-table-bulk-texts.js';
5
+ type Entries<T> = ReturnType<typeof bulkEntries<T>>;
6
+ type Texts<T> = ReturnType<typeof useBulkTexts<T>>;
7
+ /** The notice of each action past its `max`, by action id, for the live region. */
8
+ export declare function overNotices<T>(targets: Entries<T>, text: Texts<T>): Map<string, ReactNode>;
9
+ /** The actions in the phone's "More" menu, each with its label, name and notice. */
10
+ export declare function moreEntries<T>(more: Entries<T>, text: Texts<T>): BulkMoreEntry<T>[];
11
+ export {};
@@ -1,32 +1,5 @@
1
1
  import { ServerTableBulkContext } from '../bulk-action.js';
2
- /** The id of the phone's "More" button in the focus bookkeeping. */
3
- export declare const MORE = "\0more";
4
- /** The attribute that gives a bulk button its stable key: the action's `id`. */
5
- export declare const ACTION_ATTRIBUTE = "data-bulk-action";
6
- /** The More button's attribute; its value lists the ids of the actions it holds. */
7
- export declare const MORE_ATTRIBUTE = "data-bulk-more";
8
- /** The attributes of an action's button: its stable key. */
9
- export declare const actionKey: (id: string) => {
10
- "data-bulk-action": string;
11
- };
12
- /** The attributes of the More button: the ids of the actions in its menu. */
13
- export declare const moreKey: (ids: readonly string[]) => {
14
- "data-bulk-more": string;
15
- };
16
- /**
17
- * The element of the bulk key `id` as it is in the DOM now, searched under
18
- * `root`: the action's button, else (the action lives in the More menu) the
19
- * More button, else `null` (the action is hidden). Never a remembered node:
20
- * the bar is drawn again by a resize, a rotation or the move between the
21
- * phone's bar and the toolbar, and a node kept before is disconnected.
22
- */
23
- export declare function findBulkElement(root: ParentNode, id: string): HTMLElement | null;
24
- /**
25
- * The element of the bulk key `id` under `scope`: `undefined` searches the
26
- * document, `null` (a given scope that is gone) finds nothing, never another
27
- * table's buttons.
28
- */
29
- export declare function resolveBulkElement(scope: ParentNode | null | undefined, id: string): HTMLElement | null;
2
+ export { ACTION_ATTRIBUTE, actionKey, findBulkElement, MORE, MORE_ATTRIBUTE, moreKey, resolveBulkElement, } from './server-table-bulk-keys.js';
30
3
  /**
31
4
  * Where the focus of a declarative bulk list goes. It remembers the bulk
32
5
  * button that has it, so that:
@@ -0,0 +1,37 @@
1
+ import { ServerTableBulkContext } from '../bulk-action.js';
2
+ /** The id of the phone's "More" button in the focus bookkeeping. */
3
+ export declare const MORE = "\0more";
4
+ /** The attribute that gives a bulk button its stable key: the action's `id`. */
5
+ export declare const ACTION_ATTRIBUTE = "data-bulk-action";
6
+ /** The More button's attribute; its value lists the ids of the actions it holds. */
7
+ export declare const MORE_ATTRIBUTE = "data-bulk-more";
8
+ /** The attributes of an action's button: its stable key. */
9
+ export declare const actionKey: (id: string) => {
10
+ "data-bulk-action": string;
11
+ };
12
+ /** The attributes of the More button: the ids of the actions in its menu. */
13
+ export declare const moreKey: (ids: readonly string[]) => {
14
+ "data-bulk-more": string;
15
+ };
16
+ /**
17
+ * The element of the bulk key `id` as it is in the DOM now, searched under
18
+ * `root`: the action's button, else (the action lives in the More menu) the
19
+ * More button, else `null` (the action is hidden). Never a remembered node:
20
+ * the bar is drawn again by a resize, a rotation or the move between the
21
+ * phone's bar and the toolbar, and a node kept before is disconnected.
22
+ */
23
+ export declare function findBulkElement(root: ParentNode, id: string): HTMLElement | null;
24
+ /**
25
+ * The element of the bulk key `id` under `scope`: `undefined` searches the
26
+ * document, `null` (a given scope that is gone) finds nothing, never another
27
+ * table's buttons.
28
+ */
29
+ export declare function resolveBulkElement(scope: ParentNode | null | undefined, id: string): HTMLElement | null;
30
+ /**
31
+ * Moves the focus on from the action `from` once its button is gone: to the
32
+ * next bulk button shown, else More, else `onLost` (the table's structural
33
+ * fallback).
34
+ */
35
+ export declare function focusAfterBulk(find: (id: string) => HTMLElement | null, order: readonly string[], from: string, onLost: (() => void) | undefined): void;
36
+ /** The context of `actionId`'s `onClick`, over a lookup made at call time. */
37
+ export declare function bulkContext(actionId: string, find: (id: string) => HTMLElement | null, focusAfter: (from: string) => void): ServerTableBulkContext;
@@ -0,0 +1,8 @@
1
+ import { RowData } from '@tanstack/react-table';
2
+ import { DataTableProps } from '../../data-table/types.js';
3
+ import { ServerTableProps } from '../types.js';
4
+ import { useServerTable } from '../use-server-table.js';
5
+ /** Whether there is one page only, and the caller hides its pager (`hideOnSinglePage`). */
6
+ export declare function isSinglePage<T extends RowData>(props: ServerTableProps<T>, state: ReturnType<typeof useServerTable<T>>): boolean;
7
+ /** The `pagination` the footer gets: none on a single page the caller hides, else the links, with `pageControls` when asked. */
8
+ export declare function gridPagination<T extends RowData>(props: ServerTableProps<T>, state: ReturnType<typeof useServerTable<T>>, singlePage: boolean): DataTableProps<T>['pagination'];
@@ -0,0 +1,70 @@
1
+ import { FilterDefaults, FilterFieldErrors, FilterLockedCondition, FilterModel } from '@nxgt/material-core/filter';
2
+ import { ReactNode } from 'react';
3
+ import { FilterBarFieldProps, FilterQueryProps } from '../filter/internal.js';
4
+ /**
5
+ * The list's `Filter`, bound to the URL: `ServerTable` renders it in its top
6
+ * band (the bar by default) and reads and writes its query in the search
7
+ * params, back on the first page. The Filter then tells the count (its one
8
+ * live region): `ServerTable`'s own stays quiet.
9
+ */
10
+ export type ServerTableFilter = {
11
+ /** The fields, from `defineFilterModel` (the module the loader parses the URL with). */
12
+ model: FilterModel;
13
+ /** The conditions the page imposes: a lock in the band, never in the URL. */
14
+ locked?: readonly FilterLockedCondition[];
15
+ /**
16
+ * The values of the `default: 'page'` fields, the same object as the
17
+ * loader's. The band shows a defaulted value (a hint chip, a pressed
18
+ * toggle), uncounted and with no ✕; the URL holds explicit choices only.
19
+ */
20
+ defaults?: FilterDefaults;
21
+ /**
22
+ * A server's refusal of a condition, by field id (`{ period: 'The period
23
+ * cannot exceed 366 days.' }`): the chip reads "Invalid", described by the
24
+ * message, the editor shows it and the live region tells it.
25
+ */
26
+ errors?: FilterFieldErrors;
27
+ /**
28
+ * A server's refusal of the search text: the search box reads "Invalid"
29
+ * with the message, described by it, and the live region tells it once.
30
+ * Cleared by the page when the search changes.
31
+ */
32
+ searchError?: ReactNode;
33
+ /**
34
+ * A refusal that belongs to no field: one error Alert under the bar, told
35
+ * once by the same live region. Cleared by the page when the query changes.
36
+ */
37
+ formError?: ReactNode;
38
+ /**
39
+ * Show the field errors' words under the bar (default `true`), after
40
+ * `formError`; `false` keeps the "Invalid" pills only.
41
+ */
42
+ errorSummary?: boolean;
43
+ /**
44
+ * How the page reads and writes the URL, to match the loader's
45
+ * `parseFilterQuery` / `serializeFilterQuery` options exactly:
46
+ * `keepKnownValues` keeps the readable values of a list condition,
47
+ * `encoding: 'standard'` writes `URLSearchParams`' own text. Without them
48
+ * the chips and the loader's rows can disagree.
49
+ */
50
+ codec?: {
51
+ keepKnownValues?: boolean;
52
+ encoding?: 'readable' | 'standard';
53
+ };
54
+ /** Each field's functions, by field id (an autocomplete's search, a custom field's render). */
55
+ fieldProps?: FilterBarFieldProps;
56
+ /** `'bar'` (default): the search, quick filters and "Add filter" in the
57
+ * band, the chips in a row under it from 768px. `'facets'`: a panel
58
+ * beside the table from 1024px. Both are the phone sheet below 768px. */
59
+ variant?: FilterQueryProps['variant'];
60
+ /** `false`: no "Filters (N)" in the bar; place a `FilterSheetTrigger`
61
+ * yourself, inside this `ServerTable` (`actions`, or anywhere else in its
62
+ * tree). `'facets'` keeps its own. Default `true`. */
63
+ sheetTrigger?: boolean;
64
+ } & Pick<FilterQueryProps, 'quick' | 'density' | 'shortcuts' | 'previewCount' | 'counts' | 'liveDelayMs' | 'label' | 'searchLabel' | 'searchPlaceholder' | 'searchApply' | 'searchMinLength'>;
65
+ /** What `ServerTable`'s `filterRef` holds. */
66
+ export type ServerTableFilterHandle = {
67
+ /** Focuses the Filter's first control: its search, else the first quick
68
+ * filter, "Add filter" or "Filters (N)" the width shows. */
69
+ focus(): void;
70
+ };
@@ -0,0 +1,42 @@
1
+ import { IconStyleInput } from '@nxgt/material-core/icons';
2
+ import { ErrorStateKind } from '@nxgt/material-core/states';
3
+ import { ReactNode } from 'react';
4
+ import { StateHeadingLevel } from '../../feedback/state-frame/state-frame.js';
5
+ import { ListEmptyContent } from '../list-empty/list-empty.js';
6
+ /** What an empty page says: nothing at all yet, or nothing matching. */
7
+ export type ServerTableEmpty = {
8
+ /** The list has nothing at all yet: a title, or a `ListEmptyPage`
9
+ * (`{ title, description?, illustration?, action? }`) for a scene and a
10
+ * call to action ("New"). */
11
+ none: ListEmptyContent;
12
+ /** Nothing matches the search or the filters: a title, or a
13
+ * `ListEmptyPage`. Its scene defaults to the "no results" one and its way
14
+ * out to "Clear"; an `action` replaces the way out. */
15
+ noMatch: ListEmptyContent;
16
+ /** The icon style of the scenes of the empty page and of the error
17
+ * (`{ family?, type? }`, a sprite file's name, or a list of them), as
18
+ * `IllustrationDefaults`'s `iconStyle`: for an app that serves only some
19
+ * sprites. */
20
+ iconStyle?: IconStyleInput;
21
+ /** The way out of "nothing matches" without `filter`. Default "Clear
22
+ * search and filters". */
23
+ clear?: string;
24
+ /** The level of the empty page's title (a heading, and the error's).
25
+ * Default 2. */
26
+ headingLevel?: StateHeadingLevel;
27
+ };
28
+ /** A failed fetch, as `ServerTable` shows it. */
29
+ export type ServerTableError = {
30
+ /** The title. Default "Could not load the list"
31
+ * (`material.server-table.error`). */
32
+ title?: ReactNode;
33
+ /** The line under it. Default "Check your connection, then try again."
34
+ * (`material.server-table.error-hint`). */
35
+ description?: ReactNode;
36
+ /** The thrown value: its name, message and causes go in the collapsed
37
+ * technical details (never the stack). */
38
+ cause?: unknown;
39
+ /** Which failure it is: the illustration and icon follow it. Default
40
+ * `generic`. */
41
+ kind?: ErrorStateKind;
42
+ };
@@ -1,15 +1,13 @@
1
- import { FilterDefaults, FilterFieldErrors, FilterLockedCondition, FilterModel } from '@nxgt/material-core/filter';
2
- import { IconStyleInput } from '@nxgt/material-core/icons';
3
- import { ErrorStateKind } from '@nxgt/material-core/states';
4
1
  import { TableFilterBinding, TableSorting } from '@nxgt/material-core/table-url';
5
2
  import { RowData } from '@tanstack/react-table';
6
3
  import { ReactNode, Ref } from 'react';
7
- import { StateHeadingLevel } from '../../feedback/state-frame/state-frame.js';
8
4
  import { DataTableProps } from '../data-table/types.js';
9
- import { FilterBarFieldProps, FilterQueryProps } from '../filter/internal.js';
10
- import { ListEmptyContent } from '../list-empty/list-empty.js';
11
5
  import { ServerTableBulkAction } from './bulk-action.js';
6
+ import { ServerTableFilter, ServerTableFilterHandle } from './types-filter.js';
12
7
  import { ServerTablePagingProps } from './types-paging.js';
8
+ import { ServerTableEmpty, ServerTableError } from './types-states.js';
9
+ export type { ServerTableFilter, ServerTableFilterHandle, } from './types-filter.js';
10
+ export type { ServerTableEmpty, ServerTableError } from './types-states.js';
13
11
  /** What a bulk action can do to the selection once it acted. */
14
12
  export type ServerTableSelection = {
15
13
  /** Empties the selection; the table takes the focus the toolbar had. */
@@ -18,110 +16,6 @@ export type ServerTableSelection = {
18
16
  * none is left. */
19
17
  deselect(ids: readonly string[]): void;
20
18
  };
21
- /** What an empty page says: nothing at all yet, or nothing matching. */
22
- export type ServerTableEmpty = {
23
- /** The list has nothing at all yet: a title, or a `ListEmptyPage`
24
- * (`{ title, description?, illustration?, action? }`) for a scene and a
25
- * call to action ("New"). */
26
- none: ListEmptyContent;
27
- /** Nothing matches the search or the filters: a title, or a
28
- * `ListEmptyPage`. Its scene defaults to the "no results" one and its way
29
- * out to "Clear"; an `action` replaces the way out. */
30
- noMatch: ListEmptyContent;
31
- /** The icon style of the scenes of the empty page and of the error
32
- * (`{ family?, type? }`, a sprite file's name, or a list of them), as
33
- * `IllustrationDefaults`'s `iconStyle`: for an app that serves only some
34
- * sprites. */
35
- iconStyle?: IconStyleInput;
36
- /** The way out of "nothing matches" without `filter`. Default "Clear
37
- * search and filters". */
38
- clear?: string;
39
- /** The level of the empty page's title (a heading, and the error's).
40
- * Default 2. */
41
- headingLevel?: StateHeadingLevel;
42
- };
43
- /** A failed fetch, as `ServerTable` shows it. */
44
- export type ServerTableError = {
45
- /** The title. Default "Could not load the list"
46
- * (`material.server-table.error`). */
47
- title?: ReactNode;
48
- /** The line under it. Default "Check your connection, then try again."
49
- * (`material.server-table.error-hint`). */
50
- description?: ReactNode;
51
- /** The thrown value: its name, message and causes go in the collapsed
52
- * technical details (never the stack). */
53
- cause?: unknown;
54
- /** Which failure it is: the illustration and icon follow it. Default
55
- * `generic`. */
56
- kind?: ErrorStateKind;
57
- };
58
- /**
59
- * The list's `Filter`, bound to the URL: `ServerTable` renders it in its top
60
- * band (the bar by default) and reads and writes its query in the search
61
- * params, back on the first page. The Filter then tells the count (its one
62
- * live region): `ServerTable`'s own stays quiet.
63
- */
64
- export type ServerTableFilter = {
65
- /** The fields, from `defineFilterModel` (the module the loader parses the URL with). */
66
- model: FilterModel;
67
- /** The conditions the page imposes: a lock in the band, never in the URL. */
68
- locked?: readonly FilterLockedCondition[];
69
- /**
70
- * The values of the `default: 'page'` fields, the same object as the
71
- * loader's. The band shows a defaulted value (a hint chip, a pressed
72
- * toggle), uncounted and with no ✕; the URL holds explicit choices only.
73
- */
74
- defaults?: FilterDefaults;
75
- /**
76
- * A server's refusal of a condition, by field id (`{ period: 'The period
77
- * cannot exceed 366 days.' }`): the chip reads "Invalid", described by the
78
- * message, the editor shows it and the live region tells it.
79
- */
80
- errors?: FilterFieldErrors;
81
- /**
82
- * A server's refusal of the search text: the search box reads "Invalid"
83
- * with the message, described by it, and the live region tells it once.
84
- * Cleared by the page when the search changes.
85
- */
86
- searchError?: ReactNode;
87
- /**
88
- * A refusal that belongs to no field: one error Alert under the bar, told
89
- * once by the same live region. Cleared by the page when the query changes.
90
- */
91
- formError?: ReactNode;
92
- /**
93
- * Show the field errors' words under the bar (default `true`), after
94
- * `formError`; `false` keeps the "Invalid" pills only.
95
- */
96
- errorSummary?: boolean;
97
- /**
98
- * How the page reads and writes the URL, to match the loader's
99
- * `parseFilterQuery` / `serializeFilterQuery` options exactly:
100
- * `keepKnownValues` keeps the readable values of a list condition,
101
- * `encoding: 'standard'` writes `URLSearchParams`' own text. Without them
102
- * the chips and the loader's rows can disagree.
103
- */
104
- codec?: {
105
- keepKnownValues?: boolean;
106
- encoding?: 'readable' | 'standard';
107
- };
108
- /** Each field's functions, by field id (an autocomplete's search, a custom field's render). */
109
- fieldProps?: FilterBarFieldProps;
110
- /** `'bar'` (default): the search, quick filters and "Add filter" in the
111
- * band, the chips in a row under it from 768px. `'facets'`: a panel
112
- * beside the table from 1024px. Both are the phone sheet below 768px. */
113
- variant?: FilterQueryProps['variant'];
114
- /** `false`: no "Filters (N)" in the bar; place a `FilterSheetTrigger`
115
- * yourself, inside this `ServerTable` (`actions`, or anywhere else in its
116
- * tree). `'facets'` keeps its own. Default `true`. */
117
- sheetTrigger?: boolean;
118
- } & Pick<FilterQueryProps, 'quick' | 'density' | 'shortcuts' | 'previewCount' | 'counts' | 'liveDelayMs' | 'label' | 'searchLabel' | 'searchPlaceholder' | 'searchApply' | 'searchMinLength'>;
119
- /** What `ServerTable`'s `filterRef` holds. */
120
- export type ServerTableFilterHandle = {
121
- /** Focuses the Filter's first control: its search, else the first quick
122
- * filter, "Add filter" or "Filters (N)" the width shows. */
123
- focus(): void;
124
- };
125
19
  /** The `DataTable` props `ServerTable` passes through as they are. */
126
20
  export type PassedThrough<T extends RowData> = Pick<DataTableProps<T>, 'columns' | 'maxHeight' | 'scrollLabel' | 'showViewOptions' | 'renderExpandedRow' | 'options' | 'loading' | 'loadingRows' | 'getRowHref' | 'onRowClick' | 'linkComponent' | 'density' | 'layout' | 'cardDensity' | 'renderCard' | 'renderTile' | 'enableRowSelection' | 'rowSelectionDisabledReason'>;
127
21
  export type ServerTableProps<T extends RowData> = PassedThrough<T> & ServerTablePagingProps & {
@@ -0,0 +1,6 @@
1
+ /** A branch's chevron button (not a tab stop; the row's keys reach it), or the space it takes on a leaf. */
2
+ export declare function TreeExpandButton({ expandable, expanded, onToggle, }: {
3
+ expandable: boolean;
4
+ expanded: boolean;
5
+ onToggle: () => void;
6
+ }): import("react").JSX.Element;
@@ -0,0 +1,14 @@
1
+ import { KeyboardEvent } from 'react';
2
+ import { TreeRow } from './types.js';
3
+ /**
4
+ * The tree's keyboard (WAI-ARIA treeview): the arrows move the focus, open
5
+ * and close a branch or climb to its parent, Home and End jump to the ends,
6
+ * Enter and Space select the focused row.
7
+ */
8
+ export declare function useTreeKeyDown({ rows, tabbableId, setFocusedId, toggleExpanded, select, }: {
9
+ rows: TreeRow[];
10
+ tabbableId: string | null;
11
+ setFocusedId: (id: string | null) => void;
12
+ toggleExpanded: (id: string) => void;
13
+ select: (id: string) => void;
14
+ }): (event: KeyboardEvent) => void;
@@ -0,0 +1,14 @@
1
+ import { TreeNode, TreeSelectionMode } from './types.js';
2
+ /**
3
+ * `select(id)`: a click, Enter or Space on a row. A disabled row, or a tree
4
+ * with no selection, does nothing; `single` picks the row, `multiple`
5
+ * toggles it. The row also takes the focus.
6
+ */
7
+ export declare function useTreeSelect({ nodes, selectionMode, selected, setSelected, setFocusedId, onSelect, }: {
8
+ nodes: TreeNode[];
9
+ selectionMode: TreeSelectionMode;
10
+ selected: string[];
11
+ setSelected: (ids: string[]) => void;
12
+ setFocusedId: (id: string | null) => void;
13
+ onSelect?: (id: string, node: TreeNode) => void;
14
+ }): (id: string) => void;
@@ -1,6 +1,5 @@
1
- import { KeyboardEvent } from 'react';
2
1
  import { TreeNode, TreeSelectionMode } from './types.js';
3
- export declare function useTree({ nodes, selectionMode, selectedIds, defaultSelectedIds, onSelectedIdsChange, expandedIds, defaultExpandedIds, onExpandedIdsChange, onSelect, }: {
2
+ type UseTreeOptions = {
4
3
  nodes: TreeNode[];
5
4
  selectionMode?: TreeSelectionMode;
6
5
  selectedIds?: string[];
@@ -10,7 +9,8 @@ export declare function useTree({ nodes, selectionMode, selectedIds, defaultSele
10
9
  defaultExpandedIds?: string[];
11
10
  onExpandedIdsChange?: (ids: string[]) => void;
12
11
  onSelect?: (id: string, node: TreeNode) => void;
13
- }): {
12
+ };
13
+ export declare function useTree({ nodes, selectionMode, selectedIds, defaultSelectedIds, onSelectedIdsChange, expandedIds, defaultExpandedIds, onExpandedIdsChange, onSelect, }: UseTreeOptions): {
14
14
  rows: import('./types.js').TreeRow[];
15
15
  selected: string[];
16
16
  expanded: string[];
@@ -20,5 +20,6 @@ export declare function useTree({ nodes, selectionMode, selectedIds, defaultSele
20
20
  setFocusedId: import('react').Dispatch<import('react').SetStateAction<string | null>>;
21
21
  toggleExpanded: (id: string) => void;
22
22
  select: (id: string) => void;
23
- onKeyDown: (event: KeyboardEvent) => void;
23
+ onKeyDown: (event: import('react').KeyboardEvent) => void;
24
24
  };
25
+ export {};
@@ -0,0 +1,10 @@
1
+ type CalendarYearButtonProps = {
2
+ year: number;
3
+ selected: boolean;
4
+ thisYear: boolean;
5
+ disabled: boolean;
6
+ onSelect: (year: number) => void;
7
+ };
8
+ /** One year of the grid; the shown year is drawn as a chosen day is. */
9
+ export declare function CalendarYearButton({ year, selected, thisYear, disabled, onSelect, }: CalendarYearButtonProps): import("react").JSX.Element;
10
+ export {};
@@ -0,0 +1,9 @@
1
+ type CalendarYearNavProps = {
2
+ page: number;
3
+ disablePrev: boolean;
4
+ disableNext: boolean;
5
+ onPage: (delta: number) => void;
6
+ };
7
+ /** The year grid's header: previous page, the page's range, next page. */
8
+ export declare function CalendarYearNav({ page, disablePrev, disableNext, onPage, }: CalendarYearNavProps): import("react").JSX.Element;
9
+ export {};
@@ -0,0 +1,78 @@
1
+ import { ComponentProps, ReactNode, RefObject } from 'react';
2
+ import { PickerTriggerAttrs } from '../picker-trigger/picker-trigger-attrs.js';
3
+ import { DateFieldPopover } from './date-field-popover.js';
4
+ import { DateFieldTyped } from './date-field-typed.js';
5
+ /**
6
+ * What a zoned field does when the popover is dismissed: put back the true
7
+ * instant it opened with, not a wall time. `undefined` without a zone.
8
+ */
9
+ export declare function zoneRestore(zone: string | undefined, instant: Date | undefined, opened: RefObject<Date | undefined>, emit?: (value?: Date) => void): (() => void) | undefined;
10
+ type Typed = ComponentProps<typeof DateFieldTyped>;
11
+ type SharedInput = Pick<Typed, 'open' | 'triggerAttrs' | 'value' | 'required' | 'error'> & {
12
+ isDisabled: boolean;
13
+ };
14
+ /** The props the field's trigger and its surface read alike. */
15
+ export declare function sharedProps({ isDisabled, ...rest }: SharedInput, props: Pick<Typed, 'locale' | 'name' | 'showTimePicker' | 'hourCycle'>): {
16
+ disabled: boolean;
17
+ locale: Partial<import('react-day-picker').DayPickerLocale> | undefined;
18
+ name: string | undefined;
19
+ showTimePicker: boolean | undefined;
20
+ hourCycle: 12 | 24 | undefined;
21
+ value?: Date | undefined;
22
+ error?: boolean | undefined;
23
+ open: boolean;
24
+ required?: boolean | undefined;
25
+ triggerAttrs: PickerTriggerAttrs;
26
+ };
27
+ /** What names the field's trigger and the open calendar, and the ids they share. */
28
+ export declare function useDateFieldModel({ label, placeholder, ariaLabel, ariaLabelledBy, helperText, triggerAttrs, }: {
29
+ label?: ReactNode;
30
+ placeholder?: string;
31
+ ariaLabel?: string;
32
+ ariaLabelledBy?: string;
33
+ helperText?: ReactNode;
34
+ triggerAttrs: PickerTriggerAttrs;
35
+ }): {
36
+ naming: {
37
+ label: ReactNode;
38
+ placeholder: string | undefined;
39
+ 'aria-label': string | undefined;
40
+ 'aria-labelledby': string | undefined;
41
+ };
42
+ model: {
43
+ frameIds: {
44
+ labelId: string;
45
+ helperId: string;
46
+ triggerId: string;
47
+ };
48
+ ids: import('../picker-trigger/typed-group-name.js').TypedFieldIds;
49
+ labelledBy: string;
50
+ sheetTitle: ReactNode;
51
+ };
52
+ };
53
+ /**
54
+ * The calendar's open state and anchor, and the instant the field opened
55
+ * with: a zoned field puts that back, not a wall time.
56
+ */
57
+ export declare function useDateFieldOpen(instant?: Date): {
58
+ anchor: RefObject<HTMLDivElement | null>;
59
+ open: boolean;
60
+ setOpen: (next: boolean) => void;
61
+ dir: "ltr" | "rtl" | undefined;
62
+ openedAt: RefObject<Date | undefined>;
63
+ };
64
+ type PopoverInput<P> = {
65
+ value?: Date;
66
+ required?: boolean;
67
+ props: P;
68
+ dayRule: ComponentProps<typeof DateFieldPopover>['disabled'];
69
+ };
70
+ /** What the open calendar gets besides its placement. */
71
+ export declare function popoverProps<P extends object>({ value, required, props, dayRule }: PopoverInput<P>, onRestore: (() => void) | undefined): {
72
+ value: Date | undefined;
73
+ required: boolean | undefined;
74
+ } & P & {
75
+ disabled: import('react-day-picker').Matcher | import('react-day-picker').Matcher[] | undefined;
76
+ onRestore: (() => void) | undefined;
77
+ };
78
+ export {};
@@ -0,0 +1,15 @@
1
+ import { ComponentProps, ReactNode } from 'react';
2
+ import { DateRangeFieldBodyProps } from './date-range-field-body.js';
3
+ import { DateRangePresets } from './date-range-presets.js';
4
+ type PresetsProps = Pick<ComponentProps<typeof DateRangePresets>, 'items' | 'onPick' | 'code'>;
5
+ /**
6
+ * What scrolls when the viewport leaves too little room: the presets beside
7
+ * or above the calendar. The summary under it stays in view.
8
+ */
9
+ export declare function DateRangeBodyScroll({ scroll, place, presets, children, }: {
10
+ scroll: DateRangeFieldBodyProps['scroll'];
11
+ place: ComponentProps<typeof DateRangePresets>['placement'];
12
+ presets: PresetsProps;
13
+ children: ReactNode;
14
+ }): import("react").JSX.Element;
15
+ export {};