@alfadocs/ui-kit 1.113.0 → 1.115.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/{actions-cell-renderer-BVn3vDTg.js → actions-cell-renderer-bI27uXXC.js} +2 -2
- package/dist/_chunks/{ai-permission-notice-BkgcGmu8.js → ai-permission-notice-C-xR2_iS.js} +2 -2
- package/dist/_chunks/{alia-sidebar-CKkg3gc8.js → alia-sidebar-BBxbMRmX.js} +2 -2
- package/dist/_chunks/{anamnesis-card-BzuluoD1.js → anamnesis-card-Ddnrdfx3.js} +2 -2
- package/dist/_chunks/{anamnesis-summary-card-DdTRdNrQ.js → anamnesis-summary-card-S1H_AARG.js} +2 -2
- package/dist/_chunks/{anamnesis-summary-rows-DfDulR_c.js → anamnesis-summary-rows-BZ36ULQk.js} +5 -5
- package/dist/_chunks/{antenatal-schedule-timeline-DmsY5g28.js → antenatal-schedule-timeline-va9zx7tJ.js} +12 -12
- package/dist/_chunks/{appointment-card-FKOnH1uJ.js → appointment-card-D_-aBrx5.js} +2 -2
- package/dist/_chunks/{appointment-timeline-eOi-y8m3.js → appointment-timeline-DxLu3afn.js} +3 -3
- package/dist/_chunks/{appointment-tray-C6oBvsG5.js → appointment-tray-BhXOJpIJ.js} +2 -2
- package/dist/_chunks/{ar-C4YQVTH6.js → ar-BFvUBJ_g.js} +10 -10
- package/dist/_chunks/{balance-badge-cell-BAZynD--.js → balance-badge-cell-CXHihM22.js} +28 -27
- package/dist/_chunks/{bishop-score-CnIft4eV.js → bishop-score-QJu-sM1y.js} +2 -2
- package/dist/_chunks/{bmi-calculator-NMkXc079.js → bmi-calculator-Ba4yoR31.js} +2 -2
- package/dist/_chunks/buildMatchPatternFn-jbaE1-W0.js +68 -0
- package/dist/_chunks/{calendar-appointment-editor-dialog-CaZm5wGR.js → calendar-appointment-editor-dialog-BVzFi4hH.js} +520 -532
- package/dist/_chunks/{card-C85_Ndhb.js → card-DVO3x8E-.js} +23 -19
- package/dist/_chunks/{care-plan-card-DMjlYlFc.js → care-plan-card-BA3MfdfZ.js} +2 -2
- package/dist/_chunks/{care-plan-entry-card-3hguBW45.js → care-plan-entry-card-CUtFZ813.js} +2 -2
- package/dist/_chunks/{chart-bddVIElM.js → chart-DebrFZ6L.js} +2 -2
- package/dist/_chunks/{chat-container-baxzy8k8.js → chat-container-B83b4hut.js} +2 -2
- package/dist/_chunks/checkbox-DV4sNDeB.js +282 -0
- package/dist/_chunks/{checkbox-group-eGdv9fZc.js → checkbox-group-EfinQS1h.js} +2 -2
- package/dist/_chunks/chevrons-up-down-CgiVAHb7.js +15 -0
- package/dist/_chunks/{clinical-note-card-BVkxGiGl.js → clinical-note-card-Zz5_GEz-.js} +2 -2
- package/dist/_chunks/compact-editor-fields-cP6yh7xv.js +21 -0
- package/dist/_chunks/{connection-status-CWSU3eiq.js → connection-status-DjarASoU.js} +2 -2
- package/dist/_chunks/{contact-card-CymtNvy3.js → contact-card-Cv-Nwvac.js} +2 -2
- package/dist/_chunks/{contact-profile-card-CAL66GaH.js → contact-profile-card-DMXWBBkU.js} +2 -2
- package/dist/_chunks/{cycle-calculator-ZMDvToIm.js → cycle-calculator-C68V9rdH.js} +6 -6
- package/dist/_chunks/data-grid-tabs-CsLbIv0h.js +365 -0
- package/dist/_chunks/data-table-DXaE2Ret.js +1693 -0
- package/dist/_chunks/data-table-tabs-NYLhD8_Z.js +242 -0
- package/dist/_chunks/date-locale-OG-MupVD.js +83 -0
- package/dist/_chunks/{date-picker-CdhXlgVI.js → date-picker-DBVTj6lO.js} +21 -20
- package/dist/_chunks/{date-picker-variants-Dt6UbonG.js → date-picker-variants-J1EeAhIH.js} +601 -678
- package/dist/_chunks/date-range-panel-CBFfkgmz.js +62 -0
- package/dist/_chunks/{date-range-picker-DCADIR8o.js → date-range-picker-PTRpDkXT.js} +72 -70
- package/dist/_chunks/{date-time-picker-CT2bC7-A.js → date-time-picker-CJnqiQoT.js} +22 -21
- package/dist/_chunks/{de-B1B3PIgY.js → de-i9wbjGPc.js} +2 -2
- package/dist/_chunks/{document-preview-5xs64jME.js → document-preview-WvJKHJOP.js} +2 -2
- package/dist/_chunks/{due-date-calculator-Dr2cDa64.js → due-date-calculator-C1UA5jpS.js} +7 -7
- package/dist/_chunks/{editable-currency-cell-renderer-BUdFMh67.js → editable-currency-cell-renderer-CtlMhLai.js} +3 -3
- package/dist/_chunks/{el-iLqGpapg.js → el-Cm-rWthb.js} +20 -20
- package/dist/_chunks/{en-GB-CxPRQbD6.js → en-GB-BHn82gW8.js} +11 -10
- package/dist/_chunks/en-US-C4QKhzhA.js +46 -0
- package/dist/_chunks/{entity-summary-BbqqYqF1.js → entity-summary-DGCBQDt1.js} +2 -2
- package/dist/_chunks/{es-Bg1oqwDs.js → es-B_6Z19UA.js} +4 -4
- package/dist/_chunks/{face-scheme-e2M2HJGz.js → face-scheme-DkoxiDCh.js} +3 -3
- package/dist/_chunks/{fetal-weight-CkIwJgiH.js → fetal-weight-DmZzMRzB.js} +2 -2
- package/dist/_chunks/{file-manager-LG7B_UHB.js → file-manager-DFFExyym.js} +4 -4
- package/dist/_chunks/{finished-terminal-DXVAfhRr.js → finished-terminal-BKTFUk3S.js} +2 -2
- package/dist/_chunks/{forgot-password-form-YQVzSskq.js → forgot-password-form-Bc_UPax6.js} +2 -2
- package/dist/_chunks/format-ql5WTsYT.js +846 -0
- package/dist/_chunks/{fr-DpGxyOGI.js → fr-gTba51QO.js} +7 -7
- package/dist/_chunks/funnel-DpPV3Qkd.js +20 -0
- package/dist/_chunks/{gestational-age-calculator-Dv3IePb-.js → gestational-age-calculator-60y1RyQL.js} +8 -8
- package/dist/_chunks/grid-context-AwsLJRhH.js +46 -0
- package/dist/_chunks/{hcg-doubling-DdyUt4gz.js → hcg-doubling-CC-dbKE8.js} +7 -6
- package/dist/_chunks/{heatmap-BiwC7Gdx.js → heatmap-eXdtmEoU.js} +4 -4
- package/dist/_chunks/{hi-3Dtsksrw.js → hi-BIHq9ncx.js} +10 -10
- package/dist/_chunks/icon-button-group-C9mPK-bX.js +442 -0
- package/dist/_chunks/{index-CJE9uQmb.js → index-Bze5jCG_.js} +2 -1
- package/dist/_chunks/{isSameWeek-DyVftHWi.js → isSameWeek-CZOtDcsd.js} +2 -2
- package/dist/_chunks/{it-Cp0CA13d.js → it-DaCPWJ9Y.js} +11 -11
- package/dist/_chunks/{ja-9FOyR1lb.js → ja-BRCpkD95.js} +26 -26
- package/dist/_chunks/{kit-extensions-BOsUgWnE.js → kit-extensions-CzG0RmhQ.js} +7 -7
- package/dist/_chunks/link-cell-renderer-Ditt5mvT.js +800 -0
- package/dist/_chunks/{login-dev-card-B6-zCFq3.js → login-dev-card-CPndtWdz.js} +3 -3
- package/dist/_chunks/map-view-Bny79cWa.js +856 -0
- package/dist/_chunks/{marketplace-app-shell-C-4QF6mp.js → marketplace-app-shell-CcEHJgDd.js} +3 -3
- package/dist/_chunks/match-BATShpSX.js +336 -0
- package/dist/_chunks/motion-is-off-BvAuNV5O.js +15 -0
- package/dist/_chunks/{nl-sfx-zJgR.js → nl-5tAwYo00.js} +6 -6
- package/dist/_chunks/normalizeDates-BBNNIR-v.js +36 -0
- package/dist/_chunks/{notes-panel-Cz621DWV.js → notes-panel-BVYG_MJE.js} +4 -4
- package/dist/_chunks/{operator-hero-BELhrv9o.js → operator-hero-BWayX73x.js} +71 -62
- package/dist/_chunks/{parse-B0s7bY4d.js → parse-BLBWPIgE.js} +63 -61
- package/dist/_chunks/{parseISO-DZZ5a-zK.js → parseISO-Dl4T9peU.js} +2 -2
- package/dist/_chunks/parts-Wz2LeGnH.js +1113 -0
- package/dist/_chunks/{patient-details-RsT3SaYh.js → patient-details-DlT-vpSe.js} +3 -3
- package/dist/_chunks/{patient-field-row-D9rb-QJH.js → patient-field-row-B54uzvu-.js} +3 -3
- package/dist/_chunks/{patient-search-CxuqVUTB.js → patient-search-DDRDCjZi.js} +439 -482
- package/dist/_chunks/{patient-summary-card-BjZErlbt.js → patient-summary-card-Dy9-CzON.js} +4 -4
- package/dist/_chunks/{payment-automation-upsell-u5EuFyCY.js → payment-automation-upsell-D7yaD4u1.js} +3 -3
- package/dist/_chunks/{payment-request-card-IR83TJax.js → payment-request-card-BmV2pLoM.js} +2 -2
- package/dist/_chunks/{periodontal-chart-DqdUEFxK.js → periodontal-chart-Bjz7O4wT.js} +2 -2
- package/dist/_chunks/{periodontal-chart-card-CCkzStlm.js → periodontal-chart-card-CxEXHl2x.js} +2 -2
- package/dist/_chunks/{periodontal-diagnosis-CF1d_0yl.js → periodontal-diagnosis-DnZuZD14.js} +3 -3
- package/dist/_chunks/{periodontal-risk-chart-D2zyID0H.js → periodontal-risk-chart-BBPB9wf1.js} +2 -2
- package/dist/_chunks/{permission-matrix-BJ6sg3Zp.js → permission-matrix-BXmhICzN.js} +3 -3
- package/dist/_chunks/{pl-BLh7KO-s.js → pl-mLYbfByR.js} +7 -7
- package/dist/_chunks/{practice-profile-hero-Bb4YyxHA.js → practice-profile-hero-Cw4NZp0A.js} +2 -2
- package/dist/_chunks/practice-results-BlxfBx-D.js +2181 -0
- package/dist/_chunks/{pregnancy-dating-Cs8xpZA8.js → pregnancy-dating-qZpw3zj8.js} +8 -8
- package/dist/_chunks/{pregnancy-weight-gain-B_Zldlzq.js → pregnancy-weight-gain-DQoOM8QV.js} +2 -2
- package/dist/_chunks/privacy-mask-BlJK51MD.js +78 -0
- package/dist/_chunks/privacy-mask-text-B8YfzB7L.js +7 -0
- package/dist/_chunks/{pt-CPKOrOLj.js → pt-CgaqtlD9.js} +6 -6
- package/dist/_chunks/{public-footer-DGjLTtNK.js → public-footer-CB7ruuLI.js} +295 -260
- package/dist/_chunks/{public-header.agent-_ArDD1Xr.js → public-header.agent-Db4wm6_S.js} +203 -193
- package/dist/_chunks/{radiograph-panel.agent-CXah49KM.js → radiograph-panel.agent-C1LGeX-G.js} +3 -3
- package/dist/_chunks/{registration-form-Cq5_OSIL.js → registration-form-DW-0X7S4.js} +3 -3
- package/dist/_chunks/{reserved.agent-BMkapgom.js → reserved.agent-6p3Hm4oH.js} +29 -39
- package/dist/_chunks/{reset-password-form-BVsL2fOJ.js → reset-password-form-C93SH0Tx.js} +2 -2
- package/dist/_chunks/{reviews-panel-B03auSpQ.js → reviews-panel-CfJPEkH7.js} +2 -2
- package/dist/_chunks/{rich-text-editor-BLS2cK-u.js → rich-text-editor-efaMWbYz.js} +3 -3
- package/dist/_chunks/{ro-Dc-oNqbF.js → ro-CpDg1-8v.js} +2 -2
- package/dist/_chunks/{ru-BtNpDZRR.js → ru-B7VMyjud.js} +9 -9
- package/dist/_chunks/saved-view-tabs-DLWm88Eq.js +932 -0
- package/dist/_chunks/{section-card-D1sV4Voz.js → section-card-DFr2wGal.js} +2 -2
- package/dist/_chunks/{send-registration-link-form-OgPomrZN.js → send-registration-link-form-DWxWa_cJ.js} +6 -6
- package/dist/_chunks/{sidebar-2VsPlNkZ.js → sidebar-D5DFYN5K.js} +326 -335
- package/dist/_chunks/{signed-out-frame-CPow3aCZ.js → signed-out-frame-bh7fn_Px.js} +2 -2
- package/dist/_chunks/{slot-grid-BhjaLJ0o.js → slot-grid-b4eZXokb.js} +3 -3
- package/dist/_chunks/{sq-D4c7olaV.js → sq-B0Ree_9P.js} +2 -2
- package/dist/_chunks/{stat-BFKZV50y.js → stat-WGLdn5Vn.js} +113 -107
- package/dist/_chunks/subDays-Bsoy023P.js +8 -0
- package/dist/_chunks/{sv-Bf_dHPvh.js → sv-D9fP66O7.js} +4 -4
- package/dist/_chunks/{tag-DOZGz0fT.js → tag-BNlcEJfE.js} +70 -67
- package/dist/_chunks/{task-card-TSJjuuDe.js → task-card-BNbkwIYM.js} +2 -2
- package/dist/_chunks/{task-editor-gqWF1jI6.js → task-editor-CSa6vQ9r.js} +377 -391
- package/dist/_chunks/{task-tray-DrXfMCuf.js → task-tray-Bmi9wCHq.js} +2 -2
- package/dist/_chunks/{tasks-panel-OuIaydK5.js → tasks-panel-CVjY1d7Q.js} +2 -2
- package/dist/_chunks/{theme-toggle-Czq3K9jB.js → theme-toggle-CObX2Ffa.js} +2 -2
- package/dist/_chunks/{timeline-CKUaBZOx.js → timeline-AMqE-c2T.js} +2 -2
- package/dist/_chunks/toolbar-Bc3pjfG5.js +9907 -0
- package/dist/_chunks/{tr-xqQ6cbGY.js → tr-Bcz5LCHZ.js} +2 -2
- package/dist/_chunks/{transcript-panel-A781Pkzr.js → transcript-panel-Wr8e4Zgi.js} +2 -2
- package/dist/_chunks/{treatment-receipt-pFqWFyD_.js → treatment-receipt-BydbojdD.js} +2 -2
- package/dist/_chunks/{use-appointment-details-read-DvK7Looa.js → use-appointment-details-read-BMAiQYo6.js} +6 -6
- package/dist/_chunks/{voice-control-panel-BGiX4sqB.js → voice-control-panel-Be_c0CQ0.js} +2 -2
- package/dist/_chunks/{workflow-map-DWk-rZse.js → workflow-map-B4XkcET0.js} +2 -2
- package/dist/_chunks/{workflow-webhook-action-DILFqAVd.js → workflow-webhook-action-DNSe65yd.js} +3 -3
- package/dist/_chunks/{zh-CN-C657DBCO.js → zh-CN-B7Ek17US.js} +11 -11
- package/dist/agent-catalog.json +722 -11
- package/dist/agent-i18n/en.json +52 -4
- package/dist/components/_shared/motion-is-off.d.ts +7 -0
- package/dist/components/_shared/privacy-mask-text.d.ts +4 -0
- package/dist/components/_shared/privacy-mask.d.ts +2 -4
- package/dist/components/_shared/saved-view-tabs/saved-tab.d.ts +54 -0
- package/dist/components/_shared/saved-view-tabs/saved-view-tabs.d.ts +93 -0
- package/dist/components/_shared/saved-view-tabs/use-saved-view-tabs.d.ts +59 -0
- package/dist/components/_shared/saved-view-tabs/view-adapter.d.ts +69 -0
- package/dist/components/_shared/table-filters/calendar-day.d.ts +27 -0
- package/dist/components/_shared/table-filters/predicates.d.ts +56 -0
- package/dist/components/_shared/table-toolbar/context.d.ts +28 -0
- package/dist/components/_shared/table-toolbar/describe-filter.d.ts +42 -0
- package/dist/components/_shared/table-toolbar/export-files.d.ts +47 -0
- package/dist/components/{data-table/xlsx-export.d.ts → _shared/table-toolbar/export-xlsx.d.ts} +2 -2
- package/dist/components/_shared/table-toolbar/parts.d.ts +125 -0
- package/dist/components/_shared/table-toolbar/seam.d.ts +261 -0
- package/dist/components/ai-permission-notice/index.js +1 -1
- package/dist/components/anamnesis-card/index.js +1 -1
- package/dist/components/anamnesis-summary-card/index.js +1 -1
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/appointment-timeline/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/booking/step-focus.d.ts +0 -6
- package/dist/components/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/chart/index.js +1 -1
- package/dist/components/chat-container/index.js +1 -1
- package/dist/components/checkbox/checkbox.d.ts +66 -6
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/checkbox-group/index.js +1 -1
- package/dist/components/clinical-note-card/index.js +1 -1
- package/dist/components/connection-status/index.js +1 -1
- package/dist/components/contact-card/index.js +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/data-grid/announcer.d.ts +27 -0
- package/dist/components/data-grid/body.d.ts +95 -0
- package/dist/components/data-grid/columns.d.ts +96 -0
- package/dist/components/data-grid/data-grid.agent.d.ts +2 -1
- package/dist/components/data-grid/data-grid.d.ts +11 -27
- package/dist/components/data-grid/data-grid.variants.d.ts +118 -0
- package/dist/components/data-grid/editors.d.ts +8 -0
- package/dist/components/data-grid/export-snapshot.d.ts +3 -0
- package/dist/components/data-grid/features.d.ts +56 -0
- package/dist/components/data-grid/filter-fns.d.ts +23 -0
- package/dist/components/data-grid/filters/date-range-panel.d.ts +8 -0
- package/dist/components/data-grid/filters/filter-panels.d.ts +27 -0
- package/dist/components/data-grid/filters/filter-trigger.d.ts +7 -0
- package/dist/components/data-grid/footer.d.ts +10 -0
- package/dist/components/data-grid/grid-context.d.ts +18 -0
- package/dist/components/data-grid/handle.d.ts +60 -0
- package/dist/components/data-grid/header.d.ts +12 -0
- package/dist/components/data-grid/index.d.ts +3 -0
- package/dist/components/data-grid/index.js +10 -3
- package/dist/components/data-grid/keyboard.d.ts +76 -0
- package/dist/components/data-grid/pager.d.ts +18 -0
- package/dist/components/data-grid/persistence.d.ts +60 -0
- package/dist/components/data-grid/print.d.ts +10 -0
- package/dist/components/data-grid/responsive.d.ts +36 -0
- package/dist/components/data-grid/selection.d.ts +58 -0
- package/dist/components/data-grid/state.d.ts +119 -0
- package/dist/components/data-grid/states.d.ts +34 -0
- package/dist/components/data-grid/toolbar-seam.d.ts +7 -0
- package/dist/components/data-grid/toolbar.d.ts +41 -0
- package/dist/components/data-grid/types.d.ts +1346 -0
- package/dist/components/data-grid/use-data-grid-engine.d.ts +9 -0
- package/dist/components/data-grid/virtual-rows.d.ts +43 -0
- package/dist/components/data-grid-tabs/data-grid-tabs.agent.d.ts +9 -0
- package/dist/components/data-grid-tabs/data-grid-tabs.d.ts +4 -0
- package/dist/components/data-grid-tabs/grid-view-adapter.d.ts +15 -0
- package/dist/components/data-grid-tabs/index.d.ts +5 -0
- package/dist/components/data-grid-tabs/index.js +8 -0
- package/dist/components/data-grid-tabs/types.d.ts +220 -0
- package/dist/components/data-table/ag-toolbar-seam.d.ts +35 -0
- package/dist/components/data-table/calendar-day.d.ts +4 -21
- package/dist/components/data-table/data-table.d.ts +10 -6
- package/dist/components/data-table/filters/date-range-filter.d.ts +5 -9
- package/dist/components/data-table/filters/filter-kind.d.ts +6 -0
- package/dist/components/data-table/filters/number-filter.d.ts +6 -10
- package/dist/components/data-table/filters/select-filter.d.ts +2 -4
- package/dist/components/data-table/filters/text-filter.d.ts +2 -5
- package/dist/components/data-table/index.js +4 -4
- package/dist/components/data-table/toolbar.d.ts +25 -21
- package/dist/components/data-table-tabs/ag-view-adapter.d.ts +17 -0
- package/dist/components/data-table-tabs/data-table-tabs.d.ts +34 -33
- package/dist/components/data-table-tabs/index.js +1 -1
- package/dist/components/data-table-tabs/use-data-table-filter-tabs.d.ts +11 -66
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-time-picker/index.js +1 -1
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +2 -2
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/face-scheme/index.js +1 -1
- package/dist/components/fetal-weight/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/finished-terminal/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/index.js +1 -1
- package/dist/components/icon-button-group/icon-button-group.d.ts +19 -1
- package/dist/components/icon-button-group/index.d.ts +1 -1
- package/dist/components/icon-button-group/index.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/map-view/map-view.d.ts +16 -0
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/operator-hero/index.js +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/patient-search/patient-search.d.ts +6 -2
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/payment-card/index.js +1 -1
- package/dist/components/periodontal-chart/index.js +1 -1
- package/dist/components/periodontal-chart-card/index.js +1 -1
- package/dist/components/periodontal-diagnosis/index.js +1 -1
- package/dist/components/periodontal-risk-chart/index.js +1 -1
- package/dist/components/permission-matrix/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/practice-results/practice-results.d.ts +15 -2
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/index.js +1 -1
- package/dist/components/public-footer/index.js +1 -1
- package/dist/components/public-footer/public-footer.d.ts +23 -0
- package/dist/components/public-header/index.js +1 -1
- package/dist/components/public-header/public-header.d.ts +7 -0
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/components/reviews-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +2 -2
- package/dist/components/section-card/index.js +1 -1
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/slot-grid/index.js +1 -1
- package/dist/components/stat/index.js +1 -1
- package/dist/components/stat/stat.d.ts +7 -0
- package/dist/components/tag/index.js +1 -1
- package/dist/components/task-card/index.js +1 -1
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/task-tray/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/timeline/index.js +1 -1
- package/dist/components/transcript-panel/index.js +1 -1
- package/dist/components/treatment-receipt/index.js +1 -1
- package/dist/components/voice-control-panel/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/core.css +1 -1
- package/dist/host-compat.css +36 -2
- package/dist/i18n/locales/ar.d.ts +95 -0
- package/dist/i18n/locales/ar.js +98 -3
- package/dist/i18n/locales/de.d.ts +95 -0
- package/dist/i18n/locales/de.js +98 -3
- package/dist/i18n/locales/el.d.ts +95 -0
- package/dist/i18n/locales/el.js +98 -3
- package/dist/i18n/locales/en.d.ts +95 -0
- package/dist/i18n/locales/en.js +98 -2
- package/dist/i18n/locales/es.d.ts +95 -0
- package/dist/i18n/locales/es.js +98 -3
- package/dist/i18n/locales/fr.d.ts +95 -0
- package/dist/i18n/locales/fr.js +98 -3
- package/dist/i18n/locales/hi.d.ts +95 -0
- package/dist/i18n/locales/hi.js +98 -3
- package/dist/i18n/locales/it.d.ts +95 -0
- package/dist/i18n/locales/it.js +98 -3
- package/dist/i18n/locales/ja.d.ts +95 -0
- package/dist/i18n/locales/ja.js +98 -3
- package/dist/i18n/locales/nl.d.ts +95 -0
- package/dist/i18n/locales/nl.js +98 -3
- package/dist/i18n/locales/pl.d.ts +95 -0
- package/dist/i18n/locales/pl.js +98 -3
- package/dist/i18n/locales/pt.d.ts +95 -0
- package/dist/i18n/locales/pt.js +98 -3
- package/dist/i18n/locales/ro.d.ts +95 -0
- package/dist/i18n/locales/ro.js +98 -3
- package/dist/i18n/locales/ru.d.ts +95 -0
- package/dist/i18n/locales/ru.js +98 -3
- package/dist/i18n/locales/sq.d.ts +95 -0
- package/dist/i18n/locales/sq.js +98 -3
- package/dist/i18n/locales/sv.d.ts +95 -0
- package/dist/i18n/locales/sv.js +98 -3
- package/dist/i18n/locales/tr.d.ts +95 -0
- package/dist/i18n/locales/tr.js +98 -3
- package/dist/i18n/locales/zh.d.ts +95 -0
- package/dist/i18n/locales/zh.js +98 -3
- package/dist/index.js +1048 -1036
- package/dist/locales/ar.json +98 -3
- package/dist/locales/de.json +98 -3
- package/dist/locales/el.json +98 -3
- package/dist/locales/en.json +97 -2
- package/dist/locales/es.json +98 -3
- package/dist/locales/fr.json +98 -3
- package/dist/locales/hi.json +98 -3
- package/dist/locales/it.json +98 -3
- package/dist/locales/ja.json +98 -3
- package/dist/locales/nl.json +98 -3
- package/dist/locales/pl.json +98 -3
- package/dist/locales/pt.json +98 -3
- package/dist/locales/ro.json +98 -3
- package/dist/locales/ru.json +98 -3
- package/dist/locales/sq.json +98 -3
- package/dist/locales/sv.json +98 -3
- package/dist/locales/tr.json +98 -3
- package/dist/locales/zh.json +98 -3
- package/dist/patterns/alia-assistant/index.js +1 -1
- 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/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/signed-out-frame/index.js +1 -1
- package/dist/patterns/workflow-webhook-action/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +5 -1
- package/dist/_chunks/checkbox-a7Sh-dXb.js +0 -227
- package/dist/_chunks/data-grid.agent-CASyEAnb.js +0 -1773
- package/dist/_chunks/data-table-C9idMvs0.js +0 -2042
- package/dist/_chunks/data-table-tabs-Db7zToFD.js +0 -728
- package/dist/_chunks/format--x5jypvH.js +0 -1319
- package/dist/_chunks/icon-button-group-mXvYDaba.js +0 -427
- package/dist/_chunks/link-cell-renderer-_Fv3WEmb.js +0 -867
- package/dist/_chunks/map-view-Dn7aXZJw.js +0 -731
- package/dist/_chunks/practice-results-BByRCIuR.js +0 -1977
- package/dist/_chunks/privacy-mask-DbEKI-Jv.js +0 -81
- package/dist/_chunks/subDays-DKISP2nE.js +0 -8
|
@@ -0,0 +1,1113 @@
|
|
|
1
|
+
import { jsx as s, jsxs as z, Fragment as Ge } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as Be, createContext as Ie, useState as G, useEffect as J, useContext as Re, forwardRef as W, useRef as X, useCallback as ie, useLayoutEffect as je, useId as Le, useReducer as We, isValidElement as Qe, cloneElement as Ve } from "react";
|
|
3
|
+
import { useTranslation as q } from "react-i18next";
|
|
4
|
+
import { c as te } from "./index-D2ZczOXr.js";
|
|
5
|
+
import { B as oe } from "./button-DohK_Ak_.js";
|
|
6
|
+
import { I as H } from "./icon-button-S8_weU3g.js";
|
|
7
|
+
import { P as le } from "./popover-CN5IsOeS.js";
|
|
8
|
+
import { C as _e } from "./checkbox-DV4sNDeB.js";
|
|
9
|
+
import { T as Ue } from "./text-input-B6iAgCr3.js";
|
|
10
|
+
import { T as xe } from "./tag-BNlcEJfE.js";
|
|
11
|
+
import { D as Y } from "./dropdown-menu-CqxBthww.js";
|
|
12
|
+
import { a as me } from "./format-number-DdzqwMs1.js";
|
|
13
|
+
import { g as He } from "./date-locale-OG-MupVD.js";
|
|
14
|
+
import { P as Ce } from "./printer-rkK0T1gi.js";
|
|
15
|
+
import { R as ke } from "./refresh-cw-DnI0cLFC.js";
|
|
16
|
+
import { D as Fe } from "./download-CfYKJO_j.js";
|
|
17
|
+
import { c as Xe } from "./createLucideIcon-DhHxpK9K.js";
|
|
18
|
+
import { G as Ye } from "./grip-vertical-onSb1JXO.js";
|
|
19
|
+
import { A as Je, a as Ke } from "./arrow-up-BYvcvTkB.js";
|
|
20
|
+
import { R as Ze } from "./rotate-ccw-BBQnIVTr.js";
|
|
21
|
+
import { S as et } from "./search-QbWPlY5f.js";
|
|
22
|
+
import { X as Ne } from "./x-B5YnXwCz.js";
|
|
23
|
+
import { F as tt } from "./file-spreadsheet-DmwyfV4O.js";
|
|
24
|
+
import { F as nt } from "./file-text-5yv6r2ls.js";
|
|
25
|
+
/**
|
|
26
|
+
* @license lucide-react v1.22.0 - ISC
|
|
27
|
+
*
|
|
28
|
+
* This source code is licensed under the ISC license.
|
|
29
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
30
|
+
*/
|
|
31
|
+
const rt = [
|
|
32
|
+
["path", { d: "M10.5 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v5.5", key: "1g2yzs" }],
|
|
33
|
+
["path", { d: "m14.3 19.6 1-.4", key: "11sv9r" }],
|
|
34
|
+
["path", { d: "M15 3v7.5", key: "7lm50a" }],
|
|
35
|
+
["path", { d: "m15.2 16.9-.9-.3", key: "1t7mvx" }],
|
|
36
|
+
["path", { d: "m16.6 21.7.3-.9", key: "1j67ps" }],
|
|
37
|
+
["path", { d: "m16.8 15.3-.4-1", key: "1ei7r6" }],
|
|
38
|
+
["path", { d: "m19.1 15.2.3-.9", key: "18r7jp" }],
|
|
39
|
+
["path", { d: "m19.6 21.7-.4-1", key: "z2vh2" }],
|
|
40
|
+
["path", { d: "m20.7 16.8 1-.4", key: "19m87a" }],
|
|
41
|
+
["path", { d: "m21.7 19.4-.9-.3", key: "1qgwi9" }],
|
|
42
|
+
["path", { d: "M9 3v18", key: "fh3hqa" }],
|
|
43
|
+
["circle", { cx: "18", cy: "18", r: "3", key: "1xkwt0" }]
|
|
44
|
+
], at = Xe("columns-3-cog", rt), De = /^\d{4}-\d{2}-\d{2}$/, st = /^(\d{4}-\d{2}-\d{2})/;
|
|
45
|
+
function it(e) {
|
|
46
|
+
if (!e) return null;
|
|
47
|
+
const t = e.getFullYear(), r = String(e.getMonth() + 1).padStart(2, "0"), n = String(e.getDate()).padStart(2, "0");
|
|
48
|
+
return `${t}-${r}-${n}`;
|
|
49
|
+
}
|
|
50
|
+
function sn(e) {
|
|
51
|
+
return typeof e == "string" && De.test(e);
|
|
52
|
+
}
|
|
53
|
+
function ot(e) {
|
|
54
|
+
if (!e) return;
|
|
55
|
+
const t = De.test(e) ? new Date(
|
|
56
|
+
Number(e.slice(0, 4)),
|
|
57
|
+
Number(e.slice(5, 7)) - 1,
|
|
58
|
+
Number(e.slice(8, 10))
|
|
59
|
+
) : new Date(e);
|
|
60
|
+
return Number.isNaN(t.getTime()) ? void 0 : t;
|
|
61
|
+
}
|
|
62
|
+
function lt(e) {
|
|
63
|
+
if (e == null || e === "")
|
|
64
|
+
return null;
|
|
65
|
+
if (typeof e == "string") {
|
|
66
|
+
const r = st.exec(e);
|
|
67
|
+
if (r) return r[1];
|
|
68
|
+
}
|
|
69
|
+
const t = e instanceof Date ? e : new Date(String(e));
|
|
70
|
+
return Number.isNaN(t.getTime()) ? null : it(t);
|
|
71
|
+
}
|
|
72
|
+
function on(e) {
|
|
73
|
+
const t = new Intl.Collator(e, {
|
|
74
|
+
sensitivity: "base",
|
|
75
|
+
usage: "search"
|
|
76
|
+
});
|
|
77
|
+
function r(n, a) {
|
|
78
|
+
if (a.length === 0) return 0;
|
|
79
|
+
if (a.length > n.length) return -1;
|
|
80
|
+
for (let d = 0; d <= n.length - a.length; d += 1)
|
|
81
|
+
if (t.compare(n.slice(d, d + a.length), a) === 0)
|
|
82
|
+
return d;
|
|
83
|
+
return -1;
|
|
84
|
+
}
|
|
85
|
+
return {
|
|
86
|
+
equals: (n, a) => t.compare(n, a) === 0,
|
|
87
|
+
contains: (n, a) => r(n, a) !== -1,
|
|
88
|
+
startsWith: (n, a) => a.length <= n.length && t.compare(n.slice(0, a.length), a) === 0,
|
|
89
|
+
endsWith: (n, a) => a.length <= n.length && t.compare(
|
|
90
|
+
n.slice(n.length - a.length),
|
|
91
|
+
a
|
|
92
|
+
) === 0
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
function ut(e) {
|
|
96
|
+
return e == null ? null : typeof e == "string" ? e : String(e);
|
|
97
|
+
}
|
|
98
|
+
function ln(e, t, r) {
|
|
99
|
+
if (!e || e.filter === "") return !0;
|
|
100
|
+
const n = ut(t);
|
|
101
|
+
if (n === null) return !1;
|
|
102
|
+
switch (e.type) {
|
|
103
|
+
case "equals":
|
|
104
|
+
return r.equals(n, e.filter);
|
|
105
|
+
case "contains":
|
|
106
|
+
return r.contains(n, e.filter);
|
|
107
|
+
case "startsWith":
|
|
108
|
+
return r.startsWith(n, e.filter);
|
|
109
|
+
case "endsWith":
|
|
110
|
+
return r.endsWith(n, e.filter);
|
|
111
|
+
case "notContains":
|
|
112
|
+
return !r.contains(n, e.filter);
|
|
113
|
+
default:
|
|
114
|
+
return !0;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
function ct(e) {
|
|
118
|
+
if (e == null || e === "") return null;
|
|
119
|
+
const t = typeof e == "number" ? e : Number(e);
|
|
120
|
+
return Number.isNaN(t) ? null : t;
|
|
121
|
+
}
|
|
122
|
+
function dt(e, t, r, n) {
|
|
123
|
+
if (e === "blank") return t === null;
|
|
124
|
+
if (e === "notBlank") return t !== null;
|
|
125
|
+
if (t === null) return !1;
|
|
126
|
+
if (e === "inRange")
|
|
127
|
+
return r === null ? n === null || t <= n : n === null ? t >= r : t >= r && t <= n;
|
|
128
|
+
if (r === null) return !0;
|
|
129
|
+
switch (e) {
|
|
130
|
+
case "equals":
|
|
131
|
+
return t === r;
|
|
132
|
+
case "notEqual":
|
|
133
|
+
return t !== r;
|
|
134
|
+
case "greaterThan":
|
|
135
|
+
return t > r;
|
|
136
|
+
case "greaterThanOrEqual":
|
|
137
|
+
return t >= r;
|
|
138
|
+
case "lessThan":
|
|
139
|
+
return t < r;
|
|
140
|
+
case "lessThanOrEqual":
|
|
141
|
+
return t <= r;
|
|
142
|
+
default:
|
|
143
|
+
return !0;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
function un(e, t) {
|
|
147
|
+
return e ? dt(
|
|
148
|
+
e.type,
|
|
149
|
+
ct(t),
|
|
150
|
+
e.filter ?? null,
|
|
151
|
+
e.filterTo ?? null
|
|
152
|
+
) : !0;
|
|
153
|
+
}
|
|
154
|
+
function Se(e) {
|
|
155
|
+
return typeof e == "number" ? `n:${e}` : `s:${e}`;
|
|
156
|
+
}
|
|
157
|
+
function ft(e) {
|
|
158
|
+
return e == null ? null : typeof e == "string" || typeof e == "number" ? e : String(e);
|
|
159
|
+
}
|
|
160
|
+
function cn(e, t) {
|
|
161
|
+
const r = e == null ? void 0 : e.values;
|
|
162
|
+
if (!r || r.length === 0) return !0;
|
|
163
|
+
const n = ft(t);
|
|
164
|
+
if (n === null) return !1;
|
|
165
|
+
const a = Se(n);
|
|
166
|
+
return r.some((d) => Se(d) === a);
|
|
167
|
+
}
|
|
168
|
+
function pt(e, t, r) {
|
|
169
|
+
if (!t && !r) return !0;
|
|
170
|
+
const n = lt(e);
|
|
171
|
+
return !(!n || t && n < t || r && n > r);
|
|
172
|
+
}
|
|
173
|
+
function dn(e, t) {
|
|
174
|
+
return pt(t, e == null ? void 0 : e.dateFrom, e == null ? void 0 : e.dateTo);
|
|
175
|
+
}
|
|
176
|
+
function fn(e) {
|
|
177
|
+
if (e == null) return !0;
|
|
178
|
+
if (typeof e != "object") return !1;
|
|
179
|
+
const t = e;
|
|
180
|
+
return t.type === "set" ? !Array.isArray(t.values) || t.values.length === 0 : t.type === "inRange" && ("dateFrom" in t || "dateTo" in t) ? !t.dateFrom && !t.dateTo : t.type === "blank" || t.type === "notBlank" ? !1 : "value" in t ? t.value === null || t.value === void 0 || t.value === "" : typeof t.filter == "string" ? t.filter.trim() === "" : typeof t.type == "string" ? typeof t.filter != "number" && typeof t.filterTo != "number" : !1;
|
|
181
|
+
}
|
|
182
|
+
const mt = "yyyy-mm-dd hh:mm";
|
|
183
|
+
function gt(e) {
|
|
184
|
+
return e == null ? "" : typeof e == "number" ? Number.isFinite(e) ? e : String(e) : typeof e == "string" || typeof e == "boolean" ? e : e instanceof Date && !Number.isNaN(e.getTime()) ? { value: e, type: Date, format: mt } : String(e);
|
|
185
|
+
}
|
|
186
|
+
async function bt(e, t, r) {
|
|
187
|
+
const { default: n } = await import("./index-CpVcVNBu.js"), a = [
|
|
188
|
+
e.map((d) => ({
|
|
189
|
+
value: d,
|
|
190
|
+
fontWeight: "bold",
|
|
191
|
+
textColor: r.text,
|
|
192
|
+
backgroundColor: r.fill
|
|
193
|
+
})),
|
|
194
|
+
...t.map((d) => d.map(gt))
|
|
195
|
+
];
|
|
196
|
+
return n(a, { sheet: "Sheet1" }).toBlob();
|
|
197
|
+
}
|
|
198
|
+
function K(e, t = [30, 30, 30]) {
|
|
199
|
+
if (typeof document > "u") return t;
|
|
200
|
+
const r = document.createElement("div");
|
|
201
|
+
r.className = "theme-light", r.style.position = "absolute", r.style.visibility = "hidden";
|
|
202
|
+
const n = document.createElement("span");
|
|
203
|
+
n.style.color = `var(${e})`, r.appendChild(n), document.body.appendChild(r);
|
|
204
|
+
const a = getComputedStyle(n).color;
|
|
205
|
+
document.body.removeChild(r);
|
|
206
|
+
const d = a.match(/rgba?\(\s*(\d+)[,\s]+(\d+)[,\s]+(\d+)/i);
|
|
207
|
+
return d ? [Number(d[1]), Number(d[2]), Number(d[3])] : t;
|
|
208
|
+
}
|
|
209
|
+
function Me(e, t) {
|
|
210
|
+
const r = URL.createObjectURL(e), n = document.createElement("a");
|
|
211
|
+
n.href = r, n.download = t, document.body.appendChild(n), n.click(), document.body.removeChild(n), URL.revokeObjectURL(r);
|
|
212
|
+
}
|
|
213
|
+
async function pn(e, t) {
|
|
214
|
+
const [{ jsPDF: r }, { default: n }] = await Promise.all([
|
|
215
|
+
import("./jspdf.es.min-BW7y6yhl.js").then((M) => M.j),
|
|
216
|
+
import("./jspdf.plugin.autotable-CSiDNyPn.js")
|
|
217
|
+
]), a = [[...e.headers]], d = e.rows.map(
|
|
218
|
+
(M) => M.map((Q) => Q == null ? "" : String(Q))
|
|
219
|
+
), k = K("--muted", [240, 240, 240]), F = K("--foreground", [30, 30, 30]), I = K("--card-foreground", [30, 30, 30]), N = K("--card", [250, 250, 250]), B = new r({ orientation: "landscape" });
|
|
220
|
+
n(B, {
|
|
221
|
+
head: a,
|
|
222
|
+
body: d,
|
|
223
|
+
headStyles: { fillColor: k, textColor: F },
|
|
224
|
+
bodyStyles: { textColor: I },
|
|
225
|
+
alternateRowStyles: { fillColor: N },
|
|
226
|
+
styles: {
|
|
227
|
+
font: "helvetica",
|
|
228
|
+
fontSize: 10,
|
|
229
|
+
cellPadding: 4
|
|
230
|
+
}
|
|
231
|
+
}), B.save(t.fileName);
|
|
232
|
+
}
|
|
233
|
+
async function mn(e, t) {
|
|
234
|
+
const r = ([a, d, k]) => `#${[a, d, k].map((F) => F.toString(16).padStart(2, "0")).join("")}`.toUpperCase(), n = await bt(e.headers, e.rows, {
|
|
235
|
+
fill: r(K("--muted", [240, 240, 240])),
|
|
236
|
+
text: r(K("--foreground", [30, 30, 30]))
|
|
237
|
+
});
|
|
238
|
+
Me(n, t.fileName);
|
|
239
|
+
}
|
|
240
|
+
function gn(e) {
|
|
241
|
+
const t = e.rows.map(
|
|
242
|
+
(r) => r.cells
|
|
243
|
+
);
|
|
244
|
+
return e.totals && t.push(e.totals), { headers: e.columns.map((r) => r.label), rows: t };
|
|
245
|
+
}
|
|
246
|
+
const we = `\r
|
|
247
|
+
`, ht = /^[=+\-@\t\r]/, yt = new RegExp("^[-+][\\s\\u00a0\\u202f]?\\p{Sc}?[\\s\\u00a0\\u202f]?\\d[\\d\\s\\u00a0\\u202f.,']*[\\s\\u00a0\\u202f]?[\\p{Sc}%]?$", "u");
|
|
248
|
+
function vt(e) {
|
|
249
|
+
if (e == null) return "";
|
|
250
|
+
if (typeof e == "number")
|
|
251
|
+
return Number.isFinite(e) ? String(e) : "";
|
|
252
|
+
let t = String(e);
|
|
253
|
+
return ht.test(t) && !yt.test(t) && (t = `'${t}`), /[",\r\n]/.test(t) ? `"${t.replace(/"/g, '""')}"` : t;
|
|
254
|
+
}
|
|
255
|
+
function Tt(e) {
|
|
256
|
+
return [e.headers, ...e.rows].map(
|
|
257
|
+
(r) => r.map(vt).join(",")
|
|
258
|
+
).join(we) + we;
|
|
259
|
+
}
|
|
260
|
+
function bn(e, t) {
|
|
261
|
+
const r = new Blob(["\uFEFF", Tt(e)], {
|
|
262
|
+
type: "text/csv;charset=utf-8"
|
|
263
|
+
});
|
|
264
|
+
Me(r, t.fileName);
|
|
265
|
+
}
|
|
266
|
+
function hn(e, t) {
|
|
267
|
+
return `${(e ?? "").normalize("NFC").replace(/[^\p{L}\p{N} ._-]+/gu, "-").replace(/\s+/g, " ").replace(/^[\s.-]+|[\s.-]+$/g, "").slice(0, 80) || "table-export"}.${t}`;
|
|
268
|
+
}
|
|
269
|
+
const qe = Ie(
|
|
270
|
+
null
|
|
271
|
+
);
|
|
272
|
+
function yn({
|
|
273
|
+
seam: e,
|
|
274
|
+
children: t
|
|
275
|
+
}) {
|
|
276
|
+
const r = Be(() => ({ seam: e }), [e]);
|
|
277
|
+
return /* @__PURE__ */ s(qe.Provider, { value: r, children: t });
|
|
278
|
+
}
|
|
279
|
+
function xt(e, t) {
|
|
280
|
+
const r = Re(qe), n = (r == null ? void 0 : r.seam) ?? t;
|
|
281
|
+
if (!n) throw new Error(e);
|
|
282
|
+
return n;
|
|
283
|
+
}
|
|
284
|
+
function ee(e, t) {
|
|
285
|
+
const [r, n] = G(0), a = t.join(" ");
|
|
286
|
+
return J(() => {
|
|
287
|
+
const d = new Set(a.split(" "));
|
|
288
|
+
return e.subscribe((k) => {
|
|
289
|
+
d.has(k) && n((F) => F + 1);
|
|
290
|
+
});
|
|
291
|
+
}, [e, a]), r;
|
|
292
|
+
}
|
|
293
|
+
function Ct(e, t) {
|
|
294
|
+
const r = (n, a) => String(n).padStart(a, "0");
|
|
295
|
+
return t.replace(/yyyy|MM|dd/g, (n) => {
|
|
296
|
+
if (n === "dd") return r(e.getDate(), 2);
|
|
297
|
+
if (n === "MM") return r(e.getMonth() + 1, 2);
|
|
298
|
+
const a = e.getFullYear();
|
|
299
|
+
return r(a > 0 ? a : 1 - a, 4);
|
|
300
|
+
});
|
|
301
|
+
}
|
|
302
|
+
function kt(e, t, r) {
|
|
303
|
+
const n = e.filterOptions;
|
|
304
|
+
return t ? {
|
|
305
|
+
kitWording: !0,
|
|
306
|
+
optionLabel: n ? (a) => {
|
|
307
|
+
var d;
|
|
308
|
+
return (d = n.find((k) => k.value === a)) == null ? void 0 : d.label;
|
|
309
|
+
} : void 0,
|
|
310
|
+
number: (a) => me(a, r),
|
|
311
|
+
day: (a) => {
|
|
312
|
+
const d = ot(a);
|
|
313
|
+
return d ? Ct(d, He(r ?? "en")) : a;
|
|
314
|
+
}
|
|
315
|
+
} : {};
|
|
316
|
+
}
|
|
317
|
+
function Ft(e) {
|
|
318
|
+
return e === "contains" || e === "notContains" || e === "equals" || e === "startsWith" || e === "endsWith";
|
|
319
|
+
}
|
|
320
|
+
function Nt(e, t) {
|
|
321
|
+
switch (e) {
|
|
322
|
+
case "contains":
|
|
323
|
+
return t("dataTable.textFilter.operators.contains", "Contains");
|
|
324
|
+
case "notContains":
|
|
325
|
+
return t(
|
|
326
|
+
"dataTable.textFilter.operators.notContains",
|
|
327
|
+
"Does not contain"
|
|
328
|
+
);
|
|
329
|
+
case "equals":
|
|
330
|
+
return t("dataTable.textFilter.operators.equals", "Equals");
|
|
331
|
+
case "startsWith":
|
|
332
|
+
return t("dataTable.textFilter.operators.startsWith", "Starts with");
|
|
333
|
+
case "endsWith":
|
|
334
|
+
return t("dataTable.textFilter.operators.endsWith", "Ends with");
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
function St(e, t) {
|
|
338
|
+
switch (e) {
|
|
339
|
+
case "contains":
|
|
340
|
+
return t("dataTable.agGrid.contains", "Contains");
|
|
341
|
+
case "notContains":
|
|
342
|
+
return t("dataTable.agGrid.notContains", "Does not contain");
|
|
343
|
+
case "startsWith":
|
|
344
|
+
return t("dataTable.agGrid.startsWith", "Starts with");
|
|
345
|
+
case "endsWith":
|
|
346
|
+
return t("dataTable.agGrid.endsWith", "Ends with");
|
|
347
|
+
case "equals":
|
|
348
|
+
return t("dataTable.agGrid.equals", "Equals");
|
|
349
|
+
case "notEqual":
|
|
350
|
+
return t("dataTable.agGrid.notEqual", "Not equal");
|
|
351
|
+
case "greaterThan":
|
|
352
|
+
return t("dataTable.agGrid.greaterThan", "Greater than");
|
|
353
|
+
case "greaterThanOrEqual":
|
|
354
|
+
return t(
|
|
355
|
+
"dataTable.agGrid.greaterThanOrEqual",
|
|
356
|
+
"Greater than or equal to"
|
|
357
|
+
);
|
|
358
|
+
case "lessThan":
|
|
359
|
+
return t("dataTable.agGrid.lessThan", "Less than");
|
|
360
|
+
case "lessThanOrEqual":
|
|
361
|
+
return t("dataTable.agGrid.lessThanOrEqual", "Less than or equal to");
|
|
362
|
+
case "inRange":
|
|
363
|
+
return t("dataTable.agGrid.inRange", "In range");
|
|
364
|
+
case "blank":
|
|
365
|
+
return t("dataTable.agGrid.blank", "Blank");
|
|
366
|
+
case "notBlank":
|
|
367
|
+
return t("dataTable.agGrid.notBlank", "Not blank");
|
|
368
|
+
default:
|
|
369
|
+
return e;
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
function wt(e, t, r = {}) {
|
|
373
|
+
if (!e || typeof e != "object") return "";
|
|
374
|
+
const n = e, a = typeof n.type == "string" ? n.type : "", d = r.kitWording === !0, k = (x) => d && typeof n.filter == "string" && Ft(x) ? Nt(x, t) : St(x, t), F = (x) => typeof x == "number" && r.number ? r.number(x) : String(x), I = (x) => r.day ? r.day(x) : x, N = t("dataTable.numberFilter.from", "From"), B = t("dataTable.numberFilter.to", "To");
|
|
375
|
+
if (a === "blank" || a === "notBlank") return k(a);
|
|
376
|
+
const M = typeof n.filter == "string" || typeof n.filter == "number", Q = typeof n.filterTo == "string" || typeof n.filterTo == "number";
|
|
377
|
+
if (a === "inRange" && (M || Q))
|
|
378
|
+
return M && Q ? `${F(n.filter)} – ${F(n.filterTo)}` : M ? `${N} ${F(n.filter)}` : `${B} ${F(n.filterTo)}`;
|
|
379
|
+
if (M)
|
|
380
|
+
return a ? `${k(a)} ${F(n.filter)}` : F(n.filter);
|
|
381
|
+
if (d) {
|
|
382
|
+
const x = typeof n.dateFrom == "string" && n.dateFrom ? n.dateFrom : "", P = typeof n.dateTo == "string" && n.dateTo ? n.dateTo : "", V = a === "inRange" || a === "";
|
|
383
|
+
if (x && P) return `${I(x)} – ${I(P)}`;
|
|
384
|
+
if (x)
|
|
385
|
+
return V ? `${N} ${I(x)}` : `${k(a)} ${I(x)}`;
|
|
386
|
+
if (P) return `${B} ${I(P)}`;
|
|
387
|
+
} else if (typeof n.dateFrom == "string")
|
|
388
|
+
return typeof n.dateTo == "string" && n.dateTo ? `${n.dateFrom} – ${n.dateTo}` : String(n.dateFrom);
|
|
389
|
+
return Array.isArray(n.values) ? n.values.map((P) => {
|
|
390
|
+
var V;
|
|
391
|
+
return ((V = r.optionLabel) == null ? void 0 : V.call(r, P)) ?? F(P);
|
|
392
|
+
}).join(", ") : "";
|
|
393
|
+
}
|
|
394
|
+
function $t(e) {
|
|
395
|
+
if (!Qe(e)) return e;
|
|
396
|
+
const t = e, r = t.props.className ?? "", n = /\bsize-|\bw-|\bh-/.test(r) ? r : `${r} ds:size-4`.trim();
|
|
397
|
+
return Ve(t, { className: n, size: t.props.size ?? 16 });
|
|
398
|
+
}
|
|
399
|
+
function $e(e) {
|
|
400
|
+
return e.getColumns().some((t) => t.masked === !0);
|
|
401
|
+
}
|
|
402
|
+
function Ee(e, t, r) {
|
|
403
|
+
const n = e[t], a = e[r];
|
|
404
|
+
if (!n || !a || !n.canMove || n.canPin === !1 && a.pinned !== n.pinned) return !1;
|
|
405
|
+
const d = e.filter((I, N) => N !== t);
|
|
406
|
+
d.splice(r, 0, n);
|
|
407
|
+
const k = /* @__PURE__ */ new Set();
|
|
408
|
+
let F = null;
|
|
409
|
+
for (const I of d) {
|
|
410
|
+
const N = I.groupId ?? null;
|
|
411
|
+
if (N !== F) {
|
|
412
|
+
if (N !== null && k.has(N)) return !1;
|
|
413
|
+
N !== null && k.add(N), F = N;
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
return !0;
|
|
417
|
+
}
|
|
418
|
+
function Et(e) {
|
|
419
|
+
return {
|
|
420
|
+
selectedRowIds: e.getSelectedRowIds(),
|
|
421
|
+
getExportSnapshot: () => e.getExportSnapshot()
|
|
422
|
+
};
|
|
423
|
+
}
|
|
424
|
+
const It = te([
|
|
425
|
+
"data-table-toolbar",
|
|
426
|
+
// Mobile (<sm) keeps `flex-wrap` so a wide QuickSearch can flow above the
|
|
427
|
+
// Actions cluster on narrow screens. From `sm` (≥640px) we switch to
|
|
428
|
+
// `flex-nowrap` + `min-w-0` so the row stays single-line at every common
|
|
429
|
+
// desktop width (1024 / 1280 / 1440): the QuickSearch slot shrinks via
|
|
430
|
+
// its own `min-w-0` instead of pushing the trailing Actions to a new row.
|
|
431
|
+
"ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-sm)]",
|
|
432
|
+
"ds:sm:flex-nowrap ds:min-w-0"
|
|
433
|
+
// No card surface: the toolbar sits directly on the page background,
|
|
434
|
+
// matching the header-tools layout the Patients / Care Plan List
|
|
435
|
+
// patterns established.
|
|
436
|
+
]), Rt = te([
|
|
437
|
+
"ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-sm)]",
|
|
438
|
+
// `grow` lets FilterBar absorb the free space; `min-w-0` lets the
|
|
439
|
+
// QuickSearch slot inside shrink below its intrinsic width when the
|
|
440
|
+
// toolbar runs `flex-nowrap` at `sm` and above, so the trailing
|
|
441
|
+
// Actions cluster stays pinned on a single row.
|
|
442
|
+
"ds:grow ds:min-w-0"
|
|
443
|
+
]), Dt = te("ds:w-full ds:max-w-[24rem] ds:min-w-0", {
|
|
444
|
+
variants: {
|
|
445
|
+
// The masked "Search applied" state adds a Clear button beside the box.
|
|
446
|
+
hiddenQuery: {
|
|
447
|
+
true: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)] ds:[&>[data-component=text-input]]:min-w-0 ds:[&>[data-component=text-input]]:grow",
|
|
448
|
+
false: ""
|
|
449
|
+
}
|
|
450
|
+
},
|
|
451
|
+
defaultVariants: { hiddenQuery: !1 }
|
|
452
|
+
}), Mt = te([
|
|
453
|
+
"ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
454
|
+
"ds:ms-auto"
|
|
455
|
+
]), qt = te(
|
|
456
|
+
"ds:flex ds:items-center ds:gap-[var(--spacing-xs)] ds:rounded-[var(--radius-sm)] ds:px-[var(--spacing-xs)] ds:py-[var(--spacing-2xs,var(--spacing-xs))] ds:transition-colors",
|
|
457
|
+
{
|
|
458
|
+
variants: {
|
|
459
|
+
dragging: { true: "ds:opacity-50", false: "" },
|
|
460
|
+
dragOver: {
|
|
461
|
+
true: "ds:bg-[color:color-mix(in_srgb,var(--primary)_8%,transparent)]",
|
|
462
|
+
false: ""
|
|
463
|
+
}
|
|
464
|
+
},
|
|
465
|
+
defaultVariants: { dragging: !1, dragOver: !1 }
|
|
466
|
+
}
|
|
467
|
+
);
|
|
468
|
+
function vn(e) {
|
|
469
|
+
const { prefix: t } = e, r = e.useEngineSeam ?? (() => null), n = (i) => xt(
|
|
470
|
+
e.missingProvider(`${t}.${i}`),
|
|
471
|
+
r()
|
|
472
|
+
), a = W(
|
|
473
|
+
({ className: i, children: f, ...l }, u) => /* @__PURE__ */ s(
|
|
474
|
+
"div",
|
|
475
|
+
{
|
|
476
|
+
ref: u,
|
|
477
|
+
role: "toolbar",
|
|
478
|
+
className: It({ className: i }),
|
|
479
|
+
...l,
|
|
480
|
+
children: f
|
|
481
|
+
}
|
|
482
|
+
)
|
|
483
|
+
);
|
|
484
|
+
a.displayName = t;
|
|
485
|
+
const d = W(
|
|
486
|
+
({ className: i, children: f, ...l }, u) => /* @__PURE__ */ s(
|
|
487
|
+
"div",
|
|
488
|
+
{
|
|
489
|
+
ref: u,
|
|
490
|
+
className: Rt({ className: i }),
|
|
491
|
+
...l,
|
|
492
|
+
children: f
|
|
493
|
+
}
|
|
494
|
+
)
|
|
495
|
+
);
|
|
496
|
+
d.displayName = `${t}.FilterBar`;
|
|
497
|
+
const k = W(
|
|
498
|
+
({ className: i, children: f, ...l }, u) => /* @__PURE__ */ s(
|
|
499
|
+
"div",
|
|
500
|
+
{
|
|
501
|
+
ref: u,
|
|
502
|
+
className: Mt({ className: i }),
|
|
503
|
+
...l,
|
|
504
|
+
children: f
|
|
505
|
+
}
|
|
506
|
+
)
|
|
507
|
+
);
|
|
508
|
+
k.displayName = `${t}.Actions`;
|
|
509
|
+
function F(i) {
|
|
510
|
+
return i;
|
|
511
|
+
}
|
|
512
|
+
const I = W(
|
|
513
|
+
({ label: i, intent: f = "outline", ...l }, u) => {
|
|
514
|
+
const { t: c } = q("ui"), v = n("Print"), { onClick: y, ...S } = l;
|
|
515
|
+
return /* @__PURE__ */ s(
|
|
516
|
+
H,
|
|
517
|
+
{
|
|
518
|
+
ref: u,
|
|
519
|
+
type: "button",
|
|
520
|
+
intent: f,
|
|
521
|
+
icon: /* @__PURE__ */ s(Ce, { "aria-hidden": !0 }),
|
|
522
|
+
tooltip: i ?? c("dataTable.print"),
|
|
523
|
+
...S,
|
|
524
|
+
onClick: (m) => {
|
|
525
|
+
y == null || y(m), m.defaultPrevented || v.print();
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
);
|
|
529
|
+
}
|
|
530
|
+
);
|
|
531
|
+
I.displayName = `${t}.Print`;
|
|
532
|
+
const N = W(
|
|
533
|
+
({ onRefresh: i, label: f, intent: l = "outline", ...u }, c) => {
|
|
534
|
+
const { t: v } = q("ui"), { onClick: y, ...S } = u;
|
|
535
|
+
return /* @__PURE__ */ s(
|
|
536
|
+
H,
|
|
537
|
+
{
|
|
538
|
+
ref: c,
|
|
539
|
+
type: "button",
|
|
540
|
+
intent: l,
|
|
541
|
+
icon: /* @__PURE__ */ s(ke, { "aria-hidden": !0 }),
|
|
542
|
+
tooltip: f ?? v("dataTable.refresh", "Refresh"),
|
|
543
|
+
...S,
|
|
544
|
+
onClick: (m) => {
|
|
545
|
+
y == null || y(m), m.defaultPrevented || i();
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
);
|
|
549
|
+
}
|
|
550
|
+
);
|
|
551
|
+
N.displayName = `${t}.Refresh`;
|
|
552
|
+
const B = ({
|
|
553
|
+
childProps: i,
|
|
554
|
+
disabled: f
|
|
555
|
+
}) => {
|
|
556
|
+
const { t: l } = q("ui"), u = n("Print"), c = i.label;
|
|
557
|
+
return /* @__PURE__ */ s(
|
|
558
|
+
Y.Item,
|
|
559
|
+
{
|
|
560
|
+
startIcon: /* @__PURE__ */ s(Ce, { "aria-hidden": !0, className: "ds:size-4" }),
|
|
561
|
+
disabled: f,
|
|
562
|
+
onSelect: () => void u.print(),
|
|
563
|
+
children: typeof c == "string" ? c : l("dataTable.print")
|
|
564
|
+
}
|
|
565
|
+
);
|
|
566
|
+
};
|
|
567
|
+
B.displayName = `${t}.Print.MenuItem`;
|
|
568
|
+
const M = ({
|
|
569
|
+
childProps: i,
|
|
570
|
+
disabled: f
|
|
571
|
+
}) => {
|
|
572
|
+
const { t: l } = q("ui"), { label: u, onRefresh: c } = i;
|
|
573
|
+
return /* @__PURE__ */ s(
|
|
574
|
+
Y.Item,
|
|
575
|
+
{
|
|
576
|
+
startIcon: /* @__PURE__ */ s(ke, { "aria-hidden": !0, className: "ds:size-4" }),
|
|
577
|
+
disabled: f,
|
|
578
|
+
onSelect: () => c == null ? void 0 : c(),
|
|
579
|
+
children: u ?? l("dataTable.refresh", "Refresh")
|
|
580
|
+
}
|
|
581
|
+
);
|
|
582
|
+
};
|
|
583
|
+
M.displayName = `${t}.Refresh.MenuItem`;
|
|
584
|
+
const Q = Object.assign(I, {
|
|
585
|
+
overflowMenuItem: B
|
|
586
|
+
}), x = Object.assign(N, {
|
|
587
|
+
overflowMenuItem: M
|
|
588
|
+
}), P = ({
|
|
589
|
+
placeholder: i,
|
|
590
|
+
debounceMs: f = 150
|
|
591
|
+
}) => {
|
|
592
|
+
const { t: l } = q("ui"), u = n("QuickSearch"), c = u.features.syncsFilterInputs, v = ee(
|
|
593
|
+
u,
|
|
594
|
+
c ? ["quickFilter", "filter", "columns"] : []
|
|
595
|
+
), y = c && $e(u), [S, m] = G(
|
|
596
|
+
() => c && !$e(u) ? u.getQuickFilter() : ""
|
|
597
|
+
), T = X(c ? u.getQuickFilter() : ""), g = X(y), C = X(void 0), [E, R] = G(!1), _ = Le(), b = X(null);
|
|
598
|
+
J(() => {
|
|
599
|
+
if (!c) return;
|
|
600
|
+
const h = u.getQuickFilter();
|
|
601
|
+
if (g.current !== y) {
|
|
602
|
+
g.current = y, T.current = h, m(y ? "" : h);
|
|
603
|
+
return;
|
|
604
|
+
}
|
|
605
|
+
h !== T.current && (C.current && (window.clearTimeout(C.current), C.current = void 0, R(!1)), T.current = h, m(y && h !== "" ? "" : h));
|
|
606
|
+
}, [c, u, v, y]), J(
|
|
607
|
+
() => () => {
|
|
608
|
+
C.current && window.clearTimeout(C.current);
|
|
609
|
+
},
|
|
610
|
+
[]
|
|
611
|
+
);
|
|
612
|
+
const D = (h) => {
|
|
613
|
+
C.current && window.clearTimeout(C.current), R(!0), C.current = window.setTimeout(() => {
|
|
614
|
+
if (C.current = void 0, R(!1), c) {
|
|
615
|
+
if (u.getQuickFilter() !== T.current || h === T.current) return;
|
|
616
|
+
T.current = h;
|
|
617
|
+
}
|
|
618
|
+
u.setQuickFilter(h);
|
|
619
|
+
}, f);
|
|
620
|
+
}, j = (h) => {
|
|
621
|
+
m(h), D(h);
|
|
622
|
+
}, $ = y && !E && S === "" && u.getQuickFilter() !== "";
|
|
623
|
+
return (
|
|
624
|
+
// Slot wrapper caps the search at a legible width on desktop: without
|
|
625
|
+
// it, TextInput's `w-full` lets the QuickSearch absorb the entire
|
|
626
|
+
// FilterBar row and push trailing Actions onto a second line at
|
|
627
|
+
// 1024 / 1280 / 1440. `min-w-0` lets the slot shrink below `24rem`
|
|
628
|
+
// when the toolbar is squeezed on narrow viewports.
|
|
629
|
+
/* @__PURE__ */ z("div", { className: Dt({ hiddenQuery: $ }), children: [
|
|
630
|
+
/* @__PURE__ */ s(
|
|
631
|
+
Ue,
|
|
632
|
+
{
|
|
633
|
+
ref: b,
|
|
634
|
+
type: "search",
|
|
635
|
+
size: "sm",
|
|
636
|
+
...c ? { value: S } : {},
|
|
637
|
+
onChange: (h) => j(h.target.value),
|
|
638
|
+
placeholder: $ ? l("dataTable.quickSearch.appliedHidden", "Search applied") : i ?? l("dataTable.quickSearch.placeholder", "Search…"),
|
|
639
|
+
startAdornment: /* @__PURE__ */ s(et, { "aria-hidden": !0, className: "ds:size-4" }),
|
|
640
|
+
clearable: !0,
|
|
641
|
+
onClear: () => j(""),
|
|
642
|
+
"aria-label": l("dataTable.quickSearch.label", "Quick search"),
|
|
643
|
+
"aria-describedby": $ ? _ : void 0
|
|
644
|
+
}
|
|
645
|
+
),
|
|
646
|
+
$ ? /* @__PURE__ */ z(Ge, { children: [
|
|
647
|
+
/* @__PURE__ */ s("span", { id: _, className: "ds:sr-only", children: l(
|
|
648
|
+
"dataTable.quickSearch.appliedHiddenDescription",
|
|
649
|
+
"A search is applied. Its text is hidden in privacy mode."
|
|
650
|
+
) }),
|
|
651
|
+
/* @__PURE__ */ s(
|
|
652
|
+
H,
|
|
653
|
+
{
|
|
654
|
+
type: "button",
|
|
655
|
+
size: "sm",
|
|
656
|
+
intent: "ghost",
|
|
657
|
+
icon: /* @__PURE__ */ s(Ne, { "aria-hidden": !0 }),
|
|
658
|
+
tooltip: l("dataTable.quickSearch.clearApplied", "Clear search"),
|
|
659
|
+
onClick: () => {
|
|
660
|
+
var h;
|
|
661
|
+
j(""), (h = b.current) == null || h.focus();
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
)
|
|
665
|
+
] }) : null
|
|
666
|
+
] })
|
|
667
|
+
);
|
|
668
|
+
};
|
|
669
|
+
P.displayName = `${t}.QuickSearch`;
|
|
670
|
+
const V = () => {
|
|
671
|
+
var _;
|
|
672
|
+
const { t: i, i18n: f } = q("ui"), l = n("FilterChips");
|
|
673
|
+
ee(l, ["filter", "quickFilter", "columns"]);
|
|
674
|
+
const [, u] = We((b) => b + 1, 0), c = l.getFilterModel() ?? {}, v = l.getColumns(), y = new Map(
|
|
675
|
+
v.map((b) => [b.id, b])
|
|
676
|
+
), S = l.features.formatsFilterValues === !0, m = (b, D) => S ? i("dataTable.filterChips.chip", { column: b, value: D }) : `${b}: ${D}`, T = [];
|
|
677
|
+
for (const b of Object.keys(c)) {
|
|
678
|
+
const D = y.get(b);
|
|
679
|
+
if (!D) {
|
|
680
|
+
const h = (_ = l.getFilterLabel) == null ? void 0 : _.call(l, b);
|
|
681
|
+
T.push({ key: b, label: h ?? b });
|
|
682
|
+
continue;
|
|
683
|
+
}
|
|
684
|
+
const j = D.masked ? "" : wt(
|
|
685
|
+
c[b],
|
|
686
|
+
i,
|
|
687
|
+
kt(D, S, f.language)
|
|
688
|
+
), $ = D.label || b;
|
|
689
|
+
T.push({ key: b, label: j ? m($, j) : $ });
|
|
690
|
+
}
|
|
691
|
+
const g = l.getQuickFilter(), C = i("dataTable.quickSearch.label", "Quick search"), E = v.some((b) => b.masked === !0) ? C : m(C, g);
|
|
692
|
+
return T.length + (g ? 1 : 0) === 0 ? null : /* @__PURE__ */ z(
|
|
693
|
+
"div",
|
|
694
|
+
{
|
|
695
|
+
role: "group",
|
|
696
|
+
"aria-label": i("dataTable.filterChips.label", "Active filters"),
|
|
697
|
+
className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
698
|
+
children: [
|
|
699
|
+
g && /* @__PURE__ */ s(
|
|
700
|
+
xe,
|
|
701
|
+
{
|
|
702
|
+
label: E,
|
|
703
|
+
size: "sm",
|
|
704
|
+
variant: "brand",
|
|
705
|
+
fill: "solid",
|
|
706
|
+
onRemove: () => {
|
|
707
|
+
l.setQuickFilter(""), u();
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
),
|
|
711
|
+
T.map((b) => /* @__PURE__ */ s(
|
|
712
|
+
xe,
|
|
713
|
+
{
|
|
714
|
+
label: b.label,
|
|
715
|
+
size: "sm",
|
|
716
|
+
variant: "brand",
|
|
717
|
+
fill: "solid",
|
|
718
|
+
onRemove: () => {
|
|
719
|
+
l.setColumnFilter(b.key, null), u();
|
|
720
|
+
}
|
|
721
|
+
},
|
|
722
|
+
b.key
|
|
723
|
+
)),
|
|
724
|
+
/* @__PURE__ */ s(
|
|
725
|
+
oe,
|
|
726
|
+
{
|
|
727
|
+
type: "button",
|
|
728
|
+
intent: "ghost",
|
|
729
|
+
size: "sm",
|
|
730
|
+
onClick: () => {
|
|
731
|
+
l.clearAllFilters(), u();
|
|
732
|
+
},
|
|
733
|
+
startIcon: /* @__PURE__ */ s(Ne, { "aria-hidden": !0, className: "ds:size-4" }),
|
|
734
|
+
children: i("dataTable.filterChips.clearAll", "Clear all")
|
|
735
|
+
}
|
|
736
|
+
)
|
|
737
|
+
]
|
|
738
|
+
}
|
|
739
|
+
);
|
|
740
|
+
};
|
|
741
|
+
V.displayName = `${t}.FilterChips`;
|
|
742
|
+
const ge = ({ field: i, options: f, label: l }) => {
|
|
743
|
+
var C;
|
|
744
|
+
const { t: u } = q("ui"), c = n("FacetFilter"), v = c.features.syncsFilterInputs && !!c.getFacet, y = ee(c, v ? ["filter"] : []), [S, m] = G(null);
|
|
745
|
+
J(() => {
|
|
746
|
+
v && m(null);
|
|
747
|
+
}, [v, y]);
|
|
748
|
+
const T = S ? S.value : v ? ((C = c.getFacet) == null ? void 0 : C.call(c, i)) ?? null : null;
|
|
749
|
+
function g(E) {
|
|
750
|
+
m({ value: E }), c.setFacet(i, E);
|
|
751
|
+
}
|
|
752
|
+
return /* @__PURE__ */ s(
|
|
753
|
+
"div",
|
|
754
|
+
{
|
|
755
|
+
role: "group",
|
|
756
|
+
"aria-label": l ?? u("dataTable.facetFilter.label", "Filter"),
|
|
757
|
+
className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
758
|
+
children: f.map((E) => {
|
|
759
|
+
const R = T === E.value;
|
|
760
|
+
return /* @__PURE__ */ s(
|
|
761
|
+
oe,
|
|
762
|
+
{
|
|
763
|
+
type: "button",
|
|
764
|
+
size: "sm",
|
|
765
|
+
intent: R ? "primary" : "secondary",
|
|
766
|
+
"aria-pressed": R,
|
|
767
|
+
onClick: () => g(E.value),
|
|
768
|
+
children: E.label
|
|
769
|
+
},
|
|
770
|
+
String(E.value)
|
|
771
|
+
);
|
|
772
|
+
})
|
|
773
|
+
}
|
|
774
|
+
);
|
|
775
|
+
};
|
|
776
|
+
ge.displayName = `${t}.FacetFilter`;
|
|
777
|
+
const be = Ie(!1), ue = W(
|
|
778
|
+
({ children: i, label: f, intent: l = "outline", ...u }, c) => {
|
|
779
|
+
const { t: v } = q("ui");
|
|
780
|
+
return n("ExportMenu"), /* @__PURE__ */ s(be.Provider, { value: !0, children: /* @__PURE__ */ z(Y.Root, { children: [
|
|
781
|
+
/* @__PURE__ */ s(Y.Trigger, { asChild: !0, children: /* @__PURE__ */ s(
|
|
782
|
+
H,
|
|
783
|
+
{
|
|
784
|
+
ref: c,
|
|
785
|
+
type: "button",
|
|
786
|
+
intent: l,
|
|
787
|
+
icon: /* @__PURE__ */ s(Fe, { "aria-hidden": !0 }),
|
|
788
|
+
tooltip: f ?? v("dataTable.export.menu", "Export"),
|
|
789
|
+
"aria-label": f ?? v("dataTable.export.menu", "Export"),
|
|
790
|
+
"aria-haspopup": "menu",
|
|
791
|
+
...u
|
|
792
|
+
}
|
|
793
|
+
) }),
|
|
794
|
+
/* @__PURE__ */ s(Y.Content, { align: "end", sideOffset: 4, children: i })
|
|
795
|
+
] }) });
|
|
796
|
+
}
|
|
797
|
+
);
|
|
798
|
+
ue.displayName = `${t}.ExportMenu`;
|
|
799
|
+
function Pe(i, f) {
|
|
800
|
+
return f === "csv" ? i("dataTable.export.csv", "Export CSV") : f === "xlsx" ? i("dataTable.export.xlsx", "Export Excel") : f === "pdf" ? i("dataTable.export.pdf", "Export PDF") : i("dataTable.export.custom", "Export");
|
|
801
|
+
}
|
|
802
|
+
function Oe(i) {
|
|
803
|
+
return i === "xlsx" ? /* @__PURE__ */ s(tt, { "aria-hidden": !0, className: "ds:size-4" }) : i === "pdf" ? /* @__PURE__ */ s(nt, { "aria-hidden": !0, className: "ds:size-4" }) : /* @__PURE__ */ s(Fe, { "aria-hidden": !0, className: "ds:size-4" });
|
|
804
|
+
}
|
|
805
|
+
const he = ({
|
|
806
|
+
format: i,
|
|
807
|
+
label: f,
|
|
808
|
+
onSelect: l,
|
|
809
|
+
disabled: u,
|
|
810
|
+
description: c
|
|
811
|
+
}) => {
|
|
812
|
+
const { t: v } = q("ui");
|
|
813
|
+
if (!Re(be))
|
|
814
|
+
throw new Error(
|
|
815
|
+
`${t}.ExportMenu.Item must be rendered inside ${t}.ExportMenu.`
|
|
816
|
+
);
|
|
817
|
+
return /* @__PURE__ */ s(
|
|
818
|
+
Y.Item,
|
|
819
|
+
{
|
|
820
|
+
onSelect: l,
|
|
821
|
+
disabled: u,
|
|
822
|
+
description: c,
|
|
823
|
+
children: /* @__PURE__ */ z("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
824
|
+
Oe(i),
|
|
825
|
+
/* @__PURE__ */ s("span", { children: f ?? Pe(v, i) })
|
|
826
|
+
] })
|
|
827
|
+
}
|
|
828
|
+
);
|
|
829
|
+
};
|
|
830
|
+
he.displayName = `${t}.ExportMenu.Item`;
|
|
831
|
+
const ce = W(
|
|
832
|
+
function({ label: f, icon: l, footer: u, header: c, intent: v = "outline", ...y }, S) {
|
|
833
|
+
const { t: m, i18n: T } = q("ui"), g = n("ColumnToggle"), C = g.features.keyboardReorder, E = g.features.toolbarAnnouncesColumnMoves === !0, [R, _] = G(!1), [b, D] = G(""), j = ee(g, R ? ["columns"] : []), [$, h] = G([]), [ve, de] = G(null), [Ae, ne] = G(null), Z = X(/* @__PURE__ */ new Map()), re = X(
|
|
834
|
+
null
|
|
835
|
+
), U = ie(
|
|
836
|
+
() => g.getColumns().filter((o) => o.hiddenByPrivacy !== !0),
|
|
837
|
+
[g]
|
|
838
|
+
);
|
|
839
|
+
J(() => {
|
|
840
|
+
R && h(U());
|
|
841
|
+
}, [R, U, j]), J(() => {
|
|
842
|
+
R && D("");
|
|
843
|
+
}, [R]), je(() => {
|
|
844
|
+
var p;
|
|
845
|
+
const o = re.current;
|
|
846
|
+
if (!o) return;
|
|
847
|
+
re.current = null;
|
|
848
|
+
const w = $.findIndex((A) => A.id === o.id);
|
|
849
|
+
if (w < 0) return;
|
|
850
|
+
const O = (o.dir === "up" ? w === 0 : w === $.length - 1) ? o.dir === "up" ? "down" : "up" : o.dir;
|
|
851
|
+
(p = Z.current.get(`${o.id}:${O}`)) == null || p.focus();
|
|
852
|
+
}, [$]);
|
|
853
|
+
const ze = ie(
|
|
854
|
+
(o, w) => {
|
|
855
|
+
g.isReady() && (g.setColumnVisible(o, w), h(U()));
|
|
856
|
+
},
|
|
857
|
+
[g, U]
|
|
858
|
+
), Te = ie(
|
|
859
|
+
(o, w) => {
|
|
860
|
+
if (!g.isReady()) return;
|
|
861
|
+
const L = g.getColumns().find((pe) => pe.id === o);
|
|
862
|
+
g.moveColumn(o, w);
|
|
863
|
+
const O = U();
|
|
864
|
+
if (h(O), !E || !L) return;
|
|
865
|
+
const p = O.findIndex((pe) => pe.id === o), A = O[p];
|
|
866
|
+
if (!A) return;
|
|
867
|
+
const se = A.label || o;
|
|
868
|
+
if (A.pinned !== L.pinned) {
|
|
869
|
+
D(
|
|
870
|
+
A.pinned === "start" ? m("dataGrid.announce.columnPinnedStart", { column: se }) : A.pinned === "end" ? m("dataGrid.announce.columnPinnedEnd", { column: se }) : m("dataGrid.announce.columnUnpinned", { column: se })
|
|
871
|
+
);
|
|
872
|
+
return;
|
|
873
|
+
}
|
|
874
|
+
D(
|
|
875
|
+
m("dataGrid.announce.columnMoved", {
|
|
876
|
+
column: se,
|
|
877
|
+
position: me(p + 1, T.language),
|
|
878
|
+
total: me(O.length, T.language)
|
|
879
|
+
})
|
|
880
|
+
);
|
|
881
|
+
},
|
|
882
|
+
[g, U, E, m, T.language]
|
|
883
|
+
), fe = ie(
|
|
884
|
+
(o, w) => {
|
|
885
|
+
if (o === w) return;
|
|
886
|
+
const L = g.getColumns().findIndex((O) => O.id === w);
|
|
887
|
+
L < 0 || Te(o, L);
|
|
888
|
+
},
|
|
889
|
+
[g, Te]
|
|
890
|
+
), ae = f ?? m("dataTable.columnToggle");
|
|
891
|
+
return /* @__PURE__ */ z(le.Root, { open: R, onOpenChange: _, children: [
|
|
892
|
+
/* @__PURE__ */ s(le.Trigger, { asChild: !0, children: /* @__PURE__ */ s(
|
|
893
|
+
H,
|
|
894
|
+
{
|
|
895
|
+
ref: S,
|
|
896
|
+
type: "button",
|
|
897
|
+
intent: v,
|
|
898
|
+
icon: l ?? /* @__PURE__ */ s(at, { "aria-hidden": !0 }),
|
|
899
|
+
tooltip: ae,
|
|
900
|
+
"aria-label": ae,
|
|
901
|
+
"aria-haspopup": "dialog",
|
|
902
|
+
...y
|
|
903
|
+
}
|
|
904
|
+
) }),
|
|
905
|
+
/* @__PURE__ */ z(
|
|
906
|
+
le.Content,
|
|
907
|
+
{
|
|
908
|
+
size: "sm",
|
|
909
|
+
align: "end",
|
|
910
|
+
className: "ds:flex ds:max-h-[var(--radix-popover-content-available-height)] ds:flex-col",
|
|
911
|
+
children: [
|
|
912
|
+
/* @__PURE__ */ s(le.Heading, { children: ae }),
|
|
913
|
+
c ? /* @__PURE__ */ s("div", { className: "ds:mb-[var(--spacing-xs)] ds:border-b ds:border-[color:var(--border)] ds:pb-[var(--spacing-sm)]", children: c }) : null,
|
|
914
|
+
/* @__PURE__ */ s(
|
|
915
|
+
"ul",
|
|
916
|
+
{
|
|
917
|
+
className: "ds:flex ds:min-h-0 ds:flex-col ds:gap-[var(--spacing-xs)] ds:overflow-y-auto",
|
|
918
|
+
"aria-label": ae,
|
|
919
|
+
children: $.map((o, w) => {
|
|
920
|
+
const L = ve === o.id, O = Ae === o.id && ve !== o.id;
|
|
921
|
+
return /* @__PURE__ */ z(
|
|
922
|
+
"li",
|
|
923
|
+
{
|
|
924
|
+
draggable: !0,
|
|
925
|
+
onDragStart: (p) => {
|
|
926
|
+
de(o.id), p.dataTransfer.effectAllowed = "move", p.dataTransfer.setData("text/plain", o.id);
|
|
927
|
+
},
|
|
928
|
+
onDragOver: (p) => {
|
|
929
|
+
p.preventDefault(), p.dataTransfer.dropEffect = "move", ne(o.id);
|
|
930
|
+
},
|
|
931
|
+
onDragLeave: () => {
|
|
932
|
+
ne((p) => p === o.id ? null : p);
|
|
933
|
+
},
|
|
934
|
+
onDrop: (p) => {
|
|
935
|
+
p.preventDefault();
|
|
936
|
+
const A = p.dataTransfer.getData("text/plain");
|
|
937
|
+
A && fe(A, o.id), de(null), ne(null);
|
|
938
|
+
},
|
|
939
|
+
onDragEnd: () => {
|
|
940
|
+
de(null), ne(null);
|
|
941
|
+
},
|
|
942
|
+
className: qt({
|
|
943
|
+
dragging: L,
|
|
944
|
+
dragOver: O
|
|
945
|
+
}),
|
|
946
|
+
children: [
|
|
947
|
+
/* @__PURE__ */ s(
|
|
948
|
+
"span",
|
|
949
|
+
{
|
|
950
|
+
"aria-hidden": "true",
|
|
951
|
+
className: "ds:cursor-grab ds:text-[color:var(--muted-foreground)] ds:active:cursor-grabbing",
|
|
952
|
+
children: /* @__PURE__ */ s(Ye, { className: "ds:size-4" })
|
|
953
|
+
}
|
|
954
|
+
),
|
|
955
|
+
/* @__PURE__ */ s(
|
|
956
|
+
_e,
|
|
957
|
+
{
|
|
958
|
+
label: o.label,
|
|
959
|
+
checked: o.visible,
|
|
960
|
+
disabled: o.canHide === !1,
|
|
961
|
+
onCheckedChange: (p) => ze(o.id, p === !0)
|
|
962
|
+
}
|
|
963
|
+
),
|
|
964
|
+
C ? /* @__PURE__ */ z("span", { className: "ds:ms-auto ds:flex ds:items-center", children: [
|
|
965
|
+
/* @__PURE__ */ s(
|
|
966
|
+
H,
|
|
967
|
+
{
|
|
968
|
+
ref: (p) => {
|
|
969
|
+
p ? Z.current.set(`${o.id}:up`, p) : Z.current.delete(`${o.id}:up`);
|
|
970
|
+
},
|
|
971
|
+
type: "button",
|
|
972
|
+
size: "sm",
|
|
973
|
+
intent: "ghost",
|
|
974
|
+
icon: /* @__PURE__ */ s(Je, { "aria-hidden": !0 }),
|
|
975
|
+
"aria-label": m("dataGrid.toolbar.moveColumnUp", {
|
|
976
|
+
column: o.label
|
|
977
|
+
}),
|
|
978
|
+
disabled: !Ee($, w, w - 1),
|
|
979
|
+
onClick: () => {
|
|
980
|
+
re.current = { id: o.id, dir: "up" };
|
|
981
|
+
const p = $[w - 1];
|
|
982
|
+
p && fe(o.id, p.id);
|
|
983
|
+
}
|
|
984
|
+
}
|
|
985
|
+
),
|
|
986
|
+
/* @__PURE__ */ s(
|
|
987
|
+
H,
|
|
988
|
+
{
|
|
989
|
+
ref: (p) => {
|
|
990
|
+
p ? Z.current.set(`${o.id}:down`, p) : Z.current.delete(`${o.id}:down`);
|
|
991
|
+
},
|
|
992
|
+
type: "button",
|
|
993
|
+
size: "sm",
|
|
994
|
+
intent: "ghost",
|
|
995
|
+
icon: /* @__PURE__ */ s(Ke, { "aria-hidden": !0 }),
|
|
996
|
+
"aria-label": m("dataGrid.toolbar.moveColumnDown", {
|
|
997
|
+
column: o.label
|
|
998
|
+
}),
|
|
999
|
+
disabled: !Ee($, w, w + 1),
|
|
1000
|
+
onClick: () => {
|
|
1001
|
+
re.current = { id: o.id, dir: "down" };
|
|
1002
|
+
const p = $[w + 1];
|
|
1003
|
+
p && fe(o.id, p.id);
|
|
1004
|
+
}
|
|
1005
|
+
}
|
|
1006
|
+
)
|
|
1007
|
+
] }) : null
|
|
1008
|
+
]
|
|
1009
|
+
},
|
|
1010
|
+
o.id
|
|
1011
|
+
);
|
|
1012
|
+
})
|
|
1013
|
+
}
|
|
1014
|
+
),
|
|
1015
|
+
E ? /* @__PURE__ */ s("span", { role: "status", className: "ds:sr-only", children: b }) : null,
|
|
1016
|
+
C && g.resetColumns ? /* @__PURE__ */ s("div", { className: "ds:mt-[var(--spacing-xs)] ds:border-t ds:border-[color:var(--border)] ds:pt-[var(--spacing-sm)]", children: /* @__PURE__ */ s(
|
|
1017
|
+
oe,
|
|
1018
|
+
{
|
|
1019
|
+
type: "button",
|
|
1020
|
+
intent: "ghost",
|
|
1021
|
+
size: "sm",
|
|
1022
|
+
startIcon: /* @__PURE__ */ s(Ze, { "aria-hidden": !0, className: "ds:size-4" }),
|
|
1023
|
+
onClick: () => {
|
|
1024
|
+
var o;
|
|
1025
|
+
(o = g.resetColumns) == null || o.call(g), h(U());
|
|
1026
|
+
},
|
|
1027
|
+
children: m("dataGrid.toolbar.resetColumns")
|
|
1028
|
+
}
|
|
1029
|
+
) }) : null,
|
|
1030
|
+
u ? /* @__PURE__ */ s("div", { className: "ds:mt-[var(--spacing-xs)] ds:border-t ds:border-[color:var(--border)] ds:pt-[var(--spacing-sm)]", children: u }) : null
|
|
1031
|
+
]
|
|
1032
|
+
}
|
|
1033
|
+
)
|
|
1034
|
+
] });
|
|
1035
|
+
}
|
|
1036
|
+
);
|
|
1037
|
+
ce.displayName = `${t}.ColumnToggle`;
|
|
1038
|
+
const ye = W(
|
|
1039
|
+
({ label: i, icon: f, onAction: l, variant: u = "default", size: c = "sm", ...v }, y) => {
|
|
1040
|
+
const { t: S } = q("ui"), m = n("BulkAction");
|
|
1041
|
+
ee(m, ["selection"]);
|
|
1042
|
+
const T = m.getSelectionCount();
|
|
1043
|
+
return T === 0 ? null : /* @__PURE__ */ z(
|
|
1044
|
+
oe,
|
|
1045
|
+
{
|
|
1046
|
+
ref: y,
|
|
1047
|
+
type: "button",
|
|
1048
|
+
intent: u === "destructive" ? "destructive" : "secondary",
|
|
1049
|
+
size: c,
|
|
1050
|
+
startIcon: $t(f),
|
|
1051
|
+
onClick: () => l(Et(m)),
|
|
1052
|
+
"aria-label": `${i} (${S("dataTable.bulkAction", { count: T })})`,
|
|
1053
|
+
...v,
|
|
1054
|
+
children: [
|
|
1055
|
+
/* @__PURE__ */ s("span", { children: i }),
|
|
1056
|
+
/* @__PURE__ */ s(
|
|
1057
|
+
"span",
|
|
1058
|
+
{
|
|
1059
|
+
"aria-hidden": "true",
|
|
1060
|
+
className: "ds:ms-[var(--spacing-xs)] ds:opacity-80",
|
|
1061
|
+
children: S("dataTable.bulkAction", { count: T })
|
|
1062
|
+
}
|
|
1063
|
+
)
|
|
1064
|
+
]
|
|
1065
|
+
}
|
|
1066
|
+
);
|
|
1067
|
+
}
|
|
1068
|
+
);
|
|
1069
|
+
ye.displayName = `${t}.BulkAction`;
|
|
1070
|
+
for (const i of [I, N, ue, ce])
|
|
1071
|
+
i.rendersIconButton = !0;
|
|
1072
|
+
return {
|
|
1073
|
+
Root: a,
|
|
1074
|
+
FilterBar: d,
|
|
1075
|
+
Actions: k,
|
|
1076
|
+
Print: Q,
|
|
1077
|
+
Refresh: x,
|
|
1078
|
+
QuickSearch: P,
|
|
1079
|
+
FilterChips: V,
|
|
1080
|
+
FacetFilter: ge,
|
|
1081
|
+
ExportMenu: ue,
|
|
1082
|
+
ExportMenuItemBase: he,
|
|
1083
|
+
ColumnToggle: ce,
|
|
1084
|
+
BulkAction: ye,
|
|
1085
|
+
useSeam: n
|
|
1086
|
+
};
|
|
1087
|
+
}
|
|
1088
|
+
export {
|
|
1089
|
+
yn as T,
|
|
1090
|
+
Se as a,
|
|
1091
|
+
ut as b,
|
|
1092
|
+
ct as c,
|
|
1093
|
+
pt as d,
|
|
1094
|
+
vn as e,
|
|
1095
|
+
ot as f,
|
|
1096
|
+
mn as g,
|
|
1097
|
+
fn as h,
|
|
1098
|
+
sn as i,
|
|
1099
|
+
dn as j,
|
|
1100
|
+
un as k,
|
|
1101
|
+
ln as l,
|
|
1102
|
+
on as m,
|
|
1103
|
+
dt as n,
|
|
1104
|
+
lt as o,
|
|
1105
|
+
bn as p,
|
|
1106
|
+
hn as q,
|
|
1107
|
+
gn as r,
|
|
1108
|
+
cn as s,
|
|
1109
|
+
it as t,
|
|
1110
|
+
Et as u,
|
|
1111
|
+
pn as w
|
|
1112
|
+
};
|
|
1113
|
+
//# sourceMappingURL=parts-Wz2LeGnH.js.map
|