@alfadocs/ui-kit-debug 0.89.0 → 0.94.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 (217) hide show
  1. package/dist/_chunks/{antenatal-schedule-timeline-UiZQze4P.js → antenatal-schedule-timeline-BMMpi2lb.js} +17 -17
  2. package/dist/_chunks/{antenatal-schedule-timeline-UiZQze4P.js.map → antenatal-schedule-timeline-BMMpi2lb.js.map} +1 -1
  3. package/dist/_chunks/apexcharts-theme-fAQXLIMW.js +67 -0
  4. package/dist/_chunks/apexcharts-theme-fAQXLIMW.js.map +1 -0
  5. package/dist/_chunks/{appointment-timeline-CwpbQGC1.js → appointment-timeline-BB-c1LeR.js} +2 -2
  6. package/dist/_chunks/{appointment-timeline-CwpbQGC1.js.map → appointment-timeline-BB-c1LeR.js.map} +1 -1
  7. package/dist/_chunks/{ar-C9FRRqJs.js → ar-THMLfSoN.js} +22 -22
  8. package/dist/_chunks/{ar-C9FRRqJs.js.map → ar-THMLfSoN.js.map} +1 -1
  9. package/dist/_chunks/{booking-DEwmDprH.js → booking-BSpSMmJ2.js} +4 -4
  10. package/dist/_chunks/{booking-DEwmDprH.js.map → booking-BSpSMmJ2.js.map} +1 -1
  11. package/dist/_chunks/{chart-CNaLgvx4.js → chart-DqxVCm1I.js} +288 -257
  12. package/dist/_chunks/chart-DqxVCm1I.js.map +1 -0
  13. package/dist/_chunks/{cycle-calculator-DXSNIWFk.js → cycle-calculator-DNvvr0bP.js} +3 -3
  14. package/dist/_chunks/{cycle-calculator-DXSNIWFk.js.map → cycle-calculator-DNvvr0bP.js.map} +1 -1
  15. package/dist/_chunks/date-picker-BP_W6VtE.js +265 -0
  16. package/dist/_chunks/date-picker-BP_W6VtE.js.map +1 -0
  17. package/dist/_chunks/{date-picker-variants-D9B6hg15.js → date-picker-variants-eL6HjWvw.js} +966 -841
  18. package/dist/_chunks/{date-picker-variants-D9B6hg15.js.map → date-picker-variants-eL6HjWvw.js.map} +1 -1
  19. package/dist/_chunks/date-range-picker-Cfv4Sr63.js +832 -0
  20. package/dist/_chunks/date-range-picker-Cfv4Sr63.js.map +1 -0
  21. package/dist/_chunks/{date-time-picker-BU-j0qj4.js → date-time-picker-695QvBGj.js} +2 -2
  22. package/dist/_chunks/{date-time-picker-BU-j0qj4.js.map → date-time-picker-695QvBGj.js.map} +1 -1
  23. package/dist/_chunks/{de-C3_KZ6mR.js → de-DmZ-8rTN.js} +4 -4
  24. package/dist/_chunks/{de-C3_KZ6mR.js.map → de-DmZ-8rTN.js.map} +1 -1
  25. package/dist/_chunks/{due-date-calculator-BR_GuqHH.js → due-date-calculator-BEcdoy_E.js} +3 -3
  26. package/dist/_chunks/{due-date-calculator-BR_GuqHH.js.map → due-date-calculator-BEcdoy_E.js.map} +1 -1
  27. package/dist/_chunks/{el-v9xDKHgu.js → el-Bela9mxs.js} +6 -6
  28. package/dist/_chunks/{el-v9xDKHgu.js.map → el-Bela9mxs.js.map} +1 -1
  29. package/dist/_chunks/{es-Lgmjq9Rp.js → es-BNncHKex.js} +10 -10
  30. package/dist/_chunks/{es-Lgmjq9Rp.js.map → es-BNncHKex.js.map} +1 -1
  31. package/dist/_chunks/{fr-INS1OD7m.js → fr-CH8ADfhN.js} +12 -12
  32. package/dist/_chunks/{fr-INS1OD7m.js.map → fr-CH8ADfhN.js.map} +1 -1
  33. package/dist/_chunks/{gestational-age-calculator-DBIcxfjP.js → gestational-age-calculator-CuGkVqKp.js} +5 -5
  34. package/dist/_chunks/{gestational-age-calculator-DBIcxfjP.js.map → gestational-age-calculator-CuGkVqKp.js.map} +1 -1
  35. package/dist/_chunks/{hcg-doubling-BgCkds8R.js → hcg-doubling-fZ6qQN08.js} +2 -2
  36. package/dist/_chunks/{hcg-doubling-BgCkds8R.js.map → hcg-doubling-fZ6qQN08.js.map} +1 -1
  37. package/dist/_chunks/{hi-BUYtlosF.js → hi-Bppfxp8l.js} +16 -16
  38. package/dist/_chunks/{hi-BUYtlosF.js.map → hi-Bppfxp8l.js.map} +1 -1
  39. package/dist/_chunks/{isSameWeek-BUNsv4OO.js → isSameWeek-CK4HS9lH.js} +2 -2
  40. package/dist/_chunks/{isSameWeek-BUNsv4OO.js.map → isSameWeek-CK4HS9lH.js.map} +1 -1
  41. package/dist/_chunks/{it-VfsdUqeV.js → it-B4ySaRyK.js} +24 -24
  42. package/dist/_chunks/{it-VfsdUqeV.js.map → it-B4ySaRyK.js.map} +1 -1
  43. package/dist/_chunks/{ja-Dfk9qwzE.js → ja-CGF6Io9P.js} +12 -12
  44. package/dist/_chunks/{ja-Dfk9qwzE.js.map → ja-CGF6Io9P.js.map} +1 -1
  45. package/dist/_chunks/{link-cell-renderer-BzITwSXq.js → link-cell-renderer-_LDZhY4r.js} +214 -197
  46. package/dist/_chunks/link-cell-renderer-_LDZhY4r.js.map +1 -0
  47. package/dist/_chunks/{nl-Crxwg0IZ.js → nl-DuShqwuV.js} +12 -12
  48. package/dist/_chunks/{nl-Crxwg0IZ.js.map → nl-DuShqwuV.js.map} +1 -1
  49. package/dist/_chunks/parse-DvA97ro9.js +1601 -0
  50. package/dist/_chunks/parse-DvA97ro9.js.map +1 -0
  51. package/dist/_chunks/{patient-details-Dggsz-ki.js → patient-details-DrhlTrLf.js} +2 -2
  52. package/dist/_chunks/{patient-details-Dggsz-ki.js.map → patient-details-DrhlTrLf.js.map} +1 -1
  53. package/dist/_chunks/{patient-table-ps4byVwA.js → patient-table-CFM92QqU.js} +2 -2
  54. package/dist/_chunks/{patient-table-ps4byVwA.js.map → patient-table-CFM92QqU.js.map} +1 -1
  55. package/dist/_chunks/{pl-IdHtxWTl.js → pl-CKQwX9Fk.js} +22 -22
  56. package/dist/_chunks/{pl-IdHtxWTl.js.map → pl-CKQwX9Fk.js.map} +1 -1
  57. package/dist/_chunks/{pregnancy-dating-CvIRwWaG.js → pregnancy-dating-BdFl-rB1.js} +5 -5
  58. package/dist/_chunks/{pregnancy-dating-CvIRwWaG.js.map → pregnancy-dating-BdFl-rB1.js.map} +1 -1
  59. package/dist/_chunks/{pt-CY2m2bBz.js → pt-_njpXyOZ.js} +16 -16
  60. package/dist/_chunks/{pt-CY2m2bBz.js.map → pt-_njpXyOZ.js.map} +1 -1
  61. package/dist/_chunks/{radiograph-panel.agent-C93AXgtV.js → radiograph-panel.agent-DDnDGVpN.js} +3 -3
  62. package/dist/_chunks/{radiograph-panel.agent-C93AXgtV.js.map → radiograph-panel.agent-DDnDGVpN.js.map} +1 -1
  63. package/dist/_chunks/{ro-qoxLkXED.js → ro-3X6_4FcN.js} +14 -14
  64. package/dist/_chunks/{ro-qoxLkXED.js.map → ro-3X6_4FcN.js.map} +1 -1
  65. package/dist/_chunks/{ru-BVZlxoKf.js → ru-bAcgmnS-.js} +20 -20
  66. package/dist/_chunks/{ru-BVZlxoKf.js.map → ru-bAcgmnS-.js.map} +1 -1
  67. package/dist/_chunks/{sparkline-iOXYgvJe.js → sparkline-o6JH4O66.js} +2 -2
  68. package/dist/_chunks/{sparkline-iOXYgvJe.js.map → sparkline-o6JH4O66.js.map} +1 -1
  69. package/dist/_chunks/{sq--eT8hIiD.js → sq-jYFqr4Ga.js} +6 -6
  70. package/dist/_chunks/{sq--eT8hIiD.js.map → sq-jYFqr4Ga.js.map} +1 -1
  71. package/dist/_chunks/subDays-BcNi04uf.js +8 -0
  72. package/dist/_chunks/{subDays-fEHRx4hg.js.map → subDays-BcNi04uf.js.map} +1 -1
  73. package/dist/_chunks/{sv-BGNQ5gX6.js → sv-BSGEJ-8B.js} +10 -10
  74. package/dist/_chunks/{sv-BGNQ5gX6.js.map → sv-BSGEJ-8B.js.map} +1 -1
  75. package/dist/_chunks/{tr-B2NEu6Gy.js → tr-CTpgUtw6.js} +14 -14
  76. package/dist/_chunks/{tr-B2NEu6Gy.js.map → tr-CTpgUtw6.js.map} +1 -1
  77. package/dist/_chunks/{zh-CN-DClT1wDk.js → zh-CN-BgM0Io2O.js} +22 -22
  78. package/dist/_chunks/{zh-CN-DClT1wDk.js.map → zh-CN-BgM0Io2O.js.map} +1 -1
  79. package/dist/agent-catalog.json +101 -2
  80. package/dist/agent-i18n/en.json +8 -2
  81. package/dist/components/_shared/calendar-class-names.d.ts +5 -0
  82. package/dist/components/_shared/calendar-class-names.d.ts.map +1 -1
  83. package/dist/components/_shared/date-picker-variants.d.ts +23 -1
  84. package/dist/components/_shared/date-picker-variants.d.ts.map +1 -1
  85. package/dist/components/_shared/index.d.ts +2 -2
  86. package/dist/components/_shared/index.d.ts.map +1 -1
  87. package/dist/components/appointment-timeline/index.js +1 -1
  88. package/dist/components/booking/index.js +1 -1
  89. package/dist/components/chart/chart.agent.d.ts.map +1 -1
  90. package/dist/components/chart/chart.d.ts +20 -0
  91. package/dist/components/chart/chart.d.ts.map +1 -1
  92. package/dist/components/chart/index.js +1 -1
  93. package/dist/components/cycle-calculator/index.js +1 -1
  94. package/dist/components/data-table/filters/date-range-filter.d.ts +13 -0
  95. package/dist/components/data-table/filters/date-range-filter.d.ts.map +1 -1
  96. package/dist/components/data-table/index.js +1 -1
  97. package/dist/components/date-picker/date-picker.d.ts.map +1 -1
  98. package/dist/components/date-picker/index.js +1 -1
  99. package/dist/components/date-range-picker/date-range-picker.agent.d.ts.map +1 -1
  100. package/dist/components/date-range-picker/date-range-picker.d.ts +91 -1
  101. package/dist/components/date-range-picker/date-range-picker.d.ts.map +1 -1
  102. package/dist/components/date-range-picker/index.d.ts +1 -1
  103. package/dist/components/date-range-picker/index.d.ts.map +1 -1
  104. package/dist/components/date-range-picker/index.js +1 -1
  105. package/dist/components/date-time-picker/index.js +1 -1
  106. package/dist/components/due-date-calculator/index.js +2 -2
  107. package/dist/components/gestational-age-calculator/index.js +1 -1
  108. package/dist/components/hcg-doubling/index.js +1 -1
  109. package/dist/components/patient-details/index.js +1 -1
  110. package/dist/components/patient-table/index.js +1 -1
  111. package/dist/components/pregnancy-dating/index.js +1 -1
  112. package/dist/components/radiograph-panel/index.js +1 -1
  113. package/dist/components/sparkline/index.js +1 -1
  114. package/dist/i18n/locales/ar.d.ts +24 -0
  115. package/dist/i18n/locales/ar.d.ts.map +1 -1
  116. package/dist/i18n/locales/ar.js +24 -0
  117. package/dist/i18n/locales/ar.js.map +1 -1
  118. package/dist/i18n/locales/de.d.ts +24 -0
  119. package/dist/i18n/locales/de.d.ts.map +1 -1
  120. package/dist/i18n/locales/de.js +24 -0
  121. package/dist/i18n/locales/de.js.map +1 -1
  122. package/dist/i18n/locales/el.d.ts +24 -0
  123. package/dist/i18n/locales/el.d.ts.map +1 -1
  124. package/dist/i18n/locales/el.js +24 -0
  125. package/dist/i18n/locales/el.js.map +1 -1
  126. package/dist/i18n/locales/en.d.ts +24 -0
  127. package/dist/i18n/locales/en.d.ts.map +1 -1
  128. package/dist/i18n/locales/en.js +24 -0
  129. package/dist/i18n/locales/en.js.map +1 -1
  130. package/dist/i18n/locales/es.d.ts +24 -0
  131. package/dist/i18n/locales/es.d.ts.map +1 -1
  132. package/dist/i18n/locales/es.js +24 -0
  133. package/dist/i18n/locales/es.js.map +1 -1
  134. package/dist/i18n/locales/fr.d.ts +24 -0
  135. package/dist/i18n/locales/fr.d.ts.map +1 -1
  136. package/dist/i18n/locales/fr.js +24 -0
  137. package/dist/i18n/locales/fr.js.map +1 -1
  138. package/dist/i18n/locales/hi.d.ts +24 -0
  139. package/dist/i18n/locales/hi.d.ts.map +1 -1
  140. package/dist/i18n/locales/hi.js +24 -0
  141. package/dist/i18n/locales/hi.js.map +1 -1
  142. package/dist/i18n/locales/it.d.ts +24 -0
  143. package/dist/i18n/locales/it.d.ts.map +1 -1
  144. package/dist/i18n/locales/it.js +24 -0
  145. package/dist/i18n/locales/it.js.map +1 -1
  146. package/dist/i18n/locales/ja.d.ts +24 -0
  147. package/dist/i18n/locales/ja.d.ts.map +1 -1
  148. package/dist/i18n/locales/ja.js +24 -0
  149. package/dist/i18n/locales/ja.js.map +1 -1
  150. package/dist/i18n/locales/nl.d.ts +24 -0
  151. package/dist/i18n/locales/nl.d.ts.map +1 -1
  152. package/dist/i18n/locales/nl.js +24 -0
  153. package/dist/i18n/locales/nl.js.map +1 -1
  154. package/dist/i18n/locales/pl.d.ts +24 -0
  155. package/dist/i18n/locales/pl.d.ts.map +1 -1
  156. package/dist/i18n/locales/pl.js +24 -0
  157. package/dist/i18n/locales/pl.js.map +1 -1
  158. package/dist/i18n/locales/pt.d.ts +24 -0
  159. package/dist/i18n/locales/pt.d.ts.map +1 -1
  160. package/dist/i18n/locales/pt.js +24 -0
  161. package/dist/i18n/locales/pt.js.map +1 -1
  162. package/dist/i18n/locales/ro.d.ts +24 -0
  163. package/dist/i18n/locales/ro.d.ts.map +1 -1
  164. package/dist/i18n/locales/ro.js +24 -0
  165. package/dist/i18n/locales/ro.js.map +1 -1
  166. package/dist/i18n/locales/ru.d.ts +24 -0
  167. package/dist/i18n/locales/ru.d.ts.map +1 -1
  168. package/dist/i18n/locales/ru.js +24 -0
  169. package/dist/i18n/locales/ru.js.map +1 -1
  170. package/dist/i18n/locales/sq.d.ts +24 -0
  171. package/dist/i18n/locales/sq.d.ts.map +1 -1
  172. package/dist/i18n/locales/sq.js +24 -0
  173. package/dist/i18n/locales/sq.js.map +1 -1
  174. package/dist/i18n/locales/sv.d.ts +24 -0
  175. package/dist/i18n/locales/sv.d.ts.map +1 -1
  176. package/dist/i18n/locales/sv.js +24 -0
  177. package/dist/i18n/locales/sv.js.map +1 -1
  178. package/dist/i18n/locales/tr.d.ts +24 -0
  179. package/dist/i18n/locales/tr.d.ts.map +1 -1
  180. package/dist/i18n/locales/tr.js +24 -0
  181. package/dist/i18n/locales/tr.js.map +1 -1
  182. package/dist/i18n/locales/zh.d.ts +24 -0
  183. package/dist/i18n/locales/zh.d.ts.map +1 -1
  184. package/dist/i18n/locales/zh.js +24 -0
  185. package/dist/i18n/locales/zh.js.map +1 -1
  186. package/dist/index.js +17 -17
  187. package/dist/locales/ar.json +24 -0
  188. package/dist/locales/de.json +24 -0
  189. package/dist/locales/el.json +24 -0
  190. package/dist/locales/en.json +24 -0
  191. package/dist/locales/es.json +24 -0
  192. package/dist/locales/fr.json +24 -0
  193. package/dist/locales/hi.json +24 -0
  194. package/dist/locales/it.json +24 -0
  195. package/dist/locales/ja.json +24 -0
  196. package/dist/locales/nl.json +24 -0
  197. package/dist/locales/pl.json +24 -0
  198. package/dist/locales/pt.json +24 -0
  199. package/dist/locales/ro.json +24 -0
  200. package/dist/locales/ru.json +24 -0
  201. package/dist/locales/sq.json +24 -0
  202. package/dist/locales/sv.json +24 -0
  203. package/dist/locales/tr.json +24 -0
  204. package/dist/locales/zh.json +24 -0
  205. package/dist/tokens/apexcharts-theme.d.ts +36 -1
  206. package/dist/tokens/apexcharts-theme.d.ts.map +1 -1
  207. package/dist/tokens.css +1 -1
  208. package/package.json +1 -1
  209. package/dist/_chunks/apexcharts-theme-BJigns_V.js +0 -53
  210. package/dist/_chunks/apexcharts-theme-BJigns_V.js.map +0 -1
  211. package/dist/_chunks/chart-CNaLgvx4.js.map +0 -1
  212. package/dist/_chunks/date-picker-ffmyjvlI.js +0 -1845
  213. package/dist/_chunks/date-picker-ffmyjvlI.js.map +0 -1
  214. package/dist/_chunks/date-range-picker-DSOH50-f.js +0 -325
  215. package/dist/_chunks/date-range-picker-DSOH50-f.js.map +0 -1
  216. package/dist/_chunks/link-cell-renderer-BzITwSXq.js.map +0 -1
  217. package/dist/_chunks/subDays-fEHRx4hg.js +0 -8
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "packageVersion": "0.89.0",
3
+ "packageVersion": "0.94.0",
4
4
  "components": [
5
5
  {
6
6
  "kind": "component",
@@ -1835,6 +1835,14 @@
1835
1835
  "items": {
1836
1836
  "type": "number"
1837
1837
  }
1838
+ },
1839
+ "role": {
1840
+ "type": "string",
1841
+ "enum": [
1842
+ "primary",
1843
+ "compare"
1844
+ ],
1845
+ "description": "Optional. 'compare' renders this series as a secondary, colour-blind-safe overlay (e.g. the previous period) — dashed grey for line/area, hatched grey for bar. Omit for a normal primary series."
1838
1846
  }
1839
1847
  },
