@alfadocs/ui-kit-debug 1.55.0 → 1.57.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 (448) hide show
  1. package/dist/_chunks/{ai-credits-notice-BoNJtOuE.js → ai-credits-notice-ktklr8fy.js} +2 -2
  2. package/dist/_chunks/{ai-credits-notice-BoNJtOuE.js.map → ai-credits-notice-ktklr8fy.js.map} +1 -1
  3. package/dist/_chunks/ai-permission-notice-DyuEGwAt.js +206 -0
  4. package/dist/_chunks/ai-permission-notice-DyuEGwAt.js.map +1 -0
  5. package/dist/_chunks/alia-sidebar-BBKBJCv6.js +1284 -0
  6. package/dist/_chunks/alia-sidebar-BBKBJCv6.js.map +1 -0
  7. package/dist/_chunks/{anamnesis-summary-rows-Dtw5Hpg4.js → anamnesis-summary-rows-CCQ62mMN.js} +5 -5
  8. package/dist/_chunks/{anamnesis-summary-rows-Dtw5Hpg4.js.map → anamnesis-summary-rows-CCQ62mMN.js.map} +1 -1
  9. package/dist/_chunks/{appointment-peek-BIZaDeCi.js → appointment-peek-WvNbE4JG.js} +2 -2
  10. package/dist/_chunks/{appointment-peek-BIZaDeCi.js.map → appointment-peek-WvNbE4JG.js.map} +1 -1
  11. package/dist/_chunks/{appointment-timeline-DmqYEIT9.js → appointment-timeline-Z0494xO-.js} +2 -2
  12. package/dist/_chunks/{appointment-timeline-DmqYEIT9.js.map → appointment-timeline-Z0494xO-.js.map} +1 -1
  13. package/dist/_chunks/{balance-badge-cell-zP-iN-Pd.js → balance-badge-cell-CII3SDmR.js} +3 -3
  14. package/dist/_chunks/{balance-badge-cell-zP-iN-Pd.js.map → balance-badge-cell-CII3SDmR.js.map} +1 -1
  15. package/dist/_chunks/{bmi-calculator-DTZhRhXe.js → bmi-calculator-C0UTxB7R.js} +2 -2
  16. package/dist/_chunks/{bmi-calculator-DTZhRhXe.js.map → bmi-calculator-C0UTxB7R.js.map} +1 -1
  17. package/dist/_chunks/{booking-uZO10TLK.js → booking-81WnKDsH.js} +4 -4
  18. package/dist/_chunks/{booking-uZO10TLK.js.map → booking-81WnKDsH.js.map} +1 -1
  19. package/dist/_chunks/{breadcrumb-xgVpPH2H.js → breadcrumb-Boan-5n8.js} +39 -39
  20. package/dist/_chunks/breadcrumb-Boan-5n8.js.map +1 -0
  21. package/dist/_chunks/{calculator-dialog-BRjZMWuE.js → calculator-dialog-CzQv03p0.js} +2 -2
  22. package/dist/_chunks/{calculator-dialog-BRjZMWuE.js.map → calculator-dialog-CzQv03p0.js.map} +1 -1
  23. package/dist/_chunks/{calendar-workspace-DVajSkKA.js → calendar-workspace-D5-k_9zE.js} +15 -15
  24. package/dist/_chunks/{calendar-workspace-DVajSkKA.js.map → calendar-workspace-D5-k_9zE.js.map} +1 -1
  25. package/dist/_chunks/{care-plan-card-Ddjh5Doc.js → care-plan-card-DxrRLRdW.js} +2 -2
  26. package/dist/_chunks/{care-plan-card-Ddjh5Doc.js.map → care-plan-card-DxrRLRdW.js.map} +1 -1
  27. package/dist/_chunks/{care-plan-header-BeMYMiI7.js → care-plan-header-BMwZIgHJ.js} +3 -3
  28. package/dist/_chunks/{care-plan-header-BeMYMiI7.js.map → care-plan-header-BMwZIgHJ.js.map} +1 -1
  29. package/dist/_chunks/chart-DQ5GxqgT.js +906 -0
  30. package/dist/_chunks/chart-DQ5GxqgT.js.map +1 -0
  31. package/dist/_chunks/{clinical-note-card-14JIoUR0.js → clinical-note-card-hx939bvw.js} +2 -2
  32. package/dist/_chunks/{clinical-note-card-14JIoUR0.js.map → clinical-note-card-hx939bvw.js.map} +1 -1
  33. package/dist/_chunks/{color-picker-BRQ4Y9SO.js → color-picker-BsggJovx.js} +128 -123
  34. package/dist/_chunks/color-picker-BsggJovx.js.map +1 -0
  35. package/dist/_chunks/{contact-card-CmK05vNb.js → contact-card-fHBMwEsx.js} +2 -2
  36. package/dist/_chunks/{contact-card-CmK05vNb.js.map → contact-card-fHBMwEsx.js.map} +1 -1
  37. package/dist/_chunks/{contact-profile-card-C5DbP_X3.js → contact-profile-card-CMyBYgRR.js} +3 -3
  38. package/dist/_chunks/{contact-profile-card-C5DbP_X3.js.map → contact-profile-card-CMyBYgRR.js.map} +1 -1
  39. package/dist/_chunks/{cycle-calculator-Dgfqr4Q4.js → cycle-calculator-Cww9DzIa.js} +2 -2
  40. package/dist/_chunks/{cycle-calculator-Dgfqr4Q4.js.map → cycle-calculator-Cww9DzIa.js.map} +1 -1
  41. package/dist/_chunks/dashboard-grid-DfEY2qci.js +844 -0
  42. package/dist/_chunks/dashboard-grid-DfEY2qci.js.map +1 -0
  43. package/dist/_chunks/{data-table-C6T31E33.js → data-table-fAMTeAjM.js} +2 -2
  44. package/dist/_chunks/{data-table-C6T31E33.js.map → data-table-fAMTeAjM.js.map} +1 -1
  45. package/dist/_chunks/{data-table-tabs-Xhg5G0gU.js → data-table-tabs-CHYAAeHy.js} +2 -2
  46. package/dist/_chunks/{data-table-tabs-Xhg5G0gU.js.map → data-table-tabs-CHYAAeHy.js.map} +1 -1
  47. package/dist/_chunks/{date-picker-wRAcq2lt.js → date-picker-BSZuKo13.js} +69 -62
  48. package/dist/_chunks/date-picker-BSZuKo13.js.map +1 -0
  49. package/dist/_chunks/{date-range-picker-BOvHwWO5.js → date-range-picker-CFk-5O3R.js} +188 -177
  50. package/dist/_chunks/date-range-picker-CFk-5O3R.js.map +1 -0
  51. package/dist/_chunks/{date-time-picker-CLeLKuv9.js → date-time-picker-CjxTkblD.js} +92 -85
  52. package/dist/_chunks/date-time-picker-CjxTkblD.js.map +1 -0
  53. package/dist/_chunks/{dependent-selector-Bet3XAFj.js → dependent-selector-DgaAQc-c.js} +91 -86
  54. package/dist/_chunks/dependent-selector-DgaAQc-c.js.map +1 -0
  55. package/dist/_chunks/{dialog-D52AI4nF.js → dialog-Dn-iQ0Jp.js} +86 -69
  56. package/dist/_chunks/dialog-Dn-iQ0Jp.js.map +1 -0
  57. package/dist/_chunks/{document-preview-uoTekVR7.js → document-preview-CHGGG0l_.js} +2 -2
  58. package/dist/_chunks/{document-preview-uoTekVR7.js.map → document-preview-CHGGG0l_.js.map} +1 -1
  59. package/dist/_chunks/{due-date-calculator-DXDJbUzo.js → due-date-calculator-D_qFUiHp.js} +3 -3
  60. package/dist/_chunks/{due-date-calculator-DXDJbUzo.js.map → due-date-calculator-D_qFUiHp.js.map} +1 -1
  61. package/dist/_chunks/{entity-summary-DcB0fIiv.js → entity-summary-CWcCSThK.js} +2 -2
  62. package/dist/_chunks/{entity-summary-DcB0fIiv.js.map → entity-summary-CWcCSThK.js.map} +1 -1
  63. package/dist/_chunks/{file-manager-dIJQUZvq.js → file-manager-CFsL1KVt.js} +4 -4
  64. package/dist/_chunks/{file-manager-dIJQUZvq.js.map → file-manager-CFsL1KVt.js.map} +1 -1
  65. package/dist/_chunks/{freemium-paywall-B6ojVXq7.js → freemium-paywall-DIKuhX8b.js} +90 -86
  66. package/dist/_chunks/freemium-paywall-DIKuhX8b.js.map +1 -0
  67. package/dist/_chunks/{gestational-age-calculator-BfGpt3du.js → gestational-age-calculator-CZi43xKG.js} +3 -3
  68. package/dist/_chunks/{gestational-age-calculator-BfGpt3du.js.map → gestational-age-calculator-CZi43xKG.js.map} +1 -1
  69. package/dist/_chunks/{hcg-doubling-BIYyI2Yo.js → hcg-doubling-Ccvh7OaU.js} +2 -2
  70. package/dist/_chunks/{hcg-doubling-BIYyI2Yo.js.map → hcg-doubling-Ccvh7OaU.js.map} +1 -1
  71. package/dist/_chunks/{header-settings-ge_3gYEq.js → header-settings-BMcCx2LC.js} +2 -2
  72. package/dist/_chunks/{header-settings-ge_3gYEq.js.map → header-settings-BMcCx2LC.js.map} +1 -1
  73. package/dist/_chunks/{heatmap-BARGZZt2.js → heatmap-BEeOThkW.js} +2 -2
  74. package/dist/_chunks/{heatmap-BARGZZt2.js.map → heatmap-BEeOThkW.js.map} +1 -1
  75. package/dist/_chunks/{help-me-write-templates-B7L3zGsE.js → help-me-write-templates-BUoYGo6f.js} +2 -2
  76. package/dist/_chunks/help-me-write-templates-BUoYGo6f.js.map +1 -0
  77. package/dist/_chunks/{hover-card-BnTueNS2.js → hover-card-U_ZYoh1n.js} +201 -187
  78. package/dist/_chunks/hover-card-U_ZYoh1n.js.map +1 -0
  79. package/dist/_chunks/{icon-picker-DWrqmI1c.js → icon-picker-C86lQTIA.js} +2 -2
  80. package/dist/_chunks/{icon-picker-DWrqmI1c.js.map → icon-picker-C86lQTIA.js.map} +1 -1
  81. package/dist/_chunks/{info-tip-B0jmIt6M.js → info-tip-CJpNpzZe.js} +2 -2
  82. package/dist/_chunks/{info-tip-B0jmIt6M.js.map → info-tip-CJpNpzZe.js.map} +1 -1
  83. package/dist/_chunks/{key-value-pair-Ax8IJr1M.js → key-value-pair-BNNITp6S.js} +25 -19
  84. package/dist/_chunks/key-value-pair-BNNITp6S.js.map +1 -0
  85. package/dist/_chunks/{kit-extensions-C9-v8Dih.js → kit-extensions-DYVxWcqv.js} +5 -5
  86. package/dist/_chunks/{kit-extensions-C9-v8Dih.js.map → kit-extensions-DYVxWcqv.js.map} +1 -1
  87. package/dist/_chunks/{link-cell-renderer-DlBVPMTi.js → link-cell-renderer-CxW_oLa5.js} +2 -2
  88. package/dist/_chunks/{link-cell-renderer-DlBVPMTi.js.map → link-cell-renderer-CxW_oLa5.js.map} +1 -1
  89. package/dist/_chunks/link-gRw3NtOt.js +137 -0
  90. package/dist/_chunks/link-gRw3NtOt.js.map +1 -0
  91. package/dist/_chunks/{locale-picker-DfNSdOpy.js → locale-picker-BGfrZyTw.js} +2 -2
  92. package/dist/_chunks/{locale-picker-DfNSdOpy.js.map → locale-picker-BGfrZyTw.js.map} +1 -1
  93. package/dist/_chunks/{marketplace-app-shell-Dcx-JEjg.js → marketplace-app-shell-BZcA9Z06.js} +143 -129
  94. package/dist/_chunks/marketplace-app-shell-BZcA9Z06.js.map +1 -0
  95. package/dist/_chunks/{message-tray-BB95DA82.js → message-tray-QKQutwxj.js} +76 -69
  96. package/dist/_chunks/message-tray-QKQutwxj.js.map +1 -0
  97. package/dist/_chunks/{nav-grid-BqCPH8sm.js → nav-grid-Byx8PxuB.js} +2 -2
  98. package/dist/_chunks/{nav-grid-BqCPH8sm.js.map → nav-grid-Byx8PxuB.js.map} +1 -1
  99. package/dist/_chunks/non-modal-tab-exit-j3CPOuE3.js +89 -0
  100. package/dist/_chunks/non-modal-tab-exit-j3CPOuE3.js.map +1 -0
  101. package/dist/_chunks/{note-attachment-I1NLoeRZ.js → note-attachment-Bt2cddsZ.js} +2 -2
  102. package/dist/_chunks/{note-attachment-I1NLoeRZ.js.map → note-attachment-Bt2cddsZ.js.map} +1 -1
  103. package/dist/_chunks/{note-timeline-CsY8YOE7.js → note-timeline-CX9nAgAR.js} +2 -2
  104. package/dist/_chunks/{note-timeline-CsY8YOE7.js.map → note-timeline-CX9nAgAR.js.map} +1 -1
  105. package/dist/_chunks/{notes-panel-I8ntrrUW.js → notes-panel-Cm4pttpl.js} +4 -4
  106. package/dist/_chunks/{notes-panel-I8ntrrUW.js.map → notes-panel-Cm4pttpl.js.map} +1 -1
  107. package/dist/_chunks/{notification-tray-__sJXnsz.js → notification-tray-C5VtbGjd.js} +83 -76
  108. package/dist/_chunks/notification-tray-C5VtbGjd.js.map +1 -0
  109. package/dist/_chunks/{patient-details-DsTtjpuX.js → patient-details-99kEdtc5.js} +2 -2
  110. package/dist/_chunks/{patient-details-DsTtjpuX.js.map → patient-details-99kEdtc5.js.map} +1 -1
  111. package/dist/_chunks/{patient-field-row-BvZ9luz-.js → patient-field-row-DkxY13T6.js} +5 -5
  112. package/dist/_chunks/{patient-field-row-BvZ9luz-.js.map → patient-field-row-DkxY13T6.js.map} +1 -1
  113. package/dist/_chunks/{patient-summary-card-3dspc2tR.js → patient-summary-card-opdyfeW2.js} +10 -6
  114. package/dist/_chunks/{patient-summary-card-3dspc2tR.js.map → patient-summary-card-opdyfeW2.js.map} +1 -1
  115. package/dist/_chunks/{payment-automation-upsell-DEUfM7EU.js → payment-automation-upsell-DiHovmUL.js} +2 -2
  116. package/dist/_chunks/{payment-automation-upsell-DEUfM7EU.js.map → payment-automation-upsell-DiHovmUL.js.map} +1 -1
  117. package/dist/_chunks/{payment-request-card-DAGqh9Yx.js → payment-request-card-DAniJNLX.js} +3 -3
  118. package/dist/_chunks/{payment-request-card-DAGqh9Yx.js.map → payment-request-card-DAniJNLX.js.map} +1 -1
  119. package/dist/_chunks/{pdf-viewer-C3minW5b.js → pdf-viewer-CNQxa4tv.js} +396 -391
  120. package/dist/_chunks/pdf-viewer-CNQxa4tv.js.map +1 -0
  121. package/dist/_chunks/{periodontal-chart-BqwLxy2m.js → periodontal-chart-DD5C0M3l.js} +2 -2
  122. package/dist/_chunks/{periodontal-chart-BqwLxy2m.js.map → periodontal-chart-DD5C0M3l.js.map} +1 -1
  123. package/dist/_chunks/{periodontal-chart-card-CWZ1YM1h.js → periodontal-chart-card-CxdXvsPU.js} +2 -2
  124. package/dist/_chunks/{periodontal-chart-card-CWZ1YM1h.js.map → periodontal-chart-card-CxdXvsPU.js.map} +1 -1
  125. package/dist/_chunks/{periodontal-diagnosis-C9IuvLId.js → periodontal-diagnosis-D-PJv7KS.js} +2 -2
  126. package/dist/_chunks/{periodontal-diagnosis-C9IuvLId.js.map → periodontal-diagnosis-D-PJv7KS.js.map} +1 -1
  127. package/dist/_chunks/{phone-input-DxkHMYmu.js → phone-input-O9camxkq.js} +156 -151
  128. package/dist/_chunks/phone-input-O9camxkq.js.map +1 -0
  129. package/dist/_chunks/popover-BG75rYjN.js +367 -0
  130. package/dist/_chunks/popover-BG75rYjN.js.map +1 -0
  131. package/dist/_chunks/{position-grid-D2D5_Tze.js → position-grid-CBB88EaH.js} +38 -36
  132. package/dist/_chunks/position-grid-CBB88EaH.js.map +1 -0
  133. package/dist/_chunks/{practice-results-DxOgbPDy.js → practice-results-CfRkjzsI.js} +2 -2
  134. package/dist/_chunks/{practice-results-DxOgbPDy.js.map → practice-results-CfRkjzsI.js.map} +1 -1
  135. package/dist/_chunks/{pregnancy-dating-R3q5n1Wh.js → pregnancy-dating-BFzv9g1N.js} +3 -3
  136. package/dist/_chunks/{pregnancy-dating-R3q5n1Wh.js.map → pregnancy-dating-BFzv9g1N.js.map} +1 -1
  137. package/dist/_chunks/{pregnancy-weight-gain-DwmNklDU.js → pregnancy-weight-gain-CUUrBTBo.js} +2 -2
  138. package/dist/_chunks/{pregnancy-weight-gain-DwmNklDU.js.map → pregnancy-weight-gain-CUUrBTBo.js.map} +1 -1
  139. package/dist/_chunks/{product-hub-panel-BSSiGGG4.js → product-hub-panel-DlVRK7Ue.js} +103 -96
  140. package/dist/_chunks/product-hub-panel-DlVRK7Ue.js.map +1 -0
  141. package/dist/_chunks/{public-footer-CxpG6J1M.js → public-footer-ZWTEG1Rq.js} +2 -2
  142. package/dist/_chunks/{public-footer-CxpG6J1M.js.map → public-footer-ZWTEG1Rq.js.map} +1 -1
  143. package/dist/_chunks/{public-header.agent-BWusjxY8.js → public-header.agent-BctevbuY.js} +2 -2
  144. package/dist/_chunks/{public-header.agent-BWusjxY8.js.map → public-header.agent-BctevbuY.js.map} +1 -1
  145. package/dist/_chunks/{radio-group-BT97ty7o.js → radio-group-DicxWJXP.js} +111 -106
  146. package/dist/_chunks/radio-group-DicxWJXP.js.map +1 -0
  147. package/dist/_chunks/{radiograph-panel.agent-BA90I3Mu.js → radiograph-panel.agent-DyqbTECc.js} +4 -4
  148. package/dist/_chunks/{radiograph-panel.agent-BA90I3Mu.js.map → radiograph-panel.agent-DyqbTECc.js.map} +1 -1
  149. package/dist/_chunks/{registration-form-D7iNqMBF.js → registration-form-BlTzYywa.js} +2 -2
  150. package/dist/_chunks/{registration-form-D7iNqMBF.js.map → registration-form-BlTzYywa.js.map} +1 -1
  151. package/dist/_chunks/{rich-text-editor-Blp4smUr.js → rich-text-editor-DTnNZ4Ff.js} +489 -484
  152. package/dist/_chunks/rich-text-editor-DTnNZ4Ff.js.map +1 -0
  153. package/dist/_chunks/{sheet-CNFW8mYZ.js → sheet-8qsiMoUI.js} +95 -79
  154. package/dist/_chunks/sheet-8qsiMoUI.js.map +1 -0
  155. package/dist/_chunks/{sign-document-B6HlyCGV.js → sign-document-D4iHS_Ug.js} +2 -2
  156. package/dist/_chunks/{sign-document-B6HlyCGV.js.map → sign-document-D4iHS_Ug.js.map} +1 -1
  157. package/dist/_chunks/{signature-request-rgMsgo-C.js → signature-request-DRuYAG5I.js} +2 -2
  158. package/dist/_chunks/{signature-request-rgMsgo-C.js.map → signature-request-DRuYAG5I.js.map} +1 -1
  159. package/dist/_chunks/{signed-out-frame-B2GTIeqA.js → signed-out-frame-AhMsNW1r.js} +2 -2
  160. package/dist/_chunks/{signed-out-frame-B2GTIeqA.js.map → signed-out-frame-AhMsNW1r.js.map} +1 -1
  161. package/dist/_chunks/{stat-51CDL4au.js → stat-DmjGfXND.js} +117 -108
  162. package/dist/_chunks/stat-DmjGfXND.js.map +1 -0
  163. package/dist/_chunks/{stepper-accordion-D7lnBGh2.js → stepper-accordion-DDTSOUHc.js} +17 -6
  164. package/dist/_chunks/stepper-accordion-DDTSOUHc.js.map +1 -0
  165. package/dist/_chunks/{task-editor-Ctxsa1BY.js → task-editor-NkcopDna.js} +4 -4
  166. package/dist/_chunks/{task-editor-Ctxsa1BY.js.map → task-editor-NkcopDna.js.map} +1 -1
  167. package/dist/_chunks/{use-appointment-details-read-DinTrRIW.js → use-appointment-details-read-CfFQNOF_.js} +5 -5
  168. package/dist/_chunks/{use-appointment-details-read-DinTrRIW.js.map → use-appointment-details-read-CfFQNOF_.js.map} +1 -1
  169. package/dist/_chunks/use-select-on-arrow-Cr4iBuW5.js +26 -0
  170. package/dist/_chunks/use-select-on-arrow-Cr4iBuW5.js.map +1 -0
  171. package/dist/_chunks/{voice-control-panel-Bg1eklL0.js → voice-control-panel-BKbgb7FM.js} +2 -2
  172. package/dist/_chunks/{voice-control-panel-Bg1eklL0.js.map → voice-control-panel-BKbgb7FM.js.map} +1 -1
  173. package/dist/_chunks/{widget-picker-D8RiWrJd.js → widget-picker-rBA7MR5P.js} +2 -2
  174. package/dist/_chunks/{widget-picker-D8RiWrJd.js.map → widget-picker-rBA7MR5P.js.map} +1 -1
  175. package/dist/_chunks/{workflow-map-D3mezmGB.js → workflow-map-Demlpy39.js} +2 -2
  176. package/dist/_chunks/{workflow-map-D3mezmGB.js.map → workflow-map-Demlpy39.js.map} +1 -1
  177. package/dist/agent-catalog.json +28 -11
  178. package/dist/agent-i18n/en.json +8 -7
  179. package/dist/components/_shared/non-modal-tab-exit.d.ts +19 -0
  180. package/dist/components/_shared/non-modal-tab-exit.d.ts.map +1 -0
  181. package/dist/components/_shared/use-apex-chart-semantics.d.ts +6 -0
  182. package/dist/components/_shared/use-apex-chart-semantics.d.ts.map +1 -0
  183. package/dist/components/_shared/use-select-on-arrow.d.ts +20 -0
  184. package/dist/components/_shared/use-select-on-arrow.d.ts.map +1 -0
  185. package/dist/components/ai-credits-notice/index.js +1 -1
  186. package/dist/components/ai-permission-notice/ai-permission-notice.d.ts +32 -0
  187. package/dist/components/ai-permission-notice/ai-permission-notice.d.ts.map +1 -1
  188. package/dist/components/ai-permission-notice/index.d.ts +1 -1
  189. package/dist/components/ai-permission-notice/index.d.ts.map +1 -1
  190. package/dist/components/ai-permission-notice/index.js +1 -1
  191. package/dist/components/appointment-details-panel/index.js +1 -1
  192. package/dist/components/appointment-peek/index.js +1 -1
  193. package/dist/components/appointment-timeline/index.js +1 -1
  194. package/dist/components/bmi-calculator/index.js +1 -1
  195. package/dist/components/booking/index.js +1 -1
  196. package/dist/components/breadcrumb/breadcrumb.d.ts.map +1 -1
  197. package/dist/components/breadcrumb/index.js +1 -1
  198. package/dist/components/calculator-dialog/index.js +1 -1
  199. package/dist/components/care-plan-card/index.js +1 -1
  200. package/dist/components/care-plan-header/index.js +1 -1
  201. package/dist/components/chart/chart.d.ts +15 -10
  202. package/dist/components/chart/chart.d.ts.map +1 -1
  203. package/dist/components/chart/index.js +1 -1
  204. package/dist/components/clinical-note-card/index.js +1 -1
  205. package/dist/components/color-picker/color-picker.d.ts.map +1 -1
  206. package/dist/components/color-picker/index.js +1 -1
  207. package/dist/components/contact-card/index.js +1 -1
  208. package/dist/components/contact-profile-card/index.js +1 -1
  209. package/dist/components/cycle-calculator/index.js +1 -1
  210. package/dist/components/dashboard-grid/dashboard-grid-engine.d.ts +22 -0
  211. package/dist/components/dashboard-grid/dashboard-grid-engine.d.ts.map +1 -1
  212. package/dist/components/dashboard-grid/dashboard-grid.agent.d.ts.map +1 -1
  213. package/dist/components/dashboard-grid/dashboard-grid.d.ts +48 -4
  214. package/dist/components/dashboard-grid/dashboard-grid.d.ts.map +1 -1
  215. package/dist/components/dashboard-grid/index.js +1 -1
  216. package/dist/components/data-table/index.js +2 -2
  217. package/dist/components/data-table-tabs/index.js +1 -1
  218. package/dist/components/date-picker/date-picker.d.ts.map +1 -1
  219. package/dist/components/date-picker/index.js +1 -1
  220. package/dist/components/date-range-picker/date-range-picker.d.ts.map +1 -1
  221. package/dist/components/date-range-picker/index.js +1 -1
  222. package/dist/components/date-time-picker/date-time-picker.d.ts.map +1 -1
  223. package/dist/components/date-time-picker/index.js +1 -1
  224. package/dist/components/dependent-selector/dependent-selector.d.ts.map +1 -1
  225. package/dist/components/dependent-selector/index.js +1 -1
  226. package/dist/components/dialog/dialog.d.ts +2 -2
  227. package/dist/components/dialog/dialog.d.ts.map +1 -1
  228. package/dist/components/dialog/index.js +1 -1
  229. package/dist/components/document-preview/index.js +1 -1
  230. package/dist/components/due-date-calculator/index.js +1 -1
  231. package/dist/components/entity-summary/index.js +1 -1
  232. package/dist/components/file-manager/index.js +1 -1
  233. package/dist/components/freemium-paywall/freemium-paywall.d.ts.map +1 -1
  234. package/dist/components/freemium-paywall/index.js +1 -1
  235. package/dist/components/gestational-age-calculator/index.js +1 -1
  236. package/dist/components/hcg-doubling/index.js +1 -1
  237. package/dist/components/header-settings/index.js +1 -1
  238. package/dist/components/heatmap/index.js +1 -1
  239. package/dist/components/hover-card/hover-card.d.ts.map +1 -1
  240. package/dist/components/hover-card/index.js +1 -1
  241. package/dist/components/icon-picker/index.js +1 -1
  242. package/dist/components/info-tip/index.js +1 -1
  243. package/dist/components/key-value-pair/index.js +1 -1
  244. package/dist/components/key-value-pair/key-value-pair.d.ts.map +1 -1
  245. package/dist/components/link/index.js +1 -1
  246. package/dist/components/link/link.d.ts +5 -3
  247. package/dist/components/link/link.d.ts.map +1 -1
  248. package/dist/components/locale-picker/index.js +1 -1
  249. package/dist/components/message-tray/index.js +1 -1
  250. package/dist/components/message-tray/message-tray.d.ts.map +1 -1
  251. package/dist/components/nav-grid/index.js +1 -1
  252. package/dist/components/note-timeline/index.js +1 -1
  253. package/dist/components/notes-panel/index.js +1 -1
  254. package/dist/components/notification-tray/index.js +1 -1
  255. package/dist/components/notification-tray/notification-tray.d.ts.map +1 -1
  256. package/dist/components/patient-details/index.js +1 -1
  257. package/dist/components/patient-summary-card/index.js +1 -1
  258. package/dist/components/patient-summary-card/patient-summary-card.d.ts.map +1 -1
  259. package/dist/components/patient-table/index.js +1 -1
  260. package/dist/components/payment-card/index.js +1 -1
  261. package/dist/components/pdf-viewer/index.js +1 -1
  262. package/dist/components/pdf-viewer/pdf-viewer.d.ts.map +1 -1
  263. package/dist/components/periodontal-chart/index.js +1 -1
  264. package/dist/components/periodontal-chart-card/index.js +1 -1
  265. package/dist/components/periodontal-diagnosis/index.js +1 -1
  266. package/dist/components/phone-input/index.js +1 -1
  267. package/dist/components/phone-input/phone-input.d.ts.map +1 -1
  268. package/dist/components/popover/index.js +1 -1
  269. package/dist/components/popover/popover.d.ts +1 -1
  270. package/dist/components/popover/popover.d.ts.map +1 -1
  271. package/dist/components/position-grid/index.js +1 -1
  272. package/dist/components/position-grid/position-grid.d.ts.map +1 -1
  273. package/dist/components/practice-results/index.js +1 -1
  274. package/dist/components/pregnancy-dating/index.js +1 -1
  275. package/dist/components/pregnancy-weight-gain/index.js +1 -1
  276. package/dist/components/product-hub-tray/index.js +1 -1
  277. package/dist/components/product-hub-tray/product-hub-tray.d.ts.map +1 -1
  278. package/dist/components/public-footer/index.js +1 -1
  279. package/dist/components/public-header/index.js +1 -1
  280. package/dist/components/radio-group/index.js +1 -1
  281. package/dist/components/radio-group/radio-group.d.ts.map +1 -1
  282. package/dist/components/radiograph-panel/index.js +1 -1
  283. package/dist/components/rich-text-editor/editor-toolbar.d.ts.map +1 -1
  284. package/dist/components/rich-text-editor/index.js +2 -2
  285. package/dist/components/sheet/index.js +1 -1
  286. package/dist/components/sheet/sheet.d.ts +2 -2
  287. package/dist/components/sheet/sheet.d.ts.map +1 -1
  288. package/dist/components/sign-document/index.js +1 -1
  289. package/dist/components/stat/index.d.ts +1 -1
  290. package/dist/components/stat/index.d.ts.map +1 -1
  291. package/dist/components/stat/index.js +1 -1
  292. package/dist/components/stat/stat.d.ts +9 -0
  293. package/dist/components/stat/stat.d.ts.map +1 -1
  294. package/dist/components/stepper-accordion/index.js +1 -1
  295. package/dist/components/stepper-accordion/stepper-accordion.d.ts.map +1 -1
  296. package/dist/components/task-editor/index.js +1 -1
  297. package/dist/components/voice-control-panel/index.js +1 -1
  298. package/dist/components/widget-picker/index.js +1 -1
  299. package/dist/components/workflow/index.js +1 -1
  300. package/dist/host-legacy.css +13 -2
  301. package/dist/i18n/locales/ar.d.ts +17 -2
  302. package/dist/i18n/locales/ar.d.ts.map +1 -1
  303. package/dist/i18n/locales/ar.js +20 -5
  304. package/dist/i18n/locales/ar.js.map +1 -1
  305. package/dist/i18n/locales/de.d.ts +17 -2
  306. package/dist/i18n/locales/de.d.ts.map +1 -1
  307. package/dist/i18n/locales/de.js +20 -5
  308. package/dist/i18n/locales/de.js.map +1 -1
  309. package/dist/i18n/locales/el.d.ts +17 -2
  310. package/dist/i18n/locales/el.d.ts.map +1 -1
  311. package/dist/i18n/locales/el.js +20 -5
  312. package/dist/i18n/locales/el.js.map +1 -1
  313. package/dist/i18n/locales/en.d.ts +17 -2
  314. package/dist/i18n/locales/en.d.ts.map +1 -1
  315. package/dist/i18n/locales/en.js +20 -5
  316. package/dist/i18n/locales/en.js.map +1 -1
  317. package/dist/i18n/locales/es.d.ts +17 -2
  318. package/dist/i18n/locales/es.d.ts.map +1 -1
  319. package/dist/i18n/locales/es.js +20 -5
  320. package/dist/i18n/locales/es.js.map +1 -1
  321. package/dist/i18n/locales/fr.d.ts +17 -2
  322. package/dist/i18n/locales/fr.d.ts.map +1 -1
  323. package/dist/i18n/locales/fr.js +20 -5
  324. package/dist/i18n/locales/fr.js.map +1 -1
  325. package/dist/i18n/locales/hi.d.ts +17 -2
  326. package/dist/i18n/locales/hi.d.ts.map +1 -1
  327. package/dist/i18n/locales/hi.js +20 -5
  328. package/dist/i18n/locales/hi.js.map +1 -1
  329. package/dist/i18n/locales/it.d.ts +17 -2
  330. package/dist/i18n/locales/it.d.ts.map +1 -1
  331. package/dist/i18n/locales/it.js +20 -5
  332. package/dist/i18n/locales/it.js.map +1 -1
  333. package/dist/i18n/locales/ja.d.ts +17 -2
  334. package/dist/i18n/locales/ja.d.ts.map +1 -1
  335. package/dist/i18n/locales/ja.js +20 -5
  336. package/dist/i18n/locales/ja.js.map +1 -1
  337. package/dist/i18n/locales/nl.d.ts +17 -2
  338. package/dist/i18n/locales/nl.d.ts.map +1 -1
  339. package/dist/i18n/locales/nl.js +20 -5
  340. package/dist/i18n/locales/nl.js.map +1 -1
  341. package/dist/i18n/locales/pl.d.ts +17 -2
  342. package/dist/i18n/locales/pl.d.ts.map +1 -1
  343. package/dist/i18n/locales/pl.js +20 -5
  344. package/dist/i18n/locales/pl.js.map +1 -1
  345. package/dist/i18n/locales/pt.d.ts +17 -2
  346. package/dist/i18n/locales/pt.d.ts.map +1 -1
  347. package/dist/i18n/locales/pt.js +20 -5
  348. package/dist/i18n/locales/pt.js.map +1 -1
  349. package/dist/i18n/locales/ro.d.ts +17 -2
  350. package/dist/i18n/locales/ro.d.ts.map +1 -1
  351. package/dist/i18n/locales/ro.js +20 -5
  352. package/dist/i18n/locales/ro.js.map +1 -1
  353. package/dist/i18n/locales/ru.d.ts +17 -2
  354. package/dist/i18n/locales/ru.d.ts.map +1 -1
  355. package/dist/i18n/locales/ru.js +20 -5
  356. package/dist/i18n/locales/ru.js.map +1 -1
  357. package/dist/i18n/locales/sq.d.ts +17 -2
  358. package/dist/i18n/locales/sq.d.ts.map +1 -1
  359. package/dist/i18n/locales/sq.js +20 -5
  360. package/dist/i18n/locales/sq.js.map +1 -1
  361. package/dist/i18n/locales/sv.d.ts +17 -2
  362. package/dist/i18n/locales/sv.d.ts.map +1 -1
  363. package/dist/i18n/locales/sv.js +20 -5
  364. package/dist/i18n/locales/sv.js.map +1 -1
  365. package/dist/i18n/locales/tr.d.ts +17 -2
  366. package/dist/i18n/locales/tr.d.ts.map +1 -1
  367. package/dist/i18n/locales/tr.js +20 -5
  368. package/dist/i18n/locales/tr.js.map +1 -1
  369. package/dist/i18n/locales/zh.d.ts +17 -2
  370. package/dist/i18n/locales/zh.d.ts.map +1 -1
  371. package/dist/i18n/locales/zh.js +20 -5
  372. package/dist/i18n/locales/zh.js.map +1 -1
  373. package/dist/index.js +207 -206
  374. package/dist/locales/ar.json +20 -5
  375. package/dist/locales/de.json +20 -5
  376. package/dist/locales/el.json +20 -5
  377. package/dist/locales/en.json +20 -5
  378. package/dist/locales/es.json +20 -5
  379. package/dist/locales/fr.json +20 -5
  380. package/dist/locales/hi.json +20 -5
  381. package/dist/locales/it.json +20 -5
  382. package/dist/locales/ja.json +20 -5
  383. package/dist/locales/nl.json +20 -5
  384. package/dist/locales/pl.json +20 -5
  385. package/dist/locales/pt.json +20 -5
  386. package/dist/locales/ro.json +20 -5
  387. package/dist/locales/ru.json +20 -5
  388. package/dist/locales/sq.json +20 -5
  389. package/dist/locales/sv.json +20 -5
  390. package/dist/locales/tr.json +20 -5
  391. package/dist/locales/zh.json +20 -5
  392. package/dist/patterns/alia-assistant/alia-asteroid-icon.d.ts +10 -13
  393. package/dist/patterns/alia-assistant/alia-asteroid-icon.d.ts.map +1 -1
  394. package/dist/patterns/alia-assistant/alia-chat-surface.d.ts.map +1 -1
  395. package/dist/patterns/alia-assistant/alia-popout.d.ts +5 -3
  396. package/dist/patterns/alia-assistant/alia-popout.d.ts.map +1 -1
  397. package/dist/patterns/alia-assistant/index.d.ts +2 -0
  398. package/dist/patterns/alia-assistant/index.d.ts.map +1 -1
  399. package/dist/patterns/alia-assistant/index.js +6 -5
  400. package/dist/patterns/anamnesis/index.js +1 -1
  401. package/dist/patterns/calendar/index.js +1 -1
  402. package/dist/patterns/help-me-write-templates/help-me-write-templates.d.ts +2 -2
  403. package/dist/patterns/help-me-write-templates/help-me-write-templates.d.ts.map +1 -1
  404. package/dist/patterns/help-me-write-templates/index.js +1 -1
  405. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  406. package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +7 -2
  407. package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts.map +1 -1
  408. package/dist/patterns/payment-automation-upsell/index.js +1 -1
  409. package/dist/patterns/registration-form/index.js +1 -1
  410. package/dist/patterns/signature-request/index.js +1 -1
  411. package/dist/patterns/signed-out-frame/index.js +1 -1
  412. package/dist/tokens.css +13 -2
  413. package/package.json +1 -1
  414. package/dist/_chunks/ai-permission-notice-5vpblPCx.js +0 -171
  415. package/dist/_chunks/ai-permission-notice-5vpblPCx.js.map +0 -1
  416. package/dist/_chunks/alia-sidebar-DS0b54Mv.js +0 -1183
  417. package/dist/_chunks/alia-sidebar-DS0b54Mv.js.map +0 -1
  418. package/dist/_chunks/breadcrumb-xgVpPH2H.js.map +0 -1
  419. package/dist/_chunks/chart-C2RBJERE.js +0 -705
  420. package/dist/_chunks/chart-C2RBJERE.js.map +0 -1
  421. package/dist/_chunks/color-picker-BRQ4Y9SO.js.map +0 -1
  422. package/dist/_chunks/dashboard-grid-SAGoyCtL.js +0 -691
  423. package/dist/_chunks/dashboard-grid-SAGoyCtL.js.map +0 -1
  424. package/dist/_chunks/date-picker-wRAcq2lt.js.map +0 -1
  425. package/dist/_chunks/date-range-picker-BOvHwWO5.js.map +0 -1
  426. package/dist/_chunks/date-time-picker-CLeLKuv9.js.map +0 -1
  427. package/dist/_chunks/dependent-selector-Bet3XAFj.js.map +0 -1
  428. package/dist/_chunks/dialog-D52AI4nF.js.map +0 -1
  429. package/dist/_chunks/freemium-paywall-B6ojVXq7.js.map +0 -1
  430. package/dist/_chunks/help-me-write-templates-B7L3zGsE.js.map +0 -1
  431. package/dist/_chunks/hover-card-BnTueNS2.js.map +0 -1
  432. package/dist/_chunks/key-value-pair-Ax8IJr1M.js.map +0 -1
  433. package/dist/_chunks/link-2HokYuIi.js +0 -130
  434. package/dist/_chunks/link-2HokYuIi.js.map +0 -1
  435. package/dist/_chunks/marketplace-app-shell-Dcx-JEjg.js.map +0 -1
  436. package/dist/_chunks/message-tray-BB95DA82.js.map +0 -1
  437. package/dist/_chunks/notification-tray-__sJXnsz.js.map +0 -1
  438. package/dist/_chunks/pdf-viewer-C3minW5b.js.map +0 -1
  439. package/dist/_chunks/phone-input-DxkHMYmu.js.map +0 -1
  440. package/dist/_chunks/popover-BI3oV3eY.js +0 -305
  441. package/dist/_chunks/popover-BI3oV3eY.js.map +0 -1
  442. package/dist/_chunks/position-grid-D2D5_Tze.js.map +0 -1
  443. package/dist/_chunks/product-hub-panel-BSSiGGG4.js.map +0 -1
  444. package/dist/_chunks/radio-group-BT97ty7o.js.map +0 -1
  445. package/dist/_chunks/rich-text-editor-Blp4smUr.js.map +0 -1
  446. package/dist/_chunks/sheet-CNFW8mYZ.js.map +0 -1
  447. package/dist/_chunks/stat-51CDL4au.js.map +0 -1
  448. package/dist/_chunks/stepper-accordion-D7lnBGh2.js.map +0 -1
