@alfadocs/ui-kit 1.47.1 → 1.48.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.
- package/dist/_chunks/{actions-cell-renderer-B5m9lwgC.js → actions-cell-renderer-DMittsR3.js} +4 -4
- package/dist/_chunks/{address-autocomplete-Bq-1n1UX.js → address-autocomplete-Dp5uMvKP.js} +61 -60
- package/dist/_chunks/{address-fields-jFfjxOQR.js → address-fields-QfC-N3pw.js} +5 -5
- package/dist/_chunks/{agenda-card-DyQtHb9z.js → agenda-card-C4h0xMGi.js} +2 -2
- package/dist/_chunks/{agenda-tray-CBaJASb5.js → agenda-tray-DNZYW2xt.js} +4 -4
- package/dist/_chunks/{ai-credits-notice-xszqOZTC.js → ai-credits-notice-C-kz_RrY.js} +3 -3
- package/dist/_chunks/{ai-permission-notice-D7I2U-cz.js → ai-permission-notice-BRZeS3mT.js} +3 -3
- package/dist/_chunks/{ai-prompt-input-DXknpQCB.js → ai-prompt-input-CxvnXsAs.js} +82 -82
- package/dist/_chunks/{alia-sidebar-CUqaJNPQ.js → alia-sidebar-Crn8OGPF.js} +7 -7
- package/dist/_chunks/{anamnesis-card-xtEhyojD.js → anamnesis-card-D8Si-2GV.js} +3 -3
- package/dist/_chunks/{anamnesis-summary-card-CclBbiXg.js → anamnesis-summary-card-DPyScUMM.js} +2 -2
- package/dist/_chunks/{anamnesis-summary-rows-DI-UX5r6.js → anamnesis-summary-rows-CZirLRuv.js} +12 -12
- package/dist/_chunks/{antenatal-schedule-timeline-CXk_tzWG.js → antenatal-schedule-timeline-8fm3vPSV.js} +2 -2
- package/dist/_chunks/{appointment-card-DluZy8Iv.js → appointment-card-CvGU0QP6.js} +5 -5
- package/dist/_chunks/{appointment-peek-BsfCpiJs.js → appointment-peek--dmWznLZ.js} +5 -5
- package/dist/_chunks/{appointment-timeline-Cs5f9viN.js → appointment-timeline-y9uYZMUd.js} +6 -6
- package/dist/_chunks/{appointment-tray-CLrGGnKR.js → appointment-tray-BTecNeSb.js} +4 -4
- package/dist/_chunks/appointment-workflow-status-CS8ufF1f.js +66 -0
- package/dist/_chunks/{audio-recorder-B7dT-Y3v.js → audio-recorder-DZBtAvLH.js} +4 -4
- package/dist/_chunks/{autocomplete-MpBhz-fG.js → autocomplete-DSasZUf6.js} +65 -64
- package/dist/_chunks/{badge-BudgzTe_.js → badge-BAkd6_Pj.js} +24 -17
- package/dist/_chunks/{balance-badge-cell-YGrYdrvR.js → balance-badge-cell-CA0YNJMR.js} +6 -6
- package/dist/_chunks/{bishop-score-Cu70iv9C.js → bishop-score-BMLRvXYF.js} +4 -4
- package/dist/_chunks/{bmi-calculator-C9N19aLX.js → bmi-calculator-DUhRyyrA.js} +3 -3
- package/dist/_chunks/{booking-C4MwImkS.js → booking-BQYFDcrz.js} +10 -10
- package/dist/_chunks/{breadcrumb-agut0PwN.js → breadcrumb-D3boYzD4.js} +50 -49
- package/dist/_chunks/{button-CaUe1uyd.js → button-18oBsI3n.js} +54 -50
- package/dist/_chunks/button-group-BSDqso_C.js +408 -0
- package/dist/_chunks/{calendar-OzSeTb4V.js → calendar-DjoJ9ovF.js} +11 -17
- package/dist/_chunks/{calendar-event-card-B6N5h1dO.js → calendar-event-card-BUbKBPv_.js} +55 -73
- package/dist/_chunks/calendar-workspace-D8zX9JWm.js +10423 -0
- package/dist/_chunks/{care-plan-card-BOv0NRle.js → care-plan-card-ciBaaguw.js} +4 -4
- package/dist/_chunks/{care-plan-entry-card-d-rZD4li.js → care-plan-entry-card-D7A0whiZ.js} +5 -5
- package/dist/_chunks/{care-plan-header-CEmBXn6-.js → care-plan-header-DKV1gLqv.js} +4 -4
- package/dist/_chunks/{carousel.agent-z1yLBpyC.js → carousel.agent-DqDGR2yH.js} +2 -2
- package/dist/_chunks/{chart-D8ucl8hH.js → chart-VjuXDXOZ.js} +3 -3
- package/dist/_chunks/{chat-input-Cj7ZYQr5.js → chat-input-BVho_SqP.js} +2 -2
- package/dist/_chunks/{chat-message-BMVxiUIX.js → chat-message-Co_NRGM4.js} +3 -3
- package/dist/_chunks/{smartphone-DaPcFw-X.js → circle-dashed-CUj6o2cA.js} +3 -14
- package/dist/_chunks/{city-input-DaQc-Hbj.js → city-input-BGYc4lRV.js} +2 -2
- package/dist/_chunks/{clinical-note-card-DdsGYMmI.js → clinical-note-card-DYDQ3q2x.js} +89 -74
- package/dist/_chunks/{code-block-BB-viuTn.js → code-block-C_eNHWaa.js} +2 -2
- package/dist/_chunks/combobox-B_rLwmSv.js +578 -0
- package/dist/_chunks/{command-palette-DQl_SNEv.js → command-palette-DhgGo7GJ.js} +82 -80
- package/dist/_chunks/{connection-status-BmA9T0UO.js → connection-status-Cfux3TvH.js} +4 -4
- package/dist/_chunks/{contact-profile-card-C0WpwpVV.js → contact-profile-card-Dj4NgBL-.js} +3 -3
- package/dist/_chunks/control-room-rail-DAO0qfOI.js +379 -0
- package/dist/_chunks/{copy-field-B8XRVmQv.js → copy-field-Cm4y5Bff.js} +2 -2
- package/dist/_chunks/{country-select-CfDNFG5c.js → country-select-C5jZjO8O.js} +2 -2
- package/dist/_chunks/{cycle-calculator-BH2StWoT.js → cycle-calculator-B9lBRNiZ.js} +3 -3
- package/dist/_chunks/{dashboard-grid-BcXWL5S9.js → dashboard-grid-uX7x1ePj.js} +2 -2
- package/dist/_chunks/{data-table-DnKOmEVw.js → data-table-DWOSxlsy.js} +9 -9
- package/dist/_chunks/{data-table-tabs-B9SXA5VP.js → data-table-tabs-CzYYKp2_.js} +3 -3
- package/dist/_chunks/{dependent-selector-BHDP0nBB.js → dependent-selector-BR_8D2Qu.js} +2 -2
- package/dist/_chunks/{description-list-BsJ_6CQE.js → description-list-1A2DEbE6.js} +2 -2
- package/dist/_chunks/{document-preview-COV0BC6n.js → document-preview-Od2Hz4z5.js} +13 -12
- package/dist/_chunks/{document-scanner-B1abl-A4.js → document-scanner-p0aGlzCy.js} +3 -3
- package/dist/_chunks/{dropdown-menu-DU-Hrf33.js → dropdown-menu-C8PaW3lR.js} +110 -96
- package/dist/_chunks/{due-date-calculator-Buh_mVHq.js → due-date-calculator-BVqJaxzd.js} +4 -4
- package/dist/_chunks/{editable-currency-cell-renderer-OUkUv7U4.js → editable-currency-cell-renderer-D_G2Ap61.js} +4 -4
- package/dist/_chunks/{editable-description-ADMVFPUz.js → editable-description-B4NVdjvd.js} +3 -3
- package/dist/_chunks/{editor-overlay-DwNKaI22.js → editor-overlay-BDiBvQmL.js} +2 -2
- package/dist/_chunks/{empty-state-BUN_UAWf.js → empty-state-DTBZ1ENT.js} +2 -2
- package/dist/_chunks/{entity-card-I-Gio5wo.js → entity-card-D1Yrh9wf.js} +2 -1
- package/dist/_chunks/{entity-summary-DXejuQ8i.js → entity-summary-Ckz_U00H.js} +3 -3
- package/dist/_chunks/{error-boundary-BNT2iQ1w.js → error-boundary-BxTqEXqj.js} +2 -2
- package/dist/_chunks/euro-Dsuz4ixO.js +22 -0
- package/dist/_chunks/{face-scheme-mIhwrQXt.js → face-scheme-fku-RShg.js} +71 -71
- package/dist/_chunks/{fetal-weight-wx4ycKc6.js → fetal-weight-B69yOS9W.js} +3 -3
- package/dist/_chunks/{field-array-BW9KeeXG.js → field-array-lIXrFWS0.js} +3 -3
- package/dist/_chunks/file-BuG1VMAy.js +21 -0
- package/dist/_chunks/{file-Cwe9VC1A.js → file-image-cDgE-BTy.js} +2 -19
- package/dist/_chunks/{file-manager-DOcJGIx2.js → file-manager-CqgxLqoA.js} +15 -14
- package/dist/_chunks/{file-upload-BDpb08GM.js → file-upload-B242a_Y1.js} +53 -52
- package/dist/_chunks/{finished-terminal-DJd7Z_po.js → finished-terminal-B2oqXO0Y.js} +2 -2
- package/dist/_chunks/fiscal-code-input-BEF8eKIG.js +572 -0
- package/dist/_chunks/{freemium-paywall-BaW5ODc9.js → freemium-paywall-B6JITu4l.js} +2 -2
- package/dist/_chunks/{gestational-age-calculator-CwbecTul.js → gestational-age-calculator-DsGN6_HS.js} +5 -5
- package/dist/_chunks/handled-rejection-6gqCf5vt.js +13 -0
- package/dist/_chunks/{hcg-doubling-BcXriXJe.js → hcg-doubling-D2SH-e7t.js} +3 -3
- package/dist/_chunks/{header-3o9o9v_T.js → header-CCjp5GvE.js} +2 -2
- package/dist/_chunks/{header-settings-BEfx_-TF.js → header-settings-ZXa6hXuu.js} +5 -5
- package/dist/_chunks/{help-me-write-templates-DHIwa4xR.js → help-me-write-templates-DQtT1qs_.js} +5 -5
- package/dist/_chunks/history-CK2JaU2g.js +16 -0
- package/dist/_chunks/{hover-card-nUae8NPJ.js → hover-card-BplP5SzQ.js} +2 -2
- package/dist/_chunks/{icon-button-CehAeZoP.js → icon-button-CY7GU_Se.js} +2 -2
- package/dist/_chunks/icon-button-group-B_426QN_.js +431 -0
- package/dist/_chunks/{icon-picker-DMEelg9v.js → icon-picker-ZLebyB0U.js} +3 -3
- package/dist/_chunks/{image-cropper-BjPjT7wU.js → image-cropper-_HiNN79d.js} +2 -2
- package/dist/_chunks/{info-tip-iP2Pm9dh.js → info-tip-laBxZhKu.js} +2 -2
- package/dist/_chunks/{insert-result-DPnOBD85.js → insert-result-CSuPQyKL.js} +2 -2
- package/dist/_chunks/{key-value-pair-DaQI_LZB.js → key-value-pair-Dcdl3Gni.js} +2 -2
- package/dist/_chunks/{kit-extensions-DuoFF1R3.js → kit-extensions-BTJSnM_H.js} +6 -6
- package/dist/_chunks/{link-cell-renderer-s3oHzOwi.js → link-cell-renderer-Tswqf6BT.js} +7 -7
- package/dist/_chunks/{locale-picker-CH3kfrIG.js → locale-picker-DGkQmhV9.js} +170 -180
- package/dist/_chunks/{map-view-CHw4RL6w.js → map-view-Bb7ClKSF.js} +2 -2
- package/dist/_chunks/{marketplace-app-shell-PB89Dkk_.js → marketplace-app-shell-Dehuxbi-.js} +6 -6
- package/dist/_chunks/menu-row-BAr8bx1I.js +95 -0
- package/dist/_chunks/{message-card-V3sFPiQI.js → message-card-DKOtnBHy.js} +3 -3
- package/dist/_chunks/{message-tray-CrRIHfiQ.js → message-tray-COMEtmyr.js} +4 -4
- package/dist/_chunks/{multi-select-CtPd7g4x.js → multi-select-N4Smh-gj.js} +114 -113
- package/dist/_chunks/{muscle-scheme-UVz_x4iE.js → muscle-scheme-Co0NIgbU.js} +3 -3
- package/dist/_chunks/{note-attachment-CwDir3kK.js → note-attachment-CGjNTrAC.js} +2 -2
- package/dist/_chunks/{note-timeline-Dn_XTo1s.js → note-timeline-CVnKL0p6.js} +2 -2
- package/dist/_chunks/notes-panel-BiOxZL_0.js +1111 -0
- package/dist/_chunks/{notification-card-B2gLO6dK.js → notification-card-DDzBCi8l.js} +3 -3
- package/dist/_chunks/{notification-tray-BOEKegVV.js → notification-tray-PnH2PBlZ.js} +4 -4
- package/dist/_chunks/{operator-hero-XIdwDmN2.js → operator-hero-5061fkY5.js} +3 -3
- package/dist/_chunks/{optical-prescription-LGgmtcST.js → optical-prescription-DUufWXfZ.js} +3 -3
- package/dist/_chunks/{pagination-EkD5SiCK.js → pagination-B0N2qGy_.js} +83 -82
- package/dist/_chunks/panel-subview-CzHutkA8.js +217 -0
- package/dist/_chunks/{patient-details-yrgkSeEY.js → patient-details-C23Hdm8v.js} +3 -3
- package/dist/_chunks/{patient-field-row-DCMkFGqI.js → patient-field-row-DElFbpKc.js} +12 -12
- package/dist/_chunks/{patient-search-5QcmQKJD.js → patient-search-DgXdGkhK.js} +4 -4
- package/dist/_chunks/{patient-summary-card-CmEFflGS.js → patient-summary-card-C36L3h7h.js} +7 -7
- package/dist/_chunks/{payment-automation-upsell-BKmBXU4i.js → payment-automation-upsell-ugi4np1l.js} +3 -3
- package/dist/_chunks/{payment-request-card-Cer6XXCn.js → payment-request-card-DMJB57Tv.js} +5 -5
- package/dist/_chunks/{periodontal-chart-DJoZS_o7.js → periodontal-chart-DbGzKDj7.js} +2 -2
- package/dist/_chunks/{periodontal-chart-card-Nd1ZoYWb.js → periodontal-chart-card-DvHyP47v.js} +3 -3
- package/dist/_chunks/{periodontal-diagnosis-C7pfPOct.js → periodontal-diagnosis-B8WqI0eU.js} +2 -2
- package/dist/_chunks/{periodontal-risk-chart-B2tNFa15.js → periodontal-risk-chart-DsFRFFSz.js} +2 -2
- package/dist/_chunks/{phone-input-IWrGOCwm.js → phone-input-sQj-zi59.js} +85 -86
- package/dist/_chunks/{popover-DO-pssF3.js → popover-Dvb40vPH.js} +2 -2
- package/dist/_chunks/{practice-profile-hero-DxoLlQr5.js → practice-profile-hero-CPy5h2yI.js} +2 -2
- package/dist/_chunks/{practice-results-D11Zpt27.js → practice-results-t2BHht91.js} +7 -7
- package/dist/_chunks/{pregnancy-dating-DcyV9ZRD.js → pregnancy-dating-lfjjZVZH.js} +5 -5
- package/dist/_chunks/{pregnancy-weight-gain-Bfq4Kwt5.js → pregnancy-weight-gain-WpNt-S0q.js} +3 -3
- package/dist/_chunks/{privacy-lock-CbFCAMM3.js → privacy-lock-D6gq0GDg.js} +3 -3
- package/dist/_chunks/privacy-mask-BC5lw2zB.js +81 -0
- package/dist/_chunks/{product-hub-panel-w40-_-1s.js → product-hub-panel-CKeSCSeE.js} +3 -3
- package/dist/_chunks/{province-select-BaUnkg4S.js → province-select-BiszMRRY.js} +2 -2
- package/dist/_chunks/{public-header.agent-D-EBVskf.js → public-header.agent-B9wDmUeB.js} +3 -3
- package/dist/_chunks/{radiograph-panel.agent-LrILY2lN.js → radiograph-panel.agent-TmyIvTOa.js} +6 -6
- package/dist/_chunks/{reviews-panel-2GVuxGeT.js → reviews-panel-BdwFp_0c.js} +4 -4
- package/dist/_chunks/{rich-text-editor-BwDV2XkZ.js → rich-text-editor-y6ML0KeV.js} +12 -11
- package/dist/_chunks/{search-bar-CCmViqaa.js → search-bar-6bHatpYJ.js} +69 -67
- package/dist/_chunks/{select-CLSUnKjF.js → select-upNAltly.js} +89 -88
- package/dist/_chunks/{session-countdown-BqppPrw6.js → session-countdown-ACJyTXH2.js} +2 -2
- package/dist/_chunks/{sheet-C8WIDFS8.js → sheet-D0Lh0KR2.js} +2 -2
- package/dist/_chunks/{sign-in-with-alfadocs-button-DWwBJtyE.js → sign-in-with-alfadocs-button-CDyJAIzW.js} +2 -2
- package/dist/_chunks/{signature-request-D_j2aQu1.js → signature-request-15D363w5.js} +6 -6
- package/dist/_chunks/{signature-status-chip-D4NsrdeI.js → signature-status-chip-Dz6sS2oA.js} +2 -2
- package/dist/_chunks/{slot-grid-B3eOPkKD.js → slot-grid-4fWH3Euk.js} +4 -4
- package/dist/_chunks/smartphone-C0rFF2if.js +15 -0
- package/dist/_chunks/{streaming-text-CE1u_oGa.js → streaming-text-eRiizArc.js} +2 -2
- package/dist/_chunks/{tab-bar-Cw9UK18Z.js → tab-bar-BHFf6knq.js} +9 -9
- package/dist/_chunks/{tabs-BnRaLT0y.js → tabs-CFsuMQ5H.js} +82 -81
- package/dist/_chunks/{tag-Ci3xJPcH.js → tag-B65tLWvD.js} +24 -21
- package/dist/_chunks/{task-card-qTKD1fIT.js → task-card-CTTQfPS6.js} +72 -55
- package/dist/_chunks/task-editor-DlvTwAfv.js +1243 -0
- package/dist/_chunks/{task-tray-DIwjAIes.js → task-tray-JA-qp_pB.js} +4 -4
- package/dist/_chunks/tasks-panel-C_dVDQKJ.js +1243 -0
- package/dist/_chunks/{theme-toggle-BP0XRGMM.js → theme-toggle-LUBxlNDm.js} +4 -4
- package/dist/_chunks/{toast-ZZfhA5u0.js → toast-CT8hjr9r.js} +2 -2
- package/dist/_chunks/{token-insert-menu-A9B5AJw6.js → token-insert-menu-klwbxVKh.js} +3 -3
- package/dist/_chunks/{tool-rail-CCFqDfAn.js → tool-rail-DEeX4PdN.js} +144 -137
- package/dist/_chunks/{tooth-scheme-DPAq0vQK.js → tooth-scheme-BkjhkI8g.js} +4 -4
- package/dist/_chunks/{treatment-receipt-DU0OewqH.js → treatment-receipt-C-gWZ6uv.js} +3 -3
- package/dist/_chunks/{unit-converter-C-LpGzrN.js → unit-converter-Dp_KDxE6.js} +3 -3
- package/dist/_chunks/use-appointment-details-read-D2FH-cHF.js +2045 -0
- package/dist/_chunks/use-list-reflow-C7O4Uqnl.js +133 -0
- package/dist/_chunks/use-priority-overflow-Cdmb5EiR.js +108 -0
- package/dist/_chunks/{variables-menu-vXUaSBj4.js → variables-menu-aJLKJ_cu.js} +127 -136
- package/dist/_chunks/{warning-stack-C0glSB7p.js → warning-stack-CEgYkI1z.js} +3 -3
- package/dist/_chunks/{widget-picker-B1sj6uyf.js → widget-picker-CilQvcNL.js} +2 -2
- package/dist/_chunks/{workflow-map-DhR_h5yw.js → workflow-map-qGkQTNvS.js} +30 -29
- package/dist/_chunks/{workflow-status-CuJAOuKL.js → workflow-status-ClHfz4Kr.js} +209 -167
- package/dist/agent-catalog.json +371 -26
- package/dist/agent-i18n/en.json +41 -9
- package/dist/components/_shared/appointment-format.d.ts +52 -0
- package/dist/{patterns/calendar/calendar-editor-fields.d.ts → components/_shared/compact-editor-fields.d.ts} +6 -5
- package/dist/components/_shared/handled-rejection.d.ts +2 -0
- package/dist/components/_shared/menu-row.d.ts +17 -0
- package/dist/components/_shared/patient-identity.d.ts +7 -0
- package/dist/components/_shared/patient-picker.d.ts +24 -0
- package/dist/components/_shared/privacy-mask.d.ts +29 -0
- package/dist/components/address-autocomplete/index.js +1 -1
- package/dist/components/address-fields/index.js +1 -1
- package/dist/components/agenda-card/index.js +1 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-credits-notice/index.js +1 -1
- package/dist/components/ai-permission-notice/index.js +1 -1
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/anamnesis-card/index.js +1 -1
- package/dist/components/anamnesis-summary-card/index.js +1 -1
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-details-panel/appointment-details-panel.agent.d.ts +4 -0
- package/dist/components/appointment-details-panel/appointment-details-panel.d.ts +134 -0
- package/dist/components/appointment-details-panel/appointment-details-panel.focus.d.ts +7 -0
- package/dist/components/appointment-details-panel/appointment-details-panel.history.d.ts +12 -0
- package/dist/components/appointment-details-panel/appointment-details-panel.identity.d.ts +41 -0
- package/dist/{patterns/calendar/calendar-info-hover.d.ts → components/appointment-details-panel/appointment-details-panel.info-hover.d.ts} +1 -1
- package/dist/components/appointment-details-panel/appointment-details-panel.sections.d.ts +51 -0
- package/dist/components/appointment-details-panel/appointment-details-panel.types.d.ts +326 -0
- package/dist/components/appointment-details-panel/index.d.ts +8 -0
- package/dist/components/appointment-details-panel/index.js +8 -0
- package/dist/components/appointment-details-panel/use-appointment-details-read.d.ts +32 -0
- package/dist/components/appointment-peek/index.js +1 -1
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/autocomplete/index.js +1 -1
- package/dist/components/badge/index.js +1 -1
- package/dist/components/bishop-score/index.js +1 -1
- package/dist/components/bmi-calculator/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/breadcrumb/index.js +1 -1
- package/dist/components/button/button.d.ts +2 -1
- package/dist/components/button/index.js +2 -2
- package/dist/components/button-group/button-group.d.ts +19 -2
- package/dist/components/button-group/index.js +1 -1
- package/dist/components/calendar/calendar.d.ts +5 -1
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/calendar-event-card/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/care-plan-header/index.js +1 -1
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/chart/index.js +1 -1
- package/dist/components/chat-input/index.js +1 -1
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/city-input/index.js +1 -1
- package/dist/components/clinical-note-card/clinical-note-card.d.ts +13 -5
- package/dist/components/clinical-note-card/index.js +1 -1
- package/dist/components/combobox/combobox.d.ts +9 -4
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/command-palette/index.js +1 -1
- package/dist/components/connection-status/index.js +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/control-room-rail/control-room-rail.d.ts +14 -3
- package/dist/components/control-room-rail/index.js +1 -1
- package/dist/components/copy-field/index.js +1 -1
- package/dist/components/country-select/index.js +1 -1
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/dashboard-grid/index.js +1 -1
- package/dist/components/data-table/index.js +4 -4
- package/dist/components/data-table-tabs/index.js +1 -1
- package/dist/components/dependent-selector/index.js +1 -1
- package/dist/components/description-list/index.js +1 -1
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/document-scanner/index.js +1 -1
- package/dist/components/dropdown-menu/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +2 -2
- package/dist/components/editable-description/index.js +1 -1
- package/dist/components/editor-overlay/index.js +1 -1
- package/dist/components/empty-state/index.js +1 -1
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/error-boundary/index.js +1 -1
- package/dist/components/face-scheme/index.js +1 -1
- package/dist/components/fetal-weight/index.js +1 -1
- package/dist/components/field-array/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/file-upload/index.js +1 -1
- package/dist/components/finished-terminal/index.js +1 -1
- package/dist/components/fiscal-code-input/fiscal-code-input.d.ts +7 -0
- package/dist/components/fiscal-code-input/index.d.ts +1 -1
- package/dist/components/fiscal-code-input/index.js +8 -7
- package/dist/components/fiscal-code-input/is-valid-codice-fiscale.d.ts +19 -4
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/hcg-doubling/index.js +1 -1
- package/dist/components/header/index.js +1 -1
- package/dist/components/header-settings/index.js +1 -1
- package/dist/components/hover-card/index.js +1 -1
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/icon-button-group/index.js +1 -1
- package/dist/components/icon-picker/index.js +1 -1
- package/dist/components/image-cropper/index.js +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/info-tip/index.js +1 -1
- package/dist/components/key-value-pair/index.js +1 -1
- package/dist/components/locale-picker/index.js +1 -1
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/message-card/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/multi-select/index.js +1 -1
- package/dist/components/muscle-scheme/index.js +1 -1
- package/dist/components/note-timeline/index.js +1 -1
- package/dist/components/notes-panel/index.d.ts +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/notes-panel/notes-panel.d.ts +102 -26
- package/dist/components/notification-card/index.js +1 -1
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/operator-hero/index.js +1 -1
- package/dist/components/optical-prescription/index.js +1 -1
- package/dist/components/pagination/index.js +1 -1
- package/dist/components/panel-subview/index.js +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/payment-card/index.js +1 -1
- package/dist/components/periodontal-chart/index.js +1 -1
- package/dist/components/periodontal-chart-card/index.js +1 -1
- package/dist/components/periodontal-diagnosis/index.js +1 -1
- package/dist/components/periodontal-risk-chart/index.js +1 -1
- package/dist/components/phone-input/index.js +1 -1
- package/dist/components/popover/index.js +1 -1
- package/dist/components/practice-profile-hero/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/index.js +1 -1
- package/dist/components/privacy-lock/index.js +1 -1
- package/dist/components/product-hub-tray/index.js +1 -1
- package/dist/components/province-select/index.js +1 -1
- package/dist/components/public-header/index.js +1 -1
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/components/reviews-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +2 -2
- package/dist/components/search-bar/index.js +1 -1
- package/dist/components/select/index.js +1 -1
- package/dist/components/session-countdown/index.js +1 -1
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
- package/dist/components/signature-field/signature-field.d.ts +1 -1
- package/dist/components/signature-status-chip/index.js +1 -1
- package/dist/components/skeleton-scheme/index.js +17 -17
- package/dist/components/slot-grid/index.js +1 -1
- package/dist/components/streaming-text/index.js +1 -1
- package/dist/components/tab-bar/index.js +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tag/index.js +1 -1
- package/dist/components/task-card/index.js +1 -1
- package/dist/components/task-card/task-card.d.ts +6 -0
- package/dist/components/task-editor/index.d.ts +4 -0
- package/dist/components/task-editor/index.js +6 -0
- package/dist/components/task-editor/task-editor.agent.d.ts +4 -0
- package/dist/components/task-editor/task-editor.d.ts +240 -0
- package/dist/components/task-editor/use-task-editor-form.d.ts +101 -0
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/tasks-panel/index.d.ts +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/tasks-panel/tasks-panel.d.ts +84 -12
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/toast/index.js +1 -1
- package/dist/components/token-insert-menu/index.js +1 -1
- package/dist/components/tool-rail/index.js +1 -1
- package/dist/components/tooth-scheme/index.js +1 -1
- package/dist/components/treatment-receipt/index.js +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/variables-menu/index.js +1 -1
- package/dist/components/warning-stack/index.js +1 -1
- package/dist/components/widget-picker/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/components/workflow-status/appointment-workflow-status.d.ts +55 -0
- package/dist/components/workflow-status/index.d.ts +2 -0
- package/dist/components/workflow-status/index.js +7 -2
- package/dist/components/workflow-status/workflow-status.d.ts +35 -0
- package/dist/hooks/index.js +2 -2
- package/dist/hooks/use-exit-transition.d.ts +5 -0
- package/dist/hooks/use-priority-overflow.d.ts +11 -2
- package/dist/host-compat.css +7 -1
- package/dist/i18n/locales/ar.d.ts +29 -10
- package/dist/i18n/locales/ar.js +33 -14
- package/dist/i18n/locales/de.d.ts +29 -10
- package/dist/i18n/locales/de.js +33 -14
- package/dist/i18n/locales/el.d.ts +29 -10
- package/dist/i18n/locales/el.js +33 -14
- package/dist/i18n/locales/en.d.ts +29 -10
- package/dist/i18n/locales/en.js +33 -14
- package/dist/i18n/locales/es.d.ts +29 -10
- package/dist/i18n/locales/es.js +33 -14
- package/dist/i18n/locales/fr.d.ts +29 -10
- package/dist/i18n/locales/fr.js +33 -14
- package/dist/i18n/locales/hi.d.ts +29 -10
- package/dist/i18n/locales/hi.js +33 -14
- package/dist/i18n/locales/it.d.ts +29 -10
- package/dist/i18n/locales/it.js +33 -14
- package/dist/i18n/locales/ja.d.ts +29 -10
- package/dist/i18n/locales/ja.js +33 -14
- package/dist/i18n/locales/nl.d.ts +29 -10
- package/dist/i18n/locales/nl.js +33 -14
- package/dist/i18n/locales/pl.d.ts +29 -10
- package/dist/i18n/locales/pl.js +33 -14
- package/dist/i18n/locales/pt.d.ts +29 -10
- package/dist/i18n/locales/pt.js +33 -14
- package/dist/i18n/locales/ro.d.ts +29 -10
- package/dist/i18n/locales/ro.js +33 -14
- package/dist/i18n/locales/ru.d.ts +29 -10
- package/dist/i18n/locales/ru.js +33 -14
- package/dist/i18n/locales/sq.d.ts +29 -10
- package/dist/i18n/locales/sq.js +33 -14
- package/dist/i18n/locales/sv.d.ts +29 -10
- package/dist/i18n/locales/sv.js +33 -14
- package/dist/i18n/locales/tr.d.ts +29 -10
- package/dist/i18n/locales/tr.js +33 -14
- package/dist/i18n/locales/zh.d.ts +29 -10
- package/dist/i18n/locales/zh.js +33 -14
- package/dist/i18n/registerUiBundle.d.ts +5 -9
- package/dist/index.js +742 -728
- package/dist/locales/ar.json +33 -14
- package/dist/locales/de.json +33 -14
- package/dist/locales/el.json +33 -14
- package/dist/locales/en.json +33 -14
- package/dist/locales/es.json +33 -14
- package/dist/locales/fr.json +33 -14
- package/dist/locales/hi.json +33 -14
- package/dist/locales/it.json +33 -14
- package/dist/locales/ja.json +33 -14
- package/dist/locales/nl.json +33 -14
- package/dist/locales/pl.json +33 -14
- package/dist/locales/pt.json +33 -14
- package/dist/locales/ro.json +33 -14
- package/dist/locales/ru.json +33 -14
- package/dist/locales/sq.json +33 -14
- package/dist/locales/sv.json +33 -14
- package/dist/locales/tr.json +33 -14
- package/dist/locales/zh.json +33 -14
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/calendar-appointment-details.d.ts +25 -95
- package/dist/patterns/calendar/calendar-patient-picker.d.ts +4 -3
- package/dist/patterns/calendar/calendar-privacy.d.ts +1 -22
- package/dist/patterns/calendar/calendar-sticky-offset.d.ts +20 -13
- package/dist/patterns/calendar/calendar-task-editor.d.ts +9 -13
- package/dist/patterns/calendar/calendar-workspace.d.ts +79 -8
- package/dist/patterns/calendar/calendar-workspace.model.d.ts +17 -12
- package/dist/patterns/calendar/calendar.journey.d.ts +40 -6
- package/dist/patterns/calendar/calendar.model.d.ts +10 -17
- package/dist/patterns/calendar/calendar.sheets.d.ts +18 -16
- package/dist/patterns/calendar/calendar.types.d.ts +24 -100
- package/dist/patterns/calendar/index.d.ts +4 -3
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/help-me-write-templates/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/payment-automation-upsell/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +22 -5
- package/dist/_chunks/button-group-CA1tmu39.js +0 -325
- package/dist/_chunks/calendar-workspace-BmscntRR.js +0 -12528
- package/dist/_chunks/combobox-DnSdYssy.js +0 -522
- package/dist/_chunks/control-room-rail-CdBOXIqX.js +0 -366
- package/dist/_chunks/fiscal-code-input-ODQRd_Sw.js +0 -553
- package/dist/_chunks/icon-button-group-DZKC6KGf.js +0 -428
- package/dist/_chunks/notes-panel-CHbDDMx8.js +0 -683
- package/dist/_chunks/panel-subview-CYnuX-KR.js +0 -171
- package/dist/_chunks/tasks-panel-DncuBPIZ.js +0 -844
- package/dist/_chunks/use-list-reflow-Cw43nxw5.js +0 -100
- package/dist/_chunks/use-priority-overflow-c9SjxZkZ.js +0 -101
- package/dist/patterns/calendar/calendar-appointment-details.sections.d.ts +0 -37
|
@@ -1,553 +0,0 @@
|
|
|
1
|
-
import { jsxs as A, jsx as l, Fragment as Ze } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as je, useContext as Xe, useState as oe, useRef as P, useId as Ke, useEffect as Oe, useMemo as H, useCallback as ae } from "react";
|
|
3
|
-
import { c as ue } from "./index-D2ZczOXr.js";
|
|
4
|
-
import { useTranslation as Ge } from "react-i18next";
|
|
5
|
-
import { u as We, F as qe } from "./form-field-context-B3APVHKx.js";
|
|
6
|
-
import { I as ie, c as Ye, a as L, b as Z } from "./input-surface-xyERuLU_.js";
|
|
7
|
-
import { c as Je } from "./compose-refs-C0k0tdqF.js";
|
|
8
|
-
import { u as Qe } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
9
|
-
import { u as et } from "./registry-DvAUVLHh.js";
|
|
10
|
-
import { I as tt } from "./icon-button-CehAeZoP.js";
|
|
11
|
-
import { c as st } from "./createLucideIcon-DhHxpK9K.js";
|
|
12
|
-
import { C as ce } from "./circle-alert-rGDZ73Wh.js";
|
|
13
|
-
import { C as le } from "./circle-check-BN6rz4NV.js";
|
|
14
|
-
/**
|
|
15
|
-
* @license lucide-react v1.22.0 - ISC
|
|
16
|
-
*
|
|
17
|
-
* This source code is licensed under the ISC license.
|
|
18
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
19
|
-
*/
|
|
20
|
-
const nt = [
|
|
21
|
-
["rect", { width: "16", height: "20", x: "4", y: "2", rx: "2", key: "1nb95v" }],
|
|
22
|
-
["line", { x1: "8", x2: "16", y1: "6", y2: "6", key: "x4nwl0" }],
|
|
23
|
-
["line", { x1: "16", x2: "16", y1: "14", y2: "18", key: "wjye3r" }],
|
|
24
|
-
["path", { d: "M16 10h.01", key: "1m94wz" }],
|
|
25
|
-
["path", { d: "M12 10h.01", key: "1nrarc" }],
|
|
26
|
-
["path", { d: "M8 10h.01", key: "19clt8" }],
|
|
27
|
-
["path", { d: "M12 14h.01", key: "1etili" }],
|
|
28
|
-
["path", { d: "M8 14h.01", key: "6423bh" }],
|
|
29
|
-
["path", { d: "M12 18h.01", key: "mhygvu" }],
|
|
30
|
-
["path", { d: "M8 18h.01", key: "lrp35t" }]
|
|
31
|
-
], rt = st("calculator", nt), ot = {
|
|
32
|
-
id: "fiscal-code-input",
|
|
33
|
-
capabilities: ["set_value"],
|
|
34
|
-
state: {
|
|
35
|
-
value: {
|
|
36
|
-
type: "string",
|
|
37
|
-
descriptionKey: "ui.agent.fiscalCodeInput.state.value",
|
|
38
|
-
description: "Current codice fiscale, normalised (uppercased, 0–16 [A-Z0-9] characters).",
|
|
39
|
-
read: (e) => e.getValue()
|
|
40
|
-
},
|
|
41
|
-
isValid: {
|
|
42
|
-
type: "boolean",
|
|
43
|
-
descriptionKey: "ui.agent.fiscalCodeInput.state.isValid",
|
|
44
|
-
description: "Whether the value is 16 structurally-sound characters with a matching control character.",
|
|
45
|
-
read: (e) => e.isValid()
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
actions: {
|
|
49
|
-
set_value: {
|
|
50
|
-
safety: "write",
|
|
51
|
-
argsType: "{ value: string }",
|
|
52
|
-
argsSchema: {
|
|
53
|
-
type: "object",
|
|
54
|
-
properties: { value: { type: "string" } },
|
|
55
|
-
required: ["value"]
|
|
56
|
-
},
|
|
57
|
-
idempotent: !0,
|
|
58
|
-
descriptionKey: "ui.agent.fiscalCodeInput.actions.setValue",
|
|
59
|
-
description: "Replace the codice fiscale. The value is uppercased and stripped to [A-Z0-9], capped at 16 characters.",
|
|
60
|
-
examples: [
|
|
61
|
-
{
|
|
62
|
-
args: { value: "RSSMRA85T10A562S" },
|
|
63
|
-
note: "A complete, structurally-sound codice fiscale."
|
|
64
|
-
}
|
|
65
|
-
],
|
|
66
|
-
invoke: (e, t) => {
|
|
67
|
-
e.setValue(t.value);
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
clear: {
|
|
71
|
-
safety: "destructive",
|
|
72
|
-
idempotent: !0,
|
|
73
|
-
descriptionKey: "ui.agent.fiscalCodeInput.actions.clear",
|
|
74
|
-
description: "Empty the input. Loses any typed value.",
|
|
75
|
-
invoke: (e) => {
|
|
76
|
-
e.clear();
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
focus: {
|
|
80
|
-
safety: "read",
|
|
81
|
-
descriptionKey: "ui.agent.fiscalCodeInput.actions.focus",
|
|
82
|
-
description: "Move keyboard focus to the codice fiscale input.",
|
|
83
|
-
invoke: (e) => {
|
|
84
|
-
e.focus();
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
domHooks: {
|
|
89
|
-
root: {
|
|
90
|
-
attr: "data-component",
|
|
91
|
-
value: "fiscal-code-input",
|
|
92
|
-
description: "Marks the FiscalCodeInput wrapper."
|
|
93
|
-
},
|
|
94
|
-
instanceId: {
|
|
95
|
-
attr: "data-component-id",
|
|
96
|
-
sourceProp: "id",
|
|
97
|
-
description: "Sourced from the id prop."
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}, at = /* @__PURE__ */ new Set([0, 1, 2, 3, 4, 5, 8, 11]), it = /* @__PURE__ */ new Set([6, 7, 9, 10, 12, 13, 14]), ct = Object.freeze({
|
|
101
|
-
0: 1,
|
|
102
|
-
1: 0,
|
|
103
|
-
2: 5,
|
|
104
|
-
3: 7,
|
|
105
|
-
4: 9,
|
|
106
|
-
5: 13,
|
|
107
|
-
6: 15,
|
|
108
|
-
7: 17,
|
|
109
|
-
8: 19,
|
|
110
|
-
9: 21,
|
|
111
|
-
A: 1,
|
|
112
|
-
B: 0,
|
|
113
|
-
C: 5,
|
|
114
|
-
D: 7,
|
|
115
|
-
E: 9,
|
|
116
|
-
F: 13,
|
|
117
|
-
G: 15,
|
|
118
|
-
H: 17,
|
|
119
|
-
I: 19,
|
|
120
|
-
J: 21,
|
|
121
|
-
K: 2,
|
|
122
|
-
L: 4,
|
|
123
|
-
M: 18,
|
|
124
|
-
N: 20,
|
|
125
|
-
O: 11,
|
|
126
|
-
P: 3,
|
|
127
|
-
Q: 6,
|
|
128
|
-
R: 8,
|
|
129
|
-
S: 12,
|
|
130
|
-
T: 14,
|
|
131
|
-
U: 16,
|
|
132
|
-
V: 10,
|
|
133
|
-
W: 22,
|
|
134
|
-
X: 25,
|
|
135
|
-
Y: 24,
|
|
136
|
-
Z: 23
|
|
137
|
-
}), lt = Object.freeze({
|
|
138
|
-
0: 0,
|
|
139
|
-
1: 1,
|
|
140
|
-
2: 2,
|
|
141
|
-
3: 3,
|
|
142
|
-
4: 4,
|
|
143
|
-
5: 5,
|
|
144
|
-
6: 6,
|
|
145
|
-
7: 7,
|
|
146
|
-
8: 8,
|
|
147
|
-
9: 9,
|
|
148
|
-
A: 0,
|
|
149
|
-
B: 1,
|
|
150
|
-
C: 2,
|
|
151
|
-
D: 3,
|
|
152
|
-
E: 4,
|
|
153
|
-
F: 5,
|
|
154
|
-
G: 6,
|
|
155
|
-
H: 7,
|
|
156
|
-
I: 8,
|
|
157
|
-
J: 9,
|
|
158
|
-
K: 10,
|
|
159
|
-
L: 11,
|
|
160
|
-
M: 12,
|
|
161
|
-
N: 13,
|
|
162
|
-
O: 14,
|
|
163
|
-
P: 15,
|
|
164
|
-
Q: 16,
|
|
165
|
-
R: 17,
|
|
166
|
-
S: 18,
|
|
167
|
-
T: 19,
|
|
168
|
-
U: 20,
|
|
169
|
-
V: 21,
|
|
170
|
-
W: 22,
|
|
171
|
-
X: 23,
|
|
172
|
-
Y: 24,
|
|
173
|
-
Z: 25
|
|
174
|
-
}), dt = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
|
175
|
-
function ut(e) {
|
|
176
|
-
if (!/^[A-Z0-9]{15}[A-Z]$/.test(e)) return !1;
|
|
177
|
-
for (let t = 0; t < 15; t += 1) {
|
|
178
|
-
const n = e[t], r = n >= "0" && n <= "9";
|
|
179
|
-
if (at.has(t) && r || it.has(t) && !r) return !1;
|
|
180
|
-
}
|
|
181
|
-
return !0;
|
|
182
|
-
}
|
|
183
|
-
function fe(e) {
|
|
184
|
-
let t = 0;
|
|
185
|
-
for (let n = 0; n < 15; n += 1) {
|
|
186
|
-
const r = e[n];
|
|
187
|
-
t += n % 2 === 0 ? ct[r] : lt[r];
|
|
188
|
-
}
|
|
189
|
-
return dt[t % 26];
|
|
190
|
-
}
|
|
191
|
-
function N(e) {
|
|
192
|
-
if (e.length === 0) return "empty";
|
|
193
|
-
if (e.length < 16) return "incomplete";
|
|
194
|
-
const t = e.slice(0, 16);
|
|
195
|
-
return ut(t) ? fe(t.slice(0, 15)) !== t[15] ? "badChecksum" : "valid" : "badFormat";
|
|
196
|
-
}
|
|
197
|
-
function Ut(e) {
|
|
198
|
-
return N(e) === "valid";
|
|
199
|
-
}
|
|
200
|
-
const pe = /* @__PURE__ */ new Set(["A", "E", "I", "O", "U"]), ft = [
|
|
201
|
-
"A",
|
|
202
|
-
"B",
|
|
203
|
-
"C",
|
|
204
|
-
"D",
|
|
205
|
-
"E",
|
|
206
|
-
"H",
|
|
207
|
-
"L",
|
|
208
|
-
"M",
|
|
209
|
-
"P",
|
|
210
|
-
"R",
|
|
211
|
-
"S",
|
|
212
|
-
"T"
|
|
213
|
-
];
|
|
214
|
-
function me(e) {
|
|
215
|
-
return e.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toUpperCase().replace(/[^A-Z]/g, "");
|
|
216
|
-
}
|
|
217
|
-
function he(e) {
|
|
218
|
-
return [...e].filter((t) => !pe.has(t)).join("");
|
|
219
|
-
}
|
|
220
|
-
function ge(e) {
|
|
221
|
-
return [...e].filter((t) => pe.has(t)).join("");
|
|
222
|
-
}
|
|
223
|
-
function pt(e) {
|
|
224
|
-
const t = me(e);
|
|
225
|
-
return (he(t) + ge(t) + "XXX").slice(0, 3);
|
|
226
|
-
}
|
|
227
|
-
function mt(e) {
|
|
228
|
-
const t = me(e), n = he(t);
|
|
229
|
-
return n.length >= 4 ? n[0] + n[2] + n[3] : (n + ge(t) + "XXX").slice(0, 3);
|
|
230
|
-
}
|
|
231
|
-
function ht(e) {
|
|
232
|
-
const t = e instanceof Date ? e : new Date(e);
|
|
233
|
-
if (Number.isNaN(t.getTime()))
|
|
234
|
-
throw new Error(`calculateCodiceFiscale: invalid birthDate "${e}"`);
|
|
235
|
-
return t;
|
|
236
|
-
}
|
|
237
|
-
function de(e) {
|
|
238
|
-
return String(e).padStart(2, "0");
|
|
239
|
-
}
|
|
240
|
-
function gt(e, t) {
|
|
241
|
-
const n = ht(e), r = de(n.getUTCFullYear() % 100), i = ft[n.getUTCMonth()], g = n.getUTCDate() + (t === "F" ? 40 : 0);
|
|
242
|
-
return r + i + de(g);
|
|
243
|
-
}
|
|
244
|
-
function Ct(e) {
|
|
245
|
-
const { surname: t, name: n, birthDate: r, sex: i, belfioreCode: g } = e, m = g.trim().toUpperCase();
|
|
246
|
-
if (!/^[A-Z][0-9]{3}$/.test(m))
|
|
247
|
-
throw new Error(
|
|
248
|
-
`calculateCodiceFiscale: belfioreCode must be a letter + 3 digits (e.g. "H501"), got "${g}"`
|
|
249
|
-
);
|
|
250
|
-
const S = pt(t) + mt(n) + gt(r, i) + m;
|
|
251
|
-
return S + fe(S);
|
|
252
|
-
}
|
|
253
|
-
const w = 16, vt = ue(
|
|
254
|
-
["ds:relative ds:flex ds:items-center ds:w-full", Ye].join(
|
|
255
|
-
" "
|
|
256
|
-
),
|
|
257
|
-
{
|
|
258
|
-
variants: {
|
|
259
|
-
size: {
|
|
260
|
-
sm: L.sm,
|
|
261
|
-
md: L.md,
|
|
262
|
-
lg: L.lg
|
|
263
|
-
},
|
|
264
|
-
tone: {
|
|
265
|
-
default: ie.default,
|
|
266
|
-
error: `${ie.error} ds:focus-within:outline-destructive`
|
|
267
|
-
}
|
|
268
|
-
},
|
|
269
|
-
defaultVariants: { size: "md", tone: "default" }
|
|
270
|
-
}
|
|
271
|
-
), yt = ue(
|
|
272
|
-
[
|
|
273
|
-
// dir="ltr" + tabular-nums keep the alphanumeric code rendering
|
|
274
|
-
// left-to-right and evenly spaced even under an RTL/CJK surrounding
|
|
275
|
-
// UI — this is a value-RENDERING concern (the code is never mirrored),
|
|
276
|
-
// not a layout-direction violation, so logical-prop rules don't apply
|
|
277
|
-
// to the code glyphs themselves.
|
|
278
|
-
"ds:w-full ds:min-w-0 ds:bg-transparent ds:text-foreground ds:placeholder:text-muted-foreground",
|
|
279
|
-
"ds:border-0 ds:outline-none ds:tabular-nums ds:uppercase ds:tracking-wide",
|
|
280
|
-
"ds:disabled:cursor-not-allowed",
|
|
281
|
-
"ds:read-only:cursor-default"
|
|
282
|
-
].join(" "),
|
|
283
|
-
{
|
|
284
|
-
variants: {
|
|
285
|
-
size: {
|
|
286
|
-
sm: `ds:pe-3 ${Z.sm}`,
|
|
287
|
-
md: `ds:pe-3 ${Z.md}`,
|
|
288
|
-
lg: `ds:pe-4 ${Z.lg}`
|
|
289
|
-
},
|
|
290
|
-
// When the calculate affordance is shown, the input text starts after
|
|
291
|
-
// the inline-start icon button (mirrors `hasEnd`'s pe-10 reservation).
|
|
292
|
-
hasStart: {
|
|
293
|
-
true: "ds:ps-10",
|
|
294
|
-
false: ""
|
|
295
|
-
},
|
|
296
|
-
hasEnd: {
|
|
297
|
-
true: "ds:pe-10",
|
|
298
|
-
false: ""
|
|
299
|
-
}
|
|
300
|
-
},
|
|
301
|
-
compoundVariants: [
|
|
302
|
-
{ size: "sm", hasStart: !1, class: "ds:ps-3" },
|
|
303
|
-
{ size: "md", hasStart: !1, class: "ds:ps-3" },
|
|
304
|
-
{ size: "lg", hasStart: !1, class: "ds:ps-4" }
|
|
305
|
-
],
|
|
306
|
-
defaultVariants: { size: "md", hasStart: !1, hasEnd: !1 }
|
|
307
|
-
}
|
|
308
|
-
), bt = "ds:absolute ds:inset-y-0 ds:end-0 ds:pe-3 ds:flex ds:items-center ds:pointer-events-none ds:[&_svg]:size-4", Et = "ds:absolute ds:inset-y-0 ds:start-0 ds:ps-1 ds:flex ds:items-center", j = "type-body-sm ds:mt-[var(--spacing-xs)]";
|
|
309
|
-
function p(e) {
|
|
310
|
-
return e.normalize("NFKC").replace(/[٠-٩]/g, (t) => String(t.charCodeAt(0) - 1632)).replace(/[۰-۹]/g, (t) => String(t.charCodeAt(0) - 1776)).toUpperCase().replace(/[^A-Z0-9]/g, "").slice(0, w);
|
|
311
|
-
}
|
|
312
|
-
function xt(e, t) {
|
|
313
|
-
let n = 0;
|
|
314
|
-
for (let r = 0; r < t && r < e.length; r += 1) {
|
|
315
|
-
const i = e[r];
|
|
316
|
-
(i >= "0" && i <= "9" || i >= "A" && i <= "Z" || i >= "a" && i <= "z") && (n += 1);
|
|
317
|
-
}
|
|
318
|
-
return n;
|
|
319
|
-
}
|
|
320
|
-
const It = je(function({
|
|
321
|
-
value: t,
|
|
322
|
-
defaultValue: n,
|
|
323
|
-
onChange: r,
|
|
324
|
-
size: i = "md",
|
|
325
|
-
tone: g = "default",
|
|
326
|
-
validateOn: m = "blur",
|
|
327
|
-
showError: S,
|
|
328
|
-
errorMessage: k,
|
|
329
|
-
disabled: Ce,
|
|
330
|
-
readOnly: d,
|
|
331
|
-
required: ve,
|
|
332
|
-
placeholder: ye,
|
|
333
|
-
showFormatHint: be = !0,
|
|
334
|
-
calculateFrom: R,
|
|
335
|
-
id: V,
|
|
336
|
-
name: Ee,
|
|
337
|
-
className: xe,
|
|
338
|
-
"aria-label": X
|
|
339
|
-
}, Ie) {
|
|
340
|
-
const { t: u } = Ge(), b = We(), f = Xe(qe) !== null, C = t !== void 0, [Se, M] = oe(
|
|
341
|
-
() => p(n ?? "")
|
|
342
|
-
), c = C ? p(t ?? "") : Se, [Te, K] = oe(!1), _ = P(!1), v = P(null), h = P(null), Fe = Je(Ie, h), B = Ke(), O = `${B}-hint`, G = `${B}-status`, W = `${B}-error`;
|
|
343
|
-
Oe(() => {
|
|
344
|
-
}, [f, X]);
|
|
345
|
-
const T = H(
|
|
346
|
-
() => N(c),
|
|
347
|
-
[c]
|
|
348
|
-
), q = c.length === w, E = T === "valid", D = (f ? b.disabled : !1) || !!Ce, Ae = (f ? b.required : !1) || !!ve, Ne = !d && (!!S || q && !E && (m === "change" || m === "blur" && Te)), Y = f && b.invalid, y = Ne && !Y, J = Y || y, we = J || g === "error" ? "error" : "default", ke = H(() => k || u(T === "badChecksum" ? "inputs.fiscalCode.errorChecksum" : T === "badFormat" ? "inputs.fiscalCode.errorFormat" : "inputs.fiscalCode.errorIncomplete"), [k, T, u]), Q = !f && be && !d, Re = f ? void 0 : [
|
|
349
|
-
Q ? O : null,
|
|
350
|
-
y ? W : G
|
|
351
|
-
].filter(Boolean).join(" ") || void 0, Ve = f ? b.describedBy || void 0 : Re, Me = V ?? b.id, x = ae(
|
|
352
|
-
(s) => {
|
|
353
|
-
const o = N(s);
|
|
354
|
-
r == null || r(s, {
|
|
355
|
-
isValid: o === "valid",
|
|
356
|
-
isComplete: s.length === w,
|
|
357
|
-
reason: o
|
|
358
|
-
});
|
|
359
|
-
},
|
|
360
|
-
[r]
|
|
361
|
-
), F = ae(
|
|
362
|
-
(s) => {
|
|
363
|
-
C || M(s), x(s);
|
|
364
|
-
},
|
|
365
|
-
[C, x]
|
|
366
|
-
);
|
|
367
|
-
Qe(() => {
|
|
368
|
-
if (v.current == null) return;
|
|
369
|
-
const s = v.current;
|
|
370
|
-
v.current = null;
|
|
371
|
-
const o = h.current;
|
|
372
|
-
if (o && document.activeElement === o) {
|
|
373
|
-
const a = Math.min(s, o.value.length);
|
|
374
|
-
o.setSelectionRange(a, a);
|
|
375
|
-
}
|
|
376
|
-
});
|
|
377
|
-
const _e = (s) => {
|
|
378
|
-
if (d || _.current) return;
|
|
379
|
-
const o = s.target, a = o.value, $ = o.selectionStart ?? a.length, z = xt(a, $), I = p(a);
|
|
380
|
-
v.current = Math.min(z, I.length), F(I);
|
|
381
|
-
}, Be = () => {
|
|
382
|
-
_.current = !0;
|
|
383
|
-
}, De = (s) => {
|
|
384
|
-
if (_.current = !1, d) return;
|
|
385
|
-
const o = p(s.currentTarget.value);
|
|
386
|
-
v.current = o.length, F(o);
|
|
387
|
-
}, Ue = (s) => {
|
|
388
|
-
if (d) return;
|
|
389
|
-
const o = s.clipboardData.getData("text");
|
|
390
|
-
s.preventDefault();
|
|
391
|
-
const a = h.current, $ = (a == null ? void 0 : a.selectionStart) ?? c.length, z = (a == null ? void 0 : a.selectionEnd) ?? c.length, I = p(o), ne = c.slice(0, $), Le = c.slice(z), re = p(ne + I + Le);
|
|
392
|
-
v.current = Math.min((ne + I).length, re.length), F(re);
|
|
393
|
-
}, $e = () => {
|
|
394
|
-
m === "blur" && K(!0);
|
|
395
|
-
}, ze = () => {
|
|
396
|
-
var a;
|
|
397
|
-
if (!R || d || D) return;
|
|
398
|
-
let s;
|
|
399
|
-
try {
|
|
400
|
-
s = Ct(R);
|
|
401
|
-
} catch {
|
|
402
|
-
return;
|
|
403
|
-
}
|
|
404
|
-
const o = p(s);
|
|
405
|
-
m === "blur" && K(!0), F(o), (a = h.current) == null || a.focus();
|
|
406
|
-
}, Pe = H(
|
|
407
|
-
() => ({
|
|
408
|
-
getValue: () => c,
|
|
409
|
-
setValue: (s) => {
|
|
410
|
-
var a;
|
|
411
|
-
const o = p(s);
|
|
412
|
-
C || M(o), x(o), (a = h.current) == null || a.focus();
|
|
413
|
-
},
|
|
414
|
-
clear: () => {
|
|
415
|
-
var s;
|
|
416
|
-
C || M(""), x(""), (s = h.current) == null || s.focus();
|
|
417
|
-
},
|
|
418
|
-
focus: () => {
|
|
419
|
-
var s;
|
|
420
|
-
return (s = h.current) == null ? void 0 : s.focus();
|
|
421
|
-
},
|
|
422
|
-
isValid: () => N(c) === "valid"
|
|
423
|
-
}),
|
|
424
|
-
[c, C, x]
|
|
425
|
-
);
|
|
426
|
-
et(ot, Pe, V);
|
|
427
|
-
const He = ye ?? u("inputs.fiscalCode.placeholder"), U = d || f ? "" : E ? u("inputs.fiscalCode.valid") : c.length > 0 && !q ? u("inputs.fiscalCode.charactersEntered", {
|
|
428
|
-
count: c.length
|
|
429
|
-
}) : "", ee = y ? ke : "", te = !d && (y || E && !f), se = !!R && !d && !D;
|
|
430
|
-
return /* @__PURE__ */ A(
|
|
431
|
-
"div",
|
|
432
|
-
{
|
|
433
|
-
className: "ds:flex ds:flex-col",
|
|
434
|
-
"data-component": "fiscal-code-input",
|
|
435
|
-
"data-component-id": V,
|
|
436
|
-
children: [
|
|
437
|
-
/* @__PURE__ */ A(
|
|
438
|
-
"div",
|
|
439
|
-
{
|
|
440
|
-
"data-slot": "fiscal-code-input",
|
|
441
|
-
className: vt({ size: i, tone: we, className: xe }),
|
|
442
|
-
children: [
|
|
443
|
-
se ? /* @__PURE__ */ l("span", { className: Et, children: /* @__PURE__ */ l(
|
|
444
|
-
tt,
|
|
445
|
-
{
|
|
446
|
-
type: "button",
|
|
447
|
-
size: "sm",
|
|
448
|
-
intent: "ghost",
|
|
449
|
-
icon: /* @__PURE__ */ l(rt, {}),
|
|
450
|
-
"aria-label": u("inputs.fiscalCode.calculate"),
|
|
451
|
-
onClick: ze
|
|
452
|
-
}
|
|
453
|
-
) }) : null,
|
|
454
|
-
/* @__PURE__ */ l(
|
|
455
|
-
"input",
|
|
456
|
-
{
|
|
457
|
-
ref: Fe,
|
|
458
|
-
id: Me,
|
|
459
|
-
name: Ee,
|
|
460
|
-
dir: "ltr",
|
|
461
|
-
type: "text",
|
|
462
|
-
inputMode: "text",
|
|
463
|
-
autoCapitalize: "characters",
|
|
464
|
-
autoCorrect: "off",
|
|
465
|
-
autoComplete: "off",
|
|
466
|
-
spellCheck: !1,
|
|
467
|
-
maxLength: w,
|
|
468
|
-
pattern: "[A-Z0-9]{15}[A-Z]",
|
|
469
|
-
value: c,
|
|
470
|
-
placeholder: He,
|
|
471
|
-
disabled: D,
|
|
472
|
-
readOnly: d,
|
|
473
|
-
"aria-label": X,
|
|
474
|
-
"aria-describedby": Ve,
|
|
475
|
-
"aria-invalid": J || void 0,
|
|
476
|
-
"aria-required": Ae || void 0,
|
|
477
|
-
onChange: _e,
|
|
478
|
-
onCompositionStart: Be,
|
|
479
|
-
onCompositionEnd: De,
|
|
480
|
-
onPaste: Ue,
|
|
481
|
-
onBlur: $e,
|
|
482
|
-
className: yt({
|
|
483
|
-
size: i,
|
|
484
|
-
hasStart: se,
|
|
485
|
-
hasEnd: te
|
|
486
|
-
})
|
|
487
|
-
}
|
|
488
|
-
),
|
|
489
|
-
te ? /* @__PURE__ */ l(
|
|
490
|
-
"span",
|
|
491
|
-
{
|
|
492
|
-
"aria-hidden": "true",
|
|
493
|
-
className: `${bt} ${y ? "ds:text-destructive" : "ds:text-success"}`,
|
|
494
|
-
children: y ? /* @__PURE__ */ l(ce, {}) : /* @__PURE__ */ l(le, {})
|
|
495
|
-
}
|
|
496
|
-
) : null
|
|
497
|
-
]
|
|
498
|
-
}
|
|
499
|
-
),
|
|
500
|
-
Q ? /* @__PURE__ */ l(
|
|
501
|
-
"p",
|
|
502
|
-
{
|
|
503
|
-
id: O,
|
|
504
|
-
className: `${j} ds:text-muted-foreground`,
|
|
505
|
-
children: u("inputs.fiscalCode.formatHint")
|
|
506
|
-
}
|
|
507
|
-
) : null,
|
|
508
|
-
/* @__PURE__ */ l(
|
|
509
|
-
"p",
|
|
510
|
-
{
|
|
511
|
-
id: G,
|
|
512
|
-
role: "status",
|
|
513
|
-
"aria-live": "polite",
|
|
514
|
-
className: `${j} ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)] ${E ? "ds:text-success" : "ds:text-muted-foreground"} ${U ? "" : "ds:sr-only"}`,
|
|
515
|
-
children: U ? /* @__PURE__ */ A(Ze, { children: [
|
|
516
|
-
E ? /* @__PURE__ */ l(
|
|
517
|
-
le,
|
|
518
|
-
{
|
|
519
|
-
"aria-hidden": "true",
|
|
520
|
-
className: "ds:size-4 ds:shrink-0"
|
|
521
|
-
}
|
|
522
|
-
) : null,
|
|
523
|
-
/* @__PURE__ */ l("span", { children: U })
|
|
524
|
-
] }) : null
|
|
525
|
-
}
|
|
526
|
-
),
|
|
527
|
-
ee ? /* @__PURE__ */ A(
|
|
528
|
-
"p",
|
|
529
|
-
{
|
|
530
|
-
id: W,
|
|
531
|
-
role: "alert",
|
|
532
|
-
className: `${j} ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)] ds:text-destructive`,
|
|
533
|
-
children: [
|
|
534
|
-
/* @__PURE__ */ l(ce, { "aria-hidden": "true", className: "ds:size-4 ds:shrink-0" }),
|
|
535
|
-
/* @__PURE__ */ l("span", { children: ee })
|
|
536
|
-
]
|
|
537
|
-
}
|
|
538
|
-
) : null
|
|
539
|
-
]
|
|
540
|
-
}
|
|
541
|
-
);
|
|
542
|
-
});
|
|
543
|
-
It.displayName = "FiscalCodeInput";
|
|
544
|
-
export {
|
|
545
|
-
It as F,
|
|
546
|
-
N as a,
|
|
547
|
-
fe as b,
|
|
548
|
-
Ct as c,
|
|
549
|
-
ot as f,
|
|
550
|
-
Ut as i,
|
|
551
|
-
vt as w
|
|
552
|
-
};
|
|
553
|
-
//# sourceMappingURL=fiscal-code-input-ODQRd_Sw.js.map
|