1840
1848
  "required": [
@@ -3463,7 +3471,10 @@
3463
3471
  "capabilities": [
3464
3472
  "range_pick",
3465
3473
  "open",
3466
- "close"
3474
+ "close",
3475
+ "confirm",
3476
+ "dismiss",
3477
+ "set_value"
3467
3478
  ],
3468
3479
  "state": [
3469
3480
  {
@@ -3477,6 +3488,18 @@
3477
3488
  "type": "boolean",
3478
3489
  "description": "Whether the range calendar popover is open.",
3479
3490
  "descriptionKey": "ui.agent.dateRangePicker.state.isOpen"
3491
+ },
3492
+ {
3493
+ "name": "granularity",
3494
+ "type": "'day' | 'week' | 'month' | 'quarter' | null",
3495
+ "description": "Selected time granularity (Range Cockpit), or null when the control is disabled.",
3496
+ "descriptionKey": "ui.agent.dateRangePicker.state.granularity"
3497
+ },
3498
+ {
3499
+ "name": "compareRange",
3500
+ "type": "{ from: iso-date | null, to: iso-date | null } | null",
3501
+ "description": "Resolved comparison period when compare-to-previous-period is on, else null.",
3502
+ "descriptionKey": "ui.agent.dateRangePicker.state.compareRange"
3480
3503
  }
3481
3504
  ],
3482
3505
  "actions": [
@@ -3536,6 +3559,82 @@
3536
3559
  "idempotent": true,
3537
3560
  "description": "Close the range calendar popover.",
3538
3561
  "descriptionKey": "ui.agent.dateRangePicker.actions.close"
3562
+ },
3563
+ {
3564
+ "name": "apply",
3565
+ "safety": "write",
3566
+ "idempotent": true,
3567
+ "description": "Commit the current draft range (as the Apply / Done button).",
3568
+ "descriptionKey": "ui.agent.dateRangePicker.actions.apply"
3569
+ },
3570
+ {
3571
+ "name": "cancel",
3572
+ "safety": "read",
3573
+ "idempotent": true,
3574
+ "description": "Discard the draft and close without committing.",
3575
+ "descriptionKey": "ui.agent.dateRangePicker.actions.cancel"
3576
+ },
3577
+ {
3578
+ "name": "set_granularity",
3579
+ "safety": "write",
3580
+ "argsType": "{ granularity: 'day' | 'week' | 'month' | 'quarter' }",
3581
+ "argsSchema": {
3582
+ "type": "object",
3583
+ "properties": {
3584
+ "granularity": {
3585
+ "type": "string",
3586
+ "enum": [
3587
+ "day",
3588
+ "week",
3589
+ "month",
3590
+ "quarter"
3591
+ ],
3592
+ "description": "Time grain to query the range at."
3593
+ }
3594
+ },
3595
+ "required": [
3596
+ "granularity"
3597
+ ]
3598
+ },
3599
+ "idempotent": true,
3600
+ "examples": [
3601
+ {
3602
+ "args": {
3603
+ "granularity": "month"
3604
+ },
3605
+ "note": "Query by month."
3606
+ }
3607
+ ],
3608
+ "description": "Set the time granularity (Range Cockpit).",
3609
+ "descriptionKey": "ui.agent.dateRangePicker.actions.setGranularity"
3610
+ },
3611
+ {
3612
+ "name": "toggle_compare",
3613
+ "safety": "write",
3614
+ "argsType": "{ enabled: boolean }",
3615
+ "argsSchema": {
3616
+ "type": "object",
3617
+ "properties": {
3618
+ "enabled": {
3619
+ "type": "boolean",
3620
+ "description": "Whether to compare against the previous period."
3621
+ }
3622
+ },
3623
+ "required": [
3624
+ "enabled"
3625
+ ]
3626
+ },
3627
+ "idempotent": true,
3628
+ "examples": [
3629
+ {
3630
+ "args": {
3631
+ "enabled": true
3632
+ },
3633
+ "note": "Enable period comparison."
3634
+ }
3635
+ ],
3636
+ "description": "Turn compare-to-previous-period on or off (Range Cockpit).",
3637
+ "descriptionKey": "ui.agent.dateRangePicker.actions.toggleCompare"
3539
3638
  }
3540
3639
  ],