@@ -1,691 +0,0 @@
1
- import { jsxs as _, jsx as w } from "react/jsx-runtime";
2
- import { forwardRef as Te, useRef as S, useMemo as L, useState as O, useCallback as D, useEffect as X, useImperativeHandle as We, useContext as $e, Children as Ie, isValidElement as Ae, Fragment as je, createContext as Fe } from "react";
3
- import { c as Ge } from "./index-D2ZczOXr.js";
4
- import { useTranslation as ke } from "react-i18next";
5
- import { I as re } from "./icon-button-COX76Jdj.js";
6
- import { u as U } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
7
- import { u as Ke } from "./registry-DvAUVLHh.js";
8
- import { P as _e } from "./plus-DzMQ_c6b.js";
9
- import { G as Ve } from "./grip-vertical-onSb1JXO.js";
10
- import { X as Be } from "./x-B5YnXwCz.js";
11
- import { c as He } from "./createLucideIcon-DhHxpK9K.js";
12
- /**
13
- * @license lucide-react v1.22.0 - ISC
14
- *
15
- * This source code is licensed under the ISC license.
16
- * See the LICENSE file in the root directory of this source tree.
17
- */
18
- const Ye = [
19
- ["path", { d: "M19 13v6h-6", key: "1hxl6d" }],
20
- ["path", { d: "M5 11V5h6", key: "12e2xe" }],
21
- ["path", { d: "m5 5 14 14", key: "11anup" }]
22
- ], qe = He("move-diagonal-2", Ye), Oe = {
23
- id: "dashboard-grid",
24
- // The board's whole purpose is in-place rearrangement of its widgets.
25
- capabilities: ["edit_inline"],
26
- state: {
27
- layout: {
28
- type: "{ id: string, x: number, y: number, w: number, h: number }[]",
29
- descriptionKey: "ui.agent.dashboardGrid.state.layout",
30
- description: "Current widget geometry in cell units — ids and rectangles only, no widget content.",
31
- read: (t) => t.getGridState().layout
32
- },
33
- cols: {
34
- type: "number",
35
- descriptionKey: "ui.agent.dashboardGrid.state.cols",
36
- description: "Logical column count of the board.",
37
- read: (t) => t.getGridState().cols
38
- },
39
- editing: {
40
- type: "boolean",
41
- descriptionKey: "ui.agent.dashboardGrid.state.editing",
42
- description: "Whether edit mode is on. Move/resize actions are refused while it is off — the host app owns the toggle.",
43
- read: (t) => t.getGridState().editing
44
- }
45
- },
46
- actions: {
47
- move_widget: {
48
- // Rearranging the board mutates user configuration — a write,
49
- // reversible by moving back.
50
- safety: "write",
51
- argsType: "id, x, y",
52
- argsSchema: {
53
- type: "object",
54
- properties: {
55
- id: { type: "string", description: "Widget id (see layout state)." },
56
- x: {
57
- type: "integer",
58
- minimum: 0,
59
- description: "0-based logical column."
60
- },
61
- y: { type: "integer", minimum: 0, description: "0-based row." }
62
- },
63
- required: ["id", "x", "y"]
64
- },
65
- returns: "boolean (accepted)",
66
- returnsSchema: {
67
- type: "boolean",
68
- description: "True when applied; false when edit mode is off or the id is unknown."
69
- },
70
- idempotent: !0,
71
- descriptionKey: "ui.agent.dashboardGrid.actions.moveWidget",
72
- description: "Move a widget to a cell. Out-of-bounds targets are clamped; colliding widgets are pushed down and the layout re-compacts. Refused while edit mode is off.",
73
- invoke: (t, s) => t.moveWidgetTo(s.id, s.x, s.y)
74
- },
75
- resize_widget: {
76
- safety: "write",
77
- argsType: "id, w, h",
78
- argsSchema: {
79
- type: "object",
80
- properties: {
81
- id: { type: "string", description: "Widget id (see layout state)." },
82
- w: {
83
- type: "integer",
84
- minimum: 1,
85
- description: "Column span (≥ 1)."
86
- },
87
- h: { type: "integer", minimum: 1, description: "Row span (≥ 1)." }
88
- },
89
- required: ["id", "w", "h"]
90
- },
91
- returns: "boolean (accepted)",
92
- returnsSchema: {
93
- type: "boolean",
94
- description: "True when applied; false when edit mode is off or the id is unknown."
95
- },
96
- idempotent: !0,
97
- descriptionKey: "ui.agent.dashboardGrid.actions.resizeWidget",
98
- description: "Resize a widget to a span. Clamped to the grid and the widget’s min/max; colliding widgets are pushed down. Refused while edit mode is off.",
99
- invoke: (t, s) => t.resizeWidgetTo(s.id, s.w, s.h)
100
- }
101
- },
102
- domHooks: {
103
- root: { attr: "data-component", value: "dashboard-grid" },
104
- instanceId: {
105
- attr: "data-component-id",
106
- sourceProp: "id",
107
- description: "Sourced from the id prop."
108
- },
109
- item: {
110
- attr: "data-widget-id",
111
- description: "Each widget wrapper carries its layout id."
112
- }
113
- }
114
- };
115
- function A(t, s) {
116
- return t.x < s.x + s.w && s.x < t.x + t.w && t.y < s.y + s.h && s.y < t.y + t.h;
117
- }
118
- function J(t, s) {
119
- const n = Math.max(1, t.minW ?? 1), g = Math.max(1, t.minH ?? 1), f = Math.min(s, t.maxW ?? s), c = t.maxH ?? Number.POSITIVE_INFINITY, l = Math.min(Math.max(t.w, n), f), o = Math.min(Math.max(t.h, g), c), i = Math.min(Math.max(0, t.x), s - l), m = Math.max(0, t.y);
120
- return { ...t, x: i, y: m, w: l, h: o };
121
- }
122
- function T(t, s, n) {
123
- const g = t.map((i) => J(i, s)), f = [...g].sort((i, m) => i.id === n ? -1 : m.id === n ? 1 : i.y - m.y || i.x - m.x), c = [], l = n ? g.find((i) => i.id === n) : void 0;
124
- for (const i of f) {
125
- if (i.id !== n) {
126
- if (l && A(l, i)) {
127
- const m = { ...i, y: Math.max(0, l.y - i.h) };
128
- !A(l, m) && !c.some((y) => y.id !== n && A(y, m)) && (i.y = m.y);
129
- }
130
- for (; c.some((m) => A(m, i)); )
131
- i.y += 1;
132
- for (; i.y > 0; ) {
133
- const m = { ...i, y: i.y - 1 };
134
- if (c.some((y) => A(y, m))) break;
135
- i.y -= 1;
136
- }
137
- }
138
- c.push(i);
139
- }
140
- const o = new Map(c.map((i) => [i.id, i]));
141
- return t.map((i) => o.get(i.id));
142
- }
143
- function te(t, s, n, g, f) {
144
- const c = t.map(
145
- (l) => l.id === s ? J({ ...l, x: n, y: g }, f) : l
146
- );
147
- return T(c, f, s);
148
- }
149
- function ne(t, s, n, g, f) {
150
- const c = t.map(
151
- (l) => l.id === s ? (
152
- // Resizing never moves the widget: the width clamps to the space
153
- // between its position and the grid edge (clampRect would slide it).
154
- // minW wins over the edge clamp so clampRect cannot re-raise w and
155
- // slide x as a side effect.
156
- J(
157
- {
158
- ...l,
159
- w: Math.max(l.minW ?? 1, Math.min(n, f - l.x)),
160
- h: g
161
- },
162
- f
163
- )
164
- ) : l
165
- );
166
- return T(c, f, s);
167
- }
168
- function xe(t, s, n, g) {
169
- const f = Math.min(Math.max(1, n), s), c = t.reduce((l, o) => Math.max(l, o.y + o.h), 0);
170
- for (let l = 0; l <= c; l += 1)
171
- for (let o = 0; o <= s - f; o += 1) {
172
- const i = {
173
- x: o,
174
- y: l,
175
- w: f,
176
- h: g
177
- };
178
- if (!t.some((m) => A(m, i)))
179
- return { x: o, y: l };
180
- }
181
- return { x: 0, y: c };
182
- }
183
- function Xe(t) {
184
- return t.reduce((s, n) => Math.max(s, n.y + n.h), 0);
185
- }
186
- const Ue = Ge(
187
- [
188
- "ds:grid ds:w-full",
189
- "ds:gap-[var(--spacing-md)]",
190
- "ds:[grid-template-columns:repeat(var(--dg-cols),minmax(0,1fr))]",
191
- "ds:[grid-auto-rows:var(--dg-row)]",
192
- // Edit-mode surface: tint the whole plane, draw faint cell lines, and
193
- // reserve spare rows (--dg-min-block) so the AVAILABLE space reads at
194
- // a glance instead of the board ending at the last occupied row.
195
- "ds:data-[editing=true]:rounded-[var(--radius-lg)] ds:data-[editing=true]:bg-muted/10",
196
- "ds:data-[editing=true]:[background-image:var(--dg-grid-lines)]",
197
- "ds:data-[editing=true]:min-h-[var(--dg-min-block)]"
198
- ].join(" "),
199
- { variants: {}, defaultVariants: {} }
200
- ), Je = Ge(
201
- [
202
- "ds:relative ds:flex ds:min-h-0 ds:min-w-0 ds:flex-col ds:overflow-hidden",
203
- // Mirror of Card variant="elevated" so widgets read as kit cards.
204
- "ds:rounded-[var(--radius-lg)] ds:bg-[var(--card)] ds:text-[var(--card-foreground)]",
205
- "ds:[:where(&)]:border-[length:var(--surface-border-width,var(--border-width-sm))] ds:border-[color:var(--card-border)] ds:shadow-[var(--shadow-card)]",
206
- "ds:[grid-column-start:var(--dg-x)] ds:[grid-column-end:span_var(--dg-w)]",
207
- "ds:[grid-row-start:var(--dg-y)] ds:[grid-row-end:span_var(--dg-h)]",
208
- // Grabbed feedback (keyboard or pointer drag in flight).
209
- "ds:data-[grabbed=true]:ring-[length:var(--focus-ring-width)] ds:data-[grabbed=true]:ring-ring ds:data-[grabbed=true]:z-10"
210
- ].join(" "),
211
- { variants: {}, defaultVariants: {} }
212
- ), Me = Fe(
213
- null
214
- );
215
- function ae(t, s) {
216
- Ie.forEach(t, (n) => {
217
- if (Ae(n)) {
218
- if (n.type === je) {
219
- ae(
220
- n.props.children,
221
- s
222
- );
223
- return;
224
- }
225
- s(n);
226
- }
227
- });
228
- }
229
- function Se({
230
- id: t,
231
- title: s,
232
- actionsSlot: n,
233
- children: g
234
- }) {
235
- var y, V, B;
236
- const { t: f } = ke("ui"), c = $e(Me), l = S(null), o = c == null ? void 0 : c.layoutById.get(t);
237
- if (U(() => {
238
- const p = l.current;
239
- !p || !o || (p.style.setProperty("--dg-x", String(o.x + 1)), p.style.setProperty("--dg-y", String(o.y + 1)), p.style.setProperty("--dg-w", String(o.w)), p.style.setProperty("--dg-h", String(o.h)));
240
- }, [o == null ? void 0 : o.x, o == null ? void 0 : o.y, o == null ? void 0 : o.w, o == null ? void 0 : o.h, o]), !c || !o) return null;
241
- const i = ((y = c.grab) == null ? void 0 : y.id) === t, m = c.editing;
242
- return /* @__PURE__ */ _(
243
- "div",
244
- {
245
- ref: l,
246
- role: "listitem",
247
- "aria-label": s,
248
- "data-component": "dashboard-grid-widget",
249
- "data-widget-id": t,
250
- "data-grabbed": i || void 0,
251
- className: Je(),
252
- children: [
253
- /* @__PURE__ */ _("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)] ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] ds:pt-[var(--spacing-sm)]", children: [
254
- m ? /* @__PURE__ */ w(
255
- re,
256
- {
257
- size: "sm",
258
- intent: "outline",
259
- type: "button",
260
- icon: /* @__PURE__ */ w(Ve, {}),
261
- "aria-label": f("dashboardGrid.move", { title: s }),
262
- "aria-pressed": i && ((V = c.grab) == null ? void 0 : V.kind) === "move",
263
- className: "ds:cursor-grab ds:touch-none ds:bg-[var(--card)]",
264
- onPointerDown: (p) => c.startPointerGrab("move", t, p),
265
- onKeyDown: (p) => c.keyboardStep(p, t),
266
- onClick: () => c.startKeyboardGrab("move", t)
267
- }
268
- ) : null,
269
- /* @__PURE__ */ w("span", { className: "ds:min-w-0 ds:flex-1 ds:truncate ds:text-sm ds:font-medium", children: s }),
270
- n,
271
- m && c.canRemove ? /* @__PURE__ */ w(
272
- re,
273
- {
274
- size: "sm",
275
- intent: "outline",
276
- type: "button",
277
- icon: /* @__PURE__ */ w(Be, {}),
278
- className: "ds:bg-[var(--card)]",
279
- "aria-label": f("dashboardGrid.remove", { title: s }),
280
- onClick: () => c.requestRemove(t)
281
- }
282
- ) : null
283
- ] }),
284
- /* @__PURE__ */ w("div", { className: "ds:min-h-0 ds:flex-1 ds:overflow-hidden ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)] ds:pb-[var(--spacing-md)] ds:pt-[var(--spacing-xs)]", children: g }),
285
- m ? /* @__PURE__ */ w("span", { className: "ds:absolute ds:bottom-[var(--spacing-sm)] ds:end-[var(--spacing-sm)]", children: /* @__PURE__ */ w(
286
- re,
287
- {
288
- size: "sm",
289
- intent: "outline",
290
- type: "button",
291
- icon: /* @__PURE__ */ w(qe, {}),
292
- flipIconInRtl: !0,
293
- "aria-label": f("dashboardGrid.resize", { title: s }),
294
- "aria-pressed": i && ((B = c.grab) == null ? void 0 : B.kind) === "resize",
295
- className: "ds:touch-none ds:bg-[var(--card)]",
296
- onPointerDown: (p) => c.startPointerGrab("resize", t, p),
297
- onKeyDown: (p) => c.keyboardStep(p, t),
298
- onClick: () => c.startKeyboardGrab("resize", t)
299
- }
300
- ) }) : null
301
- ]
302
- }
303
- );
304
- }
305
- Se.displayName = "DashboardGrid.Widget";
306
- const Ne = Te(
307
- ({
308
- "aria-label": t,
309
- id: s,
310
- cols: n = 12,
311
- rowHeight: g = 96,
312
- layout: f,
313
- defaultLayout: c,
314
- onLayoutChange: l,
315
- editing: o = !1,
316
- onRemoveWidget: i,
317
- onRequestAdd: m,
318
- children: y,
319
- className: V
320
- }, B) => {
321
- const { t: p } = ke("ui"), N = S(null), oe = L(() => {
322
- const e = [];
323
- return ae(y, (r) => {
324
- r.props.id && e.push(r.props.id);
325
- }), e;
326
- }, [y]), se = L(() => {
327
- const e = /* @__PURE__ */ new Map();
328
- return ae(y, (r) => {
329
- r.props.id && e.set(r.props.id, {
330
- defaultW: r.props.defaultW ?? 4,
331
- defaultH: r.props.defaultH ?? 2
332
- });
333
- }), e;
334
- }, [y]), [Pe, De] = O(() => c ?? []), ie = f ?? Pe, P = D(
335
- (e) => {
336
- f === void 0 && De(e), l == null || l(e);
337
- },
338
- [f, l]
339
- ), { resolved: v, autoPlaced: de } = L(() => {
340
- const e = ie.map((u) => J(u, n)), r = oe.filter(
341
- (u) => !e.some((d) => d.id === u)
342
- );
343
- if (r.length === 0)
344
- return { resolved: e, autoPlaced: !1 };
345
- const a = [...e];
346
- for (const u of r) {
347
- const d = se.get(u) ?? { defaultW: 4, defaultH: 2 }, b = Math.min(d.defaultW, n), h = xe(a, n, b, d.defaultH);
348
- a.push({ id: u, x: h.x, y: h.y, w: b, h: d.defaultH });
349
- }
350
- return { resolved: T(a, n), autoPlaced: !0 };
351
- }, [ie, oe, se, n]), ce = S("");
352
- X(() => {
353
- if (!de) return;
354
- const e = v.map(
355
- (r) => `${r.id}:${r.x},${r.y},${r.w},${r.h}`
356
- ).join("|");
357
- ce.current !== e && (ce.current = e, P(v));
358
- }, [de, v, P]);
359
- const [Re, Ce] = O(null), [k, ue] = O(null), [Ee, W] = O(""), Q = S(null), C = S(null), j = S(null), H = S(!1), F = S(n);
360
- F.current = n;
361
- const $ = S(v);
362
- $.current = v;
363
- const R = D((e) => {
364
- Q.current = e, Ce(e);
365
- }, []), Y = D(
366
- (e, r, a) => {
367
- const u = { kind: e, id: r, via: a };
368
- C.current = { ...u, baseLayout: $.current }, ue(u), R($.current);
369
- },
370
- [R]
371
- ), K = Re ?? v, le = L(
372
- () => new Map(K.map((e) => [e.id, e])),
373
- [K]
374
- ), pe = D(
375
- (e, r) => {
376
- W(
377
- e === "move" ? p("dashboardGrid.movedTo", { col: r.x + 1, row: r.y + 1 }) : p("dashboardGrid.resizedTo", { cols: r.w, rows: r.h })
378
- );
379
- },
380
- [p]
381
- ), x = D(
382
- (e) => {
383
- const r = Q.current, a = C.current;
384
- if (C.current = null, j.current = null, ue(null), R(null), !e || !r || !a) {
385
- W(p("dashboardGrid.cancelled"));
386
- return;
387
- }
388
- const u = T(r, F.current), d = (h) => h.map((G) => `${G.id}:${G.x},${G.y},${G.w},${G.h}`).join("|");
389
- if (d(u) === d($.current)) {
390
- W(p("dashboardGrid.cancelled"));
391
- return;
392
- }
393
- P(u);
394
- const b = u.find((h) => h.id === a.id);
395
- W(
396
- b ? p("dashboardGrid.droppedAt", {
397
- col: b.x + 1,
398
- row: b.y + 1
399
- }) : p("dashboardGrid.cancelled")
400
- );
401
- },
402
- [R, P, p]
403
- ), me = D(
404
- (e, r) => {
405
- if (!o) return;
406
- if (H.current) {
407
- H.current = !1;
408
- return;
409
- }
410
- const a = C.current;
411
- if ((a == null ? void 0 : a.via) !== "pointer") {
412
- if (a && a.id === r && a.kind === e) {
413
- x(!0);
414
- return;
415
- }
416
- Y(e, r, "keyboard"), W(
417
- p(e === "move" ? "dashboardGrid.grabbed" : "dashboardGrid.resizeGrabbed")
418
- );
419
- }
420
- },
421
- [o, Y, x, p]
422
- ), fe = D(
423
- (e, r) => {
424
- const a = C.current;
425
- if (!a || a.id !== r || a.via !== "keyboard")
426
- return;
427
- if (e.key === "Escape") {
428
- e.preventDefault(), x(!1);
429
- return;
430
- }
431
- if (!["ArrowLeft", "ArrowRight", "ArrowUp", "ArrowDown"].includes(e.key)) return;
432
- e.preventDefault();
433
- const d = typeof window < "u" && N.current ? window.getComputedStyle(N.current).direction === "rtl" : !1, b = e.key === "ArrowRight" ? d ? -1 : 1 : e.key === "ArrowLeft" ? d ? 1 : -1 : 0, h = e.key === "ArrowDown" ? 1 : e.key === "ArrowUp" ? -1 : 0, M = (Q.current ?? a.baseLayout).find((I) => I.id === r);
434
- if (!M) return;
435
- const E = a.kind === "move" ? te(
436
- a.baseLayout,
437
- r,
438
- M.x + b,
439
- M.y + h,
440
- n
441
- ) : ne(
442
- a.baseLayout,
443
- r,
444
- M.w + b,
445
- M.h + h,
446
- n
447
- );
448
- R(E);
449
- const z = E.find((I) => I.id === r);
450
- z && pe(a.kind, z);
451
- },
452
- [n, x, R, pe]
453
- ), ge = D(
454
- (e, r, a) => {
455
- var z, I, we, ve;
456
- if (!o || C.current) return;
457
- const u = N.current, d = $.current.find((Le) => Le.id === r);
458
- if (!u || !d) return;
459
- a.preventDefault(), (I = (z = a.currentTarget).focus) == null || I.call(z);
460
- const b = u.getBoundingClientRect();
461
- if (b.width <= 0) return;
462
- const h = window.getComputedStyle(u), G = Number.parseFloat(h.columnGap) || 0, M = Number.parseFloat(h.rowGap) || 0, E = (b.width - G * (n - 1)) / n;
463
- j.current = {
464
- kind: e,
465
- id: r,
466
- pointerId: a.pointerId,
467
- startClientX: a.clientX,
468
- startClientY: a.clientY,
469
- origin: d,
470
- colStride: E + G,
471
- rowStride: g + M,
472
- isRtl: h.direction === "rtl"
473
- };
474
- try {
475
- (ve = (we = a.currentTarget).setPointerCapture) == null || ve.call(we, a.pointerId);
476
- } catch {
477
- }
478
- Y(e, r, "pointer");
479
- },
480
- [o, n, g, Y]
481
- );
482
- X(() => {
483
- if (!k || k.via !== "pointer") return;
484
- const e = (u) => {
485
- const d = j.current, b = C.current;
486
- if (!d || !b || u.pointerId !== d.pointerId)
487
- return;
488
- const h = u.clientX - d.startClientX, G = u.clientY - d.startClientY, M = Math.round(h / d.colStride) * (d.isRtl ? -1 : 1), E = Math.round(G / d.rowStride), z = d.kind === "move" ? te(
489
- b.baseLayout,
490
- d.id,
491
- d.origin.x + M,
492
- d.origin.y + E,
493
- F.current
494
- ) : ne(
495
- b.baseLayout,
496
- d.id,
497
- d.origin.w + M,
498
- d.origin.h + E,
499
- F.current
500
- );
501
- R(z);
502
- }, r = (u) => {
503
- const d = j.current;
504
- !d || u.pointerId !== d.pointerId || (H.current = !0, x(!0));
505
- }, a = (u) => {
506
- const d = j.current;
507
- !d || u.pointerId !== d.pointerId || (H.current = !0, x(!1));
508
- };
509
- return window.addEventListener("pointermove", e), window.addEventListener("pointerup", r), window.addEventListener("pointercancel", a), () => {
510
- window.removeEventListener("pointermove", e), window.removeEventListener("pointerup", r), window.removeEventListener("pointercancel", a);
511
- };
512
- }, [k, x, R]), X(() => {
513
- if (!k) return;
514
- const e = (r) => {
515
- r.key === "Escape" && x(!1);
516
- };
517
- return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
518
- }, [k, x]), X(() => {
519
- if (!k || k.via !== "keyboard") return;
520
- const e = (a) => {
521
- var d;
522
- const u = a.relatedTarget;
523
- (!u || !((d = N.current) != null && d.contains(u))) && x(!1);
524
- }, r = N.current;
525
- return r == null || r.addEventListener("focusout", e), () => r == null ? void 0 : r.removeEventListener("focusout", e);
526
- }, [k, x]), U(() => {
527
- const e = N.current;
528
- e && (e.style.setProperty("--dg-cols", String(n)), e.style.setProperty("--dg-row", `${g}px`));
529
- }, [n, g]);
530
- const be = Xe(K);
531
- U(() => {
532
- const e = N.current;
533
- e && (e.style.setProperty(
534
- "--dg-grid-lines",
535
- `repeating-linear-gradient(to right, color-mix(in srgb, var(--border) 50%, transparent) 0 1px, transparent 1px calc((100% + var(--spacing-md)) / ${n})), repeating-linear-gradient(to bottom, color-mix(in srgb, var(--border) 50%, transparent) 0 1px, transparent 1px calc(${g}px + var(--spacing-md)))`
536
- ), e.style.setProperty(
537
- "--dg-min-block",
538
- `calc(${be + 2} * (${g}px + var(--spacing-md)) - var(--spacing-md))`
539
- ));
540
- }, [n, g, be]);
541
- const he = S(null), Z = o && !!m, q = L(
542
- () => Z ? xe(K, n, 2, 2) : null,
543
- [Z, K, n]
544
- );
545
- U(() => {
546
- const e = he.current;
547
- !e || !q || (e.style.setProperty("--dg-x", String(q.x + 1)), e.style.setProperty("--dg-y", String(q.y + 1)), e.style.setProperty("--dg-w", "2"), e.style.setProperty("--dg-h", "2"));
548
- }, [q]);
549
- const ye = D(
550
- (e) => {
551
- P(
552
- T(
553
- $.current.filter((r) => r.id !== e),
554
- F.current
555
- )
556
- ), W(p("dashboardGrid.removed")), i == null || i(e), requestAnimationFrame(() => {
557
- const r = N.current;
558
- if (!r) return;
559
- const a = r.querySelector("button");
560
- a ? a.focus() : r.focus();
561
- });
562
- },
563
- [P, i, p]
564
- ), ee = L(
565
- () => ({
566
- moveWidgetTo(e, r, a) {
567
- return !o || !Number.isFinite(r) || !Number.isFinite(a) || !v.some((u) => u.id === e) ? !1 : (P(
568
- T(
569
- te(v, e, Math.round(r), Math.round(a), n),
570
- n
571
- )
572
- ), !0);
573
- },
574
- resizeWidgetTo(e, r, a) {
575
- return !o || !Number.isFinite(r) || !Number.isFinite(a) || !v.some((u) => u.id === e) ? !1 : (P(
576
- T(
577
- ne(
578
- v,
579
- e,
580
- Math.round(r),
581
- Math.round(a),
582
- n
583
- ),
584
- n
585
- )
586
- ), !0);
587
- },
588
- getGridState() {
589
- return {
590
- cols: n,
591
- editing: o,
592
- layout: v.map((e) => ({ ...e }))
593
- };
594
- }
595
- }),
596
- [o, v, n, P]
597
- );
598
- We(B, () => ee, [ee]), Ke(Oe, ee, s);
599
- const ze = L(
600
- () => ({
601
- editing: o,
602
- layoutById: le,
603
- grab: k,
604
- canRemove: !!i,
605
- requestRemove: ye,
606
- startKeyboardGrab: me,
607
- keyboardStep: fe,
608
- startPointerGrab: ge
609
- }),
610
- [
611
- o,
612
- le,
613
- k,
614
- i,
615
- ye,
616
- me,
617
- fe,
618
- ge
619
- ]
620
- );
621
- return /* @__PURE__ */ _(
622
- "div",
623
- {
624
- "data-component": "dashboard-grid",
625
- "data-component-id": s,
626
- "data-editing": o || void 0,
627
- className: `ds:block ds:w-full ${V ?? ""}`.trim(),
628
- children: [
629
- /* @__PURE__ */ w("div", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: Ee }),
630
- /* @__PURE__ */ _(
631
- "div",
632
- {
633
- ref: N,
634
- role: "list",
635
- "aria-label": t,
636
- tabIndex: -1,
637
- "data-editing": o || void 0,
638
- className: Ue(),
639
- children: [
640
- /* @__PURE__ */ w(Me.Provider, { value: ze, children: y }),
641
- Z ? (
642
- // role="list" allows only listitem children — the tile wrapper
643
- // carries the grid placement, the button fills it.
644
- /* @__PURE__ */ w(
645
- "div",
646
- {
647
- ref: he,
648
- role: "listitem",
649
- className: [
650
- "ds:flex",
651
- "ds:[grid-column-start:var(--dg-x)] ds:[grid-column-end:span_var(--dg-w)]",
652
- "ds:[grid-row-start:var(--dg-y)] ds:[grid-row-end:span_var(--dg-h)]"
653
- ].join(" "),
654
- children: /* @__PURE__ */ _(
655
- "button",
656
- {
657
- type: "button",
658
- onClick: m,
659
- className: [
660
- "ds:flex ds:flex-1 ds:items-center ds:justify-center ds:gap-[var(--spacing-xs)]",
661
- "ds:rounded-[var(--radius-lg)] ds:border ds:border-dashed ds:border-border",
662
- "ds:text-sm ds:text-muted-foreground ds:transition-colors",
663
- "ds:hover:bg-muted/10 ds:hover:text-foreground",
664
- "ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid ds:focus-visible:outline-ring"
665
- ].join(" "),
666
- children: [
667
- /* @__PURE__ */ w(_e, { "aria-hidden": "true", className: "ds:size-4" }),
668
- p("dashboardGrid.add")
669
- ]
670
- }
671
- )
672
- }
673
- )
674
- ) : null
675
- ]
676
- }
677
- )
678
- ]
679
- }
680
- );
681
- }
682
- );
683
- Ne.displayName = "DashboardGrid";
684
- const cr = Object.assign(Ne, {
685
- Widget: Se
686
- });
687
- export {
688
- cr as D,
689
- Oe as d
690
- };
691
- //# sourceMappingURL=dashboard-grid-SAGoyCtL.js.map