@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,932 @@
|
|
|
1
|
+
import { jsxs as ie, jsx as x } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect as oe, useMemo as he, useRef as f, useState as ke, useCallback as m, forwardRef as bt, useId as vt, useImperativeHandle as gt } from "react";
|
|
3
|
+
import * as $e from "@radix-ui/react-tabs";
|
|
4
|
+
import { c as ot, a as ye } from "./index-D2ZczOXr.js";
|
|
5
|
+
import { useTranslation as ct } from "react-i18next";
|
|
6
|
+
import { I as He } from "./icon-button-S8_weU3g.js";
|
|
7
|
+
import { P as Ue } from "./popover-CN5IsOeS.js";
|
|
8
|
+
import { T as Tt } from "./text-input-B6iAgCr3.js";
|
|
9
|
+
import { u as ht } from "./use-direction-Dp8h70PP.js";
|
|
10
|
+
import { u as yt } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
11
|
+
import { u as kt } from "./registry-DvAUVLHh.js";
|
|
12
|
+
import { u as Ze } from "./use-controllable-state-BiY4xTzM.js";
|
|
13
|
+
import { X as et } from "./x-B5YnXwCz.js";
|
|
14
|
+
import { P as wt } from "./plus-DzMQ_c6b.js";
|
|
15
|
+
import { C as It } from "./check-DrFSN__t.js";
|
|
16
|
+
let tt = 0;
|
|
17
|
+
function xt() {
|
|
18
|
+
try {
|
|
19
|
+
if (typeof crypto < "u" && "randomUUID" in crypto)
|
|
20
|
+
return crypto.randomUUID();
|
|
21
|
+
} catch {
|
|
22
|
+
}
|
|
23
|
+
return tt += 1, `tab-${tt}`;
|
|
24
|
+
}
|
|
25
|
+
function Qe(t) {
|
|
26
|
+
return typeof t == "object" && t !== null && !Array.isArray(t) && Object.getPrototypeOf(t) !== null;
|
|
27
|
+
}
|
|
28
|
+
function Nt(t) {
|
|
29
|
+
return !Qe(t) || t.v !== 1 || !Array.isArray(t.tabs) ? !1 : t.tabs.every(
|
|
30
|
+
(n) => Qe(n) && typeof n.id == "string" && typeof n.label == "string" && Qe(n.filterModel)
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
function rt(t, n) {
|
|
34
|
+
if (typeof window > "u") return null;
|
|
35
|
+
try {
|
|
36
|
+
const i = window.localStorage.getItem(`${t}${n}`);
|
|
37
|
+
if (!i) return null;
|
|
38
|
+
const d = JSON.parse(i);
|
|
39
|
+
return Nt(d) ? d : null;
|
|
40
|
+
} catch {
|
|
41
|
+
return null;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
function Mt(t, n) {
|
|
45
|
+
const i = new Map(n.map((d) => [d.id, d.label]));
|
|
46
|
+
return t.map((d) => typeof d.userNamed == "boolean" ? d : d.locked ? { ...d, userNamed: !1 } : i.get(d.id) === d.label ? { ...d, userNamed: !1 } : { ...d, userNamed: !0 });
|
|
47
|
+
}
|
|
48
|
+
function nt(t) {
|
|
49
|
+
return typeof t.userNamed == "boolean" ? t : { ...t, userNamed: !1 };
|
|
50
|
+
}
|
|
51
|
+
function Rt(t, n, i, d, g) {
|
|
52
|
+
try {
|
|
53
|
+
const w = {
|
|
54
|
+
v: 1,
|
|
55
|
+
tabs: i,
|
|
56
|
+
...g && d ? { activeTabId: d } : {}
|
|
57
|
+
};
|
|
58
|
+
window.localStorage.setItem(`${t}${n}`, JSON.stringify(w));
|
|
59
|
+
} catch {
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
function Be(t) {
|
|
63
|
+
return JSON.stringify(t, (n, i) => {
|
|
64
|
+
if (i && typeof i == "object" && !Array.isArray(i)) {
|
|
65
|
+
const d = i;
|
|
66
|
+
return Object.keys(d).sort().reduce((g, w) => (g[w] = d[w], g), {});
|
|
67
|
+
}
|
|
68
|
+
return i;
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
function J(t, n) {
|
|
72
|
+
return Be({
|
|
73
|
+
filterModel: t.filterModel ?? {},
|
|
74
|
+
quickFilter: n && t.quickFilter || ""
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
function Se(t, n) {
|
|
78
|
+
var i;
|
|
79
|
+
try {
|
|
80
|
+
return new Set(((i = t.privateFilterKeys) == null ? void 0 : i.call(t, n)) ?? []);
|
|
81
|
+
} catch {
|
|
82
|
+
return new Set(Object.keys(n));
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
function G(t) {
|
|
86
|
+
if (!t.isPrivacyMode) return "off";
|
|
87
|
+
try {
|
|
88
|
+
const n = t.isPrivacyMode();
|
|
89
|
+
return n === void 0 ? "unknown" : n === !0 ? "on" : "off";
|
|
90
|
+
} catch {
|
|
91
|
+
return "on";
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
function st(t) {
|
|
95
|
+
return G(t) === "on";
|
|
96
|
+
}
|
|
97
|
+
const dt = (t, n) => Be(t) === Be(n);
|
|
98
|
+
function Je(t, n) {
|
|
99
|
+
return n.size === 0 ? t : Object.fromEntries(
|
|
100
|
+
Object.entries(t).filter(([i]) => !n.has(i))
|
|
101
|
+
);
|
|
102
|
+
}
|
|
103
|
+
function _e(t, n) {
|
|
104
|
+
return Object.fromEntries(
|
|
105
|
+
Object.entries(t).filter(([i]) => n.has(i))
|
|
106
|
+
);
|
|
107
|
+
}
|
|
108
|
+
function at(t, n) {
|
|
109
|
+
const i = n.filterModel ?? {}, d = {
|
|
110
|
+
...n,
|
|
111
|
+
filterModel: Je(i, Se(t, i))
|
|
112
|
+
};
|
|
113
|
+
return delete d.quickFilter, d;
|
|
114
|
+
}
|
|
115
|
+
function it(t, n, i) {
|
|
116
|
+
const d = n.filterModel ?? {}, g = Se(t, d), w = (i == null ? void 0 : i.filterModel) ?? {}, ee = Object.fromEntries(
|
|
117
|
+
Object.entries(_e(d, g)).filter(
|
|
118
|
+
([te, ce]) => Object.prototype.hasOwnProperty.call(w, te) && dt(w[te], ce)
|
|
119
|
+
)
|
|
120
|
+
), W = {
|
|
121
|
+
...n,
|
|
122
|
+
filterModel: { ...Je(d, g), ...ee }
|
|
123
|
+
};
|
|
124
|
+
return delete W.quickFilter, n.quickFilter && (i == null ? void 0 : i.quickFilter) === n.quickFilter && (W.quickFilter = n.quickFilter), W;
|
|
125
|
+
}
|
|
126
|
+
function Ft(t, n) {
|
|
127
|
+
return Object.keys(t.filterModel ?? {}).length > 0 || n && !!t.quickFilter;
|
|
128
|
+
}
|
|
129
|
+
function St(t) {
|
|
130
|
+
var K, Me;
|
|
131
|
+
const {
|
|
132
|
+
adapter: n,
|
|
133
|
+
storagePrefix: i,
|
|
134
|
+
componentName: d,
|
|
135
|
+
tabs: g,
|
|
136
|
+
defaultTabs: w,
|
|
137
|
+
onTabsChange: ee,
|
|
138
|
+
activeTabId: W,
|
|
139
|
+
defaultActiveTabId: te,
|
|
140
|
+
onActiveTabChange: ce,
|
|
141
|
+
persistKey: $,
|
|
142
|
+
persistActiveTab: de = !1,
|
|
143
|
+
captureQuickFilter: T = !1,
|
|
144
|
+
applyOnActivate: D = !0,
|
|
145
|
+
maxTabs: ue = 8,
|
|
146
|
+
createTab: re,
|
|
147
|
+
makeTabId: we = xt
|
|
148
|
+
} = t, { t: X } = ct("ui"), N = g !== void 0;
|
|
149
|
+
oe(() => {
|
|
150
|
+
}, [d, N, $]);
|
|
151
|
+
const M = he(
|
|
152
|
+
() => typeof n.isPrivacyMode == "function",
|
|
153
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
154
|
+
[]
|
|
155
|
+
), Y = he(() => {
|
|
156
|
+
const r = w && w.length > 0 ? w : [
|
|
157
|
+
{
|
|
158
|
+
id: "default",
|
|
159
|
+
label: X("dataTableTabs.newTabName", { number: 1 }),
|
|
160
|
+
filterModel: {}
|
|
161
|
+
}
|
|
162
|
+
];
|
|
163
|
+
return M ? r.map(nt) : r;
|
|
164
|
+
}, []), R = he(() => !$ || N ? null : rt(i, $), []), Oe = he(
|
|
165
|
+
() => R && M ? Mt(R.tabs, Y) : (R == null ? void 0 : R.tabs) ?? null,
|
|
166
|
+
[R, Y, M]
|
|
167
|
+
), Ie = de && (R != null && R.activeTabId) && R.tabs.some((r) => r.id === R.activeTabId) ? R.activeTabId : void 0, C = f(n);
|
|
168
|
+
C.current = n;
|
|
169
|
+
const ne = f(!1), [xe, qe] = ke(
|
|
170
|
+
() => G(n)
|
|
171
|
+
), le = f(/* @__PURE__ */ new Set()), Ce = m(
|
|
172
|
+
(r) => r.userNamed === !0 || r.userNamed !== !1 && le.current.has(r.id),
|
|
173
|
+
[]
|
|
174
|
+
);
|
|
175
|
+
f(/* @__PURE__ */ new Set()), oe(() => {
|
|
176
|
+
}, [d, g, M]), f(/* @__PURE__ */ new Set()), oe(() => {
|
|
177
|
+
}, [d, g, M, xe]);
|
|
178
|
+
const h = m(() => {
|
|
179
|
+
qe(G(C.current));
|
|
180
|
+
}, []), fe = f(ee);
|
|
181
|
+
fe.current = ee;
|
|
182
|
+
const Ne = f(g);
|
|
183
|
+
Ne.current = g;
|
|
184
|
+
const se = f(null);
|
|
185
|
+
se.current === null && (se.current = new Map(
|
|
186
|
+
(w ?? []).map((r) => [r.id, r])
|
|
187
|
+
));
|
|
188
|
+
const ae = m(
|
|
189
|
+
(r) => {
|
|
190
|
+
const u = fe.current;
|
|
191
|
+
if (!u) return;
|
|
192
|
+
const l = C.current;
|
|
193
|
+
let o = r;
|
|
194
|
+
if (G(l) !== "off") {
|
|
195
|
+
const c = N ? new Map((Ne.current ?? []).map((s) => [s.id, s])) : se.current ?? /* @__PURE__ */ new Map();
|
|
196
|
+
o = r.map(
|
|
197
|
+
(s) => it(l, s, c.get(s.id))
|
|
198
|
+
);
|
|
199
|
+
}
|
|
200
|
+
N || (se.current = new Map(o.map((c) => [c.id, c]))), u(o);
|
|
201
|
+
},
|
|
202
|
+
[N]
|
|
203
|
+
), P = m(
|
|
204
|
+
(r, u) => {
|
|
205
|
+
var s;
|
|
206
|
+
if (!$ || N) return;
|
|
207
|
+
const l = C.current, o = G(l);
|
|
208
|
+
if (o === "unknown") {
|
|
209
|
+
ne.current = !0;
|
|
210
|
+
return;
|
|
211
|
+
}
|
|
212
|
+
ne.current = !1;
|
|
213
|
+
let c = r;
|
|
214
|
+
if (o === "on") {
|
|
215
|
+
const k = new Map(
|
|
216
|
+
(((s = rt(i, $)) == null ? void 0 : s.tabs) ?? []).map((y) => [
|
|
217
|
+
y.id,
|
|
218
|
+
y
|
|
219
|
+
])
|
|
220
|
+
);
|
|
221
|
+
c = r.map(
|
|
222
|
+
(y) => it(l, y, k.get(y.id))
|
|
223
|
+
);
|
|
224
|
+
}
|
|
225
|
+
Rt(
|
|
226
|
+
i,
|
|
227
|
+
$,
|
|
228
|
+
c,
|
|
229
|
+
u,
|
|
230
|
+
de
|
|
231
|
+
);
|
|
232
|
+
},
|
|
233
|
+
[$, N, de, i]
|
|
234
|
+
), [me, E] = Ze({
|
|
235
|
+
value: g,
|
|
236
|
+
defaultValue: Oe ?? Y,
|
|
237
|
+
onChange: ae
|
|
238
|
+
}), A = he(() => me ?? Y, [me, Y]), [pe, j] = Ze({
|
|
239
|
+
value: W,
|
|
240
|
+
defaultValue: Ie ?? te ?? ((K = A[0]) == null ? void 0 : K.id) ?? "default",
|
|
241
|
+
onChange: ce
|
|
242
|
+
}), B = pe ?? ((Me = A[0]) == null ? void 0 : Me.id) ?? "default", be = f(P);
|
|
243
|
+
be.current = P;
|
|
244
|
+
const I = f(A);
|
|
245
|
+
I.current = A;
|
|
246
|
+
const v = f(B);
|
|
247
|
+
v.current = B;
|
|
248
|
+
const V = f(null), L = m(
|
|
249
|
+
(r) => {
|
|
250
|
+
const u = r(I.current);
|
|
251
|
+
I.current = u, E(u), P(u, v.current);
|
|
252
|
+
},
|
|
253
|
+
[E, P]
|
|
254
|
+
), z = m(() => {
|
|
255
|
+
const r = C.current, u = r.read({
|
|
256
|
+
includeQuickFilter: T
|
|
257
|
+
});
|
|
258
|
+
if (!u) return;
|
|
259
|
+
const l = J(u, T);
|
|
260
|
+
if (V.current !== null) {
|
|
261
|
+
if (l === V.current) return;
|
|
262
|
+
V.current = null;
|
|
263
|
+
}
|
|
264
|
+
const o = I.current.find(
|
|
265
|
+
(k) => k.id === v.current
|
|
266
|
+
);
|
|
267
|
+
let c = u.filterModel ?? {}, s = u.quickFilter ? u.quickFilter : void 0;
|
|
268
|
+
if (st(r)) {
|
|
269
|
+
const k = c, y = (o == null ? void 0 : o.filterModel) ?? {}, S = Se(r, { ...y, ...k }), Z = Object.fromEntries(
|
|
270
|
+
Object.entries(_e(y, S)).filter(
|
|
271
|
+
([Q, Re]) => Object.prototype.hasOwnProperty.call(k, Q) && dt(k[Q], Re)
|
|
272
|
+
)
|
|
273
|
+
);
|
|
274
|
+
c = { ...Je(k, S), ...Z }, s = o != null && o.quickFilter && u.quickFilter === o.quickFilter ? o.quickFilter : void 0;
|
|
275
|
+
}
|
|
276
|
+
o && J(o, T) === J({ filterModel: c, quickFilter: s }, T) || L(
|
|
277
|
+
(k) => k.map(
|
|
278
|
+
(y) => y.id === v.current ? {
|
|
279
|
+
...y,
|
|
280
|
+
filterModel: c,
|
|
281
|
+
...T ? { quickFilter: s } : {}
|
|
282
|
+
} : y
|
|
283
|
+
)
|
|
284
|
+
);
|
|
285
|
+
}, [T, L]), F = m(
|
|
286
|
+
(r, u) => {
|
|
287
|
+
if (!r) return;
|
|
288
|
+
const l = u ?? {
|
|
289
|
+
filterModel: r.filterModel ?? {},
|
|
290
|
+
quickFilter: r.quickFilter
|
|
291
|
+
}, o = J(l, T);
|
|
292
|
+
V.current = o;
|
|
293
|
+
const c = C.current.apply(l, {
|
|
294
|
+
includeQuickFilter: T
|
|
295
|
+
});
|
|
296
|
+
if (!c) return;
|
|
297
|
+
const s = J(c, T);
|
|
298
|
+
V.current = s;
|
|
299
|
+
},
|
|
300
|
+
[T, d]
|
|
301
|
+
), H = f(z);
|
|
302
|
+
H.current = z;
|
|
303
|
+
const U = f(F);
|
|
304
|
+
U.current = F, oe(
|
|
305
|
+
() => n.subscribe({
|
|
306
|
+
onChange: () => H.current(),
|
|
307
|
+
onPrivacyChange: h,
|
|
308
|
+
onReady: () => {
|
|
309
|
+
if (h(), ne.current && be.current(I.current, v.current), !D) return;
|
|
310
|
+
const r = I.current.find(
|
|
311
|
+
(l) => l.id === v.current
|
|
312
|
+
);
|
|
313
|
+
if (!r || !Ft(r, T)) return;
|
|
314
|
+
const u = C.current.read({
|
|
315
|
+
includeQuickFilter: T
|
|
316
|
+
});
|
|
317
|
+
u && J(u, T) === J(r, T) || U.current(r);
|
|
318
|
+
}
|
|
319
|
+
}),
|
|
320
|
+
[n, D, T, h]
|
|
321
|
+
);
|
|
322
|
+
const Pe = m(
|
|
323
|
+
(r) => {
|
|
324
|
+
if (r === v.current) return;
|
|
325
|
+
const u = I.current.find((l) => l.id === r);
|
|
326
|
+
u && (z(), j(r), v.current = r, P(I.current, r), V.current = null, D && F(u));
|
|
327
|
+
},
|
|
328
|
+
[D, F, z, j, P]
|
|
329
|
+
), ve = m(
|
|
330
|
+
(r, u) => {
|
|
331
|
+
if (I.current.length >= ue) return v.current;
|
|
332
|
+
const l = C.current, o = I.current.length + 1, c = l.read({
|
|
333
|
+
includeQuickFilter: T
|
|
334
|
+
});
|
|
335
|
+
let s;
|
|
336
|
+
re ? s = M ? nt(re(o)) : re(o) : s = {
|
|
337
|
+
id: we(),
|
|
338
|
+
label: r ?? X("dataTableTabs.newTabName", { number: o }),
|
|
339
|
+
// A person added it (the strip, the handle or an agent): under
|
|
340
|
+
// privacy mode its label shows as "Saved view N".
|
|
341
|
+
...M ? { userNamed: !0 } : {},
|
|
342
|
+
filterModel: u ?? (c == null ? void 0 : c.filterModel) ?? {},
|
|
343
|
+
...T && u === void 0 && (c != null && c.quickFilter) ? { quickFilter: c.quickFilter } : {}
|
|
344
|
+
};
|
|
345
|
+
const k = st(l);
|
|
346
|
+
k && (s = at(l, s));
|
|
347
|
+
const y = (S) => J(
|
|
348
|
+
k ? at(l, S) : S,
|
|
349
|
+
T
|
|
350
|
+
);
|
|
351
|
+
if (s.userNamed === !0 && le.current.add(s.id), j(s.id), v.current = s.id, L((S) => [...S, s]), V.current = null, D && c && y(s) !== y(c))
|
|
352
|
+
if (k) {
|
|
353
|
+
const S = c.filterModel ?? {};
|
|
354
|
+
F(s, {
|
|
355
|
+
filterModel: {
|
|
356
|
+
...s.filterModel ?? {},
|
|
357
|
+
..._e(S, Se(l, S))
|
|
358
|
+
},
|
|
359
|
+
quickFilter: c.quickFilter
|
|
360
|
+
});
|
|
361
|
+
} else
|
|
362
|
+
F(s);
|
|
363
|
+
return s.id;
|
|
364
|
+
},
|
|
365
|
+
[
|
|
366
|
+
D,
|
|
367
|
+
F,
|
|
368
|
+
T,
|
|
369
|
+
d,
|
|
370
|
+
re,
|
|
371
|
+
we,
|
|
372
|
+
ue,
|
|
373
|
+
j,
|
|
374
|
+
L,
|
|
375
|
+
X,
|
|
376
|
+
M
|
|
377
|
+
]
|
|
378
|
+
), _ = m(
|
|
379
|
+
(r, u) => {
|
|
380
|
+
const l = u.trim();
|
|
381
|
+
if (!l) return;
|
|
382
|
+
const o = I.current.find((c) => c.id === r);
|
|
383
|
+
M && o && !o.locked && le.current.add(r), L(
|
|
384
|
+
(c) => c.map(
|
|
385
|
+
(s) => s.id === r && !s.locked ? {
|
|
386
|
+
...s,
|
|
387
|
+
label: l,
|
|
388
|
+
...M ? { userNamed: !0 } : {}
|
|
389
|
+
} : s
|
|
390
|
+
)
|
|
391
|
+
);
|
|
392
|
+
},
|
|
393
|
+
[L, M]
|
|
394
|
+
), ge = m(
|
|
395
|
+
(r) => {
|
|
396
|
+
const u = I.current, l = u.find((s) => s.id === r);
|
|
397
|
+
if (!l || l.locked || u.length <= 1) return;
|
|
398
|
+
const o = u.findIndex((s) => s.id === r), c = u.filter((s) => s.id !== r);
|
|
399
|
+
if (L(() => c), v.current === r) {
|
|
400
|
+
const s = c[Math.max(0, o - 1)];
|
|
401
|
+
s && (j(s.id), v.current = s.id, P(c, s.id), V.current = null, D && F(s));
|
|
402
|
+
}
|
|
403
|
+
},
|
|
404
|
+
[D, F, P, j, L]
|
|
405
|
+
), O = m(() => I.current, []), Ae = m(() => v.current, []);
|
|
406
|
+
return {
|
|
407
|
+
tabs: A,
|
|
408
|
+
activeTabId: B,
|
|
409
|
+
selectTab: Pe,
|
|
410
|
+
addTab: ve,
|
|
411
|
+
renameTab: _,
|
|
412
|
+
removeTab: ge,
|
|
413
|
+
atCapacity: A.length >= ue,
|
|
414
|
+
getTabsSnapshot: O,
|
|
415
|
+
getActiveTabIdSnapshot: Ae,
|
|
416
|
+
privacy: xe,
|
|
417
|
+
isUserNamed: Ce
|
|
418
|
+
};
|
|
419
|
+
}
|
|
420
|
+
const Ot = ot(
|
|
421
|
+
[
|
|
422
|
+
// The strip scrolls horizontally when tabs overflow; focusable tabs inside
|
|
423
|
+
// (with an inset focus ring, below) satisfy scrollable-region-focusable.
|
|
424
|
+
// No baseline border and no leading padding: the first tab sits flush with
|
|
425
|
+
// the table's inline-start edge and the active tab merges straight into the
|
|
426
|
+
// table header below; the table's own rounded top is the only edge drawn.
|
|
427
|
+
"ds:flex ds:items-end ds:gap-[var(--spacing-2xs)] ds:overflow-x-auto",
|
|
428
|
+
"ds:pe-[var(--spacing-2xs)]"
|
|
429
|
+
],
|
|
430
|
+
{
|
|
431
|
+
variants: {
|
|
432
|
+
size: {
|
|
433
|
+
md: "",
|
|
434
|
+
lg: ""
|
|
435
|
+
}
|
|
436
|
+
},
|
|
437
|
+
defaultVariants: { size: "md" }
|
|
438
|
+
}
|
|
439
|
+
), qt = ot(
|
|
440
|
+
[
|
|
441
|
+
// `group` so the pointer-only close mark can reveal on hover, focus or
|
|
442
|
+
// active; `relative` so it can sit absolutely in the trailing padding.
|
|
443
|
+
"ds:group ds:relative ds:inline-flex ds:items-center ds:justify-center",
|
|
444
|
+
"ds:whitespace-nowrap ds:select-none ds:cursor-pointer ds:shrink-0",
|
|
445
|
+
// Logical top corners so the leading corner can be squared in either text
|
|
446
|
+
// direction (see the first-tab override and the panel corner rule).
|
|
447
|
+
// Inactive tabs take a crisp fill so they read clearly against a warm page;
|
|
448
|
+
// muted text keeps them clearly unselected. (The focus ring is INSET, see
|
|
449
|
+
// FOCUS_RING, so the scroll container never clips it.)
|
|
450
|
+
"ds:[border-start-start-radius:var(--radius-md)] ds:[border-start-end-radius:var(--radius-md)]",
|
|
451
|
+
"ds:bg-background ds:text-muted-foreground",
|
|
452
|
+
// Match the table header's eyebrow treatment (uppercase, tracked, medium)
|
|
453
|
+
// so the strip reads as one unit with the header below. `text-transform`
|
|
454
|
+
// is display-only: the stored label keeps its case for the rename editor,
|
|
455
|
+
// and uppercase is a no-op on caseless scripts (Arabic, CJK).
|
|
456
|
+
"ds:font-medium ds:uppercase ds:tracking-[var(--letter-spacing-uppercase)]",
|
|
457
|
+
"ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
|
|
458
|
+
"ds:hover:bg-muted/40 ds:hover:text-foreground",
|
|
459
|
+
// The focus ring is applied by the component (FOCUS_RING), gated on
|
|
460
|
+
// keyboard modality: Radix focuses the trigger on click, which would
|
|
461
|
+
// otherwise show a `:focus-visible` ring on a plain mouse selection.
|
|
462
|
+
// Active = the table header surface (`--muted`): a 1px downward pull fuses
|
|
463
|
+
// it into one continuous sheet with the header below.
|
|
464
|
+
"ds:data-[state=active]:bg-muted ds:data-[state=active]:text-foreground",
|
|
465
|
+
"ds:data-[state=active]:z-[1]",
|
|
466
|
+
"ds:data-[state=active]:[margin-block-end:-1px]",
|
|
467
|
+
// WCAG 1.4.1: the fill and text colour are not enough on their own, so
|
|
468
|
+
// the active tab also carries a --primary edge at block-start (the
|
|
469
|
+
// folder-tab form of the Tabs `underlined` indicator). Every tab reserves
|
|
470
|
+
// the edge, transparent, so a switch never shifts a label.
|
|
471
|
+
"ds:[border-block-start:var(--border-width-md)_solid_transparent]",
|
|
472
|
+
"ds:data-[state=active]:[border-block-start-color:var(--primary)]",
|
|
473
|
+
// Forced colours paint every fill as Canvas and would force the reserved
|
|
474
|
+
// edges to one system colour; only the active tab keeps a Highlight edge
|
|
475
|
+
// (as DataGrid's selected rows do).
|
|
476
|
+
"ds:forced-colors:[border-block-start-color:Canvas]",
|
|
477
|
+
"ds:forced-colors:data-[state=active]:[border-block-start-color:Highlight]",
|
|
478
|
+
"ds:disabled:pointer-events-none ds:disabled:opacity-50",
|
|
479
|
+
// 40px (md) is above the 24px of WCAG 2.5.8 AA and matches the table
|
|
480
|
+
// header row it sits on; the accessible themes promise 2.5.5 AAA and
|
|
481
|
+
// raise the tab to --min-target-size (48px).
|
|
482
|
+
"ds:[min-block-size:var(--accessible-target-floor,0px)]"
|
|
483
|
+
],
|
|
484
|
+
{
|
|
485
|
+
variants: {
|
|
486
|
+
size: {
|
|
487
|
+
// Symmetric inline padding so the label centres and every tab matches,
|
|
488
|
+
// removable or not; the close mark lives in the trailing padding.
|
|
489
|
+
// Label sizes are role tokens, so the accessible themes enlarge them
|
|
490
|
+
// with the header: md is the header's own eyebrow size.
|
|
491
|
+
md: "ds:h-10 ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)] ds:text-[length:var(--data-grid-eyebrow-size)]",
|
|
492
|
+
lg: "ds:h-12 ds:ps-[var(--spacing-lg)] ds:pe-[var(--spacing-lg)] ds:text-[length:var(--type-label-size)]"
|
|
493
|
+
}
|
|
494
|
+
},
|
|
495
|
+
defaultVariants: { size: "md" }
|
|
496
|
+
}
|
|
497
|
+
), Ct = "ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid ds:focus-visible:outline-ring ds:focus-visible:[outline-offset:calc(-1*var(--focus-ring-width))]";
|
|
498
|
+
function Pt() {
|
|
499
|
+
const [t, n] = ke(!1);
|
|
500
|
+
return oe(() => {
|
|
501
|
+
const i = () => n((g) => g || !0), d = () => n((g) => g && !1);
|
|
502
|
+
return document.addEventListener("keydown", i, !0), document.addEventListener("pointerdown", d, !0), () => {
|
|
503
|
+
document.removeEventListener("keydown", i, !0), document.removeEventListener("pointerdown", d, !0);
|
|
504
|
+
};
|
|
505
|
+
}, []), t;
|
|
506
|
+
}
|
|
507
|
+
const At = bt(function({
|
|
508
|
+
componentName: n,
|
|
509
|
+
rootProps: i,
|
|
510
|
+
agent: d,
|
|
511
|
+
panelClassName: g,
|
|
512
|
+
adapter: w,
|
|
513
|
+
storagePrefix: ee,
|
|
514
|
+
tabs: W,
|
|
515
|
+
defaultTabs: te,
|
|
516
|
+
onTabsChange: ce,
|
|
517
|
+
activeTabId: $,
|
|
518
|
+
defaultActiveTabId: de,
|
|
519
|
+
onActiveTabChange: T,
|
|
520
|
+
persistKey: D,
|
|
521
|
+
persistActiveTab: ue,
|
|
522
|
+
captureQuickFilter: re = !1,
|
|
523
|
+
applyOnActivate: we = !0,
|
|
524
|
+
allowAdd: X = !0,
|
|
525
|
+
allowRename: N = !0,
|
|
526
|
+
allowRemove: M = !0,
|
|
527
|
+
maxTabs: Y = 8,
|
|
528
|
+
createTab: R,
|
|
529
|
+
makeTabId: Oe,
|
|
530
|
+
renameOnAdd: Ie = !0,
|
|
531
|
+
size: C = "md",
|
|
532
|
+
id: ne,
|
|
533
|
+
className: xe,
|
|
534
|
+
"aria-label": qe,
|
|
535
|
+
children: le
|
|
536
|
+
}, Ce) {
|
|
537
|
+
const { t: h } = ct("ui"), fe = f(null), Ne = ht(fe), se = Pt(), ae = vt(), P = `${ae}-panel`, me = `${ae}-hint`, {
|
|
538
|
+
tabs: E,
|
|
539
|
+
activeTabId: A,
|
|
540
|
+
selectTab: pe,
|
|
541
|
+
addTab: j,
|
|
542
|
+
renameTab: B,
|
|
543
|
+
removeTab: be,
|
|
544
|
+
atCapacity: I,
|
|
545
|
+
getTabsSnapshot: v,
|
|
546
|
+
getActiveTabIdSnapshot: V,
|
|
547
|
+
privacy: L,
|
|
548
|
+
isUserNamed: z
|
|
549
|
+
} = St({
|
|
550
|
+
adapter: w,
|
|
551
|
+
storagePrefix: ee,
|
|
552
|
+
componentName: n,
|
|
553
|
+
tabs: W,
|
|
554
|
+
defaultTabs: te,
|
|
555
|
+
onTabsChange: ce,
|
|
556
|
+
activeTabId: $,
|
|
557
|
+
defaultActiveTabId: de,
|
|
558
|
+
onActiveTabChange: T,
|
|
559
|
+
persistKey: D,
|
|
560
|
+
persistActiveTab: ue,
|
|
561
|
+
captureQuickFilter: re,
|
|
562
|
+
applyOnActivate: we,
|
|
563
|
+
maxTabs: Y,
|
|
564
|
+
createTab: R,
|
|
565
|
+
makeTabId: Oe
|
|
566
|
+
}), F = f(w);
|
|
567
|
+
F.current = w;
|
|
568
|
+
const H = L !== "off" || G(w) !== "off", U = m(
|
|
569
|
+
() => G(F.current) !== "off",
|
|
570
|
+
[]
|
|
571
|
+
), Pe = f({
|
|
572
|
+
byId: /* @__PURE__ */ new Map(),
|
|
573
|
+
used: /* @__PURE__ */ new Set()
|
|
574
|
+
}), ve = m((e, a) => {
|
|
575
|
+
const p = Pe.current, b = p.byId.get(e);
|
|
576
|
+
if (b !== void 0) return b;
|
|
577
|
+
let q = a + 1;
|
|
578
|
+
for (; p.used.has(q); ) q += 1;
|
|
579
|
+
return p.byId.set(e, q), p.used.add(q), q;
|
|
580
|
+
}, []), _ = m(
|
|
581
|
+
(e, a) => h("dataTableTabs.privateTabName", "Saved view {{number}}", {
|
|
582
|
+
number: ve(e, a)
|
|
583
|
+
}),
|
|
584
|
+
[h, ve]
|
|
585
|
+
), ge = m(
|
|
586
|
+
(e, a, p) => p && z(e) ? _(e.id, a) : e.label,
|
|
587
|
+
[z, _]
|
|
588
|
+
), [O, Ae] = ke(null), K = f(null), [Me, r] = ke(0), u = f(null), l = f(!1), o = m((e) => {
|
|
589
|
+
if (e === null) {
|
|
590
|
+
const a = K.current;
|
|
591
|
+
a && (a.value = "");
|
|
592
|
+
} else
|
|
593
|
+
u.current = e, l.current = !1, r((a) => a + 1);
|
|
594
|
+
Ae(e);
|
|
595
|
+
}, []), c = E.find((e) => e.id === O), s = c && !(H && z(c)) ? c.label : "", [k, y] = ke("");
|
|
596
|
+
oe(() => {
|
|
597
|
+
if (!k) return;
|
|
598
|
+
const e = setTimeout(() => y(""), 3e3);
|
|
599
|
+
return () => clearTimeout(e);
|
|
600
|
+
}, [k]);
|
|
601
|
+
const S = f(H);
|
|
602
|
+
yt(() => {
|
|
603
|
+
const e = H && !S.current;
|
|
604
|
+
S.current = H, e && (K.current && (K.current.value = ""), O !== null && o(null), y(""));
|
|
605
|
+
}, [H, O, o]);
|
|
606
|
+
const Z = f(/* @__PURE__ */ new Map()), Q = m((e) => {
|
|
607
|
+
requestAnimationFrame(() => {
|
|
608
|
+
var a;
|
|
609
|
+
(a = Z.current.get(e)) == null || a.focus();
|
|
610
|
+
});
|
|
611
|
+
}, []), Re = m(
|
|
612
|
+
(e) => N && !e.locked,
|
|
613
|
+
[N]
|
|
614
|
+
), je = m(
|
|
615
|
+
(e) => M && !e.locked && E.length > 1,
|
|
616
|
+
[M, E.length]
|
|
617
|
+
), Ve = m(
|
|
618
|
+
(e) => {
|
|
619
|
+
Re(e) && o(e.id);
|
|
620
|
+
},
|
|
621
|
+
[Re, o]
|
|
622
|
+
), ut = m(() => {
|
|
623
|
+
var e;
|
|
624
|
+
if (O) {
|
|
625
|
+
const a = ((e = K.current) == null ? void 0 : e.value) ?? "";
|
|
626
|
+
if (a.trim()) {
|
|
627
|
+
B(O, a);
|
|
628
|
+
const p = v().findIndex(
|
|
629
|
+
(b) => b.id === O
|
|
630
|
+
);
|
|
631
|
+
y(
|
|
632
|
+
h("dataTableTabs.announce.renamed", {
|
|
633
|
+
name: U() && p >= 0 ? _(O, p) : a.trim()
|
|
634
|
+
})
|
|
635
|
+
);
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
o(null);
|
|
639
|
+
}, [
|
|
640
|
+
v,
|
|
641
|
+
U,
|
|
642
|
+
_,
|
|
643
|
+
O,
|
|
644
|
+
B,
|
|
645
|
+
o,
|
|
646
|
+
h
|
|
647
|
+
]), Ge = m(() => o(null), [o]), lt = m(() => {
|
|
648
|
+
const e = h("dataTableTabs.newTabName", { number: E.length + 1 }), a = j(), p = v(), b = p.findIndex((Le) => Le.id === a), q = b >= E.length ? p[b] : void 0, Fe = q && z(q) && U() ? _(q.id, b) : e;
|
|
649
|
+
y(h("dataTableTabs.announce.added", { name: Fe })), Ie && N ? o(a) : Q(a);
|
|
650
|
+
}, [
|
|
651
|
+
j,
|
|
652
|
+
N,
|
|
653
|
+
Q,
|
|
654
|
+
v,
|
|
655
|
+
z,
|
|
656
|
+
U,
|
|
657
|
+
_,
|
|
658
|
+
Ie,
|
|
659
|
+
o,
|
|
660
|
+
h,
|
|
661
|
+
E.length
|
|
662
|
+
]), Te = m(
|
|
663
|
+
(e, a) => {
|
|
664
|
+
if (!je(e)) return;
|
|
665
|
+
const p = v(), b = p.findIndex((Ke) => Ke.id === e.id), q = p.filter((Ke) => Ke.id !== e.id)[Math.max(0, b - 1)], Fe = Z.current.get(e.id), Le = typeof document < "u" && Fe !== void 0 && Fe.contains(document.activeElement);
|
|
666
|
+
be(e.id), y(
|
|
667
|
+
h("dataTableTabs.announce.removed", {
|
|
668
|
+
name: ge(e, b, U())
|
|
669
|
+
})
|
|
670
|
+
), q && (a || Le) && Q(q.id);
|
|
671
|
+
},
|
|
672
|
+
[
|
|
673
|
+
je,
|
|
674
|
+
Q,
|
|
675
|
+
v,
|
|
676
|
+
U,
|
|
677
|
+
be,
|
|
678
|
+
ge,
|
|
679
|
+
h
|
|
680
|
+
]
|
|
681
|
+
), ft = m(
|
|
682
|
+
(e, a) => {
|
|
683
|
+
e.key === "Delete" || e.key === "Backspace" ? (e.preventDefault(), Te(a, !0)) : e.key === "F2" && (e.preventDefault(), Ve(a));
|
|
684
|
+
},
|
|
685
|
+
[Te, Ve]
|
|
686
|
+
), We = f(pe);
|
|
687
|
+
We.current = pe;
|
|
688
|
+
const ze = f(j);
|
|
689
|
+
ze.current = j;
|
|
690
|
+
const De = f(B);
|
|
691
|
+
De.current = B;
|
|
692
|
+
const Xe = f(Te);
|
|
693
|
+
Xe.current = Te;
|
|
694
|
+
const Ee = f({ allowAdd: X, allowRename: N });
|
|
695
|
+
Ee.current = { allowAdd: X, allowRename: N };
|
|
696
|
+
const Ye = f({
|
|
697
|
+
getTabs: () => v(),
|
|
698
|
+
getActiveTabId: () => V() ?? null,
|
|
699
|
+
selectTab: (e) => We.current(e),
|
|
700
|
+
addTab: (e, a) => ze.current(e, a),
|
|
701
|
+
renameTab: (e, a) => De.current(e, a),
|
|
702
|
+
removeTab: (e) => {
|
|
703
|
+
const a = v().find((p) => p.id === e);
|
|
704
|
+
a && Xe.current(a, !1);
|
|
705
|
+
}
|
|
706
|
+
}), mt = f({
|
|
707
|
+
...Ye.current,
|
|
708
|
+
addTab: (e, a) => Ee.current.allowAdd ? ze.current(e, a) : V() ?? "",
|
|
709
|
+
renameTab: (e, a) => {
|
|
710
|
+
Ee.current.allowRename && De.current(e, a);
|
|
711
|
+
},
|
|
712
|
+
// Masked unless the table bound now says privacy is off: before a
|
|
713
|
+
// table binds, and while none is bound, labels do not fail open.
|
|
714
|
+
isPrivacyMode: () => G(F.current) !== "off"
|
|
715
|
+
});
|
|
716
|
+
gt(Ce, () => Ye.current, []), kt(d, mt.current, ne);
|
|
717
|
+
const pt = `${ae}-tab-${A}`;
|
|
718
|
+
return /* @__PURE__ */ ie(
|
|
719
|
+
"div",
|
|
720
|
+
{
|
|
721
|
+
ref: fe,
|
|
722
|
+
...i,
|
|
723
|
+
"data-component-id": ne,
|
|
724
|
+
className: ye("ds:flex ds:min-w-0 ds:flex-col", xe),
|
|
725
|
+
children: [
|
|
726
|
+
/* @__PURE__ */ ie(
|
|
727
|
+
Ue.Root,
|
|
728
|
+
{
|
|
729
|
+
open: O !== null,
|
|
730
|
+
onOpenChange: (e) => {
|
|
731
|
+
e || Ge();
|
|
732
|
+
},
|
|
733
|
+
children: [
|
|
734
|
+
/* @__PURE__ */ ie(
|
|
735
|
+
$e.Root,
|
|
736
|
+
{
|
|
737
|
+
value: A,
|
|
738
|
+
onValueChange: pe,
|
|
739
|
+
orientation: "horizontal",
|
|
740
|
+
activationMode: "manual",
|
|
741
|
+
dir: Ne,
|
|
742
|
+
children: [
|
|
743
|
+
/* @__PURE__ */ ie("div", { className: "ds:flex ds:items-end ds:gap-[var(--spacing-2xs)]", children: [
|
|
744
|
+
/* @__PURE__ */ x(
|
|
745
|
+
$e.List,
|
|
746
|
+
{
|
|
747
|
+
"aria-label": qe ?? h("dataTableTabs.tablistLabel"),
|
|
748
|
+
"aria-describedby": me,
|
|
749
|
+
className: ye(
|
|
750
|
+
Ot({ size: C }),
|
|
751
|
+
"ds:min-w-0 ds:flex-initial"
|
|
752
|
+
),
|
|
753
|
+
children: E.map((e, a) => {
|
|
754
|
+
z(e) && ve(e.id, a);
|
|
755
|
+
const p = /* @__PURE__ */ ie(
|
|
756
|
+
$e.Trigger,
|
|
757
|
+
{
|
|
758
|
+
ref: (b) => {
|
|
759
|
+
b ? Z.current.set(e.id, b) : Z.current.delete(e.id);
|
|
760
|
+
},
|
|
761
|
+
value: e.id,
|
|
762
|
+
id: `${ae}-tab-${e.id}`,
|
|
763
|
+
"aria-controls": P,
|
|
764
|
+
"data-tab-id": e.id,
|
|
765
|
+
className: ye(
|
|
766
|
+
qt({ size: C }),
|
|
767
|
+
// The leading tab sits flush in the panel's leading-top
|
|
768
|
+
// corner: square that corner (and the table's, through
|
|
769
|
+
// `panelClassName`) so the leading edge is one line.
|
|
770
|
+
a === 0 && "ds:[border-start-start-radius:0]",
|
|
771
|
+
// Keyboard-only focus ring; in pointer mode suppress the
|
|
772
|
+
// UA outline that Radix's click focus would show.
|
|
773
|
+
se ? Ct : "ds:focus-visible:outline-none"
|
|
774
|
+
),
|
|
775
|
+
onKeyDown: (b) => ft(b, e),
|
|
776
|
+
onDoubleClick: () => Ve(e),
|
|
777
|
+
children: [
|
|
778
|
+
/* @__PURE__ */ x("span", { dir: "auto", className: "ds:max-w-[12rem] ds:truncate", children: ge(e, a, H) }),
|
|
779
|
+
je(e) && // Visual-only dismiss: pointer removal fires here;
|
|
780
|
+
// keyboard removal is Delete or Backspace on the trigger.
|
|
781
|
+
// No role or tabIndex: interactive content inside a
|
|
782
|
+
// <button> is invalid HTML. Absolutely positioned in the
|
|
783
|
+
// trailing padding and hidden until the tab is hovered,
|
|
784
|
+
// focused or active, so it reserves no flow space and
|
|
785
|
+
// labels never reflow when it reveals. While hidden it
|
|
786
|
+
// takes no pointer events, so a tap there selects the
|
|
787
|
+
// tab. The `::after` widens the hit area to 24px
|
|
788
|
+
// (WCAG 2.5.8) around the 14px mark.
|
|
789
|
+
/* @__PURE__ */ x(
|
|
790
|
+
"span",
|
|
791
|
+
{
|
|
792
|
+
"aria-hidden": "true",
|
|
793
|
+
className: ye(
|
|
794
|
+
"ds:absolute ds:end-[var(--spacing-2xs)] ds:top-1/2 ds:-translate-y-1/2",
|
|
795
|
+
"ds:inline-flex ds:items-center ds:justify-center",
|
|
796
|
+
"ds:size-3.5 ds:rounded-[var(--radius-sm)]",
|
|
797
|
+
'ds:after:absolute ds:after:inset-[calc((var(--spacing-lg)-100%)/-2)] ds:after:content-[""]',
|
|
798
|
+
"ds:opacity-0 ds:transition-opacity ds:motion-reduce:transition-none",
|
|
799
|
+
"ds:pointer-events-none",
|
|
800
|
+
"ds:group-hover:opacity-100 ds:group-hover:pointer-events-auto",
|
|
801
|
+
"ds:group-focus-visible:opacity-100 ds:group-focus-visible:pointer-events-auto",
|
|
802
|
+
"ds:group-data-[state=active]:opacity-100 ds:group-data-[state=active]:pointer-events-auto",
|
|
803
|
+
"ds:hover:bg-muted-foreground/20"
|
|
804
|
+
),
|
|
805
|
+
onPointerDown: (b) => {
|
|
806
|
+
b.stopPropagation(), b.preventDefault();
|
|
807
|
+
},
|
|
808
|
+
onClick: (b) => {
|
|
809
|
+
b.stopPropagation(), b.preventDefault(), Te(e, !0);
|
|
810
|
+
},
|
|
811
|
+
children: /* @__PURE__ */ x(et, { className: "ds:size-3" })
|
|
812
|
+
}
|
|
813
|
+
)
|
|
814
|
+
]
|
|
815
|
+
},
|
|
816
|
+
e.id
|
|
817
|
+
);
|
|
818
|
+
return O === e.id ? /* @__PURE__ */ x(Ue.Anchor, { asChild: !0, children: p }, e.id) : p;
|
|
819
|
+
})
|
|
820
|
+
}
|
|
821
|
+
),
|
|
822
|
+
X && /* @__PURE__ */ x(
|
|
823
|
+
He,
|
|
824
|
+
{
|
|
825
|
+
intent: "ghost",
|
|
826
|
+
size: "sm",
|
|
827
|
+
icon: /* @__PURE__ */ x(wt, { "aria-hidden": "true" }),
|
|
828
|
+
tooltip: h(I ? "dataTableTabs.maxTabsReached" : "dataTableTabs.addTab"),
|
|
829
|
+
disabled: I,
|
|
830
|
+
className: "ds:mb-[var(--spacing-2xs)] ds:shrink-0",
|
|
831
|
+
onClick: lt
|
|
832
|
+
}
|
|
833
|
+
)
|
|
834
|
+
] }),
|
|
835
|
+
/* @__PURE__ */ x(
|
|
836
|
+
"div",
|
|
837
|
+
{
|
|
838
|
+
role: "tabpanel",
|
|
839
|
+
id: P,
|
|
840
|
+
"aria-labelledby": pt,
|
|
841
|
+
className: ye("ds:min-w-0", g),
|
|
842
|
+
children: le
|
|
843
|
+
}
|
|
844
|
+
)
|
|
845
|
+
]
|
|
846
|
+
}
|
|
847
|
+
),
|
|
848
|
+
/* @__PURE__ */ x(
|
|
849
|
+
Ue.Content,
|
|
850
|
+
{
|
|
851
|
+
side: "bottom",
|
|
852
|
+
align: "start",
|
|
853
|
+
"aria-label": h("dataTableTabs.rename.title"),
|
|
854
|
+
className: "ds:w-64",
|
|
855
|
+
onInteractOutside: () => {
|
|
856
|
+
l.current = !0;
|
|
857
|
+
},
|
|
858
|
+
onCloseAutoFocus: (e) => {
|
|
859
|
+
e.preventDefault();
|
|
860
|
+
const a = l.current;
|
|
861
|
+
l.current = !1;
|
|
862
|
+
const p = document.activeElement;
|
|
863
|
+
if (a && p && p !== document.body) return;
|
|
864
|
+
const b = u.current;
|
|
865
|
+
b && Z.current.has(b) ? Q(b) : A && Q(A);
|
|
866
|
+
},
|
|
867
|
+
onOpenAutoFocus: (e) => {
|
|
868
|
+
var a, p;
|
|
869
|
+
e.preventDefault(), (a = K.current) == null || a.focus(), (p = K.current) == null || p.select();
|
|
870
|
+
},
|
|
871
|
+
children: /* @__PURE__ */ ie(
|
|
872
|
+
"form",
|
|
873
|
+
{
|
|
874
|
+
className: "ds:flex ds:items-center ds:gap-[var(--spacing-2xs)]",
|
|
875
|
+
onSubmit: (e) => {
|
|
876
|
+
e.preventDefault(), ut();
|
|
877
|
+
},
|
|
878
|
+
children: [
|
|
879
|
+
/* @__PURE__ */ x(
|
|
880
|
+
Tt,
|
|
881
|
+
{
|
|
882
|
+
ref: K,
|
|
883
|
+
size: "sm",
|
|
884
|
+
"aria-label": h("dataTableTabs.rename.inputLabel"),
|
|
885
|
+
defaultValue: s,
|
|
886
|
+
maxLength: 60,
|
|
887
|
+
className: "ds:min-w-0 ds:flex-1"
|
|
888
|
+
},
|
|
889
|
+
Me
|
|
890
|
+
),
|
|
891
|
+
/* @__PURE__ */ x(
|
|
892
|
+
He,
|
|
893
|
+
{
|
|
894
|
+
type: "submit",
|
|
895
|
+
intent: "ghost",
|
|
896
|
+
size: "sm",
|
|
897
|
+
icon: /* @__PURE__ */ x(It, { "aria-hidden": "true" }),
|
|
898
|
+
tooltip: h("dataTableTabs.rename.save")
|
|
899
|
+
}
|
|
900
|
+
),
|
|
901
|
+
/* @__PURE__ */ x(
|
|
902
|
+
He,
|
|
903
|
+
{
|
|
904
|
+
type: "button",
|
|
905
|
+
intent: "ghost",
|
|
906
|
+
size: "sm",
|
|
907
|
+
icon: /* @__PURE__ */ x(et, { "aria-hidden": "true" }),
|
|
908
|
+
tooltip: h("dataTableTabs.rename.cancel"),
|
|
909
|
+
onClick: Ge
|
|
910
|
+
}
|
|
911
|
+
)
|
|
912
|
+
]
|
|
913
|
+
}
|
|
914
|
+
)
|
|
915
|
+
}
|
|
916
|
+
)
|
|
917
|
+
]
|
|
918
|
+
}
|
|
919
|
+
),
|
|
920
|
+
/* @__PURE__ */ x("span", { id: me, className: "ds:sr-only", children: h("dataTableTabs.hint") }),
|
|
921
|
+
/* @__PURE__ */ x("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: k })
|
|
922
|
+
]
|
|
923
|
+
}
|
|
924
|
+
);
|
|
925
|
+
});
|
|
926
|
+
At.displayName = "SavedViewTabs";
|
|
927
|
+
export {
|
|
928
|
+
At as S,
|
|
929
|
+
qt as a,
|
|
930
|
+
Ot as s
|
|
931
|
+
};
|
|
932
|
+
//# sourceMappingURL=saved-view-tabs-DLWm88Eq.js.map
|