@alfadocs/ui-kit-debug 1.30.0 → 1.32.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/{address-fields-CZ0pEdEI.js → address-fields-jFfjxOQR.js} +3 -3
- package/dist/_chunks/{address-fields-CZ0pEdEI.js.map → address-fields-jFfjxOQR.js.map} +1 -1
- package/dist/_chunks/{agenda-card-pdN49pMu.js → agenda-card-DVz3jwTf.js} +2 -2
- package/dist/_chunks/{agenda-card-pdN49pMu.js.map → agenda-card-DVz3jwTf.js.map} +1 -1
- package/dist/_chunks/{agenda-tray-BweO8pDo.js → agenda-tray-1oDWCJdB.js} +2 -2
- package/dist/_chunks/{agenda-tray-BweO8pDo.js.map → agenda-tray-1oDWCJdB.js.map} +1 -1
- package/dist/_chunks/{ai-prompt-input-CrHr-5H8.js → ai-prompt-input-Dt7tpCBh.js} +2 -2
- package/dist/_chunks/{ai-prompt-input-CrHr-5H8.js.map → ai-prompt-input-Dt7tpCBh.js.map} +1 -1
- package/dist/_chunks/{alia-sidebar-BWcWZivN.js → alia-sidebar-D18kp3p9.js} +3 -3
- package/dist/_chunks/{alia-sidebar-BWcWZivN.js.map → alia-sidebar-D18kp3p9.js.map} +1 -1
- package/dist/_chunks/{anamnesis-summary-rows-DMO3MWSt.js → anamnesis-summary-rows-BYgyp_i2.js} +6 -6
- package/dist/_chunks/{anamnesis-summary-rows-DMO3MWSt.js.map → anamnesis-summary-rows-BYgyp_i2.js.map} +1 -1
- package/dist/_chunks/{appointment-card-Dzr3GeVz.js → appointment-card-D-oj_ugh.js} +9 -7
- package/dist/_chunks/appointment-card-D-oj_ugh.js.map +1 -0
- package/dist/_chunks/{appointment-timeline-DhHwmHo1.js → appointment-timeline-CymGHyIP.js} +2 -2
- package/dist/_chunks/{appointment-timeline-DhHwmHo1.js.map → appointment-timeline-CymGHyIP.js.map} +1 -1
- package/dist/_chunks/{appointment-tray-4FUu_5NX.js → appointment-tray-DCk8gHod.js} +2 -2
- package/dist/_chunks/{appointment-tray-4FUu_5NX.js.map → appointment-tray-DCk8gHod.js.map} +1 -1
- package/dist/_chunks/{audio-recorder-DXG6LTtO.js → audio-recorder-11wClczr.js} +2 -2
- package/dist/_chunks/{audio-recorder-DXG6LTtO.js.map → audio-recorder-11wClczr.js.map} +1 -1
- package/dist/_chunks/{avatar-BNQNhoyL.js → avatar-CkDeQOSI.js} +37 -37
- package/dist/_chunks/avatar-CkDeQOSI.js.map +1 -0
- package/dist/_chunks/{balance-badge-cell-CX6b0ML4.js → balance-badge-cell-DhBtFRoW.js} +4 -4
- package/dist/_chunks/{balance-badge-cell-CX6b0ML4.js.map → balance-badge-cell-DhBtFRoW.js.map} +1 -1
- package/dist/_chunks/{bishop-score-CJUVBfAu.js → bishop-score-CAl7C5hm.js} +2 -2
- package/dist/_chunks/{bishop-score-CJUVBfAu.js.map → bishop-score-CAl7C5hm.js.map} +1 -1
- package/dist/_chunks/{bmi-calculator-CcH6upht.js → bmi-calculator-Dwkih9a4.js} +3 -3
- package/dist/_chunks/{bmi-calculator-CcH6upht.js.map → bmi-calculator-Dwkih9a4.js.map} +1 -1
- package/dist/_chunks/{booking-AabCk7CI.js → booking-l6UGNiE1.js} +3 -3
- package/dist/_chunks/{booking-AabCk7CI.js.map → booking-l6UGNiE1.js.map} +1 -1
- package/dist/_chunks/{calculator-dialog-12d3Sxaz.js → calculator-dialog-C0ixc3SU.js} +2 -2
- package/dist/_chunks/{calculator-dialog-12d3Sxaz.js.map → calculator-dialog-C0ixc3SU.js.map} +1 -1
- package/dist/_chunks/{calendar-CI9MINcR.js → calendar-Dgvl5L4T.js} +494 -438
- package/dist/_chunks/calendar-Dgvl5L4T.js.map +1 -0
- package/dist/_chunks/{calendar-event-card-66CEEWU6.js → calendar-event-card-DSh-69HT.js} +130 -122
- package/dist/_chunks/calendar-event-card-DSh-69HT.js.map +1 -0
- package/dist/_chunks/calendar-workspace-BX-zDyVR.js +9392 -0
- package/dist/_chunks/calendar-workspace-BX-zDyVR.js.map +1 -0
- package/dist/_chunks/{care-plan-card-CQVboTn1.js → care-plan-card-CZW476Kg.js} +2 -2
- package/dist/_chunks/{care-plan-card-CQVboTn1.js.map → care-plan-card-CZW476Kg.js.map} +1 -1
- package/dist/_chunks/{care-plan-entry-card-jxHkzez5.js → care-plan-entry-card-BMUYagEw.js} +2 -2
- package/dist/_chunks/{care-plan-entry-card-jxHkzez5.js.map → care-plan-entry-card-BMUYagEw.js.map} +1 -1
- package/dist/_chunks/{chat-message-DBQu10rs.js → chat-message-C-8UU2av.js} +2 -2
- package/dist/_chunks/{chat-message-DBQu10rs.js.map → chat-message-C-8UU2av.js.map} +1 -1
- package/dist/_chunks/{clinical-note-card-BBgFd2nB.js → clinical-note-card-D2WTV2CO.js} +185 -188
- package/dist/_chunks/clinical-note-card-D2WTV2CO.js.map +1 -0
- package/dist/_chunks/{color-picker-CU303VjY.js → color-picker-Bl5f0iK1.js} +28 -25
- package/dist/_chunks/color-picker-Bl5f0iK1.js.map +1 -0
- package/dist/_chunks/{combobox-D7_NLE2Z.js → combobox-DnSdYssy.js} +216 -215
- package/dist/_chunks/combobox-DnSdYssy.js.map +1 -0
- package/dist/_chunks/{country-select-DzbPFktV.js → country-select-CfDNFG5c.js} +2 -2
- package/dist/_chunks/{country-select-DzbPFktV.js.map → country-select-CfDNFG5c.js.map} +1 -1
- package/dist/_chunks/{data-table-DB5BiVQ0.js → data-table-DC96JJIq.js} +2 -2
- package/dist/_chunks/{data-table-DB5BiVQ0.js.map → data-table-DC96JJIq.js.map} +1 -1
- package/dist/_chunks/{dependent-selector-cJlJFAKD.js → dependent-selector-yTKKsuc9.js} +2 -2
- package/dist/_chunks/{dependent-selector-cJlJFAKD.js.map → dependent-selector-yTKKsuc9.js.map} +1 -1
- package/dist/_chunks/{dialog-UbKJCi1X.js → dialog-BJiLqhx6.js} +54 -46
- package/dist/_chunks/dialog-BJiLqhx6.js.map +1 -0
- package/dist/_chunks/{document-preview-CDb-n_W7.js → document-preview-BrhMHNh8.js} +2 -2
- package/dist/_chunks/{document-preview-CDb-n_W7.js.map → document-preview-BrhMHNh8.js.map} +1 -1
- package/dist/_chunks/{due-date-calculator-BtgWeFqp.js → due-date-calculator-CxgK8vzt.js} +3 -3
- package/dist/_chunks/{due-date-calculator-BtgWeFqp.js.map → due-date-calculator-CxgK8vzt.js.map} +1 -1
- package/dist/_chunks/{entity-summary-B_vO5Ur4.js → entity-summary-5o768XLU.js} +2 -2
- package/dist/_chunks/{entity-summary-B_vO5Ur4.js.map → entity-summary-5o768XLU.js.map} +1 -1
- package/dist/_chunks/{face-scheme-DA2vjqaM.js → face-scheme-l-CQyLs-.js} +2 -2
- package/dist/_chunks/{face-scheme-DA2vjqaM.js.map → face-scheme-l-CQyLs-.js.map} +1 -1
- package/dist/_chunks/{file-manager-Cd8V9IcZ.js → file-manager-CI2Qn8qW.js} +3 -3
- package/dist/_chunks/{file-manager-Cd8V9IcZ.js.map → file-manager-CI2Qn8qW.js.map} +1 -1
- package/dist/_chunks/{gestational-age-calculator-KdMg9z9H.js → gestational-age-calculator-CZHVrERT.js} +4 -4
- package/dist/_chunks/{gestational-age-calculator-KdMg9z9H.js.map → gestational-age-calculator-CZHVrERT.js.map} +1 -1
- package/dist/_chunks/{link-cell-renderer-tWEOv3Sc.js → link-cell-renderer-BEpMNtAa.js} +3 -3
- package/dist/_chunks/{link-cell-renderer-tWEOv3Sc.js.map → link-cell-renderer-BEpMNtAa.js.map} +1 -1
- package/dist/_chunks/{marketplace-app-shell-C4AjQmvz.js → marketplace-app-shell-CK_ND8Tr.js} +2 -2
- package/dist/_chunks/{marketplace-app-shell-C4AjQmvz.js.map → marketplace-app-shell-CK_ND8Tr.js.map} +1 -1
- package/dist/_chunks/{message-card-D8GB4FdF.js → message-card-BUMv16un.js} +2 -2
- package/dist/_chunks/{message-card-D8GB4FdF.js.map → message-card-BUMv16un.js.map} +1 -1
- package/dist/_chunks/{message-tray-CGIRQjx5.js → message-tray-0zsv27xX.js} +2 -2
- package/dist/_chunks/{message-tray-CGIRQjx5.js.map → message-tray-0zsv27xX.js.map} +1 -1
- package/dist/_chunks/{muscle-scheme-BSJsI4-I.js → muscle-scheme-UVz_x4iE.js} +2 -2
- package/dist/_chunks/{muscle-scheme-BSJsI4-I.js.map → muscle-scheme-UVz_x4iE.js.map} +1 -1
- package/dist/_chunks/notes-panel-C4G-mhZ9.js +380 -0
- package/dist/_chunks/notes-panel-C4G-mhZ9.js.map +1 -0
- package/dist/_chunks/{operator-hero-BnFv-Uef.js → operator-hero-D7-iiFQ9.js} +2 -2
- package/dist/_chunks/{operator-hero-BnFv-Uef.js.map → operator-hero-D7-iiFQ9.js.map} +1 -1
- package/dist/_chunks/{optical-prescription-BvwuqTpl.js → optical-prescription-DUJOhKz_.js} +2 -2
- package/dist/_chunks/{optical-prescription-BvwuqTpl.js.map → optical-prescription-DUJOhKz_.js.map} +1 -1
- package/dist/_chunks/{patient-details-DYAmq76G.js → patient-details-BGiawUHd.js} +5 -5
- package/dist/_chunks/{patient-details-DYAmq76G.js.map → patient-details-BGiawUHd.js.map} +1 -1
- package/dist/_chunks/{patient-summary-card-C9WBwct-.js → patient-summary-card--CT_gbaQ.js} +2 -2
- package/dist/_chunks/{patient-summary-card-C9WBwct-.js.map → patient-summary-card--CT_gbaQ.js.map} +1 -1
- package/dist/_chunks/{periodontal-diagnosis-HrFsVi-C.js → periodontal-diagnosis-lEwA8wqX.js} +3 -3
- package/dist/_chunks/{periodontal-diagnosis-HrFsVi-C.js.map → periodontal-diagnosis-lEwA8wqX.js.map} +1 -1
- package/dist/_chunks/{practice-profile-hero-YQ7h2K4o.js → practice-profile-hero-DQyDvpJL.js} +2 -2
- package/dist/_chunks/{practice-profile-hero-YQ7h2K4o.js.map → practice-profile-hero-DQyDvpJL.js.map} +1 -1
- package/dist/_chunks/{practice-results-CxIsU2YO.js → practice-results-DjEzPgAK.js} +2 -2
- package/dist/_chunks/{practice-results-CxIsU2YO.js.map → practice-results-DjEzPgAK.js.map} +1 -1
- package/dist/_chunks/{pregnancy-dating-m-c05DOI.js → pregnancy-dating-n5j5dAKy.js} +4 -4
- package/dist/_chunks/{pregnancy-dating-m-c05DOI.js.map → pregnancy-dating-n5j5dAKy.js.map} +1 -1
- package/dist/_chunks/{pregnancy-weight-gain-CJwbs9W-.js → pregnancy-weight-gain-D5A8vPjj.js} +3 -3
- package/dist/_chunks/{pregnancy-weight-gain-CJwbs9W-.js.map → pregnancy-weight-gain-D5A8vPjj.js.map} +1 -1
- package/dist/_chunks/{province-select-BBc7s7vR.js → province-select-BaUnkg4S.js} +2 -2
- package/dist/_chunks/{province-select-BBc7s7vR.js.map → province-select-BaUnkg4S.js.map} +1 -1
- package/dist/_chunks/qr-code-DOJs4suh.js +750 -0
- package/dist/_chunks/qr-code-DOJs4suh.js.map +1 -0
- package/dist/_chunks/radio-DNRe6H_8.js +193 -0
- package/dist/_chunks/radio-DNRe6H_8.js.map +1 -0
- package/dist/_chunks/radio-group-DyVBgnA3.js +297 -0
- package/dist/_chunks/radio-group-DyVBgnA3.js.map +1 -0
- package/dist/_chunks/{radiograph-panel.agent-ByM9M3qm.js → radiograph-panel.agent-o4jwEJPC.js} +2 -2
- package/dist/_chunks/{radiograph-panel.agent-ByM9M3qm.js.map → radiograph-panel.agent-o4jwEJPC.js.map} +1 -1
- package/dist/_chunks/{rich-text-editor-lSCiE0Zz.js → rich-text-editor-CQ7yZdG3.js} +3 -3
- package/dist/_chunks/{rich-text-editor-lSCiE0Zz.js.map → rich-text-editor-CQ7yZdG3.js.map} +1 -1
- package/dist/_chunks/select-CLSUnKjF.js +520 -0
- package/dist/_chunks/select-CLSUnKjF.js.map +1 -0
- package/dist/_chunks/signature-request-vihDT8On.js +2232 -0
- package/dist/_chunks/signature-request-vihDT8On.js.map +1 -0
- package/dist/_chunks/{tabs-DqKtTIjZ.js → tabs-BnRaLT0y.js} +2 -2
- package/dist/_chunks/{tabs-DqKtTIjZ.js.map → tabs-BnRaLT0y.js.map} +1 -1
- package/dist/_chunks/{tasks-panel-DPCNaRko.js → tasks-panel-DQuaVvl5.js} +2 -2
- package/dist/_chunks/{tasks-panel-DPCNaRko.js.map → tasks-panel-DQuaVvl5.js.map} +1 -1
- package/dist/_chunks/{timeline-r-8IUoBS.js → timeline-Bs9Erxlo.js} +38 -36
- package/dist/_chunks/timeline-Bs9Erxlo.js.map +1 -0
- package/dist/_chunks/{tooth-scheme-C9jssOmy.js → tooth-scheme-Qe7LO5Di.js} +2 -2
- package/dist/_chunks/{tooth-scheme-C9jssOmy.js.map → tooth-scheme-Qe7LO5Di.js.map} +1 -1
- package/dist/_chunks/{unit-converter-C6jMjqL9.js → unit-converter-BTgU50gk.js} +2 -2
- package/dist/_chunks/{unit-converter-C6jMjqL9.js.map → unit-converter-BTgU50gk.js.map} +1 -1
- package/dist/_chunks/{widget-picker-em4xGgv0.js → widget-picker-DvUkBemi.js} +2 -2
- package/dist/_chunks/{widget-picker-em4xGgv0.js.map → widget-picker-DvUkBemi.js.map} +1 -1
- package/dist/agent-catalog.json +366 -29
- package/dist/agent-i18n/en.json +27 -15
- package/dist/components/_shared/get-error-message.d.ts +3 -0
- package/dist/components/_shared/get-error-message.d.ts.map +1 -0
- 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-prompt-input/index.js +1 -1
- package/dist/components/appointment-card/appointment-card.d.ts.map +1 -1
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/avatar/avatar.d.ts +2 -0
- package/dist/components/avatar/avatar.d.ts.map +1 -1
- package/dist/components/avatar/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/calculator-dialog/index.js +1 -1
- package/dist/components/calendar/calendar.d.ts +26 -2
- package/dist/components/calendar/calendar.d.ts.map +1 -1
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/calendar-event-card/calendar-event-card.d.ts +9 -0
- package/dist/components/calendar-event-card/calendar-event-card.d.ts.map +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/chat-message/index.js +1 -1
- package/dist/components/clinical-note-card/clinical-note-card.d.ts +16 -1
- package/dist/components/clinical-note-card/clinical-note-card.d.ts.map +1 -1
- package/dist/components/clinical-note-card/index.js +1 -1
- package/dist/components/color-picker/color-utils.d.ts.map +1 -1
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/combobox/combobox.d.ts +5 -0
- package/dist/components/combobox/combobox.d.ts.map +1 -1
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/country-select/index.js +1 -1
- package/dist/components/data-table/index.js +2 -2
- package/dist/components/dependent-selector/index.js +1 -1
- package/dist/components/dialog/dialog.d.ts +9 -0
- package/dist/components/dialog/dialog.d.ts.map +1 -1
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +1 -1
- package/dist/components/entity-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/gestational-age-calculator/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/muscle-scheme/index.js +1 -1
- package/dist/components/notes-panel/index.d.ts +1 -1
- package/dist/components/notes-panel/index.d.ts.map +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/notes-panel/notes-panel.agent.d.ts.map +1 -1
- package/dist/components/notes-panel/notes-panel.d.ts +24 -5
- package/dist/components/notes-panel/notes-panel.d.ts.map +1 -1
- package/dist/components/operator-hero/index.js +1 -1
- package/dist/components/optical-prescription/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/periodontal-diagnosis/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/province-select/index.js +1 -1
- package/dist/components/qr-code/index.js +1 -1
- package/dist/components/qr-code/qr-encode.d.ts +14 -16
- package/dist/components/qr-code/qr-encode.d.ts.map +1 -1
- package/dist/components/radio/index.js +1 -1
- package/dist/components/radio-group/index.js +2 -2
- package/dist/components/radio-group/radio-group-context.d.ts +4 -1
- package/dist/components/radio-group/radio-group-context.d.ts.map +1 -1
- package/dist/components/radio-group/radio-group.agent.d.ts.map +1 -1
- package/dist/components/radio-group/radio-group.d.ts +13 -1
- package/dist/components/radio-group/radio-group.d.ts.map +1 -1
- package/dist/components/radio-group/radio.d.ts +24 -1
- package/dist/components/radio-group/radio.d.ts.map +1 -1
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/select/index.js +1 -1
- package/dist/components/select/select.agent.d.ts.map +1 -1
- package/dist/components/select/select.d.ts +33 -0
- package/dist/components/select/select.d.ts.map +1 -1
- package/dist/components/skeleton-scheme/index.js +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/timeline/timeline.d.ts +2 -0
- package/dist/components/timeline/timeline.d.ts.map +1 -1
- package/dist/components/tooth-scheme/index.js +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/widget-picker/index.js +1 -1
- package/dist/host-compat.css +7 -1
- package/dist/i18n/locales/ar.d.ts +118 -0
- package/dist/i18n/locales/ar.d.ts.map +1 -1
- package/dist/i18n/locales/ar.js +123 -5
- package/dist/i18n/locales/ar.js.map +1 -1
- package/dist/i18n/locales/de.d.ts +128 -10
- package/dist/i18n/locales/de.d.ts.map +1 -1
- package/dist/i18n/locales/de.js +135 -15
- package/dist/i18n/locales/de.js.map +1 -1
- package/dist/i18n/locales/el.d.ts +118 -0
- package/dist/i18n/locales/el.d.ts.map +1 -1
- package/dist/i18n/locales/el.js +123 -5
- package/dist/i18n/locales/el.js.map +1 -1
- package/dist/i18n/locales/en.d.ts +118 -0
- package/dist/i18n/locales/en.d.ts.map +1 -1
- package/dist/i18n/locales/en.js +123 -5
- package/dist/i18n/locales/en.js.map +1 -1
- package/dist/i18n/locales/es.d.ts +118 -0
- package/dist/i18n/locales/es.d.ts.map +1 -1
- package/dist/i18n/locales/es.js +123 -5
- package/dist/i18n/locales/es.js.map +1 -1
- package/dist/i18n/locales/fr.d.ts +118 -0
- package/dist/i18n/locales/fr.d.ts.map +1 -1
- package/dist/i18n/locales/fr.js +122 -4
- package/dist/i18n/locales/fr.js.map +1 -1
- package/dist/i18n/locales/hi.d.ts +118 -0
- package/dist/i18n/locales/hi.d.ts.map +1 -1
- package/dist/i18n/locales/hi.js +123 -5
- package/dist/i18n/locales/hi.js.map +1 -1
- package/dist/i18n/locales/it.d.ts +128 -10
- package/dist/i18n/locales/it.d.ts.map +1 -1
- package/dist/i18n/locales/it.js +133 -15
- package/dist/i18n/locales/it.js.map +1 -1
- package/dist/i18n/locales/ja.d.ts +118 -0
- package/dist/i18n/locales/ja.d.ts.map +1 -1
- package/dist/i18n/locales/ja.js +123 -5
- package/dist/i18n/locales/ja.js.map +1 -1
- package/dist/i18n/locales/nl.d.ts +118 -0
- package/dist/i18n/locales/nl.d.ts.map +1 -1
- package/dist/i18n/locales/nl.js +123 -5
- package/dist/i18n/locales/nl.js.map +1 -1
- package/dist/i18n/locales/pl.d.ts +118 -0
- package/dist/i18n/locales/pl.d.ts.map +1 -1
- package/dist/i18n/locales/pl.js +123 -5
- package/dist/i18n/locales/pl.js.map +1 -1
- package/dist/i18n/locales/pt.d.ts +118 -0
- package/dist/i18n/locales/pt.d.ts.map +1 -1
- package/dist/i18n/locales/pt.js +123 -5
- package/dist/i18n/locales/pt.js.map +1 -1
- package/dist/i18n/locales/ro.d.ts +118 -0
- package/dist/i18n/locales/ro.d.ts.map +1 -1
- package/dist/i18n/locales/ro.js +122 -4
- package/dist/i18n/locales/ro.js.map +1 -1
- package/dist/i18n/locales/ru.d.ts +118 -0
- package/dist/i18n/locales/ru.d.ts.map +1 -1
- package/dist/i18n/locales/ru.js +123 -5
- package/dist/i18n/locales/ru.js.map +1 -1
- package/dist/i18n/locales/sq.d.ts +118 -0
- package/dist/i18n/locales/sq.d.ts.map +1 -1
- package/dist/i18n/locales/sq.js +123 -5
- package/dist/i18n/locales/sq.js.map +1 -1
- package/dist/i18n/locales/sv.d.ts +118 -0
- package/dist/i18n/locales/sv.d.ts.map +1 -1
- package/dist/i18n/locales/sv.js +123 -5
- package/dist/i18n/locales/sv.js.map +1 -1
- package/dist/i18n/locales/tr.d.ts +118 -0
- package/dist/i18n/locales/tr.d.ts.map +1 -1
- package/dist/i18n/locales/tr.js +123 -5
- package/dist/i18n/locales/tr.js.map +1 -1
- package/dist/i18n/locales/zh.d.ts +118 -0
- package/dist/i18n/locales/zh.d.ts.map +1 -1
- package/dist/i18n/locales/zh.js +123 -5
- package/dist/i18n/locales/zh.js.map +1 -1
- package/dist/index.js +131 -130
- package/dist/locales/ar.json +123 -5
- package/dist/locales/de.json +133 -15
- package/dist/locales/el.json +123 -5
- package/dist/locales/en.json +123 -5
- package/dist/locales/es.json +123 -5
- package/dist/locales/fr.json +122 -4
- package/dist/locales/hi.json +123 -5
- package/dist/locales/it.json +133 -15
- package/dist/locales/ja.json +123 -5
- package/dist/locales/nl.json +123 -5
- package/dist/locales/pl.json +123 -5
- package/dist/locales/pt.json +123 -5
- package/dist/locales/ro.json +122 -4
- package/dist/locales/ru.json +123 -5
- package/dist/locales/sq.json +123 -5
- package/dist/locales/sv.json +123 -5
- package/dist/locales/tr.json +123 -5
- package/dist/locales/zh.json +123 -5
- 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 +145 -0
- package/dist/patterns/calendar/calendar-appointment-details.d.ts.map +1 -0
- package/dist/patterns/calendar/calendar-appointment-details.sections.d.ts +32 -0
- package/dist/patterns/calendar/calendar-appointment-details.sections.d.ts.map +1 -0
- package/dist/patterns/calendar/calendar-editor-hydration.d.ts +59 -0
- package/dist/patterns/calendar/calendar-editor-hydration.d.ts.map +1 -0
- package/dist/patterns/calendar/calendar-notes-tool.d.ts +14 -0
- package/dist/patterns/calendar/calendar-notes-tool.d.ts.map +1 -0
- package/dist/patterns/calendar/calendar-patient-picker.d.ts +11 -0
- package/dist/patterns/calendar/calendar-patient-picker.d.ts.map +1 -0
- package/dist/patterns/calendar/calendar-series-scope-chooser.d.ts +18 -0
- package/dist/patterns/calendar/calendar-series-scope-chooser.d.ts.map +1 -0
- package/dist/patterns/calendar/calendar-workspace.d.ts +26 -1
- package/dist/patterns/calendar/calendar-workspace.d.ts.map +1 -1
- package/dist/patterns/calendar/calendar-workspace.model.d.ts +8 -5
- package/dist/patterns/calendar/calendar-workspace.model.d.ts.map +1 -1
- package/dist/patterns/calendar/calendar.data.d.ts +66 -1
- package/dist/patterns/calendar/calendar.data.d.ts.map +1 -1
- package/dist/patterns/calendar/calendar.host.d.ts +2 -0
- package/dist/patterns/calendar/calendar.host.d.ts.map +1 -1
- package/dist/patterns/calendar/calendar.journey.d.ts +42 -7
- package/dist/patterns/calendar/calendar.journey.d.ts.map +1 -1
- package/dist/patterns/calendar/calendar.model.d.ts +54 -5
- package/dist/patterns/calendar/calendar.model.d.ts.map +1 -1
- package/dist/patterns/calendar/calendar.sheets.d.ts +68 -15
- package/dist/patterns/calendar/calendar.sheets.d.ts.map +1 -1
- package/dist/patterns/calendar/calendar.surface.d.ts +12 -2
- package/dist/patterns/calendar/calendar.surface.d.ts.map +1 -1
- package/dist/patterns/calendar/calendar.types.d.ts +29 -1
- package/dist/patterns/calendar/calendar.types.d.ts.map +1 -1
- package/dist/patterns/calendar/index.d.ts +9 -6
- package/dist/patterns/calendar/index.d.ts.map +1 -1
- package/dist/patterns/calendar/index.js +15 -14
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/signature-request/channel-meta.d.ts +27 -0
- package/dist/patterns/signature-request/channel-meta.d.ts.map +1 -0
- package/dist/patterns/signature-request/index.d.ts +1 -1
- package/dist/patterns/signature-request/index.d.ts.map +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/patterns/signature-request/load-status.d.ts +13 -0
- package/dist/patterns/signature-request/load-status.d.ts.map +1 -0
- package/dist/patterns/signature-request/person-grid.d.ts +32 -0
- package/dist/patterns/signature-request/person-grid.d.ts.map +1 -0
- package/dist/patterns/signature-request/required-documents.d.ts +127 -0
- package/dist/patterns/signature-request/required-documents.d.ts.map +1 -0
- package/dist/patterns/signature-request/signature-history.d.ts +57 -0
- package/dist/patterns/signature-request/signature-history.d.ts.map +1 -0
- package/dist/patterns/signature-request/signature-outcome.d.ts +29 -0
- package/dist/patterns/signature-request/signature-outcome.d.ts.map +1 -0
- package/dist/patterns/signature-request/signature-request.d.ts +390 -26
- package/dist/patterns/signature-request/signature-request.d.ts.map +1 -1
- package/dist/tokens.css +10 -2
- package/package.json +3 -1
- package/dist/_chunks/appointment-card-Dzr3GeVz.js.map +0 -1
- package/dist/_chunks/avatar-BNQNhoyL.js.map +0 -1
- package/dist/_chunks/calendar-CI9MINcR.js.map +0 -1
- package/dist/_chunks/calendar-event-card-66CEEWU6.js.map +0 -1
- package/dist/_chunks/calendar-workspace-a84AHQwj.js +0 -7506
- package/dist/_chunks/calendar-workspace-a84AHQwj.js.map +0 -1
- package/dist/_chunks/clinical-note-card-BBgFd2nB.js.map +0 -1
- package/dist/_chunks/color-picker-CU303VjY.js.map +0 -1
- package/dist/_chunks/combobox-D7_NLE2Z.js.map +0 -1
- package/dist/_chunks/dialog-UbKJCi1X.js.map +0 -1
- package/dist/_chunks/notes-panel-CTNpsByN.js +0 -353
- package/dist/_chunks/notes-panel-CTNpsByN.js.map +0 -1
- package/dist/_chunks/qr-code-CPkEs5mG.js +0 -574
- package/dist/_chunks/qr-code-CPkEs5mG.js.map +0 -1
- package/dist/_chunks/radio-TWf9Q-mp.js +0 -108
- package/dist/_chunks/radio-TWf9Q-mp.js.map +0 -1
- package/dist/_chunks/radio-group-rXDJADzW.js +0 -175
- package/dist/_chunks/radio-group-rXDJADzW.js.map +0 -1
- package/dist/_chunks/select-Bi8zril7.js +0 -471
- package/dist/_chunks/select-Bi8zril7.js.map +0 -1
- package/dist/_chunks/signature-request-C-IsbkPf.js +0 -417
- package/dist/_chunks/signature-request-C-IsbkPf.js.map +0 -1
- package/dist/_chunks/timeline-r-8IUoBS.js.map +0 -1
|
@@ -1,25 +1,27 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { useTranslation as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import { u as
|
|
14
|
-
import { u as
|
|
15
|
-
import { w as
|
|
16
|
-
import { A as
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import { C as
|
|
22
|
-
|
|
1
|
+
import { jsxs as S, jsx as d } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as He, useRef as p, useEffect as v, useState as le, useMemo as u, useImperativeHandle as er, useCallback as h } from "react";
|
|
3
|
+
import { useTranslation as xe } from "react-i18next";
|
|
4
|
+
import tr from "@fullcalendar/react";
|
|
5
|
+
import rr from "@fullcalendar/daygrid";
|
|
6
|
+
import nr from "@fullcalendar/timegrid";
|
|
7
|
+
import ir from "@fullcalendar/list";
|
|
8
|
+
import ar from "@fullcalendar/resource";
|
|
9
|
+
import sr from "@fullcalendar/resource-timegrid";
|
|
10
|
+
import or from "@fullcalendar/resource-timeline";
|
|
11
|
+
import dr from "@fullcalendar/timeline";
|
|
12
|
+
import lr from "@fullcalendar/interaction";
|
|
13
|
+
import { u as cr } from "./use-prefers-reduced-motion-BMwIQRjB.js";
|
|
14
|
+
import { u as ur } from "./registry-DvAUVLHh.js";
|
|
15
|
+
import { w as mr, C as fr } from "./calendar-event-card-DSh-69HT.js";
|
|
16
|
+
import { A as pr } from "./avatar-CkDeQOSI.js";
|
|
17
|
+
import { B as vr } from "./button-nJaPh_HC.js";
|
|
18
|
+
import { R as hr } from "./resource-chip-DYTG0IQQ.js";
|
|
19
|
+
import { T as gr } from "./tooltip-DvmfrNvB.js";
|
|
20
|
+
import { V as yr } from "./visually-hidden-BHxEUGyT.js";
|
|
21
|
+
import { C as je } from "./check-DrFSN__t.js";
|
|
22
|
+
import { C as _e } from "./chevron-right-I9AeSxH2.js";
|
|
23
|
+
import { C as Ve } from "./chevron-left-B8cOyH-V.js";
|
|
24
|
+
const br = {
|
|
23
25
|
id: "calendar",
|
|
24
26
|
capabilities: ["view_change", "range_navigate", "pick"],
|
|
25
27
|
state: {
|
|
@@ -171,10 +173,10 @@ const lr = {
|
|
|
171
173
|
},
|
|
172
174
|
item: {
|
|
173
175
|
attr: "data-event-id",
|
|
174
|
-
description: 'Emitted on every rendered FullCalendar event by the kit event renderer. Used by focusEvent. Cards also carry data-kind="task"|"draft"|"appointment" and data-status for classification.'
|
|
176
|
+
description: 'Emitted on every rendered FullCalendar event by the kit event renderer. Used by focusEvent. Cards also carry data-kind="task"|"draft"|"pending-details"|"appointment" and data-status for classification.'
|
|
175
177
|
}
|
|
176
178
|
}
|
|
177
|
-
},
|
|
179
|
+
}, Tr = {
|
|
178
180
|
vertical: {
|
|
179
181
|
Day: "resourceTimeGridDay",
|
|
180
182
|
ThreeDays: "resourceTimeGridThreeDays",
|
|
@@ -185,35 +187,35 @@ const lr = {
|
|
|
185
187
|
ThreeDays: "resourceTimelineThreeDays",
|
|
186
188
|
Week: "resourceTimelineWeek"
|
|
187
189
|
}
|
|
188
|
-
},
|
|
190
|
+
}, Dr = /* @__PURE__ */ new Set([
|
|
189
191
|
"dayGridMonth",
|
|
190
192
|
"timeGridWeek",
|
|
191
193
|
"timeGridThreeDays",
|
|
192
194
|
"timeGridDay",
|
|
193
195
|
"listWeek"
|
|
194
|
-
]),
|
|
196
|
+
]), xr = {
|
|
195
197
|
timeGridDay: "timelineDay",
|
|
196
198
|
timeGridThreeDays: "timelineThreeDays",
|
|
197
199
|
timeGridWeek: "timelineWeek"
|
|
198
200
|
};
|
|
199
|
-
function
|
|
200
|
-
if (
|
|
201
|
-
return s === "horizontal" ?
|
|
202
|
-
const
|
|
201
|
+
function be(n, s = "vertical") {
|
|
202
|
+
if (Dr.has(n))
|
|
203
|
+
return s === "horizontal" ? xr[n] ?? n : n;
|
|
204
|
+
const l = n.replace(/^resourceTimeGrid/, "").replace(
|
|
203
205
|
/(Chair|Operator)$/,
|
|
204
206
|
""
|
|
205
207
|
);
|
|
206
|
-
return
|
|
208
|
+
return Tr[s][l];
|
|
207
209
|
}
|
|
208
|
-
const
|
|
210
|
+
const de = {
|
|
209
211
|
weekday: "long",
|
|
210
212
|
day: "numeric",
|
|
211
213
|
month: "long",
|
|
212
214
|
year: "numeric"
|
|
213
|
-
},
|
|
215
|
+
}, Cr = [
|
|
214
216
|
{ weekday: "short", day: "numeric", month: "short" },
|
|
215
217
|
{ hour: "numeric", minute: "2-digit" }
|
|
216
|
-
],
|
|
218
|
+
], wr = {
|
|
217
219
|
resourceTimeGridThreeDays: {
|
|
218
220
|
type: "resourceTimeGrid",
|
|
219
221
|
duration: { days: 3 }
|
|
@@ -232,17 +234,17 @@ const ae = {
|
|
|
232
234
|
type: "timeline",
|
|
233
235
|
duration: { days: 3 }
|
|
234
236
|
},
|
|
235
|
-
timeline: { slotLabelFormat:
|
|
236
|
-
timeGridDay: { titleFormat:
|
|
237
|
-
resourceTimeGridDay: { titleFormat:
|
|
238
|
-
timelineDay: { titleFormat:
|
|
239
|
-
resourceTimelineDay: { titleFormat:
|
|
240
|
-
},
|
|
237
|
+
timeline: { slotLabelFormat: Cr },
|
|
238
|
+
timeGridDay: { titleFormat: de },
|
|
239
|
+
resourceTimeGridDay: { titleFormat: de },
|
|
240
|
+
timelineDay: { titleFormat: de },
|
|
241
|
+
resourceTimelineDay: { titleFormat: de }
|
|
242
|
+
}, Te = 5, Ar = {
|
|
241
243
|
create: "calendar.modeBanner.create",
|
|
242
244
|
move: "calendar.modeBanner.move",
|
|
243
245
|
copy: "calendar.modeBanner.copy"
|
|
244
246
|
};
|
|
245
|
-
function
|
|
247
|
+
function kr(n) {
|
|
246
248
|
try {
|
|
247
249
|
const s = new Intl.Locale(n), o = typeof s.getWeekInfo == "function" ? s.getWeekInfo() : s.weekInfo;
|
|
248
250
|
if (o && typeof o.firstDay == "number")
|
|
@@ -251,61 +253,61 @@ function gr(n) {
|
|
|
251
253
|
}
|
|
252
254
|
return n.startsWith("en-US") || n.startsWith("he") || n.startsWith("ar-SA") ? 0 : 1;
|
|
253
255
|
}
|
|
254
|
-
const
|
|
255
|
-
function
|
|
256
|
-
const s = n.getFullYear(), o = String(n.getMonth() + 1).padStart(2, "0"),
|
|
257
|
-
return `${s}-${o}-${
|
|
256
|
+
const De = "calendar-col-hidden", Ir = "calendar-col-loading";
|
|
257
|
+
function F(n) {
|
|
258
|
+
const s = n.getFullYear(), o = String(n.getMonth() + 1).padStart(2, "0"), l = String(n.getDate()).padStart(2, "0");
|
|
259
|
+
return `${s}-${o}-${l}`;
|
|
258
260
|
}
|
|
259
|
-
function
|
|
260
|
-
const o = /* @__PURE__ */ new Set(),
|
|
261
|
+
function Sr(n, s) {
|
|
262
|
+
const o = /* @__PURE__ */ new Set(), l = /* @__PURE__ */ new Map(), f = (n == null ? void 0 : n.length) ?? 0;
|
|
261
263
|
if (n && s) {
|
|
262
264
|
for (const T of n)
|
|
263
265
|
if (T.hiddenDates)
|
|
264
|
-
for (const
|
|
265
|
-
const
|
|
266
|
-
o.has(
|
|
266
|
+
for (const g of T.hiddenDates) {
|
|
267
|
+
const A = `${T.id}:${g}`;
|
|
268
|
+
o.has(A) || (o.add(A), l.set(g, (l.get(g) ?? 0) + 1));
|
|
267
269
|
}
|
|
268
270
|
}
|
|
269
271
|
return {
|
|
270
272
|
hiddenCells: o,
|
|
271
|
-
hiddenCountByDate:
|
|
273
|
+
hiddenCountByDate: l,
|
|
272
274
|
resourceCount: f,
|
|
273
275
|
active: o.size > 0
|
|
274
276
|
};
|
|
275
277
|
}
|
|
276
|
-
function
|
|
277
|
-
const { i18n: n } =
|
|
278
|
+
function Rr() {
|
|
279
|
+
const { i18n: n } = xe(), [s, o] = le(() => {
|
|
278
280
|
if (typeof document > "u") return !1;
|
|
279
|
-
const
|
|
280
|
-
return
|
|
281
|
+
const l = document.documentElement.getAttribute("dir"), f = typeof n.dir == "function" ? n.dir() : "ltr";
|
|
282
|
+
return l === "rtl" || f === "rtl";
|
|
281
283
|
});
|
|
282
284
|
return v(() => {
|
|
283
285
|
if (typeof document > "u") return;
|
|
284
|
-
const
|
|
286
|
+
const l = new MutationObserver(() => {
|
|
285
287
|
const f = document.documentElement.getAttribute("dir"), T = typeof n.dir == "function" ? n.dir() : "ltr";
|
|
286
288
|
o(f === "rtl" || T === "rtl");
|
|
287
289
|
});
|
|
288
|
-
return
|
|
290
|
+
return l.observe(document.documentElement, {
|
|
289
291
|
attributes: !0,
|
|
290
292
|
attributeFilter: ["dir", "lang"]
|
|
291
|
-
}), () =>
|
|
293
|
+
}), () => l.disconnect();
|
|
292
294
|
}, [n]), s;
|
|
293
295
|
}
|
|
294
|
-
function
|
|
295
|
-
const o = n.event.start,
|
|
296
|
-
if (!(!o || !
|
|
296
|
+
function Er(n, s) {
|
|
297
|
+
const o = n.event.start, l = n.event.end ?? n.event.start;
|
|
298
|
+
if (!(!o || !l))
|
|
297
299
|
try {
|
|
298
300
|
const f = new Intl.DateTimeFormat(s, {
|
|
299
301
|
hour: "2-digit",
|
|
300
302
|
minute: "2-digit",
|
|
301
303
|
hour12: !1
|
|
302
304
|
});
|
|
303
|
-
return typeof f.formatRange == "function" ? f.formatRange(o,
|
|
305
|
+
return typeof f.formatRange == "function" ? f.formatRange(o, l) : `${f.format(o)} – ${f.format(l)}`;
|
|
304
306
|
} catch {
|
|
305
307
|
return;
|
|
306
308
|
}
|
|
307
309
|
}
|
|
308
|
-
const
|
|
310
|
+
const qe = [
|
|
309
311
|
"ds:inline-flex ds:items-center ds:justify-center",
|
|
310
312
|
"ds:min-h-[var(--min-target-size)]",
|
|
311
313
|
"ds:bg-[var(--background)] ds:text-[var(--foreground)]",
|
|
@@ -318,15 +320,15 @@ const We = [
|
|
|
318
320
|
"ds:focus-visible:outline-[var(--ring)]",
|
|
319
321
|
"ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
320
322
|
"ds:motion-reduce:transition-none"
|
|
321
|
-
].join(" "),
|
|
322
|
-
|
|
323
|
+
].join(" "), Pr = [
|
|
324
|
+
qe,
|
|
323
325
|
"ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]"
|
|
324
|
-
].join(" "),
|
|
325
|
-
|
|
326
|
+
].join(" "), Nr = [
|
|
327
|
+
qe,
|
|
326
328
|
"ds:min-w-[var(--min-target-size)]"
|
|
327
|
-
].join(" "),
|
|
328
|
-
({ title: n, onToday: s, onPrev: o, onNext:
|
|
329
|
-
const { t:
|
|
329
|
+
].join(" "), Ce = He(
|
|
330
|
+
({ title: n, onToday: s, onPrev: o, onNext: l, end: f, className: T, maskClassName: g }, A) => {
|
|
331
|
+
const { t: W } = xe(), Z = Rr(), D = Z ? _e : Ve, Q = Z ? Ve : _e, j = [
|
|
330
332
|
"ds:calendar-toolbar",
|
|
331
333
|
"ds:sticky ds:top-0 ds:z-20",
|
|
332
334
|
"ds:flex ds:items-center ds:gap-[var(--spacing-sm)]",
|
|
@@ -335,145 +337,147 @@ const We = [
|
|
|
335
337
|
"ds:bg-[var(--background)]",
|
|
336
338
|
"ds:border-b ds:border-[var(--border)]",
|
|
337
339
|
T
|
|
338
|
-
].filter(Boolean).join(" "),
|
|
340
|
+
].filter(Boolean).join(" "), _ = [Pr, g].filter(Boolean).join(" "), N = [Nr, g].filter(Boolean).join(" "), G = [
|
|
339
341
|
"ds:flex-1 ds:text-center ds:truncate type-title-card",
|
|
340
|
-
|
|
341
|
-
].filter(Boolean).join(" "),
|
|
342
|
-
return /* @__PURE__ */
|
|
343
|
-
/* @__PURE__ */
|
|
344
|
-
/* @__PURE__ */
|
|
342
|
+
g
|
|
343
|
+
].filter(Boolean).join(" "), x = ["ds:flex-1 ds:text-center", g].filter(Boolean).join(" ");
|
|
344
|
+
return /* @__PURE__ */ S("div", { ref: A, className: j, children: [
|
|
345
|
+
/* @__PURE__ */ S("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
346
|
+
/* @__PURE__ */ d(
|
|
345
347
|
"button",
|
|
346
348
|
{
|
|
347
349
|
type: "button",
|
|
348
350
|
onClick: s,
|
|
349
|
-
className:
|
|
350
|
-
children:
|
|
351
|
+
className: _,
|
|
352
|
+
children: W("calendar.today")
|
|
351
353
|
}
|
|
352
354
|
),
|
|
353
|
-
/* @__PURE__ */
|
|
355
|
+
/* @__PURE__ */ d(
|
|
354
356
|
"button",
|
|
355
357
|
{
|
|
356
358
|
type: "button",
|
|
357
359
|
onClick: o,
|
|
358
|
-
"aria-label":
|
|
359
|
-
className:
|
|
360
|
-
children: /* @__PURE__ */
|
|
360
|
+
"aria-label": W("calendar.previousPeriod"),
|
|
361
|
+
className: N,
|
|
362
|
+
children: /* @__PURE__ */ d(D, { size: 16, "aria-hidden": "true" })
|
|
361
363
|
}
|
|
362
364
|
),
|
|
363
|
-
/* @__PURE__ */
|
|
365
|
+
/* @__PURE__ */ d(
|
|
364
366
|
"button",
|
|
365
367
|
{
|
|
366
368
|
type: "button",
|
|
367
|
-
onClick:
|
|
368
|
-
"aria-label":
|
|
369
|
-
className:
|
|
370
|
-
children: /* @__PURE__ */
|
|
369
|
+
onClick: l,
|
|
370
|
+
"aria-label": W("calendar.nextPeriod"),
|
|
371
|
+
className: N,
|
|
372
|
+
children: /* @__PURE__ */ d(Q, { size: 16, "aria-hidden": "true" })
|
|
371
373
|
}
|
|
372
374
|
)
|
|
373
375
|
] }),
|
|
374
|
-
n ? /* @__PURE__ */
|
|
376
|
+
n ? /* @__PURE__ */ d("h2", { "aria-live": "polite", className: G, children: n }) : (
|
|
375
377
|
/* Keep the centering slot stable even before the first
|
|
376
378
|
`datesSet` populates the title — an empty <h2> would trip
|
|
377
379
|
axe's `empty-heading` rule, so we substitute a decorative
|
|
378
380
|
spacer that matches the h2's flex sizing. Once `title` is
|
|
379
381
|
non-empty the h2 renders in the same slot. */
|
|
380
|
-
/* @__PURE__ */
|
|
382
|
+
/* @__PURE__ */ d("div", { "aria-hidden": "true", className: x })
|
|
381
383
|
),
|
|
382
|
-
f ? /* @__PURE__ */
|
|
384
|
+
f ? /* @__PURE__ */ d("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: f }) : null
|
|
383
385
|
] });
|
|
384
386
|
}
|
|
385
387
|
);
|
|
386
|
-
|
|
387
|
-
const
|
|
388
|
+
Ce.displayName = "Calendar.Toolbar";
|
|
389
|
+
const $e = He(
|
|
388
390
|
({
|
|
389
391
|
id: n,
|
|
390
392
|
events: s,
|
|
391
393
|
resources: o,
|
|
392
|
-
view:
|
|
394
|
+
view: l = "dayGridMonth",
|
|
393
395
|
initialDate: f,
|
|
394
396
|
locale: T,
|
|
395
|
-
onEventDrop:
|
|
396
|
-
onEventResize:
|
|
397
|
-
onEventDragStart:
|
|
398
|
-
onEventResizeStart:
|
|
399
|
-
onEventClick:
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
397
|
+
onEventDrop: g,
|
|
398
|
+
onEventResize: A,
|
|
399
|
+
onEventDragStart: W,
|
|
400
|
+
onEventResizeStart: Z,
|
|
401
|
+
onEventClick: D,
|
|
402
|
+
onBackgroundEventClick: Q,
|
|
403
|
+
onEventMouseEnter: j,
|
|
404
|
+
onEventMouseLeave: _,
|
|
405
|
+
onDateSelect: N,
|
|
406
|
+
onDatesSet: G,
|
|
407
|
+
onDateClick: x,
|
|
408
|
+
onNavLinkDayClick: we,
|
|
409
|
+
editable: ee = !1,
|
|
410
|
+
eventDurationEditable: Ke,
|
|
411
|
+
selectable: Ae = !1,
|
|
412
|
+
selectMirror: Ue,
|
|
413
|
+
unselectAuto: ke,
|
|
414
|
+
height: Ye,
|
|
415
|
+
className: Xe,
|
|
413
416
|
privacyMode: y = !1,
|
|
414
|
-
eventColorStyle:
|
|
415
|
-
mode:
|
|
416
|
-
modeLabel:
|
|
417
|
-
modeBannerColor:
|
|
418
|
-
modeBannerTextColor:
|
|
419
|
-
onModeCancel:
|
|
420
|
-
alertBanner:
|
|
421
|
-
hiddenDays:
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
417
|
+
eventColorStyle: Je = "solid",
|
|
418
|
+
mode: te = "default",
|
|
419
|
+
modeLabel: Ze,
|
|
420
|
+
modeBannerColor: re,
|
|
421
|
+
modeBannerTextColor: ne,
|
|
422
|
+
onModeCancel: Ie,
|
|
423
|
+
alertBanner: Qe,
|
|
424
|
+
hiddenDays: Se,
|
|
425
|
+
loadingDates: Re,
|
|
426
|
+
slotMinTime: et,
|
|
427
|
+
slotMaxTime: tt,
|
|
428
|
+
slotDuration: rt,
|
|
429
|
+
snapDuration: Ee,
|
|
430
|
+
showTime: nt = !0,
|
|
431
|
+
datesAboveResources: ce = !0,
|
|
432
|
+
slotEventOverlap: it = !1,
|
|
433
|
+
stickyHeaderDates: at = !0,
|
|
434
|
+
nowIndicator: st = !0,
|
|
435
|
+
dayMaxEvents: ot = !0,
|
|
436
|
+
schedulerLicenseKey: dt = void 0,
|
|
437
|
+
toolbar: lt = !0,
|
|
438
|
+
toolbarEnd: ct,
|
|
439
|
+
resourceLayout: V = "vertical",
|
|
440
|
+
showResourceInitials: ue = !1,
|
|
441
|
+
resourceLabelVariant: Pe = "text",
|
|
442
|
+
verticalResourceLabels: me = !1,
|
|
443
|
+
selectedEventId: Ne,
|
|
444
|
+
availabilityMode: ut = !1,
|
|
445
|
+
resourceAreaWidth: mt,
|
|
446
|
+
resourceAreaHeader: H,
|
|
447
|
+
defaultTimedEventDuration: q,
|
|
448
|
+
zebraRows: ft = !1,
|
|
449
|
+
maskClassName: M
|
|
450
|
+
}, pt) => {
|
|
451
|
+
const { t: m, i18n: B } = xe(), C = p(null), k = p(null), w = p(null), I = p(null), L = p(null), Ge = p(null), ie = p({
|
|
448
452
|
id: 0,
|
|
449
453
|
x: 0,
|
|
450
454
|
y: 0
|
|
451
|
-
}),
|
|
455
|
+
}), Me = p(0), Be = p(0), R = T ?? B.language ?? "en";
|
|
452
456
|
v(() => {
|
|
453
|
-
}, [
|
|
454
|
-
}, [
|
|
455
|
-
const [
|
|
457
|
+
}, [Se]), v(() => {
|
|
458
|
+
}, [q]);
|
|
459
|
+
const [vt, ht] = le(() => {
|
|
456
460
|
if (typeof document > "u") return "ltr";
|
|
457
|
-
const e = document.documentElement.getAttribute("dir"), t = typeof
|
|
461
|
+
const e = document.documentElement.getAttribute("dir"), t = typeof B.dir == "function" ? B.dir() : "ltr";
|
|
458
462
|
return e === "rtl" || t === "rtl" ? "rtl" : "ltr";
|
|
459
463
|
});
|
|
460
464
|
v(() => {
|
|
461
465
|
if (typeof document > "u") return;
|
|
462
466
|
const e = new MutationObserver(() => {
|
|
463
|
-
const t = document.documentElement.getAttribute("dir"), r = typeof
|
|
464
|
-
|
|
467
|
+
const t = document.documentElement.getAttribute("dir"), r = typeof B.dir == "function" ? B.dir() : "ltr";
|
|
468
|
+
ht(t === "rtl" || r === "rtl" ? "rtl" : "ltr");
|
|
465
469
|
});
|
|
466
470
|
return e.observe(document.documentElement, {
|
|
467
471
|
attributes: !0,
|
|
468
472
|
attributeFilter: ["dir", "lang"]
|
|
469
473
|
}), () => e.disconnect();
|
|
470
|
-
}, [
|
|
474
|
+
}, [B]), v(() => {
|
|
471
475
|
if (typeof document > "u") return;
|
|
472
476
|
let e;
|
|
473
477
|
const t = new MutationObserver(() => {
|
|
474
478
|
clearTimeout(e), e = setTimeout(() => {
|
|
475
479
|
var i;
|
|
476
|
-
const r = (i =
|
|
480
|
+
const r = (i = C.current) == null ? void 0 : i.getApi();
|
|
477
481
|
r && typeof r.render == "function" && r.render();
|
|
478
482
|
}, 50);
|
|
479
483
|
});
|
|
@@ -484,15 +488,15 @@ const Fe = Le(
|
|
|
484
488
|
clearTimeout(e), t.disconnect();
|
|
485
489
|
};
|
|
486
490
|
}, []), v(() => {
|
|
487
|
-
const e =
|
|
491
|
+
const e = k.current;
|
|
488
492
|
if (!e || typeof ResizeObserver > "u") return;
|
|
489
493
|
let t = 0, r = e.getBoundingClientRect().width;
|
|
490
494
|
const i = new ResizeObserver((a) => {
|
|
491
|
-
var
|
|
492
|
-
const c = a[0], b = ((
|
|
495
|
+
var U, Y;
|
|
496
|
+
const c = a[0], b = ((Y = (U = c == null ? void 0 : c.borderBoxSize) == null ? void 0 : U[0]) == null ? void 0 : Y.inlineSize) ?? (c == null ? void 0 : c.contentRect.width) ?? e.getBoundingClientRect().width;
|
|
493
497
|
b !== r && (r = b, cancelAnimationFrame(t), t = requestAnimationFrame(() => {
|
|
494
|
-
var
|
|
495
|
-
(
|
|
498
|
+
var X, J;
|
|
499
|
+
(J = (X = C.current) == null ? void 0 : X.getApi()) == null || J.updateSize();
|
|
496
500
|
}));
|
|
497
501
|
});
|
|
498
502
|
return i.observe(e), () => {
|
|
@@ -500,7 +504,7 @@ const Fe = Le(
|
|
|
500
504
|
};
|
|
501
505
|
}, []), v(() => {
|
|
502
506
|
if (typeof document > "u") return;
|
|
503
|
-
const e =
|
|
507
|
+
const e = k.current;
|
|
504
508
|
if (!e) return;
|
|
505
509
|
const t = () => {
|
|
506
510
|
e.querySelectorAll(
|
|
@@ -524,19 +528,19 @@ const Fe = Le(
|
|
|
524
528
|
attributeFilter: ["aria-hidden"]
|
|
525
529
|
}), () => r.disconnect();
|
|
526
530
|
}, [m]);
|
|
527
|
-
const
|
|
528
|
-
() =>
|
|
529
|
-
),
|
|
530
|
-
|
|
531
|
-
const
|
|
531
|
+
const ae = cr(), [gt, yt] = le(""), [O, bt] = le(
|
|
532
|
+
() => be(l, V)
|
|
533
|
+
), Le = p(O);
|
|
534
|
+
Le.current = O;
|
|
535
|
+
const fe = u(() => {
|
|
532
536
|
const e = () => {
|
|
533
537
|
var t;
|
|
534
|
-
return (t =
|
|
538
|
+
return (t = C.current) == null ? void 0 : t.getApi();
|
|
535
539
|
};
|
|
536
540
|
return {
|
|
537
541
|
getApi: () => {
|
|
538
542
|
var t;
|
|
539
|
-
return (t =
|
|
543
|
+
return (t = C.current) == null ? void 0 : t.getApi();
|
|
540
544
|
},
|
|
541
545
|
today: () => {
|
|
542
546
|
var t;
|
|
@@ -557,7 +561,7 @@ const Fe = Le(
|
|
|
557
561
|
changeView: (t) => {
|
|
558
562
|
var r;
|
|
559
563
|
(r = e()) == null || r.changeView(
|
|
560
|
-
|
|
564
|
+
be(t, V)
|
|
561
565
|
);
|
|
562
566
|
},
|
|
563
567
|
getTitle: () => {
|
|
@@ -573,41 +577,41 @@ const Fe = Le(
|
|
|
573
577
|
return (t = e()) == null ? void 0 : t.getDate();
|
|
574
578
|
},
|
|
575
579
|
focusEvent: (t) => {
|
|
576
|
-
const r =
|
|
580
|
+
const r = k.current;
|
|
577
581
|
if (!r) return;
|
|
578
582
|
const i = `[data-event-id="${CSS.escape(t)}"]`, a = r.querySelector(i);
|
|
579
583
|
if (a) {
|
|
580
|
-
if (I.current && (clearTimeout(I.current), I.current = null),
|
|
581
|
-
behavior:
|
|
584
|
+
if (I.current && (clearTimeout(I.current), I.current = null), L.current && L.current !== a && L.current.classList.remove("calendar-event-focused"), a.scrollIntoView({
|
|
585
|
+
behavior: ae ? "auto" : "smooth",
|
|
582
586
|
block: "center"
|
|
583
|
-
}), a.classList.add("calendar-event-focused"),
|
|
587
|
+
}), a.classList.add("calendar-event-focused"), L.current = a, w.current) {
|
|
584
588
|
const c = a.getAttribute("aria-label") ?? t, b = y ? "•••" : c;
|
|
585
|
-
|
|
589
|
+
w.current.textContent = m("calendar.focusedEvent", {
|
|
586
590
|
title: b
|
|
587
591
|
});
|
|
588
592
|
}
|
|
589
593
|
I.current = setTimeout(() => {
|
|
590
|
-
a.classList.remove("calendar-event-focused"),
|
|
594
|
+
a.classList.remove("calendar-event-focused"), L.current === a && (L.current = null), I.current = null;
|
|
591
595
|
}, 3e3);
|
|
592
596
|
}
|
|
593
597
|
}
|
|
594
598
|
};
|
|
595
|
-
}, [
|
|
596
|
-
|
|
599
|
+
}, [ae, y, m, V]);
|
|
600
|
+
er(pt, () => fe, [fe]), ur(br, fe, n), v(
|
|
597
601
|
() => () => {
|
|
598
602
|
I.current && (clearTimeout(I.current), I.current = null);
|
|
599
603
|
},
|
|
600
604
|
[]
|
|
601
605
|
);
|
|
602
|
-
const
|
|
606
|
+
const Oe = p(!0);
|
|
603
607
|
v(() => {
|
|
604
|
-
if (
|
|
605
|
-
|
|
608
|
+
if (Oe.current) {
|
|
609
|
+
Oe.current = !1;
|
|
606
610
|
return;
|
|
607
611
|
}
|
|
608
|
-
|
|
612
|
+
w.current && (w.current.textContent = m(y ? "calendar.privacyModeOn" : "calendar.privacyModeOff"));
|
|
609
613
|
}, [y, m]);
|
|
610
|
-
const
|
|
614
|
+
const Tt = u(
|
|
611
615
|
() => s.map((e) => ({
|
|
612
616
|
id: e.id,
|
|
613
617
|
title: e.title,
|
|
@@ -630,8 +634,13 @@ const Fe = Le(
|
|
|
630
634
|
IS how they pick the slot, so it stays editable even on a
|
|
631
635
|
read-only calendar. The consumer's own `editable` still wins. */
|
|
632
636
|
...e.isDraft ? { editable: !0 } : {},
|
|
633
|
-
|
|
637
|
+
/* Scheduler separately falls back to the global editable option
|
|
638
|
+
for resource moves. A pinned event must refuse those too. */
|
|
639
|
+
...e.editable !== void 0 ? { editable: e.editable, resourceEditable: e.editable } : {},
|
|
634
640
|
...e.startEditable !== void 0 ? { startEditable: e.startEditable } : {},
|
|
641
|
+
/* Pending details override every host editability flag. Scheduler
|
|
642
|
+
reads resource editability separately from time dragging. */
|
|
643
|
+
...e.detailsPending ? { editable: !1, startEditable: !1, resourceEditable: !1 } : {},
|
|
635
644
|
extendedProps: {
|
|
636
645
|
status: e.status,
|
|
637
646
|
resourceId: e.resourceId,
|
|
@@ -656,29 +665,30 @@ const Fe = Le(
|
|
|
656
665
|
isInternal: e.isInternal ?? !1,
|
|
657
666
|
isTask: e.isTask ?? !1,
|
|
658
667
|
isDraft: e.isDraft ?? !1,
|
|
668
|
+
detailsPending: e.detailsPending ?? !1,
|
|
659
669
|
patientId: e.patientId,
|
|
660
670
|
operatorId: e.operatorId
|
|
661
671
|
}
|
|
662
672
|
})),
|
|
663
673
|
[s]
|
|
664
|
-
),
|
|
674
|
+
), Dt = u(
|
|
665
675
|
() => ({
|
|
666
676
|
year: "numeric",
|
|
667
677
|
month: "long"
|
|
668
678
|
}),
|
|
669
679
|
[]
|
|
670
|
-
),
|
|
680
|
+
), xt = u(
|
|
671
681
|
() => ({
|
|
672
682
|
weekday: "short"
|
|
673
683
|
}),
|
|
674
684
|
[]
|
|
675
|
-
),
|
|
685
|
+
), Ct = u(
|
|
676
686
|
() => ({
|
|
677
687
|
hour: "numeric",
|
|
678
688
|
minute: "2-digit"
|
|
679
689
|
}),
|
|
680
690
|
[]
|
|
681
|
-
),
|
|
691
|
+
), wt = u(
|
|
682
692
|
() => ({
|
|
683
693
|
hour: "2-digit",
|
|
684
694
|
minute: "2-digit",
|
|
@@ -687,72 +697,78 @@ const Fe = Le(
|
|
|
687
697
|
hour12: !1
|
|
688
698
|
}),
|
|
689
699
|
[]
|
|
690
|
-
),
|
|
700
|
+
), E = u(
|
|
701
|
+
() => new Set(Re ?? []),
|
|
702
|
+
[Re]
|
|
703
|
+
), pe = p(E);
|
|
704
|
+
pe.current = E;
|
|
705
|
+
const ve = p(!1), At = h(
|
|
691
706
|
(e) => {
|
|
692
|
-
const t = new Intl.DateTimeFormat(
|
|
707
|
+
const t = new Intl.DateTimeFormat(R, {
|
|
693
708
|
weekday: "short"
|
|
694
709
|
}).format(e.date);
|
|
695
710
|
if (e.view.type === "dayGridMonth" || e.view.type.startsWith("list"))
|
|
696
711
|
return t;
|
|
697
|
-
const r = new Intl.DateTimeFormat(
|
|
712
|
+
const r = new Intl.DateTimeFormat(R, {
|
|
698
713
|
day: "numeric"
|
|
699
714
|
}).format(e.date);
|
|
700
|
-
return /* @__PURE__ */
|
|
701
|
-
/* @__PURE__ */
|
|
702
|
-
/* @__PURE__ */
|
|
715
|
+
return /* @__PURE__ */ S("span", { className: "ds:flex ds:flex-col ds:items-center ds:gap-[var(--spacing-2xs)] ds:py-[var(--spacing-2xs)]", children: [
|
|
716
|
+
/* @__PURE__ */ d("span", { className: "type-eyebrow ds:text-[color:var(--muted-foreground)]", children: t }),
|
|
717
|
+
/* @__PURE__ */ d(
|
|
703
718
|
"span",
|
|
704
719
|
{
|
|
705
720
|
className: e.isToday ? "ds:flex ds:size-7 ds:items-center ds:justify-center ds:rounded-full ds:bg-[var(--primary)] ds:text-[length:var(--font-size-sm)] ds:font-[var(--font-weight-semibold)] ds:leading-none ds:text-[color:var(--primary-foreground)]" : "ds:text-[length:var(--font-size-sm)] ds:font-[var(--font-weight-semibold)] ds:leading-none",
|
|
706
721
|
children: r
|
|
707
722
|
}
|
|
708
|
-
)
|
|
723
|
+
),
|
|
724
|
+
E.has(F(e.date)) ? /* @__PURE__ */ d(yr, { children: m("calendar.loadingDay") }) : null
|
|
709
725
|
] });
|
|
710
726
|
},
|
|
711
|
-
[
|
|
712
|
-
),
|
|
713
|
-
() => typeof
|
|
714
|
-
[
|
|
715
|
-
),
|
|
716
|
-
() =>
|
|
717
|
-
[
|
|
718
|
-
),
|
|
719
|
-
if (
|
|
720
|
-
return
|
|
721
|
-
}, [
|
|
722
|
-
() =>
|
|
723
|
-
[o,
|
|
724
|
-
),
|
|
725
|
-
|
|
726
|
-
const
|
|
727
|
+
[R, E, m]
|
|
728
|
+
), ze = u(
|
|
729
|
+
() => typeof q == "number" ? { minutes: q } : q,
|
|
730
|
+
[q]
|
|
731
|
+
), he = u(
|
|
732
|
+
() => M ? M.split(/\s+/).filter(Boolean) : void 0,
|
|
733
|
+
[M]
|
|
734
|
+
), kt = u(() => {
|
|
735
|
+
if (H !== void 0)
|
|
736
|
+
return H === "chairs" ? m("calendar.resourceLabel.chairs") : H === "operators" ? m("calendar.resourceLabel.operators") : H;
|
|
737
|
+
}, [H, m]), se = u(
|
|
738
|
+
() => Sr(o, ce),
|
|
739
|
+
[o, ce]
|
|
740
|
+
), z = p(se);
|
|
741
|
+
z.current = se;
|
|
742
|
+
const ge = p(!1), It = h(
|
|
727
743
|
(e) => {
|
|
728
|
-
const t =
|
|
729
|
-
if (!
|
|
730
|
-
return
|
|
731
|
-
const
|
|
732
|
-
return
|
|
733
|
-
`${
|
|
734
|
-
) ? [
|
|
744
|
+
const t = E.has(F(e.date)) ? [Ir] : [], r = z.current;
|
|
745
|
+
if (!r.active || !e.view.type.startsWith("resourceTimeGrid"))
|
|
746
|
+
return t;
|
|
747
|
+
const i = e.resource;
|
|
748
|
+
return i != null && i.id && r.hiddenCells.has(
|
|
749
|
+
`${i.id}:${F(e.date)}`
|
|
750
|
+
) ? [...t, De] : t;
|
|
735
751
|
},
|
|
736
|
-
[]
|
|
737
|
-
),
|
|
752
|
+
[E]
|
|
753
|
+
), St = h(
|
|
738
754
|
(e) => {
|
|
739
|
-
const t =
|
|
755
|
+
const t = z.current;
|
|
740
756
|
if (!t.active || !e.view.type.startsWith("resourceTimeGrid"))
|
|
741
757
|
return [];
|
|
742
758
|
const r = e.date ?? e.view.currentStart;
|
|
743
759
|
return t.hiddenCells.has(
|
|
744
|
-
`${e.resource.id}:${
|
|
745
|
-
) ? [
|
|
760
|
+
`${e.resource.id}:${F(r)}`
|
|
761
|
+
) ? [De] : [];
|
|
746
762
|
},
|
|
747
763
|
[]
|
|
748
|
-
),
|
|
764
|
+
), Rt = h(
|
|
749
765
|
(e) => {
|
|
750
|
-
const t =
|
|
751
|
-
return !t.active || !e.view.type.startsWith("resourceTimeGrid") ? [] : (t.hiddenCountByDate.get(
|
|
766
|
+
const t = z.current;
|
|
767
|
+
return !t.active || !e.view.type.startsWith("resourceTimeGrid") ? [] : (t.hiddenCountByDate.get(F(e.date)) ?? 0) >= t.resourceCount ? [De] : [];
|
|
752
768
|
},
|
|
753
769
|
[]
|
|
754
|
-
),
|
|
755
|
-
const t =
|
|
770
|
+
), Et = h((e) => {
|
|
771
|
+
const t = z.current;
|
|
756
772
|
if (!t.active || !e.view.type.startsWith("resourceTimeGrid"))
|
|
757
773
|
return;
|
|
758
774
|
const r = e.el;
|
|
@@ -760,23 +776,33 @@ const Fe = Le(
|
|
|
760
776
|
const i = r.getAttribute("data-date");
|
|
761
777
|
if (!i) return;
|
|
762
778
|
const a = t.hiddenCountByDate.get(i) ?? 0, c = Math.max(1, t.resourceCount - a);
|
|
763
|
-
r.colSpan !== c && (r.colSpan = c,
|
|
764
|
-
}, []),
|
|
765
|
-
const e =
|
|
766
|
-
if (!e || !
|
|
767
|
-
const t =
|
|
768
|
-
!t.active && !
|
|
779
|
+
r.colSpan !== c && (r.colSpan = c, ge.current = !0);
|
|
780
|
+
}, []), $ = h(() => {
|
|
781
|
+
const e = k.current;
|
|
782
|
+
if (!e || !Le.current.startsWith("resourceTimeGrid")) return;
|
|
783
|
+
const t = z.current;
|
|
784
|
+
!t.active && !ge.current || (e.querySelectorAll(
|
|
769
785
|
"th.fc-col-header-cell.fc-day[data-date]"
|
|
770
786
|
).forEach((r) => {
|
|
771
787
|
const i = r.getAttribute("data-date");
|
|
772
788
|
if (!i) return;
|
|
773
789
|
const a = t.active ? t.hiddenCountByDate.get(i) ?? 0 : 0, c = Math.max(1, t.resourceCount - a);
|
|
774
790
|
r.colSpan !== c && (r.colSpan = c);
|
|
775
|
-
}),
|
|
791
|
+
}), ge.current = t.active);
|
|
792
|
+
}, []), K = h(() => {
|
|
793
|
+
const e = k.current;
|
|
794
|
+
if (!e) return;
|
|
795
|
+
const t = pe.current;
|
|
796
|
+
t.size === 0 && !ve.current || (e.querySelectorAll("td.fc-day[data-date]").forEach((r) => {
|
|
797
|
+
const i = r.getAttribute("data-date");
|
|
798
|
+
i && t.has(i) ? r.setAttribute("aria-busy", "true") : r.removeAttribute("aria-busy");
|
|
799
|
+
}), ve.current = t.size > 0);
|
|
800
|
+
}, []), Pt = h((e) => {
|
|
801
|
+
pe.current.has(F(e.date)) && (e.el.setAttribute("aria-busy", "true"), ve.current = !0);
|
|
776
802
|
}, []);
|
|
777
803
|
v(() => {
|
|
778
|
-
}, [s,
|
|
779
|
-
const
|
|
804
|
+
}, [s, se]);
|
|
805
|
+
const P = (e) => {
|
|
780
806
|
const t = e.extendedProps ?? {};
|
|
781
807
|
return {
|
|
782
808
|
id: e.id,
|
|
@@ -800,102 +826,104 @@ const Fe = Le(
|
|
|
800
826
|
isRecurrenceParent: t.isRecurrenceParent,
|
|
801
827
|
isInternal: t.isInternal,
|
|
802
828
|
isTask: t.isTask,
|
|
829
|
+
detailsPending: t.detailsPending,
|
|
803
830
|
editable: t.editable,
|
|
804
831
|
startEditable: t.startEditable,
|
|
805
832
|
patientId: t.patientId,
|
|
806
833
|
operatorId: t.operatorId
|
|
807
834
|
};
|
|
808
|
-
},
|
|
809
|
-
if (
|
|
835
|
+
}, Nt = u(() => {
|
|
836
|
+
if (g)
|
|
810
837
|
return (e) => {
|
|
811
838
|
var r, i;
|
|
812
839
|
if (!e.event.start) return;
|
|
813
840
|
const t = e.oldEvent.start;
|
|
814
|
-
if (t && (
|
|
815
|
-
event:
|
|
841
|
+
if (t && (g({
|
|
842
|
+
event: P(e.event),
|
|
816
843
|
oldStart: t,
|
|
817
844
|
newStart: e.event.start,
|
|
818
845
|
oldResourceId: (r = e.oldResource) == null ? void 0 : r.id,
|
|
819
846
|
newResourceId: (i = e.newResource) == null ? void 0 : i.id,
|
|
820
847
|
revert: e.revert
|
|
821
|
-
}),
|
|
848
|
+
}), w.current)) {
|
|
822
849
|
const a = e.event.extendedProps ?? {}, c = y ? a.privacyModeTitle ?? "•••" : e.event.title;
|
|
823
|
-
|
|
850
|
+
w.current.textContent = m("calendar.eventMoved", {
|
|
824
851
|
title: c
|
|
825
852
|
});
|
|
826
853
|
}
|
|
827
854
|
};
|
|
828
|
-
}, [
|
|
829
|
-
if (
|
|
855
|
+
}, [g, y, m]), Gt = u(() => {
|
|
856
|
+
if (A)
|
|
830
857
|
return (e) => {
|
|
831
858
|
if (!e.event.end) return;
|
|
832
859
|
const t = e.oldEvent.end;
|
|
833
860
|
if (!t)
|
|
834
861
|
return;
|
|
835
862
|
const r = e.event.end, i = e.event.start ?? e.oldEvent.start ?? t;
|
|
836
|
-
if (
|
|
837
|
-
event:
|
|
863
|
+
if (A({
|
|
864
|
+
event: P(e.event),
|
|
838
865
|
oldEnd: t,
|
|
839
866
|
newEnd: r,
|
|
840
867
|
revert: e.revert
|
|
841
|
-
}),
|
|
868
|
+
}), w.current) {
|
|
842
869
|
const a = Math.round(
|
|
843
870
|
(r.getTime() - i.getTime()) / 6e4
|
|
844
871
|
), c = e.event.extendedProps ?? {}, b = y ? c.privacyModeTitle ?? "•••" : e.event.title;
|
|
845
|
-
|
|
872
|
+
w.current.textContent = m("calendar.eventResized", {
|
|
846
873
|
title: b,
|
|
847
874
|
duration: a
|
|
848
875
|
});
|
|
849
876
|
}
|
|
850
877
|
};
|
|
851
|
-
}, [
|
|
852
|
-
if (
|
|
878
|
+
}, [A, y, m]), Mt = u(() => {
|
|
879
|
+
if (D)
|
|
853
880
|
return (e) => {
|
|
854
|
-
e.event.start && (
|
|
881
|
+
e.event.start && (Ge.current = e.jsEvent, D(P(e.event), {
|
|
855
882
|
el: e.el,
|
|
856
883
|
jsEvent: e.jsEvent
|
|
857
884
|
}));
|
|
858
885
|
};
|
|
859
|
-
}, [
|
|
860
|
-
if (
|
|
886
|
+
}, [D]), Bt = u(() => {
|
|
887
|
+
if (j)
|
|
861
888
|
return (e) => {
|
|
862
|
-
|
|
863
|
-
|
|
889
|
+
if (!e.event.start || e.event.display === "background") return;
|
|
890
|
+
const t = e.event.extendedProps ?? {};
|
|
891
|
+
t.isDraft || t.detailsPending || j(P(e.event), {
|
|
864
892
|
el: e.el,
|
|
865
893
|
jsEvent: e.jsEvent
|
|
866
|
-
})
|
|
894
|
+
});
|
|
867
895
|
};
|
|
868
|
-
}, [
|
|
869
|
-
if (
|
|
896
|
+
}, [j]), Lt = u(() => {
|
|
897
|
+
if (_)
|
|
870
898
|
return (e) => {
|
|
871
|
-
e.event.start && e.event.display !== "background" &&
|
|
899
|
+
e.event.start && e.event.display !== "background" && _(P(e.event));
|
|
872
900
|
};
|
|
873
|
-
}, [
|
|
874
|
-
if (
|
|
901
|
+
}, [_]), Ot = u(() => {
|
|
902
|
+
if (N)
|
|
875
903
|
return (e) => {
|
|
876
904
|
var t;
|
|
877
|
-
|
|
905
|
+
N({
|
|
878
906
|
start: e.start,
|
|
879
907
|
end: e.end,
|
|
880
908
|
allDay: e.allDay,
|
|
881
909
|
resourceId: (t = e.resource) == null ? void 0 : t.id
|
|
882
910
|
});
|
|
883
911
|
};
|
|
884
|
-
}, [
|
|
885
|
-
if (
|
|
912
|
+
}, [N]), zt = u(() => {
|
|
913
|
+
if (x)
|
|
886
914
|
return (e) => {
|
|
887
915
|
var r;
|
|
888
|
-
const t =
|
|
889
|
-
t !== 0 &&
|
|
916
|
+
const t = ie.current.id;
|
|
917
|
+
t !== 0 && Be.current === t || (t !== 0 && (Me.current = t), x({
|
|
890
918
|
date: e.date,
|
|
891
919
|
allDay: e.allDay,
|
|
892
920
|
resourceId: (r = e.resource) == null ? void 0 : r.id
|
|
893
921
|
}));
|
|
894
922
|
};
|
|
895
|
-
}, [
|
|
923
|
+
}, [x]), Ft = h(
|
|
896
924
|
(e) => {
|
|
897
|
-
|
|
898
|
-
view:
|
|
925
|
+
yt(e.view.title), bt(e.view.type), G == null || G({
|
|
926
|
+
view: l,
|
|
899
927
|
internalView: e.view.type,
|
|
900
928
|
start: e.start,
|
|
901
929
|
end: e.end,
|
|
@@ -903,77 +931,77 @@ const Fe = Le(
|
|
|
903
931
|
tick, which fires before fcRef is guaranteed to be assigned. */
|
|
904
932
|
currentDate: e.view.calendar.getDate(),
|
|
905
933
|
title: e.view.title
|
|
906
|
-
}),
|
|
934
|
+
}), $(), K();
|
|
907
935
|
},
|
|
908
|
-
[
|
|
909
|
-
),
|
|
936
|
+
[G, l, $, K]
|
|
937
|
+
), Wt = u(() => kr(R), [R]), jt = u(
|
|
910
938
|
() => [
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
939
|
+
rr,
|
|
940
|
+
nr,
|
|
941
|
+
ir,
|
|
942
|
+
lr,
|
|
943
|
+
ar,
|
|
944
|
+
sr,
|
|
945
|
+
or,
|
|
946
|
+
dr
|
|
919
947
|
],
|
|
920
948
|
[]
|
|
921
|
-
),
|
|
922
|
-
() =>
|
|
923
|
-
[
|
|
949
|
+
), _t = u(
|
|
950
|
+
() => be(l, V),
|
|
951
|
+
[l, V]
|
|
924
952
|
);
|
|
925
953
|
v(() => {
|
|
926
|
-
const e =
|
|
954
|
+
const e = k.current;
|
|
927
955
|
if (!e) return;
|
|
928
956
|
const t = (r) => {
|
|
929
|
-
|
|
930
|
-
id:
|
|
957
|
+
ie.current = {
|
|
958
|
+
id: ie.current.id + 1,
|
|
931
959
|
x: r.clientX,
|
|
932
960
|
y: r.clientY
|
|
933
961
|
};
|
|
934
962
|
};
|
|
935
963
|
return e.addEventListener("pointerdown", t, !0), () => e.removeEventListener("pointerdown", t, !0);
|
|
936
964
|
}, []), v(() => {
|
|
937
|
-
const e =
|
|
938
|
-
if (!e || !
|
|
965
|
+
const e = k.current;
|
|
966
|
+
if (!e || !O.startsWith("resourceTimeGrid") || !x && !D) return;
|
|
939
967
|
const t = (r) => {
|
|
940
|
-
var
|
|
941
|
-
if (r ===
|
|
968
|
+
var X;
|
|
969
|
+
if (r === Ge.current) return;
|
|
942
970
|
const i = r.target;
|
|
943
971
|
if (!(i instanceof Element) || i.closest(
|
|
944
972
|
".fc-more-link, a[data-navlink], .fc-popover, .fc-event-mirror"
|
|
945
973
|
))
|
|
946
974
|
return;
|
|
947
|
-
const a =
|
|
948
|
-
if (a.id !== 0 && (Math.abs(r.clientX - a.x) >
|
|
975
|
+
const a = ie.current;
|
|
976
|
+
if (a.id !== 0 && (Math.abs(r.clientX - a.x) > Te || Math.abs(r.clientY - a.y) > Te))
|
|
949
977
|
return;
|
|
950
978
|
const c = i.closest("td.fc-daygrid-day[data-date]");
|
|
951
979
|
if (!c) return;
|
|
952
980
|
const b = i.closest("[data-event-id]");
|
|
953
981
|
if (b) {
|
|
954
|
-
if (!
|
|
955
|
-
const
|
|
956
|
-
if (!
|
|
957
|
-
const
|
|
958
|
-
if (
|
|
959
|
-
const
|
|
960
|
-
|
|
982
|
+
if (!D) return;
|
|
983
|
+
const J = b.getAttribute("data-event-id"), ye = (X = C.current) == null ? void 0 : X.getApi(), oe = J ? ye == null ? void 0 : ye.getEventById(J) : null;
|
|
984
|
+
if (!oe || !oe.start) return;
|
|
985
|
+
const We = oe.extendedProps ?? {};
|
|
986
|
+
if (We.isInternal || We.isDraft) return;
|
|
987
|
+
const Qt = i.closest(".fc-event") ?? b;
|
|
988
|
+
D(P(oe), { el: Qt, jsEvent: r });
|
|
961
989
|
return;
|
|
962
990
|
}
|
|
963
|
-
if (!
|
|
991
|
+
if (!x || a.id !== 0 && Me.current === a.id)
|
|
964
992
|
return;
|
|
965
|
-
const
|
|
966
|
-
if (!
|
|
967
|
-
const
|
|
968
|
-
Number.isNaN(
|
|
969
|
-
date:
|
|
993
|
+
const U = c.getAttribute("data-date");
|
|
994
|
+
if (!U) return;
|
|
995
|
+
const Y = /* @__PURE__ */ new Date(`${U}T00:00:00`);
|
|
996
|
+
Number.isNaN(Y.getTime()) || (a.id !== 0 && (Be.current = a.id), x({
|
|
997
|
+
date: Y,
|
|
970
998
|
allDay: !0,
|
|
971
999
|
resourceId: c.getAttribute("data-resource-id") ?? void 0
|
|
972
1000
|
}));
|
|
973
1001
|
};
|
|
974
1002
|
return e.addEventListener("click", t), () => e.removeEventListener("click", t);
|
|
975
|
-
}, [
|
|
976
|
-
const
|
|
1003
|
+
}, [O, x, D]);
|
|
1004
|
+
const Vt = h(
|
|
977
1005
|
(e) => {
|
|
978
1006
|
const t = e.resource.extendedProps, r = e.resource.title, i = t.color, a = t.shortTitleTextColor, c = i || a ? {
|
|
979
1007
|
...i ? { "--resource-color": i } : {},
|
|
@@ -981,15 +1009,15 @@ const Fe = Le(
|
|
|
981
1009
|
"--resource-initials-text-color": a
|
|
982
1010
|
} : {}
|
|
983
1011
|
} : void 0;
|
|
984
|
-
return
|
|
985
|
-
|
|
1012
|
+
return Pe === "chip" && !ue ? /* @__PURE__ */ d(
|
|
1013
|
+
hr,
|
|
986
1014
|
{
|
|
987
1015
|
label: r,
|
|
988
1016
|
color: i,
|
|
989
|
-
orientation:
|
|
1017
|
+
orientation: me ? "vertical" : "horizontal"
|
|
990
1018
|
}
|
|
991
|
-
) :
|
|
992
|
-
/* @__PURE__ */
|
|
1019
|
+
) : ue ? /* @__PURE__ */ d(gr, { label: r, children: /* @__PURE__ */ d(pr, { size: "sm", name: r, src: t.avatarSrc }) }) : i ? (i && a && mr(i, a, `resource ${e.resource.id}`), /* @__PURE__ */ S("span", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
1020
|
+
/* @__PURE__ */ d(
|
|
993
1021
|
"span",
|
|
994
1022
|
{
|
|
995
1023
|
className: "resource-dot ds:[background-color:var(--resource-color)]",
|
|
@@ -997,11 +1025,11 @@ const Fe = Le(
|
|
|
997
1025
|
"aria-hidden": "true"
|
|
998
1026
|
}
|
|
999
1027
|
),
|
|
1000
|
-
/* @__PURE__ */
|
|
1001
|
-
] })) : /* @__PURE__ */
|
|
1028
|
+
/* @__PURE__ */ d("span", { className: "ds:truncate ds:text-start", children: r })
|
|
1029
|
+
] })) : /* @__PURE__ */ d("span", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: /* @__PURE__ */ d("span", { className: "ds:truncate ds:text-start", children: r }) });
|
|
1002
1030
|
},
|
|
1003
|
-
[
|
|
1004
|
-
),
|
|
1031
|
+
[ue, Pe, me]
|
|
1032
|
+
), Fe = u(
|
|
1005
1033
|
() => o == null ? void 0 : o.map((e) => ({
|
|
1006
1034
|
id: e.id,
|
|
1007
1035
|
title: e.title,
|
|
@@ -1017,30 +1045,34 @@ const Fe = Le(
|
|
|
1017
1045
|
[o]
|
|
1018
1046
|
);
|
|
1019
1047
|
v(() => {
|
|
1020
|
-
|
|
1021
|
-
const e = requestAnimationFrame(
|
|
1048
|
+
$();
|
|
1049
|
+
const e = requestAnimationFrame($);
|
|
1022
1050
|
return () => cancelAnimationFrame(e);
|
|
1023
|
-
}, [
|
|
1024
|
-
|
|
1051
|
+
}, [se, Fe, O, $]), v(() => {
|
|
1052
|
+
K();
|
|
1053
|
+
const e = requestAnimationFrame(K);
|
|
1054
|
+
return () => cancelAnimationFrame(e);
|
|
1055
|
+
}, [E, O, K]);
|
|
1056
|
+
const Ht = h(() => {
|
|
1025
1057
|
var e, t;
|
|
1026
|
-
(t = (e =
|
|
1027
|
-
}, []),
|
|
1058
|
+
(t = (e = C.current) == null ? void 0 : e.getApi()) == null || t.today();
|
|
1059
|
+
}, []), qt = h(() => {
|
|
1028
1060
|
var e, t;
|
|
1029
|
-
(t = (e =
|
|
1030
|
-
}, []),
|
|
1061
|
+
(t = (e = C.current) == null ? void 0 : e.getApi()) == null || t.prev();
|
|
1062
|
+
}, []), $t = h(() => {
|
|
1031
1063
|
var e, t;
|
|
1032
|
-
(t = (e =
|
|
1033
|
-
}, []),
|
|
1064
|
+
(t = (e = C.current) == null ? void 0 : e.getApi()) == null || t.next();
|
|
1065
|
+
}, []), Kt = u(
|
|
1034
1066
|
() => s.some((e) => e.isDraft),
|
|
1035
1067
|
[s]
|
|
1036
|
-
),
|
|
1068
|
+
), Ut = [
|
|
1037
1069
|
"fc-theme-alfadocs",
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1070
|
+
ft ? "calendar-zebra-rows" : null,
|
|
1071
|
+
me ? "calendar-vertical-resource-labels" : null,
|
|
1072
|
+
ut ? "calendar-availability-mode" : null,
|
|
1041
1073
|
/* Composing: derived from the events themselves rather than a prop,
|
|
1042
1074
|
so the dim can never disagree with what is on the grid. */
|
|
1043
|
-
|
|
1075
|
+
Kt ? "calendar-composing-mode" : null,
|
|
1044
1076
|
"ds:bg-background ds:text-foreground",
|
|
1045
1077
|
/* The radius has to CLIP, not just round the box. FullCalendar draws the
|
|
1046
1078
|
grid as a table with its own border, and that border squares off the
|
|
@@ -1050,13 +1082,18 @@ const Fe = Le(
|
|
|
1050
1082
|
`clip`, not `hidden`: `hidden` makes this a scroll container, which
|
|
1051
1083
|
breaks the grid's own sticky header row
|
|
1052
1084
|
(`.fc-scrollgrid-section-sticky`). `clip` cuts the corners without
|
|
1053
|
-
creating one.
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1085
|
+
creating one.
|
|
1086
|
+
|
|
1087
|
+
The frame is this wrapper's border, not the table's: a clipped
|
|
1088
|
+
straight border still read as a square frame inside the rounded
|
|
1089
|
+
box, so the bridge zeroes FullCalendar's outer borders and this
|
|
1090
|
+
border follows the radius instead. */
|
|
1091
|
+
"ds:rounded-[var(--radius-md)] ds:border ds:border-[var(--border)] ds:overflow-clip",
|
|
1092
|
+
Xe
|
|
1093
|
+
].filter(Boolean).join(" "), Yt = re || ne ? {
|
|
1094
|
+
...re ? { "--calendar-mode-bg": re } : {},
|
|
1095
|
+
...ne ? { "--calendar-mode-fg": ne } : {}
|
|
1096
|
+
} : void 0, Xt = te !== "default" ? Ze ?? m(Ar[te]) : "", Jt = [
|
|
1060
1097
|
"ds:sticky ds:top-0 ds:z-10",
|
|
1061
1098
|
"ds:flex ds:items-center ds:gap-[var(--spacing-sm)]",
|
|
1062
1099
|
"ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
|
|
@@ -1064,9 +1101,9 @@ const Fe = Le(
|
|
|
1064
1101
|
/* Caller-supplied colours flow through CSS custom properties set
|
|
1065
1102
|
in `modeBannerStyle`; fallback tokens apply when the caller
|
|
1066
1103
|
doesn't supply a hex. */
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
].filter(Boolean).join(" "),
|
|
1104
|
+
re ? "ds:[background-color:var(--calendar-mode-bg)]" : "ds:bg-[var(--muted)]",
|
|
1105
|
+
ne ? "ds:[color:var(--calendar-mode-fg)]" : "ds:text-[var(--muted-foreground)]"
|
|
1106
|
+
].filter(Boolean).join(" "), Zt = [
|
|
1070
1107
|
"ds:inline-flex ds:items-center ds:justify-center",
|
|
1071
1108
|
"ds:min-h-[var(--min-target-size)]",
|
|
1072
1109
|
"ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
|
|
@@ -1081,143 +1118,161 @@ const Fe = Le(
|
|
|
1081
1118
|
"ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
1082
1119
|
"ds:motion-reduce:transition-none"
|
|
1083
1120
|
].join(" ");
|
|
1084
|
-
return /* @__PURE__ */
|
|
1121
|
+
return /* @__PURE__ */ S(
|
|
1085
1122
|
"div",
|
|
1086
1123
|
{
|
|
1087
|
-
ref:
|
|
1088
|
-
className:
|
|
1124
|
+
ref: k,
|
|
1125
|
+
className: Ut,
|
|
1089
1126
|
role: "region",
|
|
1090
1127
|
"aria-label": m("calendar.ariaLabel"),
|
|
1091
1128
|
"data-component": "calendar",
|
|
1092
1129
|
"data-component-id": n,
|
|
1093
|
-
"data-mode":
|
|
1130
|
+
"data-mode": te,
|
|
1094
1131
|
children: [
|
|
1095
|
-
/* @__PURE__ */
|
|
1132
|
+
/* @__PURE__ */ d(
|
|
1096
1133
|
"div",
|
|
1097
1134
|
{
|
|
1098
|
-
ref:
|
|
1135
|
+
ref: w,
|
|
1099
1136
|
"aria-live": "polite",
|
|
1100
1137
|
"aria-atomic": "true",
|
|
1101
|
-
className: ["ds:sr-only",
|
|
1138
|
+
className: ["ds:sr-only", M].filter(Boolean).join(" ")
|
|
1102
1139
|
}
|
|
1103
1140
|
),
|
|
1104
|
-
|
|
1105
|
-
|
|
1141
|
+
Qe,
|
|
1142
|
+
te !== "default" ? /* @__PURE__ */ S(
|
|
1106
1143
|
"div",
|
|
1107
1144
|
{
|
|
1108
|
-
className:
|
|
1109
|
-
style:
|
|
1145
|
+
className: Jt,
|
|
1146
|
+
style: Yt,
|
|
1110
1147
|
role: "status",
|
|
1111
1148
|
children: [
|
|
1112
|
-
/* @__PURE__ */
|
|
1149
|
+
/* @__PURE__ */ d(
|
|
1113
1150
|
"span",
|
|
1114
1151
|
{
|
|
1115
|
-
className: ["ds:flex-1 ds:text-start",
|
|
1116
|
-
children:
|
|
1152
|
+
className: ["ds:flex-1 ds:text-start", M].filter(Boolean).join(" "),
|
|
1153
|
+
children: Xt
|
|
1117
1154
|
}
|
|
1118
1155
|
),
|
|
1119
|
-
|
|
1156
|
+
Ie ? /* @__PURE__ */ d(
|
|
1120
1157
|
"button",
|
|
1121
1158
|
{
|
|
1122
1159
|
type: "button",
|
|
1123
|
-
onClick:
|
|
1124
|
-
className:
|
|
1160
|
+
onClick: Ie,
|
|
1161
|
+
className: Zt,
|
|
1125
1162
|
children: m("calendar.modeBanner.cancel")
|
|
1126
1163
|
}
|
|
1127
1164
|
) : null
|
|
1128
1165
|
]
|
|
1129
1166
|
}
|
|
1130
1167
|
) : null,
|
|
1131
|
-
|
|
1132
|
-
|
|
1168
|
+
lt !== !1 ? /* @__PURE__ */ d(
|
|
1169
|
+
Ce,
|
|
1133
1170
|
{
|
|
1134
|
-
title:
|
|
1135
|
-
onToday:
|
|
1136
|
-
onPrev:
|
|
1137
|
-
onNext:
|
|
1138
|
-
end:
|
|
1139
|
-
maskClassName:
|
|
1171
|
+
title: gt,
|
|
1172
|
+
onToday: Ht,
|
|
1173
|
+
onPrev: qt,
|
|
1174
|
+
onNext: $t,
|
|
1175
|
+
end: ct,
|
|
1176
|
+
maskClassName: M
|
|
1140
1177
|
}
|
|
1141
1178
|
) : null,
|
|
1142
|
-
/* @__PURE__ */
|
|
1143
|
-
|
|
1179
|
+
/* @__PURE__ */ d(
|
|
1180
|
+
tr,
|
|
1144
1181
|
{
|
|
1145
|
-
ref:
|
|
1146
|
-
plugins:
|
|
1147
|
-
schedulerLicenseKey:
|
|
1148
|
-
initialView:
|
|
1149
|
-
views:
|
|
1182
|
+
ref: C,
|
|
1183
|
+
plugins: jt,
|
|
1184
|
+
schedulerLicenseKey: dt,
|
|
1185
|
+
initialView: _t,
|
|
1186
|
+
views: wr,
|
|
1150
1187
|
initialDate: f,
|
|
1151
|
-
locale:
|
|
1152
|
-
direction:
|
|
1153
|
-
firstDay:
|
|
1154
|
-
editable:
|
|
1155
|
-
eventDurationEditable:
|
|
1156
|
-
selectable:
|
|
1157
|
-
selectMirror:
|
|
1158
|
-
...
|
|
1159
|
-
droppable:
|
|
1160
|
-
dayMaxEvents:
|
|
1161
|
-
height:
|
|
1188
|
+
locale: R,
|
|
1189
|
+
direction: vt,
|
|
1190
|
+
firstDay: Wt,
|
|
1191
|
+
editable: ee,
|
|
1192
|
+
eventDurationEditable: ee === !1 ? !1 : Ke ?? ee,
|
|
1193
|
+
selectable: Ae,
|
|
1194
|
+
selectMirror: Ue ?? Ae,
|
|
1195
|
+
...ke === void 0 ? {} : { unselectAuto: ke },
|
|
1196
|
+
droppable: ee,
|
|
1197
|
+
dayMaxEvents: ot,
|
|
1198
|
+
height: Ye,
|
|
1162
1199
|
expandRows: !0,
|
|
1163
|
-
events:
|
|
1164
|
-
resources:
|
|
1200
|
+
events: Tt,
|
|
1201
|
+
resources: Fe,
|
|
1165
1202
|
resourceOrder: "sequenceNumber",
|
|
1166
|
-
resourceLabelContent:
|
|
1167
|
-
resourceAreaWidth:
|
|
1168
|
-
resourceAreaHeaderContent:
|
|
1169
|
-
dayCellClassNames:
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1203
|
+
resourceLabelContent: Vt,
|
|
1204
|
+
resourceAreaWidth: mt,
|
|
1205
|
+
resourceAreaHeaderContent: kt,
|
|
1206
|
+
dayCellClassNames: It,
|
|
1207
|
+
dayCellDidMount: Pt,
|
|
1208
|
+
dayHeaderClassNames: Rt,
|
|
1209
|
+
resourceLabelClassNames: St,
|
|
1210
|
+
dayHeaderDidMount: Et,
|
|
1211
|
+
...he ? { slotLaneClassNames: he } : {},
|
|
1174
1212
|
eventClassNames: (e) => {
|
|
1175
1213
|
var t;
|
|
1176
1214
|
return [
|
|
1177
|
-
...
|
|
1178
|
-
...
|
|
1215
|
+
...he ?? [],
|
|
1216
|
+
...Ne && e.event.id === Ne ? ["calendar-event-selected"] : [],
|
|
1179
1217
|
...(t = e.event.extendedProps) != null && t.isDraft ? ["calendar-event-draft"] : []
|
|
1180
1218
|
];
|
|
1181
1219
|
},
|
|
1182
1220
|
headerToolbar: !1,
|
|
1183
1221
|
allDayText: m("calendar.allDay"),
|
|
1184
1222
|
noEventsText: m("calendar.noEvents"),
|
|
1185
|
-
titleFormat:
|
|
1186
|
-
dayHeaderFormat:
|
|
1187
|
-
dayHeaderContent:
|
|
1188
|
-
eventTimeFormat:
|
|
1189
|
-
slotLabelFormat:
|
|
1190
|
-
slotMinTime:
|
|
1191
|
-
slotMaxTime:
|
|
1192
|
-
slotDuration:
|
|
1193
|
-
...
|
|
1223
|
+
titleFormat: Dt,
|
|
1224
|
+
dayHeaderFormat: xt,
|
|
1225
|
+
dayHeaderContent: At,
|
|
1226
|
+
eventTimeFormat: Ct,
|
|
1227
|
+
slotLabelFormat: wt,
|
|
1228
|
+
slotMinTime: et ?? "00:00:00",
|
|
1229
|
+
slotMaxTime: tt ?? "24:00:00",
|
|
1230
|
+
slotDuration: rt ?? "00:30:00",
|
|
1231
|
+
...Ee ? { snapDuration: Ee } : {},
|
|
1194
1232
|
slotLabelInterval: "01:00:00",
|
|
1195
|
-
...
|
|
1196
|
-
hiddenDays:
|
|
1197
|
-
datesAboveResources:
|
|
1198
|
-
slotEventOverlap:
|
|
1199
|
-
stickyHeaderDates:
|
|
1200
|
-
nowIndicator:
|
|
1201
|
-
eventLongPressDelay:
|
|
1202
|
-
eventDragMinDistance:
|
|
1233
|
+
...ze !== void 0 ? { defaultTimedEventDuration: ze } : {},
|
|
1234
|
+
hiddenDays: Se,
|
|
1235
|
+
datesAboveResources: ce,
|
|
1236
|
+
slotEventOverlap: it,
|
|
1237
|
+
stickyHeaderDates: at,
|
|
1238
|
+
nowIndicator: st,
|
|
1239
|
+
eventLongPressDelay: ae ? 0 : 1e3,
|
|
1240
|
+
eventDragMinDistance: ae ? 0 : Te,
|
|
1203
1241
|
eventContent: (e) => {
|
|
1204
1242
|
var r;
|
|
1205
1243
|
const t = e.event.extendedProps ?? {};
|
|
1206
|
-
return t.isInternal ? e.event.title ? /* @__PURE__ */
|
|
1207
|
-
|
|
1244
|
+
return t.isInternal ? e.event.title && Q ? /* @__PURE__ */ S(
|
|
1245
|
+
vr,
|
|
1246
|
+
{
|
|
1247
|
+
intent: "ghost",
|
|
1248
|
+
"data-event-id": e.event.id,
|
|
1249
|
+
className: "calendar-bg-event-label ds:pointer-events-auto ds:h-full ds:w-full ds:[min-block-size:var(--min-target-size)] ds:[min-inline-size:var(--min-target-size)]",
|
|
1250
|
+
onClick: (i) => {
|
|
1251
|
+
i.stopPropagation(), Q(P(e.event), {
|
|
1252
|
+
el: i.currentTarget,
|
|
1253
|
+
jsEvent: i.nativeEvent
|
|
1254
|
+
});
|
|
1255
|
+
},
|
|
1256
|
+
children: [
|
|
1257
|
+
/* @__PURE__ */ d(je, { size: 12, "aria-hidden": "true" }),
|
|
1258
|
+
e.event.title
|
|
1259
|
+
]
|
|
1260
|
+
}
|
|
1261
|
+
) : e.event.title ? /* @__PURE__ */ S("span", { className: "calendar-bg-event-label", children: [
|
|
1262
|
+
/* @__PURE__ */ d(je, { size: 12, "aria-hidden": "true" }),
|
|
1208
1263
|
e.event.title
|
|
1209
|
-
] }) : !0 : /* @__PURE__ */
|
|
1210
|
-
|
|
1264
|
+
] }) : !0 : /* @__PURE__ */ d(
|
|
1265
|
+
fr,
|
|
1211
1266
|
{
|
|
1212
1267
|
eventId: e.event.id,
|
|
1213
1268
|
title: y ? t.privacyModeTitle ?? "•••" : e.event.title,
|
|
1214
1269
|
privacyMasked: y,
|
|
1215
1270
|
suffix: t.suffix,
|
|
1216
|
-
rangeText:
|
|
1217
|
-
showTime:
|
|
1271
|
+
rangeText: Er(e, R),
|
|
1272
|
+
showTime: nt,
|
|
1218
1273
|
allDay: e.event.allDay,
|
|
1219
1274
|
status: t.status,
|
|
1220
|
-
colorStyle:
|
|
1275
|
+
colorStyle: Je,
|
|
1221
1276
|
backgroundColor: t.backgroundColor,
|
|
1222
1277
|
textColor: t.textColor,
|
|
1223
1278
|
borderColor: t.borderColor,
|
|
@@ -1229,23 +1284,24 @@ const Fe = Le(
|
|
|
1229
1284
|
isRecurring: t.isRecurring,
|
|
1230
1285
|
isTask: t.isTask,
|
|
1231
1286
|
isDraft: t.isDraft,
|
|
1287
|
+
detailsPending: t.detailsPending,
|
|
1232
1288
|
resourceLabel: t.resourceId ? (r = (o ?? []).find((i) => i.id === t.resourceId)) == null ? void 0 : r.title : void 0
|
|
1233
1289
|
}
|
|
1234
1290
|
);
|
|
1235
1291
|
},
|
|
1236
|
-
eventClick:
|
|
1237
|
-
eventMouseEnter:
|
|
1238
|
-
eventMouseLeave:
|
|
1239
|
-
eventDrop:
|
|
1240
|
-
eventResize:
|
|
1241
|
-
eventDragStart:
|
|
1242
|
-
eventResizeStart:
|
|
1243
|
-
select:
|
|
1244
|
-
dateClick:
|
|
1245
|
-
datesSet:
|
|
1246
|
-
...
|
|
1292
|
+
eventClick: Mt,
|
|
1293
|
+
eventMouseEnter: Bt,
|
|
1294
|
+
eventMouseLeave: Lt,
|
|
1295
|
+
eventDrop: Nt,
|
|
1296
|
+
eventResize: Gt,
|
|
1297
|
+
eventDragStart: W,
|
|
1298
|
+
eventResizeStart: Z,
|
|
1299
|
+
select: Ot,
|
|
1300
|
+
dateClick: zt,
|
|
1301
|
+
datesSet: Ft,
|
|
1302
|
+
...we ? {
|
|
1247
1303
|
navLinks: !0,
|
|
1248
|
-
navLinkDayClick: (e, t) =>
|
|
1304
|
+
navLinkDayClick: (e, t) => we(e, t)
|
|
1249
1305
|
} : {}
|
|
1250
1306
|
}
|
|
1251
1307
|
)
|
|
@@ -1254,12 +1310,12 @@ const Fe = Le(
|
|
|
1254
1310
|
);
|
|
1255
1311
|
}
|
|
1256
1312
|
);
|
|
1257
|
-
|
|
1258
|
-
const
|
|
1259
|
-
|
|
1313
|
+
$e.displayName = "Calendar";
|
|
1314
|
+
const Gr = $e;
|
|
1315
|
+
Gr.Toolbar = Ce;
|
|
1260
1316
|
export {
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1317
|
+
Gr as C,
|
|
1318
|
+
br as c,
|
|
1319
|
+
be as r
|
|
1264
1320
|
};
|
|
1265
|
-
//# sourceMappingURL=calendar-
|
|
1321
|
+
//# sourceMappingURL=calendar-Dgvl5L4T.js.map
|