@nxgt/material 2.4.2 → 2.6.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 (210) hide show
  1. package/README.md +28 -21
  2. package/dist/{_Uint8Array-DEXn42kj.js → _Uint8Array-CDlDeQmw.js} +1 -1
  3. package/dist/_overRest-CWIWQwDJ.js +81 -0
  4. package/dist/{abnfDiagram-O67JEVCF-C7NxOWqd.js → abnfDiagram-O67JEVCF-Cl4ukf6a.js} +4 -4
  5. package/dist/{architectureDiagram-NJMV4G6O-BIvwyzEh.js → architectureDiagram-NJMV4G6O-WmFlBQF5.js} +7 -7
  6. package/dist/{client-only.utils-DhcBUmau.js → async-slice-Qoen0Mqm.js} +164 -93
  7. package/dist/{blockDiagram-BEXU5L5S-CzgMFdtn.js → blockDiagram-BEXU5L5S-_6EVgQ2-.js} +11 -11
  8. package/dist/{c4Diagram-YGBWAQC7-WgqlRIL5.js → c4Diagram-YGBWAQC7-D9xSt2QO.js} +8 -8
  9. package/dist/{channel-Ba8pEAWx.js → channel-Dg92Hoym.js} +1 -1
  10. package/dist/{chunk-3FUC2YCW-DnIzetwB.js → chunk-3FUC2YCW-CRQHl-Jx.js} +8 -8
  11. package/dist/{chunk-5DYCD2WN-Bqi3iL5i.js → chunk-5DYCD2WN-Cja1INgd.js} +3 -3
  12. package/dist/{chunk-6AEJRKK7-DDXoGWDs.js → chunk-6AEJRKK7-3YWRP4aV.js} +2 -2
  13. package/dist/{chunk-742MDFTN-nG_ROTnT.js → chunk-742MDFTN-Cs1qGiTK.js} +2 -2
  14. package/dist/{chunk-7INBJB4K-Dg64CbhT.js → chunk-7INBJB4K-BY5n77ka.js} +6 -6
  15. package/dist/{chunk-7M6MHVWA-CPdb6LVf.js → chunk-7M6MHVWA-DqXpf6CM.js} +9 -9
  16. package/dist/{chunk-7PRAP22T-DIiYRAce.js → chunk-7PRAP22T-_Av9vcXz.js} +1 -1
  17. package/dist/{chunk-GNY47TPC-CxWZwDbp.js → chunk-GNY47TPC-BgMsLbCS.js} +11 -11
  18. package/dist/{chunk-GTNCS2PH-CzDYTYNy.js → chunk-GTNCS2PH-BZ9WMD1v.js} +3 -3
  19. package/dist/{chunk-GWA4HPMP-CmsxMX3A.js → chunk-GWA4HPMP-Co-A6dtV.js} +3 -3
  20. package/dist/{chunk-MBY4JIJT-IA2XBafa.js → chunk-MBY4JIJT-C3RQP_Nk.js} +4 -4
  21. package/dist/{chunk-NETBCI7D-Cq92-0cA.js → chunk-NETBCI7D-CsyH43bj.js} +1 -1
  22. package/dist/{chunk-O7XYJQB3-C87zK8E5.js → chunk-O7XYJQB3-A66QSOPA.js} +1 -1
  23. package/dist/{chunk-UA2S7LBM-B0LGFGu3.js → chunk-UA2S7LBM-BNeHeMx9.js} +6 -6
  24. package/dist/{chunk-WEXAMYUT-C-QP0DFq.js → chunk-WEXAMYUT-CucJfehv.js} +2 -2
  25. package/dist/{chunk-XXDRQBXY-Bq4sFnO2.js → chunk-XXDRQBXY-FgXU14Bh.js} +1 -1
  26. package/dist/{chunk-Z7XXMR3K-vh8Pvgr_.js → chunk-Z7XXMR3K-CoCjTVVx.js} +8 -8
  27. package/dist/{chunk-ZIGJFQKS-HDJ6e6OJ.js → chunk-ZIGJFQKS-C3xUAXJq.js} +3 -3
  28. package/dist/{classDiagram-v2-NBCMYWYE-BSyQx7Df.js → classDiagram-v2-NBCMYWYE-j4vk04t-.js} +14 -14
  29. package/dist/{components-C3jpOwPw.js → components-C3wIUrWw.js} +26931 -25668
  30. package/dist/components.js +6 -6
  31. package/dist/{cose-bilkent-JH36ORCC-11-T1rfk.js → cose-bilkent-JH36ORCC-DRUT3qBb.js} +2 -2
  32. package/dist/{cynefinDiagram-VND7K2PF-1kHi2rGa.js → cynefinDiagram-VND7K2PF-B9HrdQW8.js} +4 -4
  33. package/dist/{dagre-6A5THRUB-BDk37t1_.js → dagre-6A5THRUB-DXq_YBNL.js} +572 -613
  34. package/dist/{diagram-22UHCM2B-BvH24G-C.js → diagram-22UHCM2B-He8NDldw.js} +15 -15
  35. package/dist/{diagram-3UASUU5V-DAKVPT0Q.js → diagram-3UASUU5V-CeILva4U.js} +7 -7
  36. package/dist/{diagram-ATOU4E4O-Clju_0RY.js → diagram-ATOU4E4O-CNY-8kl0.js} +3 -3
  37. package/dist/{diagram-CDSNMT55-w7kkJ6MU.js → diagram-CDSNMT55-C8Mk1smi.js} +5 -5
  38. package/dist/{diagram-MLGK6HIB-mUOtRVmm.js → diagram-MLGK6HIB-CpfeILwW.js} +4 -4
  39. package/dist/{diagram-MPIPVDR6-DEUw58dq.js → diagram-MPIPVDR6-Do7bUnTd.js} +4 -4
  40. package/dist/{dist-gYpAi-su.js → dist-C3YK_ean.js} +1 -1
  41. package/dist/{dist-CeHNxLJG.js → dist-CRbPtqwD.js} +1 -1
  42. package/dist/dnd.js +1 -1
  43. package/dist/{ebnfDiagram-ZINNZB2B-BYfatie5.js → ebnfDiagram-ZINNZB2B-1GewX9Zq.js} +4 -4
  44. package/dist/{elk-276RUBZZ-CtsHzWCy.js → elk-276RUBZZ-DFn4kTey.js} +13 -13
  45. package/dist/{erDiagram-OPXOYQCR-DTrqayuU.js → erDiagram-OPXOYQCR-BzVUcUwh.js} +14 -14
  46. package/dist/{field-blur-EUOqpHbF.js → field-blur-BlrE9fOD.js} +1109 -1083
  47. package/dist/flowDiagram-KWPJA3E3-B4pJCj2Q.js +17 -0
  48. package/dist/{ganttDiagram-FUAMR5RP-DxWSt8R4.js → ganttDiagram-FUAMR5RP-B4A4UFFi.js} +6 -6
  49. package/dist/{gitGraphDiagram-X574FWY7-DcGaPSwy.js → gitGraphDiagram-X574FWY7-80yOq8dE.js} +3 -3
  50. package/dist/{graphlib-BOTXrGOf.js → graphlib-CQ3hLS1N.js} +103 -139
  51. package/dist/hooks.js +2 -2
  52. package/dist/{i18n-provider-XTTU9ArK.js → i18n-provider-CbYD2KxP.js} +1 -1
  53. package/dist/i18n.js +6 -6
  54. package/dist/{icon-button-Dl9PDYCE.js → icon-button-BxySFfrr.js} +581 -581
  55. package/dist/{infoDiagram-VRGFBTTK-Cvj167dl.js → infoDiagram-VRGFBTTK-Cboh-B9n.js} +3 -3
  56. package/dist/isArrayLikeObject-5rnYwEK7.js +28 -0
  57. package/dist/isEmpty-DChvniYe.js +53 -0
  58. package/dist/{ishikawaDiagram-OU5B5YK6-ChBwjCfr.js → ishikawaDiagram-OU5B5YK6-DwTd1YxL.js} +4 -4
  59. package/dist/{journeyDiagram-ZHPQQLJL-BycdRLE6.js → journeyDiagram-ZHPQQLJL-C91SPPkY.js} +4 -4
  60. package/dist/{kanban-definition-PNTS6WVX-BRoa-Yp5.js → kanban-definition-PNTS6WVX-S8plI4wn.js} +10 -10
  61. package/dist/lib/components/ui/actions/button/button.compound-variants.d.ts +114 -0
  62. package/dist/lib/components/ui/actions/button/button.d.ts +4 -7
  63. package/dist/lib/components/ui/actions/button/button.variants.d.ts +7 -0
  64. package/dist/lib/components/ui/actions/button/has-text-content.d.ts +10 -0
  65. package/dist/lib/components/ui/actions/icon-button/icon-button.variants.d.ts +1 -1
  66. package/dist/lib/components/ui/collections/data-table/data-table-context.d.ts +4 -0
  67. package/dist/lib/components/ui/collections/data-table/data-table-pagination.d.ts +3 -1
  68. package/dist/lib/components/ui/collections/data-table/data-table.d.ts +12 -2
  69. package/dist/lib/components/ui/collections/data-table/hooks.d.ts +13 -13
  70. package/dist/lib/components/ui/collections/data-table/partials/data-table-body.d.ts +9 -5
  71. package/dist/lib/components/ui/collections/data-table/partials/data-table-empty-row.d.ts +14 -0
  72. package/dist/lib/components/ui/collections/data-table/partials/data-table-skeleton-rows.d.ts +7 -0
  73. package/dist/lib/components/ui/collections/filter/filter-field-number-range.d.ts +15 -0
  74. package/dist/lib/components/ui/collections/pagination/index.d.ts +1 -1
  75. package/dist/lib/components/ui/collections/pagination/pagination.d.ts +9 -1
  76. package/dist/lib/components/ui/collections/tree/use-tree.d.ts +2 -0
  77. package/dist/lib/components/ui/dates/date-range-field/date-range-field-trigger.d.ts +1 -1
  78. package/dist/lib/components/ui/dates/date-range-field/date-range-field.d.ts +10 -1
  79. package/dist/lib/components/ui/dates/date-range-field/date-range-field.utils.d.ts +13 -0
  80. package/dist/lib/components/ui/dates/date-range-field/index.d.ts +1 -0
  81. package/dist/lib/components/ui/dates/date-range-field/partials/date-range-field-content.d.ts +25 -0
  82. package/dist/lib/components/ui/dates/date-range-field/partials/date-range-presets.d.ts +11 -0
  83. package/dist/lib/components/ui/dates/date-range-field/partials/date-range-times.d.ts +11 -0
  84. package/dist/lib/components/ui/dates/date-range-field/use-date-range-presets.d.ts +22 -0
  85. package/dist/lib/components/ui/dates/time-picker/time-picker-utils.d.ts +7 -0
  86. package/dist/lib/components/ui/display/chip/chip.d.ts +1 -1
  87. package/dist/lib/components/ui/feedback/toast/toast.d.ts +9 -4
  88. package/dist/lib/components/ui/fields/number-field/number-field.d.ts +3 -1
  89. package/dist/lib/components/ui/fields/otp-field/index.d.ts +1 -0
  90. package/dist/lib/components/ui/fields/otp-field/input-otp.d.ts +1 -1
  91. package/dist/lib/components/ui/fields/slider/slider-header.d.ts +19 -0
  92. package/dist/lib/components/ui/fields/slider/slider-readout.d.ts +5 -1
  93. package/dist/lib/components/ui/fields/slider/slider.d.ts +7 -0
  94. package/dist/lib/components/ui/fields/switch/switch.d.ts +7 -0
  95. package/dist/lib/components/ui/layout/stepper/stepper-step.d.ts +17 -0
  96. package/dist/lib/components/ui/media/camera/camera-content.d.ts +1 -2
  97. package/dist/lib/components/ui/media/camera/camera-context.d.ts +4 -0
  98. package/dist/lib/components/ui/media/camera/camera-provider.d.ts +2 -0
  99. package/dist/lib/components/ui/media/camera/camera.d.ts +6 -3
  100. package/dist/lib/components/ui/media/camera/capture-photo.d.ts +13 -0
  101. package/dist/lib/components/ui/media/camera/index.d.ts +9 -1
  102. package/dist/lib/components/ui/media/camera/state/camera.reducers.d.ts +1 -1
  103. package/dist/lib/components/ui/media/camera/state/camera.slice.d.ts +4 -9
  104. package/dist/lib/components/ui/media/camera/state/camera.store.d.ts +11 -5
  105. package/dist/lib/components/ui/media/camera/state/camera.thunks.d.ts +4 -4
  106. package/dist/lib/components/ui/media/camera/types.d.ts +19 -9
  107. package/dist/lib/components/ui/media/camera/use-camera.d.ts +5 -11
  108. package/dist/lib/components/ui/media/camera/utils/camera.utils.d.ts +0 -1
  109. package/dist/lib/components/ui/media/file-preview/file-preview-pdf.lazy.d.ts +9 -0
  110. package/dist/lib/components/ui/media/file-preview/file-preview.d.ts +12 -0
  111. package/dist/lib/components/ui/media/file-preview/index.d.ts +3 -0
  112. package/dist/lib/components/ui/media/file-preview/partials/file-preview-body.d.ts +9 -0
  113. package/dist/lib/components/ui/media/file-preview/partials/file-preview-card.d.ts +20 -0
  114. package/dist/lib/components/ui/media/file-preview/partials/file-preview-media.d.ts +11 -0
  115. package/dist/lib/components/ui/media/file-preview/partials/file-preview-pdf.d.ts +10 -0
  116. package/dist/lib/components/ui/media/file-preview/partials/file-preview-status.d.ts +17 -0
  117. package/dist/lib/components/ui/media/file-preview/partials/file-preview-text.d.ts +13 -0
  118. package/dist/lib/components/ui/media/file-preview/types.d.ts +23 -0
  119. package/dist/lib/components/ui/media/file-preview/use-file-preview.d.ts +22 -0
  120. package/dist/lib/components/ui/media/file-preview/use-text-preview.d.ts +15 -0
  121. package/dist/lib/components/ui/media/index.d.ts +2 -0
  122. package/dist/lib/components/ui/media/upload/network-upload-field/use-image-preview.d.ts +6 -0
  123. package/dist/lib/components/ui/overlays/dialog/dialog-outside.d.ts +5 -0
  124. package/dist/lib/components/ui/overlays/dialog/dialog-scroll-content.d.ts +9 -0
  125. package/dist/lib/components/ui/overlays/dialog/index.d.ts +1 -0
  126. package/dist/lib/components/ui/primitives/icon/icon-context.d.ts +1 -1
  127. package/dist/lib/components/ui/primitives/table/table.d.ts +6 -1
  128. package/dist/lib/components/ui/selection/index.d.ts +2 -0
  129. package/dist/lib/components/ui/selection/native-select/index.d.ts +1 -0
  130. package/dist/lib/components/ui/selection/native-select/native-select.d.ts +11 -0
  131. package/dist/lib/components/ui/selection/radio-group/radio-group.d.ts +8 -1
  132. package/dist/lib/components/ui/selection/tree-select-field/index.d.ts +2 -0
  133. package/dist/lib/components/ui/selection/tree-select-field/partials/tree-select-content.d.ts +13 -0
  134. package/dist/lib/components/ui/selection/tree-select-field/partials/tree-select-panel.d.ts +19 -0
  135. package/dist/lib/components/ui/selection/tree-select-field/partials/tree-select-trigger.d.ts +24 -0
  136. package/dist/lib/components/ui/selection/tree-select-field/tree-select-field.d.ts +9 -0
  137. package/dist/lib/components/ui/selection/tree-select-field/tree-select-form-field.d.ts +8 -0
  138. package/dist/lib/components/ui/selection/tree-select-field/tree-select.utils.d.ts +35 -0
  139. package/dist/lib/components/ui/selection/tree-select-field/types.d.ts +37 -0
  140. package/dist/lib/components/ui/selection/tree-select-field/use-tree-select-field.d.ts +20 -0
  141. package/dist/lib/i18n/resources/en/en.d.ts +40 -0
  142. package/dist/lib/i18n/resources/en/material.json.d.ts +43 -3
  143. package/dist/lib/i18n/resources/fr/fr.d.ts +40 -0
  144. package/dist/lib/i18n/resources/fr/material.json.d.ts +43 -3
  145. package/dist/lib/i18n/resources/resources.d.ts +80 -0
  146. package/dist/lib/i18n/translator.d.ts +1 -1
  147. package/dist/lib/lib/redux/status-slice.d.ts +1 -1
  148. package/dist/lib.js +295 -4
  149. package/dist/main.js +16 -16
  150. package/dist/map.js +5 -5
  151. package/dist/material.css +1 -1
  152. package/dist/merge-_Awk4ywA.js +156 -0
  153. package/dist/{mermaid.core-BGAQ3ZAZ.js → mermaid.core-DciYB1MV.js} +49 -49
  154. package/dist/{mindmap-definition-NLK3R4M7-HIqs4Eil.js → mindmap-definition-NLK3R4M7-Brf_2jIE.js} +13 -13
  155. package/dist/{pegDiagram-GJSIUBJH-Dcm3LCQX.js → pegDiagram-GJSIUBJH-CAO6aYvj.js} +4 -4
  156. package/dist/{pieDiagram-5QR66LMP-DQ6djEkW.js → pieDiagram-5QR66LMP-MPh-EWf-.js} +5 -5
  157. package/dist/print.js +2 -2
  158. package/dist/{quadrantDiagram-O4NWA36T-yUWorB72.js → quadrantDiagram-O4NWA36T-CwDeE9KB.js} +3 -3
  159. package/dist/{railroadDiagram-XR7U4H2S-CzOJlTUA.js → railroadDiagram-XR7U4H2S-DmKDXg8V.js} +4 -4
  160. package/dist/{requirementDiagram-PLB6GJNP-Cs5-8Nro.js → requirementDiagram-PLB6GJNP-CCP3YtvB.js} +13 -13
  161. package/dist/{sankeyDiagram-IPEJSGJF-CCqxyVoj.js → sankeyDiagram-IPEJSGJF-vgVchd2a.js} +3 -3
  162. package/dist/{sequenceDiagram-PO4LG4MO-DMLeIQ03.js → sequenceDiagram-PO4LG4MO-B2qb55A5.js} +5 -5
  163. package/dist/{sortable-provider-DuRzFvwe.js → sortable-provider-CzSnl6It.js} +17 -17
  164. package/dist/{src-CJ8DNrI1.js → src-C9kQSo6K.js} +1 -1
  165. package/dist/{stateDiagram-v2-GCMORJYK-D-8sLHg8.js → stateDiagram-v2-GCMORJYK-T-oIXh-8.js} +14 -14
  166. package/dist/{stored-language-BP90Ydtg.js → stored-language-DmUUhRb5.js} +90 -6
  167. package/dist/{swimlanes-2SLR337P-DM_lDm6v.js → swimlanes-2SLR337P-tW3_wBWO.js} +12 -12
  168. package/dist/swimlanesDiagram-TC7HE7FX-B1lWzHp1.js +28 -0
  169. package/dist/{timeline-definition-EJHVYXUP-D3Tz-JnK.js → timeline-definition-EJHVYXUP-SdA6wt2-.js} +5 -5
  170. package/dist/{translate-material-Ctzt0Y2N.js → translate-material-DuY12xca.js} +2 -2
  171. package/dist/{translator-Cfug7hC5.js → translator-CaIYjyFP.js} +1 -1
  172. package/dist/{use-heading-spy-DtVo2HBk.js → use-heading-spy-Crdz4OH5.js} +2 -2
  173. package/dist/{use-material-translation-CJswHOmK.js → use-material-translation-Od0QsFPA.js} +2 -2
  174. package/dist/{usecaseDiagram-POWQR4AR-Cxx8PDrr.js → usecaseDiagram-POWQR4AR-B3rBcR4E.js} +13 -13
  175. package/dist/{vennDiagram-UO4OBE2U-Aql8mhcy.js → vennDiagram-UO4OBE2U-CO0yFCI8.js} +4 -4
  176. package/dist/{wardleyDiagram-VNRHLVJA-tknlhG_t.js → wardleyDiagram-VNRHLVJA-QkwghAYo.js} +4 -4
  177. package/dist/{xychartDiagram-PMCCYNJV-CM0QlWD5.js → xychartDiagram-PMCCYNJV-stQWLgCx.js} +7 -7
  178. package/docs/components/README.md +2 -1
  179. package/docs/components/buttons-and-actions.md +8 -3
  180. package/docs/components/data-display.md +4 -4
  181. package/docs/components/data-table-filter-and-lists.md +100 -6
  182. package/docs/components/date-and-time.md +106 -6
  183. package/docs/components/feedback-and-status.md +4 -3
  184. package/docs/components/form-fields.md +55 -5
  185. package/docs/components/media-and-files.md +117 -8
  186. package/docs/components/navigation-and-layout.md +6 -1
  187. package/docs/components/overlays-and-menus.md +27 -2
  188. package/docs/components/primitives.md +34 -3
  189. package/docs/components/rich-widgets.md +1 -1
  190. package/docs/components/selection-and-choice.md +111 -8
  191. package/docs/guides/forms.md +2 -1
  192. package/docs/guides/i18n.md +58 -9
  193. package/docs/guides/ssr.md +3 -1
  194. package/docs/previews/date-time-daterangefield.webp +0 -0
  195. package/docs/previews/media-files-camera.webp +0 -0
  196. package/docs/previews/media-files-filepreview.webp +0 -0
  197. package/docs/previews/navigation-layout-stepper.webp +0 -0
  198. package/docs/previews/selection-choice-treeselectfield.webp +0 -0
  199. package/docs/roadmap.md +42 -3
  200. package/docs/troubleshooting.md +167 -0
  201. package/package.json +2 -2
  202. package/dist/flowDiagram-KWPJA3E3-B8Isvcc5.js +0 -17
  203. package/dist/isArrayLikeObject-CCJDO2RL.js +0 -86
  204. package/dist/lib/components/ui/fields/slider/slider-ticks.d.ts +0 -1
  205. package/dist/lib/components/ui/media/camera/camera.provider.d.ts +0 -6
  206. package/dist/lib/components/ui/media/camera/state/index.d.ts +0 -2
  207. package/dist/lib/components/ui/media/camera/utils/index.d.ts +0 -1
  208. package/dist/lib-DIj5dvbb.js +0 -367
  209. package/dist/merge-Dm-kHFxo.js +0 -172
  210. package/dist/swimlanesDiagram-TC7HE7FX-CbV1TsML.js +0 -28