3541
3640
  "domHooks": {
@@ -385,13 +385,19 @@
385
385
  "dateRangePicker": {
386
386
  "state": {
387
387
  "range": "Currently-selected ISO date range endpoints, each possibly null.",
388
- "isOpen": "Whether the range calendar popover is open."
388
+ "isOpen": "Whether the range calendar popover is open.",
389
+ "granularity": "Selected time granularity (Range Cockpit), or null when the control is disabled.",
390
+ "compareRange": "Resolved comparison period when compare-to-previous-period is on, else null."
389
391
  },
390
392
  "actions": {
391
393
  "setRange": "Replace the selected range with the given ISO endpoints.",
392
394
  "clear": "Clear the selected range.",
393
395
  "open": "Open the range calendar popover.",
394
- "close": "Close the range calendar popover."
396
+ "close": "Close the range calendar popover.",
397
+ "apply": "Commit the current draft range (as the Apply / Done button).",
398
+ "cancel": "Discard the draft and close without committing.",
399
+ "setGranularity": "Set the time granularity (Range Cockpit).",
400
+ "toggleCompare": "Turn compare-to-previous-period on or off (Range Cockpit)."
395
401
  }
396
402
  },
397
403
  "dateTimePicker": {
@@ -5,4 +5,9 @@ import type { ClassNames } from 'react-day-picker';
5
5
  * keys at the type level.
6
6
  */
7
7
  export declare const calendarClassNames: Partial<ClassNames>;
8
+ export declare const calendarCompareModifierClassNames: {
9
+ compareStart: string;
10
+ compareMiddle: string;
11
+ compareEnd: string;
12
+ };
8
13
  //# sourceMappingURL=calendar-class-names.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"calendar-class-names.d.ts","sourceRoot":"","sources":["../../../src/components/_shared/calendar-class-names.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAoFnD;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,EAAE,OAAO,CAAC,UAAU,CAiDlD,CAAC"}
1
+ {"version":3,"file":"calendar-class-names.d.ts","sourceRoot":"","sources":["../../../src/components/_shared/calendar-class-names.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAiInD;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,EAAE,OAAO,CAAC,UAAU,CA8DlD,CAAC;AAeF,eAAO,MAAM,iCAAiC;;;;CAI7C,CAAC"}
@@ -3,9 +3,31 @@ export declare const triggerVariants: (props?: ({
3
3
  tone?: "default" | "error" | null | undefined;
4
4
  chrome?: "button" | "input" | null | undefined;
5
5
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
+ /**
7
+ * A small editable endpoint field for the DateRangePicker header (Start / End).
8
+ * `state` is a single enum so exactly one border rule wins: `active` marks the
9
+ * endpoint the next calendar click will set; `error` marks an unparseable typed
10
+ * value. Shares the input fill + halo with the other form fields.
11
+ */
12
+ export declare const rangeFieldVariants: (props?: ({
13
+ state?: "default" | "error" | "active" | null | undefined;
14
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
15
+ /** Ghost / primary footer actions (Clear · Cancel · Done · Apply). */
16
+ export declare const rangeActionVariants: (props?: ({
17
+ intent?: "primary" | "ghost" | null | undefined;
18
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
19
+ /** The granularity segmented control shell — a Radix RadioGroup styled as a
20
+ * single-select segmented control (Day / Week / Month / Quarter). */
21
+ export declare const granularityGroupVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
22
+ /** One segment. `data-[state=checked]` (Radix RadioGroupItem) fills it. */
23
+ export declare const granularityItemVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
24
+ /** Sub-heading above a group of presets in the grouped rail. */
25
+ export declare const presetGroupHeadingVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
6
26
  export declare const calendarIconVariants: (props?: ({
7
27
  size?: "sm" | "md" | "lg" | null | undefined;
8
28
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
9
29
  export declare const popoverContentVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
10
- export declare const presetButtonVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
30
+ export declare const presetButtonVariants: (props?: ({
31
+ active?: boolean | null | undefined;
32
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
11
33
  //# sourceMappingURL=date-picker-variants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"date-picker-variants.d.ts","sourceRoot":"","sources":["../../../src/components/_shared/date-picker-variants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe;;;;8EA6C3B,CAAC;AAEF,eAAO,MAAM,oBAAoB;;8EAYhC,CAAC;AAEF,eAAO,MAAM,sBAAsB,oFAMlC,CAAC;AAEF,eAAO,MAAM,oBAAoB,oFAShC,CAAC"}
1
+ {"version":3,"file":"date-picker-variants.d.ts","sourceRoot":"","sources":["../../../src/components/_shared/date-picker-variants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe;;;;8EA6C3B,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB;;8EAoB9B,CAAC;AAEF,sEAAsE;AACtE,eAAO,MAAM,mBAAmB;;8EAoB/B,CAAC;AAMF;sEACsE;AACtE,eAAO,MAAM,wBAAwB,oFAEpC,CAAC;AAEF,2EAA2E;AAC3E,eAAO,MAAM,uBAAuB,oFAcnC,CAAC;AAEF,gEAAgE;AAChE,eAAO,MAAM,0BAA0B,oFAEtC,CAAC;AAEF,eAAO,MAAM,oBAAoB;;8EAYhC,CAAC;AAEF,eAAO,MAAM,sBAAsB,oFAMlC,CAAC;AAEF,eAAO,MAAM,oBAAoB;;8EA2BhC,CAAC"}
@@ -17,8 +17,8 @@ export { INPUT_SURFACE_CHROME, INPUT_SURFACE_TONE, INPUT_SURFACE_HEIGHT, INPUT_S
17
17
  export { getDateFnsLocale, getShortDateFormat, useDateFnsLocale, } from './date-locale';
18
18
  export { buildDisabledMatcher } from './date-utils';
19
19
  export { CalendarChevron } from './calendar-chevron';
20
- export { calendarClassNames } from './calendar-class-names';
21
- export { triggerVariants, calendarIconVariants, popoverContentVariants, presetButtonVariants, } from './date-picker-variants';
20
+ export { calendarClassNames, calendarCompareModifierClassNames, } from './calendar-class-names';
21
+ export { triggerVariants, calendarIconVariants, popoverContentVariants, presetButtonVariants, rangeFieldVariants, rangeActionVariants, granularityGroupVariants, granularityItemVariants, presetGroupHeadingVariants, } from './date-picker-variants';
22
22
  export type { OptionShape } from './option';
23
23
  export type { TimeValue } from './time';
24
24
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/_shared/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MA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kB,EAClB,mBAAmB,EACnB,YAAY,EACZ,KAAK,iBAAiB,EACtB,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,mBAAmB,GACzB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,KAAK,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC1E,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EACL,YAAY,EACZ,oBAAoB,EACpB,KAAK,SAAS,GACf,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,oBAAoB,EACpB,kBAAkB,EAClB,oBAAoB,EACpB,kBAAkB,EAClB,uBAAuB,EACvB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,GACtB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EACL,eAAe,EACf,oBAAoB,EACpB,sBAAsB,EACtB,oBAAoB,GACrB,MAAM,wBAAwB,CAAC;AAChC,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/_shared/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,C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QAAQ,CAAC"}
@@ -1,4 +1,4 @@
1
- import { A as i, a as t } from "../../_chunks/appointment-timeline-CwpbQGC1.js";
1
+ import { A as i, a as t } from "../../_chunks/appointment-timeline-BB-c1LeR.js";
2
2
  export {
3
3
  i as AppointmentTimeline,
4
4
  t as appointmentTimelineAgent
@@ -1,4 +1,4 @@
1
- import { B as A, C as R, O as a, b as s } from "../../_chunks/booking-DEwmDprH.js";
1
+ import { B as A, C as R, O as a, b as s } from "../../_chunks/booking-BSpSMmJ2.js";
2
2
  export {
3
3
  A as Booking,
4
4
  R as CONFIRMATION_CHANNEL_ORDER,
@@ -1 +1 @@
1
- {"version":3,"file":"chart.agent.d.ts","sourceRoot":"","sources":["../../../src/components/chart/chart.agent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,eAAO,MAAM,UAAU,EAAE,YAAY,CAAC,WAAW,CA8HhD,CAAC"}
1
+ {"version":3,"file":"chart.agent.d.ts","sourceRoot":"","sources":["../../../src/components/chart/chart.agent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,eAAO,MAAM,UAAU,EAAE,YAAY,CAAC,WAAW,CAoIhD,CAAC"}
@@ -6,6 +6,26 @@ export type ChartType = 'line' | 'bar' | 'pie' | 'donut' | 'area' | 'radialBar';
6
6
  export interface ChartSeries {
7
7
  name: string;
8
8
  data: number[];
9
+ /**
10
+ * Marks this series as a secondary "compare" overlay — e.g. the previous
11
+ * period in a current-vs-previous financial view. Rendered visually
12
+ * subordinate and colour-blind-safe, distinguished from primary series by
13
+ * BOTH a non-colour cue AND a muted hue (never colour alone):
14
+ * - line / area: DASHED stroke in a resolved neutral grey (the chart echo
15
+ * of the calendar compare band's dashed block-end rule).
16
+ * - bar: HATCHED (slantedLines) grey fill — bars have a zero-width stroke
17
+ * and cannot dash, so the non-colour cue lives in the fill texture.
18
+ * Only meaningful on axis types (line / area / bar); it is structurally
19
+ * impossible on pie / donut / radialBar (their `series` is `number[]`, which
20
+ * cannot carry this field), so the axis-only invariant is enforced by the
21
+ * type system with no runtime guard. On an axis→slice type switch the compare
22
+ * series are dropped from the slice (a previous-period total is not a slice of
23
+ * the current whole; DEV warn). Omit (or `'primary'`) to render normally — a
24
+ * chart with NO compare series emits byte-identical ApexCharts options to
25
+ * before this field existed.
26
+ * @default 'primary'
27
+ */
28
+ role?: 'primary' | 'compare';
9
29
  }
10
30
  /** Bar orientation. `'horizontal'` renders a ranking sideways. Default `'vertical'`. */
11
31
  export type ChartOrientation = 'vertical' | 'horizontal';
@@ -1 +1 @@
1
- {"version":3,"file":"chart.d.ts","sourceRoot":"","sources":["../../../src/components/chart/chart.tsx"],"names":[],"mappings":"AA2BA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAuBlE,QAAA,MAAM,aAAa;;8EAYjB,CAAC;AAMH,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,KAAK,GAAG,KAAK,GAAG,OAAO,GAAG,MAAM,GAAG,WAAW,CAAC;AAEhF,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,EAAE,CAAC;CAChB;AAED,wFAAwF;AACxF,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG,YAAY,CAAC;AAEzD,4DAA4D;AAC5D,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,UAAU,GAAG,UAAU,CAAC;AAE5D,MAAM,WAAW,UAAW,SAAQ,YAAY,CAAC,OAAO,aAAa,CAAC;IACpE,8DAA8D;IAC9D,KAAK,EAAE,MAAM,CAAC;IACd,kFAAkF;IAClF,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,yBAAyB;IACzB,I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I,EAAE,SAAS,KAAK,OAAO,CAAC;IACtC,uFAAuF;IACvF,YAAY,EAAE,MAAM;QAClB,YAAY,EAAE,SAAS,CAAC;QACxB,aAAa,EAAE,SAAS,CAAC;QACzB,cAAc,EAAE,SAAS,EAAE,CAAC;KAC7B,CAAC;CACH;AAmFD,eAAO,MAAM,KAAK,oGA6rBjB,CAAC;AAQF,OAAO,EAAE,aAAa,EAAE,CAAC"}
@@ -1,4 +1,4 @@
1
- import { C as t, c as s, a as c } from "../../_chunks/chart-CNaLgvx4.js";
1
+ import { C as t, c as s, a as c } from "../../_chunks/chart-DqxVCm1I.js";
2
2
  export {
3
3
  t as Chart,
4
4
  s as chartAgent,
@@ -1,4 +1,4 @@
1
- import { C as e, L as l, p as r } from "../../_chunks/cycle-calculator-DXSNIWFk.js";
1
+ import { C as e, L as l, p as r } from "../../_chunks/cycle-calculator-DNvvr0bP.js";
2
2
  export {
3
3
  e as CycleCalculator,
4
4
  l as LUTEAL_PHASE_DAYS,
@@ -19,6 +19,19 @@ export interface DateRangeFilterModel {
19
19
  dateFrom: string | null;
20
20
  dateTo: string | null;
21
21
  }
22
+ /**
23
+ * `filterParams` a colDef may pass to `DateRangeFilter` /
24
+ * `DateRangeFloatingFilter`.
25
+ *
26
+ * `commitMode` is forwarded to the wrapped `DateRangePicker`. Leave it unset
27
+ * (picker default `'auto'`, commit-on-complete-range) for cheap client-side row
28
+ * models; set `'apply'` for SERVER-side row models so each range edit defers to
29
+ * one Apply and fires a single datasource round-trip instead of one per commit.
30
+ */
31
+ export interface DateRangeFilterParams {
32
+ placeholder?: string;
33
+ commitMode?: 'auto' | 'apply';
34
+ }
22
35
  export declare function DateRangeFilter(props: CustomFilterProps<unknown, unknown, DateRangeFilterModel>): import("react/jsx-runtime").JSX.Element;
23
36
  /**
24
37
  * Floating-filter companion for `DateRangeFilter`.
@@ -1 +1 @@
1
- {"version":3,"file":"date-range-filter.d.ts","sourceRoot":"","sources":["../../../../src/components/data-table/filters/date-range-filter.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,iBAAiB,EACjB,yBAAyB,EAC1B,MAAM,eAAe,CAAC;AAEvB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAIjD;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,SAAS,CAAC;IAChB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAaD,wBAAgB,eAAe,CAC7B,KAAK,EAAE,iBAAiB,CAAC,OAAO,EAAE,OAAO,EAAE,oBAAoB,CAAC,2CAgEjE;AAED;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,yBAAyB,CAC9B,OAAO,EACP,OAAO,EACP,OAAO,EACP,oBAAoB,CACrB,2CA+CF"}
1
+ {"version":3,"file":"date-range-filter.d.ts","sourceRoot":"","sources":["../../../../src/components/data-table/filters/date-range-filter.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,iBAAiB,EACjB,yBAAyB,EAC1B,MAAM,eAAe,CAAC;AAEvB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAIjD;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,SAAS,CAAC;IAChB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,qBAAqB;IACpC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CAC/B;AAaD,wBAAgB,eAAe,CAC7B,KAAK,EAAE,iBAAiB,CAAC,OAAO,EAAE,OAAO,EAAE,oBAAoB,CAAC,2CA0EjE;AAED;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,yBAAyB,CAC9B,OAAO,EACP,OAAO,EACP,OAAO,EACP,oBAAoB,CACrB,2CAgDF"}
@@ -1,6 +1,6 @@
1
1
  import { A as r, D as l, T as t, a as s, b as n, c as o, d, e as i, f as C } from "../../_chunks/actions-cell-renderer-DaL80uqL.js";
2
2
  import { B as T, C as F, E as g, a as b, R as u, T as c, b as m, r as f, u as x } from "../../_chunks/editable-currency-cell-renderer-Dus_sBvX.js";
3
- import { C as p, D as h, a as y, b as E, I as S, L as A, N as L, c as N, S as B, d as I, e as P, T as U, f as W, g as k, U as v } from "../../_chunks/link-cell-renderer-BzITwSXq.js";
3
+ import { C as p, D as h, a as y, b as E, I as S, L as A, N as L, c as N, S as B, d as I, e as P, T as U, f as W, g as k, U as v } from "../../_chunks/link-cell-renderer-_LDZhY4r.js";
4
4
  export {
5
5
  r as ActionsCellRenderer,
6
6
  T as BalanceCellRenderer,
@@ -1 +1 @@
1
- {"version":3,"file":"date-picker.d.ts","sourceRoot":"","sources":["../../../src/components/date-picker/date-picker.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAc7D,OAAO,EAML,eAAe,EAIhB,MAAM,YAAY,CAAC;AAQpB,wFAAwF;AACxF,MAAM,WAAW,gBAAgB;IAC/B,mDAAmD;IACnD,QAAQ,EAAE,MAAM,IAAI,GAAG,SAAS,CAAC;IACjC,6BAA6B;IAC7B,QAAQ,EAAE,CAAC,IAAI,EAAE,IAAI,GAAG,SAAS,KAAK,IAAI,CAAC;IAC3C,+BAA+B;IAC/B,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,mCAAmC;IACnC,MAAM,EAAE,MAAM,OAAO,CAAC;IACtB,iCAAiC;IACjC,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,kCAAkC;IAClC,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB;AAMD,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,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AI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,sBAAsB;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,wBAAwB;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,8BAA8B;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mBAAmB;IACnB,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAMD,eAAO,MAAM,UAAU,4GAkRtB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { D as r, d as t } from "../../_chunks/date-picker-ffmyjvlI.js";
1
+ import { D as r, d as t } from "../../_chunks/date-picker-BP_W6VtE.js";
2
2
  export {
3
3
  r as DatePicker,
4
4
  t as datePickerAgent
@@ -1 +1 @@
1
- {"version":3,"file":"date-range-picker.agent.d.ts","sourceRoot":"","sources":["../../../src/components/date-range-picker/date-range-picker.agent.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAEjE,eAAO,MAAM,oBAAoB,EAAE,YAAY,CAAC,qBAAqB,CAkGpE,CAAC"}
1
+ {"version":3,"file":"date-range-picker.agent.d.ts","sourceRoot":"","sources":["../../../src/components/date-range-picker/date-range-picker.agent.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAEjE,eAAO,MAAM,oBAAoB,EAAE,YAAY,CAAC,qBAAqB,CAmMpE,CAAC"}
@@ -6,11 +6,22 @@ export interface DateRangePreset {
6
6
  from: Date;
7
7
  to: Date;
8
8
  };
9
+ /** Optional group name — presets sharing a group render under one sub-heading. */
10
+ group?: string;
9
11
  }
10
12
  export interface DateRangeValue {
11
13
  from?: Date;
12
14
  to?: Date;
13
15
  }
16
+ /** Time grain the range is queried at (Range Cockpit). */
17
+ export type DateRangeGranularity = 'day' | 'week' | 'month' | 'quarter';
18
+ /** How the comparison period is derived from the selected range. */
19
+ export type DateRangeCompareMode = 'previous' | 'lastYear';
20
+ /** Extra data emitted alongside a committed range (Range Cockpit). */
21
+ export interface DateRangeApplyMeta {
22
+ granularity?: DateRangeGranularity;
23
+ compareRange?: DateRangeValue;
24
+ }
14
25
  /** Curated imperative handle exposed via `ref` — also consumed by the agent adapter. */
15
26
  export interface DateRangePickerHandle {
16
27
  /** Get the current selected range. */
@@ -25,14 +36,93 @@ export interface DateRangePickerHandle {
25
36
  open: () => void;
26
37
  /** Close the range calendar popover. */
27
38
  close: () => void;
39
+ /** Current granularity, or undefined when the control is disabled. */
40
+ getGranularity: () => DateRangeGranularity | undefined;
41
+ /** Set the time granularity. */
42
+ setGranularity: (granularity: DateRangeGranularity) => void;
43
+ /** Current comparison period, or undefined when compare is off/incomplete. */
44
+ getCompareRange: () => DateRangeValue | undefined;
45
+ /** Turn compare-to-previous-period on or off. */
46
+ setCompare: (enabled: boolean) => void;
47
+ /** Label of the preset matching the committed range, or undefined for a custom range. */
48
+ getActivePreset: () => string | undefined;
49
+ /** Which endpoint the next calendar click will set, or null when the draft is complete. */
50
+ getActiveEnd: () => 'start' | 'end' | null;
51
+ /** Commit the current draft (as the Apply / Done button does). */
52
+ apply: () => void;
53
+ /** Discard the draft and close (as Cancel / Escape does). */
54
+ cancel: () => void;
28
55
  }
29
56
  export interface DateRangePickerProps extends Pick<VariantProps<typeof triggerVariants>, 'size'> {
30
57
  /** Current range — controlled. */
31
58
  value?: DateRangeValue;
32
59
  /** Default range — uncontrolled. */
33
60
  defaultValue?: DateRangeValue;
34
- /** Called when the range changes. */
61
+ /**
62
+ * Called when the range is committed. In `commitMode="auto"` (default) this
63
+ * fires the instant the range becomes COMPLETE (both ends) — never on a
64
+ * start-only partial. In `commitMode="apply"` it fires once, on Apply.
65
+ */
35
66
  onChange?: (range: DateRangeValue) => void;
67
+ /**
68
+ * Commit model.
69
+ * - `'auto'` (default): manual selection updates a popover-local draft and
70
+ * commits (`onChange`) the moment both ends exist; the popover stays open so
71
+ * the user can refine, and the footer's Done button dismisses it. A preset
72
+ * commits and closes. Right for cheap client-side filters.
73
+ * - `'apply'`: every edit (presets, calendar, typed fields) mutates the draft
74
+ * only; nothing commits until the Apply button. Escape / outside-click /
75
+ * Cancel revert to the last committed value. Right for expensive queries
76
+ * that must not fire on a half-picked range.
77
+ */
78
+ commitMode?: 'auto' | 'apply';
79
+ /**
80
+ * Called when the range is committed by a decisive action that CLOSES the
81
+ * popover — a preset click, or the Apply button. Completing a range on the
82
+ * calendar in `'auto'` mode fires `onChange` but keeps the popover open, so it
83
+ * does not fire `onApply`. The optional second argument carries the Range
84
+ * Cockpit metadata (granularity + resolved comparison range) when enabled.
85
+ */
86
+ onApply?: (range: DateRangeValue, meta?: DateRangeApplyMeta) => void;
87
+ /** Called when an `'apply'`-mode edit is cancelled (Cancel / Escape / dismiss). */
88
+ onCancel?: () => void;
89
+ /** Show the footer Clear action. Defaults to `true`. */
90
+ showClear?: boolean;
91
+ /** Number of month grids to render. Defaults to `2`. */
92
+ numberOfMonths?: number;
93
+ /**
94
+ * Range Cockpit — granularity. Passing `granularity` (controlled) or
95
+ * `defaultGranularity` (uncontrolled) shows a Day / Week / Month / Quarter
96
+ * segmented control in the header and names the queried grain.
97
+ */
98
+ granularity?: DateRangeGranularity;
99
+ defaultGranularity?: DateRangeGranularity;
100
+ onGranularityChange?: (granularity: DateRangeGranularity) => void;
101
+ /**
102
+ * Restrict the granularity segmented control to a subset of
103
+ * `'day' | 'week' | 'month' | 'quarter'` — e.g. `['month', 'quarter']` for
104
+ * data with a coarser grain. Options always render in canonical
105
+ * Day → Quarter order regardless of the array order passed. Defaults to all
106
+ * four (an empty array is treated as all four). Only meaningful when the
107
+ * Cockpit granularity control is enabled (via `granularity` /
108
+ * `defaultGranularity`) — it does not enable the control on its own. A
109
+ * `defaultGranularity` or controlled `granularity` outside the allowed set is
110
+ * clamped to the first allowed option.
111
+ */
112
+ allowedGranularities?: DateRangeGranularity[];
113
+ /**
114
+ * Range Cockpit — compare. When `true`, a compare-to-previous-period toggle
115
+ * appears; enabling it overlays a neutral secondary band on the calendar and
116
+ * (on Apply) reports the resolved comparison range via `onApply` meta and
117
+ * `onCompareChange`.
118
+ */
119
+ compare?: boolean;
120
+ /** Start with compare enabled (only meaningful when `compare` is set). */
121
+ defaultCompare?: boolean;
122
+ defaultCompareMode?: DateRangeCompareMode;
123
+ onCompareChange?: (enabled: boolean, compareRange?: DateRangeValue) => void;
124
+ /** Week start (0 = Sunday). Defaults to the locale's first day. */
125
+ weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
36
126
  /** Minimum selectable date. */
37
127
  minDate?: Date;
38
128
  /** Maximum selectable date. */
@@ -1 +1 @@
1
- {"version":3,"file":"date-range-picker.d.ts","sourceRoot":"","sources":["../../../src/components/date-range-picker/date-range-picker.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAiB7D,OAAO,EAML,eAAe,EAIhB,MAAM,YAAY,CAAC;AAQpB,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM;QAAE,IAAI,EAAE,IAAI,CAAC;QAAC,EAAE,EAAE,IAAI,CAAA;KAAE,CAAC;CACvC;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,EAAE,CAAC,EAAE,IAAI,CAAC;CACX;AAED,wFAAwF;AACxF,MAAM,WAAW,qBAAqB;IACpC,sCAAsC;IACtC,QAAQ,EAAE,MAAM,cAAc,CAAC;IAC/B,kCAAkC;IAClC,QAAQ,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC;IAC1C,gCAAgC;IAChC,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,mCAAmC;IACnC,MAAM,EAAE,MAAM,OAAO,CAAC;IACtB,uCAAuC;IACvC,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,wCAAwC;IACxC,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB;AAED,MAAM,WAAW,oBAAqB,SAAQ,IAAI,CAChD,YAAY,CAAC,OAAO,eAAe,CAAC,EACpC,MAAM,CACP;IACC,kCAAkC;IAClC,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,oCAAoC;IACpC,YAAY,CAAC,EAAE,cAAc,CAAC;IAC9B,qCAAqC;IACrC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC;IAC3C,+BAA+B;IAC/B,OAAO,CAAC,EAAE,IAAI,CAAC;IACf,+BAA+B;IAC/B,OAAO,CAAC,EAAE,IAAI,CAAC;IACf,qEAAqE;IACrE,OAAO,CAAC,EAAE,eAAe,EAAE,CAAC;IAC5B,+DAA+D;IAC/D,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,sBAAsB;IACtB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IAC5B,sBAAsB;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,wBAAwB;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,8BAA8B;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mBAAmB;IACnB,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAMD,eAAO,MAAM,eAAe,wHA4R3B,CAAC"}
1
+ {"version":3,"file":"date-range-picker.d.ts","sourceRoot":"","sources":["../../../src/components/date-range-picker/date-range-picker.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAyB7D,OAAO,EAOL,eAAe,EAShB,MAAM,YAAY,CAAC;AASpB,M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kB,CAAC,EAAE,oBAAoB,CAAC;IAC1C,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,YAAY,CAAC,EAAE,cAAc,KAAK,IAAI,CAAC;IAC5E,mEAAmE;IACnE,YAAY,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACzC,+BAA+B;IAC/B,OAAO,CAAC,EAAE,IAAI,CAAC;IACf,+BAA+B;IAC/B,OAAO,CAAC,EAAE,IAAI,CAAC;IACf,qEAAqE;IACrE,OAAO,CAAC,EAAE,eAAe,EAAE,CAAC;IAC5B,+DAA+D;IAC/D,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,sBAAsB;IACtB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IAC5B,sBAAsB;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,wBAAwB;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,8BAA8B;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mBAAmB;IACnB,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAwBD,eAAO,MAAM,eAAe,wHA06B3B,CAAC"}
@@ -1,4 +1,4 @@
1
1
  export { DateRangePicker } from './date-range-picker';
2
- export type { DateRangePickerProps, DateRangePreset, DateRangeValue, DateRangePickerHandle, } from './date-range-picker';
2
+ export type { DateRangePickerProps, DateRangePreset, DateRangeValue, DateRangePickerHandle, DateRangeGranularity, DateRangeCompareMode, DateRangeApplyMeta, } from './date-range-picker';
3
3
  export { dateRangePickerAgent } from './date-range-picker.agent';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/date-range-picker/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,YAAY,EACV,oBAAoB,EACpB,eAAe,EACf,cAAc,EACd,qBAAqB,GACtB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/date-range-picker/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,YAAY,EACV,oBAAoB,EACpB,eAAe,EACf,cAAc,EACd,qBAAqB,EACrB,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC"}
@@ -1,4 +1,4 @@
1
- import { D as r, d as t } from "../../_chunks/date-range-picker-DSOH50-f.js";
1
+ import { D as r, d as t } from "../../_chunks/date-range-picker-Cfv4Sr63.js";
2
2
  export {
3
3
  r as DateRangePicker,
4
4
  t as dateRangePickerAgent
@@ -1,4 +1,4 @@
1
- import { D as i, d as r } from "../../_chunks/date-time-picker-BU-j0qj4.js";
1
+ import { D as i, d as r } from "../../_chunks/date-time-picker-695QvBGj.js";
2
2
  export {
3
3
  i as DateTimePicker,
4
4
  r as dateTimePickerAgent
@@ -1,5 +1,5 @@
1
- import { D as e } from "../../_chunks/due-date-calculator-BR_GuqHH.js";
2
- import { C as r, a as o, D, G as _, M as T, T as M, c as E, b as l, g as C, p as A, r as N, d as i, t as n } from "../../_chunks/antenatal-schedule-timeline-UiZQze4P.js";
1
+ import { D as e } from "../../_chunks/due-date-calculator-BEcdoy_E.js";
2
+ import { C as r, a as o, D, G as _, M as T, T as M, c as E, b as l, g as C, p as A, r as N, d as i, t as n } from "../../_chunks/antenatal-schedule-timeline-BMMpi2lb.js";
3
3
  export {
4
4
  r as CRL_DATING_MAX_MM,
5
5
  o as CRL_DATING_MIN_MM,
@@ -1,4 +1,4 @@
1
- import { G as t } from "../../_chunks/gestational-age-calculator-DBIcxfjP.js";
1
+ import { G as t } from "../../_chunks/gestational-age-calculator-CuGkVqKp.js";
2
2
  export {
3
3
  t as GestationalAgeCalculator
4
4
  };
@@ -1,4 +1,4 @@
1
- import { H, M as g, a as o } from "../../_chunks/hcg-doubling-BgCkds8R.js";
1
+ import { H, M as g, a as o } from "../../_chunks/hcg-doubling-fZ6qQN08.js";
2
2
  export {
3
3
  H as HcgDoubling,
4
4
  g as MINIMAL_48H_RISE_PERCENT,
@@ -1,4 +1,4 @@
1
- import { P as e, p as i } from "../../_chunks/patient-details-Dggsz-ki.js";
1
+ import { P as e, p as i } from "../../_chunks/patient-details-DrhlTrLf.js";
2
2
  export {
3
3
  e as PatientDetails,
4
4
  i as patientDetailsAgent
@@ -1,4 +1,4 @@
1
- import { B as s, C as l, N as t, P as n, a as C, b as i, g as o, u } from "../../_chunks/patient-table-ps4byVwA.js";
1
+ import { B as s, C as l, N as t, P as n, a as C, b as i, g as o, u } from "../../_chunks/patient-table-CFM92QqU.js";
2
2
  export {
3
3
  s as BalanceBadgeCell,
4
4
  l as CarePlanStatusCell,
@@ -1,4 +1,4 @@
1
- import { P as r } from "../../_chunks/pregnancy-dating-CvIRwWaG.js";
1
+ import { P as r } from "../../_chunks/pregnancy-dating-BdFl-rB1.js";
2
2
  export {
3
3
  r as PregnancyDating
4
4
  };
@@ -1,4 +1,4 @@
1
- import { R as o, I as e, r as n } from "../../_chunks/radiograph-panel.agent-C93AXgtV.js";
1
+ import { R as o, I as e, r as n } from "../../_chunks/radiograph-panel.agent-DDnDGVpN.js";
2
2
  export {
3
3
  o as RadiographPanel,
4
4
  e as RadiographPanelIcon,
@@ -1,4 +1,4 @@
1
- import { S as r, s, u as n } from "../../_chunks/sparkline-iOXYgvJe.js";
1
+ import { S as r, s, u as n } from "../../_chunks/sparkline-o6JH4O66.js";
2
2
  export {
3
3
  r as Sparkline,
4
4
  s as sparklineAgent,