@alfadocs/ui-kit-debug 1.3.13 → 1.4.1
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.
- package/dist/_chunks/agenda-card.agent-Cb5tuEh3.js +28 -0
- package/dist/_chunks/agenda-card.agent-Cb5tuEh3.js.map +1 -0
- package/dist/_chunks/{alia-sidebar-DzNz1gDf.js → alia-sidebar-DSBZMick.js} +3 -3
- package/dist/_chunks/{alia-sidebar-DzNz1gDf.js.map → alia-sidebar-DSBZMick.js.map} +1 -1
- package/dist/_chunks/{anamnesis-i18n-CfC0qYzy.js → anamnesis-i18n-DZcrt8dP.js} +2141 -2069
- package/dist/_chunks/anamnesis-i18n-DZcrt8dP.js.map +1 -0
- package/dist/_chunks/{antenatal-schedule-timeline-BMMpi2lb.js → antenatal-schedule-timeline-u8TsS2QJ.js} +27 -26
- package/dist/_chunks/{antenatal-schedule-timeline-BMMpi2lb.js.map → antenatal-schedule-timeline-u8TsS2QJ.js.map} +1 -1
- package/dist/_chunks/{appointment-timeline-B630OT_J.js → appointment-timeline-Bqf1sTU5.js} +2 -2
- package/dist/_chunks/{appointment-timeline-B630OT_J.js.map → appointment-timeline-Bqf1sTU5.js.map} +1 -1
- package/dist/_chunks/{ar-THMLfSoN.js → ar-BR1FGFP2.js} +14 -14
- package/dist/_chunks/{ar-THMLfSoN.js.map → ar-BR1FGFP2.js.map} +1 -1
- package/dist/_chunks/{bmi-calculator-CM0-G2mg.js → bmi-calculator-CpyY13MV.js} +2 -2
- package/dist/_chunks/{bmi-calculator-CM0-G2mg.js.map → bmi-calculator-CpyY13MV.js.map} +1 -1
- package/dist/_chunks/{booking-DjNbd7C1.js → booking-BjsA7j1-.js} +699 -688
- package/dist/_chunks/booking-BjsA7j1-.js.map +1 -0
- package/dist/_chunks/calculator-dialog-12d3Sxaz.js +48 -0
- package/dist/_chunks/{calculator-dialog-DuXMQSdm.js.map → calculator-dialog-12d3Sxaz.js.map} +1 -1
- package/dist/_chunks/{care-plan-card-1G_f4I5s.js → care-plan-card-BvQy366X.js} +3 -3
- package/dist/_chunks/{care-plan-card-1G_f4I5s.js.map → care-plan-card-BvQy366X.js.map} +1 -1
- package/dist/_chunks/{care-plan-entry-card-DmBsffHS.js → care-plan-entry-card-apk_5B3O.js} +2 -2
- package/dist/_chunks/{care-plan-entry-card-DmBsffHS.js.map → care-plan-entry-card-apk_5B3O.js.map} +1 -1
- package/dist/_chunks/{chat-container-HlFnoEIl.js → chat-container-CYYego1W.js} +105 -81
- package/dist/_chunks/chat-container-CYYego1W.js.map +1 -0
- package/dist/_chunks/cycle-calculator-B7fyH-h4.js +425 -0
- package/dist/_chunks/cycle-calculator-B7fyH-h4.js.map +1 -0
- package/dist/_chunks/{date-picker-ZHejTVAJ.js → date-picker-Bp64zk2p.js} +19 -19
- package/dist/_chunks/{date-picker-ZHejTVAJ.js.map → date-picker-Bp64zk2p.js.map} +1 -1
- package/dist/_chunks/date-picker-variants-pKAJfnWr.js +2089 -0
- package/dist/_chunks/date-picker-variants-pKAJfnWr.js.map +1 -0
- package/dist/_chunks/{date-range-picker-pEG3Ln3i.js → date-range-picker-CDrZ8Zh0.js} +27 -27
- package/dist/_chunks/{date-range-picker-pEG3Ln3i.js.map → date-range-picker-CDrZ8Zh0.js.map} +1 -1
- package/dist/_chunks/{date-time-picker-695QvBGj.js → date-time-picker-DafkGDGO.js} +10 -10
- package/dist/_chunks/{date-time-picker-695QvBGj.js.map → date-time-picker-DafkGDGO.js.map} +1 -1
- package/dist/_chunks/{de-DmZ-8rTN.js → de-3iM4rGqo.js} +7 -7
- package/dist/_chunks/{de-DmZ-8rTN.js.map → de-3iM4rGqo.js.map} +1 -1
- package/dist/_chunks/{document-preview-D3gg4MXB.js → document-preview-DOrsqiN1.js} +2 -2
- package/dist/_chunks/{document-preview-D3gg4MXB.js.map → document-preview-DOrsqiN1.js.map} +1 -1
- package/dist/_chunks/due-date-calculator-CnkbbAej.js +571 -0
- package/dist/_chunks/due-date-calculator-CnkbbAej.js.map +1 -0
- package/dist/_chunks/{editor-overlay-DE3esyio.js → editor-overlay-B1tr2i7B.js} +22 -21
- package/dist/_chunks/editor-overlay-B1tr2i7B.js.map +1 -0
- package/dist/_chunks/{el-Bela9mxs.js → el-C96rGJvU.js} +2 -2
- package/dist/_chunks/{el-Bela9mxs.js.map → el-C96rGJvU.js.map} +1 -1
- package/dist/_chunks/{es-BNncHKex.js → es-Cxiqjx8r.js} +12 -12
- package/dist/_chunks/{es-BNncHKex.js.map → es-Cxiqjx8r.js.map} +1 -1
- package/dist/_chunks/fetal-weight-avlj-l-S.js +223 -0
- package/dist/_chunks/fetal-weight-avlj-l-S.js.map +1 -0
- package/dist/_chunks/format-4HNwNGrN.js +1315 -0
- package/dist/_chunks/format-4HNwNGrN.js.map +1 -0
- package/dist/_chunks/{fr-CH8ADfhN.js → fr-Bhr6SYKj.js} +21 -21
- package/dist/_chunks/{fr-CH8ADfhN.js.map → fr-Bhr6SYKj.js.map} +1 -1
- package/dist/_chunks/{freemium-paywall-C_Ue6wxU.js → freemium-paywall-DRDdWuOg.js} +3 -3
- package/dist/_chunks/{freemium-paywall-C_Ue6wxU.js.map → freemium-paywall-DRDdWuOg.js.map} +1 -1
- package/dist/_chunks/gestational-age-calculator-BljY_DVJ.js +488 -0
- package/dist/_chunks/gestational-age-calculator-BljY_DVJ.js.map +1 -0
- package/dist/_chunks/hcg-doubling-Cv_vH61p.js +312 -0
- package/dist/_chunks/hcg-doubling-Cv_vH61p.js.map +1 -0
- package/dist/_chunks/header-settings-Cn5fPXCE.js +335 -0
- package/dist/_chunks/header-settings-Cn5fPXCE.js.map +1 -0
- package/dist/_chunks/{hi-Bppfxp8l.js → hi-BxXX26d_.js} +12 -12
- package/dist/_chunks/{hi-Bppfxp8l.js.map → hi-BxXX26d_.js.map} +1 -1
- package/dist/_chunks/isSameWeek-B73MagWB.js +13 -0
- package/dist/_chunks/{isSameWeek-CK4HS9lH.js.map → isSameWeek-B73MagWB.js.map} +1 -1
- package/dist/_chunks/{it-B4ySaRyK.js → it-Xmjomvyj.js} +24 -24
- package/dist/_chunks/{it-B4ySaRyK.js.map → it-Xmjomvyj.js.map} +1 -1
- package/dist/_chunks/{ja-CGF6Io9P.js → ja-mfZvt1ZV.js} +16 -16
- package/dist/_chunks/{ja-CGF6Io9P.js.map → ja-mfZvt1ZV.js.map} +1 -1
- package/dist/_chunks/{link-cell-renderer-C5XLwVXQ.js → link-cell-renderer-CJ_gk7gl.js} +3 -3
- package/dist/_chunks/{link-cell-renderer-C5XLwVXQ.js.map → link-cell-renderer-CJ_gk7gl.js.map} +1 -1
- package/dist/_chunks/{locale-picker-BfBUdT1m.js → locale-picker-D9Kv2zrK.js} +153 -132
- package/dist/_chunks/locale-picker-D9Kv2zrK.js.map +1 -0
- package/dist/_chunks/map-view-2yZCQW2l.js +445 -0
- package/dist/_chunks/map-view-2yZCQW2l.js.map +1 -0
- package/dist/_chunks/{marketplace-app-shell-DwcFMxzp.js → marketplace-app-shell-BLRvg-M0.js} +49 -40
- package/dist/_chunks/marketplace-app-shell-BLRvg-M0.js.map +1 -0
- package/dist/_chunks/{nl-DuShqwuV.js → nl-DDs-KEnD.js} +15 -15
- package/dist/_chunks/{nl-DuShqwuV.js.map → nl-DDs-KEnD.js.map} +1 -1
- package/dist/_chunks/{notes-panel-DPsgB4Mv.js → notes-panel-CiFN3sLW.js} +2 -2
- package/dist/_chunks/{notes-panel-DPsgB4Mv.js.map → notes-panel-CiFN3sLW.js.map} +1 -1
- package/dist/_chunks/{number-input-DrozbZAU.js → number-input-DOe5VYei.js} +64 -64
- package/dist/_chunks/number-input-DOe5VYei.js.map +1 -0
- package/dist/_chunks/{optical-prescription-BDHJr8Zz.js → optical-prescription-CRemE8fL.js} +2 -2
- package/dist/_chunks/{optical-prescription-BDHJr8Zz.js.map → optical-prescription-CRemE8fL.js.map} +1 -1
- package/dist/_chunks/{parse-DvA97ro9.js → parse-JqixfsU0.js} +43 -43
- package/dist/_chunks/{parse-DvA97ro9.js.map → parse-JqixfsU0.js.map} +1 -1
- package/dist/_chunks/parseISO-fOGpHKXm.js +120 -0
- package/dist/_chunks/parseISO-fOGpHKXm.js.map +1 -0
- package/dist/_chunks/{patient-details-DqjjwPmt.js → patient-details-CpunD0qx.js} +3 -3
- package/dist/_chunks/{patient-details-DqjjwPmt.js.map → patient-details-CpunD0qx.js.map} +1 -1
- package/dist/_chunks/{patient-table-BmIDrLIS.js → patient-table-2eWx-Rrk.js} +2 -2
- package/dist/_chunks/{patient-table-BmIDrLIS.js.map → patient-table-2eWx-Rrk.js.map} +1 -1
- package/dist/_chunks/{payment-form-h-BZ8onk.js → payment-form-Ds1I9KqB.js} +308 -231
- package/dist/_chunks/payment-form-Ds1I9KqB.js.map +1 -0
- package/dist/_chunks/{pdf-viewer-Ddx-T053.js → pdf-viewer-DUIsV9s5.js} +429 -369
- package/dist/_chunks/pdf-viewer-DUIsV9s5.js.map +1 -0
- package/dist/_chunks/{pl-CKQwX9Fk.js → pl-BYYMnEWP.js} +18 -18
- package/dist/_chunks/{pl-CKQwX9Fk.js.map → pl-BYYMnEWP.js.map} +1 -1
- package/dist/_chunks/{practice-results-B-HPc13W.js → practice-results-SjCniMd2.js} +2 -2
- package/dist/_chunks/{practice-results-B-HPc13W.js.map → practice-results-SjCniMd2.js.map} +1 -1
- package/dist/_chunks/pregnancy-dating-BmpHScZ0.js +770 -0
- package/dist/_chunks/pregnancy-dating-BmpHScZ0.js.map +1 -0
- package/dist/_chunks/pregnancy-weight-gain-B5KSJzdc.js +553 -0
- package/dist/_chunks/pregnancy-weight-gain-B5KSJzdc.js.map +1 -0
- package/dist/_chunks/progress-CK8otcQ-.js +343 -0
- package/dist/_chunks/progress-CK8otcQ-.js.map +1 -0
- package/dist/_chunks/{pt-_njpXyOZ.js → pt-BSPnVrQ7.js} +20 -20
- package/dist/_chunks/{pt-_njpXyOZ.js.map → pt-BSPnVrQ7.js.map} +1 -1
- package/dist/_chunks/{radiograph-panel.agent-BQZ64Riy.js → radiograph-panel.agent-CtFtNMzk.js} +3 -3
- package/dist/_chunks/{radiograph-panel.agent-BQZ64Riy.js.map → radiograph-panel.agent-CtFtNMzk.js.map} +1 -1
- package/dist/_chunks/{rich-text-editor-CfeXPPWs.js → rich-text-editor-BedTpWzL.js} +2 -2
- package/dist/_chunks/{rich-text-editor-CfeXPPWs.js.map → rich-text-editor-BedTpWzL.js.map} +1 -1
- package/dist/_chunks/{ro-3X6_4FcN.js → ro-BbiylGmG.js} +14 -14
- package/dist/_chunks/{ro-3X6_4FcN.js.map → ro-BbiylGmG.js.map} +1 -1
- package/dist/_chunks/{ru-bAcgmnS-.js → ru-BX_qsV67.js} +14 -14
- package/dist/_chunks/{ru-bAcgmnS-.js.map → ru-BX_qsV67.js.map} +1 -1
- package/dist/_chunks/{session-countdown-Bc70VXN1.js → session-countdown-BL-Psg8u.js} +2 -2
- package/dist/_chunks/{session-countdown-Bc70VXN1.js.map → session-countdown-BL-Psg8u.js.map} +1 -1
- package/dist/_chunks/{sign-document-CW_ByDUh.js → sign-document-jF4fZDJ5.js} +2 -2
- package/dist/_chunks/{sign-document-CW_ByDUh.js.map → sign-document-jF4fZDJ5.js.map} +1 -1
- package/dist/_chunks/slot-grid-DNiUcXy2.js +640 -0
- package/dist/_chunks/slot-grid-DNiUcXy2.js.map +1 -0
- package/dist/_chunks/{sparkline-BTY4B5tv.js → sparkline-BmGcEyZO.js} +209 -164
- package/dist/_chunks/sparkline-BmGcEyZO.js.map +1 -0
- package/dist/_chunks/{sq-jYFqr4Ga.js → sq-i9UOk4P7.js} +10 -10
- package/dist/_chunks/{sq-jYFqr4Ga.js.map → sq-i9UOk4P7.js.map} +1 -1
- package/dist/_chunks/subDays-CAUv47M1.js +8 -0
- package/dist/_chunks/{subDays-BcNi04uf.js.map → subDays-CAUv47M1.js.map} +1 -1
- package/dist/_chunks/{sv-BSGEJ-8B.js → sv-CpTdtmDQ.js} +8 -8
- package/dist/_chunks/{sv-BSGEJ-8B.js.map → sv-CpTdtmDQ.js.map} +1 -1
- package/dist/_chunks/{tab-bar-Axhk6xzx.js → tab-bar-BYESZINM.js} +83 -77
- package/dist/_chunks/tab-bar-BYESZINM.js.map +1 -0
- package/dist/_chunks/task-card.agent-CF2N_uu4.js +29 -0
- package/dist/_chunks/task-card.agent-CF2N_uu4.js.map +1 -0
- package/dist/_chunks/{tr-CTpgUtw6.js → tr-DXG2QN1K.js} +17 -17
- package/dist/_chunks/{tr-CTpgUtw6.js.map → tr-DXG2QN1K.js.map} +1 -1
- package/dist/_chunks/{unit-converter-COgkN7YP.js → unit-converter-CHPDuV7W.js} +2 -2
- package/dist/_chunks/{unit-converter-COgkN7YP.js.map → unit-converter-CHPDuV7W.js.map} +1 -1
- package/dist/_chunks/{warning-stack-BtjmJChC.js → warning-stack-B7t_8jRE.js} +42 -37
- package/dist/_chunks/{warning-stack-BtjmJChC.js.map → warning-stack-B7t_8jRE.js.map} +1 -1
- package/dist/_chunks/{zh-CN-BgM0Io2O.js → zh-CN-vPkPEK6H.js} +18 -18
- package/dist/_chunks/{zh-CN-BgM0Io2O.js.map → zh-CN-vPkPEK6H.js.map} +1 -1
- package/dist/agent-catalog.json +6426 -3382
- package/dist/agent-i18n/en.json +234 -15
- package/dist/components/agenda-card/agenda-card.agent.d.ts.map +1 -1
- package/dist/components/agenda-card/index.js +1 -1
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/bmi-calculator/index.js +1 -1
- package/dist/components/booking/booking.d.ts.map +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/calculator-dialog/calculator-dialog.d.ts.map +1 -1
- package/dist/components/calculator-dialog/index.js +1 -1
- package/dist/components/care-plan-card/index.js +1 -1
- package/dist/components/care-plan-entry-card/index.js +1 -1
- package/dist/components/chat-container/chat-container.agent.d.ts.map +1 -1
- package/dist/components/chat-container/chat-container.d.ts +14 -0
- package/dist/components/chat-container/chat-container.d.ts.map +1 -1
- package/dist/components/chat-container/index.js +1 -1
- package/dist/components/cycle-calculator/cycle-calculator.agent.d.ts +4 -0
- package/dist/components/cycle-calculator/cycle-calculator.agent.d.ts.map +1 -0
- package/dist/components/cycle-calculator/cycle-calculator.d.ts +42 -0
- package/dist/components/cycle-calculator/cycle-calculator.d.ts.map +1 -1
- package/dist/components/cycle-calculator/index.d.ts +1 -1
- package/dist/components/cycle-calculator/index.d.ts.map +1 -1
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-time-picker/index.js +1 -1
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/due-date-calculator/due-date-calculator.agent.d.ts +4 -0
- package/dist/components/due-date-calculator/due-date-calculator.agent.d.ts.map +1 -0
- package/dist/components/due-date-calculator/due-date-calculator.d.ts +61 -1
- package/dist/components/due-date-calculator/due-date-calculator.d.ts.map +1 -1
- package/dist/components/due-date-calculator/index.d.ts +1 -1
- package/dist/components/due-date-calculator/index.d.ts.map +1 -1
- package/dist/components/due-date-calculator/index.js +2 -2
- package/dist/components/editor-overlay/editor-overlay.d.ts +7 -1
- package/dist/components/editor-overlay/editor-overlay.d.ts.map +1 -1
- package/dist/components/editor-overlay/index.js +1 -1
- package/dist/components/fetal-weight/fetal-weight.agent.d.ts +4 -0
- package/dist/components/fetal-weight/fetal-weight.agent.d.ts.map +1 -0
- package/dist/components/fetal-weight/fetal-weight.d.ts +26 -0
- package/dist/components/fetal-weight/fetal-weight.d.ts.map +1 -1
- package/dist/components/fetal-weight/index.d.ts +1 -1
- package/dist/components/fetal-weight/index.d.ts.map +1 -1
- package/dist/components/fetal-weight/index.js +1 -1
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/gestational-age-calculator/gestational-age-calculator.agent.d.ts +4 -0
- package/dist/components/gestational-age-calculator/gestational-age-calculator.agent.d.ts.map +1 -0
- package/dist/components/gestational-age-calculator/gestational-age-calculator.d.ts +44 -2
- package/dist/components/gestational-age-calculator/gestational-age-calculator.d.ts.map +1 -1
- package/dist/components/gestational-age-calculator/index.d.ts +1 -1
- package/dist/components/gestational-age-calculator/index.d.ts.map +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/hcg-doubling/hcg-doubling.agent.d.ts +4 -0
- package/dist/components/hcg-doubling/hcg-doubling.agent.d.ts.map +1 -0
- package/dist/components/hcg-doubling/hcg-doubling.d.ts +30 -0
- package/dist/components/hcg-doubling/hcg-doubling.d.ts.map +1 -1
- package/dist/components/hcg-doubling/index.d.ts +1 -1
- package/dist/components/hcg-doubling/index.d.ts.map +1 -1
- package/dist/components/hcg-doubling/index.js +1 -1
- package/dist/components/header-settings/header-settings.agent.d.ts.map +1 -1
- package/dist/components/header-settings/header-settings.d.ts +13 -1
- package/dist/components/header-settings/header-settings.d.ts.map +1 -1
- package/dist/components/header-settings/index.js +1 -1
- package/dist/components/locale-picker/index.js +1 -1
- package/dist/components/locale-picker/locale-picker.agent.d.ts.map +1 -1
- package/dist/components/locale-picker/locale-picker.d.ts +9 -0
- package/dist/components/locale-picker/locale-picker.d.ts.map +1 -1
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/map-view/map-view.agent.d.ts.map +1 -1
- package/dist/components/map-view/map-view.d.ts +22 -0
- package/dist/components/map-view/map-view.d.ts.map +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/number-input/number-input.d.ts +2 -1
- package/dist/components/number-input/number-input.d.ts.map +1 -1
- package/dist/components/optical-prescription/index.js +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/payment-form/index.d.ts +1 -1
- package/dist/components/payment-form/index.d.ts.map +1 -1
- package/dist/components/payment-form/index.js +1 -1
- package/dist/components/payment-form/payment-form.agent.d.ts.map +1 -1
- package/dist/components/payment-form/payment-form.d.ts +32 -1
- package/dist/components/payment-form/payment-form.d.ts.map +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/pdf-viewer/pdf-viewer.agent.d.ts.map +1 -1
- package/dist/components/pdf-viewer/pdf-viewer.d.ts +13 -0
- package/dist/components/pdf-viewer/pdf-viewer.d.ts.map +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/pregnancy-dating/index.d.ts +1 -1
- package/dist/components/pregnancy-dating/index.d.ts.map +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/pregnancy-dating/pregnancy-dating.agent.d.ts +4 -0
- package/dist/components/pregnancy-dating/pregnancy-dating.agent.d.ts.map +1 -0
- package/dist/components/pregnancy-dating/pregnancy-dating.d.ts +65 -1
- package/dist/components/pregnancy-dating/pregnancy-dating.d.ts.map +1 -1
- package/dist/components/pregnancy-weight-gain/index.d.ts +2 -1
- package/dist/components/pregnancy-weight-gain/index.d.ts.map +1 -1
- package/dist/components/pregnancy-weight-gain/index.js +6 -5
- package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.agent.d.ts +4 -0
- package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.agent.d.ts.map +1 -0
- package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.d.ts +35 -0
- package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.d.ts.map +1 -1
- package/dist/components/progress/index.js +1 -1
- package/dist/components/progress/progress.agent.d.ts.map +1 -1
- package/dist/components/progress/progress.d.ts +13 -0
- package/dist/components/progress/progress.d.ts.map +1 -1
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/session-countdown/index.js +1 -1
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/slot-grid/index.d.ts +2 -1
- package/dist/components/slot-grid/index.d.ts.map +1 -1
- package/dist/components/slot-grid/index.js +5 -4
- package/dist/components/slot-grid/slot-grid.agent.d.ts +4 -0
- package/dist/components/slot-grid/slot-grid.agent.d.ts.map +1 -0
- package/dist/components/slot-grid/slot-grid.d.ts +34 -0
- package/dist/components/slot-grid/slot-grid.d.ts.map +1 -1
- package/dist/components/sparkline/index.js +1 -1
- package/dist/components/sparkline/sparkline.agent.d.ts.map +1 -1
- package/dist/components/sparkline/sparkline.d.ts +10 -0
- package/dist/components/sparkline/sparkline.d.ts.map +1 -1
- package/dist/components/tab-bar/index.js +1 -1
- package/dist/components/tab-bar/tab-bar.d.ts +13 -0
- package/dist/components/tab-bar/tab-bar.d.ts.map +1 -1
- package/dist/components/task-card/index.js +1 -1
- package/dist/components/task-card/task-card.agent.d.ts.map +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/warning-stack/index.js +1 -1
- package/dist/components/warning-stack/warning-stack.d.ts.map +1 -1
- package/dist/index.js +630 -627
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/anamnesis/anamnesis-compare-panel.d.ts.map +1 -1
- package/dist/patterns/anamnesis/anamnesis-compile.d.ts.map +1 -1
- package/dist/patterns/anamnesis/anamnesis-derive.d.ts +27 -8
- package/dist/patterns/anamnesis/anamnesis-derive.d.ts.map +1 -1
- package/dist/patterns/anamnesis/anamnesis-events.d.ts.map +1 -1
- package/dist/patterns/anamnesis/anamnesis-evolution-grid.d.ts.map +1 -1
- package/dist/patterns/anamnesis/anamnesis-field.d.ts.map +1 -1
- package/dist/patterns/anamnesis/anamnesis-format.d.ts +11 -3
- package/dist/patterns/anamnesis/anamnesis-format.d.ts.map +1 -1
- package/dist/patterns/anamnesis/anamnesis-highlight.d.ts +6 -0
- package/dist/patterns/anamnesis/anamnesis-highlight.d.ts.map +1 -0
- package/dist/patterns/anamnesis/anamnesis-intake.d.ts.map +1 -1
- package/dist/patterns/anamnesis/anamnesis-matrix.d.ts.map +1 -1
- package/dist/patterns/anamnesis/anamnesis-questionnaire.d.ts +23 -9
- package/dist/patterns/anamnesis/anamnesis-questionnaire.d.ts.map +1 -1
- package/dist/patterns/anamnesis/anamnesis-readonly.d.ts.map +1 -1
- package/dist/patterns/anamnesis/anamnesis-target-strip.d.ts.map +1 -1
- package/dist/patterns/anamnesis/anamnesis-types.d.ts +7 -0
- package/dist/patterns/anamnesis/anamnesis-types.d.ts.map +1 -1
- package/dist/patterns/anamnesis/anamnesis-visit-note.d.ts.map +1 -1
- package/dist/patterns/anamnesis/anamnesis.d.ts +16 -7
- package/dist/patterns/anamnesis/anamnesis.d.ts.map +1 -1
- package/dist/patterns/anamnesis/index.d.ts +3 -2
- package/dist/patterns/anamnesis/index.d.ts.map +1 -1
- package/dist/patterns/anamnesis/index.js +7 -6
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +6 -0
- package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts.map +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/agenda-card.agent-mTCrkKSZ.js +0 -27
- package/dist/_chunks/agenda-card.agent-mTCrkKSZ.js.map +0 -1
- package/dist/_chunks/anamnesis-i18n-CfC0qYzy.js.map +0 -1
- package/dist/_chunks/booking-DjNbd7C1.js.map +0 -1
- package/dist/_chunks/calculator-dialog-DuXMQSdm.js +0 -40
- package/dist/_chunks/chat-container-HlFnoEIl.js.map +0 -1
- package/dist/_chunks/cycle-calculator-BwqYVPB4.js +0 -252
- package/dist/_chunks/cycle-calculator-BwqYVPB4.js.map +0 -1
- package/dist/_chunks/date-picker-variants-eL6HjWvw.js +0 -3363
- package/dist/_chunks/date-picker-variants-eL6HjWvw.js.map +0 -1
- package/dist/_chunks/due-date-calculator-CwfsFd3T.js +0 -256
- package/dist/_chunks/due-date-calculator-CwfsFd3T.js.map +0 -1
- package/dist/_chunks/editor-overlay-DE3esyio.js.map +0 -1
- package/dist/_chunks/fetal-weight-ePlLjJPc.js +0 -122
- package/dist/_chunks/fetal-weight-ePlLjJPc.js.map +0 -1
- package/dist/_chunks/gestational-age-calculator-DdgbH69Z.js +0 -311
- package/dist/_chunks/gestational-age-calculator-DdgbH69Z.js.map +0 -1
- package/dist/_chunks/hcg-doubling-BBqD2wI2.js +0 -170
- package/dist/_chunks/hcg-doubling-BBqD2wI2.js.map +0 -1
- package/dist/_chunks/header-settings--pjYOe6g.js +0 -284
- package/dist/_chunks/header-settings--pjYOe6g.js.map +0 -1
- package/dist/_chunks/isSameDay-DUEiAT0G.js +0 -39
- package/dist/_chunks/isSameDay-DUEiAT0G.js.map +0 -1
- package/dist/_chunks/isSameWeek-CK4HS9lH.js +0 -14
- package/dist/_chunks/locale-picker-BfBUdT1m.js.map +0 -1
- package/dist/_chunks/map-view-CsaHfoo6.js +0 -378
- package/dist/_chunks/map-view-CsaHfoo6.js.map +0 -1
- package/dist/_chunks/marketplace-app-shell-DwcFMxzp.js.map +0 -1
- package/dist/_chunks/number-input-DrozbZAU.js.map +0 -1
- package/dist/_chunks/payment-form-h-BZ8onk.js.map +0 -1
- package/dist/_chunks/pdf-viewer-Ddx-T053.js.map +0 -1
- package/dist/_chunks/pregnancy-dating-DzYTlBkT.js +0 -421
- package/dist/_chunks/pregnancy-dating-DzYTlBkT.js.map +0 -1
- package/dist/_chunks/pregnancy-weight-gain-O6J0sUIi.js +0 -322
- package/dist/_chunks/pregnancy-weight-gain-O6J0sUIi.js.map +0 -1
- package/dist/_chunks/progress-DA413-zn.js +0 -299
- package/dist/_chunks/progress-DA413-zn.js.map +0 -1
- package/dist/_chunks/slot-grid-CQSULZjd.js +0 -502
- package/dist/_chunks/slot-grid-CQSULZjd.js.map +0 -1
- package/dist/_chunks/sparkline-BTY4B5tv.js.map +0 -1
- package/dist/_chunks/subDays-BcNi04uf.js +0 -8
- package/dist/_chunks/tab-bar-Axhk6xzx.js.map +0 -1
- package/dist/_chunks/task-card.agent-Bt14CzUd.js +0 -25
- package/dist/_chunks/task-card.agent-Bt14CzUd.js.map +0 -1
|
@@ -1,28 +1,59 @@
|
|
|
1
|
-
import { jsx as c, jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { c as
|
|
1
|
+
import { jsx as c, jsxs as V } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as pe, useId as ue, useMemo as A, useRef as z, useState as W, useEffect as S, useImperativeHandle as he } from "react";
|
|
3
|
+
import { c as K } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as me } from "react-i18next";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { g as
|
|
8
|
-
import { m as
|
|
9
|
-
import { u as
|
|
10
|
-
function
|
|
11
|
-
if (
|
|
5
|
+
import ge from "react-apexcharts";
|
|
6
|
+
import E from "apexcharts";
|
|
7
|
+
import { g as Q, u as fe } from "./apexcharts-theme-B_AxGC_h.js";
|
|
8
|
+
import { m as ye } from "./annotation-marker-CsUJGZjQ.js";
|
|
9
|
+
import { u as be } from "./registry-DvAUVLHh.js";
|
|
10
|
+
function ve(t) {
|
|
11
|
+
if (t.length < 2)
|
|
12
12
|
return { slope: 0, direction: "steady" };
|
|
13
|
-
const
|
|
14
|
-
let s = 0,
|
|
15
|
-
for (let
|
|
16
|
-
const i =
|
|
17
|
-
s += i * (
|
|
13
|
+
const a = t.length, m = (a - 1) / 2, l = t.reduce((r, i) => r + i, 0) / a;
|
|
14
|
+
let s = 0, p = 0;
|
|
15
|
+
for (let r = 0; r < a; r++) {
|
|
16
|
+
const i = r - m;
|
|
17
|
+
s += i * (t[r] - l), p += i * i;
|
|
18
18
|
}
|
|
19
|
-
const
|
|
20
|
-
return { slope:
|
|
19
|
+
const h = p === 0 ? 0 : s / p, k = 0.01 * (Math.max(...t) - Math.min(...t) || 1), g = Math.abs(h) < k ? "steady" : h > 0 ? "increasing" : "decreasing";
|
|
20
|
+
return { slope: h, direction: g };
|
|
21
21
|
}
|
|
22
|
-
const
|
|
22
|
+
const we = {
|
|
23
23
|
id: "sparkline",
|
|
24
24
|
capabilities: [],
|
|
25
|
-
|
|
25
|
+
// `select_annotation` enforces two preconditions silently and
|
|
26
|
+
// `update_series` writes straight into ApexCharts, bypassing React —
|
|
27
|
+
// so nothing in the React tree reflects what is actually rendered.
|
|
28
|
+
// These slots are the checkable form of both.
|
|
29
|
+
//
|
|
30
|
+
// A9 boundary: an annotation `id` is the host's opaque key, so it is
|
|
31
|
+
// exposed; `SparklineAnnotation.label` is human-readable and could
|
|
32
|
+
// name a clinical event, so it is not. The plotted values are
|
|
33
|
+
// measurements in a clinical sparkline and are never exposed — only
|
|
34
|
+
// their count. `trend` from `useLinearTrend` is deliberately left out
|
|
35
|
+
// for the same reason (still derived from the plotted values); adding
|
|
36
|
+
// it needs a DS-maintainer sign-off.
|
|
37
|
+
state: {
|
|
38
|
+
annotationIds: {
|
|
39
|
+
type: "string[]",
|
|
40
|
+
descriptionKey: "ui.agent.sparkline.state.annotationIds",
|
|
41
|
+
description: "Ids of the annotations currently drawn, in declaration order. The only ids `select_annotation` will accept — check against this before calling. Ids only, never annotation labels.",
|
|
42
|
+
read: (t) => t.getAnnotationIds()
|
|
43
|
+
},
|
|
44
|
+
selectable: {
|
|
45
|
+
type: "boolean",
|
|
46
|
+
descriptionKey: "ui.agent.sparkline.state.selectable",
|
|
47
|
+
description: "True when the host wired an annotation-select handler. False means every `select_annotation` call is a no-op, whatever id is passed.",
|
|
48
|
+
read: (t) => t.isSelectable()
|
|
49
|
+
},
|
|
50
|
+
pointCount: {
|
|
51
|
+
type: "number",
|
|
52
|
+
descriptionKey: "ui.agent.sparkline.state.pointCount",
|
|
53
|
+
description: "Number of positions in the currently rendered series, unmeasured gaps included — reflecting whichever applied last, the `data` prop or an `update_series` call. A count only; the plotted values are never exposed.",
|
|
54
|
+
read: (t) => t.getPointCount()
|
|
55
|
+
}
|
|
56
|
+
},
|
|
26
57
|
actions: {
|
|
27
58
|
update_series: {
|
|
28
59
|
// Replacing the rendered series mutates what the chart displays — write,
|
|
@@ -42,9 +73,9 @@ const be = {
|
|
|
42
73
|
},
|
|
43
74
|
idempotent: !0,
|
|
44
75
|
descriptionKey: "ui.agent.sparkline.actions.updateSeries",
|
|
45
|
-
description: "Replace the sparkline data without remounting.",
|
|
46
|
-
invoke: (
|
|
47
|
-
|
|
76
|
+
description: "Replace the sparkline data without remounting. Writes straight into ApexCharts, bypassing React — read the `pointCount` slot back rather than expecting the host tree to reflect it.",
|
|
77
|
+
invoke: (t, a) => {
|
|
78
|
+
t.updateSeries(a.data);
|
|
48
79
|
}
|
|
49
80
|
},
|
|
50
81
|
export_png: {
|
|
@@ -57,7 +88,7 @@ const be = {
|
|
|
57
88
|
},
|
|
58
89
|
descriptionKey: "ui.agent.sparkline.actions.exportPng",
|
|
59
90
|
description: "Return a PNG data URI of the sparkline.",
|
|
60
|
-
invoke: (
|
|
91
|
+
invoke: (t) => t.dataURI()
|
|
61
92
|
},
|
|
62
93
|
select_annotation: {
|
|
63
94
|
// Routes the host somewhere — the same thing a pointer press on the
|
|
@@ -77,9 +108,13 @@ const be = {
|
|
|
77
108
|
},
|
|
78
109
|
idempotent: !0,
|
|
79
110
|
descriptionKey: "ui.agent.sparkline.actions.selectAnnotation",
|
|
80
|
-
description: "Select a drawn annotation, as pressing its band would. No-op unless the host wired onAnnotationSelect and the id names an annotation that is currently drawn.",
|
|
81
|
-
|
|
82
|
-
|
|
111
|
+
description: "Select a drawn annotation, as pressing its band would. No-op unless the host wired onAnnotationSelect and the id names an annotation that is currently drawn — check the `selectable` and `annotationIds` slots first, since neither failure produces a signal.",
|
|
112
|
+
errors: [
|
|
113
|
+
"Silently ignored when `selectable` is false — the host wired no annotation-select handler.",
|
|
114
|
+
"Silently ignored when the id is not in `annotationIds` — that annotation is not currently drawn."
|
|
115
|
+
],
|
|
116
|
+
invoke: (t, a) => {
|
|
117
|
+
t.selectAnnotation(a.annotationId);
|
|
83
118
|
}
|
|
84
119
|
}
|
|
85
120
|
},
|
|
@@ -91,7 +126,7 @@ const be = {
|
|
|
91
126
|
description: "Sourced from the id prop."
|
|
92
127
|
}
|
|
93
128
|
}
|
|
94
|
-
},
|
|
129
|
+
}, X = K("ds:relative ds:inline-block ds:w-full", {
|
|
95
130
|
variants: {
|
|
96
131
|
size: {
|
|
97
132
|
xs: "ds:h-6",
|
|
@@ -103,7 +138,7 @@ const be = {
|
|
|
103
138
|
}
|
|
104
139
|
},
|
|
105
140
|
defaultVariants: { size: "md" }
|
|
106
|
-
}),
|
|
141
|
+
}), Y = K("", {
|
|
107
142
|
variants: {
|
|
108
143
|
tone: {
|
|
109
144
|
neutral: "ds:[--annotation-color:var(--muted-foreground)]",
|
|
@@ -118,7 +153,7 @@ const be = {
|
|
|
118
153
|
}
|
|
119
154
|
},
|
|
120
155
|
defaultVariants: { tone: "neutral" }
|
|
121
|
-
}),
|
|
156
|
+
}), ke = K(
|
|
122
157
|
"ds:pointer-events-none ds:absolute ds:inset-x-[2px]",
|
|
123
158
|
{
|
|
124
159
|
variants: {
|
|
@@ -134,162 +169,172 @@ const be = {
|
|
|
134
169
|
},
|
|
135
170
|
defaultVariants: { size: "md" }
|
|
136
171
|
}
|
|
137
|
-
),
|
|
172
|
+
), xe = {
|
|
138
173
|
increasing: "↑",
|
|
139
174
|
decreasing: "↓",
|
|
140
175
|
steady: "→"
|
|
141
|
-
},
|
|
176
|
+
}, Ie = {
|
|
142
177
|
xs: 24,
|
|
143
178
|
sm: 32,
|
|
144
179
|
md: 40
|
|
145
|
-
},
|
|
146
|
-
function
|
|
147
|
-
const l =
|
|
180
|
+
}, N = 2, ee = 2.5, te = 44;
|
|
181
|
+
function Ne(t, a, m = te) {
|
|
182
|
+
const l = t.map((s) => ({
|
|
148
183
|
annotation: s,
|
|
149
|
-
centre:
|
|
150
|
-
})).sort((s,
|
|
151
|
-
return l.map((s,
|
|
152
|
-
const
|
|
153
|
-
Math.max(s.centre -
|
|
154
|
-
i -
|
|
184
|
+
centre: ne(s.position) * a
|
|
185
|
+
})).sort((s, p) => s.centre - p.centre);
|
|
186
|
+
return l.map((s, p) => {
|
|
187
|
+
const h = l[p - 1], w = l[p + 1], k = h ? (h.centre + s.centre) / 2 : 0, g = w ? (s.centre + w.centre) / 2 : a, r = Math.max(0, k), i = Math.min(a, g), b = Math.min(m, Math.max(0, i - r)), T = Math.min(
|
|
188
|
+
Math.max(s.centre - b / 2, r),
|
|
189
|
+
i - b
|
|
155
190
|
);
|
|
156
|
-
return { annotation: s.annotation, x:
|
|
191
|
+
return { annotation: s.annotation, x: T, width: b };
|
|
157
192
|
});
|
|
158
193
|
}
|
|
159
|
-
function
|
|
160
|
-
return Number.isFinite(
|
|
194
|
+
function ne(t) {
|
|
195
|
+
return Number.isFinite(t) ? Math.min(1, Math.max(0, t)) : 0;
|
|
161
196
|
}
|
|
162
|
-
function
|
|
163
|
-
return
|
|
197
|
+
function Te(t) {
|
|
198
|
+
return t.filter((a) => a != null);
|
|
164
199
|
}
|
|
165
200
|
function Me() {
|
|
166
201
|
return typeof window < "u" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
167
202
|
}
|
|
168
|
-
const
|
|
203
|
+
const Ce = pe(
|
|
169
204
|
({
|
|
170
|
-
id:
|
|
171
|
-
data:
|
|
172
|
-
variant:
|
|
205
|
+
id: t,
|
|
206
|
+
data: a,
|
|
207
|
+
variant: m = "line",
|
|
173
208
|
size: l = "md",
|
|
174
209
|
label: s,
|
|
175
|
-
color:
|
|
176
|
-
showEndpoint:
|
|
210
|
+
color: p,
|
|
211
|
+
showEndpoint: h = !1,
|
|
177
212
|
showTooltip: w = !1,
|
|
178
213
|
width: k,
|
|
179
|
-
height:
|
|
180
|
-
annotations:
|
|
214
|
+
height: g,
|
|
215
|
+
annotations: r,
|
|
181
216
|
onAnnotationSelect: i,
|
|
182
|
-
className:
|
|
183
|
-
...
|
|
184
|
-
},
|
|
185
|
-
var
|
|
186
|
-
const { t:
|
|
187
|
-
() => `sparkline-${
|
|
188
|
-
[
|
|
189
|
-
), M =
|
|
190
|
-
const e =
|
|
191
|
-
list:
|
|
192
|
-
}) : "",
|
|
193
|
-
if (
|
|
194
|
-
return
|
|
195
|
-
const o = (
|
|
196
|
-
min: o(Math.min(...
|
|
197
|
-
max: o(Math.max(...
|
|
198
|
-
current: o(
|
|
199
|
-
direction:
|
|
217
|
+
className: b,
|
|
218
|
+
...T
|
|
219
|
+
}, ae) => {
|
|
220
|
+
var J;
|
|
221
|
+
const { t: y, i18n: $ } = me(), j = ue(), x = A(
|
|
222
|
+
() => `sparkline-${j.replace(/[^a-zA-Z0-9-_]/g, "")}`,
|
|
223
|
+
[j]
|
|
224
|
+
), M = z(null), [_, re] = W(0), [se, ie] = W(te), u = A(() => Te(a), [a]), { direction: O } = ve(u), B = A(() => {
|
|
225
|
+
const e = r && r.length > 0 ? y("sparkline.annotations", {
|
|
226
|
+
list: r.map((v) => v.label).join(", ")
|
|
227
|
+
}) : "", n = (v) => e ? `${v}. ${e}` : v;
|
|
228
|
+
if (u.length === 0)
|
|
229
|
+
return n(y("sparkline.noData", "No data"));
|
|
230
|
+
const o = (v) => new Intl.NumberFormat($.language).format(v), f = y(`sparkline.direction.${O}`), d = {
|
|
231
|
+
min: o(Math.min(...u)),
|
|
232
|
+
max: o(Math.max(...u)),
|
|
233
|
+
current: o(u[u.length - 1]),
|
|
234
|
+
direction: f
|
|
200
235
|
};
|
|
201
|
-
return
|
|
202
|
-
}, [
|
|
236
|
+
return n(s ? y("sparkline.summary", { label: s, ...d }) : y("sparkline.summaryNoLabel", d));
|
|
237
|
+
}, [u, r, s, O, $.language, y]), [C, oe] = W(
|
|
203
238
|
() => {
|
|
204
239
|
try {
|
|
205
|
-
return
|
|
240
|
+
return Q();
|
|
206
241
|
} catch {
|
|
207
242
|
return {};
|
|
208
243
|
}
|
|
209
244
|
}
|
|
210
245
|
);
|
|
211
|
-
|
|
246
|
+
S(() => {
|
|
212
247
|
let e;
|
|
213
|
-
const
|
|
248
|
+
const n = new MutationObserver(() => {
|
|
214
249
|
clearTimeout(e), e = setTimeout(() => {
|
|
215
250
|
try {
|
|
216
|
-
|
|
251
|
+
oe(Q());
|
|
217
252
|
} catch {
|
|
218
253
|
}
|
|
219
254
|
}, 50);
|
|
220
255
|
});
|
|
221
|
-
return
|
|
256
|
+
return n.observe(document.documentElement, {
|
|
222
257
|
attributes: !0,
|
|
223
258
|
attributeFilter: ["class"]
|
|
224
259
|
}), () => {
|
|
225
|
-
clearTimeout(e),
|
|
260
|
+
clearTimeout(e), n.disconnect();
|
|
226
261
|
};
|
|
227
|
-
}, []),
|
|
262
|
+
}, []), S(() => {
|
|
228
263
|
const e = M.current;
|
|
229
264
|
if (!e) return;
|
|
230
|
-
const
|
|
231
|
-
const
|
|
232
|
-
Number.isFinite(d) && d > 0 &&
|
|
265
|
+
const n = () => {
|
|
266
|
+
const f = getComputedStyle(e).getPropertyValue("--min-target-size"), d = Number.parseFloat(f);
|
|
267
|
+
Number.isFinite(d) && d > 0 && ie(d);
|
|
233
268
|
};
|
|
234
|
-
|
|
235
|
-
const o = new ResizeObserver((
|
|
236
|
-
const d =
|
|
237
|
-
d &&
|
|
269
|
+
n();
|
|
270
|
+
const o = new ResizeObserver((f) => {
|
|
271
|
+
const d = f[0];
|
|
272
|
+
d && re(Math.floor(d.contentRect.width)), n();
|
|
238
273
|
});
|
|
239
274
|
return o.observe(e), () => o.disconnect();
|
|
240
275
|
}, []), fe(M);
|
|
241
|
-
const
|
|
242
|
-
|
|
243
|
-
|
|
276
|
+
const I = z(i);
|
|
277
|
+
S(() => {
|
|
278
|
+
I.current = i;
|
|
244
279
|
}, [i]);
|
|
245
|
-
const
|
|
246
|
-
|
|
247
|
-
const
|
|
280
|
+
const H = z(r);
|
|
281
|
+
H.current = r;
|
|
282
|
+
const P = z(a.length);
|
|
283
|
+
S(() => {
|
|
284
|
+
P.current = a.length;
|
|
285
|
+
}, [a]);
|
|
286
|
+
const D = A(
|
|
248
287
|
() => ({
|
|
249
288
|
updateSeries(e) {
|
|
250
|
-
var
|
|
251
|
-
(
|
|
289
|
+
var n;
|
|
290
|
+
(n = E.getChartByID(x)) == null || n.updateSeries([{ data: e }]), P.current = e.length;
|
|
252
291
|
},
|
|
253
292
|
updateOptions(e) {
|
|
254
|
-
var
|
|
255
|
-
(
|
|
293
|
+
var n;
|
|
294
|
+
(n = E.getChartByID(x)) == null || n.updateOptions(e);
|
|
256
295
|
},
|
|
257
296
|
async dataURI() {
|
|
258
|
-
const e =
|
|
297
|
+
const e = E.getChartByID(x);
|
|
259
298
|
return e ? (await e.dataURI()).imgURI : "";
|
|
260
299
|
},
|
|
261
300
|
selectAnnotation(e) {
|
|
262
|
-
var o,
|
|
263
|
-
(o =
|
|
264
|
-
}
|
|
301
|
+
var o, f;
|
|
302
|
+
(o = H.current) != null && o.some((d) => d.id === e) && ((f = I.current) == null || f.call(I, e));
|
|
303
|
+
},
|
|
304
|
+
// Read-back for the two preconditions `selectAnnotation` enforces
|
|
305
|
+
// silently — without these an agent can check neither and gets no
|
|
306
|
+
// signal from either failure.
|
|
307
|
+
getAnnotationIds: () => (H.current ?? []).map((e) => e.id),
|
|
308
|
+
isSelectable: () => I.current != null,
|
|
309
|
+
getPointCount: () => P.current
|
|
265
310
|
}),
|
|
266
311
|
[x]
|
|
267
312
|
);
|
|
268
|
-
|
|
269
|
-
const
|
|
270
|
-
if (
|
|
313
|
+
he(ae, () => D, [D]), be(we, D, t);
|
|
314
|
+
const F = p ?? ((J = C.colors) == null ? void 0 : J[0]) ?? "currentColor";
|
|
315
|
+
if (u.length === 0)
|
|
271
316
|
return /* @__PURE__ */ c(
|
|
272
317
|
"div",
|
|
273
318
|
{
|
|
274
319
|
ref: M,
|
|
275
320
|
role: "img",
|
|
276
|
-
"aria-label":
|
|
321
|
+
"aria-label": B,
|
|
277
322
|
dir: "ltr",
|
|
278
|
-
className:
|
|
279
|
-
size:
|
|
280
|
-
className:
|
|
323
|
+
className: X({
|
|
324
|
+
size: g !== void 0 ? "auto" : l,
|
|
325
|
+
className: b
|
|
281
326
|
}),
|
|
282
327
|
"data-component": "sparkline",
|
|
283
|
-
"data-component-id":
|
|
284
|
-
...
|
|
328
|
+
"data-component-id": t,
|
|
329
|
+
...T
|
|
285
330
|
}
|
|
286
331
|
);
|
|
287
|
-
const G = Me(),
|
|
288
|
-
...
|
|
332
|
+
const G = Me(), U = a.length > u.length, L = U ? a.flatMap((e, n) => e == null ? [] : [{ x: n, y: e }]) : u, de = {
|
|
333
|
+
...C,
|
|
289
334
|
chart: {
|
|
290
|
-
...
|
|
335
|
+
...C.chart,
|
|
291
336
|
id: x,
|
|
292
|
-
type:
|
|
337
|
+
type: m,
|
|
293
338
|
sparkline: { enabled: !0 },
|
|
294
339
|
toolbar: { show: !1 },
|
|
295
340
|
animations: {
|
|
@@ -300,28 +345,28 @@ const Te = le(
|
|
|
300
345
|
// the tween emits `d="… NaN …"` for a few frames. The finished
|
|
301
346
|
// render is correct either way; switching the tween off keeps the
|
|
302
347
|
// console clean.
|
|
303
|
-
dynamicAnimation: { enabled: !G && !
|
|
348
|
+
dynamicAnimation: { enabled: !G && !U }
|
|
304
349
|
},
|
|
305
350
|
zoom: { enabled: !1 },
|
|
306
351
|
parentHeightOffset: 0
|
|
307
352
|
},
|
|
308
|
-
colors: [
|
|
353
|
+
colors: [F],
|
|
309
354
|
stroke: {
|
|
310
355
|
curve: "smooth",
|
|
311
|
-
width:
|
|
356
|
+
width: m === "bar" ? 0 : 2
|
|
312
357
|
},
|
|
313
358
|
fill: {
|
|
314
|
-
opacity:
|
|
359
|
+
opacity: m === "area" ? 0.15 : 1
|
|
315
360
|
},
|
|
316
361
|
xaxis: {
|
|
317
362
|
crosshairs: { show: !1 },
|
|
318
363
|
// Pin the extent to the slot count so a gap at either end still holds
|
|
319
364
|
// its place — otherwise the plot would rescale to the measurements
|
|
320
365
|
// and the annotation fractions would no longer mean the same thing.
|
|
321
|
-
...
|
|
366
|
+
...U ? { type: "numeric", min: 0, max: a.length - 1 } : {}
|
|
322
367
|
},
|
|
323
368
|
tooltip: { enabled: w },
|
|
324
|
-
markers:
|
|
369
|
+
markers: h ? {
|
|
325
370
|
size: [0],
|
|
326
371
|
discrete: [
|
|
327
372
|
{
|
|
@@ -330,52 +375,52 @@ const Te = le(
|
|
|
330
375
|
// the parameter was not measured at.
|
|
331
376
|
seriesIndex: 0,
|
|
332
377
|
dataPointIndex: L.length - 1,
|
|
333
|
-
fillColor:
|
|
334
|
-
strokeColor:
|
|
378
|
+
fillColor: F,
|
|
379
|
+
strokeColor: F,
|
|
335
380
|
size: 4
|
|
336
381
|
}
|
|
337
382
|
]
|
|
338
383
|
} : { size: 0 },
|
|
339
384
|
grid: {
|
|
340
|
-
...
|
|
385
|
+
...C.grid,
|
|
341
386
|
show: !1,
|
|
342
387
|
// ApexCharts grid.padding uses physical keys (not CSS logical properties).
|
|
343
388
|
// The chart wrapper enforces dir="ltr" so these always resolve correctly.
|
|
344
389
|
padding: {
|
|
345
|
-
top:
|
|
346
|
-
right:
|
|
347
|
-
bottom:
|
|
348
|
-
left:
|
|
390
|
+
top: N,
|
|
391
|
+
right: N,
|
|
392
|
+
bottom: N,
|
|
393
|
+
left: N
|
|
349
394
|
}
|
|
350
395
|
}
|
|
351
|
-
},
|
|
352
|
-
return /* @__PURE__ */
|
|
396
|
+
}, ce = k ?? (_ > 0 ? _ : "100%"), le = g ?? Ie[l ?? "md"], R = r != null && r.length ? r : void 0, q = _ - N * 2, Z = i && R && q > 0 ? Ne(R, q, se) : void 0;
|
|
397
|
+
return /* @__PURE__ */ V(
|
|
353
398
|
"div",
|
|
354
399
|
{
|
|
355
400
|
ref: M,
|
|
356
401
|
role: "img",
|
|
357
|
-
"aria-label":
|
|
402
|
+
"aria-label": B,
|
|
358
403
|
dir: "ltr",
|
|
359
|
-
className:
|
|
360
|
-
size:
|
|
361
|
-
className:
|
|
404
|
+
className: X({
|
|
405
|
+
size: g !== void 0 ? "auto" : l,
|
|
406
|
+
className: b
|
|
362
407
|
}),
|
|
363
408
|
"data-component": "sparkline",
|
|
364
|
-
"data-component-id":
|
|
365
|
-
...
|
|
409
|
+
"data-component-id": t,
|
|
410
|
+
...T,
|
|
366
411
|
children: [
|
|
367
412
|
/* @__PURE__ */ c(
|
|
368
|
-
|
|
413
|
+
ge,
|
|
369
414
|
{
|
|
370
|
-
type:
|
|
415
|
+
type: m,
|
|
371
416
|
series: [{ data: L }],
|
|
372
|
-
options:
|
|
373
|
-
width:
|
|
374
|
-
height:
|
|
417
|
+
options: de,
|
|
418
|
+
width: ce,
|
|
419
|
+
height: le,
|
|
375
420
|
"aria-hidden": "true"
|
|
376
421
|
}
|
|
377
422
|
),
|
|
378
|
-
|
|
423
|
+
R && /* Drawn over the plot rather than through ApexCharts' own xaxis
|
|
379
424
|
annotations: a fraction of the measured extent is the one
|
|
380
425
|
positioning rule that survives series of different lengths, which
|
|
381
426
|
is what makes a column of sparklines share an x. */
|
|
@@ -392,23 +437,23 @@ const Te = le(
|
|
|
392
437
|
focusable: "false",
|
|
393
438
|
"data-testid": "sparkline-annotations",
|
|
394
439
|
className: "ds:size-full",
|
|
395
|
-
children:
|
|
396
|
-
const
|
|
440
|
+
children: R.map((e) => {
|
|
441
|
+
const n = ne(e.position);
|
|
397
442
|
return (
|
|
398
443
|
/* A nested viewport placed at a percentage of the plot: the
|
|
399
444
|
one positioning rule that needs no measurement, so a column
|
|
400
445
|
of sparklines shares an x whatever their widths. */
|
|
401
|
-
/* @__PURE__ */
|
|
446
|
+
/* @__PURE__ */ V(
|
|
402
447
|
"svg",
|
|
403
448
|
{
|
|
404
|
-
x: `${
|
|
449
|
+
x: `${n * 100}%`,
|
|
405
450
|
y: "0",
|
|
406
451
|
width: "1",
|
|
407
452
|
height: "100%",
|
|
408
453
|
overflow: "visible",
|
|
409
454
|
"data-annotation-id": e.id,
|
|
410
|
-
"data-annotation-position":
|
|
411
|
-
className:
|
|
455
|
+
"data-annotation-position": n,
|
|
456
|
+
className: Y({ tone: e.tone }),
|
|
412
457
|
children: [
|
|
413
458
|
/* @__PURE__ */ c(
|
|
414
459
|
"line",
|
|
@@ -423,11 +468,11 @@ const Te = le(
|
|
|
423
468
|
/* @__PURE__ */ c(
|
|
424
469
|
"path",
|
|
425
470
|
{
|
|
426
|
-
d:
|
|
471
|
+
d: ye(
|
|
427
472
|
e.shape ?? "diamond",
|
|
428
473
|
0,
|
|
429
|
-
|
|
430
|
-
|
|
474
|
+
ee,
|
|
475
|
+
ee
|
|
431
476
|
),
|
|
432
477
|
className: "ds:[fill:var(--annotation-color)]"
|
|
433
478
|
}
|
|
@@ -440,15 +485,15 @@ const Te = le(
|
|
|
440
485
|
})
|
|
441
486
|
}
|
|
442
487
|
) }),
|
|
443
|
-
|
|
488
|
+
Z && i && /* Sized in px, not percentages: the target size is a measurement,
|
|
444
489
|
not a fraction of a box the reader can resize.
|
|
445
490
|
`pointer-events-none` holds all the way down to the bands, so the
|
|
446
491
|
only live pixels are the token-width each annotation owns. */
|
|
447
492
|
/* @__PURE__ */ c(
|
|
448
493
|
"div",
|
|
449
494
|
{
|
|
450
|
-
className:
|
|
451
|
-
size:
|
|
495
|
+
className: ke({
|
|
496
|
+
size: g !== void 0 ? "auto" : l
|
|
452
497
|
}),
|
|
453
498
|
children: /* @__PURE__ */ c(
|
|
454
499
|
"svg",
|
|
@@ -457,22 +502,22 @@ const Te = le(
|
|
|
457
502
|
focusable: "false",
|
|
458
503
|
"data-testid": "sparkline-annotation-hits",
|
|
459
504
|
className: "ds:size-full",
|
|
460
|
-
children:
|
|
505
|
+
children: Z.map(({ annotation: e, x: n, width: o }) => /* @__PURE__ */ V(
|
|
461
506
|
"g",
|
|
462
507
|
{
|
|
463
508
|
"data-annotation-hit-id": e.id,
|
|
464
509
|
onClick: () => i(e.id),
|
|
465
|
-
className: `ds:group ds:pointer-events-auto ds:cursor-pointer ${
|
|
510
|
+
className: `ds:group ds:pointer-events-auto ds:cursor-pointer ${Y(
|
|
466
511
|
{ tone: e.tone }
|
|
467
512
|
)}`,
|
|
468
513
|
children: [
|
|
469
|
-
/* @__PURE__ */ c("title", { children:
|
|
514
|
+
/* @__PURE__ */ c("title", { children: y("sparkline.annotationAction", {
|
|
470
515
|
label: e.label
|
|
471
516
|
}) }),
|
|
472
517
|
/* @__PURE__ */ c(
|
|
473
518
|
"rect",
|
|
474
519
|
{
|
|
475
|
-
x:
|
|
520
|
+
x: n,
|
|
476
521
|
y: 0,
|
|
477
522
|
width: o,
|
|
478
523
|
height: "100%",
|
|
@@ -487,12 +532,12 @@ const Te = le(
|
|
|
487
532
|
)
|
|
488
533
|
}
|
|
489
534
|
),
|
|
490
|
-
|
|
535
|
+
h && /* @__PURE__ */ c(
|
|
491
536
|
"span",
|
|
492
537
|
{
|
|
493
538
|
"aria-hidden": "true",
|
|
494
539
|
className: "ds:pointer-events-none ds:absolute ds:end-0 ds:top-0 ds:text-[length:var(--font-size-xs)] ds:leading-none",
|
|
495
|
-
children:
|
|
540
|
+
children: xe[O]
|
|
496
541
|
}
|
|
497
542
|
)
|
|
498
543
|
]
|
|
@@ -500,10 +545,10 @@ const Te = le(
|
|
|
500
545
|
);
|
|
501
546
|
}
|
|
502
547
|
);
|
|
503
|
-
|
|
548
|
+
Ce.displayName = "Sparkline";
|
|
504
549
|
export {
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
550
|
+
Ce as S,
|
|
551
|
+
we as s,
|
|
552
|
+
ve as u
|
|
508
553
|
};
|
|
509
|
-
//# sourceMappingURL=sparkline-
|
|
554
|
+
//# sourceMappingURL=sparkline-BmGcEyZO.js.map
|