@@ -1,8 +1,8 @@
1
- import { n as e } from "./src-CJ8DNrI1.js";
1
+ import { n as e } from "./src-C9kQSo6K.js";
2
2
  import { n as t } from "./mermaid-parser.core-BXD_TD1T.js";
3
3
  import { n } from "./chunk-Y2CYZVJY-BAad7w_K.js";
4
- import { c as r } from "./chunk-O7XYJQB3-C87zK8E5.js";
5
- import { t as i } from "./chunk-6AEJRKK7-DDXoGWDs.js";
4
+ import { c as r } from "./chunk-O7XYJQB3-A66QSOPA.js";
5
+ import { t as i } from "./chunk-6AEJRKK7-3YWRP4aV.js";
6
6
  //#region ../../node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-VRGFBTTK.mjs
7
7
  var a = { parse: /* @__PURE__ */ n(async (n) => {
8
8
  let r = await t("info", n);
@@ -0,0 +1,28 @@
1
+ import { x as e } from "./translator-CaIYjyFP.js";
2
+ import { i as t, o as n, t as r } from "./_overRest-CWIWQwDJ.js";
3
+ import { d as i } from "./_Uint8Array-CDlDeQmw.js";
4
+ //#region ../../node_modules/lodash-es/_baseRest.js
5
+ function a(e, i) {
6
+ return t(r(e, i, n), e + "");
7
+ }
8
+ //#endregion
9
+ //#region ../../node_modules/lodash-es/_createBaseFor.js
10
+ function o(e) {
11
+ return function(t, n, r) {
12
+ for (var i = -1, a = Object(t), o = r(t), s = o.length; s--;) {
13
+ var c = o[e ? s : ++i];
14
+ if (n(a[c], c, a) === !1) break;
15
+ }
16
+ return t;
17
+ };
18
+ }
19
+ //#endregion
20
+ //#region ../../node_modules/lodash-es/_baseFor.js
21
+ var s = o();
22
+ //#endregion
23
+ //#region ../../node_modules/lodash-es/isArrayLikeObject.js
24
+ function c(t) {
25
+ return e(t) && i(t);
26
+ }
27
+ //#endregion
28
+ export { s as n, a as r, c as t };
@@ -0,0 +1,53 @@
1
+ import { C as e, o as t, s as n, v as r } from "./translator-CaIYjyFP.js";
2
+ import { S as i, j as a, k as o } from "./async-slice-Qoen0Mqm.js";
3
+ import { a as s, c, d as l, f as u, l as d, p as f, u as p } from "./_Uint8Array-CDlDeQmw.js";
4
+ //#region ../../node_modules/lodash-es/_isFlattenable.js
5
+ var m = e ? e.isConcatSpreadable : void 0;
6
+ function h(e) {
7
+ return r(e) || d(e) || !!(m && e && e[m]);
8
+ }
9
+ //#endregion
10
+ //#region ../../node_modules/lodash-es/_baseFlatten.js
11
+ function g(e, t, n, r, i) {
12
+ var a = -1, s = e.length;
13
+ for (n ||= h, i ||= []; ++a < s;) {
14
+ var c = e[a];
15
+ t > 0 && n(c) ? t > 1 ? g(c, t - 1, n, r, i) : o(i, c) : r || (i[i.length] = c);
16
+ }
17
+ return i;
18
+ }
19
+ //#endregion
20
+ //#region ../../node_modules/lodash-es/_baseHasIn.js
21
+ function _(e, t) {
22
+ return e != null && t in Object(e);
23
+ }
24
+ //#endregion
25
+ //#region ../../node_modules/lodash-es/_hasPath.js
26
+ function v(e, i, a) {
27
+ i = n(i, e);
28
+ for (var o = -1, s = i.length, c = !1; ++o < s;) {
29
+ var l = t(i[o]);
30
+ if (!(c = e != null && a(e, l))) break;
31
+ e = e[l];
32
+ }
33
+ return c || ++o != s ? c : (s = e == null ? 0 : e.length, !!s && u(s) && f(l, s) && (r(e) || d(e)));
34
+ }
35
+ //#endregion
36
+ //#region ../../node_modules/lodash-es/hasIn.js
37
+ function y(e, t) {
38
+ return e != null && v(e, t, _);
39
+ }
40
+ //#endregion
41
+ //#region ../../node_modules/lodash-es/isEmpty.js
42
+ var b = "[object Map]", x = "[object Set]", S = Object.prototype.hasOwnProperty;
43
+ function C(e) {
44
+ if (e == null) return !0;
45
+ if (l(e) && (r(e) || typeof e == "string" || typeof e.splice == "function" || c(e) || s(e) || d(e))) return !e.length;
46
+ var t = i(e);
47
+ if (t == b || t == x) return !e.size;
48
+ if (p(e)) return !a(e).length;
49
+ for (var n in e) if (S.call(e, n)) return !1;
50
+ return !0;
51
+ }
52
+ //#endregion
53
+ export { g as i, y as n, v as r, C as t };
@@ -1,8 +1,8 @@
1
- import "./src-CJ8DNrI1.js";
2
- import { p as e } from "./chunk-ZIGJFQKS-HDJ6e6OJ.js";
1
+ import "./src-C9kQSo6K.js";
2
+ import { p as e } from "./chunk-ZIGJFQKS-C3xUAXJq.js";
3
3
  import { n as t } from "./chunk-Y2CYZVJY-BAad7w_K.js";
4
- import { H as n, U as r, a as i, c as a, q as o, s, v as c, w as l, x as u, y as d } from "./chunk-O7XYJQB3-C87zK8E5.js";
5
- import { t as f } from "./chunk-6AEJRKK7-DDXoGWDs.js";
4
+ import { H as n, U as r, a as i, c as a, q as o, s, v as c, w as l, x as u, y as d } from "./chunk-O7XYJQB3-A66QSOPA.js";
5
+ import { t as f } from "./chunk-6AEJRKK7-3YWRP4aV.js";
6
6
  import { t as p } from "./rough.esm-Cvc79rxE.js";
7
7
  //#region ../../node_modules/mermaid/dist/chunks/mermaid.core/ishikawaDiagram-OU5B5YK6.mjs
8
8
  var m = (function() {
@@ -1,9 +1,9 @@
1
- import { ct as e } from "./components-C3jpOwPw.js";
2
- import { t } from "./src-CJ8DNrI1.js";
1
+ import { ct as e } from "./components-C3wIUrWw.js";
2
+ import { t } from "./src-C9kQSo6K.js";
3
3
  import { n } from "./chunk-Y2CYZVJY-BAad7w_K.js";
4
- import { H as r, U as i, a, c as o, q as s, v as c, w as l, x as u, y as d } from "./chunk-O7XYJQB3-C87zK8E5.js";
4
+ import { H as r, U as i, a, c as o, q as s, v as c, w as l, x as u, y as d } from "./chunk-O7XYJQB3-A66QSOPA.js";
5
5
  import { t as f } from "./chunk-5VM5RSS4-BFskf6Qk.js";
6
- import { a as p, n as m, o as h, s as g } from "./chunk-GWA4HPMP-CmsxMX3A.js";
6
+ import { a as p, n as m, o as h, s as g } from "./chunk-GWA4HPMP-Co-A6dtV.js";
7
7
  //#region ../../node_modules/mermaid/dist/chunks/mermaid.core/journeyDiagram-ZHPQQLJL.mjs
8
8
  var _ = (function() {
9
9
  var e = /* @__PURE__ */ n(function(e, t, n, r) {
@@ -1,15 +1,15 @@
1
- import { n as e } from "./src-CJ8DNrI1.js";
2
- import "./chunk-ZIGJFQKS-HDJ6e6OJ.js";
1
+ import { n as e } from "./src-C9kQSo6K.js";
2
+ import "./chunk-ZIGJFQKS-C3xUAXJq.js";
3
3
  import { n as t } from "./chunk-Y2CYZVJY-BAad7w_K.js";
4
- import { Y as n, f as r, it as i, nt as a, tt as o, x as s, z as c } from "./chunk-O7XYJQB3-C87zK8E5.js";
5
- import { t as l } from "./chunk-6AEJRKK7-DDXoGWDs.js";
6
- import "./chunk-742MDFTN-nG_ROTnT.js";
7
- import "./chunk-MBY4JIJT-IA2XBafa.js";
4
+ import { Y as n, f as r, it as i, nt as a, tt as o, x as s, z as c } from "./chunk-O7XYJQB3-A66QSOPA.js";
5
+ import { t as l } from "./chunk-6AEJRKK7-3YWRP4aV.js";
6
+ import "./chunk-742MDFTN-Cs1qGiTK.js";
7
+ import "./chunk-MBY4JIJT-C3RQP_Nk.js";
8
8
  import { t as u } from "./chunk-5VM5RSS4-BFskf6Qk.js";
9
- import "./chunk-7PRAP22T-DIiYRAce.js";
10
- import "./chunk-7INBJB4K-Dg64CbhT.js";
11
- import { i as d, r as f } from "./chunk-5DYCD2WN-Bqi3iL5i.js";
12
- import { r as p } from "./chunk-UA2S7LBM-B0LGFGu3.js";
9
+ import "./chunk-7PRAP22T-_Av9vcXz.js";
10
+ import "./chunk-7INBJB4K-BY5n77ka.js";
11
+ import { i as d, r as f } from "./chunk-5DYCD2WN-Cja1INgd.js";
12
+ import { r as p } from "./chunk-UA2S7LBM-BNeHeMx9.js";
13
13
  import { n as m, t as h } from "./chunk-LNGE3PJU-DJjGTS7O.js";
14
14
  //#region ../../node_modules/mermaid/dist/chunks/mermaid.core/kanban-definition-PNTS6WVX.mjs
15
15
  var g = (function() {
@@ -0,0 +1,114 @@
1
+ /** The colour of each variant: one entry per `variant` × `color`. */
2
+ export declare const buttonCompoundVariants: ({
3
+ variant: "filled";
4
+ color: "primary";
5
+ class: string;
6
+ } | {
7
+ variant: "filled";
8
+ color: "secondary";
9
+ class: string;
10
+ } | {
11
+ variant: "filled";
12
+ color: "success";
13
+ class: string;
14
+ } | {
15
+ variant: "filled";
16
+ color: "info";
17
+ class: string;
18
+ } | {
19
+ variant: "filled";
20
+ color: "warning";
21
+ class: string;
22
+ } | {
23
+ variant: "filled";
24
+ color: "error";
25
+ class: string;
26
+ } | {
27
+ variant: "filled";
28
+ color: "default";
29
+ class: string;
30
+ } | {
31
+ variant: "tonal";
32
+ color: "primary";
33
+ class: string;
34
+ } | {
35
+ variant: "tonal";
36
+ color: "secondary";
37
+ class: string;
38
+ } | {
39
+ variant: "tonal";
40
+ color: "info";
41
+ class: string;
42
+ } | {
43
+ variant: "tonal";
44
+ color: "success";
45
+ class: string;
46
+ } | {
47
+ variant: "tonal";
48
+ color: "warning";
49
+ class: string;
50
+ } | {
51
+ variant: "tonal";
52
+ color: "error";
53
+ class: string;
54
+ } | {
55
+ variant: "tonal";
56
+ color: "default";
57
+ class: string;
58
+ } | {
59
+ variant: "outlined";
60
+ color: "primary";
61
+ class: string;
62
+ } | {
63
+ variant: "outlined";
64
+ color: "secondary";
65
+ class: string;
66
+ } | {
67
+ variant: "outlined";
68
+ color: "info";
69
+ class: string;
70
+ } | {
71
+ variant: "outlined";
72
+ color: "success";
73
+ class: string;
74
+ } | {
75
+ variant: "outlined";
76
+ color: "warning";
77
+ class: string;
78
+ } | {
79
+ variant: "outlined";
80
+ color: "error";
81
+ class: string;
82
+ } | {
83
+ variant: "outlined";
84
+ color: "default";
85
+ class: string;
86
+ } | {
87
+ variant: "link";
88
+ color: "primary";
89
+ class: string;
90
+ } | {
91
+ variant: "link";
92
+ color: "secondary";
93
+ class: string;
94
+ } | {
95
+ variant: "link";
96
+ color: "success";
97
+ class: string;
98
+ } | {
99
+ variant: "link";
100
+ color: "info";
101
+ class: string;
102
+ } | {
103
+ variant: "link";
104
+ color: "warning";
105
+ class: string;
106
+ } | {
107
+ variant: "link";
108
+ color: "error";
109
+ class: string;
110
+ } | {
111
+ variant: "link";
112
+ color: "default";
113
+ class: string;
114
+ })[];
@@ -1,11 +1,7 @@
1
- import { VariantProps } from 'class-variance-authority';
2
1
  import { ComponentProps } from 'react';
3
2
  import { SpinnerProps } from '../../feedback/spinner/spinner';
4
- declare const variants: (props?: ({
5
- variant?: "link" | "filled" | "tonal" | "ghost" | "outlined" | null | undefined;
6
- color?: "error" | "success" | "default" | "info" | "warning" | "primary" | "secondary" | null | undefined;
7
- } & import('class-variance-authority/types').ClassProp) | undefined) => string;
8
- export type ButtonProps = ComponentProps<'button'> & VariantProps<typeof variants> & {
3
+ import { ButtonVariants, buttonVariants } from './button.variants';
4
+ export type ButtonProps = ComponentProps<'button'> & ButtonVariants & {
9
5
  asChild?: boolean;
10
6
  loading?: boolean;
11
7
  spinnerVariant?: SpinnerProps['variant'];
@@ -13,4 +9,5 @@ export type ButtonProps = ComponentProps<'button'> & VariantProps<typeof variant
13
9
  tooltip?: string;
14
10
  };
15
11
  export declare function Button({ tooltip, ...props }: ButtonProps): import("react").JSX.Element;
16
- export { variants as buttonVariants };
12
+ export type { ButtonVariants };
13
+ export { buttonVariants };
@@ -0,0 +1,7 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ export declare const buttonVariants: (props?: ({
3
+ variant?: "link" | "filled" | "tonal" | "outlined" | "ghost" | null | undefined;
4
+ color?: "error" | "success" | "default" | "info" | "warning" | "primary" | "secondary" | null | undefined;
5
+ size?: "sm" | "icon" | "default" | "xs" | "lg" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
6
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
+ export type ButtonVariants = VariantProps<typeof buttonVariants>;
@@ -0,0 +1,10 @@
1
+ import { ReactNode } from 'react';
2
+ /**
3
+ * Whether `node` renders any text of its own — a string or a number,
4
+ * however deep in plain elements. An `Icon` or a lucide glyph has none.
5
+ * A component that produces its text from props (a `<Trans id="…" />`) is
6
+ * not seen: pass the button an `aria-label` then. Text under an
7
+ * `aria-hidden` element (a decorative count) does not name the button, so it
8
+ * does not count.
9
+ */
10
+ export declare function hasTextContent(node: ReactNode): boolean;
@@ -1,5 +1,5 @@
1
1
  /** `IconButton`'s variant × color classes. */
2
2
  export declare const variants: (props?: ({
3
- variant?: "link" | "filled" | "tonal" | "ghost" | "outlined" | null | undefined;
3
+ variant?: "link" | "filled" | "tonal" | "outlined" | "ghost" | null | undefined;
4
4
  color?: "error" | "success" | "default" | "info" | "warning" | "primary" | "secondary" | null | undefined;
5
5
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -0,0 +1,4 @@
1
+ /** Whether the enclosing `DataTable` is loading. `DataTableColumnHeader`
2
+ * reads it to disable sorting; outside a `DataTable` it is `false`. */
3
+ export declare const DataTableLoadingContext: import('react').Context<boolean>;
4
+ export declare function useDataTableLoading(): boolean;
@@ -5,6 +5,8 @@ type DataTablePaginationProps<TData extends RowData> = {
5
5
  table: Table<DataTableFeatures, TData>;
6
6
  showPage?: boolean;
7
7
  showSelected?: boolean;
8
+ /** Disables the page size and the page buttons (a loading `DataTable`). */
9
+ disabled?: boolean;
8
10
  } & ComponentProps<'div'>;
9
- export declare function DataTablePagination<TData extends RowData>({ table, className, children, showPage, showSelected, ...props }: DataTablePaginationProps<TData>): import("react").JSX.Element;
11
+ export declare function DataTablePagination<TData extends RowData>({ table, className, children, showPage, showSelected, disabled, ...props }: DataTablePaginationProps<TData>): import("react").JSX.Element;
10
12
  export {};
@@ -1,6 +1,7 @@
1
1
  import { ColumnDef, Table as ReactTable, Row, RowData } from '@tanstack/react-table';
2
2
  import { ReactNode } from 'react';
3
3
  import { DataTableFeatures } from './features';
4
+ import { DataTableEmpty } from './partials/data-table-empty-row';
4
5
  interface DataTableProps<TData extends RowData> {
5
6
  columns: ColumnDef<DataTableFeatures, TData, any>[];
6
7
  data: TData[];
@@ -12,10 +13,19 @@ interface DataTableProps<TData extends RowData> {
12
13
  onLoadMore?: () => void;
13
14
  isLoadingMore?: boolean;
14
15
  showViewOptions?: boolean;
16
+ /** While `true`: skeleton rows when there is nothing to show, the current
17
+ * rows dimmed and inert otherwise; `aria-busy` on the table; sorting,
18
+ * the toolbar's native controls and pagination disabled. */
19
+ loading?: boolean;
20
+ /** How many skeleton rows `loading` shows. Default: the page size. */
21
+ loadingRows?: number;
22
+ /** Shown, spanning every visible column, when no row is left after filtering. A
23
+ * function is told whether rows exist but none matches the filters. */
24
+ empty?: DataTableEmpty;
15
25
  }
26
+ export type { DataTableEmpty, DataTableEmptyState, } from './partials/data-table-empty-row';
16
27
  interface DataTableOptions {
17
28
  showPage?: boolean;
18
29
  showSelected?: boolean;
19
30
  }
20
- export declare function DataTable<TData extends RowData>({ columns, data, className, actions, options, onLoadMore, renderExpandedRow, isLoadingMore, showHeader, showViewOptions, }: DataTableProps<TData>): import("react").JSX.Element;
21
- export {};
31
+ export declare function DataTable<TData extends RowData>({ columns, data, className, actions, options, onLoadMore, renderExpandedRow, isLoadingMore, showHeader, showViewOptions, loading, loadingRows, empty, }: DataTableProps<TData>): import("react").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { Row, RowData } from '@tanstack/react-table';
1
+ import { Row, RowData, Table } from '@tanstack/react-table';
2
2
  import { DataTableFeatures } from './features';
3
3
  export declare function useColumnHelpers<T extends RowData>(): {
4
4
  columnHelper: import('@tanstack/table-core').ColumnHelper<{
@@ -8,10 +8,10 @@ export declare function useColumnHelpers<T extends RowData>(): {
8
8
  rowSortingFeature: import('@tanstack/table-core').TableFeature;
9
9
  rowExpandingFeature: import('@tanstack/table-core').TableFeature;
10
10
  rowPaginationFeature: import('@tanstack/table-core').TableFeature;
11
- filteredRowModel: (table: import('@tanstack/table-core').Table<any, any>) => () => import('@tanstack/table-core').RowModel<any, any>;
12
- sortedRowModel: (table: import('@tanstack/table-core').Table<any, any>) => () => import('@tanstack/table-core').RowModel<any, any>;
13
- paginatedRowModel: (table: import('@tanstack/table-core').Table<any, any>) => () => import('@tanstack/table-core').RowModel<any, any>;
14
- expandedRowModel: (table: import('@tanstack/table-core').Table<any, any>) => () => import('@tanstack/table-core').RowModel<any, any>;
11
+ filteredRowModel: (table: Table<any, any>) => () => import('@tanstack/table-core').RowModel<any, any>;
12
+ sortedRowModel: (table: Table<any, any>) => () => import('@tanstack/table-core').RowModel<any, any>;
13
+ paginatedRowModel: (table: Table<any, any>) => () => import('@tanstack/table-core').RowModel<any, any>;
14
+ expandedRowModel: (table: Table<any, any>) => () => import('@tanstack/table-core').RowModel<any, any>;
15
15
  }, T>;
16
16
  predefinedColumns: () => {
17
17
  select: import('@tanstack/table-core').DisplayColumnDef<{
@@ -21,10 +21,10 @@ export declare function useColumnHelpers<T extends RowData>(): {
21
21
  rowSortingFeature: import('@tanstack/table-core').TableFeature;
22
22
  rowExpandingFeature: import('@tanstack/table-core').TableFeature;
23
23
  rowPaginationFeature: import('@tanstack/table-core').TableFeature;
24
- filteredRowModel: (table: import('@tanstack/table-core').Table<any, any>) => () => import('@tanstack/table-core').RowModel<any, any>;
25
- sortedRowModel: (table: import('@tanstack/table-core').Table<any, any>) => () => import('@tanstack/table-core').RowModel<any, any>;
26
- paginatedRowModel: (table: import('@tanstack/table-core').Table<any, any>) => () => import('@tanstack/table-core').RowModel<any, any>;
27
- expandedRowModel: (table: import('@tanstack/table-core').Table<any, any>) => () => import('@tanstack/table-core').RowModel<any, any>;
24
+ filteredRowModel: (table: Table<any, any>) => () => import('@tanstack/table-core').RowModel<any, any>;
25
+ sortedRowModel: (table: Table<any, any>) => () => import('@tanstack/table-core').RowModel<any, any>;
26
+ paginatedRowModel: (table: Table<any, any>) => () => import('@tanstack/table-core').RowModel<any, any>;
27
+ expandedRowModel: (table: Table<any, any>) => () => import('@tanstack/table-core').RowModel<any, any>;
28
28
  }, T, unknown>;
29
29
  expand: import('@tanstack/table-core').DisplayColumnDef<{
30
30
  columnFilteringFeature: import('@tanstack/table-core').TableFeature;
@@ -33,10 +33,10 @@ export declare function useColumnHelpers<T extends RowData>(): {
33
33
  rowSortingFeature: import('@tanstack/table-core').TableFeature;
34
34
  rowExpandingFeature: import('@tanstack/table-core').TableFeature;
35
35
  rowPaginationFeature: import('@tanstack/table-core').TableFeature;
36
- filteredRowModel: (table: import('@tanstack/table-core').Table<any, any>) => () => import('@tanstack/table-core').RowModel<any, any>;
37
- sortedRowModel: (table: import('@tanstack/table-core').Table<any, any>) => () => import('@tanstack/table-core').RowModel<any, any>;
38
- paginatedRowModel: (table: import('@tanstack/table-core').Table<any, any>) => () => import('@tanstack/table-core').RowModel<any, any>;
39
- expandedRowModel: (table: import('@tanstack/table-core').Table<any, any>) => () => import('@tanstack/table-core').RowModel<any, any>;
36
+ filteredRowModel: (table: Table<any, any>) => () => import('@tanstack/table-core').RowModel<any, any>;
37
+ sortedRowModel: (table: Table<any, any>) => () => import('@tanstack/table-core').RowModel<any, any>;
38
+ paginatedRowModel: (table: Table<any, any>) => () => import('@tanstack/table-core').RowModel<any, any>;
39
+ expandedRowModel: (table: Table<any, any>) => () => import('@tanstack/table-core').RowModel<any, any>;
40
40
  }, T, unknown>;
41
41
  };
42
42
  };
@@ -1,13 +1,17 @@
1
1
  import { Table as ReactTable, Row, RowData } from '@tanstack/react-table';
2
2
  import { ReactNode } from 'react';
3
3
  import { DataTableFeatures } from '../features';
4
+ import { DataTableEmpty } from './data-table-empty-row';
4
5
  interface DataTableBodyProps<TData extends RowData> {
5
6
  table: ReactTable<DataTableFeatures, TData>;
6
- /** Spans the empty-state cell. */
7
- columnCount: number;
8
7
  renderExpandedRow?: (row: Row<DataTableFeatures, TData>) => ReactNode;
8
+ /** Skeleton rows when there is nothing to show, dimmed rows otherwise. */
9
+ loading?: boolean;
10
+ /** How many skeleton rows; the page size when absent. */
11
+ loadingRows?: number;
12
+ empty?: DataTableEmpty;
9
13
  }
10
- /** `DataTable`'s rows, each followed by its expanded row when open, or the
11
- * empty state. */
12
- export declare function DataTableBody<TData extends RowData>({ table, columnCount, renderExpandedRow, }: DataTableBodyProps<TData>): import("react").JSX.Element;
14
+ /** `DataTable`'s rows, each followed by its expanded row when open; skeleton
15
+ * rows while loading with no row to show; or the empty state. */
16
+ export declare function DataTableBody<TData extends RowData>({ table, renderExpandedRow, loading, loadingRows, empty, }: DataTableBodyProps<TData>): import("react").JSX.Element;
13
17
  export {};
@@ -0,0 +1,14 @@
1
+ import { ReactNode } from 'react';
2
+ /** What `DataTable`'s `empty` render function is told: `filtered` is `true`
3
+ * when there is data but no row matches the column filters. */
4
+ export type DataTableEmptyState = {
5
+ filtered: boolean;
6
+ };
7
+ export type DataTableEmpty = ReactNode | ((state: DataTableEmptyState) => ReactNode);
8
+ /** `DataTable`'s "nothing here" row: one `TableEmpty` cell spanning every
9
+ * visible column, holding `empty` or the default icon and text. */
10
+ export declare function DataTableEmptyRow({ columnCount, empty, filtered, }: {
11
+ columnCount: number;
12
+ empty?: DataTableEmpty;
13
+ filtered: boolean;
14
+ }): import("react").JSX.Element;
@@ -0,0 +1,7 @@
1
+ /** `DataTable`'s placeholder rows while it loads with nothing to show yet:
2
+ * `rows` rows of one `Skeleton` per visible column. Hidden from assistive
3
+ * tech; the table's status line announces the loading instead. */
4
+ export declare function DataTableSkeletonRows({ rows, columnCount, }: {
5
+ rows: number;
6
+ columnCount: number;
7
+ }): import("react").JSX.Element[];
@@ -0,0 +1,15 @@
1
+ import { FilterField, FilterValue } from './types';
2
+ export type FilterFieldNumberRangeProps = {
3
+ field: FilterField;
4
+ value: FilterValue;
5
+ onChange: (value: FilterValue) => void;
6
+ error?: string;
7
+ disabled?: boolean;
8
+ className?: string;
9
+ };
10
+ /**
11
+ * Two inputs, one value: the group carries the filter's name (its label) and
12
+ * help (its description and error), each input its own part ("Min", "Max"),
13
+ * as in DurationField. Two range filters are then told apart by their group.
14
+ */
15
+ export declare function FilterFieldNumberRange({ field, value, onChange, error, disabled, className, }: FilterFieldNumberRangeProps): import("react").JSX.Element;
@@ -1,4 +1,4 @@
1
- export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, } from './pagination';
1
+ export { Pagination, PaginationContent, PaginationEllipsis, PaginationFirst, PaginationItem, PaginationLast, PaginationLink, PaginationNext, PaginationPrevious, } from './pagination';
2
2
  export type { PaginationBarProps } from './pagination-bar';
3
3
  export { PaginationBar } from './pagination-bar';
4
4
  export type { PaginationItemToken } from './pagination-items';
@@ -14,5 +14,13 @@ declare function PaginationNext({ className, label, icon, ...props }: {
14
14
  label?: ReactNode;
15
15
  icon?: ReactNode;
16
16
  } & ComponentProps<typeof PaginationLink>): import("react").JSX.Element;
17
+ declare function PaginationFirst({ className, label, icon, ...props }: {
18
+ label?: ReactNode;
19
+ icon?: ReactNode;
20
+ } & ComponentProps<typeof PaginationLink>): import("react").JSX.Element;
21
+ declare function PaginationLast({ className, label, icon, ...props }: {
22
+ label?: ReactNode;
23
+ icon?: ReactNode;
24
+ } & ComponentProps<typeof PaginationLink>): import("react").JSX.Element;
17
25
  declare function PaginationEllipsis({ className, ...props }: ComponentProps<'span'>): import("react").JSX.Element;
18
- export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, };
26
+ export { Pagination, PaginationContent, PaginationEllipsis, PaginationFirst, PaginationItem, PaginationLast, PaginationLink, PaginationNext, PaginationPrevious, };
@@ -15,6 +15,8 @@ export declare function useTree({ nodes, selectionMode, selectedIds, defaultSele
15
15
  selected: string[];
16
16
  expanded: string[];
17
17
  focusedId: string | null;
18
+ /** The row with `tabindex="0"`: `focusedId` while visible, else the first row. */
19
+ tabbableId: string | null;
18
20
  setFocusedId: import('react').Dispatch<import('react').SetStateAction<string | null>>;
19
21
  toggleExpanded: (id: string) => void;
20
22
  select: (id: string) => void;
@@ -5,7 +5,7 @@ import { DateRangeFieldProps } from './date-range-field';
5
5
  * in it any more (a button may not hold a `<label>`): `DateRangeField` renders
6
6
  * them around the button. `label`, `helperText` and `labelId` are ignored.
7
7
  */
8
- export declare function DateRangeFieldTrigger({ value, error, placeholder, className, open, }: DateRangeFieldProps & {
8
+ export declare function DateRangeFieldTrigger({ value, error, placeholder, className, open, withTime, }: DateRangeFieldProps & {
9
9
  open: boolean;
10
10
  /** @deprecated Ignored: the `Label` is outside the trigger now. */
11
11
  labelId?: string;
@@ -1,3 +1,4 @@
1
+ import { DateRangePresetOption } from '@nxgt/material-core/date-range';
1
2
  import { ComponentProps, ReactNode } from 'react';
2
3
  import { Calendar, DateRange } from '../calendar/calendar';
3
4
  export type DateRangeFieldProps = {
@@ -23,7 +24,15 @@ export type DateRangeFieldProps = {
23
24
  disabled?: boolean | CalendarProps['disabled'];
24
25
  /** Days that cannot be picked: the calendar's `disabled` matcher. */
25
26
  disabledDays?: CalendarProps['disabled'];
27
+ /**
28
+ * One-click ranges beside the calendar: built-in ids (`'today'`,
29
+ * `'last-7-days'`, … — `DATE_RANGE_PRESET_IDS` lists them all) and
30
+ * `{ label, range }` of your own, where `range` may be `(now) => range`.
31
+ */
32
+ presets?: readonly DateRangePresetOption[];
33
+ /** A time of day on each end of the range, under the calendar. */
34
+ withTime?: boolean;
26
35
  } & Omit<CalendarProps, 'mode' | 'label' | 'onSelect' | 'disabled'>;
27
36
  type CalendarProps = ComponentProps<typeof Calendar>;
28
- export declare function DateRangeField({ value, label, helperText, error, onValueChange, placeholder, className, required, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, disabled, disabledDays, ...rest }: DateRangeFieldProps): import("react").JSX.Element;
37
+ export declare function DateRangeField({ value, label, helperText, error, onValueChange, placeholder, className, required, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, disabled, disabledDays, presets, withTime, ...rest }: DateRangeFieldProps): import("react").JSX.Element;
29
38
  export {};
@@ -0,0 +1,13 @@
1
+ import { DateRangeRules } from '@nxgt/material-core/date-range';
2
+ import { Matcher } from 'react-day-picker';
3
+ /**
4
+ * What a preset's range must respect: the field's day rule (`disabledDays`)
5
+ * and the calendar's first and last day (`minDate` / `maxDate`, narrowed by
6
+ * `disablePast` / `disableFuture`), as the calendar itself applies them.
7
+ */
8
+ export declare function dateRangeRules(dayRule: Matcher | Matcher[] | undefined, bounds: {
9
+ minDate?: Date;
10
+ maxDate?: Date;
11
+ disablePast?: boolean;
12
+ disableFuture?: boolean;
13
+ }, today?: Date): DateRangeRules;
@@ -1,3 +1,4 @@
1
+ export { DATE_RANGE_PRESET_IDS, type DateRangePreset, type DateRangePresetId, type DateRangePresetOption, type DayRange, } from '@nxgt/material-core/date-range';
1
2
  export * from './date-range-field';
2
3
  export * from './date-range-field-trigger';
3
4
  export * from './date-range-form-field';
@@ -0,0 +1,25 @@
1
+ import { DateRangePresetOption } from '@nxgt/material-core/date-range';
2
+ import { ComponentProps } from 'react';
3
+ import { Matcher } from 'react-day-picker';
4
+ import { Calendar, DateRange } from '../../calendar/calendar';
5
+ type CalendarProps = ComponentProps<typeof Calendar>;
6
+ type BodyProps = {
7
+ calendarProps: Omit<CalendarProps, 'mode' | 'label' | 'onSelect' | 'disabled'>;
8
+ dayRule?: Matcher | Matcher[];
9
+ required?: boolean;
10
+ value?: DateRange;
11
+ onValueChange?: (value?: DateRange) => void;
12
+ presets?: readonly DateRangePresetOption[];
13
+ withTime?: boolean;
14
+ onClose: () => void;
15
+ };
16
+ /**
17
+ * The open popover of a `DateRangeField`: the presets, the range calendar
18
+ * and, with `withTime`, the two times and OK. Its body is mounted only while
19
+ * the popover is open, so the presets are resolved (and "now" read) only
20
+ * then, as in the Vue sister.
21
+ */
22
+ export declare function DateRangeFieldContent({ triggerId, ...body }: BodyProps & {
23
+ triggerId: string;
24
+ }): import("react").JSX.Element;
25
+ export {};
@@ -0,0 +1,11 @@
1
+ import { DayRange } from '@nxgt/material-core/date-range';
2
+ import { DateRangePresetItem } from '../use-date-range-presets';
3
+ /**
4
+ * The one-click ranges beside the calendar: a group (a `<fieldset>`) of
5
+ * toggle buttons, the one whose range is the field's value pressed
6
+ * (`aria-pressed`). A preset the field's rules rule out is disabled.
7
+ */
8
+ export declare function DateRangePresets({ items, onPick, }: {
9
+ items: DateRangePresetItem[];
10
+ onPick: (range: DayRange) => void;
11
+ }): import("react").JSX.Element;
@@ -0,0 +1,11 @@
1
+ import { DateRange } from '../../calendar/calendar';
2
+ /**
3
+ * A time of day for each end of the range, under the calendar. An end with
4
+ * no day yet has its time disabled. The end never comes before the start:
5
+ * on the same day, an earlier end time becomes the start time.
6
+ */
7
+ export declare function DateRangeTimes({ value, onValueChange, onDone, }: {
8
+ value?: DateRange;
9
+ onValueChange?: (value?: DateRange) => void;
10
+ onDone: () => void;
11
+ }): import("react").JSX.Element;