@alfadocs/ui-kit-debug 1.103.1 → 1.105.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/{ai-credits-exhausted-notice-CwZnSACy.js → ai-credits-exhausted-notice-Lws3113e.js} +2 -2
- package/dist/_chunks/{ai-credits-exhausted-notice-CwZnSACy.js.map → ai-credits-exhausted-notice-Lws3113e.js.map} +1 -1
- package/dist/_chunks/{ai-permission-notice-VNh3W57L.js → ai-permission-notice-BkgcGmu8.js} +2 -2
- package/dist/_chunks/{ai-permission-notice-VNh3W57L.js.map → ai-permission-notice-BkgcGmu8.js.map} +1 -1
- package/dist/_chunks/{alert-9kEwDza3.js → alert-C4WKViaS.js} +59 -50
- package/dist/_chunks/alert-C4WKViaS.js.map +1 -0
- package/dist/_chunks/{anamnesis-summary-rows-B9HqOGd7.js → anamnesis-summary-rows-QhbDdY7b.js} +4 -4
- package/dist/_chunks/{anamnesis-summary-rows-B9HqOGd7.js.map → anamnesis-summary-rows-QhbDdY7b.js.map} +1 -1
- package/dist/_chunks/{audio-recorder-BOm2FgEu.js → audio-recorder-BlDozxdU.js} +2 -2
- package/dist/_chunks/{audio-recorder-BOm2FgEu.js.map → audio-recorder-BlDozxdU.js.map} +1 -1
- package/dist/_chunks/{auth-form-parts-B3GWChvG.js → auth-form-parts-DVHfqnp6.js} +2 -2
- package/dist/_chunks/{auth-form-parts-B3GWChvG.js.map → auth-form-parts-DVHfqnp6.js.map} +1 -1
- package/dist/_chunks/{balance-badge-cell-DGFm2jfP.js → balance-badge-cell-wJ6cTD_h.js} +3 -3
- package/dist/_chunks/{balance-badge-cell-DGFm2jfP.js.map → balance-badge-cell-wJ6cTD_h.js.map} +1 -1
- package/dist/_chunks/{calendar-appointment-editor-dialog-DqyATSh3.js → calendar-appointment-editor-dialog-D8DblVjW.js} +8 -8
- package/dist/_chunks/{calendar-appointment-editor-dialog-DqyATSh3.js.map → calendar-appointment-editor-dialog-D8DblVjW.js.map} +1 -1
- package/dist/_chunks/{care-plan-card-YWKV8Kjq.js → care-plan-card-DMjlYlFc.js} +2 -2
- package/dist/_chunks/{care-plan-card-YWKV8Kjq.js.map → care-plan-card-DMjlYlFc.js.map} +1 -1
- package/dist/_chunks/{care-plan-entry-card-CApivtMW.js → care-plan-entry-card-3hguBW45.js} +2 -2
- package/dist/_chunks/{care-plan-entry-card-CApivtMW.js.map → care-plan-entry-card-3hguBW45.js.map} +1 -1
- package/dist/_chunks/{contact-profile-card-uExd3pKC.js → contact-profile-card-CAL66GaH.js} +120 -111
- package/dist/_chunks/contact-profile-card-CAL66GaH.js.map +1 -0
- package/dist/_chunks/{data-table-C5uN4ato.js → data-table-zXBxFYpJ.js} +761 -715
- package/dist/_chunks/data-table-zXBxFYpJ.js.map +1 -0
- package/dist/_chunks/{date-range-picker-B_j4VQlV.js → date-range-picker-DCADIR8o.js} +2 -2
- package/dist/_chunks/{date-range-picker-B_j4VQlV.js.map → date-range-picker-DCADIR8o.js.map} +1 -1
- package/dist/_chunks/{date-time-picker-cwsWiB4q.js → date-time-picker-CT2bC7-A.js} +2 -2
- package/dist/_chunks/{date-time-picker-cwsWiB4q.js.map → date-time-picker-CT2bC7-A.js.map} +1 -1
- package/dist/_chunks/{document-preview-U8H6tnDJ.js → document-preview-BalyZqnn.js} +2 -2
- package/dist/_chunks/{document-preview-U8H6tnDJ.js.map → document-preview-BalyZqnn.js.map} +1 -1
- package/dist/_chunks/{document-scanner-Bf3VUp00.js → document-scanner-5p-Uu8dy.js} +2 -2
- package/dist/_chunks/{document-scanner-Bf3VUp00.js.map → document-scanner-5p-Uu8dy.js.map} +1 -1
- package/dist/_chunks/{entity-summary-BKfR4Vws.js → entity-summary-BbqqYqF1.js} +2 -2
- package/dist/_chunks/{entity-summary-BKfR4Vws.js.map → entity-summary-BbqqYqF1.js.map} +1 -1
- package/dist/_chunks/{error-summary-mGxIyDAY.js → error-summary-DxNhwf_G.js} +2 -2
- package/dist/_chunks/{error-summary-mGxIyDAY.js.map → error-summary-DxNhwf_G.js.map} +1 -1
- package/dist/_chunks/{face-scheme-DdVLQ5dP.js → face-scheme-e2M2HJGz.js} +2 -2
- package/dist/_chunks/{face-scheme-DdVLQ5dP.js.map → face-scheme-e2M2HJGz.js.map} +1 -1
- package/dist/_chunks/{file-manager-CnGBVX_q.js → file-manager-BDKe59sg.js} +2 -2
- package/dist/_chunks/{file-manager-CnGBVX_q.js.map → file-manager-BDKe59sg.js.map} +1 -1
- package/dist/_chunks/{forgot-password-form-CeTb5p-x.js → forgot-password-form-vfCO2-Tt.js} +4 -4
- package/dist/_chunks/{forgot-password-form-CeTb5p-x.js.map → forgot-password-form-vfCO2-Tt.js.map} +1 -1
- package/dist/_chunks/{freemium-paywall-CM0zQSDE.js → freemium-paywall-BDeq9QWR.js} +2 -2
- package/dist/_chunks/{freemium-paywall-CM0zQSDE.js.map → freemium-paywall-BDeq9QWR.js.map} +1 -1
- package/dist/_chunks/{gestational-age-calculator-CXcDKQqC.js → gestational-age-calculator-AnaH00nk.js} +2 -2
- package/dist/_chunks/{gestational-age-calculator-CXcDKQqC.js.map → gestational-age-calculator-AnaH00nk.js.map} +1 -1
- package/dist/_chunks/{hcg-doubling-BJFR3onB.js → hcg-doubling-DdyUt4gz.js} +2 -2
- package/dist/_chunks/{hcg-doubling-BJFR3onB.js.map → hcg-doubling-DdyUt4gz.js.map} +1 -1
- package/dist/_chunks/{heatmap-Cz0Krieg.js → heatmap-D4qqpCEj.js} +1550 -1547
- package/dist/_chunks/{heatmap-Cz0Krieg.js.map → heatmap-D4qqpCEj.js.map} +1 -1
- package/dist/_chunks/{help-me-write-templates-ra5a__Yy.js → help-me-write-templates-YmceSxf5.js} +3 -3
- package/dist/_chunks/{help-me-write-templates-ra5a__Yy.js.map → help-me-write-templates-YmceSxf5.js.map} +1 -1
- package/dist/_chunks/info-tip-C-MPkShR.js +266 -0
- package/dist/_chunks/info-tip-C-MPkShR.js.map +1 -0
- package/dist/_chunks/{kit-extensions-C4o_tFN4.js → kit-extensions-BOnTM4Yf.js} +3 -3
- package/dist/_chunks/{kit-extensions-C4o_tFN4.js.map → kit-extensions-BOnTM4Yf.js.map} +1 -1
- package/dist/_chunks/{link-cell-renderer-BRek9kz7.js → link-cell-renderer-C8vfCOEp.js} +2 -2
- package/dist/_chunks/{link-cell-renderer-BRek9kz7.js.map → link-cell-renderer-C8vfCOEp.js.map} +1 -1
- package/dist/_chunks/{login-dev-card-D5BV5j1i.js → login-dev-card-Cz1Clugq.js} +3 -3
- package/dist/_chunks/{login-dev-card-D5BV5j1i.js.map → login-dev-card-Cz1Clugq.js.map} +1 -1
- package/dist/_chunks/{marketplace-app-shell-BsctSegT.js → marketplace-app-shell-C-4QF6mp.js} +2 -2
- package/dist/_chunks/{marketplace-app-shell-BsctSegT.js.map → marketplace-app-shell-C-4QF6mp.js.map} +1 -1
- package/dist/_chunks/{notes-panel-BjTpaz8d.js → notes-panel-SlzUL8in.js} +4 -4
- package/dist/_chunks/{notes-panel-BjTpaz8d.js.map → notes-panel-SlzUL8in.js.map} +1 -1
- package/dist/_chunks/{notice-group-DkYzKyAZ.js → notice-group-B-trhof8.js} +3 -3
- package/dist/_chunks/{notice-group-DkYzKyAZ.js.map → notice-group-B-trhof8.js.map} +1 -1
- package/dist/_chunks/{patient-details-BXM3dRKb.js → patient-details-wMgTFtpp.js} +2 -2
- package/dist/_chunks/{patient-details-BXM3dRKb.js.map → patient-details-wMgTFtpp.js.map} +1 -1
- package/dist/_chunks/{patient-field-row--dCDO5oB.js → patient-field-row-Bhm2Ig1P.js} +2 -2
- package/dist/_chunks/{patient-field-row--dCDO5oB.js.map → patient-field-row-Bhm2Ig1P.js.map} +1 -1
- package/dist/_chunks/{patient-summary-card-DB7fv-Tr.js → patient-summary-card-DMdPPG3n.js} +2 -2
- package/dist/_chunks/{patient-summary-card-DB7fv-Tr.js.map → patient-summary-card-DMdPPG3n.js.map} +1 -1
- package/dist/_chunks/{payment-automation-upsell-BPF0c-5D.js → payment-automation-upsell-u5EuFyCY.js} +2 -2
- package/dist/_chunks/{payment-automation-upsell-BPF0c-5D.js.map → payment-automation-upsell-u5EuFyCY.js.map} +1 -1
- package/dist/_chunks/{payment-form-PBuh8PIa.js → payment-form-C-s1x-bU.js} +2 -2
- package/dist/_chunks/{payment-form-PBuh8PIa.js.map → payment-form-C-s1x-bU.js.map} +1 -1
- package/dist/_chunks/{pdf-viewer-DlceXkfW.js → pdf-viewer-BnBKdx0y.js} +2 -2
- package/dist/_chunks/{pdf-viewer-DlceXkfW.js.map → pdf-viewer-BnBKdx0y.js.map} +1 -1
- package/dist/_chunks/{practice-profile-hero-BAvGdQmt.js → practice-profile-hero-Bb4YyxHA.js} +31 -29
- package/dist/_chunks/practice-profile-hero-Bb4YyxHA.js.map +1 -0
- package/dist/_chunks/{practice-results-ChBP9x2r.js → practice-results-BXz01sti.js} +485 -445
- package/dist/_chunks/practice-results-BXz01sti.js.map +1 -0
- package/dist/_chunks/{pregnancy-dating-D0Kf9s7s.js → pregnancy-dating-D6dLkMpl.js} +2 -2
- package/dist/_chunks/{pregnancy-dating-D0Kf9s7s.js.map → pregnancy-dating-D6dLkMpl.js.map} +1 -1
- package/dist/_chunks/{progress-notice-DiHWZ8Ms.js → progress-notice-F7ao70ZP.js} +2 -2
- package/dist/_chunks/{progress-notice-DiHWZ8Ms.js.map → progress-notice-F7ao70ZP.js.map} +1 -1
- package/dist/_chunks/{radiograph-panel.agent-BQ95uFCd.js → radiograph-panel.agent-0ngF2sGS.js} +2 -2
- package/dist/_chunks/{radiograph-panel.agent-BQ95uFCd.js.map → radiograph-panel.agent-0ngF2sGS.js.map} +1 -1
- package/dist/_chunks/{registration-form-JzzTomhd.js → registration-form-CEJRUS9G.js} +3 -3
- package/dist/_chunks/{registration-form-JzzTomhd.js.map → registration-form-CEJRUS9G.js.map} +1 -1
- package/dist/_chunks/{reserved.agent-BxD0gnbt.js → reserved.agent-C-C9cvO5.js} +2 -2
- package/dist/_chunks/{reserved.agent-BxD0gnbt.js.map → reserved.agent-C-C9cvO5.js.map} +1 -1
- package/dist/_chunks/{reset-password-form-DDdGEoIL.js → reset-password-form-B0acanDD.js} +4 -4
- package/dist/_chunks/{reset-password-form-DDdGEoIL.js.map → reset-password-form-B0acanDD.js.map} +1 -1
- package/dist/_chunks/{rich-text-editor-F04przIt.js → rich-text-editor-C3nANKZt.js} +2 -2
- package/dist/_chunks/{rich-text-editor-F04przIt.js.map → rich-text-editor-C3nANKZt.js.map} +1 -1
- package/dist/_chunks/{send-registration-link-form-DHCQpA4C.js → send-registration-link-form-Nn0jf65G.js} +3 -3
- package/dist/_chunks/{send-registration-link-form-DHCQpA4C.js.map → send-registration-link-form-Nn0jf65G.js.map} +1 -1
- package/dist/_chunks/{sign-document-B5qZhthO.js → sign-document-CQZVzfpk.js} +2 -2
- package/dist/_chunks/{sign-document-B5qZhthO.js.map → sign-document-CQZVzfpk.js.map} +1 -1
- package/dist/_chunks/{signature-request-DB6kePIm.js → signature-request-DtLph5Z4.js} +3 -3
- package/dist/_chunks/{signature-request-DB6kePIm.js.map → signature-request-DtLph5Z4.js.map} +1 -1
- package/dist/_chunks/stat-group-DSNnzkbW.js +107 -0
- package/dist/_chunks/stat-group-DSNnzkbW.js.map +1 -0
- package/dist/_chunks/{switch-D--x7n6h.js → switch-DO6uC4HJ.js} +40 -36
- package/dist/_chunks/switch-DO6uC4HJ.js.map +1 -0
- package/dist/_chunks/{task-editor-BiPGFXtB.js → task-editor-CmXcj6cC.js} +4 -4
- package/dist/_chunks/{task-editor-BiPGFXtB.js.map → task-editor-CmXcj6cC.js.map} +1 -1
- package/dist/_chunks/{tasks-panel-iVeuu9a8.js → tasks-panel-CFo5uIHx.js} +3 -3
- package/dist/_chunks/{tasks-panel-iVeuu9a8.js.map → tasks-panel-CFo5uIHx.js.map} +1 -1
- package/dist/_chunks/{theme-toggle-jZRbAidE.js → theme-toggle-Czq3K9jB.js} +2 -2
- package/dist/_chunks/{theme-toggle-jZRbAidE.js.map → theme-toggle-Czq3K9jB.js.map} +1 -1
- package/dist/_chunks/{time-picker-DSt-ns5F.js → time-picker-DDr5vhwQ.js} +344 -332
- package/dist/_chunks/time-picker-DDr5vhwQ.js.map +1 -0
- package/dist/_chunks/{tooth-scheme-Bd7xECuj.js → tooth-scheme-C-ALCHaV.js} +2 -2
- package/dist/_chunks/{tooth-scheme-Bd7xECuj.js.map → tooth-scheme-C-ALCHaV.js.map} +1 -1
- package/dist/_chunks/{use-appointment-details-read-CmqGGYCy.js → use-appointment-details-read-VI26Z-pc.js} +3 -3
- package/dist/_chunks/{use-appointment-details-read-CmqGGYCy.js.map → use-appointment-details-read-VI26Z-pc.js.map} +1 -1
- package/dist/_chunks/{voice-control-panel-BGJjUwnY.js → voice-control-panel-B0TUZAiP.js} +3 -3
- package/dist/_chunks/{voice-control-panel-BGJjUwnY.js.map → voice-control-panel-B0TUZAiP.js.map} +1 -1
- package/dist/_chunks/{warning-stack-3S7e2q07.js → warning-stack-Dx7cpj10.js} +2 -2
- package/dist/_chunks/{warning-stack-3S7e2q07.js.map → warning-stack-Dx7cpj10.js.map} +1 -1
- package/dist/_chunks/week-availability-CsTiwtYj.js +318 -0
- package/dist/_chunks/week-availability-CsTiwtYj.js.map +1 -0
- package/dist/_chunks/weekly-hours-editor-BsVsgeOc.js +252 -0
- package/dist/_chunks/weekly-hours-editor-BsVsgeOc.js.map +1 -0
- package/dist/_chunks/{workflow-map-B1jf6QaB.js → workflow-map-DWk-rZse.js} +2 -2
- package/dist/_chunks/{workflow-map-B1jf6QaB.js.map → workflow-map-DWk-rZse.js.map} +1 -1
- package/dist/_chunks/{workflow-webhook-action-B_52rH7O.js → workflow-webhook-action-DILFqAVd.js} +2 -2
- package/dist/_chunks/{workflow-webhook-action-B_52rH7O.js.map → workflow-webhook-action-DILFqAVd.js.map} +1 -1
- package/dist/ag-grid.css +5 -1
- package/dist/agent-catalog.json +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/alert/alert.d.ts.map +1 -1
- package/dist/components/alert/index.js +1 -1
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/booking/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/contact-profile-card/contact-profile-card.d.ts +8 -0
- package/dist/components/contact-profile-card/contact-profile-card.d.ts.map +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/data-table/data-table.d.ts +6 -0
- package/dist/components/data-table/data-table.d.ts.map +1 -1
- package/dist/components/data-table/header-min-width.d.ts +21 -0
- package/dist/components/data-table/header-min-width.d.ts.map +1 -0
- package/dist/components/data-table/index.js +2 -2
- 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/document-scanner/index.js +1 -1
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/error-summary/index.js +1 -1
- package/dist/components/face-scheme/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- 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/heatmap/heatmap.d.ts +5 -0
- package/dist/components/heatmap/heatmap.d.ts.map +1 -1
- package/dist/components/heatmap/index.js +1 -1
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/info-tip/index.js +1 -1
- package/dist/components/info-tip/info-tip.d.ts +10 -0
- package/dist/components/info-tip/info-tip.d.ts.map +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/notice-group/index.js +1 -1
- package/dist/components/patient-details/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-form/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/practice-profile-hero/index.js +1 -1
- package/dist/components/practice-profile-hero/practice-profile-hero.d.ts +7 -0
- package/dist/components/practice-profile-hero/practice-profile-hero.d.ts.map +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/practice-results/practice-results.d.ts +13 -0
- package/dist/components/practice-results/practice-results.d.ts.map +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/progress-notice/index.js +1 -1
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +2 -2
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/stat-group/index.d.ts +3 -0
- package/dist/components/stat-group/index.d.ts.map +1 -0
- package/dist/components/stat-group/index.js +8 -0
- package/dist/components/stat-group/index.js.map +1 -0
- package/dist/components/stat-group/stat-group.d.ts +23 -0
- package/dist/components/stat-group/stat-group.d.ts.map +1 -0
- package/dist/components/switch/index.js +1 -1
- package/dist/components/switch/switch.d.ts +2 -0
- package/dist/components/switch/switch.d.ts.map +1 -1
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/time-picker/index.js +1 -1
- package/dist/components/time-picker/time-picker.d.ts.map +1 -1
- package/dist/components/tooth-scheme/index.js +1 -1
- package/dist/components/voice-control-panel/index.js +1 -1
- package/dist/components/warning-stack/index.js +1 -1
- package/dist/components/week-availability/index.d.ts +3 -0
- package/dist/components/week-availability/index.d.ts.map +1 -0
- package/dist/components/week-availability/index.js +10 -0
- package/dist/components/week-availability/index.js.map +1 -0
- package/dist/components/week-availability/week-availability.d.ts +68 -0
- package/dist/components/week-availability/week-availability.d.ts.map +1 -0
- package/dist/components/weekly-hours-editor/index.d.ts +3 -0
- package/dist/components/weekly-hours-editor/index.d.ts.map +1 -0
- package/dist/components/weekly-hours-editor/index.js +9 -0
- package/dist/components/weekly-hours-editor/index.js.map +1 -0
- package/dist/components/weekly-hours-editor/weekly-hours-editor.d.ts +42 -0
- package/dist/components/weekly-hours-editor/weekly-hours-editor.d.ts.map +1 -0
- package/dist/components/workflow/index.js +1 -1
- package/dist/core.css +1 -1
- package/dist/i18n/locales/ar.d.ts +34 -0
- package/dist/i18n/locales/ar.d.ts.map +1 -1
- package/dist/i18n/locales/ar.js +34 -0
- package/dist/i18n/locales/ar.js.map +1 -1
- package/dist/i18n/locales/de.d.ts +34 -0
- package/dist/i18n/locales/de.d.ts.map +1 -1
- package/dist/i18n/locales/de.js +34 -0
- package/dist/i18n/locales/de.js.map +1 -1
- package/dist/i18n/locales/el.d.ts +34 -0
- package/dist/i18n/locales/el.d.ts.map +1 -1
- package/dist/i18n/locales/el.js +34 -0
- package/dist/i18n/locales/el.js.map +1 -1
- package/dist/i18n/locales/en.d.ts +34 -0
- package/dist/i18n/locales/en.d.ts.map +1 -1
- package/dist/i18n/locales/en.js +34 -0
- package/dist/i18n/locales/en.js.map +1 -1
- package/dist/i18n/locales/es.d.ts +34 -0
- package/dist/i18n/locales/es.d.ts.map +1 -1
- package/dist/i18n/locales/es.js +34 -0
- package/dist/i18n/locales/es.js.map +1 -1
- package/dist/i18n/locales/fr.d.ts +34 -0
- package/dist/i18n/locales/fr.d.ts.map +1 -1
- package/dist/i18n/locales/fr.js +34 -0
- package/dist/i18n/locales/fr.js.map +1 -1
- package/dist/i18n/locales/hi.d.ts +34 -0
- package/dist/i18n/locales/hi.d.ts.map +1 -1
- package/dist/i18n/locales/hi.js +34 -0
- package/dist/i18n/locales/hi.js.map +1 -1
- package/dist/i18n/locales/it.d.ts +34 -0
- package/dist/i18n/locales/it.d.ts.map +1 -1
- package/dist/i18n/locales/it.js +34 -0
- package/dist/i18n/locales/it.js.map +1 -1
- package/dist/i18n/locales/ja.d.ts +34 -0
- package/dist/i18n/locales/ja.d.ts.map +1 -1
- package/dist/i18n/locales/ja.js +34 -0
- package/dist/i18n/locales/ja.js.map +1 -1
- package/dist/i18n/locales/nl.d.ts +34 -0
- package/dist/i18n/locales/nl.d.ts.map +1 -1
- package/dist/i18n/locales/nl.js +34 -0
- package/dist/i18n/locales/nl.js.map +1 -1
- package/dist/i18n/locales/pl.d.ts +34 -0
- package/dist/i18n/locales/pl.d.ts.map +1 -1
- package/dist/i18n/locales/pl.js +34 -0
- package/dist/i18n/locales/pl.js.map +1 -1
- package/dist/i18n/locales/pt.d.ts +34 -0
- package/dist/i18n/locales/pt.d.ts.map +1 -1
- package/dist/i18n/locales/pt.js +34 -0
- package/dist/i18n/locales/pt.js.map +1 -1
- package/dist/i18n/locales/ro.d.ts +34 -0
- package/dist/i18n/locales/ro.d.ts.map +1 -1
- package/dist/i18n/locales/ro.js +34 -0
- package/dist/i18n/locales/ro.js.map +1 -1
- package/dist/i18n/locales/ru.d.ts +34 -0
- package/dist/i18n/locales/ru.d.ts.map +1 -1
- package/dist/i18n/locales/ru.js +34 -0
- package/dist/i18n/locales/ru.js.map +1 -1
- package/dist/i18n/locales/sq.d.ts +34 -0
- package/dist/i18n/locales/sq.d.ts.map +1 -1
- package/dist/i18n/locales/sq.js +34 -0
- package/dist/i18n/locales/sq.js.map +1 -1
- package/dist/i18n/locales/sv.d.ts +34 -0
- package/dist/i18n/locales/sv.d.ts.map +1 -1
- package/dist/i18n/locales/sv.js +34 -0
- package/dist/i18n/locales/sv.js.map +1 -1
- package/dist/i18n/locales/tr.d.ts +34 -0
- package/dist/i18n/locales/tr.d.ts.map +1 -1
- package/dist/i18n/locales/tr.js +34 -0
- package/dist/i18n/locales/tr.js.map +1 -1
- package/dist/i18n/locales/zh.d.ts +34 -0
- package/dist/i18n/locales/zh.d.ts.map +1 -1
- package/dist/i18n/locales/zh.js +34 -0
- package/dist/i18n/locales/zh.js.map +1 -1
- package/dist/index.js +885 -867
- package/dist/index.js.map +1 -1
- package/dist/locales/ar.json +34 -0
- package/dist/locales/de.json +34 -0
- package/dist/locales/el.json +34 -0
- package/dist/locales/en.json +34 -0
- package/dist/locales/es.json +34 -0
- package/dist/locales/fr.json +34 -0
- package/dist/locales/hi.json +34 -0
- package/dist/locales/it.json +34 -0
- package/dist/locales/ja.json +34 -0
- package/dist/locales/nl.json +34 -0
- package/dist/locales/pl.json +34 -0
- package/dist/locales/pt.json +34 -0
- package/dist/locales/ro.json +34 -0
- package/dist/locales/ru.json +34 -0
- package/dist/locales/sq.json +34 -0
- package/dist/locales/sv.json +34 -0
- package/dist/locales/tr.json +34 -0
- package/dist/locales/zh.json +34 -0
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/forgot-password-form/index.js +1 -1
- package/dist/patterns/help-me-write-templates/index.js +2 -2
- package/dist/patterns/login-form/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/registration-form/index.js +1 -1
- package/dist/patterns/reset-password-form/index.js +1 -1
- package/dist/patterns/send-registration-link-form/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/patterns/workflow-webhook-action/index.js +1 -1
- package/dist/tokens.css +3 -1
- package/package.json +13 -1
- package/dist/_chunks/alert-9kEwDza3.js.map +0 -1
- package/dist/_chunks/contact-profile-card-uExd3pKC.js.map +0 -1
- package/dist/_chunks/data-table-C5uN4ato.js.map +0 -1
- package/dist/_chunks/info-tip-1Xsq9GLi.js +0 -230
- package/dist/_chunks/info-tip-1Xsq9GLi.js.map +0 -1
- package/dist/_chunks/practice-profile-hero-BAvGdQmt.js.map +0 -1
- package/dist/_chunks/practice-results-ChBP9x2r.js.map +0 -1
- package/dist/_chunks/switch-D--x7n6h.js.map +0 -1
- package/dist/_chunks/time-picker-DSt-ns5F.js.map +0 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
1
|
+
import { jsxs as Je, jsx as v, Fragment as Ot } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as Rt, useContext as It, useState as Z, useMemo as de, useRef as d, useCallback as W, useEffect as Ce, useImperativeHandle as St } from "react";
|
|
3
3
|
import { c as L } from "./index-D2ZczOXr.js";
|
|
4
|
-
import { useTranslation as
|
|
5
|
-
import * as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { X as
|
|
10
|
-
import { C as
|
|
11
|
-
const
|
|
4
|
+
import { useTranslation as Kt } from "react-i18next";
|
|
5
|
+
import * as ee from "@radix-ui/react-popover";
|
|
6
|
+
import { u as Nt, F as Et, a as jt } from "./form-field-context-DtiROUJV.js";
|
|
7
|
+
import { u as Ae } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
8
|
+
import { u as Vt } from "./registry-DvAUVLHh.js";
|
|
9
|
+
import { X as Bt } from "./x-B5YnXwCz.js";
|
|
10
|
+
import { C as Ut } from "./clock-Drd4Wtis.js";
|
|
11
|
+
const Wt = {
|
|
12
12
|
id: "time-picker",
|
|
13
13
|
capabilities: ["select_single", "set_value", "open", "close"],
|
|
14
14
|
state: {
|
|
@@ -16,18 +16,18 @@ const Vt = {
|
|
|
16
16
|
type: "HH:MM | null",
|
|
17
17
|
descriptionKey: "ui.agent.timePicker.state.value",
|
|
18
18
|
description: "Currently selected time as 24h HH:MM. Null when unset with allowEmpty; otherwise defaults to 00:00.",
|
|
19
|
-
read: (
|
|
20
|
-
const o =
|
|
19
|
+
read: (n) => {
|
|
20
|
+
const o = n.getValue();
|
|
21
21
|
if (!o) return null;
|
|
22
|
-
const
|
|
23
|
-
return `${
|
|
22
|
+
const u = String(o.hours).padStart(2, "0"), f = String(o.minutes).padStart(2, "0");
|
|
23
|
+
return `${u}:${f}`;
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
isOpen: {
|
|
27
27
|
type: "boolean",
|
|
28
28
|
descriptionKey: "ui.agent.timePicker.state.isOpen",
|
|
29
29
|
description: "Whether the time dropdown is open. Always false unless the picker has the dropdown prop.",
|
|
30
|
-
read: (
|
|
30
|
+
read: (n) => n.isOpen()
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
actions: {
|
|
@@ -45,10 +45,10 @@ const Vt = {
|
|
|
45
45
|
descriptionKey: "ui.agent.timePicker.actions.setTime",
|
|
46
46
|
description: "Set the time using a 24h HH:MM string.",
|
|
47
47
|
examples: [{ args: { time: "14:30" }, note: "2:30 PM in 24h form." }],
|
|
48
|
-
invoke: (
|
|
49
|
-
const [
|
|
50
|
-
|
|
51
|
-
hours: Number.parseInt(
|
|
48
|
+
invoke: (n, o) => {
|
|
49
|
+
const [u, f] = o.time.split(":");
|
|
50
|
+
n.setValue({
|
|
51
|
+
hours: Number.parseInt(u ?? "0", 10),
|
|
52
52
|
minutes: Number.parseInt(f ?? "0", 10)
|
|
53
53
|
});
|
|
54
54
|
}
|
|
@@ -58,24 +58,24 @@ const Vt = {
|
|
|
58
58
|
idempotent: !0,
|
|
59
59
|
descriptionKey: "ui.agent.timePicker.actions.clear",
|
|
60
60
|
description: "Clear to null with allowEmpty; otherwise reset to 00:00.",
|
|
61
|
-
invoke: (
|
|
62
|
-
|
|
61
|
+
invoke: (n) => {
|
|
62
|
+
n.clear();
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
65
|
open: {
|
|
66
66
|
safety: "read",
|
|
67
67
|
descriptionKey: "ui.agent.timePicker.actions.open",
|
|
68
68
|
description: "Open the time dropdown without moving focus. A no-op unless the picker has the dropdown prop and is enabled.",
|
|
69
|
-
invoke: (
|
|
70
|
-
|
|
69
|
+
invoke: (n) => {
|
|
70
|
+
n.open();
|
|
71
71
|
}
|
|
72
72
|
},
|
|
73
73
|
close: {
|
|
74
74
|
safety: "read",
|
|
75
75
|
descriptionKey: "ui.agent.timePicker.actions.close",
|
|
76
76
|
description: "Close the time dropdown. A no-op unless the picker has the dropdown prop.",
|
|
77
|
-
invoke: (
|
|
78
|
-
|
|
77
|
+
invoke: (n) => {
|
|
78
|
+
n.close();
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
},
|
|
@@ -92,9 +92,9 @@ const Vt = {
|
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
};
|
|
95
|
-
function
|
|
95
|
+
function _t(n) {
|
|
96
96
|
try {
|
|
97
|
-
const o = new Intl.DateTimeFormat(
|
|
97
|
+
const o = new Intl.DateTimeFormat(n, {
|
|
98
98
|
hour: "numeric"
|
|
99
99
|
}).resolvedOptions();
|
|
100
100
|
return o.hourCycle === "h12" || o.hourCycle === "h11";
|
|
@@ -102,60 +102,61 @@ function Bt(r) {
|
|
|
102
102
|
return !1;
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
|
-
function
|
|
106
|
-
var o,
|
|
105
|
+
function qt(n) {
|
|
106
|
+
var o, u;
|
|
107
107
|
try {
|
|
108
|
-
const f = ((o = new Intl.DateTimeFormat(
|
|
108
|
+
const f = ((o = new Intl.DateTimeFormat(n, {
|
|
109
109
|
hour: "numeric",
|
|
110
110
|
hour12: !0
|
|
111
|
-
}).formatToParts(new Date(2e3, 0, 1, 9)).find((b) => b.type === "dayPeriod")) == null ? void 0 : o.value) ?? "AM",
|
|
111
|
+
}).formatToParts(new Date(2e3, 0, 1, 9)).find((b) => b.type === "dayPeriod")) == null ? void 0 : o.value) ?? "AM", z = ((u = new Intl.DateTimeFormat(n, {
|
|
112
112
|
hour: "numeric",
|
|
113
113
|
hour12: !0
|
|
114
|
-
}).formatToParts(new Date(2e3, 0, 1, 15)).find((b) => b.type === "dayPeriod")) == null ? void 0 :
|
|
115
|
-
return { am: f, pm:
|
|
114
|
+
}).formatToParts(new Date(2e3, 0, 1, 15)).find((b) => b.type === "dayPeriod")) == null ? void 0 : u.value) ?? "PM";
|
|
115
|
+
return { am: f, pm: z };
|
|
116
116
|
} catch {
|
|
117
117
|
return { am: "AM", pm: "PM" };
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
|
-
function
|
|
121
|
-
return Math.min(
|
|
120
|
+
function R(n, o, u) {
|
|
121
|
+
return Math.min(u, Math.max(o, n));
|
|
122
122
|
}
|
|
123
|
-
function
|
|
124
|
-
return Math.floor(59 /
|
|
123
|
+
function et(n) {
|
|
124
|
+
return Math.floor(59 / n) * n;
|
|
125
125
|
}
|
|
126
|
-
function
|
|
127
|
-
const
|
|
128
|
-
return
|
|
126
|
+
function $t(n, o) {
|
|
127
|
+
const u = Math.round(R(n, 0, 59) / o) * o;
|
|
128
|
+
return R(u, 0, et(o));
|
|
129
129
|
}
|
|
130
|
-
function
|
|
131
|
-
const f =
|
|
132
|
-
if (
|
|
133
|
-
const b = Math.floor(
|
|
130
|
+
function Gt(n, o, u) {
|
|
131
|
+
const f = et(o);
|
|
132
|
+
if (u === 1) {
|
|
133
|
+
const b = Math.floor(n / o) * o + o;
|
|
134
134
|
return b > f ? 0 : b;
|
|
135
135
|
}
|
|
136
|
-
const
|
|
137
|
-
return
|
|
136
|
+
const z = Math.ceil(n / o) * o - o;
|
|
137
|
+
return z < 0 ? f : z;
|
|
138
138
|
}
|
|
139
|
-
function
|
|
140
|
-
const o = (
|
|
139
|
+
function Xt(n) {
|
|
140
|
+
const o = (u) => Number.isFinite(u) ? Math.trunc(u) : 0;
|
|
141
141
|
return {
|
|
142
|
-
hours:
|
|
143
|
-
minutes:
|
|
142
|
+
hours: R(o(n.hours), 0, 23),
|
|
143
|
+
minutes: R(o(n.minutes), 0, 59)
|
|
144
144
|
};
|
|
145
145
|
}
|
|
146
|
-
function
|
|
147
|
-
return
|
|
146
|
+
function Me(n) {
|
|
147
|
+
return n === 0 ? 12 : n > 12 ? n - 12 : n;
|
|
148
148
|
}
|
|
149
|
-
function
|
|
150
|
-
return o ?
|
|
149
|
+
function Qe(n, o) {
|
|
150
|
+
return o ? n === 12 ? 12 : n + 12 : n === 12 ? 0 : n;
|
|
151
151
|
}
|
|
152
|
-
const
|
|
153
|
-
function
|
|
154
|
-
|
|
152
|
+
const te = (n) => String(n).padStart(2, "0");
|
|
153
|
+
function Jt(n) {
|
|
154
|
+
n.stopPropagation();
|
|
155
155
|
}
|
|
156
|
-
const
|
|
156
|
+
const Qt = L(
|
|
157
157
|
[
|
|
158
|
-
"ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
158
|
+
"ds:inline-flex ds:max-w-full ds:min-w-0 ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
159
|
+
"ds:[&>*]:shrink-0",
|
|
159
160
|
"ds:rounded-[var(--radius-sm)] ds:border ds:border-[color:var(--control-border)] ds:bg-background",
|
|
160
161
|
"ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
|
|
161
162
|
"ds:focus-within:outline-[length:var(--focus-ring-width)] ds:focus-within:outline-solid",
|
|
@@ -190,7 +191,7 @@ const Gt = L(
|
|
|
190
191
|
opensOnClick: !1
|
|
191
192
|
}
|
|
192
193
|
}
|
|
193
|
-
),
|
|
194
|
+
), Ye = L(
|
|
194
195
|
[
|
|
195
196
|
"ds:inline-flex ds:items-center ds:justify-center",
|
|
196
197
|
"ds:rounded-[var(--radius-sm)] ds:text-center ds:tabular-nums",
|
|
@@ -209,7 +210,7 @@ const Gt = L(
|
|
|
209
210
|
},
|
|
210
211
|
defaultVariants: { size: "md" }
|
|
211
212
|
}
|
|
212
|
-
),
|
|
213
|
+
), Yt = L(
|
|
213
214
|
[
|
|
214
215
|
"ds:inline-flex ds:items-center ds:justify-center",
|
|
215
216
|
"ds:rounded-[var(--radius-sm)] ds:text-center",
|
|
@@ -230,7 +231,7 @@ const Gt = L(
|
|
|
230
231
|
},
|
|
231
232
|
defaultVariants: { size: "md" }
|
|
232
233
|
}
|
|
233
|
-
),
|
|
234
|
+
), Zt = L("ds:text-muted-foreground ds:select-none", {
|
|
234
235
|
variants: {
|
|
235
236
|
size: {
|
|
236
237
|
sm: "ds:text-[length:var(--font-size-sm)]",
|
|
@@ -239,7 +240,7 @@ const Gt = L(
|
|
|
239
240
|
}
|
|
240
241
|
},
|
|
241
242
|
defaultVariants: { size: "md" }
|
|
242
|
-
}),
|
|
243
|
+
}), Ze = L(
|
|
243
244
|
[
|
|
244
245
|
"ds:relative ds:inline-flex ds:shrink-0 ds:self-stretch ds:items-center ds:justify-center",
|
|
245
246
|
"ds:before:absolute ds:before:inset-x-0 ds:before:-inset-y-px",
|
|
@@ -271,7 +272,7 @@ const Gt = L(
|
|
|
271
272
|
}
|
|
272
273
|
]
|
|
273
274
|
}
|
|
274
|
-
),
|
|
275
|
+
), er = L(
|
|
275
276
|
[
|
|
276
277
|
"ds:z-[var(--z-popover)] ds:flex ds:rounded-[var(--radius-md)]",
|
|
277
278
|
"ds:border ds:border-border ds:bg-background ds:text-foreground ds:shadow-[var(--shadow-lg)]",
|
|
@@ -287,7 +288,7 @@ const Gt = L(
|
|
|
287
288
|
},
|
|
288
289
|
defaultVariants: { size: "md" }
|
|
289
290
|
}
|
|
290
|
-
),
|
|
291
|
+
), tr = L(
|
|
291
292
|
[
|
|
292
293
|
"ds:relative ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)]",
|
|
293
294
|
"ds:max-h-[calc(var(--time-picker-option-size)*6.5)] ds:overflow-y-auto ds:overscroll-contain",
|
|
@@ -302,7 +303,7 @@ const Gt = L(
|
|
|
302
303
|
},
|
|
303
304
|
defaultVariants: { separated: !1 }
|
|
304
305
|
}
|
|
305
|
-
),
|
|
306
|
+
), rr = L(
|
|
306
307
|
[
|
|
307
308
|
"ds:flex ds:shrink-0 ds:items-center ds:justify-center",
|
|
308
309
|
"ds:h-[var(--time-picker-option-size)] ds:min-w-[var(--time-picker-option-size)]",
|
|
@@ -335,24 +336,24 @@ const Gt = L(
|
|
|
335
336
|
defaultVariants: { selected: !1 }
|
|
336
337
|
}
|
|
337
338
|
);
|
|
338
|
-
function
|
|
339
|
-
columns:
|
|
339
|
+
function nr({
|
|
340
|
+
columns: n,
|
|
340
341
|
columnRefs: o,
|
|
341
|
-
onPick:
|
|
342
|
+
onPick: u,
|
|
342
343
|
onOptionKeyDown: f
|
|
343
344
|
}) {
|
|
344
|
-
const
|
|
345
|
-
return
|
|
345
|
+
const z = n.map((g) => g.selectedIndex).join(":"), b = d(!1);
|
|
346
|
+
return Ae(() => {
|
|
346
347
|
const g = !b.current;
|
|
347
348
|
b.current = !0;
|
|
348
349
|
for (const m of Object.values(o.current)) {
|
|
349
350
|
if (!m) continue;
|
|
350
351
|
const k = m.querySelector('[aria-selected="true"]') ?? m.querySelector('[role="option"][tabindex="0"]');
|
|
351
352
|
if (!k) continue;
|
|
352
|
-
const
|
|
353
|
-
(g || !c) && (m.scrollTop =
|
|
353
|
+
const C = k.offsetTop, x = C + k.offsetHeight, c = C >= m.scrollTop && x <= m.scrollTop + m.clientHeight;
|
|
354
|
+
(g || !c) && (m.scrollTop = C - (m.clientHeight - k.offsetHeight) / 2);
|
|
354
355
|
}
|
|
355
|
-
}, [
|
|
356
|
+
}, [z, o]), /* @__PURE__ */ v(Ot, { children: n.map((g, m) => /* @__PURE__ */ v(
|
|
356
357
|
"div",
|
|
357
358
|
{
|
|
358
359
|
ref: (k) => {
|
|
@@ -361,19 +362,19 @@ function er({
|
|
|
361
362
|
role: "listbox",
|
|
362
363
|
"aria-label": g.label,
|
|
363
364
|
"data-column": g.key,
|
|
364
|
-
className:
|
|
365
|
-
children: g.options.map((k,
|
|
366
|
-
const x =
|
|
365
|
+
className: tr({ separated: m > 0 }),
|
|
366
|
+
children: g.options.map((k, C) => {
|
|
367
|
+
const x = C === g.selectedIndex;
|
|
367
368
|
return /* @__PURE__ */ v(
|
|
368
369
|
"div",
|
|
369
370
|
{
|
|
370
371
|
role: "option",
|
|
371
372
|
"aria-selected": x,
|
|
372
|
-
tabIndex:
|
|
373
|
+
tabIndex: C === g.anchorIndex ? 0 : -1,
|
|
373
374
|
"data-value": k.value,
|
|
374
|
-
className:
|
|
375
|
-
onClick: () =>
|
|
376
|
-
onKeyDown: (c) => f(c, m,
|
|
375
|
+
className: rr({ selected: x }),
|
|
376
|
+
onClick: () => u(g.key, k.value),
|
|
377
|
+
onKeyDown: (c) => f(c, m, C),
|
|
377
378
|
children: k.label
|
|
378
379
|
},
|
|
379
380
|
k.value
|
|
@@ -383,139 +384,150 @@ function er({
|
|
|
383
384
|
g.key
|
|
384
385
|
)) });
|
|
385
386
|
}
|
|
386
|
-
const
|
|
387
|
-
(
|
|
387
|
+
const sr = Rt(
|
|
388
|
+
(n, o) => {
|
|
388
389
|
const {
|
|
389
|
-
value:
|
|
390
|
+
value: u,
|
|
390
391
|
allowEmpty: f = !1,
|
|
391
|
-
defaultValue:
|
|
392
|
+
defaultValue: z,
|
|
392
393
|
onChange: b,
|
|
393
394
|
hour12: g,
|
|
394
395
|
minuteStep: m = 1,
|
|
395
396
|
fullWidthSeparator: k = !1,
|
|
396
|
-
periodLabels:
|
|
397
|
+
periodLabels: C,
|
|
397
398
|
size: x = "md",
|
|
398
399
|
dropdown: c = !1,
|
|
399
|
-
disabled:
|
|
400
|
-
className:
|
|
401
|
-
id:
|
|
402
|
-
"aria-label":
|
|
403
|
-
"aria-labelledby":
|
|
404
|
-
} =
|
|
405
|
-
|
|
406
|
-
),
|
|
407
|
-
() => f ?
|
|
408
|
-
[f,
|
|
400
|
+
disabled: tt,
|
|
401
|
+
className: rt,
|
|
402
|
+
id: nt,
|
|
403
|
+
"aria-label": fe,
|
|
404
|
+
"aria-labelledby": st
|
|
405
|
+
} = n, re = n.allowEmpty ? n.onChange : void 0, { t: M, i18n: Le } = Kt("ui"), A = Nt(), ot = It(Et) !== null, I = jt(A, nt), l = !!(A.disabled || tt), it = A.invalid ? "error" : "default", h = g !== void 0 ? g : _t(Le.language), at = qt(Le.language), S = C ?? at, pe = u !== void 0, [lt, ut] = Z(
|
|
406
|
+
u !== void 0 ? u : z !== void 0 ? z : f ? null : { hours: 0, minutes: 0 }
|
|
407
|
+
), me = pe ? u : lt, i = de(
|
|
408
|
+
() => f ? me : me ?? { hours: 0, minutes: 0 },
|
|
409
|
+
[f, me]
|
|
409
410
|
), K = () => H.current ?? { hours: 0, minutes: 0 }, H = d(i);
|
|
410
411
|
H.current = i;
|
|
411
|
-
const y =
|
|
412
|
+
const y = W(
|
|
412
413
|
(e) => {
|
|
413
|
-
H.current = e,
|
|
414
|
+
H.current = e, pe || ut(e), e === null ? re == null || re(null) : b == null || b(e);
|
|
414
415
|
},
|
|
415
|
-
[
|
|
416
|
-
),
|
|
417
|
-
|
|
418
|
-
},
|
|
419
|
-
|
|
416
|
+
[pe, b, re]
|
|
417
|
+
), N = d(null), F = d(null), E = d(null), ne = d(null), _ = d(""), q = d(""), D = d(null), P = d(null), j = () => {
|
|
418
|
+
_.current = "", D.current && (clearTimeout(D.current), D.current = null);
|
|
419
|
+
}, V = () => {
|
|
420
|
+
q.current = "", P.current && (clearTimeout(P.current), P.current = null);
|
|
420
421
|
};
|
|
421
|
-
|
|
422
|
-
(
|
|
423
|
-
}, [
|
|
424
|
-
const
|
|
425
|
-
|
|
426
|
-
}, [f, y]),
|
|
427
|
-
const t = K(),
|
|
422
|
+
Ae(() => {
|
|
423
|
+
(u === null || l) && (j(), V());
|
|
424
|
+
}, [u, l]);
|
|
425
|
+
const se = W(() => {
|
|
426
|
+
_.current = "", q.current = "", D.current && clearTimeout(D.current), P.current && clearTimeout(P.current), D.current = null, P.current = null, y(f ? null : { hours: 0, minutes: 0 });
|
|
427
|
+
}, [f, y]), he = (e) => !f || e.key !== "Backspace" && e.key !== "Delete" ? !1 : (e.preventDefault(), se(), !0), He = (e) => {
|
|
428
|
+
const t = K(), r = R(
|
|
428
429
|
parseInt(e, 10),
|
|
429
430
|
h ? 1 : 0,
|
|
430
431
|
h ? 12 : 23
|
|
431
432
|
);
|
|
432
433
|
y({
|
|
433
434
|
...t,
|
|
434
|
-
hours: h ?
|
|
435
|
+
hours: h ? Qe(r, t.hours >= 12) : r
|
|
435
436
|
});
|
|
436
|
-
},
|
|
437
|
+
}, Fe = (e) => {
|
|
437
438
|
y({
|
|
438
439
|
...K(),
|
|
439
|
-
minutes:
|
|
440
|
+
minutes: $t(parseInt(e, 10), m)
|
|
440
441
|
});
|
|
441
|
-
}, se = () => {
|
|
442
|
-
const e = q.current;
|
|
443
|
-
E(), e && Ae(e);
|
|
444
442
|
}, oe = () => {
|
|
445
|
-
const e =
|
|
446
|
-
j(), e &&
|
|
447
|
-
},
|
|
448
|
-
|
|
449
|
-
|
|
443
|
+
const e = _.current;
|
|
444
|
+
j(), e && He(e);
|
|
445
|
+
}, ie = () => {
|
|
446
|
+
const e = q.current;
|
|
447
|
+
V(), e && Fe(e);
|
|
448
|
+
}, ve = d({
|
|
449
|
+
hour: oe,
|
|
450
|
+
minute: ie
|
|
450
451
|
});
|
|
451
|
-
|
|
452
|
+
ve.current = { hour: oe, minute: ie }, Ce(() => () => {
|
|
452
453
|
D.current && clearTimeout(D.current), P.current && clearTimeout(P.current);
|
|
453
454
|
}, []);
|
|
454
|
-
const
|
|
455
|
-
|
|
456
|
-
const T =
|
|
457
|
-
|
|
458
|
-
}, []), [Ie,
|
|
455
|
+
const ct = k ? ":" : ":", ge = M("inputs.timePicker.unset", "No time set"), Oe = i === null ? "--" : te(h ? Me(i.hours) : i.hours), Re = i === null ? "--" : te(i.minutes), $ = ((i == null ? void 0 : i.hours) ?? 0) >= 12, [O, dt] = Z(!1), ft = c && O, be = d(O);
|
|
456
|
+
be.current = O;
|
|
457
|
+
const T = W((e) => {
|
|
458
|
+
be.current = e, dt(e);
|
|
459
|
+
}, []), [Ie, pt] = Z("ltr"), ae = d("pointer"), ye = d("hour"), G = d(null), X = d(!1), J = d(null), we = d(null), [le, Se] = Z(!1), Ke = d(0);
|
|
460
|
+
Ae(() => {
|
|
461
|
+
const e = N.current;
|
|
462
|
+
if (!e || typeof ResizeObserver > "u") return;
|
|
463
|
+
const t = () => {
|
|
464
|
+
le ? e.clientWidth >= Ke.current && Se(!1) : e.scrollWidth > e.clientWidth + 1 && (Ke.current = e.scrollWidth, Se(!0));
|
|
465
|
+
};
|
|
466
|
+
t();
|
|
467
|
+
const r = new ResizeObserver(t);
|
|
468
|
+
return r.observe(e), () => r.disconnect();
|
|
469
|
+
}, [le]);
|
|
470
|
+
const ke = d(
|
|
459
471
|
{}
|
|
460
|
-
),
|
|
461
|
-
var t,
|
|
462
|
-
(
|
|
463
|
-
}, []),
|
|
472
|
+
), xe = W((e) => {
|
|
473
|
+
var t, r;
|
|
474
|
+
(r = (t = ke.current[e]) == null ? void 0 : t.querySelector('[role="option"][tabindex="0"]')) == null || r.focus({ preventScroll: !0 });
|
|
475
|
+
}, []), ue = W(
|
|
464
476
|
(e) => {
|
|
465
477
|
if (e) {
|
|
466
|
-
if (
|
|
467
|
-
const t =
|
|
468
|
-
|
|
478
|
+
if (l) return;
|
|
479
|
+
const t = N.current;
|
|
480
|
+
pt(
|
|
469
481
|
t && window.getComputedStyle(t).direction === "rtl" ? "rtl" : "ltr"
|
|
470
482
|
), X.current = !1;
|
|
471
483
|
}
|
|
472
484
|
T(e);
|
|
473
485
|
},
|
|
474
|
-
[
|
|
475
|
-
),
|
|
476
|
-
if (!(!c ||
|
|
477
|
-
if (
|
|
478
|
-
e === "keyboard" &&
|
|
486
|
+
[l, T]
|
|
487
|
+
), Ne = (e, t, r) => {
|
|
488
|
+
if (!(!c || l)) {
|
|
489
|
+
if (ae.current = e, ye.current = t, G.current = r, O) {
|
|
490
|
+
e === "keyboard" && xe(t);
|
|
479
491
|
return;
|
|
480
492
|
}
|
|
481
|
-
|
|
493
|
+
ue(!0);
|
|
482
494
|
}
|
|
483
495
|
};
|
|
484
496
|
Ce(() => {
|
|
485
|
-
|
|
486
|
-
}, [
|
|
487
|
-
const
|
|
488
|
-
var t,
|
|
489
|
-
if (!
|
|
497
|
+
O && (!c || l) && T(!1);
|
|
498
|
+
}, [O, c, l, T]);
|
|
499
|
+
const De = (e, t) => !c || !e.altKey ? !1 : e.key === "ArrowUp" && O ? (e.preventDefault(), T(!1), !0) : e.key !== "ArrowDown" ? !1 : (e.preventDefault(), oe(), ie(), Ne("keyboard", t, e.currentTarget), !0), mt = (e) => {
|
|
500
|
+
var t, r;
|
|
501
|
+
if (!l && !he(e) && !De(e, "hour")) {
|
|
490
502
|
if (e.key === "ArrowUp" || e.key === "ArrowDown") {
|
|
491
|
-
e.preventDefault(),
|
|
503
|
+
e.preventDefault(), j();
|
|
492
504
|
const s = K(), a = e.key === "ArrowUp" ? 1 : -1, w = 23;
|
|
493
505
|
let p = s.hours + a;
|
|
494
506
|
p < 0 && (p = w), p > w && (p = 0), y({ ...s, hours: p });
|
|
495
507
|
return;
|
|
496
508
|
}
|
|
497
509
|
if (e.key === "Tab" && !e.shiftKey) {
|
|
498
|
-
e.preventDefault(), (t =
|
|
510
|
+
e.preventDefault(), (t = E.current) == null || t.focus();
|
|
499
511
|
return;
|
|
500
512
|
}
|
|
501
513
|
if (e.key.length === 1 && e.key >= "0" && e.key <= "9") {
|
|
502
514
|
e.preventDefault(), D.current && clearTimeout(D.current);
|
|
503
|
-
const s =
|
|
504
|
-
s.length >= 2 || parseInt(s, 10) > (h ? 1 : 2) ? (
|
|
505
|
-
() =>
|
|
515
|
+
const s = _.current + e.key;
|
|
516
|
+
s.length >= 2 || parseInt(s, 10) > (h ? 1 : 2) ? (j(), He(s), (r = E.current) == null || r.focus()) : (_.current = s, D.current = setTimeout(
|
|
517
|
+
() => ve.current.hour(),
|
|
506
518
|
1e3
|
|
507
519
|
));
|
|
508
520
|
}
|
|
509
521
|
}
|
|
510
|
-
},
|
|
511
|
-
var t,
|
|
512
|
-
if (!
|
|
522
|
+
}, ht = (e) => {
|
|
523
|
+
var t, r, s;
|
|
524
|
+
if (!l && !he(e) && !De(e, "minute")) {
|
|
513
525
|
if (e.key === "ArrowUp" || e.key === "ArrowDown") {
|
|
514
|
-
e.preventDefault(),
|
|
526
|
+
e.preventDefault(), V();
|
|
515
527
|
const a = K();
|
|
516
528
|
y({
|
|
517
529
|
...a,
|
|
518
|
-
minutes:
|
|
530
|
+
minutes: Gt(
|
|
519
531
|
a.minutes,
|
|
520
532
|
m,
|
|
521
533
|
e.key === "ArrowUp" ? 1 : -1
|
|
@@ -524,134 +536,134 @@ const tr = Ht(
|
|
|
524
536
|
return;
|
|
525
537
|
}
|
|
526
538
|
if (e.key === "Tab" && !e.shiftKey && h) {
|
|
527
|
-
e.preventDefault(), (t =
|
|
539
|
+
e.preventDefault(), (t = ne.current) == null || t.focus();
|
|
528
540
|
return;
|
|
529
541
|
}
|
|
530
542
|
if (e.key === "Tab" && e.shiftKey) {
|
|
531
|
-
e.preventDefault(), (
|
|
543
|
+
e.preventDefault(), (r = F.current) == null || r.focus();
|
|
532
544
|
return;
|
|
533
545
|
}
|
|
534
546
|
if (e.key.length === 1 && e.key >= "0" && e.key <= "9") {
|
|
535
547
|
e.preventDefault(), P.current && clearTimeout(P.current);
|
|
536
|
-
const a =
|
|
537
|
-
a.length >= 2 || parseInt(a, 10) > 5 ? (
|
|
538
|
-
() =>
|
|
548
|
+
const a = q.current + e.key;
|
|
549
|
+
a.length >= 2 || parseInt(a, 10) > 5 ? (V(), Fe(a), h && ((s = ne.current) == null || s.focus())) : (q.current = a, P.current = setTimeout(
|
|
550
|
+
() => ve.current.minute(),
|
|
539
551
|
1e3
|
|
540
552
|
));
|
|
541
553
|
}
|
|
542
554
|
}
|
|
543
|
-
},
|
|
555
|
+
}, vt = (e) => {
|
|
544
556
|
var s;
|
|
545
|
-
if (
|
|
546
|
-
const t = K(),
|
|
557
|
+
if (l || he(e) || De(e, "period")) return;
|
|
558
|
+
const t = K(), r = t.hours >= 12;
|
|
547
559
|
if (e.key === "ArrowUp" || e.key === "ArrowDown") {
|
|
548
560
|
e.preventDefault();
|
|
549
|
-
const a =
|
|
550
|
-
y({ ...t, hours:
|
|
561
|
+
const a = r ? t.hours - 12 : t.hours + 12;
|
|
562
|
+
y({ ...t, hours: R(a, 0, 23) });
|
|
551
563
|
return;
|
|
552
564
|
}
|
|
553
565
|
if (e.key === "Tab" && e.shiftKey) {
|
|
554
|
-
e.preventDefault(), (s =
|
|
566
|
+
e.preventDefault(), (s = E.current) == null || s.focus();
|
|
555
567
|
return;
|
|
556
568
|
}
|
|
557
|
-
(e.key === "a" || e.key === "A") && (e.preventDefault(), (H.current === null ||
|
|
558
|
-
},
|
|
559
|
-
se();
|
|
560
|
-
}, ht = () => {
|
|
569
|
+
(e.key === "a" || e.key === "A") && (e.preventDefault(), (H.current === null || r) && y({ ...t, hours: r ? t.hours - 12 : t.hours })), (e.key === "p" || e.key === "P") && (e.preventDefault(), r || y({ ...t, hours: t.hours + 12 }));
|
|
570
|
+
}, gt = () => {
|
|
561
571
|
oe();
|
|
562
|
-
},
|
|
572
|
+
}, bt = () => {
|
|
573
|
+
ie();
|
|
574
|
+
}, Ee = M("inputs.timePicker.hour", "Hour"), je = M("inputs.timePicker.minute", "Minute"), Ve = M("inputs.timePicker.period", "Period"), yt = M("inputs.timePicker.groupLabel", "Time"), wt = M(
|
|
563
575
|
"inputs.timePicker.openDropdown",
|
|
564
576
|
"Choose time"
|
|
565
|
-
),
|
|
577
|
+
), Pe = `${A.id}-label`, ce = ot && !!A.label, [kt, Be] = Z(!0), Te = st ?? (!fe && ce && kt ? Pe : void 0), Ue = Te ? void 0 : fe ?? yt, We = fe ?? (ce ? A.label : void 0), xt = We ? M("inputs.timePicker.clearNamed", { label: We }) : M("inputs.text.clear");
|
|
566
578
|
Ce(() => {
|
|
567
579
|
var w;
|
|
568
|
-
if (!
|
|
569
|
-
const e = (w =
|
|
580
|
+
if (!ce) return;
|
|
581
|
+
const e = (w = N.current) == null ? void 0 : w.getRootNode(), t = e instanceof Document || e instanceof ShadowRoot ? e.getElementById(Pe) : null;
|
|
570
582
|
if (!(t instanceof HTMLLabelElement)) {
|
|
571
|
-
|
|
583
|
+
Be(!1);
|
|
572
584
|
return;
|
|
573
585
|
}
|
|
574
|
-
const
|
|
575
|
-
|
|
576
|
-
const s = new MutationObserver(
|
|
586
|
+
const r = () => Be(t.htmlFor === I);
|
|
587
|
+
r();
|
|
588
|
+
const s = new MutationObserver(r);
|
|
577
589
|
s.observe(t, { attributes: !0, attributeFilter: ["for"] });
|
|
578
590
|
const a = () => {
|
|
579
591
|
var p;
|
|
580
|
-
t.htmlFor !==
|
|
592
|
+
t.htmlFor !== I || l || (p = F.current) == null || p.focus();
|
|
581
593
|
};
|
|
582
594
|
return t.addEventListener("click", a), () => {
|
|
583
595
|
s.disconnect(), t.removeEventListener("click", a);
|
|
584
596
|
};
|
|
585
|
-
}, [
|
|
586
|
-
const
|
|
597
|
+
}, [ce, Pe, I, l]);
|
|
598
|
+
const _e = de(
|
|
587
599
|
() => Array.from(
|
|
588
600
|
{ length: h ? 12 : 24 },
|
|
589
601
|
(e, t) => h ? t + 1 : t
|
|
590
|
-
).map((e) => ({ value: e, label:
|
|
602
|
+
).map((e) => ({ value: e, label: te(e) })),
|
|
591
603
|
[h]
|
|
592
|
-
),
|
|
604
|
+
), ze = de(() => {
|
|
593
605
|
const e = [];
|
|
594
606
|
for (let t = 0; t <= 59; t += m)
|
|
595
|
-
e.push({ value: t, label:
|
|
607
|
+
e.push({ value: t, label: te(t) });
|
|
596
608
|
return e;
|
|
597
|
-
}, [m]),
|
|
609
|
+
}, [m]), B = [];
|
|
598
610
|
if (c) {
|
|
599
|
-
const e =
|
|
600
|
-
(
|
|
611
|
+
const e = _e.findIndex(
|
|
612
|
+
(r) => r.value === (i === null ? void 0 : h ? Me(i.hours) : i.hours)
|
|
601
613
|
);
|
|
602
|
-
|
|
614
|
+
B.push({
|
|
603
615
|
key: "hour",
|
|
604
|
-
label:
|
|
605
|
-
options:
|
|
616
|
+
label: Ee,
|
|
617
|
+
options: _e,
|
|
606
618
|
selectedIndex: e,
|
|
607
619
|
anchorIndex: Math.max(e, 0)
|
|
608
620
|
});
|
|
609
|
-
const t =
|
|
610
|
-
(
|
|
621
|
+
const t = ze.findIndex(
|
|
622
|
+
(r) => r.value === (i == null ? void 0 : i.minutes)
|
|
611
623
|
);
|
|
612
|
-
|
|
624
|
+
B.push({
|
|
613
625
|
key: "minute",
|
|
614
|
-
label:
|
|
615
|
-
options:
|
|
626
|
+
label: je,
|
|
627
|
+
options: ze,
|
|
616
628
|
selectedIndex: t,
|
|
617
|
-
anchorIndex: t >= 0 ? t :
|
|
629
|
+
anchorIndex: t >= 0 ? t : R(
|
|
618
630
|
Math.floor(((i == null ? void 0 : i.minutes) ?? 0) / m),
|
|
619
631
|
0,
|
|
620
|
-
|
|
632
|
+
ze.length - 1
|
|
621
633
|
)
|
|
622
|
-
}), h &&
|
|
634
|
+
}), h && B.push({
|
|
623
635
|
key: "period",
|
|
624
|
-
label:
|
|
636
|
+
label: Ve,
|
|
625
637
|
options: [
|
|
626
638
|
{ value: 0, label: S.am },
|
|
627
639
|
{ value: 1, label: S.pm }
|
|
628
640
|
],
|
|
629
|
-
selectedIndex: i === null ? -1 :
|
|
630
|
-
anchorIndex:
|
|
641
|
+
selectedIndex: i === null ? -1 : $ ? 1 : 0,
|
|
642
|
+
anchorIndex: $ ? 1 : 0
|
|
631
643
|
});
|
|
632
644
|
}
|
|
633
|
-
const
|
|
645
|
+
const qe = (e, t) => {
|
|
634
646
|
var s;
|
|
635
|
-
|
|
636
|
-
const
|
|
647
|
+
j(), V();
|
|
648
|
+
const r = K();
|
|
637
649
|
if (e === "hour") {
|
|
638
|
-
const a = h ?
|
|
639
|
-
(H.current === null || a !==
|
|
650
|
+
const a = h ? Qe(t, r.hours >= 12) : t;
|
|
651
|
+
(H.current === null || a !== r.hours) && y({ ...r, hours: a });
|
|
640
652
|
return;
|
|
641
653
|
}
|
|
642
654
|
if (e === "period") {
|
|
643
655
|
const a = t === 1;
|
|
644
|
-
(H.current === null || a !==
|
|
656
|
+
(H.current === null || a !== r.hours >= 12) && y({ ...r, hours: r.hours % 12 + (a ? 12 : 0) });
|
|
645
657
|
return;
|
|
646
658
|
}
|
|
647
|
-
(H.current === null || t !==
|
|
648
|
-
},
|
|
649
|
-
var p, Q,
|
|
650
|
-
const s =
|
|
659
|
+
(H.current === null || t !== r.minutes) && y({ ...r, minutes: t }), (s = E.current) == null || s.focus(), T(!1);
|
|
660
|
+
}, Dt = (e, t, r) => {
|
|
661
|
+
var p, Q, Ge;
|
|
662
|
+
const s = B[t];
|
|
651
663
|
if (!s) return;
|
|
652
|
-
const a = s.options.length - 1, w = (
|
|
653
|
-
var Y,
|
|
654
|
-
(
|
|
664
|
+
const a = s.options.length - 1, w = (U) => {
|
|
665
|
+
var Y, Xe;
|
|
666
|
+
(Xe = (Y = ke.current[s.key]) == null ? void 0 : Y.querySelectorAll('[role="option"]')[U]) == null || Xe.focus();
|
|
655
667
|
};
|
|
656
668
|
if (e.altKey && e.key === "ArrowUp") {
|
|
657
669
|
e.preventDefault(), (p = G.current) == null || p.focus(), T(!1);
|
|
@@ -659,10 +671,10 @@ const tr = Ht(
|
|
|
659
671
|
}
|
|
660
672
|
switch (e.key) {
|
|
661
673
|
case "ArrowDown":
|
|
662
|
-
e.preventDefault(), w(Math.min(
|
|
674
|
+
e.preventDefault(), w(Math.min(r + 1, a));
|
|
663
675
|
break;
|
|
664
676
|
case "ArrowUp":
|
|
665
|
-
e.preventDefault(), w(Math.max(
|
|
677
|
+
e.preventDefault(), w(Math.max(r - 1, 0));
|
|
666
678
|
break;
|
|
667
679
|
case "Home":
|
|
668
680
|
e.preventDefault(), w(0);
|
|
@@ -673,70 +685,70 @@ const tr = Ht(
|
|
|
673
685
|
case "ArrowLeft":
|
|
674
686
|
case "ArrowRight": {
|
|
675
687
|
e.preventDefault();
|
|
676
|
-
const
|
|
677
|
-
Y &&
|
|
688
|
+
const U = e.key === "ArrowRight" == (Ie === "ltr"), Y = B[t + (U ? 1 : -1)];
|
|
689
|
+
Y && xe(Y.key);
|
|
678
690
|
break;
|
|
679
691
|
}
|
|
680
692
|
case "Enter":
|
|
681
693
|
case " ": {
|
|
682
694
|
e.preventDefault();
|
|
683
|
-
const
|
|
684
|
-
|
|
695
|
+
const U = s.options[r];
|
|
696
|
+
U && qe(s.key, U.value);
|
|
685
697
|
break;
|
|
686
698
|
}
|
|
687
699
|
case "Tab":
|
|
688
|
-
X.current = !0, e.shiftKey ? (Q = F.current) == null || Q.focus() : (
|
|
700
|
+
X.current = !0, e.shiftKey ? (Q = F.current) == null || Q.focus() : (Ge = we.current) == null || Ge.focus(), T(!1);
|
|
689
701
|
break;
|
|
690
702
|
}
|
|
691
|
-
},
|
|
703
|
+
}, Pt = (e) => {
|
|
692
704
|
var a, w;
|
|
693
|
-
if (!c ||
|
|
705
|
+
if (!c || l) return;
|
|
694
706
|
const t = e.target;
|
|
695
|
-
if (!(t instanceof Node) || (a =
|
|
696
|
-
const
|
|
697
|
-
let s =
|
|
707
|
+
if (!(t instanceof Node) || (a = we.current) != null && a.contains(t)) return;
|
|
708
|
+
const r = [F.current, E.current, ne.current];
|
|
709
|
+
let s = r.find((p) => p == null ? void 0 : p.contains(t)) ?? null;
|
|
698
710
|
if (!s) {
|
|
699
711
|
const p = (w = t.ownerDocument) == null ? void 0 : w.activeElement;
|
|
700
|
-
s =
|
|
712
|
+
s = r.find((Q) => Q && Q === p) ?? F.current, s && s !== p && s.focus();
|
|
701
713
|
}
|
|
702
|
-
|
|
703
|
-
},
|
|
704
|
-
|
|
705
|
-
},
|
|
706
|
-
e.preventDefault(),
|
|
707
|
-
},
|
|
714
|
+
Ne("pointer", "hour", s);
|
|
715
|
+
}, Tt = (e) => {
|
|
716
|
+
ae.current = e.detail === 0 ? "keyboard" : "pointer", ye.current = "hour", G.current = e.currentTarget;
|
|
717
|
+
}, zt = (e) => {
|
|
718
|
+
e.preventDefault(), ae.current === "keyboard" && xe(ye.current);
|
|
719
|
+
}, Ct = (e) => {
|
|
708
720
|
var s;
|
|
709
721
|
e.preventDefault();
|
|
710
722
|
const t = X.current;
|
|
711
723
|
if (X.current = !1, t) return;
|
|
712
|
-
const
|
|
713
|
-
(!
|
|
714
|
-
},
|
|
715
|
-
var
|
|
724
|
+
const r = document.activeElement;
|
|
725
|
+
(!r || r === document.body) && ((s = G.current) == null || s.focus());
|
|
726
|
+
}, Mt = (e) => {
|
|
727
|
+
var r;
|
|
716
728
|
const t = e.target;
|
|
717
|
-
if (t instanceof Node && ((
|
|
729
|
+
if (t instanceof Node && ((r = N.current) != null && r.contains(t))) {
|
|
718
730
|
e.preventDefault();
|
|
719
731
|
return;
|
|
720
732
|
}
|
|
721
733
|
X.current = !0;
|
|
722
|
-
},
|
|
734
|
+
}, At = () => {
|
|
723
735
|
var e, t;
|
|
724
736
|
(e = J.current) != null && e.contains(document.activeElement) && ((t = G.current) == null || t.focus());
|
|
725
|
-
},
|
|
726
|
-
var
|
|
727
|
-
const t =
|
|
728
|
-
(
|
|
729
|
-
}, []),
|
|
737
|
+
}, Lt = W((e) => {
|
|
738
|
+
var r, s;
|
|
739
|
+
const t = Jt;
|
|
740
|
+
(r = J.current) == null || r.removeEventListener("wheel", t), (s = J.current) == null || s.removeEventListener("touchmove", t), J.current = e, e == null || e.addEventListener("wheel", t, { passive: !0 }), e == null || e.addEventListener("touchmove", t, { passive: !0 });
|
|
741
|
+
}, []), Ht = (e) => {
|
|
730
742
|
var t;
|
|
731
743
|
(t = J.current) != null && t.contains(document.activeElement) || e.preventDefault();
|
|
732
|
-
},
|
|
744
|
+
}, Ft = de(
|
|
733
745
|
() => ({
|
|
734
746
|
getValue: () => i,
|
|
735
|
-
setValue: (e) => y(
|
|
736
|
-
clear:
|
|
737
|
-
isOpen: () => c &&
|
|
747
|
+
setValue: (e) => y(Xt(e)),
|
|
748
|
+
clear: se,
|
|
749
|
+
isOpen: () => c && be.current,
|
|
738
750
|
open: () => {
|
|
739
|
-
!c ||
|
|
751
|
+
!c || l || (ae.current = "pointer", ue(!0));
|
|
740
752
|
},
|
|
741
753
|
close: () => {
|
|
742
754
|
c && T(!1);
|
|
@@ -745,170 +757,170 @@ const tr = Ht(
|
|
|
745
757
|
[
|
|
746
758
|
i,
|
|
747
759
|
y,
|
|
748
|
-
|
|
760
|
+
se,
|
|
749
761
|
c,
|
|
750
|
-
|
|
751
|
-
|
|
762
|
+
l,
|
|
763
|
+
ue,
|
|
752
764
|
T
|
|
753
765
|
]
|
|
754
766
|
);
|
|
755
|
-
|
|
756
|
-
const
|
|
767
|
+
St(o, () => N.current, []), Vt(Wt, Ft, I);
|
|
768
|
+
const $e = (
|
|
757
769
|
// eslint-disable-next-line jsx-a11y/role-supports-aria-props, jsx-a11y/click-events-have-key-events, jsx-a11y/no-noninteractive-element-interactions -- aria-invalid is a global ARIA state conveying group-level validation; the click is a pointer shortcut to the list, which the keyboard opens with Alt+ArrowDown or the clock button
|
|
758
|
-
/* @__PURE__ */
|
|
770
|
+
/* @__PURE__ */ Je(
|
|
759
771
|
"div",
|
|
760
772
|
{
|
|
761
|
-
ref:
|
|
762
|
-
id:
|
|
773
|
+
ref: N,
|
|
774
|
+
id: I,
|
|
763
775
|
role: "group",
|
|
764
|
-
"aria-label":
|
|
765
|
-
"aria-labelledby":
|
|
776
|
+
"aria-label": Ue,
|
|
777
|
+
"aria-labelledby": Te,
|
|
766
778
|
"aria-describedby": A.describedBy || void 0,
|
|
767
779
|
"aria-invalid": A.invalid || void 0,
|
|
768
|
-
"aria-disabled":
|
|
780
|
+
"aria-disabled": l || void 0,
|
|
769
781
|
"data-component": "time-picker",
|
|
770
|
-
"data-component-id":
|
|
771
|
-
className:
|
|
782
|
+
"data-component-id": I,
|
|
783
|
+
className: Qt({
|
|
772
784
|
size: x,
|
|
773
|
-
tone:
|
|
774
|
-
isDisabled:
|
|
775
|
-
opensOnClick: c && !
|
|
776
|
-
className:
|
|
785
|
+
tone: it,
|
|
786
|
+
isDisabled: l,
|
|
787
|
+
opensOnClick: c && !l,
|
|
788
|
+
className: rt
|
|
777
789
|
}),
|
|
778
|
-
onClick: c ?
|
|
790
|
+
onClick: c ? Pt : void 0,
|
|
779
791
|
children: [
|
|
780
792
|
/* @__PURE__ */ v(
|
|
781
793
|
"span",
|
|
782
794
|
{
|
|
783
795
|
ref: F,
|
|
784
796
|
role: "spinbutton",
|
|
785
|
-
"aria-disabled":
|
|
786
|
-
"aria-label":
|
|
797
|
+
"aria-disabled": l || void 0,
|
|
798
|
+
"aria-label": Ee,
|
|
787
799
|
"aria-valuemin": h ? 1 : 0,
|
|
788
800
|
"aria-valuemax": h ? 12 : 23,
|
|
789
|
-
"aria-valuenow": i === null ? void 0 : h ?
|
|
790
|
-
"aria-valuetext": i === null ?
|
|
801
|
+
"aria-valuenow": i === null ? void 0 : h ? Me(i.hours) : i.hours,
|
|
802
|
+
"aria-valuetext": i === null ? ge : Oe,
|
|
791
803
|
"aria-keyshortcuts": c ? "Alt+ArrowDown" : void 0,
|
|
792
|
-
tabIndex:
|
|
804
|
+
tabIndex: l ? -1 : 0,
|
|
793
805
|
inputMode: "numeric",
|
|
794
|
-
onKeyDown:
|
|
795
|
-
onBlur:
|
|
796
|
-
className:
|
|
797
|
-
children:
|
|
806
|
+
onKeyDown: mt,
|
|
807
|
+
onBlur: gt,
|
|
808
|
+
className: Ye({ size: x }),
|
|
809
|
+
children: Oe
|
|
798
810
|
}
|
|
799
811
|
),
|
|
800
|
-
/* @__PURE__ */ v("span", { "aria-hidden": "true", className:
|
|
812
|
+
/* @__PURE__ */ v("span", { "aria-hidden": "true", className: Zt({ size: x }), children: ct }),
|
|
801
813
|
/* @__PURE__ */ v(
|
|
802
814
|
"span",
|
|
803
815
|
{
|
|
804
|
-
ref:
|
|
816
|
+
ref: E,
|
|
805
817
|
role: "spinbutton",
|
|
806
|
-
"aria-disabled":
|
|
807
|
-
"aria-label":
|
|
818
|
+
"aria-disabled": l || void 0,
|
|
819
|
+
"aria-label": je,
|
|
808
820
|
"aria-valuemin": 0,
|
|
809
821
|
"aria-valuemax": 59,
|
|
810
822
|
"aria-valuenow": i == null ? void 0 : i.minutes,
|
|
811
|
-
"aria-valuetext": i === null ?
|
|
823
|
+
"aria-valuetext": i === null ? ge : Re,
|
|
812
824
|
"aria-keyshortcuts": c ? "Alt+ArrowDown" : void 0,
|
|
813
|
-
tabIndex:
|
|
825
|
+
tabIndex: l ? -1 : 0,
|
|
814
826
|
inputMode: "numeric",
|
|
815
|
-
onKeyDown:
|
|
816
|
-
onBlur:
|
|
817
|
-
className:
|
|
818
|
-
children:
|
|
827
|
+
onKeyDown: ht,
|
|
828
|
+
onBlur: bt,
|
|
829
|
+
className: Ye({ size: x }),
|
|
830
|
+
children: Re
|
|
819
831
|
}
|
|
820
832
|
),
|
|
821
833
|
h ? /* @__PURE__ */ v(
|
|
822
834
|
"span",
|
|
823
835
|
{
|
|
824
|
-
ref:
|
|
836
|
+
ref: ne,
|
|
825
837
|
role: "spinbutton",
|
|
826
|
-
"aria-disabled":
|
|
827
|
-
"aria-label":
|
|
838
|
+
"aria-disabled": l || void 0,
|
|
839
|
+
"aria-label": Ve,
|
|
828
840
|
"aria-valuemin": 0,
|
|
829
841
|
"aria-valuemax": 1,
|
|
830
|
-
"aria-valuenow": i === null ? void 0 :
|
|
831
|
-
"aria-valuetext": i === null ?
|
|
842
|
+
"aria-valuenow": i === null ? void 0 : $ ? 1 : 0,
|
|
843
|
+
"aria-valuetext": i === null ? ge : $ ? S.pm : S.am,
|
|
832
844
|
"aria-keyshortcuts": c ? "Alt+ArrowDown" : void 0,
|
|
833
|
-
tabIndex:
|
|
834
|
-
onKeyDown:
|
|
835
|
-
className:
|
|
836
|
-
children: i === null ? "--" :
|
|
845
|
+
tabIndex: l ? -1 : 0,
|
|
846
|
+
onKeyDown: vt,
|
|
847
|
+
className: Yt({ size: x }),
|
|
848
|
+
children: i === null ? "--" : $ ? S.pm : S.am
|
|
837
849
|
}
|
|
838
850
|
) : null,
|
|
839
|
-
f ? /* @__PURE__ */ v(
|
|
851
|
+
f && !le ? /* @__PURE__ */ v(
|
|
840
852
|
"button",
|
|
841
853
|
{
|
|
842
854
|
type: "button",
|
|
843
|
-
"aria-label":
|
|
844
|
-
disabled:
|
|
855
|
+
"aria-label": xt,
|
|
856
|
+
disabled: l || i === null,
|
|
845
857
|
onPointerDown: (e) => {
|
|
846
|
-
e.preventDefault(),
|
|
858
|
+
e.preventDefault(), j(), V();
|
|
847
859
|
},
|
|
848
860
|
onClick: (e) => {
|
|
849
861
|
var t;
|
|
850
|
-
e.stopPropagation(),
|
|
862
|
+
e.stopPropagation(), se(), (t = F.current) == null || t.focus();
|
|
851
863
|
},
|
|
852
|
-
className:
|
|
864
|
+
className: Ze({
|
|
853
865
|
size: x,
|
|
854
866
|
trailing: !c,
|
|
855
867
|
className: i === null ? "ds:invisible" : void 0
|
|
856
868
|
}),
|
|
857
|
-
children: /* @__PURE__ */ v(
|
|
869
|
+
children: /* @__PURE__ */ v(Bt, { "aria-hidden": "true" })
|
|
858
870
|
}
|
|
859
871
|
) : null,
|
|
860
|
-
c ? /* @__PURE__ */ v(
|
|
872
|
+
c && !le ? /* @__PURE__ */ v(ee.Trigger, { asChild: !0, children: /* @__PURE__ */ v(
|
|
861
873
|
"button",
|
|
862
874
|
{
|
|
863
|
-
ref:
|
|
875
|
+
ref: we,
|
|
864
876
|
type: "button",
|
|
865
|
-
"aria-label":
|
|
866
|
-
disabled:
|
|
867
|
-
onClick:
|
|
868
|
-
className:
|
|
869
|
-
children: /* @__PURE__ */ v(
|
|
877
|
+
"aria-label": wt,
|
|
878
|
+
disabled: l,
|
|
879
|
+
onClick: Tt,
|
|
880
|
+
className: Ze({ size: x }),
|
|
881
|
+
children: /* @__PURE__ */ v(Ut, { "aria-hidden": "true" })
|
|
870
882
|
}
|
|
871
883
|
) }) : null
|
|
872
884
|
]
|
|
873
885
|
}
|
|
874
886
|
)
|
|
875
887
|
);
|
|
876
|
-
return c ? /* @__PURE__ */
|
|
877
|
-
/* @__PURE__ */ v(
|
|
878
|
-
/* @__PURE__ */ v(
|
|
879
|
-
|
|
888
|
+
return c ? /* @__PURE__ */ Je(ee.Root, { open: ft, onOpenChange: ue, children: [
|
|
889
|
+
/* @__PURE__ */ v(ee.Anchor, { asChild: !0, children: $e }),
|
|
890
|
+
/* @__PURE__ */ v(ee.Portal, { children: /* @__PURE__ */ v(
|
|
891
|
+
ee.Content,
|
|
880
892
|
{
|
|
881
|
-
ref:
|
|
893
|
+
ref: Lt,
|
|
882
894
|
side: "bottom",
|
|
883
895
|
align: "start",
|
|
884
896
|
sideOffset: 4,
|
|
885
897
|
dir: Ie,
|
|
886
898
|
"data-component": "time-picker-dropdown",
|
|
887
|
-
"aria-label":
|
|
888
|
-
"aria-labelledby":
|
|
889
|
-
className:
|
|
890
|
-
onOpenAutoFocus:
|
|
891
|
-
onCloseAutoFocus:
|
|
892
|
-
onInteractOutside:
|
|
893
|
-
onEscapeKeyDown:
|
|
894
|
-
onMouseDown:
|
|
899
|
+
"aria-label": Ue,
|
|
900
|
+
"aria-labelledby": Te,
|
|
901
|
+
className: er({ size: x }),
|
|
902
|
+
onOpenAutoFocus: zt,
|
|
903
|
+
onCloseAutoFocus: Ct,
|
|
904
|
+
onInteractOutside: Mt,
|
|
905
|
+
onEscapeKeyDown: At,
|
|
906
|
+
onMouseDown: Ht,
|
|
895
907
|
children: /* @__PURE__ */ v(
|
|
896
|
-
|
|
908
|
+
nr,
|
|
897
909
|
{
|
|
898
|
-
columns:
|
|
899
|
-
columnRefs:
|
|
900
|
-
onPick:
|
|
901
|
-
onOptionKeyDown:
|
|
910
|
+
columns: B,
|
|
911
|
+
columnRefs: ke,
|
|
912
|
+
onPick: qe,
|
|
913
|
+
onOptionKeyDown: Dt
|
|
902
914
|
}
|
|
903
915
|
)
|
|
904
916
|
}
|
|
905
917
|
) })
|
|
906
|
-
] }) :
|
|
918
|
+
] }) : $e;
|
|
907
919
|
}
|
|
908
920
|
);
|
|
909
|
-
|
|
921
|
+
sr.displayName = "TimePicker";
|
|
910
922
|
export {
|
|
911
|
-
|
|
912
|
-
|
|
923
|
+
sr as T,
|
|
924
|
+
Wt as t
|
|
913
925
|
};
|
|
914
|
-
//# sourceMappingURL=time-picker-
|
|
926
|
+
//# sourceMappingURL=time-picker-DDr5vhwQ.js.map
|